/* What the administration adds to the second pass's language (../pass2/pass2.css): its coral button, its frame and its
   pages. Width at most 1 120 px; nothing scrolls the page sideways at 375 px. */
.top { flex-wrap: wrap; }
.brand b { white-space: normal; overflow-wrap: anywhere; }
.top-side { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.who { font-size: .85rem; color: var(--gray-600); }

.btn { white-space: normal; text-align: center; }
.btn.primary { background: var(--action); color: #fff; }
.btn.primary:hover { background: var(--action-hover); }

.admin-nav { display: flex; flex-wrap: wrap; gap: 4px; max-width: 1120px; margin: 0 auto; padding: 10px 24px 0; }
.admin-nav button { border: 0; background: none; padding: 6px 12px; border-radius: var(--r-pill); color: var(--gray-600); font-weight: 600; cursor: pointer; }
.admin-nav button:hover { color: var(--brand-deep); }
.admin-nav button[aria-current="page"] { background: var(--gray-0); color: var(--brand-deep); box-shadow: 0 1px 3px rgb(29 42 51 / .14); }

.admin-page { max-width: 1120px; margin: 0 auto; padding: 22px 24px 64px; overflow-wrap: anywhere; }
.admin-page h1.title { margin: 6px 0 18px; }
/* Two cards that follow each other never touch. */
.admin-page .card + .card { margin-top: 14px; }
/* A table keeps its words and its codes whole: it scrolls in its own box instead (.scroll-x). */
.admin-page table { overflow-wrap: normal; word-break: normal; }
.admin-page h1.title:focus { outline: 0; }
.home-sub { margin: 26px 0 6px; font: 700 1.05rem/1.3 var(--title); }
.stack > * + * { margin-top: 14px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.step-actions { margin: 18px 0 8px; }
.effect, .hint { font-size: .85rem; color: var(--gray-600); }
.effect { margin-top: 4px; }
.soon { color: var(--gray-600); }

/* Sign-in */
.sign-in { max-width: 440px; margin: 24px auto 0; }
.sign-in > * + * { margin-top: 14px; }
.sign-in h1.title { margin-top: 0; margin-bottom: 0; }

/* A setting */
.ctl textarea { flex: 1; width: 100%; min-width: 0; padding: 10px 12px; border: 0; background: transparent; outline: 0; font: inherit; resize: vertical; }
.tick { display: flex; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; }
.tick input { flex: none; width: 20px; height: 20px; accent-color: var(--brand-deep); }
.setting { max-width: 640px; }
.credential { padding-top: 14px; border-top: 1px solid var(--gray-200); }
.credential > * + * { margin-top: 8px; }
.set-line { font-weight: 600; }
.mock-answer { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .85rem; color: var(--gray-600); }
.mock-answer select { min-height: 34px; padding: 0 8px; border: 1px solid var(--gray-200); border-radius: var(--r-control); background: var(--gray-50); }

/* The guide */
.steps { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; padding: 0; list-style: none; font-size: .8rem; }
.steps li { padding: 2px 10px; border-radius: var(--r-pill); background: var(--gray-200); color: var(--gray-600); }
.steps li.past { background: var(--highlight); color: var(--brand-deep); }
.steps li.here { background: var(--brand-deep); color: #fff; font-weight: 600; }
.people { margin: 0; padding: 0; list-style: none; }
.people li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; padding: 8px 0; border-bottom: 1px solid var(--gray-100); }
.people .mail { color: var(--gray-600); font-size: .85rem; }
.admin-add { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; gap: 12px; }
.public-frame { display: block; width: 100%; border: 1px solid var(--gray-200); border-radius: var(--r-control); background: var(--gray-100); }
.public-frame.trial { height: 640px; }
.public-frame.small { height: 240px; margin-top: 10px; }

/* The home */
ul.lines { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.need { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 18px; padding: 14px 16px; border-radius: var(--r-control); border-left: 4px solid var(--brand); background: var(--gray-0); box-shadow: var(--shadow-float); }
.need.act { border-left-color: var(--action); }
.need p { flex: 1 1 280px; min-width: 0; }
.all-well { padding: 14px 16px; border-radius: var(--r-control); border-left: 4px solid var(--brand); background: var(--gray-0); box-shadow: var(--shadow-float); font-weight: 600; color: var(--gray-900); }
.calm { margin: 14px 0 0; padding: 0; list-style: none; color: var(--gray-600); }
.public-now { margin-top: 14px; }
.public-now summary { width: fit-content; color: var(--brand-deep); font-weight: 600; cursor: pointer; }
.sections { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 16px; padding: 0; list-style: none; }

/* Settings */
.admin-page h2.sect { margin: 0 0 4px; font: 700 1.15rem/1.3 var(--title); }
.admin-page h2.sect:focus { outline: 0; }
.mini { margin: 0 0 6px; font: 700 .95rem/1.3 var(--title); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.now { margin: 2px 0; font-weight: 600; color: var(--gray-900); }
.now .k { margin-right: 8px; font-size: .78rem; font-weight: 600; color: var(--gray-600); text-transform: uppercase; letter-spacing: .06em; }
.setting + .setting { padding-top: 14px; border-top: 1px solid var(--gray-100); }
.setting .ctl, .setting .tick { margin-top: 8px; }
.setting .actions { margin-top: 10px; }
.setting .note { margin-top: 8px; }
.with-preview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 28px; align-items: start; }
.with-preview .preview { position: sticky; top: 12px; }
.preview .public-frame { height: 520px; margin: 8px 0; }
.test-card-box { margin-top: 14px; }
.test-card-mark { margin: 8px 0 0; }
.test-card { margin-top: 8px; padding: 12px; border: 1px dashed var(--gray-500); border-radius: var(--r-control); background: var(--gray-50); }
.field-ticks { margin-top: 8px; display: grid; gap: 8px; }
.field-ticks .tick { margin-top: 0; }

/* Administrators and History */
.admins li { align-items: flex-start; }
.who-line { min-width: 0; flex: 1 1 260px; }
.row-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.scroll-x { overflow-x: auto; max-width: 100%; border: 1px solid var(--gray-200); border-radius: var(--r-control); background: var(--gray-0); }
table.hist { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .92rem; }
.hist th, .hist td { padding: 8px 12px; border-bottom: 1px solid var(--gray-100); text-align: left; vertical-align: top; }
.hist th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gray-600); }
.hist .when, .hist .nw { white-space: nowrap; }

/* Tariff data and differences */
.chip.neutral { background: var(--gray-200); color: var(--gray-600); }
.hist th.num, .hist td.num { text-align: right; font-variant-numeric: tabular-nums; }
.hist th[scope="row"] { font-size: inherit; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--gray-900); }
.hist th[scope="row"] .effect { display: block; font-weight: 400; }
.hist tr.total th, .hist tr.total td { border-top: 2px solid var(--gray-200); font-weight: 700; }
/* In a figure's cell the mark sits under the figure, so a column stays narrow. */
.hist td .invented small, .hist th .invented small { display: block; width: fit-content; margin: 2px 0 0 auto; }
.hist td:not(.num) .invented small, .hist th .invented small { margin-left: 0; }
table.taxes { min-width: 640px; }
.defects { margin: 0; padding-left: 20px; }
.defects li + li { margin-top: 6px; }
fieldset.map { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; border: 0; }
fieldset.map legend { grid-column: 1 / -1; padding: 0; }
.entry-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; align-items: end; }
.entry-form .actions { grid-column: 1 / -1; }
.translations { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.translations li { padding: 12px 0; border-top: 1px solid var(--gray-100); }
.translations p + p { margin-top: 4px; }
.translations .k { margin-right: 6px; font-size: .78rem; font-weight: 600; color: var(--gray-600); text-transform: uppercase; letter-spacing: .06em; }
.fix { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 14px; margin-top: 8px; }
.fix .field { flex: 1 1 260px; }

/* An invented figure carries its mark wherever it is shown. */
.invented small { display: inline-block; margin-left: 4px; padding: 0 7px; border-radius: var(--r-pill); background: var(--gap-soft); color: var(--gap-ink); font-size: .72rem; font-weight: 600; white-space: nowrap; }

@media (max-width: 720px) {
  .top { padding: 10px 16px; }
  .admin-nav { padding: 8px 16px 0; }
  .admin-page { padding: 16px 16px 56px; }
  .admin-add { grid-template-columns: minmax(0, 1fr); }
  .public-frame.trial { height: 560px; }
  .with-preview { grid-template-columns: minmax(0, 1fr); }
  .with-preview .preview { position: static; }
  .preview .public-frame { height: 440px; }
  fieldset.map { grid-template-columns: minmax(0, 1fr); }
  .invented small { white-space: normal; }
}
