/* Coral: white text needs var(--coral-ink), not var(--coral-deep).
   White on Deep Coral is 3.56:1 and fails; on Coral Ink it is 5.97:1.
   Deep Coral survives below only where nothing sits on top of it.
   Set 28 September 2026 with the site-wide coral pass. */
/* ============================================================
   overtly · admin console
   Builds on the site tokens in /assets/styles.css (Brand System v1.0).
   No Tailwind here: the admin page runs under a strict CSP.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--ivory); color: var(--body-gray); font-size: 15px; line-height: 1.5; }
[hidden] { display: none !important; }
a { color: var(--evergreen); }
h1, h2, h3, p, dl, dd, ul { margin: 0; }
button, input { font: inherit; }

/* ---- header ---- */
.adm-header {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 24px; background: white; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.adm-logo img { display: block; height: 22px; width: auto; }
.adm-badge {
  font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--evergreen); background: var(--mint-soft); border-radius: var(--radius-pill); padding: 4px 10px;
}
.adm-header-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.adm-who { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 14px; }
.adm-who .pill { border-radius: var(--radius-pill); text-transform: capitalize; }

/* ---- layout ---- */
.adm-main { max-width: 1120px; margin: 0 auto; padding: 32px 24px 64px; }
.adm-card { background: white; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; }
.adm-narrow { max-width: 440px; margin: 32px auto 0; }
.adm-narrow-left { max-width: 440px; }
.adm-h1 { font-size: 28px; line-height: 34px; font-weight: 600; color: var(--ink); letter-spacing: -0.005em; }
.adm-muted { color: var(--muted); font-size: 14px; margin-top: 8px; }
.adm-hint { color: var(--muted); font-size: 13px; }
.adm-hint:empty, .adm-error:empty, .adm-success:empty { display: none; }
.adm-error { color: var(--coral-ink); font-size: 14px; font-weight: 600; }
.adm-success { color: var(--evergreen); font-size: 14px; font-weight: 600; }
.adm-foot { margin-top: 16px; font-size: 14px; text-align: center; }

/* ---- forms ---- */
.adm-form { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.adm-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink); }
.input { border-radius: var(--radius-sm); width: 100%; color: var(--ink); }
.input:focus { outline: 2px solid var(--mint-accent); outline-offset: 1px; border-color: var(--mint-accent); }
.btn { border-radius: var(--radius-sm); }
.btn:disabled { opacity: .55; cursor: progress; }
.btn:focus-visible, .adm-tabs button:focus-visible, .adm-switch:focus-visible { outline: 2px solid var(--evergreen); outline-offset: 2px; }
.adm-btn-sm { padding: 6px 12px; font-size: 13px; font-weight: 600; }
.btn-danger { background: white; border-color: var(--coral-soft); color: var(--coral-ink); }
.btn-danger:hover { background: var(--coral-soft); }
.btn-danger.is-armed { background: var(--coral-ink); border-color: var(--coral-ink); color: white; }

/* ---- tabs ---- */
.adm-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 32px; overflow-x: auto; }
.adm-tabs button {
  background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
  padding: 10px 16px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap;
}
.adm-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--evergreen); }
.adm-panel-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 24px; flex-wrap: wrap; }
.adm-panel-head > div { max-width: 640px; }
.adm-search { max-width: 260px; }

/* ---- tables ---- */
.adm-table-wrap { background: white; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow-x: auto; }
.adm-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.adm-table th, .adm-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.adm-table tbody tr:last-child td { border-bottom: 0; }
.adm-table th { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; background: var(--bg-soft); }
.adm-th-sub { display: block; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 11px; }
.adm-course-title { font-weight: 600; color: var(--ink); }
.adm-course-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.adm-links { display: flex; gap: 12px; font-size: 13px; white-space: nowrap; }
.adm-row-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.adm-table + .adm-hint, .adm-table-wrap + .adm-hint { margin-top: 12px; }

/* ---- visibility switch ---- */
.adm-vis { display: flex; align-items: center; gap: 10px; }
.adm-switch {
  position: relative; width: 44px; height: 24px; flex-shrink: 0;
  border-radius: var(--radius-pill); border: 0; cursor: pointer;
  background: var(--line); transition: background-color .15s;
}
.adm-switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: white; box-shadow: 0 1px 2px rgba(11,70,56,.2); transition: transform .15s;
}
.adm-switch[aria-checked="true"] { background: var(--evergreen); }
.adm-switch[aria-checked="true"]::after { transform: translateX(20px); }
.adm-switch:disabled { opacity: .5; cursor: progress; }
.adm-vis-label { font-size: 14px; font-weight: 600; color: var(--ink); min-width: 64px; }
.adm-vis-src { font-size: 11px; color: var(--muted); display: block; font-weight: 400; }

/* ---- users ---- */
.adm-inline-form { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 20px 24px; margin-bottom: 24px; }
.adm-inline-form .input { flex: 1 1 180px; width: auto; }
.adm-inline-form .adm-error { flex-basis: 100%; }
.adm-inline-title { color: var(--ink); flex-basis: 100%; }
.adm-secret { background: var(--mint-soft); border: 1px solid var(--mint); border-radius: var(--radius-lg); padding: 20px 24px; margin-bottom: 24px; display: flex; flex-direction: column; gap: 8px; }
.adm-secret strong { color: var(--ink); }
.adm-secret-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.adm-secret code { font-size: 18px; font-weight: 600; color: var(--ink); background: white; padding: 8px 12px; border-radius: var(--radius-sm); letter-spacing: .03em; user-select: all; }
.adm-secret .btn-ghost { align-self: flex-start; }
.adm-status { border-radius: var(--radius-pill); }

/* ---- activity ---- */
.adm-activity { list-style: none; padding: 0; background: white; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.adm-activity li { display: flex; gap: 16px; padding: 12px 20px; border-bottom: 1px solid var(--line); font-size: 14px; }
.adm-activity li:last-child { border-bottom: 0; }
.adm-activity time { color: var(--muted); white-space: nowrap; min-width: 150px; font-size: 13px; }
.adm-activity .who { color: var(--ink); font-weight: 600; }
.adm-activity .empty { color: var(--muted); }

/* ---- account ---- */
.adm-dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 16px 0 32px; font-size: 14px; }
.adm-dl dt { color: var(--muted); }
.adm-dl dd { color: var(--ink); font-weight: 600; }

/* ---- toast ---- */
.adm-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: var(--ink); color: white; padding: 10px 16px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; box-shadow: 0 12px 30px rgba(11,70,56,.18); z-index: 50; max-width: calc(100vw - 32px);
}
.adm-toast.is-error { background: var(--coral-ink); }

/* ---- mobile ---- */
@media (max-width: 640px) {
  .adm-header { padding: 12px 16px; flex-wrap: wrap; }
  .adm-who strong { display: none; }
  .adm-main { padding: 24px 16px 48px; }
  .adm-card { padding: 24px 20px; }
  .adm-h1 { font-size: 24px; line-height: 30px; }
  .adm-search { max-width: none; width: 100%; }
  .adm-activity li { flex-direction: column; gap: 2px; }

  /* tables become stacked cards */
  .adm-table { min-width: 0; }
  .adm-table thead { display: none; }
  .adm-table, .adm-table tbody, .adm-table tr, .adm-table td { display: block; width: 100%; }
  .adm-table tr { padding: 16px 20px; border-bottom: 1px solid var(--line); }
  .adm-table tbody tr:last-child { border-bottom: 0; }
  .adm-table td { border: 0; padding: 6px 0; }
  .adm-table td[data-label] { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
  .adm-table td[data-label]::before { content: attr(data-label); font-size: 12px; font-weight: 600; color: var(--muted); }
  .adm-row-actions { justify-content: flex-start; padding-top: 6px; }
}

/* ============================================================
   Course process scorecard
   Structure approved from the mock: a plain title, one readiness tile,
   six phase cards, and hairlines for everything else. No tiles inside
   tiles, so the drill-down reads as one surface rather than a stack.
   ============================================================ */

/* Layout, 6 October 2026. The verdict used to sit beside the title in one
   row, so a long note made a tall tile, left a hole under the title and
   pushed the phases down. It has a column of its own now. */
.sc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px 32px; align-items: start; }
.sc-main { min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.sc-side { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.sc-layout > .sc-drill { grid-column: 1 / -1; }
.sc-titleblock { min-width: 0; }
.sc-titleblock h1 { font-size: 27px; line-height: 33px; font-weight: 600; color: var(--ink); letter-spacing: -0.012em; }
.sc-cmeta { margin-top: 9px; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; }
.sc-cmeta span { white-space: nowrap; }
.sc-cmeta span + span::before { content: "\00b7"; margin: 0 8px; color: var(--line); }
.sc-titleblock > .sc-slabel { display: block; margin-bottom: 7px; }
.sc-picker { display: block; margin-bottom: 12px; max-width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; background: white; color: var(--ink); font-size: 14px; }

/* The one tile. A white surface that opens and closes. Its state is said
   three ways: the words, the colour of the words, and the bar. The bar
   takes the legend's colours; the words take the nearest colour that
   reads as text, because the legend's mint and coral do not. */
.sc-ready { border-radius: var(--radius-lg); background: white; color: var(--ink);
  border-left: 4px solid var(--coral-deep); --sc-ready-text: #8a1528; }
.sc-ready.attention { border-left-color: var(--coral); --sc-ready-text: var(--coral-ink); }
.sc-ready.minor { border-left-color: var(--mint); --sc-ready-text: #28765e; }
.sc-ready.clear { border-left-color: #28765e; --sc-ready-text: #28765e; }
.sc-ready > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto;
  align-items: center; gap: 2px 12px; padding: 16px 18px; min-height: 44px; border-radius: inherit; }
.sc-ready > summary::-webkit-details-marker { display: none; }
.sc-ready > summary:focus-visible { outline: 2px solid #0b4b3c; outline-offset: 2px; }
.sc-ready .rl { grid-column: 1; font-size: 10px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.sc-ready .rv { grid-column: 1; font-size: 21px; line-height: 1.2; font-weight: 700; letter-spacing: -0.015em; color: var(--sc-ready-text); }
/* The chevron: two borders of a small square, turned. */
.sc-ready .rc { grid-column: 2; grid-row: 1 / span 2; width: 9px; height: 9px; margin-right: 4px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s; }
.sc-ready[open] .rc { transform: rotate(-135deg); }
.sc-ready .rw { padding: 0 18px 18px; font-size: 13px; line-height: 1.5; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .sc-ready .rc { transition: none; } }

/* section rule: label left, legend right, no boxes */
.sc-srow { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.sc-slabel { font-size: 10.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.sc-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 11.5px; color: var(--muted); }
.sc-legend span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.sc-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.sc-dot.clear { background: var(--evergreen); }
.sc-dot.minor { background: var(--mint); }
.sc-dot.attention { background: var(--coral); }
.sc-dot.blocked { background: var(--coral-deep); }
.sc-dot.none { background: transparent; border: 1px dashed var(--muted); }
.sc-dot.waiver { background: var(--coral); box-shadow: 0 0 0 2.5px var(--coral-soft); }

/* the phase strip: the only repeated tile */
.sc-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(138px, 1fr)); gap: 10px; }
.sc-phase { background: white; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px; text-align: left; font: inherit; cursor: pointer; position: relative; display: flex; flex-direction: column; gap: 9px; transition: border-color .12s, box-shadow .12s; }
/* The five parts of a card (phase, name, progress, integrity, comment)
   sit on rows shared by every card in the line, so a name that wraps to
   three lines no longer pushes that card's bars below its neighbours'.
   Each card spans five rows of the strip and borrows them. Where a browser
   has no subgrid, the name keeps room for three lines, which gets the
   bars level in all but the rarest case. */
@supports (grid-template-rows: subgrid) {
  .sc-phase { display: grid; grid-template-rows: subgrid; grid-row: span 5; row-gap: 9px; align-content: start; }
  .sc-phase > * { align-self: start; min-width: 0; }
  .sc-phase > .sc-waivedot { grid-row: 1; }
}
@supports not (grid-template-rows: subgrid) {
  .sc-pname { min-height: calc(3 * 1.3em); }
}
.sc-phase:hover { border-color: var(--mint-accent); }
.sc-phase[aria-expanded="true"] { border-color: var(--evergreen); box-shadow: 0 0 0 1px var(--evergreen); }
.sc-phase.na { opacity: .5; cursor: default; }
.sc-phase.na:hover { border-color: var(--line); }
.sc-pnum { font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sc-pname { font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.sc-barlabel { display: flex; justify-content: space-between; gap: 8px; font-size: 10.5px; color: var(--muted); margin-bottom: 3px; }
.sc-bar { height: 6px; border-radius: var(--radius-pill); background: var(--bg-soft); overflow: hidden; }
.sc-bar i { display: block; height: 100%; background: var(--evergreen-deep); border-radius: var(--radius-pill); }
.sc-iband { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; }
.sc-iband.clear { color: var(--evergreen); }
.sc-iband.minor { color: var(--evergreen-deep); }
.sc-iband.attention, .sc-iband.blocked { color: var(--coral-ink); }
.sc-iband.none { color: var(--muted); font-weight: 500; }
.sc-ifill { height: 6px; border-radius: var(--radius-pill); flex: 1; }
.sc-ifill.clear { background: var(--evergreen); }
.sc-ifill.minor { background: var(--mint); }
.sc-ifill.attention { background: var(--coral); }
.sc-ifill.blocked { background: var(--coral-deep); }
.sc-ifill.none { background: repeating-linear-gradient(90deg, var(--muted) 0 3px, transparent 3px 7px); opacity: .55; }
.sc-worst { font-size: 11px; color: var(--muted); line-height: 1.35; }
.sc-waivedot { position: absolute; top: 9px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 3px var(--coral-soft); }

/* drill-down: one surface, hairline rows inside */
.sc-drill { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 20px; }
.sc-drill h2 { font-size: 17px; font-weight: 600; color: var(--ink); }
.sc-rule { margin-top: 9px; font-size: 12.5px; color: var(--muted); line-height: 1.6; max-width: 820px; }
.sc-rule b { color: var(--ink); font-weight: 600; }
.sc-basis { margin-top: 10px; font-size: 12.5px; line-height: 1.55; color: var(--coral-ink); border-left: 3px solid var(--coral-soft); padding-left: 12px; max-width: 820px; }
.sc-finding { padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 216px; gap: 28px; align-items: start; }
.sc-finding:first-of-type { border-top: 1px solid var(--line); margin-top: 18px; }
.sc-finding:last-child { border-bottom: 0; }
.sc-ftop { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sc-chip { font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; border-radius: var(--radius-pill); padding: 3px 9px; }
.sc-chip.blocked { background: var(--coral-ink); color: white; }
.sc-chip.attention { background: var(--coral-soft); color: var(--coral-ink); }
.sc-chip.minor { background: var(--mint-soft); color: var(--evergreen); }
.sc-chip.info { background: var(--bg-soft); color: var(--muted); }
.sc-fwhere { font-size: 12px; color: var(--muted); }
.sc-ftitle { margin-top: 7px; font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.sc-fbody { margin-top: 8px; font-size: 13.5px; line-height: 1.55; max-width: 620px; }
.sc-agent { margin-top: 10px; font-size: 11.5px; color: var(--muted); }
.sc-empty { margin-top: 18px; font-size: 13.5px; color: var(--muted); }

/* the amendable field: a column, not a box */
.sc-disp { border-left: 1px solid var(--line); padding-left: 20px; }
.sc-disp label { display: block; font-size: 10px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.sc-disp select, .sc-disp textarea { width: 100%; font: inherit; font-size: 13px; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 7px 9px; background: white; }
.sc-disp textarea { margin-top: 8px; resize: vertical; min-height: 62px; line-height: 1.45; }
.sc-disp select:focus, .sc-disp textarea:focus { outline: 2px solid var(--mint-accent); outline-offset: 1px; border-color: var(--mint-accent); }
.sc-effect { margin-top: 8px; font-size: 11.5px; line-height: 1.45; color: var(--muted); }
.sc-signed { margin-top: 8px; font-size: 11.5px; color: var(--evergreen); font-weight: 600; }
.sc-note { margin-top: 0; font-size: 13px; color: var(--muted); line-height: 1.6; border-left: 3px solid var(--mint); padding-left: 14px; max-width: 760px; }

/* One column: the wrappers dissolve so the parts can be put in reading
   order, with the note last. */
@media (max-width: 1023px) {
  .sc-layout { display: flex; flex-direction: column; align-items: stretch; gap: 22px; }
  .sc-main, .sc-side { display: contents; }
  .sc-titleblock { order: 1; } .sc-ready { order: 2; } .sc-phases { order: 3; }
  .sc-layout > .sc-drill { order: 4; } .sc-note { order: 5; }
}
@media (max-width: 980px) { .sc-strip { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 621px) { .sc-worst { min-height: 30px; } }
@media (max-width: 800px) {
  .sc-finding { grid-template-columns: 1fr; gap: 0; padding: 18px 0; }
  .sc-disp { border-left: 0; border-top: 1px dashed var(--line); padding-left: 0; padding-top: 14px; margin-top: 14px; }
}
@media (max-width: 700px) {
  .sc-titleblock h1 { font-size: 22px; line-height: 28px; }
  .sc-cmeta { font-size: 12.5px; }
}
@media (max-width: 620px) { .sc-strip { grid-template-columns: repeat(2, 1fr); gap: 8px; } }

/* Learning tab */
.adm-h2 { font-size: 15px; font-weight: 600; margin: 32px 0 12px; }
.adm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.adm-stat { background: white; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 20px; display: flex; flex-direction: column; gap: 2px; }
.adm-stat strong { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.adm-stat span { font-size: 13px; color: var(--ink); }
.adm-stat small { font-size: 12px; color: var(--muted); }
.adm-learn { background: white; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 24px; margin-bottom: 12px; }
.adm-learn-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.adm-learn-facts { display: flex; gap: 28px; margin: 0; flex-wrap: wrap; }
.adm-learn-facts dt { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.adm-learn-facts dd { margin: 2px 0 0; font-size: 18px; font-weight: 600; }
.adm-learn-facts dd small { font-size: 12px; font-weight: 400; color: var(--muted); }
.adm-learn-table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 14px; }
.adm-learn-table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 6px 8px 6px 0; border-bottom: 1px solid var(--line); }
.adm-learn-table td { padding: 8px 8px 8px 0; border-bottom: 1px solid var(--line); }
.adm-learn-table tbody tr:last-child td { border-bottom: 0; }
.adm-num { text-align: right !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.adm-bar-cell { width: 34%; padding-left: 16px !important; }
.adm-bar { display: block; height: 8px; background: var(--bg-soft); border-radius: 999px; overflow: hidden; }
.adm-bar span { display: block; height: 100%; background: var(--evergreen); border-radius: 999px; }
.adm-learn .adm-hint { margin: 12px 0 0; }
@media (max-width: 640px) {
  .adm-learn { padding: 16px; }
  .adm-learn-facts { gap: 16px 24px; }
  .adm-bar-cell { display: none; }
}

/* Creators tab */
.adm-count { color: var(--muted); font-size: 13px; margin: 0 0 10px; }
.adm-count:empty { display: none; }
.adm-interest { list-style: none; padding: 0; margin: 0; overflow: hidden; background: white; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.adm-interest > li { padding: 18px 20px; border-bottom: 1px solid var(--line); font-size: 14px; }
.adm-interest > li:last-child { border-bottom: 0; }
.adm-interest > li.is-handled { background: var(--bg-soft); }
.adm-interest > li.is-handled .adm-interest-topic { color: var(--muted); }
.adm-interest-head { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 16px; flex-wrap: wrap; }
.adm-interest-head time { font-size: 13px; white-space: nowrap; }
.adm-interest-topic { margin: 8px 0 12px; max-width: 70ch; color: var(--ink); line-height: 1.5; }
.adm-interest-foot { display: flex; align-items: center; gap: 8px 20px; flex-wrap: wrap; font-size: 13px; }
.adm-interest-foot a { overflow-wrap: anywhere; }
.adm-interest-act { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; }

/* Withdrawn course row: nothing to switch */
.adm-table tr.is-withdrawn .adm-course-title { color: var(--muted); }
.adm-table tr.is-withdrawn .adm-vis-src { display: inline; margin-left: 10px; }

/* Backup: the intro sat flush against the first card */
.adm-panel[data-panel="backup"] > .adm-muted { margin-bottom: 20px; max-width: 70ch; }
.adm-panel[data-panel="backup"] .adm-card .btn { margin-top: 14px; }

#sc-missing { margin: 14px 0 0; max-width: 80ch; }

/* Users tab: the creator an account acts for */
.adm-select-sm { width: auto; min-width: 150px; padding: 6px 10px; font-size: 13px; height: auto; }
.adm-inline-form select.input { flex: 0 1 200px; }
.adm-who .pill { text-transform: none; }

/* ---- Organizations (decision 463) ---- */
.adm-org-pick { display: flex; align-items: center; gap: 12px; margin: 0 0 24px; flex-wrap: wrap; }
.adm-org-pick label { font-size: 13px; font-weight: 600; color: var(--muted); }
.adm-org-pick .input { width: auto; min-width: 260px; max-width: 100%; }
.adm-org-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 16px; }
.adm-org-name { font-size: 20px; font-weight: 600; margin: 0 0 4px; }
.adm-org-head .adm-muted { margin: 0; }
.adm-org-edit { margin-bottom: 8px; }
.adm-org-edit > summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.adm-org-edit[open] > summary { margin-bottom: 16px; }
.adm-org-edit .adm-inline-form { padding: 16px 0; margin: 0; }
.adm-org-edit textarea.input, #form-invite textarea.input { resize: vertical; font: inherit; }
.adm-org-progress-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.adm-org-progress-head .adm-h2 { margin-bottom: 12px; }
.adm-h3 { font-size: 14px; font-weight: 600; margin: 20px 0 8px; }
.adm-table-scroll { overflow-x: auto; }
.btn-ghost.is-armed { border-color: var(--coral-ink); color: var(--coral-ink); }
#org-course-table .adm-select-sm { min-width: 170px; }
@media (max-width: 640px) {
  .adm-org-pick .input { min-width: 0; width: 100%; }
  .adm-table-scroll .adm-learn-table { min-width: 520px; }
}
.adm-org-edit .adm-inline-form select.input, #org-course-table select { min-width: 0; max-width: 100%; }
