/* ============================================================================
   CHECKLIST — premium design system
   Light base · Tiffany-blue accents (#0ABAB5) · Apple-grade spacing & type
   ============================================================================ */

:root {
  /* Surfaces — light base */
  --bg: #ffffff;
  --bg-2: #f3f7f7;
  --surface: rgba(8, 40, 38, 0.025);
  --surface-2: rgba(8, 40, 38, 0.05);
  --surface-3: rgba(8, 40, 38, 0.08);
  --border: rgba(8, 40, 38, 0.10);
  --border-strong: rgba(8, 40, 38, 0.18);

  /* Text */
  --text: #15201f;
  --text-2: #586366;
  --text-3: #8a9498;
  --muted: #586366;   /* вторинний текст (підписи/підказки) — раніше не був оголошений → виходив темним */

  /* Tiffany accent (variable names kept as --gold-* for compatibility) */
  --gold-1: #5fded6;
  --gold-2: #0ABAB5;
  --gold-3: #0a8f89;
  --gold-deep: #07726d;
  --gold-grad: linear-gradient(135deg, #5fded6 0%, #0ABAB5 55%, #0a8f89 100%);
  --gold-soft: color-mix(in srgb, var(--gold-2) 10%, transparent);
  --gold-line: rgba(10, 186, 181, 0.32);

  /* Semantic */
  --green: #16a34a;
  --green-soft: rgba(22, 163, 74, 0.12);
  --red: #e5484d;
  --red-soft: rgba(229, 72, 77, 0.11);
  --blue: #0ABAB5;
  --blue-soft: rgba(10, 186, 181, 0.12);

  /* Geometry */
  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 9px;
  --maxw: 1140px;
  --nav-h: 64px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(8, 40, 38, 0.06);
  --shadow: 0 18px 50px -16px rgba(8, 60, 57, 0.16);
  --shadow-gold: 0 18px 60px -18px rgba(10, 186, 181, 0.40);

  --font: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Inter",
    "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, "JetBrains Mono", "Menlo", "Consolas", monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* clip (не hidden): прибирає горизонтальний скрол, але НЕ робить <body> скрол-контейнером —
     інакше viewport не скролиться → ламались якорі #hash і window.scrollY (тінь навбару) */
  overflow-x: clip;
}

/* Ambient background glow — warm, subtle, fixed */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 520px at 50% -8%, color-mix(in srgb, var(--gold-2) 10%, transparent), transparent 70%),
    radial-gradient(700px 500px at 90% 8%, color-mix(in srgb, var(--gold-2) 5%, transparent), transparent 72%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  pointer-events: none;
}

a { color: var(--gold-3); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--gold-2); }

img { max-width: 100%; display: block; }

::selection { background: color-mix(in srgb, var(--gold-2) 22%, transparent); color: #08302e; }

/* ── Layout ──────────────────────────────────────────────────────────────── */

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 720px; }

.section { padding: clamp(64px, 11vw, 132px) 0; }
.section-tight { padding: clamp(48px, 7vw, 88px) 0; }

main { min-height: 60vh; }

/* ── Typography ──────────────────────────────────────────────────────────── */

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; }

.display {
  font-size: clamp(2.7rem, 1.4rem + 5.4vw, 5.1rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.02;
}
.h-section { font-size: clamp(2rem, 1.3rem + 2.7vw, 3.2rem); letter-spacing: -0.035em; }
.h-card { font-size: 1.35rem; letter-spacing: -0.025em; }

.lead {
  font-size: clamp(1.1rem, 1rem + 0.7vw, 1.42rem);
  color: var(--text-2);
  line-height: 1.5;
  letter-spacing: -0.015em;
  font-weight: 400;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: 18px;
}

.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.center { text-align: center; }
.balance { text-wrap: balance; }

/* ── Navigation ──────────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.88);
  border-bottom-color: var(--border);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  white-space: nowrap;   /* назва закладу — завжди один рядок */
  flex-shrink: 0;        /* бренд не стискається й не переноситься */
}
/* довгі назви закладів не ламають верстку — обрізаємо трикрапкою */
.brand b { display: inline-block; max-width: 240px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.brand:hover { color: var(--text); }
.brand .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold-grad);
  box-shadow: 0 0 12px 1px color-mix(in srgb, var(--gold-2) 50%, transparent);
}
.brand b { font-weight: 600; letter-spacing: 0.14em; }

.nav-links { display: flex; align-items: center; gap: 14px; flex-wrap: nowrap; min-width: 0; }
.nav-links a:not(.btn) {
  color: var(--text-2);
  font-size: 0.95rem;
  font-weight: 450;
  letter-spacing: -0.01em;
  white-space: nowrap;   /* «Чек-листи» та інші пункти не ламаються на 2 рядки */
  flex-shrink: 0;        /* кожен пункт тримає своє місце */
}
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-links .btn { white-space: nowrap; flex-shrink: 0; }
/* email — найдовший змінний елемент: лише він стискається й обрізається трикрапкою */
.nav-email { color: var(--text-3); font-size: 0.9rem; white-space: nowrap;
  max-width: 120px; overflow: hidden; text-overflow: ellipsis; flex-shrink: 1; min-width: 0; }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 40px; height: 40px; padding: 8px;
  color: var(--text);
}
.nav-toggle svg { width: 24px; height: 24px; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 550;
  letter-spacing: -0.01em;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .22s ease, background .2s ease,
    border-color .2s ease, color .2s ease, opacity .2s ease;
}
/* атрибут hidden має ховати кнопку — інакше .btn{display:inline-flex} перебиває [hidden] і вона висить видимою */
.btn[hidden] { display: none !important; }
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(0) scale(0.985); }

.btn-primary {
  background: var(--gold-grad);
  /* origin МАЄ йти ПІСЛЯ background-shorthand (інакше shorthand скидає його на padding-box
     і градієнт не доходить до краю → «пікселі невпопад» на закругленнях) */
  background-origin: border-box;
  color: #ffffff;
  font-weight: 600;
  /* ДВОЛОЙНА заземлена тінь: тісний контактний шар «притискає» тінь до низу кнопки
     (інакше однолойна читається відірвано/«низько») + м'який ambient.
     Обидва шари мають spread ≥ blur/2 → блюр НЕ виходить за боки (краї чисті).
     Колір на --gold-deep → адаптується під редактор бренд-кольору; для дефолтного
     Tiffany = rgba(7,114,109,…) піксель-в-піксель */
  box-shadow: 0 2px 5px -3px color-mix(in srgb, var(--gold-deep) 30%, transparent),
              0 7px 16px -9px color-mix(in srgb, var(--gold-deep) 30%, transparent);
}
.btn-primary:hover {
  color: #ffffff;
  transform: translateY(-1.5px);
  box-shadow: 0 3px 7px -3px color-mix(in srgb, var(--gold-deep) 34%, transparent),
              0 12px 24px -12px color-mix(in srgb, var(--gold-deep) 38%, transparent);
}

.btn-ghost {
  background: var(--surface-2);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { background: var(--surface-3); border-color: var(--gold-line); color: var(--text); }

.btn-outline { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn-outline:hover { border-color: var(--gold-line); color: var(--text); background: var(--gold-soft); }

.btn-success { background: var(--green); color: #ffffff; font-weight: 600; }
.btn-success:hover { color: #ffffff; transform: translateY(-1.5px); box-shadow: 0 12px 28px -10px rgba(22,163,74,.45); }
.btn-danger { background: transparent; border-color: rgba(229,72,77,.4); color: var(--red); }
.btn-danger:hover { background: var(--red-soft); border-color: var(--red); color: #b4232a; }

.btn-lg { padding: 15px 30px; font-size: 1.05rem; }
.btn-sm { padding: 8px 15px; font-size: 0.86rem; }
.btn-block { width: 100%; }

.btn svg { width: 18px; height: 18px; }

/* ── Cards & surfaces ────────────────────────────────────────────────────── */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.card-pad-lg { padding: 34px; }

.surface-link { transition: border-color .2s ease, transform .2s ease, background .2s ease; }
.surface-link:hover {
  border-color: var(--gold-line);
  background: var(--surface-2);
  transform: translateY(-2px);
}

.divider { height: 1px; background: var(--border); border: 0; margin: 0; }

/* ── Hero ────────────────────────────────────────────────────────────────── */

.hero { position: relative; padding: clamp(72px, 12vw, 150px) 0 clamp(56px, 9vw, 110px); text-align: center; }
.hero .container { position: relative; z-index: 1; }
.hero .lead { max-width: 620px; margin: 24px auto 0; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 38px; }
.hero-note { margin-top: 18px; font-size: 0.9rem; color: var(--text-3); }

.hero-visual {
  margin: clamp(48px, 7vw, 84px) auto 0;
  max-width: 920px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* device mockup of staff dashboard */
.mock {
  padding: 18px;
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 14px;
  text-align: left;
}
.mock-col-head { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--text-3); margin-bottom: 10px; }
.mock-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 13px 15px; margin-bottom: 10px; }
.mock-card .t { font-weight: 600; font-size: .95rem; }
.mock-card .s { font-size: .82rem; color: var(--text-2); margin-top: 3px; }
.mock-card.hot { border-color: var(--gold-line); box-shadow: 0 0 0 1px var(--gold-soft) inset; }

/* ── Section header ──────────────────────────────────────────────────────── */

.sec-head { max-width: 680px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.sec-head .lead { margin-top: 16px; }

/* ── Feature grid ────────────────────────────────────────────────────────── */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .25s ease, transform .25s ease, background .25s ease;
}
.feature:hover { border-color: var(--gold-line); transform: translateY(-3px); background: var(--surface-2); }
.icon-chip {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  margin-bottom: 18px;
}
.icon-chip svg { width: 23px; height: 23px; stroke: var(--gold-1); }
.feature h3 { font-size: 1.14rem; margin-bottom: 8px; letter-spacing: -0.02em; }
.feature p { margin: 0; color: var(--text-2); font-size: 0.96rem; line-height: 1.5; }

/* ── Steps ───────────────────────────────────────────────────────────────── */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding-top: 18px; border-top: 1px solid var(--border); }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.05em;
  color: var(--gold-2);
  display: block; margin-bottom: 12px;
}
.step h3 { font-size: 1.08rem; margin-bottom: 7px; }
.step p { margin: 0; color: var(--text-2); font-size: 0.93rem; }

/* ── Pricing ─────────────────────────────────────────────────────────────── */

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.price {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
}
.price.featured {
  border-color: var(--gold-line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--gold-2) 7%, transparent), var(--surface));
  box-shadow: var(--shadow-gold);
}
.price-badge {
  position: absolute; top: 18px; right: 18px;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: #ffffff; background: var(--gold-grad);
  padding: 4px 11px; border-radius: 999px;
}
.price h3 { font-size: 1.15rem; margin-bottom: 6px; }
.price .tier-sub { color: var(--text-2); font-size: 0.9rem; min-height: 40px; }
.price .amount { display: flex; align-items: baseline; gap: 4px; margin: 14px 0 20px; }
.price .amount .num { font-size: 2.7rem; font-weight: 600; letter-spacing: -0.04em; }
.price .amount .per { color: var(--text-3); font-size: 0.95rem; }
.price ul { list-style: none; padding: 0; margin: 0 0 24px; }
.price ul li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; font-size: 0.94rem; color: var(--text-2); }
.price ul li svg { width: 17px; height: 17px; stroke: var(--gold-2); flex: none; margin-top: 3px; }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */

.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 22px 4px;
}
.faq summary {
  list-style: none; cursor: pointer;
  font-size: 1.08rem; font-weight: 550; letter-spacing: -0.02em;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { transition: transform .25s ease; color: var(--gold-2); flex: none; }
.faq details[open] summary .chev { transform: rotate(45deg); }
.faq p { color: var(--text-2); margin: 14px 0 0; font-size: 0.98rem; line-height: 1.6; }

/* ── CTA band ────────────────────────────────────────────────────────────── */

.cta-band {
  text-align: center;
  background: linear-gradient(180deg, color-mix(in srgb, var(--gold-2) 8%, transparent), var(--surface));
  border: 1px solid var(--gold-line);
  border-radius: 28px;
  padding: clamp(48px, 7vw, 80px) 28px;
}

/* ── Forms ───────────────────────────────────────────────────────────────── */

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.88rem; font-weight: 500; color: var(--text-2); margin-bottom: 8px; }
.input, input[type=text], input[type=email], input[type=password], input[type=number], textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 13px 15px;
  border-radius: var(--radius-xs);
  font-family: inherit;
  font-size: 1rem;
  letter-spacing: -0.01em;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.input::placeholder, input::placeholder { color: var(--text-3); }
.input:focus, input:focus, textarea:focus {
  outline: none;
  border-color: var(--gold-line);
  box-shadow: 0 0 0 4px var(--gold-soft);
  background: var(--bg-2);
}
.input-mono { font-family: var(--mono); font-size: 0.86rem; letter-spacing: 0; }
.field small { display: block; margin-top: 8px; font-size: 0.83rem; color: var(--text-3); line-height: 1.5; }
.check-row { display: flex; align-items: center; gap: 11px; cursor: pointer; font-size: .94rem; color: var(--text); }
.check-row input[type=checkbox] { width: 19px; height: 19px; flex: none; accent-color: var(--gold-2); cursor: pointer; }

/* ── Auth ────────────────────────────────────────────────────────────────── */

.auth-wrap { display: flex; align-items: center; justify-content: center; padding: clamp(40px, 9vw, 96px) 0; }
.auth-back {
  display: inline-flex; align-items: center; gap: 4px; margin-bottom: 14px;
  font-size: .9rem; font-weight: 500; color: var(--text-3); text-decoration: none;
  transition: color .15s;
}
.auth-back:hover { color: var(--text); }
.auth-card {
  width: 100%; max-width: 430px; margin: 0 auto;   /* центрувати в ширшому контейнері (720px) */
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 38px 34px;
  box-shadow: var(--shadow);
}
.auth-card h1 { font-size: 1.7rem; letter-spacing: -0.03em; }
.auth-card .sub { color: var(--text-2); margin: 8px 0 26px; font-size: 0.98rem; }
.auth-foot { text-align: center; margin-top: 22px; font-size: 0.92rem; color: var(--text-3); }

/* ── Alerts ──────────────────────────────────────────────────────────────── */

.alert { padding: 13px 16px; border-radius: var(--radius-xs); margin-bottom: 18px; font-size: 0.92rem; line-height: 1.5; }
.alert-error { color: #b4232a; background: var(--red-soft); border: 1px solid rgba(229,72,77,.3); }
.alert-ok { color: #15803d; background: var(--green-soft); border: 1px solid rgba(22,163,74,.3); }
.alert-info { color: var(--gold-deep); background: var(--blue-soft); border: 1px solid var(--gold-line); }

/* ── Status pill ─────────────────────────────────────────────────────────── */

.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 13px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 550; letter-spacing: -0.005em;
}
.pill .led { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.pill.running { background: var(--green-soft); color: #15803d; }
.pill.running .led { background: var(--green); box-shadow: 0 0 8px 1px rgba(22,163,74,.6); }
.pill.stopped { background: var(--surface-3); color: var(--text-2); }
.pill.stopped .led { background: var(--text-3); }
.pill.error { background: var(--red-soft); color: #b4232a; }
.pill.error .led { background: var(--red); }
.pill.created { background: var(--blue-soft); color: var(--gold-deep); }
.pill.created .led { background: var(--blue); }

/* ── Page header (app) ───────────────────────────────────────────────────── */

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.page-head h1 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem); letter-spacing: -0.035em; }
.page-head .sub { color: var(--text-2); margin-top: 6px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--text-3); font-size: 0.9rem; margin-bottom: 20px; }
.back-link:hover { color: var(--text); }
.back-link svg { width: 16px; height: 16px; }

/* ── Venue grid (dashboard) ──────────────────────────────────────────────── */

.venue-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.venue {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  color: var(--text);
}
.venue:hover { color: var(--text); }
.venue .venue-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.venue h3 { font-size: 1.22rem; letter-spacing: -0.025em; }
.venue .meta { color: var(--text-3); font-size: 0.86rem; margin-top: 8px; display: flex; gap: 7px; flex-wrap: wrap; align-items: center; }
.venue .meta .sep { opacity: .5; }
/* venue card — бізнес-пульс рядок */
.venue-stats { margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--border);
  display: flex; gap: 18px; flex-wrap: wrap; align-items: baseline; }
.venue-stats .vs { display: flex; gap: 6px; align-items: baseline; font-size: .85rem; color: var(--text-3); }
.venue-stats .vs b { font-size: 1.04rem; color: var(--text); font-weight: 700; }
.venue-stats .vs.star b { color: var(--gold-2); }
.venue-stats .vs.muted-stat { color: var(--text-3); font-style: italic; }

/* KPI-картки (Огляд закладу + зведення на дашборді) */
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 12px; margin: 0 0 22px; }
.kpi { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); padding: 15px 16px; }
.kpi .v { font-size: 1.7rem; font-weight: 700; letter-spacing: -.02em; color: var(--text); line-height: 1.05; }
.kpi .v.gold { color: var(--gold-2); }
.kpi .v .u { font-size: .9rem; font-weight: 600; color: var(--text-3); margin-left: 2px; }
.kpi .k { font-size: .77rem; color: var(--text-3); margin-top: 5px; }
.kpi.accent { border-color: var(--gold-line); background: var(--gold-soft); }

/* спойлер для чутливих даних (секретне слово тощо) */
details.reveal > summary { cursor: pointer; color: var(--gold-2); font-size: .88rem; font-weight: 600;
  list-style: none; display: inline-flex; align-items: center; gap: 7px; user-select: none; }
details.reveal > summary::-webkit-details-marker { display: none; }
details.reveal > summary::before { content: "›"; display: inline-block; transition: transform .2s ease; }
details.reveal[open] > summary::before { transform: rotate(90deg); }
.venue-add {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  text-align: center; min-height: 160px;
  border: 1px dashed var(--border-strong); border-radius: var(--radius);
  color: var(--text-2);
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.venue-add:hover { border-color: var(--gold-line); color: var(--text); background: var(--gold-soft); }
.venue-add .plus { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border-strong); }
.venue-add .plus svg { width: 22px; height: 22px; }

/* empty state */
.empty {
  text-align: center; padding: clamp(48px, 8vw, 88px) 24px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
}
.empty .empty-icon { width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); border: 1px solid var(--gold-line); }
.empty .empty-icon svg { width: 30px; height: 30px; stroke: var(--gold-1); }
.empty h2 { font-size: 1.5rem; margin-bottom: 10px; }
.empty p { color: var(--text-2); max-width: 420px; margin: 0 auto 26px; }

/* ── Code / token boxes ──────────────────────────────────────────────────── */

.codebox {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-2); border: 1px solid var(--border-strong);
  border-radius: var(--radius-xs); padding: 12px 14px;
  font-family: var(--mono); font-size: 0.86rem; color: var(--gold-1);
  word-break: break-all;
}
.codebox code { flex: 1; min-width: 0; background: none; padding: 0; color: inherit; }
.copy-btn {
  flex: none; background: var(--surface-2); border: 1px solid var(--border-strong);
  color: var(--text-2); border-radius: 7px; padding: 6px 10px; cursor: pointer;
  font-family: var(--font); font-size: 0.78rem; transition: all .18s ease;
}
.copy-btn:hover { color: var(--text); border-color: var(--gold-line); }
.copy-btn.copied { color: var(--green); border-color: rgba(74,222,128,.4); }

code {
  font-family: var(--mono); font-size: 0.86em;
  background: var(--surface-2); color: var(--gold-1);
  padding: 2px 6px; border-radius: 5px;
}

/* terminal log */
.terminal {
  background: #eef3f3; border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden;
}
.terminal-bar { display: flex; align-items: center; gap: 7px; padding: 11px 15px; border-bottom: 1px solid var(--border); }
.terminal-bar .tdot { width: 11px; height: 11px; border-radius: 50%; background: var(--surface-3); }
.terminal-bar .tlabel { margin-left: 8px; font-size: 0.8rem; color: var(--text-3); font-family: var(--mono); }
.terminal pre {
  margin: 0; padding: 16px; max-height: 320px; overflow: auto;
  font-family: var(--mono); font-size: 0.78rem; line-height: 1.6; color: var(--text-2);
  white-space: pre-wrap; word-break: break-word;
}

/* ── Tabs (tenant sections IA) ───────────────────────────────────────────── */

.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin-bottom: 28px; flex-wrap: wrap; }
.tab {
  padding: 11px 16px; border-radius: 10px 10px 0 0; font-size: 0.94rem; font-weight: 500;
  color: var(--text-2); border-bottom: 2px solid transparent; margin-bottom: -1px;
  display: inline-flex; align-items: center; gap: 8px;
}
.tab.active { color: var(--text); border-bottom-color: var(--gold-2); }
.tab.soon { color: var(--text-3); cursor: default; }
.tab .soon-tag { font-size: 0.62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-3); border: 1px solid var(--gold-line); border-radius: 999px; padding: 1px 7px; }

/* info rows */
.info-grid { display: grid; gap: 18px; }
@media (min-width: 760px) { .info-grid.cols-2 { grid-template-columns: 1fr 1fr; } }

.stack-sm > * + * { margin-top: 12px; }
.stack > * + * { margin-top: 20px; }

/* ── Staff list (Кальянщики) ─────────────────────────────────────────────── */
.s-list > * + * { margin-top: 10px; }
.s-row {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 14px 16px; border: 1px solid var(--border);
  border-radius: 12px; background: var(--surface);
}
.s-num {
  width: 36px; height: 36px; flex: none; display: grid; place-items: center;
  border-radius: 9px; background: var(--surface-2); border: 1px solid var(--border-strong);
  font-weight: 600; font-size: 0.92rem; color: var(--gold-1);
}
.s-num.admin { color: var(--text-3); }
.s-info { flex: 1; min-width: 150px; }
.s-info .nm { font-weight: 550; }
.s-info .meta { color: var(--text-3); font-size: 0.83rem; margin-top: 3px; display: flex; gap: 10px; flex-wrap: wrap; }
.s-actions { display: flex; gap: 8px; flex: none; flex-wrap: wrap; align-items: center; }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 0.72rem; font-weight: 550; padding: 4px 10px; border-radius: 999px; }
.tag.admin { background: var(--gold-soft); color: var(--gold-1); border: 1px solid var(--gold-line); }
.tag.kal { background: var(--surface-3); color: var(--text-2); }
.tag.active { background: var(--green-soft); color: #86efac; }
.code-flash { border-color: var(--gold-line); background: linear-gradient(180deg, color-mix(in srgb, var(--gold-2) 8%, transparent), var(--surface)); }

/* ── Menu manager (Меню) ─────────────────────────────────────────────────── */
.menu-intro { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 13px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); font-size: 0.92rem; color: var(--text-2); margin-bottom: 18px; }

.dir-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }
.dir-pill { font-size: 0.86rem; font-weight: 500; color: var(--text-2); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px; transition: all .18s ease; white-space: nowrap; }
.dir-pill:hover { color: var(--text); border-color: var(--gold-line); background: var(--gold-soft); }
.dir-pill-add { display: inline-flex; align-items: center; gap: 5px; color: var(--gold-1);
  border-color: var(--gold-line); border-style: dashed; background: transparent; }
.dir-pill-add:hover { background: var(--gold-soft); color: var(--gold-1); border-style: solid; }
.dir-pill-add svg { width: 14px; height: 14px; }

.dir-list { display: flex; flex-direction: column; gap: 10px; max-width: 560px; }
.dir-row { border: 1px solid var(--border); border-radius: 13px; background: var(--surface); padding: 13px 16px; }
.dir-row-view { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.dir-row.editing .dir-row-view { display: none; }
.dir-row-edit { display: none; flex-direction: column; gap: 9px; }
.dir-row.editing .dir-row-edit { display: flex; }
.dir-edit-actions { display: flex; gap: 8px; margin-top: 2px; }
.icon-btn { width: 34px; height: 34px; flex: none; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--border); border-radius: 9px; background: var(--surface-2); color: var(--text-2);
  transition: color .15s, background .15s, border-color .15s; }
.icon-btn:hover { color: var(--gold-1); border-color: var(--gold-line); background: var(--gold-soft); }
.icon-btn svg { width: 16px; height: 16px; }
.dir-row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dir-row-label { font-weight: 550; font-size: 1.02rem; letter-spacing: -0.015em; }
.dir-row-count { font-size: 0.8rem; color: var(--text-3); }
.dir-row-tag { flex: none; font-size: 0.72rem; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; }
.dir-row.is-hidden { opacity: .5; }
.dir-row-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.dir-hidden-tag { font-size: .66rem; color: var(--text-3); border: 1px solid var(--border);
  border-radius: 999px; padding: 2px 8px; vertical-align: middle; text-transform: uppercase; letter-spacing: .04em; }

.menu-section { margin-bottom: 38px; scroll-margin-top: 84px; }
.menu-section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.menu-section-head h3 { font-size: 1.3rem; letter-spacing: -0.03em; white-space: nowrap; }
.menu-section-head .count { font-size: 0.78rem; font-weight: 500; color: var(--gold-2);
  background: var(--gold-soft); border: 1px solid var(--gold-line); border-radius: 999px; padding: 2px 10px; }
.menu-section-head::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 14px; }
.menu-card { display: flex; flex-direction: column; border: 1px solid var(--border);
  border-radius: 14px; background: var(--surface); overflow: hidden;
  transition: border-color .2s, opacity .25s; }
.menu-card:hover { border-color: var(--gold-line); }
.menu-card.is-custom { border-color: var(--gold-line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--gold-2) 6%, transparent), var(--surface)); }
.mc-body { display: block; padding: 16px 16px 4px; color: var(--text); flex: 1; }
.mc-body:hover { color: var(--text); background: var(--surface-2); }
.mc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.mc-name { font-weight: 550; font-size: 1.06rem; letter-spacing: -0.02em; }
.mc-badge { flex: none; font-size: 0.62rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  border-radius: 999px; padding: 3px 8px; }
.mc-badge.custom { color: #ffffff; background: var(--gold-grad); }
.mc-badge.edited { color: var(--gold-1); background: var(--gold-soft); border: 1px solid var(--gold-line); }
.mc-short { color: var(--text-3); font-size: 0.84rem; line-height: 1.45; margin: 7px 0 0; min-height: 2.4em; }
.mc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 16px 13px; }
.mc-foot-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mc-chip { flex: none; font-size: 0.68rem; color: var(--text-2); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 999px; padding: 3px 8px; white-space: nowrap; }
.mc-grip { flex: none; display: inline-grid; place-items: center; width: 26px; height: 24px; margin-left: -5px;
  color: var(--text-3); cursor: grab; border-radius: 7px; transition: color .15s, background .15s; }
.mc-grip:hover { color: var(--gold-1); background: var(--surface-2); }
.mc-grip:active { cursor: grabbing; }
.mc-grip svg { width: 17px; height: 17px; pointer-events: none; }
.menu-card.dragging { opacity: 0.35; border-color: var(--gold-line); }
.menu-card:has(.switch:not(:checked)) { opacity: 0.55; }
.menu-card:has(.switch:not(:checked)):hover { opacity: 0.8; }

.switch { appearance: none; -webkit-appearance: none; flex: none; width: 42px; height: 24px; border-radius: 999px;
  background: var(--surface-3); border: 1px solid var(--border-strong); position: relative; cursor: pointer;
  transition: background .2s, border-color .2s; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px;
  border-radius: 50%; background: #f4f4f6; transition: transform .2s; }
/* background-origin ПІСЛЯ градієнт-shorthand — інакше градієнт не заходить під рамку → бліда кромка */
.switch:checked { background: var(--gold-grad); background-origin: border-box; background-clip: border-box;
  border: 1px solid transparent; }
.switch:checked::after { transform: translateX(18px); background: #ffffff; }
.menu-card.busy { pointer-events: none; opacity: .7; }

.menu-card-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  min-height: 130px; border: 1px dashed var(--border-strong); border-radius: 14px; color: var(--text-2);
  text-align: center; font-size: 0.92rem; font-weight: 500;
  transition: border-color .2s, color .2s, background .2s; }
.menu-card-add:hover { border-color: var(--gold-line); color: var(--text); background: var(--gold-soft); }
.menu-card-add .mca-plus { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border-strong); }
.menu-card-add .mca-plus svg { width: 20px; height: 20px; }
.menu-card-add:hover .mca-plus { border-color: var(--gold-line); }

/* recipe editor (Склад картки) */
.mix-block { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); padding: 16px; margin-bottom: 14px; }
.mix-top { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.mix-field { display: flex; flex-direction: column; gap: 6px; }
.mix-field.grow { flex: 2; min-width: 200px; }
.mix-field.grow-1 { flex: 1; min-width: 150px; }
.mix-field label { font-size: 0.82rem; color: var(--text-2); font-weight: 500; }
.accents-head { font-size: 0.82rem; color: var(--text-2); font-weight: 500; margin: 16px 0 8px; }
.accents { margin: 0 0 10px; display: flex; flex-direction: column; gap: 8px; }
.accent-row { display: flex; gap: 8px; align-items: center; }
.accent-row .accent-label { flex: 1; }
.accent-row .acc-del { flex: none; }

/* ── Footer ──────────────────────────────────────────────────────────────── */

.footer { border-top: 1px solid var(--border); padding: 48px 0 40px; margin-top: 40px; }
.footer .container { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer .brand { font-size: 1rem; }
.footer .foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer .foot-links a { color: var(--text-3); font-size: 0.9rem; }
.footer .foot-links a:hover { color: var(--text); }
.footer .copy { color: var(--text-3); font-size: 0.85rem; width: 100%; margin-top: 12px; }

/* ── Reveal animation ────────────────────────────────────────────────────── */

[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
[data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 880px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .mock { grid-template-columns: 1fr; }
  .mock-col:nth-child(n+2) { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: rgba(255,255,255,0.98);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 22px;
    transform: translateY(-130%);
    transition: transform .32s cubic-bezier(.3,.8,.3,1);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a:not(.btn) { padding: 10px 0; font-size: 1.02rem; }
  .nav-links .btn { width: 100%; margin-top: 6px; }
  .nav-email { display: none; }
  .nav-toggle { display: inline-flex; }
  .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  .page-head { align-items: flex-start; }
}

/* ── AI assistant widget ─────────────────────────────────────────────────── */
#ai-widget { position: fixed; right: 22px; bottom: 22px; z-index: 120; }
/* режим «Оцінка»: FAB асистента падає під редактор і не перехоплює кліки */
body.scoring-on #ai-widget { z-index: 40; pointer-events: none; opacity: .35; transition: opacity .2s; }

#ai-fab { display: inline-flex; align-items: center; gap: 9px; padding: 12px 18px 12px 14px;
  border-radius: 999px; border: 1px solid var(--gold-line); cursor: pointer;
  background: #fff;
  color: var(--text, #08302e); font-family: var(--font); font-size: .95rem; font-weight: 550;
  letter-spacing: -.01em; box-shadow: 0 14px 40px -12px rgba(8,60,57,.18), 0 0 0 0 color-mix(in srgb, var(--gold-2) 30%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: transform .18s, box-shadow .25s, border-color .25s; }
#ai-fab:hover { transform: translateY(-2px); border-color: var(--gold-2);
  box-shadow: 0 20px 50px -14px rgba(8,60,57,.28), var(--shadow-gold); }
#ai-fab .ai-spark { width: 21px; height: 21px; color: var(--gold-2); filter: drop-shadow(0 0 6px color-mix(in srgb, var(--gold-2) 50%, transparent)); }
#ai-widget.open #ai-fab { display: none; }

#ai-panel { position: fixed; right: 22px; bottom: 22px; width: 384px; max-width: calc(100vw - 32px);
  height: min(640px, calc(100vh - 44px)); display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--border-strong); border-radius: 20px; background: #ffffff;
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: 0 40px 90px -24px rgba(0,0,0,.85); }
#ai-panel[hidden] { display: none; }
#ai-panel:not([hidden]) { animation: aiIn .2s cubic-bezier(.22,1,.36,1) both; }
#ai-panel.ai-no-anim { animation: none; }
@keyframes aiIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

.ai-head { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 14px 13px 16px; border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, color-mix(in srgb, var(--gold-2) 6%, transparent), transparent); }
.ai-id { display: flex; align-items: center; gap: 11px; min-width: 0; }
.ai-orb { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold-grad); color: #ffffff; box-shadow: 0 4px 14px -4px color-mix(in srgb, var(--gold-2) 50%, transparent); }
.ai-orb svg { width: 20px; height: 20px; }
.ai-name { font-weight: 600; font-size: .98rem; letter-spacing: -.01em; }
.ai-sub { font-size: .76rem; color: var(--text-3); margin-top: 1px; }
#ai-close { width: 32px; height: 32px; flex: none; display: grid; place-items: center; cursor: pointer;
  border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--text-3);
  transition: color .15s, background .15s, border-color .15s; }
#ai-close:hover { color: var(--text); background: var(--surface-2); border-color: var(--border); }
#ai-close svg { width: 17px; height: 17px; }

.ai-log { flex: 1; overflow-y: auto; padding: 16px 14px 6px; display: flex; flex-direction: column; gap: 12px; }
.ai-log::-webkit-scrollbar { width: 8px; }
.ai-log::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 8px; }

.ai-msg { max-width: 86%; font-size: .9rem; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.ai-msg.bot { align-self: flex-start; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: 14px 14px 14px 5px; padding: 10px 13px; }
.ai-msg.user { align-self: flex-end; color: var(--gold-1); background: var(--gold-soft);
  border: 1px solid var(--gold-line); border-radius: 14px 14px 5px 14px; padding: 10px 13px; }

.ai-acts { align-self: flex-start; max-width: 92%; display: flex; flex-direction: column; gap: 6px; margin-top: -4px; }
.ai-act { display: inline-flex; align-items: center; gap: 7px; font-size: .8rem; color: var(--green);
  background: var(--green-soft); border: 1px solid rgba(74,222,128,.25); border-radius: 9px; padding: 6px 10px; }
.ai-act svg { width: 14px; height: 14px; flex: none; }

.ai-typing { align-self: flex-start; display: inline-flex; gap: 5px; padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px 14px 14px 5px; }
.ai-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); animation: aiBlink 1.2s infinite; }
.ai-typing i:nth-child(2) { animation-delay: .2s; } .ai-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes aiBlink { 0%,60%,100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.ai-input { display: flex; align-items: flex-end; gap: 9px; padding: 12px 12px 14px; border-top: 1px solid var(--border); }
.ai-input textarea { flex: 1; resize: none; max-height: 130px; font-family: var(--font); font-size: .9rem;
  color: var(--text); background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px;
  padding: 11px 13px; line-height: 1.4; outline: none; transition: border-color .15s; }
.ai-input textarea:focus { border-color: var(--gold-line); }
.ai-input textarea::placeholder { color: var(--text-3); }
#ai-send { flex: none; width: 42px; height: 42px; display: grid; place-items: center; cursor: pointer;
  border: none; border-radius: 12px; background: var(--gold-grad); color: #ffffff;
  box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--gold-2) 50%, transparent); transition: transform .15s, opacity .15s; }
#ai-send:hover { transform: translateY(-1px); }
#ai-send:disabled { opacity: .45; cursor: default; transform: none; }
#ai-send svg { width: 19px; height: 19px; }

@media (max-width: 560px) {
  #ai-widget { right: 16px; bottom: 16px; }
  #ai-panel { right: 0; bottom: 0; width: 100vw; max-width: 100vw; height: 88vh; height: 88dvh;
    border-radius: 20px 20px 0 0; }
}

/* Селект-фільтр (звіти/статистика/дашборд/локації) */
.filter-select{
  padding:.5rem .7rem;border-radius:10px;border:1px solid rgba(8,40,38,.18);
  background:#fff;color:var(--text,#15201f);font:inherit;font-size:.9rem;cursor:pointer;
}
.filter-select:focus{outline:2px solid var(--gold-2,#c8a44d);}

/* Налаштування — сітка карток (хаб, тариф) */
.set-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:1rem; }
.set-card { display:block; padding:1.3rem; border:1px solid var(--border);
  border-radius:16px; background:var(--bg-card,#fff); color:inherit; text-decoration:none;
  transition:border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
a.set-card:hover { border-color:var(--gold-line); box-shadow:var(--shadow);
  transform:translateY(-2px); color:inherit; }
.set-card-title { font-weight:700; font-size:1.05rem; }
.set-card-desc { color:var(--muted); font-size:.9rem; margin-top:.35rem; line-height:1.45; }
.set-card-go { color:var(--gold-3); font-size:.88rem; font-weight:600; margin-top:.8rem; }

/* ── Вибір періоду діапазоном дат (daterange) ───────────────────────────────── */
.dr { position: relative; display: inline-block; }
.dr-pill { display: inline-flex; align-items: center; gap: .5rem; cursor: pointer;
  background: var(--bg-card, #fff); border: 1px solid var(--border, rgba(8,40,38,.12));
  border-radius: 12px; padding: .6rem 1rem; font: inherit; font-size: .95rem; font-weight: 600;
  color: var(--gold-deep); white-space: nowrap; transition: border-color .15s; }
.dr-pill:hover { border-color: var(--gold-line); }
.dr-chev { color: var(--text-3); flex: none; }
.dr-pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 80;
  width: 290px; max-width: calc(100vw - 24px); background: #fff;
  border: 1px solid var(--border); border-radius: 16px; padding: 1rem;
  box-shadow: 0 18px 50px -18px rgba(8,60,57,.32), 0 0 0 1px var(--gold-soft) inset; }
.dr-pop[hidden] { display: none; }
.dr-pop.dr-right { left: auto; right: 0; }
.dr-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.dr-title { font-weight: 700; font-size: .98rem; color: var(--text); }
.dr-nav { border: 1px solid var(--border-strong); background: #fff; color: var(--text-2);
  width: 30px; height: 30px; border-radius: 9px; font-size: 1.1rem; line-height: 1; cursor: pointer; }
.dr-nav:hover { background: var(--surface-2); border-color: var(--gold-line); }
.dr-wd { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: .25rem; }
.dr-wd span { text-align: center; font-size: .68rem; color: var(--text-3); padding: 2px 0; }
.dr-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dr-empty { height: 34px; }
.dr-day { height: 34px; border: none; background: none; cursor: pointer; font: inherit;
  font-size: .85rem; color: var(--text); border-radius: 9px; transition: background .1s; }
.dr-day:hover { background: var(--surface-2); }
.dr-day.today { box-shadow: inset 0 0 0 1px var(--gold-line); }
.dr-day.in { background: var(--gold-soft); border-radius: 0; color: var(--gold-deep); }
.dr-day.edge { background: var(--gold-2); color: #fff; font-weight: 700; }
.dr-day.edge-s { border-radius: 9px 0 0 9px; }
.dr-day.edge-e { border-radius: 0 9px 9px 0; }
.dr-day.edge-s.edge-e { border-radius: 9px; }
.dr-hint { margin-top: .7rem; font-size: .76rem; color: var(--text-3); text-align: center; }

/* ============================================================================
   Ролі та доступи (/settings/roles) — premium role editor
   ============================================================================ */
.add-role { border: 1px dashed var(--border-strong); border-radius: var(--radius);
  margin-bottom: 22px; background: var(--surface); transition: border-color .2s, background .2s, box-shadow .2s; }
.add-role[open] { border-style: solid; border-color: var(--border); background: #fff; box-shadow: var(--shadow-sm); }
.add-role > summary { list-style: none; cursor: pointer; padding: 16px 20px; font-weight: 600;
  color: var(--gold-3); display: flex; align-items: center; gap: 11px; font-size: .98rem; user-select: none; }
.add-role > summary::-webkit-details-marker { display: none; }
.add-role > summary:hover { color: var(--gold-deep); }
.add-role > summary .add-plus { width: 27px; height: 27px; border-radius: 50%; background: var(--gold-grad);
  color: #fff; display: grid; place-items: center; font-size: 19px; line-height: 1; box-shadow: var(--shadow-gold); }
.add-role[open] > summary { border-bottom: 1px solid var(--border); color: var(--text); margin-bottom: 4px; }

.role-card { border: 1px solid var(--border); border-radius: var(--radius); background: #fff;
  padding: 20px 22px; margin-bottom: 14px; box-shadow: var(--shadow-sm); transition: box-shadow .2s; }
.role-card:hover { box-shadow: var(--shadow); }
.role-card--flat { border: none; box-shadow: none; margin: 0; padding: 18px 20px; }
.role-card--flat:hover { box-shadow: none; }

.role-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.role-name { flex: 1; min-width: 200px; font-size: 1.06rem; font-weight: 600; color: var(--text);
  border: 1px solid transparent; background: var(--surface-2); border-radius: var(--radius-sm);
  padding: 10px 13px; transition: background .15s, border-color .15s, box-shadow .15s; }
.role-name:hover { background: var(--surface-3); }
.role-name:focus { outline: none; background: #fff; border-color: var(--gold-line); box-shadow: 0 0 0 3px var(--gold-soft); }
.role-count { font-size: .82rem; color: var(--text-3); white-space: nowrap; }
.sees-all { display: flex; align-items: center; gap: 9px; font-size: .9rem; color: var(--text-2);
  white-space: nowrap; cursor: pointer; }

.dept-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.dept-pill input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.dept-pill span { display: inline-block; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border-strong);
  font-size: .87rem; color: var(--text-2); cursor: pointer; transition: all .15s; user-select: none; }
.dept-pill span:hover { border-color: var(--gold-line); color: var(--text); background: var(--gold-soft); }
.dept-pill input:checked + span { background: var(--gold-2); border-color: transparent; color: #fff; font-weight: 500; }
.dept-pill input:focus-visible + span { box-shadow: 0 0 0 3px var(--gold-soft); }
.dept-pill input:disabled + span { opacity: .4; cursor: not-allowed; background: transparent; }

.cap-block { border-top: 1px solid var(--border); padding-top: 16px; margin-top: 2px; }
.cap-group { font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); margin: 16px 0 9px; }
.cap-group:first-child { margin-top: 0; }
.cap-list { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 540px) { .cap-list { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 28px; } }
.cap-item { display: flex; align-items: center; gap: 11px; font-size: .93rem; color: var(--text); min-width: 0; }
.cap-item .switch { flex: none; }
.cap-item .switch:disabled { opacity: .5; cursor: not-allowed; }
.cap-name { flex: 1; min-width: 0; }

.tip, .tip-inline { width: 17px; height: 17px; flex: none; border-radius: 50%; border: 1px solid var(--border-strong);
  color: var(--text-3); font-size: 11px; font-family: Georgia, "Times New Roman", serif; font-style: italic;
  display: inline-grid; place-items: center; cursor: help; position: relative; transition: all .15s; vertical-align: middle; }
.tip-inline { width: 16px; height: 16px; font-size: 10px; }
.tip:hover, .tip:focus { color: var(--gold-2); border-color: var(--gold-line); background: var(--gold-soft); outline: none; }
.tip::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 9px); left: 50%;
  transform: translateX(-50%) translateY(5px); width: max-content; max-width: 230px; background: #15201f; color: #fff;
  text-align: left; font-family: var(--font); font-style: normal; font-weight: 400; font-size: .79rem; line-height: 1.42;
  padding: 9px 12px; border-radius: 11px; box-shadow: var(--shadow); opacity: 0; pointer-events: none;
  transition: opacity .15s, transform .15s; z-index: 40; }
.tip:hover::after, .tip:focus::after { opacity: 1; transform: translateX(-50%) translateY(0); }

.role-actions { display: flex; gap: 10px; align-items: center; margin-top: 18px; }
.role-del { color: var(--red) !important; }
.role-del:hover { background: var(--red-soft); border-color: var(--red) !important; }

/* Статистика «По відділах» → розгортання видів чек-листів (drill-down) */
.dept-row--toggle { cursor: pointer; }
.dept-row--toggle:hover { background: rgba(8, 40, 38, .035); }
.dept-row--toggle:focus-visible { outline: 2px solid var(--gold-2); outline-offset: -2px; }
.dept-caret {
  display: inline-block; width: 1.1em; margin-right: .2em; color: var(--muted);
  font-weight: 700; transition: transform .18s ease;
}
.dept-row--open .dept-caret { transform: rotate(90deg); }
.dept-detail-inner { padding: .3rem 1rem .8rem 2.7rem; background: rgba(8, 40, 38, .02); }
.dept-cl-row {
  display: flex; align-items: center; gap: 1rem; padding: .6rem .2rem;
  border-top: 1px solid rgba(8, 40, 38, .06); font-size: .92rem;
}
.dept-cl-row:first-child { border-top: 0; }
.dept-cl-title {
  flex: 1; min-width: 0; color: var(--text-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dept-cl-n { width: 56px; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.dept-cl-pct { width: 74px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.dept-cl-time { width: 96px; text-align: right; color: var(--text-2); font-variant-numeric: tabular-nums; }

/* «Нагадати працівнику» — кнопка на червоній картці «не заповнено» */
.remind-btn {
  margin-top: .6rem; font: inherit; font-size: .82rem; font-weight: 600; line-height: 1.2;
  color: var(--red); background: #fff; border: 1px solid var(--red-soft);
  border-radius: 999px; padding: 6px 14px; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.remind-btn:hover { background: var(--red-soft); border-color: var(--red); }
.remind-btn:disabled { cursor: default; }
.remind-btn.remind-done { color: var(--green); background: var(--green-soft); border-color: var(--green-soft); }
.remind-btn.remind-empty { color: var(--muted); background: var(--surface); border-color: var(--border); }
/* стала позначка після нагадування (кнопка зникла) */
.reminded-tag {
  display: inline-block; margin-top: .6rem; font-size: .82rem; font-weight: 600; line-height: 1.2;
  color: var(--green); background: var(--green-soft); border: 1px solid var(--green-soft);
  border-radius: 999px; padding: 6px 14px;
}

/* Рядок точки: [ім'я + Зберегти] · інфо-спейсер · [дії] */
.loc-row { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.loc-rename { margin: 0; display: flex; gap: .4rem; align-items: center; }
.loc-name-input {
  width: 240px; max-width: 100%; font-weight: 600; font-size: 1rem; color: var(--text);
  border: 1px solid transparent; background: transparent; padding: 6px 10px; border-radius: 8px;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.loc-name-input:hover { background: var(--surface); }
.loc-name-input:focus { outline: none; border-color: var(--gold-line); background: #fff;
  box-shadow: 0 0 0 3px var(--gold-soft); }
.loc-meta { flex: 1; min-width: 130px; color: var(--muted); font-size: .9rem; }
.loc-actions { display: flex; gap: .5rem; flex-shrink: 0; }

/* Супер-посилання самореєстрації команди */
.join-card { border: 1px solid var(--gold-line); background: var(--gold-soft);
  border-radius: var(--radius); padding: 18px 20px; margin-bottom: 1.4rem; }
.join-title { font-weight: 700; font-size: 1.05rem; color: var(--text); }
.join-sub { font-size: .9rem; color: var(--text-2); margin: .35rem 0 1rem; line-height: 1.5; max-width: 62ch; }
.join-linkrow { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.join-link { flex: 1; min-width: 220px; font-family: var(--mono); font-size: .82rem; padding: 9px 12px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; color: var(--text-2); }
.join-meta { font-size: .82rem; color: var(--gold-3); font-weight: 600; margin-top: .6rem; }
.join-actions { display: flex; gap: .6rem; margin-top: .9rem; flex-wrap: wrap; }
