/* The shell (review 07): the header, the menu of seven sections with its sliding marks (sts-report page.html, as they
   were), the notification centre, Ctrl+K. New pieces in the same style (the user, review 07, питання 1). */
.skip { position: absolute; left: 12px; top: -48px; z-index: 80; background: var(--surface); color: var(--ink); padding: 8px 12px; border-radius: 8px; box-shadow: var(--shadow); }
.skip:focus { top: 12px; }

header.top { position: relative; display: flex; gap: 16px 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
/* the emblem and the name (old page.html: .brand, .emblem — 54 px, 40 px on a phone) */
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; color: inherit; text-decoration: none; border-radius: 10px; }
.emblem { height: 54px; width: auto; display: block; flex: none; }
.brand-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.brand-name { font-size: 26px; font-weight: 650; letter-spacing: -0.01em; line-height: 1.1; }
.brand-sub { font-size: 12px; color: var(--ink-2); }
@media (max-width: 640px) { .brand-name { font-size: 21px; } .emblem { height: 40px; } }
.tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.tools kbd { font: inherit; font-size: 11px; color: var(--ink-2); border: 1px solid var(--ring); border-radius: 4px; padding: 0 4px; margin-left: 2px; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--ring); background: var(--surface); font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.pill.live::before { background: var(--o-int); }
.pill.lost { color: var(--bad-ink); }
.pill.lost::before { background: var(--o-loss); }
/* Ч1-12: grey while nothing goes out; the accent while something does, with the source named */
.pill.out.on { color: var(--ink); border-color: var(--sel-ring); background: var(--sel-bg); }
.pill.out.on::before { background: var(--accent); }
@media (prefers-reduced-motion: no-preference) { .pill.out.on::before { animation: lumen-blink 1s ease-in-out infinite; } }
@keyframes lumen-blink { 50% { opacity: .35; } }

.bell .count { display: inline-block; min-width: 18px; margin-left: 6px; padding: 0 5px; border-radius: 9px; background: var(--o-loss); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.bell .count[hidden] { display: none; }
.notices {
  position: absolute; z-index: 40; top: calc(100% + 8px); right: 0; width: min(480px, 100%);
  background: var(--surface); border: 1px solid var(--ring); border-radius: 14px; box-shadow: var(--shadow); padding: 10px 14px;
}
.notices[hidden] { display: none; }
.notice-list { list-style: none; margin: 0; padding: 0; }
.notice-list li { padding: 8px 0 8px 10px; border-top: 1px solid var(--grid); box-shadow: inset 3px 0 0 var(--axis); }
.notice-list li:first-child { border-top: 0; }
.notice-list li[data-tone="bad"] { box-shadow: inset 3px 0 0 var(--o-loss); }
.notice-list li[data-tone="warn"] { box-shadow: inset 3px 0 0 var(--o-miss); }
.notice-list li[data-tone="ok"] { box-shadow: inset 3px 0 0 var(--o-int); }
.n-title { font-weight: 600; }
.n-text { font-size: 13px; color: var(--ink-2); }

.navbar { background: var(--surface); border: 1px solid var(--ring); border-radius: 14px; margin: 20px 0 28px; }
/* the sections: a row of pills above the pages of the chosen section */
.tab-groups { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; }
.tabs:not([hidden]) { border-top: 1px solid var(--grid); }
.tab-groups a {
  color: var(--ink-2); font-size: 14px; font-weight: 600; text-decoration: none;
  padding: 7px 16px; border-radius: 9px; cursor: pointer;
}
.tab-groups a:hover { color: var(--ink); background: var(--hover-bg); }
.tab-groups a[aria-current="page"] { background: var(--sel-bg); color: var(--ink); box-shadow: inset 0 0 0 1px var(--sel-ring); }
.tabs[hidden] { display: none; }
/* the baseline is an inset shadow, so the active tab's underline covers it without overflowing the scroller */
.tabs { display: flex; gap: 4px; box-shadow: inset 0 -1px 0 var(--grid); padding: 0 8px; overflow-x: auto; overflow-y: hidden; }
.tab {
  color: var(--ink-2); font-size: 15px; font-weight: 600; text-decoration: none;
  padding: 11px 14px 9px; cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
/* the menu over the whole width (05.10.2026, the user: «розкинути на всю площину»): equal shares, the text centred */
.tab-groups a, .tabs .tab { flex: 1 1 0; text-align: center; }
/* the sliding marks of the chosen section and page (nav.ts placeInk); the links' own marks give way to them */
.tab-groups, .tabs { position: relative; }
.tab-groups a, .tabs .tab { position: relative; z-index: 1; }
.nav-ink { position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none; }
.nav-ink[hidden] { display: none; }
.group-ink { background: var(--sel-bg); box-shadow: inset 0 0 0 1px var(--sel-ring); border-radius: 9px; }
.tab-ink { background: var(--accent); border-radius: 2px; }
.tab-groups.has-ink a[aria-current="page"] { background: transparent; box-shadow: none; }
.tabs.has-ink .tab[aria-selected="true"] { border-bottom-color: transparent; }
@media (max-width: 900px) { .tab-groups a { flex: 1 1 auto; padding: 7px 10px; } }

/* transitions (05.10.2026, the user: «Чи можливо додати анімації переходів?»): none when the system asks for less motion */
@media (prefers-reduced-motion: no-preference) {
  .nav-ink { transition: transform .3s cubic-bezier(.2, .7, .2, 1), width .3s cubic-bezier(.2, .7, .2, 1), height .3s; }
  .nav-ink.no-anim { transition: none; }
  .tab-groups a, .tab { transition: background-color .15s, color .15s, border-color .15s, box-shadow .15s; }
  main > * { animation: lumen-panel-in .26s ease-out; }
  /* cards and tiles of every page come in softly, the ones of the same row one after another */
  .card, .tile { animation: lumen-panel-in .3s ease-out both; }
  .tile:nth-child(2) { animation-delay: 40ms; }
  .tile:nth-child(3) { animation-delay: 80ms; }
  .tile:nth-child(4) { animation-delay: 120ms; }
  .tile:nth-child(5) { animation-delay: 160ms; }
  .tile:nth-child(6) { animation-delay: 200ms; }
  .btn, .seg button, .pill { transition: transform .15s, background-color .15s, color .15s, border-color .15s, box-shadow .15s; }
  .btn:active, .seg button:active { transform: scale(.97); }
  .notices:not([hidden]) { transform-origin: top right; animation: lumen-pop .16s ease-out; }
}
@keyframes lumen-panel-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes lumen-pop { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }

/* Ctrl+K */
.palette { width: min(560px, calc(100% - 32px)); padding: 0; border: 1px solid var(--ring); border-radius: 14px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); margin-top: 12vh; }
.palette::backdrop { background: rgba(0, 0, 0, .35); }
.palette-input { width: 100%; border: 0; border-bottom: 1px solid var(--grid); background: transparent; color: var(--ink); padding: 14px 16px; font-size: 15px; outline: none; }
.palette-list { list-style: none; margin: 0; padding: 6px; max-height: 50vh; overflow: auto; }
.palette-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.palette-list li.on { background: var(--sel-bg); box-shadow: inset 0 0 0 1px var(--sel-ring); }
.palette-list .p-where { color: var(--ink-2); font-size: 12px; }
.palette-list .p-none { color: var(--ink-2); cursor: default; }
.n-advice { font-size: 13px; margin-top: 2px; }
.n-when { font-size: 12px; color: var(--muted); margin-top: 2px; }
/* Ч1-04: a file dragged onto the window */
.drop-over { position: fixed; inset: 12px; z-index: 90; display: flex; align-items: center; justify-content: center; border: 2px dashed var(--accent); border-radius: 16px; background: color-mix(in srgb, var(--page) 85%, transparent); font-size: 18px; font-weight: 600; pointer-events: none; }
.drop-over[hidden] { display: none; }
.toast { position: fixed; z-index: 95; right: 16px; bottom: 16px; max-width: min(560px, calc(100% - 32px)); background: var(--surface); border: 1px solid var(--ring); border-radius: 12px; box-shadow: var(--shadow), inset 4px 0 0 var(--axis); padding: 10px 14px 10px 18px; font-size: 13px; }
.toast[hidden] { display: none; }
.toast[data-tone="ok"] { box-shadow: var(--shadow), inset 4px 0 0 var(--o-int); }
.toast[data-tone="bad"] { box-shadow: var(--shadow), inset 4px 0 0 var(--o-loss); }
