:root{--brand:#235dc5;--brand-soft:#edf3ff;--page:#f6f8fc;--card:#fff;--ink:#1c293e;--sub:#68778d;--line:#e4eaf1;--danger:#bd2f41;--ok:#208563;--shadow:0 7px 28px rgba(21,48,87,.05);--radius:10px;color-scheme:light;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}
*,*::before,*::after{box-sizing:border-box}body{margin:0;background:var(--page);color:var(--ink);font-size:14px}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #80b8ff;outline-offset:2px}a{color:var(--brand)}.app{display:flex;min-height:100vh}.side{width:260px;flex-shrink:0;background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;padding:26px 14px;position:sticky;top:0;height:100vh;overflow-y:auto}.logo{display:flex;align-items:center;gap:12px;margin:2px 10px 34px}.logo-symbol{background:#1e4eab;color:#fff;border-radius:10px;width:40px;height:40px;display:grid;place-items:center;font-weight:750;letter-spacing:-.06em}.logo strong{font-size:16px;display:block;line-height:1.15}.logo small{font-size:11px;color:var(--sub)}.nav-label{font-size:10px;letter-spacing:.11em;text-transform:uppercase;color:#8b98ab;font-weight:750;padding:12px 13px 7px}.nav{display:grid;gap:3px}.nav button{border:0;background:transparent;color:#3c4962;text-align:left;border-radius:8px;padding:11px 12px;display:flex;align-items:center;gap:11px;width:100%;font-weight:570}.nav button.active{background:var(--brand-soft);color:var(--brand);font-weight:750}.nav button:hover:not(.active){background:#f4f7fa}.nav .symbol{display:inline-grid;place-items:center;font-size:17px;min-width:21px}.side-foot{margin-top:auto;border-top:1px solid var(--line);padding:20px 12px;color:var(--sub);font-size:12px}.dot{display:inline-block;width:8px;height:8px;background:var(--ok);border-radius:50%;margin-right:5px}.main{min-width:0;flex:1}.top{height:77px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line);background:var(--card);padding:0 38px}.crumb{font-size:13px;color:var(--sub)}.crumb strong{color:var(--ink)}.top-right{display:flex;gap:9px;align-items:center}.user-pill{background:#f1f5fa;border-radius:50%;width:34px;height:34px;display:grid;place-items:center;font-weight:750}.content{max-width:1270px;margin:0 auto;padding:30px 38px 90px}.heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:26px}.heading h1{font-size:27px;letter-spacing:-.035em;margin:0 0 8px}.muted{color:var(--sub)}.heading p{margin:0;color:var(--sub);line-height:1.5}.columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:19px}.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:23px;margin-bottom:19px;min-width:0}.card h2{font-size:16px;margin:0 0 7px}.card p{color:var(--sub);margin:0 0 20px;line-height:1.55}.card-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.field{display:flex;flex-direction:column;gap:7px;min-width:0}.field.span{grid-column:1/-1}label{font-size:12px;color:#384b65;font-weight:650}.help{font-weight:400;font-size:11px;color:var(--sub)}.field input,.field select,.field textarea,.auth-card input{border:1px solid #d9e2ec;background:var(--card);color:var(--ink);border-radius:7px;min-height:42px;padding:10px 12px;width:100%;outline:none}.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(42,102,216,.10)}.field.checkbox{flex-direction:row;align-items:center;gap:12px}.field.checkbox input{width:18px;height:18px;min-height:auto;accent-color:var(--brand)}.field.checkbox label{font-size:13px}.actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end;margin-top:20px}.btn{background:#fff;border:1px solid #d8e0ed;border-radius:7px;min-height:39px;padding:9px 15px;color:#33445d;font-weight:680;display:inline-flex;align-items:center;justify-content:center;gap:7px}.btn:hover{background:#f4f7fc}.btn.primary{background:var(--brand);border-color:var(--brand);color:white}.btn.primary:hover{filter:brightness(.94)}.btn.danger{color:var(--danger);border-color:#f0cbcf}.btn.small{padding:6px 10px;min-height:33px;font-size:12px}.pill{display:inline-flex;padding:5px 9px;font-size:11px;font-weight:720;border-radius:20px;background:#f1f4f9;color:#687b91}.pill.ok{background:#e7f6ef;color:var(--ok)}.pill.warn{background:#fff4e5;color:#9d671b}.tablewrap{overflow:auto}table{width:100%;border-collapse:collapse;min-width:570px}th{text-align:left;color:var(--sub);font-size:11px;text-transform:uppercase;letter-spacing:.05em}th,td{border-bottom:1px solid var(--line);padding:13px 11px;vertical-align:middle}td strong{font-size:13px}tr:last-child td{border-bottom:0}.stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:20px}.stat{border-radius:var(--radius);border:1px solid var(--line);background:var(--card);padding:21px}.stat strong{font-size:30px;display:block;letter-spacing:-.05em;margin:5px 0}.stat small{color:var(--sub)}.notice{padding:13px 16px;border-radius:8px;background:#edf3fc;border:1px solid #d5e3f9;color:#415772;line-height:1.55;margin:13px 0}.notice.warn{background:#fffaed;border-color:#f4e6c6;color:#806227}.notice.error{background:#fff0f1;border-color:#f4cacc;color:#ad2e40}.login-screen{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 15% 10%,#dbe8ff,transparent 34%),#f7f9fc}.auth-card{width:min(430px,100%);padding:36px;border:1px solid var(--line);border-radius:15px;background:white;box-shadow:0 20px 80px rgba(28,56,95,.09)}.auth-card h1{font-size:24px;letter-spacing:-.04em;margin:24px 0 6px}.auth-card p{color:var(--sub);margin:0 0 22px}.auth-card form{display:grid;gap:14px}.auth-card label{display:grid;gap:7px}.auth-card button{width:100%}.loading{min-height:100vh;display:flex;align-items:center;justify-content:center;gap:14px;flex-direction:column}.loading small{color:var(--sub)}.spinner{display:block;width:24px;height:24px;border:3px solid #dae5f5;border-top-color:var(--brand);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}#toast{position:fixed;bottom:22px;right:22px;z-index:9;max-width:430px;background:#1e293b;color:white;padding:13px 17px;border-radius:10px;box-shadow:0 12px 36px #0002;display:none}#toast.show{display:block}#toast.error{background:#9f2938}.modal-backdrop{position:fixed;inset:0;z-index:10;display:grid;place-items:center;background:rgba(15,31,56,.47);padding:20px}.modal{border-radius:13px;border:1px solid var(--line);background:var(--card);padding:25px;width:min(520px,100%);max-height:90vh;overflow:auto;box-shadow:0 25px 90px #10274444}.modal h2{margin:0 0 10px}.modal .fields{margin-top:20px}.mono{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px;overflow-wrap:anywhere}.mobile-menu{display:none}.hidden{display:none!important}[data-theme="dark"]{--page:#111a28;--card:#1b2939;--ink:#edf5ff;--sub:#a5b4c7;--line:#304153;--brand-soft:#19385c;--shadow:none;color-scheme:dark}[data-theme="dark"] .side,[data-theme="dark"] .top{background:var(--card)}[data-theme="dark"] .nav button{color:var(--ink)}[data-theme="dark"] .nav button:hover:not(.active){background:#25374c}[data-theme="dark"] .field input,[data-theme="dark"] .field select,[data-theme="dark"] .field textarea{border-color:#42536a}[data-theme="dark"] .btn{background:#293b50;color:#f0f5fd;border-color:#4a5b70}[data-theme="dark"] .btn.primary{background:var(--brand)}@media(max-width:1050px){.side{width:215px}.top{padding:0 22px}.content{padding:25px 22px}.stat-grid{grid-template-columns:repeat(3,1fr)}}@media(max-width:760px){.app{display:block}.side{position:fixed;left:0;top:0;bottom:0;transform:translateX(-105%);transition:transform .2s;z-index:8;width:min(320px,88vw);box-shadow:0 0 24px #15253b15}.side.open{transform:translateX(0)}.mobile-menu{display:inline-flex}.top{height:65px}.content{padding:24px 15px}.columns,.stat-grid{grid-template-columns:1fr}.fields{grid-template-columns:1fr}.heading h1{font-size:23px}.card{padding:17px}.top-right .user-pill{display:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}

.top-left{display:flex;align-items:center;gap:10px}
/* S05 module extension surfaces share the same foundation tokens. */
.module-line{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid var(--border,rgba(120,130,140,.18));flex-wrap:wrap}
.module-line strong{display:block}.module-line small{display:block;margin-top:4px}.module-card{margin-top:12px}
.module-switches,.module-permissions,.module-grant-row,.actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.module-switch{display:flex;align-items:center;gap:7px;padding:8px 12px;background:var(--surface-2,#f3f4f6);border-radius:var(--radius,6px);font-size:.88rem}
.module-grant-row{padding:8px 0;border-top:1px solid rgba(120,130,140,.16)}.module-grant-row span{min-width:130px;font-size:.82rem}
.module-workspace{margin-top:16px;min-height:230px}.module-workspace textarea{width:100%;margin:10px 0}
.modules-installed{margin-top:24px}.module-portal{max-width:1060px;margin:40px auto;padding:0 22px}.portal-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:24px;flex-wrap:wrap}

.nav .planner-link{display:block;padding:12px;border-radius:8px;background:var(--brand-soft);font-weight:720;margin-bottom:8px}.nav .planner-link:hover{filter:brightness(.97)}

/* S08.7 guided staging acceptance – calm, responsive step navigation. */
.staging-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:18px 0 22px}
.staging-step{border:1px solid var(--line);border-radius:8px;padding:13px 16px;background:var(--card);color:var(--ink);text-align:left;min-width:0}
.staging-step small{font-size:11px;color:var(--sub);display:block;margin-bottom:6px}
.staging-step strong{display:block;font-size:13px;line-height:1.35}
.staging-step.current{border-color:var(--brand);background:var(--brand-soft)}
.staging-controls{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:18px;flex-wrap:wrap}
@media(max-width:650px){.staging-steps{grid-template-columns:1fr}.staging-step{padding:10px 12px}.staging-controls .muted{order:3;width:100%;text-align:center}}

/* S11 Website Connection Center */
.sks-site{border:1px solid var(--line);border-radius:var(--radius);padding:18px;margin:15px 0;background:var(--card)}
.sks-site .card-head{align-items:flex-start}.sks-site .card-head p{margin:5px 0 0;overflow-wrap:anywhere}
.sks-site .actions{justify-content:flex-start;margin:12px 0}.sks-site .sks-snippet{max-height:165px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;background:var(--page);color:var(--ink);border-color:var(--line)}
.sks-site .pill{flex-shrink:0}@media(max-width:670px){.sks-site .card-head{display:block}.sks-site .pill{margin-top:10px}.sks-site .btn{flex:1}}

/* S11.1 Integration Studio: responsive sandboxed visual design sample; no booking API. */
.site-filter-bar{display:flex;align-items:end;gap:14px;flex-wrap:wrap;margin:14px 0 22px}
.site-filter-bar label{display:grid;gap:6px;font-size:12px;font-weight:650;color:var(--sub)}
.site-filter-bar input,.site-filter-bar select{min-width:200px;background:var(--card);color:var(--ink);border:1px solid var(--line);border-radius:var(--radius);padding:10px}
.site-filter-bar span{color:var(--sub);font-size:12px;margin:0 0 10px}
.sks-site[hidden]{display:none}
.studio-modal{width:min(1060px,96vw);max-height:94vh;padding:25px}
.studio-banner{padding:12px 15px;border:1px solid var(--line);background:var(--brand-soft);border-radius:var(--radius);font-size:13px;line-height:1.55}
.studio-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin:18px 0}
.studio-switch,.studio-code-tabs{display:flex;flex-wrap:wrap;gap:7px}
.studio-active{outline:2px solid var(--brand)!important;outline-offset:-2px}
.studio-stage{display:flex;justify-content:center;align-items:flex-start;min-width:0;padding:24px 10px;border:1px solid var(--line);border-radius:var(--radius);background:var(--page);overflow:auto}
.studio-frame{background:#fff;color:#1b2b40;box-shadow:0 18px 56px #172c4a21;border:1px solid #d4dce7;border-radius:10px;overflow:hidden;max-width:100%;flex:0 0 auto;transition:width .18s}
.studio-desktop{width:820px}.studio-tablet{width:570px}.studio-mobile{width:335px}
.studio-browser{height:34px;background:#eef2f7;border-bottom:1px solid #dbe2ed;display:flex;align-items:center;gap:16px;padding:0 16px;font:11px ui-monospace,monospace}
.studio-dots{color:#f59f6b;letter-spacing:2px}.studio-domain{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#586878}
.studio-example{--studio-brand:#2368cf;padding:30px 34px 20px;font-family:inherit}
.studio-forest{--studio-brand:#147d65}.studio-graphite{--studio-brand:#424f65}.studio-copper{--studio-brand:#ad582b}
.studio-header{display:flex;align-items:center;gap:12px;padding-bottom:18px;border-bottom:1px solid #e0e6ec}
.studio-header b,.studio-header small{display:block}.studio-header b{font-size:17px}.studio-header small{font-size:12px;color:#667789;margin-top:2px}
.studio-monogram{display:grid;place-items:center;background:var(--studio-brand);color:white;border-radius:9px;width:40px;height:40px;font-weight:750}
.studio-steps{display:flex;flex-wrap:wrap;gap:9px;margin:22px 0 25px;font-size:11px;color:#64758a}
.studio-steps span{padding:6px 10px;background:#f1f5fa;border-radius:5px}.studio-steps span.selected{color:white;background:var(--studio-brand)}
.studio-example h3{font-size:21px;letter-spacing:-.035em;margin:0 0 6px;color:#15273c}.studio-example p{color:#607288;font-size:13px;margin:0 0 18px}
.studio-choice{border:1px solid var(--studio-brand);border-radius:7px;display:flex;justify-content:space-between;align-items:center;padding:13px 15px;font-size:13px;margin:9px 0}
.studio-choice b{color:var(--studio-brand)}.studio-choice.secondary{border-color:#dae2ec;color:#53657c}
.studio-slot-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:17px 0}
.studio-slot-grid span{padding:10px;text-align:center;border-radius:6px;border:1px solid #d8e1ed;color:#3f536c;font-size:12px}
.studio-fake-button{padding:12px 16px;border-radius:6px;color:white;background:var(--studio-brand);text-align:center;font-weight:650;font-size:13px;margin-left:auto;width:max-content;max-width:100%}
.studio-watermark{display:block;text-align:center;color:#8190a1;margin-top:18px;font-size:10px;letter-spacing:.06em}
.studio-mobile .studio-example{padding:20px 14px 16px}.studio-mobile .studio-steps{gap:4px;font-size:9px}.studio-mobile .studio-steps span{padding:6px}.studio-mobile .studio-example h3{font-size:19px}
.studio-bottom{display:grid;grid-template-columns:1.5fr 1fr;gap:18px;margin-top:18px}.studio-bottom section{min-width:0;border:1px solid var(--line);padding:18px;border-radius:var(--radius)}
.studio-bottom h3{font-size:16px;margin:0 0 12px}
.studio-code{white-space:pre-wrap;overflow-wrap:anywhere;background:var(--page);color:var(--ink);padding:12px;border:1px solid var(--line);border-radius:var(--radius);font:12px/1.55 ui-monospace,monospace;max-height:180px;overflow:auto}
.studio-checklist>div{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--line);font-size:12px}.studio-checklist b{color:var(--sub);font-size:11px}.studio-checklist b.ok{color:#11704e}
@media(max-width:760px){.studio-modal{width:98vw;padding:16px}.studio-bottom{grid-template-columns:1fr}.studio-stage{padding:12px 4px}.studio-example{padding:16px}.studio-desktop{width:650px}.studio-tablet{width:500px}.studio-mobile{width:315px}}
@media(prefers-reduced-motion:reduce){.studio-frame{transition:none}}

/* S11.2: distinguish simulated layout from a real read-only HTTP header probe. */
.studio-readonly{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:16px 0;padding:16px;border:1px solid var(--line);border-radius:var(--radius);background:var(--card)}
.studio-readonly>div{flex:1 1 240px;min-width:0}.studio-readonly strong{font-size:13px}.studio-readonly p{margin:5px 0 0;font-size:12px;color:var(--sub);line-height:1.5}
.studio-probe-state{font-size:12px;font-weight:700;color:var(--sub)}
.sks-site .actions{justify-content:flex-start}.studio-modal{max-width:calc(100vw - 16px)}
@media(max-width:390px){.studio-modal{padding:12px;width:calc(100vw - 10px)}.studio-bottom section{padding:12px}.site-filter-bar input,.site-filter-bar select{min-width:0;width:100%}.site-filter-bar label{width:100%}.studio-readonly .btn{width:100%}}

/* S11.4 FIX3: read-only first-run orientation. */
.postinstall{margin-bottom:21px}
.postinstall .card-head{gap:14px;flex-wrap:wrap}
.postinstall .card-head p{margin:5px 0 0;color:var(--sub);font-size:13px}
.postinstall-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 22px;margin:16px 0 18px}
.postinstall-line{display:flex;gap:10px;align-items:center;justify-content:space-between;min-width:0;padding:11px 0;border-bottom:1px solid var(--line)}
.postinstall-line>div{min-width:0;flex:1}
.postinstall-line strong{display:block;font-size:13px}
.postinstall-line small{display:block;color:var(--sub);font-size:11px;line-height:1.5;margin-top:4px;overflow-wrap:anywhere}
.postinstall-line .pill{flex-shrink:0;font-size:10px}
.postinstall-actions{justify-content:flex-start;gap:9px}
.postinstall-note{margin:14px 0 0;font-size:11px;line-height:1.6}
@media(max-width:920px){.postinstall-grid{grid-template-columns:1fr}}
@media(max-width:490px){.postinstall-line{align-items:flex-start;flex-wrap:wrap}.postinstall-line .pill{margin-left:0}.postinstall-actions .btn{width:100%}}
