/* Creator area: tour, "Your permissions", review. Binding design: tour/DESIGN-VORGABE-RUNDGANG.md (19.11.2026). */
.tour,.perm-section{
  --t-veil:rgba(20,24,21,.60);--t-ring:rgba(250,249,245,.50);--t-surface:#FAF9F5;--t-ink:#141815;--t-text:#5B645B;
  --t-line:rgba(20,24,21,.15);--t-action:#294751;--t-tint:#DFE8EB;--t-field:#70796F;--t-good:#2F5D3A;--t-warn:#8A5A14;
  --t-bad:#9B3B2B;--t-bad-bg:#F3E3DE;
  --t-shadow-card:0 24px 64px rgba(20,24,21,.30),0 2px 8px rgba(20,24,21,.16);
  --t-shadow-sheet:0 -12px 40px rgba(20,24,21,.24);--t-shadow-sheet-top:0 12px 40px rgba(20,24,21,.24);
  --t-out:cubic-bezier(.2,.7,.2,1);--t-in:cubic-bezier(.4,0,1,1)}
html.tour-open{scroll-behavior:auto!important}

/* ---------------------------------------------------------------- veil and window */
.tour{position:fixed;inset:0;z-index:1000;touch-action:none;overscroll-behavior:contain;font-family:Manrope,Arial,sans-serif;color:var(--t-ink)}
.tour[hidden]{display:none}
.tour-shade{position:fixed;inset:0;z-index:0}
.tour-hole{position:fixed;left:0;top:0;z-index:1;border-radius:0;background-color:transparent;box-shadow:0 0 0 200vmax var(--t-veil);pointer-events:none;
  transition:background-color 280ms var(--t-out)}
.tour-hole::before{content:"";position:absolute;inset:-1px;border:1px solid var(--t-ring);border-radius:inherit;transition:opacity 280ms var(--t-out)}
.tour-hole.closed{background-color:var(--t-veil);transition:background-color 160ms var(--t-in)}
.tour-hole.closed::before,.tour-hole.closed::after{opacity:0;transition-duration:160ms}
.tour-hole.open-bottom::after{content:"";position:absolute;left:0;right:0;bottom:0;height:40px;
  background:linear-gradient(to bottom,rgba(20,24,21,0),rgba(20,24,21,.60));transition:opacity 280ms var(--t-out)}
.tour-hole.open-bottom::before{border-bottom:0;border-image:linear-gradient(to bottom,rgba(250,249,245,.50) calc(100% - 40px),rgba(250,249,245,0)) 1}
.tour-hole.band::before{inset:-1px 0;border-left:0;border-right:0}

/* ---------------------------------------------------------------- cards, shared */
.tour-card{position:fixed;left:0;top:0;z-index:2;box-sizing:border-box;display:flex;flex-direction:column;max-height:calc(100vh - 48px);
  background:var(--t-surface);color:var(--t-ink);border-radius:0;border:0;box-shadow:var(--t-shadow-card);text-align:left}
.tour-inner{display:flex;flex-direction:column;flex:1 1 auto;min-height:0}
.tour-scroll{flex:0 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;touch-action:pan-y;margin:-8px -8px 0;padding:8px 8px 0}
.tour p,.tour h2{margin:0}
.tour-meta{display:flex;justify-content:space-between;align-items:center;height:20px}
.tour-step{font:650 12px/20px Manrope,Arial,sans-serif;letter-spacing:.02em;color:var(--t-text);font-variant-numeric:tabular-nums}
.tour .tour-skip{position:relative;background:none;border:0;padding:0;margin:0;min-height:0;font:650 12px/20px Manrope,Arial,sans-serif;color:var(--t-text);cursor:pointer;text-decoration:none}
.tour .tour-skip::after{content:"";position:absolute;inset:-12px}
.tour .tour-skip:hover,.tour .tour-skip:focus-visible{color:var(--t-ink);text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px}
.tour .tour-title{margin-top:12px;font:540 26px/30px Bricolage,Arial,sans-serif;letter-spacing:-.035em;color:var(--t-ink);text-wrap:balance}
.tour .tour-title:focus{outline:none}
.tour .tour-text{margin-top:8px;font:400 15px/25px Manrope,Arial,sans-serif;color:var(--t-text);min-height:75px}
.tour .tour-message{margin-top:12px;font-size:13px;line-height:1.8;padding:12px 16px;border-left:3px solid var(--t-bad);background:var(--t-bad-bg);color:var(--t-ink)}
.tour .tour-message:empty{display:none}
.tour-progress{flex:none;margin-top:24px;height:2px;background:linear-gradient(var(--t-line),var(--t-line)) left bottom/100% 1px no-repeat}
.tour-progress i{display:block;height:2px;background:var(--t-ink);transform:scaleX(0);transform-origin:left center;transition:transform 420ms var(--t-out)}
.tour-actions{flex:none;margin-top:20px;height:44px;display:flex;justify-content:space-between;align-items:center}
.tour-go{display:flex;align-items:center;gap:20px;margin-left:auto}
.tour .tour-next{min-height:44px;height:44px;padding:0 16px 0 20px;gap:12px;justify-content:center;min-width:112px;font-size:13px;line-height:1.5;white-space:nowrap}
.tour .tour-next:active{filter:brightness(.96)}
.tour .tour-next:disabled{cursor:default}
.tour-arrow{flex:none;width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.tour .tour-back{position:relative}
.tour .tour-back::after{content:"";position:absolute;inset:-6px -8px}
.tour .tour-back[hidden]{display:none}
.tour .button.primary:focus-visible,.tour .plain-button:focus-visible,.tour .link-button:focus-visible,.tour .tour-skip:focus-visible{outline:2px solid var(--t-action);outline-offset:3px}

/* ---------------------------------------------------------------- step card */
.tour-card[data-kind="spot"]{width:480px;padding:32px 32px 24px}

/* ---------------------------------------------------------------- letter card */
.tour-card[data-kind="welcome"],.tour-card[data-kind="end"]{width:520px;max-width:calc(100vw - 48px);padding:48px 48px 40px}
.tour-mark{display:block;width:111px;height:20px}
.tour-card[data-kind="welcome"] .tour-title,.tour-card[data-kind="end"] .tour-title{margin-top:32px;font-size:40px;line-height:44px;letter-spacing:-.045em}
.tour-card[data-kind="welcome"] .tour-text,.tour-card[data-kind="end"] .tour-text{margin-top:16px;font-size:16px;line-height:28px;min-height:0}
.tour .tour-aside{margin-top:12px;font:400 13px/22px Manrope,Arial,sans-serif;color:var(--t-text)}
.tour-card[data-kind="welcome"] .tour-actions,.tour-card[data-kind="end"] .tour-actions{margin-top:40px;height:48px}
.tour-card[data-kind="welcome"] .tour-next,.tour-card[data-kind="end"] .tour-next{height:48px;min-height:48px}
.tour-card[data-kind="welcome"] .tour-next{padding:0 20px 0 24px}
.tour-card[data-kind="end"] .tour-next{min-width:128px;padding:0 20px}
.tour .tour-later{height:48px;min-height:48px;padding:0 20px}

/* ---------------------------------------------------------------- permissions card */
.tour-card[data-kind="form"]{width:min(640px,calc(100vw - 48px));padding:32px 40px 24px}
.tour.is-wide .tour-card[data-kind="form"]{width:880px}
.tour-cols{margin-top:12px}
.tour.is-wide .tour-cols{display:grid;grid-template-columns:312px minmax(0,1fr);grid-template-rows:auto auto 1fr;column-gap:56px;
  grid-template-areas:"title list" "text list" "note list"}
.tour.is-wide .tour-cols .tour-title{grid-area:title}.tour.is-wide .tour-cols .tour-text{grid-area:text}
.tour.is-wide .tour-cols .tour-note{grid-area:note}.tour.is-wide .tour-cols .perm-list{grid-area:list;margin-top:0}
.tour-card[data-kind="form"] .tour-title{margin-top:0;font-size:30px;line-height:34px;letter-spacing:-.035em}
.tour-card[data-kind="form"] .tour-text{margin-top:12px;min-height:0}
.tour-cols .perm-list{margin-top:20px}
.tour .tour-note{margin-top:16px;font:400 13px/21px Manrope,Arial,sans-serif;color:var(--t-text)}
.tour .tour-ease{font:400 13px/21px Manrope,Arial,sans-serif;color:var(--t-text)}
.tour .tour-ease-flow{margin-top:16px}
.tour.is-wide .tour-ease-flow,.tour:not(.is-wide) .tour-ease-inline{display:none}

/* ---------------------------------------------------------------- tick rows (tour and dashboard) */
.perm-list{border-bottom:1px solid var(--t-line)}
.perm-item{position:relative;display:grid;grid-template-columns:22px minmax(0,1fr);column-gap:12px;row-gap:4px;padding:16px 0;border-top:1px solid var(--t-line)}
.creator-page .perm-label{display:block;margin:0;font-size:inherit;font-weight:inherit;cursor:pointer}
.perm-label::before{content:"";position:absolute;inset:0}
.perm-name{display:block;font:650 15px/24px Manrope,Arial,sans-serif;color:var(--t-ink)}
.perm-detail{display:block;margin-top:2px;font:400 13.5px/21px Manrope,Arial,sans-serif;color:var(--t-text)}
.perm-meta{grid-column:2;margin:0;font:650 12px/20px Manrope,Arial,sans-serif;color:var(--t-good)}
.perm-meta.off{font-weight:400;color:var(--t-text)}
.creator-page input.check{appearance:none;-webkit-appearance:none;position:relative;z-index:1;display:grid;place-content:center;box-sizing:border-box;
  width:22px;height:22px;min-width:22px;max-width:none;margin:1px 0 0;padding:0;border:1.5px solid var(--t-field);border-radius:2px;background:var(--t-surface);cursor:pointer;
  transition:background-color 120ms var(--t-out),border-color 120ms var(--t-out)}
.creator-page input.check::after{content:"";width:11px;height:6px;border-left:2px solid var(--t-surface);border-bottom:2px solid var(--t-surface);
  transform:translateY(-1px) rotate(-45deg) scale(.6);opacity:0;transition:opacity 120ms var(--t-out),transform 140ms var(--t-out)}
.creator-page input.check:checked{background:var(--t-action);border-color:var(--t-action)}
.creator-page input.check:checked::after{opacity:1;transform:translateY(-1px) rotate(-45deg) scale(1)}
.perm-item:hover input.check:not(:checked),.check-row:hover input.check:not(:checked){border-color:var(--t-action)}
.creator-page input.check:focus-visible{outline:2px solid var(--t-action);outline-offset:3px}
.creator-page input.check:disabled{opacity:.6;cursor:default}

/* ---------------------------------------------------------------- dashboard: your permissions */
.perm-section{margin-top:60px}
.perm-section .perm-title{margin:0;font-size:29px;line-height:1.2}
.perm-intro{margin:8px 0 0;font-size:14px;line-height:1.8;color:var(--t-text);max-width:680px}
.perm-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:28px;align-items:start;margin-top:24px}
.perm-form{background:var(--t-surface);border:1px solid var(--t-line);padding:16px 34px 30px;min-width:0}
.perm-form .perm-item:first-child{border-top:0}
.perm-outro{margin:16px 0 0;font-size:13px;line-height:21px;color:var(--t-text);max-width:560px}
.perm-foot{margin-top:24px;display:flex;align-items:center;gap:12px 20px;flex-wrap:wrap}
.perm-foot .button{height:48px;min-height:48px;padding:0 21px;justify-content:center}
.perm-foot .button:disabled{cursor:default}
.perm-status,.review-status{margin:0;font-size:13px;line-height:21px;color:var(--t-text)}
.perm-status:empty,.review-status:empty{display:none}
.perm-status[data-state="dirty"]{display:flex;align-items:center;gap:8px;color:var(--t-ink);font-weight:650}
.perm-status[data-state="dirty"]::before{content:"";flex:none;width:7px;height:7px;border-radius:50%;background:var(--t-warn)}
.perm-status[data-state="saved"],.review-status[data-state="saved"]{display:flex;align-items:center;gap:8px;color:var(--t-good);font-weight:650}
.perm-status[data-state="error"]{flex-basis:100%;line-height:1.8;padding:12px 16px;border-left:3px solid var(--t-bad);background:var(--t-bad-bg);color:var(--t-ink)}
.status-tick{flex:none;width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}

/* ---------------------------------------------------------------- review card */
.review{border:1px solid var(--t-line);border-radius:0;background:transparent;padding:28px;min-width:0}
.review .review-title{margin:0;font:540 22px/1.3 Bricolage,Arial,sans-serif;letter-spacing:-.03em;color:var(--t-ink)}
.review-intro{margin:8px 0 0;font-size:13.5px;line-height:21px;color:var(--t-text)}
.review .stars{margin:20px 0 0;padding:0;border:0;min-width:0}
.creator-page .review legend.review-label{display:block;padding:0;margin:0 0 4px;font-size:13px;font-weight:650;line-height:1.6;color:var(--t-ink)}
.star-row{display:flex;align-items:center;gap:0;margin-left:-8px}
.creator-page .star{display:grid;place-items:center;width:44px;height:44px;margin:0;cursor:pointer;font-size:inherit}
.star svg{width:28px;height:28px;fill:none;stroke:#70796F;stroke-width:1.5;stroke-linejoin:round;transition:fill 140ms var(--t-out),stroke 140ms var(--t-out)}
.star.pre svg{stroke:#141815;fill:rgba(20,24,21,.22)}
.star.on svg{fill:#141815;stroke:#141815}
.creator-page .star-input{position:absolute;width:1px;height:1px;min-width:0;padding:0;margin:0;border:0;opacity:0}
.creator-page .star-input:focus-visible + .star{outline:2px solid #294751;outline-offset:-6px;border-radius:4px}
.star-value{margin-left:8px;font-size:13px;line-height:20px;color:var(--t-text);font-variant-numeric:tabular-nums}
.creator-page .review .review-field-label{display:block;margin:20px 0 8px;font-size:13px;font-weight:650;line-height:1.6;color:var(--t-ink)}
.creator-page .review-text{display:block;box-sizing:border-box;width:100%;height:104px;resize:none;margin:0;background:#fff;border:1px solid #70796F;border-radius:0;
  padding:14px 15px;font:400 15px/1.65 Manrope,Arial,sans-serif;color:var(--t-ink)}
.creator-page .review-text::placeholder{color:var(--t-text);opacity:1}
.creator-page .review-text:focus-visible{outline:2px solid #294751;outline-offset:3px}
.review-count{margin:4px 0 0;text-align:right;font-size:12px;line-height:20px;color:var(--t-text);font-variant-numeric:tabular-nums}
.review-count.near{color:var(--t-ink);font-weight:650}
.check-row{position:relative;margin-top:16px;display:grid;grid-template-columns:22px minmax(0,1fr);column-gap:12px}
.creator-page .check-row label{display:block;margin:0;font-size:14px;line-height:22px;font-weight:600;color:var(--t-ink);cursor:pointer}
.creator-page .check-row label::before{content:"";position:absolute;left:0;right:0;top:-11px;bottom:-11px}
.review-note{margin:4px 0 0 34px;font-size:13px;line-height:21px;color:var(--t-text)}
.review-foot{margin-top:24px;display:flex;align-items:center;gap:12px 20px;flex-wrap:wrap}
.review-status{flex-basis:100%;color:var(--t-ink)}
.review-confirm{flex-basis:100%;display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px}
.review-confirm-q{font-size:13.5px;line-height:21px;color:var(--t-ink);font-weight:650}

/* ---------------------------------------------------------------- header */
.board-actions{display:flex;align-items:center;gap:12px}

/* ---------------------------------------------------------------- dashboard, narrower */
@media(max-width:900px){.perm-grid{grid-template-columns:1fr}}
@media(max-width:760px){
  .perm-section{margin-top:48px}
  .perm-section .perm-title{font-size:25px}
  .perm-form{padding:8px 20px 24px}
  .review{padding:24px 20px}
  .board-actions{width:100%;flex-wrap:wrap}
  .board-head .board-actions .plain-button{flex:1 1 145px;width:auto;padding:11px 12px;text-align:center}
}

/* ---------------------------------------------------------------- phone sheet (also low windows), set by script */
.tour.is-sheet .tour-card{left:0;right:0;top:auto;bottom:0;width:auto;max-width:none;box-shadow:var(--t-shadow-sheet);padding:20px 20px calc(16px + env(safe-area-inset-bottom))}
.tour.is-sheet .tour-card.top{top:0;bottom:auto;padding:calc(16px + env(safe-area-inset-top)) 20px 20px;box-shadow:var(--t-shadow-sheet-top)}
.tour.is-sheet .tour-card[data-kind="spot"] .tour-title{font-size:22px;line-height:28px;letter-spacing:-.03em}
.tour.is-sheet .tour-card[data-kind="spot"] .tour-text{font-size:15px;line-height:24px;min-height:96px}
.tour.is-sheet.is-low .tour-card[data-kind="spot"] .tour-text{min-height:0}
.tour.is-sheet .tour-progress{margin-top:20px}
.tour.is-sheet .tour-actions{margin-top:16px;height:48px}
.tour.is-sheet .tour-next{height:48px;min-height:48px;min-width:132px}
.tour.is-sheet .tour-card[data-kind="welcome"],.tour.is-sheet .tour-card[data-kind="end"]{padding:28px 20px calc(16px + env(safe-area-inset-bottom))}
.tour.is-sheet .tour-mark{width:100px;height:18px}
.tour.is-sheet .tour-card[data-kind="welcome"] .tour-title,.tour.is-sheet .tour-card[data-kind="end"] .tour-title{margin-top:24px;font-size:30px;line-height:34px}
.tour.is-sheet .tour-card[data-kind="welcome"] .tour-text,.tour.is-sheet .tour-card[data-kind="end"] .tour-text{margin-top:12px;font-size:15px;line-height:25px}
.tour.is-sheet .tour-aside{line-height:21px}
.tour.is-sheet .tour-card[data-kind="welcome"] .tour-actions,.tour.is-sheet .tour-card[data-kind="end"] .tour-actions{margin-top:28px}
.tour.is-sheet .tour-card[data-kind="welcome"] .tour-actions{flex-direction:column-reverse;align-items:stretch;height:auto;gap:8px}
.tour.is-sheet .tour-card[data-kind="welcome"] .tour-actions>button{width:100%}
.tour.is-sheet .tour-card[data-kind="end"] .tour-next{min-width:132px}
.tour.is-sheet .tour-card[data-kind="form"]{max-height:calc(100dvh - 12px);padding:20px 20px calc(16px + env(safe-area-inset-bottom))}
.tour.is-sheet .tour-card[data-kind="form"] .tour-title{font-size:24px;line-height:28px}
.tour.is-sheet .tour-card[data-kind="form"] .tour-text{font-size:15px;line-height:24px}
.tour.is-sheet .tour-cols .perm-list{margin-top:16px}

@media(prefers-reduced-motion:reduce){.tour *,.tour *::before,.tour *::after,.perm-section *,.perm-section *::before,.perm-section *::after{transition:none!important}}
