/* Shared Fluent UI. Homepage colour tokens remain authoritative. */
:root{--bg:#F5F6F9;--surface:#fff;--ink:#20242B;--muted:#616d7c;--line:#E2E6ED;--accent:#0969DA;--accent-hover:#0759B8;--accent-soft:#EBF3FF;--radius:12px;--radius-sm:8px;--font:"Segoe UI Variable","Segoe UI",system-ui,-apple-system,sans-serif}
*,*:before,*:after{box-sizing:border-box}body{font-family:var(--font);color:var(--ink);background:var(--bg)}button,input,select,textarea{font:inherit}a,button,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button,.btn,.guest-button{transition:background-color .15s,border-color .15s}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.site-shell .topbar-inner{gap:16px;flex-wrap:wrap}.site-shell .mainnav{flex-wrap:wrap}.main:not(.home-main){padding:28px clamp(16px,3vw,32px) 48px}.page-heading{margin-bottom:24px}.page-heading h1{font-size:clamp(24px,3vw,32px);font-weight:600;letter-spacing:-.6px}.page-heading .eyebrow{display:none}.page-heading p{max-width:64ch;line-height:1.6}.panel,.auth-card,.key-card{border-radius:12px;box-shadow:0 1px 3px #20202006}.panel{padding:clamp(16px,2.5vw,24px)}.grid{gap:16px}.btn,.guest-button,.event-share-open,.event-share-copy{min-height:44px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:14px;font-weight:500;text-decoration:none}.btn.small{min-height:44px;font-size:13px}.actions{gap:8px;flex-wrap:wrap}input:not([type=checkbox]):not([type=radio]),select,textarea{border-radius:8px;max-width:100%;min-width:0;min-height:44px}table{font-variant-numeric:tabular-nums}.table-wrap{overflow:auto;overscroll-behavior-x:contain}.key-card,.event-card,.panel{min-width:0;overflow-wrap:anywhere}.dula-auth-minimal .auth-card{border-radius:12px;box-shadow:0 2px 10px #20202008}.dula-auth-minimal .auth-card h1{font-weight:600}.footer{color:var(--muted)}
@media(max-width:700px){.grid.two,.grid.three,.grid.four{grid-template-columns:minmax(0,1fr)}.site-shell .topbar-inner{padding:12px 16px}.site-shell .mainnav{width:100%;margin-left:0;gap:4px}.site-shell .mainnav a{min-height:40px;display:inline-flex;align-items:center}.workspace-header{flex-wrap:wrap;gap:8px}.event-share-actions{flex-wrap:wrap}input,select,textarea{font-size:16px}.page-heading{margin-bottom:20px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
.event-library .event-library-header{gap:16px;padding-bottom:20px;margin-bottom:24px}.event-library .event-library-header h1{font-size:clamp(24px,3vw,32px);font-weight:600;letter-spacing:-.6px}.event-library .event-header-mark,.event-library .event-kicker{display:none}.event-library .event-card{box-shadow:none}

.function-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:28px;padding-top:24px;border-top:1px solid var(--line)}.function-item{display:flex;align-items:center;gap:12px;min-height:56px;width:100%;padding:14px 16px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);font:500 15px var(--font);text-decoration:none;text-align:left;cursor:pointer}.function-item svg{width:22px;height:22px;flex:none}.function-item:hover{background:var(--accent-soft)}.function-logout{margin:0}.function-item span{overflow-wrap:anywhere}@media(max-width:500px){.function-list{grid-template-columns:minmax(0,1fr)}}
.home-logged>.function-list{max-width:1030px;margin-inline:auto}
.footer-with-policy{flex-wrap:wrap;gap:4px 16px}.footer-policy{display:inline-flex;align-items:center;min-height:44px;color:var(--muted);font-size:12px;text-decoration:underline;text-underline-offset:3px}
.legal-acceptance{display:grid;gap:6px;margin-block:12px;text-align:left}.legal-acceptance .legal-acceptance-choice,.dula-auth-minimal .auth-card .legal-acceptance-choice{display:flex;align-items:flex-start;gap:10px;min-height:44px;font-size:13px;font-weight:400;line-height:1.6;cursor:pointer}.legal-acceptance .legal-acceptance-choice input[type=checkbox]{flex:none;width:20px;height:20px;min-height:20px;margin:3px 0 0;accent-color:var(--accent)}.legal-acceptance-choice span{min-width:0}.legal-acceptance small{font-size:12px;color:var(--muted);line-height:1.5}.legal-acceptance a{text-decoration:underline;text-underline-offset:3px}.legal-order-receipt{margin-top:20px;padding-top:16px;border-top:1px solid var(--line);font-size:14px}.legal-order-pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:20px;flex-wrap:wrap}

.home-brand{display:flex;justify-content:center;align-items:baseline;gap:6px;padding:0 0 24px;font:600 26px/1.3 var(--font);letter-spacing:-.6px;color:var(--ink)}.home-brand>span:last-child{font-weight:400;color:var(--muted)}.home-key-panel{padding:24px;border:1px solid var(--line);border-radius:12px;background:var(--surface);min-width:0}.home-key-panel .dashboard-welcome{margin-bottom:16px}.home-key-panel .dashboard-welcome h1{margin:0;font-size:20px;font-weight:600;letter-spacing:-.3px}.home-key-panel .key-grid{margin:0}.home-key-panel .key-card{background:var(--bg);box-shadow:none}@media(max-width:600px){.home-key-panel{padding:16px}.home-brand{padding-bottom:20px;font-size:24px}}

/* Consistent form rhythm and alignment, including administrative pages. */
::selection{background:var(--accent-soft);color:var(--ink)}
input::placeholder,textarea::placeholder{color:var(--muted);opacity:1}
input,textarea{caret-color:var(--accent)}
.main>.panel+.panel,.main>.panel+p:has(>.btn),.main>.panel+.notice{margin-top:20px}
.workspace-main>.settings-free{max-width:none}
.site-main>.gallery-profile-form{max-width:none}
.panel>p:not([class]){margin-block:8px}
.table-wrap{max-width:100%;min-width:0}
.table-wrap>p{padding:20px}
.stat span{font-size:12px;font-weight:500;color:var(--muted);letter-spacing:0;text-transform:none}
th{font-size:12px;font-weight:600;letter-spacing:0;text-transform:none}
.sidebar-group-title{font-size:11px;color:var(--muted);letter-spacing:0}
.sidebar-nav .nav-link,.customer-details>summary,.edit-block>summary,.order-confirm>summary{min-height:44px}
.customer-details>summary,.edit-block>summary,.order-confirm>summary{align-content:center}
.customer-details .btn,.edit-block .btn,.order-confirm .btn{transition:none}
.auth-alt a{display:inline-flex;align-items:center;min-height:44px}
.home-logo{display:block;object-fit:contain;margin:0 auto 24px}
.sidebar-brand img{display:block;object-fit:contain;flex:none}
.key-card-title{align-items:flex-start}
.key-card-title strong{flex:1 1 160px;font-size:16px;font-weight:600;line-height:1.4}
.home-key-panel .key-card>.btn{margin-top:auto}
.key-link strong{font-weight:600}
.plan-grid .plan{gap:0}
.plan-grid .plan h2{margin:0;line-height:1.4;font-weight:600}
.plan-details>p+p{margin-top:8px}
.plan-grid .plan>form{display:flex;flex-direction:column;justify-content:flex-end}
@supports(grid-template-rows:subgrid){.plan-grid>.plan{display:grid;grid-template-rows:subgrid;grid-row:span 4;row-gap:0}}
.system-error-page{margin:0;min-height:100svh;display:grid;place-items:center;padding:24px;line-height:1.6}
.system-error{width:min(100%,440px);text-align:center}
.system-error>img{object-fit:contain}
.system-error h1{font-size:24px;font-weight:600;line-height:1.35;margin:20px 0 12px}
.system-error p{margin:0 0 24px;color:var(--muted)}
.system-error .btn{padding:10px 16px;border:1px solid var(--accent);background:var(--accent);color:#fff}
.system-error .btn:hover{background:var(--accent-hover);border-color:var(--accent-hover)}
@media(max-width:700px){.sidebar-nav .nav-link{min-height:44px}.key-card-title strong{flex-basis:140px}}

.breadcrumbs,.sidebar-bottom{color:var(--muted)}
.sidebar-bottom{font-size:12px}
.privacy-document :is(p,li){text-wrap:pretty}
.privacy-document :is(h1,h2,h3){text-wrap:balance}

.home-key-panel .home-keys-toolbar{flex-wrap:wrap;align-items:center;gap:12px}.home-keys-toolbar .home-actions{justify-content:flex-start}.home-keys-toolbar .home-actions .btn{min-width:0}
