/* style.css */
:root{
  --bg:#F6F7FB;
  --panel:#FFFFFF;
  --text:#0B0F14;
  --muted:#6B7280;
  --line:#E5E7EB;
  --shadow: 0 18px 50px rgba(15, 23, 42, .08);
  --shadow2: 0 10px 30px rgba(15, 23, 42, .10);
  --radius:18px;
  --radius2:14px;
  --pad:18px;
  --black:#0B0F14;
  --ok:#16A34A;
  --warn:#F59E0B;
  --info:#2563EB;
  --danger:#B91C1C;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
}

.container{
  max-width:1200px;
  margin:0 auto;
  padding:28px 18px 40px;
}

.topbar{
  position:sticky;
  top:0;
  z-index:50;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 18px;
  background:rgba(255,255,255,.86);
  backdrop-filter: blur(12px);
  border-bottom:1px solid var(--line);
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  cursor:pointer;
  user-select:none;
}

.brand-logo{
  width:34px;
  height:34px;
  object-fit:contain;
  border-radius:8px;
  display:block;
}

.brand-title{font-weight:700; letter-spacing:-.02em}
.brand-subtitle{font-size:12px;color:var(--muted); margin-top:2px}

.topbar-right{display:flex; align-items:center; gap:10px; position:relative}

.pill{
  border:1px solid var(--line);
  background:#fff;
  padding:10px 12px;
  border-radius:999px;
  font-size:13px;
  display:flex;
  align-items:center;
  gap:10px;
  cursor:pointer;
}
.dot{width:10px;height:10px;border-radius:999px;background:#9CA3AF}
.dot.on{background:var(--ok)}

.avatar-btn{
  border:1px solid var(--line);
  background:#fff;
  border-radius:999px;
  padding:6px;
  cursor:pointer;
}
.avatar{width:34px;height:34px;border-radius:999px;display:block}

.menu{
  position:absolute;
  right:0;
  top:56px;
  width:220px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  box-shadow:var(--shadow2);
  padding:8px;
  display:none;
}
.menu.open{display:block}
.menu-item{
  width:100%;
  text-align:left;
  padding:10px 12px;
  border-radius:12px;
  border:0;
  background:transparent;
  cursor:pointer;
  font-size:14px;
}
.menu-item:hover{background:#F3F4F6}
.menu-sep{height:1px;background:var(--line);margin:6px 0}
.menu-item.danger{color:var(--danger)}

.view{display:none}
.view.active{display:block}

#view-home{
  position:relative;
  overflow:hidden;
}

.home-gridline{
  position:absolute;
  inset:-40px 0 0 0;
  background:
    linear-gradient(180deg, rgba(11,15,20,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,15,20,.06) 1px, transparent 1px);
  background-size:56px 56px;
  opacity:.5;
  pointer-events:none;
}
.home-flare{
  position:absolute;
  right:-180px;
  top:-120px;
  width:420px;
  height:420px;
  background:radial-gradient(circle at 35% 35%, rgba(249,115,22,.35), transparent 60%);
  filter:blur(2px);
  pointer-events:none;
}

.home-hero{
  position:relative;
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:26px;
  margin-bottom:30px;
}
@media (max-width:980px){
  .home-hero{grid-template-columns:1fr}
}

.home-hero-copy{
  background:#fff;
  border:1px solid var(--line);
  border-radius:26px;
  padding:30px;
  box-shadow:var(--shadow);
}
.home-kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.12em;
  color:#111827;
  margin-bottom:16px;
}
.home-kicker-dot{
  width:6px;
  height:6px;
  border-radius:999px;
  background:#f97316;
}
.home-hero-copy h1{
  margin:0 0 12px;
  font-size:44px;
  letter-spacing:-.03em;
}
.home-lead{
  margin:0 0 18px;
  font-size:17px;
  line-height:1.65;
  color:#0f172a;
}
.home-cta{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:16px;
}
.home-proof{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:10px;
}
@media (max-width:720px){
  .home-proof{grid-template-columns:1fr}
}
.proof-item{
  border:1px solid var(--line);
  border-radius:14px;
  padding:10px 12px;
  background:#f8fafc;
}
.proof-title{font-weight:700}
.proof-sub{color:var(--muted); font-size:12px}

.home-hero-panel{
  border-radius:26px;
  padding:24px;
  background:#0b0f14;
  color:#fff;
  box-shadow:var(--shadow2);
  display:flex;
  flex-direction:column;
  gap:18px;
}
.home-panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.home-panel-title{font-weight:700}
.home-panel-chip{
  background:rgba(255,255,255,.12);
  border-radius:999px;
  padding:6px 10px;
  font-size:12px;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.home-pipeline{
  display:flex;
  flex-direction:column;
  gap:14px;
}
.home-pipe{
  display:flex;
  gap:12px;
  align-items:flex-start;
}
.home-pipe-dot{
  width:10px;
  height:10px;
  border-radius:999px;
  background:#f97316;
  margin-top:6px;
}
.home-pipe-title{font-weight:600}
.home-pipe-desc{color:rgba(255,255,255,.75); font-size:13px}
.home-panel-metric{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  border-top:1px solid rgba(255,255,255,.12);
  padding-top:14px;
}
.metric-label{font-size:12px; text-transform:uppercase; letter-spacing:.1em; opacity:.7}
.metric-value{font-size:18px; font-weight:700}

.home-section{
  margin:32px 0;
}
.home-section h2{
  margin:0 0 16px;
  font-size:28px;
}
.home-features{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:14px;
}
@media (max-width:980px){
  .home-features{grid-template-columns:repeat(2, 1fr)}
}
@media (max-width:640px){
  .home-features{grid-template-columns:1fr}
}
.home-feature{
  background:#fff;
  border:1px solid var(--line);
  border-radius:20px;
  padding:18px;
}
.home-feature-title{font-weight:700; margin-bottom:6px}
.home-feature p{margin:0; color:var(--muted); line-height:1.5}

.home-break{
  border-radius:26px;
  padding:26px;
  background:#fff;
  border:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.home-break h2{margin:0 0 8px; font-size:26px}
.home-break p{margin:0; color:var(--muted)}
.home-break-cta{display:flex; gap:10px; flex-wrap:wrap}
@media (max-width:980px){
  .home-break{flex-direction:column; align-items:flex-start}
}

.hero{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:18px;
  align-items:stretch;
}
@media (max-width:980px){
  .hero{grid-template-columns:1fr}
}

.hero-left{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:24px;
  box-shadow:var(--shadow);
  padding:28px;
}
.hero-left h1{
  margin:0 0 10px;
  font-size:42px;
  letter-spacing:-.03em;
}
.lead{color:#111827; font-size:16px; line-height:1.6}
.hero-cta{display:flex; gap:12px; margin:18px 0 10px; flex-wrap:wrap}
.hero-note{display:flex; gap:10px; flex-wrap:wrap; margin-top:10px}

.hero-right{display:flex; flex-direction:column; gap:14px}
.grid-cards{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
@media (max-width:560px){
  .grid-cards{grid-template-columns:1fr}
}
.info-card{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:20px;
  padding:16px;
  cursor:pointer;
  transition:transform .12s ease;
}
.info-card:hover{transform:translateY(-2px)}
.info-title{font-weight:700; margin-bottom:6px}
.info-desc{color:var(--muted); font-size:13px; line-height:1.45}

.mock-panel{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:20px;
  padding:16px;
}
.mock-title{font-weight:700; margin-bottom:10px}
.mock-steps{margin:0; padding-left:18px; color:#111827}
.mock-steps li{margin:6px 0; color:#111827}

.footer-hint{
  margin-top:16px;
  color:var(--muted);
  font-size:13px;
}

.page-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}
.page-head h2{margin:6px 0 6px; letter-spacing:-.02em}
.muted{color:var(--muted)}
.page-actions{display:flex; gap:10px; flex-wrap:wrap}

.btn{
  border:1px solid var(--line);
  background:#fff;
  padding:10px 12px;
  border-radius:14px;
  cursor:pointer;
  font-weight:600;
}
.btn:hover{background:#F3F4F6}
.btn.primary{
  background:var(--black);
  color:#fff;
  border-color:var(--black);
}
.btn.primary:hover{opacity:.92}
.btn.ghost{background:transparent}
.btn.tiny{
  padding:8px 10px;
  border-radius:12px;
  font-size:12px;
}
.btn.danger{
  border-color:#FECACA;
  background:#FEF2F2;
  color:var(--danger);
}
.btn.danger:hover{background:#FEE2E2}

.badge{
  background:#F3F4F6;
  border:1px solid var(--line);
  border-radius:999px;
  padding:7px 10px;
  font-size:12px;
  color:#111827;
}

.cards{
  display:grid;
  grid-template-columns: repeat( auto-fit, minmax(260px, 1fr) );
  gap:14px;
}
.cards.campaigns-grid{
  grid-template-columns: 1fr;
}
.card{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:20px;
  box-shadow:var(--shadow);
  padding:16px;
  margin-bottom: 14px;
}
.card.clickable{cursor:pointer}
.card-top{display:flex; align-items:flex-start; justify-content:space-between; gap:10px}
.card-title{font-weight:800; letter-spacing:-.02em}
.card-sub{color:var(--muted); font-size:12.5px; margin-top:4px}
.card-actions{display:flex; gap:10px; margin-top:12px; flex-wrap:wrap}
.card-actions.compact{margin-top:10px}
.card-actions.compact{
  align-items:center;
}
.campaign-inline-hint{
  margin-left:auto;
  font-size:12px;
  color:var(--muted);
  font-weight:700;
  white-space:nowrap;
}
.campaign-compact{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.campaign-compact-left{
  min-width:0;
}
.campaign-compact-title{
  font-weight:900;
  letter-spacing:-.02em;
}
.campaign-compact-sub{
  font-size:12px;
  color:var(--muted);
  margin-top:4px;
}
.campaign-details{
  margin-top:10px;
  display:none;
}
.campaign-card.expanded .campaign-details{
  display:block;
}
.campaign-expand{
  border:1px solid var(--line);
  background:#fff;
  border-radius:10px;
  padding:6px 8px;
  font-size:12px;
  cursor:pointer;
}
.campaign-expand:hover{background:#F3F4F6}

.icon-btn{
  width:34px;
  height:34px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:13px;
  font-weight:900;
  cursor:pointer;
  transition:transform .12s ease, background .12s ease, border-color .12s ease, color .12s ease;
}
.icon-btn svg{
  width:18px;
  height:18px;
  display:block;
  fill:currentColor;
}
.icon-btn:hover{transform:translateY(-1px)}
.icon-btn.play{color:#0B0F14}
.icon-btn.pause{color:#0B0F14}
.icon-btn.play.active{
  background:#0B0F14;
  color:#fff;
  border-color:#0B0F14;
}
.icon-btn.pause{
  color:#0B0F14;
}
.icon-btn.pause.active{
  background:#0B0F14;
  border-color:#0B0F14;
  color:#fff;
}

.chip{
  border:1px solid var(--line);
  background:#F9FAFB;
  padding:7px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
}
.chip.success{color:var(--ok); border-color:#DCFCE7; background:#F0FDF4}
.chip.warn{color:var(--warn); border-color:#FEF3C7; background:#FFFBEB}
.chip.info{color:var(--info); border-color:#DBEAFE; background:#EFF6FF}

.pill-list{display:flex; gap:8px; flex-wrap:wrap; margin-top:10px}
.pill-tag{
  background:#F3F4F6;
  border:1px solid var(--line);
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
}

.tabs{
  display:flex; gap:10px; margin:14px 0 10px; flex-wrap:wrap;
}
.tab{
  padding:10px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  cursor:pointer;
  font-weight:700;
  font-size:13px;
}
.tab.active{
  background:var(--black);
  border-color:var(--black);
  color:#fff;
}
.panel{margin-top:10px}
.panel.hidden{display:none}

.progress{margin-top:12px}
.progress.big{margin-top:8px}
.progress.secondary{margin-top:8px}
.progress-bar{
  height:10px;
  background:#EEF2F7;
  border:1px solid var(--line);
  border-radius:999px;
  overflow:hidden;
}
.progress-fill{
  height:100%;
  background:var(--black);
  width:0%;
  transition:width 900ms ease;
}
.progress.secondary .progress-fill{
  background:var(--info);
}
.progress-label{margin-top:8px; font-size:12.5px; color:var(--muted)}

.queue{background:var(--panel); border:1px solid var(--line); border-radius:20px; box-shadow:var(--shadow); overflow:hidden}
.queue-item{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 16px;
  border-top:1px solid var(--line);
}
.queue-item:first-child{border-top:0}
.queue-title{font-weight:800}
.queue-sub{font-size:12px; color:var(--muted); margin-top:4px}
.queue-meta{font-weight:800; text-align:right}
.mini-progress{
  width:150px; height:8px;
  background:#EEF2F7;
  border:1px solid var(--line);
  border-radius:999px; overflow:hidden;
  margin-top:8px;
}
.mini-fill{height:100%; background:var(--black)}
.muted-row{opacity:.75}

.grid-personas{
  display:grid;
  grid-template-columns: repeat( auto-fit, minmax(220px, 1fr) );
  gap:14px;
}
.grid-personas.compact{
  grid-template-columns: repeat( auto-fit, minmax(180px, 1fr) );
}
.persona-card{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:20px;
  box-shadow:var(--shadow);
  overflow:hidden;
}
.persona-card.clickable{cursor:pointer}
.persona-thumb{
  position:relative;
}
.persona-img{
  width:100%;
  height:200px;
  object-fit:cover;
  display:block;
}
.persona-meta{padding:12px 14px}
.persona-name{font-weight:900; letter-spacing:-.02em}
.persona-sub{font-size:12px; color:var(--muted); margin-top:4px}
.persona-tags{display:flex; gap:8px; flex-wrap:wrap; margin-top:10px}

.hint{
  margin-top:12px;
  color:var(--muted);
  font-size:13px;
}

.back{
  border:0;
  background:transparent;
  color:#111827;
  font-weight:800;
  cursor:pointer;
  padding:0;
  margin-bottom:8px;
}

.split{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}
@media (max-width:980px){
  .split{grid-template-columns:1fr}
}

.panel-head{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  margin-bottom:8px;
}
.panel-title{font-weight:900; letter-spacing:-.02em}

.kv{margin-top:10px}
.kv.small{margin-top:0}
.kv-row{
  display:flex; align-items:flex-start; justify-content:space-between; gap:10px;
  padding:8px 0;
  border-top:1px dashed #EEF2F7;
}
.kv-row:first-child{border-top:0}
.kv-key{color:var(--muted); font-size:12.5px}
.kv-val{font-weight:700; font-size:13px; text-align:right; max-width:62%}

.subpanel{
  margin-top:14px;
  padding:12px;
  background:#FAFBFF;
  border:1px solid #E5E7EB;
  border-radius:16px;
}
.subpanel-title{font-weight:900; margin-bottom:10px}

.dist{margin-top:12px}
.dist-title{font-weight:900; margin-bottom:10px}
.dist-row{
  display:grid;
  grid-template-columns:120px 1fr 48px;
  gap:10px;
  align-items:center;
  margin:8px 0;
}
.dist-bar{
  height:10px;
  background:#EEF2F7;
  border:1px solid var(--line);
  border-radius:999px;
  overflow:hidden;
}
.dist-fill{height:100%; background:var(--black)}
.tiny-muted{font-size:12px; color:var(--muted); margin:8px 0 0}

.persona-detail{
  display:grid;
  grid-template-columns: 380px 1fr;
  gap:14px;
  align-items:start;
}
@media (max-width:980px){
  .persona-detail{grid-template-columns:1fr}
}
.photo{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:22px;
  box-shadow:var(--shadow);
  overflow:hidden;
  position:relative;
}
.photo img{width:100%; display:block; object-fit:cover; height:420px}
@media (max-width:980px){
  .photo img{height:320px}
}
.photo-trash{
  position:absolute;
  top:10px;
  right:10px;
  width:34px;
  height:34px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.08);
  background:rgba(255,255,255,.9);
  color:#0B0F14;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 6px 18px rgba(0,0,0,.12);
  cursor:pointer;
}
.photo-trash svg{width:18px;height:18px;fill:currentColor}
.photo-trash:hover{transform:translateY(-1px)}
.photo-trash-sm{
  width:30px;
  height:30px;
  top:8px;
  right:8px;
}
.photo-trash-sm svg{width:16px;height:16px}

#toastHost{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:9999;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.toast{
  background:#0B0F14;
  color:#fff;
  padding:10px 14px;
  border-radius:12px;
  box-shadow:0 10px 30px rgba(0,0,0,.2);
  font-size:13px;
  opacity:0;
  transform:translateY(6px);
  transition:opacity .2s ease, transform .2s ease;
}
.toast.show{opacity:1; transform:translateY(0)}
.toast.success{background:#0E9F6E}
.toast.warn{background:#F59E0B}
.toast.error{background:#EF4444}

.persona-aside{display:flex; flex-direction:column; gap:14px}
.aside-card{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:20px;
  box-shadow:var(--shadow);
  padding:14px 16px;
}
.aside-title{font-weight:900; margin-bottom:8px}

.persona-main{display:flex; flex-direction:column; gap:14px}
.two-col{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}
@media (max-width:780px){
  .two-col{grid-template-columns:1fr}
}
.mini-title{font-weight:900; margin-bottom:8px}
.clean{margin:0; padding-left:18px; color:#111827}
.clean li{margin:6px 0}
.timeline{display:flex; flex-direction:column; gap:8px}
.t-item{display:grid; grid-template-columns:70px 1fr; gap:10px; align-items:start}
.t-time{font-weight:900}
.t-text{color:#111827}

.codeblock{
  background:#0B0F14;
  color:#E5E7EB;
  padding:14px 14px;
  border-radius:16px;
  overflow:auto;
  font-size:12.5px;
  line-height:1.5;
  border:1px solid rgba(255,255,255,.08);
  max-width: 90vw;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.prompt-mini{
  width:100%;
  resize:none;
}
.row-actions{display:flex; gap:10px; flex-wrap:wrap; margin-top:10px}

/* Modal */
.modal{
  position:fixed;
  inset:0;
  background:rgba(15, 23, 42, .45);
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
  z-index:100;
}
.modal.open{display:flex}
.modal-box{
  width:min(860px, 100%);
  background:#fff;
  border:1px solid var(--line);
  border-radius:22px;
  box-shadow:var(--shadow2);
  padding:14px;
  display:none;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-box.open{display:block}
.modal-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  padding:6px 6px 10px;
}
.modal-title{font-weight:900; letter-spacing:-.02em}
.modal-sub{color:var(--muted); font-size:12.5px; margin-top:4px}
.x{
  border:1px solid var(--line);
  background:#fff;
  border-radius:12px;
  padding:8px 10px;
  cursor:pointer;
}
.modal-body{padding:6px}
.modal-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  padding:10px 6px 6px;
  border-top:1px solid var(--line);
}

.field{display:flex; flex-direction:column; gap:7px; margin:10px 0}
.field span{color:var(--muted); font-size:12.5px; font-weight:700}
input, textarea, select{
  width:100%;
  border:1px solid var(--line);
  border-radius:14px;
  padding:10px 12px;
  font-family:inherit;
  font-size:14px;
  outline:none;
  background:#fff;
}
textarea{resize:vertical}

.form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
@media (max-width:880px){
  .form-grid{grid-template-columns:1fr}
}
.feature-box{
  border:1px solid var(--line);
  background:#fff;
  border-radius:16px;
  padding:12px;
}


.checkline{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-weight:900;

  white-space: nowrap;     /* não quebra dentro do label */
}
.checkline > span{
  white-space: nowrap;     /* garante no texto também */
}


.mini-fields{margin-top:10px; display:flex; flex-direction:column; gap:8px}
.mini-row{
  display:grid;
  grid-template-columns: 1fr 90px 20px;
  gap:8px;
  align-items:center;
  font-size:13px;
}
.mini-row input{padding:8px 10px; border-radius:12px}
.radio-grid{display:flex; gap:14px; flex-wrap:wrap}
.radio{display:flex; gap:8px; align-items:center; font-weight:800}

/* ============================================================
   DASHBOARD (NOVO)
   ============================================================ */

.dash-metrics{
  display:grid;
  grid-template-columns: repeat( auto-fit, minmax(220px, 1fr) );
  gap:14px;
  margin-bottom:14px;
}
.metric-card{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:20px;
  box-shadow:var(--shadow);
  padding:14px 16px;
}
.metric-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.metric-label{
  font-weight:900;
  letter-spacing:-.02em;
}
.metric-value{
  margin-top:10px;
  font-size:30px;
  font-weight:900;
  letter-spacing:-.03em;
}
.metric-sub{
  margin-top:6px;
  font-size:12.5px;
  color:var(--muted);
}

.dash-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:14px;
}
.chart-panel{
  padding:16px;
}
.chart-canvas{
  width:100%;
  height:280px;
  display:block;
  border:1px solid var(--line);
  border-radius:16px;
  background:linear-gradient(180deg, rgba(250,251,255,.9), rgba(255,255,255,.9));
}
.chart-canvas.donut{
  height:320px;
  width:100%;
  max-width:420px;
}

.donut-wrap{
  display:grid;
  grid-template-columns: 420px 1fr;
  gap:12px;
  align-items:center;
}
@media (max-width:980px){
  .donut-wrap{
    grid-template-columns: 1fr;
  }
  .chart-canvas.donut{
    max-width:520px;
  }
}

.donut-legend{
  border:1px solid var(--line);
  border-radius:16px;
  padding:12px;
  background:#fff;
}
.donut-row{
  display:grid;
  grid-template-columns: 12px 1fr 48px;
  gap:10px;
  align-items:center;
  padding:8px 6px;
  border-top:1px dashed #EEF2F7;
}
.donut-row:first-child{border-top:0}
.donut-dot{
  width:12px;height:12px;border-radius:999px;
  background:#0B0F14;
  opacity:.9;
}
.donut-row:nth-child(2) .donut-dot{opacity:.68}
.donut-row:nth-child(3) .donut-dot{opacity:.45}
.donut-row:nth-child(4) .donut-dot{opacity:.28}
.donut-lbl{font-weight:800}
.donut-pct{text-align:right; font-weight:900; color:#111827}

.event-list{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:10px;
}
.event-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:12px 12px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fff;
}
.event-time{
  font-weight:900;
  width:64px;
  color:#111827;
}
.event-main{flex:1}
.event-title{font-weight:900; letter-spacing:-.02em}
.event-sub{font-size:12.5px; color:var(--muted); margin-top:3px}
