[hidden] { display: none !important; }
.privacy-link { position: fixed; left: 24px; bottom: max(15px, env(safe-area-inset-bottom)); z-index: 2; color: #a1a4af; font-size: 12px; }
.intro-active .privacy-link { visibility: hidden; }
.privacy-link:hover, .text-link:hover { color: var(--ink); }
.page-home { position: absolute; top: 24px; left: 24px; display: flex; align-items: center; gap: 10px; font-size: 14px; color: #b5b7c0; }
html:has(.subpage) { height: auto; min-height: 100%; overflow: auto; }
body.subpage { min-height: 100svh; height: auto; overflow: visible; }
.subpage main { min-height: 100svh; padding: 90px 24px 100px; }
.page-panel { width: min(100%, 550px); padding: clamp(24px, 5vw, 38px); }
h1.page-title { font: 400 clamp(32px, 6vw, 44px)/1.1 Epetri, Georgia, serif; margin: 0 0 24px; }
.page-panel p { font-size: 15px; line-height: 1.7; color: #c1c2cb; margin: 0 0 18px; }
.page-panel .muted, .muted { color: #9b9daa; }
.text-link { color: #b7bac6; font-size: 14px; }
.choice-actions { display: flex; align-items: center; gap: 10px; }
.quiet-button { min-height: 42px; padding: 9px 17px; border: 1px solid #ffffff26; border-radius: 10px; color: var(--ink); background: #ffffff08; font: inherit; font-size: 14px; cursor: pointer; transition: background .2s, border-color .2s; }
.quiet-button:hover { background: #ffffff12; border-color: #ffffff40; }
.quiet-button:disabled { opacity: .5; cursor: wait; }
.quiet-button:focus-visible, input:focus-visible { outline: 2px solid #c1d9e6; outline-offset: 4px; }
.choice-actions [aria-pressed="true"] { border-color: #c1d9e6; }
.status { min-height: 1.5em; padding-top: 12px; }
.consent-banner { position: fixed; z-index: 15; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; align-items: center; justify-content: space-between; gap: 20px; width: min(740px, calc(100% - 32px)); padding: 14px 18px; border-radius: 16px; background-color: #0c0f17eb; box-shadow: 0 10px 50px #0006; }
.consent-copy { color: #c1c2cb; font-size: 14px; line-height: 1.6; }
.consent-copy a { text-decoration: underline; text-underline-offset: 3px; }
body:has(.consent-banner) > .privacy-link { visibility: hidden; }
.admin-panel { width: min(100%, 780px); }
.admin-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
#admin-login label { display: block; font-size: 14px; margin-bottom: 8px; color: #b7bac6; }
.login-row { display: flex; align-items: stretch; gap: 10px; }
.login-row input { min-width: 0; flex: 1; padding: 12px 14px; border: 1px solid #ffffff26; border-radius: 10px; background: #ffffff06; color: var(--ink); font: inherit; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0 32px; }
.metrics > div { display: grid; gap: 8px; padding: 18px 14px; background: #ffffff04; border: 1px solid #ffffff10; border-radius: 12px; }
.metrics strong { font-size: clamp(25px, 5vw, 40px); font-weight: 400; line-height: 1; }
.metrics span { color: #aaaebb; font-size: 13px; }
#results h2 { font-size: 14px; font-weight: 500; margin: 20px 0 14px; }
.daily-chart { display: flex; align-items: stretch; height: 140px; gap: 8px; padding: 0 0 28px; border-bottom: 1px solid #ffffff12; }
.chart-column { position: relative; display: flex; align-items: flex-end; flex: 1; min-width: 0; border-bottom: 1px solid #aaaebb44; }
.chart-bar { width: 100%; min-height: 1px; background: linear-gradient(#b0c6d980, #778aa326); border-radius: 4px 4px 0 0; }
.chart-column > span { position: absolute; bottom: -24px; width: 100%; text-align: center; color: #aaaebb; font-size: 11px; }
.results-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.result-row { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid #ffffff10; padding: 10px 0; font-size: 14px; }
.result-row strong { font-weight: 500; }
@media (max-width: 580px) {
  .consent-banner { flex-direction: column; align-items: stretch; gap: 10px; padding: 14px 16px; }
  .consent-banner .choice-actions { justify-content: flex-end; }
  .results-columns { grid-template-columns: 1fr; gap: 0; }
  .metrics { gap: 6px; }
  .metrics > div { padding: 14px 9px; }
  .metrics span { font-size: 12px; }
  .daily-chart { gap: 4px; }
}
.survey-panel { width: min(100%, 800px); }
h1.survey-title { font-family: inherit; font-size: clamp(25px, 5vw, 36px); line-height: 1.25; letter-spacing: -.025em; }
.survey-section { margin-top: 38px; padding-top: 26px; border-top: 1px solid #ffffff18; }
.survey-section h2 { font-size: 19px; font-weight: 500; line-height: 1.4; margin: 0 0 24px; }
.survey-question { margin: 0 0 26px; padding: 0; min-width: 0; border: 0; }
.survey-question > label, .survey-question legend { display: block; font-size: 16px; line-height: 1.6; color: #e3e1e7; margin-bottom: 10px; }
.survey-question textarea { width: 100%; min-height: 104px; resize: vertical; padding: 13px 14px; border: 1px solid #ffffff26; border-radius: 12px; background: #ffffff05; color: var(--ink); font: inherit; line-height: 1.6; }
.survey-question textarea:focus-visible { outline: 2px solid #c1d9e6; outline-offset: 3px; }
.rating-options { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.rating-option { position: relative; display: block; cursor: pointer; }
.rating-option input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; }
.rating-option span { display: grid; place-items: center; min-height: 48px; border: 1px solid #ffffff26; border-radius: 10px; background: #ffffff04; font-size: 16px; }
.rating-option input:checked + span { border-color: #c1d9e6; background: #bed8ef20; }
.rating-option input:focus-visible + span { outline: 2px solid #c1d9e6; outline-offset: 3px; }
.survey-submit { display: flex; justify-content: flex-end; margin-top: 28px; }
.survey-submit button { min-width: 140px; min-height: 48px; }
.survey-admin { margin-top: 34px; border-top: 1px solid #ffffff18; padding-top: 20px; }
.survey-admin-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.response-card { border: 1px solid #ffffff18; border-radius: 12px; margin: 12px 0; }
.response-card summary { padding: 15px; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; }
.response-card summary:focus-visible { outline: 2px solid #c1d9e6; outline-offset: 3px; }
.response-answers { padding: 0 18px 12px; }
.response-answers h3 { font-size: 17px; line-height: 1.5; font-weight: 500; margin-top: 26px; }
.response-answers h4 { font-size: 14px; font-weight: 500; line-height: 1.6; margin-bottom: 8px; }
.response-answers p { white-space: pre-wrap; overflow-wrap: anywhere; }
.survey-pagination { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 16px; font-size: 13px; }
@media (max-width: 480px) { .rating-options { gap: 5px; } .response-card summary { flex-wrap: wrap; } }

.opt-out { padding: 0; border: 0; background: none; font: inherit; color: #b7bac6; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.opt-out:focus-visible { outline: 2px solid #c1d9e6; outline-offset: 4px; }
.opt-out:disabled { opacity: .5; cursor: wait; }
