/* The Security Desk's own sheet (P1b). Nothing from app.css, the kit or a font host: the desk's
   pages load this file and nothing else, so a change to the house's controls never moves the
   street-door screen, and the screen never reaches a third party. Built for an iPad landscape
   console (1180×820, checked at 1366×1024) with touch targets of at least 44px. */
:root {
  --bg: #f6f4ef;
  --card: #ffffff;
  --ink: #1d1d1b;
  --dim: #6c6a63;
  --line: #e2ded4;
  --accent: #1f4e79;
  --accent-ink: #ffffff;
  --warn: #8a3b12;
  --warn-bg: #fbe9df;
  --ok: #2e6b3a;
  --ok-bg: #e4f1e6;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161614;
    --card: #20201d;
    --ink: #eeece6;
    --dim: #a5a299;
    --line: #34332e;
    --accent: #7fb0dd;
    --accent-ink: #10202e;
    --warn: #f0b08f;
    --warn-bg: #3a2418;
    --ok: #9ed3a8;
    --ok-bg: #1d3121;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 18px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}
a { color: var(--accent); }
h1 { font-size: 26px; margin: 0 0 8px; }
h2 { font-size: 20px; margin: 0 0 8px; }
.dk-dim { color: var(--dim); }

.dk-bar {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  padding: 12px 24px; background: var(--card); border-bottom: 1px solid var(--line);
}
.dk-brand { font-weight: 700; }
.dk-tabs { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.dk-tabs a {
  padding: 10px 14px; border-radius: 10px; text-decoration: none; color: var(--ink);
  min-height: 44px; display: inline-flex; align-items: center;
}
.dk-tabs a[aria-current="page"] { background: var(--bg); font-weight: 600; }
.dk-who { display: flex; align-items: center; gap: 12px; margin: 0; }

.dk-page { max-width: 1120px; margin: 0 auto; padding: 20px 24px 40px; }
.dk-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  margin: 0 0 16px; overflow: hidden;
}
.dk-pad { padding: 20px 24px; }
.dk-narrow { max-width: 560px; margin-left: auto; margin-right: auto; }
.dk-head { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 24px 8px; }
.dk-sub { padding: 12px 24px 0; font-size: 17px; color: var(--dim); }
.dk-said {
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: 10px; padding: 12px 16px; margin: 0 0 16px;
}

.dk-rows { list-style: none; margin: 0; padding: 0; }
.dk-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 24px; border-top: 1px solid var(--line);
}
.dk-row .dk-main { display: flex; flex-direction: column; min-width: 0; text-decoration: none; color: inherit; }
.dk-row .dk-what { font-weight: 600; }
.dk-row .dk-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

.dk-pill {
  display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 15px;
  background: var(--bg); color: var(--ink); white-space: nowrap;
}
.dk-pill.dk-warn { background: var(--warn-bg); color: var(--warn); }
.dk-pill.dk-ok { background: var(--ok-bg); color: var(--ok); }

.dk-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 12px 0 0; }
.dk-facts dt { color: var(--dim); }
.dk-facts dd { margin: 0; }
.dk-words { margin: 0 0 12px; padding-left: 20px; }

label { display: block; font-weight: 600; margin: 14px 0 6px; }
label.dk-check { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 400; }
label.dk-check input { width: 24px; height: 24px; }
input[type="text"], input[type="password"], select {
  width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
}
.dk-acts { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.dk-addrow { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.dk-addrow label { flex-basis: 100%; margin: 0; }
.dk-addrow input { flex: 1; min-width: 200px; width: auto; }
form.dk-inline { display: inline-flex; align-items: center; gap: 10px; margin: 0; }
form.dk-quiet { text-align: center; margin-top: 8px; }

.dk-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 10px 18px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); font: inherit; text-decoration: none; cursor: pointer;
}
.dk-btn.dk-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.dk-btn.dk-pick { min-width: 160px; font-size: 20px; }
button.dk-link { background: none; border: 0; color: var(--dim); font: inherit; text-decoration: underline; min-height: 44px; cursor: pointer; }
.dk-picks { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }

/* Narrower than the iPad (a phone, or the iPad in split view): the bar stacks, the brand on its own
   line, then the tabs, then the officer, so nothing sits in a column beside the tabs (402 render). */
@media (max-width: 760px) {
  .dk-bar { gap: 8px; padding: 10px 16px; }
  .dk-brand, .dk-tabs, .dk-who { flex-basis: 100%; }
  .dk-page { padding: 16px; }
  .dk-row { flex-wrap: wrap; }
  .dk-row .dk-meta { justify-content: flex-start; }
}
