/* Syntal Cloud v1.3.1 — Professional workspace shell. Layered over Stage C styles. */
:root {
  --bg: #080d17; --panel:#131b2a; --panel2:#182338;
  --line:#26344b; --muted:#9eacc7; --accent:#9bafff;
  --accent2:#66cfe5; --green:#69d7b5; --orange:#ffba7b;
  color:#eff4ff; background:#080d17;
}
html,body{min-width:320px;overflow-x:hidden}
body{background:#080d17;color:#eef3ff}
button,select,input,textarea{font-family:inherit}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #9cb7ff;outline-offset:3px}
.app-shell{grid-template-columns:252px minmax(0,1fr);background:#0a101c}
.app-shell .sidebar{background:linear-gradient(180deg,#111a2a 0%,#0e1725 100%);border-right:1px solid #2a3650;padding:0 13px 18px;gap:0;z-index:25}
.side-header{padding:29px 15px 23px;border-bottom:1px solid #243249;margin-bottom:13px}
.side-header .brand{font-size:21px;gap:9px;letter-spacing:-.8px}
.side-header .brand-icon{color:#c3c9ff}
.brand-version{font-size:9px;letter-spacing:1.1px;color:#7789aa;margin:12px 0 0 37px;font-weight:700}
.app-shell .sidebar nav{display:flex;flex-direction:column;gap:2px;min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#2c3b57 transparent;padding-right:2px}
.app-shell .navgroup{padding:17px 12px 7px;font-size:10px;color:#8295b6;letter-spacing:1.55px;font-weight:750}
.app-shell .nav-link{display:flex;align-items:center;gap:12px;width:100%;min-height:42px;text-align:left;color:#aebbd4;background:transparent;border:1px solid transparent;border-radius:10px;padding:0 12px;transition:background .15s,color .15s,border-color .15s;font-size:12px;font-weight:560;white-space:nowrap}
.app-shell .nav-link:hover{background:#1b2a40;color:#f3f6ff}
.app-shell .nav-link.active{background:linear-gradient(90deg,#273a61,#1b2945);border-color:#3c527b;color:#f7f9ff;box-shadow:inset 3px 0 #99adff}
.app-shell .nav-icon{display:inline-flex;width:24px;align-items:center;justify-content:center;color:#8caaeb;font-size:20px;line-height:1;flex-shrink:0}
.app-shell .nav-link.active .nav-icon{color:#c4caff}
.nav-label{flex:1}.nav-caret{font-size:18px;color:#5b7194;opacity:0;transition:opacity .16s}
.app-shell .nav-link:hover .nav-caret,.app-shell .nav-link.active .nav-caret{opacity:1}
.app-shell .sidebar-end{padding:17px 12px 3px;margin-top:auto;gap:8px;border-top:1px solid #27354a}
.sidebar-end p{color:#7585a4;font-size:10px;line-height:1.6;margin:0}
.connection-status{display:flex;gap:7px;align-items:center;color:#d5e0f7;font-size:11px;font-weight:650}
.connection-status i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#58d5ac;box-shadow:0 0 0 4px #57d5ac21}
.connection-dot{margin-left:auto;font-size:9px;color:#76d7b6;border:1px solid #335d57;padding:3px 5px;border-radius:5px}
.app-shell .main{background:radial-gradient(ellipse 680px 270px at 82% 0%,#18284765,transparent 76%),#0a101c}
.app-shell .topbar{height:77px;min-height:77px;padding:0 clamp(18px,2.6vw,38px);background:#111a28d9;backdrop-filter:blur(16px);border-color:#26344a;position:relative;z-index:3}
.top-left{display:flex;align-items:center;min-width:0;gap:12px}
.app-shell .crumb{font-size:10px;letter-spacing:1.2px;color:#8496b4;font-weight:700}
.app-shell .top-title{font-size:19px;font-weight:780;letter-spacing:-.45px;margin-top:5px;line-height:1.1}
.app-shell .tools{display:flex;align-items:center;gap:13px;min-width:0}
.scope-field{display:flex;flex-direction:column;gap:4px;min-width:0}
.scope-field label{font-size:9px;letter-spacing:1.1px;color:#8193b3;font-weight:750}
.app-shell .topbar .scope-field select{border:1px solid #37465c;background:#192437;color:#e7efff;border-radius:9px;min-width:135px;max-width:225px;padding:8px 28px 8px 10px;font-size:12px;height:36px}
.quick-open{height:36px;display:flex;align-items:center;gap:7px;border:1px solid #34425a;background:#1b2739;color:#b9c8e3;border-radius:9px;padding:0 10px;font-size:17px}
.quick-open kbd{font-size:10px;font-family:inherit;color:#8fa2c2;border:1px solid #3b4b63;border-radius:5px;padding:3px 5px}
.app-shell .circle{width:36px;height:36px;border-radius:12px;background:linear-gradient(140deg,#455da8,#596388);font-weight:700;color:#f4f8ff;border:1px solid #6d81b0;display:grid;place-items:center}
.page-context{padding:24px clamp(18px,2.6vw,38px) 0;border-bottom:1px solid #223049;background:#0e1624b3}
.context-top{display:flex;align-items:center;justify-content:space-between;gap:18px}
.context-identity{display:flex;align-items:center;gap:16px;min-width:0}
.context-icon{display:grid;place-items:center;flex-shrink:0;width:53px;height:53px;border-radius:14px;background:linear-gradient(135deg,#2b3d64,#17243c);border:1px solid #3c4c72;font-size:26px;color:#b6c7ff}
.context-identity strong{display:block;font-size:22px;letter-spacing:-.5px;margin:3px 0 4px;font-weight:760}
.context-eyebrow{display:block;color:#9caee0;text-transform:uppercase;font-size:9px;letter-spacing:1.4px;font-weight:750}
.context-identity p{margin:0;color:#9baac5;font-size:12px;line-height:1.5}
.context-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.context-project{font-size:11px;color:#9cccbf;background:#1a3133;border:1px solid #2e5655;border-radius:8px;padding:10px 12px;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.contextual-cta{background:#263753;color:#e1eaff;border:1px solid #42597d;font-size:11px;white-space:nowrap}
.context-tabs{display:flex;gap:10px;align-items:center;overflow-x:auto;scrollbar-width:none;margin-top:20px;white-space:nowrap;min-height:42px}
.context-tabs::-webkit-scrollbar{display:none}
.context-tabs button{padding:8px 12px;border-radius:8px 8px 0 0;background:transparent;border-bottom:2px solid transparent;color:#93a5c3;font-size:11px;font-weight:660;min-height:37px;white-space:nowrap}
.context-tabs button:hover{background:#1c2b43;color:#d6e4ff;border-bottom-color:#96aefc}
.context-tabs button span{font-size:10px;color:#7a91b7;margin-left:5px}
.app-shell .content{padding:28px clamp(18px,2.6vw,38px) 74px;scrollbar-width:thin;scrollbar-color:#3c4b64 transparent}
.app-shell .content>*{max-width:100%}
.app-shell .heading{border:0;display:flex;align-items:flex-end;margin-bottom:24px;gap:18px}
.app-shell .heading h1{font-size:clamp(24px,2.25vw,35px);font-weight:785;letter-spacing:-1.15px;line-height:1.2}
.app-shell .heading p{font-size:12px;line-height:1.6;color:#99aac8;max-width:820px;margin-top:7px}
.app-shell .card{background:linear-gradient(160deg,#182336,#121c2d);border-color:#2c3b54;border-radius:15px;box-shadow:0 8px 24px #00000016}
.app-shell .panel{padding:22px}
.app-shell .btn{border-radius:9px;font-size:12px;min-height:35px;font-weight:650}
.app-shell .btn.primary{background:#869df1;border-color:#a4b4ff;color:#081024}
.app-shell .btn.primary:hover{background:#a4b8ff}
.app-shell .btn.ghost{background:#1d2a40;color:#c6d4ef;border:1px solid #3b4b67}
.app-shell .kpi{padding:22px;min-height:135px;border-top:2px solid #728dce}
.app-shell .kpi strong{font-size:30px;margin-top:18px;color:#eef3ff;letter-spacing:-1px}
.app-shell .split{gap:17px}
.app-shell .team-grid,.app-shell .devices-grid{gap:16px}
.app-shell .project-card,.app-shell .team-card,.app-shell .device-card{padding:23px}
.app-shell .project-card:hover,.app-shell .team-card:hover,.app-shell .device-card:hover{border-color:#5673a7;box-shadow:0 12px 35px #050a164c}
.app-shell .status-pill{border-radius:7px;font-weight:650}
.app-shell .board-wrap{border-radius:16px}
.app-shell .lane{background:#141e2e;border:1px solid #263850;border-radius:14px}
.app-shell .lane-top{font-size:12px;font-weight:780;letter-spacing:.15px}
.app-shell .task{background:#1d2b40;border:1px solid #35465f;border-radius:11px}
.app-shell .task:hover{border-color:#9aaef9;transform:translateY(-1px)}
.app-shell .chat-shell{border-color:#30405a;border-radius:15px;box-shadow:0 12px 35px #0002;min-height:calc(100dvh - 340px)}
.app-shell .conversation{background:#111c2c}
.app-shell .threads{background:#141f30}
.app-shell .modal{background:#151e30;border-color:#3f5271}
.app-shell .table{border-collapse:separate;border-spacing:0}
.app-shell .table tr:hover td{background:#1a283b}
.app-shell .hq-hero{border-color:#3a4b6d;background:linear-gradient(117deg,#263b5e90,#1c2c4470),#141f31}
.app-shell .hq-stat{background:linear-gradient(160deg,#1b2a43,#121e30);border-top:2px solid #879be5}
.app-shell .hq-stat strong{color:#f4f7ff}
.screen-loading{max-width:1100px;margin:20px auto;display:grid;gap:15px;grid-template-columns:repeat(3,minmax(0,1fr))}
.screen-loading span{height:118px;border-radius:15px;background:linear-gradient(90deg,#162239,#263852,#162239);background-size:200% 100%;animation:shimmer 1.6s ease-in-out infinite}
.screen-loading p{grid-column:1/-1;color:#8a9bb9;font-size:12px}
@keyframes shimmer{0%{background-position:0 0}100%{background-position:-200% 0}}
.mobile-dock{display:none}
.mobile-scrim[hidden]{display:none!important}
.quick-scrim{z-index:100}
.nav-palette{position:absolute;top:min(13vh,130px);left:50%;transform:translateX(-50%);width:min(590px,calc(100vw - 30px));border:1px solid #526587;background:#111c2c;border-radius:17px;box-shadow:0 30px 100px #020610b8;overflow:hidden}
.palette-search{height:68px;display:flex;align-items:center;gap:12px;padding:0 20px;border-bottom:1px solid #2c3d54;color:#9bb2d9}
.palette-search span{font-size:24px}.palette-search input{background:transparent;border:0;outline:0;color:#eef3ff;flex:1;min-width:0;font-size:15px}
.palette-search kbd,.palette-hint{font-family:inherit;font-size:10px;color:#8298bb}
.palette-results{padding:10px;max-height:450px;overflow:auto}
.palette-result{width:100%;display:flex;align-items:center;gap:13px;text-align:left;padding:12px;border-radius:10px;color:#cfdaee;background:transparent}
.palette-result.selected,.palette-result:hover{background:#263854}
.palette-result .nav-icon{width:26px;flex-shrink:0;font-size:21px;color:#aabafa}
.palette-result strong{font-size:13px}.palette-result small{display:block;font-size:10px;color:#93a6c6;margin-top:4px}
.palette-result>span:last-child{margin-left:auto;color:#91a3ca}
.palette-hint{padding:13px 18px;border-top:1px solid #2b3c53}
/* Each destination is visually its own application area. */
.screen[data-page="hq"] .hq-hero{margin-bottom:19px}
.screen[data-page="sprints"] .team-grid .card{border-top:3px solid #8aa3e9}
.screen[data-page="backlog"]>.card{border-top:3px solid #b3a7e8}
.screen[data-page="board"] .board{min-height:460px}
.screen[data-page="timeline"] .hq-timeline-event{border-left-color:#8da8e6}
.screen[data-page="team"] .team-card{border-top:2px solid #8eaeed}
.screen[data-page="devices"] .device-card{border-top:2px solid #6dcdb6}
.screen[data-page="jobs"] .table-wrap{border-top:2px solid #7ba8dc}
@media(max-width:1200px){.app-shell{grid-template-columns:226px minmax(0,1fr)}.scope-field label{display:none}.app-shell .topbar .scope-field select{max-width:165px;min-width:105px}.app-shell .hq-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.quick-open kbd{display:none}}
@media(max-width:940px){.app-shell{grid-template-columns:1fr}.app-shell .sidebar{position:fixed;left:0;top:0;bottom:0;width:265px;transform:translateX(-102%);transition:transform .18s ease;box-shadow:20px 0 50px #0008}.app-shell .sidebar.open{transform:translateX(0)}.mobile-scrim:not([hidden]){position:fixed;inset:0;z-index:20;background:#030710a8;display:block}.app-shell .mobile-menu{display:inline-flex}.app-shell .topbar{height:64px;min-height:64px}.app-shell .topbar .tools{gap:8px}.app-shell .topbar .scope-field select{max-width:140px}.context-top{gap:12px}.context-identity strong{font-size:18px}.context-icon{width:46px;height:46px}.contextual-cta{display:none}.app-shell .chat-shell{min-height:calc(100dvh - 310px)}}
@media(max-width:670px){.app-shell .topbar{padding:0 13px}.app-shell .top-title{font-size:15px}.app-shell .crumb{font-size:8px}.app-shell .tools{gap:6px}.app-shell .topbar .scope-field select{max-width:105px;min-width:64px;font-size:11px;padding:6px 19px 6px 7px}.app-shell .circle,.quick-open{display:none}.page-context{padding:17px 15px 0}.context-identity{gap:11px}.context-icon{width:41px;height:41px;font-size:21px}.context-identity strong{font-size:17px}.context-identity p{font-size:10px;max-width:220px}.context-project{max-width:95px;padding:7px;font-size:9px}.context-tabs{margin-top:15px;gap:3px}.context-tabs button{padding:8px 10px;font-size:10px}.app-shell .content{padding:21px 14px 90px}.app-shell .heading h1{font-size:25px}.app-shell .heading{margin-bottom:20px;gap:14px}.app-shell .heading .actions{width:100%;justify-content:flex-start}.app-shell .heading .actions .btn{flex-shrink:0}.app-shell .panel{padding:16px}.app-shell .hq-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.app-shell .hq-stat strong{font-size:24px}.app-shell .kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.app-shell .kpi{padding:16px;min-height:113px}.app-shell .kpi strong{font-size:26px}.app-shell .chat-shell{grid-template-columns:115px minmax(0,1fr);min-height:calc(100dvh - 410px)}.app-shell .team-grid,.app-shell .devices-grid{grid-template-columns:1fr}.mobile-dock{position:fixed;z-index:10;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));height:66px;background:#131e2dec;border-top:1px solid #35455c;backdrop-filter:blur(18px);padding-bottom:env(safe-area-inset-bottom)}.mobile-dock button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:1px;background:transparent;color:#8da0bd;font-size:19px}.mobile-dock button small{font-size:9px;font-weight:680}.mobile-dock button.active{color:#d0d9ff;box-shadow:inset 0 2px #a3b5ff}.screen-loading{grid-template-columns:1fr 1fr}.screen-loading span{height:90px}.context-actions{display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* Second-level headings act as compact view toolbars beneath the page identity. */
.app-shell .view-toolbar{align-items:center;margin-bottom:19px;min-height:48px}
.app-shell .view-toolbar h2{font-size:13px;font-weight:760;letter-spacing:0;color:#ccd9f3;margin:0 0 4px}
.app-shell .view-toolbar p{font-size:11px;color:#8195b6;margin:0;max-width:860px}
@media(max-width:670px){.app-shell .view-toolbar{align-items:flex-start}.app-shell .view-toolbar h2{font-size:12px}.app-shell .view-toolbar p{font-size:10px}}
