:root {
  --bg: #f5f6f7; --panel: #fff; --side: #fafafa;
  --text: #1d2125; --muted: #6b7280; --faint: #9ca3af;
  --line: #e6e8eb; --line2: #f0f1f3;
  --green: #18a957; --green-d: #128a47; --green-bg: #e7f6ed; --green-tx: #11743c;
  --red: #dc2626; --red-bg: #fde8e8; --red-tx: #b42318;
  --orange: #f59e0b; --orange-bg: #fef3e2; --orange-tx: #b45309;
  --yellow-bg: #fdf3c7; --yellow-tx: #8a6100;
  --blue: #3b82f6; --blue-bg: #e6f0fe; --blue-tx: #1d5fd6;
  --teal-bg: #e3f4f8; --teal-tx: #0e6e85; --teal-line: #bfe3ec;
  --grey-bg: #f1f2f4; --grey-tx: #555c66;
  --radius: 10px;
  --shadow: 0 10px 40px rgba(16,24,40,.18);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.45 Inter, system-ui, sans-serif; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 12px; } .xs { font-size: 11px; }
.green { color: var(--green-tx); } .red { color: var(--red-tx); } .orange { color: var(--orange-tx); } .blue { color: var(--blue-tx); }
.bold { font-weight: 600; }
.row { display: flex; align-items: center; gap: 8px; }
.grow { flex: 1; }
.hidden { display: none !important; }

/* Shell */
.shell { display: flex; min-height: 100vh; }
.side { width: 292px; background: var(--side); border-right: 1px solid var(--line2); padding: 12px 16px; flex-shrink: 0; transition: width .15s; position: sticky; top: 0; height: 100vh; }
.side.collapsed { width: 72px; }
.side.collapsed .nav-label, .side.collapsed .logo-text { display: none; }
.side-top { display: flex; justify-content: space-between; align-items: center; height: 36px; margin-bottom: 12px; padding-left: 12px; }
.side.collapsed .side-top { padding-left: 0; flex-direction: column; height: auto; gap: 8px; }
.logo { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 18px; letter-spacing: -.3px; }
.logo-mark { width: 24px; height: 24px; border-radius: 7px; background: var(--green); display: grid; place-items: center; color: #fff; font-size: 13px; }
.nav { display: flex; flex-direction: column; gap: 6px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 8px; text-decoration: none; font-size: 16px; color: var(--text); }
.nav a.active { background: var(--green-bg); color: var(--green-tx); }
.nav a:hover:not(.active) { background: var(--grey-bg); }
.main { flex: 1; min-width: 0; }
.topbar { height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 32px; border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 20; }
.crumbs { display: flex; gap: 14px; color: var(--muted); }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--text); }
.crumbs .cur { color: var(--text); }
.top-icons { display: flex; align-items: center; gap: 18px; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--grey-bg); display: grid; place-items: center; font-size: 11px; font-weight: 600; }
.content { padding: 40px 32px 60px; max-width: 1640px; }
.iconbtn { background: none; border: 0; padding: 4px; border-radius: 6px; cursor: pointer; display: inline-grid; place-items: center; color: var(--text); }
.iconbtn:hover { background: var(--grey-bg); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 6px; border: 1px solid var(--line); background: #fff; cursor: pointer; white-space: nowrap; font-weight: 500; }
.btn:hover { background: #f8f9fa; }
.btn.primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn.primary:hover { background: var(--green-d); }
.btn.primary:disabled { background: #9fdcb9; border-color: #9fdcb9; cursor: not-allowed; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.block { width: 100%; }
.btn.sm { height: 28px; padding: 0 10px; font-size: 13px; }
.btn.danger { color: var(--red-tx); }
.link { color: var(--green-tx); text-decoration: none; cursor: pointer; background: none; border: 0; padding: 0; font-weight: 500; }
.link:hover { text-decoration: underline; }

/* Chips & badges */
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 5px; font-size: 12px; font-weight: 500; white-space: nowrap; line-height: 20px; }
.chip.grey { background: var(--grey-bg); color: var(--grey-tx); }
.chip.green { background: var(--green-bg); color: var(--green-tx); }
.chip.red { background: var(--red-bg); color: var(--red-tx); }
.chip.orange { background: var(--orange-bg); color: var(--orange-tx); }
.chip.yellow { background: var(--yellow-bg); color: var(--yellow-tx); }
.chip.blue { background: var(--blue-bg); color: var(--blue-tx); }
.chip.teal { background: var(--teal-bg); color: var(--teal-tx); }
.chip.atlas { background: #fff4dc; color: #b77400; font-size: 11px; line-height: 16px; padding: 0 6px; }
.chip.uw { background: var(--grey-bg); color: var(--grey-tx); font-size: 11px; line-height: 16px; padding: 0 6px; }
.chip.ver { background: var(--blue-bg); color: var(--blue-tx); font-size: 11px; line-height: 16px; padding: 0 6px; }
.count { display: inline-grid; place-items: center; min-width: 20px; height: 18px; border-radius: 5px; background: var(--grey-bg); font-size: 11px; padding: 0 5px; margin-left: 6px; color: var(--grey-tx); }
.count.red { background: var(--red-bg); color: var(--red-tx); }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex-shrink: 0; }

/* Cards */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.card-h { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px 16px; border-bottom: 1px solid var(--line2); }
.card-h h2 { margin: 0; font-size: 22px; font-weight: 400; letter-spacing: -.2px; }
.card-h .meta { color: var(--muted); font-size: 13px; }
.card-b { padding: 20px 24px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.empty-band { background: var(--grey-bg); border-radius: 8px; padding: 12px 14px; display: flex; align-items: center; gap: 10px; }

/* Tables */
table.t { width: 100%; border-collapse: collapse; }
.t th { text-align: left; font-weight: 600; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.t td { padding: 14px 16px; border-bottom: 1px solid var(--line2); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t.compact td { padding: 10px 16px; }
.t .sub { font-size: 12px; color: var(--muted); }
.t.light th { font-weight: 400; color: var(--muted); font-size: 13px; }

/* Queue */
.page-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.page-h h1 { margin: 0; font-size: 30px; font-weight: 500; letter-spacing: -.4px; }
.q-tools { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line2); }
.search { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 6px; padding: 0 10px; height: 32px; background: #fff; }
.search input { border: 0; outline: 0; width: 160px; background: transparent; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 16px; border-bottom: 1px solid var(--line2); align-items: center; }
.fchip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; cursor: pointer; font-size: 13px; position: relative; }
.fchip.on { border-color: var(--green); background: var(--green-bg); color: var(--green-tx); }
.glance { background: var(--bg); padding: 14px 16px 16px; border-bottom: 1px solid var(--line); }
.glance-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 14px 18px; min-height: 176px; position: relative; }
.stat .big { font-size: 26px; font-weight: 500; }
.legend { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.legend b { color: var(--text); font-weight: 600; margin-right: 4px; }
.seg { display: flex; gap: 3px; margin-top: 14px; height: 5px; }
.seg span { border-radius: 3px; }
.qtable th { background: #e8f5fb; cursor: pointer; user-select: none; }
.qtable th .sort { color: var(--faint); font-size: 10px; margin-left: 6px; }
.qtable tbody tr { cursor: pointer; }
.qtable tbody tr:hover td { background: #fafbfc; }
.qtable td { padding: 14px 16px; }
.mini-av { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--green-bg); color: var(--green-tx); font-size: 9px; font-weight: 600; margin-right: 8px; }
.pager { display: flex; justify-content: flex-end; align-items: center; gap: 16px; padding: 12px 16px; border-top: 1px solid var(--line2); }
.pager .pg { width: 32px; height: 32px; border-radius: 6px; display: grid; place-items: center; cursor: pointer; border: 1px solid transparent; background: none; }
.pager .pg.on { border-color: var(--blue); color: var(--blue-tx); }
.pager .pg:disabled { opacity: .35; cursor: default; }

/* Dropdown menu */
.menu { position: absolute; z-index: 50; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(16,24,40,.12); padding: 4px; min-width: 200px; }
.menu button { display: flex; width: 100%; text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 6px; cursor: pointer; gap: 8px; align-items: center; }
.menu button:hover { background: var(--grey-bg); }
.menu .sep { height: 1px; background: var(--line2); margin: 4px 0; }
.menu .chk { width: 14px; color: var(--green); }

/* App header */
.app-h { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.app-h h1 { margin: 0; font-size: 30px; font-weight: 500; letter-spacing: -.4px; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; background: #fff; cursor: pointer; font-size: 13px; }
.mini-steps { display: inline-flex; gap: 2px; }
.mini-steps i { display: block; width: 9px; height: 3px; border-radius: 2px; background: #e4e6e9; }
.mini-steps i.done { background: var(--green); }
.mini-steps i.cur { background: #fff; outline: 1px solid var(--green); }
.mini-steps i.warn { background: var(--orange); }
.stepper { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 16px 24px; margin-bottom: 18px; }
.stepper .bar { height: 5px; border-radius: 3px; background: #eef0f2; margin-bottom: 10px; }
.stepper .bar.done { background: var(--green); }
.stepper .bar.cur { background: #fff; border: 1.5px solid var(--green); }
.stepper .bar.warn { background: var(--orange); }
.stepper .lbl { font-size: 13px; color: var(--faint); }
.stepper .lbl.on { color: var(--text); }
.stepper .lbl em { font-style: normal; margin-left: 4px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.tabs a { padding: 8px 12px; text-decoration: none; color: var(--muted); font-size: 15px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; align-items: center; }
.tabs a.on { color: var(--text); border-color: var(--green); }
.tabs a:hover { color: var(--text); }
.split { display: grid; grid-template-columns: 470px 1fr; gap: 20px; align-items: start; }

/* Left column */
.action { border-width: 1.5px; padding: 22px 24px; }
.action.green { border-color: var(--green); } .action.red { border-color: #ef4444; } .action.orange { border-color: #f5b041; } .action.blue { border-color: #8bb5f8; }
.action h3 { margin: 0; font-size: 17px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.action p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.said { background: var(--grey-bg); border-radius: 8px; padding: 12px 14px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.said ul { margin: 6px 0 0; padding-left: 16px; }
.btn-row { display: flex; gap: 8px; margin-top: 14px; }
.btn-row .btn { flex: 1; }
.lead-card { background: var(--teal-bg); border: 1px solid var(--teal-line); border-radius: var(--radius); padding: 16px 20px; color: var(--teal-tx); }
.lead-card .kv { display: grid; grid-template-columns: 82px 1fr; gap: 4px 0; font-size: 13px; margin-top: 8px; }
.lead-card .kv span:nth-child(odd) { font-size: 11px; letter-spacing: .4px; font-weight: 600; text-transform: uppercase; color: #42707d; padding-top: 2px; }
.hist { padding: 22px 24px; }
.hist h3 { margin: 0 0 14px; font-size: 18px; font-weight: 500; }
.hitem { display: grid; grid-template-columns: 20px 1fr; gap: 8px; position: relative; padding-bottom: 14px; }
.hitem:not(:last-child)::before { content: ''; position: absolute; left: 7px; top: 18px; bottom: 0; width: 1px; background: var(--line); }
.hitem .t1 { font-size: 13.5px; }
.hitem .t2 { font-size: 12px; color: var(--faint); }
.hitem .flow { display: flex; gap: 6px; align-items: center; margin: 2px 0; color: var(--faint); font-size: 11px; }
.hi { width: 15px; height: 15px; border-radius: 50%; display: grid; place-items: center; margin-top: 2px; }
.hi.ok { background: var(--green); color: #fff; } .hi.warn { background: var(--orange); color: #fff; } .hi.bad { background: var(--red); color: #fff; }
.hi.open { border: 1.5px solid var(--green); background: #fff; } .hi.next { border: 1.5px solid var(--faint); background: #fff; }
.nextlbl { font-size: 10px; font-weight: 600; background: var(--grey-bg); color: var(--grey-tx); padding: 1px 6px; border-radius: 4px; margin-right: 6px; }
.donebox { border: 1px solid var(--line); border-radius: 8px; margin-top: 14px; }
.donebox .r { display: grid; grid-template-columns: 146px 1fr; padding: 10px 12px; border-bottom: 1px solid var(--line2); font-size: 13.5px; }
.donebox .r:last-child { border-bottom: 0; }

/* Field grid */
.fgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 24px; }
.f .l { font-size: 13px; color: var(--muted); }
.f .v { font-size: 15px; margin-top: 2px; word-break: break-word; }
.f .v.na { color: var(--faint); }
.f .s { font-size: 12px; margin-top: 2px; display: flex; align-items: center; gap: 4px; }
.notice { display: flex; gap: 10px; align-items: center; padding: 14px 18px; border-radius: 8px; font-size: 13.5px; }
.notice.orange { background: var(--orange-bg); color: var(--orange-tx); }
.notice.red { background: var(--red-bg); color: var(--red-tx); }
.notice.green { background: var(--green-bg); color: var(--green-tx); }
.notice.blue { background: var(--blue-bg); color: var(--blue-tx); }

/* Indicators */
.ind-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 8px 0 16px; }
.ind { border: 1px solid var(--line); border-right: 4px solid #c9ead6; border-radius: 6px; padding: 8px 10px; font-size: 12px; }
.ind.neu { border-right-color: #e4e6e9; } .ind.neg { border-right-color: #f6c3c3; }
.ind .v { font-size: 14px; color: var(--text); }
.pages { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 16px; }
.pages .thumb { height: 72px; background: #eef1f4; border-radius: 6px; margin-bottom: 6px; }
.qbar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.qbar span { height: 5px; border-radius: 3px; background: #cdeedb; } .qbar span.on { background: var(--green-d); }
.bars .b { display: grid; grid-template-columns: 200px 1fr 50px; align-items: center; gap: 12px; padding: 3px 0; }
.bars .track { height: 6px; background: #eef0f2; border-radius: 3px; position: relative; }
.bars .fill { height: 6px; border-radius: 3px; background: #9aa1aa; }
.bars .fill.hot { background: var(--red); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 10px; }
.kpi { border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; }
.kpi .n { font-size: 24px; font-weight: 500; }
.seg-tabs { display: inline-flex; background: var(--grey-bg); border-radius: 8px; padding: 3px; gap: 2px; }
.seg-tabs button { border: 0; background: none; padding: 5px 12px; border-radius: 6px; cursor: pointer; color: var(--muted); }
.seg-tabs button.on { background: #fff; color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.seg-tabs.lg { padding: 4px; border-radius: 10px; } .seg-tabs.lg button { padding: 7px 16px; font-size: 14px; }

/* Assessment form */
.ra-row { display: grid; grid-template-columns: 1.05fr 1.5fr 0.9fr 0.5fr; border-bottom: 1px solid var(--line2); }
.ra-row > div { padding: 16px 0; }
.ra-row > div + div { padding-left: 14px; border-left: 1px solid var(--line2); }
.ra-row:last-child { border-bottom: 0; }
.ra-h { font-size: 12px; font-weight: 600; color: var(--muted); }
.ra-title { font-size: 16px; }
.opts { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.opts.h { flex-direction: row; flex-wrap: wrap; align-items: center; }
.opt { border: 1px solid var(--line); border-radius: 5px; background: #fff; padding: 3px 9px; cursor: pointer; font-size: 14px; text-align: left; }
.opt:hover { border-color: #b9bec5; }
.opt.sel { border-color: var(--green); background: var(--green-bg); color: var(--green-tx); font-weight: 600; }
.opt.sel.warn { border-color: var(--orange); background: var(--orange-bg); color: var(--orange-tx); }
.opt.sel.bad { border-color: var(--red); background: var(--red-bg); color: var(--red-tx); }
.opt.static { cursor: default; color: var(--muted); }
.opt.static.sel { color: var(--green-tx); }
.opt:disabled { opacity: .45; cursor: not-allowed; }
.score { width: 44px; height: 44px; background: var(--grey-bg); border-radius: 6px; display: grid; place-items: center; font-size: 22px; font-weight: 600; margin: auto; }
.inp { border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; width: 100%; background: #fff; outline: none; }
.inp:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(24,169,87,.12); }
.inp.err { border-color: var(--red); }
textarea.inp { resize: vertical; min-height: 44px; }
select.inp { padding: 5px 8px; }

/* Notes */
.nfil { display: flex; gap: 8px; margin: 14px 0; }
.composer { background: var(--grey-bg); border-radius: 8px; padding: 16px; margin-bottom: 16px; }
.note { border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; margin-bottom: 12px; position: relative; }
.note .who { font-weight: 600; font-size: 13.5px; }
.note .meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.note .body { margin-top: 8px; }

/* Modal */
.overlay { position: fixed; inset: 0; background: rgba(40,44,52,.45); z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow: auto; }
.modal { background: #fff; border-radius: 12px; width: 720px; max-width: 100%; box-shadow: var(--shadow); display: flex; flex-direction: column; margin: auto; }
.modal-h { display: flex; justify-content: space-between; align-items: flex-start; padding: 18px 24px 12px; border-bottom: 1px solid var(--line2); }
.modal-h h3 { margin: 0; font-size: 17px; font-weight: 600; }
.modal-b { padding: 20px 24px; }
.modal-f { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 24px; border-top: 1px solid var(--line2); }
.modal-f .btn { min-width: 170px; }
.lbl { font-weight: 600; margin: 14px 0 8px; display: block; }
.lbl .muted { font-weight: 400; font-size: 13px; margin-left: 6px; }
.choice { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; cursor: pointer; margin-bottom: 8px; }
.choice.on { border: 2px solid var(--green); background: #f3fbf6; padding: 11px 15px; }
.choice input { accent-color: var(--blue); }
.choice .s { font-size: 12.5px; color: var(--muted); }
.update-box { background: var(--teal-bg); border-radius: 8px; padding: 12px 16px; display: flex; gap: 10px; color: var(--teal-tx); margin-top: 16px; }
.update-box input { accent-color: var(--blue); margin-top: 3px; }
.cms { background: var(--grey-bg); border-radius: 8px; padding: 12px 16px; margin-top: 12px; color: var(--muted); }
.cms .pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.cms .pills span { background: #e6e8eb; border-radius: 5px; padding: 2px 8px; font-size: 12px; }
.cms .pills b { color: var(--text); font-weight: 600; margin-left: 4px; }
.riskcard { border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: 8px; overflow: hidden; margin-bottom: 14px; }
.riskcard .top { padding: 14px 16px; }
.riskcard .bot { background: var(--grey-bg); padding: 8px 16px; display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.skel { background: #eceef1; border-radius: 6px; height: 10px; display: inline-block; }
.checklist { border: 1px solid var(--line); border-radius: 8px; }
.checklist .r { display: grid; grid-template-columns: 22px 170px 1fr; padding: 8px 14px; border-bottom: 1px solid var(--line2); align-items: start; font-size: 13.5px; }
.checklist .r:last-child { border-bottom: 0; }
.order { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.og { background: #f7f8f9; display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line2); font-size: 11.5px; font-weight: 600; letter-spacing: .5px; cursor: pointer; }
.og .muted { font-weight: 400; letter-spacing: 0; margin-left: auto; font-size: 12px; }
.oi { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line2); }
.oi:last-child { border-bottom: 0; }
.oi .d { font-size: 12.5px; color: var(--muted); }
input[type=checkbox] { width: 15px; height: 15px; accent-color: var(--green); margin: 2px 0 0; cursor: pointer; }
.person { border: 1px solid var(--line); border-radius: 8px; padding: 14px; margin-bottom: 10px; }
.g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.req { color: var(--red); }

/* Toast */
#toast-root { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: #1f2328; color: #fff; padding: 10px 16px; border-radius: 8px; font-size: 13.5px; box-shadow: var(--shadow); animation: up .2s ease; display: flex; gap: 10px; align-items: center; }
@keyframes up { from { transform: translateY(8px); opacity: 0; } }
.spin { width: 14px; height: 14px; border: 2px solid var(--blue-bg); border-top-color: var(--blue); border-radius: 50%; animation: sp 0.8s linear infinite; display: inline-block; }
@keyframes sp { to { transform: rotate(360deg); } }

@media (max-width: 1200px) {
  .split { grid-template-columns: 1fr; }
  .glance-grid { grid-template-columns: 1fr 1fr; }
  .ind-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .side { display: none; }
  .content { padding: 20px 16px; }
  .topbar { padding: 0 16px; }
  .fgrid, .g3, .glance-grid, .kpis { grid-template-columns: 1fr; }
  .app-h { flex-direction: column; align-items: flex-start; }
  .card { overflow-x: auto; }
  .ra-row { grid-template-columns: 1fr; }
}
