@font-face{font-family:'Inter';font-style:normal;font-weight:400 800;font-display:swap;src:url(../fonts/inter/cyrillic.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Inter';font-style:normal;font-weight:400 800;font-display:swap;src:url(../fonts/inter/latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

:root{color-scheme:dark light;--accent-primary:#6366f1;--accent-secondary:#818cf8;--accent-light:#c7d2fe;--accent-ink:#4f46e5;--text-primary:#e0e0f0;--text-secondary:#8888a0;--text-muted:#6a6a90;--text-on-card:#1a1a2e;--text-on-card-sub:#4a4a6a;--card-bg:#fff;--card-shadow:0 8px 32px rgba(0,0,0,.12);--card-radius:18px;--card-dark-bg:rgba(99,102,241,.08);--card-dark-border:rgba(99,102,241,.15);--card-dark-bg-hover:rgba(99,102,241,.16);--prio-red:#ef4444;--prio-yellow:#f59e0b;--prio-green:#22c55e;--html-bg:#0f0f1a;--bg-gradient:linear-gradient(165deg,#0f0f1a 0%,#1a1a2e 40%,#16213e 100%);--topbar-bg:rgba(15,15,26,.85);--topbar-border:rgba(99,102,241,.12);--surface-overlay:rgba(15,15,26,.7);--surface-strong:rgba(15,15,26,.95);--surface-toast:rgba(15,15,26,.92);--input-bg:rgba(255,255,255,.04);--input-border:rgba(255,255,255,.08);--shadow-overlay:0 12px 32px rgba(0,0,0,.4);--title-gradient:linear-gradient(135deg,#c7d2fe 0%,#818cf8 50%,#6366f1 100%)}[data-theme="light"]{color-scheme:light;--accent-primary:#4f46e5;--accent-secondary:#4f46e5;--accent-light:#4338ca;--accent-ink:#4338ca;--text-primary:#1a1a2e;--text-secondary:#5a5a72;--text-muted:#8a8aa0;--card-bg:#fff;--card-shadow:0 6px 22px rgba(31,35,80,.08);--card-dark-bg:rgba(99,102,241,.06);--card-dark-border:rgba(99,102,241,.22);--card-dark-bg-hover:rgba(99,102,241,.12);--html-bg:#f5f7fb;--bg-gradient:linear-gradient(165deg,#f5f7fb 0%,#eef0f8 40%,#e8edf6 100%);--topbar-bg:rgba(245,247,251,.85);--topbar-border:rgba(99,102,241,.22);--surface-overlay:rgba(31,35,80,.35);--surface-strong:rgba(255,255,255,.96);--surface-toast:rgba(255,255,255,.95);--input-bg:rgba(31,35,80,.04);--input-border:rgba(99,102,241,.22);--shadow-overlay:0 10px 30px rgba(31,35,80,.18);--title-gradient:linear-gradient(135deg,#4f46e5 0%,#4338ca 50%,#312e81 100%)}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;background-color:var(--html-bg);transition:background-color 240ms ease}
body{font-family:'Inter','Segoe UI',system-ui,-apple-system,sans-serif;background:var(--bg-gradient) no-repeat fixed;background-size:100% 100vh;transition:color 240ms ease;color:var(--text-primary);line-height:1.5;min-height:100vh;-webkit-font-smoothing:antialiased}

main#app, #app, .container{width:100%;max-width:720px;margin:0 auto;padding:32px 20px 96px}

button,a{touch-action:manipulation}
button{font-family:inherit;cursor:pointer;border:none;background:none}
a{color:var(--accent-light);text-decoration:none}
a:hover{color:var(--accent-secondary)}

/* ============ Topbar (shared with landing) ============ */

.aia-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--topbar-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(99, 102, 241, 0.12);
}
.aia-topbar-inner {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.aia-brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  text-decoration: none;
}
.aia-topbar-tg {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  color: var(--accent-light);
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(99, 102, 241, 0.30);
  background: rgba(99, 102, 241, 0.16);
  transition: background 180ms ease;
  text-decoration: none;
}
.aia-topbar-tg:hover { background: rgba(99, 102, 241, 0.16); }

.micro-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent-secondary);
  text-transform: uppercase;
  margin-bottom: 18px;
}

.gradient-title {
  font-weight: 800;
  font-size: 44px;
  background: linear-gradient(135deg, #c7d2fe 0%, #818cf8 50%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 16px;
}
@media (max-width: 740px) { .gradient-title { font-size: 32px; } }

.section-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin: 32px 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lead {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.card-light {
  background: var(--card-dark-bg);
  border: 1px solid var(--card-dark-border);
  border-radius: var(--card-radius);
  padding: 26px 24px;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.card-light h3 { color: var(--text-primary); font-size: 18px; margin-bottom: 8px; }
.card-light p  { color: var(--text-primary); font-size: 15px; }

.card-dark {
  background: var(--card-dark-bg);
  border: 1px solid var(--card-dark-border);
  border-radius: var(--card-radius);
  padding: 26px 24px;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  padding: 16px 32px;
  border-radius: 14px;
  transition: transform 200ms ease, box-shadow 200ms ease;
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.35);
}
.btn-primary:hover  { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(99, 102, 241, 0.45); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-ghost {
  color: var(--text-secondary);
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 200ms ease;
}
.btn-ghost:hover { color: var(--accent-light); }

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: var(--card-dark-bg);
  border: 1px solid var(--card-dark-border);
  border-radius: 12px;
  color: var(--accent-light);
  font-size: 15px;
  font-weight: 600;
}
.btn-download:hover { background: rgba(99, 102, 241, 0.16); }

.sticky-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  margin: -32px -20px 20px;
  padding: calc(14px + env(safe-area-inset-top)) 20px 12px;
  background: var(--topbar-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(99, 102, 241, 0.12);
}
.sticky-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent-secondary);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.progress-track {
  height: 6px;
  background: rgba(99, 102, 241, 0.15);
  border-radius: 99px;
  overflow: hidden;
  margin: 0;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1 0%, #818cf8 100%);
  border-radius: 99px;
  transition: width 300ms ease;
}

.option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(99, 102, 241, 0.06);
  border: 2px solid transparent;
  border-radius: 12px;
  font-size: 15px;
  color: var(--text-primary);
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
  margin-bottom: 10px;
}
.option:hover    { background: rgba(99, 102, 241, 0.12); border-color: rgba(99, 102, 241, 0.25); }
.option.selected { background: rgba(99, 102, 241, 0.08); border-color: var(--accent-primary); }

.options-list { list-style: none; margin: 18px 0 4px; }

.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  gap: 12px;
}

.home-meta {
  margin-top: 20px;
  margin-bottom: 8px;
}
.home-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-light);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 1px solid rgba(199, 210, 254, 0.25);
  transition: color 200ms ease, border-color 200ms ease;
}
.home-link:hover {
  color: #fff;
  border-bottom-color: var(--accent-secondary);
}
.results-actions { flex-wrap: wrap; gap: 10px; }
.results-actions > * { flex: 1 1 auto; min-width: 130px; }
@media (max-width: 600px) {
  .results-actions { flex-direction: column; align-items: stretch; }
  .results-actions > * { width: 100%; text-align: center; min-width: 0; }
}

.modal-backdrop {
  position: fixed; inset: 0; z-index: 300;
  background: var(--surface-overlay);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeSlide 200ms ease both;
}
.modal {
  width: 100%; max-width: 480px;
  margin: 0;
}
.modal-textarea {
  width: 100%; min-height: 90px;
  background: var(--input-bg);
  border: 1px solid var(--card-dark-border);
  border-radius: 10px;
  padding: 12px;
  color: var(--text-primary);
  font-family: inherit; font-size: 14px;
  resize: none;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%) translateY(20px);
  background: var(--surface-strong);
  border: 1px solid var(--card-dark-border);
  color: var(--text-primary);
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  opacity: 0;
  transition: opacity 200ms ease, transform 200ms ease;
  z-index: 200;
  pointer-events: none;
  box-shadow: var(--shadow-overlay);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.rec {
  background: var(--card-bg);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  color: var(--text-primary);
  margin-bottom: 12px;
  border-left: 4px solid var(--prio-green);
  animation: fadeSlide 250ms ease both;
  overflow: hidden;
}
.rec.prio-red    { border-left-color: var(--prio-red); }
.rec.prio-yellow { border-left-color: var(--prio-yellow); }
.rec.prio-green  { border-left-color: var(--prio-green); }

.rec-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
}
.rec-icon {
  flex-shrink: 0;
  font-size: 22px;
  line-height: 1;
}
@media (max-width: 480px) {
  .rec-head { gap: 8px; padding: 16px 16px; }
  .rec-icon { display: none; }
  .rec-head h3 { font-size: 15px; }
}

.rec-check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 2px solid var(--accent-primary);
  background: rgba(99, 102, 241, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #fff;
  cursor: pointer;
  user-select: none;
  transition: background 150ms ease, border-color 150ms ease, transform 100ms ease;
  padding: 8px;
  box-sizing: content-box;
  margin: -8px -4px -8px -8px;
}
.rec-check:hover { background: rgba(99, 102, 241, 0.12); transform: scale(1.05); }
.rec-check:active { transform: scale(0.95); }
.rec-check.checked {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
}

.rec.done { opacity: 0.55; }
.rec.done .rec-head h3 { text-decoration: line-through; }

.improve-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 14.5px;
  color: var(--text-primary);
  border-top: 1px solid rgba(99, 102, 241, 0.08);
}
.improve-row:first-of-type { border-top: none; }
.improve-target {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #c7d2fe 0%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 18px;
}
.rec-head:hover { background: rgba(99, 102, 241, 0.06); }
.rec-head h3 {
  flex: 1;
  font-size: 16px;
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.35;
}
.rec-toggle {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 300;
  color: var(--accent-primary);
  transition: transform 200ms ease;
  line-height: 1;
}
.rec.open .rec-toggle { transform: rotate(45deg); }

.rec-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 280ms ease, padding 280ms ease;
  padding: 0 22px;
}
.rec.open .rec-body {
  max-height: 800px;
  padding: 4px 22px 20px;
}
.rec-body p {
  font-size: 14.5px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.rec-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 10px;
}
.rec-meta span {
  background: rgba(99, 102, 241, 0.06);
  padding: 4px 10px;
  border-radius: 99px;
}

.score-display {
  text-align: center;
  padding: 36px 24px;
}
.score-number {
  font-size: 72px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #c7d2fe 0%, #818cf8 50%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.score-label {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-secondary);
  margin-top: 12px;
}

.score-scale {
  margin-top: 28px;
  padding: 0 8px;
}
.score-scale-track {
  position: relative;
  height: 10px;
  border-radius: 99px;
  background: linear-gradient(
    90deg,
    #ef4444 0%,
    #ef4444 40%,
    #f59e0b 40%,
    #f59e0b 60%,
    #84cc16 60%,
    #84cc16 80%,
    #22c55e 80%,
    #22c55e 100%
  );
  overflow: visible;
}
.score-scale-marker {
  position: absolute;
  top: -6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent-primary);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
  transform: translateX(-50%);
  transition: left 600ms ease;
}
.score-scale-zones {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}
.score-scale-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.score-scale-labels span { width: 25%; text-align: center; }

.score-number-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
}
.score-unit {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-muted);
}
.score-virtual {
  margin-top: 10px;
  font-size: 13px;
  color: var(--accent-light);
}
.score-virtual strong { color: #fff; font-weight: 700; }

.dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-red    { background: var(--prio-red); }
.dot-yellow { background: var(--prio-yellow); }
.dot-green  { background: var(--prio-green); }

.filter-row {
  display: flex;
  justify-content: flex-end;
  margin: 20px 0 4px;
}
.filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}
.filter-toggle input {
  width: 18px; height: 18px;
  accent-color: var(--accent-primary);
  cursor: pointer;
}

.mem-card {
  border-color: rgba(99, 102, 241, 0.3);
  background: rgba(99, 102, 241, 0.12);
}

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip {
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(99, 102, 241, 0.25);
  background: transparent;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  transition: all 180ms ease;
  cursor: pointer;
}
.chip:hover         { border-color: var(--accent-primary); background: rgba(99, 102, 241, 0.06); }
.chip.active        { background: var(--accent-primary); border-color: var(--accent-primary); color: #fff; }

.calc {
  margin-top: 14px;
  padding: 16px 18px;
  background: rgba(99, 102, 241, 0.06);
  border-radius: 14px;
}
.calc-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 10px;
}
.calc-value-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-variant-numeric: tabular-nums;
  margin-bottom: 6px;
}
.calc-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
}
.calc-unit {
  font-size: 14px;
  color: var(--text-muted);
}
.calc-slider {
  width: 100%;
  height: 28px;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  outline: none;
  margin: 4px 0;
}
.calc-slider::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 99px;
  background: rgba(99, 102, 241, 0.18);
}
.calc-slider::-moz-range-track {
  height: 6px;
  border-radius: 99px;
  background: rgba(99, 102, 241, 0.18);
}
.calc-slider::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent-primary);
  margin-top: -7px;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
  cursor: pointer;
}
.calc-slider::-moz-range-thumb {
  width: 20px; height: 20px;
  border: none;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
  cursor: pointer;
}
.calc-output {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(99, 102, 241, 0.25);
}
.calc-output-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.calc-output-value {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-variant-numeric: tabular-nums;
}
.calc-number {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.feedback textarea {
  width: 100%;
  min-height: 110px;
  background: var(--input-bg);
  border: 1px solid var(--card-dark-border);
  border-radius: 12px;
  padding: 14px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14.5px;
  resize: vertical;
}
.feedback input {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--card-dark-border);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14.5px;
  margin-top: 10px;
}
.feedback textarea:focus,
.feedback input:focus { outline: none; border-color: var(--accent-primary); }

.faq {
  background: var(--card-dark-bg);
  border: 1px solid var(--card-dark-border);
  border-radius: 14px;
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  cursor: pointer;
  user-select: none;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 15px;
}
.faq-head > span:first-child { flex: 1; }
.faq-head:hover { background: rgba(99, 102, 241, 0.05); }
.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 280ms ease, padding 280ms ease;
  padding: 0 20px;
}
.faq.open .faq-body {
  max-height: 600px;
  padding: 0 20px 16px;
}
.faq.open .rec-toggle { transform: rotate(45deg); }
.faq-body p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

#cookie-notice {
  position: fixed;
  left: max(20px, env(safe-area-inset-left));
  bottom: max(20px, env(safe-area-inset-bottom));
  max-width: 320px;
  background: var(--surface-toast);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-dark-border);
  border-radius: 14px;
  padding: 16px 18px;
  z-index: 100;
  animation: fadeSlide 250ms ease both;
}
@media (max-width: 480px) {
  #cookie-notice {
    left: 0;
    right: 0;
    bottom: 0;
    max-width: 100%;
    border-radius: 14px 14px 0 0;
    padding: 16px 18px calc(16px + env(safe-area-inset-bottom));
  }
}
#cookie-notice p { font-size: 13px; color: var(--text-secondary); margin-bottom: 12px; }
#cookie-notice button {
  background: var(--accent-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.view { animation: fadeSlide 250ms ease both; }

.privacy-card {
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
}
.privacy-card--compact { margin-top: 18px; padding: 14px 18px; }
.privacy-head { display: flex; align-items: center; gap: 10px; }
.privacy-icon { font-size: 18px; line-height: 1; }
.privacy-title { font-weight: 600; font-size: 15px; color: var(--text-primary); }
.privacy-text {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
}
.privacy-toggle {
  margin-top: 12px;
  background: transparent;
  border: none;
  color: var(--accent-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
}
.privacy-toggle:hover { text-decoration: underline; }
.privacy-details {
  display: none;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px dashed var(--input-border);
}
.privacy-card.open .privacy-details { display: block; }
.privacy-details p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0 0 10px;
}
.privacy-hint { color: var(--text-secondary); font-weight: 500; }
.privacy-browsers {
  margin: 0;
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.privacy-browsers li { margin-bottom: 4px; }
.privacy-clear { margin: 4px 0 14px; display: inline-block; }

@media print {
  body { background: #fff; color: #000; }
  .nav-row, #cookie-notice, .btn-primary, .btn-ghost, .btn-download, .feedback, .rec-toggle, .privacy-card { display: none !important; }
  .rec, .card-light { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; }
  .rec-body { max-height: none !important; padding: 4px 22px 20px !important; overflow: visible !important; }
  .rec-head { cursor: default; }
}

/* Подзаголовок темы внутри группы приоритета */
.theme-subhead {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 14px 4px 8px;
  padding-left: 12px;
  border-left: 2px solid var(--card-dark-border);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.theme-subhead-label { color: var(--accent-light); font-weight: 600; }
.theme-subhead-count { color: var(--text-muted); }
.theme-subhead:first-child { margin-top: 4px; }

/* ============ Theme toggle ============ */
.aia-topbar-actions{display:inline-flex;align-items:center;gap:10px}
.theme-toggle{width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;background:var(--card-dark-bg);border:1px solid var(--card-dark-border);border-radius:10px;color:var(--accent-light);cursor:pointer;padding:0;transition:background 180ms ease,color 180ms ease,border-color 180ms ease;font:inherit}
.theme-toggle:hover{background:var(--card-dark-bg-hover)}
.theme-toggle svg{width:20px;height:20px;display:block}
.theme-toggle .icon-sun{display:none}
.theme-toggle .icon-moon{display:block}
[data-theme="light"] .theme-toggle .icon-sun{display:block}
[data-theme="light"] .theme-toggle .icon-moon{display:none}
