.card{background:var(--surf);border:1px solid var(--bdr);border-radius:var(--rl);padding:13px 15px}
.card-hd{display:flex;align-items:center;justify-content:space-between;margin-bottom:11px}
.card-t{font-size:10px;font-weight:500;color:var(--mt);text-transform:uppercase;letter-spacing:.07em}
.card-a{font-size:11px;color:var(--sky-tx);cursor:pointer;font-weight:500;border:none;background:none;padding:0}
.card-a:hover{text-decoration:underline}
.g4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:13px}
.g3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin-bottom:13px}
.g2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin-bottom:13px}
.g21{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:11px;margin-bottom:13px}
.kl{font-size:9.5px;font-weight:600;color:var(--mt);text-transform:uppercase;letter-spacing:.07em;margin-bottom:5px}
.kv{font-size:24px;font-weight:700;line-height:1;margin-bottom:5px;letter-spacing:-.01em;font-variant-numeric:tabular-nums;color:var(--tx)}
.ks{font-size:10.5px;display:flex;align-items:center;gap:3px}
.ks-up{color:var(--gn)}.ks-down{color:var(--rd)}.ks-neutral{color:var(--mt)}
/* KPI card accent border */
.kpi-up{border-top:2px solid var(--gn)!important}
.kpi-down{border-top:2px solid var(--rd)!important}
/* Inline empty / success state */
.es-inline{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:18px 12px;text-align:center;color:var(--mt);font-size:11.5px;gap:5px}
.es-inline i{font-size:17px;opacity:.45;display:block}
.es-inline.ok i{color:var(--gn);opacity:1}
.es-inline.ok{color:var(--mt)}
.pr{display:flex;align-items:center;gap:7px;margin-bottom:8px}
.pl{font-size:11.5px;color:var(--mt);width:148px;flex-shrink:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pb{flex:1;height:5px;background:var(--surf2);border-radius:99px;overflow:hidden}
.pf{height:100%;border-radius:99px;transition:width .5s}
.pv{font-size:11px;font-weight:500;width:30px;text-align:right;flex-shrink:0}
.tbl{width:100%;border-collapse:collapse;font-size:12px}
.tbl th{text-align:left;font-size:9.5px;font-weight:500;color:var(--mt);text-transform:uppercase;letter-spacing:.06em;padding:6px 9px;border-bottom:1px solid var(--bdr);background:var(--surf2)}
.tbl td{padding:7px 9px;border-bottom:1px solid var(--bdr);vertical-align:middle;color:var(--tx)}
.tbl tr:last-child td{border-bottom:none}
.tbl tr:hover td{background:var(--surf-h)}
.tw{overflow-x:auto}
.badge{display:inline-flex;align-items:center;font-size:9.5px;font-weight:500;padding:2px 7px;border-radius:99px}
.bg2{background:var(--gn-bg);color:var(--gn-tx)}
.ba2{background:var(--am-bg);color:var(--am-tx)}
.br2{background:var(--rd-bg);color:var(--rd-tx)}
.bb2{background:var(--bl-bg);color:var(--bl-tx)}
.bm2{background:var(--surf2);color:var(--mt)}
.dot{display:inline-block;width:7px;height:7px;border-radius:50%}
.dg{background:var(--gn)}.da{background:var(--am)}.dr{background:var(--rd)}.db{background:var(--bl)}
.btn{display:inline-flex;align-items:center;gap:5px;height:29px;padding:0 11px;border-radius:var(--r);font-size:11.5px;font-weight:500;cursor:pointer;border:1px solid var(--bdr);background:var(--surf2);color:var(--tx);transition:background .13s,border-color .13s;font-family:inherit}
.btn:hover{background:var(--surf-h);border-color:var(--bdr2)}
.btn:disabled{opacity:0.5;cursor:not-allowed;pointer-events:none}
.btn-p:disabled{opacity:0.5}
.btn-p{background:var(--gold);color:#151008;border-color:var(--gold);font-weight:600}
.btn-p:hover{background:var(--gold-h);border-color:var(--gold-h)}
.btn-d{background:var(--rd-bg);color:var(--rd-tx);border-color:rgba(240,85,74,.35)}
.btn i{font-size:12px}
.fr{display:grid;gap:9px;margin-bottom:11px}
.fr.c2{grid-template-columns:1fr 1fr}
.fr.c3{grid-template-columns:1fr 1fr 1fr}
.fld{display:flex;flex-direction:column;gap:4px}
.fld label{font-size:11.5px;font-weight:500;color:var(--tx)}
.fld input,.fld select,.fld textarea{height:29px;padding:0 9px;border:1px solid var(--bdr);border-radius:var(--r);font-size:12px;font-family:inherit;background:var(--surf2);color:var(--tx);outline:none;transition:border .12s}
.fld textarea{height:76px;padding:7px 9px;resize:vertical}
.fld input:focus,.fld select:focus,.fld textarea:focus{border-color:var(--sky)}
.fld input::placeholder,.fld textarea::placeholder{color:var(--ht)}
.sbar{display:flex;align-items:center;gap:7px;height:29px;padding:0 9px;border:1px solid var(--bdr);border-radius:var(--r);background:var(--surf2);margin-bottom:11px}
.sbar i{color:var(--ht);font-size:13px}
.sbar input{border:none;background:transparent;font-size:12px;font-family:inherit;color:var(--tx);outline:none;flex:1}
.sbar input::placeholder{color:var(--ht)}
.mo{display:none;position:absolute;inset:0;background:rgba(0,0,0,.6);z-index:100;align-items:center;justify-content:center}
.mo.open{display:flex}
.md{background:var(--glass-bg);backdrop-filter:var(--glass-blur);-webkit-backdrop-filter:var(--glass-blur);border-radius:var(--rl);padding:19px;width:470px;max-height:82vh;overflow-y:auto;border:1px solid var(--bdr2);box-shadow:var(--shadow-lg)}
.md-t{font-size:14px;font-weight:600;margin-bottom:15px;display:flex;align-items:center;justify-content:space-between;color:var(--tx)}
.md-x{cursor:pointer;color:var(--mt);border:none;background:none;font-size:18px;line-height:1}
.md-x:hover{color:var(--tx)}
.ev-row{display:flex;align-items:flex-start;gap:9px;padding:8px 0;border-bottom:1px solid var(--bdr)}
.ev-row:last-child{border-bottom:none}
.ev-dt{width:35px;height:36px;background:var(--surf2);border-radius:8px;display:flex;flex-direction:column;align-items:center;justify-content:center;flex-shrink:0}
.ev-day{font-size:15px;font-weight:600;line-height:1;color:var(--tx)}
.ev-mo{font-size:8.5px;text-transform:uppercase;color:var(--mt)}
.sh-row{display:flex;align-items:center;gap:8px;padding:7px 0;border-bottom:1px solid var(--bdr)}
.sh-row:last-child{border-bottom:none}
.sh-av{width:27px;height:27px;border-radius:50%;background:var(--bl-bg);color:var(--bl-tx);font-size:9px;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.al-row{display:flex;align-items:flex-start;gap:8px;padding:8px 0;border-bottom:1px solid var(--bdr)}
.al-row:last-child{border-bottom:none}
.al-ic{width:27px;height:27px;border-radius:8px;display:flex;align-items:center;justify-content:center;flex-shrink:0;font-size:13px}
.tk-row{display:flex;align-items:flex-start;gap:7px;padding:6px 0;border-bottom:1px solid var(--bdr)}
.tk-row:last-child{border-bottom:none}
.tc{width:15px;height:15px;border:1.5px solid var(--bdr2);border-radius:4px;flex-shrink:0;cursor:pointer;margin-top:1px;display:flex;align-items:center;justify-content:center;transition:background .1s,border .1s}
.tc.done{background:var(--gn);border-color:var(--gn);color:#0A0E17}
.kb{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-bottom:13px}
.kc{background:var(--surf);border:1px solid var(--bdr);border-radius:var(--rl);overflow:hidden}
.kh{padding:9px 11px;border-bottom:1px solid var(--bdr);display:flex;align-items:center;justify-content:space-between;border-top:2px solid transparent;color:var(--tx)}
.kh.k1{border-top-color:var(--bdr2)}.kh.k2{border-top-color:var(--bl)}.kh.k3{border-top-color:var(--rd)}.kh.k4{border-top-color:var(--gn)}
.kb2{padding:7px;min-height:175px;display:flex;flex-direction:column;gap:5px}
.tk-card{background:var(--bg);border:1px solid var(--bdr);border-radius:8px;padding:8px;cursor:pointer;transition:border-color .1s}
.tk-card:hover{border-color:var(--bdr2)}
.tk-ct{font-size:11.5px;color:var(--tx);margin-bottom:5px;line-height:1.4}
.tk-cm{display:flex;align-items:center;gap:4px;flex-wrap:wrap}
.mch{display:flex;align-items:flex-end;gap:3px;height:50px;margin-bottom:7px}
.mb{flex:1;border-radius:3px 3px 0 0}
.rw{display:flex;align-items:center;gap:13px}
.ring{position:relative;width:62px;height:62px;flex-shrink:0}
.ring-v{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:600;color:var(--tx)}
.tgl{width:31px;height:17px;border-radius:99px;position:relative;cursor:pointer;transition:background .15s;flex-shrink:0}
.tgl.on{background:var(--gn)}.tgl.off{background:var(--surf2);border:1px solid var(--bdr2)}
.tgl::after{content:'';position:absolute;width:13px;height:13px;background:#fff;border-radius:50%;top:2px;transition:left .15s}
.tgl.on::after{left:16px}.tgl.off::after{left:1px}
.cn{font-family:'IBM Plex Mono',monospace;font-size:11px;font-weight:500;color:var(--tx)}
.sb2{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px}
.sl{font-size:10px;font-weight:500;color:var(--mt);text-transform:uppercase;letter-spacing:.07em}
.gg{display:grid;grid-template-columns:1fr 1fr;gap:13px 22px}
.ni-item{display:flex;align-items:flex-start;gap:9px;padding:9px 13px;border-bottom:1px solid var(--bdr);cursor:pointer;transition:background .12s}
.ni-item:hover{background:var(--surf-h)}
.ni-item.unread{background:var(--sky-bg)}
.ni-dot{width:7px;height:7px;border-radius:50%;background:var(--sky);flex-shrink:0;margin-top:4px}
.bnr{display:flex;align-items:center;gap:7px;padding:8px 13px;border-radius:8px;font-size:11.5px;margin-bottom:13px}
.bnr.warn{background:var(--am-bg);color:var(--am-tx);border:1px solid rgba(245,166,35,.35)}
.bnr.danger{background:var(--rd-bg);color:var(--rd-tx);border:1px solid rgba(240,85,74,.35)}
.bnr.info{background:var(--bl-bg);color:var(--bl-tx);border:1px solid rgba(79,182,236,.35)}
.fg{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-bottom:13px}
.fc{background:var(--surf);border:1px solid var(--bdr);border-radius:var(--rl);padding:13px;cursor:pointer;transition:border-color .1s}
.fc:hover{border-color:var(--sky)}
.fc i{font-size:19px;color:var(--sky-tx);margin-bottom:7px;display:block;opacity:.85}
.empty{padding:38px;text-align:center;color:var(--mt);font-size:12px}
.empty i{font-size:26px;opacity:.3;display:block;margin:0 auto 7px}
.edots{display:flex;gap:2px}
.edot{width:10px;height:10px;border-radius:2px}
.edot.f{background:var(--gold)}.edot.e{background:var(--surf2)}

/* ── OTIS AI WIDGET ── */
#otis-widget{position:fixed;bottom:24px;right:24px;z-index:9900;font-family:inherit}
#otis-bubble{
  width:52px;height:52px;border-radius:50%;
  background:var(--gold);border:none;cursor:pointer;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  box-shadow:0 4px 20px rgba(214,173,78,.3);
  transition:transform .2s,box-shadow .2s,background .15s;
}
#otis-bubble:hover{transform:scale(1.07);box-shadow:0 6px 24px rgba(214,173,78,.4);background:var(--gold-h)}
#otis-bubble.active{transform:scale(1.07)}
.otis-bubble-o{font-size:21px;font-weight:700;color:#151008;line-height:1;letter-spacing:-.5px}
.otis-bubble-label{font-size:7px;font-weight:600;color:rgba(21,16,8,.65);text-transform:uppercase;letter-spacing:.1em;margin-top:1px}
#otis-panel{
  position:fixed;bottom:88px;right:24px;
  width:360px;height:510px;
  background:var(--glass-bg);backdrop-filter:var(--glass-blur);-webkit-backdrop-filter:var(--glass-blur);
  border-radius:16px;border:1px solid var(--bdr2);
  box-shadow:var(--shadow-lg);
  display:flex;flex-direction:column;overflow:hidden;
  opacity:0;transform:translateY(12px) scale(.97);
  pointer-events:none;
  transition:opacity .2s ease,transform .2s ease;
}
#otis-panel.open{opacity:1;transform:translateY(0) scale(1);pointer-events:all}
#otis-header{
  background:var(--surf2);padding:13px 15px;border-bottom:1px solid var(--bdr);
  display:flex;align-items:center;justify-content:space-between;flex-shrink:0;
}
.otis-hd-left{display:flex;align-items:center;gap:10px}
.otis-avatar-sm{
  width:34px;height:34px;border-radius:50%;
  background:var(--sky-bg);
  display:flex;align-items:center;justify-content:center;
  font-size:16px;font-weight:700;color:var(--sky-tx);flex-shrink:0;
}
.otis-title{font-size:13.5px;font-weight:700;color:var(--tx);line-height:1.2}
.otis-sub{font-size:10px;color:var(--mt);margin-top:1px}
.otis-close{
  background:none;border:none;cursor:pointer;
  color:var(--mt);font-size:15px;padding:4px;line-height:1;
  border-radius:4px;transition:color .15s,background .15s;
}
.otis-close:hover{color:var(--tx);background:var(--surf-h)}
#otis-msgs{
  flex:1;overflow-y:auto;padding:13px 13px 8px;
  display:flex;flex-direction:column;gap:9px;scroll-behavior:smooth;
}
#otis-msgs::-webkit-scrollbar{width:4px}
#otis-msgs::-webkit-scrollbar-thumb{background:var(--bdr2);border-radius:2px}
.otis-msg{
  max-width:87%;font-size:12.5px;line-height:1.5;
  padding:9px 12px;border-radius:14px;word-break:break-word;white-space:pre-wrap;
}
.otis-msg.user{align-self:flex-end;background:var(--sky);color:#0A1620;border-bottom-right-radius:4px;font-weight:500}
.otis-msg.ai{align-self:flex-start;background:var(--surf2);color:var(--tx);border-bottom-left-radius:4px}
.otis-msg.ai.error{background:var(--rd-bg);color:var(--rd-tx)}
.otis-typing-wrap{display:flex;align-items:center;gap:5px;padding:11px 14px}
.otis-typing-wrap span{
  width:7px;height:7px;border-radius:50%;background:var(--ht);
  animation:otisBounce 1.1s ease-in-out infinite;
}
.otis-typing-wrap span:nth-child(2){animation-delay:.18s}
.otis-typing-wrap span:nth-child(3){animation-delay:.36s}
@keyframes otisBounce{0%,60%,100%{transform:translateY(0)}30%{transform:translateY(-5px)}}
#otis-input-wrap{
  padding:10px 11px;border-top:1px solid var(--bdr);
  display:flex;align-items:flex-end;gap:7px;flex-shrink:0;background:var(--surf2);
}
#otis-input{
  flex:1;resize:none;border:1.5px solid var(--bdr);border-radius:10px;
  padding:8px 11px;font-size:12.5px;font-family:inherit;
  outline:none;line-height:1.45;max-height:100px;overflow-y:auto;
  transition:border-color .15s;background:var(--bg);color:var(--tx);
}
#otis-input:focus{border-color:var(--sky)}
#otis-input::placeholder{color:var(--ht)}
#otis-send-btn{
  width:34px;height:34px;border-radius:9px;border:none;cursor:pointer;
  background:var(--sky);color:#0A1620;flex-shrink:0;
  display:flex;align-items:center;justify-content:center;
  transition:background .15s,transform .1s;
}
#otis-send-btn:hover{background:var(--sky-h)}
#otis-send-btn:active{transform:scale(.92)}
#otis-send-btn:disabled{background:var(--surf2);color:var(--ht);cursor:not-allowed;transform:none}
.otis-qp{transition:background .13s,border-color .13s,transform .1s}
.otis-qp:hover{background:var(--surf-h)!important;border-color:var(--bdr2)!important}
.otis-qp:active{transform:scale(.96)}
#otis-powered{
  padding:5px 13px 9px;font-size:9.5px;color:var(--ht);
  text-align:center;flex-shrink:0;line-height:1.3;
}
@media(max-width:480px){
  #otis-panel{width:calc(100vw - 20px);height:72vh;bottom:82px;right:10px}
  #otis-widget{bottom:16px;right:14px}
}
