/* Company overview + Bot inbox — Light & Gold on --sh-* tokens. */
#sec-companyoverview > .sec-hdr, #sec-botinbox > .sec-hdr { display: none; }
#sec-companyoverview, #sec-botinbox { color: var(--sh-on-surface); font-family: var(--sh-font); padding-top: 24px; }
.ov-root, .bi-root { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.ov-root .material-symbols-outlined, .bi-root .material-symbols-outlined { font-size: 18px; line-height: 1; vertical-align: middle; flex-shrink: 0; }

.ov-head, .bi-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; background: var(--sh-surface-lowest); box-shadow: var(--sh-shadow); border-radius: 12px; padding: 20px 24px; position: relative; overflow: hidden; }
.ov-head::after, .bi-head::after { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 320px; background: linear-gradient(270deg, rgba(245,158,11,.14), transparent); pointer-events: none; }
.ov-head > *, .bi-head > * { position: relative; z-index: 1; min-width: 0; }
.ov-head h1, .bi-head h1 { margin: 4px 0 0; font-size: 28px; line-height: 36px; font-weight: 700; letter-spacing: -.02em; }
.ov-head p, .bi-head p { margin: 6px 0 0; font-size: 14px; color: var(--sh-on-surface-variant); max-width: 640px; }
.ov-kicker, .bi-kicker { display: flex; gap: 8px; flex-wrap: wrap; font-size: 11px; font-weight: 700; color: var(--sh-on-surface-variant); text-transform: uppercase; letter-spacing: .06em; }
.ov-chip, .bi-chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; background: var(--sh-surface-container); }
.ov-chip i, .bi-chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--sh-primary-container); }

.ov-tabs, .bi-tabs { display: inline-flex; gap: 2px; padding: 3px; background: var(--sh-surface-low); border-radius: 10px; flex-wrap: wrap; align-self: flex-start; }
.ov-tabs button, .bi-tabs button { border: none; background: transparent; font-family: inherit; font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 8px; color: var(--sh-on-surface-variant); cursor: pointer; }
.ov-tabs button:hover, .bi-tabs button:hover { background: var(--sh-surface-container); color: var(--sh-on-surface); }
.ov-tabs button.active, .bi-tabs button.active { background: var(--sh-surface-lowest); color: var(--sh-on-surface); font-weight: 700; box-shadow: var(--sh-shadow); }

.ov-root .btn, .bi-root .btn { display: inline-flex; align-items: center; gap: 6px; border-radius: 8px; font-family: var(--sh-font); font-weight: 600; cursor: pointer; }
.ov-root .btn-sm, .bi-root .btn-sm { font-size: 12px; padding: 7px 12px; }
.ov-root .btn-secondary, .bi-root .btn-secondary { background: var(--sh-surface-lowest); color: var(--sh-on-surface); border: none; box-shadow: var(--sh-shadow); }
.ov-root .btn-secondary:hover, .bi-root .btn-secondary:hover { background: var(--sh-surface-low); }
.ov-root .btn-ghost, .bi-root .btn-ghost { background: transparent; color: var(--sh-on-surface-variant); border: none; }
.ov-root .btn-ghost:hover, .bi-root .btn-ghost:hover { background: var(--sh-surface-low); }
.bi-root .bi-gold { background: var(--sh-primary-container); color: var(--sh-on-primary-container); border: none; font-weight: 700; box-shadow: 0 1px 3px rgba(133,83,0,.2); }
.bi-root .bi-gold:hover { filter: brightness(.97); }
.bi-root .bi-danger:hover { color: var(--sh-error); }

.ov-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ov-tile, .bi-kpi { position: relative; overflow: hidden; background: var(--sh-surface-lowest); box-shadow: var(--sh-shadow); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ov-tile::before, .bi-kpi::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--sh-surface-high); }
.ov-tile.ov-accent::before, .bi-kpi.bi-accent::before { background: var(--sh-primary-container); }
.ov-tile-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.ov-lbl, .bi-lbl { font-size: 11px; font-weight: 700; color: var(--sh-on-surface-variant); text-transform: uppercase; letter-spacing: .06em; }
.ov-ico { width: 32px; height: 32px; border-radius: 8px; background: var(--sh-surface-low); color: var(--sh-primary); display: inline-flex; align-items: center; justify-content: center; }
.ov-val, .bi-val { font-size: 22px; line-height: 28px; font-weight: 800; letter-spacing: -.02em; overflow-wrap: anywhere; }
.ov-note { font-size: 12px; color: var(--sh-on-surface-variant); overflow-wrap: anywhere; }
.ov-sub { font-size: 11px; color: var(--sh-on-surface-variant); }

.ov-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.ov-card { background: var(--sh-surface-lowest); box-shadow: var(--sh-shadow); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ov-card.ov-flush { padding: 0; }
.ov-pad { padding: 20px 20px 0; }
.ov-card-hdr { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ov-card-hdr h2 { margin: 0; font-size: 18px; line-height: 24px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.ov-attn { border-left: 4px solid var(--sh-primary-container); }

.ov-needs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ov-needs a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--sh-surface-low); color: var(--sh-on-surface); text-decoration: none; font-size: 13px; }
.ov-needs a:hover { background: var(--sh-surface-container); }
.ov-n { min-width: 28px; height: 28px; padding: 0 6px; border-radius: 999px; background: var(--sh-primary-container); color: var(--sh-on-primary-container); font-weight: 800; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.ov-t { flex: 1; min-width: 0; }
.ov-clear { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--sh-ok-bg); color: var(--sh-ok); font-weight: 700; font-size: 13px; }

.ov-pipe-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 13px; }
.ov-pipe-val { font-size: 12px; color: var(--sh-on-surface-variant); text-align: right; }
.ov-bar { height: 8px; border-radius: 999px; background: var(--sh-surface-highest); overflow: hidden; }
.ov-bar-fill { height: 100%; border-radius: 999px; background: var(--sh-primary-container); }

.ov-table-wrap { overflow-x: auto; }
.ov-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ov-table th { text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--sh-on-surface-variant); padding: 12px 20px; background: var(--sh-surface-low); white-space: nowrap; }
.ov-table td { padding: 12px 20px; border-top: 1px solid var(--sh-surface-container); }
.ov-table tbody tr:hover { background: var(--sh-surface-low); }
.ov-pill, .bi-pill { display: inline-flex; padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--sh-surface-container); color: var(--sh-on-surface-variant); }
.ov-pill.info { background: #fff4d6; color: var(--sh-secondary); }

.ov-feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; font-size: 13px; }
.ov-feed li { display: flex; gap: 12px; }
.ov-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sh-primary-container); margin-top: 4px; flex-shrink: 0; box-shadow: 0 0 0 3px var(--sh-surface-container); }
.ov-feed-body { min-width: 0; overflow-wrap: anywhere; }
.ov-empty, .bi-empty { padding: 24px; text-align: center; font-size: 13px; color: var(--sh-on-surface-variant); }

.ov-switch { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 13px; }
.ov-switch input { position: absolute; opacity: 0; pointer-events: none; }
.ov-track { width: 38px; height: 22px; border-radius: 999px; background: var(--sh-surface-highest); position: relative; flex-shrink: 0; transition: background .15s; }
.ov-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.ov-switch input:checked + .ov-track { background: var(--sh-primary-container); }
.ov-switch input:checked + .ov-track::after { transform: translateX(16px); }
.ov-switch input:focus-visible + .ov-track { outline: 2px solid var(--sh-primary); outline-offset: 2px; }
.ov-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ov-preview { white-space: pre-wrap; font-size: 12px; background: var(--sh-surface-low); padding: 12px; border-radius: 10px; margin: 0; overflow-wrap: anywhere; }

.bi-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 520px; }
.bi-list { display: flex; flex-direction: column; gap: 16px; }
.bi-card { background: var(--sh-surface-lowest); box-shadow: var(--sh-shadow); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.bi-card-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.bi-title { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bi-meta { font-size: 12px; color: var(--sh-on-surface-variant); }
.bi-thread { display: flex; flex-direction: column; gap: 4px; }
.bi-bubble { white-space: pre-wrap; font-size: 13px; line-height: 20px; padding: 10px 14px; border-radius: 12px; overflow-wrap: anywhere; max-width: 760px; }
.bi-bubble.in { background: var(--sh-surface-low); border-top-left-radius: 4px; }
.bi-bubble.out { background: #fff4d6; border-top-right-radius: 4px; align-self: flex-end; }
.bi-root .bi-edit { width: 100%; box-sizing: border-box; border: 1px solid var(--sh-outline-variant); border-radius: 10px; padding: 10px 12px; font-family: var(--sh-font); font-size: 13px; background: var(--sh-surface-lowest); resize: vertical; }
.bi-root .bi-edit:focus { outline: 2px solid var(--sh-primary-container); border-color: transparent; }
.bi-effects { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--sh-on-surface-variant); }
.bi-effects li { display: flex; align-items: center; gap: 6px; }
.bi-effects .material-symbols-outlined { color: var(--sh-primary); font-size: 16px; }
.bi-error { font-size: 12px; color: var(--sh-error); background: var(--sh-error-container); padding: 8px 12px; border-radius: 8px; }
.bi-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.bi-empty { background: var(--sh-surface-lowest); box-shadow: var(--sh-shadow); border-radius: 12px; padding: 40px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.bi-empty .material-symbols-outlined { font-size: 32px; color: var(--sh-outline); }

@media (max-width: 900px) { .ov-grid { grid-template-columns: minmax(0, 1fr); } .ov-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .ov-tiles, .bi-kpis { grid-template-columns: minmax(0, 1fr); } .ov-pipe-row { grid-template-columns: 90px minmax(0, 1fr); } .ov-pipe-val { grid-column: 1 / -1; text-align: left; } .ov-head, .bi-head { padding: 16px; } .ov-head h1, .bi-head h1 { font-size: 24px; } .ov-table th, .ov-table td { padding: 10px 12px; } }
