.registration-ribbon{position:relative;display:flex;align-items:center;justify-content:center;gap:20px;min-height:34px;padding:6px 20px;background:#e9dbc2;color:#493e2d;font-size:11px;font-weight:600;letter-spacing:.11em;text-align:center}
.registration-ribbon>span:first-child,.registration-ribbon>span:last-child{color:#8c7147;font-size:16px}
.registration-pricing-note{text-align:center;max-width:730px;margin:0 auto 48px;padding:25px 28px 27px;border:1px solid #bd9c6266;background:linear-gradient(120deg,#e9dbc21a,#e9dbc238);border-radius:3px}
.registration-label{font-size:10px;font-weight:700;letter-spacing:.19em;color:#907044}
.registration-pricing-note p{font-family:Georgia,serif;font-size:clamp(21px,2.4vw,29px);line-height:1.4;margin:11px 0;color:var(--ws-ink,#142b3b)}
.registration-pricing-note p em{color:#967343}.registration-pricing-note>span:last-child{font-size:13px;line-height:1.7;color:var(--ws-muted,#65727a)}
.invitation-modal .invitation-seal{display:grid;place-items:center;width:52px;height:52px;border:1px solid #b8996066;background:#e9dbc230;color:#977442;font-family:Georgia,serif;font-size:30px;margin-bottom:24px;border-radius:50%}
.invitation-modal h2{font-family:Georgia,serif;font-weight:400;letter-spacing:-.035em}.invitation-modal .eyebrow-new{color:#977442}
.invitation-note{display:flex;flex-direction:column;gap:6px;border-top:1px solid #b8996038;padding-top:20px;margin-top:12px;font-size:13px;line-height:1.7;color:var(--muted,#75808b)}
.invitation-note b{font-weight:600;color:var(--ink,#28394c)}
.admin-expanded .admin-content[data-admin-view="mail-delivery"] [data-admin-section="mail-delivery"],.admin-expanded .admin-content[data-admin-view="general-settings"] [data-admin-section="general-settings"]{display:block}
.admin-expanded .admin-sidebar nav{overflow-y:auto;min-height:0}.admin-expanded .admin-sidebar{overflow-y:auto}
.system-settings-panel{max-width:1000px;padding:30px!important}.system-settings-heading{display:flex;gap:18px;align-items:center;padding-bottom:28px;border-bottom:1px solid var(--line,#dce0e5)}
.system-settings-heading h2{margin:0 0 7px!important;font-size:23px!important}.system-settings-heading p{margin:0;font-size:14px;line-height:1.7;color:var(--muted,#687787)}
.system-settings-icon{display:grid;place-items:center;width:52px;height:52px;flex-shrink:0;border:1px solid #b899604d;background:#e9dbc230;border-radius:14px;font-size:23px;color:#a1804b}
.system-settings-form fieldset{padding:0;border:0;margin:27px 0}.system-settings-form legend{font-size:14px;font-weight:700;margin-bottom:17px}
.system-mode-options{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}.system-mode-options-two{grid-template-columns:repeat(2,1fr)}
.system-mode-options>label{display:flex!important;flex-direction:row!important;align-items:flex-start;gap:11px;padding:20px 15px;border:1px solid var(--line,#dce0e5);border-radius:11px;cursor:pointer;transition:border-color .2s,background .2s}
.system-mode-options>label:has(input:checked){border-color:#a38652;background:#e9dbc21f;box-shadow:inset 0 0 0 1px #bca16b40}
.system-mode-options input{width:16px!important;height:16px!important;flex-shrink:0;margin:2px 0!important;accent-color:#977442}.system-mode-options span{display:grid;gap:8px}.system-mode-options b{font-size:14px}.system-mode-options small{font-size:12px;line-height:1.7;color:var(--muted,#687787);font-weight:400}
.system-settings-form label{display:flex;flex-direction:column;gap:9px;font-size:13px;font-weight:600}.system-settings-form input:not([type=radio]):not([type=checkbox]),.system-settings-form select{box-sizing:border-box;width:100%;min-width:0;height:46px;padding:10px 13px;border:1px solid var(--line,#dce0e5);border-radius:7px;background:var(--surface,#fff);color:var(--ink,#263847);font:inherit;font-weight:400}
.system-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.system-field-note,.system-invitation-settings>p{font-size:13px;color:var(--muted,#687787);line-height:1.8;margin:20px 0}
.system-settings-form .system-checkbox{display:flex;flex-direction:row;align-items:center;gap:10px;margin:22px 0}.system-checkbox input{accent-color:#977442}
.system-invitation-settings{padding:25px;border:1px solid var(--line,#dce0e5);border-radius:10px}.system-generated-code{display:grid;gap:14px;padding:20px;margin-top:20px;background:#e9dbc224;border:1px solid #b8996050;border-radius:7px}.system-generated-code code{font-size:20px;overflow-wrap:anywhere;user-select:all;color:var(--ink,#263847)}.system-generated-code small{line-height:1.7}
.system-form-footer{display:flex;gap:22px;align-items:center;margin-top:28px}.system-form-footer>span{font-size:12px;color:var(--muted,#687787)}.system-feedback{font-size:14px;line-height:1.7;min-height:20px;margin:18px 0 0;color:var(--ink,#263847)}
.system-settings-form [hidden]{display:none!important}
@media(max-width:700px){.system-settings-panel{padding:21px!important}.system-mode-options,.system-form-grid{grid-template-columns:1fr}.system-form-footer{align-items:flex-start;flex-direction:column;gap:12px}.system-invitation-settings{padding:17px}.registration-ribbon{font-size:9px;gap:12px}.registration-pricing-note{margin:0 0 30px;padding:23px 18px}}
.auth-backdrop[data-signing-in] .auth-modal{display:flex;flex-direction:column;box-sizing:border-box}
.auth-backdrop[data-signing-in] .auth-modal>:not(.logo):not(.auth-progress){display:none!important}
.auth-progress{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:35px 0;min-height:240px}
.auth-progress-orbit{position:relative;width:64px;height:64px;display:grid;place-items:center;margin-bottom:26px;border:1px solid #b69a6630;border-radius:50%}
.auth-progress-orbit:before{content:'';position:absolute;inset:-1px;border:1px solid transparent;border-top-color:#b69a66;border-right-color:#b69a6655;border-radius:50%;animation:auth-orbit 1.4s linear infinite}
.auth-progress-orbit span{font-family:Georgia,serif;font-size:28px;font-weight:400;color:#a58752}
.auth-progress p{font-size:15px;font-weight:600;letter-spacing:.01em;margin:0 0 10px;color:var(--ink,#24384a)}
.auth-progress small{font-size:12px;font-weight:400;line-height:1.6;color:var(--muted,#74828b)}
.login-panel-staging{position:fixed;inset:0;z-index:201;opacity:0;pointer-events:none;overflow:hidden;transform-origin:50% 25%;background:var(--bg,#f4f6f8)}
@keyframes auth-orbit{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.auth-progress-orbit:before{animation:none;border-color:#b69a6680}}

.admin-expanded .admin-content[data-admin-view="ai-control"] .admin-view-section[data-admin-section="ai-control"]{display:block}.ai-control-row{display:grid;grid-template-columns:1fr 190px;gap:24px;align-items:center;padding:24px 0;border-bottom:1px solid var(--ws-line,#ccd4da)}.ai-control-row p{font-size:13px;line-height:1.6;margin:6px 0 0;color:var(--ws-muted,#657587)}.ai-control-row label{font-size:12px}.ai-control-row select{margin-top:6px}@media(max-width:640px){.ai-control-row{grid-template-columns:1fr;gap:12px}}
/* Company identity: the selected legal form determines the visible fields. */
.legal-identity-fields{margin:4px 0 12px;padding:20px;border:1px solid var(--ws-line,#dce0e5);border-radius:10px;background:var(--ws-raised,#f3f6f8);color:var(--ws-ink,#263842)}
.wertspur #profile-form .legal-identity-fields [hidden],.wertspur .quick-review .onboarding-card .legal-identity-fields [hidden]{display:none!important}.legal-identity-fields small,.legal-form-note{font-size:12px;line-height:1.6;color:var(--ws-muted,#637483)}
.legal-check{display:flex!important;flex-direction:row!important;align-items:flex-start;gap:10px}.legal-check input{width:17px!important;min-height:17px!important;margin:3px 0 0;flex:none;accent-color:#9c7e4c}
.legal-corporate h4{margin:0 0 16px}.legal-partner{padding:18px;margin:0 0 18px;border:1px solid var(--line,#dce0e5);border-radius:8px}.legal-partner legend{font-size:12px;padding:0 8px}
.auth-modal select{box-sizing:border-box;width:100%;min-height:46px;padding:10px 12px;border:1px solid var(--line,#dce0e5);border-radius:7px;background:var(--surface,#fff);color:var(--ink,#263847);font:inherit}
.auth-modal label[hidden]{display:none!important}.auth-modal{max-height:calc(100dvh - 48px);overflow-y:auto}

.auth-progress-track{position:relative;overflow:hidden;width:180px;height:3px;margin-bottom:30px;border-radius:3px;background:#b69a662b}
.auth-progress-track span{position:absolute;inset:0;background:linear-gradient(90deg,transparent,#b69a66,#ebdcc4,transparent);animation:auth-progress-pass 1.65s ease-in-out infinite}
@keyframes auth-progress-pass{from{transform:translateX(-100%)}to{transform:translateX(100%)}}
@media(prefers-reduced-motion:reduce){.auth-progress-track span{animation:none;background:#b69a66}}
.admin-expanded .admin-content[data-admin-view="payments"] [data-admin-section="payments"]{display:block}.stripe-history{margin-top:24px}.stripe-history>header{display:flex;justify-content:space-between;align-items:center;gap:20px}.stripe-history>header p,.stripe-setup p{font-size:13px;line-height:1.7;color:var(--muted,#637483)}.stripe-setup{margin-top:26px;border-top:1px solid var(--line,#dce0e5);padding-top:22px}.stripe-setup summary{cursor:pointer;font-weight:600}.stripe-setup code{overflow-wrap:anywhere}.stripe-payment-methods{display:flex;gap:28px}.stripe-filters{display:flex;gap:20px;align-items:end;margin:24px 0}.stripe-filters label{display:grid;gap:8px;font-size:12px}.stripe-filters input,.stripe-filters select{padding:10px;border:1px solid var(--line,#dce0e5);border-radius:6px;background:var(--surface,#fff);color:var(--ink,#263847)}.stripe-table{overflow:auto}.stripe-table table{width:100%;border-collapse:collapse;font-size:12px}.stripe-table td,.stripe-table th{padding:14px 12px;text-align:left;border-bottom:1px solid var(--line,#dce0e5);vertical-align:top;max-width:380px;overflow-wrap:anywhere}.stripe-table th{color:var(--muted,#637483)}.stripe-table small{display:block;margin-top:6px;color:var(--muted,#637483)}.stripe-empty{padding:28px;text-align:center;color:var(--muted,#637483)}@media(max-width:700px){.stripe-filters,.stripe-history>header{align-items:stretch;flex-direction:column}}

.admin-expanded .admin-content[data-admin-view="banking"] [data-admin-section="banking"]{display:block}.banking-setup{margin-top:24px}.banking-setup li{margin:14px 0;line-height:1.7}.banking-setup code{display:block;overflow-wrap:anywhere}.banking-setup label{display:grid;gap:8px;margin-top:12px;font-size:12px}.banking-settings textarea,.banking-setup textarea{box-sizing:border-box;width:100%;padding:12px;border:1px solid var(--line,#dce0e5);border-radius:7px;background:var(--surface,#fff);color:var(--ink,#263847);font:12px/1.6 ui-monospace,monospace;resize:vertical}.banking-advanced{margin:18px 0}.banking-advanced summary{cursor:pointer;margin-bottom:12px}.banking-setup p{font-size:13px;line-height:1.7}

.admin-secret-reveal{display:grid;gap:10px;margin-top:8px}.admin-secret-reveal button{justify-self:start;font-size:11px}.admin-secret-reveal pre{margin:0;padding:12px;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-all;background:var(--surface,#fff);border:1px solid var(--line,#dce0e5);border-radius:6px;color:var(--ink,#263847);font:12px/1.6 ui-monospace,monospace;user-select:text}.admin-secret-reveal pre[hidden]{display:none!important}

/* Share label, input and help rows across neighbouring fields, including wrapped legal names. */
html[data-theme] body.wertspur :is(#profile-form,.quick-review .onboarding-card) .form-grid > label:not(.legal-check){
  display:grid;grid-template-rows:subgrid;grid-row:span 3;gap:8px;align-content:start;min-width:0;
}
html[data-theme] body.wertspur :is(#profile-form,.quick-review .onboarding-card) .form-grid > label:not(.legal-check) > :is(input,select,textarea){grid-row:2;width:100%;min-width:0;margin:0}
html[data-theme] body.wertspur :is(#profile-form,.quick-review .onboarding-card) .form-grid > label:not(.legal-check) > small{grid-row:3;line-height:1.6;color:var(--ws-muted);margin:0}
html[data-theme] body.wertspur :is(#profile-form,.quick-review .onboarding-card) .form-grid > label > small:empty{display:none}
html[data-theme] body.wertspur :is(#profile-form,.quick-review .onboarding-card) .legal-identity-fields{background:var(--ws-raised);border-color:var(--ws-line);color:var(--ws-ink)}
html[data-theme] body.wertspur :is(#profile-form,.quick-review .onboarding-card) :is(.legal-partner,.legal-corporate){color:var(--ws-ink);border-color:var(--ws-line)}
html[data-theme] body.wertspur :is(#profile-form,.quick-review .onboarding-card) :is(.legal-partner legend,.legal-form-note,.settings-section>div:first-child p){color:var(--ws-muted)}
html[data-theme] body.wertspur #profile-form .defaults-note{background:var(--ws-success-bg);color:var(--ws-ink)}
html[data-theme] body.wertspur #profile-form .defaults-note small{color:var(--ws-muted)}
html[data-theme] body.wertspur #profile-form .defaults-note>i{background:var(--ws-surface);color:var(--ws-success)}
html[data-theme] body.wertspur #profile-form>footer{background:var(--ws-surface);color:var(--ws-muted);border-color:var(--ws-line)}

/* Invitation access remains a prominent alternative to entering a code. */
html[data-theme] body.wertspur .invitation-note .button[data-waitlist]{background:#e4cfab;color:#243a4d;border:1px solid #cfb483;min-height:48px;font-weight:700;margin-top:14px}
html[data-theme] body.wertspur .invitation-note .button[data-waitlist]:hover{background:#f1dfbf;border-color:#b38d52}
html[data-theme] body.wertspur .invitation-note .button[data-waitlist]:focus-visible{outline:3px solid var(--ws-blue);outline-offset:3px}
.admin-expanded .admin-content[data-admin-view="mailbox-retrieval"] [data-admin-section="mailbox-retrieval"]{display:block}
html[data-theme] body.wertspur .invitation-modal .auth-switch{margin-top:22px}
html[data-theme] body.wertspur [data-mailbox-retrieval] .system-field-note{color:var(--ws-muted)}

.admin-expanded .admin-content[data-admin-view="runtime-services"] .admin-view-section[data-admin-section="runtime-services"]{display:block}
[data-runtime-services] .system-settings-panel{margin-bottom:24px}
[data-runtime-services] pre{white-space:pre-wrap;overflow-wrap:anywhere}
[data-runtime-services] details li{margin:12px 0;line-height:1.6}
