*{box-sizing:border-box}
:root{font-family:"Segoe UI",Arial,sans-serif;font-size:16px;color:#071631;color-scheme:light;--teal:#007f78;--line:#d2dde7;--muted:#465568}
body{margin:0;background:#f1f7fa;min-width:280px}[hidden]{display:none!important}
header{background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px max(20px,calc((100% - 1080px)/2))}header img{width:220px;max-width:60vw;height:auto}header p{font-size:.9375rem;color:var(--muted);margin:0}
main{max-width:1080px;margin:30px auto;padding:0 20px}h1{font-size:clamp(1.75rem,4vw,2.5rem);margin:0 0 20px;line-height:1.2;letter-spacing:-.025em}h2{font-size:1.5rem;line-height:1.3;margin:0 0 12px}h3{font-size:1.375rem;line-height:1.3;margin:0 0 10px;overflow-wrap:anywhere}
p{line-height:1.55;margin:0 0 20px}.test-note{padding:12px 16px;border:1px solid #b4e3de;border-radius:12px;background:#e5f6f2;font-size:.9375rem}.login-card{max-width:460px;background:#fff;padding:30px;border:1px solid var(--line);border-radius:20px;margin:30px auto}.hint{font-size:.875rem;color:var(--muted);line-height:1.5}
label{display:block;font-weight:650;font-size:1rem;margin-bottom:18px}input,select,button{font:inherit}input:not([type=checkbox]),select{width:100%;margin-top:8px;padding:12px;border:1px solid #8394a6;border-radius:9px;background:#fff;color:#071631;min-height:47px}input[type=checkbox]{width:20px;height:20px;flex:none;accent-color:var(--teal)}.confirmation{display:flex;align-items:flex-start;gap:12px;line-height:1.5;font-weight:500}
button{min-height:46px;border:1px solid var(--teal);border-radius:10px;padding:11px 20px;background:#fff;color:var(--teal);font-weight:650;cursor:pointer}.primary{background:var(--teal);color:#fff;border-color:var(--teal)}.login-card .primary{width:100%;margin-bottom:22px}button:disabled{opacity:.6;cursor:default}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #071631;outline-offset:3px}
.workspace-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:28px}.workspace-head h1{margin-bottom:0}.workspace-head button{flex:none}.eyebrow{font-size:1rem;color:var(--muted);margin-bottom:8px;font-weight:650}
.companies{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:24px 0}.company{background:#fff;padding:24px;border:1px solid var(--line);border-radius:18px;min-width:0}.company .program{color:var(--muted);margin-bottom:12px}.badge{display:inline-block;padding:6px 10px;border-radius:8px;background:#edf2f7;margin-bottom:18px;font-size:.9375rem;font-weight:650}.badge.active{background:#d9f3e8;color:#14533c}.badge.expired,.badge.suspended{background:#fbe5e1;color:#84372b}.countdown{font-variant-numeric:tabular-nums;font-size:1.125rem;font-weight:700;margin-top:5px;color:#005f5a}.date{font-size:.9375rem;color:var(--muted);margin-bottom:12px}.company button{width:100%;margin-top:10px}.error{color:#8b2f25}.success{color:#17603f}#notice:empty,#operation-notice:empty{display:none}#notice{padding:12px 0}
dialog{width:min(92vw,520px);max-height:90vh;overflow:auto;border:1px solid var(--line);border-radius:20px;padding:28px;background:#fff;color:#071631;box-shadow:0 20px 80px #07163133}dialog::backdrop{background:#07163166}.dialog-actions{display:flex;justify-content:flex-end;gap:12px}.dialog-actions button{flex:1}footer{max-width:1080px;margin:20px auto;padding:20px;text-align:center;color:var(--muted);font-size:.875rem}
@media(max-width:650px){header{padding:13px 20px;flex-wrap:wrap;gap:8px}header img{width:200px}main{margin:20px auto}.companies{grid-template-columns:1fr}.workspace-head{align-items:flex-start;flex-direction:column}.workspace-head button{align-self:flex-end}.login-card{padding:24px 20px}.company{padding:22px}dialog{padding:24px 20px}}

.toolbar{display:flex;justify-content:flex-end;gap:12px;margin:24px 0}.section-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin:18px 0}.section-heading h3{margin:0}.section-heading p{margin-bottom:0}.wide-dialog{width:min(94vw,760px)}fieldset{margin:20px 0;padding:18px 16px;border:1px solid var(--line);border-radius:12px;min-width:0}legend{font-weight:700;padding:0 6px}.rights-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:20px;align-items:center;padding:12px 0;border-bottom:1px solid #e5ebf1}.rights-row:last-child{border-bottom:0}.rights-row strong{overflow-wrap:anywhere}.rights-row label,.extra-permissions label{display:flex;align-items:center;gap:8px;margin:0;font-size:.9375rem}.extra-permissions{display:flex;gap:18px;flex-wrap:wrap}.users-list{display:grid;gap:12px;margin:20px 0}.user-card{padding:16px;border:1px solid var(--line);border-radius:12px;background:#f7fafc;min-width:0}.user-card h3{font-size:1rem;margin-bottom:6px}.user-card p{margin-bottom:8px;font-size:.875rem;color:var(--muted);overflow-wrap:anywhere}.user-actions{display:flex;gap:10px;flex-wrap:wrap}.user-actions button{font-size:.875rem;min-height:42px;padding:8px 12px}.user-card .email{overflow-wrap:anywhere}#invitation-link{font-size:.875rem}#company-notice:empty,#user-notice:empty,#users-notice:empty,#invitation-link-notice:empty{display:none}dialog input:disabled{background:#edf2f6;color:#465568}#users-dialog .section-heading>button{flex:none}#user-kind{margin-bottom:12px}
@media(max-width:450px){.rights-row{gap:10px}.rights-row label{font-size:.8125rem;gap:5px}.rights-row strong{font-size:.875rem}.extra-permissions{flex-direction:column;gap:14px}.section-heading{flex-wrap:wrap}.toolbar{justify-content:stretch}.toolbar button{width:100%}fieldset{padding:14px 12px}.user-actions button{flex:1}.wide-dialog{width:94vw}.section-heading h2{font-size:1.3rem}}

.demo-management{margin-top:32px;padding:24px;background:#fff;border:1px solid #cbdedc;border-radius:18px}.demo-management h2{margin-top:4px}.demo-owner-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px}#demo-summary p{overflow-wrap:anywhere}#demo-summary strong{display:block;margin-top:12px}.demo-owner-countdown{font-variant-numeric:tabular-nums}@media(max-width:600px){.demo-management{padding:20px}.demo-owner-actions{flex-direction:column}.demo-owner-actions button{width:100%}}
#demo-password-dialog{max-width:540px}#demo-password-form input[type=password]{width:100%;box-sizing:border-box}#demo-password-form label{display:block;margin:14px 0}

/* Shared access controls */
.password-line{display:flex;gap:8px;align-items:flex-end}.password-line input{flex:1;min-width:0}.password-line button{width:auto;white-space:nowrap}.login-option{display:flex!important;flex-direction:row!important;gap:8px;align-items:center}.login-option input[type=checkbox]{width:auto;flex:none}
