/* HQ shell — warm ops console (spec 2026-07-17 §3). */ .hq-shell { display: grid; grid-template-columns: 224px 1fr; height: 100vh; } /* Sidebar collapse (D18 WS-E): icon rail — labels, eyebrows, brand text and count badges hide; nav icons + tooltips (title=) remain. State lives in localStorage. */ .hq-shell.side-collapsed { grid-template-columns: 52px 1fr; } .hq-shell.side-collapsed .hq-side .lbl, .hq-shell.side-collapsed .hq-eyebrow, .hq-shell.side-collapsed .hq-brand small, .hq-shell.side-collapsed .hq-count, .hq-shell.side-collapsed .hq-side-foot .lbl { display: none; } .hq-shell.side-collapsed .hq-brand { font-size: 12px; padding: 4px 8px 14px; text-align: center; } .hq-shell.side-collapsed .hq-side a { justify-content: center; padding: 8px 0; } .hq-collapse { margin-left: auto; border: 1px solid var(--border); background: var(--bg-raised); color: var(--text-dim); border-radius: 4px; width: 20px; height: 20px; line-height: 1; cursor: pointer; font-size: 12px; padding: 0; } .hq-collapse:hover { background: var(--bg-hover); color: var(--text); } .hq-shell.side-collapsed .hq-side-foot { display: flex; justify-content: center; padding: 10px 4px; } .hq-side { background: var(--bg-raised); border-right: 1px solid var(--border); overflow-y: auto; padding: 12px 0 0; display: flex; flex-direction: column; } .hq-brand { font-weight: 700; font-size: 16px; padding: 4px 16px 14px; letter-spacing: -0.01em; } .hq-brand small { display: block; color: var(--text-dim); font-weight: 400; font-size: 11.5px; } .hq-group { margin-bottom: 10px; } .hq-eyebrow { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); padding: 4px 16px; } .hq-side a { display: flex; align-items: center; gap: 9px; padding: 7px 16px 7px 14px; color: var(--text); text-decoration: none; font-size: 13.5px; border-left: 2px solid transparent; } .hq-side a .lbl { flex: 1; } .hq-side a:hover { background: var(--bg-hover); } .hq-side a.active { background: var(--accent-soft); border-left-color: var(--accent); font-weight: 600; } .hq-count { font-family: var(--mono); font-size: 10.5px; font-weight: 600; background: var(--warn-soft); color: var(--warn); border-radius: 999px; padding: 1px 7px; } .hq-count.err { background: var(--err-soft); color: var(--err); } .hq-side-foot { margin-top: auto; padding: 10px 16px; border-top: 1px solid var(--border); font-size: 11px; color: var(--text-dim); font-family: var(--mono); display: flex; align-items: center; gap: 7px; } .hq-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; background: var(--text-dim); } .hq-dot.ok { background: var(--ok); } .hq-dot.warn { background: var(--warn); } .hq-dot.err { background: var(--err); } .hq-main { display: flex; flex-direction: column; min-width: 0; } .hq-banner { padding: 8px 20px; font-size: 13px; color: var(--warn); background: var(--warn-soft); border-bottom: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); } .hq-top { display: flex; gap: 10px; align-items: center; padding: 8px 20px; border-bottom: 1px solid var(--border); background: var(--bg-raised); min-height: 48px; } .hq-burger { display: none; padding: 6px 9px; } .hq-search { display: flex; align-items: center; gap: 8px; min-width: 260px; background: var(--bg-inset); color: var(--text-dim); border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; font: 400 13px var(--font); cursor: pointer; transition: border-color var(--speed); } .hq-search:hover { border-color: var(--border-strong); } .hq-search kbd { margin-left: auto; font-family: var(--mono); font-size: 10px; border: 1px solid var(--border-strong); border-radius: 3px; padding: 0 5px; } .hq-pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 3px 11px; font-size: 12px; font-weight: 500; border: 1px solid var(--border); color: var(--text-dim); } .hq-pill.ok { color: var(--ok); background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 25%, transparent); } .hq-pill.warn { color: var(--warn); background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 25%, transparent); } .hq-user-wrap { position: relative; display: inline-flex; } .hq-user { display: inline-flex; align-items: center; gap: 8px; background: none; border: 1px solid transparent; border-radius: 999px; padding: 3px 8px 3px 4px; cursor: pointer; font: inherit; color: inherit; } .hq-user:hover, .hq-user[aria-expanded='true'] { background: var(--bg-hover); border-color: var(--border); } .hq-user-menu { /* Below the dialog scrim (50) so an opened modal covers the dropdown; above the mobile drawer (40) and page chrome. */ position: absolute; top: calc(100% + 6px); right: 0; z-index: 45; min-width: 150px; padding: 4px; background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; } .hq-user-item { display: flex; align-items: center; gap: 8px; background: none; border: none; border-radius: var(--radius-sm); padding: 7px 10px; font: 500 13px var(--font); color: var(--text); cursor: pointer; text-align: left; } .hq-user-item:hover { background: var(--bg-hover); } .hq-user-av { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; } .hq-user-name { font-size: 13px; font-weight: 500; } .hq-content { overflow-y: auto; flex: 1; padding: 4px 20px 20px; } .hq-scrim { display: none; } /* Dashboard section grid (Task 7). */ .dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; align-items: start; } .dash-grid > section { min-width: 0; } @media (max-width: 1100px) { .dash-grid { grid-template-columns: 1fr; } } /* Login — split panel (Task 13). */ .login-wrap { height: 100vh; display: flex; align-items: stretch; justify-content: center; } .login-brand { flex: 1; background: #1a1a17; color: #eae8e2; display: flex; flex-direction: column; justify-content: center; padding: 48px 56px; } .login-brand .login-mark { margin-bottom: 16px; } .login-brand h1 { font-size: 34px; margin: 0 0 8px; letter-spacing: -0.02em; } .login-brand p { color: #a8a69c; max-width: 44ch; } .login-form { flex: 0 0 440px; display: flex; align-items: center; justify-content: center; padding: 24px; } .login-card { background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; width: 100%; max-width: 380px; } @media (max-width: 800px) { .login-brand { display: none; } .login-form { flex: 1; } } /* Responsive-lite: drawer sidebar under 900px (APEX checklist item h). */ @media (max-width: 900px) { .hq-shell { grid-template-columns: 1fr; } .hq-side { position: fixed; inset: 0 auto 0 0; width: 240px; z-index: 40; transform: translateX(-100%); visibility: hidden; transition: transform var(--speed) ease, visibility 0s var(--speed); box-shadow: var(--shadow-lg); } .hq-side.open { transform: translateX(0); visibility: visible; transition: transform var(--speed) ease; } .hq-scrim { display: block; position: fixed; inset: 0; z-index: 39; background: rgba(15, 14, 11, 0.4); } .hq-burger { display: inline-flex; } .hq-search { min-width: 0; flex: 1; } .hq-search span { display: none; } .hq-user-name { display: none; } .hq-content { padding: 4px 12px 16px; } .wf-page { padding: 16px 4px 24px; } } /* Tables scroll inside their page rather than breaking the layout. */ .hq-content { overflow-x: hidden; } table.wf { display: block; overflow-x: auto; } @media (min-width: 901px) { table.wf { display: table; } } /* Relationship-pulse ribbon (Client 360 overview). */ .pulse { background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; margin: 16px 0; } .pulse-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; } .pulse-head h3 { margin: 0; font-size: 15px; } .pulse-legend { margin-left: auto; display: flex; gap: 12px; font-size: 11px; letter-spacing: 0.06em; color: var(--text-dim); } .pulse-legend .dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin-right: 4px; } .pulse-grid { display: grid; gap: 2px 0; margin-top: 12px; } .pulse-lane { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); padding: 6px 8px 6px 0; white-space: nowrap; } .pulse-cell { border-left: 1px solid var(--border); min-height: 26px; display: flex; align-items: center; gap: 3px; padding: 2px 3px; flex-wrap: wrap; } .pulse-dot { position: relative; width: 9px; height: 9px; border-radius: 50%; border: none; cursor: pointer; padding: 0; transition: transform 80ms; } .pulse-dot::before { content: ''; position: absolute; inset: -8px; } .pulse-dot:hover { transform: scale(1.5); } .pulse-more { font-size: 11px; color: var(--text-dim); font-family: var(--mono); } .pulse-month { border-left: 1px solid var(--border); font-size: 11px; color: var(--text-dim); font-family: var(--mono); padding: 3px; } .pulse-readout { margin-top: 10px; border-left: 2px solid var(--accent); background: var(--bg-inset); border-radius: var(--radius-sm); padding: 7px 10px; font-size: 12.5px; color: var(--text); min-height: 32px; display: flex; align-items: center; gap: 6px; } .pulse-open { color: var(--accent-strong); margin-left: auto; font-size: 11.5px; } @media (max-width: 900px) { .pulse-grid { display: none; } .pulse-readout { display: none; } .pulse::after { content: 'Timeline hidden on small screens.'; color: var(--text-dim); font-size: 12px; } } /* ================= Settings hub (rail + panels) ================= */ .set-wrap { display: flex; gap: 24px; } .set-rail { flex: 0 0 190px; display: flex; flex-direction: column; gap: 2px; } .set-rail button { text-align: left; border: none; background: none; padding: 8px 12px; border-radius: var(--radius); font: 500 13.5px var(--font); color: var(--text-dim); cursor: pointer; } .set-rail button:hover { background: var(--bg-hover); color: var(--text); } .set-rail button.active { background: var(--accent-soft); color: var(--accent-strong); font-weight: 600; } .set-panel { flex: 1; min-width: 0; max-width: 860px; } /* Panel section headers sit under the 22px page h1 — pin them to the app's type scale instead of the ~21px UA default that nearly ties with the page title. */ .set-panel h2 { font-size: 17px; margin: 0 0 4px; } .set-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; } .set-card h3 { margin: 0 0 8px; font-size: 14px; } @media (max-width: 900px) { .set-wrap { flex-direction: column; } /* flex-basis: auto — the desktop 190px basis is a width in row layout, but once .set-wrap flips to column it would pin the rail's HEIGHT to 190px. */ .set-rail { flex-direction: row; flex-wrap: wrap; flex-basis: auto; } }