/* Сторінка «Адмінки під замовлення» — палітра orest.dev («Нічна зміна»); вікна адмінок — у кольорах проєктів. */
:root {
  --bg: #0a0a0f; --bg2: #111118; --card: #17171f; --soft: #1f1f29; --line: #2a2a36;
  --ink: #f5f3ff; --muted: #a3a1b8; --violet: #7c4dff; --lime: #d4ff3a;
  --font: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.ak { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font); overflow-x: clip; -webkit-font-smoothing: antialiased; }
.ak h1, .ak h2, .ak h3, .ak p, .ak ul, .ak ol { margin: 0; }
.ak ul, .ak ol { padding: 0; list-style: none; }
.ak h1, .ak h2 { text-wrap: balance; overflow-wrap: break-word; }
:where(.ak) a { color: inherit; }
.ak :focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; border-radius: 8px; }
.ak-wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
.ak-skip { position: absolute; left: -9999px; top: 8px; z-index: 50; padding: 10px 14px; border-radius: 10px; background: var(--lime); color: var(--bg); font-weight: 700; }
.ak-skip:focus { left: 16px; }

/* шапка */
.ak-top { position: sticky; top: 0; z-index: 30; background: rgba(10, 10, 15, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--soft); }
.ak-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.ak-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; min-width: 0; }
.ak-brand span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ak-logo { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 30px; height: 30px; border-radius: 10px 10px 10px 3px; background: var(--violet); color: #fff; font-weight: 900; font-size: 14px; }
.ak-links { display: flex; align-items: center; gap: 4px; font-size: 14px; }
.ak-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 12px; text-decoration: none; color: var(--muted); }
.ak-links a:hover { color: var(--ink); }
.ak-links .ak-cta { background: var(--ink); color: var(--bg); font-weight: 700; }
@media (max-width: 560px) { .ak-links a:not(.ak-cta) { display: none; } }

/* перший екран */
.ak-hero { padding: clamp(36px, 7vw, 80px) 0 28px; display: grid; gap: 14px; }
.ak-k { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); }
.ak-hero h1 { font-size: clamp(34px, 6.4vw, 72px); line-height: 1.02; font-weight: 900; letter-spacing: -.03em; }
.ak-hero h1 i { font-style: normal; color: var(--lime); }
.ak-lead { max-width: 760px; color: var(--muted); font-size: clamp(16px, 2vw, 19px); }
.ak-lead b { color: var(--ink); }

/* перемикач проєктів */
.ak-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.ak-tabs button { display: grid; gap: 2px; text-align: left; min-height: 56px; padding: 10px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg2); color: var(--ink); font: inherit; font-weight: 800; cursor: pointer; transition: border-color .25s, background .25s; }
.ak-tabs button small { font-size: 12px; font-weight: 500; color: var(--muted); }
.ak-tabs button[aria-selected='true'] { border-color: var(--lime); background: var(--card); box-shadow: 0 0 0 1px var(--lime) inset; }

/* вікно адмінки — свої кольори на проєкт */
.ak-win { --a-bg: #05090c; --a-bg2: #0b1217; --a-card: #111b22; --a-line: #1d2b34; --a-ink: #e9f3f4; --a-muted: #8ea3ab; --a-accent: #0b8998; --a-on: #fff; --a-ok: #4fd1a5; --a-warn: #ffb547; --a-bad: #ff6b7a;
  border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--a-bg); color: var(--a-ink); box-shadow: 0 40px 90px -50px rgba(0, 0, 0, .9); }
.ak-win[data-theme='famibud'] { --a-bg: #faf9f7; --a-bg2: #ffffff; --a-card: #f1efeb; --a-line: #e2ded7; --a-ink: #16232c; --a-muted: #5d6b73; --a-accent: #2d7f85; --a-on: #fff; --a-ok: #1f8a5b; --a-warn: #a85f00; --a-bad: #c23a48; }
.ak-chrome { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--a-bg2); border-bottom: 1px solid var(--a-line); }
.ak-dots { display: flex; gap: 6px; } .ak-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--a-line); }
.ak-url { flex: 1 1 auto; min-width: 0; padding: 5px 12px; border-radius: 999px; background: var(--a-card); color: var(--a-muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ak-flag { flex: 0 0 auto; padding: 4px 10px; border-radius: 999px; background: var(--lime); color: #0a0a0f; font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.ak-body { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 560px; }
.ak-side { padding: 10px; border-bottom: 1px solid var(--a-line); background: var(--a-bg2); min-width: 0; }
.ak-side-h { display: none; }
.ak-side ul { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ak-side ul::-webkit-scrollbar { display: none; }
.ak-side button { display: flex; align-items: center; gap: 8px; white-space: nowrap; min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: var(--a-muted); font: inherit; font-size: 14px; cursor: pointer; }
.ak-side button[aria-current='true'] { background: var(--a-accent); color: var(--a-on); font-weight: 700; }
.ak-side button em { font-style: normal; font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 999px; background: var(--a-card); color: var(--a-ink); }
.ak-side button[aria-current='true'] em { background: rgba(255, 255, 255, .22); color: var(--a-on); }
.ak-main { min-width: 0; padding: 18px 16px 22px; display: grid; gap: 16px; align-content: start; outline: none; }
@media (min-width: 920px) {
  .ak-body { grid-template-columns: 250px minmax(0, 1fr); }
  .ak-side { border-bottom: 0; border-right: 1px solid var(--a-line); padding: 16px 12px; }
  .ak-side-h { display: block; padding: 0 10px 10px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--a-muted); }
  .ak-side ul { flex-direction: column; overflow: visible; }
  .ak-side button { width: 100%; justify-content: space-between; text-align: left; }
  .ak-main { padding: 24px 26px 28px; }
}

/* екран */
.s-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 16px; }
.s-head h3 { font-size: clamp(22px, 3vw, 30px); font-weight: 900; letter-spacing: -.02em; }
.s-head p { color: var(--a-muted); font-size: 14px; max-width: 560px; }
.s-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.s-btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--a-line); background: transparent; color: var(--a-ink); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.s-btn.pri { background: var(--a-accent); border-color: var(--a-accent); color: var(--a-on); }
.s-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); align-items: start; }
.s-box { min-width: 0; display: grid; gap: 10px; padding: 16px; border-radius: 16px; background: var(--a-bg2); border: 1px solid var(--a-line); }
.s-box > b:first-child { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--a-muted); }
.s-kpis { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.s-kpi { padding: 14px; border-radius: 14px; background: var(--a-bg2); border: 1px solid var(--a-line); display: grid; gap: 2px; }
.s-kpi span { font-size: 12px; color: var(--a-muted); }
.s-kpi strong { font-size: clamp(20px, 2.6vw, 26px); font-weight: 900; letter-spacing: -.01em; }
.s-kpi small { font-size: 12px; color: var(--a-ok); }
.s-kpi small.down { color: var(--a-bad); }
.s-scroll { overflow-x: auto; border-radius: 14px; border: 1px solid var(--a-line); background: var(--a-bg2); }
.s-t { width: 100%; border-collapse: collapse; font-size: 14px; }
.s-t th, .s-t td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--a-line); white-space: nowrap; }
.s-t th { font-size: 12px; font-weight: 700; color: var(--a-muted); background: var(--a-card); }
.s-t tr:last-child td { border-bottom: 0; }
.s-t tbody tr { transition: background .2s; cursor: default; }
.s-t tbody tr:hover { background: var(--a-card); }
.s-t .r { text-align: right; }
.s-t .m { color: var(--a-muted); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--a-card); color: var(--a-muted); white-space: nowrap; }
.chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.ok { color: var(--a-ok); } .chip.warn { color: var(--a-warn); } .chip.bad { color: var(--a-bad); } .chip.acc { color: var(--a-accent); }
.ak-win[data-theme='fs-stone'] .chip.acc { color: #3ccfdc; }
.s-board { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory; }
.s-col { flex: 0 0 min(230px, 78vw); scroll-snap-align: start; display: grid; gap: 8px; align-content: start; padding: 10px; border-radius: 14px; background: var(--a-bg2); border: 1px solid var(--a-line); }
.s-col > b { display: flex; justify-content: space-between; font-size: 13px; }
.s-col > b span { color: var(--a-muted); }
.s-card { display: grid; gap: 4px; padding: 11px 12px; border-radius: 12px; background: var(--a-card); font-size: 14px; }
.s-card span { color: var(--a-muted); font-size: 13px; overflow-wrap: anywhere; }
.s-bars { display: flex; align-items: flex-end; gap: 8px; height: 150px; padding: 8px 4px 0; }
.s-bars div { flex: 1 1 0; display: grid; gap: 4px; justify-items: center; align-self: stretch; grid-template-rows: 1fr auto; }
.s-bars i { align-self: end; width: 100%; max-width: 36px; border-radius: 6px 6px 2px 2px; background: var(--a-accent); opacity: .85; }
.s-bars div:last-child i { opacity: 1; }
.s-bars small { font-size: 11px; color: var(--a-muted); }
.s-seg { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--a-line); font-size: 14px; }
.s-seg:last-child { border-bottom: 0; }
.s-seg-b { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--a-card); }
.s-seg-b button { min-height: 32px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--a-muted); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.s-seg-b button[aria-pressed='true'] { background: var(--a-accent); color: var(--a-on); }
.s-steps { display: grid; gap: 8px; }
.s-steps li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--a-muted); }
.s-steps li i { flex: 0 0 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--a-card); font-style: normal; font-size: 12px; font-weight: 800; }
.s-steps li.done { color: var(--a-ink); } .s-steps li.done i { background: var(--a-accent); color: var(--a-on); }
.s-steps li.now i { box-shadow: 0 0 0 2px var(--a-accent) inset; color: var(--a-ink); }
.s-tg { justify-self: start; max-width: 420px; display: grid; gap: 4px; padding: 12px 14px; border-radius: 16px 16px 16px 4px; background: #2b5278; color: #fff; font-size: 14px; }
.ak-win[data-theme='famibud'] .s-tg { background: #e1f1fb; color: #16232c; }
.s-tg small { font-size: 11px; opacity: .8; font-weight: 700; }
.s-tg code { font: 600 13px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, .14); }
.ak-win[data-theme='famibud'] .s-tg code { background: rgba(22, 35, 44, .08); }
.s-list { display: grid; gap: 8px; }
.s-list li { position: relative; padding-left: 18px; font-size: 14px; color: var(--a-muted); }
.s-list li::before { content: ''; position: absolute; left: 2px; top: .6em; width: 7px; height: 7px; border-radius: 2px; background: var(--a-accent); }
.s-bar { height: 8px; border-radius: 8px; background: var(--a-card); overflow: hidden; } .s-bar i { display: block; height: 100%; background: var(--a-accent); }
.s-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; font-size: 14px; }
.s-row span { color: var(--a-muted); }
.s-can { display: grid; gap: 4px; }
.s-ver { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; padding: 8px 10px; border-radius: 10px; background: var(--a-card); font-size: 13px; }
.s-ver span { color: var(--a-muted); }
.s-note { padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--a-line); color: var(--a-muted); font-size: 13px; }
.s-can-h { display: flex; flex-wrap: wrap; gap: 6px; }

/* перелік можливостей */
.ak-feat { padding: clamp(40px, 7vw, 80px) 0 0; display: grid; gap: 18px; }
.ak-feat h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 900; letter-spacing: -.02em; }
.ak-feat h2 span { color: var(--lime); }
.ak-groups { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
.ak-g { padding: 18px; border-radius: 18px; background: var(--bg2); border: 1px solid var(--soft); display: grid; gap: 10px; align-content: start; }
.ak-g h3 { font-size: 16px; font-weight: 800; }
.ak-g ul { display: grid; gap: 7px; }
.ak-g li { position: relative; padding-left: 18px; font-size: 14px; color: var(--muted); }
.ak-g li::before { content: ''; position: absolute; left: 2px; top: .58em; width: 7px; height: 7px; border-radius: 2px; background: var(--lime); }
.ak-safe { margin-top: 18px; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.ak-safe div { display: grid; gap: 2px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--soft); }
.ak-safe b { color: var(--lime); font-size: 14px; } .ak-safe span { color: var(--muted); font-size: 14px; }
.ak-end { margin: clamp(48px, 8vw, 96px) auto 0; padding: clamp(28px, 5vw, 48px); border-radius: 28px; background: var(--violet); color: #fff; display: grid; gap: 12px; justify-items: start; }
.ak-end h2 { font-size: clamp(26px, 4vw, 42px); font-weight: 900; letter-spacing: -.02em; }
.ak-end p { max-width: 620px; opacity: .92; }
.ak-end a:not(.ak-btn) { color: var(--lime); }
.ak-btn { display: inline-flex; align-items: center; min-height: 50px; padding: 0 22px; border-radius: 14px; background: var(--lime); color: #0a0a0f; font-weight: 800; text-decoration: none; }
.ak-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding: 28px 0 40px; color: var(--muted); font-size: 13px; }
.ak-toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; max-width: calc(100% - 32px); padding: 12px 16px; border-radius: 14px; background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 700; opacity: 0; transform: translate(-50%, 10px); transition: opacity .25s, transform .25s; pointer-events: none; }
.ak-toast.on { opacity: 1; transform: translate(-50%, 0); }
.ak-main.swap { animation: ak-in .3s cubic-bezier(.2, .8, .2, 1); }
@keyframes ak-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .ak-main.swap { animation: none; } * { transition: none !important; } }
