/* Shared visual layer for HALCÓN workspaces and its separate business panel. */
:root {
  --bg: #090d13;
  --surface: #111822;
  --surface2: #18212e;
  --raised: #202c3b;
  --line: #2a3544;
  --txt: #f0f3f8;
  --text: #f0f3f8;
  --txt2: #bdc7d5;
  --secondary: #bdc7d5;
  --mut: #98a7ba;
  --muted: #98a7ba;
  --gold: #f5c518;
  --gold-dim: rgba(245, 197, 24, .075);
  --radius: 16px;
  font-size: 16px;
}
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
h1 { font-size: clamp(1.9rem, 2.8vw, 2.55rem); line-height: 1.15; letter-spacing: -.055em; font-weight: 740; }
h2 { font-size: 1.02rem; font-weight: 650; letter-spacing: -.018em; }
h3 { font-size: .9rem; }
.app-shell, .business-shell { grid-template-columns: 236px minmax(0, 1fr); }
.sidebar { padding: 28px 16px 20px; background: #0e141e; }
.brand { padding: 0 10px; gap: 12px; font-size: 1.1rem; letter-spacing: 1px; }
.brand-symbol, .brand-mark { width: 39px; height: 39px; border-radius: 12px; background: var(--gold); box-shadow: 0 3px 12px #0003; }
.brand-symbol svg, .brand-mark svg { width: 29px; height: 29px; }
.brand small { font-size: .6rem; letter-spacing: 1.65px; color: var(--mut); }
.sidebar-label, .nav-label { margin-top: 37px; font-size: .63rem; letter-spacing: 1.7px; }
.nav-item { min-height: 46px; padding: 12px; gap: 11px; font-size: .83rem; margin: 4px 0; border-radius: 10px; }
.nav-item > span { display: flex; align-items: center; justify-content: center; width: 19px; }
.nav-item svg { width: 18px; height: 18px; }
.brand svg, .nav-item svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav-item.active { border-color: #f5c51825; box-shadow: inset 3px 0 var(--gold); background: #f5c5180c; }
.sidebar-bottom p, .sidebar-foot p { font-size: .72rem; line-height: 1.8; }
.crm-link, .sidebar-foot > a { font-size: .73rem; }
.topbar { padding: 17px 32px; min-height: 82px; background: #0e141edb; }
.workspace-picker label, .topbar-kicker { font-size: .66rem; color: var(--mut); }
.workspace-picker select { font-size: .86rem; min-height: 30px; background: transparent; }
.workspace-picker option { background: var(--surface); }
.topbar-title { font-size: .85rem; }
main { max-width: 1510px; padding: 32px; }
.page-heading { margin-bottom: 26px; gap: 20px; align-items: center; }
.page-heading .eyebrow { font-size: .65rem; margin-bottom: 12px; }
.page-heading p:not(.eyebrow) { font-size: .88rem; line-height: 1.7; margin-top: 12px; max-width: 730px; }
.button { min-height: 42px; border-radius: 10px; font-size: .8rem; padding: 11px 15px; }
.button.primary { font-weight: 720; box-shadow: 0 4px 14px #0002; }
.button.primary:hover:not(:disabled) { box-shadow: 0 5px 18px #f5c51815; }
.button.compact, .button.small { min-height: 36px; font-size: .74rem; padding: 8px 11px; }
.button.quiet { background: #ffffff02; }
.badge { border-radius: 7px; font-size: .68rem; padding: 5px 9px; }
.muted { font-size: .85rem; line-height: 1.7; }
.helper, .readonly-note { font-size: .75rem; line-height: 1.7; }
.panel { border-radius: var(--radius); border-color: var(--line); box-shadow: 0 4px 18px #00000012; }
.panel-header, .panel-heading { min-height: 62px; padding: 18px 23px; background: #ffffff01; flex-wrap: wrap; }
.panel-body { padding: 23px; }
.grid-two { grid-template-columns: minmax(0, 1.45fr) minmax(290px, 1fr); gap: 22px; }
.grid-equal { gap: 22px; }
.metrics { gap: 14px; }
.metric { padding: 22px; border-radius: 15px; background: #111822; position: relative; }
.metric-label { font-size: .79rem; }
.metric-value { font-size: 2.2rem; font-weight: 730; letter-spacing: -.05em; margin: 13px 0 8px; }
.metric-context, .metric p:not(.metric-label) { font-size: .72rem; line-height: 1.55; }
.metric.accent { background: #f5c51808; border-color: #f5c51835; }
.field { font-size: .81rem; gap: 9px; margin-bottom: 19px; }
.field input, .field select, .field textarea, .toolbar select, .toolbar input { min-height: 45px; border-radius: 10px; background: #0b111a; color: var(--txt); font-size: .87rem; padding: 11px 13px; }
input::placeholder, textarea::placeholder { color: #8d9cb0; opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); }
.field textarea { min-height: 108px; }
.field-row { gap: 17px; }
.checkbox-field, .check-field { font-size: .8rem; }
.fieldset legend { font-size: .75rem; letter-spacing: .05em; margin-bottom: 16px; }
.toolbar { gap: 12px; padding: 20px 23px; background: #0e151f; }
.toolbar .field { margin-bottom: 0; }
th { font-size: .67rem; letter-spacing: .07em; padding: 15px 23px; color: #a4b3c6; background: #141e2b; }
td { padding: 18px 23px; font-size: .83rem; line-height: 1.5; vertical-align: middle; }
.prospect-name { font-size: .91rem; line-height: 1.5; }
.subtext { font-size: .74rem; margin-top: 6px; }
tbody tr:hover { background: #ffffff05; }
.pagination { padding: 17px 23px; font-size: .77rem; }
.list-item, .row { padding: 19px 23px; }
.list-item strong, .row strong { font-size: .86rem; }
.list-item p, .row p, .job-stats { font-size: .76rem; }
.usage-row, .stat-line { font-size: .81rem; }
.funnel-row { font-size: .8rem; }
.data-row { font-size: .83rem; grid-template-columns: 145px minmax(0, 1fr); }
.info-callout, .callout { background: #f5c51806; border-color: #f5c51825; border-left: 3px solid #cfae38; border-radius: 10px; font-size: .81rem; }
.callout p { font-size: .8rem; }
.empty-state, .empty { padding: 48px 28px; }
.empty-state p, .empty p { font-size: .87rem; line-height: 1.75; max-width: 440px; margin-left: auto; margin-right: auto; }
.empty-icon { width: 55px; height: 55px; border-radius: 16px; }
.main-footer, .footer { padding: 20px 32px; font-size: .7rem; }
.setup-panel { border-color: #f5c51828; background: #111822; }
.setup-panel .panel-header { display: none; }
.setup-panel .panel-body { padding: 23px; }
.guide-intro { align-items: center; }
.guide-intro h3 { font-size: 1.15rem; letter-spacing: -.025em; }
.setup-progress { display: flex; gap: 13px; align-items: center; margin: 17px 0 21px; }
.setup-progress progress { flex: 1; }
.setup-progress span { color: var(--mut); font-size: .76rem; white-space: nowrap; }
.setup-next { display: flex; align-items: center; justify-content: space-between; gap: 18px; background: #0c131d; border: 1px solid var(--line); padding: 17px 19px; border-radius: 12px; }
.setup-next h3 { font-size: .88rem; margin-top: 6px; }
.setup-next .eyebrow { margin: 0; font-size: .6rem; }
.setup-details { margin-top: 14px; }
.setup-details > summary, .help-disclosure > summary { padding: 11px 0; border: 0; color: var(--txt2); font-size: .78rem; }
.setup-details[open] > summary, .help-disclosure[open] > summary { border: 0; }
.setup-details .guide-check-row { gap: 12px; padding: 16px 0; }
.guide-check-row h3 { font-size: .85rem; }
.guide-check-row .helper { font-size: .72rem; }
.help-disclosure { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 5px; }
.help-disclosure > .helper { margin: 8px 0 14px; }
.learning-layout { grid-template-columns: minmax(260px, .7fr) minmax(0, 1.5fr); gap: 22px; }
.learning-step { padding: 14px 12px; border-radius: 11px; min-height: 62px; }
.learning-step strong { font-size: .84rem; }
.learning-step small { font-size: .72rem; }
.learning-step.active { border-color: #f5c51830; box-shadow: inset 3px 0 var(--gold); }
.learning-body > h2 { font-size: 1.5rem; line-height: 1.3; letter-spacing: -.025em; }
.learning-points { font-size: .89rem; line-height: 1.85; }
.learning-option { min-height: 48px; font-size: .84rem; padding: 14px 16px; border-radius: 10px; }
.learning-quiz legend, .learning-feedback { font-size: .83rem; }
.detail-dialog { border-radius: 19px; }
.detail-head h2 { font-size: 1.55rem; letter-spacing: -.03em; }
.detail-body .message-text, .fact p { font-size: .89rem; }
.detail-tab { font-size: .84rem; min-height: 49px; }
.auth-screen { max-width: 510px; margin: 42px auto; }
.auth-screen .page-heading h1 { font-size: 2rem; }
.auth-screen .panel { padding: 4px; }
.icon-button { width: 40px; height: 40px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (min-width: 1500px) {
  main { padding: 40px 44px; }
  .topbar { padding-left: 44px; padding-right: 44px; }
}
@media (max-width: 1200px) {
  .grid-two { grid-template-columns: 1fr; }
  .page-heading { align-items: flex-start; }
}
@media (max-width: 1100px) {
  .app-shell, .business-shell { grid-template-columns: 210px minmax(0, 1fr); }
  .sidebar { padding-left: 12px; padding-right: 12px; }
  .nav-item { font-size: .78rem; }
  main { padding: 28px 24px; }
  .topbar { padding: 17px 24px; }
  .metric { padding: 18px; }
  .metric-value { font-size: 1.9rem; }
  .learning-layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .app-shell, .business-shell { display: block; }
  .sidebar { height: auto; position: static; padding: 18px 16px 0; }
  .brand { padding: 0 3px; }
  .brand-symbol, .brand-mark { width: 34px; height: 34px; }
  .brand-symbol svg, .brand-mark svg { width: 26px; height: 26px; }
  .sidebar nav { margin-top: 16px; gap: 6px; scrollbar-width: thin; }
  .nav-item { min-height: 43px; margin-bottom: 12px; padding: 10px 12px; font-size: .77rem; gap: 8px; }
  .nav-item.active { box-shadow: inset 0 -2px var(--gold); }
  .nav-item > span { width: 17px; }
  .nav-item svg { width: 17px; height: 17px; }
  .topbar { padding: 14px 18px; min-height: 80px; align-items: center; gap: 10px; }
  .workspace-picker { flex: 1; }
  .workspace-picker select { max-width: 100%; font-size: .8rem; min-width: 0; }
  .topbar-actions { max-width: 42%; }
  .topbar-actions .button { font-size: .72rem; }
  .topbar-actions .badge { font-size: .65rem; }
  main { padding: 26px 18px; }
  h1 { font-size: 1.95rem; }
  .page-heading { margin-bottom: 23px; }
  .page-heading p:not(.eyebrow) { font-size: .84rem; }
  .page-heading > .actions { width: 100%; }
  .panel-header, .panel-heading, .panel-body, .setup-panel .panel-body { padding: 19px; }
  .grid-equal, .grid-two { grid-template-columns: 1fr; gap: 0; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .metric { padding: 16px; }
  .metric-label { font-size: .74rem; }
  .metric-value { font-size: 1.8rem; }
  .metric-context, .metric p:not(.metric-label) { font-size: .68rem; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .toolbar { padding: 17px; }
  .toolbar .field { min-width: 100px; flex-basis: 42%; }
  .toolbar .button { flex: 1; }
  .setup-next { align-items: flex-start; flex-direction: column; gap: 13px; padding: 16px; }
  .setup-next .button { width: 100%; }
  .guide-intro { flex-direction: column; align-items: flex-start; gap: 13px; }
  .guide-intro > .button { width: auto; }
  .setup-progress { margin-bottom: 18px; }
  .guide-check-row { grid-template-columns: 27px minmax(0, 1fr); }
  .guide-check-row > .button { grid-column: 2; justify-self: start; }
  .prospects-table, .prospects-table tbody { display: block; width: 100%; }
  .prospects-table thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .prospects-table tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 17px; gap: 14px 10px; border-bottom: 1px solid var(--line); }
  .prospects-table td { display: flex; flex-direction: column; align-items: flex-start; border: 0; padding: 0; max-width: none; min-width: 0; gap: 5px; font-size: .81rem; }
  .prospects-table td::before { content: attr(data-label); color: var(--mut); font-size: .68rem; font-weight: 500; }
  .prospects-table td:first-child, .prospects-table td:last-child { grid-column: 1 / -1; }
  .prospects-table td:first-child::before, .prospects-table td:last-child::before { display: none; }
  .prospects-table td:first-child { padding-bottom: 3px; }
  .prospects-table td:last-child .button { width: 100%; }
  .prospects-table .badge { align-self: flex-start; }
  .prospects-table .subtext { margin: 0; }
  .prospects-table td:nth-child(4) { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 9px; }
  .pagination { padding: 17px; }
  .pagination > .actions { width: 100%; }
  .pagination > .actions > .button { flex: 1; }
  .learning-menu { grid-template-columns: 1fr; }
  .learning-points { font-size: .85rem; }
  .data-row { grid-template-columns: 95px minmax(0, 1fr); gap: 12px; }
  .main-footer, .footer { padding: 19px 18px; flex-direction: column; }
  .auth-screen { margin: 12px auto; }
  .auth-screen .page-heading h1 { font-size: 1.8rem; }
  .detail-tabs { padding: 0 17px; }
  .detail-head, .detail-body { padding: 20px; }
  .detail-head .actions { align-items: stretch; }
  .detail-head .actions .button { flex: 1 1 130px; }
}
@media (max-width: 380px) {
  main { padding-left: 14px; padding-right: 14px; }
  .topbar { padding-left: 14px; padding-right: 14px; }
  .topbar-actions { max-width: 39%; }
  .topbar-actions .button { padding: 8px; }
  .metric { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
