/* caret care staff admin (admin.caretcare.com). Classroom's gentler layout with caret care's tokens
   (src/constants/theme.ts; spec A-staff-admin "Look"). Series colors: the validated categorical palette, fixed order. */
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 400; src: url('/_admin/fonts/PlusJakartaSans_400Regular.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 600; src: url('/_admin/fonts/PlusJakartaSans_600SemiBold.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 700; src: url('/_admin/fonts/PlusJakartaSans_700Bold.ttf') format('truetype'); font-display: swap; }
:root {
  --bg: #F7F6F2; --surface: #FFFFFF; --ink: #0B1F3A; --muted: #5A6475; --line: #E2E0D8; --divider: #EEECE5;
  --teal: #167560; --on-teal: #FFFFFF; --teal-soft: #E8F5F1; --attention: #B4532E; --attention-soft: #FBEDE6; --grid: #EEECE5;
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100; --s5: #e87ba4; --s6: #008300; --s7: #6250d6; --s8: #e34948;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--teal); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 6px; }
h1 { font-size: 1.5rem; font-weight: 700; margin: 0 0 4px; } h2 { font-size: 1.1rem; margin: 24px 0 8px; } h3 { font-size: 1rem; margin: 0 0 6px; }
.muted { color: var(--muted); } .small { font-size: 13px; } .attention { color: var(--attention); }
.shell { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
nav.side { border-right: 1px solid var(--line); padding: 20px 12px; position: sticky; top: 0; height: 100vh; overflow: auto; display: flex; flex-direction: column; }
nav.side .brand { font-weight: 700; padding: 0 10px 16px; } nav.side .brand span { color: var(--muted); font-weight: 600; }
nav.side a.sec { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 0 10px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
nav.side a.sec:hover { background: var(--teal-soft); }
nav.side a.sec[aria-current="page"] { background: var(--teal-soft); color: var(--teal); }
nav.side .count { background: var(--attention-soft); color: var(--attention); border-radius: 999px; font-size: 12px; padding: 0 8px; min-width: 22px; text-align: center; }
nav.side .foot { margin-top: auto; padding: 16px 10px 0; font-size: 13px; color: var(--muted); word-break: break-all; }
main { padding: 28px 32px 64px; max-width: 1180px; width: 100%; }
main > p.lead { color: var(--muted); margin: 0 0 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-top: 8px; }
.tile .n { font-size: 1.8rem; font-weight: 700; line-height: 1.15; } .tile .l { color: var(--muted); font-size: 13px; }
.tile.warn { border-color: var(--attention); } .tile.warn .n { color: var(--attention); }
table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--divider); vertical-align: top; }
th { font-size: 12px; color: var(--muted); font-weight: 600; }
tr:last-child td { border-bottom: 0; } td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.link { cursor: pointer; } tr.link:hover td, tr.link:focus-visible td { background: var(--teal-soft); }
.pill { display: inline-block; border-radius: 999px; padding: 1px 10px; font-size: 12px; font-weight: 600; background: var(--divider); color: var(--ink); }
.pill.open { background: var(--attention-soft); color: var(--attention); } .pill.ok { background: var(--teal-soft); color: var(--teal); }
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 16px; }
.pills button { border-radius: 999px; min-height: 36px; font-weight: 600; }
.pills button[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: var(--on-teal); }
button, .btn { white-space: nowrap; font: inherit; font-weight: 600; min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
button.primary { background: var(--teal); color: var(--on-teal); border-color: var(--teal); }
button.quiet-danger { color: var(--attention); }
button:disabled { opacity: .5; cursor: default; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; min-height: 44px; padding: 6px 10px; }
textarea { width: 100%; min-height: 140px; resize: vertical; }
label { display: block; font-weight: 600; margin: 12px 0 4px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; margin: 8px 0 16px; }
.filters label { margin: 0 0 4px; font-size: 13px; color: var(--muted); }
.filters .check { display: flex; align-items: center; gap: 6px; font-weight: 500; color: var(--ink); min-height: 44px; margin: 0; font-size: 14px; }
.filters .check input { min-height: auto; }
.thread { display: grid; gap: 10px; margin: 16px 0; }
.msg { border-radius: 14px; padding: 12px 14px; border: 1px solid var(--line); background: var(--surface); white-space: pre-wrap; max-width: 760px; }
.msg.staff { background: var(--teal-soft); border-color: transparent; margin-left: 40px; }
.msg .who { font-size: 12px; color: var(--muted); margin-bottom: 4px; white-space: normal; }
.banner { border: 1px solid var(--attention); background: var(--attention-soft); border-radius: 12px; padding: 10px 14px; margin: 12px 0; }
.center { max-width: 420px; margin: 12vh auto; padding: 0 16px; }
.center .card { padding: 24px; } .center input { width: 100%; }
.err { color: var(--attention); min-height: 1.5em; margin-top: 8px; }
.empty { padding: 24px; text-align: center; color: var(--muted); }
.chart-wrap { position: relative; }
.chart-wrap svg { display: block; width: 100%; height: auto; overflow: visible; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 8px 0 4px; font-size: 13px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.tip { position: absolute; pointer-events: none; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 13px; min-width: 140px; display: none; z-index: 3; }
.tip .t { font-weight: 700; margin-bottom: 2px; } .tip .r { display: flex; justify-content: space-between; gap: 12px; } .tip .r i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; margin-right: 6px; }
details summary { cursor: pointer; font-weight: 600; margin: 16px 0 8px; min-height: 44px; display: flex; align-items: center; }
.reqs { display: grid; gap: 12px; }
.req-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 12px 0; font-size: 14px; }
.facts dt { color: var(--muted); } .facts dd { margin: 0; }
.hardest { background: var(--bg); border-radius: 10px; padding: 10px 12px; margin: 8px 0; white-space: pre-wrap; }
.next { background: var(--teal-soft); border-radius: 10px; padding: 10px 12px; margin: 8px 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
textarea.short { min-height: 64px; }
fieldset.reason { border: 1px solid var(--line); border-radius: 10px; margin: 10px 0 0; padding: 8px 12px 12px; }
fieldset.reason legend { font-weight: 600; padding: 0 4px; }
label.check { display: flex; align-items: center; gap: 8px; font-weight: 500; min-height: 44px; margin: 0; }
label.check input { min-height: auto; }
@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; }
  nav.side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; gap: 4px; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 16px; }
  nav.side .brand { width: 100%; padding: 0 0 6px; } nav.side .foot { width: 100%; margin-top: 6px; padding: 0; }
  main { padding: 16px; } .facts { grid-template-columns: 1fr; } .facts dd { margin-bottom: 6px; } table { display: block; overflow-x: auto; }
}

/* Articles editor (W Insights manager). The preview below copies caretcare.com's article rules from
   marketing/src/assets/shell.css (lines .ccs-article*), so a draft looks the way the live page will. Keep them in step.
   Fonts: the live site's Poppins and Nunito aren't loaded here (scripts and fonts come only from this site), so the
   preview uses the nearest system fonts; sizes, colors and spacing match. */
.ccs-article { max-width: 820px; margin: 0 auto; padding: 72px 20px 64px; box-sizing: border-box; }
.ccs-article-title { font-family: 'Poppins', sans-serif; font-weight: 400; color: #2c8a8f; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.3; margin: 0 0 28px; }
.ccs-article-body p, .ccs-article-body li { font-family: 'Nunito', sans-serif; font-size: 20px; line-height: 1.6; color: #6b7280; font-weight: 400; }
.ccs-article-body p { margin: 0 0 26px; }
.ccs-article-body ul, .ccs-article-body ol { margin: 0 0 26px; padding-left: 1.4em; }
.ccs-article-body h2 { font-family: 'Poppins', sans-serif; font-weight: 500; color: #2c8a8f; font-size: 26px; line-height: 1.35; margin: 44px 0 14px; }
.ccs-article-body h3 { font-family: 'Poppins', sans-serif; font-weight: 500; color: #14284b; font-size: 21px; line-height: 1.4; margin: 32px 0 10px; }
.ccs-article-body a { color: #2c8a8f; text-decoration: underline; text-underline-offset: 3px; }
.ccs-article-body strong { color: #4b5563; }
.ccs-article-body table { border-collapse: collapse; width: 100%; margin: 0 0 26px; font-family: 'Nunito', sans-serif; font-size: 17px; display: block; overflow-x: auto; }
.ccs-article-body th { color: #14284b; background: #f3f6f8; font-weight: 600; }
.ccs-article-body td { color: #374151; font-weight: 400; }
.ccs-article-body th, .ccs-article-body td { border: 1px solid #dde3e8; padding: 10px 12px; text-align: left; vertical-align: top; }
.ccs-article-body figure { margin: 0 0 26px; }
.ccs-article { padding: 24px 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; max-width: none; }
.editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.editor input[type=text], .editor select, .editor textarea { width: 100%; }
.editor textarea.body { min-height: 520px; font: 14px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; }
.editor .preview-col { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow: auto; }
.hint { font-size: 13px; color: var(--muted); margin: 2px 0 0; }
.checks { margin: 0 0 12px; } .checks li { margin: 4px 0; }
.checks .where { color: var(--muted); font-size: 12px; }
.confirm { border: 1px solid var(--attention); background: var(--attention-soft); border-radius: 12px; padding: 12px 14px; margin: 12px 0; }
.status-line { background: var(--teal-soft); border-radius: 10px; padding: 10px 12px; margin: 12px 0; }
td select { min-height: 36px; }
@media (max-width: 1000px) { .editor { grid-template-columns: 1fr; } .editor .preview-col { position: static; max-height: none; } }
.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; }
