:root {
  --primary: #14284b; --accent: #c9a227; --bg: #f4f6f9; --card: #fff; --line: #dfe4ec; --text: #1c2636;
  --muted: #647086; --danger: #b3261e; --ok: #1d7a46; --warn: #a86a00; --radius: 8px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 14px/1.45 "Segoe UI", system-ui, -apple-system, Arial, sans-serif; color: var(--text); background: var(--bg); }
a { color: #1a56a8; text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 22px; margin: 0; }
h2 { font-size: 16px; margin: 0 0 10px; }
h3 { font-size: 13px; margin: 0 0 8px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
button, input, select, textarea { font: inherit; color: inherit; }

.shell { display: grid; grid-template-columns: 216px 1fr; min-height: 100vh; }
.side { background: var(--primary); color: #e7ecf5; padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 14px; color: #fff; border-bottom: 1px solid rgba(255,255,255,.14); margin-bottom: 8px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-logo { width: 52px; height: 52px; object-fit: contain; flex: none; filter: drop-shadow(0 2px 4px rgba(0,0,0,.35)); }
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.1; }
.brand small { display: block; font-weight: 400; color: #9fb0cb; font-size: 11px; margin-top: 4px; letter-spacing: .3px; }
/* The company name, lettered like the logo: a short first word ("CAF") large in serif, the rest in gold capitals. */
.bn-main { font-family: Georgia, 'Times New Roman', serif; font-weight: 700; font-size: 24px; letter-spacing: 2.5px; color: #fff; }
.bn-main.long { font-size: 16px; letter-spacing: .4px; }
.bn-rest { font-family: Georgia, 'Times New Roman', serif; text-transform: uppercase; font-size: 10px; letter-spacing: 1.1px; color: var(--accent); margin-top: 3px; font-weight: 700; white-space: nowrap; }
/* Logo and name on white pages (log in, claim form, signing page). */
.brand-light { display: flex; flex-direction: column; align-items: center; text-align: center; margin: 0 0 18px; }
.brand-light img { height: 118px; max-width: 100%; object-fit: contain; }
.brand-light .bn-main { color: var(--primary); }
.brand-light .bn-rest { color: #9a7413; }
.nav { display: flex; align-items: center; justify-content: space-between; color: #dbe3f0; padding: 9px 10px; border-radius: 6px; }
.nav:hover { background: rgba(255,255,255,.09); text-decoration: none; color: #fff; }
.nav.on { background: rgba(255,255,255,.14); color: #fff; box-shadow: inset 3px 0 0 var(--accent); }
/* Saved reports listed under Reports */
.nav.sub { padding: 5px 10px 5px 24px; font-size: 13px; color: #b9c6db; }
.nav.sub::before { content: '›'; margin-right: 6px; opacity: .6; }
.nav.sub { justify-content: flex-start; }
.report-cond { display: grid; grid-template-columns: minmax(160px, 1.2fr) minmax(150px, 1fr) minmax(140px, 1fr) auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.report-cols { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.chip { display: inline-flex; align-items: center; gap: 4px; background: #eef2f8; border-radius: 14px; padding: 3px 4px 3px 10px; font-size: 13px; }
.chip button { border: 0; background: transparent; cursor: pointer; padding: 0 4px; font-size: 13px; color: #44516a; }
/* Document viewer (documents open inside the program) */
.dv { position: fixed; inset: 0; z-index: 1000; background: #1d2433; display: flex; flex-direction: column; color: #e8edf5; }
.dv-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 14px; background: var(--primary); border-bottom: 3px solid var(--accent); }
.dv-left { min-width: 0; display: flex; align-items: baseline; gap: 12px; }
.dv-title { font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55vw; }
.dv-count { color: #b8c3d6; font-size: 12px; white-space: nowrap; }
.dv-tools { display: flex; gap: 6px; flex: none; }
.dv-btn { min-width: 34px; height: 32px; border-radius: 6px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; font-size: 18px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; padding: 0 8px; }
.dv-btn:hover { background: rgba(255,255,255,.18); text-decoration: none; }
.dv-btn.wide { font-size: 13px; font-weight: 600; padding: 0 12px; }
.dv-btn.gold { background: var(--accent); color: #1c1600; border-color: var(--accent); }
.dv-body { flex: 1; overflow: auto; outline: none; padding: 20px; }
.dv-center { display: flex; justify-content: center; align-items: flex-start; min-height: 100%; }
.dv-img { box-shadow: 0 4px 24px rgba(0,0,0,.45); background: #fff; user-select: none; -webkit-user-drag: none; }
.dv-pages { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.dv-page { background: #fff; box-shadow: 0 4px 24px rgba(0,0,0,.45); }
.dv-pageno { color: #98a3b8; font-size: 11px; margin-bottom: 14px; }
.dv-text { background: #fff; color: #1c2636; padding: 24px; max-width: 1000px; margin: 0 auto; white-space: pre-wrap; border-radius: 4px; }
.dv-msg { max-width: 520px; margin: 60px auto; text-align: center; color: #dbe3f0; font-size: 15px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.doc-link { background: none; border: 0; padding: 0; color: #1d5bbf; cursor: pointer; text-align: left; font: inherit; }
.doc-link:hover { text-decoration: underline; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 700px) { .grid2 { grid-template-columns: 1fr; } }
.report-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.report-card { display: block; color: inherit; }
.report-card:hover { text-decoration: none; box-shadow: 0 0 0 2px var(--accent); }
.report-card .n { font-size: 26px; font-weight: 700; color: var(--primary); }
@media (max-width: 700px) { .report-cond { grid-template-columns: 1fr; } }
.nav .count { background: var(--accent); color: #1c1600; border-radius: 10px; padding: 0 7px; font-size: 12px; font-weight: 600; }
.side .spacer { flex: 1; }
/* All activity timeline (contact, deal and company pages) */
.act-bar { display: flex; flex-direction: column; gap: 10px; }
.act-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.act-chip { border: 1px solid #cfd8e6; background: #fff; color: #3b4a61; border-radius: 16px; padding: 4px 11px; font: inherit; font-size: 13px; cursor: pointer; }
.act-chip.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.act-chip .count { opacity: .75; }
.act-month { font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: #6b7a90; margin: 16px 2px 6px; }
.act-item { display: flex; gap: 12px; background: #fff; border: 1px solid #e3e8f0; border-radius: 8px; padding: 11px 13px; margin-bottom: 8px; }
.act-item.click { cursor: pointer; }
.act-item.click:hover { border-color: #b9c7dc; box-shadow: 0 1px 4px rgba(20,40,75,.08); }
.act-item.late { border-color: #e7b3ad; background: #fff7f6; }
.late-tag { color: #b3261e; }
.act-icon { flex: none; width: 32px; height: 32px; border-radius: 50%; background: #eef2f9; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.act-email .act-icon { background: #e8f1fd; } .act-task .act-icon { background: #e9f6ee; } .act-call .act-icon { background: #fdf3e2; }
.act-meeting .act-icon { background: #f1ecfb; } .act-file .act-icon { background: #f2f4f7; } .act-evaluation .act-icon { background: #fff4d6; }
.act-main { flex: 1; min-width: 0; }
.act-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.act-type { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--primary); }
.act-head b { font-size: 14px; overflow-wrap: anywhere; }
.act-when { margin-left: auto; font-size: 12px; color: #6b7a90; white-space: nowrap; }
.act-line { font-size: 12px; color: #5b6b84; margin-top: 2px; }
.act-body { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 6px; font-size: 14px; line-height: 1.45; }
.act-body.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* Claim # search at the top of the left menu */
.qs { position: relative; margin: 0 2px 10px; }
.qs-input { width: 100%; box-sizing: border-box; padding: 9px 10px 9px 32px; border-radius: 7px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23c9d4e6' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 10px center; color: #fff; font: inherit; font-size: 14px; }
.qs-input::placeholder { color: #b9c6db; }
.qs-input:focus { outline: none; border-color: var(--accent); background-color: rgba(255,255,255,.16); box-shadow: 0 0 0 2px rgba(233,180,44,.25); }
.qs-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: #fff; color: #1b2433; border-radius: 8px; box-shadow: 0 10px 28px rgba(0,0,0,.35); z-index: 50; max-height: 60vh; overflow-y: auto; padding: 4px; }
.qs-item { padding: 7px 9px; border-radius: 6px; cursor: pointer; }
.qs-item.on, .qs-item:hover { background: #eef2f9; box-shadow: inset 3px 0 0 var(--accent); }
.qs-top { display: flex; justify-content: space-between; gap: 6px; align-items: baseline; }
.qs-top b { color: var(--primary); font-size: 14px; }
.qs-status { font-size: 11px; color: #5b6b84; white-space: nowrap; }
.qs-name { font-size: 13px; }
.qs-sub { font-size: 11px; color: #6b7a90; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qs-empty { padding: 9px; font-size: 13px; color: #6b7a90; }
.side .who { font-size: 12px; padding: 10px; color: #b8c3d6; border-top: 1px solid rgba(255,255,255,.14); margin-top: 8px; }
.side .who b { display: block; color: #fff; font-size: 13px; }
.main { padding: 20px 24px 60px; min-width: 0; }
.head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.head .sub { color: var(--muted); margin-top: 2px; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.grow { flex: 1; }

.btn { background: #fff; border: 1px solid #c3ccd9; border-radius: 6px; padding: 7px 13px; cursor: pointer; font-weight: 500; }
.btn:hover { background: #f0f3f8; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { filter: brightness(1.2); }
.btn.gold { background: var(--accent); border-color: var(--accent); color: #1c1600; }
.btn.danger { color: var(--danger); border-color: #e3b6b3; }
.btn.danger:hover { background: #fdf0ef; }
.btn.small { padding: 3px 9px; font-size: 13px; }
.btn.link { border: 0; background: none; color: #1a56a8; padding: 2px 4px; }
.btn:disabled { opacity: .55; cursor: default; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 14px; }
.input, select.input, textarea.input { width: 100%; border: 1px solid #c3ccd9; border-radius: 6px; padding: 7px 9px; background: #fff; }
.input:focus { outline: 2px solid #8fb2e6; outline-offset: 0; border-color: #6d97d6; }
textarea.input { min-height: 80px; resize: vertical; }
label.f { display: block; margin-bottom: 11px; }
label.f > span, .flabel { display: block; font-size: 12.5px; font-weight: 600; color: #39465a; margin-bottom: 3px; }
.req { color: var(--danger); }
.check { display: flex; align-items: center; gap: 7px; margin: 4px 0; font-weight: 400; }

table.t { width: 100%; border-collapse: collapse; background: #fff; }
table.t th { text-align: left; font-size: 12px; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #fafbfd; }
table.t th.sort { cursor: pointer; }
table.t td { padding: 8px 10px; border-bottom: 1px solid #eef1f5; vertical-align: top; }
table.t tr.click { cursor: pointer; }
table.t tr.click:hover td { background: #f6f8fc; }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.tablewrap table.t tr:last-child td { border-bottom: 0; }
.money { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.empty { padding: 28px; text-align: center; color: var(--muted); }

.pill { display: inline-block; padding: 1px 9px; border-radius: 10px; font-size: 12px; font-weight: 600; background: #e8ecf3; color: #3b4a60; white-space: nowrap; }
.pill.green { background: #e0f3e8; color: var(--ok); }
.pill.red { background: #fbe6e4; color: var(--danger); }
.pill.amber { background: #fdf1d8; color: var(--warn); }
.pill.blue { background: #e2ecfa; color: #1a56a8; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 15px; color: inherit; }
.stat:hover { border-color: #9db4d6; text-decoration: none; }
.stat b { display: block; font-size: 25px; line-height: 1.2; color: var(--primary); }
.stat span { color: var(--muted); font-size: 12.5px; }

.detail { display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); gap: 14px; align-items: start; }
.prop { margin-bottom: 9px; }
.prop .k { font-size: 12px; color: var(--muted); }
.prop .v { overflow-wrap: anywhere; white-space: pre-wrap; }
.prop .v.editable { cursor: pointer; border-radius: 6px; margin: 0 -6px; padding: 2px 6px; position: relative; }
.prop .v.editable:hover, .prop .v.editable:focus-visible { background: rgba(37, 99, 235, .07); outline: none; box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .25); }
.prop .v.editable .edit-pencil { opacity: 0; margin-left: 6px; font-size: 12px; color: var(--muted); }
.prop .v.editable:hover .edit-pencil { opacity: 1; }
.prop .v.editing { cursor: default; background: none; box-shadow: none; white-space: normal; }
.inline-edit .f { margin: 0; }
.inline-edit .f > span { display: none; }
.inline-btns { gap: 6px; margin-top: 6px; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 14px; flex-wrap: wrap; }
.tab { padding: 8px 13px; cursor: pointer; border: 0; background: none; border-bottom: 2px solid transparent; color: var(--muted); font-weight: 500; }
.tab.on { color: var(--primary); border-bottom-color: var(--accent); }
.tab .count { color: var(--muted); font-weight: 400; margin-left: 3px; }
.tl { border-left: 2px solid var(--line); padding: 2px 0 12px 12px; margin-left: 4px; }
.tl .meta { font-size: 12px; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tl .body { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 3px; }

.vis { border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px; background: #fafbfd; }
.vis summary { cursor: pointer; font-size: 13px; color: #39465a; }
.vis .opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0 10px; margin-top: 6px; }

.items-editor { overflow-x: auto; }
.items-editor table { border-collapse: collapse; width: 100%; min-width: 760px; }
.items-editor th { font-size: 11.5px; text-align: left; color: var(--muted); padding: 2px 4px; }
.items-editor td { padding: 2px; }
.items-editor .input { padding: 5px 6px; min-width: 76px; }

.modal-back { position: fixed; inset: 0; background: rgba(13, 24, 44, .45); display: flex; align-items: flex-start; justify-content: center; padding: 5vh 16px; overflow-y: auto; z-index: 50; }
.modal { background: #fff; border-radius: 10px; width: 100%; max-width: 620px; padding: 18px 20px; box-shadow: 0 18px 50px rgba(0,0,0,.25); }
.modal.wide { max-width: 1040px; }
.modal .foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; position: sticky; bottom: 0; background: #fff; padding-top: 8px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
#toasts { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: flex; flex-direction: column; gap: 8px; }
.toast { background: #1b2a42; color: #fff; padding: 10px 14px; border-radius: 7px; max-width: 420px; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.toast.err { background: var(--danger); }

.auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 30%, #1a3a72 0%, var(--primary) 60%); padding: 20px; }
.auth .card { border-top: 4px solid var(--accent); }
.auth .card { width: 100%; max-width: 390px; padding: 26px; margin: 0; }
.auth h1 { color: var(--primary); text-align: center; font-size: 20px; }
.auth .sub { color: var(--muted); margin: 3px 0 18px; text-align: center; }
.err { color: var(--danger); margin-bottom: 10px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.inbox { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 14px; align-items: start; }
.mail { padding: 10px 12px; border-bottom: 1px solid #eef1f5; cursor: pointer; }
.mail:hover { background: #f6f8fc; }
.mail.on { background: #eaf0fa; box-shadow: inset 3px 0 0 var(--accent); }
.mail .s { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail .p { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail .p.mail-subject { color: var(--text, #1f2937); font-size: 13px; }
.mailframe { width: 100%; min-height: 120px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.mailtext { white-space: pre-wrap; overflow-wrap: anywhere; border: 1px solid var(--line); border-radius: 6px; padding: 12px; background: #fff; max-height: 520px; overflow-y: auto; }

.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(205px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 8px; }
.col { background: #e9edf3; border-radius: var(--radius); padding: 8px; min-height: 240px; }
.col.over { outline: 2px dashed var(--accent); }
.col h4 { margin: 2px 4px 8px; font-size: 12.5px; color: #39465a; }
.dealcard { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; margin-bottom: 7px; cursor: grab; }
.dealcard .a { font-weight: 600; color: var(--primary); }

.q { border: 1px solid var(--line); border-radius: 6px; padding: 9px 11px; margin-bottom: 7px; background: #fff; }
.q.heading { background: #f1f4f9; }
.code { font-family: Consolas, monospace; font-size: 12px; background: #f4f6f9; border: 1px solid var(--line); border-radius: 6px; padding: 8px; word-break: break-all; white-space: pre-wrap; width: 100%; min-height: 62px; }
.perm td, .perm th { text-align: center; }
.perm td:first-child, .perm th:first-child { text-align: left; }
.evalnum { display: flex; justify-content: flex-end; gap: 24px; padding: 6px 10px; }
.evalnum.total { font-size: 17px; font-weight: 700; color: var(--primary); border-top: 2px solid var(--primary); }

.chart { width: 100%; height: auto; display: block; }
.chart-legend { display: flex; gap: 14px; font-size: 12.5px; color: #39465a; margin-bottom: 4px; }
.chart-swatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; }
.chart-tip { position: fixed; display: none; z-index: 80; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 6px 9px; font-size: 12.5px; box-shadow: 0 4px 14px rgba(0,0,0,.14); pointer-events: none; max-width: 280px; }
.chart-tip-h { font-weight: 600; }
.rank-row { display: grid; grid-template-columns: minmax(90px, 34%) 1fr 74px; align-items: center; gap: 8px; padding: 3px 0; }
.rank-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.rank-track { height: 14px; }
.rank-bar { height: 14px; border-radius: 0 4px 4px 0; }
.rank-val { text-align: right; font-size: 13px; font-variant-numeric: tabular-nums; }
.table-view { margin-bottom: 14px; }
.table-view summary { cursor: pointer; color: #1a56a8; margin-bottom: 8px; }
.calc-flags { background: #fff9e8; border: 1px solid #e4c777; border-radius: 6px; padding: 8px 12px; margin: 10px 0; }

@media (max-width: 880px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; }
  .side .brand { width: 100%; padding-bottom: 8px; }
  .brand-logo { width: 40px; height: 40px; }
  .bn-main { font-size: 19px; }
  .side .spacer { display: none; }
  .side .who { width: 100%; }
  .main { padding: 14px; }
  .detail, .inbox, .split, .two { grid-template-columns: 1fr; }
}

/* View as: the bar across the top while seeing the program as another login */
.viewas-bar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 16px; background: #f5c542; color: #1b2433; font-size: 14px; min-height: 42px; box-sizing: border-box; }
.viewas-bar .viewas-note { color: #4a3f12; }
.shell.viewing .side { top: 42px; height: calc(100vh - 42px); }


/* Home page charts (public/js/home.js): thin marks, recessive grid, one hue per single series */
.home-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 14px; margin-top: 4px; }
.home-grid .card { margin-bottom: 0; }
.home-card.wide { grid-column: 1 / -1; }
.home-card-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.home-card-h h2 { margin: 0; font-size: 15px; }
svg.viz { width: 100%; height: auto; max-height: 280px; display: block; overflow: visible; }
.viz-axis { font-size: 11px; fill: #898781; font-variant-numeric: tabular-nums; }
.viz-val { font-size: 11px; font-weight: 600; fill: #52514e; }
.viz-hit { cursor: default; outline: none; }
.viz-hit:hover .viz-mark, .viz-hit:focus .viz-mark { filter: brightness(0.88); }
.viz-tip { position: fixed; z-index: 9999; display: none; pointer-events: none; background: #fff; border: 1px solid rgba(11,11,11,0.10); border-radius: 6px; box-shadow: 0 4px 14px rgba(0,0,0,0.12); padding: 6px 10px; font-size: 12px; }
.viz-tip-t { color: #52514e; }
.viz-tip-v { color: #0b0b0b; font-weight: 600; }
.viz-bars { display: flex; flex-direction: column; gap: 6px; }
.viz-row { display: grid; grid-template-columns: minmax(110px, 38%) 1fr 44px; align-items: center; gap: 10px; color: inherit; text-decoration: none; padding: 2px 4px; border-radius: 4px; }
a.viz-row:hover { background: #f4f6f9; }
.viz-row-l { font-size: 13px; color: #1c2636; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viz-row-track { height: 16px; display: flex; align-items: center; }
.viz-row-bar { height: 16px; background: #2a78d6; border-radius: 0 4px 4px 0; }
.viz-row-v { font-size: 12px; color: #52514e; text-align: right; font-variant-numeric: tabular-nums; }
.viz-hero { margin-bottom: 10px; }
.viz-hero-n { font-size: 34px; font-weight: 700; color: var(--primary); }
.viz-seg { display: flex; gap: 2px; height: 28px; }
.viz-seg-part { display: flex; align-items: center; padding-left: 8px; border-radius: 4px; font-size: 12px; font-weight: 600; text-decoration: none; min-width: 4px; white-space: nowrap; }
.viz-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 12px; color: #52514e; }
.viz-key { display: inline-flex; align-items: center; gap: 6px; }
.viz-sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.home-list { display: flex; flex-direction: column; }
.home-item { display: flex; flex-direction: column; gap: 1px; padding: 8px 4px; border-top: 1px solid var(--line); color: inherit; text-decoration: none; font-size: 13px; }
.home-item:first-child { border-top: 0; }
.home-item:hover { background: #f4f6f9; }
.home-item .muted { font-size: 12px; }
.viz-aside { display: flex; align-items: center; gap: 6px; margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 12px; color: #52514e; }
.viz-aside-i { flex: none; width: 14px; height: 14px; border-radius: 50%; border: 1px solid #898781; color: #898781; font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-style: italic; }
