:root { color-scheme: light; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #172033; background: #eef1f5; }
* { box-sizing: border-box; }
body { min-height: 100vh; margin: 0; min-width: 0; background: #eef1f5; }
button, input { font: inherit; }
.app-shell { max-width: 1440px; margin: 0 auto; padding: 28px; }
.app-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
h1, h2, h3, p { margin: 0; }
h1 { margin-top: 3px; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.03em; }
h2 { font-size: 19px; }
.eyebrow { color: #6f7d96; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.status-dot { color: #334155; background: #e2e8f0; border: 1px solid #cbd5e1; border-radius: 999px; padding: 8px 12px; font-size: 13px; font-weight: 700; }
.workspace { display: grid; grid-template-columns: minmax(300px, .85fr) minmax(420px, 1.6fr); gap: 16px; min-height: 620px; }
.panel { min-width: 0; overflow: hidden; border: 1px solid #dde4ef; border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgba(29, 46, 75, .06); }
.panel-heading { min-height: 77px; padding: 20px 22px 15px; border-bottom: 1px solid #edf0f5; }
.panel-heading p { margin-top: 5px; color: #78859b; font-size: 13px; }
.search { display: block; padding: 14px 16px; }
.search input { width: 100%; padding: 11px 13px; border: 1px solid #dbe2ec; border-radius: 10px; background: #f8fafc; color: inherit; outline: none; }
.search input:focus { border-color: #2f78ed; box-shadow: 0 0 0 3px rgba(47, 120, 237, .12); }
.company-list { max-height: 500px; margin: 0; padding: 0 10px 12px; overflow-y: auto; list-style: none; }
.company-row { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 10px; border: 0; border-radius: 10px; padding: 13px 12px; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.company-row:hover { background: #f4f7fb; }
.company-row.selected { background: #eaf2ff; box-shadow: inset 3px 0 #2f78ed; }
.company-main { display: grid; min-width: 0; gap: 4px; }
.company-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.company-main small, .company-aggregate { color: #78859b; font-size: 12px; }
.company-aggregate { flex: none; text-align: right; }
.state { display: grid; min-height: 300px; place-content: center; justify-items: center; gap: 10px; padding: 30px; color: #6f7d96; text-align: center; }
.state[hidden] { display: none; }
.state h3 { color: #28344a; font-size: 17px; }
.spinner { width: 25px; height: 25px; border: 3px solid #dae5f5; border-top-color: #2f78ed; border-radius: 50%; animation: spin .8s linear infinite; }
.empty-icon { display: grid; width: 45px; height: 45px; place-items: center; border-radius: 14px; background: #edf3fc; color: #2f78ed; font-size: 22px; }
.empty-icon.error { background: #fff0ef; color: #cf4b42; }
.retry { border: 0; border-radius: 9px; padding: 9px 14px; background: #236fe2; color: #fff; cursor: pointer; }
.deals-content { padding: 16px; }
.deal-list { display: grid; margin: 0; padding: 0; gap: 10px; list-style: none; }
.deal-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 7px 14px; padding: 16px; border: 1px solid #e5eaf2; border-radius: 12px; background: #fbfcfe; color: inherit; text-decoration: none; cursor: pointer; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.deal-card:hover { border-color: #dc2626; box-shadow: 0 8px 22px rgba(127, 29, 29, .16); transform: translateY(-1px); }
.deal-card:focus-visible { outline: 3px solid rgba(220, 38, 38, .35); outline-offset: 2px; }
.deal-card strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deal-card small { grid-column: 1 / -1; color: #78859b; }
.deal-stage { width: fit-content; border-radius: 999px; padding: 4px 8px; background: #edf3fc; color: #315f9f; font-size: 12px; }
.deal-amount { grid-column: 2; grid-row: 2; font-weight: 700; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 760px) { .app-shell { padding: 16px; } .app-header { align-items: flex-start; } .status-dot { display: none; } .workspace { grid-template-columns: 1fr; min-height: 0; } .company-list { max-height: 380px; } .deals-panel { min-height: 360px; } }
