/* The console's doors on the Sheet. The form comes from request-access.css; these are the parts only a door has. */
/* Native controls drawn for a dark page: scrollbars, date pickers, select lists, checks. */
:root { color-scheme: dark; accent-color: var(--accent); }
.ra-form ::placeholder { color: var(--ink-2); opacity: 1; }
.ra-form .check-box { width: 16px; height: 16px; margin: 2px 0 0; }
.door-page { min-height: 62vh; }
.door-page .sub { max-width: 46ch; }
.door-page .sub code, .door-facts code { font-family: var(--mono); font-size: .88em; color: var(--ink-3); }
.door-facts { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.door-facts li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.door-facts b { font-weight: 510; color: var(--ink-3); }
.door-facts a { color: var(--ink-3); text-underline-offset: 3px; }
@media (max-width: 480px) { .door-facts li { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.door-page .door-card a.ab { display: block; text-align: center; text-decoration: none; }
.door-page .fine-links { margin: 14px 20px 0; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.door-page .fine-links a, .door-page .fine-links .coin { color: var(--ink-3); text-underline-offset: 3px; }
.door-page form.fine-links { margin: 12px 0 0; }
.door-page .coin { font: inherit; }
.door-page .field-box.code { font-family: var(--mono); letter-spacing: .08em; }

/* The team console and the staff office: the Sheet, arranged for reading tables. Every class comes from the templates; the form rows come from request-access.css through .ra-form. Red and green stay beside deny and allow; errors are amber. */
.office > .wrap { padding: clamp(28px, 4vw, 48px) 0 72px; min-height: 62vh; }
.office .ra-lbl { margin-bottom: 12px; }
.office h1 { font-size: clamp(30px, 3.4vw, 42px); margin: 0; }
.office h2 { font-size: 22px; line-height: 1.2; letter-spacing: -.016em; margin: 44px 0 14px; color: var(--ink); }
.office h3 { font-size: 16px; margin: 24px 0 8px; color: var(--ink); }
.office p { font-size: 14.5px; line-height: 1.55; color: var(--ink-3); max-width: 72ch; }
.office .sub { font-size: 16px; color: var(--ink-2); margin: 10px 0 22px; }
.office a { color: var(--ink); text-underline-offset: 3px; }
.office code { font-family: var(--mono); font-weight: 400; font-size: .88em; color: var(--ink-3); }
.office-head { display: flex; flex-direction: column; gap: 18px; margin-bottom: 14px; }
.staff-bar { display: flex; align-items: center; justify-content: space-between; gap: 6px 18px; flex-wrap: wrap; border-bottom: 1px solid var(--rule); }
.staff-bar form { margin: 0; }
.office-nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.office .office-nav a { display: inline-block; padding: 10px 0 11px; margin-bottom: -1px; border-bottom: 1px solid transparent; font-size: 13.5px; font-weight: 510; letter-spacing: -.01em; color: var(--ink-2); text-decoration: none; white-space: nowrap; transition: color .16s var(--quick); }
.office .office-nav a:hover { color: var(--ink); }
.office .office-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.badge { display: inline-block; min-width: 1.5em; padding: 1px 5px; margin-left: 4px; border-radius: 99px; background: var(--accent); color: var(--paper); font-size: 11px; line-height: 1.4; font-weight: 600; text-align: center; }
.office .fine-links.console-who { margin: 8px 0 22px; font-size: 13px; color: var(--ink-2); }
.office .console-who a { color: var(--ink-2); }
.office .console-who b { font-weight: 510; color: var(--ink-3); }

/* numbers */
.counts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 12px; margin: 22px 0 18px; }
.counts div { padding: 16px 18px; border: 1px solid var(--rule); border-radius: 12px; background: var(--panel); }
.counts dt { font-size: 12.5px; line-height: 1.4; color: var(--ink-2); }
.counts dd { margin: 8px 0 0; font-size: 32px; line-height: 1; font-weight: 510; letter-spacing: -.022em; color: var(--ink); }
.office .counts dd a { text-decoration: none; }
.office .counts dd a:hover { color: var(--accent); }

/* tables */
.table-wrap { max-width: 100%; margin: 0 0 8px; overflow-x: auto; scrollbar-color: var(--rule-2) transparent; border: 1px solid var(--rule); border-radius: 12px; background: var(--panel); }
.sheet-list { width: 100%; border-collapse: collapse; font-size: 13.5px; color: var(--ink-3); }
.sheet-list th, .sheet-list td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--rule); }
.sheet-list th { font-size: 12px; font-weight: 510; color: var(--ink-2); white-space: nowrap; }
.sheet-list tbody tr:last-child td { border-bottom: 0; }
.sheet-list td { white-space: nowrap; }
.sheet-list td.note { white-space: normal; min-width: 13rem; }
.sheet-list td:last-child { white-space: normal; }
.sheet-list .who span { display: block; }
.sheet-list .who span:last-child { color: var(--ink-2); font-size: 12.5px; }
.sheet-list tr.waiting td:first-child { box-shadow: inset 2px 0 0 var(--accent); }
.sheet-list tr.empty td { color: var(--ink-2); padding: 22px 14px; white-space: normal; }
.sheet-list form { margin: 0; }
.sheet-list td > form:not(.member-role), .sheet-list td > a.coin { display: inline-block; margin: 0 4px 4px 0; vertical-align: top; }
.sheet-list.wide td { white-space: normal; min-width: 3rem; }
.sheet-list.wide td.code { min-width: 6.5rem; }
.sheet-list td.denies { min-width: 12rem; }
.sheet-list.wide td.nowrap { white-space: nowrap; }
.sheet-list.wide td.dest { min-width: 12rem; }
.sheet-list tr.deny td:nth-child(2) { color: var(--deny); }
.sheet-list tr.allow td:nth-child(2) { color: var(--allow); }
.sheet-list tr.approved td:nth-child(2) { color: var(--accent); }
.sheet-list tr.gap td, .sheet-list tr.reset td { color: var(--ink-2); font-style: italic; }
.sheet-list tr.revoked td { color: var(--ink-2); }
.sheet-list tr.has-review > td { border-bottom: 0; padding-bottom: 4px; }
.sheet-list tr.review-row > td { padding-top: 0; }
/* stays in view when the table scrolls sideways */
.sheet-list tr.review-row form.review { position: sticky; left: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; width: 100%; min-width: 0; max-width: calc(100vw - 62px); }
.sheet-list tr.review-row form.review input[name=reason] { flex: 1 1 16rem; max-width: 28rem; }
.code, .sheet-list td.code, .mono { font-family: var(--mono); font-weight: 400; font-size: 12.5px; overflow-wrap: anywhere; }
.small { font-size: 12.5px; }
.dim { color: var(--ink-2); }
.nowrap { white-space: nowrap; }
.bad, .sheet-list tr.alert td:first-child { color: #e3b341; }
span.warn, .sheet-list tr.warn td:first-child { color: var(--ink); font-weight: 510; }
.sheet-list tr.info td:first-child { color: var(--ink-2); }
.tag { display: inline-block; padding: 1px 8px; border: 1px solid var(--rule-2); border-radius: 99px; font-size: 12px; line-height: 1.5; color: var(--ink-3); white-space: nowrap; }
.tag.filled { border-color: rgba(79, 242, 240, .45); color: var(--accent); }

/* notices */
.office .flash { display: block; max-width: none; margin: 16px 0; padding: 11px 14px; border: 1px solid rgba(79, 242, 240, .35); border-radius: 10px; background: var(--panel); font-size: 14px; color: var(--ink-3); }
.office .flash.warn { border-color: var(--rule-2); }
.office .flash.bad { border-color: rgba(227, 179, 65, .45); color: #e3b341; }
.office .flash a { color: inherit; }
.office .flash p { margin: 0 0 6px; max-width: none; }
.office .flash .copy { user-select: all; overflow-wrap: anywhere; margin: 0 0 6px; }
.office .form-errors { margin: 12px 0; }
.office .door-card > .form-errors { margin: 8px 20px; }

/* buttons and links: white for the main action, glass beside it, as .pill and .pill.ghost on the public pages */
.office .ab, .door-page .ab, .closed .ab { appearance: none; display: inline-block; padding: 9px 14px; border: 1px solid var(--ink); border-radius: 8px; background: var(--ink); color: var(--paper); font: 510 13.5px/1.2 var(--sans); letter-spacing: -.01em; text-decoration: none; cursor: pointer; transition: background .16s var(--quick); }
.office .ab:hover, .door-page .ab:hover { background: #e6e7e8; border-color: #e6e7e8; }
.office .ab.m { border-color: var(--rule-2); background: var(--glass); color: var(--ink); }
.office .ab.m:hover { background: var(--glass-2); border-color: var(--rule-2); }
.office .ab[disabled] { opacity: .45; cursor: not-allowed; }
.coin { appearance: none; padding: 0; border: 0; background: none; color: var(--ink-3); font: 510 13.5px/1.4 var(--sans); letter-spacing: -.01em; text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: 3px; cursor: pointer; transition: color .16s var(--quick), background .16s var(--quick); }
.coin:hover { color: var(--ink); }
.office .coin { display: inline-block; padding: 6px 10px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 8px; background: var(--glass); color: var(--ink); font-size: 13px; line-height: 1.3; text-decoration: none; white-space: nowrap; }
.office .coin:hover { background: var(--glass-2); }
.office .fine-links { margin: 8px 0 0; font-size: 13px; color: var(--ink-2); }
.office .fine-links a { color: var(--ink-3); }
.office form.fine-links { margin: 12px 0 0; }
.office .staff-bar .coin { padding: 0; border: 0; background: none; color: var(--ink-2); font-size: 13.5px; }
.office .staff-bar .coin:hover { background: none; color: var(--ink); }
.door-card .fine-links { margin: 12px 20px 0; }
.door-card > p.form-errors { max-width: none; }
form.inline { display: inline; }

/* forms outside a door card */
.office .door-card { max-width: 40rem; margin-top: 16px; }
.office .ra-grid { margin-top: 28px; }
.office .ra-grid .door-card:first-child { margin-top: 0; }
.office .door-facts { margin: 0 0 28px; }
.office .exposure-card header { position: static; z-index: auto; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 0; background: none; backdrop-filter: none; border-bottom: 1px solid var(--rule); }
form.review { display: grid; grid-template-columns: auto minmax(8rem, 1fr) auto; gap: 8px 12px; align-items: center; min-width: 18rem; }
form.review input, form.filters input, form.filters select, form.invite input[type=email], form.invite input[type=text], .office form.invite select, .office form.member-role select { width: auto; padding: 8px 11px; border: 1px solid var(--rule-2); border-radius: 8px; background: var(--paper); color: var(--ink); font: 400 14px/1.4 var(--sans); letter-spacing: -.01em; }
form.invite input[type=email], form.invite input[type=text], .office form.invite select { width: 100%; }
form.review input:focus, form.filters input:focus, form.filters select:focus, form.invite input:focus, .office form.invite select:focus, .office form.member-role select:focus, form.publish textarea:focus { outline: 0; border-color: var(--accent); }
.office form.member-role { display: flex; align-items: center; gap: 8px; min-width: 14rem; }
form.filters { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: end; margin: 18px 0 10px; font-size: 13px; font-weight: 510; letter-spacing: -.01em; color: var(--ink-3); }
form.filters label { display: grid; gap: 4px; flex: 0 1 auto; }
form.filters label:not(.check) input, form.filters label:not(.check) select { width: 100%; }
form.filters label.check, form.invite label.check { display: flex; gap: 8px; align-items: center; min-height: 38px; font-size: 13.5px; font-weight: 400; color: var(--ink-3); }
form.invite label.check { min-height: 0; }
form.filters .coin { padding: 9px 12px; }
.office form.filters a { padding: 9px 0; color: var(--ink-3); font-size: 13px; }
form.invite { display: grid; gap: 12px; max-width: 30rem; margin: 12px 0 0; font-size: 13px; font-weight: 510; letter-spacing: -.01em; color: var(--ink-3); }
form.invite label { display: grid; gap: 6px; }
form.invite .ab, form.publish .ab { justify-self: start; }
form.publish { margin: 12px 0 0; }
form.publish textarea { width: 100%; min-height: 22rem; padding: 12px 14px; border: 1px solid var(--rule-2); border-radius: 10px; background: var(--paper); color: var(--ink); font: 400 13px/1.55 var(--mono); resize: vertical; }
form.publish .buttons { display: flex; gap: 18px; align-items: center; margin-top: 16px; }
form.exposure textarea { min-height: 9rem; }
.field-label { display: block; margin: 18px 0 6px; font-size: 13px; font-weight: 510; letter-spacing: -.01em; color: var(--ink-3); }
form.mcp-add small { font-size: 12.5px; font-weight: 400; line-height: 1.4; color: var(--ink-2); }
form.mcp-add fieldset.mcp-kind { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; }
form.mcp-add fieldset.mcp-kind legend { padding: 0 0 4px; }
form.mcp-members { max-width: 44rem; }
form.mcp-members .fine-links { margin: 0 0 4px 26px; }
form.mcp-add label[hidden], form.mcp-add label.check[hidden] { display: none; }

/* documents, verdicts, facts */
pre.doc { margin: 12px 0 20px; padding: 14px 16px; overflow-x: auto; border: 1px solid var(--rule); border-radius: 10px; background: var(--panel); color: var(--ink-3); font: 400 13px/1.55 var(--mono); }
pre.diff .add { display: inline-block; width: 100%; color: var(--accent); }
pre.diff .del { display: inline-block; width: 100%; color: #e3b341; }
.verdict { margin: 16px 0; padding: 12px 16px; border: 1px solid rgba(79, 242, 240, .35); border-radius: 10px; background: var(--panel); }
.verdict.bad { border-color: rgba(227, 179, 65, .45); }
.verdict p { margin: 0; max-width: none; }
.verdict ul { margin: 8px 0 0; padding-left: 1.2em; font-size: 13.5px; color: var(--ink-3); }
dl.facts { display: grid; gap: 8px; margin: 18px 0; font-size: 14px; }
dl.facts div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 12px; }
dl.facts dt { font-size: 13px; color: var(--ink-2); padding-top: 1px; }
dl.facts dd { margin: 0; color: var(--ink-3); overflow-wrap: anywhere; }
.exposure-card { margin: 16px 0; padding: 0 18px 10px; border: 1px solid var(--rule); border-radius: 12px; background: var(--panel); }
.exposure-card.is-reached { border-color: rgba(227, 179, 65, .45); }
.exposure-card.is-clear { border-color: rgba(79, 242, 240, .35); }
.exposure-card.is-reached header b { color: #e3b341; }
.exposure-card dl.facts { margin: 12px 0; }
.exposure-card details summary { margin: 8px 0; color: var(--ink-3); font-size: 13.5px; cursor: pointer; }
.office .steps { margin: 8px 0 24px; padding-left: 1.3em; }
.office .steps > li { margin: 6px 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-3); }
.office .lede { max-width: 46rem; margin: 4px 0 22px; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.office details.more { max-width: 48rem; margin: 44px 0 0; padding-top: 14px; border-top: 1px solid var(--rule); }
.office details.more summary { width: fit-content; font-size: 13.5px; font-weight: 510; color: var(--ink-2); cursor: pointer; }
.office details.more[open] summary { margin-bottom: 10px; color: var(--ink); }
.office details.more p, .office details.more li { font-size: 14px; color: var(--ink-2); }
.office details.more ul { margin: 0; padding-left: 18px; }
.office .section-note { max-width: 46rem; margin: -6px 0 12px; font-size: 13.5px; color: var(--ink-2); }
.recovery-codes { columns: 2; max-width: 26rem; margin: 12px 0; padding: 14px 14px 14px 36px; border: 1px solid var(--rule); border-radius: 10px; background: var(--panel); color: var(--ink); }
.qr { justify-self: start; width: fit-content; padding: 12px; border-radius: 10px; background: #fff; }
.qr svg, .qr img { display: block; width: 176px; height: 176px; }
.teamform { max-width: 40rem; margin-top: 24px; }
@media (max-width: 720px) {
  form.filters label:not(.check) { flex: 1 1 140px; }
  .recovery-codes { columns: 1; }
  form.review { grid-template-columns: minmax(0, 1fr); min-width: 0; }
  dl.facts div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* the closed page */
.closed { min-height: 100vh; display: grid; align-items: center; padding: 48px 0; }
.closed .px { display: block; margin: 0 0 14px; color: var(--ink-2); }
.ra-form form.publish textarea, .office form.publish textarea.field-box { font: 400 13px/1.55 var(--mono); }
form.invite .coin, form.invite button { justify-self: start; }
.office .table-wrap + p, .console-who + .table-wrap { margin-top: 10px; }
/* status pills in tables, not the header's white button of the same class */
.office .sheet-list .pill { height: auto; background: none; border: 1px solid var(--rule-2); border-radius: 99px; padding: 1px 8px; font-size: 12px; font-weight: 400; line-height: 1.5; color: var(--ink-2) !important; box-shadow: none; }
.office .sheet-list .pill.filled { border-color: rgba(79, 242, 240, .45); color: var(--accent) !important; }
