:root {
  --bg: #FBF6EF; --bg2: #F4ECE1; --card: #fff; --ink: #1C1F3D; --ink2: #3A3F66; --muted: #6E7294; --dim: #A3A6BF;
  --line: #ECE3D6; --coral: #FF5A36; --coral2: #FF8A3D; --coralSoft: #FFE7DE; --indigo: #272C6E; --indigo2: #3B41A0;
  --teal: #0E9F8E; --tealSoft: #DDF5F1; --sun: #C98A00; --sunSoft: #FFF3D1; --red: #E5484D; --redSoft: #FDE4E4; --lilacSoft: #ECE6FF;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'DM Sans', system-ui, sans-serif; font-size: 15px; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { font-family: 'Bricolage', 'DM Sans', sans-serif; font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.muted { color: var(--muted); margin: 2px 0 0; }
.shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; }
.side { background: linear-gradient(170deg, var(--indigo2), var(--indigo) 60%, #1A1E52); color: #fff; padding: 22px 16px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; padding: 0 8px 22px; }
.brand img { border-radius: 11px; }
.brand span { font-family: 'Bricolage'; font-weight: 800; font-size: 25px; letter-spacing: -0.04em; }
.brand small { font-family: 'DM Sans'; font-weight: 600; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.6; margin-left: 4px; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav button { display: flex; align-items: center; gap: 10px; background: none; border: 0; color: rgba(255,255,255,0.75); padding: 11px 12px; border-radius: 14px; text-align: left; font-weight: 600; }
.nav button:hover { background: rgba(255,255,255,0.08); color: #fff; }
.nav button.on { background: #fff; color: var(--ink); }
.nav .ico { width: 22px; text-align: center; font-size: 16px; }
.pill { margin-left: auto; background: var(--coral); color: #fff; font-size: 11.5px; padding: 2px 8px; border-radius: 10px; }
.pill:empty { display: none; }
.pill.red { background: var(--red); }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding: 8px; }
.ghost-s { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.2); border-radius: 12px; padding: 9px; font-weight: 600; font-size: 13px; }
.credit { color: rgba(255,255,255,0.55); font-size: 12px; text-decoration: none; text-align: center; }
.credit:hover { color: #fff; }
.main { padding: 26px 32px 60px; min-width: 0; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.top h1 { font-size: 30px; }
.me { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); padding: 6px 14px 6px 6px; border-radius: 22px; }
.me small { display: block; color: var(--muted); font-size: 12px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--coral); color: #fff; display: grid; place-items: center; font-family: 'Bricolage'; font-weight: 800; }
.note { margin: 16px 0 20px; background: var(--lilacSoft); color: var(--indigo2); font-size: 13px; padding: 10px 14px; border-radius: 14px; font-weight: 500; }
.grid { display: grid; gap: 16px; }
.kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.card { background: var(--card); border: 1px solid #F1E9DD; border-radius: 22px; padding: 18px; box-shadow: 0 4px 16px rgba(91,70,50,0.06); min-width: 0; }
.kpi .k { color: var(--muted); font-size: 13px; font-weight: 600; }
.kpi .v { font-family: 'Bricolage'; font-weight: 800; font-size: 30px; margin-top: 6px; letter-spacing: -0.02em; }
.kpi .d { font-size: 12.5px; font-weight: 700; color: var(--teal); margin-top: 2px; }
.two { grid-template-columns: 1.6fr 1fr; margin-top: 16px; }
.card h2 { font-size: 18px; margin-bottom: 14px; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 180px; padding-top: 10px; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bar i { display: block; width: 100%; max-width: 38px; border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, var(--coral2), var(--coral)); }
.bar i.a { background: linear-gradient(180deg, #4FD1BF, var(--teal)); }
.bar span { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.legend b { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.hbar { margin-bottom: 11px; }
.hbar .row { display: flex; justify-content: space-between; font-size: 13.5px; font-weight: 600; margin-bottom: 5px; }
.hbar .track { height: 9px; background: var(--bg2); border-radius: 6px; overflow: hidden; }
.hbar .fill { height: 100%; border-radius: 6px; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.search { flex: 1; min-width: 180px; height: 44px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); padding: 0 14px; font: inherit; color: var(--ink); }
.chip { height: 36px; padding: 0 14px; border-radius: 18px; border: 1.5px solid #E2D7C7; background: var(--card); font-weight: 600; font-size: 13.5px; color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
table { width: 100%; border-collapse: collapse; }
.tablewrap { overflow-x: auto; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 14px; }
tr:last-child td { border-bottom: 0; }
td b { font-weight: 700; }
td small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 1px; }
.badge { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 10px; letter-spacing: 0.02em; white-space: nowrap; }
.b-pending { background: var(--sunSoft); color: var(--sun); }
.b-approved, .b-active, .b-visible { background: var(--tealSoft); color: var(--teal); }
.b-rejected, .b-blocked, .b-hidden { background: var(--redSoft); color: var(--red); }
.b-cat { background: var(--bg2); color: var(--ink2); }
.actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.btn { height: 34px; padding: 0 13px; border-radius: 17px; border: 0; font-weight: 700; font-size: 13px; white-space: nowrap; }
.btn.ok { background: var(--teal); color: #fff; }
.btn.no { background: var(--redSoft); color: var(--red); }
.btn.soft { background: var(--bg2); color: var(--ink); }
.btn.ink { background: var(--ink); color: #fff; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
.report { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.report:last-child { border-bottom: 0; }
.quote { background: var(--bg); border-left: 4px solid var(--red); padding: 10px 12px; border-radius: 10px; margin: 8px 0; font-size: 14px; color: var(--ink2); }
.meta { font-size: 12.5px; color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 30px; }
.modal { position: fixed; inset: 0; background: rgba(28,31,61,0.45); display: grid; place-items: center; padding: 16px; z-index: 20; }
.modal[hidden] { display: none; }
.modal-card { background: var(--bg); border-radius: 24px; padding: 22px; width: min(480px, 100%); box-shadow: 0 30px 80px rgba(0,0,0,0.25); }
.modal-card h3 { font-size: 21px; margin-bottom: 12px; }
.modal-card label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin: 12px 0 6px; }
.modal-card input, .modal-card textarea, .modal-card select { width: 100%; border: 1.5px solid var(--line); border-radius: 14px; padding: 11px 13px; font: inherit; background: #fff; color: var(--ink); }
.modal-card textarea { min-height: 90px; resize: vertical; }
.m-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.primary { background: linear-gradient(100deg, var(--coral2), var(--coral)); color: #fff; border: 0; height: 44px; padding: 0 22px; border-radius: 22px; font-weight: 700; }
.ghost { background: #fff; color: var(--ink); border: 1.5px solid #E2D7C7; height: 44px; padding: 0 20px; border-radius: 22px; font-weight: 700; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 18px; font-weight: 600; font-size: 14px; opacity: 0; transition: all .25s; pointer-events: none; z-index: 30; max-width: 90vw; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.cards-m { display: none; }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .two { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; height: auto; padding: 14px 16px; min-width: 0; }
  .brand { padding-bottom: 10px; }
  .nav { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
  .nav button { white-space: nowrap; padding: 9px 12px; flex-shrink: 0; }
  .side-foot { flex-direction: row; align-items: center; justify-content: space-between; padding: 8px 0 0; }
  .main { padding: 18px 16px 50px; }
  .top h1 { font-size: 25px; }
  .me { display: none; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi .v { font-size: 25px; }
  .report { grid-template-columns: 1fr; }
  .actions { justify-content: flex-start; }
  table.resp thead { display: none; }
  table.resp tr { display: block; border-bottom: 1px solid var(--line); padding: 10px 0; }
  table.resp td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 5px 0; text-align: right; }
  table.resp td::before { content: attr(data-l); font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; text-align: left; }
  table.resp td.first { display: block; text-align: left; }
  table.resp td.first::before { content: none; }
}
