:root {
  /* Slate & Teal. Teal 700 is the one action color (buttons, links, selected
     tab); teal 400-500 are too light for text on white, so they only go on
     the dark menu or as fills. Everything else is slate. */
  --slate-900: #111827;
  --slate-800: #1f2937;
  --slate-700: #374151;
  --slate-600: #4b5563;
  --slate-400: #9ca3af;
  --slate-300: #d1d5db;
  --slate-200: #e5e7eb;
  --slate-50:  #f9fafb;

  --teal-50:  #f0fdfa;
  --teal-100: #ccfbf1;
  --teal-200: #99f6e4;
  --teal-300: #5eead4;
  --teal-400: #2dd4bf;
  --teal-500: #14b8a6;
  --teal-700: #0f766e;
  --teal-800: #115e59;

  --primary: var(--teal-700);        /* 5.5:1 on white */
  --primary-hover: var(--teal-800);
  --focus: var(--teal-700);          /* focus rings need 3:1 */

  /* Availability boxes: Open = teal, Evening = slate, Day = sunny amber */
  --avail-open: var(--teal-700);
  --avail-evening: var(--slate-900);
  --avail-day: #fbbf24;     --avail-day-ink: #3d2800; /* amber, dark text */

  /* Geist for text, Geist Mono for numbers that line up in columns */
  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-rounded: var(--font-sans);

  --bg: #f6f7f9;
  --card: #fff;
  --border: var(--slate-200);
  --text: var(--slate-900);
  --muted: var(--slate-600);

  /* Status: fills for dots and borders; small text uses ink on tint */
  --success: #059669; --success-tint: #ecfdf5; --success-ink: #065f46;
  --warning: #d97706; --warning-tint: #fef3c7; --warning-ink: #92400e;
  --danger:  #dc2626; --danger-tint:  #fef2f2; --danger-ink:  #b91c1c;
  /* Days off (time off): soft violet, one look whatever the request status.
     Not grey: grey already means "not available" on the schedule. */
  --off-tint: #efeaff; --off-ink: #5636c9;

  /* Dark side menu */
  --sidebar-bg: var(--slate-900);
  --sidebar-text: var(--slate-200);
  --sidebar-muted: var(--slate-400);
  --sidebar-hover: var(--slate-800);
  --sidebar-active: var(--teal-300);  /* 9.9:1 on slate 800 */

  /* Crisp, slightly rounded corners; borders rather than shadows */
  --radius-sm: 8px;
  --radius: 10px;
  --radius-lg: 12px;
  --shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
button, input, select, textarea { font-family: inherit; }

body {
  margin: 0;
  display: flex;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
}

.sidebar {
  width: 232px;
  flex-shrink: 0;
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
/* The Pebblefy wordmark: "pebble" with the mint "fy" chip, same as the website */
.brand { display: flex; align-items: flex-start; gap: 3px; font-family: 'Sora', sans-serif; color: #fff; padding: 4px 10px 0; }
.brand-word { font-size: 24px; font-weight: 600; letter-spacing: -0.8px; line-height: 1; }
.brand-fy { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 15px; padding-bottom: 2px; box-sizing: border-box; margin-top: -3px; font-size: 11px; font-weight: 700; line-height: 1; background: var(--teal-300); color: #1C2321; border-radius: 4px; }
.sidebar .tenant-switcher { display: flex; flex-direction: column; gap: 4px; padding: 0 4px; }
.sidebar .tenant-switcher label, .nav-group-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sidebar-muted);
}
.sidebar .tenant-switcher select {
  min-height: 44px; padding: 0 10px; border: 1px solid var(--slate-700); border-radius: var(--radius-sm);
  background: var(--slate-800); color: var(--slate-50); font: inherit; font-size: 14px; cursor: pointer;
}
.sidebar nav { display: flex; flex-direction: column; gap: 18px; flex-grow: 1; }
.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-group-label { padding: 0 12px 6px; }
.nav-footer { border-top: 1px solid var(--slate-700); padding-top: 12px; flex-grow: 0; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  color: var(--sidebar-text);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
}
.nav-icon { flex: none; width: 18px; height: 18px; }
.nav-item:hover { background: var(--sidebar-hover); color: #fff; }
.nav-item.active { color: var(--sidebar-active); background: var(--sidebar-hover); font-weight: 600; }
.nav-item.disabled { color: var(--sidebar-muted); cursor: default; }
.nav-item.disabled:hover { background: none; color: var(--sidebar-muted); }
.nav-soon { margin-left: auto; font-size: 11px; color: var(--sidebar-muted); }
.sidebar .nav-item:focus-visible { outline: 2px solid var(--teal-400); outline-offset: 1px; }

.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}
.topbar h1 { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.content { padding: 24px 28px; }

.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }

/* Headings stay slate; teal is kept for actions */
.content h2, .content h3, .content h4, .menu-title, .form h2 { color: var(--text); }
.profile-id h2 { color: var(--text); }
a { color: var(--primary); }
a:hover { color: var(--primary-hover); }
.placeholder { padding: 24px; }

.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.muted { color: var(--muted); }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-weight: 600; color: var(--muted); background: var(--slate-50); }
.table th, .table td { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: var(--slate-50); }
.empty { text-align: center; color: var(--muted); padding: 32px; }
.table tr.clickable { cursor: pointer; }
.table tr.clickable a { color: inherit; text-decoration: none; font-weight: 500; }
/* The whole row is the click target; the name stays plain text on hover
   (still a real link underneath, so keyboard users can tab to it) */
.table tr.clickable a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

/* Employee profile */
.back-link { display: inline-block; margin-bottom: 12px; color: var(--muted); text-decoration: none; font-size: 14px; }
.back-link:hover { color: var(--text); }
.profile-header { display: flex; align-items: center; gap: 16px; padding: 20px 24px; margin-bottom: 16px; flex-wrap: wrap; }
.avatar {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--teal-100); color: var(--teal-800); font-weight: 700; font-size: 20px;
}
.profile-id { flex: 1; min-width: 180px; }
.profile-id h2 { margin: 0 0 2px; font-size: 20px; }
.section { padding: 20px 24px; margin-bottom: 16px; }
.section h3 { margin: 0 0 16px; font-size: 15px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px 24px; margin: 0; }
.field dt { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.field dd { margin: 0; font-size: 14px; }
.chip { display: inline-block; padding: 2px 10px; margin: 0 6px 6px 0; border-radius: 999px; background: var(--teal-50); color: var(--teal-800); font-size: 12px; }
.badge.warning { background: var(--warning-tint); color: var(--warning-ink); margin-left: 6px; }
.badge.danger { background: var(--danger-tint); color: var(--danger-ink); margin-left: 6px; }
.form.profile-form { padding: 0; gap: 0; }
.form.profile-form .section label { flex: none; }
.error-list { margin: 0 0 16px; padding: 12px 16px 12px 32px; background: var(--danger-tint); color: var(--danger-ink); border-radius: var(--radius); font-size: 14px; }

.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge.active { background: var(--success-tint); color: var(--success-ink); }
.badge.inactive { background: #eceef1; color: #4b5563; }

.btn { display: inline-block; text-decoration: none; color: var(--text); padding: 9px 18px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: #fff; cursor: pointer; font-size: 14px; transition: background 0.15s, border-color 0.15s, color 0.15s; }
.btn:hover { border-color: #c4c9d2; color: var(--text); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 500; }
.btn.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; }
.btn:focus-visible, .nav-item:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

dialog { border: none; border-radius: var(--radius-lg); padding: 0; width: min(440px, 92vw); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2); }
dialog::backdrop { background: rgba(0, 0, 0, 0.35); }
.form { display: flex; flex-direction: column; gap: 12px; padding: 24px; }
.form h2 { margin: 0 0 4px; font-size: 18px; }
.form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); flex: 1; }
.form input, .form select { padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; color: var(--text); }
.form .row { display: flex; gap: 12px; }
.form .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.error { color: var(--danger-ink); margin: 0; font-size: 14px; }

@media (max-width: 700px) {
  body { flex-direction: column; }
  .sidebar { width: 100%; padding: 12px; gap: 12px; }
  .sidebar nav { flex-direction: row; overflow-x: auto; gap: 4px; }
  .nav-group { flex-direction: row; gap: 4px; }
  .nav-group-label, .nav-soon { display: none; }
  .nav-footer { border-top: none; padding-top: 0; }
  .nav-item { white-space: nowrap; }
  .topbar { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 16px; }
  .content { padding: 16px; }
}

/* Tag picker */
.field-block { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; }
.field-block .label { font-size: 13px; color: var(--muted); }
.hint { font-size: 12px; color: var(--muted); }
.tag-input { position: relative; }
.tag-box {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  min-height: 40px; padding: 5px 8px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; cursor: text;
}
.tag-box:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.18); }
.tag-box .chip { margin: 0; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; }
.chip-remove { border: none; background: none; color: inherit; cursor: pointer; padding: 0 2px; font-size: 15px; line-height: 1; opacity: 0.6; }
.chip-remove:hover { opacity: 1; }
.form .tag-box .tag-entry { flex: 1; min-width: 140px; border: none; outline: none; padding: 4px 2px; }
/* Employee profile edit: every box the same height, font and look */
.profile-form :is(input:not([type="checkbox"]):not([type="hidden"]), select) {
  box-sizing: border-box; width: 100%; height: 38px; margin: 0; padding: 0 10px;
  font: inherit; font-size: 14px; line-height: normal; background-color: #fff;
}
.profile-form .tag-box { box-sizing: border-box; min-height: 38px; padding-top: 3px; padding-bottom: 3px; align-items: center; }
.profile-form .tag-box .tag-entry { height: 30px; padding: 0 2px; }
.tag-menu {
  position: absolute; z-index: 10; left: 0; right: 0; top: calc(100% + 4px);
  margin: 0; padding: 4px 0; list-style: none; max-height: 320px; overflow-y: auto;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1); font-size: 14px;
}
.tag-menu li { padding: 8px 12px; cursor: pointer; }
.tag-menu li.highlighted { background: var(--teal-50); }
.tag-menu li.create { color: var(--primary); font-weight: 600; }
.tag-menu li.empty-option { color: var(--muted); cursor: default; }

/* Scheduling */
.schedule-page { max-width: 1280px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.section-head h3 { margin: 0; }
/* Saved confirmations: a small green pill on the right of the section
   header, so it doesn't read as part of the (blue) heading */
.saved-flash, .sheet-status:not(:empty) {
  display: inline-flex; align-items: center; gap: 6px; margin-left: auto;
  padding: 3px 10px 3px 8px; border-radius: 999px;
  font-size: 12.5px; font-weight: 500; line-height: 1.4;
  background: var(--success-tint); color: var(--success-ink);
}
.saved-flash::before, .sheet-status[data-state="saved"]::before {
  content: "✓"; display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%;
  background: var(--success); color: #fff; font-size: 10px; font-weight: 700;
}
.sheet-status[data-state="saving"] { background: #eef0f3; color: var(--muted); }
.sheet-status[data-state="invalid"] { background: var(--warning-tint); color: var(--warning-ink); }
.sheet-status[data-state="error"] { background: var(--danger-tint); color: var(--danger-ink); }
.section-head .saved-flash ~ .btn, .section-head .saved-flash ~ div, .section-head .sheet-status ~ * { margin-left: 0; }
.saved-flash { animation: saved-fade 0.4s ease-out; }
@keyframes saved-fade { from { opacity: 0; transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { .saved-flash { animation: none; } }
.inline-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.inline-form select, .inline-form input { padding: 7px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; color: var(--text); background: #fff; }
.review-next { margin: 14px 0 4px; font-size: 14px; }
code { background: #f1f3f5; padding: 1px 5px; border-radius: var(--radius-sm); font-size: 12.5px; }

.form.rules-form { padding: 0; gap: 0; }
.rule-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px 24px; }
.form.rules-form label { flex: none; }
.with-unit { display: flex; align-items: center; gap: 6px; }
.with-unit input { width: 100%; }
.unit { font-size: 13px; color: var(--muted); }
.subhead { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 24px 0 8px; }
.subhead h4, .checks-head { margin: 0; font-size: 14px; }
.checks-head { margin: 20px 0 8px; }
.table-scroll { overflow-x: auto; position: relative; } /* contains absolutely positioned children */
.coverage-table { border-collapse: collapse; width: 100%; font-size: 14px; }
.coverage-table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 0 6px 6px; }
.coverage-table td { padding: 4px 6px; vertical-align: middle; }
.form .coverage-table input, .form .coverage-table select { padding: 6px 8px; }
.coverage-table .time-input { width: 72px; }
.coverage-table .num-input { width: 64px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: #fff; color: var(--muted); cursor: pointer;
  font-size: 18px; line-height: 1; text-decoration: none;
}
.icon-btn:hover { color: var(--text); background: #f6f7f9; }
.btn.add-row { margin-top: 8px; align-self: flex-start; }
.notes-label { margin-top: 20px; }
.form textarea { padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); font: inherit; font-size: 14px; color: var(--text); resize: vertical; }

/* Spreadsheet grid */
.sheet { border-collapse: collapse; font-size: 13.5px; min-width: 760px; width: 100%; }
.sheet th, .sheet td { border: 1px solid #dfe3e8; }
.sheet thead th { background: #f6f7f9; font-weight: 600; color: var(--muted); padding: 7px 8px; text-align: center; font-size: 12.5px; }
.sheet thead th .date { display: block; font-weight: 400; font-size: 11.5px; }
.sheet .name-col {
  text-align: left; background: var(--slate-50); font-weight: 500; padding: 7px 10px; white-space: nowrap;
  position: sticky; left: 0; z-index: 1; min-width: 150px;
}
.emp-type { display: block; font-size: 11px; color: var(--muted); font-weight: 400; }
.sheet td { padding: 0 8px; text-align: center; height: 38px; white-space: nowrap; }
.sheet td.filled { background: var(--teal-50); }
.sheet td.invalid { background: #fff0f4; box-shadow: inset 0 0 0 2px var(--danger); }
.sheet .total-col { background: var(--slate-50); font-weight: 600; width: 70px; padding: 0 8px; }
.sheet tfoot th, .sheet tfoot td { background: #f6f7f9; font-weight: 600; color: var(--muted); padding: 7px 8px; }
.sheet.readonly td { padding: 7px 6px; white-space: nowrap; }

.issues { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.issue { display: flex; align-items: baseline; gap: 8px; }
.issue-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; transform: translateY(-1px); }
.issue.error .issue-dot { background: var(--danger); }
.issue.warning .issue-dot { background: var(--warning); }
.all-clear { display: inline-block; margin: 0; padding: 4px 12px; border-radius: 999px; background: var(--success-tint); color: var(--success-ink); font-size: 13px; font-weight: 500; }

.week-nav { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; }
.inputs-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 24px; font-size: 14px; padding: 12px 14px; background: var(--slate-50); border: 1px solid var(--border); border-radius: var(--radius); }
.inputs-summary .label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.inputs-summary + .hint { display: block; margin: 8px 0 16px; }
.chip.time-off { background: var(--off-tint); color: var(--off-ink); }
.generate-form { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.generating { display: flex; align-items: center; gap: 10px; padding: 14px; background: var(--teal-50); border-radius: var(--radius); font-size: 14px; margin-bottom: 16px; }
.spinner { width: 16px; height: 16px; border: 2px solid var(--teal-200); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ai-notes { margin: 0; padding-left: 20px; font-size: 14px; display: flex; flex-direction: column; gap: 4px; }
.empty-ai { margin: 0; }

/* Employee list: column picker */
.toolbar-actions { display: flex; align-items: center; gap: 8px; }
.column-picker { position: relative; }
.gear-btn[aria-expanded="true"] { color: var(--text); background: #f0f2f5; }
.column-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: 290px;
  max-height: min(560px, 75vh); overflow-y: auto; padding: 16px 16px 12px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.column-menu-hint { margin: 0 0 8px; font-size: 13.5px; color: var(--muted); }
.column-list { list-style: none; margin: 0; padding: 0; }
.column-item { display: flex; align-items: center; gap: 8px; border-radius: var(--radius-sm); background: #fff; }
.column-list.is-dragging { cursor: grabbing; }
.column-item.dragging { background: var(--teal-50); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); position: relative; z-index: 1; }
.drag-handle {
  flex: none; display: grid; place-items: center; width: 22px; height: 30px; padding: 0;
  border: none; background: none; color: #5f6b7a; cursor: grab; border-radius: var(--radius-sm); touch-action: none;
}
.drag-handle:hover { color: var(--text); background: #f0f2f5; }
.drag-handle:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.check-option, .radio-option {
  position: relative; flex: 1; display: flex; align-items: center; gap: 12px; padding: 5px 4px; font-size: 15px;
  color: var(--text); cursor: pointer; user-select: none;
}
.check-option input, .radio-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-box {
  flex: none; width: 20px; height: 20px; border: 1.5px solid #c4c9d0; border-radius: var(--radius-sm);
  background: #fff; display: grid; place-items: center; transition: background 0.1s, border-color 0.1s;
}
.check-option input:checked + .check-box { background: var(--primary); border-color: var(--primary); }
.check-option input:checked + .check-box::after {
  content: ""; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0;
  transform: translate(0, -1px) rotate(45deg);
}
.check-option input:focus-visible + .check-box,
.radio-option input:focus-visible + .radio-dot { outline: 2px solid var(--primary); outline-offset: 2px; }
.name-format { border: none; margin: 16px 0 0; padding: 0; }
.name-format legend { padding: 0; margin-bottom: 6px; font-size: 15px; font-weight: 700; color: var(--text); }
.radio-option { padding: 6px 0; }
.radio-dot {
  flex: none; width: 20px; height: 20px; border: 1.5px solid #c4c9d0; border-radius: 50%;
  background: #fff; display: grid; place-items: center;
}
.radio-option input:checked + .radio-dot { border-color: var(--primary); }
.radio-option input:checked + .radio-dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); }
.link-btn { display: block; margin: 12px 0 0; padding: 0; border: none; background: none; color: var(--primary); font-size: 13px; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.employee-table td, .employee-table th { white-space: nowrap; }
.employee-table .chip { margin: 0 4px 0 0; }
.card.table-scroll { overflow-x: auto; }
/* A card holding a pick-list (e.g. Skills on the employee profile) lets
   the list open past its bottom edge instead of cutting it off */
.card:has(.tag-input) { overflow: visible; position: relative; z-index: 2; }
.employee-table thead th { font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.employee-table .name-cell { display: inline-flex; align-items: center; gap: 12px; }
.avatar.sm { width: 34px; height: 34px; font-size: 13px; font-weight: 600; flex: none; }
.employee-table .badge { font-weight: 500; }
.skill-codes-inline { margin-right: 6px; font-family: var(--font-rounded); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: var(--primary); }
.list-count { margin: 0; font-size: 14px; color: var(--muted); }
.list-count strong { font-weight: 500; color: var(--text); }
.toolbar { flex-wrap: wrap; gap: 12px; }
.toolbar-actions .gear-btn { width: 44px; height: 44px; border-radius: var(--radius-sm); }
.toolbar-actions .btn { min-height: 44px; display: inline-flex; align-items: center; }

/* Availability */
.shift-hours { margin-top: 18px; }
.shift-hours-hint { margin: 6px 0 0; }
.availability-table { border-collapse: collapse; width: 100%; min-width: 940px; font-size: 14px; }
.availability-table th {
  text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase;
  letter-spacing: 0.04em; padding: 0 3px 10px; border-bottom: 2px solid var(--border);
}
.availability-table td { padding: 6px 3px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.availability-table select, .availability-table input {
  padding: 6px 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); font: inherit; font-size: 13.5px;
  color: var(--text); background: #fff; max-width: 100%;
}
.availability-table select[name="employee_id"] { width: 132px; }
.time-off-table select[name="employee_id"] { width: 190px; }
.availability-table input[type="date"] { width: 118px; padding-left: 6px; padding-right: 4px; }
.availability-table tr.incomplete td:first-child select, .availability-table tr.incomplete [name="start_date"] { border-color: var(--warning); }
.availability-table tr.has-error input, .availability-table tr.has-error select[name="employee_id"] { border-color: var(--danger); }
.end-cell { position: relative; }
.end-cell input.is-empty:not(:focus) { color: transparent; }
.end-cell input.is-empty:not(:focus) + .ongoing { display: block; }
.ongoing {
  display: none; position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 13.5px; pointer-events: none;
}
/* Day bubbles: same look and spacing as the Staffing Template bubbles
   (8px padding, hours on a 22px top line, a 22px box 6px below) */
.availability-table td.day-cell { padding: 6px 3px; }
.day-bubble {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px; width: 100%; min-width: 74px; height: 68px;
  box-sizing: border-box; padding: 8px; border: 1px solid #e6e8ec; border-radius: var(--radius);
  background: #f7f8fa; color: var(--text); text-align: left; cursor: pointer; /* one neutral look for every day */
  transition: border-color 0.15s, box-shadow 0.15s;
}
.day-bubble:hover { border-color: var(--teal-500); }
.day-bubble:focus-visible { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15); }
.day-hours { height: 22px; line-height: 22px; font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; letter-spacing: -0.01em; }
.day-chip {
  display: inline-flex; align-items: center; justify-content: center; height: 22px; padding: 0 5px; border-radius: 6px;
  background: var(--primary); color: #fff; font-family: var(--font-rounded); font-size: 11px; font-weight: 700; letter-spacing: 0;
}
/* Only the small box is colour-coded */
[data-value="open"] > .day-chip { background: var(--avail-open); }
[data-value="day"] > .day-chip { background: var(--avail-day); color: var(--avail-day-ink); }
[data-value="evening"] > .day-chip { background: var(--avail-evening); }
.day-bubble[data-value="unavailable"] .day-hours { color: var(--muted); font-weight: 500; }
[data-value="unavailable"] > .day-chip { background: var(--muted); }
/* Day picker list */
.day-pop { width: 230px; }
.pop-days { display: flex; flex-direction: column; gap: 2px; }
.pop-day { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border: none; border-radius: 8px; background: none; text-align: left; cursor: pointer; color: var(--text); }
.pop-day:hover { background: var(--bg); }
.pop-day[aria-pressed="true"] { background: var(--teal-50); }
.pop-day .day-chip { min-width: 56px; }
.pop-day-text { display: flex; flex-direction: column; font-size: 14px; }
.pop-day-name { font-weight: 500; }
.pop-day-hours { font-size: 12px; color: var(--muted); }
.pop-day-hours:empty { display: none; }
/* Row actions: Edit (pencil) when locked; Done (check) + Delete while editing */
.availability-table .row-actions { white-space: nowrap; width: 1%; }
.availability-table .row-actions .icon-btn { width: 32px; height: 32px; border-radius: 999px; vertical-align: middle; }
.availability-table .row-actions .icon-btn { display: grid; }
.availability-table .row-actions .icon-btn + .icon-btn { margin-top: 4px; } /* Done above Delete, so the column stays one button wide */
.row-edit .when-editing, .row-edit.is-editing .when-locked { display: none; }
.row-edit.is-editing .when-editing { display: inline; }
.row-edit .when-locked, .row-edit .when-editing { line-height: 0; }
.row-edit.is-editing { background: var(--primary); border-color: var(--primary); color: #fff; }
.row-edit.is-editing:hover { background: var(--primary-hover); color: #fff; }
.delete-period:hover { border-color: var(--danger); color: var(--danger-ink); }
.add-period { margin-top: 12px; font-size: 14px; font-weight: 600; }
.add-period:disabled { opacity: 0.5; cursor: not-allowed; }
.empty-periods { margin: 12px 0 0; }

/* Schedule Template: availability in cells */

/* Scheduling: jump links to each section */
.section-nav {
  position: sticky; top: 0; z-index: 15; display: flex; gap: 4px; overflow-x: auto;
  margin: -8px 0 16px; padding: 8px 0; background: var(--bg);
}
.section-nav a {
  flex: none; padding: 6px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 500;
  color: var(--muted); text-decoration: none; border: 1px solid var(--border); background: #fff;
}
.section-nav a:hover { color: var(--text); border-color: #b8c0ca; }
.schedule-page .section { scroll-margin-top: 64px; }
.schedule-page .section-head h3 { font-size: 18px; font-weight: 600; }
.schedule-page .week-nav .icon-btn { width: 44px; height: 44px; border-radius: var(--radius-sm); }
.generate-form .btn { min-height: 44px; display: inline-flex; align-items: center; }

/* Availability: empty state */
.availability-empty { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 16px; border: 1px dashed #cfd5dc; border-radius: var(--radius); background: var(--slate-50); }
.availability-empty p { margin: 0; font-size: 14px; color: var(--muted); }

/* Store Profile: hours */
.store-page { max-width: 640px; }
.hours-table { border-collapse: collapse; width: 100%; font-size: 14px; }
.hours-table th, .hours-table td { padding: 8px 6px; border-bottom: 1px solid var(--border); text-align: left; }
.hours-table thead th { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.hours-table tbody th { font-weight: 600; width: 130px; }
.hours-table input[type="time"] { padding: 6px 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); font: inherit; color: var(--text); }
.hours-table tr.is-closed input[type="time"] { opacity: 0.4; }
.hours-table tr.is-closed th { color: var(--muted); }
.closed-toggle { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--muted); }
.closed-toggle input { accent-color: var(--primary); width: 16px; height: 16px; }
.hours-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.hours-actions .link-btn { margin: 0; }
.hours-buttons { display: flex; gap: 8px; margin-left: auto; }
.hours-view td { color: var(--text); }
/* Read-only hours: each time is "h:mm" right-aligned (so the colons line
   up) followed by AM/PM in its own column, with the dash in a fixed column */
.hours-view { width: auto; min-width: 380px; }
.hours-view .hv-clockout { padding-left: 32px; text-align: left; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hours-view td, .hours-view th { padding-left: 0; padding-right: 0; }
.hours-view tbody th, .hours-view thead th:first-child { padding-left: 6px; padding-right: 24px; }
.hours-view .hv-time { width: 48px; text-align: right; font-variant-numeric: tabular-nums; }
.hours-view .hv-ampm { width: 34px; padding-left: 5px; text-align: left; font-size: 12px; font-weight: 600; letter-spacing: 0.03em; color: var(--muted); }
.hours-view .hv-sep { width: 36px; text-align: center; color: var(--muted); }
/* Opens / Closes headings centred over their time + AM/PM columns */
.hours-view thead .hv-time { text-align: center; padding-left: 0; }
.hours-view .hv-span { text-align: center; }
.hours-view tr.is-closed td { color: var(--muted); }
.section-nav a[aria-current="page"] { color: #fff; background: var(--primary); border-color: var(--primary); }
/* Underlined tabs (Employees) */
.section-nav.underline { gap: 6px; margin: -8px 0 16px; padding: 8px 0 0; border-bottom: 1px solid var(--border); }
.section-nav.underline a { padding: 10px 14px; border: none; border-bottom: 4px solid transparent; border-radius: 0; background: none; font-size: 14px; font-weight: 400; margin-bottom: -1px; }
.section-nav.underline a:hover { color: var(--text); border-bottom-color: #b8c0ca; }
.section-nav.underline a[aria-current="page"] { color: var(--primary); background: none; border-bottom-color: var(--primary); font-weight: 500; }

/* Rules page: Staffing Template grid */
.skill-grid { table-layout: fixed; min-width: 1000px; }
.skill-grid th:first-child { width: 78px; }
.skill-grid .shift-label .remove-row { width: 22px; height: 22px; padding: 0; margin-left: 2px; vertical-align: middle; opacity: 0.5; border-radius: 999px; }
.icon-btn svg { display: block; pointer-events: none; }
.skill-grid tr:hover .shift-label .remove-row, .skill-grid .shift-label .remove-row:focus-visible { opacity: 1; }
.skill-grid .shift-label { font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; padding-left: 0; vertical-align: middle; }
.skill-grid .skill-cell { padding: 4px; vertical-align: top; }
.skill-grid thead th { text-align: center; }
/* One rounded box per shift/day: time on top, skill underneath */
.slot-box {
  display: flex; flex-direction: column; border: 1px dashed #cfd4dc; border-radius: var(--radius);
  background: var(--slate-50); overflow: hidden; transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.slot-box.filled { border: 1px solid var(--teal-100); background: var(--teal-50); }
.slot-box:focus-within { border-style: solid; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15); }
.form .skill-grid .slot-box input {
  display: block; width: 100%; min-width: 0; border: none; border-radius: 0; background: transparent;
  font: inherit; outline: none; text-align: center;
}
/* Top line: time on the left, preferred person (initials) on the right */
/* Every bubble the same size: 8px padding all round, two 22px rows, 6px apart */
.skill-grid .slot-box { box-sizing: border-box; height: 68px; padding: 8px; gap: 6px; justify-content: flex-start; }
.slot-top { display: flex; align-items: center; justify-content: space-between; gap: 2px; height: 22px; }
.time-btn {
  flex: 1; min-width: 0; height: 22px; margin: 0; padding: 0; border: none; background: none; line-height: 22px;
  font-size: 12px; font-weight: 600; color: var(--text); text-align: left; white-space: nowrap; letter-spacing: -0.01em;
  overflow: hidden; text-overflow: ellipsis; cursor: pointer; border-radius: 6px;
}
.time-btn.is-empty { color: #8a919c; font-weight: 500; }
.time-btn:hover { color: var(--primary); }
.time-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.person-btn {
  flex: none; width: 26px; height: 22px; padding: 0; border: 1px dashed var(--border); border-radius: 6px;
  background: rgba(255, 255, 255, 0.6); font-size: 11px; font-weight: 700; color: #8a919c; cursor: pointer;
}
.person-btn.is-set { border-style: solid; border-color: var(--success); background: var(--success-tint); color: var(--success-ink); }
.person-btn:hover { border-color: var(--primary); }
.person-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
/* Picked skills: blue boxes with white text, like the legend */
.skill-chips { display: flex; align-items: center; height: 22px; }
.chips-btn {
  display: flex; flex-wrap: nowrap; gap: 3px; max-width: 100%; overflow: hidden; margin: 0; padding: 0;
  border: none; border-radius: 6px; background: none; cursor: pointer;
}
.chips-btn:hover { box-shadow: 0 0 0 2px var(--teal-500); }
.chips-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.chips-btn .skill-chip { flex: none; }
.skill-chip {
  display: inline-flex; align-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 6px;
  background: var(--primary); color: #fff; font-family: var(--font-rounded); font-size: 11px; font-weight: 700;
  letter-spacing: 0.04em; justify-content: center; line-height: 1;
}
.skill-chip.no-code { background: #c4c9d2; }
.chip-add {
  margin: 0; width: 22px; height: 22px; padding: 0; border: 1px dashed #b8c0ca; border-radius: 6px; background: rgba(255,255,255,0.7);
  color: var(--primary); font-size: 15px; font-weight: 600; line-height: 1; cursor: pointer;
}
.chip-add:hover { border-style: solid; border-color: var(--primary); background: #fff; }
.chip-add:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
/* Shared popover for picking a bubble's time or skills */
.bubble-pop {
  position: absolute; z-index: 50; width: 250px; padding: 14px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: 0 10px 30px rgba(11, 12, 14, 0.14); display: flex; flex-direction: column; gap: 10px;
}
.bubble-pop[hidden] { display: none; }
.pop-title { margin: 0; font-size: 13px; font-weight: 600; display: flex; justify-content: space-between; }
.pop-count { color: var(--muted); font-weight: 400; }
.pop-skills { display: flex; flex-direction: column; gap: 2px; max-height: 260px; overflow-y: auto; }
.pop-skill { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border: none; border-radius: 8px; background: none; font-size: 14px; color: var(--text); text-align: left; cursor: pointer; }
.pop-skill:hover:not(:disabled) { background: var(--bg); }
.pop-skill[aria-pressed="false"] .skill-chip { background: #fff; color: var(--primary); box-shadow: inset 0 0 0 1px var(--teal-100); }
.pop-skill[aria-pressed="false"] .skill-chip.no-code { color: var(--muted); }
.pop-skill[aria-pressed="true"] { background: var(--teal-50); font-weight: 500; }
.pop-skill:disabled { opacity: 0.45; cursor: default; }
.pop-done { align-self: flex-end; min-height: 36px; }
.pop-times { display: flex; gap: 10px; }
.pop-times label { flex: 1; display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.pop-times select { padding: 7px 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; color: var(--text); background: #fff; }
.pop-actions { display: flex; justify-content: flex-end; gap: 8px; }
.pop-actions .btn { min-height: 36px; }
.coverage-table .date-input { width: 136px; }

/* AI-generated schedule: unavailable days */
.sheet.readonly td.na { background: #eceef1; color: #8a929c; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; }
.sheet.readonly td.off { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; }
.sheet.readonly td.off { background: var(--off-tint); color: var(--off-ink); }
.sheet.readonly td.off.conflict { text-decoration: line-through; box-shadow: inset 0 0 0 2px var(--danger); font-size: inherit; font-weight: normal; letter-spacing: normal; }
.sheet.readonly td.na.conflict { color: var(--danger-ink); text-decoration: line-through; box-shadow: inset 0 0 0 2px var(--danger); font-size: inherit; font-weight: normal; letter-spacing: normal; }

/* Configuration */
.config-page { max-width: 860px; }
.config-detail { margin: 10px 0 0; font-size: 14px; }

/* Time Off */
.time-off-table { min-width: 720px; }
/* Locked (not editing): fields read as plain text, no Delete column */
:is(.availability-table.locked, .availability-table tr.locked) .edit-only { display: none; }
:is(.availability-table.locked, .availability-table tr.locked) :is(input, select:not(.status-select)):disabled {
  border-color: transparent; background-color: transparent; color: var(--text); opacity: 1;
  appearance: none; -webkit-appearance: none; background-image: none; cursor: default; padding-left: 0; width: auto; max-width: none;
}
:is(.availability-table.locked, .availability-table tr.locked) input[type="date"]::-webkit-calendar-picker-indicator { display: none; }
.availability-table tr.locked .end-cell .ongoing { left: 0; }
/* Name: full text in locked rows (wraps to two lines if long), the dropdown while editing.
   The column is 132px either way, so the table never shifts. */
.availability-table .name-cell { width: 132px; }
.availability-table .row-name { display: none; width: 132px; font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; }
.availability-table tr.locked .row-name { display: block; }
.availability-table tr.locked select[name="employee_id"] { display: none; }
.time-off-table.locked .status-select:disabled { appearance: none; -webkit-appearance: none; background-image: none; opacity: 1; cursor: default; padding: 3px 12px; border-radius: 999px; width: auto; font-weight: 600; }
/* Dates in black, locked or editing */
.availability-table input[type="date"], .availability-table input[type="date"]::-webkit-datetime-edit,
.availability-table input[type="date"]::-webkit-datetime-edit-fields-wrapper,
.availability-table input[type="date"]::-webkit-datetime-edit-text,
.availability-table input[type="date"]::-webkit-datetime-edit-month-field,
.availability-table input[type="date"]::-webkit-datetime-edit-day-field,
.availability-table input[type="date"]::-webkit-datetime-edit-year-field { color: #000; -webkit-text-fill-color: #000; }
/* …except a blank end date, which shows "ongoing" instead */
.availability-table .end-cell input.is-empty:not(:focus),
.availability-table .end-cell input.is-empty:not(:focus)::-webkit-datetime-edit,
.availability-table .end-cell input.is-empty:not(:focus)::-webkit-datetime-edit-fields-wrapper,
.availability-table .end-cell input.is-empty:not(:focus)::-webkit-datetime-edit-text,
.availability-table .end-cell input.is-empty:not(:focus)::-webkit-datetime-edit-month-field,
.availability-table .end-cell input.is-empty:not(:focus)::-webkit-datetime-edit-day-field,
.availability-table .end-cell input.is-empty:not(:focus)::-webkit-datetime-edit-year-field { color: transparent; -webkit-text-fill-color: transparent; }
.time-off-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.time-off-actions .danger-btn { margin-right: 0; }
/* Sortable headings */
.time-off-table th .sort-btn {
  all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; font: inherit; color: inherit;
}
.time-off-table th .sort-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
.time-off-table .sort-arrow::after { content: "↕"; opacity: 0.35; font-size: 11px; }
.time-off-table th[aria-sort="ascending"] .sort-arrow::after { content: "▲"; opacity: 0.8; font-size: 9px; }
.time-off-table th[aria-sort="descending"] .sort-arrow::after { content: "▼"; opacity: 0.8; font-size: 9px; }
.time-off-table .status-select[data-value="published"] { background: var(--danger-tint); border-color: #ffc2d3; color: var(--danger-ink); }
.time-off-table .status-select[data-value="pending"] { background: var(--warning-tint); border-color: #f2dfa8; color: var(--warning-ink); }
.config-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap;
  padding: 14px 0 4px; border-top: 1px solid var(--border); margin-top: 12px; }
.config-label { font-size: 14px; font-weight: 600; display: flex; flex-direction: column; gap: 2px; }
.config-sub { font-size: 12px; font-weight: 400; color: var(--muted); }
.config-value { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.secret-mask { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 1px; color: var(--text); }
.config-edit { flex: 1 1 320px; display: flex; flex-direction: column; gap: 10px; max-width: 460px; }
.config-edit input { padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); font: inherit; font-size: 14px; }
.config-edit .error { margin: 0; }
.config-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.custom-features-empty { margin: 4px 0 0; font-size: 14px; }
/* Configuration: Custom Features (tracking list) */
.custom-feature-list .feature-text { display: flex; flex-direction: column; gap: 3px; }
.custom-source .source-label { font-weight: 600; color: var(--text); margin-right: 4px; }
.settings-view.one-column { grid-template-columns: 1fr; gap: 12px; }
.status-detail { display: block; margin-top: 4px; }
/* Configuration: E-mail */
.email-form { padding: 0; }
/* One address per row, in view and edit mode */
.email-grid { display: grid; grid-template-columns: minmax(0, 420px); gap: 14px; margin-bottom: 12px; }
#emails .settings-view { grid-template-columns: 1fr; gap: 14px; }
.email-grid input { width: 100%; }
.danger-link { color: var(--danger-ink); margin: 0 auto 0 0; }

/* Store Profile: business details */
.form.details-form { padding: 0; }
.form.details-form label { flex: none; }
.details-form .hint { font-size: 12px; }

/* AI-generated schedule: framed grid */
.ai-schedule-frame { border: 1px solid #cfd5dc; border-radius: var(--radius-lg); padding: 10px; background: #fff; max-width: 1200px; }

/* Employees: Employee Attributes tab */
.attributes-page { max-width: 720px; }
.attributes-table input[name^="name_"], .ratings-table input { width: 100%; min-width: 200px; }
.attributes-table .code-input { width: 70px; text-align: center; font-weight: 600; }
/* Employee Attributes: the three tables share one column grid, so names
   start, codes and "Used by" line up from section to section */
.attributes-table { table-layout: fixed; width: 100%; }
.attributes-table th, .attributes-table td { vertical-align: middle; }
.attributes-table thead th { text-align: left; }
.skills-table th:nth-child(1) { width: auto; }
.skills-table th:nth-child(2) { width: 120px; }
.skills-table th:nth-child(3), .titles-table th:nth-child(2) { width: 160px; }
.ratings-table th:nth-child(1) { width: 120px; }
.attributes-table .rating-number { text-align: left; }
.attributes-view td, .attributes-view th { height: 42px; padding-top: 0; padding-bottom: 0; }
.attributes-table input:not([type="hidden"]) { box-sizing: border-box; height: 34px; }
.attributes-table td > input[name^="name_"], .ratings-table td > input { width: 100%; max-width: 360px; }
/* Skill codes: one fixed-size badge whatever the code's length */
.attr-code {
  display: inline-flex; align-items: center; justify-content: center;
  box-sizing: border-box; width: 36px; height: 22px; padding: 0;
  border-radius: 6px; background: var(--primary); color: #fff;
  font-family: var(--font-rounded, inherit); font-size: 12px; font-weight: 800; line-height: 1;
}
.attributes-table td.muted { white-space: nowrap; font-size: 13px; }
.ratings-table .rating-number { font-weight: 700; font-size: 15px; }
/* Skill codes: one blue box per code, centred under the shift time */
.sheet.readonly .skill-codes { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; margin-top: 3px; }
.sheet.readonly .code-chip {
  display: inline-block; min-width: 18px; padding: 1px 4px; border-radius: 5px;
  background: var(--primary); color: #fff; font-family: var(--font-rounded);
  font-size: 10px; font-weight: 700; line-height: 12px; letter-spacing: 0.04em; text-align: center;
}
/* AI schedule: lighter grid, uppercase day heads, roomier cells (Geist canvas) */
.sheet.readonly { font-variant-numeric: tabular-nums; }
.sheet.readonly th, .sheet.readonly td { border: none; border-bottom: 1px solid var(--border); }
.sheet.readonly td { border-left: 1px solid #f0f1f4; padding: 8px 6px; }
.sheet.readonly thead th { padding: 6px 4px; font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.sheet.readonly thead th .date { font-size: 11px; letter-spacing: 0; text-transform: none; margin-top: 0; }
.sheet.readonly thead th.name-col { text-align: left; padding-left: 10px; }
.sheet.readonly td.filled { font-weight: 500; }
.sheet.readonly .total-col { width: 52px; text-align: center; }
/* Even columns; every row's text starts on the same line */
.sheet.readonly { table-layout: fixed; min-width: 760px; font-size: 12.5px; }
.sheet.readonly thead th.name-col { width: 120px; min-width: 0; }
.sheet.readonly tbody th, .sheet.readonly tbody td { vertical-align: top; height: 42px; padding: 5px 3px; line-height: 16px; }
.sheet.readonly tbody th.name-col { padding: 5px 10px; min-width: 0; }
.sheet.readonly .emp-type { margin-top: 0; font-size: 10.5px; line-height: 13px; }
.sheet.readonly tfoot th, .sheet.readonly tfoot td { text-align: center; vertical-align: middle; }
.sheet.readonly tfoot th, .sheet.readonly tfoot td { padding: 4px 3px; }
.sheet.readonly tfoot th.name-col { text-align: left; padding-left: 10px; }
/* AI schedule only ("grid A"): one block per cell, the same size in every
   cell so rows line up; shifts in solid teal, OFF / N/A quiet. Used on the
   Scheduling page and in the Discord picture (scheduling/schedule_image.html) */
/* Sizes scale with the frame's width (cqi = 1% of it), so the table fits the
   window; at the picture's width (1136px inside) they land on the full size */
.ai-schedule-frame { container-type: inline-size; }
.ai-schedule-frame .sheet.readonly { width: 100%; min-width: 600px; font-size: 16px; border-collapse: separate; border-spacing: 0; }
.ai-schedule-frame .sheet.readonly th, .ai-schedule-frame .sheet.readonly td { border: none; border-bottom: 1px solid var(--slate-200); background: none; }
.ai-schedule-frame .sheet.readonly thead th { padding: 8px 2px 10px; font-size: clamp(11px, 1.15cqi, 13px); font-weight: 600; color: var(--slate-700); }
.ai-schedule-frame .sheet.readonly thead th .date { font-size: 12.5px; font-weight: 400; color: var(--slate-600); }
.ai-schedule-frame .sheet.readonly thead th.name-col { width: clamp(84px, 11.6cqi, 132px); padding-left: 12px; }
.ai-schedule-frame .sheet.readonly .total-col { width: clamp(44px, 5.6cqi, 64px); background: none; }
.ai-schedule-frame .sheet.readonly tbody th.name-col { background: #fff; padding: 9px 12px; font-size: clamp(13px, 1.41cqi, 16px); line-height: 22px; font-weight: 600; vertical-align: top; overflow-wrap: anywhere; }
.ai-schedule-frame .sheet.readonly .emp-type { font-size: 12px; line-height: 15px; color: var(--slate-600); }
.ai-schedule-frame .sheet.readonly tbody td { height: auto; padding: 4px; vertical-align: top; text-align: left;
  border-left: 1px solid #eef0f3; box-shadow: none; text-decoration: none; }
.ai-schedule-frame .sheet.readonly tbody td.total-col { padding: 9px 4px; text-align: center; font-size: clamp(13px, 1.41cqi, 16px); line-height: 22px; font-weight: 700; }
.ai-schedule-frame .cell-box { display: block; box-sizing: border-box; min-height: clamp(40px, 4.7cqi, 53px); padding: 5px; border-radius: 8px; }
/* Too narrow for the whole time? It breaks after the dash onto a second line */
.ai-schedule-frame .cell-time { display: block; font-size: clamp(12px, 1.45cqi, 15px); font-weight: 600; line-height: 1.47; letter-spacing: -0.02em; }
.ai-schedule-frame .sheet.readonly .skill-codes { justify-content: flex-start; gap: 3px; margin-top: 4px; }
.ai-schedule-frame .sheet.readonly .code-chip, .ai-schedule-frame .code-legend strong { min-width: 20px; padding: 1px 5px; border-radius: 5px;
  background: var(--teal-700); color: #fff; font-size: 11.5px; font-weight: 700; line-height: 15px; letter-spacing: 0.02em; }
.ai-schedule-frame td.filled .cell-box { background: var(--teal-100); color: #134e4a; }
.ai-schedule-frame td.off .cell-box, .ai-schedule-frame td.na .cell-box { display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; }
.ai-schedule-frame td.off .cell-box { background: #fffbeb; color: #92400e; }
.ai-schedule-frame td.na .cell-box { background: var(--slate-50); color: #6b7280; }
/* A shift on a day off or unavailable day: shown struck out in red */
.ai-schedule-frame td.conflict .cell-box { display: block; background: #fff0f4; color: var(--danger-ink); text-decoration: line-through;
  box-shadow: inset 0 0 0 2px var(--danger); font-size: inherit; font-weight: normal; letter-spacing: normal; }
.ai-schedule-frame .sheet.readonly tfoot th, .ai-schedule-frame .sheet.readonly tfoot td { border: none; background: none; padding: 10px 8px; font-size: 13px; color: var(--slate-700); font-weight: 600; }
.ai-schedule-frame .sheet.readonly tfoot th.name-col { padding-left: 12px; }
.ai-schedule-frame .code-legend { gap: 6px 16px; margin: 14px 2px 0; font-size: 13.5px; color: var(--slate-700); }
.ai-schedule-frame .code-legend span { display: flex; align-items: center; }
.ai-schedule-frame .code-legend strong { margin-right: 6px; }
.code-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 8px 2px 0; font-size: 12px; color: var(--muted); }
.code-legend strong { display: inline-block; min-width: 22px; padding: 2px 5px; margin-right: 4px; border-radius: 6px; background: var(--primary); color: #fff; font-family: var(--font-rounded); font-size: 11px; font-weight: 700; line-height: 14px; letter-spacing: 0.04em; text-align: center; }

/* AI schedule: skills-shown gear menu */
.menu-title { margin: 0 0 8px; font-size: 15px; font-weight: 700; color: var(--text); }
.menu-code { display: inline-block; min-width: 2.2em; margin-right: 6px; color: var(--teal-800); }
.check-option.disabled { color: var(--muted); cursor: not-allowed; }
.check-option.disabled .check-box { background: #f1f3f5; }
.menu-foot { margin: 10px 0 10px; font-size: 12.5px; }
.menu-title.menu-section { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }

/* Inventory */
.inventory-list th, .inventory-list td { padding-left: 12px; padding-right: 12px; }
.inventory-list td { white-space: nowrap; }
.inventory-list th { vertical-align: bottom; }
.inventory-list .num { text-align: right; font-variant-numeric: tabular-nums; }
.inventory-list td.needs-order { font-weight: 600; }
.inventory-list .due { color: var(--danger-ink); font-weight: 600; }
.inventory-list tr.inactive-row td { color: var(--muted); }
.btn.danger-btn { color: var(--danger-ink); margin-right: auto; }
.history-table { width: auto; }
.history-table th[scope="row"] { font-size: 13.5px; font-weight: 500; color: var(--text); padding-right: 16px; white-space: nowrap; }
.history-table .qty-input { width: 96px; }
.history-view { max-width: 420px; }
.history-view .num { text-align: right; font-variant-numeric: tabular-nums; }
.history-view th, .history-view td { padding: 8px 16px; }
.trend-headline { margin: 0 0 6px; font-size: 17px; }

/* Scheduling rules: seasons */
.season-bar { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.season-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.season-nav a {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--border);
  border-radius: var(--radius); background: #fff; color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600;
}
.season-nav a:hover { border-color: #b8c0ca; }
.season-nav a[aria-current="page"] { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); background: var(--teal-50); }
.season-nav .season-dates { font-weight: 400; color: var(--muted); font-size: 13px; }  /* "year-round" on Default */
.season-nav .badge { padding: 1px 8px; font-size: 11px; }
.add-season { position: relative; }
.add-season > summary { list-style: none; cursor: pointer; }
.add-season > summary::-webkit-details-marker { display: none; }
.add-season[open] .season-form {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: min(420px, calc(100vw - 32px));
  padding: 16px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.season-hint { margin: 0 0 14px; }
.season-dates-row { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; }
.season-view { display: flex; flex-wrap: wrap; gap: 12px 40px; margin: 0; }
.season-view dt { font-size: 13px; color: var(--muted); margin-bottom: 2px; }
.season-view dd { margin: 0; font-size: 15px; font-weight: 600; }
/* Locked settings summary (Scheduling → Frequency) */
.settings-view { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px 24px; margin: 0; }
.settings-view dt { font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.settings-view dd { margin: 0; font-size: 15px; font-weight: 500; }
.section-head .section-edit { margin-left: auto; }
.frequency-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; }
.frequency-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.frequency-form select, .frequency-form input { padding: 8px 10px; min-height: 40px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; color: var(--text); background: #fff; }
.frequency-actions { display: flex; gap: 8px; margin-left: auto; }
.frequency-hint { margin: 14px 0 0; }

/* Configuration: Features */
.feature-list { list-style: none; margin: 0; padding: 0; }
#features .form { padding: 0; border: none; box-shadow: none; background: none; }
.feature-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--border); }
.feature-list li:first-child { border-top: none; padding-top: 4px; }
/* Exclusion Rules on the employee profile: one rule per row, top to bottom */
.rule-status-list { list-style: none; margin: 0; padding: 0; }
.rule-status-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; padding: 10px 0; border-top: 1px solid var(--border); font-size: 14px; }
.rule-status-list li:first-child { border-top: none; padding-top: 4px; }
.rule-status-list .rule-name { font-weight: 600; }
.feature-text { display: flex; flex-direction: column; gap: 2px; }
.feature-text strong { font-size: 15px; color: var(--text); }
.feature-warning { color: var(--warning-ink); }
.form .feature-switch { flex-direction: row; align-items: center; gap: 14px; cursor: pointer; width: 100%; font-size: 14px; color: var(--text); }
.feature-switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch-track {
  flex: none; position: relative; width: 40px; height: 22px; border-radius: 999px;
  background: #cfd4dc; transition: background 0.15s;
}
.switch-track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); transition: transform 0.15s;
}
.feature-switch input:checked + .switch-track { background: var(--primary); }
.feature-switch input:checked + .switch-track::after { transform: translateX(18px); }
.feature-switch input:focus-visible + .switch-track { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Configuration: Discord channels */
.channels-block { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); scroll-margin-top: 16px; }
.channels-block .section-head h4 { margin: 0; font-size: 15px; }
.channels-block .section-head .btn { margin-left: auto; }
.channel-name-cell { display: flex; align-items: center; gap: 4px; }
.channel-name-cell .hash { color: var(--muted); font-weight: 600; }
.channels-table .purpose-input { width: 100%; min-width: 260px; }
.channel-name-cell input { width: 140px; }
.channels-table .channel-id-input { width: 180px; font-variant-numeric: tabular-nums; }
.channels-view th, .channels-view td { padding: 9px 12px; }
.channels-view .channel-name { font-weight: 600; white-space: nowrap; }

/* AI-generated schedule: tidy header, slim meta row, action bar */
#ai .section-head { margin-bottom: 14px; }
.ai-title { display: flex; align-items: center; gap: 10px; }
.week-nav .week-label { min-width: 170px; text-align: center; }
.badge.status-draft { background: var(--teal-50); color: var(--teal-800); }
.badge.status-published { background: var(--success-tint); color: var(--success-ink); }
.badge.status-generating { background: #eceef1; color: #4b5563; }
.badge.status-failed { background: var(--danger-tint); color: var(--danger-ink); }
.ai-notice { margin: 0 0 14px; padding: 10px 14px; border-radius: var(--radius); background: var(--success-tint); color: var(--success-ink); font-size: 14px; }
.ai-meta { display: flex; flex-wrap: wrap; gap: 10px 32px; margin: 0 0 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border); font-size: 14px; }
.ai-meta dt { font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.ai-meta dd { margin: 0; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.ai-meta .chip { margin: 0; }
.ai-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 14px; max-width: 860px; }
.ai-stamp { margin: 0; font-size: 13px; color: var(--muted); }
.ai-buttons { display: flex; gap: 8px; }
.ai-buttons form { margin: 0; }
.ai-buttons .btn { min-height: 44px; display: inline-flex; align-items: center; }
.ai-buttons .discord-send { display: flex; align-items: center; gap: 10px; }
.publish-to { font-size: 13px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.publish-to:hover { color: var(--primary); text-decoration: underline; }
.settings-page { max-width: 640px; }
.settings-page .section + .section { margin-top: 16px; }
.settings-page .menu-code { margin-right: 8px; }
.settings-back { display: inline-block; margin-bottom: 12px; font-size: 14px; color: var(--primary); text-decoration: none; }
.settings-back:hover { text-decoration: underline; }
.settings-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.ai-sent { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.ai-checks { margin-top: 14px; }
.ai-checks .checks-head { margin: 0 0 8px; }
.ai-notes-box { margin-top: 14px; max-width: 860px; font-size: 14px; }
.ai-notes-box summary { cursor: pointer; font-weight: 500; color: var(--primary); padding: 4px 0; }
.ai-notes-box .ai-notes { margin-top: 8px; color: var(--text); }

/* AI schedule: week picker (click the week to jump anywhere) */
.week-jump { position: relative; }
.week-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; color: var(--text); font-size: 14px; font-weight: 500; cursor: pointer; }
.week-btn:hover { border-color: #c4c9d2; }
.week-btn svg { color: var(--muted); }
.week-menu { width: 300px; display: flex; flex-direction: column; gap: 12px; }
.week-menu[hidden] { display: none; }
.week-go { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.week-go-row { display: flex; gap: 8px; }
.week-go-row input { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; color: var(--text); }
.week-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.week-quick .btn { padding: 6px 12px; font-size: 13px; }
.week-menu .menu-title { margin: 0; }
.published-list { list-style: none; margin: 0; padding: 0; max-height: 220px; overflow-y: auto; display: flex; flex-direction: column; font-size: 14px; }
.published-list .published-year { padding: 6px 4px 2px; font-size: 12px; font-weight: 500; color: var(--muted); }
.published-list a { display: block; padding: 6px 8px; border-radius: var(--radius-sm); color: var(--text); text-decoration: none; }
.published-list a:hover { background: var(--bg); }
.published-list a[aria-current] { background: var(--teal-50); color: var(--primary); font-weight: 500; }

/* Configuration: time zone */
.time-zone-form { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); }
.time-zone-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.time-zone-row select { min-width: 280px; min-height: 40px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; font-size: 14px; color: var(--text); }
.pop-people { display: flex; flex-direction: column; gap: 2px; max-height: 280px; overflow-y: auto; }
.pop-person { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border: none; border-radius: 8px; background: none; font-size: 14px; color: var(--text); text-align: left; cursor: pointer; }
.pop-person:hover { background: var(--bg); }
.pop-person[aria-pressed="true"] { background: var(--success-tint); font-weight: 500; }
.pop-initials { flex: none; min-width: 32px; height: 22px; padding: 0 4px; display: inline-grid; place-items: center; border-radius: 6px; border: 1px solid var(--border); font-size: 11px; font-weight: 700; color: var(--muted); background: #fff; }
.pop-person[aria-pressed="true"] .pop-initials { border-color: var(--success); color: var(--success-ink); }

/* Reports */
.reports-page .section-nav { margin-bottom: 12px; }
.report-month { margin: 0 0 16px; }
.report-month select { padding: 7px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); font: inherit; font-size: 14px; background: #fff; }
.report-totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin: 0 0 16px; }
.report-totals div { padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--slate-50); }
.report-totals dt { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.report-totals dd { margin: 0; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.report-table th, .report-table td { padding: 9px 10px; }
.report-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.report-table .nowrap { white-space: nowrap; }
.report-table tbody.day-group tr:first-child td { border-top: 2px solid var(--border); }
.report-table tbody.day-group tr:hover { background: var(--slate-50); }


/* ---- Integrations: map, stack tiles and flow chains ---- */
.integrations-page { display: flex; flex-direction: column; gap: 20px; }
.integrations-page .section-head h3 { font-size: 18px; font-weight: 600; }
.int-map { display: block; width: 100%; height: auto; max-width: 1000px; margin: 8px auto 0; }
.int-map text { font-family: var(--font-sans); }
.map-zone { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; fill: var(--muted); text-anchor: middle; }
.map-node rect { fill: var(--card); stroke: var(--border); stroke-width: 1.5; }
.map-node.state-on rect { stroke: var(--teal-100); }
.map-node.state-warn rect { stroke: var(--warning); }
.map-title { font-size: 15px; font-weight: 600; fill: var(--text); }
.map-sub { font-size: 12px; fill: var(--muted); }
.map-glyph { font-size: 13px; font-weight: 700; fill: #fff; text-anchor: middle; }
.map-dot { fill: #c4c8d0; }
.map-node.state-on .map-dot { fill: var(--success); }
.map-node.state-warn .map-dot { fill: var(--warning); }
.map-node.state-plan .map-dot { fill: var(--teal-500); }
.map-edge { fill: none; stroke-width: 2.5; stroke-linecap: round; }
.map-edge.state-on { stroke: var(--primary); }
.map-edge:not(.state-on) { stroke: #b7bcc6; stroke-dasharray: 6 6; }
.arrow-on { fill: var(--primary); }
.arrow-off { fill: #b7bcc6; }
.map-edge.state-outside { stroke: var(--success); stroke-dasharray: none; }
.arrow-outside { fill: var(--success); }
.map-outside { fill: var(--bg); stroke: var(--border); stroke-width: 1.5; stroke-dasharray: 8 6; }
.map-node.state-outside .map-dot { fill: var(--success); }
.map-label { font-size: 12px; font-weight: 500; fill: var(--muted); text-anchor: middle; paint-order: stroke; stroke: var(--card); stroke-width: 5px; stroke-linejoin: round; }
.map-pebble rect { fill: var(--primary); }
.map-pebble text { fill: #fff; text-anchor: middle; }
.pb-name { font-size: 28px; font-weight: 700; }
.pb-line { font-size: 13px; opacity: .92; }
.pb-foot { font-size: 12px; opacity: .75; }

.int-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; list-style: none; padding: 0; margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.int-legend li { display: flex; align-items: center; gap: 8px; }
.lg-line { width: 28px; border-top: 2.5px solid var(--primary); }
.lg-line.off { border-top: 2.5px dashed #b7bcc6; }
.lg-line.outside { border-top-color: var(--success); }
.lg-dot { width: 10px; height: 10px; border-radius: 50%; background: #c4c8d0; }
.lg-dot.on { background: var(--success); }
.lg-dot.warn { background: var(--warning); }

/* Icon colours by kind of service (shared by map, tiles and flows) */
.kind-pebble { fill: var(--primary); background: var(--primary); }
.kind-pos { fill: var(--teal-800); background: var(--teal-800); }
.kind-mail { fill: var(--warning); background: var(--warning); }
.kind-web { fill: var(--muted); background: var(--muted); }
.kind-weather { fill: #e09a00; background: #e09a00; }
.kind-ai { fill: var(--text); background: var(--text); }
.kind-discord { fill: #5865f2; background: #5865f2; }
.kind-people { fill: var(--off-ink); background: var(--off-ink); }
.kind-google { fill: var(--success); background: var(--success); }

.stack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.stack-tile { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; background: var(--bg); }
.stack-tile h4 { margin: 10px 0 4px; font-size: 15px; }
.stack-tile p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.45; }

.flow-icon { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 700; }
.flow-list { display: flex; flex-direction: column; gap: 12px; }
.flow { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.flow-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.flow-head h4 { margin: 0; font-size: 15px; }
.flow-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 0; list-style: none; padding: 0; margin: 0; }
.flow-node { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; background: var(--bg); border-radius: 999px; }
.flow-node strong { display: block; font-size: 14px; font-weight: 600; }
.flow-node small { display: block; font-size: 12px; color: var(--muted); }
.flow-link { display: flex; flex-direction: column; align-items: center; min-width: 96px; padding: 0 6px; font-size: 11.5px; color: var(--muted); text-align: center; }
.flow-link { position: relative; }
.flow-link::after { content: ""; align-self: stretch; height: 2px; margin: 6px 7px 0 0; background: var(--teal-500); }
.flow-link::before { content: ""; position: absolute; right: 4px; bottom: -4px; border-left: 9px solid var(--teal-500); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.flow-note { margin: 12px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.flow-note a { color: var(--primary); white-space: nowrap; }

.int-chip { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--bg); color: var(--muted); }
.int-chip.on { background: var(--success-tint); color: var(--success-ink); }
.int-chip.warn, .int-chip.retiring { background: var(--warning-tint); color: var(--warning-ink); }
.int-chip.plan, .int-chip.outside { background: var(--teal-50); color: var(--primary); }

/* Reports → End of Day */
.eod-over { color: var(--success-ink); font-weight: 500; }
.eod-short { color: var(--danger-ink); font-weight: 500; }
.eod-even { color: var(--muted); }
.eod-tips { font-size: 13px; color: var(--muted); min-width: 220px; }

/* Configuration → Discord commands */
.commands-view td { vertical-align: top; font-size: 14px; }
.commands-view .command-name { white-space: nowrap; }
.commands-view .command-name code { font-weight: 600; }
.commands-view .command-note { min-width: 220px; }
.commands-view .command-note textarea { width: 100%; min-width: 220px; font: inherit; font-size: 14px; padding: 6px 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); resize: vertical; }
.commands-view tr.is-removed td { color: var(--muted); }

/* ---- Dashboard ---- */
.dashboard-page { display: flex; flex-direction: column; gap: 20px; }
.dashboard-page .section-head h3 { font-size: 18px; font-weight: 600; }
.dash-fresh { margin: 0; font-size: 13px; color: var(--muted); }
.dash-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.dash-tile { padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.dash-label { font-size: 13px; color: var(--muted); }
.dash-big { font-size: 28px; font-weight: 700; letter-spacing: -0.01em; }
.dash-sub { font-size: 13px; color: var(--muted); }
.dash-delta { font-weight: 600; white-space: nowrap; font-size: 13px; }
.dash-delta.good { color: var(--success-ink); }
.dash-delta.bad { color: var(--danger-ink); }
.dash-delta.flat { color: var(--muted); }
.dash-vs { color: var(--muted); font-size: 13px; }
.dash-chart { margin: 8px 0 0; }
.dash-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.dash-chart .grid { stroke: var(--border); stroke-width: 1; }
.dash-chart .axis { stroke: #c4c8d0; stroke-width: 1; }
.dash-chart .tick { font-size: 11px; fill: var(--muted); text-anchor: end; font-family: var(--font-sans); }
.dash-chart .xlabel { font-size: 11px; fill: var(--muted); text-anchor: middle; font-family: var(--font-sans); }
.dash-chart .hit { fill: transparent; }
.dash-chart .col { cursor: default; }
.dash-chart .col.on .hit { fill: var(--teal-50); }
/* Chart series in the Pebblefy brand colors: deep teal, then Slate as the secondary (no outlines). */
.dash-chart .bar.s0, .dash-legend .sw.s0 { fill: #0f766e; background: #0f766e; }
.dash-chart .bar.s1, .dash-legend .sw.s1 { fill: #638fac; background: #638fac; }
.dash-legend { display: flex; gap: 18px; justify-content: center; font-size: 13px; color: var(--muted); margin-top: 8px; }
.dash-legend span { display: flex; align-items: center; gap: 6px; }
.dash-legend .sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.dash-tip { position: absolute; z-index: 20; pointer-events: none; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 8px 12px; font-size: 13px; display: flex; flex-direction: column; gap: 2px; }
.dash-tip[hidden] { display: none; }
.dash-table { margin-top: 12px; }
.dash-table summary { cursor: pointer; font-size: 13px; color: var(--primary); }
.dash-foot { margin-top: 10px; }
.dash-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; }
.dash-dow { margin-top: 12px; font-size: 13px; }
.dash-dow th, .dash-dow td { padding: 6px 4px; }
.dash-latest dd.dash-sub { font-size: 12px; font-weight: 400; margin-top: 2px; }
.dash-weather { font-size: 15px !important; }
.dash-h4 { margin: 18px 0 8px; font-size: 15px; }

/* Reports → Labor: editing shifts */
.report-table .edit-col { white-space: nowrap; text-align: right; }
.edited-mark { margin-left: 6px; font-size: 11px; color: var(--muted); }
.saved-note { margin: 0 0 8px; color: var(--muted); }
.labor-edit { max-width: 720px; }
.labor-edit .form .row { flex-wrap: wrap; }
.labor-edit .form .row label { min-width: 140px; }
.report-table .edit-col .link-btn { display: inline; margin: 0; }

/* Communication: scheduled messages */
.communication-page { max-width: 1100px; }
.communication-page .section + .section { margin-top: 16px; }
.table-scroll { overflow-x: auto; }
.messages-table td { vertical-align: top; }
.messages-table .nowrap { white-space: nowrap; }
.msg-cell { min-width: 260px; max-width: 420px; }
.messages-table td:nth-child(3) { min-width: 150px; }
.msg-preview {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  white-space: pre-line; overflow-wrap: anywhere;
}
.msg-error { margin: 6px 0 0; font-size: 12px; color: var(--danger-ink); }
.messages-table tr.just-saved { background: var(--teal-50); }
.message-edit { max-width: 720px; }
.message-edit .form { gap: 16px; }
.message-edit [hidden] { display: none !important; }
/* One look for every field: full width of its column, 40px tall */
.message-edit textarea, .message-edit select, .message-edit input[type="time"],
.message-edit input[type="date"], .message-edit input[type="number"] {
  box-sizing: border-box; width: 100%; padding: 0 12px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: #fff; font: inherit; font-size: 14px; color: var(--text);
}
.message-edit select, .message-edit input[type="time"], .message-edit input[type="date"],
.message-edit input[type="number"] { height: 40px; }
.message-edit textarea { padding: 10px 12px; line-height: 1.45; resize: vertical; }
.message-edit select {
  appearance: none; padding-right: 32px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235f6b7a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
}
.message-edit :is(select, input, textarea):focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.msg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; }
.form .msg-grid label { flex: none; min-width: 0; }
.msg-grid-note { grid-column: span 2; margin: 0 0 10px; }
/* Days: seven equal buttons across the full width */
.weekday-pick { border: none; margin: 0; padding: 0; min-width: 0; }
.weekday-pick legend { padding: 0; margin-bottom: 4px; font-size: 13px; color: var(--muted); }
.weekday-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.form .day-toggle { flex: none; position: relative; display: block; gap: 0; }
.day-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.day-toggle span {
  display: flex; align-items: center; justify-content: center; height: 40px; box-sizing: border-box;
  font-size: 14px; font-weight: 500; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; color: var(--text); cursor: pointer; user-select: none;
}
.day-toggle span:hover { border-color: #b8c0ca; }
.day-toggle input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.day-toggle input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.form .inline-check { flex-direction: row; flex: none; align-self: flex-start; padding: 0; color: var(--text); font-size: 14px; }
@media (max-width: 700px) {
  .msg-grid { grid-template-columns: minmax(0, 1fr); }
  .msg-grid-note { grid-column: auto; }
  .weekday-days { gap: 4px; }
}

/* Strikes page */
.strike-counts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.strike-count { padding: 4px 12px; border-radius: 999px; background: #eceef1; color: #374151; font-size: 13px; }
.strike-count.high { background: var(--danger-tint); color: var(--danger-ink); }
.strikes-table td { vertical-align: top; }
.strikes-table .nowrap { white-space: nowrap; }
.strike-remove { width: 1%; text-align: right; }
.strike-form { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.strike-grid { display: grid; grid-template-columns: 200px 160px minmax(0, 1fr) 180px auto; gap: 12px; align-items: end; }
.strike-grid input, .strike-grid select { box-sizing: border-box; width: 100%; height: 40px; }
.strikes-page { display: flex; flex-direction: column; gap: 20px; }
.strike-filter { margin-left: auto; }
.strike-filter label { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.strike-filter select { height: 36px; }
@media (max-width: 1100px) { .strike-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .strike-grid .strike-reason { grid-column: 1 / -1; } }
.strike-grid .btn { height: 40px; }
@media (max-width: 700px) { .strike-grid { grid-template-columns: minmax(0, 1fr); } }


/* Scheduling playbook (Rules tab) */
.playbook-form textarea { box-sizing: border-box; width: 100%; min-height: 360px; padding: 12px 14px; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.6; resize: vertical; }
.playbook-help code, .playbook-view code { font-family: var(--font-mono); font-size: 12.5px; background: var(--slate-50); border: 1px solid var(--border); border-radius: 4px; padding: 0 4px; }
.playbook-view { max-width: 760px; font-size: 14.5px; line-height: 1.6; color: var(--text); }
.playbook-view h4 { margin: 20px 0 6px; font-size: 15px; font-weight: 700; }
.playbook-view h5 { margin: 14px 0 4px; font-size: 14px; font-weight: 700; color: var(--slate-700); }
.playbook-view > :first-child { margin-top: 0; }
.playbook-view p { margin: 0 0 10px; }
.playbook-view ul, .playbook-view ol { margin: 0 0 10px; padding-left: 22px; }
.playbook-view li { margin: 2px 0; }

/* Tasks page */
.tasks-page { display: flex; flex-direction: column; gap: 20px; }
.tasks-table td { vertical-align: middle; }
.tasks-table .nowrap { white-space: nowrap; }
.task-note { display: block; font-size: 12.5px; color: var(--muted); }
.task-done td strong { color: var(--muted); text-decoration: line-through; }
.task-action { width: 1%; text-align: right; white-space: nowrap; }
.task-action form { margin: 0; }
.task-form { margin-top: 16px; padding: 16px 0 0; border-top: 1px solid var(--border); }
.task-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; align-items: end; }
.task-grid .task-wide { grid-column: 1 / -1; }
.task-grid [hidden] { display: none !important; }
.task-grid input, .task-grid select { box-sizing: border-box; width: 100%; height: 40px; }
.task-inline { display: flex; gap: 8px; }
.task-inline input { width: 80px; flex: none; }
.task-channel { flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding: 0; }
.task-channel label { flex: none; }
.task-channel .btn { height: 40px; }
.task-channel select { height: 40px; min-width: 220px; }
@media (max-width: 800px) { .task-grid { grid-template-columns: minmax(0, 1fr); } }

/* Skills editor: name and code boxes with a gap, the × at the end of
   "Used by", and the same column grid as the read-only view */
.skills-table:not(.attributes-view) td:first-child { padding-right: 16px; }
.skills-table:not(.attributes-view) td > input[name^="name_"] { max-width: none; }
.skills-table:not(.attributes-view) tbody td { height: 46px; padding-top: 0; padding-bottom: 0; }
.attributes-table .code-input { font-weight: 500; letter-spacing: 0.02em; }
.used-cell { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.used-cell .used-count { font-size: 13px; white-space: nowrap; }
.used-cell .icon-btn { width: 28px; height: 28px; font-size: 16px; flex: none; }
.skills-table tr.is-deleting input:not([type=hidden]) { text-decoration: line-through; color: var(--muted); background: var(--slate-50); }
.skills-table tr.is-deleting .used-count::after { content: " · deleted on save"; color: var(--danger-ink); }

/* Configuration: one scroll — setup checklist, General, Connections, Features, Daily reports */
.config-page { display: flex; flex-direction: column; gap: 20px; max-width: 980px; }
.config-page > .card { margin: 0; scroll-margin-top: 16px; }
.setup-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.setup-head h3 { margin: 0 0 2px; }
.setup-bar { flex: 0 1 240px; height: 8px; border-radius: 999px; background: var(--slate-200); overflow: hidden; }
.setup-bar span { display: block; height: 100%; background: var(--primary); border-radius: 999px; }
.setup-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 6px 20px; }
.setup-steps li { display: flex; align-items: center; gap: 10px; min-height: 32px; font-size: 14px; }
.setup-dot { flex: none; width: 20px; height: 20px; box-sizing: border-box; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.setup-steps .done .setup-dot { background: var(--primary); color: #fff; }
.setup-steps .todo .setup-dot { border: 2px solid var(--warning); }
.setup-steps .todo a { font-weight: 600; }
.config-block { scroll-margin-top: 16px; }
.config-block + .config-block { margin-top: 4px; }
.config-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; min-height: 44px; padding: 8px 0; border-top: 1px solid var(--border); }
.config-block:first-of-type .config-line:first-child { border-top: none; }
.config-line-label { flex: 0 0 180px; font-weight: 600; font-size: 14px; }
.config-line-value { flex: 1 1 220px; font-size: 14px; min-width: 0; overflow-wrap: anywhere; }
.config-line .badge.warning { margin-left: 0; }
.connection-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.connection-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 16px; }
.connection-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.connection-head h4 { margin: 0; font-size: 15px; }
.connection-facts { margin: 0; padding: 10px 12px; background: var(--slate-50); border-radius: var(--radius-sm); display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.connection-facts div { display: flex; justify-content: space-between; gap: 12px; }
.connection-facts dt { color: var(--muted); }
.connection-facts dd { margin: 0; font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.connection-card .config-row { margin: auto 0 0; padding: 0; border: none; }
.connection-card .config-edit { max-width: none; }
.feature-toggles > li { display: block; }
.feature-main { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.feature-controls { flex: none; display: flex; align-items: center; gap: 12px; }
.feature-switch-form { margin: 0; display: flex; align-items: center; gap: 8px; }
.feature-switch-form .feature-switch { display: inline-flex; cursor: pointer; position: relative; padding: 11px 0; }
.needs-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.needs-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border); color: var(--slate-700); }
.needs-chip.ready svg { color: var(--primary); }
.needs-chip.missing { border-color: var(--warning); background: var(--warning-tint); color: var(--warning-ink); }
.feature-summary { margin-top: 4px; font-size: 13px; color: var(--slate-700); }
.feature-toggles .saved-flash { align-self: flex-start; margin-top: 4px; }
.feature-settings { margin-top: 12px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); display: flex; flex-direction: column; gap: 14px; }
.feature-settings-row { display: flex; flex-wrap: wrap; gap: 12px 16px; }
.feature-settings-row label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 500; }
.feature-settings select, .feature-settings input[type=time] { min-height: 40px; padding: 0 10px; border: 1px solid #c4c9d0; border-radius: var(--radius-sm); background: #fff; font: inherit; font-size: 14px; color: var(--text); }
.feature-settings .check-line { display: flex; align-items: center; gap: 8px; min-height: 32px; font-size: 14px; }
.feature-settings .check-line input { width: 18px; height: 18px; margin: 0; accent-color: var(--primary); }
.feature-settings .config-actions { justify-content: flex-end; }
.moved-note { border: 1px dashed #c4c9d0; border-radius: var(--radius-lg); padding: 14px 18px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--slate-700); }
.moved-note strong { color: var(--text); }
@media (max-width: 600px) {
  .config-line-label { flex-basis: 100%; }
  .feature-main { flex-direction: column; }
}
.config-line-edit input[type=email] { flex: 1 1 260px; min-width: 0; min-height: 40px; padding: 0 10px; border: 1px solid #c4c9d0; border-radius: var(--radius-sm); font: inherit; font-size: 14px; }
.config-line-edit .config-actions { flex: none; }

/* Signed-in account in the sidebar */
.sidebar-account { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 8px 0; border-top: 1px solid var(--slate-800); font-size: 13px; }
.sidebar-account form { margin: 0; }
.account-name { color: var(--sidebar-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.account-signout, .account-signin { flex: none; min-height: 32px; padding: 0 8px; border: none; border-radius: var(--radius-sm); background: none; color: var(--sidebar-muted); font: inherit; font-size: 13px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.account-signout:hover, .account-signin:hover { color: #fff; background: var(--sidebar-hover); }

/* Sign-in pages */
.auth-body { min-height: 100vh; margin: 0; display: flex; align-items: center; justify-content: center; padding: 24px; box-sizing: border-box; background: var(--bg); font-family: var(--font-sans); color: var(--text); }
.auth-card { width: 100%; max-width: 380px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px 28px; box-sizing: border-box; display: flex; flex-direction: column; gap: 14px; }
.auth-brand { display: flex; align-items: flex-start; gap: 3px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.auth-brand .brand-fy { margin-top: 0; }
.auth-card h1 { margin: 6px 0 0; font-size: 22px; font-weight: 600; }
.auth-hint { margin: 0; font-size: 14px; color: var(--muted); }
.auth-error { margin: 0; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--danger-tint); color: var(--danger-ink); font-size: 14px; }
.auth-form { display: flex; flex-direction: column; gap: 6px; }
.auth-form label { font-size: 13px; font-weight: 500; margin-top: 6px; }
.auth-form input { min-height: 44px; padding: 0 12px; border: 1px solid #c4c9d0; border-radius: var(--radius-sm); font: inherit; font-size: 15px; }
.auth-form input:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
.auth-form .auth-code { font-size: 22px; letter-spacing: 0.3em; text-align: center; font-variant-numeric: tabular-nums; }
.auth-form .btn { margin-top: 12px; min-height: 44px; justify-content: center; }
.auth-alt, .auth-resend { margin: 0; font-size: 14px; color: var(--muted); }
.auth-resend .link-btn { display: inline; margin: 0; font-size: 14px; }
.sidebar-account { flex-wrap: wrap; }
.account-admin { flex: 1 0 100%; min-height: 32px; display: flex; align-items: center; padding: 0 8px; border-radius: var(--radius-sm); color: var(--sidebar-active); font-weight: 600; text-decoration: none; }
.account-admin:hover, .account-admin.active { background: var(--sidebar-hover); }
a.account-name { flex: 1 1 auto; min-height: 32px; display: flex; align-items: center; padding: 0 8px; border-radius: var(--radius-sm); text-decoration: none; }
a.account-name:hover, a.account-name.active { background: var(--sidebar-hover); color: #fff; }

/* Pebblefy admin */
.admin-page { display: flex; flex-direction: column; gap: 20px; max-width: 1100px; }
.admin-page > .card { margin: 0; }
.admin-facts { margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 8px 40px; }
.admin-facts dt { font-size: 12px; color: var(--muted); }
.admin-facts dd { margin: 2px 0 0; font-size: 15px; font-weight: 500; }
.admin-invite { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; margin-bottom: 10px; }
.admin-invite label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 500; flex: 1 1 180px; }
.admin-invite input, .admin-invite select, .admin-access select { min-height: 40px; padding: 0 10px; border: 1px solid #c4c9d0; border-radius: var(--radius-sm); background: #fff; font: inherit; font-size: 14px; color: var(--text); }
.admin-invite .btn { min-height: 40px; }
.admin-access { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 3px 0; }
.admin-access select { min-height: 32px; }
.inline-form { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.inline-form .link-btn { display: inline; margin: 0; }
.config-sub.block { display: block; }
.admin-people tr.is-disabled td { color: var(--muted); }
.admin-people .badge.active { margin-left: 6px; }
.account-password { display: flex; flex-direction: column; gap: 12px; max-width: 420px; }
.account-password label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 500; }
.account-password input { min-height: 40px; padding: 0 10px; border: 1px solid #c4c9d0; border-radius: var(--radius-sm); font: inherit; font-size: 14px; }
.account-password .config-actions { justify-content: flex-start; }
