/* Values mirror Condo's @open-condo/ui Table, Tabs, Input and Modal tokens. */
#notices-panel {
  --nt-ink: var(--ink, #222);
  --nt-muted: var(--muted, #707695);
  --nt-line: var(--border, #d0d3e5);
  --nt-paper: var(--paper, #fff);
  --nt-soft: #f2f4f6;
  color: var(--nt-ink);
}
.nt-panel { display: flex; flex-direction: column; gap: 24px; background: transparent; }
.nt-toolbar, .nt-heading, .nt-actionbar, .nt-filters, .nt-dialog-head, .nt-footer, .nt-end, .nt-recovery, .nt-confirm-actions {
  display: flex; align-items: center;
}
.nt-toolbar, .nt-dialog-head, .nt-footer { justify-content: space-between; gap: 16px; }
.nt-heading { gap: 12px; min-width: 0; flex-wrap: wrap; }
.nt-toolbar { margin-bottom: 8px; }
.nt-heading h1 { margin: 0; font-size: 40px; font-weight: 700; letter-spacing: -.025em; line-height: 46px; }
.nt-heading [data-count] { color: var(--nt-muted); font-size: 16px; line-height: 24px; }
.nt-search { position: relative; width: min(360px,100%); }
.nt-search i {
  position: absolute; right: 18px; top: 15px; width: 15px; height: 15px; pointer-events: none;
  color: var(--nt-muted); border: 2px solid currentColor; border-radius: 50%;
}
.nt-search i::after { content: ''; position: absolute; right: -6px; bottom: -3px; width: 8px; height: 2px; background: currentColor; transform: rotate(45deg); border-radius: 1px; }
.nt-filters { flex-wrap: wrap; gap: 20px; border-bottom: 1px solid #e1e5ed; }
.nt-filters button, .nt-text, .nt-recovery button, .nt-close, .nt-withdraw {
  appearance: none; border: 0; background: none; cursor: pointer; font: inherit;
}
.nt-filters button {
  padding: 4px 0 12px; margin-bottom: -1px; border-bottom: 2px solid transparent;
  color: var(--nt-muted); font-size: 16px; line-height: 24px; font-weight: 600;
}
.nt-filters button:hover, .nt-filters button[aria-pressed=true] { color: var(--nt-ink); }
.nt-filters button[aria-pressed=true] { border-bottom-color: var(--nt-ink); }
.nt-table-wrap {
  overflow: auto; border: 1px solid var(--nt-line); border-radius: 12px;
  background: var(--nt-paper); margin-top: 8px;
}
.nt-table { width: 100%; min-width: 580px; border-spacing: 0; table-layout: fixed; text-align: left; }
.nt-table th, .nt-table td { padding: 16px 12px; vertical-align: middle; border: 0; border-bottom: 1px solid var(--nt-line); }
.nt-table th { background: var(--nt-paper); color: var(--nt-muted); font-size: 12px; font-weight: 600; line-height: 20px; }
.nt-table th:first-child, .nt-table td:first-child { padding-left: 20px; }
.nt-table th:nth-child(2) { width: 116px; }
.nt-table th:nth-child(3) { width: 186px; }
.nt-table th:last-child { width: 136px; }
.nt-row-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 0 16px; }
.nt-pinned { flex: none; padding: 0 6px; border-radius: 4px; color: #694412; background: #fff0cc; font-size: 12px; line-height: 20px; font-weight: 600; }
.nt-table td { color: var(--nt-ink); background: var(--nt-paper); font-size: 14px; line-height: 24px; }
.nt-table tr:last-child td { border-bottom: 0; }
.nt-table tr[data-id] { cursor: pointer; }
.nt-table tr[data-id]:hover td { background: var(--nt-soft); }
.nt-title, .nt-summary { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.nt-title { color: var(--nt-ink); font-weight: 600; }
.nt-headline, .nt-home-preview > div { display: flex; gap: 8px; align-items: center; min-width: 0; }
.nt-home-tag, [data-preview-tag] {
  flex: 0 1 auto; max-width: 8em; border: 1px solid currentColor; border-radius: 4px;
  padding: 0 4px; font-size: 12px; font-weight: 500; line-height: 18px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nt-title { min-width: 0; }
.nt-tag-field { max-width: 200px; }
.nt-appearance { margin-top: 20px; border-top: 1px solid var(--nt-line); padding-top: 16px; }
.nt-appearance summary { cursor: pointer; font-size: 14px; font-weight: 600; }
.nt-appearance summary:focus-visible { outline: 2px solid #3189bd; outline-offset: 3px; }
.nt-type-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; font-size: 14px; }
.nt-type-row > span { font-weight: 600; }
.nt-type-row label { display: inline-flex; align-items: center; gap: 6px; color: var(--nt-muted); }
.nt-type-row input { height: 32px; border: 1px solid var(--nt-line); border-radius: 6px; background: #fff; }
.nt-type-row input[type=number] { width: 54px; padding: 0 6px; }
.nt-type-row input[type=color] { padding: 2px; width: 42px; cursor: pointer; }
.nt-home-preview { margin-top: 20px; border: 1px solid var(--nt-line); padding: 12px; border-radius: 10px; }
.nt-home-preview strong, .nt-home-preview p { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.nt-home-preview p { margin-top: 4px; }
.nt-summary { margin-top: 2px; color: var(--nt-muted); font-size: 12px; line-height: 20px; }
.nt-text, .nt-recovery button { color: var(--nt-ink); padding: 4px 0; font-size: 14px; font-weight: 600; }
.nt-text:hover, .nt-recovery button:hover { color: #00b538; }
.nt-table .nt-empty { text-align: center; height: 200px; color: var(--nt-muted); }
.nt-badge { display: inline-block; padding: 2px 10px 4px; border-radius: 12px; background: var(--nt-soft); color: var(--nt-ink); white-space: nowrap; font-size: 12px; font-weight: 600; line-height: 20px; }
.nt-badge[data-status=published] { background: #ebfaef; color: #222; }
.nt-badge[data-status=scheduled] { background: #e7f4ff; }
.nt-badge[data-status=draft] { background: #f2e9ff; }
.nt-actionbar { padding: 0 0 8px; margin-top: 8px; }
.nt-msg, .nt-alert {
  margin: 0; padding: 14px 16px 14px 44px; position: relative; background: #ebfaef;
  border: 1px solid #88e2a3; border-radius: 8px; color: var(--nt-ink); font-size: 14px; line-height: 22px;
}
.nt-msg::before, .nt-alert::before {
  content: '✓'; position: absolute; left: 15px; top: 15px; border-radius: 50%; color: #fff;
  display: grid; place-items: center; width: 18px; height: 18px; font: 700 12px/1 sans-serif; background: #00b538;
}
.nt-msg.nt-error, .nt-alert { background: #ffeceb; border-color: #ff938e; }
.nt-msg.nt-error::before, .nt-alert::before { content: '!'; background: #ec0000; }
.nt-alert[data-tone=info] { background: #e7f4ff; border-color: #7dc0f8; }
.nt-alert[data-tone=info]::before { content: 'i'; background: #0b78d2; }
.nt-dialog {
  width: min(640px,calc(100vw - 80px)); max-height: calc(100dvh - 80px); padding: 0; overflow: hidden;
  color: var(--nt-ink); background: var(--nt-paper); border: 0; border-radius: 12px;
  font: inherit; box-shadow: 0 8px 32px #22222214;
}
.nt-dialog[open] { display: flex; flex-direction: column; }
.nt-dialog::backdrop { background: rgba(112,118,149,.5); }
.nt-dialog:not([open]), .nt-dialog [hidden], .nt-panel [hidden] { display: none !important; }
.nt-dialog-head { align-items: flex-start; padding: 40px 40px 20px; flex: none; }
.nt-dialog h2 { margin: 0; font-size: 20px; line-height: 28px; font-weight: 700; }
.nt-close { width: 24px; height: 28px; line-height: 24px; padding: 0; color: var(--nt-muted); font-size: 27px; }
.nt-close:hover { color: var(--nt-ink); }
.nt-dialog form { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.nt-fields { overflow-y: auto; padding: 8px 40px 32px; scrollbar-gutter: stable; }
.nt-field { display: grid; gap: 8px; color: var(--nt-ink); font-size: 14px; font-weight: 600; line-height: 22px; }
.nt-field + .nt-field { margin-top: 20px; }
.nt-field input, .nt-field textarea, .nt-search input, [data-manual-copy] {
  width: 100%; box-sizing: border-box; border-radius: 8px; border: 1px solid var(--nt-line);
  padding: 11px 12px; font-family: inherit; font-size: 16px; font-weight: 400; line-height: 24px;
  color: var(--nt-ink); background: var(--nt-paper);
}
.nt-field input, .nt-search input { height: 48px; }
.nt-search input { padding-right: 44px; }
.nt-field textarea { resize: vertical; }
.nt-field :is(input,textarea):hover, .nt-search input:hover { border-color: var(--nt-muted); }
.nt-field :is(input,textarea):focus, .nt-search input:focus, [data-manual-copy]:focus { outline: none; border-color: var(--nt-muted); }
.nt-field :is(input,textarea):read-only { background: var(--nt-soft); }
.nt-field ::placeholder, .nt-search ::placeholder { color: var(--nt-muted); }
.nt-alert { margin-top: 20px; }
.nt-alert p { margin: 0; }
.nt-recovery { flex-wrap: wrap; gap: 16px; }
.nt-footer { flex: none; padding: 20px 40px; border-top: 1px solid #e1e5ed; }
.nt-withdraw { color: #ec0000; font-size: 14px; font-weight: 600; padding: 8px 0; }
.nt-withdraw:hover { text-decoration: underline; }
.nt-end, .nt-confirm-actions { margin-left: auto; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }
.nt-confirm { width: min(480px,calc(100vw - 80px)); padding: 40px; }
.nt-confirm p { color: var(--nt-ink); margin: 16px 0 28px; font-size: 16px; line-height: 24px; }
.nt-confirm .nt-danger { color: #fff; background: #ff3b30; border: 1px solid #ff3b30; }
.nt-confirm .nt-danger:hover { background: #ec0000; border-color: #ec0000; }
@media (max-width: 991px) {
  .nt-panel { gap: 20px; }
  .nt-table-wrap, .nt-actionbar, .nt-toolbar { margin-top: 0; margin-bottom: 0; }
}
@media (max-width: 600px) {
  .nt-heading h1 { font-size: 30px; line-height: 36px; }
  .nt-heading { gap: 8px; }
  .nt-filters { gap: 16px; }
  .nt-search { width: 100%; }
  .nt-dialog, .nt-confirm { width: calc(100vw - 32px); max-height: calc(100dvh - 32px); }
  .nt-dialog-head, .nt-footer, .nt-confirm { padding: 24px; }
  .nt-fields { padding: 0 24px 24px; }
  .nt-footer { align-items: flex-start; flex-direction: column; }
  .nt-end { margin-left: 0; }
}

.nt-list-tools { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.nt-category-filter { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.nt-category-filter select, .nt-field select {
  height: 48px; padding: 0 12px; border: 1px solid var(--nt-line); border-radius: 8px; background: white;
  font: inherit; font-size: 16px; font-weight: 400; color: var(--nt-ink);
}
.nt-category-filter select { min-width: 140px; }
.nt-channel { display: block; font-size: 12px; color: var(--nt-muted); }
.nt-permission { font-size: 14px; color: var(--nt-muted); }
