:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --ink: #1b2433;
  --muted: #5b6472;
  --faint: #8b93a1;
  --border: #e4e8ee;
  --border-strong: #d3d9e2;
  --accent: #2657d6;
  --accent-hover: #1e45ae;
  --accent-soft: #eef2fd;

  --ok-bg: #e7f4ec;
  --ok-fg: #1f7a45;
  --warn-bg: #fdf0e0;
  --warn-fg: #9a5b12;
  --info-bg: #e9f0fb;
  --info-fg: #2657d6;
  --neutral-bg: #eef0f4;
  --neutral-fg: #5b6472;

  /* Measured from the real .topbar at runtime; this is only a fallback. */
  --topbar-h: 64px;

  --radius: 10px;
  --shadow: 0 1px 2px rgba(27, 36, 51, 0.04), 0 6px 20px rgba(27, 36, 51, 0.06);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent);
  text-decoration: none;
}

/* ----- Buttons and inputs ----- */

.btn {
  appearance: none;
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  padding: 11px 18px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn:hover {
  background: var(--accent-hover);
}

.btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.btn.ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--border-strong);
  font-weight: 500;
  padding: 8px 14px;
  font-size: 14px;
}

.btn.ghost:hover {
  background: #fff;
  color: var(--ink);
}

.field {
  width: 100%;
  font: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}

.field:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ----- Login ----- */

.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 36px 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
}

.brand-name {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.auth-card h1 {
  font-size: 22px;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}

.auth-card .sub {
  color: var(--muted);
  font-size: 14.5px;
  margin: 0 0 22px;
}

.auth-card label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 7px;
}

.auth-card .btn {
  width: 100%;
  margin-top: 16px;
}

.notice {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  display: none;
}

.notice.show {
  display: block;
}

.notice.ok {
  background: var(--ok-bg);
  color: var(--ok-fg);
}

.notice.err {
  background: #fbe9e9;
  color: #a52323;
}

.foot-hint {
  margin-top: 22px;
  font-size: 12.5px;
  color: var(--faint);
  text-align: center;
}

/* OTP step */

.otp-email {
  font-weight: 600;
  color: var(--ink);
}

.otp-field {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.remember-wrap {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--muted);
  cursor: pointer;
  font-weight: 400 !important;
}

.remember-wrap input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: var(--accent);
}

.btn-ghost {
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.12s;
}

.btn-ghost:hover { background: var(--neutral-bg); }

/* ----- Portal ----- */

.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 5;
}

.topbar-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar .brand {
  margin: 0;
}

.topbar .spacer {
  flex: 1;
}

.who {
  text-align: right;
  line-height: 1.35;
}

.who .org {
  font-weight: 600;
  font-size: 14px;
}

.who .email {
  font-size: 12.5px;
  color: var(--faint);
}

.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.page-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 4px;
}

.page-head h1 {
  font-size: 26px;
  letter-spacing: -0.02em;
  margin: 0;
}

.count-tag {
  font-size: 13px;
  color: var(--muted);
  background: var(--neutral-bg);
  padding: 3px 9px;
  border-radius: 20px;
}

.page-sub {
  color: var(--muted);
  font-size: 14.5px;
  margin: 0 0 22px;
}

/* ----- At a glance ----- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.glance {
  margin-bottom: 22px;
}

.glance-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.glance-head h2 {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
}

.segmented {
  margin-left: auto;
  display: inline-flex;
  background: var(--neutral-bg);
  border-radius: 8px;
  padding: 2px;
}

.segmented button {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.segmented button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(27, 36, 51, 0.08);
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.tile-value {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.tile-label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.tile-hint {
  font-size: 11.5px;
  color: var(--faint);
}

@media (max-width: 560px) {
  .tiles {
    grid-template-columns: repeat(2, 1fr);
  }

  .glance-head {
    flex-wrap: wrap;
  }

  .segmented {
    margin-left: 0;
  }
}

.toolbar {
  margin-bottom: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.toolbar .field {
  max-width: 320px;
}

.toolbar select.field {
  max-width: 180px;
}

/* Ticket list */

.list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.row {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.12s ease;
}

.row:last-child {
  border-bottom: none;
}

.row:hover {
  background: #fafbfd;
}

.row-id {
  font-variant-numeric: tabular-nums;
  color: var(--faint);
  font-size: 13.5px;
  font-weight: 500;
}

.row-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.row-main .subject {
  font-weight: 550;
  font-size: 15px;
  letter-spacing: -0.005em;
}

.row-main .meta {
  font-size: 12.5px;
  color: var(--faint);
  margin-top: 6px;
}

mark {
  background: #fff3b0;
  color: inherit;
  border-radius: 2px;
  padding: 0 1px;
}

@media (prefers-color-scheme: dark) {
  mark { background: #6b5a00; }
}
:root[data-theme="dark"] mark { background: #6b5a00; }

/* Status pills */

.pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: capitalize;
  padding: 4px 11px;
  border-radius: 20px;
  white-space: nowrap;
}

.pill.new,
.pill.open {
  background: var(--warn-bg);
  color: var(--warn-fg);
}

.pill.pending {
  background: var(--info-bg);
  color: var(--info-fg);
}

.pill.hold {
  background: var(--neutral-bg);
  color: var(--neutral-fg);
}

.pill.solved,
.pill.closed {
  background: var(--ok-bg);
  color: var(--ok-fg);
}

/* States */

.state {
  text-align: center;
  padding: 56px 24px;
  color: var(--muted);
}

.state h2 {
  font-size: 17px;
  color: var(--ink);
  margin: 0 0 6px;
}

.state p {
  margin: 0;
  font-size: 14px;
}

.spinner {
  width: 22px;
  height: 22px;
  border: 2.5px solid var(--border-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
  margin: 0 auto 14px;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation: none;
  }
}

/* Detail panel */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(27, 36, 51, 0.28);
  display: none;
  z-index: 20;
}

.overlay.show {
  display: block;
}

.panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 480px;
  max-width: 92vw;
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: -8px 0 30px rgba(27, 36, 51, 0.1);
  transform: translateX(100%);
  transition: transform 0.2s ease;
  z-index: 21;
  display: flex;
  flex-direction: column;
}

.panel.show {
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .panel {
    transition: none;
  }
}

.panel-head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.panel-head .grow {
  flex: 1;
}

.panel-head .tid {
  font-size: 12.5px;
  color: var(--faint);
  font-weight: 500;
}

.panel-head h2 {
  font-size: 18px;
  letter-spacing: -0.01em;
  margin: 4px 0 10px;
}

.close-x {
  appearance: none;
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  color: var(--faint);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
}

.close-x:hover {
  background: var(--neutral-bg);
  color: var(--ink);
}

.panel-body {
  padding: 22px 24px;
  overflow-y: auto;
}

.panel-body .label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 6px;
}

.panel-body .desc {
  font-size: 14.5px;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
}

.panel-body .dates {
  margin-top: 22px;
  font-size: 13px;
  color: var(--muted);
}

.panel-body .dates div {
  margin-top: 3px;
}

@media (max-width: 560px) {
  .row {
    grid-template-columns: 60px 1fr;
  }
  .row .pill {
    grid-column: 2;
    justify-self: start;
    margin-top: 4px;
  }
}

/* ----- Month grouping ----- */

.month-group {
  margin-bottom: 34px;
}

/* Sticks to the top while its own tickets scroll past, so the group a row
   belongs to is always visible. Needs an opaque background to cover them. */
.month-heading {
  position: sticky;
  top: var(--topbar-h);
  z-index: 2; /* below .topbar (5), above the ticket cards */
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 12px;
  padding: 10px 2px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.month-label {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}

.month-sub {
  font-size: 13px;
  font-weight: 500;
  color: var(--faint);
}

.month-count {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: var(--neutral-bg);
  padding: 2px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

/* ----- Expandable ticket cards ----- */

.ticket {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.ticket.open {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.ticket-head {
  width: 100%;
  display: grid;
  grid-template-columns: 74px 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 15px 18px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
}

.ticket-head:hover {
  background: #fafbfd;
}

.ticket-head:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.chev {
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--faint);
  border-bottom: 2px solid var(--faint);
  transform: rotate(-45deg);
  transition: transform 0.18s ease;
  justify-self: end;
  margin-right: 2px;
}

.ticket.open .chev {
  transform: rotate(45deg);
}

@media (prefers-reduced-motion: reduce) {
  .chev,
  .ticket {
    transition: none;
  }
}

.ticket-body {
  border-top: 1px solid var(--border);
  padding: 16px 18px 20px;
  background: #fcfdfe;
}

/* ----- Conversation thread ----- */

.thread {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comment {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
}

.comment.staff {
  border-left: 3px solid var(--accent);
}

.comment.customer {
  border-left: 3px solid var(--border-strong);
}

.c-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.c-author {
  font-weight: 600;
  font-size: 14px;
}

.c-role {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 2px 7px;
  border-radius: 20px;
}

.comment.staff .c-role {
  background: var(--accent-soft);
  color: var(--accent);
}

.comment.customer .c-role {
  background: var(--neutral-bg);
  color: var(--muted);
}

.c-date {
  font-size: 12px;
  color: var(--faint);
  margin-left: auto;
}

.c-body {
  font-size: 14.5px;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
}

.thread-empty {
  text-align: center;
  color: var(--muted);
  padding: 18px;
  font-size: 14px;
}

/* Skeleton loader */

@keyframes shimmer {
  from { background-position: -200% 0; }
  to   { background-position:  200% 0; }
}

.thread-skeleton {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sk-comment {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
}

.sk-head {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.sk-pill {
  height: 16px;
  width: 60px;
  border-radius: 20px;
  background: linear-gradient(90deg, var(--neutral-bg) 25%, #e4e8ee 50%, var(--neutral-bg) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}

.sk-pill--wide { width: 100px; }

.sk-line {
  height: 13px;
  border-radius: 4px;
  margin-bottom: 7px;
  background: linear-gradient(90deg, var(--neutral-bg) 25%, #e4e8ee 50%, var(--neutral-bg) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}

.sk-line--short { width: 55%; }

/* Attachments */

.attachments {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.att-images {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.att-img-wrap {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  line-height: 0;
}

.att-img {
  max-width: 260px;
  max-height: 200px;
  object-fit: cover;
  display: block;
}

.att-files {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.att-file {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
  font-size: 13.5px;
  background: var(--surface);
  transition: background 0.12s;
  max-width: 360px;
}

.att-file:hover { background: var(--neutral-bg); }

.att-icon { flex-shrink: 0; }

.att-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.att-size {
  font-size: 12px;
  color: var(--faint);
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 560px) {
  .ticket-head {
    grid-template-columns: 54px 1fr auto;
  }
  .ticket-head .chev {
    display: none;
  }
}

/* ----- Admin panel ----- */

.admin-link {
  padding: 6px 12px;
  font-size: 13px;
}

.admin-section {
  margin-bottom: 2.5rem;
}

.admin-section > h2 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  max-width: 520px;
}

.admin-form .field {
  margin-bottom: 10px;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.admin-table th {
  text-align: left;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  padding: 10px 14px;
  border-bottom: 2px solid var(--border);
  background: var(--bg);
  white-space: nowrap;
}

.admin-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  font-size: 14px;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover td {
  background: #fafbfd;
}

.admin-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--accent-soft);
  color: var(--accent);
}

.org-chips-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.org-chip-sm {
  font-size: 12px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--neutral-bg);
  color: var(--muted);
  white-space: nowrap;
}

.row-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.btn-sm {
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 7px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

.btn-sm:hover {
  background: var(--neutral-bg);
  color: var(--ink);
}

.btn-sm.danger {
  border-color: #fca5a5;
  color: #dc2626;
}

.btn-sm.danger:hover {
  background: #fef2f2;
}

.reset-link-box {
  margin-top: 6px;
  padding: 8px 10px;
  background: var(--ok-bg);
  border-radius: 7px;
  font-size: 12.5px;
  word-break: break-all;
  color: var(--ok-fg);
}

.reset-link-box a {
  color: var(--ok-fg);
  text-decoration: underline;
}

/* Org picker for add-user form */

.org-picker {
  position: relative;
  margin-bottom: 10px;
}

.org-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 10;
  max-height: 210px;
  overflow-y: auto;
}

.org-suggestion {
  padding: 9px 14px;
  cursor: pointer;
  font-size: 14px;
}

.org-suggestion:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.org-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.org-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  padding: 3px 8px 3px 10px;
  border-radius: 999px;
}

.org-chip button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--accent);
  font-size: 14px;
  line-height: 1;
  padding: 0;
  opacity: 0.7;
}

.org-chip button:hover {
  opacity: 1;
}

.check-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  color: var(--muted);
  cursor: pointer;
  margin-bottom: 14px;
}

.check-wrap input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: var(--accent);
}

/* Inline set-password form */

.pw-form {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 280px;
}

.pw-input {
  font: inherit;
  font-size: 13px;
  padding: 7px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  width: 100%;
}

.pw-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.pw-actions {
  display: flex;
  gap: 6px;
}

.pw-notice {
  font-size: 12.5px;
}

.pw-notice.pw-ok  { color: var(--ok-fg); }
.pw-notice.pw-err { color: #a52323; }

/* Edit panel (inline row expansion) */

.edit-row td {
  padding: 0;
  border-bottom: 2px solid var(--accent);
}

.edit-panel {
  padding: 16px 18px 18px;
  background: var(--accent-soft);
}

.edit-panel-title {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

.edit-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.edit-actions .btn {
  font-size: 14px;
  padding: 9px 16px;
}
