/* 4SI website / Presence shared visual grammar.
 * Reference: 4si-webapp-preview-20261031-usability, minimal.css + usability.css.
 * Applies to account surfaces; camera controls retain their dedicated contrast.
 */
:root{
 --canvas:#fff;--text:#111;--surface:#fff;--nav-bg:#fff;
 --text-secondary:#686868;--separator:#e3e3e3;--surface-muted:#f2f2f2;
 --selection:#eee;--hover:#f7f7f7;--control:#fff;--control-line:#929292;
 --radius:9px;--brand-motion:cubic-bezier(0,0,.5,1);
}
:root[data-theme=dark]{
 --canvas:#111;--text:#f2f2f2;--surface:#111;--nav-bg:#111;
 --text-secondary:#a7a7a7;--separator:#2b2b2b;--surface-muted:#1c1c1c;
 --selection:#262626;--hover:#191919;--control:#111;--control-line:#707070;
}
body{font-size:15px;line-height:1.5}
#workspace{display:flex;align-items:center;gap:12px;min-width:0}
header{height:110px;min-height:110px;max-width:1120px;padding:0 24px;gap:12px}
.brand img{width:72px;height:auto}.product{font-size:18px;letter-spacing:-.4px}
main{max-width:760px;padding-top:60px}
.page-heading,.screen-title{margin-bottom:32px}
.page-heading h1,.screen-title h1{font-size:34px;line-height:1.2;letter-spacing:-1px;font-weight:650}
.page-heading p{font-size:15px;line-height:1.65;max-width:590px;margin-top:14px}
h2{font-size:21px;letter-spacing:-.4px;font-weight:550}h3{font-size:17px;font-weight:550}
.toolbar-action{font-size:14px;gap:9px;font-weight:500}.toolbar-action svg{width:17px}
.key-row{min-height:110px;gap:22px;padding:24px 0}
.key-row strong{font-size:19px;font-weight:550;letter-spacing:-.35px}
.key-row small{font-size:14px;line-height:1.5;margin-top:7px}
.key-row .key-symbol{width:44px}.key-row .presence-key-icon{width:36px;height:44px}
.key-row:hover,.row:not(.static):hover,.request-row:hover{background:var(--hover)}
.row{min-height:80px;gap:20px;padding:21px 0}
.row strong{font-size:16px;font-weight:500;letter-spacing:-.1px}.row small{font-size:13px;margin-top:6px}
.row-icon{width:32px}.row-icon svg{width:23px;height:23px}
.section-heading{margin:40px 0 14px}.section-heading h2{font-size:14px;font-weight:500}
.group{margin-bottom:32px}.timeline h3{font-size:16px}.timeline p{font-size:13px}.timeline time{font-size:12px}
.primary,.secondary,.danger{min-height:44px;padding:10px 19px;font-size:14px;font-weight:500;border-radius:30px}
.text,.back{font-size:14px}.back{gap:8px;margin-top:-12px;margin-bottom:22px}
.primary:hover,.secondary:hover{opacity:.84}
.icon-button:hover{background:var(--surface-muted)}
.welcome{max-width:440px;padding-top:70px}.welcome h1{font-size:34px;font-weight:650;line-height:1.2;letter-spacing:-1px}
.welcome>p{font-size:15px;line-height:1.65}.welcome-actions{margin-top:32px}
.welcome .caption{font-size:12px}.management-welcome{margin:5vh auto}.management-welcome .eyebrow{font-size:11px;font-weight:500}
input,select,textarea{font-size:16px;min-height:46px;border-radius:8px;padding:13px 14px}
input[type=checkbox],input[type=radio]{min-height:0}label{font-size:13px}
#sheet{border:1px solid var(--separator);border-radius:14px;padding:32px;box-shadow:0 15px 70px #0002}
#sheet::backdrop{backdrop-filter:none;background:#0005}
.sheet-title h2{font-size:25px;font-weight:550;letter-spacing:-.7px}#sheet p{font-size:14px;line-height:1.65}
.sheet-title .icon-button{flex-shrink:0}#sheet form label{font-size:13px}
.appearance-options{gap:12px;margin-top:26px}.appearance-choice{padding:0;border:0;border-radius:0;background:none;gap:10px;font-size:12px;align-items:stretch}
.appearance-choice:has(input:checked){box-shadow:none;border:0}
.appearance-swatch{height:94px!important;border:2px solid var(--separator);border-radius:8px;background:#fff}
.appearance-choice:has(input:checked) .appearance-swatch{border-color:var(--text)}
.appearance-swatch:before{content:'';position:absolute;inset:0 auto 0 0;width:24px;border-right:1px solid #8884;background:#8881}
.appearance-swatch i,.appearance-swatch b,.appearance-swatch em{left:35px;right:12px;width:auto;height:5px;border:0;border-radius:3px;background:#333;opacity:.45}
.appearance-swatch i{top:20px;right:30px}.appearance-swatch b{top:39px}.appearance-swatch em{top:55px;bottom:auto}
.swatch-dark{background:#171717}.swatch-dark i,.swatch-dark b,.swatch-dark em{background:#ddd}
.swatch-system{background:linear-gradient(90deg,#fff 50%,#171717 50%)}
.swatch-system i,.swatch-system b,.swatch-system em{background:#888}
.appearance-check{position:absolute;bottom:3px;right:1px;width:12px;height:12px}
.appearance-choice:has(input:checked) .appearance-check{background:none;border:3px solid var(--text)}
.appearance-check svg{display:none!important}.appearance-choice>span:nth-of-type(2){padding-right:18px}
.sidebar-tools{display:none}
@media(min-width:960px){
 body[data-surface=enterprise][data-signed-in=true] .management-appearance{display:none}
 body[data-signed-in=true],body[data-surface=enterprise][data-signed-in=true]{max-width:1120px;grid-template-columns:268px minmax(0,1fr)}
 body[data-signed-in=true] header{height:110px;padding:0 24px;position:relative}
 body[data-signed-in=true] main,body[data-surface=enterprise][data-signed-in=true] main{max-width:828px;padding:70px 24px 60px;width:100%;min-width:0}
 body[data-signed-in=true] #navigation{top:24px;padding:66px 0 28px 12px;width:222px;gap:6px;max-height:100dvh;overflow-y:auto}
 body[data-signed-in=true] #navigation button{min-height:47px;padding:12px 15px;gap:15px;font-size:16px;font-weight:400;border-radius:9px}
 body[data-signed-in=true] #navigation button[aria-current=page]{background:var(--selection);font-weight:550}
 body[data-signed-in=true] #navigation button:hover{background:var(--hover)}
 body[data-signed-in=true] #navigation button[aria-current=page]:hover{background:var(--selection)}
 body[data-signed-in=true] #navigation .nav-icon svg{width:22px;height:22px;stroke-width:1.65}
 body[data-signed-in=true] .screen-title{border:0;padding:0;margin-bottom:32px}
 .sidebar-tools{display:block;margin-top:25px;padding-top:4px}
 body[data-signed-in=true] #navigation .sidebar-tools button{font-size:14px;min-height:46px;color:var(--text-secondary)}
 .sidebar-tools button>span:last-child{text-align:left}.sidebar-tools small{display:block;font-size:11px;margin-top:4px;font-weight:400}
 .sidebar-legal{display:flex;flex-wrap:wrap;gap:10px;padding:20px 15px 0;color:var(--text-secondary);font-size:11px}
 .sidebar-legal a{text-decoration:none;padding-block:5px}.sidebar-legal a:hover{text-decoration:underline}
 .sidebar-legal small{width:100%;font-size:9px}
 body[data-surface=admin][data-signed-in=true]{display:block;max-width:1120px}
 body[data-surface=admin][data-signed-in=true] main{max-width:900px;margin:auto}
}
@media(min-width:960px) and (max-width:1100px){
 body[data-signed-in=true],body[data-surface=enterprise][data-signed-in=true]{grid-template-columns:240px minmax(0,1fr)}
 body[data-signed-in=true] #navigation{width:210px;padding-left:20px}
}
@media(max-width:959px){
 header{height:78px;min-height:calc(78px + env(safe-area-inset-top));padding:env(safe-area-inset-top) 24px 0;max-width:760px}
 .brand img{width:67px}.product{font-size:16px}
 main{max-width:760px;padding:38px 24px calc(100px + env(safe-area-inset-bottom));min-height:calc(100dvh - 78px)}
 .page-heading h1,.screen-title h1{font-size:30px;letter-spacing:-.8px}.page-heading,.screen-title{margin-bottom:28px}
 .key-row{min-height:105px;gap:17px;padding:23px 0}.key-row strong{font-size:17px}.key-row small{font-size:13px}
 .row{gap:16px}.row strong{font-size:15px}.section-heading{margin-top:30px}
 .primary,.secondary,.danger{font-size:15px;min-height:48px}
 #navigation{max-width:760px;padding-top:9px;background:var(--canvas)}
 #navigation>button{min-height:50px;flex:1}.welcome{padding-top:7vh}.welcome h1{font-size:32px}
 #workspace{gap:4px}.product{white-space:normal;line-height:1.15}
}
@media(max-width:600px){#sheet{width:calc(100% - 24px);max-width:560px;margin:12px;inset:auto 0 0;padding:26px 22px calc(26px + env(safe-area-inset-bottom));max-height:90dvh}}
@media(max-width:365px){header{padding-inline:18px;gap:8px}.brand img{width:56px}.product{font-size:15px}main{padding-inline:20px}.appearance-options{gap:9px}.key-row{gap:14px}.toolbar-action{font-size:13px}.sheet-title h2{font-size:23px}}
@media(prefers-contrast:more){:root,:root[data-theme=dark]{--text-secondary:var(--text);--separator:var(--control-line)}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important}}
