/* Customer site. Colors and the font come from theme.css (dark default, light "Heller Modus"). */

* { box-sizing: border-box; }
body { margin: 0; font-size: 15px; }
button, input, select, textarea { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; }
[hidden] { display: none !important; }
svg { fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
h2[tabindex]:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--surface); color: var(--text); padding: 12px; border-radius: 8px; z-index: 5; }
.skip-link:focus { top: 16px; }

/* Header band, full width like the wiki */
.site-header { background: var(--header-bg); border-bottom: 2px solid var(--header-line); color: var(--header-text); box-shadow: 0 4px 20px rgb(7 25 57 / 16%); }
.header-inner { max-width: 1336px; margin: 0 auto; padding: 0 64px; min-height: 76px; display: flex; align-items: center; gap: 40px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--header-text); border-radius: 8px; }
.navigation { display: flex; gap: 4px; }
.navigation a { padding: 9px 14px; border-radius: 8px; font-size: 14px; font-weight: 700; color: var(--header-muted); text-decoration: none; }
.navigation a:hover { color: var(--header-text); background: #ffffff14; }
.navigation a[aria-current="page"] { color: var(--header-text); background: var(--header-active); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.account-nav { background: #ffffff10; border: 1px solid #ffffff38; border-radius: 8px; padding: 9px 15px; font-size: 13px; font-weight: 700; color: var(--header-text); max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-nav:hover { background: #ffffff24; }
.site-header :focus-visible { outline-color: #00e6fa; }

.site-wrap { min-height: calc(100svh - 78px); max-width: 1336px; padding: 0 64px; margin: 0 auto; display: flex; flex-direction: column; }
.page-main { flex: 1; display: flex; flex-direction: column; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--done); flex-shrink: 0; }

/* Login and account */
.main-layout { flex: 1; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 70px; padding: 80px 0 84px; }
.introduction { padding-bottom: 12px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; margin: 0 0 22px; }
.eyebrow > span { width: 22px; height: 2px; border-radius: 1px; background: var(--accent); }
h1 { font-size: clamp(36px, 4.05vw, 54px); font-weight: 800; line-height: 1.12; letter-spacing: -1.2px; margin: 0 0 21px; text-wrap: balance; }
h1 span { color: var(--accent); }
.intro-copy { color: var(--muted); font-size: 16px; line-height: 1.75; max-width: 420px; margin: 0; }
.coming-next { margin-top: 48px; }
.section-label { font-size: 12px; text-transform: uppercase; letter-spacing: 1.4px; color: var(--muted); font-weight: 800; margin: 0 0 20px; }
.feature-row { display: flex; align-items: center; gap: 15px; margin-top: 22px; }
.feature-icon { width: 40px; height: 40px; border: 1px solid var(--border); background: var(--surface); border-radius: 11px; color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.feature-icon svg { width: 19px; height: 19px; }
.feature-row h2 { font-size: 15px; font-weight: 800; margin: 0 0 4px; }
.feature-row p { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.5; }
.auth-area { width: 100%; max-width: 470px; justify-self: end; position: relative; }
.auth-area::before { content: ""; position: absolute; z-index: -1; inset: -60px -45px 0; background: var(--glow); }
.auth-card { background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--primary); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 36px 36px 0; overflow: hidden; }
.auth-view { padding-bottom: 32px; }
.auth-view:has(.card-footer) { padding-bottom: 0; }
.card-symbol { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--accent-soft); border: 1px solid var(--accent-border); color: var(--accent); margin-bottom: 24px; }
.card-symbol svg { width: 24px; height: 24px; }
.auth-card h2 { font-size: 26px; font-weight: 800; line-height: 1.25; letter-spacing: -.5px; margin: 0 0 12px; }
.card-description { font-size: 14.5px; line-height: 1.7; color: var(--muted); margin: 0 0 26px; }
label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 9px; color: var(--text); }
input[type="email"], .code-input, .text-input { height: 48px; border: 1px solid var(--border-strong); border-radius: 8px; width: 100%; padding: 0 14px; background: var(--input-bg); color: var(--text); font-size: 15px; transition: border-color .15s, box-shadow .15s; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input[type="email"]:focus, .code-input:focus, .text-input:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 3px var(--accent-soft); }
input[type="email"]:disabled, .code-input:disabled, .text-input:disabled { opacity: .6; }
.button { width: 100%; min-height: 46px; border-radius: 8px; border: 1px solid transparent; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 11px 16px; font-size: 14px; font-weight: 800; text-decoration: none; transition: background .15s, border-color .15s, box-shadow .15s; line-height: 1.4; }
.button svg { width: 17px; height: 17px; }
.button-primary { color: var(--on-primary); background: var(--primary); box-shadow: 0 3px 9px rgb(0 90 255 / 14%); }
.button-primary:hover { background: var(--primary-hover); }
.button-primary:disabled { opacity: .55; }
#send-link { margin-top: 15px; }
.button-secondary { background: var(--surface-2); color: var(--text); border-color: var(--border-strong); }
.button-secondary:hover { background: var(--surface-3); }
.button-secondary:disabled { color: var(--faint); }
.button-text { display: block; margin: 18px auto 0; padding: 4px; border: 0; background: transparent; color: var(--link); font-size: 14px; font-weight: 700; text-underline-offset: 4px; }
.button-text:hover { text-decoration: underline; }
.button-text:disabled { color: var(--faint); }
.password-note { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 13px; line-height: 1.5; margin: 18px 0 28px; }
.password-note svg { width: 14px; height: 14px; }
.card-footer { border-top: 1px solid var(--border); background: var(--surface-2); margin: 28px -36px 0; padding: 18px 31px; color: var(--muted); font-size: 13px; line-height: 1.7; text-align: center; }
.password-note + .card-footer { margin-top: 0; }
.auth-caption { display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin: 22px 0 0; }
.auth-caption > span { color: var(--accent); font-size: 15px; }
.error-message { border: 1px solid var(--danger-border); background: var(--danger-bg); border-radius: 8px; font-size: 14px; color: var(--danger-text); line-height: 1.6; padding: 10px 12px; margin: 14px 0; overflow-wrap: anywhere; }
.email-display { font-size: 16px; font-weight: 800; overflow-wrap: anywhere; margin: -14px 0 22px; }
.supporting-copy { font-size: 14px; color: var(--muted); line-height: 1.7; margin: 0 0 22px; }
.code-input { height: 56px; font-size: 24px; font-weight: 800; letter-spacing: .35em; text-align: center; font-variant-numeric: tabular-nums; margin-bottom: 12px; }
#code-form { margin: 0 0 14px; }
.preview-box { background: var(--surface-2); border: 1px dashed var(--border-strong); border-radius: 10px; padding: 15px; margin-bottom: 20px; }
.preview-label { display: block; color: var(--accent); font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; }
.preview-box p { font-size: 13.5px; line-height: 1.6; color: var(--muted); margin: 8px 0 12px; }
.preview-box strong { color: var(--text); }
.preview-box .button { min-height: 40px; font-size: 13px; }
.account-status { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 800; color: var(--success-text); margin: 0 0 12px; }
.account-details { padding: 16px; border: 1px solid var(--border); background: var(--surface-2); border-radius: 10px; margin-bottom: 22px; }
.account-details span { display: block; color: var(--muted); font-size: 12.5px; margin-bottom: 5px; }
.account-details strong { font-size: 15px; font-weight: 800; overflow-wrap: anywhere; }
.account-feedback-link { margin-bottom: 12px; }
.site-footer { border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 20px; min-height: 72px; align-items: center; font-size: 13px; color: var(--muted); }
.spinner { width: 19px; height: 19px; border-radius: 50%; border: 2px solid var(--border-strong); border-top-color: var(--accent); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
@media (min-width: 1440px) { .main-layout { padding-top: 100px; padding-bottom: 100px; } }
@media (max-width: 1050px) {
  .header-inner, .site-wrap { padding-left: 36px; padding-right: 36px; }
  .header-inner { gap: 24px; }
  .main-layout { gap: 40px; padding: 60px 0; }
  .auth-card { padding-left: 28px; padding-right: 28px; }
  .card-footer { margin-left: -28px; margin-right: -28px; padding-left: 25px; padding-right: 25px; }
  .auth-card h2 { font-size: 23px; }
  .desktop-break { display: none; }
}
@media (max-width: 790px) {
  .header-inner { flex-wrap: wrap; gap: 10px 16px; padding: 12px 16px 0; min-height: 0; }
  .site-wrap { padding: 0 16px; min-height: 0; }
  .brand-logo { width: 108px; height: 26px; }
  .brand-suffix { font-size: 12.5px; }
  .navigation { order: 3; width: 100%; margin: 0 -6px; overflow-x: auto; padding-bottom: 8px; }
  .navigation a { padding: 8px 12px; font-size: 14px; white-space: nowrap; }
  .account-nav { font-size: 13px; max-width: 150px; padding: 8px 12px; }
  .theme-toggle { width: 36px; height: 36px; }
  .main-layout { display: flex; flex-direction: column; align-items: stretch; gap: 32px; padding: 36px 0 44px; }
  .introduction { padding: 0; }
  .eyebrow { margin-bottom: 16px; font-size: 11.5px; }
  h1 { font-size: 38px; line-height: 1.12; margin-bottom: 15px; letter-spacing: -1px; }
  .intro-copy { font-size: 15px; }
  .coming-next { display: none; }
  .auth-area { max-width: none; }
  .auth-card { padding: 28px 22px 0; }
  .card-symbol { margin-bottom: 20px; }
  .card-footer { margin-left: -22px; margin-right: -22px; }
  .auth-area::before { inset: -30px -16px; }
  .site-footer { min-height: 64px; font-size: 12.5px; }
  input[type="email"], .text-input { font-size: 16px; }
}
@media (max-width: 360px) {
  h1 { font-size: 33px; }
  .auth-card { padding-left: 18px; padding-right: 18px; }
  .card-footer { margin-left: -18px; margin-right: -18px; }
}

/* Feedback board */
.feedback-page { padding: 44px 0 68px; }
.board-heading { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 34px; }
.board-heading h1 { font-size: 38px; letter-spacing: -.8px; line-height: 1.2; margin-bottom: 10px; }
.board-heading > div > p { font-size: 15.5px; line-height: 1.7; color: var(--muted); margin: 0; max-width: 620px; }
.board-heading > .button { width: auto; min-width: 150px; flex-shrink: 0; margin-top: 25px; }
.feedback-layout { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 30px; max-width: 980px; }
.board-tabs-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.board-tabs { display: flex; align-items: center; gap: 24px; }
.board-tabs button { border: 0; background: transparent; padding: 0 0 14px; position: relative; color: var(--muted); font-size: 14.5px; line-height: 1.6; font-weight: 700; }
.board-tabs button.active, .board-tabs button[aria-pressed="true"] { color: var(--text); font-weight: 800; }
.board-tabs button.active::after, .board-tabs button[aria-pressed="true"]::after { content: ""; position: absolute; bottom: -1px; height: 3px; border-radius: 2px; left: 0; right: 0; background: var(--accent); }
.board-tabs button:hover { color: var(--text); }
.feedback-count { font-size: 13px; color: var(--muted); padding-bottom: 13px; white-space: nowrap; }
.feedback-filters { display: grid; grid-template-columns: minmax(160px, 1fr) 190px 160px; gap: 10px; margin-bottom: 18px; }
.search-control { position: relative; }
.search-control > svg { width: 17px; height: 17px; color: var(--muted); position: absolute; left: 13px; top: 13px; pointer-events: none; }
.feedback-filters input, .feedback-filters select { width: 100%; height: 44px; color: var(--text); background: var(--input-bg); border: 1px solid var(--border); border-radius: 8px; font-size: 14px; line-height: 1.5; }
.feedback-filters input { padding: 0 12px 0 38px; }
.feedback-filters select { padding: 0 8px 0 11px; text-overflow: ellipsis; }
.feedback-filters :is(input, select):focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 3px var(--accent-soft); }
.feedback-list { display: grid; gap: 12px; }
.feedback-card { border: 1px solid var(--border); background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; transition: border-color .15s, box-shadow .15s, transform .15s; }
.feedback-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-lg); }
.feedback-card-button { display: block; color: inherit; border: 0; text-align: left; background: transparent; width: 100%; padding: 20px 22px 18px; }
.feedback-card-button:focus-visible { outline-offset: -4px; border-radius: 14px; }
.feedback-card-top { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-bottom: 10px; }
.feedback-category, .feedback-state { display: inline-flex; align-items: center; width: fit-content; gap: 5px; border-radius: 6px; font-size: 12px; line-height: 1.5; padding: 2px 8px; font-weight: 700; }
.feedback-category { color: var(--chip-text); background: var(--chip); }
.feedback-state { color: var(--success-text); background: var(--success-bg); }
.feedback-state.pending, .feedback-state[data-state="pending"], .feedback-state.is-pending { color: var(--warn-text); background: var(--warn-bg); }
.feedback-title { font-size: 17px; font-weight: 800; letter-spacing: -.2px; line-height: 1.4; margin: 0 0 6px; overflow-wrap: anywhere; }
.feedback-excerpt { margin: 0 0 14px; color: var(--muted); font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feedback-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); line-height: 1.6; }
.feedback-meta time { color: inherit; }
.feedback-meta > :is(span, time) + span::before { content: "·"; margin-right: 8px; color: var(--faint); }
.feedback-meta .feedback-author { font-weight: 700; color: var(--accent); }
.feedback-empty { background: var(--surface); border: 1px dashed var(--border-strong); border-radius: 14px; padding: 42px 26px; text-align: center; color: var(--muted); font-size: 14.5px; line-height: 1.7; }
.feedback-empty h2, .feedback-empty h3 { font-size: 18px; color: var(--text); margin: 0 0 8px; }
.feedback-empty p { margin: 0; }
.feedback-empty .button { width: auto; margin: 18px auto 0; }
.feedback-status, .login-context { border: 1px solid var(--success-border); background: var(--success-bg); color: var(--success-text); border-radius: 8px; padding: 12px 15px; font-size: 14px; line-height: 1.6; margin: 0 0 18px; }
.feedback-sidebar { padding-top: 2px; }
.sidebar-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); padding: 24px 22px; }
.sidebar-symbol { width: 38px; height: 38px; display: grid; place-items: center; color: var(--accent); border: 1px solid var(--accent-border); background: var(--accent-soft); border-radius: 10px; margin-bottom: 16px; }
.sidebar-symbol svg { width: 19px; height: 19px; }
.sidebar-card h2 { font-size: 19px; line-height: 1.35; font-weight: 800; margin: 0 0 10px; text-wrap: balance; }
.sidebar-card > p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--muted); }
.sidebar-divider { height: 1px; background: var(--border); margin: 22px 0; }
.sidebar-card h3 { font-size: 14px; line-height: 1.6; font-weight: 800; margin: 0 0 16px; }
.feedback-steps { padding: 0; margin: 0; list-style: none; display: grid; gap: 16px; }
.feedback-steps > li { display: flex; gap: 11px; }
.feedback-steps > li > span { width: 24px; height: 24px; flex-shrink: 0; display: grid; place-items: center; background: var(--accent-soft); border: 1px solid var(--accent-border); border-radius: 50%; color: var(--accent); font-size: 12px; font-weight: 800; }
.feedback-steps strong { display: block; font-size: 14px; font-weight: 800; color: var(--text); line-height: 1.5; margin: 1px 0 2px; }
.feedback-steps p { font-size: 13px; line-height: 1.6; color: var(--muted); margin: 0; }

/* Submission and detail dialogs */
.feedback-dialog { width: min(600px, calc(100% - 40px)); max-height: calc(100svh - 48px); overflow-y: auto; padding: 32px; border: 1px solid var(--border); border-radius: 16px; color: var(--text); background: var(--surface); box-shadow: var(--shadow-lg); }
.feedback-dialog::backdrop { background: var(--backdrop); backdrop-filter: blur(3px); }
.dialog-close { display: grid; place-items: center; position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; }
.dialog-close svg { width: 16px; height: 16px; }
.dialog-close:hover { background: var(--surface-3); color: var(--text); }
.dialog-eyebrow { font-size: 12px; color: var(--accent); text-transform: uppercase; letter-spacing: 1.2px; font-weight: 800; margin-bottom: 12px; padding-right: 20px; }
.feedback-dialog h2 { font-size: 25px; font-weight: 800; letter-spacing: -.4px; line-height: 1.3; margin: 0 20px 10px 0; overflow-wrap: anywhere; }
.dialog-intro { color: var(--muted); font-size: 14.5px; line-height: 1.7; margin: 0 0 24px; }
.form-field { margin-bottom: 20px; }
.form-field label { font-size: 13.5px; margin-bottom: 8px; }
.form-field input, .form-field select, .form-field textarea { width: 100%; border: 1px solid var(--border-strong); border-radius: 8px; padding: 12px; background: var(--input-bg); color: var(--text); font-size: 15px; line-height: 1.6; }
.form-field input, .form-field select { height: 46px; }
.form-field select { padding: 0 10px; }
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field :is(input, select, textarea):focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 3px var(--accent-soft); }
.form-moderation-note { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--muted); line-height: 1.6; margin: 0 0 22px; }
.form-moderation-note svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--done); }
.feedback-detail-dialog { width: min(680px, calc(100% - 40px)); padding-top: 36px; }
#feedback-detail-content > .feedback-card-top { margin-bottom: 16px; padding-right: 30px; }
#feedback-detail-content > .feedback-meta { margin: 14px 0 22px; }
.feedback-detail-body { color: var(--text-2); font-size: 15.5px; line-height: 1.75; white-space: pre-line; overflow-wrap: anywhere; border-top: 1px solid var(--border); margin-top: 22px; padding-top: 20px; }
.feedback-detail-body p { margin: 0 0 16px; }
.feedback-state[data-state="declined"], .feedback-state[data-state="merged"] { color: var(--muted); background: var(--surface-3); }
.feedback-board > .error-message { margin: 0 0 18px; }
.feedback-loading { display: flex; align-items: center; justify-content: center; gap: 11px; padding: 42px 26px; color: var(--muted); font-size: 14.5px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.feedback-loading .spinner { width: 17px; height: 17px; }
.moderation-note { margin: 12px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); font-size: 13.5px; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }

/* Votes */
.feedback-card { display: flex; align-items: flex-start; }
.feedback-card > .feedback-card-button { flex: 1; min-width: 0; padding-left: 16px; }
.vote-button { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; width: 52px; min-height: 60px; margin: 20px 0 0 20px; padding: 6px 4px; border: 1px solid var(--border-strong); border-radius: 10px; background: transparent; color: var(--text); font-size: 15px; font-weight: 800; line-height: 1.3; transition: background .15s, border-color .15s, color .15s; }
.vote-button svg { width: 16px; height: 16px; stroke-width: 2.4; }
.vote-button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.vote-button[aria-pressed="true"] { color: var(--accent); background: var(--accent-soft); border-color: var(--accent); }
:root[data-theme="light"] .vote-button[aria-pressed="true"] { color: var(--on-primary); background: var(--primary); }
.vote-button:disabled { color: var(--faint); border-color: var(--border); }
.vote-button.is-wide { flex-direction: row; gap: 8px; width: auto; min-height: 42px; margin: 0; padding: 8px 16px; font-size: 14px; }
.vote-button.is-wide .vote-count { min-width: 24px; padding: 1px 8px; border-radius: 10px; background: var(--surface-3); color: var(--text); font-size: 13px; }
.vote-button.is-wide[aria-pressed="true"] .vote-count { background: color-mix(in srgb, var(--accent) 22%, transparent); color: inherit; }
.detail-vote { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 4px 0 0; }
.detail-vote-hint { font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.detail-retry { width: auto; margin-top: 18px; }

/* Comments */
.comments { border-top: 1px solid var(--border); margin-top: 24px; padding-top: 20px; }
.comments h3 { font-size: 17px; font-weight: 800; margin: 0 0 14px; }
.comment-list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.comment { border: 1px solid var(--border); background: var(--surface-2); border-radius: 12px; padding: 13px 15px; }
.comment.is-team { border-color: var(--accent-border); background: var(--accent-soft); }
.comment.is-pending { border-style: dashed; }
.comment-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; font-size: 13px; color: var(--muted); }
.comment-author { font-weight: 800; color: var(--text); }
.comment.is-team .comment-author { color: var(--accent); }
.comment-body { margin: 0; color: var(--text-2); font-size: 14.5px; line-height: 1.7; white-space: pre-line; overflow-wrap: anywhere; }
.comment-empty, .comment-hint, .comment-login p { color: var(--muted); font-size: 14.5px; line-height: 1.7; margin: 0 0 16px; }
.comment-login { border: 1px dashed var(--border-strong); border-radius: 12px; padding: 16px; text-align: center; }
.comment-login p { margin-bottom: 12px; }
.comment-login .button, .comment-form .button { width: auto; margin: 0 auto; }
.comment-form .button { margin: 0 0 0 auto; }
.comment-form .form-field { margin-bottom: 10px; }
.comment-form .form-field textarea { min-height: 92px; }
.comment-form .form-moderation-note { margin-bottom: 14px; }
.comment-form .error-message { margin-top: 0; }

@media (max-width: 1050px) {
  .feedback-filters { grid-template-columns: minmax(0, 1fr) 170px; }
  .search-control { grid-column: 1 / -1; }
  .sidebar-card { padding: 21px 19px; }
}
@media (max-width: 790px) {
  .feedback-page { padding-top: 28px; padding-bottom: 36px; }
  .board-heading { gap: 18px; margin-bottom: 26px; }
  .board-heading h1 { font-size: 32px; margin-bottom: 8px; }
  .board-heading > div > p { font-size: 15px; }
  .board-heading > .button { min-width: 120px; padding: 10px 14px; gap: 6px; }
  .feedback-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .feedback-sidebar { display: grid; grid-template-columns: 1fr; }
  .sidebar-card { padding: 22px; }
  .feedback-filters { grid-template-columns: minmax(0, 1fr) 160px; }
  .feedback-filters input { font-size: 16px; }
  .feedback-card-button { padding: 18px; }
  .vote-button { margin: 18px 0 0 14px; width: 48px; }
  .feedback-card > .feedback-card-button { padding-left: 12px; }
  .feedback-title { font-size: 16px; }
  .feedback-dialog { padding: 28px 20px 22px; }
  .feedback-dialog h2 { font-size: 22px; margin-top: 4px; }
  .form-field input, .form-field select, .form-field textarea { font-size: 16px; }
}
@media (max-width: 460px) {
  .board-heading { align-items: flex-start; flex-wrap: wrap; gap: 16px; }
  .board-heading > .button { width: 100%; margin-top: 0; }
  .board-tabs { gap: 18px; }
  .feedback-filters { grid-template-columns: minmax(0, 1fr) 140px; gap: 8px; }
  .feedback-filters select { font-size: 13.5px; }
  .feedback-dialog { width: calc(100% - 24px); max-height: calc(100svh - 24px); }
}

/* Navigation targets, stage badges and notices */
h1[tabindex]:focus, h2[tabindex="-1"]:focus, p[tabindex="-1"]:focus { outline: none; }
.feedback-steps a { color: var(--link); text-underline-offset: 3px; }
.feedback-stage, .feedback-version { display: inline-flex; align-items: center; width: fit-content; gap: 5px; border-radius: 6px; font-size: 12px; line-height: 1.5; padding: 2px 8px; font-weight: 800; }
.feedback-stage { --stage: var(--planned); color: var(--stage); background: color-mix(in srgb, var(--stage) 16%, transparent); }
.feedback-stage[data-stage="in_progress"] { --stage: var(--progress); }
.feedback-stage[data-stage="completed"] { --stage: var(--done); }
.stage-version { font-weight: 700; opacity: .85; }
.stage-version::before { content: "·"; margin-right: 5px; }
.feedback-version { color: var(--muted); background: transparent; border: 1px solid var(--border-strong); font-weight: 700; padding: 1px 7px; }
.vote-button.is-completed:disabled { color: var(--done); border-color: color-mix(in srgb, var(--done) 40%, transparent); background: color-mix(in srgb, var(--done) 8%, transparent); }
.blocked-notice { border: 1px solid var(--warn-border); background: var(--warn-bg); color: var(--warn-text); border-radius: 8px; padding: 12px 15px; font-size: 14px; line-height: 1.6; margin: 0 0 18px; }
.board-heading + .blocked-notice { margin-top: -16px; margin-bottom: 24px; }

/* Roadmap */
.board-heading > a.button { width: auto; min-width: 0; flex-shrink: 0; margin-top: 25px; }
.roadmap-tabs { display: none; margin-bottom: 16px; border-bottom: 1px solid var(--border); }
.tab-count { color: var(--muted); font-weight: 700; margin-left: 3px; }
.roadmap-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.roadmap-columns > .feedback-loading, .roadmap-columns > .feedback-empty { grid-column: 1 / -1; }
.roadmap-column { --stage: var(--planned); background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--stage); border-radius: 14px; box-shadow: var(--shadow); padding: 16px 14px 14px; }
.roadmap-column[data-stage="in_progress"] { --stage: var(--progress); }
.roadmap-column[data-stage="completed"] { --stage: var(--done); }
.roadmap-column-head { padding: 0 4px 12px; }
.roadmap-column h2 { display: flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 800; margin: 0 0 4px; }
.roadmap-column h2::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--stage); box-shadow: 0 0 0 4px color-mix(in srgb, var(--stage) 18%, transparent); }
.roadmap-count { margin-left: auto; min-width: 24px; padding: 0 7px; border-radius: 6px; border: 1px solid var(--border-strong); color: var(--muted); font-size: 12px; font-weight: 800; line-height: 20px; text-align: center; }
.roadmap-column-head p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--muted); }
.roadmap-items { display: grid; gap: 10px; }
.roadmap-card { background: var(--surface-2); box-shadow: none; border-radius: 12px; }
:root[data-theme="light"] .roadmap-card { background: var(--surface); }
.roadmap-card .feedback-card-button { padding: 14px 14px 12px 12px; }
.roadmap-card .vote-button { width: 46px; min-height: 54px; margin: 14px 0 0 12px; font-size: 14px; }
.roadmap-card .feedback-card-top { margin-bottom: 7px; }
.roadmap-card .feedback-title { font-size: 15px; margin-bottom: 4px; }
.roadmap-empty { margin: 0; padding: 22px 12px; border: 1px dashed var(--border-strong); border-radius: 12px; color: var(--muted); font-size: 13.5px; line-height: 1.6; text-align: center; }
.roadmap-archive h2 { font-size: 22px; font-weight: 800; margin: 10px 0 6px; }
.back-link { display: inline-flex; gap: 6px; margin: 0; padding: 4px 0; text-decoration: none; }
.archive-note { margin: 0 0 20px; font-size: 14.5px; line-height: 1.6; color: var(--muted); }

/* Changelog */
.changelog-list { display: grid; gap: 14px; max-width: 800px; }
.changelog-entry { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); padding: 24px 28px; }
.changelog-head { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-bottom: 8px; }
.changelog-date { font-size: 13.5px; color: var(--muted); font-weight: 700; }
.changelog-entry > h2 { font-size: 22px; font-weight: 800; letter-spacing: -.3px; line-height: 1.35; margin: 0 0 12px; overflow-wrap: anywhere; }
.changelog-body { color: var(--text-2); font-size: 15px; line-height: 1.75; overflow-wrap: anywhere; }
.changelog-body p, .changelog-body ul { margin: 0 0 12px; }
.changelog-body > :last-child { margin-bottom: 0; }
.changelog-body ul { padding-left: 20px; }
.changelog-body li + li { margin-top: 3px; }
.changelog-body h3 { font-size: 12px; font-weight: 800; letter-spacing: 1.3px; text-transform: uppercase; color: var(--accent); margin: 22px 0 8px; }
.changelog-body h3:first-child { margin-top: 4px; }
.changelog-body h4 { font-size: 16px; font-weight: 800; color: var(--text); margin: 14px 0 4px; }
.changelog-body > h3:first-child { margin-top: 0; }
.changelog-body strong { color: var(--text); font-weight: 800; }
.changelog-body a, .changelog-related a { color: var(--link); text-underline-offset: 3px; }
.changelog-related { border-top: 1px solid var(--border); margin-top: 18px; padding-top: 14px; }
.changelog-related h3 { font-size: 13.5px; font-weight: 800; color: var(--muted); margin: 0 0 6px; }
.changelog-related ul { margin: 0; padding-left: 18px; font-size: 14.5px; line-height: 1.7; }
.changelog-more { width: auto; margin-top: 18px; }
.changelog-page > .error-message { max-width: 800px; }

/* Account settings */
.account-section { border-top: 1px solid var(--border); margin-top: 26px; padding-top: 22px; }
.account-section h3 { font-size: 17px; font-weight: 800; margin: 0 0 10px; }
.account-note { font-size: 14px; color: var(--muted); line-height: 1.65; margin: 0 0 14px; }
.account-note p { margin: 0; }
.account-note ul { margin: 2px 0 0; padding-left: 18px; }
.toggle-row { display: flex; align-items: center; gap: 11px; margin-bottom: 10px; }
.toggle-row label { margin: 0; font-size: 14.5px; font-weight: 700; cursor: pointer; }
.toggle-input { appearance: none; flex-shrink: 0; position: relative; width: 40px; height: 23px; margin: 0; border-radius: 12px; background: var(--border-strong); cursor: pointer; transition: background .15s; }
.toggle-input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / 25%); transition: transform .15s; }
.toggle-input:checked { background: var(--primary); }
.toggle-input:checked::after { transform: translateX(17px); }
.toggle-input:disabled { opacity: .6; cursor: default; }
.name-form { display: flex; gap: 8px; margin-bottom: 8px; }
.name-form .text-input { flex: 1; min-width: 0; height: 44px; }
.name-form .button { width: auto; min-height: 44px; padding: 0 16px; flex-shrink: 0; }
.field-hint { font-size: 13px; color: var(--muted); line-height: 1.55; margin: 7px 0 0; }
.author-name { font-weight: 800; color: var(--text-2); }
.account-saved { min-height: 0; margin: 0; font-size: 13.5px; color: var(--success-text); line-height: 1.6; }
.account-saved:empty { display: none; }
.button-danger { color: #fff; background: var(--danger); }
.button-danger:hover { background: var(--danger-hover); }
.button-danger:disabled { opacity: .55; }
.button-danger-outline { background: transparent; color: var(--danger-text); border-color: var(--danger-border); }
.button-danger-outline:hover { background: var(--danger-bg); }
.delete-confirm { border: 1px solid var(--danger-border); background: var(--danger-bg); border-radius: 12px; padding: 16px; }
.delete-confirm-title { font-size: 15px; font-weight: 800; color: var(--danger-text); margin: 0 0 6px; }
.delete-confirm .error-message { margin-top: 0; }
.delete-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }

/* Footer */
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: var(--muted); text-underline-offset: 3px; }
.footer-links a:hover { color: var(--link); }

@media (max-width: 1050px) {
  .roadmap-columns { gap: 14px; }
  .roadmap-column { padding: 14px 11px 11px; }
}
@media (max-width: 790px) {
  .roadmap-tabs { display: flex; }
  .roadmap-columns { grid-template-columns: minmax(0, 1fr); }
  .roadmap-column { display: none; background: transparent; border: 0; box-shadow: none; padding: 0; }
  .roadmap-column.is-active { display: block; }
  /* The pressed tab already names the column; keep the heading for screen readers. */
  .roadmap-column h2 { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .roadmap-column-head { padding: 0 2px 12px; }
  .roadmap-card { background: var(--surface); }
  .changelog-entry { padding: 20px; }
  .changelog-entry > h2 { font-size: 19px; }
  .board-heading > a.button { min-width: 0; padding: 10px 14px; gap: 6px; }
  .site-footer { flex-wrap: wrap; padding: 18px 0; gap: 10px 20px; }
}
@media (max-width: 460px) {
  .board-heading > a.button { margin-top: 0; }
  .delete-actions { grid-template-columns: 1fr; }
}

/* Filter bars on the roadmap and news pages */
.page-filters { grid-template-columns: minmax(0, 1fr) 220px; max-width: 760px; margin-bottom: 22px; }
.changelog-page .page-filters { max-width: 800px; }
.back-link.button-text { margin: 0 0 16px; padding: 4px 0; }
@media (max-width: 460px) { .page-filters { grid-template-columns: minmax(0, 1fr); } }

/* Global search in the header */
.global-search { position: relative; flex: 1; max-width: 400px; margin-left: auto; }
.global-search + .header-actions { margin-left: 0; }
.global-search-box { position: relative; }
.global-search-box > svg { position: absolute; left: 13px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); color: #00e6fa; pointer-events: none; }
.global-search-box input { width: 100%; height: 42px; border-radius: 10px; border: 1px solid #ffffff40; background: #ffffff1a; color: var(--header-text); padding: 0 64px 0 40px; font-size: 14px; }
.global-search-box input::placeholder { color: #e1ebff; opacity: .85; }
.global-search-box input:focus { outline: 0; border-color: #00e6fa; box-shadow: 0 0 0 3px rgb(0 230 250 / 17%); }
.global-search-box input::-webkit-search-cancel-button { display: none; }
.global-search-key { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font: 700 11px var(--font); color: #e1ebff; background: #ffffff1f; border: 1px solid #ffffff30; border-radius: 5px; padding: 2px 6px; pointer-events: none; }
.global-search-open { display: none; }
.global-search-results { position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; right: 0; min-width: 320px; max-height: min(70svh, 520px); overflow-y: auto; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 8px; }
.search-group + .search-group { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 6px; }
.search-group-label { margin: 6px 10px 4px; font-size: 11.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); }
.search-result { display: block; padding: 9px 10px; border-radius: 9px; text-decoration: none; }
.search-result:hover, .search-result.is-active, .search-result:focus-visible { background: var(--surface-3); outline: none; }
.search-result-title { display: block; font-size: 14.5px; font-weight: 800; line-height: 1.4; overflow-wrap: anywhere; }
.search-result-meta { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.search-empty { margin: 0; padding: 14px 10px; font-size: 14px; color: var(--muted); }
@media (max-width: 1050px) { .global-search { max-width: 280px; } .global-search-key { display: none; } .global-search-box input { padding-right: 12px; } }
@media (max-width: 790px) {
  .global-search { flex: 0 0 auto; max-width: none; position: static; }
  .global-search-open { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; border: 1px solid #ffffff38; background: #ffffff10; color: var(--header-text); padding: 0; }
  .global-search-open svg { width: 18px; height: 18px; }
  .global-search-box { display: none; }
  .global-search.is-open .global-search-box { display: block; position: absolute; left: 16px; right: 16px; top: 10px; z-index: 31; }
  .global-search.is-open .global-search-box input { background: #0b2f86; }
  .site-header .header-inner { position: relative; }
  .global-search-results { left: 16px; right: 16px; top: 58px; min-width: 0; }
}

/* Long news entries: first points, then "Mehr lesen" */
.changelog-body.is-collapsed .is-folded { display: none; }
.changelog-body.is-collapsed { position: relative; }
.changelog-toggle { margin: 10px 0 0; padding: 4px 0; text-align: left; }
.board-heading > #changelog-subscribe { width: auto; min-width: 0; flex-shrink: 0; margin-top: 25px; }
#changelog-subscribe[aria-pressed="true"] { color: var(--success-text); border-color: var(--success-border); background: var(--success-bg); }
.changelog-page > .feedback-status { max-width: 800px; }
@media (max-width: 460px) { .board-heading > #changelog-subscribe { width: 100%; margin-top: 0; } }
