/* M3 authenticated workspace: built on the existing theme and spacing tokens. */
.workspace-body{min-width:0}.portal-main{max-width:1600px;margin:0 auto;min-height:calc(100vh - 67px);display:flex;flex-direction:column}.portal-main .page-footer{margin-top:auto;padding-top:36px}.portal-main .page-heading{margin-bottom:28px}.portal-main .page-heading h1{font-size:2rem}.portal-main .page-heading p{max-width:720px}.portal-main .page-heading>.btn{flex:none}.breadcrumb-line a{color:var(--muted)}.portal-site-label{display:flex;gap:10px;align-items:center;padding:17px 10px 14px;margin-top:12px;border-top:1px solid var(--border);font-size:.875rem;font-weight:600;overflow-wrap:anywhere}.portal-site-label small{display:block;color:var(--muted);font-size:.75rem;font-weight:400;margin-top:3px}.site-monogram{display:flex;align-items:center;justify-content:center;flex:none;width:30px;height:30px;background:var(--accent-soft);color:var(--accent-text);border:1px solid var(--border);border-radius:6px}.site-shortcuts{display:flex;flex-direction:column;gap:4px;margin-top:26px}.site-shortcuts>.workspace-label{margin-bottom:5px}.site-shortcuts>a{font-size:.8125rem;min-height:36px;display:flex;align-items:center;padding:7px 12px;border-radius:5px;color:var(--muted);overflow-wrap:anywhere}.site-shortcuts>a:hover,.site-shortcuts>a[aria-current=true]{background:var(--surface-soft);color:var(--text)}.account-name{min-width:0;overflow-wrap:anywhere}.workspace-body .sidebar{overflow-y:auto}.workspace-body .sidebar-bottom{padding-top:25px}.workspace-body .workspace-person{font-size:.8125rem}.signout-form{margin:0}.signout-button{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--border);border-radius:6px;background:var(--surface);color:var(--muted);font-size:.875rem;min-height:44px;padding:0 13px}.signout-button:hover{color:var(--text);background:var(--surface-hover)}.portal-context-row{display:flex;align-items:center;flex-wrap:wrap;gap:12px 18px;margin-bottom:22px;color:var(--muted);font-size:.875rem}.portal-context-row>span{display:inline-flex;gap:7px;align-items:center}.portal-context-row .badge{margin-left:auto}.portal-context-row img{width:16px;height:16px}.portal-badge-success{background:var(--green-soft);color:var(--green);border:1px solid color-mix(in srgb,var(--green) 18%,var(--border))}.site-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.site-card{padding:24px;min-width:0}.site-card-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.site-avatar{display:flex;align-items:center;justify-content:center;width:46px;height:46px;font-size:1.125rem;font-weight:600;color:var(--accent-text);background:var(--accent-soft);border:1px solid color-mix(in srgb,var(--accent) 15%,var(--border));border-radius:10px}.site-code{display:block;color:var(--muted);font-size:.75rem;letter-spacing:.7px;text-transform:uppercase;margin-bottom:6px}.site-card h2{font-size:1.25rem;font-weight:600;letter-spacing:-.4px;overflow-wrap:anywhere;line-height:1.5}.site-card>p{font-size:.875rem;color:var(--muted);margin-top:7px}.site-card-timezone{display:flex;align-items:flex-start;gap:7px;color:var(--muted);font-size:.8125rem;margin-top:20px;overflow-wrap:anywhere}.site-card-timezone img{width:16px;height:16px;margin-top:2px}.site-card-open{display:flex;align-items:center;min-height:44px;margin:22px -24px -24px;padding:12px 24px;border-top:1px solid var(--border);font-size:.875rem;font-weight:600}.site-card-open:hover{background:var(--surface-soft)}.portal-empty{display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:58px 24px;min-height:360px}.portal-empty h1,.portal-empty h2{font-size:1.375rem;font-weight:600;letter-spacing:-.4px;line-height:1.5}.portal-empty p{color:var(--muted);font-size:1rem;line-height:1.8;max-width:460px;margin-top:10px}.portal-empty .btn{margin-top:24px}.pool-record-list{display:flex;flex-direction:column;gap:12px}.pool-record{display:grid;grid-template-columns:minmax(170px,1.2fr) minmax(150px,1fr) minmax(120px,.8fr) minmax(160px,1.2fr) auto;gap:16px;align-items:start;padding:22px;min-width:0}.pool-record-person{display:flex;align-items:center;gap:11px;min-width:0}.pool-record-person h2{font-size:1rem;font-weight:600;overflow-wrap:anywhere;line-height:1.5}.pool-record-person .badge{margin-top:7px}.pool-record-section{min-width:0}.pool-record-section h3{font-size:.75rem;font-weight:500;color:var(--muted);margin-bottom:10px}.pool-record-section p{font-size:.875rem;line-height:1.8;overflow-wrap:anywhere}.qualification-badges{display:flex;flex-wrap:wrap;gap:6px}.qualification-badges .badge{font-size:.75rem;display:inline-flex;align-items:center;gap:5px;min-height:28px;padding:5px 7px}.qualification-badges img{width:13px;height:13px}.pool-edit{min-width:62px}.muted{color:var(--muted)}.contact-restricted{display:flex;align-items:center;gap:6px;color:var(--muted)}.contact-restricted img{width:14px;height:14px}.portal-inline-note{display:flex;align-items:flex-start;gap:10px;font-size:.8125rem;color:var(--muted);padding:20px 0;line-height:1.8}.portal-inline-note img{width:16px;height:16px;margin-top:4px}.portal-form-card{padding:28px;min-width:0}.portal-form-card:not(.settings-layout .portal-form-card):not(.access-layout .portal-form-card){max-width:800px}.form-card-heading{margin-bottom:24px}.form-card-heading h2{font-size:1.125rem;font-weight:600;letter-spacing:-.3px}.form-card-heading p{font-size:.875rem;color:var(--muted);line-height:1.8;margin-top:7px}.portal-form .portal-fields{display:grid;grid-template-columns:minmax(0,1fr);gap:2px}.portal-form .form-field{margin-bottom:18px;min-width:0}.portal-form .form-field label{font-size:.875rem;margin-bottom:8px}.portal-form input:not([type=checkbox]):not([type=hidden]),.portal-form select,.portal-form textarea{display:block;width:100%;max-width:100%;min-height:44px;border:1px solid var(--border);border-radius:6px;background-color:var(--surface);color:var(--text);font-size:1rem;padding:10px 12px;box-shadow:none}.portal-form select{padding-right:34px}.portal-form textarea{min-height:110px;resize:vertical}.portal-form .checkbox-field{margin-bottom:10px}.portal-form .checkbox-label{display:flex;align-items:center;gap:10px;min-height:44px;margin:0;cursor:pointer}.portal-form input[type=checkbox]{width:20px;height:20px;flex:none;accent-color:var(--accent);margin:0;cursor:pointer}.field-help{font-size:.8125rem;color:var(--muted);line-height:1.8;margin-top:7px}.field-help ul{margin:6px 0 0;padding-left:20px}.field-error{font-size:.875rem;line-height:1.7}.required-mark{color:var(--red)}.portal-form .form-error-summary{margin:0 0 24px;line-height:1.7}.portal-form .form-error-summary a{color:inherit;text-decoration:underline;text-underline-offset:3px}.portal-form [aria-invalid=true]{border-color:var(--red)!important}.portal-form-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px;margin-top:14px;padding-top:22px;border-top:1px solid var(--border)}.portal-success,.portal-messages{padding:13px 16px;border:1px solid color-mix(in srgb,var(--green) 25%,var(--border));background:var(--green-soft);color:var(--green);border-radius:7px;margin-bottom:22px;font-size:.875rem}.portal-success p,.portal-messages p{margin:0}.settings-layout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:22px}.policy-history{padding:26px;margin-top:24px}.policy-history .form-card-heading{margin-bottom:8px}.policy-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;border-top:1px solid var(--border);padding:18px 0}.policy-row small{display:block;color:var(--muted);font-size:.75rem;margin-bottom:5px}.policy-row strong,.policy-row span{font-size:.875rem;line-height:1.8}.portal-empty-line{padding:20px 0;color:var(--muted);font-size:.875rem;line-height:1.8}.access-layout{display:grid;grid-template-columns:minmax(280px,.8fr) minmax(0,1.2fr);align-items:start;gap:24px}.membership-list{padding:28px;min-width:0}.membership-row{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:17px 0;border-top:1px solid var(--border)}.membership-row>div:first-child{min-width:100px;flex:1;overflow-wrap:anywhere}.membership-row strong{font-size:.875rem;font-weight:600}.membership-row small{display:block;font-size:.75rem;color:var(--muted);margin-top:4px}.membership-state{font-size:.8125rem;color:var(--muted)}.membership-state.is-active{color:var(--green)}.audit-list{padding:7px 26px}.audit-row{display:flex;align-items:flex-start;gap:14px;padding:24px 0;border-bottom:1px solid var(--border)}.audit-row:last-child{border-bottom:0}.audit-marker{flex:none;width:9px;height:9px;border-radius:50%;background:var(--accent);margin-top:7px}.audit-content{min-width:0;width:100%}.audit-row-heading{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:8px 16px}.audit-row h2{font-size:.9375rem;font-weight:600;overflow-wrap:anywhere;line-height:1.6}.audit-row time{font-size:.75rem;color:var(--muted);line-height:1.8}.audit-row p{font-size:.875rem;color:var(--muted);margin-top:8px;overflow-wrap:anywhere}.audit-row p strong{color:var(--text);font-weight:500}.audit-meta{display:flex;flex-wrap:wrap;gap:10px 24px;font-size:.75rem;margin:14px 0 0;color:var(--muted)}.audit-meta>div{display:flex;gap:7px;align-items:baseline}.audit-meta dt{font-weight:500}.audit-meta dd{margin:0;color:var(--text);overflow-wrap:anywhere}.audit-details{margin-top:14px;font-size:.8125rem;color:var(--muted)}.audit-details summary{cursor:pointer;min-height:36px;display:flex;align-items:center;color:var(--accent-text)}.audit-details ul{padding-left:20px;margin:3px 0 0;line-height:1.8}.narrow-form{max-width:620px!important}.password-done{max-width:700px;min-height:380px;margin:20px auto}.auth-topbar{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:28px 40px}.auth-topbar .brand{margin:0}.auth-topbar .theme-control{min-width:100px}.auth-main{display:flex;align-items:center;justify-content:center;min-height:calc(100vh - 180px);padding:24px 20px 55px}.auth-card{width:min(100%,450px);padding:36px;box-shadow:0 8px 35px #17202e05}.auth-icon{display:flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:10px;border:1px solid var(--border);background:var(--surface-soft);margin-bottom:25px}.auth-icon img{width:21px;height:21px}.auth-card .eyebrow{font-size:.75rem;margin-bottom:9px}.auth-card h1{font-size:1.75rem;font-weight:600;letter-spacing:-.8px;line-height:1.35}.auth-intro{font-size:1rem;color:var(--muted);line-height:1.8;margin-top:13px}.auth-form{margin-top:28px}.auth-submit{width:100%;margin-top:6px;min-height:46px}.auth-help{display:flex;align-items:flex-start;gap:10px;border-top:1px solid var(--border);padding-top:23px;margin-top:27px;color:var(--muted)}.auth-help img{width:16px;height:16px;margin-top:4px}.auth-help p{font-size:.8125rem;line-height:1.8}.auth-footer{text-align:center;font-size:.75rem;color:var(--muted);padding:0 20px 28px}.workspace-body .theme-control select{min-height:44px}.preview-return{margin-right:10px;min-height:36px;display:inline-flex;align-items:center;font-size:.8125rem}
@media(max-width:1250px){.site-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pool-record{grid-template-columns:minmax(160px,1fr) minmax(160px,1fr) auto;gap:22px}.pool-record-person{grid-column:1}.pool-record-section:nth-of-type(2){grid-column:2}.pool-edit{grid-column:3;grid-row:1}.pool-record-section:nth-of-type(3){grid-column:1;grid-row:2}.pool-contact{grid-column:2;grid-row:2}.access-layout{grid-template-columns:1fr}.settings-layout{grid-template-columns:1fr}}
@media(max-width:767px){.portal-main .page-heading h1{font-size:1.625rem}.portal-main .page-heading p{font-size:1rem}.portal-main .page-heading>.btn{margin-top:3px}.workspace-body .topbar-tools{gap:7px}.workspace-body .theme-control img{display:none}.workspace-body .theme-control select{width:82px;padding-right:18px;font-size:.8125rem}.workspace-body .signout-button{padding:0 9px;font-size:.8125rem}.workspace-body .topbar{gap:5px}.workspace-body .breadcrumb-line{min-width:0;overflow:hidden;white-space:nowrap;font-size:.8125rem}.workspace-body .breadcrumb-line>span:last-child{overflow:hidden;text-overflow:ellipsis}.portal-main{min-height:calc(100vh - 60px)}.site-card-grid{grid-template-columns:1fr;gap:15px}.site-card{padding:22px}.site-card-open{margin-left:-22px;margin-right:-22px;margin-bottom:-22px;padding-left:22px;padding-right:22px}.site-card h2{font-size:1.25rem}.portal-context-row{gap:8px 12px;font-size:.8125rem}.portal-context-row .badge{margin-left:0}.pool-record{grid-template-columns:repeat(2,minmax(0,1fr));padding:19px 17px;gap:22px 16px}.pool-record-person{grid-column:1/-1;grid-row:1;max-width:calc(100% - 70px)}.pool-record-section:nth-of-type(2){grid-column:1;grid-row:2}.pool-record-section:nth-of-type(3){grid-column:2;grid-row:2}.pool-contact{grid-column:1/-1;grid-row:3}.pool-edit{grid-column:2;grid-row:1;justify-self:end;min-width:56px}.pool-record-section h3{font-size:.75rem}.pool-record-section p{font-size:.875rem}.portal-form-card{padding:22px 18px}.portal-form .portal-fields{gap:0}.portal-form-actions .btn{flex:1}.policy-history{padding:22px 18px}.policy-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.membership-list{padding:22px 18px}.membership-row{gap:10px}.membership-row .badge{max-width:100%;white-space:normal;text-align:left;line-height:1.7}.audit-list{padding:0 17px}.audit-row{gap:10px}.audit-meta{gap:8px 16px}.auth-topbar{padding:22px 20px;align-items:flex-start}.auth-topbar .brand{font-size:1rem;gap:8px}.auth-topbar .brand-subtitle{font-size:.625rem}.auth-topbar .theme-control img{display:none}.auth-topbar .theme-control select{width:90px}.auth-topbar .theme-control{min-width:0}.auth-main{padding:12px 16px 32px;min-height:calc(100vh - 150px)}.auth-card{padding:28px 23px}.auth-card h1{font-size:1.625rem}.auth-footer{padding-bottom:22px}.portal-empty{padding:40px 20px;min-height:320px}.portal-empty p{font-size:.9375rem}.preview-return{font-size:.75rem}}
/* Checkbox descriptions use normal text; required marks and errors stay distinct. */
.portal-form .checkbox-label>span{color:var(--text)}
/* Keep secondary-button focus colors on the portal's accessible theme tokens. */
.workspace-body .btn.btn-outline-secondary:focus{color:var(--text);background:var(--surface-hover);border-color:var(--focus)}
.workspace-body .btn.btn-outline-secondary:focus-visible{outline:3px solid var(--focus);outline-offset:3px;box-shadow:none}
/* Pair primary-button ink and surface in every interactive theme state. */
.workspace-body .btn.btn-primary{--portal-primary-ink:#fff}
:root[data-theme=dark] .workspace-body .btn.btn-primary{--portal-primary-ink:#161429}
.workspace-body .btn.btn-primary:not(:disabled):not(.disabled):not([aria-disabled=true]){color:var(--portal-primary-ink);background:var(--accent);border-color:var(--accent)}
.workspace-body .btn.btn-primary:not(:disabled):not(.disabled):not([aria-disabled=true]):is(:hover,:focus,:active,.active){color:var(--portal-primary-ink);background:var(--accent-hover);border-color:var(--accent-hover);box-shadow:none}
.workspace-body .btn.btn-primary:not(:disabled):not(.disabled):not([aria-disabled=true]):focus-visible{outline:3px solid var(--focus);outline-offset:3px;box-shadow:none}
