/* The Oakridge Portal. Same warm campfire colours as greateroakridge.com. */
:root {
  --bg: #0d0a08; --bg-2: #14100c; --surface: rgba(255, 238, 220, .045); --surface-2: rgba(255, 238, 220, .075);
  --border: rgba(255, 228, 200, .11); --border-strong: rgba(255, 228, 200, .22);
  --text: #f7efe6; --text-2: #d8c9b9; --muted: #a8968a;
  --ember: #f08a3c; --ember-2: #ffb36b; --ember-deep: #c25e1b;
  --danger: #ef5a4c; --success: #4cc38a; --warning: #f0b429; --info: #6aa5ff;
  --display: 'Poppins', system-ui, sans-serif; --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 14px; color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; color: var(--text); font: 15px/1.6 var(--body);
  background: radial-gradient(ellipse 90% 50% at 50% -5%, rgba(240, 138, 60, .16), transparent 70%), var(--bg); overflow-x: hidden; }
a { color: var(--ember-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.2; }
h1 { font: italic 800 clamp(1.9rem, 5vw, 3rem)/1.1 var(--display); letter-spacing: -.01em; }
h2 { font: italic 700 1.35rem/1.2 var(--display); margin-top: 8px; }
h3 { font-size: 1.02rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }
p { margin: 0 0 .8em; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
main.wrap { flex: 1; padding-bottom: 48px; }
section { margin-top: 40px; }
.ic { width: 20px; height: 20px; flex: none; }
.ic-sm { width: 15px; height: 15px; }

/* Top bar */
.top { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--border); background: rgba(13, 10, 8, .85); backdrop-filter: blur(10px); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font: italic 700 1.1rem var(--display); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand b { color: var(--ember); }
.account { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--text-2); }
.who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 140px; }
.who img { border-radius: 50%; flex: none; }

/* Buttons and tags */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 10px; border: 1px solid var(--border-strong);
  background: var(--surface-2); color: var(--text); font: 600 14px var(--body); cursor: pointer; white-space: nowrap; }
.btn:hover { text-decoration: none; border-color: var(--ember); }
.btn:disabled { opacity: .55; cursor: not-allowed; border-color: var(--border); }
.btn-primary { background: linear-gradient(180deg, var(--ember), var(--ember-deep)); border-color: transparent; color: #1a0d04; }
.btn-ghost { background: transparent; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); white-space: nowrap; }
.tag-owner { color: var(--ember-2); border-color: rgba(240, 138, 60, .45); }
.tag-lead { color: var(--info); border-color: rgba(106, 165, 255, .4); }

/* Status lights */
.light { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.light i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.light-online { color: var(--success); } .light-online i { background: var(--success); box-shadow: 0 0 0 3px rgba(76, 195, 138, .18); }
.light-maintenance { color: var(--warning); } .light-maintenance i { background: var(--warning); }
.light-down { color: var(--danger); } .light-down i { background: var(--danger); }

/* Notices */
.notice { background: rgba(240, 180, 41, .1); border-bottom: 1px solid rgba(240, 180, 41, .3); color: var(--text); padding: 10px 0; font-size: 14px; }
.notice span { color: var(--text-2); }
.alert { margin: 20px 0 0; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(239, 90, 76, .4); background: rgba(239, 90, 76, .08); }
.loading { padding: 60px 0; text-align: center; }

/* Hero */
.hero { padding: 56px 0 8px; max-width: 760px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ember); margin-bottom: 10px; }
.hero .lead { font-size: 1.08rem; color: var(--text-2); max-width: 620px; }
.summary { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }

.access-box { margin-top: 28px; padding: 20px 22px; border-radius: var(--r); border: 1px solid rgba(240, 138, 60, .3);
  background: linear-gradient(135deg, rgba(240, 138, 60, .1), rgba(240, 138, 60, .02)); }
.access-box h3 { color: var(--ember-2); }
.access-box p { max-width: 680px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: s; }
.steps li { padding: 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--border); }
.steps li > span { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(240, 138, 60, .14); color: var(--ember-2); margin-bottom: 10px; }
.steps b { display: block; margin-bottom: 4px; }
.steps p { margin: 0; font-size: 14px; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 14px; }
.grid-sites { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card { display: flex; flex-direction: column; padding: 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--border); color: var(--text); min-width: 0; }
a.card:hover { text-decoration: none; border-color: var(--border-strong); background: var(--surface-2); }
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.card-head h3 { margin: 0 0 2px; }
.badge-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; flex: none; background: rgba(240, 138, 60, .13); color: var(--ember-2); }
.badge-ic .ic { width: 24px; height: 24px; }
.feat { list-style: none; padding: 0; margin: 4px 0 14px; display: grid; gap: 8px; font-size: 14px; color: var(--text-2); }
.feat li { display: flex; gap: 8px; align-items: flex-start; }
.feat .ic { color: var(--success); margin-top: 3px; }
.feat b { color: var(--text); font-weight: 600; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--border); }
.link { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 14px; }
.host { margin-top: auto; font-size: 13px; color: var(--ember-2); }
.site p { font-size: 14px; }

.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }

/* Maintenance page */
.maint { max-width: 520px; margin: 18vh auto 0; padding: 0 16px; text-align: center; }
.maint h1 { font-size: 2rem; }

@media (max-width: 760px) {
  .grid, .steps { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: 36px; }
  .who span { display: none; }
  .account .tag-owner, .account .tag-lead { display: none; }
}

/* Phase 2: access pages */
.nav { display: flex; gap: 4px; }
.nav a { padding: 6px 10px; border-radius: 8px; color: var(--text-2); font-weight: 600; font-size: 14px; white-space: nowrap; }
.nav a:hover, .nav a.on { background: var(--surface-2); color: var(--text); text-decoration: none; }
.page { padding-top: 36px; }
.page h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.panel { margin-top: 32px; padding: 20px 22px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--border); }
.small { font-size: 13.5px; }
.empty { padding: 18px; border-radius: var(--r); border: 1px dashed var(--border-strong); color: var(--muted); text-align: center; }
.code { font: 600 12.5px var(--mono, ui-monospace), Consolas, monospace; padding: 2px 7px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); color: var(--ember-2); margin-right: 6px; }
.row-between { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.row-between h3 { margin-bottom: 2px; }
.row-between p { margin: 0; }
.row-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.list { list-style: none; padding: 0; margin: 12px 0 0; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--border); }
.row:first-child { border-top: 0; }
.row p { margin: 2px 0 0; }
.row .grow { flex: 1; min-width: 0; }
.log .row { padding: 9px 16px; }
.card.key .invites { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 8px; }
.btn-sm { padding: 5px 10px; font-size: 13px; }
.btn-danger { border-color: rgba(239, 90, 76, .5); color: #ff9a8f; background: rgba(239, 90, 76, .08); }
.btn-danger:hover { border-color: var(--danger); }
.btn[aria-disabled="true"] { opacity: .55; cursor: default; }
blockquote { margin: 8px 0 12px; padding: 10px 14px; border-left: 3px solid var(--ember-deep); background: var(--surface-2); border-radius: 0; color: var(--text-2); font-size: 14px; overflow-wrap: anywhere; }
details { margin-top: 8px; }
summary { cursor: pointer; color: var(--ember-2); font-weight: 600; font-size: 14px; }
details .form { margin-top: 10px; }

/* Forms */
.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 5px; font-size: 13.5px; font-weight: 600; color: var(--text-2); min-width: 0; }
.form input, .form select, .form textarea { width: 100%; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--bg-2); color: var(--text); font: 400 15px var(--body); }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid rgba(240, 138, 60, .5); outline-offset: 1px; }
.form textarea { resize: vertical; }
.form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.form legend { font-size: 13.5px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; padding: 0; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hint { margin: -4px 0 0; font-size: 13px; color: var(--muted); }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.form .check { display: inline-flex !important; grid-auto-flow: column; align-items: center; gap: 8px !important; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text) !important; cursor: pointer; }
.form .check input { width: auto; accent-color: var(--ember); }
.form-error { margin: 0; color: #ff9a8f; font-size: 14px; min-height: 0; }
.form-error:empty { display: none; }
.form .btn { justify-self: start; }

@media (max-width: 760px) {
  .two { grid-template-columns: minmax(0, 1fr); }
  .nav a { padding: 6px 8px; font-size: 13px; }
  .row { flex-direction: column; }
}
@media (max-width: 520px) {
  .brand span { display: none; }
  .account { gap: 6px; }
  .account .btn { padding: 7px 10px; font-size: 13px; }
}

/* Phase 3: bot network */
.mini { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; font-size: 14px; }
.mini li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; background: var(--surface-2); min-width: 0; }
.mini li > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.row-danger { background: rgba(239, 90, 76, .06); }
.setup { display: grid; gap: 6px; padding: 12px 0; border-top: 1px solid var(--border); }
.setup p { margin: 0; }

/* Phase 4: control room */
.tabs { display: flex; gap: 4px; margin: 18px 0 8px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 9px 14px; color: var(--text-2); font-weight: 600; font-size: 14px; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { text-decoration: none; color: var(--text); }
.tabs a.on { color: var(--ember-2); border-bottom-color: var(--ember); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 20px; }
.tile { display: flex; flex-direction: column; gap: 2px; padding: 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--border); color: var(--text); }
a.tile:hover { text-decoration: none; border-color: var(--border-strong); }
.tile b { font: italic 800 1.9rem/1.1 var(--display); color: var(--ember-2); }
.tile span { font-size: 13px; color: var(--muted); }
.chart-wrap { margin-top: 12px; padding: 16px; }
.chart { width: 100%; height: auto; display: block; }
.chart text { fill: var(--muted); font-size: 10px; font-family: var(--body); }
.chart .axis { stroke: var(--border-strong); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; margin: 8px 0 0; font-size: 13px; color: var(--text-2); }
.legend i, .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.rank { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; counter-reset: r; }
.rank li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); font-size: 14px; min-width: 0; }
.rank li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill-bot { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); margin: 2px 2px 0 0; }
.card-blocked { border-color: rgba(239, 90, 76, .45); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.filters select { padding: 8px 10px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--bg-2); color: var(--text); font: 400 14px var(--body); max-width: 100%; }

/* Phase 5: global bans and appeals */
.page.narrow { max-width: 760px; margin-inline: auto; } /* centred under the full-width top bar */
.notfound { text-align: center; padding-bottom: 40px; }
.notfound .lead { color: var(--text-2); margin: 10px auto 22px; max-width: 520px; }
.notfound-links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.alert.ok { border-color: rgba(76, 195, 138, .45); background: rgba(76, 195, 138, .08); }

/* Phase 6: department tools and laws */
.search-row { display: flex; gap: 8px; margin-top: 12px; }
.search-row input { flex: 1; min-width: 0; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--bg-2); color: var(--text); font: 400 15px var(--body); }
.search-row input:focus { outline: 2px solid rgba(240, 138, 60, .5); outline-offset: 1px; }
#law-results { margin-top: 18px; }
mark { background: rgba(240, 138, 60, .3); color: var(--text); border-radius: 3px; padding: 0 2px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 8px 12px; border-top: 1px solid var(--border); vertical-align: middle; }
.table select, .table input { width: 100%; min-width: 110px; padding: 7px 9px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--bg-2); color: var(--text); font: 400 14px var(--body); }
.rank-rows { display: grid; gap: 10px; }
@media (max-width: 760px) {
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { padding: 10px 12px; border-top: 1px solid var(--border); }
  .table tr:first-child { border-top: 0; }
  .table td { border: 0; padding: 4px 0; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px; align-items: center; }
  .table td::before { content: attr(data-label); font-size: 12.5px; color: var(--muted); font-weight: 600; }
  .table-wrap { overflow: visible; }
}

/* Message Studio inside the Portal (its own styles come from /studio/studio.css, scoped to .studio-scope) */
.studio-scope section { margin-top: 0; }
.studio-scope h1, .studio-scope h2, .studio-scope h3, .studio-scope h4 { font-style: normal; letter-spacing: -0.01em; }
.ann-editor.studio-scope .back-link { display: none; }
.ann-editor { margin-top: 22px; }
.ann-editor .ms-ad-title { font: italic 700 1.35rem/1.2 var(--display); }

/* Send to: two big choices, then the server list when "Choose servers" is picked */
.ann-send .ms-h { display: flex; align-items: center; gap: 8px; }
.ann-to { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.ann-opt { position: relative; display: flex; cursor: pointer; }
.ann-opt input { position: absolute; opacity: 0; pointer-events: none; }
.ann-opt span { flex: 1; display: grid; gap: 2px; padding: 12px 14px 12px 40px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface); transition: border-color .15s, background .15s; }
.ann-opt span::before { content: ''; position: absolute; left: 14px; top: 15px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border-strong); background: var(--bg-2); }
.ann-opt b { font-size: 14.5px; color: var(--text); }
.ann-opt small { font-size: 12.5px; color: var(--muted); }
.ann-opt input:checked + span { border-color: var(--ember); background: rgba(240, 138, 60, .1); }
.ann-opt input:checked + span::before { border-color: var(--ember); background: radial-gradient(circle, var(--ember) 0 4px, var(--bg-2) 5px); }
.ann-opt input:focus-visible + span { outline: 2px solid rgba(240, 138, 60, .6); outline-offset: 2px; }
.ann-servers { list-style: none; padding: 0; margin: 0 0 12px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.ann-servers[hidden] { display: none; }
.ann-server { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--border); cursor: pointer; font-size: 14px; }
.ann-servers li:first-child .ann-server { border-top: 0; }
.ann-server:hover { background: var(--surface); }
.ann-server input { width: 17px; height: 17px; accent-color: var(--ember); margin: 0; }
.ann-server-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.ann-server-name em { font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--ember-2); border: 1px solid rgba(240, 138, 60, .4); border-radius: 999px; padding: 1px 7px; margin-left: 6px; }
.ann-server-note { font-size: 12.5px; color: var(--success); white-space: nowrap; }
.ann-server.is-off { cursor: default; opacity: .6; }
.ann-server.is-off .ann-server-note { color: var(--muted); }
.form-inline { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.form-inline .form-error { grid-column: 1 / -1; }

/* Unsaved changes bar and toasts, for the builder */
.unsaved-bar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 50; display: flex; align-items: center; gap: 16px; padding: 10px 12px 10px 18px; border-radius: 14px; background: #201811; border: 1px solid var(--border-strong); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .7); font-size: 14px; width: max-content; max-width: calc(100% - 32px); }
.unsaved-bar[hidden] { display: none; }
.unsaved-actions { display: flex; gap: 8px; }
.toast-stack { position: fixed; bottom: 80px; right: 20px; z-index: 60; display: grid; gap: 10px; width: min(360px, calc(100% - 40px)); }
.toast { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: #201811; border: 1px solid var(--border-strong); font-size: 14px; color: var(--text); }
.toast .i { width: 18px; height: 18px; flex: none; }
.toast.out { opacity: 0; transition: opacity .3s; }
@media (max-width: 560px) {
  .ann-to { grid-template-columns: minmax(0, 1fr); }
  .ann-server { grid-template-columns: auto minmax(0, 1fr); }
  .ann-server-note { grid-column: 2; white-space: normal; }
  .unsaved-bar { left: 16px; right: 16px; transform: none; width: auto; justify-content: space-between; }
}

/* Phones: the logo on one row, the links and Sign out on the next, so nothing is cut off */
@media (max-width: 560px) {
  .top-in { flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; gap: 6px; }
  .account { flex: 1 1 100%; justify-content: space-between; }
  .nav { overflow-x: auto; scrollbar-width: none; min-width: 0; }
}

/* Checkboxes in the Portal's colours (dark box, ember tick) instead of the browser's white one */
.ann-server input[type="checkbox"], .form input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; flex: none; width: 18px; height: 18px; margin: 0; border-radius: 5px;
  border: 1.5px solid var(--border-strong); background: var(--bg-2); display: inline-grid; place-content: center; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.ann-server input[type="checkbox"]::after, .form input[type="checkbox"]::after {
  content: ''; width: 5px; height: 9px; border: solid #1a0d04; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); opacity: 0;
}
.ann-server input[type="checkbox"]:checked, .form input[type="checkbox"]:checked { background: var(--ember); border-color: var(--ember); }
.ann-server input[type="checkbox"]:checked::after, .form input[type="checkbox"]:checked::after { opacity: 1; }
.ann-server input[type="checkbox"]:hover:not(:disabled), .form input[type="checkbox"]:hover:not(:disabled) { border-color: var(--ember); }
.ann-server input[type="checkbox"]:focus-visible, .form input[type="checkbox"]:focus-visible { outline: 2px solid rgba(240, 138, 60, .6); outline-offset: 2px; }
.ann-server input[type="checkbox"]:disabled, .form input[type="checkbox"]:disabled { cursor: not-allowed; opacity: .5; }
/* Long server names wrap instead of being cut off */
.ann-server-name { white-space: normal; overflow-wrap: anywhere; }

/* Full audit log */
.audit-filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 18px; align-items: end; }
.audit-filters input, .audit-filters select { width: 100%; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--bg-2); color: var(--text); font: 400 14px var(--body); min-width: 0; }
.audit-filters input[type="search"] { grid-column: span 2; }
.audit-date { display: grid; gap: 3px; font-size: 12px; color: var(--muted); }
.audit-live { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-2); }
.audit-live input { width: auto; accent-color: var(--ember); }
.audit-list { list-style: none; padding: 0; margin: 12px 0 0; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.audit-row { display: grid; grid-template-columns: 118px 112px minmax(0, 1fr); gap: 12px; padding: 9px 14px; border-top: 1px solid var(--border); font-size: 14px; align-items: start; }
.audit-row:first-child { border-top: 0; }
.audit-row time { color: var(--muted); font-size: 12.5px; white-space: nowrap; padding-top: 1px; }
.audit-kind { font-size: 12.5px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.audit-main { display: grid; gap: 2px; min-width: 0; }
.audit-text { overflow-wrap: anywhere; }
.audit-meta { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.audit-bad { color: #ff9a8f; font-size: 12px; font-weight: 600; margin-left: 4px; }
.audit-fail { background: rgba(239, 90, 76, .05); }
.audit-more { display: flex; justify-content: center; margin-top: 12px; }
details.panel summary { cursor: pointer; color: var(--text-2); }

/* Person lookup */
.person-out { margin-top: 18px; }
.person-card h2 { margin: 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px 20px; margin: 16px 0; }
.facts dt { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.facts dd { margin: 2px 0 0; font-size: 14px; overflow-wrap: anywhere; }

/* A lead's server dashboard */
.spark { display: flex; align-items: flex-end; gap: 3px; height: 140px; padding: 14px; }
.spark-bar { flex: 1; min-height: 2px; border-radius: 3px 3px 0 0; background: var(--ember); opacity: .85; }

@media (max-width: 640px) {
  .audit-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .audit-filters input[type="search"] { grid-column: 1 / -1; }
}

/* Server health and setup checklist */
.issues { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.issue { display: grid; gap: 2px; padding: 8px 12px; border-radius: 10px; border-left: 3px solid var(--warning); background: rgba(240, 180, 41, .07); font-size: 13.5px; }
.issue b { font-weight: 600; }
.issue span { color: var(--muted); font-size: 12.5px; }
.issue-bad { border-left-color: var(--danger); background: rgba(239, 90, 76, .08); }
.ok-line { color: var(--success); }
.ok-line::before { content: '✓ '; }
.progress { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: 8px 0 14px; }
.progress i { display: block; height: 100%; background: var(--success); border-radius: 999px; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 4px; border-top: 1px solid var(--border); font-size: 14px; }
.checklist li:first-child { border-top: 0; }
.checklist li > span:last-child { display: grid; gap: 2px; }
.cl-auto { flex: none; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--border-strong); font-size: 12px; font-weight: 700; color: #1a0d04; }
.is-done .cl-auto { background: var(--success); border-color: var(--success); }
.is-done > span:last-child, .is-done .cl-tick span { color: var(--muted); }
.cl-fix, .cl-detail { font-size: 12.5px; color: var(--muted); }
.cl-detail { color: #ff9a8f; }
.cl-tick { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.cl-tick input { appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; margin: 0; border-radius: 50%; border: 1.5px solid var(--border-strong); background: var(--bg-2); display: inline-grid; place-content: center; cursor: pointer; }
.cl-tick input:checked { background: var(--success); border-color: var(--success); }
.cl-tick input:checked::after { content: '✓'; font-size: 12px; font-weight: 700; color: #1a0d04; }
.form > label.check { justify-self: start; }

/* Scheduling, templates and alerts */
.ann-when { margin-top: 4px; }
.ann-later { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 12px; }
.ann-later[hidden] { display: none; }
.ann-later label { display: grid; gap: 4px; font-size: 13px; color: var(--text-2); font-weight: 600; }
.ann-later input, .ann-later select, .ann-templates select { padding: 8px 10px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--bg-2); color: var(--text); font: 400 14px var(--body); min-width: 0; }
.ann-templates { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.ann-templates select { flex: 1 1 160px; }
.summary-preview { white-space: pre-wrap; font: 13px/1.5 var(--body); color: var(--text-2); background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px; margin: 8px 0 0; }
@media (max-width: 560px) { .ann-later { grid-template-columns: minmax(0, 1fr); } }

/* Status page */
.st-overall { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; padding: 16px 18px; border-radius: var(--r); border: 1px solid var(--border); background: var(--surface); }
.st-overall b { font-size: 1.05rem; }
.st-overall .muted { margin-left: auto; }
.st-overall-online { border-color: rgba(76, 195, 138, .4); background: rgba(76, 195, 138, .07); }
.st-overall-maintenance { border-color: rgba(240, 180, 41, .4); background: rgba(240, 180, 41, .07); }
.st-overall-down { border-color: rgba(239, 90, 76, .45); background: rgba(239, 90, 76, .08); }
.st-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.st-row { padding: 14px 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--border); }
.st-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.st-head .light { margin-left: auto; }
.st-bars { display: grid; grid-template-columns: repeat(90, minmax(0, 1fr)); gap: 2px; height: 30px; }
.st-bars i, .st-legend i { display: block; border-radius: 2px; }
.st-legend i { width: 10px; height: 10px; }
.st-good { background: var(--success); } .st-fair { background: var(--warning); } .st-bad { background: var(--danger); }
.st-maint { background: var(--info); } .st-none { background: var(--surface-2); }
.st-foot { display: flex; justify-content: space-between; margin-top: 6px; }
.st-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }
.st-legend span { display: inline-flex; align-items: center; gap: 6px; }
.summary .link { margin-left: 4px; }
/* Phones keep all 90 days, as the page says, with thinner bars */
@media (max-width: 560px) { .st-bars { gap: 1px; } .st-bars i { border-radius: 1px; } .st-row { padding: 14px 12px; } }
@media (max-width: 560px) {
  .account:not(:has(.nav a)) { flex: 0 0 auto; }
  .top-in:not(:has(.nav a)) { flex-wrap: nowrap; }
}

/* =====================================================================
   NODS: Network of Departmental Services. A terminal: black, red, monospace.
   ===================================================================== */
:root {
  --bg: #030000; --bg-2: #080101; --surface: rgba(255, 40, 30, .035); --surface-2: rgba(255, 40, 30, .07);
  --border: rgba(255, 59, 48, .28); --border-strong: rgba(255, 59, 48, .55);
  --text: #ff4b3e; --text-2: #e0473c; --muted: #a8382f;
  --ember: #ff3b30; --ember-2: #ff6a5e; --ember-deep: #c2261c;
  --danger: #ff8a80; --success: #ff6a5e; --warning: #ffb0a8; --info: #ff6a5e;
  --display: 'Cascadia Mono', 'JetBrains Mono', Consolas, 'Courier New', monospace;
  --body: 'Cascadia Mono', 'JetBrains Mono', Consolas, 'Courier New', monospace;
  --r: 0px;
}
html { background: var(--bg); }
body { font: 14px/1.55 var(--body); color: var(--text); padding-bottom: 150px;
  background: repeating-linear-gradient(0deg, rgba(255, 40, 30, .03) 0 1px, transparent 1px 3px), radial-gradient(ellipse 80% 60% at 50% 40%, rgba(255, 30, 20, .06), transparent 70%), var(--bg); }
body::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 1; box-shadow: inset 0 0 140px rgba(0, 0, 0, .9); }
::selection { background: var(--ember); color: #000; }
a { color: var(--ember-2); }
a:hover { color: #fff; text-decoration: none; background: rgba(255, 59, 48, .25); }
h1, h2 { font-family: var(--display); font-style: normal; text-transform: uppercase; letter-spacing: .04em; }
h1 { font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 700; color: #ff5a4e; text-shadow: 0 0 12px rgba(255, 59, 48, .45); }
h1::before { content: 'C:\\NODS> '; color: var(--muted); font-weight: 400; }
h2 { font-size: 1rem; font-weight: 700; }
h2::before { content: '## '; color: var(--muted); }
h3 { font-weight: 700; }
.eyebrow, .eyebrow * { color: var(--muted) !important; text-transform: uppercase; letter-spacing: .18em; font-size: 12px; }
.lead { color: var(--text-2); }

/* Header: the title bar of a console window */
.top { background: #120202; border-bottom: 1px solid var(--border-strong); backdrop-filter: none; }
.top-in { min-height: 44px; }
.brand { font: 700 15px var(--display); font-style: normal; color: var(--text); letter-spacing: .08em; }
.brand img { filter: grayscale(1) sepia(1) hue-rotate(-40deg) saturate(6) brightness(.9); width: 24px; height: 24px; }
.brand b { color: #fff; background: var(--ember); padding: 0 6px; margin-right: 2px; }
.brand small { color: var(--muted); font-weight: 400; letter-spacing: .02em; }
.who img { filter: grayscale(1) sepia(1) hue-rotate(-40deg) saturate(4); border-radius: 0; }

/* Boxes become bordered console panes */
.card, .panel, .access-box, .table-wrap, .tile, .person-card, .issue, .checklist, .maint, .notfound, .ann-editor { border-radius: 0 !important; background: rgba(255, 30, 20, .025) !important; border: 1px solid var(--border) !important; box-shadow: none !important; }
.card:hover { border-color: var(--border-strong) !important; background: rgba(255, 30, 20, .06) !important; }
.card-head .badge-ic, .badge-ic { border-radius: 0; background: transparent; border: 1px solid var(--border); color: var(--ember); }
.hero { border-left: 2px solid var(--ember); padding-left: 16px; }
.btn { border-radius: 0 !important; font: 700 13px var(--body); text-transform: uppercase; letter-spacing: .06em; box-shadow: none !important; }
.btn-primary { background: transparent !important; color: var(--ember) !important; border: 1px solid var(--ember) !important; }
.btn-primary:hover { background: var(--ember) !important; color: #000 !important; }
.btn-ghost { background: transparent !important; color: var(--text-2) !important; border: 1px solid var(--border) !important; }
.btn-ghost:hover { border-color: var(--ember) !important; color: #fff !important; }
.btn-danger { background: transparent !important; color: #ff8a80 !important; border: 1px solid #ff8a80 !important; }
.tag, .pill-bot, .light { border-radius: 0 !important; background: transparent !important; border: 1px solid var(--border); color: var(--text-2); }
.light i { border-radius: 0; }
.light-online i { background: var(--ember); box-shadow: 0 0 6px var(--ember); }
.alert, .notice, .toast { border-radius: 0 !important; background: #1a0303 !important; border: 1px solid var(--ember) !important; color: #ff8a80 !important; }
input, select, textarea { border-radius: 0 !important; background: #000 !important; color: #ff5a4e !important; border: 1px solid var(--border-strong) !important; font: inherit !important; caret-color: var(--ember); }
input:focus, select:focus, textarea:focus { outline: none !important; border-color: var(--ember) !important; box-shadow: 0 0 0 2px rgba(255, 59, 48, .2) !important; }
table th { color: var(--muted); text-transform: uppercase; font-size: 12px; letter-spacing: .08em; }
table td, table th { border-color: rgba(255, 59, 48, .14) !important; }
.foot { color: var(--muted); border-top: 1px dashed var(--border); padding-top: 14px; }
img:not(.brand img):not(.who img) { filter: grayscale(1) sepia(1) hue-rotate(-40deg) saturate(3) brightness(.85); }

/* Boot screen */
#boot { position: fixed; inset: 0; z-index: 1000; background: #000; color: var(--ember); padding: 28px; font: 14px/1.7 var(--body); white-space: pre-wrap; cursor: pointer; transition: opacity .4s; }
#boot::after { content: '_'; animation: nods-blink 1s steps(1) infinite; }
#boot.done { opacity: 0; }
@keyframes nods-blink { 50% { opacity: 0; } }

/* Command line */
#cmd { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; background: rgba(5, 0, 0, .96); border-top: 1px solid var(--border-strong); padding: 6px 16px 10px; display: grid; grid-template-columns: auto 1fr; gap: 0 8px; align-items: center; font: 14px var(--body); }
#cmd-out { grid-column: 1 / -1; max-height: 260px; overflow: auto; color: var(--text-2); white-space: pre-wrap; font-size: 13px; }
#cmd-out .echo { color: #fff; }
#cmd-out .err { color: #ff8a80; }
#cmd-out .dim { color: var(--muted); }
#cmd label { color: var(--ember); white-space: nowrap; }
#cmd input { border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 2px 0; color: #fff !important; width: 100%; }

/* Leak protection */
body.veiled #app, body.veiled .top, body.veiled #notice, body.veiled .foot { filter: blur(18px) brightness(.3); }
#veil { position: fixed; inset: 0; z-index: 950; display: none; place-items: center; background: rgba(0, 0, 0, .86); color: var(--ember); cursor: pointer; text-align: center; }
#veil b { display: block; font-size: 22px; letter-spacing: .2em; text-shadow: 0 0 14px rgba(255, 59, 48, .6); }
#veil span { color: var(--muted); }
body.veiled #veil { display: grid; }
#wm { position: fixed; inset: 0; z-index: 800; pointer-events: none; background-repeat: repeat; }
#nods-note { position: fixed; right: 16px; bottom: 170px; z-index: 960; padding: 6px 12px; background: #1a0303; border: 1px solid var(--ember); color: #ff8a80; opacity: 0; transition: opacity .2s; pointer-events: none; }
#nods-note.on { opacity: 1; }
body { -webkit-user-select: none; user-select: none; }
input, textarea, [contenteditable="true"] { -webkit-user-select: text; user-select: text; }
@media print { body * { display: none !important; } body::before { content: 'NODS can’t be printed.'; display: block; } }
@media (max-width: 640px) { #cmd-out { max-height: 80px; } body { padding-bottom: 120px; } }

/* NODS reports */
.kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; margin: 14px 0; }
.kind { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--border); cursor: pointer; }
.kind input { position: absolute; opacity: 0; pointer-events: none; }
.kind:has(input:checked) { border-color: var(--ember); background: rgba(255, 59, 48, .1); box-shadow: inset 3px 0 0 var(--ember); }
.kind:has(input:focus-visible) { outline: 1px dashed var(--ember); }
.kind-tip b::before { content: '[ANON] '; color: var(--muted); }
.receipt { display: flex; gap: 24px; flex-wrap: wrap; margin: 16px 0; padding: 14px 16px; border: 1px dashed var(--ember); }
.receipt div { display: flex; flex-direction: column; }
.receipt b { font-size: 1.5rem; letter-spacing: .08em; color: #fff; -webkit-user-select: text; user-select: text; }
.report-body { margin: 10px 0 14px; padding: 10px 12px; border-left: 2px solid var(--border-strong); white-space: normal; }
.thread { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.msg { padding: 8px 12px; border: 1px solid var(--border); }
.msg-staff { border-left: 3px solid var(--ember); }
.msg-reporter { border-left: 3px solid var(--muted); }
.msg-internal { border-style: dashed; opacity: .85; }
.msg-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.msg p { margin: 4px 0 0; }
.check-line { display: flex; align-items: center; gap: 8px; }
.check-line input { width: auto; }
.case h2 { margin-top: 0; }
.form [hidden], [hidden] { display: none !important; }
.form label.check-line { display: flex !important; flex-direction: row !important; align-items: center; gap: 8px; }
.form label.check-line input { width: auto !important; margin: 0; }

/* NODS classification banners */
.cls-banner { position: fixed; left: 0; right: 0; z-index: 970; height: 20px; display: flex; align-items: center; justify-content: center; font: 700 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; pointer-events: none; }
#cls-top { top: 0; }
#cls-bottom { bottom: 0; }
body.has-cls { padding-top: 20px; }
body.has-cls .top { top: 20px; }
body.has-cls #cmd { bottom: 20px; }
body.has-cls #nods-note { bottom: 190px; }
body.has-cls { padding-bottom: 170px; }
@media (max-width: 640px) { body.has-cls { padding-bottom: 140px; } }

/* =====================================================================
   NODS as a console window: a title bar, a flat black screen, red monospace text. No boxes, no glow.
   ===================================================================== */
:root { --con-bg: #000; --con-text: #e8392e; --con-bright: #ff6a5f; --con-dim: #9c2a22; --con-faint: #4a120e; }
html { background: #000; }
body { background: #000 !important; color: var(--con-text); font: 15px/1.4 Consolas, 'Cascadia Mono', 'Lucida Console', 'Courier New', monospace !important; }
body::after { display: none; }
h1, h2, h3, .brand, .btn, table th, .tag { font-family: inherit !important; }
* { text-shadow: none !important; }

/* The menu line: a prompt with the places you can go, listed like folders */
.top { background: #000 !important; border-bottom: 0 !important; backdrop-filter: none !important; }
.top-in { min-height: 0; padding-top: 10px; padding-bottom: 4px; gap: 4px 16px; }
.brand { color: var(--con-dim) !important; font-size: 15px !important; font-weight: 400 !important; letter-spacing: 0 !important; }
.brand img { display: none; }
.brand b { background: none !important; color: var(--con-dim) !important; padding: 0 !important; margin: 0 !important; }
.brand b::before { content: 'C:\\'; }
.brand b::after { content: '>'; }
.brand small { display: none; }
.nav { gap: 4px 18px !important; }
.nav a { color: var(--con-bright) !important; background: none !important; border: 0 !important; padding: 0 !important; border-radius: 0 !important; text-transform: lowercase; font-weight: 700; }
.nav a::after { content: '/'; }
.nav a.on, .nav a:hover { background: var(--con-text) !important; color: #000 !important; }
.who { color: var(--con-dim); }
.who img { display: none; }
.who::before { content: 'user='; }
.tag { border: 0 !important; padding: 0 !important; color: var(--con-dim) !important; text-transform: lowercase; }
.tag::before { content: '['; } .tag::after { content: ']'; }

/* Plain text on a black screen: no panes, cards, glows or rounded corners */
.card, .panel, .access-box, .table-wrap, .tile, .person-card, .issue, .checklist, .maint, .notfound, .ann-editor, .hero, .receipt, .msg, .kind, .report-body {
  background: transparent !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; }
.panel, .card, .access-box, .tile, .issue, .checklist, .maint, .ann-editor { padding: 0 !important; margin-bottom: 26px; }
.hero { padding-left: 0 !important; }
.card:hover { background: transparent !important; }
.badge-ic { border: 0 !important; }
h1 { font-size: 15px !important; font-weight: 700 !important; color: var(--con-bright) !important; text-transform: lowercase !important; letter-spacing: 0 !important; margin: 0 0 6px !important; }
h1::before { content: 'C:\\NODS> ' !important; color: var(--con-dim) !important; font-weight: 400; }
h2 { font-size: 15px !important; color: var(--con-bright) !important; text-transform: uppercase; letter-spacing: 0 !important; }
h2::before { content: '' !important; }
h2::after { content: ''; display: block; width: 100%; max-width: 48ch; border-bottom: 1px dashed var(--con-faint); margin-top: 2px; }
.eyebrow, .eyebrow * { letter-spacing: 0 !important; font-size: 15px !important; }
.eyebrow::before { content: 'REM '; }
p, .lead, .muted, li, td { font-size: 15px; }
.muted, .eyebrow, .eyebrow * { color: var(--con-dim) !important; }
.lead { color: var(--con-text) !important; }
a { color: var(--con-bright); }
a:hover { background: var(--con-text); color: #000; }

/* Buttons are bracketed words; hover inverts like a selected line */
.btn { background: transparent !important; border: 0 !important; color: var(--con-bright) !important; padding: 2px 4px !important; min-height: 0 !important; height: auto !important; font-size: 15px !important; font-weight: 700 !important; text-transform: uppercase; letter-spacing: 0 !important; }
.btn::before { content: '[ '; color: var(--con-dim); }
.btn::after { content: ' ]'; color: var(--con-dim); }
.btn:hover, .btn:focus-visible { background: var(--con-text) !important; color: #000 !important; }
.btn:hover::before, .btn:hover::after, .btn:focus-visible::before, .btn:focus-visible::after { color: #000; }
.btn-danger { color: #ff8a80 !important; }
.btn .ic, .card-head .badge-ic { display: none; }

/* Status lights read as text */
.light { border: 0 !important; padding: 0 !important; color: var(--con-text) !important; }
.light i { display: none; }
.light::before { content: '* '; }

/* Fields: a black box with a thin dim outline */
input, select, textarea { background: #000 !important; color: var(--con-bright) !important; border: 1px solid var(--con-faint) !important; box-shadow: none !important; font-size: 15px !important; }
input:focus, select:focus, textarea:focus { border-color: var(--con-text) !important; box-shadow: none !important; }

/* Tables: plain columns, a dashed line under the headings */
table { border-collapse: collapse; }
table th { color: var(--con-dim) !important; font-size: 15px !important; font-weight: 400 !important; letter-spacing: 0 !important; border: 0 !important; border-bottom: 1px dashed var(--con-faint) !important; }
table td { border: 0 !important; }
tr:hover td { background: rgba(232, 57, 46, .08); }

/* Notices and alerts: a line of text */
.alert, .notice, .toast { background: #000 !important; border: 0 !important; border-left: 0 !important; color: #ff8a80 !important; }
.alert::before, .notice b::before { content: '*** '; }

/* Reports */
.kind { padding: 2px 0 !important; }
.kind b::before { content: '( ) '; color: var(--con-dim); }
.kind:has(input:checked) b::before { content: '(*) '; color: var(--con-bright); }
.kind:has(input:checked) { background: transparent !important; box-shadow: none !important; }
.kind:has(input:checked) b { background: var(--con-text); color: #000; }
.kind-tip b::before { content: '( ) [ANON] ' !important; }
.kind-tip:has(input:checked) b::before { content: '(*) [ANON] ' !important; }
.msg { padding: 0 !important; border-left: 0 !important; }
.msg-head::before { content: '> '; color: var(--con-dim); }
.msg-internal .msg-head::before { content: '# '; }
.receipt { padding: 0 !important; }
.receipt b { color: #fff; }

/* The command line sits flat at the bottom of the screen */
#cmd { background: #000 !important; border-top: 1px dashed var(--con-faint) !important; font-size: 15px !important; }
#cmd label { color: var(--con-dim) !important; }
#cmd-out { font-size: 14px !important; }
.foot { border-top: 0 !important; color: var(--con-dim) !important; }
#boot { font-size: 15px !important; }
/* Left-aligned like a real terminal, prompts in their own case, no leftover icons */
.wrap { max-width: none !important; margin: 0 !important; padding-left: 16px !important; padding-right: 16px !important; }
.top-in { justify-content: flex-start !important; }
.account { margin-left: 0 !important; flex: 1 1 auto; justify-content: flex-start !important; }
h1 { text-transform: none !important; }
.hero { margin-top: 0 !important; padding-top: 6px !important; padding-bottom: 0 !important; margin-bottom: 26px !important; }
#app { padding-top: 14px !important; }
#app svg.ic, .panel h2 svg, .card svg.ic, h2 svg { display: none !important; }
p, .lead, .muted { max-width: 100ch; }
#app .page { margin: 0 !important; padding-top: 0 !important; }
#app .page.narrow { margin-left: 0 !important; margin-right: auto !important; }
#app .panel { margin-top: 0 !important; }

/* =====================================================================
   NODS is one command prompt: text from the top left, the prompt right under the output.
   ===================================================================== */
*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
.top, .foot { display: none !important; }
body.has-cls { padding-top: 20px !important; padding-bottom: 28px !important; }
#app { padding: 12px 16px 0 !important; }
#app.wrap { max-width: none !important; }
.console { font: 15px/1.4 Consolas, 'Cascadia Mono', 'Lucida Console', 'Courier New', monospace; color: var(--con-text); white-space: pre-wrap; }
.console .ln, #cmd-out .ln { min-height: 1.4em; }
.console .err, #cmd-out .err { color: #ff8a80; }
.ask { display: flex; align-items: baseline; margin: 0; }
.ask label { white-space: pre; color: var(--con-text); font: inherit; letter-spacing: 0; text-transform: none; margin: 0; }
.ask input, #cmd input { flex: 1; min-width: 4ch; border: 0 !important; outline: 0 !important; background: transparent !important; box-shadow: none !important; padding: 0 !important; margin: 0; height: auto !important;
  color: var(--con-bright) !important; caret-color: var(--con-bright); font: inherit !important; font-size: 15px !important; }
.ask input.secret { color: var(--con-bright) !important; caret-color: var(--con-bright); letter-spacing: .15em; }
#term { position: static !important; padding: 10px 16px 0; font: 15px/1.4 Consolas, 'Cascadia Mono', 'Lucida Console', 'Courier New', monospace; }
#cmd-out { position: static !important; max-height: none !important; overflow: visible !important; white-space: pre-wrap; color: var(--con-text) !important; font-size: 15px !important; }
#cmd { position: static !important; display: flex !important; align-items: baseline; gap: 0 !important; padding: 0 !important; background: transparent !important; border: 0 !important; }
#cmd label { white-space: pre; color: var(--con-text) !important; margin-right: 1ch; }
body.locked #app, body.locked #term, body.locked #notice, body.locked #wm { display: none !important; }
#lock { padding: 12px 16px; }
#veil { display: none !important; }
/* The prompt sits right under the output, not at the bottom of the screen */
body { display: block !important; min-height: 0 !important; }
#app { flex: none !important; min-height: 0 !important; }
.console .dim { color: var(--con-dim); }

/* Keyboard only: no mouse pointer anywhere, and whatever has focus is shown inverted, like a selected line */
*, *::before, *::after { cursor: none !important; }
a:focus, button:focus, summary:focus, .btn:focus { background: var(--con-text) !important; color: #000 !important; outline: none !important; }
a:focus::before, a:focus::after, .btn:focus::before, .btn:focus::after { color: #000 !important; }
select:focus { background: var(--con-text) !important; color: #000 !important; }
.kind:has(input:focus) { outline: 0 !important; }
.kind:has(input:focus) b { background: var(--con-bright); color: #000; }
input[type=checkbox]:focus, input[type=radio]:focus { outline: 2px solid var(--con-bright) !important; outline-offset: 1px; }
a:hover { background: none; color: var(--con-bright); }
.console.st { overflow-x: auto; }
.console.st .ln { white-space: pre; }
.console.st .ln .btn { white-space: nowrap; }
/* No scroll bar, anywhere, ever: the screen follows the prompt like a console, and the keys move it (nods.js). */
html { overflow: hidden !important; }
body { overflow: visible !important; }
html { scrollbar-width: none !important; }
* { scrollbar-width: none !important; -ms-overflow-style: none !important; }
*::-webkit-scrollbar { display: none !important; width: 0 !important; height: 0 !important; }
.console.st { overflow: hidden !important; }
textarea { resize: none !important; }
#cmd, #cmd-in { scroll-margin-bottom: 30px; } a, button, input, select, textarea, summary, label { scroll-margin-top: 28px; scroll-margin-bottom: 30px; }

/* =====================================================================
   No boxes. A command prompt has no outlined rows, cards, panels, pills or input boxes: everything is text.
   ===================================================================== */
#app *:not(input):not(textarea):not(select), #notice * {
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: transparent !important; outline: 0; }
#app .row, #app .card, #app .tile, #app .panel, #app .list > li { padding-left: 0 !important; padding-right: 0 !important; }
#app .list, #app .grid, #app .tiles { gap: 6px !important; }
/* Little labels read as [CODE] */
#app .code, #app .badge, #app .pill, #app .chip, #app .dot { padding: 0 !important; color: var(--con-dim) !important; }
#app .code::before, #app .badge::before, #app .pill::before, #app .chip::before { content: '['; }
#app .code::after, #app .badge::after, #app .pill::after, #app .chip::after { content: ']'; }
/* Table headings keep a dashed rule under them, like console output */
#app th { border-bottom: 1px dashed var(--con-faint) !important; }
/* Text boxes are a dashed line to type on */
#app input:not([type=checkbox]):not([type=radio]), #app textarea, #app select {
  border: 0 !important; border-bottom: 1px dashed var(--con-dim) !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; padding-left: 0 !important; }
#app input:not([type=checkbox]):not([type=radio]):focus, #app textarea:focus, #app select:focus { border-bottom-color: var(--con-bright) !important; }
#app textarea { border: 0 !important; border-left: 1px dashed var(--con-dim) !important; padding-left: 1ch !important; }
#app select option { background: #000; color: var(--con-bright); }
/* Tick boxes are [ ] and [X]; round options are ( ) and (*) */
input[type=checkbox], input[type=radio] { -webkit-appearance: none !important; appearance: none !important; width: 3.2ch !important; height: 1.3em !important; margin: 0 .5ch 0 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; vertical-align: baseline; font: inherit; color: var(--con-bright); }
input[type=checkbox]::before { content: '[ ]'; }
input[type=checkbox]:checked::before { content: '[X]'; }
input[type=radio]::before { content: '( )'; }
input[type=radio]:checked::before { content: '(*)'; }
input[type=checkbox]:focus, input[type=radio]:focus { outline: 0 !important; background: var(--con-text) !important; color: #000 !important; }
/* What has focus still shows inverted, and the open tab shows with a > */
#app a:focus, #app button:focus, #app summary:focus, #app .btn:focus { background: var(--con-text) !important; color: #000 !important; }
#app .kind:has(input:checked) b, #app .kind:has(input:focus) b { background: var(--con-text) !important; color: #000 !important; }
#app .tabs a.on::before, #app .tabs .on::before { content: '> '; }
#app .on { font-weight: 700; color: var(--con-bright) !important; }
#app .search-row { gap: 2ch !important; }

/* Numbered list items, like a console menu */
#app a[data-n]::before { content: '[' attr(data-n) '] '; color: var(--con-dim); font-weight: 400; }
#app a[data-n]:focus::before { color: #000; }
#cmd-out .dim { color: var(--con-dim); }

/* Laws: the list is one line per document; a document prints as plain text */
#app .list.laws > li { margin: 0 0 4px !important; }
#app .list.laws .small { font-size: 15px !important; }
.console.law .ln { white-space: pre-wrap; }
.console .hd { color: var(--con-bright); font-weight: 700; }
#app mark { background: var(--con-text) !important; color: #000 !important; }
#app .list.laws > li { display: block !important; }
body.closing #cmd { display: none !important; }
/* Prompt lines (login, 2FA, CANCEL) are bare text with a cursor: no underline */
#app .ask input:not([type=checkbox]):not([type=radio]), #app .ask input:not([type=checkbox]):not([type=radio]):focus, .ask input, #cmd input { border: 0 !important; border-bottom: 0 !important; outline: 0 !important; box-shadow: none !important; background: transparent !important; }
/* Control room numbers read as plain lines: "0  WAITING REQUESTS" */
#app .tiles { display: flex !important; flex-direction: column !important; gap: 0 !important; margin-top: 10px !important; }
#app .tile { flex-direction: row !important; gap: 2ch !important; padding: 0 !important; align-items: baseline; }
#app .tile b { font-size: 15px !important; line-height: 1.4 !important; font-family: inherit !important; font-weight: 700 !important; font-style: normal !important; min-width: 6ch; text-align: right; color: var(--con-bright) !important; }
#app .tile span, #app .tile small { font-size: 15px !important; text-transform: uppercase; }
#app h3 { font-size: 15px !important; font-style: normal !important; }
#app .grid { display: flex !important; flex-direction: column !important; }
#app .card { margin-bottom: 8px !important; }
#app .tile { margin: 0 !important; line-height: 1.4 !important; min-height: 0 !important; }
#app .empty { text-align: left !important; padding: 0 !important; color: var(--con-dim) !important; }

/* ===== NODS clean-up: tick boxes, options, pickers, tabs, rows ===== */
/* Tick boxes and options sit on the line as [ ] / [X] and ( ) / (*), never split */
input[type=checkbox], input[type=radio] { width: 3ch !important; min-width: 3ch !important; height: auto !important; line-height: inherit !important; padding: 0 !important; overflow: visible !important; white-space: nowrap !important; vertical-align: baseline !important; display: inline-block !important; letter-spacing: 0 !important; font-size: 15px !important; }
input[type=checkbox]::before, input[type=radio]::before { white-space: pre; }
#app .check, #app .check-line, #app label.check, #app .form label.check-line { display: flex !important; flex-direction: row !important; align-items: baseline !important; gap: 1ch !important; padding: 0 !important; margin: 0 !important; }
#app .checks { display: flex !important; flex-direction: column !important; gap: 2px !important; }
#app label:has(> input[type=checkbox]:focus), #app label:has(> input[type=radio]:focus) { background: var(--con-text) !important; color: #000 !important; }
#app label:has(> input[type=checkbox]:focus) *, #app label:has(> input[type=checkbox]:focus) input { color: #000 !important; background: transparent !important; }
input[type=checkbox]:focus, input[type=radio]:focus { background: transparent !important; }
/* Report type: the picked one is marked (*); only the one you're on is shown inverted */
#app .kind:has(input:checked):not(:has(input:focus)) b { background: transparent !important; color: var(--con-bright) !important; text-decoration: underline; }
/* Pickers (in place of dropdowns) */
#app .picker { background: transparent !important; border: 0 !important; color: var(--con-bright) !important; font: inherit !important; padding: 0 !important; text-align: left; cursor: none; }
#app .picker::before { content: '> '; color: var(--con-dim); }
#app .picker:focus { background: var(--con-text) !important; color: #000 !important; }
#app .picker:focus::before { color: #000; }
/* Tabs read as a plain line */
#app .tabs { display: flex !important; flex-wrap: wrap; gap: 0 3ch !important; padding: 0 !important; margin: 10px 0 14px !important; }
#app .tabs a { padding: 0 !important; }
/* Details: [+] closed, [-] open, no triangle */
#app summary { list-style: none !important; cursor: none; color: var(--con-bright); }
#app summary::-webkit-details-marker { display: none; }
#app summary::marker { content: ''; }
#app summary::before { content: '[+] '; color: var(--con-dim); }
#app details[open] > summary::before { content: '[-] '; }
#app summary:focus::before { color: #000; }
/* Rows keep their pieces together on the left, numbers right beside what they count */
#app .row, #app .row-between, #app li, #app .rank li, #app .mini li, #app .st-head { justify-content: flex-start !important; gap: 2ch !important; }
#app .rank { padding-left: 0 !important; list-style: none !important; }
#app .rank li { display: flex !important; }
#app .rank li b { order: -1; min-width: 4ch; text-align: right; }
#app .grow { flex: 0 1 auto !important; }
#app .row-actions { margin-left: 2ch !important; }
#term:has(#cmd-out .ask) #cmd { display: none !important; }

/* Pickers stay on one line */
#app .picker { white-space: nowrap; }
/* DTG fields: a dashed line like other fields; red when it can't be read */
#app input.dtg { width: 16ch !important; text-transform: uppercase; }
#app input.dtg.bad { border-bottom-color: #ff8a80 !important; color: #ff8a80 !important; }
#app .audit-date { display: flex !important; flex-direction: column; gap: 0 !important; }
/* Status words sit with the rest of the line, not pushed to the far right */
#app .light, #app .row > :last-child { margin-left: 0 !important; }
#app .row { flex-wrap: wrap !important; }
/* Announcement options: ( ) / (*) like every other choice */
#app .ann-opt span { padding: 0 !important; display: block !important; }
#app .ann-opt span::before { content: '( ) ' !important; position: static !important; width: auto !important; height: auto !important; border: 0 !important; border-radius: 0 !important; background: none !important; color: var(--con-dim); }
#app .ann-opt input:checked + span::before { content: '(*) ' !important; color: var(--con-bright); }
#app .ann-opt input:checked + span b { text-decoration: underline; }
#app .ann-opt:has(input:focus) span { background: var(--con-text) !important; }
#app .ann-opt:has(input:focus) span * , #app .ann-opt:has(input:focus) span::before { color: #000 !important; }
#app .ann-opt small { display: block; font-size: 15px !important; }
/* The message builder and its preview: console text, not Discord's look */
#app .studio-scope, #app .studio-scope * { font-family: Consolas, 'Cascadia Mono', 'Lucida Console', 'Courier New', monospace !important; font-style: normal !important; }
#app .ms-preview-inner, #app .ms-preview-inner *, #app .ms-preview-label { background: transparent !important; color: var(--con-text) !important; border-color: var(--con-faint) !important; box-shadow: none !important; }
#app .ms-preview-inner img, #app .ms-preview-inner [class*=avatar] { display: none !important; }
#app .studio-scope h1, #app .studio-scope h2, #app .studio-scope h3 { font-size: 15px !important; }
#app .studio-scope .dx-chev, #app .studio-scope [class*=chev] { display: none !important; }
/* Message builder: icon buttons show their name as text; open/closed shows [+]/[-] */
#app .icon-btn { width: auto !important; height: auto !important; min-width: 0 !important; padding: 0 !important; margin-left: 1ch !important; background: transparent !important; border: 0 !important; color: var(--con-bright) !important; font: inherit !important; font-size: 13px !important; }
#app .icon-btn::before { content: '[' attr(aria-label) ']'; }
#app .icon-btn:focus { background: var(--con-text) !important; color: #000 !important; }
#app .studio-scope summary::before { content: '[+] ' !important; border: 0 !important; transform: none !important; width: auto !important; height: auto !important; background: none !important; -webkit-mask: none !important; mask: none !important; position: static !important; display: inline !important; color: var(--con-dim) !important; }
#app .studio-scope details[open] > summary::before { content: '[-] ' !important; }
#app .studio-scope summary::after { content: none !important; display: none !important; }
#app .studio-scope summary { display: flex !important; flex-wrap: wrap; align-items: baseline !important; gap: 0 1ch !important; padding: 0 !important; }
#app .studio-scope .ms-card-title { display: inline-flex !important; gap: 1ch; align-items: baseline; }
#app .studio-scope .ms-card-title small { font-size: 13px !important; color: var(--con-dim) !important; }
#app .studio-scope .ms-tools { position: static !important; display: inline-flex !important; margin-left: 2ch !important; transform: none !important; opacity: 1 !important; }
#app .studio-scope .ms-card-title { flex: 0 0 auto !important; width: auto !important; min-width: 0 !important; overflow: visible !important; }
#app .studio-scope .ms-card-title b, #app .studio-scope .ms-card-title small { white-space: nowrap !important; overflow: visible !important; }

/* Announcements: the notice sheet keeps its spacing; tick-box rows don't stretch the whole width */
.console.notice .ln { white-space: pre; }
#app .check, #app .check-line, #app label.check { width: fit-content !important; max-width: 100%; }
#app .clearances li label { display: inline-flex !important; gap: 1ch; align-items: baseline; }
