/* =========================================================
   MiniKit + All Prototype Styles
   Shared Chrome frame, then per-project themes.
   Design canvas: 640 × 432 inside the .mk-screen
   ========================================================= */

/* ── MiniKit shared ────────────────────────────────────── */
.mk-frame {
  width: 100%; aspect-ratio: 640 / 432;
  border-radius: 10px; overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 11px; line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  box-shadow: 0 8px 32px -8px rgba(0,0,0,.25);
  display: flex; flex-direction: column;
}
.mk-chrome {
  display: flex; align-items: center; gap: 8px;
  height: 28px; min-height: 28px; padding: 0 10px;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.mk-dots { display: flex; gap: 5px; }
.mk-dots span {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(0,0,0,.12);
}
.mk-dots span:first-child { background: #ff5f57; }
.mk-dots span:nth-child(2) { background: #febc2e; }
.mk-dots span:last-child { background: #28c840; }
.mk-url {
  flex: 1; text-align: center;
  font-size: 10px; color: rgba(0,0,0,.4);
  font-family: 'SF Mono', 'JetBrains Mono', monospace;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mk-lock { margin-right: 4px; font-size: 9px; }
.mk-sp { width: 52px; }
.mk-screen {
  flex: 1; overflow: hidden; position: relative;
  background: #f5f5f5;
}

.mk-ic { vertical-align: middle; flex-shrink: 0; }

.mk-enter {
  animation: mkEnter .45s ease both;
  will-change: transform, opacity;
  backface-visibility: hidden;
}
@keyframes mkEnter {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* =========================================================
   BliwaImmo
   ========================================================= */
.immo-mini { height: 100%; display: flex; flex-direction: column; background: #eef1f5; color: #1e293b; }

/* navbar */
.im-nav {
  display: flex; align-items: center; gap: 10px;
  padding: 0 14px; height: 36px; background: #fff;
  border-bottom: 1px solid #e2e8f0;
}
.im-logo {
  font-weight: 700; font-size: 11px; color: #16223f;
  display: flex; align-items: center; gap: 4px;
  background: none; border: none; cursor: pointer;
}
.im-logo-mk {
  width: 18px; height: 18px; border-radius: 5px;
  background: #059669; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700;
}
.im-links { display: flex; gap: 10px; margin-left: auto; }
.im-links a {
  font-size: 10px; color: #64748b; cursor: pointer;
  text-decoration: none; font-weight: 500;
}
.im-links a.on { color: #059669; font-weight: 600; }
.im-nav-r { display: flex; align-items: center; gap: 8px; margin-left: 10px; }
.im-lang { font-size: 9px; color: #94a3b8; }
.im-cta {
  background: #059669; color: #fff; border: none; border-radius: 6px;
  padding: 3px 8px; font-size: 9px; font-weight: 600;
  display: flex; align-items: center; gap: 3px; cursor: pointer;
}

/* hero */
.im-hero {
  padding: 18px 18px 8px; text-align: center;
}
.im-hero h2 { font-size: 17px; font-weight: 700; color: #16223f; margin: 0 0 4px; }
.im-hero p { font-size: 10px; color: #64748b; margin: 0; }

/* search bar */
.im-searchwrap { padding: 0 18px 10px; }
.im-search {
  display: flex; align-items: stretch; gap: 1px;
  background: #fff; border-radius: 10px; padding: 6px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.im-field { flex: 1; display: flex; flex-direction: column; gap: 1px; padding: 0 6px; }
.im-flabel { font-size: 8px; font-weight: 600; color: #94a3b8; text-transform: uppercase; letter-spacing: .04em; }
.im-finput {
  font-size: 9px; color: #334155;
  display: flex; align-items: center; gap: 3px;
}
.im-finput.sel { color: #64748b; }
.im-finput i { font-style: normal; font-size: 8px; margin-left: auto; color: #94a3b8; }
.im-search-btn {
  background: #059669; color: #fff; border: none; border-radius: 8px;
  padding: 0 10px; font-size: 9px; font-weight: 600;
  display: flex; align-items: center; gap: 3px; cursor: pointer; white-space: nowrap;
}

/* grid */
.im-grid-h { padding: 0 18px 6px; font-size: 10px; color: #64748b; }
.im-grid-h b { color: #16223f; }
.im-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 18px 14px; }
.im-card {
  background: #fff; border-radius: 10px; overflow: hidden;
  border: none; text-align: left; cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  transition: transform .2s;
}
.im-card:hover { transform: translateY(-2px); }
.im-card-img {
  height: 72px; position: relative; display: flex; align-items: flex-end; padding: 6px;
}
.im-badge {
  position: absolute; top: 6px; left: 6px;
  font-size: 7px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  padding: 2px 5px; border-radius: 4px; color: #fff;
}
.im-badge.sale { background: #059669; }
.im-badge.rent { background: #3b82f6; }
.im-fav {
  position: absolute; top: 6px; right: 6px;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(255,255,255,.85); display: flex; align-items: center; justify-content: center;
  color: #94a3b8;
}
.im-pricepill {
  background: rgba(0,0,0,.65); color: #fff; border-radius: 5px;
  padding: 2px 6px; font-size: 9px; font-weight: 700;
  margin-left: auto;
}
.im-pricepill span { font-weight: 400; font-size: 7px; opacity: .75; }
.im-card-b { padding: 6px 8px; }
.im-card-t { font-size: 10px; font-weight: 600; color: #16223f; }
.im-card-loc { font-size: 8px; color: #64748b; display: flex; align-items: center; gap: 2px; margin-top: 2px; }
.im-card-meta {
  display: flex; gap: 8px; margin-top: 4px;
}
.im-card-meta span { font-size: 8px; color: #94a3b8; display: flex; align-items: center; gap: 2px; }

/* detail page */
.im-detail { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; padding: 14px; }
.im-gallery { display: flex; flex-direction: column; gap: 6px; }
.im-gal-main {
  flex: 1; border-radius: 10px; position: relative; min-height: 140px;
}
.im-gal-thumbs { display: flex; gap: 4px; }
.im-gal-thumbs span {
  flex: 1; height: 36px; border-radius: 6px;
}
.im-gal-more {
  flex: 1; height: 36px; border-radius: 6px;
  background: rgba(0,0,0,.06); display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: #64748b; font-weight: 600;
}
.im-detail-side { display: flex; flex-direction: column; gap: 8px; }
.im-d-price { font-size: 18px; font-weight: 800; color: #16223f; }
.im-d-price span { font-size: 11px; font-weight: 500; color: #64748b; }
.im-d-title { font-size: 13px; font-weight: 600; color: #16223f; }
.im-d-specs { display: flex; gap: 10px; }
.im-d-specs div { font-size: 9px; color: #64748b; }
.im-d-specs b { display: block; font-size: 14px; color: #16223f; }
.im-amenities { display: flex; flex-wrap: wrap; gap: 4px; }
.im-amenities span {
  font-size: 8px; padding: 2px 6px; border-radius: 4px;
  background: #ecfdf5; color: #059669; font-weight: 500;
}
.im-agent { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.im-agent-av {
  width: 28px; height: 28px; border-radius: 50%;
  background: #059669; color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700;
}
.im-agent div { font-size: 9px; }
.im-agent b { display: block; color: #16223f; }
.im-agent span { color: #64748b; font-size: 8px; }
.im-book {
  background: #059669; color: #fff; border: none; border-radius: 8px;
  padding: 7px 0; font-size: 10px; font-weight: 600; cursor: pointer;
  width: 100%;
}
.im-map {
  margin: 0 14px 10px; padding: 10px; border-radius: 8px;
  background: #e2e8f0; color: #64748b; font-size: 9px;
  display: flex; align-items: center; gap: 4px; justify-content: center;
}

/* admin */
.im-admin { display: flex; height: 100%; background: #f1f5f9; }
.im-aside {
  width: 140px; background: #16223f; color: #fff;
  display: flex; flex-direction: column; padding: 10px 8px;
}
.im-aside-logo {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; color: #fff;
  background: none; border: none; cursor: pointer; margin-bottom: 14px;
}
.im-aside-logo .im-logo-mk {
  width: 20px; height: 20px; border-radius: 5px;
  background: #059669; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700;
}
.im-aitem {
  display: flex; align-items: center; gap: 7px;
  padding: 5px 8px; border-radius: 6px; font-size: 10px;
  color: rgba(255,255,255,.55); cursor: pointer;
  transition: background .15s;
}
.im-aitem.on { background: rgba(255,255,255,.1); color: #fff; font-weight: 600; }
.im-signout {
  margin-top: auto; font-size: 9px; color: rgba(255,255,255,.4);
  display: flex; align-items: center; gap: 5px; padding: 5px 8px;
}
.im-acontent { flex: 1; padding: 10px 14px; overflow-y: auto; }
.im-ahead {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px;
}
.im-asearch {
  font-size: 10px; color: #94a3b8;
  display: flex; align-items: center; gap: 5px;
  background: #fff; padding: 5px 10px; border-radius: 6px;
  border: 1px solid #e2e8f0; flex: 1; max-width: 280px;
}
.im-aavatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: #059669; color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700;
}

/* metrics */
.im-ametrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.im-am {
  background: #fff; border-radius: 10px; padding: 10px;
  border: 1px solid #e2e8f0;
}
.im-am-ic {
  width: 26px; height: 26px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 6px;
}
.im-am.blue .im-am-ic { background: #dbeafe; color: #3b82f6; }
.im-am.emerald .im-am-ic { background: #d1fae5; color: #059669; }
.im-am.dark .im-am-ic { background: #e2e8f0; color: #475569; }
.im-am.orange .im-am-ic { background: #ffedd5; color: #f97316; }
.im-am-v { font-size: 18px; font-weight: 800; color: #16223f; }
.im-am-l { font-size: 8px; color: #94a3b8; }
.im-am-l b { color: #059669; }

/* admin cards */
.im-arow { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.im-acard {
  background: #fff; border-radius: 10px; padding: 10px 12px;
  border: 1px solid #e2e8f0;
}
.im-acard-h {
  font-size: 10px; font-weight: 600; color: #16223f; margin-bottom: 8px;
}
.im-acard-h span { font-weight: 400; color: #94a3b8; margin-left: 4px; font-size: 9px; }
.im-mix { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }
.im-mix-l { font-size: 9px; color: #64748b; width: 65px; }
.im-mix-track {
  flex: 1; height: 6px; background: #f1f5f9; border-radius: 3px; overflow: hidden;
}
.im-mix-track i { display: block; height: 100%; border-radius: 3px; }
.im-mix b { font-size: 9px; color: #16223f; width: 28px; text-align: right; }
.im-star {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 0; font-size: 9px; color: #64748b;
}
.im-star span { flex: 1; }
.im-star b { color: #16223f; }
.im-star .mk-ic { color: #f59e0b; }


/* =========================================================
   CDR FraudGuard
   ========================================================= */
.cdr-mini {
  --bg: #0d1828; --surface: #13202f; --border: #1d3045;
  --ink: #e4ecf5; --soft: #7a90a8; --dim: #3d5570;
  --green: #2fe3a4; --amber: #f5a623; --red: #ff4c6a;
  --sky: #5eb8ff;
  display: flex; height: 100%; background: var(--bg); color: var(--ink);
  font-size: 10px;
}

.cdr-rail {
  width: 42px; background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center;
  padding: 8px 0; gap: 0;
}
.cdr-mark { color: var(--green); margin-bottom: 12px; padding-top: 2px; }
.cdr-rnav {
  width: 30px; height: 30px; border-radius: 7px;
  background: none; border: none; color: var(--dim); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.cdr-rnav.on { background: rgba(47,227,164,.12); color: var(--green); }
.cdr-rnav.dim { opacity: .35; cursor: default; }
.cdr-rail-foot { margin-top: auto; }

.cdr-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.cdr-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 12px; border-bottom: 1px solid var(--border);
}
.cdr-top-tt b { font-size: 11px; }
.cdr-top-tt span { font-size: 9px; color: var(--soft); margin-left: 8px; }
.cdr-top-r { display: flex; align-items: center; gap: 8px; }
.cdr-live {
  display: flex; align-items: center; gap: 4px;
  font-size: 8px; font-weight: 700; color: var(--green);
  text-transform: uppercase; letter-spacing: .06em;
}
.cdr-live i {
  width: 5px; height: 5px; border-radius: 50%; background: var(--green);
  animation: cdrPulse 2s ease infinite;
}
@keyframes cdrPulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
.cdr-clock { font-family: 'SF Mono', monospace; font-size: 9px; color: var(--soft); }
.cdr-tchip {
  font-size: 7px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  padding: 2px 6px; border-radius: 4px;
  display: flex; align-items: center; gap: 3px;
}
.cdr-tchip i { width: 4px; height: 4px; border-radius: 50%; }
.cdr-tchip.elevated { background: rgba(245,166,35,.15); color: var(--amber); }
.cdr-tchip.elevated i { background: var(--amber); }
.cdr-tchip.severe { background: rgba(255,76,106,.15); color: var(--red); }
.cdr-tchip.severe i { background: var(--red); }

.cdr-body { flex: 1; overflow: hidden; padding: 8px 10px; display: flex; flex-direction: column; }
.cdr-page { display: flex; flex-direction: column; gap: 8px; flex: 1; min-height: 0; }

/* tiles */
.cdr-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.cdr-tile {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 7px 9px;
}
.cdr-tile-l { font-size: 8px; color: var(--soft); display: flex; align-items: center; gap: 4px; }
.cdr-tile-v { font-size: 16px; font-weight: 800; color: var(--ink); margin: 2px 0; }
.cdr-tile-v small { font-size: 10px; font-weight: 500; color: var(--soft); }
.cdr-tile-s { font-size: 8px; color: var(--dim); }
.cdr-tile-s b { color: var(--green); }

/* monitor */
.cdr-mon { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* nodes */
.cdr-nodes { display: flex; flex-direction: column; gap: 6px; }
.cdr-node {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 10px;
}
.cdr-node-h { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }
.cdr-dot { width: 6px; height: 6px; border-radius: 50%; }
.cdr-dot.ok { background: var(--green); }
.cdr-dot.warn { background: var(--amber); }
.cdr-node-h b { font-size: 10px; }
.cdr-node-h .st { font-size: 8px; margin-left: auto; color: var(--soft); }
.cdr-node.warn .st { color: var(--amber); }
.cdr-node-f {
  font-family: 'SF Mono', monospace; font-size: 8px; color: var(--dim);
  margin-bottom: 6px;
}
.cdr-node-f i { color: var(--soft); margin-right: 3px; font-style: normal; }
.cdr-seqpill {
  background: rgba(94,184,255,.12); color: var(--sky);
  padding: 0 3px; border-radius: 2px; font-size: 8px;
}
.cdr-timer { margin-top: 4px; }
.cdr-timer-l { display: flex; justify-content: space-between; font-size: 8px; color: var(--dim); margin-bottom: 2px; }
.cdr-timer-tr { height: 4px; background: rgba(255,255,255,.06); border-radius: 2px; overflow: hidden; }
.cdr-timer-tr i { display: block; height: 100%; border-radius: 2px; transition: width .3s; }
.cdr-timer-tr i.ok { background: var(--green); }
.cdr-timer-tr i.warn { background: var(--amber); }

/* panels */
.cdr-panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px;
}
.cdr-ph {
  font-size: 10px; font-weight: 600; color: var(--ink);
  display: flex; align-items: center; gap: 5px; margin-bottom: 8px;
}
.cdr-ph span { font-weight: 400; font-size: 8px; color: var(--dim); margin-left: auto; }

/* gauge */
.cdr-gaugew { display: flex; flex-direction: column; }
.cdr-gauge {
  position: relative; display: flex; justify-content: center;
  margin: -4px 0 4px;
}
.cdr-gauge svg { display: block; }
.cdr-gauge-c {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -30%);
  text-align: center;
}
.cdr-gauge-lv { font-size: 10px; font-weight: 800; letter-spacing: .06em; }
.cdr-gauge-sc { font-size: 8px; color: var(--dim); }

/* sparkline */
.cdr-spark { margin-top: auto; }
.cdr-spark-l { display: flex; justify-content: space-between; font-size: 8px; color: var(--dim); margin-bottom: 3px; }
.cdr-spark svg { width: 100%; height: 36px; display: block; }

/* fraud engine */
.cdr-ml { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cdr-model-v { font-size: 20px; font-weight: 800; margin: 4px 0; }
.cdr-model-sub { font-size: 9px; color: var(--soft); margin-bottom: 6px; }
.cdr-scorebar {
  height: 4px; background: rgba(255,255,255,.06); border-radius: 2px; overflow: hidden;
}
.cdr-scorebar i { display: block; height: 100%; background: var(--amber); border-radius: 2px; }
.cdr-chips { display: flex; gap: 4px; margin-top: 6px; }
.cdr-chip {
  font-size: 8px; padding: 2px 6px; border-radius: 3px;
  background: rgba(255,255,255,.05); color: var(--dim);
  border: 1px solid var(--border);
}
.cdr-chip.on { background: rgba(255,76,106,.15); color: var(--red); border-color: rgba(255,76,106,.3); }

/* feature matrix */
.cdr-feat { margin-top: 0; }
.cdr-frow {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,.04);
}
.cdr-frow:last-child { border-bottom: none; }
.cdr-frow-n { flex: 1; font-size: 9px; color: var(--ink); }
.cdr-frow-n em { display: block; font-size: 7px; color: var(--dim); font-style: normal; }
.cdr-frow-v { font-family: 'SF Mono', monospace; font-size: 10px; font-weight: 700; width: 38px; text-align: right; }
.cdr-frow-tr { width: 60px; height: 4px; background: rgba(255,255,255,.06); border-radius: 2px; overflow: hidden; }
.cdr-frow-tr i { display: block; height: 100%; border-radius: 2px; }
.cdr-fstat { font-size: 8px; font-weight: 700; width: 36px; text-align: right; }

/* sigs */
.cdr-sigs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.cdr-sig {
  border-radius: 8px; padding: 8px; border: 1px solid var(--border);
  background: var(--surface);
}
.cdr-sig.red { border-color: rgba(255,76,106,.25); }
.cdr-sig.amber { border-color: rgba(245,166,35,.25); }
.cdr-sig.green { border-color: rgba(47,227,164,.25); }
.cdr-sig-h { font-size: 10px; font-weight: 700; display: flex; align-items: center; gap: 4px; margin-bottom: 3px; }
.cdr-sig.red .cdr-sig-h { color: var(--red); }
.cdr-sig.amber .cdr-sig-h { color: var(--amber); }
.cdr-sig.green .cdr-sig-h { color: var(--green); }
.cdr-sig-b { font-size: 8px; color: var(--soft); margin-bottom: 5px; }
.cdr-sig-conf { font-size: 8px; color: var(--dim); }
.cdr-sig-conf b { font-size: 14px; color: var(--ink); margin-right: 3px; }

/* log console */
.cdr-logtools {
  display: flex; align-items: center; gap: 6px; margin-bottom: 6px;
}
.cdr-search {
  flex: 1; font-size: 9px; color: var(--dim);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 5px; padding: 4px 8px;
  display: flex; align-items: center; gap: 4px;
}
.cdr-fchip {
  font-size: 8px; padding: 2px 6px; border-radius: 3px;
  background: rgba(255,255,255,.04); color: var(--dim);
  cursor: pointer;
}
.cdr-fchip.on { background: rgba(47,227,164,.12); color: var(--green); }
.cdr-export {
  font-size: 8px; color: var(--dim); display: flex; align-items: center; gap: 3px; cursor: pointer;
}
.cdr-logwrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; flex: 1; min-height: 0; overflow: hidden; }
.cdr-logfeed { display: flex; flex-direction: column; gap: 1px; font-family: 'SF Mono', monospace; overflow: hidden; }
.cdr-logrow {
  display: flex; align-items: center; gap: 6px; font-size: 8px;
  padding: 2px 0; border-bottom: 1px solid rgba(255,255,255,.03);
}
.cdr-logrow .ts { color: var(--dim); width: 48px; flex-shrink: 0; }
.cdr-logrow .src { color: var(--sky); width: 32px; flex-shrink: 0; font-weight: 600; }
.cdr-tag {
  font-size: 7px; padding: 1px 4px; border-radius: 2px; font-weight: 600;
  flex-shrink: 0;
}
.cdr-tag.proc { background: rgba(47,227,164,.12); color: var(--green); }
.cdr-tag.ml { background: rgba(94,184,255,.12); color: var(--sky); }
.cdr-tag.gap { background: rgba(245,166,35,.12); color: var(--amber); }
.cdr-tag.alert { background: rgba(255,76,106,.12); color: var(--red); }
.cdr-logrow .msg { color: var(--soft); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* alerts sidebar */
.cdr-alerts { display: flex; flex-direction: column; overflow: hidden; }
.cdr-alert {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,.04);
}
.cdr-alert:last-child { border-bottom: none; }
.cdr-acode {
  width: 22px; height: 22px; border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 800;
}
.cdr-acode.severe { background: rgba(255,76,106,.15); color: var(--red); }
.cdr-acode.critical { background: rgba(245,166,35,.15); color: var(--amber); }
.cdr-acode.warning { background: rgba(94,184,255,.12); color: var(--sky); }
.cdr-atx { flex: 1; min-width: 0; }
.cdr-atx b { display: block; font-size: 9px; color: var(--ink); }
.cdr-atx span { font-size: 8px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.cdr-asev {
  font-size: 7px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  flex-shrink: 0;
}
.cdr-asev.severe { color: var(--red); }
.cdr-asev.critical { color: var(--amber); }
.cdr-asev.warning { color: var(--sky); }


/* =========================================================
   EVOXBot — VoIP Sales Dashboard (Streamlit aesthetic)
   ========================================================= */
.evox-mini {
  display: flex; height: 100%; background: #e9ebf0; color: #1a1a2e;
  font-size: 10px;
}

/* sidebar */
.evx-side {
  width: 155px; background: #fff; border-right: 1px solid #e0e3e8;
  display: flex; flex-direction: column; padding: 10px 10px;
}
.evx-brand {
  font-size: 13px; font-weight: 700; color: #FF4B4B; margin-bottom: 2px;
}
.evx-brand span { display: block; font-size: 9px; color: #9ca3af; font-weight: 400; }
.evx-cap {
  font-size: 8px; color: #9ca3af; text-transform: uppercase; letter-spacing: .06em;
  margin: 10px 0 6px; font-weight: 600;
}
.evx-nav { display: flex; flex-direction: column; gap: 1px; }
.evx-navi {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 6px; border-radius: 5px; font-size: 10px;
  background: none; border: none; color: #4b5563; cursor: pointer;
  text-align: left;
}
.evx-navi.on { background: #fef2f2; color: #FF4B4B; font-weight: 600; }
.evx-navi.dim { opacity: .45; cursor: default; }
.evx-radio {
  width: 10px; height: 10px; border-radius: 50%;
  border: 1.5px solid #d1d5db; flex-shrink: 0;
}
.evx-radio.on { border-color: #FF4B4B; background: #FF4B4B; box-shadow: inset 0 0 0 2px #fff; }
.evx-navlbl { white-space: nowrap; }
.evx-side-foot { margin-top: auto; padding-top: 8px; border-top: 1px solid #e0e3e8; }
.evx-side-lbl { font-size: 8px; color: #9ca3af; margin-bottom: 2px; }
.evx-daterange {
  font-size: 9px; color: #1a1a2e; font-weight: 500;
  background: #f3f4f6; padding: 3px 6px; border-radius: 4px;
}

.evx-main { flex: 1; overflow-y: auto; padding: 10px 14px; }
.evx-page { display: flex; flex-direction: column; gap: 10px; }
.evx-h { display: flex; align-items: baseline; justify-content: space-between; }
.evx-h h3 { font-size: 14px; font-weight: 700; margin: 0; }
.evx-select { font-size: 9px; color: #6b7280; }
.evx-select b { color: #1a1a2e; }

/* metrics */
.evx-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.evx-metric {
  background: #fff; border-radius: 8px; padding: 8px 10px;
  border: 1px solid #e5e7eb;
}
.evx-m-label { font-size: 9px; color: #6b7280; }
.evx-m-val { font-size: 18px; font-weight: 800; color: #1a1a2e; margin: 2px 0; }
.evx-m-delta { font-size: 8px; }
.evx-m-delta.up { color: #10b981; }
.evx-m-delta.down { color: #ef4444; }

/* chart card */
.evx-card {
  background: #fff; border-radius: 8px; padding: 10px 12px;
  border: 1px solid #e5e7eb;
}
.evx-card-h { font-size: 10px; font-weight: 600; color: #1a1a2e; margin-bottom: 6px; }
.evx-card-h span { font-weight: 400; color: #9ca3af; margin-left: 6px; font-size: 9px; }
.evx-chart { width: 100%; height: 100px; display: block; }
.evx-grid { stroke: #f3f4f6; stroke-width: 1; }
.evx-area { fill: rgba(99,102,241,.08); }
.evx-line { fill: none; stroke: #636EFA; stroke-width: 2; }
.evx-dot { fill: #636EFA; }
.evx-foot { font-size: 8px; color: #9ca3af; text-align: center; }

/* daily dashboard */
.evx-alerts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.evx-alert {
  background: #fff; border-radius: 8px; padding: 8px 10px;
  border: 1px solid #e5e7eb;
}
.evx-alert-h {
  font-size: 10px; font-weight: 600; margin-bottom: 6px;
  display: flex; align-items: baseline; gap: 4px;
}
.evx-alert-h span { font-size: 8px; font-weight: 400; color: #9ca3af; }
.evx-alert-h.flag { color: #ef4444; }
.evx-alert-h.warn { color: #f59e0b; }
.evx-alert-h.muted { color: #6b7280; }
.evx-alert-h.good { color: #10b981; }
.evx-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 2px 0; font-size: 9px;
}
.evx-row span { color: #4b5563; }
.evx-row b { font-size: 9px; }
.evx-row b.flag { color: #ef4444; }
.evx-row b.warn { color: #f59e0b; }
.evx-row b.muted { color: #9ca3af; }
.evx-row b.good { color: #10b981; }

/* business overview */
.evx-bo { display: grid; grid-template-columns: 1.2fr 1fr; gap: 10px; }
.evx-table {
  width: 100%; border-collapse: collapse; font-size: 9px;
  background: #fff; border-radius: 8px; overflow: hidden;
  border: 1px solid #e5e7eb;
}
.evx-table th {
  text-align: left; padding: 6px 8px; font-size: 8px; font-weight: 600;
  color: #6b7280; background: #f9fafb; border-bottom: 1px solid #e5e7eb;
}
.evx-table td { padding: 5px 8px; border-bottom: 1px solid #f3f4f6; color: #374151; }
.evx-table .num { text-align: right; font-family: 'SF Mono', monospace; }
.evx-table .up { color: #10b981; font-weight: 600; }
.evx-table .down { color: #ef4444; font-weight: 600; }
.evx-donuts { display: flex; flex-direction: column; gap: 8px; }
.evx-donut-wrap { display: flex; align-items: center; gap: 10px; }
.evx-donut {
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
  position: relative;
}
.evx-donut span {
  position: absolute; inset: 10px; border-radius: 50%; background: #fff;
}
.evx-legend { font-size: 8px; }
.evx-legend-t { font-size: 9px; font-weight: 600; color: #1a1a2e; margin-bottom: 2px; }
.evx-leg { display: flex; align-items: center; gap: 4px; color: #6b7280; line-height: 1.6; }
.evx-leg i { width: 6px; height: 6px; border-radius: 2px; flex-shrink: 0; }
.evx-leg b { margin-left: auto; color: #1a1a2e; }


/* =========================================================
   SYLA Business
   ========================================================= */
.sylab-mini {
  --navy: #16306e; --sky: #5dabd7; --surface: #f4f6fa;
  display: flex; height: 100%; background: var(--surface); color: #1a1a2e;
  font-size: 10px;
}

/* sidebar */
.syb-side {
  width: 148px; background: #fff; border-right: 1px solid #e5e8ef;
  display: flex; flex-direction: column; padding: 10px 8px;
}
.syb-brand { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.syb-brand-mk {
  width: 24px; height: 24px; border-radius: 6px;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
}
.syb-brand-tx { font-size: 12px; font-weight: 700; color: var(--navy); line-height: 1.1; }
.syb-brand-tx em { display: block; font-size: 8px; font-weight: 500; color: var(--sky); font-style: normal; letter-spacing: .06em; }

.syb-nav { display: flex; flex-direction: column; gap: 1px; }
.syb-navi {
  display: flex; align-items: center; gap: 7px;
  padding: 5px 8px; border-radius: 6px; font-size: 10px;
  background: none; border: none; color: #6b7280; cursor: pointer;
  text-align: left;
}
.syb-navi.on { background: rgba(22,48,110,.06); color: var(--navy); font-weight: 600; }
.syb-navi.dim { opacity: .4; cursor: default; }
.syb-navfoot { margin-top: auto; border-top: 1px solid #e5e8ef; padding-top: 6px; }

.syb-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.syb-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 12px; border-bottom: 1px solid #e5e8ef; background: #fff;
}
.syb-collapse { color: #9ca3af; cursor: pointer; }
.syb-top-r { display: flex; align-items: center; gap: 8px; }
.syb-lang { font-size: 9px; color: #6b7280; }
.syb-theme {
  display: flex; background: #f3f4f6; border-radius: 5px; overflow: hidden;
}
.syb-theme i {
  width: 22px; height: 20px; display: flex; align-items: center; justify-content: center;
  color: #9ca3af; font-style: normal; cursor: pointer;
}
.syb-theme i.on { background: #fff; color: var(--navy); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.syb-balance {
  display: flex; align-items: center; gap: 5px; color: var(--navy);
  background: rgba(22,48,110,.04); padding: 3px 8px; border-radius: 6px;
}
.syb-bal-tx em { display: block; font-size: 7px; color: #9ca3af; font-style: normal; }
.syb-bal-tx b { font-size: 10px; color: var(--navy); }
.syb-avatar {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 8px; font-weight: 700;
}

.syb-body { flex: 1; overflow-y: auto; padding: 10px 14px; }
.syb-page { display: flex; flex-direction: column; gap: 10px; }

/* metrics */
.syb-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.syb-cards.three { grid-template-columns: repeat(3, 1fr); }
.syb-num {
  background: #fff; border-radius: 8px; padding: 8px 10px;
  border: 1px solid #e5e8ef;
}
.syb-num-top { font-size: 8px; color: #9ca3af; font-weight: 500; }
.syb-num-v { font-size: 17px; font-weight: 800; color: var(--navy); margin: 2px 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.syb-num-l { font-size: 8px; color: #9ca3af; }

/* dashboard row */
.syb-drow { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; }
.syb-card {
  background: #fff; border-radius: 8px; padding: 10px 12px;
  border: 1px solid #e5e8ef;
}
.syb-card-h {
  font-size: 10px; font-weight: 600; color: var(--navy); margin-bottom: 6px;
  display: flex; align-items: baseline; gap: 6px;
}
.syb-card-h span { font-size: 8px; font-weight: 400; color: #9ca3af; }
.syb-legend { font-size: 8px; color: #9ca3af; margin-left: auto; display: flex; align-items: center; gap: 3px; }
.syb-legend i { width: 8px; height: 3px; border-radius: 1px; background: var(--sky); }

/* bars */
.syb-bars { display: flex; align-items: flex-end; gap: 3px; height: 70px; }
.syb-bar { flex: 1; display: flex; align-items: flex-end; height: 100%; }
.syb-seg {
  width: 100%; border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--navy), var(--sky));
  transition: height .4s ease;
}
.syb-bar-x { display: flex; gap: 3px; margin-top: 2px; }
.syb-bar-x span { flex: 1; text-align: center; font-size: 6px; color: #9ca3af; }

/* gauge */
.syb-rcol { display: flex; flex-direction: column; gap: 8px; }
.syb-gaugecard { text-align: center; }
.syb-gauge { display: flex; justify-content: center; }
.syb-gauge svg { display: block; }
.syb-gauge-t { font-size: 14px; font-weight: 800; fill: var(--navy); }
.syb-gleg { display: flex; flex-direction: column; gap: 2px; text-align: left; font-size: 8px; color: #6b7280; }
.syb-gleg span { display: flex; align-items: center; gap: 4px; }
.syb-gleg i { width: 6px; height: 6px; border-radius: 2px; }
.syb-gleg i.navy { background: var(--navy); }
.syb-gleg i.sky { background: var(--sky); }
.syb-gleg b { margin-left: auto; color: var(--navy); }

/* countries */
.syb-cty { display: flex; align-items: center; gap: 6px; padding: 3px 0; }
.syb-flag { font-size: 14px; }
.syb-cty-tr { flex: 1; height: 5px; background: #e5e8ef; border-radius: 3px; overflow: hidden; }
.syb-cty-tr i { display: block; height: 100%; background: var(--navy); border-radius: 3px; }
.syb-cty b { font-size: 9px; color: var(--navy); width: 42px; text-align: right; }

/* shop page */
.syb-shoppage {}
.syb-shop-title { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.syb-shop-search {
  display: flex; align-items: center; gap: 5px;
  background: #fff; border: 1px solid #e5e8ef; border-radius: 6px;
  padding: 5px 10px; font-size: 9px; color: #9ca3af;
  margin-bottom: 8px;
}
.syb-stabs { display: flex; gap: 4px; margin-bottom: 8px; }
.syb-stabs span {
  font-size: 9px; padding: 3px 8px; border-radius: 5px;
  background: #fff; color: #6b7280; border: 1px solid #e5e8ef;
  cursor: pointer;
}
.syb-stabs span.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.syb-stabs span b { font-weight: 400; opacity: .7; margin-left: 2px; }
.syb-shop-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.syb-prod {
  background: #fff; border-radius: 8px; overflow: hidden;
  border: 1px solid #e5e8ef; display: flex;
}
.syb-prod-flag {
  width: 40px; flex-shrink: 0; position: relative;
}
.syb-prod-dot {
  position: absolute; top: 4px; right: 4px;
  width: 5px; height: 5px; border-radius: 50%; background: #10b981;
}
.syb-prod-b { padding: 5px 8px; flex: 1; min-width: 0; }
.syb-prod-top { display: flex; justify-content: space-between; align-items: baseline; }
.syb-prod-c { font-size: 10px; font-weight: 600; color: var(--navy); }
.syb-prod-price { font-size: 10px; font-weight: 700; color: var(--navy); }
.syb-prod-price i { font-size: 7px; font-weight: 400; color: #9ca3af; font-style: normal; }
.syb-prod-net { font-size: 8px; color: #6b7280; display: flex; align-items: center; gap: 3px; }
.syb-prod-nets { font-size: 7px; color: #9ca3af; margin-top: 2px; }
.syb-prod-chip {
  display: inline-block; font-size: 7px; padding: 1px 5px; border-radius: 3px;
  background: rgba(22,48,110,.06); color: var(--navy); margin-top: 2px;
}

/* billing */
.syb-tabs { display: flex; gap: 4px; margin-bottom: 8px; }
.syb-tabs span {
  font-size: 9px; padding: 3px 8px; border-radius: 5px;
  color: #6b7280; cursor: pointer;
}
.syb-tabs span.on { background: var(--navy); color: #fff; border-radius: 5px; }
.syb-bill { padding: 0; }
.syb-table {
  width: 100%; border-collapse: collapse; font-size: 9px;
}
.syb-table th {
  text-align: left; padding: 6px 8px; font-size: 8px; font-weight: 600;
  color: #6b7280; background: #f9fafb; border-bottom: 1px solid #e5e8ef;
}
.syb-table td { padding: 5px 8px; border-bottom: 1px solid #f3f4f6; color: #374151; }
.syb-table .num { text-align: right; }
.syb-table .mono { font-family: 'SF Mono', monospace; font-size: 9px; }
.syb-badge {
  font-size: 7px; font-weight: 600; padding: 2px 5px; border-radius: 3px;
  text-transform: uppercase; letter-spacing: .03em;
}
.syb-badge.ok { background: #d1fae5; color: #059669; }
.syb-badge.pend { background: #fef3c7; color: #d97706; }
.syb-badge.fail { background: #fee2e2; color: #dc2626; }


/* =========================================================
   Syla eSIM — phone bezel with crossfading screens
   ========================================================= */
.esim-mini {
  height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #e8ede8 0%, #dfe6df 100%);
  overflow: hidden; padding: 10px 0;
}
.esim-stage {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  height: 100%; justify-content: center;
}
.esim-phone {
  width: 130px; height: 265px; border-radius: 20px;
  background: #0d0f0e; padding: 3px;
  box-shadow: 0 12px 40px rgba(18,30,22,.28), 0 0 0 4px #0d0f0e, 0 0 0 5px #232726;
  position: relative; flex-shrink: 0;
}
.esim-island {
  position: absolute; top: 5px; left: 50%; transform: translateX(-50%);
  width: 36px; height: 8px; background: #000; border-radius: 8px; z-index: 3;
}
.esim-screen {
  width: 100%; height: 100%; border-radius: 17px; overflow: hidden;
  position: relative; background: #fbfcfb;
}
.esim-shot {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0;
  transition: opacity .5s ease;
}
.esim-shot.on { opacity: 1; }

/* placeholder for missing screenshots */
.esim-placeholder {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; opacity: 0; transition: opacity .5s ease;
  font-size: 10px; color: rgba(255,255,255,.85);
  font-weight: 600; letter-spacing: .02em;
}
.esim-placeholder.on { opacity: 1; }
.esim-placeholder i {
  font-size: 28px; font-style: normal;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.3));
}

.esim-caption {
  display: flex; align-items: center; gap: 4px;
  font-size: 9px; color: rgba(0,0,0,.4);
  font-weight: 500;
}
.esim-cap-dot {
  width: 4px; height: 4px; border-radius: 50%; background: #2f9e44;
}
.esim-dots { display: flex; gap: 4px; }
.esim-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(0,0,0,.12); border: none; cursor: pointer;
  transition: background .2s;
  padding: 0;
}
.esim-dot.on { background: #2f9e44; }


/* =========================================================
   Syla Team — paper / e-ink dashboard
   ========================================================= */
.syla-mini {
  height: 100%; display: flex; flex-direction: column;
  background: #f5f0e8; color: #1a1a1a;
  font-family: 'IBM Plex Mono', 'SF Mono', monospace; font-size: 9px;
}

/* chrome bar */
.sm-chrome {
  display: flex; align-items: center; gap: 8px;
  height: 26px; min-height: 26px; padding: 0 10px;
  background: #eae5dc; border-bottom: 1px solid #d8d0c4;
}
.sm-dots { display: flex; gap: 5px; }
.sm-dots span { width: 7px; height: 7px; border-radius: 50%; }
.sm-dots span:first-child { background: #ff5f57; }
.sm-dots span:nth-child(2) { background: #febc2e; }
.sm-dots span:last-child { background: #28c840; }
.sm-url {
  flex: 1; text-align: center; font-size: 9px; color: rgba(0,0,0,.35);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sm-lock { color: #3d7a5f; margin-right: 4px; font-size: 8px; }
.sm-chrome-sp { width: 50px; }

/* layout */
.sm-app { flex: 1; display: flex; overflow: hidden; }

/* sidebar */
.sm-side {
  width: 130px; background: #ede8df; border-right: 1px solid #d8d0c4;
  display: flex; flex-direction: column; padding: 8px 7px;
}
.sm-brand { display: flex; align-items: baseline; gap: 3px; margin-bottom: 10px; }
.sm-word {
  font-size: 14px; font-weight: 700; color: #1a1a1a;
  font-family: Georgia, 'Times New Roman', serif; letter-spacing: -.02em;
}
.sm-brand .sm-team {
  font-size: 9px; color: #7a7060; font-weight: 400; letter-spacing: .04em;
}
.sm-side-lbl {
  font-size: 7px; text-transform: uppercase; letter-spacing: .1em;
  color: #9a8e7e; margin-bottom: 4px; font-weight: 600;
}
.sm-nav { display: flex; flex-direction: column; gap: 1px; }
.sm-navi {
  display: flex; align-items: center; gap: 5px;
  padding: 3px 6px; border-radius: 4px; font-size: 9px;
  background: none; border: none; color: #5a5245; cursor: pointer;
  text-align: left;
}
.sm-navi.on { background: rgba(0,0,0,.06); color: #1a1a1a; font-weight: 600; }
.sm-navi.sub { padding-left: 22px; font-size: 8px; }
.sm-navi.off { opacity: .35; cursor: default; }
.sm-ic { width: 13px; height: 13px; flex-shrink: 0; }

.sm-side-foot { margin-top: auto; border-top: 1px solid #d8d0c4; padding-top: 6px; }
.sm-picker {
  display: flex; align-items: center; gap: 4px; margin: 3px 0 5px;
}
.sm-av {
  width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 6px; font-weight: 700; color: #fff;
}
.sm-pname { font-size: 9px; font-weight: 600; color: #1a1a1a; }
.sm-picker .sm-ic { width: 10px; height: 10px; color: #9a8e7e; margin-left: auto; }
.sm-range { display: flex; gap: 2px; }
.sm-range span {
  font-size: 7px; padding: 1px 5px; border-radius: 3px;
  color: #7a7060; cursor: pointer;
}
.sm-range span.on { background: #1a1a1a; color: #f5f0e8; }
.sm-sync { font-size: 7px; color: #9a8e7e; display: flex; align-items: center; gap: 3px; margin-top: 4px; }
.sm-sync .sm-ic { width: 9px; height: 9px; }

/* main content */
.sm-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.sm-mast {
  display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px 6px;
  border-bottom: 1px solid #d8d0c4; flex-wrap: wrap;
}
.sm-eyebrow { font-size: 7px; color: #9a8e7e; text-transform: uppercase; letter-spacing: .06em; }
.sm-title { font-size: 12px; font-weight: 700; color: #1a1a1a; margin: 0; font-family: Georgia, serif; }
.sm-mast-r { display: flex; align-items: center; gap: 5px; margin-left: auto; }
.sm-mrange { font-size: 7px; color: #7a7060; display: flex; align-items: center; gap: 2px; }
.sm-mrange .sm-ic { width: 10px; height: 10px; }
.sm-pill {
  font-size: 7px; padding: 1px 5px; border-radius: 3px;
  background: rgba(0,0,0,.06); color: #5a5245; font-weight: 600;
}
.sm-stamp {
  font-size: 7px; color: #3d7a5f; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
  animation: smStamp .4s ease;
}
@keyframes smStamp { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }

.sm-body { flex: 1; overflow-y: auto; padding: 6px 10px; }
.sm-page { display: flex; flex-direction: column; gap: 6px; animation: mkEnter .4s ease; }

/* section label */
.sm-section-lbl { font-size: 8px; font-weight: 600; color: #1a1a1a; }
.sm-section-lbl em { font-weight: 400; color: #9a8e7e; font-style: normal; margin-left: 4px; }

/* stat cards */
.sm-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.sm-stat {
  background: #fff; border-radius: 6px; padding: 5px 6px;
  border: 1px solid #e5dfd5;
}
.sm-s-lbl { font-size: 7px; color: #9a8e7e; }
.sm-s-val { font-size: 15px; font-weight: 800; color: #1a1a1a; }
.sm-unit { font-size: 9px; font-weight: 500; color: #7a7060; margin-left: 1px; }
.sm-s-foot { display: flex; align-items: center; gap: 4px; }
.sm-delta { font-size: 7px; }
.sm-delta.up { color: #3d7a5f; }
.sm-delta.down { color: #c44; }
.sm-team-ref { font-size: 7px; color: #b5aa9a; }

/* two-col grid */
.sm-grid2 { display: grid; grid-template-columns: 1.3fr 1fr; gap: 5px; }

/* cards */
.sm-card {
  background: #fff; border-radius: 6px; padding: 6px 8px;
  border: 1px solid #e5dfd5;
}
.sm-card-h { font-size: 8px; font-weight: 600; color: #1a1a1a; margin-bottom: 4px; }
.sm-card-h em { font-weight: 400; color: #9a8e7e; font-style: normal; margin-left: 3px; }

/* radar */
.sm-sig-body { display: flex; align-items: center; gap: 6px; }
.sm-radar { display: block; }
.sm-rgrid { fill: none; stroke: #e5dfd5; stroke-width: .5; }
.sm-rteam { fill: rgba(0,0,0,.04); stroke: #c5bfb2; stroke-width: .6; stroke-dasharray: 2 2; }
.sm-rana { fill: rgba(61,122,95,.12); stroke: #3d7a5f; stroke-width: 1.2; }
.sm-rlabel { font-size: 7px; fill: #9a8e7e; }
.sm-sig-side { font-size: 8px; }
.sm-legend { display: flex; flex-direction: column; gap: 2px; margin-bottom: 4px; }
.sm-legend span { display: flex; align-items: center; gap: 3px; color: #7a7060; }
.sm-lg { width: 10px; height: 2px; background: #3d7a5f; border-radius: 1px; display: inline-block; }
.sm-lg.dash { background: #c5bfb2; border-style: dashed; }
.sm-side-stat { color: #7a7060; line-height: 1.6; }
.sm-side-stat b { color: #1a1a1a; font-weight: 700; }

/* heartbeat bars */
.sm-bars {
  display: flex; align-items: flex-end; gap: 2px; height: 36px;
}
.sm-bar {
  flex: 1; border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, #3d7a5f, #6ba88a);
  min-height: 2px;
}

/* archetype plate */
.sm-plate {
  display: flex; align-items: center; gap: 5px;
  margin-top: 5px; padding: 4px 6px; border-radius: 5px;
  background: #faf7f0; border: 1px solid #e5dfd5;
}
.sm-plate-em { color: #c8a24c; }
.sm-plate-em .sm-ic { width: 16px; height: 16px; }
.sm-plate-eye { font-size: 6px; color: #9a8e7e; text-transform: uppercase; letter-spacing: .06em; }
.sm-plate-name { font-size: 9px; font-weight: 700; color: #1a1a1a; }

/* throughput bars */
.sm-tbars { display: flex; align-items: flex-end; gap: 3px; height: 56px; }
.sm-tbar {
  flex: 1; border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, #3a6a9e, #6a9ac4);
  min-height: 2px;
}

/* CFD */
.sm-cfd { width: 100%; height: 56px; display: block; }
.cfd-done { fill: #3d7a5f; opacity: .7; }
.cfd-review { fill: #c8a24c; opacity: .5; }
.cfd-prog { fill: #3a6a9e; opacity: .6; }
.cfd-todo { fill: #c5bfb2; opacity: .5; }
.sm-cfd-leg { display: flex; gap: 8px; margin-top: 3px; font-size: 7px; color: #9a8e7e; }
.sm-cfd-leg span { display: flex; align-items: center; gap: 2px; }
.sm-cfd-leg i { width: 6px; height: 4px; border-radius: 1px; display: inline-block; }

/* bucketlist */
.sm-bl { display: flex; flex-direction: column; gap: 5px; }
.sm-obj {
  background: #fff; border-radius: 6px; padding: 6px 8px;
  border: 1px solid #e5dfd5;
}
.sm-obj-head { display: flex; align-items: center; gap: 6px; }
.sm-obj-glyph {
  width: 22px; height: 22px; border-radius: 5px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--dim) 12%, transparent);
  color: var(--dim);
}
.sm-obj-glyph .sm-ic { width: 12px; height: 12px; }
.sm-obj-tt { flex: 1; min-width: 0; }
.sm-obj-title { font-size: 9px; font-weight: 700; color: #1a1a1a; }
.sm-obj-cat { font-size: 7px; color: #9a8e7e; }
.sm-obj-pct { font-size: 11px; font-weight: 800; color: var(--dim); }
.sm-obj-seal {
  font-size: 7px; padding: 1px 5px; border-radius: 3px;
  background: #3d7a5f; color: #fff; font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em;
}
.sm-obj-track {
  height: 3px; background: #eae5dc; border-radius: 2px; margin-top: 4px; overflow: hidden;
}
.sm-obj-track i { display: block; height: 100%; border-radius: 2px; background: var(--dim); }

/* analyst button */
.sm-analyst {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  margin: 4px 10px 6px; padding: 4px 0; border-radius: 5px;
  background: #1a1a1a; color: #f5f0e8; border: none;
  font-size: 8px; font-weight: 600; cursor: pointer;
  font-family: inherit;
}
.sm-an-dot {
  width: 5px; height: 5px; border-radius: 50%; background: #3d7a5f;
}
