/* HALCÓN workspace visual layer. Scoped to this portal; behavior and shared sheets unchanged. */
body.halcon-workspace {
 --bg:#0b0d12; --surface:#151a23; --surface2:#1b222e; --raised:#222c38;
 --line:#ffffff16; --txt:#f1f0eb; --txt2:#c3c9d3; --mut:#a2adbd;
 --gold:#dfbf7b; --gold-dim:#dfbf7b0d;
 background:radial-gradient(ellipse at 82% 0,#7faeb90b,transparent 50%),#0b0d12;
}
body.halcon-workspace .sidebar { background:#0d1017; border-right-color:#ffffff0e; }
body.halcon-workspace .brand-symbol { font-size:0; width:44px; height:44px; flex-shrink:0; border:1px solid #dfbf7b38; background:#0b0c0a url('/halcon-official.jpg') 49% 29% / 330% auto no-repeat; border-radius:13px; }
body.halcon-workspace .brand { letter-spacing:.08em; }
body.halcon-workspace .nav-item.active { background:linear-gradient(100deg,#dfbf7b14,#dfbf7b04); border-color:#dfbf7b30; box-shadow:inset 2px 0 #dfbf7b; color:#ecd6a8; }
body.halcon-workspace .topbar { background:#10141c; border-bottom-color:#ffffff0e; }
body.halcon-workspace main { padding:38px 36px; }
body.halcon-workspace .page-heading { padding:0 0 28px; border-bottom:1px solid #ffffff12; margin-bottom:26px; }
body.halcon-workspace h1 { font-size:clamp(28px,3vw,42px); font-weight:580; letter-spacing:-.045em; line-height:1.15; }
body.halcon-workspace .eyebrow { color:#dfbf7b; letter-spacing:.14em; font-size:11px; }
body.halcon-workspace .button.primary { background:linear-gradient(115deg,#cbaa68,#efdaa6); border-color:#e3c68b; color:#171710; box-shadow:0 4px 18px #0003; font-weight:650; }
body.halcon-workspace .button { min-height:44px; transition:background-color .2s,border-color .2s; }
body.halcon-workspace .button.quiet { background:#ffffff03; border-color:#ffffff20; color:#d9dfe8; }
body.halcon-workspace .panel { background:linear-gradient(130deg,#ffffff02,transparent 65%),#151a23; border:1px solid #ffffff14; border-radius:18px; box-shadow:0 12px 30px #00000016; margin-bottom:22px; }
body.halcon-workspace .panel-header { background:transparent; border-bottom-color:#ffffff0c; }
body.halcon-workspace .panel-body { padding:26px; }
body.halcon-workspace .field { color:#cbd2de; font-size:13px; }
body.halcon-workspace .field input,
body.halcon-workspace .field select { background:#0e141d; border-color:#ffffff1b; min-height:46px; font-size:15px; }
body.halcon-workspace .helper { font-size:13px; line-height:1.75; }
body.halcon-workspace .metrics { gap:16px; margin-block:26px; }
body.halcon-workspace .metric { padding:24px; background:radial-gradient(ellipse at 100% 0,#a5b5e012,transparent 70%),#171d29; border:1px solid #a5b5e025; }
body.halcon-workspace .metric:nth-child(2) { background:radial-gradient(ellipse at 100% 0,#dfbf7b15,transparent 70%),#1d1e21; border-color:#dfbf7b32; }
body.halcon-workspace .metric:nth-child(3) { background:radial-gradient(ellipse at 100% 0,#82b7c21b,transparent 70%),#142229; border-color:#82b7c22b; }
body.halcon-workspace .metric-value { font-weight:500; color:#e9dfc8; font-size:38px; }
body.halcon-workspace .metric:nth-child(3) .metric-value { color:#aed3db; }
body.halcon-workspace .metric-context { font-size:12px; }
body.halcon-workspace .guide-intro { align-items:center; gap:22px; }
body.halcon-workspace .guide-intro h2 { font-size:22px; font-weight:550; margin-block:9px; }
body.halcon-workspace progress { accent-color:#dfbf7b; }
body.halcon-workspace .funnel-fill { background:linear-gradient(90deg,#ae986c,#dfc78d); }
body.halcon-workspace :focus-visible { outline:2px solid #9acbd4; outline-offset:4px; }
@media(max-width:760px) {
 body.halcon-workspace main { padding:26px 18px; }
 body.halcon-workspace .panel-body { padding:20px; }
 body.halcon-workspace .field input,
 body.halcon-workspace .field select { font-size:16px; }
 body.halcon-workspace .metric { padding:18px; }
 body.halcon-workspace .metric-value { font-size:32px; }
}

/* Prospecting, conversations, team and settings share the same readable components. */
body.halcon-workspace .toolbar { background:#111821; border-bottom:1px solid #ffffff12; gap:14px; }
body.halcon-workspace th { background:#1a222d; color:#b7c8d5; font-size:11px; letter-spacing:.07em; }
body.halcon-workspace td { border-bottom-color:#ffffff0d; font-size:14px; line-height:1.65; }
body.halcon-workspace tbody tr:hover { background:#82b7c207; }
body.halcon-workspace .prospect-name { color:#ece8dd; font-size:15px; }
body.halcon-workspace .subtext { color:#a9b6c8; font-size:12px; }
body.halcon-workspace .badge { border-radius:7px; font-size:11px; line-height:1.5; }
body.halcon-workspace .pagination { background:#10161f; border-top-color:#ffffff12; font-size:13px; }
body.halcon-workspace .list-item,body.halcon-workspace .row { border-bottom-color:#ffffff10; }
body.halcon-workspace .list-item p,body.halcon-workspace .row p { font-size:13px; line-height:1.7; }
body.halcon-workspace textarea { background:#0e141d; border-color:#ffffff1b; font-size:15px; line-height:1.7; }
body.halcon-workspace .info-callout,body.halcon-workspace .callout { border-color:#dfbf7b2c; border-left-color:#c4a76e; background:#dfbf7b07; color:#cad1dc; }
body.halcon-workspace .setup-next { background:linear-gradient(110deg,#82b7c20b,transparent),#111923; border-color:#82b7c229; }
body.halcon-workspace .learning-step.active { background:#dfbf7b0c; border-color:#dfbf7b32; box-shadow:inset 2px 0 #dfbf7b; }
body.halcon-workspace .learning-option { border-color:#ffffff1b; background:#111923; font-size:14px; }
body.halcon-workspace .learning-option.selected { border-color:#dfbf7b65; background:#dfbf7b0d; }
body.halcon-workspace .learning-feedback { font-size:14px; line-height:1.75; }
body.halcon-workspace dialog { background:#151c27; border-color:#ffffff26; border-radius:18px; box-shadow:0 28px 100px #0009; }
body.halcon-workspace dialog::backdrop { background:#05080dc9; }
body.halcon-workspace .detail-head,body.halcon-workspace .detail-tabs { border-color:#ffffff14; }
body.halcon-workspace .detail-tab.active { color:#e2c78f; border-color:#d9bd80; }
body.halcon-workspace .message-text,body.halcon-workspace .fact p { font-size:15px; line-height:1.8; }
body.halcon-workspace .empty-state,body.halcon-workspace .empty { background:radial-gradient(ellipse at 50% 0,#82b7c208,transparent 70%); }
body.halcon-workspace .main-footer { border-top:1px solid #ffffff0b; color:#9eacbe; font-size:12px; }
body.halcon-workspace .icon-button { min-width:44px; min-height:44px; }
body.halcon-workspace .button:disabled { box-shadow:none; cursor:default; }
@media(max-width:760px) {
 body.halcon-workspace .sidebar nav { scrollbar-color:#6b614b #11161f; }
 body.halcon-workspace .nav-item { min-height:44px; }
 body.halcon-workspace .nav-item.active { box-shadow:inset 0 -2px #dfbf7b; }
 body.halcon-workspace .prospects-table tr { background:#141c27; border:1px solid #ffffff14; border-radius:13px; margin:12px; padding:18px; width:auto; }
 body.halcon-workspace .prospects-table td { min-width:0; overflow-wrap:anywhere; }
 body.halcon-workspace .prospects-table td:before { color:#a4bbc7; font-size:11px; }
 body.halcon-workspace textarea { font-size:16px; }
 body.halcon-workspace .toolbar { gap:12px; }
}

/* Interaction finish: brief motion on intent; no loops, flashing or layout shifts. */
body.halcon-workspace .button { transition:background-color .22s ease,border-color .22s ease,box-shadow .22s ease,transform .22s ease; }
body.halcon-workspace .button.primary { background:linear-gradient(110deg,#c9aa6b 0%,#efdaa7 55%,#d4b87d 100%); background-size:160% 100%; transition:background-position .35s ease,border-color .22s ease,box-shadow .22s ease,transform .22s ease; }
body.halcon-workspace .panel { transition:border-color .25s ease,box-shadow .25s ease; }
body.halcon-workspace .metric { transition:border-color .25s ease,box-shadow .25s ease,transform .25s ease; overflow:hidden; }
body.halcon-workspace .nav-item { transition:background-color .22s ease,border-color .22s ease,color .22s ease,box-shadow .22s ease; }
body.halcon-workspace .nav-item svg { transition:color .22s ease,transform .22s ease; }
body.halcon-workspace tbody tr { transition:background-color .2s ease; }
body.halcon-workspace .field input,body.halcon-workspace .field select,body.halcon-workspace .field textarea { transition:border-color .2s ease,box-shadow .2s ease,background-color .2s ease; }
body.halcon-workspace .field:focus-within { color:#e9d8b2; }
body.halcon-workspace .field input:focus,body.halcon-workspace .field select:focus,body.halcon-workspace .field textarea:focus { background:#111a24; border-color:#d7bf88; box-shadow:0 0 0 3px #dfbf7b10; }
body.halcon-workspace .detail-tab,body.halcon-workspace .learning-step,body.halcon-workspace summary { transition:color .2s ease,background-color .2s ease,border-color .2s ease; }
body.halcon-workspace .panel-header h2 { color:#ede8dc; font-weight:550; }
body.halcon-workspace .page-heading { border-image:linear-gradient(90deg,#dfbf7b42,#82b7c21c,transparent) 1; }
body.halcon-workspace .metric-label { color:#bdc8d8; letter-spacing:.015em; }
body.halcon-workspace .brand-symbol { box-shadow:0 0 0 4px #dfbf7b04,0 5px 18px #0003; }
body.halcon-workspace .crm-link { text-underline-offset:5px; text-decoration-color:#dfbf7b55; }
@media(hover:hover) and (pointer:fine) {
 body.halcon-workspace .button:hover:not(:disabled) { transform:translateY(-1px); border-color:#dfbf7b77; box-shadow:0 7px 20px #0003; }
 body.halcon-workspace .button.primary:hover:not(:disabled) { background-position:100% 0; box-shadow:0 7px 24px #c2a06720,0 3px 10px #0003; }
 body.halcon-workspace .button.quiet:hover:not(:disabled) { background:#dfbf7b09; color:#eee1c6; }
 body.halcon-workspace .panel:hover { border-color:#b6c7df28; box-shadow:0 14px 34px #0002; }
 body.halcon-workspace .metric:hover { transform:translateY(-3px); border-color:#dfbf7b55; box-shadow:0 12px 26px #0003; }
 body.halcon-workspace .nav-item:hover { background:#ffffff05; color:#ead6af; border-color:#dfbf7b24; }
 body.halcon-workspace .nav-item:hover svg { color:#e2c58d; transform:translateX(2px); }
 body.halcon-workspace tbody tr:hover { background:#82b7c20b; }
 body.halcon-workspace tbody tr:hover .prospect-name { color:#e5c997; }
 body.halcon-workspace .detail-tab:hover,body.halcon-workspace summary:hover { color:#ebd5a4; background:#dfbf7b05; }
 body.halcon-workspace .learning-step:hover { background:#82b7c208; border-color:#82b7c22b; }
 body.halcon-workspace .crm-link:hover { color:#e9d3a0; text-decoration:underline; }
}
body.halcon-workspace .button:active:not(:disabled) { transform:translateY(0); box-shadow:inset 0 2px 5px #0002; }
@media(prefers-reduced-motion:no-preference) {
 body.halcon-workspace #content[aria-busy="false"]>.page-heading,
 body.halcon-workspace #content[aria-busy="false"]>.panel,
 body.halcon-workspace #content[aria-busy="false"]>.metrics,
 body.halcon-workspace #content[aria-busy="false"]>.grid-two { animation:halcon-section-enter .38s cubic-bezier(.2,.7,.3,1) both; }
 body.halcon-workspace #content[aria-busy="false"]>.metrics { animation-delay:.04s; }
 @keyframes halcon-section-enter { from { opacity:.92; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }
}
@media(prefers-reduced-motion:reduce) {
 body.halcon-workspace .button,body.halcon-workspace .panel,body.halcon-workspace .metric,body.halcon-workspace .nav-item,body.halcon-workspace .nav-item svg { transition:none; animation:none; transform:none!important; }
}

body.halcon-workspace .heading-icon { width:22px; height:22px; vertical-align:-4px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; color:#d8bd86; }
body.halcon-workspace .projection-title { display:flex; gap:10px; align-items:center; }
body.halcon-workspace .projection-title:before { content:""; width:21px; height:21px; flex-shrink:0; background:currentColor; mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 20V4M4 20h16M8 15l4-4 3 2 5-7M16 6h4v4' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; color:#92bdc7; }

/* Compact metrics: remove repeated outside/inside spacing, preserve every value and caption. */
body.halcon-workspace .metrics { gap:12px; margin-block:18px; }
body.halcon-workspace .metric { padding:16px 18px; border-radius:12px; }
body.halcon-workspace .metric-label { font-size:12px; line-height:1.5; }
body.halcon-workspace .metric-value { font-size:30px; line-height:1.15; margin:7px 0 5px; letter-spacing:-.035em; }
body.halcon-workspace .metric-context { font-size:12px; line-height:1.5; }
body.halcon-workspace .panel-body>.metrics { margin-block:0; }
body.halcon-workspace .panel-body.stack:has(>.metrics) { gap:18px; padding:20px 22px; }
body.halcon-workspace .panel-body.stack:has(>.metrics)>.field { margin-bottom:0; }
body.halcon-workspace .projection-title { font-size:14px; margin:3px 0 0; font-weight:550; }
body.halcon-workspace .panel-header { min-height:54px; padding:15px 22px; }
body.halcon-workspace .panel { margin-bottom:18px; }
body.halcon-workspace .usage-row,body.halcon-workspace .stat-line { padding-block:10px; }
body.halcon-workspace .metric:hover { transform:translateY(-2px); }
@media(max-width:760px) {
 body.halcon-workspace .metrics { gap:10px; margin-block:16px; }
 body.halcon-workspace .metric { padding:14px; }
 body.halcon-workspace .metric-value { font-size:28px; margin-block:6px 4px; }
 body.halcon-workspace .panel-body.stack:has(>.metrics) { padding:18px; gap:16px; }
 body.halcon-workspace .panel-header { padding:15px 18px; }
}
@media(hover:none) { body.halcon-workspace .metric:hover { transform:none; } }

/* Add-on dialog: real breathing room and a clear action area. */
body.halcon-workspace #upsell-dialog { width:min(520px,calc(100vw - 32px)); max-height:calc(100dvh - 32px); overflow-y:auto; padding:28px; background:radial-gradient(ellipse at 100% 0,#82b7c20c,transparent 65%),#171e29; border-color:#dfbf7b30; }
body.halcon-workspace #upsell-dialog .dialog-heading { align-items:flex-start; gap:20px; margin-bottom:20px; }
body.halcon-workspace #upsell-dialog .eyebrow { margin:0 0 12px; font-size:10px; line-height:1.5; letter-spacing:.14em; }
body.halcon-workspace #upsell-title { display:flex; gap:10px; align-items:center; font-size:24px; line-height:1.3; letter-spacing:-.03em; font-weight:550; }
body.halcon-workspace #upsell-title .heading-icon { flex-shrink:0; }
body.halcon-workspace #upsell-dialog .icon-button { flex-shrink:0; border:1px solid #ffffff1b; border-radius:10px; background:#ffffff03; color:#cbd5e3; }
body.halcon-workspace #upsell-dialog>p { margin:0 0 16px; color:#d1d8e3; font-size:15px; line-height:1.8; }
body.halcon-workspace #upsell-dialog>p.muted { color:#aab8ca; font-size:14px; }
body.halcon-workspace #upsell-dialog>.actions { margin:24px 0 0; padding-top:20px; border-top:1px solid #ffffff12; gap:12px; }
@media(max-width:600px) {
 body.halcon-workspace #upsell-dialog { padding:22px; }
 body.halcon-workspace #upsell-title { font-size:21px; }
 body.halcon-workspace #upsell-dialog>.actions { display:grid; grid-template-columns:1fr 1fr; }
 body.halcon-workspace #upsell-dialog>.actions .button { padding-inline:10px; }
}

/* Pinned sidebar or stable icon rail. Hover expands over the page, never shifts it. */
body.halcon-workspace .sidebar-toggle { display:none; }
body.halcon-workspace .nav-item>.nav-caption { display:block; width:auto; text-align:left; }
@media(min-width:761px) {
 body.halcon-workspace .sidebar { z-index:21; }
 body.halcon-workspace .sidebar-toggle { display:grid; place-items:center; position:absolute; right:7px; top:24px; width:36px; min-width:36px; height:44px; padding:8px; color:#adbacb; background:transparent; border:1px solid transparent; border-radius:9px; cursor:pointer; }
 body.halcon-workspace .sidebar-toggle svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linejoin:round; stroke-linecap:round; }
 body.halcon-workspace .sidebar-toggle:hover { background:#dfbf7b0c; border-color:#dfbf7b30; color:#e0c58e; }
 body.halcon-workspace .sidebar-toggle[aria-pressed="true"] svg { transform:rotate(180deg); }
 body.halcon-workspace .app-shell.sidebar-compact { grid-template-columns:80px minmax(0,1fr); }
 body.halcon-workspace .sidebar-compact .sidebar { width:80px; padding-inline:12px; overflow:hidden; transition:width .22s cubic-bezier(.2,.7,.3,1),box-shadow .22s; }
 body.halcon-workspace .sidebar-compact .brand { padding-inline:5px; }
 body.halcon-workspace .sidebar-compact .sidebar-toggle { position:static; align-self:center; width:44px; min-width:44px; margin-top:12px; flex-shrink:0; }
 body.halcon-workspace .sidebar-compact .sidebar-label { margin-top:18px; }
 body.halcon-workspace .sidebar-compact .brand,body.halcon-workspace .sidebar-compact .nav-item { white-space:nowrap; }
 body.halcon-workspace .sidebar-compact .nav-item { padding-inline:17px; gap:11px; }
 body.halcon-workspace .sidebar-compact .nav-item>span:first-child { flex-shrink:0; }
 body.halcon-workspace .sidebar-compact .sidebar:not(:hover):not(:focus-within) .sidebar-brand-copy,
 body.halcon-workspace .sidebar-compact .sidebar:not(:hover):not(:focus-within) .nav-caption,
 body.halcon-workspace .sidebar-compact .sidebar:not(:hover):not(:focus-within) .nav-lock { display:none; }
 body.halcon-workspace .sidebar-compact .sidebar:not(:hover):not(:focus-within) .sidebar-label { visibility:hidden; }
 body.halcon-workspace .sidebar-compact .sidebar:not(:hover):not(:focus-within) .sidebar-bottom { opacity:0; pointer-events:none; }
 body.halcon-workspace .sidebar-compact .sidebar:hover,
 body.halcon-workspace .sidebar-compact .sidebar:focus-within { width:236px; box-shadow:15px 0 40px #0005; }
 body.halcon-workspace .sidebar-bottom { transition:opacity .15s; }
}
@media(prefers-reduced-motion:reduce) { body.halcon-workspace .sidebar-compact .sidebar { transition:none; } }

/* Balanced type scale: readable labels, restrained headings. */
body.halcon-workspace h1 { font-size:clamp(27px,2.5vw,36px); }
body.halcon-workspace .sidebar-label,body.halcon-workspace .workspace-picker label,body.halcon-workspace .brand small { font-size:11px; line-height:1.5; }
body.halcon-workspace .sidebar-bottom p,body.halcon-workspace .crm-link,body.halcon-workspace .readonly-note,body.halcon-workspace .metric-context { font-size:12px; line-height:1.65; }
body.halcon-workspace .guide-check-row .helper,body.halcon-workspace .learning-step small,body.halcon-workspace .setup-next .eyebrow { font-size:12px; }
body.halcon-workspace .badge { font-size:12px; }
body.halcon-workspace .metric-value { font-size:30px; }
@media(max-width:760px) { body.halcon-workspace h1 { font-size:28px; } body.halcon-workspace .metric-value { font-size:28px; } body.halcon-workspace .topbar-actions .badge { font-size:11px; } }

body.halcon-workspace .brand small { letter-spacing:.08em; }

body.halcon-workspace .nav-item>.nav-caption { font-size:13px; line-height:1.5; font-weight:500; min-width:0; }

body.halcon-workspace .account-trigger { display:inline-flex; align-items:center; gap:8px; }
body.halcon-workspace .account-trigger svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; }
body.halcon-workspace .account-dialog { width:min(520px,calc(100vw - 32px)); padding:26px; max-height:calc(100dvh - 32px); overflow:auto; }
body.halcon-workspace .account-dialog .dialog-heading { margin-bottom:22px; }
body.halcon-workspace .account-dialog h2 { font-size:25px; font-weight:550; }
body.halcon-workspace .account-dialog .eyebrow { margin-bottom:10px; }
body.halcon-workspace .account-details .data-row { grid-template-columns:135px minmax(0,1fr); padding-block:14px; }
body.halcon-workspace .account-details dd { color:#e6dfd0; }
body.halcon-workspace .account-actions { margin-top:24px; display:flex; flex-direction:column; align-items:stretch; gap:10px; }
@media(max-width:760px) { body.halcon-workspace .account-dialog { padding:22px; } body.halcon-workspace .account-details .data-row { grid-template-columns:1fr; gap:5px; } body.halcon-workspace .topbar-actions { max-width:48%; } body.halcon-workspace .account-trigger { order:-1; } }

/* Compact quick start, keeping all original form controls and submit behavior. */
body.halcon-workspace .setup-panel [data-form="quickstart"] { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px 16px; padding:20px 22px; }
body.halcon-workspace .setup-panel [data-form="quickstart"]>p { grid-column:1/-1; margin:0; line-height:1.65; font-size:14px; }
body.halcon-workspace .setup-panel [data-form="quickstart"]>p.helper { font-size:12px; }
body.halcon-workspace .setup-panel [data-form="quickstart"] .field-row { display:contents; }
body.halcon-workspace .setup-panel [data-form="quickstart"] .field { margin:0; gap:7px; }
body.halcon-workspace .setup-panel [data-form="quickstart"]>button { grid-column:1/-1; width:auto; justify-self:start; min-width:180px; }
body.halcon-workspace .setup-panel [data-form="quickstart"]+.panel-body { border-top:1px solid #ffffff10; padding:16px 22px 18px; gap:9px; }
body.halcon-workspace .setup-panel [data-form="quickstart"]+.panel-body h3 { font-size:14px; }
body.halcon-workspace .setup-panel [data-form="quickstart"]+.panel-body .helper { margin:0; }
@media(max-width:1100px) { body.halcon-workspace .setup-panel [data-form="quickstart"] { grid-template-columns:1fr 1fr; } }
@media(max-width:760px) {
 body.halcon-workspace .setup-panel [data-form="quickstart"] { grid-template-columns:1fr; padding:18px; }
 body.halcon-workspace .setup-panel [data-form="quickstart"]>button { justify-self:stretch; }
 body.halcon-workspace .setup-panel [data-form="quickstart"]+.panel-body { padding:16px 18px; }
}

/* Keep the collapse control at identical coordinates in both sidebar modes. */
@media(min-width:761px) {
 body.halcon-workspace .sidebar .sidebar-toggle,body.halcon-workspace .sidebar-compact .sidebar .sidebar-toggle { position:absolute; top:82px; left:18px; right:auto; width:44px; min-width:44px; height:44px; margin:0; }
 body.halcon-workspace .sidebar .sidebar-label,body.halcon-workspace .sidebar-compact .sidebar .sidebar-label { margin-top:76px; }
}


/* Persistent workspace/account access; dialogs remain in the browser top layer. */
body.halcon-workspace .topbar { position:sticky; top:0; z-index:12; flex-shrink:0; background:#10141cf7; border-bottom:1px solid #ffffff14; box-shadow:0 5px 20px #00000012; }
body.halcon-workspace #content,body.halcon-workspace #content form,body.halcon-workspace #personal-email-cycle { scroll-margin-top:110px; }
@media(max-width:760px) { body.halcon-workspace #content,body.halcon-workspace #content form,body.halcon-workspace #personal-email-cycle { scroll-margin-top:155px; } }

/* Operational screens: compact filters, a clear reading order and calmer detail panels. */
body.halcon-workspace [data-form="filters"] { display:grid; grid-template-columns:minmax(160px,.85fr) minmax(210px,1.15fr) auto auto; align-items:end; padding:16px 20px; gap:12px; }
body.halcon-workspace [data-form="filters"] .field { min-width:0; margin:0; gap:6px; font-size:12px; }
body.halcon-workspace [data-form="filters"] .button { min-height:44px; }
body.halcon-workspace .prospects-table td { padding:16px 20px; }
body.halcon-workspace .prospects-table th { padding:13px 20px; }
body.halcon-workspace .prospects-table td:first-child { min-width:210px; }
body.halcon-workspace .prospects-table .prospect-name { display:block; text-align:left; font-size:15px; font-weight:600; line-height:1.5; min-height:32px; padding-block:3px; text-underline-offset:4px; }
body.halcon-workspace .prospects-table .subtext { display:block; font-size:12px; margin-top:3px; line-height:1.6; overflow-wrap:anywhere; }
body.halcon-workspace .prospects-table .score { font-size:15px; font-variant-numeric:tabular-nums; color:#bacbd8; }
body.halcon-workspace .badge.gold { background:#dfbf7b10; border-color:#dfbf7b30; color:#e6c990; }
body.halcon-workspace .badge.blue { background:#8eacdd10; border-color:#8eacdd32; color:#b6c8eb; }
body.halcon-workspace .badge.green { background:#82b7ae10; border-color:#82b7ae30; color:#abd9cf; }
body.halcon-workspace .badge.red { background:#d99b9b0c; border-color:#d99b9b30; color:#edb6b6; }
body.halcon-workspace .pagination { padding:14px 20px; gap:14px; }
body.halcon-workspace .detail-head { padding:22px 26px 18px; background:radial-gradient(ellipse at 100% 0,#82b7c20b,transparent 70%),#151c27; }
body.halcon-workspace .detail-head h2 { font-size:26px; line-height:1.3; font-weight:550; }
body.halcon-workspace .detail-head .eyebrow { font-size:11px; margin-bottom:10px; }
body.halcon-workspace .detail-head .subtext { margin-top:12px; }
body.halcon-workspace .detail-head>.actions { gap:9px; margin-top:16px; }
body.halcon-workspace .detail-head [data-form="discard"] { padding-top:14px; border-top:1px solid #ffffff10; }
body.halcon-workspace .detail-head [data-form="discard"] .field { margin:0; font-size:12px; }
body.halcon-workspace .detail-tabs { background:#111821; gap:18px; }
body.halcon-workspace .detail-tab { white-space:nowrap; min-height:48px; padding-inline:3px; }
body.halcon-workspace .detail-body { padding:22px; background:#101620; }
body.halcon-workspace .detail-body .panel { box-shadow:none; margin-bottom:14px; }
body.halcon-workspace .detail-body .panel-header { min-height:48px; padding:13px 18px; }
body.halcon-workspace .detail-body .panel-body { padding:18px; }
body.halcon-workspace .detail-body .panel-body .panel-body { padding-inline:0; }
body.halcon-workspace .detail-body .info-callout { padding:16px; }
body.halcon-workspace .detail-body .fact { padding:14px 0; }
body.halcon-workspace .detail-body .fact a { font-size:12px; line-height:1.7; }
body.halcon-workspace .timeline-item { padding-bottom:22px; }
body.halcon-workspace .timeline-item p { font-size:14px; line-height:1.75; }
body.halcon-workspace .timeline-item small { font-size:12px; }
body.halcon-workspace .message-editor { min-height:170px!important; }
body.halcon-workspace [data-form="message"]>.actions { gap:10px; }
body.halcon-workspace #content[data-current-view="settings"] .panel-body .field { margin-bottom:14px; }
body.halcon-workspace #content[data-current-view="settings"] .panel-header h2 { line-height:1.5; }
body.halcon-workspace .email-cycle fieldset { padding:18px; background:#101722; border-color:#ffffff16; }
body.halcon-workspace .email-cycle legend { font-size:13px; color:#c9d2df; }
body.halcon-workspace .email-cycle .email-message { padding:18px 22px; }
body.halcon-workspace .email-cycle .email-message summary { font-size:14px; line-height:1.7; }
body.halcon-workspace .email-cycle .email-message pre { font-size:14px; line-height:1.8; }
@media(max-width:1100px) {
 body.halcon-workspace [data-form="filters"] { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
 body.halcon-workspace .prospects-table td { padding-inline:16px; }
}
@media(max-width:760px) {
 body.halcon-workspace [data-form="filters"] { padding:16px; gap:12px; }
 body.halcon-workspace .prospects-table td { padding:0; }
 body.halcon-workspace .prospects-table td:first-child { min-width:0; }
 body.halcon-workspace .prospects-table tr { padding:16px; gap:12px; }
 body.halcon-workspace .prospects-table .prospect-name { font-size:15px; }
 body.halcon-workspace .detail-head { padding:20px 18px 16px; }
 body.halcon-workspace .detail-head h2 { font-size:23px; }
 body.halcon-workspace .detail-body { padding:16px; }
 body.halcon-workspace .detail-tabs { gap:16px; }
 body.halcon-workspace .detail-body .panel-body { padding:16px; }
 body.halcon-workspace .detail-body .panel-body .panel-body { padding-inline:0; }
 body.halcon-workspace .email-cycle .email-message { padding:16px; }
}

/* Summary first: real indicators above setup; estimates on demand. */
body.halcon-workspace .metric { display:grid; grid-template-columns:minmax(0,1fr) auto; align-content:center; align-items:center; gap:3px 14px; padding:12px 16px; }
body.halcon-workspace .metric-label { grid-column:1; grid-row:1; margin:0; }
body.halcon-workspace .metric-context { grid-column:1; grid-row:2; margin:0; font-size:12px; line-height:1.5; }
body.halcon-workspace .metric-value { grid-column:2; grid-row:1 / 3; font-size:27px; margin:0; max-width:150px; overflow-wrap:anywhere; }
body.halcon-workspace .projection-disclosure { border-top:1px solid #ffffff12; }
body.halcon-workspace .projection-disclosure>summary { padding:13px 0 0; font-size:13px; color:#b6cbd4; min-height:44px; }
body.halcon-workspace .projection-disclosure[open]>summary { border-bottom:0; padding-bottom:14px; }
body.halcon-workspace .projection-content { padding-top:4px; }
body.halcon-workspace .projection-content>.metrics { margin:0; }
body.halcon-workspace .projection-content>.field { max-width:380px; margin-bottom:0; }
@media(max-width:760px) {
 body.halcon-workspace .metric { padding:12px; gap:4px 8px; }
 body.halcon-workspace .metric-value { font-size:25px; max-width:90px; }
 body.halcon-workspace .metric-context { font-size:12px; }
}
@media(max-width:400px) {
 body.halcon-workspace .metric { grid-template-columns:1fr; }
 body.halcon-workspace .metric-value { grid-column:1; grid-row:2; margin:2px 0; }
 body.halcon-workspace .metric-context { grid-row:3; }
}

/* A distinct, recognizable doorway to the CRM. Keep its dynamic destination untouched. */
body.halcon-workspace .crm-link { display:flex; align-items:center; gap:10px; min-height:62px; padding:12px 10px; border:1px solid #dfbf7b35; border-radius:12px; background:radial-gradient(ellipse at 0 0,#dfbf7b14,transparent 80%),#141a23; color:#e8d4ad; font-size:12px; line-height:1.5; text-decoration:none; box-shadow:0 4px 16px #0002; transition:border-color .22s,box-shadow .22s,background-color .22s; }
body.halcon-workspace .crm-link:before { content:""; display:block; flex:0 0 30px; width:30px; height:30px; border-radius:8px; border:1px solid #dfbf7b2b; background:#0b0c0a url('/halcon-official.jpg') 49% 29% / 330% auto no-repeat; }
body.halcon-workspace .crm-link>span { margin-left:auto; color:#d4be90; }
@media(hover:hover) and (pointer:fine) { body.halcon-workspace .crm-link:hover { color:#f0dfba; border-color:#dfbf7b80; box-shadow:0 6px 22px #c6a76c12; background-color:#1b212b; text-decoration:none; } }

/* Mobile detail panes reserve room for content even with a tall profile header. */
@media(max-width:760px) {
 body.halcon-workspace .detail-dialog { max-height:calc(100dvh - 16px); overflow:hidden; }
 body.halcon-workspace #detail-content { display:flex; flex-direction:column; max-height:calc(100dvh - 18px); min-height:0; }
 body.halcon-workspace .detail-head { max-height:42dvh; overflow-y:auto; flex-shrink:0; }
 body.halcon-workspace .detail-tabs { flex-shrink:0; }
 body.halcon-workspace .detail-body { flex:1 1 auto; min-height:0; max-height:none; overflow-y:auto; overscroll-behavior-y:contain; padding-bottom:max(18px,env(safe-area-inset-bottom)); }
 body.halcon-workspace .detail-head .icon-button { flex-shrink:0; min-width:44px; }
 body.halcon-workspace .account-dialog,.halcon-workspace .workspace-dialog { max-height:calc(100dvh - 24px); overflow-y:auto; }
 body.halcon-workspace .setup-next .button,body.halcon-workspace .guide-check-row .button { white-space:normal; overflow-wrap:anywhere; max-width:100%; }
}
@media(max-width:420px) {
 body.halcon-workspace .topbar { flex-wrap:wrap; }
 body.halcon-workspace .workspace-picker { flex:1 1 100%; }
 body.halcon-workspace .topbar-actions { width:100%; max-width:none; justify-content:flex-start; gap:8px; }
 body.halcon-workspace [data-form="filters"] { grid-template-columns:minmax(0,1fr); }
 body.halcon-workspace .check-grid { grid-template-columns:minmax(0,1fr); }
 body.halcon-workspace #content,body.halcon-workspace #content form { scroll-margin-top:180px; }
}
