/* SILINT shell: the Dock (ADR 0029). Slate in the dark, the MyMarks palette in
   the light (decision 6), Arial everywhere (decision 7). Tokens first, then the
   base elements, then the frame (banner, header, sidebar, footer), the home
   page, the shell's small pages, and the shared pieces tools use (buttons,
   notices, tags, forms, the scan table, tabs). The sign-in page keeps the look
   ADR 0026 gave it and restates what it needs. */

:root {
  color-scheme: light;
  /* the palette (decision 6) */
  --page: #ffffff;
  --side: #fafafa;
  --panel: #ffffff;
  --field: #ffffff;
  --raised: #f1f1f1;
  --bar: #f0f0f0;
  --sel: #e9e9e9;
  --line: #eeeeee;
  --border: #e0e0e0;
  --border-strong: #cfcfcf;
  --text: #222222;
  --text-2: #333333;
  --dim: #6b6b6b;
  --strong: #111111;
  --link: #1f3fcf;
  --red: #b3261e;
  --amber: #a8690f;
  --green: #2f7d54;
  --drop-shadow: 24px 0 48px rgba(0, 0, 0, 0.12);
  --smoothing: antialiased;

  /* the names tools already read, on the new palette */
  --font: Arial, Helvetica, sans-serif;
  --mono: "Courier New", Courier, monospace;
  --bg: var(--page);
  --surface: var(--panel);
  --ink: var(--text);
  --muted: #555555;
  --rule: var(--border);
  --rule-heavy: var(--border-strong);
  --accent: #3f63e8;
  --accent-ink: #ffffff;
  --tag-bg: var(--raised);
  --tag-ink: var(--text-2);
  --danger: var(--red);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  --radius: 6px;
  --compact: 32px;
  --comfortable: 52px;

  /* the handling banner keeps its own colors in both themes */
  --banner-public: #3b3c40;
  --banner-internal: #2a3344;
  --banner-confidential: #2f55d6;
  --banner-cui: #8c2a4a;
  --banner-ink: #ffffff;
  --banner-internal-ink: #c9d3e6;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #1c1f24;
  --side: #20242a;
  --panel: #23272e;
  --field: #272c33;
  --raised: #2c3139;
  --bar: #272c33;
  --sel: #343a43;
  --line: #2f343c;
  --border: #3b414a;
  --border-strong: #4b525c;
  --text: #f0eee9;
  --text-2: #d4d3ce;
  --dim: #a8aab1;
  --strong: #ffffff;
  --link: #8fa8ff;
  --red: #ff8f87;
  --amber: #e0a84a;
  --green: #58b98a;
  --drop-shadow: 24px 0 48px rgba(0, 0, 0, 0.45);
  --smoothing: auto;

  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --muted: #b4b5bb;
  --shadow: none;
}

* { box-sizing: border-box; }
html { height: 100%; }
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font: 13px/1.45 var(--font);
  -webkit-font-smoothing: var(--smoothing);
}
a { color: var(--link); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 14px; }
h2 { font-size: 14px; font-weight: 700; color: var(--strong); margin: 22px 0 8px; }
p { margin: 0 0 12px; }
kbd { font-family: var(--mono); }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 12px; }
.small-text { font-size: 12px; }
.center-text { text-align: center; margin-top: 15vh; }
.noscript { margin: 3em; font-family: var(--font); }

/* -- the plain frame: sign-in, its return, sign-out ------------------------------- */
.shell { min-height: 100vh; display: flex; flex-direction: column; }
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 24px; height: 52px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.top-left, .top-right { display: flex; align-items: center; gap: 14px; min-width: 0; }
.wordmark { font-weight: 700; letter-spacing: 0.18em; color: var(--ink); font-size: 14px; }
.wordmark:hover { text-decoration: none; }
.top-link { font-size: 12px; color: var(--text-2); }
.theme { background: none; border: 1px solid var(--rule); color: var(--ink); border-radius: 4px; width: 28px; height: 28px; cursor: pointer; font: inherit; }
.main { flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 28px 24px 48px; }
.foot { display: flex; justify-content: space-between; padding: 12px 24px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 12px; letter-spacing: 0.06em; }

/* -- the Dock frame (decision 1): one screen tall, the page region scrolls inside -- */
.dock { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }
.dock-body { flex: 1 1 auto; min-height: 0; display: flex; }
.dock-col { flex: 1 1 auto; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.dock-under { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; position: relative; }
.dock-region {
  flex: 1 1 auto; min-height: 0; overflow: auto; display: flex; flex-direction: column;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.dock .main { flex: 1 0 auto; padding: 24px 32px 32px; }
.dock .main.wide { max-width: none; padding: 36px 32px 32px; }
.dock-fill { flex: 1 1 auto; }

.banner {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 16px; height: 24px;
  color: var(--banner-ink); background: var(--banner-internal);
  /* the system monospace in both themes: Courier New's hairlines wash out as light text on the banner's color */
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
}
.banner-public { background: var(--banner-public); }
.banner-internal { background: var(--banner-internal); color: var(--banner-internal-ink); }
.banner-customer_confidential { background: var(--banner-confidential); }
.banner-cui { background: var(--banner-cui); }
.banner-none { background: var(--banner-public); }
.banner-tenant { letter-spacing: 0.04em; text-transform: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.dock-head {
  flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  padding: 12px 32px; border-bottom: 1px solid var(--line); background: var(--page);
}
.dock-head-page { gap: 8px 14px; padding: 10px 32px 10px 10px; }
.dock-ws { min-width: 0; max-width: 32ch; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-ws-switch { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 10px 0 0; border-radius: 8px; }
.dock-ws-switch:hover { text-decoration: none; color: var(--strong); }
.dock-ws-switch svg { flex: none; color: var(--dim); }
.dock-ws-quiet { color: var(--muted); }
.dock-sep { color: var(--border-strong); }
.dock-title { min-width: 0; font-weight: 500; color: var(--strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-role { color: var(--dim); font-size: 12px; white-space: nowrap; }
.dock-head-link { display: flex; align-items: center; height: 44px; padding: 0 10px; color: var(--text-2); font-size: 12px; white-space: nowrap; }
.dock-head-link:last-child { padding-right: 0; }
.dock-head-link[aria-current="page"] { color: var(--strong); font-weight: 700; }
.dock-search-slot { flex: 1 1 320px; display: flex; min-width: 0; max-width: 640px; margin: 0 auto; }
.dock-search {
  flex: 1 1 auto; display: flex; align-items: center; gap: 10px; min-width: 0; height: 44px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--field); color: var(--dim); cursor: text;
}
.dock-search svg { flex: none; }
.dock-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 30%, transparent); }
.dock-search-input {
  flex: 1 1 auto; min-width: 0; height: 40px; padding: 0; border: 0; outline: 0;
  background: transparent; color: var(--text); font: inherit; font-size: 13px;
}
.dock-search-input:focus { outline: 0; box-shadow: none; }
.dock-search-input::placeholder { color: var(--dim); opacity: 1; }
.dock-kbd { flex: none; padding: 2px 6px; border: 1px solid var(--border); border-radius: 6px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.dock-burger, .dock-icon-btn {
  flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 10px; background: transparent; color: var(--dim); cursor: pointer;
}
.dock-burger { background: var(--raised); color: var(--strong); transition: background 0.2s ease; }
.dock-burger.on { background: var(--sel); }
.dock-icon-btn:hover { background: var(--raised); color: var(--text); }

.dock-foot {
  flex: none; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding: 12px 32px; border-top: 1px solid var(--line); background: var(--page);
  color: var(--dim); font-family: var(--mono); font-size: 12px;
}
.dock-foot-mark { letter-spacing: 0.06em; }

/* -- the sidebar: always shown on the home page, a drop-down inside a tool ---------- */
.dock-rail {
  flex: 0 0 64px; width: 64px; min-height: 0; display: flex; flex-direction: column; align-items: center;
  padding: 14px 0; overflow-x: hidden; overflow-y: auto; scrollbar-width: none;
  background: var(--side); border-right: 1px solid var(--line);
}
.dock-rail.drop {
  position: absolute; z-index: 20; top: 0; bottom: 0; left: 0; padding: 12px 0 14px;
  border-right-color: var(--border); box-shadow: var(--drop-shadow);
  clip-path: inset(0 -80px 100% 0); opacity: 0; visibility: hidden; pointer-events: none;
  transition: clip-path 0.42s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.18s ease, visibility 0s linear 0.42s;
}
.dock-rail.drop.open {
  clip-path: inset(0 -80px 0 0); opacity: 1; visibility: visible; pointer-events: auto;
  transition: clip-path 0.42s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.18s ease, visibility 0s;
}
.dock-mark {
  flex: none; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  border-radius: 9px; background: var(--text); color: var(--page); font-weight: 600; font-size: 17px;
}
.dock-mark:hover { text-decoration: none; }
.dock-rail .dock-mark { margin-bottom: 20px; }
.dock-rail-btn {
  flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer;
}
.dock-rail-btn:hover { background: var(--raised); color: var(--text); text-decoration: none; }
.dock-all { color: var(--text-2); }
.dock-all[aria-current="page"] { background: var(--raised); color: var(--strong); }
.dock-rail-sep { flex: none; width: 24px; height: 1px; margin: 14px 0; background: var(--border); }
.dock-rail.drop .dock-rail-sep { margin: 10px 0; }
.dock-pins { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.dock-pin { cursor: grab; }
.dock-pin[aria-current="page"] { background: var(--accent); color: #ffffff; }
.dock-pin.over { box-shadow: inset 0 0 0 2px var(--accent); }
.dock-pin.dragging { opacity: 0.5; }
.dock-theme { color: var(--dim); }
.dock-initials {
  flex: none; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-top: 6px;
  border: 1px solid var(--border); border-radius: 50%; color: var(--text-2); font-size: 12px; font-weight: 500;
}

/* -- the home page: "All tools" (decisions 2 to 5) ---------------------------------- */
.dock-home { display: flex; flex-direction: column; gap: 18px; }
.dock-home-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px; }
.dock-home-head h1 { margin: 0; font-size: 28px; font-weight: 500; letter-spacing: -0.02em; }
.dock-quiet { color: var(--dim); font-size: 12px; }
.dock-none:empty { display: none; }
.dock-cols { display: grid; column-gap: 48px; align-items: start; }
.dock-cols.cols-1 { grid-template-columns: minmax(0, 1fr); }
.dock-cols.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dock-cols.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dock-cols.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dock-col-list { min-width: 0; display: flex; flex-direction: column; }
.dock-cat { display: flex; flex-direction: column; margin: 0 0 28px; }
.dock-cat-head {
  display: flex; justify-content: space-between; gap: 12px; margin: 0 -10px 2px; padding: 8px 10px;
  border-radius: 6px; background: var(--bar); color: var(--strong); font-size: 12px; font-weight: 700;
}
.dock-cat-count { color: var(--muted); font-weight: 400; }
.dock-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.dock-row-icon {
  flex: none; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  border-radius: 9px; background: var(--raised); color: var(--text-2);
}
.dock-row-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding-top: 1px; }
.dock-row-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
.dock-row-name { font-size: 14px; font-weight: 500; color: var(--text); overflow-wrap: anywhere; }
.dock-row-note, .dock-row-sum { color: var(--dim); font-size: 12px; }
.dock-row.is-no-access .dock-row-name, .dock-row.is-no-access .dock-row-icon { color: var(--muted); }
.dock-star, .dock-lock, .dock-row-end {
  flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: -4px -12px 0 0;
  border-radius: 10px; color: var(--dim);
}
.dock-star { padding: 0; border: 0; background: transparent; cursor: pointer; }
.dock-star:hover { background: var(--raised); color: var(--text); }
.dock-star[aria-pressed="true"] { color: var(--text); }
.dock-star[aria-pressed="true"] path { fill: currentColor; }

/* -- the shell's own small pages: a centered column ----------------------------------- */
.page-col { width: 100%; max-width: 560px; margin: 6vh auto 0; display: flex; flex-direction: column; gap: 14px; }
.page-col > h1 { margin: 0; }
.page-col > h2 { margin: 8px 0 0; }
.page-col > p, .page-col > .notice { margin: 0; }
.page-col > .button { align-self: flex-start; margin-top: 0; }
h1.with-lock { display: flex; align-items: center; gap: 10px; }
h1.with-lock svg { flex: none; color: var(--dim); }

.dock-toast {
  position: fixed; z-index: 50; right: 16px; bottom: 56px; max-width: min(380px, calc(100vw - 32px));
  border-radius: var(--radius); background: var(--panel); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.dock-toast .notice { margin: 0; }

/* -- cards, forms, lists: shared with the admin pages and the tools -------------------- */
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }

/* -- sign-in: the homepage's look (site/home.css, ADR 0026). Night in both
   themes, so the night tokens, its font and its sizes are restated here and the
   theme switch hides. */
.signin-page {
  --bg: #0f1012; --surface: #16171a; --ink: #e9e7e1; --muted: #9b9b94;
  --rule: #2b2c31; --rule-heavy: #4f7cff; --accent: #4f7cff; --accent-ink: #0b0c0f;
  --danger: #ff7b73; --shadow: none; --radius: 4px;
  --raised: #0f1012; --field: #0f1012; --line: #2b2c31;     /* what the shared notices and fields read now */
  --font: "Archivo", "Archivo Variable", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
  font-family: var(--font); font-size: 15px; -webkit-font-smoothing: antialiased;
  position: relative; background: var(--bg); color: var(--ink); overflow: hidden;
}
.signin-image {
  position: absolute; inset: 0;
  background: var(--bg) url("/app/hero.jpg") center right / cover no-repeat;
  opacity: 0; animation: signin-settle 2.4s ease 0.1s forwards;
}
.signin-image::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(15, 16, 18, 0.82) 38%, rgba(15, 16, 18, 0.15) 100%),
    linear-gradient(180deg, rgba(15, 16, 18, 0) 70%, var(--bg) 100%);
}
.signin-page .top, .signin-page .main, .signin-page .foot { position: relative; z-index: 1; }
.signin-page .top { background: transparent; border-bottom: 0; height: auto; padding: 28px clamp(20px, 5vw, 72px); }
.signin-page .wordmark { font-weight: 600; font-size: 15px; letter-spacing: 0.34em; }
.signin-page .theme { display: none; }
.signin-page .tag-env {
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: 2px; padding: 2px 6px;
}
.signin-page .main { max-width: none; display: flex; align-items: center; justify-content: center; padding: 24px clamp(20px, 5vw, 72px) 96px; }
.signin-page .foot { border-top-color: var(--rule); padding: 26px clamp(20px, 5vw, 72px); font-size: 13px; letter-spacing: 0; }
.signin-page .notice { font-size: 14px; }
.signin {
  width: 400px; max-width: 100%; display: flex; flex-direction: column; gap: 10px; padding: 10px;
  background: rgba(22, 23, 26, 0.72); border: 1px solid var(--rule); border-radius: 8px;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  opacity: 0; transform: translateY(10px); animation: signin-rise 0.9s ease 0.25s forwards;
  transition: border-color 0.2s ease;
}
.signin:focus-within { border-color: var(--accent); }
.signin-row { display: flex; align-items: center; gap: 8px; }
.signin input[type="email"] { height: 48px; border: 0; background: transparent; font-size: 16px; }
.signin input[type="email"]:focus { box-shadow: none; }
.signin-go {
  flex: none; width: 40px; height: 40px; border: 0; border-radius: 6px; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); font: 600 18px/1 var(--font);
  transition: background 0.2s ease;
}
.signin-go:hover { background: #6a90ff; }
.signin-go:disabled { opacity: 0.5; cursor: default; }
.signin .notice { margin: 2px 2px 0; }
@keyframes signin-rise { to { opacity: 1; transform: none; } }
@keyframes signin-settle { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .signin, .signin-image { opacity: 1; transform: none; animation: none; }
  .dock-rail.drop, .dock-rail.drop.open, .dock-burger { transition: none; }
}
@media (max-width: 820px) {
  .signin-image::after { background: linear-gradient(180deg, rgba(15, 16, 18, 0.72) 0%, rgba(15, 16, 18, 0.6) 55%, var(--bg) 100%); }
}
.label { font-size: 12px; color: var(--muted); }
input[type="email"], input[type="text"], input[type="number"], input[type="datetime-local"], select, textarea {
  font: inherit; color: var(--ink); background: var(--field);
  border: 1px solid var(--rule); border-radius: var(--radius); padding: 0 12px; height: 44px; width: 100%;
}
textarea { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; font-family: var(--mono); font-size: 13px; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 30%, transparent); }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-weight: 500; height: 40px; padding: 0 16px; margin-top: 6px;
  border: 1px solid var(--rule-heavy); border-radius: 8px;
  background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none;
}
.button.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.button.small { height: var(--compact); padding: 0 12px; margin: 0; font-size: 12px; }
.button.danger { color: var(--danger); border-color: var(--danger); }
.button.tiny { height: 24px; padding: 0 8px; margin: 0; font-size: 12px; font-weight: 500; border-radius: var(--radius); }
.button:disabled { opacity: 0.6; cursor: wait; }
.button:hover { text-decoration: none; background: var(--raised); }
.button.primary:hover { background: var(--accent); filter: brightness(1.08); }
.notice { padding: 10px 12px; border-radius: var(--radius); font-size: 13px; }
.notice-error { color: var(--danger); border: 1px solid var(--danger); }
.notice-muted { color: var(--muted); background: var(--raised); }
.notice-ok { color: var(--ink); border: 1px solid var(--rule-heavy); background: var(--surface); }
.notice.flash { margin: 0 0 14px; }
.list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.list li { display: flex; align-items: center; gap: 12px; min-height: var(--comfortable); padding: 6px 0; border-bottom: 1px solid var(--line); }
.row-link, .row-text { flex: 1; font-size: 14px; font-weight: 500; color: var(--ink); }
.tag {
  display: inline-block; font-size: 11px; font-weight: 500;
  color: var(--tag-ink); background: var(--tag-bg); border-radius: 4px; padding: 2px 6px; white-space: nowrap;
}
.tag-env { background: transparent; border: 1px solid var(--rule); color: var(--muted); }
.tag-handling-customer_confidential { background: var(--banner-confidential); color: var(--banner-ink); }
.tag-handling-cui { background: var(--banner-cui); color: var(--banner-ink); }
.tag-handling-internal { background: var(--banner-internal); color: var(--banner-ink); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; font-size: 13px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; word-break: break-all; }

/* -- compact scan tables, for the admin pages and tools -------------------------- */
.scan-wrap { overflow-x: auto; border-bottom: 1px solid var(--rule); }
table.scan { width: 100%; border-collapse: collapse; font-size: 12px; }
table.scan th { text-align: left; font-weight: 700; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--rule-heavy); padding: 0 8px; height: var(--compact); white-space: nowrap; }
table.scan td { border-bottom: 1px solid var(--line); padding: 0 8px; height: var(--compact); white-space: nowrap; max-width: 420px; overflow: hidden; text-overflow: ellipsis; }
table.scan tbody tr:hover td { background: color-mix(in srgb, var(--accent) 8%, transparent); }
table.scan td.col-actions { text-align: right; overflow: visible; }
table.scan .actions { display: inline-flex; align-items: center; gap: 6px; }
table.scan select.tiny { height: 24px; width: auto; padding: 0 6px; font-size: 12px; }

/* -- the admin pages and the console: tabs, a panel, toolbars, comfortable forms -- */
.admin-head { display: flex; align-items: baseline; gap: 14px; }
.admin-head h1 { margin: 0; }
.admin-head .top-link { margin-left: auto; }
.tabs { display: flex; flex-wrap: wrap; gap: 2px; margin: 18px 0 20px; border-bottom: 1px solid var(--rule); }
.tab { display: inline-block; padding: 8px 12px; font-size: 13px; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab:hover { color: var(--ink); text-decoration: none; }
.tab[aria-current="page"] { color: var(--strong); border-bottom-color: var(--accent); font-weight: 700; }
.panel > .intro { max-width: 760px; font-size: 13px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 14px 0 10px; font-size: 12px; }
.toolbar select.tiny { height: 28px; width: auto; padding: 0 8px; font-size: 12px; }
.toolbar .inline { display: inline-flex; align-items: center; gap: 8px; }
.toolbar .inline input { height: 28px; width: auto; padding: 0 8px; font-size: 12px; }
.tool-link { font-size: 12px; }
.toolbar input[type="search"] { height: 28px; width: 220px; padding: 0 8px; font-size: 12px; }
.finder { display: flex; flex-wrap: wrap; gap: 8px; }
.finder input { flex: 1 1 160px; }
.finder select { flex: 1 1 100%; }
.form { margin-top: 24px; max-width: 640px; display: flex; flex-direction: column; gap: 14px; }
.form h2 { margin: 0; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field .hint { font-size: 12px; color: var(--muted); }
.field.check { flex-direction: row; align-items: center; gap: 10px; min-height: var(--comfortable); }
.field.check input { width: 16px; height: 16px; margin: 0; }
.form-actions { display: flex; gap: 10px; }
.form .button { margin-top: 0; }
.slot:empty { display: none; }

@media (max-width: 640px) {
  .top, .foot { padding-left: 16px; padding-right: 16px; }
  .main { padding: 20px 16px 40px; }
  .dock-head { padding: 10px 16px; gap: 8px 12px; }
  .dock-head-page { padding-left: 10px; }
  .dock .main { padding: 20px 16px 24px; }
  .dock .main.wide { padding: 24px 16px 24px; }
  .dock-foot { padding: 12px 16px; }
  .dock-role, .dock-kbd { display: none; }
}
