/* «Паспорт · craft» (t26u, 29.11.2026). Loaded last, after pasport-motion.css.
   Borrowed from apple.com (globalheader / localnav / footer CSS, read 29.11.2026):
   - neutral surfaces (#f5f5f7 / #fff; #000 / #1c1c1e / #2c2c2e), text #1d1d1f / #f5f5f7, secondary #6e6e73 / #a1a1a6, hairlines #d2d2d7 / #424245;
   - system type (SF on Apple devices), tracking -.022em at 17px, -.01em at 12px, +.007em at 24-28px semibold;
   - 44-48px translucent bar (rgba 250,250,252,.8 + blur), one accent, motion .3s cubic-bezier(.25,.1,.3,1).
   From gov.uk: one ink for text, secondary text never below 4.5:1, plain sentence-case column heads.
   Cerber keeps its mark, name, rust accent and every function. Remove this file + its <link> to roll back. */

/* ---------- 1. Tokens ---------- */
html:root {   /* (0,1,1) + later in the cascade: beats app.css :root and ui3.css «html.ui3 { --mute }» */
  --bg: light-dark(#f5f5f7, #000000);
  --bg-2: light-dark(#ececf0, #111112);
  --surface: light-dark(#f5f5f7, #111112);
  --sunk: light-dark(#ececf0, #0b0b0c);
  --card: light-dark(#ffffff, #1c1c1e);
  --card-2: light-dark(#f5f5f7, #2c2c2e);
  --ink: light-dark(#1d1d1f, #f5f5f7);
  --ink-2: light-dark(#424245, #d1d1d6);
  --mute: light-dark(#6e6e73, #a1a1a6);
  --line: light-dark(#e5e5ea, #2c2c2e);
  --line-2: light-dark(#d2d2d7, #424245);

  /* one accent: Cerber rust, cleaned up (no peach, no olive) */
  --cobalt: light-dark(#a0402a, #ff9a76);
  --cobalt-ink: light-dark(#ffffff, #1d1d1f); --on-acc: var(--cobalt-ink);
  --cobalt-soft: light-dark(#f3ece9, #2f2522);
  --paper-action: light-dark(#a0402a, #c8502e);
  --paper-action-text: #ffffff;
  --ember: var(--cobalt); --ember-ink: var(--cobalt-ink); --ember-soft: var(--cobalt-soft); --grad: var(--cobalt);

  /* status colours: Apple system hues, darkened in light mode for 4.5:1 text */
  --mint: light-dark(#1f7a3a, #30d158);      --mint-soft: light-dark(#e6f4ea, #15291b);
  --amber: light-dark(#935400, #ffb340);     --amber-soft: light-dark(#fbf0de, #33270f);
  --amber-fill: light-dark(#c77700, #ff9f0a);
  --coral: light-dark(#c4241c, #ff6961);     --coral-soft: light-dark(#fdeceb, #3a1a19);
  --teal: light-dark(#0f6b78, #64d2e0);      --teal-soft: light-dark(#e3f2f4, #13292d);
  --teal-fill: light-dark(#6e6e73, #8e8e93);
  --slate: light-dark(#515154, #c7c7cc);     --slate-soft: light-dark(#f0f0f2, #2c2c2e);
  --violet: var(--teal); --violet-soft: var(--teal-soft);

  /* navigation material (apple.com globalheader) */
  --rail-bg: light-dark(rgba(255, 255, 255, .8), rgba(28, 28, 30, .8));
  --rail-ink: light-dark(#1d1d1f, #f5f5f7);
  --rail-muted: light-dark(#424245, #a1a1a6);
  --rail-line: light-dark(#d2d2d7, #38383a);
  --rail-active: light-dark(rgba(0, 0, 0, .06), rgba(255, 255, 255, .1));

  --f-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Golos Text", "Segoe UI", Roboto, system-ui, sans-serif;
  --f-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Golos Text", "Segoe UI", Roboto, system-ui, sans-serif;
  --f-mono: ui-monospace, "SF Mono", "SFMono-Regular", "JetBrains Mono Variable", Menlo, monospace;
  --ease: cubic-bezier(.25, .1, .3, 1);
  --r: 14px; --r-sm: 9px;
  --shadow: none;
}

/* ---------- 2. Type ---------- */
body { font-size: 15px; letter-spacing: -.01em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; font-feature-settings: "kern"; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; letter-spacing: -.015em; }
#shell #title { font: 600 clamp(28px, 3.2vw, 40px)/1.1 var(--f-display); letter-spacing: -.025em; }
.card h2 { font-size: 17px; letter-spacing: -.022em; }
.mono { font-family: var(--f-ui); font-variant-numeric: tabular-nums; letter-spacing: 0; }
a { color: var(--cobalt); }
::selection { background: color-mix(in srgb, var(--cobalt) 22%, transparent); }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }

/* ---------- 3. Header bar (Новый) and rail (Расширенный) ---------- */
html.ui3 #shell header.top {
  background: var(--rail-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border: 0; border-bottom: 1px solid var(--rail-line);
  box-shadow: none;
}
html.ui3 #shell header.top .ui3-secs .ui3-sec { font-size: 13px; font-weight: 400; letter-spacing: -.01em; color: var(--rail-muted); border-radius: 980px; padding: 6px 12px; }
html.ui3 #shell header.top .ui3-secs .ui3-sec:hover { color: var(--rail-ink); background: transparent; }
html.ui3 #shell header.top .ui3-secs .ui3-sec.on { color: var(--rail-ink); background: var(--rail-active); font-weight: 600; }
#shell .ui3-mark { background: none; display: inline-grid; place-items: center; color: var(--rail-ink); }
#shell .ui3-mark svg { width: 22px; height: 22px; fill: currentColor; }
#shell .rail { -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
#shell .rail .brand b { color: var(--rail-ink); }

/* «Вид: Новый / Расширенный» was white-on-cream in the light bar: segmented control on the bar material */
#shell .uisw { background: var(--rail-active); border: 0; border-radius: 9px; padding: 2px; color: var(--rail-muted); }
#shell .uisw .uisw-lab { color: var(--rail-muted); font-size: 12px; padding-inline: 6px 2px; }
#shell .uisw .uisw-b { color: var(--rail-ink) !important; background: transparent !important; border: 0; border-radius: 7px; font-size: 12px; padding: 4px 10px; }
#shell .uisw .uisw-b.on, #shell .uisw .uisw-b[aria-pressed="true"] { background: light-dark(#ffffff, #636366) !important; color: var(--rail-ink) !important; box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 0 0 .5px rgba(0, 0, 0, .04); font-weight: 600; }

#shell header.top .kbd-btn { border: 0 !important; background: var(--rail-active) !important; color: var(--rail-muted) !important; border-radius: 9px; min-height: 36px; }
#shell header.top .kbd-btn:hover { color: var(--rail-ink) !important; }
#shell header.top .kbd-btn kbd { border: 0; background: transparent; color: var(--rail-muted); font: 500 11px var(--f-ui); opacity: 1; }

/* header buttons: Apple pills */
#shell header.top :is(.gd-top, .dr-top, .ui2-help, .ui3-ava, .st-top-link, #fb-top) { border-radius: 980px !important; min-height: 32px; font-size: 13px; font-weight: 500; }
#shell header.top .gd-top { background: transparent !important; border: 1px solid var(--rail-line) !important; color: var(--rail-ink) !important; }
#shell header.top .dr-top, #shell:has(#view > .view-pane:not([hidden]) > .today) header.top .dr-top { background: var(--paper-action) !important; color: var(--paper-action-text) !important; border: 0 !important; }
#shell header.top :is(.ui2-help, .ui3-ava) { background: var(--rail-active) !important; color: var(--rail-ink) !important; border: 0 !important; }

/* sub navigation (Акты / Поиск / Реестры …) */
#shell .topnav { border-bottom: 1px solid var(--line-2); gap: 4px 22px; }
#shell .topnav button { font-size: 13px; color: var(--mute); }
#shell .topnav button:hover { color: var(--ink); }
#shell .topnav button[aria-current] { color: var(--ink); box-shadow: inset 0 -2px var(--ink); font-weight: 600; }

/* ---------- 4. Controls ---------- */
#shell :is(.btn, .ui3-chip) { border-radius: 980px; }
.btn { font-weight: 500; letter-spacing: -.01em; }
.field, #shell .field { border-radius: 10px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); min-height: 36px; }
.field::placeholder { color: var(--mute); opacity: 1; }
.field:focus { border-color: var(--cobalt); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cobalt) 25%, transparent); }

/* segmented control (Все / ИБ / ИТ) */
.seg { background: light-dark(#e8e8ed, #1c1c1e); border: 0; border-radius: 9px; padding: 2px; }
.seg button { border-radius: 7px; font-size: 13px; padding: 5px 14px; color: var(--ink); }
.seg button[aria-pressed="true"] { background: light-dark(#ffffff, #636366); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 0 0 .5px rgba(0, 0, 0, .04); }

/* filter chips (status) */
.chip { border-radius: 980px; border: 1px solid var(--line-2); background: transparent; color: var(--ink); font-size: 13px; padding: 5px 13px; transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.chip .mono { color: var(--mute); opacity: 1 !important; }
.chip:hover { border-color: var(--ink-2); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--card); font-weight: 600; }
.chip[aria-pressed="true"] .mono { color: inherit; opacity: .7 !important; }
.toolbar #q { min-width: 180px; }
.toolbar select.field { max-width: 240px; text-overflow: ellipsis; }
.toolbar .count { color: var(--mute); font-size: 13px; }

/* status pills: tinted, no outline */
.pill { font-size: 12px; font-weight: 600; letter-spacing: 0; padding: 2px 9px; }

/* ---------- 5. Cards and lists ---------- */
.card, .grid, .today-summary { border-color: light-dark(transparent, #2c2c2e); border-radius: 18px; }
.grid { background: var(--card); }
.gh { font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--mute); padding-top: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line-2); }
.gh > div { text-transform: none; letter-spacing: 0; }
.gr { border-top: 0; padding-top: 15px; padding-bottom: 15px; transition: background .3s var(--ease); }
.gr + .gr { box-shadow: inset 0 1px var(--line); }
.gr::before { display: none; }
.gr:hover { background: light-dark(#f5f5f7, #232325); }
.gr .sh { font: 600 12px/1.4 var(--f-ui); font-variant-numeric: tabular-nums; letter-spacing: 0; color: var(--mute); }
.gr .ti { font-size: 15px; font-weight: 600; line-height: 1.33; letter-spacing: -.012em; color: var(--ink); margin-top: 1px; }
.gr .rg { font-size: 13px; color: var(--mute); margin-top: 4px; letter-spacing: -.005em; }
.gr .au { font-size: 13.5px; color: var(--ink-2); line-height: 1.4; }
.gr .nx b { font: 600 13.5px var(--f-ui); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.gr .nx small { color: var(--mute); font-size: 12px; }
.gr .nx .bar { height: 3px; background: var(--line); } .gr .nx .bar i { background: var(--cobalt); }
.gr.off .ti, .gr.off .au { color: var(--mute); }

/* «Сегодня» */
.today .ui3-num b { font: 600 clamp(26px, 2.6vw, 34px)/1 var(--f-display); letter-spacing: -.02em; }
.today .ui3-num span, .today .ui3-step p { color: var(--mute); }
.today .ui3-three h3 { font: 600 19px/1.2 var(--f-display); letter-spacing: -.018em; border-bottom-color: var(--line); }
.today .ui3-three .ui3-dt b, .today .ui3-three .ui3-pc b { font: 600 20px/1 var(--f-display); letter-spacing: -.02em; }
.today .ui3-dt { color: var(--mute); border-right-color: var(--line); }
.today .ui3-li + .ui3-li { border-top-color: var(--line); }
.today .ui3-li:hover, .today .ui3-num:hover { background: light-dark(#f5f5f7, #232325); }
.today .ui3-all { color: var(--cobalt); text-decoration: none; font-weight: 500; }
.today .ui3-all:hover { text-decoration: underline; }
.today-soon { border-radius: 980px; padding: 2px 8px; font-weight: 600; }
.today .ui3-kcd-row .ui3-bar { height: 4px; border-radius: 4px; background: var(--line); }
.today .ui3-kcd-row .ui3-bar i { background: var(--ink-2); }
#gd-banner { border: 0; background: var(--card); border-radius: 18px; }
#gd-banner :is(a.go, a.pdf) { border-radius: 980px; border-color: var(--line-2); background: transparent; }

/* phones: the wordmark ran into «Инструкция» (also on live) — the guide button keeps only its icon */
@media (max-width: 480px) {
  html.ui3 #shell header.top .gd-top .tx { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  html.ui3 #shell header.top .gd-top { padding-inline: 10px; }
}

/* ---------- 6. Motion ----------
   No new animation. Transitions above are .3s on colour/background only; pasport-motion.css and app.css keep their own prefers-reduced-motion rules.
   (A global «* { transition-duration }» is deliberately NOT used: with the default transition-property «all» it would animate every colour change
   and break graph.js, which reads resolved colours through a probe element.) */

/* t31u visual pass: the act card still drew its short code in peach mono (app.css .drawer .sh → --ember) — quiet eyebrow like the list rows */
.drawer .sh { font: 600 13px/1.4 var(--f-ui); font-variant-numeric: tabular-nums; letter-spacing: 0; color: var(--mute); }
