/* The Client Server shell uses a full-width header and a separate estate context row. */
body { color:var(--ink); font-size:14px; }
button,select,input,textarea { font:inherit }
button { font-weight:650 }
.installation-header,.portal-header { display:flex; align-items:center; justify-content:space-between; position:sticky; top:0; z-index:9; min-height:68px; padding:10px 22px; gap:20px; background:var(--paper); border-bottom:1px solid var(--line) }
.demo-brand { display:inline-flex; align-items:center; flex:none }
.demo-brand img { width:164px; max-width:100%; height:44px; object-fit:contain; }
body:not([data-theme="dark"]) .demo-brand .brand-dark,body[data-theme="dark"] .demo-brand .brand-light { display:none }
.installation-tools { display:flex; align-items:center; gap:9px; min-width:0 }
.installation-tools .quiet,.admin-name,.plane { border:1px solid var(--line); border-radius:9px; padding:8px 14px; line-height:20px; font-weight:650; color:var(--ink); background:var(--field); font-size:13px; white-space:nowrap }
.estate-select select { max-width:100%; height:38px; width:clamp(150px,16vw,248px); font-weight:700; font-size:13px; }
.estate-select select:disabled { opacity:.82 }
.installation-tools .plane { background:var(--soft); color:var(--active); font-weight:500; }
.plane i { display:inline-block; width:9px; height:9px; background:#23bc75; border-radius:50%; margin-right:6px }
.installation { display:grid; grid-template-columns:clamp(198px,14.1vw,270px) minmax(0,1fr); min-height:calc(100vh - 68px) }
.rail { position:sticky; top:68px; height:calc(100vh - 68px); padding:12px 15px 8px; display:flex; flex-direction:column; min-width:0; background:var(--paper); border-right:1px solid var(--line); z-index:5; }
.rail .nav { display:flex; flex-direction:column; overflow-y:auto; padding:0; gap:0; }
.rail .nav button { flex:none; position:relative; border-radius:0; border-bottom:1px solid var(--line); min-height:44px; width:100%; color:var(--nav); font-size:13px; font-weight:650; padding:9px 11px; text-align:start; }
.rail .nav button.active { border-radius:9px; color:var(--active) }
.rail .nav .nav-child { min-height:35px; font-weight:500; padding-left:34px; }
.rail-base { padding:14px 3px 5px; color:var(--muted); font-size:12px; margin-top:auto; border-top:1px solid var(--line); }
.mobile-menu { display:none }
.work-area { min-width:0; display:flex; flex-direction:column; }
.context-row { display:flex; gap:14px; align-items:baseline; padding:12px 20px; border-bottom:1px solid var(--line); overflow-wrap:anywhere; }
.context-row strong { font-size:20px }
.context-row span { color:var(--muted); font-size:12px }
.installation .demo-strip { font-size:12px; padding:6px 20px; border-bottom:1px solid var(--line); }
.installation .layout { width:100%; max-width:none; margin:0; padding:22px 20px 32px; }
.installation main { min-width:0; scroll-margin-top:82px; }
.installation .card,.portal-main .card,.installation .stat { background:transparent; box-shadow:none; border:0; border-bottom:1px solid var(--line); border-radius:0; margin:0 0 16px; padding:16px 0 20px; }
.installation .completion { background:var(--soft); border:1px solid var(--line); border-left:3px solid var(--green); border-radius:8px; padding:20px; }
.installation h1,.portal-main h1 { font-size:clamp(23px,2vw,29px); line-height:1.2; color:var(--ink); }
.installation h2,.portal-main h2 { font-size:17px; line-height:1.35 }
.installation h3 { font-size:15px; }
.installation .form-grid { margin-block:14px; }
.installation .field,.portal-main .field { font-size:14px }
.installation input,.installation select,.installation textarea { max-width:100%; width:100%; min-width:0; }
.installation input:not([type="checkbox"]):not([type="radio"]),.installation select { min-height:40px; }
.installation output { padding:8px 0; overflow-wrap:anywhere; font-weight:600; color:var(--active); }
.installation .card-head,.overview-title { flex-wrap:wrap; align-items:center; gap:12px; }
.installation .coach { width:auto; top:82px; border-radius:8px; box-shadow:none; }
.installation .coach h2 { font-size:21px }
.installation .coach p,.installation .helper { line-height:1.55 }
.installation .spotlight { scroll-margin-block:82px 28px; }
.installation .table-wrap,.portal-main .table-wrap { max-width:100%; overflow:auto; }
.installation td,.portal-main td { font-size:14px; overflow-wrap:anywhere; }
.installation th,.portal-main th { font-size:12px }
.installation .badge,.portal-main .badge { font-size:12px; }
.estate-stats { display:flex; flex-wrap:wrap; gap:0; padding:14px 0; margin-bottom:14px; border-block:1px solid var(--line) }
.estate-stats>div { display:grid; align-content:center; padding:3px 18px; border-left:1px solid var(--line); flex:1 1 135px; }
.estate-stats>div:first-child { border-left:0; padding-left:0 }
.estate-stats strong { font-size:24px; color:var(--ink); }
.estate-stats span { color:var(--muted); font-size:13px; }
.installation-foot { display:flex; gap:18px; padding:12px 10px; align-items:center; border-top:1px solid var(--line); color:var(--muted); font-size:12px; margin:auto 20px 0; min-height:58px; }
.installation-foot .demo-brand img { width:104px; height:31px; }
.installation-foot button { margin-left:auto; }
.guide-list section,.settings-links>div { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:20px 0; border-bottom:1px solid var(--line); }
.guide-list p { margin-top:5px }
.guide-list .actions { flex-shrink:0 }
.settings-links { display:grid; gap:0 16px; grid-template-columns:repeat(auto-fit,minmax(min(290px,100%),1fr)); }
.route-coach { background:var(--soft); color:var(--active); border:1px solid var(--line); border-radius:8px; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; padding:14px 16px; margin-bottom:18px; }
.route-coach p { color:var(--ink); }
.portal-main { min-width:0; }
.portal-main>.route-coach { max-width:1300px; margin:12px auto; }
.estate-error:not(:empty) { color:var(--bad); margin:10px 0 }
form[data-estate-create] { padding-bottom:18px; border-bottom:1px solid var(--line); margin-bottom:18px }
@media(max-width:900px) {
  .installation-tools .admin-name { display:none }
  .installation .layout { padding:16px; }
  .installation .coach { position:static; width:100%; }
}
@media(max-width:700px) {
  .installation-header,.portal-header { min-height:56px; padding:8px 10px; gap:6px; }
  .demo-brand img { width:100px; height:30px; }
  .installation-tools { gap:5px; flex:1; justify-content:flex-end }
  .estate-select { min-width:0; }
  .estate-select select { width:min(33vw,170px); min-width:0; padding-left:7px; }
  .installation-tools .plane { display:none }
  .installation-tools .quiet { padding:5px 8px; min-width:0; }
  .installation { display:flex; flex-direction:column; min-height:calc(100vh - 56px); }
  .work-area { flex:1; }
  .rail { position:static; height:auto; padding:5px 10px; border:0; border-bottom:1px solid var(--line); }
  .mobile-menu { display:block; align-self:start; }
  .rail .nav,.rail-base,.training .mobile-menu { display:none }
  .rail.mobile-open .nav { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .rail .nav button { font-size:13px; white-space:normal; padding:7px 8px; min-height:37px; }
  .training .rail:not(.mobile-open) { display:none }
  .training .rail.mobile-open .nav { display:flex; }
  .training .rail .nav button:disabled { display:none }
  .context-row { align-items:center; flex-wrap:wrap; gap:3px 10px; padding:8px 12px; }
  .context-row strong { font-size:17px }
  .installation .demo-strip { padding:5px 12px; flex-direction:row; flex-wrap:wrap; justify-content:space-between; }
  .installation .layout { padding:12px; gap:12px; }
  .installation .coach-top { padding:12px; }
  .installation .coach h2 { font-size:18px }
  .installation .page-heading { margin-bottom:10px; }
  .estate-stats>div { padding:5px 9px; flex:1 1 44%; }
  .estate-stats>div:first-child { padding-left:9px; }
  .guide-list section { flex-wrap:wrap; gap:9px; }
  .installation-foot { margin-inline:12px; }
  .portal-main>.route-coach { margin:8px; }
}
