:root {
    color-scheme: light;
    --background: #e9ece7;
    --surface: #fdfefd;
    --surface-soft: #f3f6f2;
    --ink: #17231d;
    --muted: #657067;
    --line: #cdd3cc;
    --green: #214b38;
    --green-deep: #14251d;
    --green-soft: #e3ebe4;
    --amber: #dcaa48;
    --amber-soft: #fbf1d8;
    --red: #9b392f;
    --red-soft: #f8e5e2;
    --focus: #b87918;
    font-family: "LM Sans", ui-sans-serif, system-ui, sans-serif;
    color: var(--ink);
    background: var(--background);
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--background); }
button, input, textarea, select { font: inherit; }
a { color: inherit; text-underline-offset: .18em; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip-link { position: fixed; z-index: 100; top: .75rem; left: .75rem; transform: translateY(-180%); padding: .7rem 1rem; background: var(--surface); color: var(--ink); font-weight: 700; }
.skip-link:focus { transform: none; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2 { font-family: "LM Space", ui-sans-serif, system-ui, sans-serif; }
h1 { margin: 0; font-size: clamp(2.15rem, 5vw, 4rem); line-height: .98; letter-spacing: -.045em; }
h2 { margin: 0; line-height: 1.15; }
p { line-height: 1.55; }
.eyebrow, .kicker { margin: 0 0 .65rem; color: var(--green); font: 700 .74rem/1.2 "LM Space", sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.muted { color: var(--muted); }

.button, button { min-height: 44px; padding: .72rem 1rem; border: 1px solid var(--green); border-radius: 5px; background: var(--green); color: #fff; font-weight: 700; cursor: pointer; }
.button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.button:hover, button:hover { background: #183d2d; }
.button.secondary { border-color: #718078; background: transparent; color: var(--green); }
.button.secondary:hover { border-color: var(--green); background: var(--green-soft); }
.button.danger { border-color: var(--red); background: var(--red); color: #fff; }
.button.danger:hover { border-color: #762b24; background: #762b24; }
.button.small { min-height: 40px; padding: .55rem .85rem; }
.button.full { width: 100%; margin-top: .35rem; }
button:disabled { cursor: not-allowed; opacity: .62; }

label { display: block; margin: 0 0 .42rem; font-weight: 700; }
input, textarea, select { width: 100%; min-height: 48px; padding: .78rem .9rem; border: 1px solid #9da59e; border-radius: 5px; background: #fff; color: var(--ink); }
textarea { min-height: 9rem; resize: vertical; line-height: 1.5; }
input:hover, textarea:hover, select:hover { border-color: #69766e; }
input:focus, textarea:focus, select:focus { outline: 3px solid rgba(184, 121, 24, .2); border-color: var(--focus); }
.form-field, form > div { margin-bottom: 1rem; }
.help-text { margin-top: .38rem; color: var(--muted); font-size: .86rem; line-height: 1.45; }
.form-errors, .form-errors ul, form ul { margin: .38rem 0 0; padding-left: 1.15rem; color: var(--red); }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--red); }

.flash { width: min(100%, 52rem); margin: 0 0 1rem; padding: .9rem 1rem; border-left: 3px solid var(--green); border-radius: 4px; background: var(--green-soft); }
.flash.error { border-left-color: var(--red); background: var(--red-soft); color: #6e211c; }
.flash.success { border-left-color: var(--green); background: var(--green-soft); color: #194e32; }

/* Öffentliche Kopfleiste außerhalb des Kontoablaufs. */
.site-header { min-height: 68px; padding: 0 clamp(1rem, 5vw, 4rem); display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); background: var(--surface); }
.site-header nav { display: flex; align-items: center; gap: 1rem; }
.brand, .auth-brand, .app-brand, .mobile-brand { display: inline-flex; align-items: center; gap: .7rem; font: 600 1.05rem/1 "LM Space", sans-serif; text-decoration: none; }
.public-content { width: min(100% - 2rem, 70rem); margin: 0 auto; padding: 3.5rem 0; }

/* Konto und Registrierung. */
.auth-page { background: var(--surface); }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(20rem, 42%) minmax(0, 1fr); }
.auth-intro { position: sticky; top: 0; min-height: 100vh; padding: clamp(1.5rem, 4vw, 4.5rem); display: flex; flex-direction: column; color: #f7f4ec; background: var(--green-deep); overflow: hidden; }
.auth-intro::after { content: ""; position: absolute; right: clamp(-8rem, -8vw, -4rem); bottom: clamp(5rem, 12vh, 10rem); width: 16rem; height: 16rem; border: 1px solid rgba(220, 170, 72, .25); transform: rotate(45deg); }
.auth-brand { position: relative; z-index: 1; color: #fff; font-size: 1.18rem; }
.auth-promise { position: relative; z-index: 1; width: min(100%, 32rem); margin: auto 0; }
.auth-promise .kicker { color: var(--amber); }
.auth-promise-title { margin: 0; font: 600 clamp(2.25rem, 4vw, 4.4rem)/.98 "LM Space", sans-serif; letter-spacing: -.05em; }
.auth-promise ul { display: grid; gap: .8rem; margin: 2rem 0 0; padding: 0; color: #d1d9d3; list-style: none; }
.auth-promise li { display: flex; align-items: center; gap: .7rem; }
.auth-promise li span { display: grid; flex: 0 0 1.45rem; width: 1.45rem; height: 1.45rem; place-items: center; border: 1px solid #52685b; border-radius: 50%; color: var(--amber); font-size: .78rem; }
.auth-intro-note { position: relative; z-index: 1; margin: 0; color: #94a39a; font-size: .86rem; }
.auth-workspace { min-width: 0; display: grid; align-items: center; padding: clamp(1.25rem, 5vw, 5rem); background: var(--surface); }
.auth-workspace-inner { width: min(100%, 34rem); margin: 0 auto; }
.auth-card { width: 100%; }
.auth-card h1 { max-width: 13ch; font-size: clamp(2.25rem, 5vw, 3.65rem); }
.auth-lead { margin: 1rem 0 1.75rem; color: var(--muted); font-size: 1.03rem; }
.auth-form { margin-top: 1.5rem; }
.auth-form > div { margin-bottom: 1rem; }
.auth-form .form-field { margin-bottom: 1rem; }
.auth-form > div:not(.form-field):not(.password-guide) { display: flex; flex-direction: column; }
.auth-form > div:not(.form-field):not(.password-guide) > label { order: 1; }
.auth-form > div:not(.form-field):not(.password-guide) > input { order: 2; }
.auth-form > div:not(.form-field):not(.password-guide) > .form-errors,
.auth-form > div:not(.form-field):not(.password-guide) > ul { order: 3; }
.auth-form > div:not(.form-field):not(.password-guide) > .help-text { order: 4; }
.login-password-field { display: block; }
.forgot-link { display: inline-block; margin-top: .55rem; color: var(--green); font-size: .88rem; font-weight: 700; }
.auth-inline-help { margin: -.2rem 0 1rem; font-size: .9rem; }
.auth-inline-help a { color: var(--green); font-weight: 700; }
.password-control { position: relative; }
.password-control input { padding-right: 3.5rem; }
.password-toggle { position: absolute; top: 50%; right: .2rem; width: 44px; min-height: 44px; padding: 0; display: grid; place-items: center; transform: translateY(-50%); border: 0; background: transparent; color: var(--green); }
.password-toggle svg { width: 1.25rem; height: 1.25rem; }
.password-toggle [hidden] { display: none; }
.password-toggle:hover { background: var(--green-soft); color: var(--green-deep); }
.auth-switch { margin: 1.5rem 0 0; padding-top: 1.2rem; border-top: 1px solid var(--line); color: var(--muted); text-align: center; }
.auth-switch a { color: var(--green); font-weight: 700; }
.auth-method-section { margin: 1.4rem 0; }
.auth-method-heading { margin: 0 0 .55rem; font-size: .86rem; }
.auth-methods { overflow: hidden; border: 1px solid #a6ada7; border-radius: 5px; background: #fff; }
.auth-method { width: 100%; min-height: 54px; padding: .75rem 1rem; display: grid; grid-template-columns: 1.35rem minmax(0, 1fr) 1.1rem; gap: .75rem; align-items: center; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: #fff; color: var(--ink); font-size: .92rem; font-weight: 700; text-align: left; text-decoration: none; }
.auth-method:last-child { border-bottom: 0; }
.auth-method:hover { background: var(--surface-soft); color: var(--green-deep); }
.auth-method:active { transform: translateY(1px); }
.auth-method > svg:not(.auth-method-arrow) { width: 1.25rem; height: 1.25rem; }
.auth-method-arrow { width: 1rem; height: 1rem; color: #7d887f; transition: transform .18s ease-out; }
.auth-method:hover .auth-method-arrow { transform: translateX(.18rem); }
.auth-method.is-selected { background: var(--green-soft); color: var(--green-deep); box-shadow: inset 3px 0 0 var(--green); }
.auth-method.is-selected .auth-method-arrow { transform: rotate(90deg); }
[data-auth-email-panel][hidden] { display: none; }
[data-auth-email-panel]:not([hidden]) { animation: auth-panel-in .22s ease-out both; }
@keyframes auth-panel-in { from { opacity: 0; transform: translateY(-.35rem); } }
.auth-context-note { margin: 1.1rem 0; padding: .9rem 1rem; border-left: 3px solid var(--amber); background: var(--amber-soft); }
.auth-context-note strong { color: var(--green-deep); }
.auth-context-note p { margin: .3rem 0 0; color: #5b4a2d; font-size: .88rem; }
.auth-session-choice { display: grid; grid-template-columns: 1.2rem minmax(0, 1fr); gap: .2rem .65rem; align-items: start; margin: 1.15rem 0; }
.auth-session-choice input { grid-column: 1; width: 1.2rem; min-height: 1.2rem; margin: .12rem 0 0; padding: 0; accent-color: var(--green); }
.auth-session-choice label { grid-column: 2; margin: 0; color: var(--ink); font-size: .88rem; font-weight: 700; line-height: 1.45; }
.auth-session-choice p { grid-column: 2; margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.authenticated-account { display: grid; grid-template-columns: 2.7rem minmax(0, 1fr); gap: .8rem; align-items: center; margin: 1.4rem 0; padding: 1rem; border: 1px solid var(--line); background: var(--surface-soft); }
.authenticated-account-mark { display: grid; width: 2.7rem; height: 2.7rem; place-items: center; border-radius: 50%; background: var(--green-deep); color: #f7f4ec; font: 700 1rem/1 "LM Space", sans-serif; }
.authenticated-account strong, .authenticated-account small { display: block; min-width: 0; overflow-wrap: anywhere; }
.authenticated-account strong { color: var(--ink); }
.authenticated-account small { margin-top: .2rem; color: var(--muted); font-size: .8rem; }
.authenticated-account-actions { display: grid; gap: .65rem; }
.authenticated-account-actions form { margin: 0; }
.authenticated-account-actions .button.full { margin: 0; }
.verified-identity { margin: 0 0 1.4rem; padding: .85rem 1rem; border: 1px solid var(--line); background: var(--surface-soft); }
.verified-identity span, .verified-identity strong { display: block; }
.verified-identity span { margin-bottom: .22rem; color: var(--muted); font-size: .76rem; }
.invitation-actions { display: grid; gap: .7rem; }
.registration-facts { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: -1rem 0 1.5rem; padding: 0; color: var(--muted); list-style: none; font-size: .88rem; }
.registration-facts li::before { content: "✓"; margin-right: .4rem; color: var(--green); font-weight: 800; }
.password-guide { margin: -.2rem 0 1rem; padding: .85rem 1rem; border: 1px solid var(--line); background: var(--surface-soft); }
.password-guide p { margin: 0; font-size: .88rem; }
.password-guide ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem .7rem; margin: .7rem 0; padding: 0; color: var(--muted); list-style: none; }
.password-guide li { display: flex; align-items: flex-start; gap: .45rem; color: var(--muted); font-size: .78rem; }
.check-mark { display: grid; flex: 0 0 1.05rem; width: 1.05rem; height: 1.05rem; margin-top: .05rem; place-items: center; border: 1px solid #909991; border-radius: 50%; background: transparent; color: var(--muted); }
.check-mark::before { content: ""; width: .28rem; height: .28rem; border-radius: 50%; background: currentColor; }
.password-guide li[data-state="unmet"] { color: #762b24; }
.password-guide li[data-state="unmet"] .check-mark { border-color: #c08a84; background: var(--red-soft); color: var(--red); }
.password-guide li[data-state="unmet"] .check-mark::before { content: "×"; width: auto; height: auto; background: transparent; font-size: .78rem; font-weight: 800; line-height: 1; }
.password-guide li[data-state="met"] { color: var(--green); }
.password-guide li[data-state="met"] .check-mark { border-color: var(--green); background: var(--green); color: #fff; }
.password-guide li[data-state="met"] .check-mark::before { content: "✓"; width: auto; height: auto; background: transparent; font-size: .68rem; }
.password-summary { color: var(--muted); }
.mail-expectation { margin: .4rem 0 1rem; color: var(--muted); font-size: .88rem; }
.registration-consents { min-width: 0; margin: 1.25rem 0 1rem; padding: 1.1rem 0 0; border: 0; border-top: 1px solid var(--line); }
.registration-consents legend { padding: 0; color: var(--ink); font-weight: 700; }
.consent-option { display: grid; grid-template-columns: 1.2rem minmax(0, 1fr); gap: .15rem .65rem; align-items: start; margin-top: .9rem; }
.consent-option input[type="checkbox"] { grid-column: 1; width: 1.2rem; min-height: 1.2rem; margin: .12rem 0 0; padding: 0; accent-color: var(--green); }
.consent-option label { grid-column: 2; margin: 0; font-size: .86rem; font-weight: 600; line-height: 1.5; }
.consent-option label a { color: var(--green); text-decoration: underline; }
.consent-option p { grid-column: 2; margin: .2rem 0 0; color: var(--muted); font-size: .78rem; }
.consent-option .form-errors, .consent-option > ul { grid-column: 2; margin: .2rem 0 0; }
.consent-label-line { display: inline; }
.consent-label-line small { margin-left: .35rem; padding: .12rem .35rem; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: .66rem; font-weight: 700; white-space: nowrap; }
.auth-next-steps { display: grid; gap: .75rem; margin: 1.35rem 0; padding: 0; list-style: none; }
.auth-next-steps li { display: grid; grid-template-columns: 1.8rem minmax(0, 1fr); gap: .75rem; align-items: start; }
.auth-next-steps li > span { display: grid; width: 1.8rem; height: 1.8rem; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--green); font: 700 .78rem/1 "LM Space", sans-serif; }
.auth-next-steps p { margin: 0; color: var(--muted); font-size: .9rem; }
.auth-next-steps strong { color: var(--ink); }
.auth-form button[data-auth-submit][data-submitting="true"] { position: relative; color: transparent; }
.auth-form button[data-auth-submit][data-submitting="true"]::after { content: ""; position: absolute; width: 1.05rem; height: 1.05rem; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: auth-submit-spin .75s linear infinite; }
@keyframes auth-submit-spin { to { transform: rotate(1turn); } }
.auth-form .turnstile-shell { width: 100%; min-width: 0; margin-bottom: 1rem; }
.turnstile-status { margin: .45rem 0 0; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.local-mail-note { margin: 1.25rem 0; padding: 1rem; border-left: 3px solid var(--amber); background: var(--amber-soft); }
.local-mail-note p { margin: .3rem 0; }
.local-mail-note a { color: var(--green); font-weight: 700; }

/* Zentrale Werkbank. */
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 15rem minmax(0, 1fr); }
.sidebar-collapsed .app-shell:not(.onboarding-shell) { grid-template-columns: 4.75rem minmax(0, 1fr); }
.app-shell.onboarding-shell { grid-template-columns: minmax(0, 1fr); }
.app-sidebar { position: sticky; z-index: 50; top: 0; height: 100vh; height: 100dvh; padding: 1.15rem 1rem max(1rem, env(safe-area-inset-bottom)); display: flex; flex-direction: column; background: var(--green-deep); color: #f8f7f0; overscroll-behavior: contain; }
.sidebar-heading { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: .35rem; }
.app-brand { min-width: 0; padding: .1rem .15rem; gap: .5rem; color: #fff; font-size: .96rem; }
.app-brand .nav-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-toggle, .mobile-sidebar-toggle { flex: 0 0 44px; width: 44px; min-height: 44px; padding: 0; display: none; place-items: center; border: 0; background: transparent; color: inherit; }
.js .sidebar-toggle { display: inline-grid; }
.sidebar-toggle:hover { background: #2a392f; }
.sidebar-toggle svg, .mobile-sidebar-toggle svg { width: 1.35rem; height: 1.35rem; fill: currentColor; }
.sidebar-navigation { min-height: 0; margin-top: 1rem; overflow-x: hidden; overflow-y: auto; scrollbar-color: #52645a transparent; scrollbar-width: thin; }
.nav-label { margin: .4rem 0 0; padding: .55rem .65rem; color: #87998e; font-size: .68rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.app-nav { display: grid; gap: .2rem; }
.app-nav a { position: relative; min-height: 46px; padding: .65rem .72rem; display: flex; align-items: center; gap: .72rem; border-radius: 5px; color: #c9d0ca; font-size: .9rem; font-weight: 650; text-decoration: none; }
.app-nav a:hover, .app-nav a.active { background: #2a392f; color: #fff; }
.app-nav a.active::after { content: ""; width: .45rem; height: .45rem; margin-left: auto; border-radius: 50%; background: var(--amber); }
.app-nav svg { flex: 0 0 1.25rem; width: 1.25rem; height: 1.25rem; fill: currentColor; }
.sidebar-account { min-width: 0; margin-top: auto; padding: 1rem .55rem 0; border-top: 1px solid #34453a; }
.sidebar-account-copy strong, .sidebar-account-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-account-copy strong { color: #fff; font-size: .9rem; }
.sidebar-account-copy span { margin-top: .2rem; color: #9eada3; font-size: .75rem; }
.sidebar-account form { margin: .75rem 0 0; }
.sidebar-logout { min-height: 44px; padding: 0; display: inline-flex; align-items: center; gap: .7rem; border: 0; background: transparent; color: #c9d0ca; text-decoration: underline; }
.sidebar-logout:hover { background: transparent; color: #fff; }
.sidebar-logout svg { flex: 0 0 1.25rem; width: 1.25rem; height: 1.25rem; fill: currentColor; }
.sidebar-collapsed .app-sidebar { padding-inline: .7rem; }
.sidebar-collapsed .sidebar-heading { flex-direction: column; }
.sidebar-collapsed .app-brand { padding-inline: 0; }
.sidebar-collapsed .sidebar-toggle svg { transform: rotate(180deg); }
.sidebar-collapsed .nav-text, .sidebar-collapsed .nav-label, .sidebar-collapsed .sidebar-account-copy { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.sidebar-collapsed .app-nav a, .sidebar-collapsed .sidebar-logout { width: 100%; justify-content: center; padding-inline: 0; }
.sidebar-collapsed .app-nav a.active::after { position: absolute; right: .15rem; width: .35rem; height: .35rem; margin: 0; }
.sidebar-collapsed .sidebar-account { padding-inline: 0; }
.sidebar-collapsed .sidebar-account form { margin-top: 0; }
.sidebar-rail-tooltip { position: fixed; z-index: 80; padding: .42rem .58rem; border: 1px solid #405148; border-radius: 4px; background: var(--green-deep); color: #fff; box-shadow: 0 8px 24px rgba(10, 19, 14, .2); font-size: .76rem; font-weight: 700; line-height: 1.2; pointer-events: none; transform: translateY(-50%); }
.sidebar-rail-tooltip[hidden] { display: none; }
.mobile-sidebar-toggle { display: none; color: var(--green-deep); }
.mobile-sidebar-toggle:hover { background: var(--green-soft); color: var(--green-deep); }
.sidebar-backdrop { display: none; }
.app-main { min-width: 0; }
.app-topbar { position: sticky; z-index: 20; top: 0; min-height: 70px; padding: .55rem clamp(1rem, 3vw, 2.4rem); display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); background: rgba(253, 254, 253, .96); backdrop-filter: blur(12px); }
.app-topbar-context { min-width: 0; display: flex; align-items: center; gap: 1rem; }
.mobile-brand { display: none; }
.onboarding-shell .mobile-brand { display: inline-flex; }
.platform-state { min-width: 0; margin: 0; display: flex; align-items: center; gap: .6rem; overflow: hidden; color: var(--muted); font-size: .86rem; text-overflow: ellipsis; white-space: nowrap; }
.platform-state span { flex: 0 0 .55rem; width: .55rem; height: .55rem; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px #f3e6c5; }
.platform-state.published span { background: #3f7859; box-shadow: 0 0 0 4px #dce9df; }
.platform-state.unpublished span { background: #879087; box-shadow: 0 0 0 4px #e2e3de; }
.app-topbar-actions { margin-left: auto; display: flex; align-items: center; gap: .45rem; }
.dashboard-actions { justify-content: flex-end; }
.topbar-publish-form { margin: 0; }
.topbar-action { min-height: 44px; padding: .55rem .72rem; display: inline-flex; align-items: center; justify-content: center; gap: .42rem; border: 1px solid #89948c; border-radius: 5px; background: var(--surface); color: var(--green); font-size: .8rem; font-weight: 700; line-height: 1; text-decoration: none; white-space: nowrap; }
.topbar-action:hover { border-color: var(--green); background: var(--green-soft); color: var(--green-deep); }
.topbar-action svg { flex: 0 0 1.05rem; width: 1.05rem; height: 1.05rem; }
.topbar-action.save-action { border-color: var(--green); background: var(--green); color: #fff; }
.topbar-action.save-action:hover { background: #183d2d; }
.topbar-action.publish-action { border-color: #aa761a; background: var(--amber); color: #2d2619; }
.topbar-action.publish-action:hover { background: #c79231; }
.topbar-action:disabled { border-color: #b9bdb7; background: #e1e2dd; color: #70766f; }
.app-content { width: min(100%, 82rem); margin: 0 auto; padding: clamp(1.25rem, 3vw, 2.6rem); }
.mobile-nav { display: none; }
.section-tabs { max-width: 100%; padding-inline: .35rem; display: flex; gap: .25rem; overflow-x: auto; border: 1px solid var(--line); background: var(--surface); scrollbar-width: thin; }
.section-tabs a { min-height: 48px; padding: .75rem .9rem; display: inline-flex; align-items: center; border-bottom: 3px solid transparent; color: var(--muted); font-size: .86rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.section-tabs a:hover { color: var(--green); }
.section-tabs a.active { border-bottom-color: var(--green); color: var(--green-deep); }
.work-dialog { width: min(46rem, calc(100vw - 2rem)); max-height: min(88vh, 58rem); padding: 0; overflow: hidden; border: 1px solid #7f8b83; border-radius: 7px; background: var(--surface); color: var(--ink); box-shadow: 0 24px 80px rgba(18, 31, 23, .26); }
.work-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.work-dialog::backdrop { background: rgba(18, 28, 21, .55); }
.dialog-heading { min-height: 76px; padding: 1rem 1.15rem; display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); background: var(--surface); }
.dialog-heading h2 { margin: 0; font-size: clamp(1.35rem, 3vw, 1.75rem); }
.dialog-heading p:not(.eyebrow) { margin: .35rem 0 0; color: var(--muted); font-size: .86rem; }
.dialog-close { flex: 0 0 44px; width: 44px; min-height: 44px; padding: 0; border: 1px solid var(--line); background: var(--surface); color: var(--green-deep); font-size: 1.65rem; line-height: 1; }
.dialog-close:hover { border-color: var(--green); background: var(--green-soft); }
.js .no-js-only { display: none !important; }
.no-js-only.dialog-close { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.dialog-body { min-height: 0; max-height: none; padding: 1.15rem 1.15rem 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-color: #668073 var(--surface-soft); scrollbar-gutter: stable; scrollbar-width: thin; }
.dialog-body::-webkit-scrollbar { width: 10px; }
.dialog-body::-webkit-scrollbar-track { background: var(--surface-soft); }
.dialog-body::-webkit-scrollbar-thumb { border: 2px solid var(--surface-soft); border-radius: 999px; background: #668073; }
.dialog-body .editor-form { max-width: none; }
.dialog-body .form-panel + .form-panel { margin-top: 1.35rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.dialog-actions { position: sticky; bottom: 0; z-index: 2; margin: .75rem -1.15rem 0; padding: .85rem 1.15rem max(.85rem, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(253, 254, 253, .98); }
.editor-dialog-trigger { min-height: 44px; padding: .55rem .75rem; border: 0; background: transparent; color: var(--green); font-size: .84rem; font-weight: 700; text-decoration: underline; }
.editor-dialog-trigger:hover { background: var(--green-soft); color: var(--green-deep); }
.compact-work-dialog { width: min(42rem, calc(100vw - 2rem)); }
.compact-work-dialog .dialog-body > form { margin: 0; }
.compact-work-dialog .dialog-body > form > button:last-child { margin-top: .8rem; }
.menu-admin-card > .editor-dialog-trigger, .menu-admin-section > .editor-dialog-trigger, .gallery-section-card > .editor-dialog-trigger, .gallery-admin-item > .editor-dialog-trigger, .gallery-shell > .editor-dialog-trigger { width: 100%; padding-inline: 1.2rem; justify-content: flex-start; text-align: left; border-bottom: 1px solid var(--line); }
.gallery-admin-item > .editor-dialog-trigger { padding-inline: .8rem; font-size: .78rem; }
.gallery-shell > .editor-dialog-trigger { min-height: 58px; border: 1px solid var(--line); background: var(--surface); font-size: .92rem; }
.page-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem; align-items: end; margin-bottom: 1.75rem; }
.page-lead { max-width: 52rem; margin: .7rem 0 0; color: var(--muted); }
.account-chip { padding: .7rem .9rem; border: 1px solid var(--line); background: var(--surface); text-align: right; }
.account-chip span, .account-chip strong { display: block; }
.account-chip span { color: var(--muted); font-size: .75rem; }
.attention-strip { margin: 0 0 1.2rem; padding: .9rem 1rem; display: flex; align-items: flex-start; gap: .75rem; border: 1px solid #e4cf9b; background: var(--amber-soft); }
.attention-strip p { margin: 0; font-size: .9rem; }
.attention-icon { display: grid; flex: 0 0 1.4rem; width: 1.4rem; height: 1.4rem; place-items: center; border: 1px solid #8a6410; border-radius: 50%; color: #76550b; font: 700 .78rem "LM Space", sans-serif; }
.dashboard-workspace { width: min(100%, 64rem); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(18rem, .85fr); gap: 1rem; }
.dashboard-workspace .section-card { min-width: 0; }
.dashboard-metrics { margin: 1rem 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.dashboard-metrics div { min-width: 0; padding: .85rem; }
.dashboard-metrics div + div { border-left: 1px solid var(--line); }
.dashboard-metrics dt { color: var(--muted); font-size: .75rem; }
.dashboard-metrics dd { margin: .2rem 0 0; font: 700 1.55rem "LM Space", sans-serif; }
.section-card { padding: 1.2rem; border: 1px solid #c3cbc3; background: var(--surface); }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.section-heading h2 { font-size: 1.5rem; }
.state-badge { padding: .3rem .55rem; border: 1px solid var(--line); color: var(--muted); font-size: .75rem; font-weight: 700; }
.state-badge.draft { border-color: #d8bb78; background: var(--amber-soft); color: #6c4d08; }
.state-badge.live { border-color: #92aa9a; background: var(--green-soft); color: #194e32; }
.state-badge.error { border-color: #d9aaa4; background: var(--red-soft); color: #6e211c; }
.profile-facts { margin: 0 0 1.25rem; }
.profile-facts div { padding: .8rem 0; display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1rem; border-bottom: 1px solid var(--line); }
.profile-facts dt { color: var(--muted); font-size: .82rem; }
.profile-facts dd { margin: 0; }
.business-switcher { margin-top: 1.5rem; }
.business-switcher > h2 { margin-bottom: .8rem; font-size: 1.15rem; }
.business-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1rem; }
.business-card.active { border-color: #547865; box-shadow: inset 0 0 0 1px #547865; }
.business-card h2 { font-size: 1.35rem; }
.business-card form { margin: 1rem 0 0; }
.status-line { color: var(--green); font-weight: 700; }
.empty-state { max-width: 44rem; }
.settings-page, .team-page, .onboarding-page, .setup-page, .operator-page { width: 100%; }
.narrow-settings { max-width: 48rem; }
.connection-panel { max-width: 58rem; }
.connection-list, .member-list { margin: 0; padding: 0; list-style: none; }
.connection-list li, .member-list li { min-width: 0; padding: .9rem 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); }
.connection-list li div, .member-identity { min-width: 0; }
.connection-list strong, .connection-list span, .member-identity strong, .member-identity span { display: block; overflow-wrap: anywhere; }
.connection-list div span, .member-identity span { margin-top: .18rem; color: var(--muted); font-size: .8rem; }
.connection-actions { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .65rem; }
.confirmation-card { max-width: 42rem; }
.confirmation-card h2 { font-size: 1.4rem; }
.onboarding-start { max-width: 68rem; margin: 0 auto; padding-top: clamp(.5rem, 2vw, 1.5rem); }
.onboarding-heading { max-width: 58rem; margin-bottom: clamp(1.6rem, 4vw, 2.8rem); }
.onboarding-heading h1 { max-width: 14ch; }
.start-choice-list { border-top: 1px solid #9da89f; border-bottom: 1px solid #9da89f; background: var(--surface); }
.start-choice { border-bottom: 1px solid var(--line); }
.start-choice:last-child { border-bottom: 0; }
.start-choice > summary { min-height: 88px; padding: 1rem 1.15rem; display: grid; grid-template-columns: 2.75rem minmax(0, 1fr) auto 2rem; gap: 1rem; align-items: center; list-style: none; color: var(--ink); cursor: pointer; }
.start-choice > summary::-webkit-details-marker { display: none; }
.start-choice > summary:hover { background: var(--surface-soft); }
.start-choice[open] > summary { background: var(--green-soft); box-shadow: inset 4px 0 0 var(--green); }
.start-choice-number { color: #7a877e; font: 700 .76rem/1 "LM Space", sans-serif; letter-spacing: .08em; }
.start-choice-copy { min-width: 0; }
.start-choice-copy strong, .start-choice-copy small { display: block; }
.start-choice-copy strong { font: 650 clamp(1.15rem, 2vw, 1.45rem)/1.15 "LM Space", sans-serif; letter-spacing: -.02em; }
.start-choice-copy small { margin-top: .32rem; color: var(--muted); font-size: .82rem; line-height: 1.4; }
.start-choice-label { padding: .28rem .5rem; border: 1px solid #8ba090; color: var(--green); font-size: .68rem; font-style: normal; font-weight: 750; white-space: nowrap; }
.start-choice-label.has-invitation { border-color: #b88932; background: var(--amber-soft); color: #6c4d08; }
.start-choice-arrow { color: var(--green); font: 500 1.2rem/1 "LM Space", sans-serif; transition: transform .18s ease-out; }
.start-choice[open] .start-choice-arrow { transform: rotate(45deg); }
.start-choice-panel { padding: clamp(1.25rem, 4vw, 2.25rem) clamp(1rem, 4vw, 2.25rem) clamp(1.5rem, 4vw, 2.5rem) 4.9rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(17rem, .72fr); gap: clamp(1.5rem, 5vw, 3.5rem); border-top: 1px solid var(--line); background: #fafbf9; animation: start-panel-in .2s ease-out both; }
@keyframes start-panel-in { from { opacity: 0; transform: translateY(-.3rem); } }
.start-panel-heading h2, .onboarding-demo h2, .sample-option h2, .invitation-code-option h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); }
.start-panel-heading p:not(.eyebrow), .onboarding-demo p:not(.eyebrow), .sample-option p, .invitation-code-option p:not(.eyebrow) { margin: .55rem 0 0; color: var(--muted); }
.compact-form { margin-top: auto; }
.compact-form > div { margin-bottom: .8rem; }
.start-business-form { align-self: end; }
.start-business-form button { width: 100%; }
.start-join-panel, .start-demo-panel { display: block; }
.onboarding-invitations.priority { margin: 0 0 1.5rem; padding: 1.15rem; border: 1px solid #86a08e; background: #eef5ef; }
.onboarding-invitations.priority > div > h2 { font-size: 1.45rem; }
.onboarding-invitation-list { margin-top: 1rem; display: grid; gap: .65rem; }
.invitation-choice { padding: 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border: 1px solid #b6c4b9; background: var(--surface); }
.invitation-choice h3 { margin: 0; font: 700 1.2rem "LM Space", sans-serif; }
.invitation-choice p:not(.eyebrow) { margin: .35rem 0 0; color: var(--muted); font-size: .82rem; }
.invitation-choice form { margin: 0; }
.invitation-code-option { margin: 0; padding-bottom: 1.5rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(18rem, .72fr); gap: 1.5rem 3rem; align-items: end; border-bottom: 1px solid var(--line); }
.invitation-code-option code, .start-advanced code { font-size: .82em; }
.invitation-code-option .compact-form { margin: 0; }
.start-advanced { margin-top: .2rem; }
.start-advanced > summary { min-height: 52px; display: flex; align-items: center; color: var(--green); font-weight: 750; cursor: pointer; }
.start-advanced > div { max-width: 38rem; padding: 1rem 0 .25rem; border-top: 1px solid var(--line); }
.start-advanced p { margin: 0 0 1rem; color: var(--muted); }
.onboarding-demo { margin: 0; padding: 0 0 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; border-bottom: 1px solid var(--line); }
.onboarding-demo > div { max-width: 42rem; }
.sample-option { padding-top: 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.sample-option > div { max-width: 42rem; }
.sample-option small { margin-top: .65rem; display: block; color: var(--green); font-size: .78rem; font-weight: 700; }
.sample-option form { margin: 0; }
.onboarding-safety-line { margin: 1rem 0 0; display: flex; align-items: center; gap: .55rem; color: var(--muted); font-size: .84rem; }
.onboarding-safety-line span { display: grid; flex: 0 0 1.25rem; width: 1.25rem; height: 1.25rem; place-items: center; border: 1px solid #8ba090; border-radius: 50%; color: var(--green); font-size: .7rem; font-weight: 800; }
.onboarding-footer { margin-top: clamp(2rem, 6vw, 4rem); padding-top: 1rem; display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
.onboarding-footer a { color: var(--green); font-weight: 700; }
.lifecycle-page { max-width: 68rem; display: grid; gap: 1rem; }
.lifecycle-page .page-heading { margin-bottom: .25rem; }
.lifecycle-overview, .lifecycle-contact, .lifecycle-danger, .lifecycle-account { display: grid; gap: 1rem; }
.lifecycle-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.lifecycle-facts div { min-width: 0; padding: 1rem; display: grid; gap: .18rem; }
.lifecycle-facts div + div { border-left: 1px solid var(--line); }
.lifecycle-facts span, .lifecycle-facts small { color: var(--muted); font-size: .76rem; }
.lifecycle-facts strong { font: 700 1.05rem "LM Space", sans-serif; }
.lifecycle-callout { margin: 0; padding: .9rem 1rem; border-left: 3px solid var(--green); background: var(--green-soft); }
.lifecycle-callout.warning { border-left-color: var(--amber); background: var(--amber-soft); }
.lifecycle-contact { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.lifecycle-contact p:not(.eyebrow), .lifecycle-danger > p, .lifecycle-account > p { margin: 0; color: var(--muted); }
.lifecycle-danger { border-color: #d9aaa4; }
.danger-confirmation { padding-top: .8rem; border-top: 1px solid var(--line); }
.danger-confirmation summary { cursor: pointer; color: var(--red); font-weight: 700; }
.danger-confirmation form { max-width: 34rem; margin-top: 1rem; display: grid; gap: .65rem; }
.danger-confirmation label { color: var(--muted); font-size: .8rem; font-weight: 700; }
.danger-confirmation button { margin-top: .35rem; justify-self: start; }
.team-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(20rem, .75fr); gap: 1rem; }
.role-badge { flex: 0 0 auto; padding: .3rem .5rem; border: 1px solid var(--line); color: var(--green); font-size: .75rem; font-weight: 700; }
.member-actions { display: flex; align-items: center; justify-content: flex-end; gap: .5rem; }
.member-own { color: var(--muted); font-size: .76rem; font-weight: 700; }
.member-dialog .dialog-body { padding-bottom: 1.15rem; }
.member-role-form { margin: 0; }
.member-role-form .form-help { margin: .45rem 0 .85rem; color: var(--muted); font-size: .84rem; }
.member-remove-panel { margin-top: 1.25rem; padding: 1rem; border: 1px solid #d9aaa4; background: var(--red-soft); }
.member-remove-panel h3 { margin: 0; font-size: 1.05rem; }
.member-remove-panel p { margin: .4rem 0 .85rem; color: #6e211c; font-size: .88rem; }
.member-remove-panel form { margin: 0; }
.team-invite > p { color: var(--muted); font-size: .9rem; }
.open-invitations { margin-top: 1rem; }
.responsive-table-wrap { max-width: 100%; overflow-x: auto; }
.responsive-table-wrap table { width: 100%; border-collapse: collapse; }
.responsive-table-wrap th, .responsive-table-wrap td { padding: .75rem; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.responsive-table-wrap th { color: var(--muted); font-size: .75rem; }
.responsive-table-wrap td:last-child { text-align: right; }
.responsive-table-wrap form { margin: 0; }
.advanced-access { max-width: 58rem; margin-top: 1rem; }
.advanced-access summary { min-height: 44px; display: flex; align-items: center; color: var(--green); font-weight: 700; cursor: pointer; }
.advanced-access > div { padding-top: .8rem; border-top: 1px solid var(--line); }
.activation-code-result { margin: 0 0 1rem; padding: 1rem 1.15rem; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1rem; border: 1px solid #d2b46e; background: var(--amber-soft); }
.activation-code-result h2 { font-size: 1.35rem; }
.activation-code-result p:not(.eyebrow) { margin: .3rem 0 0; font-size: .86rem; }
.activation-code-result code { padding: .8rem 1rem; border: 1px dashed #876118; background: #fffaf0; font: 700 1rem/1.2 ui-monospace, monospace; letter-spacing: .05em; user-select: all; }
.setup-page { max-width: 78rem; margin: 0 auto; }
.setup-hero { margin-bottom: clamp(1.5rem, 4vw, 2.5rem); display: grid; grid-template-columns: minmax(0, 1fr) 12rem; gap: 2rem; align-items: end; }
.setup-hero h1 { max-width: 17ch; font-size: clamp(2.25rem, 5vw, 4.5rem); }
.setup-progress { min-width: 12rem; padding: 1rem 0; border-block: 1px solid #aeb8b0; }
.setup-progress strong, .setup-progress span { display: block; }
.setup-progress span { color: var(--muted); font-size: .76rem; }
.setup-progress strong { margin: .3rem 0 .65rem; font: 700 1.35rem/1 "LM Space", sans-serif; }
.setup-progress progress { width: 100%; height: .38rem; display: block; accent-color: var(--green); }
.setup-complete { margin: 0 0 1.25rem; padding: 1rem 1.15rem; display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; gap: .85rem; align-items: center; border: 1px solid #8da595; background: var(--green-soft); }
.setup-complete > span { display: grid; width: 2rem; height: 2rem; place-items: center; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; }
.setup-complete p { margin: .2rem 0 0; color: var(--muted); font-size: .84rem; }
.setup-workspace { display: grid; grid-template-columns: minmax(17rem, 20rem) minmax(0, 1fr); gap: clamp(1.25rem, 4vw, 3rem); align-items: start; }
.setup-rail { position: sticky; top: 6rem; border: 1px solid #b9c2ba; background: var(--surface); }
.setup-rail-heading { padding: 1.15rem; border-bottom: 1px solid var(--line); }
.setup-rail-heading h2 { font-size: 1.25rem; }
.setup-navigation { margin: 0; padding: 0; list-style: none; }
.setup-navigation li + li { border-top: 1px solid var(--line); }
.setup-navigation a { min-height: 72px; padding: .75rem .8rem; display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; gap: .7rem; align-items: center; text-decoration: none; }
.setup-navigation a:hover { background: var(--surface-soft); }
.setup-navigation a[aria-current="step"] { background: var(--green-soft); box-shadow: inset 3px 0 0 var(--green); }
.setup-navigation .setup-step { display: grid; width: 2rem; height: 2rem; place-items: center; border: 1px solid #9ca8a0; border-radius: 50%; color: var(--green); font: 700 .78rem/1 "LM Space", sans-serif; }
.setup-navigation .complete .setup-step { border-color: var(--green); background: var(--green); color: #fff; }
.setup-navigation strong, .setup-navigation small { display: block; }
.setup-navigation strong { font-size: .88rem; }
.setup-navigation small { margin-top: .18rem; color: var(--muted); font-size: .7rem; line-height: 1.35; }
.setup-navigation em { color: var(--muted); font-size: .65rem; font-style: normal; font-weight: 700; text-transform: uppercase; }
.setup-navigation .complete em { color: var(--green); }
.setup-rail-note { margin: 0; padding: 1rem 1.15rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
.setup-task-stack { min-width: 0; }
.setup-task { scroll-margin-top: 6rem; border: 1px solid #aeb8b0; background: var(--surface); }
.setup-task:focus { outline: 3px solid var(--focus); outline-offset: 3px; }
.setup-task-heading { padding: clamp(1.2rem, 3vw, 1.75rem); display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); }
.setup-task-heading h2 { max-width: 24ch; font-size: clamp(1.55rem, 3vw, 2.25rem); letter-spacing: -.025em; }
.setup-task-heading p:not(.eyebrow) { max-width: 42rem; margin: .65rem 0 0; color: var(--muted); }
.setup-task-body { padding: 1.25rem clamp(1.2rem, 3vw, 1.75rem); }
.setup-task-body p { max-width: 42rem; margin: 0; color: var(--muted); }
.setup-basics-form { padding: 0 clamp(1.2rem, 3vw, 1.75rem) 1.5rem; }
.setup-form-group { min-width: 0; margin: 0; padding: 1.5rem 0 .35rem; border: 0; border-bottom: 1px solid var(--line); }
.setup-form-group legend { padding: 0; color: var(--green-deep); font: 700 1.05rem/1.2 "LM Space", sans-serif; }
.setup-form-group > p { margin: -.25rem 0 1rem; color: var(--muted); font-size: .82rem; }
.setup-form-group textarea { min-height: 7rem; }
.setup-optional-field { margin-top: 1rem; border: 1px solid var(--line); background: var(--surface-soft); }
.setup-optional-field > summary { min-height: 58px; padding: .75rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; list-style: none; color: var(--green-deep); cursor: pointer; }
.setup-optional-field > summary::-webkit-details-marker { display: none; }
.setup-optional-field > summary:hover { background: var(--green-soft); }
.setup-optional-field > summary strong, .setup-optional-field > summary small { display: block; }
.setup-optional-field > summary small { margin-top: .2rem; color: var(--muted); font-size: .74rem; font-weight: 500; }
.setup-optional-field > summary > span:last-child { font: 500 1.3rem/1 "LM Space", sans-serif; transition: transform .18s ease-out; }
.setup-optional-field[open] > summary > span:last-child { transform: rotate(45deg); }
.setup-optional-field > div { padding: .35rem 1rem .1rem; border-top: 1px solid var(--line); }
.setup-address-grid { display: grid; grid-template-columns: minmax(7rem, .32fr) minmax(0, 1fr); gap: 1rem; }
.setup-contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.setup-task-actions { padding: 1rem clamp(1.2rem, 3vw, 1.75rem); display: flex; flex-wrap: wrap; gap: .65rem; border-top: 1px solid var(--line); background: var(--surface-soft); }
.setup-basics-form > .setup-task-actions { margin: 1.25rem 0 -.25rem; padding: 0; border: 0; background: transparent; }
.setup-footer { margin-top: 1rem; padding: 1rem 1.15rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border: 1px solid var(--line); background: var(--surface-soft); }
.setup-footer strong, .setup-footer span { display: block; }
.setup-footer span { margin-top: .25rem; color: var(--muted); font-size: .84rem; }
.setup-footer form { margin: 0; }
.activity-page { max-width: 68rem; }
.activity-card { padding-bottom: 0; }
.activity-card .section-heading p { margin: .3rem 0 0; color: var(--muted); font-size: .86rem; }
.activity-list { margin: 0; padding: 0; list-style: none; }
.activity-entry { display: grid; grid-template-columns: 9rem 1rem minmax(0, 1fr); gap: 1rem; }
.activity-entry > time { padding: 1.05rem 0; color: var(--muted); font-size: .76rem; text-align: right; }
.activity-track { position: relative; border-left: 1px solid #aab5ad; }
.activity-track::before { content: ""; position: absolute; top: 1.25rem; left: -.36rem; width: .65rem; height: .65rem; border: 2px solid var(--surface); border-radius: 50%; background: var(--green); box-shadow: 0 0 0 1px #7f9185; }
.activity-copy { min-width: 0; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.activity-copy > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.activity-copy strong { font: 700 1rem/1.35 "LM Space", sans-serif; }
.activity-copy span { flex: 0 0 auto; padding: .2rem .45rem; border: 1px solid var(--line); background: var(--surface-soft); color: var(--muted); font-size: .68rem; }
.activity-copy p { margin: .3rem 0 0; color: var(--muted); font-size: .82rem; }
.activity-copy .activity-detail { color: var(--ink); font-size: .88rem; overflow-wrap: anywhere; }
.activity-copy b { color: var(--ink); }
.activity-empty { padding: 1.4rem 0; }
.activity-empty h3 { margin: 0; }
.activity-empty p { margin: .4rem 0 0; color: var(--muted); }
.activity-pagination { min-height: 68px; display: flex; align-items: center; justify-content: center; gap: 1rem; }
.activity-pagination span { color: var(--muted); font-size: .8rem; }
.operator-summary { margin-bottom: 1rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--surface); }
.operator-summary div { padding: 1rem 1.15rem; border-right: 1px solid var(--line); }
.operator-summary div:last-child { border-right: 0; }
.operator-summary strong, .operator-summary span { display: block; }
.operator-summary strong { font: 700 1.65rem/1 "LM Space", sans-serif; }
.operator-summary span { margin-top: .3rem; color: var(--muted); font-size: .8rem; }
.operator-section + .operator-section { margin-top: 1rem; }
.operator-section .section-heading p { margin: .3rem 0 0; color: var(--muted); font-size: .86rem; }
.operator-section td strong, .operator-section td small { display: block; }
.operator-section td small { margin-top: .2rem; color: var(--muted); }
.operator-monitoring-facts { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.operator-monitoring-facts div { min-width: 0; padding: 1rem .9rem 0; }
.operator-monitoring-facts div:first-child { padding-left: 0; }
.operator-monitoring-facts dt { color: var(--muted); font-size: .76rem; }
.operator-monitoring-facts dd { margin: .3rem 0 0; font-weight: 700; overflow-wrap: anywhere; }
.operator-monitoring-note { margin: 1rem 0 0; padding-top: .85rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.operator-policy code { padding: .1rem .25rem; background: var(--surface-soft); font-size: .78rem; }
.operator-policy-grid { margin-top: .25rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); }
.operator-policy-grid div { padding: 1rem; border-right: 1px solid var(--line); }
.operator-policy-grid div:last-child { border-right: 0; }
.operator-policy-grid strong, .operator-policy-grid span { display: block; }
.operator-policy-grid strong { color: var(--green); font: 700 1.1rem/1.2 "LM Space", sans-serif; }
.operator-policy-grid span { margin-top: .3rem; color: var(--muted); font-size: .78rem; }
.operator-policy-details { margin-top: 1rem; }
.operator-policy-details summary { min-height: 44px; display: flex; align-items: center; color: var(--green); font-weight: 700; cursor: pointer; }
.operator-policy-details ol { margin: 0; padding: .25rem 0 0 1.5rem; }
.operator-policy-details li { padding: .5rem 0; }
.operator-policy-details li strong, .operator-policy-details li span { display: block; }
.operator-policy-details li span { margin-top: .15rem; color: var(--muted); font-size: .78rem; }
.operator-detail-grid { margin-bottom: 1rem; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(20rem, .75fr); gap: 1rem; }
.operator-facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
.operator-facts div { padding: .75rem 0; border-bottom: 1px solid var(--line); }
.operator-facts .wide { grid-column: 1 / -1; }
.operator-facts dt { color: var(--muted); font-size: .76rem; }
.operator-facts dd { margin: .25rem 0 0; overflow-wrap: anywhere; }
.operator-module-list { margin: 0; padding: 0; list-style: none; }
.operator-module-list li { padding: .75rem 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem 1rem; border-bottom: 1px solid var(--line); }
.operator-module-list strong { color: var(--green); }
.operator-module-list small { grid-column: 1 / -1; color: var(--muted); }
.operator-account-actions form, .operator-danger-zone form { display: grid; gap: .75rem; }
.operator-account-actions textarea { min-height: 7rem; resize: vertical; }
.operator-account-actions .button, .operator-danger-zone .button { justify-self: start; }
.operator-protection-note, .operator-empty { margin: .75rem 0 0; color: var(--muted); }
.operator-action-log { margin: 0; padding: 0; list-style: none; }
.operator-action-log li { padding: .8rem 0; border-bottom: 1px solid var(--line); }
.operator-action-log strong, .operator-action-log span { display: block; }
.operator-action-log span { margin-top: .2rem; color: var(--muted); font-size: .78rem; }
.operator-action-log p { margin: .35rem 0 0; }
.operator-danger-zone { border-color: #d9a29e; }
.operator-danger-zone > p { color: var(--muted); }
.operator-table-wrap .dt-container { color: var(--ink); }
.operator-table-wrap .dt-layout-row { margin: 0; gap: .75rem 1rem; align-items: end; }
.operator-table-wrap .dt-layout-row:first-child { padding: 0 0 1rem; }
.operator-table-wrap .dt-layout-row:last-child { padding: 1rem 0 0; }
.operator-table-wrap .dt-search, .operator-table-wrap .dt-length { display: grid; gap: .35rem; color: var(--muted); font-size: .76rem; font-weight: 700; }
.operator-table-wrap .dt-search input, .operator-table-wrap .dt-length select { min-height: 44px; margin: 0; border: 1px solid var(--line-strong); border-radius: 0; background: var(--surface); color: var(--ink); font: 400 .9rem/1.2 "LM Sans", sans-serif; }
.operator-table-wrap .dt-search input { width: min(22rem, 100%); padding: .65rem .75rem; }
.operator-table-wrap .dt-length select { min-width: 5rem; padding: .55rem 2rem .55rem .65rem; }
.operator-table-wrap .dt-info { padding: 0; color: var(--muted); font-size: .78rem; }
.operator-table-wrap .dt-paging { display: flex; justify-content: flex-end; }
.operator-table-wrap .dt-paging .dt-paging-button { min-width: 44px; min-height: 44px; margin: 0 0 0 .25rem; border: 1px solid var(--line) !important; border-radius: 0; background: var(--surface) !important; color: var(--green) !important; font-weight: 700; }
.operator-table-wrap .dt-paging .dt-paging-button.current { border-color: var(--green) !important; background: var(--green) !important; color: #fff !important; }
.operator-table-wrap .dt-paging .dt-paging-button.disabled { opacity: .45; }
.operator-table-wrap table.dataTable > thead > tr > th { padding-right: 1.65rem; }
.operator-table-wrap table.dataTable > thead > tr > th.operator-table-action { padding-right: .75rem; }
.editor-shell { display: grid; gap: 1.25rem; }
.editor-heading { width: 100%; min-width: 0; max-width: 52rem; }
.editor-heading h1 { font-size: clamp(2.15rem, 5vw, 3.35rem); }
.editor-form { width: 100%; min-width: 0; max-width: 64rem; display: grid; gap: 1rem; }
.form-panel, .style-panel { width: 100%; min-width: 0; }
.form-section-heading { margin-bottom: 1.2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.form-section-heading h2 { font-size: 1.35rem; }
.form-section-heading p { max-width: 46rem; margin: .45rem 0 0; color: var(--muted); font-size: .9rem; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field-grid > div { margin-bottom: 1rem; }
.style-chooser { min-width: 0; margin: 0; padding: 0; border: 0; }
.style-chooser legend { margin: 0 0 .65rem; font-weight: 700; }
.style-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.style-options-primary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.style-option { position: relative; min-width: 0; margin: 0; display: grid; grid-template-rows: 8.4rem auto; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.style-option:has(input:checked) { border-color: var(--green); box-shadow: inset 0 0 0 2px var(--green); }
.style-option:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.style-option > input { position: absolute; top: .65rem; right: .65rem; z-index: 1; width: 1.25rem; min-height: 1.25rem; accent-color: var(--green); }
.style-option-preview { padding: 1rem; display: flex; flex-direction: column; justify-content: center; border-bottom: 1px solid color-mix(in srgb, var(--style-ink) 20%, var(--style-paper)); background: var(--style-paper); color: var(--style-ink); }
.style-option-kicker { color: var(--style-accent); font-size: .58rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.style-option-title { margin: .35rem 0 .8rem; font-family: Georgia, serif; font-size: 1.25rem; line-height: 1; }
.style-option-line { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.style-option-line + .style-option-line { margin-top: .45rem; }
.style-option-line i { width: 62%; height: .32rem; background: color-mix(in srgb, var(--style-ink) 35%, var(--style-paper)); }
.style-option-line b { width: 1.8rem; height: .32rem; background: var(--style-accent); }
.style-option-line.short i { width: 42%; }
.style-option-copy { min-width: 0; padding: .85rem; display: grid; gap: .3rem; }
.style-option-copy strong { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-family: "LM Space", sans-serif; }
.style-option-copy strong small { padding: .18rem .34rem; background: var(--green-soft); color: var(--green); font: 700 .62rem "LM Sans", sans-serif; text-transform: uppercase; letter-spacing: .05em; }
.style-option-copy > span { color: var(--ink); font-size: .84rem; line-height: 1.4; }
.style-option-copy > small { color: var(--muted); font-size: .74rem; line-height: 1.4; }
.style-more, .style-advanced { margin-top: .85rem; border-top: 1px solid var(--line); }
.style-more summary, .style-advanced summary { min-height: 48px; padding: .75rem 0; display: flex; align-items: center; gap: .6rem; color: var(--green); font-weight: 700; cursor: pointer; }
.style-more summary::marker, .style-advanced summary::marker { color: var(--muted); }
.style-more .style-options { padding-top: .15rem; }
.style-advanced { margin-top: 1.2rem; }
.style-advanced summary { justify-content: flex-start; flex-wrap: wrap; }
.style-advanced summary small { margin-left: auto; color: var(--muted); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; }
.style-advanced-content { padding-top: .2rem; }
.style-advanced-content > p { max-width: 46rem; margin: 0 0 1rem; color: var(--muted); font-size: .88rem; }
.style-color-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.style-color-field { min-width: 0; margin-bottom: 1rem; }
.style-color-control { display: grid; grid-template-columns: minmax(0, 1fr) 48px; gap: .4rem; }
.style-color-control input[type="color"] { min-height: 48px; padding: .25rem; cursor: pointer; }
.style-select-grid > div { margin-bottom: 0; }
.publication-panel { width: min(100%, 52rem); }
.publication-panel h2 { font-size: 1.5rem; }
.publication-panel > div > p:not(.eyebrow) { margin: .65rem 0 0; color: var(--muted); }
.action-row { margin-top: 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.action-row form { margin: 0; }
.publication-note { margin: 1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }

/* Geführte Öffnungszeiten. */
.hours-editor { width: min(100%, 72rem); }
.hours-week { display: grid; }
.hours-day { min-width: 0; margin: 0; padding: 1rem 0; display: grid; grid-template-columns: 8rem minmax(8rem, .45fr) minmax(0, 1.55fr); gap: 1rem; align-items: start; border: 0; border-bottom: 1px solid var(--line); }
.hours-day:last-child { border-bottom: 0; }
.hours-day legend { padding-top: .7rem; font-family: "LM Space", sans-serif; font-weight: 700; }
.day-closed, .service-toggle, .exception-closed { min-height: 48px; display: flex; align-items: center; gap: .55rem; }
.day-closed input, .service-toggle input, .exception-closed input { flex: 0 0 1.2rem; width: 1.2rem; min-height: 1.2rem; margin: 0; accent-color: var(--green); }
.day-closed label, .service-toggle label, .exception-closed label { margin: 0; }
.hours-windows { min-width: 0; }
.time-window { min-width: 0; display: grid; grid-template-columns: minmax(7rem, 1fr) auto minmax(7rem, 1fr); gap: .55rem; align-items: end; }
.time-window > span { min-height: 48px; display: flex; align-items: center; color: var(--muted); }
.time-window > div { min-width: 0; margin: 0; }
.time-window label { font-size: .78rem; color: var(--muted); }
.time-window input { min-width: 0; }
.second-window { margin-top: .45rem; }
.second-window summary { min-height: 44px; display: flex; align-items: center; color: var(--green); font-size: .82rem; font-weight: 700; cursor: pointer; }
.second-window[open] summary { margin-bottom: .5rem; }
.optional-section { padding: 0; }
.optional-section > summary { min-height: 76px; padding: 1rem 1.2rem; display: flex; align-items: center; cursor: pointer; }
.optional-section > summary span { display: grid; gap: .25rem; }
.optional-section > summary strong { font: 700 1.15rem "LM Space", sans-serif; }
.optional-section > summary small { color: var(--muted); font-size: .82rem; font-weight: 400; }
.optional-section-content { padding: 0 1.2rem 1.2rem; border-top: 1px solid var(--line); }
.service-editor { padding-top: 1.15rem; }
.service-editor + .service-editor { margin-top: 1.2rem; border-top: 1px solid var(--line); }
.service-toggle { margin-bottom: .5rem; }
.exception-list-editor { display: grid; gap: .8rem; margin: 1.2rem 0; }
.exception-editor { padding: 1rem; border: 1px solid var(--line); background: var(--surface-soft); }
.exception-editor > header { margin-bottom: 1rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.exception-editor h3 { margin: 0; font: 700 1rem "LM Space", sans-serif; }
.text-button { min-height: 44px; padding: .35rem .2rem; border: 0; background: transparent; color: var(--green); text-decoration: underline; }
.text-button:hover { background: transparent; color: var(--green-deep); }
.danger-text { color: var(--red); }
.exception-closed { margin-bottom: .8rem; }
.copy-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .55rem; }
.copy-row input { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .82rem; }
.embed-section p { max-width: 46rem; color: var(--muted); }
.module-preview-frame { width: 100%; min-height: 20rem; margin: 0 0 1.25rem; overflow: hidden; border: 1px solid var(--line); background: var(--surface-soft); }
.module-preview-frame iframe { width: 100%; min-height: 24rem; display: block; border: 0; background: var(--surface); }
.gallery-module-preview iframe { min-height: 34rem; }
.hours-note { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }

/* Geführte Speisekartenpflege. */
.menu-editor-shell { max-width: 72rem; }
.menu-summary { width: min(100%, 42rem); display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); background: var(--surface); }
.menu-summary div { min-width: 0; padding: 1rem 1.2rem; display: grid; gap: .1rem; }
.menu-summary div + div { border-left: 1px solid var(--line); }
.menu-summary strong { font: 700 1.45rem "LM Space", sans-serif; }
.menu-summary span { color: var(--muted); font-size: .78rem; }
.menu-card-list { display: grid; gap: 1rem; }
.menu-admin-card { padding: 0; overflow: clip; }
.menu-admin-card.is-hidden, .menu-admin-section.is-hidden, .menu-entry-list li.is-hidden { background: var(--surface-soft); }
.menu-admin-heading { padding: 1.2rem; display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); }
.menu-admin-heading h2 { font-size: 1.55rem; }
.menu-admin-heading p:not(.eyebrow) { max-width: 44rem; margin: .45rem 0 0; color: var(--muted); font-size: .9rem; }
.compact-editor { border-bottom: 1px solid var(--line); }
.compact-editor > summary { min-height: 48px; padding: .7rem 1.2rem; color: var(--green); font-size: .84rem; font-weight: 700; cursor: pointer; }
.compact-editor > form { padding: 1rem 1.2rem 1.2rem; border-top: 1px solid var(--line); background: var(--surface-soft); }
.compact-editor textarea { min-height: 5.5rem; }
.compact-editor button { margin-top: .75rem; }
.menu-card-content > summary { min-height: 58px; padding: .75rem 1.2rem; display: flex; align-items: center; cursor: pointer; }
.menu-card-content > summary span { display: grid; gap: .2rem; }
.menu-card-content > summary strong { color: var(--green); font-size: .88rem; }
.menu-card-content > summary small { color: var(--muted); font-size: .76rem; }
.menu-card-content[open] > summary { border-bottom: 1px solid var(--line); }
.checkbox-line { min-height: 48px; display: flex; align-items: center; gap: .65rem; }
.checkbox-line input, .confirmation-line input, .price-mode input, .choice-grid input { flex: 0 0 1.15rem; width: 1.15rem; min-height: 1.15rem; accent-color: var(--green); }
.checkbox-line label, .confirmation-line { margin: 0; }
.menu-section-list { padding: 0 1.2rem 1.2rem; }
.menu-admin-section { margin-top: 1rem; border: 1px solid var(--line); }
.menu-admin-section > header { min-height: 64px; padding: .85rem 1rem; display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.menu-admin-section h3 { margin: 0; font: 700 1.05rem "LM Space", sans-serif; }
.menu-admin-section > header p { margin: .25rem 0 0; color: var(--muted); font-size: .78rem; }
.state-dot { flex: none; width: .65rem; height: .65rem; margin-top: .25rem; border-radius: 50%; background: #3f7859; box-shadow: 0 0 0 4px #dce9df; }
.is-hidden .state-dot { background: #8b918b; box-shadow: 0 0 0 4px #e1e2de; }
.menu-entry-list { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.menu-entry-list li + li { border-top: 1px solid var(--line); }
.menu-entry-list a { min-height: 54px; padding: .7rem 1rem; display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: .8rem; text-decoration: none; }
.menu-entry-list a:hover { background: var(--green-soft); }
.menu-entry-list a > span:first-child { min-width: 0; display: grid; gap: .12rem; }
.menu-entry-list strong { overflow-wrap: anywhere; }
.menu-entry-list small { color: var(--muted); font-size: .72rem; }
.menu-entry-price { color: var(--muted); font-size: .84rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.menu-settings-panel { padding-top: 1.2rem; display: grid; gap: 1.5rem; }
.menu-settings-panel form { max-width: 28rem; }
.menu-settings-panel form button { margin-top: .75rem; }
.embed-settings { padding-top: 1.2rem; border-top: 1px solid var(--line); }
.embed-settings p { color: var(--muted); font-size: .86rem; }
.back-link { display: inline-block; margin-bottom: 1rem; color: var(--green); font-weight: 700; }
.field-label { display: block; margin: 0 0 .42rem; font-weight: 700; }
.readonly-value { min-height: 48px; margin: 0; padding: .78rem .9rem; border: 1px solid var(--line); background: var(--surface-soft); }
.menu-entry-editor { max-width: 68rem; }
.menu-entry-dialog { width: min(60rem, calc(100vw - 2rem)); }
.price-mode { margin: 0 0 1.2rem; padding: 0; display: flex; flex-wrap: wrap; gap: .7rem 1.4rem; border: 0; }
.price-mode legend { width: 100%; margin-bottom: .25rem; font-weight: 700; }
.price-mode label { margin: 0; display: flex; align-items: center; gap: .5rem; }
.variant-list { display: grid; gap: .7rem; margin-bottom: .8rem; }
.variant-row { padding: .85rem; display: grid; grid-template-columns: minmax(9rem,1.3fr) minmax(7rem,.7fr) minmax(8rem,.8fr) auto; gap: .7rem; align-items: end; border: 1px solid var(--line); background: var(--surface-soft); }
.variant-row > div { min-width: 0; }
.variant-row label { font-size: .78rem; }
.variant-row .text-button { margin: 0; }
.beverage-panel[hidden] { display: none; }
.legal-intro { max-width: 46rem; color: var(--muted); }
.choice-grid { margin: 1.3rem 0 0; padding: 1rem 0 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .55rem 1rem; border: 0; border-top: 1px solid var(--line); }
.choice-grid legend { padding: 0; font-weight: 700; }
.choice-grid label { min-width: 0; margin: 0; display: flex; align-items: flex-start; gap: .55rem; font-size: .86rem; font-weight: 500; }
.choice-grid span { overflow-wrap: anywhere; }
.confirmation-line { margin-top: 1.2rem; padding: .9rem; display: flex; align-items: flex-start; gap: .65rem; border: 1px solid var(--line); background: var(--surface-soft); }

/* Reservierungsbuch: Tag zuerst, Kalender nur als ruhige Vorschau. */
.reservation-shell, .reservation-detail-shell, .reservation-workspace, .table-plan-module { display: grid; gap: 1.25rem; }
.reservation-heading { max-width: 52rem; }
.reservation-heading h1 { font-size: clamp(2.15rem, 5vw, 3.35rem); }
.reservation-workspace[aria-busy="true"] { cursor: progress; }
.reservation-workspace[aria-busy="true"] > :not(.reservation-notices) { opacity: .68; pointer-events: none; }
.reservation-notices:empty { display: none; }
.day-commandbar { max-width: 72rem; padding: .75rem; display: grid; grid-template-columns: 44px minmax(12rem, .9fr) minmax(10rem, .8fr) auto auto 44px; align-items: center; gap: .75rem; }
.day-commandbar form { min-width: 0; margin: 0; }
.day-commandbar label { margin-bottom: .22rem; color: var(--muted); font-size: .7rem; }
.day-commandbar .date-submit-row { grid-template-columns: minmax(0, 1fr) auto; }
.js .day-commandbar .date-submit-row button { display: none; }
.day-commandbar-title { min-width: 0; padding-inline: .3rem; }
.day-commandbar-title p { margin: 0 0 .1rem; color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.day-commandbar-title h2 { margin: 0; font-size: clamp(1.15rem, 2vw, 1.45rem); white-space: nowrap; }
.day-commandbar dl { margin: 0; display: flex; gap: 1.1rem; }
.day-commandbar dl div { min-width: 3.4rem; display: grid; text-align: center; }
.day-commandbar dt { color: var(--muted); font-size: .68rem; }
.day-commandbar dd { margin: 0; font: 700 1.2rem "LM Space", sans-serif; }
.table-plan-commandbar { max-width: 72rem; padding: .75rem; display: grid; grid-template-columns: 44px minmax(12rem, .9fr) minmax(10rem, .8fr) auto 44px; align-items: center; gap: .75rem; }
.table-plan-commandbar > .day-step:last-child { grid-column: -2 / -1; }
.table-plan-commandbar form { min-width: 0; margin: 0; }
.table-plan-commandbar label { margin-bottom: .22rem; color: var(--muted); font-size: .7rem; }
.table-plan-commandbar .date-submit-row { grid-template-columns: minmax(0, 1fr) auto; }
.table-plan-today { white-space: nowrap; }
.table-plan-module-empty { max-width: 42rem; }
.table-plan-module-empty p:not(.eyebrow) { color: var(--muted); }
.table-plan-unassigned { max-width: 46rem; padding: 0; overflow: hidden; border-left: 4px solid var(--amber); }
.table-plan-unassigned > header { padding: 1rem 1rem .75rem; display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.table-plan-unassigned h2 { margin: 0; font-size: 1.3rem; }
.table-plan-unassigned > p { margin: 0; padding: 0 1rem 1rem; color: var(--muted); }
.table-plan-unassigned ol { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.table-plan-unassigned li + li { border-top: 1px solid var(--line); }
.table-plan-unassigned li a { min-height: 58px; padding: .72rem 1rem; display: grid; grid-template-columns: 4.25rem minmax(0, 1fr) auto; align-items: center; gap: .75rem; color: var(--ink); text-decoration: none; }
.table-plan-unassigned li a:hover { background: var(--green-soft); }
.table-plan-unassigned time { color: var(--green); font-weight: 800; }
.table-plan-unassigned li span, .table-plan-unassigned li strong, .table-plan-unassigned li small { min-width: 0; display: block; }
.table-plan-unassigned li small { margin-top: .12rem; color: var(--muted); }
.day-create { min-height: 44px; padding: .55rem .75rem; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; border: 1px solid var(--green); background: var(--green); color: #fff; font-size: .8rem; font-weight: 750; text-decoration: none; }
.day-create:hover { background: var(--green-deep); }
.day-create svg { width: 1rem; height: 1rem; flex: 0 0 auto; }
.reservation-calendar { max-width: 72rem; padding: 0; overflow: hidden; }
.calendar-toolbar { min-height: 80px; padding: .8rem 1rem; display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px auto auto; align-items: center; gap: .7rem; border-bottom: 1px solid var(--line); }
.calendar-toolbar h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); }
.calendar-step { width: 44px; min-height: 44px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--green); font-size: 1.2rem; font-weight: 700; text-decoration: none; }
.calendar-step:hover { border-color: var(--green); background: var(--green-soft); }
.calendar-today { min-height: 44px; padding: .6rem .75rem; display: inline-flex; align-items: center; color: var(--green); font-weight: 700; }
.calendar-toggle { min-height: 44px; padding: .55rem .7rem; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border: 0; background: transparent; color: var(--green); font-size: .76rem; font-weight: 750; }
.calendar-toggle:hover { background: var(--green-soft); }
.calendar-toggle svg { width: 1rem; height: 1rem; transition: transform .18s ease-out; }
.calendar-toggle[aria-expanded="false"] svg { transform: rotate(180deg); }
.calendar-weekdays { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-bottom: 1px solid var(--line); background: var(--surface-soft); }
.calendar-weekdays span { min-width: 0; padding: .55rem .35rem; color: var(--muted); font-size: .7rem; font-weight: 800; text-align: center; text-transform: uppercase; letter-spacing: .05em; }
.calendar-grid { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); list-style: none; }
.calendar-grid li { min-width: 0; min-height: 6.6rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.calendar-grid li:nth-child(7n) { border-right: 0; }
.calendar-grid li:nth-last-child(-n + 7) { border-bottom: 0; }
.calendar-grid a { min-height: 100%; padding: .6rem; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr auto; gap: .25rem; color: var(--ink); text-decoration: none; }
.calendar-grid a:hover { background: var(--green-soft); }
.calendar-grid .outside-month a { background: #f4f3ee; color: #858b85; }
.calendar-grid .selected a { background: var(--green-soft); box-shadow: inset 0 0 0 2px var(--green); }
.calendar-date { width: 1.85rem; min-height: 1.85rem; display: grid; place-items: center; font: 700 .9rem "LM Space", sans-serif; }
.calendar-grid .today .calendar-date { border-radius: 50%; background: var(--green); color: #fff; }
.calendar-count { min-width: 1.7rem; min-height: 1.7rem; padding: .2rem; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--green-deep); font-size: .72rem; font-weight: 800; }
.calendar-open, .calendar-guests { grid-column: 1 / -1; align-self: end; overflow-wrap: anywhere; color: var(--muted); font-size: .68rem; }
.calendar-open { color: #76550b; font-weight: 750; }
.date-submit-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .4rem; }
.day-step, .day-today { min-height: 44px; padding: .55rem; display: grid; place-items: center; border: 1px solid var(--line); color: var(--green); font-weight: 750; text-decoration: none; }
.day-step:hover, .day-today:hover, .day-today.active { border-color: var(--green); background: var(--green-soft); }
.reservation-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 20rem); gap: 1.25rem; align-items: start; }
.reservation-day { min-width: 0; max-width: 72rem; margin-top: 1.25rem; display: grid; gap: 1.25rem; }
.reservation-group { display: grid; gap: .65rem; }
.reservation-group > header { display: flex; align-items: center; gap: .6rem; }
.reservation-group > header h2 { font-size: 1.2rem; }
.count-badge { min-width: 1.6rem; min-height: 1.6rem; padding: .15rem .4rem; display: grid; place-items: center; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: .72rem; font-weight: 800; }
.reservation-list { margin: 0; padding: 0; border: 1px solid var(--line); background: var(--surface); list-style: none; }
.reservation-list li + li { border-top: 1px solid var(--line); }
.reservation-list a { min-height: 64px; padding: .75rem 1rem; display: grid; grid-template-columns: 4.2rem minmax(0, 1fr) auto auto; align-items: center; gap: .8rem; color: var(--ink); text-decoration: none; }
.reservation-list a:hover { background: var(--green-soft); }
.reservation-row-time { display: grid; gap: .08rem; font-variant-numeric: tabular-nums; }
.reservation-row-time strong { font: 700 1.05rem "LM Space", sans-serif; }
.reservation-row-time span { color: var(--muted); font-size: .68rem; font-weight: 650; }
.reservation-person { min-width: 0; display: grid; gap: .15rem; }
.reservation-person strong { overflow-wrap: anywhere; }
.reservation-person small { color: var(--muted); font-size: .75rem; }
.reservation-note { max-width: 48rem; display: -webkit-box; overflow: hidden; color: #4f5f56; font-size: .76rem; line-height: 1.35; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.reservation-table-label { color: var(--green); font-size: .74rem; font-weight: 750; }
.reservation-table-label.is-unassigned { color: #76550b; }
.reservation-status { padding: .28rem .5rem; display: inline-flex; align-items: center; border: 1px solid var(--line); color: var(--muted); font-size: .72rem; font-weight: 750; white-space: nowrap; }
.status-angefragt { border-color: #d8bb78; background: var(--amber-soft); color: #6c4d08; }
.status-bestaetigt { border-color: #92aa9a; background: var(--green-soft); color: #194e32; }
.status-abgelehnt, .status-storniert, .status-verfallen, .status-no_show { background: #f0efea; color: #626a63; }
.status-erledigt { background: #e8eee9; color: #365b45; }
.reservation-empty h3 { font-size: 1.1rem; }
.reservation-empty p { max-width: 38rem; color: var(--muted); }
.range-panel { position: sticky; top: 86px; padding: 0; overflow: clip; }
.range-panel > header { padding: 1rem; border-bottom: 1px solid var(--line); }
.range-panel h2 { font-size: 1.25rem; }
.range-panel ol { margin: 0; padding: 0; list-style: none; }
.range-panel li + li { border-top: 1px solid var(--line); }
.range-panel a { min-height: 54px; padding: .6rem .75rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; color: var(--ink); text-decoration: none; }
.range-panel a:hover, .range-panel li.active a { background: var(--green-soft); }
.range-panel a > span:first-child { min-width: 0; display: grid; gap: .08rem; }
.range-panel small { color: var(--muted); font-size: .68rem; }
.range-count { color: var(--muted); font-size: .7rem; white-space: nowrap; }
.range-count.needs-attention { color: #76550b; font-weight: 750; }
.reservation-form-shell, .reservation-settings-shell { max-width: 68rem; }
.reservation-form-shell .form-actions, .reservation-settings-form .form-actions { max-width: 64rem; }
.service-period-list { display: grid; gap: .75rem; margin-bottom: .75rem; }
.service-period { min-width: 0; margin: 0; padding: .9rem; border: 1px solid var(--line); background: var(--surface-soft); }
.service-period legend { padding: 0 .3rem; font: 700 .82rem "LM Space", sans-serif; }
.service-period-fields { display: grid; grid-template-columns: 1.2fr .7fr repeat(2, 1fr) .85fr .85fr; gap: .55rem; align-items: end; }
.service-period-fields > div { min-width: 0; }
.service-period-fields label { color: var(--muted); font-size: .72rem; }
.service-period .text-button { margin-top: .45rem; }
.reservation-basics { margin-top: 1rem; }
.reservation-detail-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(18rem, .6fr); gap: 1rem; align-items: start; }
.reservation-detail-card { padding-bottom: 0; }
.detail-facts { margin: 0; }
.detail-facts div { padding: .85rem 0; display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: .8rem; border-bottom: 1px solid var(--line); }
.detail-facts dt { color: var(--muted); font-size: .78rem; }
.detail-facts dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.reservation-actions form { margin: 0; }
.reservation-actions textarea { min-height: 5rem; }
.reservation-actions button { width: 100%; margin-top: .65rem; }
.reservation-history { max-width: 48rem; }
.reservation-history ol { margin: 0; padding: 0; list-style: none; }
.reservation-history li { padding: .8rem 0; display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 1rem; border-bottom: 1px solid var(--line); }
.reservation-history time { color: var(--muted); font-size: .75rem; }
.reservation-history li > span { display: grid; gap: .15rem; }
.reservation-history small { color: var(--muted); }
.reservation-dialog { width: min(48rem, calc(100vw - 2rem)); }
.dialog-status-panel { margin: 0 0 1.35rem; padding: 1rem; border: 1px solid #b9c9bd; background: #f1f6f2; }
.dialog-status-panel > header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.dialog-status-panel > header .eyebrow { margin-bottom: .35rem; font-size: .65rem; }
.dialog-status-panel > header h3 { margin: 0; }
.dialog-status-panel > header a { color: var(--green); font-size: .82rem; font-weight: 700; }
.dialog-status-quick-actions { margin: .9rem 0 0; display: flex; flex-wrap: wrap; gap: .55rem; }
.dialog-status-quick-actions button { margin: 0; }
.dialog-status-more { margin-top: .8rem; border-top: 1px solid #ccd8ce; }
.dialog-status-more > summary { min-height: 44px; padding: .7rem 0 0; display: flex; align-items: center; color: var(--green); font-size: .8rem; font-weight: 700; cursor: pointer; }
.dialog-status-more > form { padding-top: .7rem; }
.dialog-status-more textarea { min-height: 5rem; }
.dialog-status-more button { margin-top: .7rem; }
.dialog-form { margin: 0; }
.dialog-form h3 { font-size: 1.2rem; }
.dialog-table-assignment { margin: 0 0 1.35rem; padding: 1rem; border: 1px solid var(--line); background: var(--surface-soft); }
.dialog-table-assignment form { margin: 0; }
.table-candidate-list { display: grid; gap: .8rem; }
.table-candidate-group { margin: 0; padding: .65rem; display: grid; gap: .45rem; border: 1px solid var(--line); background: var(--surface); }
.table-candidate-group legend { padding: 0 .3rem; font: 750 .8rem "LM Space", sans-serif; }
.table-candidate-group legend span { margin-right: .35rem; color: var(--muted); font: 650 .68rem "LM Sans", sans-serif; }
.table-candidate { min-height: 56px; margin: 0; padding: .55rem .65rem; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .65rem; border: 1px solid var(--line); background: var(--surface); font-weight: 500; }
.table-candidate:has(input:checked), .table-candidate.is-selected { border-color: var(--green); background: var(--green-soft); }
.table-candidate input { margin: 0; }
.table-candidate > span:last-child { min-width: 0; display: grid; gap: .12rem; }
.table-candidate small { color: var(--muted); font-size: .72rem; overflow-wrap: anywhere; }
.table-candidate.is-unavailable { color: var(--muted); background: #f0efea; }
.table-assignment-hint { margin: .75rem 0; font-size: .75rem; }
.reservation-view-switch { max-width: 72rem; min-height: 52px; padding: .3rem; display: flex; align-items: center; gap: .3rem; border: 1px solid var(--line); background: var(--surface); }
.reservation-view-switch a { min-height: 44px; padding: .55rem .8rem; display: inline-flex; align-items: center; gap: .45rem; color: var(--muted); font-weight: 750; text-decoration: none; }
.reservation-view-switch a:hover, .reservation-view-switch a.active { background: var(--green-soft); color: var(--green-deep); }
.reservation-view-switch a span { min-width: 1.4rem; padding: .1rem .35rem; border-radius: 999px; background: var(--surface); font-size: .68rem; text-align: center; }
.reservation-view-switch > strong { margin-left: auto; padding: .4rem .65rem; color: #76550b; font-size: .75rem; }
.table-plan-empty-note { max-width: 72rem; }
.table-day-view { max-width: 72rem; display: grid; gap: .8rem; }
.table-day-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.table-day-heading h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); }
.table-area-list { display: grid; gap: 1rem; }
.table-area { border: 1px solid var(--line); background: var(--surface); }
.table-area > header { min-height: 62px; padding: .75rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); }
.table-area > header p { margin: 0 0 .12rem; color: var(--muted); font-size: .68rem; font-weight: 750; }
.table-area > header h3 { font-size: 1.12rem; }
.table-area > header > span { color: var(--muted); font-size: .72rem; }
.table-day-grid { padding: .75rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; }
.table-day-card { min-height: 128px; padding: .75rem; display: grid; align-content: space-between; gap: .7rem; border: 1px solid var(--line); background: var(--surface-soft); color: var(--ink); text-align: left; text-decoration: none; }
.table-day-card:hover { border-color: var(--green); background: var(--green-soft); }
.table-day-card.is-inactive { background: #f0efea; }
.table-day-card-heading { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.table-day-card-heading strong { font-size: 1rem; }
.table-day-card-heading small, .table-day-empty { color: var(--muted); font-size: .7rem; }
.table-day-slots { display: grid; gap: .3rem; }
.table-day-slots > span { padding-top: .35rem; display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; border-top: 1px solid var(--line); }
.table-day-slots time { font: 750 .78rem "LM Space", sans-serif; }
.table-day-slots small { color: var(--muted); font-size: .66rem; }
.table-day-dialog { width: min(42rem, calc(100vw - 2rem)); }
.table-dialog-reservations { margin: 0; padding: 0; border: 1px solid var(--line); list-style: none; }
.table-dialog-reservations li + li { border-top: 1px solid var(--line); }
.table-dialog-reservations a { width: 100%; min-height: 64px; padding: .65rem .75rem; display: grid; grid-template-columns: 6rem minmax(0, 1fr) auto; align-items: center; gap: .7rem; border: 0; background: var(--surface); color: var(--ink); text-align: left; text-decoration: none; }
.table-dialog-reservations a:hover { background: var(--green-soft); }
.table-dialog-reservations time { font: 750 .8rem "LM Space", sans-serif; }
.table-dialog-reservations a > span { display: grid; gap: .1rem; }
.table-dialog-reservations small { color: var(--muted); font-size: .7rem; }
.table-settings-shell { max-width: 76rem; }
.table-settings-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.table-settings-actions > details { width: auto; padding: 0; }
.table-settings-actions > details > summary { min-height: 48px; padding: .7rem .9rem; display: flex; align-items: center; color: var(--green); font-weight: 750; cursor: pointer; }
.floor-settings-list, .area-settings-list { display: grid; gap: 1rem; }
.floor-settings-card { padding: 0; overflow: clip; }
.floor-settings-card > header, .area-settings-card > header { padding: .9rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.floor-settings-card > header { border-bottom: 1px solid var(--line); }
.floor-settings-card.is-inactive, .area-settings-card.is-inactive, .table-settings-list li.is-inactive { background: #f0efea; }
.area-settings-list { padding: .8rem; }
.area-settings-card { border: 1px solid var(--line); background: var(--surface); }
.area-settings-card h4 { font-size: 1rem; }
.area-settings-card small { color: var(--muted); font-size: .7rem; }
.table-settings-list { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.table-settings-list li { min-height: 58px; padding: .55rem .75rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.table-settings-list li + li { border-top: 1px solid var(--line); }
.table-settings-list li > span { display: grid; gap: .08rem; }
.table-settings-empty { margin: 0; padding: .9rem 1rem; color: var(--muted); font-size: .8rem; }
.compact-fields { gap: .75rem; }
.open-request-commandbar { max-width: 72rem; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1.5rem; }
.open-request-commandbar h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.open-request-commandbar p:not(.eyebrow) { max-width: 44rem; margin: .45rem 0 0; color: var(--muted); font-size: .86rem; }
.open-request-commandbar form { min-width: min(100%, 15rem); margin: 0; display: grid; gap: .4rem; }
.open-request-commandbar form small { color: var(--muted); font-size: .7rem; text-align: center; }
.open-request-list { max-width: 72rem; margin-top: 1.25rem; }
.open-reservation-empty { max-width: 48rem; }
.open-reservation-empty h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.print-sheet { max-width: 54rem; margin: 0 auto; padding: 2rem; background: #fff; }
.print-sheet > header { padding-bottom: 1rem; border-bottom: 2px solid #222; }
.print-sheet ol { margin: 1rem 0; padding: 0; list-style: none; }
.print-sheet li { min-height: 3.5rem; padding: .65rem 0; display: grid; grid-template-columns: 4rem minmax(12rem, 1fr) 6rem 7rem; gap: .75rem; border-bottom: 1px solid #aaa; }
.print-sheet li small { grid-column: 2 / -1; }
.print-generated { color: #555; font-size: .7rem; }

/* Galeriepflege mit kontextbezogenem Upload statt überladenem Medienmanager. */
.gallery-shell { max-width: 74rem; }
.gallery-toggle-card form { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 1rem; }
.gallery-toggle-card h2 { font-size: 1.3rem; }
.gallery-toggle-card p { margin: .35rem 0 0; color: var(--muted); font-size: .85rem; }
.gallery-section-list { display: grid; gap: 1rem; }
.gallery-section-card { padding: 0; overflow: clip; }
.gallery-section-card.is-hidden { background: var(--surface-soft); }
.gallery-section-heading { padding: 1.2rem; display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); }
.gallery-section-heading h2 { font-size: 1.55rem; }
.gallery-section-empty { margin: 0; padding: 1.2rem; color: var(--muted); }
.gallery-admin-grid { padding: 1rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.gallery-admin-item { min-width: 0; border: 1px solid var(--line); background: var(--surface); }
.gallery-admin-item.is-hidden { background: var(--surface-soft); }
.gallery-admin-image { aspect-ratio: 16 / 10; overflow: hidden; background: #deddd6; }
.gallery-admin-image img, .focus-preview img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: var(--focus-x) var(--focus-y); }
.gallery-admin-copy { min-height: 5.5rem; padding: .8rem; }
.gallery-admin-copy h3 { margin: 0; font: 700 .92rem/1.35 "LM Sans", sans-serif; }
.gallery-admin-copy p { margin: .35rem 0 0; color: var(--muted); font-size: .7rem; }
.gallery-item-editor { border-top: 1px solid var(--line); }
.gallery-item-editor > summary { min-height: 46px; padding: .65rem .8rem; display: flex; align-items: center; color: var(--green); font-size: .78rem; font-weight: 750; cursor: pointer; }
.gallery-item-editor > form { padding: .85rem; border-top: 1px solid var(--line); background: var(--surface-soft); }
.gallery-item-editor textarea { min-height: 4.5rem; }
.gallery-item-editor button[type="submit"] { margin-top: .65rem; }
.gallery-trash-form { margin: 0; padding: 0 .8rem .35rem; border-top: 1px solid var(--line); }
.focus-previews { margin: .8rem 0; display: grid; grid-template-columns: 1.5fr 1fr .72fr; gap: .5rem; align-items: start; }
.focus-preview { overflow: hidden; border: 1px solid var(--line); background: #ddd; }
.focus-preview.wide { aspect-ratio: 16 / 9; }
.focus-preview.square { aspect-ratio: 1; }
.focus-preview.portrait { aspect-ratio: 3 / 4; }
.focus-controls { margin-top: .75rem; }
.focus-controls input[type="range"] { min-height: 44px; padding: 0; }
.gallery-upload { border-top: 1px solid var(--line); background: var(--surface-soft); }
.gallery-upload > summary { min-height: 54px; padding: .75rem 1.2rem; display: flex; align-items: center; color: var(--green); font-weight: 750; cursor: pointer; }
.gallery-upload > form { max-width: 48rem; padding: 0 1.2rem 1.2rem; }
.gallery-upload input[type="file"] { padding: .55rem; }
.gallery-upload input[type="file"] + small { display: block; margin: .35rem 0 1rem; color: var(--muted); }
.gallery-trash ul { margin: 0; padding: 1rem 0 0; list-style: none; }
.gallery-trash li { min-height: 72px; padding: .5rem 0; display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; align-items: center; gap: .8rem; border-bottom: 1px solid var(--line); }
.gallery-trash img { width: 80px; height: 56px; object-fit: cover; }
.gallery-trash form { margin: 0; }

@media (max-width: 64rem) {
    .auth-shell { grid-template-columns: minmax(17rem, 36%) minmax(0, 1fr); }
    .auth-promise-title { font-size: clamp(2rem, 4.2vw, 3.2rem); }
}

@media (max-width: 54rem) {
    .app-shell, .sidebar-collapsed .app-shell:not(.onboarding-shell) { display: block; }
    .app-sidebar { position: relative; top: auto; width: 100%; height: auto; min-height: 100vh; min-height: 100dvh; }
    .js .app-sidebar { position: fixed; inset: 0 auto 0 0; width: min(19rem, calc(100vw - 3.25rem)); height: 100vh; height: 100dvh; padding-top: max(1rem, env(safe-area-inset-top)); transform: translateX(-105%); box-shadow: 18px 0 50px rgba(10, 19, 14, .24); }
    .js.sidebar-open .app-sidebar { transform: translateX(0); }
    .js.sidebar-open body { overflow: hidden; }
    .sidebar-collapsed .app-sidebar { padding-inline: 1rem; }
    .sidebar-collapsed .sidebar-heading { flex-direction: row; }
    .sidebar-collapsed .sidebar-toggle svg { transform: none; }
    .sidebar-collapsed .nav-text, .sidebar-collapsed .nav-label, .sidebar-collapsed .sidebar-account-copy { position: static !important; width: auto !important; height: auto !important; padding: revert !important; margin: revert !important; overflow: visible !important; clip: auto !important; white-space: normal !important; border: revert !important; }
    .sidebar-collapsed .app-nav a, .sidebar-collapsed .sidebar-logout { width: auto; justify-content: flex-start; padding-inline: .72rem; }
    .sidebar-collapsed .app-nav a.active::after { position: static; width: .45rem; height: .45rem; margin-left: auto; }
    .sidebar-collapsed .sidebar-account { padding-inline: .55rem; }
    .sidebar-collapsed .sidebar-account form { margin-top: .75rem; }
    .js .sidebar-toggle { margin-left: auto; }
    .js .mobile-sidebar-toggle { display: inline-grid; }
    .js .sidebar-backdrop { position: fixed; z-index: 45; inset: 0; width: 100%; height: 100%; min-height: 0; padding: 0; display: block; border: 0; border-radius: 0; background: rgba(10, 18, 13, .55); }
    .sidebar-backdrop:hover { background: rgba(10, 18, 13, .55); }
    .sidebar-backdrop[hidden] { display: none; }
    .app-topbar { min-height: 0; flex-wrap: wrap; }
    .app-topbar-context { width: 100%; justify-content: flex-start; }
    .mobile-brand { display: inline-flex; }
    .platform-state { margin-left: auto; }
    .app-topbar-actions { width: 100%; margin-left: 0; flex-wrap: wrap; }
    .table-plan-topbar-actions .topbar-action { width: auto; min-width: 0; flex: 1 1 8rem; padding-inline: .65rem; }
    .table-plan-topbar-actions .topbar-action.view-action { width: auto; flex-basis: 7rem; }
    .topbar-publish-form { min-width: 0; }
    .topbar-action.view-action { flex: 0 0 44px; width: 44px; padding-inline: 0; }
    .topbar-action.view-action .topbar-action-label { display: none; }
    .topbar-action.save-action, .topbar-publish-form { flex: 1 1 auto; }
    .topbar-publish-form .topbar-action { width: 100%; }
    .topbar-action.save-action svg, .topbar-action.publish-action svg { display: none; }
    .dashboard-actions .topbar-action.view-action { flex: 0 1 auto; width: auto; padding-inline: .72rem; }
    .dashboard-actions .topbar-action.view-action .topbar-action-label { display: inline; }
    .app-content { padding-bottom: clamp(1.5rem, 5vw, 3rem); }
    .style-options-primary { grid-template-columns: 1fr; }
    .reservation-layout { grid-template-columns: 1fr; }
    .range-panel { position: static; }
    .range-panel ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .range-panel li + li { border-top: 0; }
    .range-panel li:nth-child(even) { border-left: 1px solid var(--line); }
    .range-panel li:nth-child(n+3) { border-top: 1px solid var(--line); }
    .service-period-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .gallery-admin-grid { grid-template-columns: 1fr; }
    .team-layout { grid-template-columns: 1fr; }
    .operator-detail-grid { grid-template-columns: 1fr; }
    .operator-monitoring-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .operator-policy-grid { grid-template-columns: 1fr; }
    .operator-policy-grid div { border-right: 0; border-bottom: 1px solid var(--line); }
    .operator-policy-grid div:last-child { border-bottom: 0; }
    .operator-monitoring-facts div:nth-child(3) { padding-left: 0; }
    .setup-workspace { grid-template-columns: 1fr; }
    .setup-rail { position: static; }
    .setup-navigation { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .setup-navigation li + li { border-top: 0; }
    .setup-navigation li:nth-child(even) { border-left: 1px solid var(--line); }
    .setup-navigation li:nth-child(n+3) { border-top: 1px solid var(--line); }
    .setup-navigation li:last-child { grid-column: 1 / -1; }
    .day-commandbar-title { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
}

@media (min-width: 30rem) and (max-width: 54rem) {
    .app-topbar-actions .topbar-action.view-action { flex: 0 1 auto; width: auto; padding-inline: .72rem; }
    .app-topbar-actions .topbar-action.view-action .topbar-action-label { display: inline; }
    .day-commandbar { grid-template-columns: 44px minmax(10rem, 1fr) auto auto 44px; }
    .table-plan-commandbar { grid-template-columns: 44px minmax(10rem, 1fr) auto 44px; }
}

@media (max-width: 48rem) {
    .auth-shell { display: block; }
    .auth-intro { position: relative; min-height: 0; padding: 1rem 1.25rem; }
    .auth-intro::after, .auth-promise, .auth-intro-note { display: none; }
    .auth-brand { font-size: 1rem; }
    .auth-brand img { width: 34px; height: 34px; }
    .auth-workspace { min-height: 0; padding: 1.75rem 1.25rem 2.5rem; }
    .password-guide ul { grid-template-columns: 1fr; }
    .page-heading { grid-template-columns: 1fr; }
    .account-chip { display: none; }
    .operator-section .responsive-table-wrap { overflow: visible; }
    .operator-section table, .operator-section tbody { display: block; }
    .operator-section tbody { display: grid; gap: .75rem; }
    .operator-section thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
    .operator-section tr { padding: .9rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1.25rem; border: 1px solid var(--line); background: var(--surface-soft); }
    .operator-section td, .operator-section td:last-child { min-width: 0; padding: 0; display: block; border: 0; white-space: normal; text-align: left; }
    .operator-section td.dt-type-numeric { text-align: left !important; }
    .operator-section td:first-child, .operator-section td:last-child { grid-column: 1 / -1; }
    .operator-section td::before { content: attr(data-label); margin-bottom: .25rem; display: block; color: var(--muted); font-size: .7rem; font-weight: 700; }
    .operator-section td .state-badge { width: auto; display: inline-flex; }
    .operator-section td .button { justify-self: start; }
    .operator-table-wrap .dt-layout-row { display: grid; grid-template-columns: 1fr; }
    .operator-table-wrap .dt-layout-cell { width: 100%; }
    .operator-table-wrap .dt-search input { width: 100%; }
    .operator-table-wrap .dt-length { grid-template-columns: auto minmax(0, 1fr); align-items: center; }
    .operator-table-wrap .dt-length select { grid-column: 1; grid-row: 1; }
    .operator-table-wrap .dt-length label { grid-column: 2; grid-row: 1; }
    .operator-table-wrap .dt-paging { justify-content: flex-start; overflow-x: auto; }
}

@media (prefers-reduced-motion: reduce) {
    .auth-form button[data-auth-submit][data-submitting="true"] { color: #fff; }
    .auth-form button[data-auth-submit][data-submitting="true"]::after { display: none; }
    .start-choice-panel { animation: none; }
    .start-choice-arrow { transition: none; }
}

@media (max-width: 42.5rem) {
    .onboarding-shell .app-topbar { min-height: 70px; flex-wrap: nowrap; }
    .onboarding-shell .app-topbar-context { width: auto; min-width: 0; flex: 1 1 auto; }
    .onboarding-shell .platform-state { max-width: min(46vw, 11rem); }
    .dashboard-workspace { grid-template-columns: 1fr; }
    .dashboard-metrics { grid-template-columns: 1fr; }
    .dashboard-metrics div + div { border-top: 1px solid var(--line); border-left: 0; }
    .field-grid { grid-template-columns: 1fr; gap: 0; }
    .profile-facts div { grid-template-columns: 1fr; gap: .25rem; }
    .platform-state { max-width: 50vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .style-options, .style-color-grid { grid-template-columns: 1fr; }
    .style-option { grid-template-columns: minmax(8rem, .7fr) minmax(0, 1.3fr); grid-template-rows: auto; }
    .style-option-preview { min-height: 8.8rem; border-right: 1px solid color-mix(in srgb, var(--style-ink) 20%, var(--style-paper)); border-bottom: 0; }
    .hours-day { grid-template-columns: minmax(6.5rem, .6fr) minmax(0, 1.4fr); }
    .hours-day legend { grid-column: 1; }
    .day-closed { grid-column: 1; }
    .hours-windows { grid-column: 2; grid-row: 1 / span 2; }
    .day-commandbar { grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: end; gap: .55rem; }
    .day-commandbar form { grid-column: 2; grid-row: 1; }
    .day-commandbar > .day-step:first-child { grid-column: 1; grid-row: 1; }
    .day-commandbar > .day-step:last-child { grid-column: 3; grid-row: 1; }
    .day-commandbar dl { grid-column: 1 / 3; grid-row: 2; justify-content: flex-start; padding-left: .2rem; }
    .table-plan-commandbar { grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: end; gap: .55rem; }
    .table-plan-commandbar form { grid-column: 2; grid-row: 1; }
    .table-plan-commandbar > .day-step:first-child { grid-column: 1; grid-row: 1; }
    .table-plan-commandbar > .day-step:last-child { grid-column: 3; grid-row: 1; }
    .table-plan-commandbar .date-submit-row { grid-template-columns: 1fr; }
    .table-plan-commandbar .date-submit-row button { width: 100%; }
    .table-plan-today { grid-column: 2; grid-row: 2; justify-self: start; }
    .day-create span { display: none; }
    .day-create { width: 44px; padding: 0; grid-column: 3; grid-row: 2; justify-self: end; }
    .calendar-toolbar { grid-template-columns: 44px minmax(0, 1fr) 44px; }
    .calendar-today { grid-column: 1 / 2; justify-content: center; }
    .calendar-toggle { grid-column: 2 / 4; justify-content: flex-end; }
    .reservation-list a { grid-template-columns: 3.5rem minmax(0, 1fr) auto; }
    .reservation-list a > span[aria-hidden] { display: none; }
    .reservation-status { grid-column: 2; justify-self: start; }
    .reservation-detail-layout { grid-template-columns: 1fr; }
    .calendar-grid li { min-height: 4.7rem; }
    .calendar-grid a { padding: .35rem; }
    .calendar-guests { display: none; }
    .calendar-open { font-size: .6rem; }
    .reservation-list a.with-date { grid-template-columns: 5.2rem minmax(0, 1fr) auto; }
    .dialog-status-panel > header { align-items: flex-start; flex-direction: column; }
    .reservation-view-switch { align-items: stretch; flex-wrap: wrap; }
    .reservation-view-switch a { flex: 1 1 auto; justify-content: center; }
    .reservation-view-switch > strong { width: 100%; margin: 0; text-align: center; }
    .table-day-grid { grid-template-columns: 1fr; }
    .table-day-heading { align-items: flex-start; flex-direction: column; }
    .table-settings-actions { display: grid; grid-template-columns: 1fr; }
    .table-settings-actions > details { width: 100%; }
    .floor-settings-card > header, .area-settings-card > header, .table-settings-list li { align-items: stretch; flex-direction: column; }
    .floor-settings-card > header .button, .area-settings-card > header .button, .table-settings-list .button { width: 100%; }
    .open-request-commandbar { grid-template-columns: 1fr; }
    .open-request-commandbar form { width: 100%; }
    .open-request-commandbar form button { width: 100%; }
    .service-period-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gallery-toggle-card form { grid-template-columns: 1fr; }
    .gallery-toggle-card form button { width: 100%; }
    .start-choice > summary { grid-template-columns: 2.25rem minmax(0, 1fr) 1.5rem; gap: .75rem; }
    .start-choice-label { grid-column: 2; justify-self: start; }
    .start-choice-arrow { grid-column: 3; grid-row: 1; }
    .start-choice-panel { padding: 1.25rem; grid-template-columns: 1fr; }
    .onboarding-demo, .sample-option, .lifecycle-contact { align-items: stretch; flex-direction: column; grid-template-columns: 1fr; }
    .onboarding-demo, .sample-option { display: flex; }
    .onboarding-demo .button, .sample-option .button { width: 100%; }
    .onboarding-footer { flex-direction: column; }
    .lifecycle-facts { grid-template-columns: 1fr; }
    .lifecycle-facts div + div { border-top: 1px solid var(--line); border-left: 0; }
    .invitation-code-option { grid-template-columns: 1fr; }
    .invitation-choice { align-items: stretch; flex-direction: column; }
    .invitation-choice button { width: 100%; }
    .activation-code-result { grid-template-columns: 1fr; }
    .activation-code-result code { overflow-x: auto; }
    .setup-hero { grid-template-columns: 1fr; gap: 1rem; }
    .setup-hero h1 { font-size: clamp(2.25rem, 11vw, 3rem); }
    .setup-progress { width: 100%; }
    .setup-complete { grid-template-columns: 2rem minmax(0, 1fr); }
    .setup-complete .button { grid-column: 1 / -1; width: 100%; }
    .setup-rail { overflow: hidden; }
    .setup-rail-heading, .setup-rail-note { display: none; }
    .setup-navigation { display: flex; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; }
    .setup-navigation li { flex: 0 0 10.75rem; scroll-snap-align: start; }
    .setup-navigation li + li, .setup-navigation li:nth-child(even), .setup-navigation li:nth-child(n+2), .setup-navigation li:last-child { grid-column: auto; border-top: 0; border-left: 1px solid var(--line); }
    .setup-navigation a { min-height: 68px; grid-template-columns: 2rem minmax(0, 1fr); }
    .setup-navigation small, .setup-navigation em { display: none; }
    .setup-task-heading { flex-direction: column; }
    .setup-address-grid, .setup-contact-grid { grid-template-columns: 1fr; gap: 0; }
    .setup-task-actions { display: grid; grid-template-columns: 1fr; }
    .setup-task-actions .button, .setup-task-actions button { width: 100%; }
    .setup-footer { align-items: stretch; flex-direction: column; }
    .setup-footer button { width: 100%; }
    .operator-summary { grid-template-columns: 1fr; }
    .operator-summary div { border-right: 0; border-bottom: 1px solid var(--line); }
    .operator-summary div:last-child { border-bottom: 0; }
    .operator-section tr { grid-template-columns: 1fr; }
    .operator-section td { grid-column: 1; }
    .operator-facts { grid-template-columns: 1fr; }
    .operator-facts .wide { grid-column: auto; }
    .operator-monitoring-facts { grid-template-columns: 1fr; }
    .operator-monitoring-facts div { padding-inline: 0; }
    .activity-entry { grid-template-columns: .8rem minmax(0, 1fr); gap: .75rem; }
    .activity-entry > time { grid-column: 2; padding: .9rem 0 0; text-align: left; }
    .activity-track { grid-column: 1; grid-row: 1 / span 2; }
    .activity-copy { grid-column: 2; padding-top: .35rem; }
    .activity-copy > div { flex-direction: column; gap: .45rem; }
    .activity-copy span { align-self: flex-start; }
    .activity-pagination { flex-wrap: wrap; }
    .member-list li { align-items: flex-start; flex-direction: column; }
    .member-actions { width: 100%; justify-content: flex-start; }
}

@media (max-width: 26.25rem) {
    .site-header { padding-inline: 1rem; }
    .site-header nav > a:first-child { display: none; }
    .auth-workspace { padding-inline: 1rem; }
    .registration-facts { display: grid; }
    .password-control input { padding-right: 3.5rem; }
    .app-content { padding-inline: .9rem; }
    .operator-monitoring .section-heading { flex-direction: column; }
    .mobile-brand span { display: none; }
    .platform-state { max-width: 68vw; }
    .start-choice > summary { padding-inline: .85rem; }
    .start-choice-number { display: none; }
    .start-choice > summary { grid-template-columns: minmax(0, 1fr) 1.5rem; }
    .start-choice-label { grid-column: 1; }
    .start-choice-arrow { grid-column: 2; }
    .start-choice-panel { padding-inline: .9rem; }
    .style-option { grid-template-columns: 1fr; grid-template-rows: 7.5rem auto; }
    .style-option-preview { min-height: 0; border-right: 0; border-bottom: 1px solid color-mix(in srgb, var(--style-ink) 20%, var(--style-paper)); }
    .hours-day { display: block; }
    .hours-day legend { padding: 0 0 .45rem; }
    .day-closed { margin-bottom: .5rem; }
    .time-window { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
    .copy-row { grid-template-columns: 1fr; }
    .menu-summary { grid-template-columns: 1fr; }
    .menu-summary div + div { border-top: 1px solid var(--line); border-left: 0; }
    .menu-admin-heading { display: grid; }
    .menu-entry-list a { grid-template-columns: minmax(0,1fr) auto; }
    .menu-entry-list a > span:last-child { display: none; }
    .variant-row { grid-template-columns: 1fr; }
    .variant-row .text-button { justify-self: start; }
    .choice-grid { grid-template-columns: 1fr; }
    .date-submit-row { grid-template-columns: 1fr; }
    .calendar-grid li { min-height: 4.1rem; }
    .calendar-count { min-width: 1.35rem; min-height: 1.35rem; font-size: .62rem; }
    .calendar-date { width: 1.45rem; min-height: 1.45rem; font-size: .75rem; }
    .calendar-open { grid-column: 1 / -1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .work-dialog { width: 100%; max-width: none; max-height: 100dvh; height: 100dvh; margin: 0; border: 0; border-radius: 0; }
    .dialog-body { min-height: 0; max-height: none; }
    .dialog-actions.form-actions { display: grid; grid-template-columns: 1fr; }
    .dialog-actions.form-actions button { width: 100%; }
    .range-panel ol { grid-template-columns: 1fr; }
    .range-panel li:nth-child(even) { border-left: 0; }
    .range-panel li + li { border-top: 1px solid var(--line); }
    .service-period-fields { grid-template-columns: 1fr; }
    .detail-facts div { grid-template-columns: 1fr; gap: .25rem; }
    .reservation-history li { grid-template-columns: 1fr; gap: .25rem; }
    .gallery-admin-grid { padding: .65rem; }
    .gallery-trash li { grid-template-columns: 64px minmax(0, 1fr); }
    .gallery-trash img { width: 64px; height: 48px; }
    .gallery-trash form { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
    .app-sidebar, .app-topbar, .mobile-nav, .site-header, .skip-link { display: none !important; }
    .app-shell { display: block; }
    .app-content { max-width: none; padding: 0; }
    body { background: #fff; }
    .print-sheet { max-width: none; padding: 0; }
    .print-sheet li { break-inside: avoid; }
}
