:root { --ink: #173d34; --paper: #f3efe6; --paper-deep: #e7e0d3; --accent: #ea6b4b; --muted: #6d756f; --line: rgba(23, 61, 52, .16); }
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button { color: inherit; font: inherit; }
button:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 70%, white); outline-offset: 4px; }
.app-shell { min-height: 100svh; position: relative; overflow: hidden; background: radial-gradient(circle at 10% 12%, rgba(255,255,255,.65), transparent 28rem), linear-gradient(135deg, #f7f3eb 0%, var(--paper) 55%, #ece5da 100%); }
.app-shell::after { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .2; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.13'/%3E%3C/svg%3E"); z-index: 20; }
.topbar { height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(20px, 5vw, 72px); position: relative; z-index: 10; }
.wordmark { border: 0; background: none; padding: 4px 0; font-size: 25px; line-height: 1; letter-spacing: -.06em; font-weight: 700; cursor: pointer; }
.wordmark span { color: var(--accent); }
.language-switch { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.35); }
.language-switch button { width: 38px; height: 28px; border: 0; border-radius: 999px; background: transparent; font-size: 10px; font-weight: 800; letter-spacing: .08em; cursor: pointer; }
.language-switch button.active { background: var(--ink); color: var(--paper); }
.eyebrow { margin: 0; font-size: 10px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; }
.home-view, .intro-view, .complete-view { min-height: calc(100svh - 76px); padding: 5vh 24px 8vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; position: relative; }
.home-view h1, .intro-view h1, .complete-view h1, .section-heading h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.052em; text-wrap: balance; }
.home-view h1 { max-width: 930px; margin: 22px 0 24px; font-size: clamp(54px, 8vw, 112px); line-height: .92; }
.home-copy { max-width: 520px; margin: 0 0 38px; color: var(--muted); font-size: clamp(16px, 1.5vw, 20px); line-height: 1.6; }
.primary-button, .secondary-button { min-height: 56px; border-radius: 999px; padding: 0 24px; display: inline-flex; align-items: center; justify-content: center; gap: 28px; font-size: 13px; font-weight: 750; letter-spacing: .02em; cursor: pointer; }
.primary-button { border: 1px solid var(--ink); background: var(--ink); color: #fffaf0; box-shadow: 0 12px 28px rgba(23,61,52,.13); }
.primary-button span { font-size: 18px; }
.secondary-button { border: 1px solid var(--line); background: rgba(255,255,255,.35); }
.home-note { margin-top: 18px; color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.home-orbit { position: absolute; border: 1px solid rgba(23,61,52,.09); border-radius: 50%; pointer-events: none; }
.orbit-one { width: min(70vw, 700px); aspect-ratio: 1; transform: rotate(-10deg) scaleY(.62); }
.orbit-two { width: min(90vw, 1000px); aspect-ratio: 1; transform: rotate(22deg) scaleY(.48); }
.category-view { max-width: 1180px; margin: 0 auto; padding: 24px clamp(20px, 5vw, 70px) 72px; }
.back-button { display: inline-flex; align-items: center; gap: 10px; border: 0; background: none; padding: 10px 0; font-size: 12px; font-weight: 700; cursor: pointer; }
.back-button span { font-size: 18px; }
.section-heading { margin: 50px 0 42px; }
.section-heading h1 { margin: 10px 0; font-size: clamp(46px, 6vw, 78px); line-height: 1; }
.section-heading > p:last-child { margin: 0; color: var(--muted); font-size: 16px; }
.category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.category-card { --card-accent: #ea6b4b; min-height: 148px; position: relative; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 16px; padding: 24px 26px; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: transparent; cursor: pointer; transition: background .3s ease, color .3s ease, transform .3s ease; }
.category-card:nth-child(odd) { border-right: 1px solid var(--line); }
.category-card:hover { background: var(--card-accent); color: #fffaf0; z-index: 1; }
.category-number { align-self: start; font-size: 10px; font-weight: 800; letter-spacing: .14em; opacity: .72; }
.category-body { display: flex; flex-direction: column; gap: 8px; }
.category-body strong { font-family: Georgia, serif; font-weight: 400; font-size: clamp(27px, 3vw, 38px); letter-spacing: -.045em; }
.category-body > span { max-width: 340px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.category-card:hover .category-body > span { color: rgba(255,250,240,.76); }
.category-count { width: 44px; height: 44px; border: 1px solid currentColor; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 800; }
.category-arrow { position: absolute; top: 18px; right: 20px; opacity: 0; transform: translate(-5px, 5px); transition: .25s ease; }
.category-card:hover .category-arrow { opacity: 1; transform: none; }
.category-intim { grid-column: 1 / -1; }
.intro-view { max-width: 760px; margin: 0 auto; }
.intro-view .back-button { position: absolute; top: 26px; left: 24px; }
.intro-mark { width: 116px; height: 116px; margin-bottom: 26px; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 50%; display: grid; place-items: center; position: relative; }
.intro-mark::before, .intro-mark::after { content: ""; position: absolute; width: 76%; height: 76%; border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent); border-radius: 50%; transform: translate(-18px, 8px); }
.intro-mark::after { transform: translate(18px, -8px); }
.intro-mark span { font-family: Georgia, serif; font-size: 26px; color: var(--accent); }
.intro-view h1 { margin: 14px 0 20px; font-size: clamp(56px, 8vw, 92px); line-height: .95; }
.intro-copy { max-width: 620px; margin: 0 0 34px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.intro-actions { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.text-button { border: 0; background: none; font-size: 12px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.question-view { min-height: calc(100svh - 76px); padding: 14px clamp(18px, 4vw, 58px) 24px; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; }
.question-head { min-height: 48px; display: grid; grid-template-columns: 52px 1fr 52px; align-items: center; }
.icon-back { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.25); font-size: 19px; cursor: pointer; }
.question-context { justify-self: center; display: flex; gap: 8px; color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.context-dot { color: var(--accent); }
.question-counter { justify-self: end; font-size: 12px; font-weight: 800; }
.question-counter i { padding: 0 3px; color: var(--muted); font-style: normal; font-weight: 400; }
.progress-track { height: 1px; margin-top: 7px; background: var(--line); overflow: hidden; }
.progress-track span { display: block; height: 100%; background: var(--accent); transition: width .5s cubic-bezier(.2,.7,.2,1); }
.question-card { width: min(100%, 1040px); min-height: min(64vh, 650px); margin: clamp(18px, 3vh, 36px) auto; padding: clamp(34px, 6vw, 78px); position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 0; border-radius: clamp(28px, 4vw, 54px); background: var(--ink); color: #fffaf0; text-align: center; box-shadow: 0 28px 80px rgba(23,61,52,.16); cursor: pointer; touch-action: pan-y; overflow: hidden; isolation: isolate; animation: cardIn .5s cubic-bezier(.2,.75,.2,1) both; }
.question-card::before { content: ""; position: absolute; width: 460px; height: 460px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; top: -230px; right: -160px; box-shadow: 0 0 0 62px rgba(255,255,255,.025), 0 0 0 126px rgba(255,255,255,.018); z-index: -1; }
.question-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 18%, transparent), transparent 48%); z-index: -1; }
.slide-prev { animation-name: cardInPrev; }
.question-index { position: absolute; top: 28px; left: 32px; color: color-mix(in srgb, var(--accent) 85%, white); font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.question-text { max-width: 850px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(31px, 4.1vw, 60px); line-height: 1.12; letter-spacing: -.045em; text-wrap: balance; }
.question-topic { position: absolute; bottom: 27px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.17); border-radius: 999px; color: rgba(255,250,240,.68); font-size: 9px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.question-footer { min-height: 44px; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; color: var(--muted); }
.question-footer p { margin: 0; text-align: center; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.question-footer > span { justify-self: end; font-size: 18px; color: var(--ink); }
.previous-button { width: 40px; height: 40px; border: 0; background: transparent; font-size: 18px; cursor: pointer; }
.previous-button:disabled { opacity: .2; cursor: default; }
.complete-view { max-width: 760px; margin: 0 auto; }
.complete-symbol { width: 130px; height: 100px; display: grid; place-items: center; color: var(--accent); font-family: Georgia, serif; font-size: 76px; }
.complete-view h1 { max-width: 650px; margin: 14px 0 22px; font-size: clamp(52px, 7vw, 84px); line-height: .95; }
.complete-view > p:not(.eyebrow) { max-width: 570px; margin: 0 0 34px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.complete-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.view-enter { animation: viewIn .65s cubic-bezier(.2,.75,.2,1) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes cardIn { from { opacity: 0; transform: translateX(24px) rotate(.35deg); } to { opacity: 1; transform: none; } }
@keyframes cardInPrev { from { opacity: 0; transform: translateX(-24px) rotate(-.35deg); } to { opacity: 1; transform: none; } }
@media (max-width: 720px) {
  .topbar { height: 66px; }
  .home-view, .intro-view, .complete-view { min-height: calc(100svh - 66px); padding-bottom: 11vh; }
  .home-view h1 { font-size: clamp(52px, 16vw, 74px); }
  .home-copy { max-width: 360px; font-size: 15px; }
  .category-view { padding-top: 10px; }
  .section-heading { margin: 34px 0 30px; }
  .category-grid { grid-template-columns: 1fr; }
  .category-card, .category-card:nth-child(odd) { min-height: 124px; border-right: 0; padding: 20px 14px; grid-template-columns: 32px 1fr 42px; }
  .category-intim { grid-column: auto; }
  .category-body strong { font-size: 30px; }
  .intro-view .back-button { top: 10px; }
  .intro-mark { width: 94px; height: 94px; }
  .intro-view h1 { font-size: clamp(50px, 15vw, 70px); }
  .intro-copy { font-size: 15px; }
  .question-view { min-height: calc(100svh - 66px); padding: 6px 14px 12px; }
  .question-context { font-size: 9px; gap: 5px; }
  .question-head { grid-template-columns: 44px 1fr 44px; }
  .question-card { min-height: 0; height: min(67svh, 620px); margin: 14px auto; padding: 48px 24px; border-radius: 28px; }
  .question-card::before { width: 300px; height: 300px; top: -170px; right: -120px; }
  .question-text { font-size: clamp(28px, 8.2vw, 39px); line-height: 1.14; }
  .question-index { top: 22px; left: 24px; }
  .question-topic { bottom: 20px; }
  .question-footer p { font-size: 8px; letter-spacing: .05em; }
}
@media (max-height: 670px) and (max-width: 720px) {
  .question-card { height: 61svh; }
  .question-text { font-size: clamp(24px, 7.4vw, 34px); }
  .home-view h1 { font-size: 49px; }
  .home-copy { margin-bottom: 24px; }
  .intro-mark { width: 72px; height: 72px; margin-bottom: 15px; }
  .intro-view h1 { font-size: 49px; margin-bottom: 12px; }
  .intro-copy { margin-bottom: 22px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* Access, registration and administration */
.topbar-right, .account-actions { display: flex; align-items: center; gap: 10px; }
.quiet-button, .header-register { border: 0; background: transparent; padding: 9px 11px; border-radius: 999px; font-size: 11px; font-weight: 750; cursor: pointer; }
.header-register { border: 1px solid var(--ink); padding-inline: 15px; }
.account-name { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 750; }
.free-note, .intro-free { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.intro-free { margin-top: 24px; }
.global-notice { position: fixed; z-index: 40; top: 84px; left: 50%; transform: translateX(-50%); max-width: min(90vw, 620px); padding: 13px 18px; border-radius: 999px; box-shadow: 0 12px 28px rgba(23,61,52,.15); font-size: 13px; font-weight: 700; }
.global-notice.error { background: #8d2e3b; color: white; }
.global-notice.success { background: var(--ink); color: white; }

.gate-view { min-height: calc(100svh - 76px); max-width: 780px; margin: 0 auto; padding: 5vh 24px 9vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; position: relative; }
.gate-back { position: absolute; top: 18px; left: 24px; }
.gate-lock { width: 116px; height: 116px; display: grid; place-items: center; margin-bottom: 24px; position: relative; border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); border-radius: 50%; }
.gate-lock::before, .gate-lock::after { content: ""; position: absolute; width: 72%; height: 72%; border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent); border-radius: 50%; transform: translate(-18px, 8px); }
.gate-lock::after { transform: translate(18px, -8px); }
.gate-lock span { color: var(--accent); font-family: Georgia, serif; font-size: 32px; }
.gate-view h1 { margin: 14px 0 18px; max-width: 650px; font-family: Georgia, serif; font-size: clamp(54px, 8vw, 88px); font-weight: 400; line-height: .95; letter-spacing: -.052em; }
.gate-view > p:not(.eyebrow) { max-width: 590px; margin: 0 0 32px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.gate-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

.auth-view { min-height: calc(100svh - 76px); display: grid; place-items: center; padding: 36px 20px 70px; position: relative; }
.auth-close { position: fixed; z-index: 8; top: 84px; right: clamp(20px, 5vw, 70px); width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.45); font-size: 26px; font-weight: 300; cursor: pointer; }
.auth-panel { width: min(100%, 720px); padding: clamp(30px, 6vw, 64px); border: 1px solid var(--line); border-radius: 42px; background: rgba(255,255,255,.52); box-shadow: 0 30px 100px rgba(23,61,52,.11); backdrop-filter: blur(16px); }
.wordmark.static { display: inline-block; margin-bottom: 42px; font-size: 27px; font-weight: 700; letter-spacing: -.06em; text-decoration: none; }
.wordmark.static span { color: var(--accent); }
.auth-panel h1, .setup-card h1 { margin: 13px 0 30px; font-family: Georgia, serif; font-size: clamp(43px, 7vw, 68px); font-weight: 400; line-height: .98; letter-spacing: -.05em; }
.auth-form { display: flex; flex-direction: column; gap: 19px; }
.auth-form label { display: flex; flex-direction: column; gap: 8px; font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.auth-form input, .auth-form textarea { width: 100%; min-height: 52px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.62); padding: 13px 15px; color: var(--ink); font: inherit; font-size: 15px; outline: none; transition: border-color .2s, box-shadow .2s; }
.auth-form textarea { min-height: 112px; resize: vertical; line-height: 1.5; }
.auth-form input:focus, .auth-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 17%, transparent); }
.auth-form small { color: var(--muted); font-size: 10px; font-weight: 500; letter-spacing: 0; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.primary-button.wide { width: 100%; margin-top: 5px; }
.form-link { align-self: center; border: 0; background: none; padding: 4px; color: var(--muted); font-size: 12px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.auth-switch { margin: 4px 0 0; color: var(--muted); text-align: center; font-size: 12px; }
.auth-switch button { border: 0; background: none; padding: 0; color: var(--ink); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.form-intro { margin: -12px 0 2px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.form-alert { margin: -10px 0 22px; padding: 13px 15px; border-radius: 13px; font-size: 13px; line-height: 1.5; }
.form-alert.error { background: #f5dcdd; color: #7e2635; }
.form-alert.success { background: #dbe9df; color: #245542; }

.setup-page { min-height: 100svh; display: grid; place-items: center; padding: 28px 20px; background: var(--paper); }
.setup-card { width: min(100%, 650px); padding: clamp(30px, 6vw, 62px); border: 1px solid var(--line); border-radius: 42px; background: rgba(255,255,255,.55); box-shadow: 0 30px 90px rgba(23,61,52,.12); }
.setup-card > p:not(.eyebrow) { margin: -10px 0 30px; color: var(--muted); line-height: 1.65; }

.admin-view { max-width: 1320px; margin: 0 auto; padding: 38px clamp(18px, 4vw, 56px) 90px; }
.admin-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin: 26px 0 54px; }
.admin-heading h1 { margin: 10px 0; font-family: Georgia, serif; font-size: clamp(48px, 6vw, 76px); font-weight: 400; line-height: .95; letter-spacing: -.05em; }
.admin-heading p:last-child { margin: 0; color: var(--muted); }
.admin-section { margin-top: 48px; }
.admin-section h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font-family: Georgia, serif; font-size: 28px; font-weight: 400; }
.admin-section h2 span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: white; font-family: "Avenir Next", sans-serif; font-size: 10px; font-weight: 800; }
.request-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.request-card { padding: 24px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.44); }
.request-top { display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 12px; }
.avatar { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: white; font-family: Georgia, serif; font-size: 20px; }
.request-top > div:nth-child(2), .reset-list article > div:first-child, .users-table td { display: flex; flex-direction: column; gap: 4px; }
.request-top strong { font-size: 15px; }
.request-top span:not(.status), .reset-list span { color: var(--muted); font-size: 11px; }
.status { display: inline-flex; width: fit-content; padding: 6px 9px; border-radius: 999px; font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .05em; }
.status-pending { background: #f1dfb4; color: #745819; }
.status-approved { background: #d4e6d8; color: #24553a; }
.status-rejected { background: #efd5d8; color: #802d3b; }
.request-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0; }
.request-card dl div { display: flex; flex-direction: column; gap: 4px; }
.request-card dt { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.request-card dd { margin: 0; font-size: 12px; word-break: break-word; }
.request-card blockquote { min-height: 58px; margin: 0 0 22px; padding: 14px 15px; border-left: 2px solid var(--accent); background: rgba(255,255,255,.4); color: #465c56; font-size: 12px; line-height: 1.55; }
.request-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.approve-button, .reject-button, .delete-button { min-height: 38px; padding: 0 13px; border-radius: 999px; font-size: 10px; font-weight: 800; cursor: pointer; }
.approve-button { border: 1px solid var(--ink); background: var(--ink); color: white; }
.reject-button { border: 1px solid var(--line); background: transparent; }
.delete-button { border: 1px solid #d8a5ad; background: transparent; color: #8a3040; }
.reset-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.reset-list article { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 17px 6px; border-bottom: 1px solid var(--line); }
.users-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.35); }
.users-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.users-table th, .users-table td { padding: 15px 17px; border-bottom: 1px solid var(--line); text-align: left; font-size: 12px; }
.users-table th { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.users-table td span, .users-table td small { color: var(--muted); font-size: 11px; }
.users-table tr:last-child td { border-bottom: 0; }
.empty-state, .admin-loading { padding: 26px; border: 1px dashed var(--line); border-radius: 18px; color: var(--muted); text-align: center; font-size: 13px; }
.admin-loading { margin: 15vh auto; max-width: 400px; }
.fatal-state { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; text-align: center; }
.fatal-state h1 { max-width: 600px; font-family: Georgia, serif; font-size: clamp(44px, 7vw, 72px); font-weight: 400; line-height: 1; }
.fatal-state p { color: var(--muted); }

@media (max-width: 820px) {
  .account-name { display: none; }
  .quiet-button { padding-inline: 6px; }
  .request-grid { grid-template-columns: 1fr; }
  .admin-heading { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 600px) {
  .topbar { padding-inline: 16px; }
  .topbar-right { gap: 5px; }
  .account-actions { gap: 3px; }
  .header-register { padding-inline: 10px; }
  .language-switch button { width: 33px; }
  .auth-view { min-height: calc(100svh - 66px); padding: 16px 12px 42px; }
  .auth-close { top: 72px; right: 14px; }
  .auth-panel { padding: 30px 20px; border-radius: 28px; }
  .auth-panel .wordmark { margin-bottom: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .gate-view { min-height: calc(100svh - 66px); }
  .gate-view h1 { font-size: 53px; }
  .gate-actions { flex-direction: column; width: 100%; }
  .gate-actions > button { width: 100%; }
  .admin-view { padding-top: 18px; }
  .admin-heading { margin-bottom: 38px; }
  .admin-heading h1 { font-size: 48px; }
  .reset-list article { align-items: flex-start; flex-direction: column; }
  .request-card dl { grid-template-columns: 1fr; }
}

/* --- Test-Accounts & Fragen-Bewertung --- */
.tester-badge { padding: 5px 9px; border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: 999px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: color-mix(in srgb, var(--accent) 78%, var(--ink)); font-size: 9px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
.question-view.with-rating .question-card { min-height: min(44vh, 430px); margin-block: clamp(12px, 2vh, 22px); }
.rating-bar { width: min(100%, 1040px); margin: 0 auto 10px; padding: 16px clamp(16px, 3vw, 26px); display: flex; flex-direction: column; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.42); text-align: center; }
.rating-lead { display: flex; flex-direction: column; gap: 3px; }
.rating-title { font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.rating-hint { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.rating-scale { display: flex; gap: 8px; }
.rating-dot { width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.6); font-size: 15px; font-weight: 800; cursor: pointer; transition: background .2s ease, color .2s ease, transform .2s ease; }
.rating-dot:hover { background: color-mix(in srgb, var(--accent) 18%, white); transform: translateY(-2px); }
.rating-dot.active { border-color: var(--ink); background: var(--ink); color: #fffaf0; }
.rating-state { min-height: 15px; margin: 0; color: var(--muted); font-size: 11px; font-weight: 700; }
.rating-state strong { color: var(--ink); }
.rating-state em { color: color-mix(in srgb, #24553a 80%, var(--ink)); font-style: normal; }
.rating-comment { width: min(100%, 620px); display: flex; gap: 8px; align-items: flex-start; }
.rating-comment textarea { flex: 1; padding: 10px 13px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.75); color: inherit; font: inherit; font-size: 12px; resize: vertical; }
.rating-comment textarea:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 60%, white); outline-offset: 1px; }
.rating-comment-save { min-height: 40px; padding: 0 14px; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: #fffaf0; font-size: 10px; font-weight: 800; white-space: nowrap; cursor: pointer; }
.rating-comment-save:disabled { opacity: .5; cursor: default; }
.tester-toggle { min-height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.5); font-size: 10px; font-weight: 800; white-space: nowrap; cursor: pointer; }
.tester-toggle.on { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); background: color-mix(in srgb, var(--accent) 16%, transparent); color: color-mix(in srgb, var(--accent) 80%, var(--ink)); }
.admin-lead { margin: -8px 0 18px; color: var(--muted); font-size: 13px; }
.rating-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.sort-group { display: flex; flex-wrap: wrap; gap: 6px; }
.sort-button { min-height: 34px; padding: 0 13px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.5); font-size: 10px; font-weight: 800; cursor: pointer; }
.sort-button.active { border-color: var(--ink); background: var(--ink); color: #fffaf0; }
.export-button { min-height: 34px; padding: 0 14px; display: inline-flex; align-items: center; border: 1px solid var(--ink); border-radius: 999px; color: var(--ink); font-size: 10px; font-weight: 800; text-decoration: none; }
.ratings-table { min-width: 780px; }
.ratings-table td { display: table-cell; vertical-align: middle; }
.ratings-table td:first-child { width: 55%; }
.ratings-table td:first-child strong { display: block; margin-bottom: 3px; font-weight: 750; line-height: 1.35; }
.ratings-table td:first-child span { display: block; }
.ratings-table th:not(:first-child), .ratings-table td:not(:first-child) { white-space: nowrap; }
.score { display: inline-grid; place-items: center; width: 34px; height: 30px; border-radius: 999px; background: var(--paper-deep); font-size: 11px; font-weight: 850; }
.score-1 { background: #efd5d8; color: #802d3b; }
.score-2 { background: #f4dfd3; color: #8a4c25; }
.score-3 { background: #f1dfb4; color: #745819; }
.score-4 { background: #dfe8cf; color: #4a6323; }
.score-5 { background: #d4e6d8; color: #24553a; }
.comment-heading { margin: 30px 0 14px; font-family: Georgia, serif; font-size: 21px; font-weight: 400; }
.comment-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.comment-card { padding: 16px 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.4); }
.comment-top { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 9px; }
.comment-top strong { display: block; font-size: 12px; font-weight: 750; line-height: 1.35; }
.comment-top span:not(.score) { color: var(--muted); font-size: 10px; }
.comment-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
@media (max-width: 720px) {
  .tester-badge { padding: 4px 7px; font-size: 8px; }
  .question-view.with-rating .question-card { height: min(41svh, 350px); margin: 10px auto; }
  .rating-bar { padding: 12px 12px 14px; gap: 8px; border-radius: 18px; }
  .rating-dot { width: 40px; height: 40px; font-size: 14px; }
  .rating-scale { gap: 6px; }
  .rating-comment { flex-direction: column; align-items: stretch; }
  .rating-comment-save { width: 100%; }
  .rating-tools { flex-direction: column; align-items: stretch; }
  .export-button { justify-content: center; }
}
@media (max-height: 670px) and (max-width: 720px) {
  .question-view.with-rating .question-card { height: 34svh; }
  .question-view.with-rating .question-text { font-size: clamp(20px, 6.2vw, 28px); }
}
