/* Elevate CRM — all styles (moved out of index.html, same rules, same order). */
:root {
  /* brand */
  --brand: #f05a29;
  --brand-2: #ff8a4c;
  --brand-ink: #c2410c;
  --brand-bg: #fff2eb;
  /* vibrant module palette */
  --c-home: #f05a29;
  --c-dial: #f59e0b;
  --c-acc: #4f46e5;
  --c-cx: #0d9488;
  --c-lb: #7c3aed;
  --c-dash: #0284c7;
  --c-up: #059669;
  --c-team: #475569;
  --indigo: #4f46e5;
  --indigo-bg: #eef2ff;
  --violet: #7c3aed;
  --teal: #0d9488;
  --sky: #0284c7;
  /* neutrals */
  --ink: #0f172a;
  --ink2: #334155;
  --ink3: #64748b;
  --ink4: #94a3b8;
  --line: #e6e9f0;
  --line2: #d5dae3;
  --bg: #f3f5fa;
  --card: #fff;
  --soft: #f8fafc;
  /* status */
  --good: #16a34a;
  --good-bg: #e8f7ee;
  --warn: #d97706;
  --warn-bg: #fff6e5;
  --bad: #dc2626;
  --bad-bg: #fdeceb;
  --info: #2563eb;
  --info-bg: #eaf1ff;
  --gar: #7c3aed;
  --gar-bg: #f3edff;
  --adv: #0d9488;
  --adv-bg: #e6f7f5;
  --r: 14px;
  --sh: 0 1px 2px rgba(15, 23, 42, 0.04), 0 3px 12px rgba(15, 23, 42, 0.06);
  --sh2: 0 20px 50px rgba(15, 23, 42, 0.18);
  --hdr: 60px;
  --side: 252px;
  --side-c: 76px;
  --fd: 'Plus Jakarta Sans', Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
}
body {
  font:
    14px/1.5 Inter,
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
a {
  color: var(--info);
  text-decoration: none;
}
h1,
h2,
h3,
.disp {
  font-family: var(--fd);
}
.muted {
  color: var(--ink3);
}
.tiny {
  font-size: 12px;
}
.b {
  font-weight: 600;
}
.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.hide {
  display: none !important;
}

/* ================= header ================= */
.hdr {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--hdr);
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px 0 10px;
  z-index: 35;
}
.hdr:after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), #f59e0b 25%, #7c3aed 55%, #4f46e5 80%, #0d9488);
  opacity: 0.9;
}
.hbtn {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  border-radius: 10px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink2);
  position: relative;
  flex: 0 0 auto;
  transition: background 0.15s;
}
.hbtn:hover {
  background: #f1f4f9;
}
.hbtn .dot {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 17px;
  height: 17px;
  border-radius: 9px;
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  padding: 0 4px;
  border: 2px solid #fff;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  cursor: pointer;
  padding-right: 6px;
}
.logo img {
  height: 34px;
  display: block;
}
.logo .lx {
  font: 800 18px var(--fd);
  color: var(--ink);
  white-space: nowrap;
}
.prod-tag {
  font: 700 12px var(--fd);
  letter-spacing: 0.02em;
  padding: 4px 10px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), #7c3aed);
  white-space: nowrap;
}
.search {
  flex: 1;
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}
.search input[type='search'] {
  width: 100%;
  height: 40px;
  border: 1px solid var(--line);
  background: #f5f7fb;
  border-radius: 999px;
  padding: 0 44px 0 42px;
  outline: none;
  transition: all 0.15s;
}
.search input[type='search']:focus {
  background: #fff;
  border-color: var(--indigo);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}
.search .si {
  position: absolute;
  left: 14px;
  top: 11px;
  color: var(--ink4);
}
.search kbd {
  position: absolute;
  right: 12px;
  top: 10px;
  font: 600 11px Inter;
  color: var(--ink4);
  border: 1px solid var(--line2);
  border-radius: 6px;
  padding: 1px 6px;
  background: #fff;
}
.hright {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.newbtn {
  height: 38px;
  border: 0;
  border-radius: 10px;
  padding: 0 14px;
  background: linear-gradient(135deg, var(--brand), #ff7a45);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(240, 90, 41, 0.35);
  margin-right: 6px;
  white-space: nowrap;
}
.newbtn:hover {
  filter: brightness(1.05);
}
.me-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 3px 10px 3px 3px;
  cursor: pointer;
}
.me-btn:hover {
  background: #f1f4f9;
}
.me-btn .nm {
  font-weight: 600;
  font-size: 13px;
  max-width: 130px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dd {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--sh2);
  min-width: 280px;
  z-index: 60;
  overflow: hidden;
  animation: ddIn 0.14s ease-out;
}
@keyframes ddIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.dd .ddh {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dd .ddi {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 13px;
  border: 0;
  background: none;
  width: 100%;
  text-align: left;
}
.dd .ddi:hover,
.dd .ddi.act {
  background: #f5f7fb;
}
.dd .ddf {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  text-align: center;
}
.dd-wins {
  width: 360px;
}
.dd-wins .wins-list {
  max-height: 420px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.dd-wins .ddi > :first-child {
  flex-shrink: 0;
}
.dd-wins .wtxt {
  min-width: 0;
  flex: 1;
  line-height: 1.35;
}
.dd-wins .wtxt > div {
  overflow-wrap: anywhere;
}
@media (max-width: 640px) {
  .dd-wins {
    position: fixed;
    top: calc(var(--hdr) + 6px);
    left: 10px;
    right: 10px;
    width: auto;
    min-width: 0;
    max-height: calc(100vh - var(--hdr) - 24px);
    display: flex;
    flex-direction: column;
  }
  .dd-wins .wins-list {
    max-height: none;
    flex: 1;
    min-height: 0;
  }
  .dd-wins .ddi {
    padding: 11px 14px;
    align-items: flex-start;
  }
}
.srch-dd {
  left: 0;
  right: 0;
  min-width: 0;
}

/* ================= sidebar ================= */
.app {
  padding-top: var(--hdr);
}
.side {
  position: fixed;
  top: var(--hdr);
  left: 0;
  bottom: 0;
  width: var(--side);
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 14px 12px 12px;
  z-index: 30;
  transition:
    width 0.22s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.22s;
  overflow: hidden;
}
.nav-sec {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: var(--ink4);
  padding: 14px 10px 6px;
  white-space: nowrap;
}
.nav-sec:first-child {
  padding-top: 2px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: none;
  color: var(--ink2);
  padding: 7px 8px;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  font-weight: 600;
  font-size: 13.5px;
  position: relative;
  white-space: nowrap;
  transition:
    background 0.15s,
    color 0.15s;
}
.nav button:hover {
  background: #f4f6fb;
}
.nav button.on {
  background: color-mix(in srgb, var(--c) 10%, #fff);
  color: var(--ink);
}
.nav button.on:before {
  content: '';
  position: absolute;
  left: -12px;
  top: 8px;
  bottom: 8px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--c);
}
.ntile {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 70%, #fff));
  box-shadow: 0 3px 10px color-mix(in srgb, var(--c) 30%, transparent);
}
.nav .cnt {
  margin-left: auto;
  background: var(--c);
  color: #fff;
  border-radius: 10px;
  font-size: 11px;
  padding: 1px 8px;
  font-weight: 700;
}
.side-foot {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.lvlcard {
  background: linear-gradient(135deg, #1e1b4b, #4338ca 55%, #7c3aed);
  color: #fff;
  border-radius: 14px;
  padding: 12px;
  white-space: nowrap;
  overflow: hidden;
}
.lvlcard .t {
  font-weight: 700;
  font-size: 13px;
}
.lvlcard .s {
  font-size: 11.5px;
  opacity: 0.8;
}
.lvlbar {
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  margin-top: 8px;
  overflow: hidden;
}
.lvlbar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #ffb36b, var(--brand));
  border-radius: 3px;
}
body.nav-c .side {
  width: var(--side-c);
}
body.nav-c .side .lbl,
body.nav-c .nav .cnt,
body.nav-c .lvlcard .txt {
  display: none;
}
body.nav-c .nav-sec {
  display: block;
  height: 1px;
  padding: 0;
  margin: 10px 8px;
  font-size: 0;
  background: var(--line);
}
body.nav-c .nav button {
  justify-content: center;
  padding: 7px 0;
}
body.nav-c .lvlcard {
  padding: 10px 6px;
  text-align: center;
}
.main {
  margin-left: var(--side);
  padding: 24px 28px 90px;
  transition: margin 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
  min-width: 0;
}
body.nav-c .main {
  margin-left: var(--side-c);
}
.pg {
  max-width: 1480px;
  margin: 0 auto;
}
.top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.top .ttl {
  flex: 1;
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.top .ttl .ntile {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}
.top h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.crumb {
  font-size: 12px;
  color: var(--ink3);
  font-weight: 600;
}
.scrim-nav {
  position: fixed;
  inset: var(--hdr) 0 0 0;
  background: rgba(15, 23, 42, 0.35);
  z-index: 29;
  display: none;
}

/* HUD */
.hud {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 600;
  font-size: 13px;
  box-shadow: var(--sh);
}
.chip.fire {
  background: linear-gradient(135deg, #fff4e6, #ffe4d4);
  border-color: #ffd4ba;
  color: #b43d0e;
}
.chip.lvl {
  background: linear-gradient(135deg, #312e81, #6d28d9);
  color: #fff;
  border-color: transparent;
}

/* cards */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh);
}
.pad {
  padding: 16px 18px;
}
.grid {
  display: grid;
  gap: 16px;
}
.g2 {
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
}
.g3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.g4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.sect-h {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}
.sect-h h3 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 700;
}
.sect-h .ic {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  flex: 0 0 auto;
}
.count {
  background: #eef1f6;
  color: var(--ink2);
  border-radius: 999px;
  padding: 1px 9px;
  font-size: 12px;
  font-weight: 700;
}
.count.hot {
  background: var(--brand);
  color: #fff;
}
.count.bad {
  background: var(--bad-bg);
  color: var(--bad);
}
.count.good {
  background: var(--good-bg);
  color: var(--good);
}
h2.sec {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink3);
  margin: 22px 0 10px;
  font-weight: 700;
  font-family: Inter;
}

/* KPI */
.kpi {
  padding: 16px 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}
.kpi .kic {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 20px;
  flex: 0 0 auto;
}
.kpi .v {
  font: 800 26px var(--fd);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.kpi .l {
  font-size: 12px;
  color: var(--ink3);
  margin-top: 3px;
}
.kpi:after {
  content: '';
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--kc, #eef2ff);
  opacity: 0.35;
}

/* hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(700px 260px at 95% -20%, rgba(240, 90, 41, 0.55), transparent 60%),
    radial-gradient(600px 300px at 0% 120%, rgba(13, 148, 136, 0.35), transparent 60%),
    linear-gradient(120deg, #1e1b4b, #312e81 45%, #4c1d95);
  color: #fff;
  border-radius: 18px;
  padding: 22px 24px;
  display: flex;
  gap: 24px;
  align-items: center;
  box-shadow: 0 18px 40px rgba(49, 46, 129, 0.28);
}
.hero h2 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero .sub {
  color: #c7c9f0;
}
.greet {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 4px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand-ink);
  line-height: 1.35;
  max-width: 640px;
}
.greet .gi {
  font-size: 15px;
  line-height: 1.2;
}
.motiv {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: -6px 0 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: linear-gradient(90deg, #fff2eb, #f5f3ff);
  border: 1px solid #fde1d3;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink2);
}
.motiv .mi {
  font-size: 18px;
}
.phero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(700px 260px at 95% -20%, rgba(240, 90, 41, 0.5), transparent 60%),
    radial-gradient(600px 300px at 0% 120%, rgba(13, 148, 136, 0.32), transparent 60%),
    linear-gradient(120deg, #1e1b4b, #312e81 45%, #4c1d95);
  color: #fff;
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 18px 40px rgba(49, 46, 129, 0.25);
}
.phero-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.phero-t {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.phero-s {
  font-size: 12px;
  color: #c7c9f0;
  margin-top: 2px;
}
.btn.ghost-w {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.btn.ghost-w:hover {
  background: rgba(255, 255, 255, 0.2);
}
.kps {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}
.kp {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 12px;
  min-width: 0;
  transition:
    transform 0.15s,
    background 0.15s;
}
.kp:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.14);
}
.kp-ic {
  font-size: 18px;
}
.kp-v {
  font-size: 24px;
  font-weight: 800;
  margin-top: 6px;
  letter-spacing: -0.02em;
}
.kp-l {
  font-size: 12px;
  color: #dfe0fb;
  font-weight: 600;
  margin-top: 2px;
  line-height: 1.25;
}
.kp-s {
  font-size: 11px;
  color: #b8bbe8;
  margin-top: 4px;
}
.kp-tva {
  background: linear-gradient(135deg, rgba(240, 90, 41, 0.35), rgba(255, 255, 255, 0.08));
  border-color: rgba(255, 160, 120, 0.45);
  cursor: help;
}
.kp-bar {
  height: 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.18);
  margin-top: 6px;
  overflow: hidden;
}
.kp-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #ff8a4c, #34d399);
  border-radius: 5px;
}
.ybox {
  margin-top: 16px;
}
.yts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 0 16px 16px;
}
.yt {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, color-mix(in srgb, var(--yc) 9%, #fff), #fff);
}
.yt-ic {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--yc) 16%, #fff);
  flex-shrink: 0;
  font-size: 16px;
}
.yt-v {
  font-size: 20px;
  font-weight: 800;
  color: var(--yc);
  line-height: 1.1;
}
.yt-l {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink2);
}
.yt-s {
  font-size: 11px;
  color: var(--ink3);
}
.card.od {
  border-color: #f5c2c0;
  box-shadow: 0 0 0 3px var(--bad-bg);
}
.msum .momi {
  position: relative;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.12s;
}
.msum .momi:last-child {
  border-bottom: 0;
}
.msum .momi:hover {
  background: #faf8ff;
}
.msum .momi:hover::after {
  content: attr(data-tip);
  position: absolute;
  right: 12px;
  top: 8px;
  background: #1e1b4b;
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(30, 27, 75, 0.25);
  white-space: nowrap;
  animation: tIn 0.18s;
}
.momh {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.momh .mk {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4f46e5;
}
.momh .mk.mom {
  background: #fce7f3;
  color: #be185d;
}
.momt {
  font-size: 12.5px;
  color: var(--ink2);
  margin-top: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fun-t {
  table-layout: fixed;
  min-width: 620px;
}
.fun-t th:first-child,
.fun-t td:first-child {
  width: 24%;
  white-space: normal;
}
.fun-t th {
  white-space: normal;
  line-height: 1.25;
  vertical-align: bottom;
}
.fun-t td.num {
  font-size: 14px;
}
.fun-t .tot td {
  background: #fafbfc;
}
.t.fun-t td.b:first-child {
  white-space: normal;
  overflow-wrap: break-word;
}
.grid > * {
  min-width: 0;
}
.row .grow {
  min-width: 0;
}
.row .nm,
.row .sb {
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 640px) {
  .sect-h {
    flex-wrap: wrap;
    row-gap: 4px;
  }
  .row .rt {
    max-width: 42%;
    text-align: right;
  }
  .row .rt > div {
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
@media (max-width: 1100px) {
  .kps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .kps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kp-tva {
    grid-column: span 2;
  }
  .yts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .yts .yt:last-child {
    grid-column: span 2;
  }
  .phero {
    padding: 14px;
  }
  .kp-v {
    font-size: 21px;
  }
  .msum .momi:hover::after {
    display: none;
  }
}
.hero .stats {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.hero .stats div {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 8px 14px;
  backdrop-filter: blur(4px);
}
.hero .stats div b {
  display: block;
  font: 800 20px var(--fd);
}
.hero .stats div span {
  font-size: 11.5px;
  color: #c7c9f0;
}
.hero .cta {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}
.ring {
  position: relative;
  width: 112px;
  height: 112px;
  flex: 0 0 auto;
}
.ring svg {
  transform: rotate(-90deg);
}
.ring .v {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  line-height: 1.1;
}
.ring .v b {
  font: 800 24px var(--fd);
}
.ring .v span {
  font-size: 11px;
  color: #c7c9f0;
}
.ring circle {
  transition: stroke-dashoffset 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line2);
  background: #fff;
  border-radius: 10px;
  padding: 8px 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.08s,
    box-shadow 0.15s,
    background 0.15s,
    border-color 0.15s;
  white-space: nowrap;
  color: var(--ink);
}
.btn:hover {
  box-shadow: var(--sh);
  border-color: var(--ink4);
}
.btn:active {
  transform: scale(0.97);
}
.btn.pri {
  background: linear-gradient(135deg, var(--brand), #ff7a45);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 12px rgba(240, 90, 41, 0.28);
}
.btn.pri:hover {
  filter: brightness(1.05);
}
.btn.ind {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  border-color: transparent;
  color: #fff;
}
.btn.dark {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}
.btn.gar {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  border-color: transparent;
  color: #fff;
}
.btn.adv {
  background: linear-gradient(135deg, #0d9488, #14b8a6);
  border-color: transparent;
  color: #fff;
}
.btn.ghost {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
.btn.sm {
  padding: 5px 10px;
  font-size: 12.5px;
  border-radius: 8px;
}
.btn.lg {
  padding: 12px 20px;
  font-size: 15px;
  border-radius: 12px;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.btn.glow {
  animation: glow 2.2s infinite;
}
@keyframes glow {
  0% {
    box-shadow: 0 0 0 0 rgba(240, 90, 41, 0.55);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(240, 90, 41, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(240, 90, 41, 0);
  }
}
.seg {
  display: inline-flex;
  background: #eef1f6;
  border-radius: 10px;
  padding: 3px;
}
.seg button {
  border: 0;
  background: transparent;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  color: var(--ink3);
  display: flex;
  align-items: center;
  gap: 6px;
}
.seg button.on {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

/* lists */
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.12s;
}
.row:last-child {
  border-bottom: 0;
}
.row:hover {
  background: #f8faff;
}
.row .nm {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row .sb {
  font-size: 12px;
  color: var(--ink3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row .rt {
  margin-left: auto;
  text-align: right;
  font-size: 12px;
  white-space: nowrap;
}
.row .grow {
  min-width: 0;
  flex: 1;
}
.otile {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
  color: #fff;
  flex: 0 0 auto;
}
.empty {
  padding: 26px 16px;
  text-align: center;
  color: var(--ink3);
}
.more {
  display: block;
  width: 100%;
  border: 0;
  background: #fafbfe;
  padding: 10px;
  color: var(--indigo);
  font-weight: 600;
  cursor: pointer;
  border-top: 1px solid var(--line);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 11.5px;
  font-weight: 600;
  background: #eef1f6;
  color: var(--ink2);
  white-space: nowrap;
}
.pill.good {
  background: var(--good-bg);
  color: var(--good);
}
.pill.warn {
  background: var(--warn-bg);
  color: var(--warn);
}
.pill.bad {
  background: var(--bad-bg);
  color: var(--bad);
}
.pill.info {
  background: var(--info-bg);
  color: var(--info);
}
.pill.brand {
  background: var(--brand-bg);
  color: var(--brand-ink);
}
.pill.ind {
  background: var(--indigo-bg);
  color: var(--indigo);
}
.pill.gar {
  background: var(--gar-bg);
  color: var(--gar);
}
.pill.adv {
  background: var(--adv-bg);
  color: var(--adv);
}
.due-bad {
  color: var(--bad);
  font-weight: 600;
}
.due-today {
  color: var(--brand-ink);
  font-weight: 600;
}
.t {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}
.t th {
  text-align: left;
  font-weight: 700;
  color: var(--ink3);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  background: #f8fafd;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 1;
}
.t td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.t tr:last-child td {
  border-bottom: 0;
}
.t tr.click {
  cursor: pointer;
}
.t tr.click:hover td {
  background: #f8faff;
}
.t .pct {
  display: block;
  font-size: 11px;
  color: var(--brand-ink);
  font-weight: 700;
}
.t th.num,
.t td.num {
  text-align: center;
  padding-left: 8px;
  padding-right: 8px;
}
.t td.b:first-child {
  white-space: nowrap;
}
.scroll > table.t th:first-child,
.scroll > table.t td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #fff;
  box-shadow: 1px 0 0 var(--line);
}
.scroll > table.t th:first-child {
  background: #f8fafd;
  z-index: 3;
}
.scroll > table.t tr.click:hover td:first-child {
  background: #f8faff;
}
.scroll > table.t tr[style*='fafbfc'] td:first-child,
.fun-t .tot td:first-child {
  background: #fafbfc;
}
.t th.num {
  white-space: normal;
  line-height: 1.25;
  vertical-align: bottom;
  font-size: 10.5px;
  letter-spacing: 0.02em;
}
.scroll {
  overflow: auto;
}
.owner {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

/* forms */
label.f {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink2);
  margin: 14px 0 6px;
}
input[type='text'],
input[type='search'],
input[type='email'],
input[type='number'],
input[type='date'],
input[type='datetime-local'],
input[type='tel'],
select,
textarea {
  width: 100%;
  border: 1px solid var(--line2);
  border-radius: 10px;
  padding: 9px 11px;
  background: #fff;
  outline: none;
  transition:
    border 0.15s,
    box-shadow 0.15s;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--indigo);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}
:where(input:not([type])) {
  width: 100%;
  border: 1px solid var(--line2);
  border-radius: 10px;
  padding: 9px 11px;
  background: #fff;
  outline: none;
}
textarea {
  min-height: 70px;
  resize: vertical;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chips button {
  border: 1px solid var(--line2);
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.12s;
  font-weight: 500;
}
.chips button:hover {
  border-color: var(--indigo);
  color: var(--indigo);
}
.chips button.on {
  background: var(--indigo);
  border-color: var(--indigo);
  color: #fff;
}
.chips.y button.on[data-v='Yes'] {
  background: var(--good);
  border-color: var(--good);
}
.chips.y button.on[data-v='No'] {
  background: var(--bad);
  border-color: var(--bad);
}
.chips.y button.on[data-v='Maybe'] {
  background: var(--warn);
  border-color: var(--warn);
}
.chips.hot button.on[data-v='Hot'] {
  background: #ea580c;
  border-color: #ea580c;
}
.chips.hot button.on[data-v='Warm'] {
  background: #f59e0b;
  border-color: #f59e0b;
}
.chips.hot button.on[data-v='Cold'] {
  background: #3b82f6;
  border-color: #3b82f6;
}
.g2f {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
}
.err {
  color: var(--bad);
  font-size: 13px;
  font-weight: 500;
  min-height: 18px;
  margin-top: 8px;
}
.hint {
  font-size: 12px;
  color: var(--ink3);
  margin-top: 4px;
}

/* outcome tiles */
.outs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}
.out {
  position: relative;
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 11px 12px 10px 14px;
  text-align: left;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.12s;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 60px;
  overflow: hidden;
}
.out:before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--ink4);
}
.out.good:before {
  background: var(--good);
}
.out.warn:before {
  background: var(--warn);
}
.out.bad:before {
  background: var(--bad);
}
.out:hover {
  border-color: var(--line2);
  transform: translateY(-1px);
  box-shadow: var(--sh);
}
.out .pt {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink4);
}
.out.good .pt {
  color: var(--good);
}
.out.warn .pt {
  color: var(--warn);
}
.out.bad .pt {
  color: var(--bad);
}
.out.on {
  border-color: var(--indigo);
  background: var(--indigo-bg);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.14);
}
.out .dot {
  display: none;
}

/* record page (drawer) */
.scrim {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 40;
  backdrop-filter: blur(2px);
}
.scrim.on {
  opacity: 1;
  pointer-events: auto;
}
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(860px, 100vw);
  background: var(--bg);
  z-index: 50;
  transform: translateX(105%);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: var(--sh2);
}
.drawer.on {
  transform: none;
}
.dh {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 16px 20px 0;
}
.dh .toprow {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.dh .objtile {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #fff;
  flex: 0 0 auto;
  font: 800 18px var(--fd);
}
.dh .obj {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.dh h2 {
  margin: 1px 0 0;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.dh .x {
  margin-left: auto;
  border: 0;
  background: #f1f4f9;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  flex: 0 0 auto;
  font-size: 20px;
  color: var(--ink2);
}
.hl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  gap: 6px 12px;
  margin: 14px 0 12px;
  padding: 12px 14px;
  background: #f8fafd;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.hl div > span {
  display: block;
  font-size: 11px;
  color: var(--ink3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.hl div b {
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.tabs {
  display: flex;
  gap: 4px;
  margin-top: 4px;
  overflow-x: auto;
}
.tabs button {
  border: 0;
  background: none;
  padding: 11px 14px;
  font-weight: 600;
  color: var(--ink3);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}
.tabs button.on {
  color: var(--indigo);
  border-bottom-color: var(--indigo);
}
.tabs button .count {
  margin-left: 6px;
}
.db {
  flex: 1;
  overflow: auto;
  padding: 16px 20px 40px;
}
.back {
  font-size: 12px;
  font-weight: 700;
  color: var(--indigo);
  cursor: pointer;
  display: inline-block;
  margin-bottom: 4px;
}
.kv {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 9px 14px;
  font-size: 13px;
}
.kv dt {
  color: var(--ink3);
  font-weight: 500;
}
.kv dd {
  margin: 0;
  min-width: 0;
  word-break: break-word;
  font-weight: 500;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.callbtn {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}
.callbtn:hover {
  filter: brightness(1.06);
}
.wabtn {
  background: #fff;
  border: 1.5px solid #25d366;
  color: #128c4a;
  font-weight: 700;
}
.wabtn:hover {
  background: #e9fbf0;
}
.btn.icon-only {
  width: 38px;
  padding: 0;
  justify-content: center;
  font-size: 16px;
}
.gcalbtn {
  background: #fff;
  border: 1.5px solid #c7d2fe;
  color: #3730a3;
  font-weight: 700;
}
.gcalbtn:hover {
  background: #eef2ff;
}
a.btn.gcalbtn.lg {
  display: flex;
  justify-content: center;
  width: 100%;
  background: linear-gradient(135deg, #4285f4, #3367d6);
  border-color: transparent;
  color: #fff;
  margin-top: 14px;
  text-decoration: none;
}
.calbox {
  margin-top: 6px;
  padding: 14px;
  border-radius: 12px;
  background: #f5f7ff;
  border: 1px solid #e0e7ff;
}
.calwhen {
  font-size: 18px;
  font-weight: 800;
  color: #3730a3;
  margin-bottom: 2px;
}
.gcal-mini {
  display: inline-block;
  margin-top: 4px;
  font-size: 11.5px;
  font-weight: 700;
  color: #3367d6;
  text-decoration: none;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef3fe;
}
.gcal-mini:hover {
  background: #dbe7fd;
}
select.pick-sel {
  max-width: 320px;
  height: 42px;
  border-radius: 10px;
  border: 1.5px solid var(--line2);
  padding: 0 12px;
  font-weight: 600;
}
select.pick-sel:focus {
  border-color: #4f46e5;
  outline: none;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}
input.meet-at {
  max-width: 280px;
  font-weight: 600;
  height: 42px;
  border-radius: 10px;
  border: 1.5px solid var(--line2);
  padding: 0 12px;
}
input.meet-at:focus {
  border-color: #4f46e5;
  outline: none;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}
.box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px 16px;
  margin-top: 14px;
  box-shadow: var(--sh);
}
.box h4 {
  margin: 0 0 2px;
  font-size: 14.5px;
  font-weight: 700;
  font-family: var(--fd);
}
/* Salesforce-style chevron path */
.chev {
  display: flex;
  gap: 3px;
  margin: 2px 0 14px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.chev span {
  flex: 1;
  min-width: 74px;
  height: 32px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink3);
  background: #eef1f6;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%, 10px 50%);
  padding: 0 8px 0 14px;
  white-space: nowrap;
}
.chev span:first-child {
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
  border-radius: 8px 0 0 8px;
}
.chev span:last-child {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 12px 50%);
  border-radius: 0 8px 8px 0;
}
.chev span.done {
  background: linear-gradient(135deg, #0d9488, #14b8a6);
  color: #fff;
}
.chev span.cur {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
}
.chev span.dorm {
  background: #fde68a;
  color: #92400e;
}
.chev span {
  min-width: 76px;
  height: 38px;
  cursor: pointer;
  white-space: normal;
  text-align: center;
  line-height: 1.1;
  font-size: 10.5px;
}
.chev-w {
  position: relative;
}
.chev-tip {
  display: none;
  position: absolute;
  top: 36px;
  z-index: 20;
  width: 260px;
  background: #1e1b4b;
  color: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12.5px;
  box-shadow: 0 12px 30px rgba(30, 27, 75, 0.3);
  animation: tIn 0.15s;
}
.chev-tip.on {
  display: block;
}
.chev-tip b {
  font-size: 13px;
}
.chev-tip .ct-d {
  color: #c7c9f0;
  font-size: 11.5px;
  margin-top: 2px;
}
.chev-tip .ct-l {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 8px;
}
.chev-tip .ct-l i {
  font-style: normal;
  font-weight: 800;
  color: #fdba74;
  margin-right: 2px;
}
.chev-tip .ct-n {
  color: #c7c9f0;
  font-size: 11.5px;
  margin-top: 6px;
}
.dh .hd-l {
  min-width: 0;
  flex: 1;
}
.dh .hd-l h2 {
  margin: 0;
  line-height: 1.15;
}
.hd-ph {
  display: inline-block;
  margin-top: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4f46e5;
}
.hd-ph.partnership {
  background: #fff2eb;
  color: #c2410c;
}
.hd-ph.revive {
  background: #fff6e5;
  color: #b45309;
}
.dh .hd-r {
  display: grid;
  grid-template-columns: auto auto;
  gap: 3px 12px;
  font-size: 12.5px;
  align-self: center;
  margin-right: 6px;
}
.dh .hd-r div {
  display: contents;
}
.dh .hd-r span {
  color: var(--ink3);
  text-align: right;
}
.dh .hd-r b {
  font-weight: 600;
  color: var(--ink);
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .dh .toprow {
    flex-wrap: wrap;
  }
  .dh .hd-r {
    order: 3;
    width: 100%;
    grid-template-columns: auto 1fr;
    margin: 8px 0 0;
  }
  .dh .hd-r span {
    text-align: left;
  }
}
.tl {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tl li {
  position: relative;
  padding: 0 0 16px 40px;
}
.tl li .ti {
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  color: #fff;
  background: #94a3b8;
  box-shadow: 0 0 0 4px #fff;
}
.tl li:after {
  content: '';
  position: absolute;
  left: 13.5px;
  top: 30px;
  bottom: 2px;
  width: 1.5px;
  background: var(--line);
}
.tl li:last-child:after {
  display: none;
}
.tl li.good .ti {
  background: var(--good);
}
.tl li.warn .ti {
  background: var(--warn);
}
.tl li.bad .ti {
  background: var(--bad);
}
.tl .h {
  font-weight: 600;
  font-size: 13px;
}
.tl .m {
  font-size: 12px;
  color: var(--ink3);
}
.tl .n {
  font-size: 13px;
  white-space: pre-wrap;
  margin-top: 4px;
  color: var(--ink2);
  background: #f8fafd;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
}
.tl .pts {
  color: var(--good);
  font-weight: 700;
  font-size: 12px;
  margin-left: 6px;
}
.req {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--adv);
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 8px;
  cursor: pointer;
  transition:
    box-shadow 0.15s,
    transform 0.1s;
  box-shadow: var(--sh);
}
.req.g {
  border-left-color: var(--gar);
}
.req:hover {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
  transform: translateY(-1px);
}
.prod {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.prod button {
  text-align: left;
  border: 1.5px solid var(--line2);
  background: #fff;
  border-radius: 12px;
  padding: 11px 12px;
  cursor: pointer;
}
.prod button b {
  display: block;
  font-size: 14px;
}
.prod button span {
  font-size: 12px;
  color: var(--ink3);
}
.prod button.on.a {
  border-color: var(--adv);
  background: var(--adv-bg);
}
.prod button.on.g {
  border-color: var(--gar);
  background: var(--gar-bg);
}

/* kanban */
.board {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 10px;
}
.col {
  background: #eef1f7;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 230px);
  min-height: 200px;
}
.col .ch {
  padding: 12px 12px 10px;
  border-top: 4px solid var(--cc);
  border-radius: 14px 14px 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13px;
}
.col .cl {
  overflow: auto;
  padding: 0 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kcard {
  background: #fff;
  border-radius: 12px;
  padding: 11px 12px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.12s;
}
.kcard:hover {
  border-color: var(--cc);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.1);
}
.kcard .nm {
  font-weight: 700;
  font-size: 13px;
}
.kcard .ft {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--ink3);
}

/* dialer */
.dial {
  position: fixed;
  inset: 0;
  z-index: 60;
  background:
    radial-gradient(900px 500px at 50% -10%, rgba(124, 58, 237, 0.35), transparent 60%),
    radial-gradient(700px 400px at 100% 100%, rgba(240, 90, 41, 0.25), transparent 60%), #0b1020;
  color: #fff;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.dial.on {
  opacity: 1;
  pointer-events: auto;
}
.dial .bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
}
.dial .bar .x {
  background: rgba(255, 255, 255, 0.1);
  border: 0;
  color: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 600;
}
.dial .prog {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  overflow: hidden;
}
.dial .prog i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, var(--brand), #a855f7);
  transition: width 0.4s;
}
.dial .stage {
  flex: 1;
  overflow: auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 6px 16px 30px;
}
.dcard {
  width: min(720px, 100%);
  background: #fff;
  color: var(--ink);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  animation: cardIn 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.dcard .box {
  border: 0;
  padding: 0;
  box-shadow: none;
}
.dcard.out {
  animation: cardOut 0.28s ease-in forwards;
}
@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes cardOut {
  to {
    opacity: 0;
    transform: translateX(-60px) rotate(-3deg);
  }
}
.dcard h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.bigcall {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin: 16px 0 6px;
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
  font: 800 20px var(--fd);
  border: 0;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(22, 163, 74, 0.3);
}
.bigcall.no {
  background: #eef1f6;
  color: var(--ink3);
  font-size: 15px;
  box-shadow: none;
}

/* feedback */
.toasts {
  position: fixed;
  right: 20px;
  top: calc(var(--hdr) + 14px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  z-index: 90;
  pointer-events: none;
}
.toast {
  background: #0f172a;
  color: #fff;
  border-radius: 12px;
  padding: 11px 16px;
  font-weight: 600;
  box-shadow: var(--sh2);
  animation: tIn 0.25s ease-out;
  max-width: min(420px, 90vw);
  border-left: 4px solid var(--indigo);
}
.toast.bad {
  background: #fff;
  color: var(--bad);
  border-left-color: var(--bad);
}
.toast.win {
  background: linear-gradient(135deg, #1e1b4b, #4c1d95);
  border-left-color: var(--brand);
}
@keyframes tIn {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.pop {
  position: fixed;
  z-index: 95;
  font: 800 22px var(--fd);
  color: var(--good);
  pointer-events: none;
  animation: pop 1.2s ease-out forwards;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}
@keyframes pop {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.6);
  }
  15% {
    opacity: 1;
    transform: translateY(-6px) scale(1.15);
  }
  100% {
    opacity: 0;
    transform: translateY(-70px) scale(1);
  }
}
#confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 96;
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 97;
  display: grid;
  place-items: center;
  background: rgba(10, 12, 25, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.modal.on {
  opacity: 1;
  pointer-events: auto;
}
.modal .mc {
  background: #fff;
  border-radius: 22px;
  padding: 28px;
  width: min(420px, 92vw);
  text-align: center;
  box-shadow: var(--sh2);
  animation: cardIn 0.35s;
}
.modal .big {
  font-size: 64px;
  line-height: 1;
}
.sheet {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.sheet.on {
  opacity: 1;
  pointer-events: auto;
}
.sheet .sc {
  background: #fff;
  width: min(760px, 100%);
  max-height: 94vh;
  overflow: auto;
  border-radius: 22px 22px 0 0;
  padding: 18px 22px 26px;
  transform: translateY(40px);
  transition: transform 0.25s;
}
.sheet.on .sc {
  transform: none;
}
.sheet .sh {
  display: flex;
  align-items: center;
  gap: 10px;
  position: sticky;
  top: -18px;
  background: #fff;
  padding: 6px 0 10px;
  margin-top: -6px;
  z-index: 2;
  border-bottom: 1px solid var(--line);
}
.sheet h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  flex: 1;
}
.step {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--indigo);
  margin: 20px 0 2px;
}
@media (min-width: 900px) {
  .sheet {
    align-items: center;
  }
  .sheet .sc {
    border-radius: 22px;
    max-height: 90vh;
  }
}

/* leaderboard */
.podium {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 12px;
  align-items: end;
  margin: 6px 0 18px;
}
.pod {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  text-align: center;
  padding: 16px 10px;
  box-shadow: var(--sh);
  animation: rise 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.pod.p1 {
  padding-top: 26px;
  background: linear-gradient(180deg, #fff7e6, #fff);
  border-color: #fde3b0;
  box-shadow: 0 14px 30px rgba(245, 158, 11, 0.18);
}
.pod.p2 {
  background: linear-gradient(180deg, #f1f5f9, #fff);
}
.pod.p3 {
  background: linear-gradient(180deg, #fff1ea, #fff);
}
.pod .medal {
  font-size: 30px;
}
.pod .pts {
  font: 800 22px var(--fd);
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.lbrow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
}
.lbrow:last-child {
  border-bottom: 0;
}
.lbrow.me {
  background: linear-gradient(90deg, var(--indigo-bg), #fff);
}
.lbrow .rk {
  width: 26px;
  font-weight: 800;
  color: var(--ink3);
  text-align: center;
}
.lbbar {
  height: 6px;
  background: #eef1f6;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 5px;
}
.lbbar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, var(--brand), #a855f7);
  border-radius: 3px;
  transition: width 0.8s;
}
.badges {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
}
.bdg {
  text-align: center;
  padding: 12px 6px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
}
.bdg .i {
  font-size: 28px;
  filter: grayscale(1);
  opacity: 0.35;
}
.bdg.on {
  background: linear-gradient(180deg, #fff7ed, #fff);
  border-color: #fed7aa;
}
.bdg.on .i {
  filter: none;
  opacity: 1;
}
.bdg .n {
  font-size: 12px;
  font-weight: 700;
  margin-top: 4px;
}
.bdg .h {
  font-size: 11px;
  color: var(--ink4);
}
.bars7 {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 90px;
}
.bars7 div {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
  justify-content: flex-end;
}
.bars7 span {
  width: 100%;
  background: linear-gradient(180deg, #a855f7, #4f46e5);
  border-radius: 6px 6px 3px 3px;
  min-height: 3px;
  transition: height 0.8s;
}
.bars7 em {
  font-style: normal;
  font-size: 11px;
  color: var(--ink4);
}
.feed .it {
  display: flex;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  animation: tIn 0.3s;
}
.mp {
  border-collapse: collapse;
  width: 100%;
  font-size: 13.5px;
  color: #111;
}
.mp th,
.mp td {
  border: 1px dotted #6b7280;
  padding: 6px 10px;
  white-space: nowrap;
}
.mp .mp-blank {
  border-top-color: transparent;
  border-left-color: transparent;
}
.mp .mp-h {
  font-style: italic;
  font-weight: 800;
  text-align: center;
  background: #fff;
}
.mp .mp-sub th {
  background: #f3f3f3;
  color: #38761d;
  font-weight: 800;
  text-align: center;
}
.mp .mp-sub th:nth-child(-n + 3) {
  text-align: left;
}
.mp .mp-sub th:first-child {
  text-align: center;
}
.mp .mp-c {
  text-align: center;
  vertical-align: middle;
  font-weight: 600;
}
.mp .mp-t {
  vertical-align: middle;
}
.mp .mp-n {
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.mp .mp-tot td {
  background: #f3f3f3;
  color: #38761d;
  font-weight: 800;
  text-align: center;
}
.mp .mp-sub2 th {
  background: #f3f3f3;
  color: #38761d;
  font-weight: 800;
  text-align: center;
  white-space: normal;
}
.mp .mp-sub2 th.mp-l {
  color: #111;
  text-align: left;
}
.mp td.mp-l {
  text-align: left;
}
.mp .mp-tot2 td {
  font-weight: 800;
  text-align: center;
}
.mp-ic .mp-icl {
  font-weight: 800;
  vertical-align: middle;
}
.mp-ic .mp-ich {
  text-align: center;
  min-width: 90px;
}
.mp-ic .mp-icv {
  text-align: center;
  font-weight: 800;
}
.mp-done {
  font-size: 10.5px;
  font-weight: 700;
  color: #2f9e62;
  margin-top: 1px;
}
.ka-l {
  color: #4f46e5;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px dashed #a5b4fc;
}
.ka-l:hover {
  color: #312e81;
}
.ka-oth td {
  background: #fafbff;
}
.ka-sub {
  font-size: 10.5px;
  color: var(--ink3);
  white-space: normal;
  max-width: 220px;
}
.mp-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: 16px;
  align-items: start;
}
.mp-card {
  margin-bottom: 16px;
}
.mp-ed td {
  padding: 4px;
}
.mp-ed .mp-dh {
  color: #2f9e62;
}
@media (max-width: 900px) {
  .mp-row {
    grid-template-columns: 1fr;
  }
  .mp {
    font-size: 12.5px;
  }
  .mp th,
  .mp td {
    padding: 5px 7px;
  }
}
@media (max-width: 640px) {
  .mp-card {
    padding: 12px 6px;
  }
  .mp {
    font-size: 10.5px;
  }
  .mp th,
  .mp td {
    padding: 4px 2px;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: normal;
    hyphens: none;
  }
  .mp .mp-h,
  .mp .mp-ch,
  .mp .mp-t,
  .mp td.mp-l,
  .mp .mp-icl {
    white-space: normal;
  }
  .mp .mp-h {
    font-size: 9.5px;
    line-height: 1.2;
    letter-spacing: -0.3px;
    font-weight: 700;
  }
  .mp-ic .mp-ich {
    min-width: 60px;
  }
  .mp-card .sect-h h3 {
    font-size: 14px;
  }
}
.feed .it:last-child {
  border-bottom: 0;
}

/* dashboard */
.fun {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 12px;
}
.fr {
  display: grid;
  grid-template-columns: 150px 1fr 150px;
  gap: 12px;
  align-items: center;
  font-size: 13px;
}
.fr .bar {
  height: 28px;
  background: #f1f4f9;
  border-radius: 8px;
  overflow: hidden;
}
.fr .bar i {
  display: block;
  height: 100%;
  background: var(--fc, linear-gradient(90deg, var(--brand), #ff9a6b));
  border-radius: 8px;
  width: 0;
  transition: width 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.fr .val b {
  font-size: 15px;
}
.fr .val .pu {
  color: var(--brand-ink);
  font-weight: 700;
  margin-left: 6px;
}
.fr .val small {
  display: block;
  color: var(--ink4);
  font-size: 11px;
}
.wbar {
  display: flex;
  height: 14px;
  border-radius: 5px;
  overflow: hidden;
  background: #f1f4f9;
}
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  align-items: center;
}
.filters > * {
  width: auto;
  flex: 0 0 auto;
}
.filters input[type='search'] {
  flex: 1 1 240px;
}
.drop {
  border: 2px dashed var(--line2);
  border-radius: 14px;
  padding: 30px;
  text-align: center;
  background: #fff;
  cursor: pointer;
  transition: all 0.15s;
  display: block;
}
.drop:hover,
.drop.over {
  border-color: var(--indigo);
  background: var(--indigo-bg);
}
.progress {
  height: 10px;
  background: #eef1f6;
  border-radius: 5px;
  overflow: hidden;
}
.progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--brand), #a855f7);
  width: 0;
  transition: width 0.3s;
}
.av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-weight: 700;
  font-size: 12px;
  color: #fff;
  flex: 0 0 auto;
}

/* ================= login ================= */
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  background: #fff;
}
.lg-art {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(800px 500px at 10% 0%, rgba(240, 90, 41, 0.45), transparent 60%),
    radial-gradient(700px 500px at 100% 100%, rgba(124, 58, 237, 0.5), transparent 60%),
    linear-gradient(135deg, #0b1020, #1e1b4b);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 56px;
}
.lg-art:before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 40%, #000, transparent 75%);
}
.lg-photo {
  position: relative;
  width: min(440px, 100%);
  aspect-ratio: 1;
  border-radius: 26px;
  overflow: hidden;
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.12);
  transform: rotate(-2deg);
  animation: float 6s ease-in-out infinite;
  background: linear-gradient(135deg, #312e81, #f05a29);
}
.lg-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lg-photo .fb {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  font: 800 30px var(--fd);
  color: #fff;
  padding: 30px;
}
@keyframes float {
  0%,
  100% {
    transform: rotate(-2deg) translateY(0);
  }
  50% {
    transform: rotate(-1deg) translateY(-8px);
  }
}
.lg-badge {
  position: absolute;
  background: #fff;
  color: var(--ink);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12.5px;
  animation: rise 0.8s both;
}
.lg-badge b {
  display: block;
  font: 800 18px var(--fd);
}
.lg-badge .kic {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 18px;
}
.lg-copy {
  position: relative;
  margin-top: 36px;
  max-width: 520px;
}
.lg-copy h1 {
  font-size: 38px;
  line-height: 1.1;
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.lg-copy h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #ffb36b, var(--brand), #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lg-copy p {
  color: #c7c9f0;
  font-size: 15px;
  margin: 12px 0 0;
}
.lg-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px clamp(24px, 6vw, 90px);
  position: relative;
}
.lg-form .inner {
  width: min(400px, 100%);
  margin: 0 auto;
}
.lg-form .lgo {
  height: 52px;
  display: block;
  margin-bottom: 34px;
}
.lg-form h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.gbtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin-top: 26px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--line2);
  background: #fff;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.15s;
}
.gbtn:hover {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
  border-color: var(--ink4);
  transform: translateY(-1px);
}
.lg-feat {
  display: grid;
  gap: 10px;
  margin-top: 30px;
}
.lg-feat div {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: var(--ink2);
}
.lg-feat i {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-style: normal;
  color: #fff;
  flex: 0 0 auto;
  font-size: 13px;
}
.lg-foot {
  position: absolute;
  bottom: 22px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 12px;
  color: var(--ink4);
}
.splash {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #fff;
}
.splash img {
  height: 54px;
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.5;
    transform: scale(0.97);
  }
}
.spin {
  width: 22px;
  height: 22px;
  border: 3px solid #e2e6ee;
  border-top-color: var(--indigo);
  border-radius: 50%;
  animation: sp 0.8s linear infinite;
  display: inline-block;
}
@keyframes sp {
  to {
    transform: rotate(360deg);
  }
}
.loading {
  display: grid;
  place-items: center;
  padding: 60px;
}
.skel {
  background: linear-gradient(90deg, #eef1f6 25%, #f7f8fb 50%, #eef1f6 75%);
  background-size: 200% 100%;
  animation: sk 1.2s infinite;
  border-radius: 12px;
}
@keyframes sk {
  to {
    background-position: -200% 0;
  }
}
.fab {
  display: none;
}

/* ================= responsive ================= */
@media (max-width: 1100px) {
  .me-btn .nm,
  .prod-tag {
    display: none;
  }
}
@media (max-width: 900px) {
  :root {
    --hdr: 56px;
  }
  .side {
    transform: translateX(-105%);
    width: var(--side) !important;
    box-shadow: var(--sh2);
  }
  body.nav-open .side {
    transform: none;
  }
  body.nav-open .scrim-nav {
    display: block;
  }
  body.nav-c .side .lbl,
  body.nav-c .nav .cnt,
  body.nav-c .lvlcard .txt {
    display: initial;
  }
  body.nav-c .nav button {
    justify-content: flex-start;
    padding: 7px 8px;
  }
  .main,
  body.nav-c .main {
    margin-left: 0;
    padding: 14px 14px 96px;
  }
  .search {
    display: none;
  }
  .search.mob {
    display: block;
    position: fixed;
    top: var(--hdr);
    left: 0;
    right: 0;
    padding: 8px 12px;
    background: #fff;
    max-width: none;
    border-bottom: 1px solid var(--line);
    z-index: 34;
  }
  .newbtn span {
    display: none;
  }
  .newbtn {
    width: 38px;
    padding: 0;
    justify-content: center;
  }
  .logo img {
    height: 28px;
  }
  .g2,
  .g3,
  .g4 {
    grid-template-columns: 1fr;
  }
  .hero {
    flex-wrap: wrap;
    gap: 14px;
    padding: 16px;
  }
  .hero .ring {
    transform: scale(0.72);
    transform-origin: left center;
    width: 82px;
    height: 112px;
    margin-right: -4px;
  }
  .hero > div:nth-child(2) {
    flex: 1 1 200px;
  }
  .hero .cta {
    margin-left: 0;
    align-items: stretch;
    width: 100%;
  }
  .hero h2 {
    font-size: 18px;
  }
  .fr {
    grid-template-columns: 96px 1fr 96px;
  }
  .kv {
    grid-template-columns: 120px 1fr;
  }
  .g2f {
    grid-template-columns: 1fr;
  }
  .top h1 {
    font-size: 19px;
  }
  .login {
    grid-template-columns: 1fr;
  }
  .lg-art {
    padding: 28px 22px 30px;
    min-height: auto;
  }
  .lg-photo {
    width: min(300px, 80%);
    margin: 0 auto;
  }
  .lg-copy {
    margin-top: 22px;
    text-align: center;
  }
  .lg-copy h1 {
    font-size: 26px;
  }
  .lg-badge {
    display: none;
  }
  .lg-form {
    padding: 30px 22px 70px;
  }
  .fab {
    display: grid;
    position: fixed;
    right: 16px;
    bottom: 18px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 0;
    background: linear-gradient(135deg, #f59e0b, var(--brand));
    color: #fff;
    font-size: 24px;
    box-shadow: 0 12px 28px rgba(240, 90, 41, 0.45);
    z-index: 31;
    place-items: center;
  }
  .toasts {
    left: 12px;
    right: 12px;
    align-items: stretch;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* ================= Form kit — one look for every form (based on the Meeting Report) ================= */
.sheet .sh {
  display: flex;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: -18px;
  background: #fff;
  padding: 12px 0;
  margin: -6px 0 4px;
  z-index: 5;
  border-bottom: 1px solid var(--line);
}
.sheet .sh .sh-t {
  flex: 1;
  min-width: 0;
}
.sheet .sh h3 {
  flex: none;
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.sheet .sh .sh-s {
  font-size: 12px;
  color: var(--ink3);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sh-x {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 14px;
  cursor: pointer;
  flex: none;
  display: grid;
  place-items: center;
  transition:
    background 0.12s,
    color 0.12s;
}
.sh-x:hover {
  background: #e5e7eb;
  color: #111827;
}
.sh-badge {
  flex: none;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--indigo-bg);
  color: var(--indigo);
}
label.f {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink3);
  margin: 16px 0 6px;
}
label.f .muted {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  color: var(--ink4);
}
.sheet input[type='text'],
.sheet input[type='email'],
.sheet input[type='number'],
.sheet input[type='date'],
.sheet input[type='datetime-local'],
.sheet input[type='tel'],
.sheet select,
#logp input[type='text'],
#logp input[type='date'],
#logp input[type='datetime-local'],
#logp select,
#editBox input[type='text'] {
  border: 1.5px solid var(--line);
  border-radius: 10px;
  min-height: 42px;
  padding: 9px 12px;
  font-size: 13.5px;
}
.sheet textarea,
#logp textarea {
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13.5px;
  line-height: 1.45;
  min-height: 56px;
}
.sheet input:focus,
.sheet select:focus,
.sheet textarea:focus,
#logp input:focus,
#logp select:focus,
#logp textarea:focus,
#editBox input:focus {
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}
.sheet ::placeholder,
#logp ::placeholder {
  color: #9ca3af;
}
.sheet .chips button,
#logp .chips button {
  border-width: 1.5px;
  padding: 6px 13px;
  font-size: 12.5px;
}
.step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  margin: 22px 0 2px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.step .n {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--indigo);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex: none;
}
.sheet .btn.pri.lg,
#logp .btn.pri.lg,
.fk-save {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  border: none;
  background: var(--indigo);
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.24);
  cursor: pointer;
}
.sheet .btn.pri.lg:hover,
#logp .btn.pri.lg:hover,
.fk-save:hover {
  filter: brightness(1.06);
}
.sheet .btn.pri.lg:disabled,
.fk-save:disabled {
  opacity: 0.7;
}
#logp .box {
  padding: 16px;
}
#logp .hint {
  margin-top: 10px;
}
.sheet .err {
  text-align: center;
  font-size: 12.5px;
}
#editBox .box h4 {
  font-size: 15px;
}

/* ================= Meeting Report (and shared pieces: section, tick, toggle, segmented choice, upload) ================= */
.mrx {
  --mi: #111827;
  --ms: #6b7280;
  --mm: #9ca3af;
  --ml: #e5e7eb;
  --ma: #4f46e5;
  --mas: #eef2ff;
  --mo: #10b981;
  --mos: #ecfdf5;
  --md: #ef4444;
  color: var(--mi);
  background: #fff;
  font-size: 13.5px;
}
.mrx * {
  box-sizing: border-box;
}
.mrx button {
  font-family: inherit;
}
.mr-prog {
  height: 3px;
  background: var(--ml);
  border-radius: 3px;
  overflow: hidden;
  margin: 2px 0 0;
}
.mr-prog i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--ma), var(--mo));
  transition: width 0.2s ease-out;
}
.mr-top {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  padding: 14px 0 16px;
  border-bottom: 1px solid var(--ml);
}
.mr-fld {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.mr-fld.mr-grow {
  flex: 1;
}
.mr-lbl {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ms);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.mrx input.mr-date,
.mrx input.mr-ns {
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--mi);
  height: 42px;
  min-height: 42px;
  padding: 0 12px;
  border: 1.5px solid var(--ml);
  border-radius: 10px;
  background: #fff;
  outline: none;
  margin: 0;
}
.mrx input.mr-date {
  width: 150px;
  max-width: none;
}
.mrx input.mr-ns {
  width: 100%;
}
.mrx input.mr-ns::placeholder {
  font-weight: 500;
}
.mr-tg {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.mr-sw {
  position: relative;
  width: 46px;
  height: 26px;
  border-radius: 20px;
  background: #d1d5db;
  cursor: pointer;
  transition: background 0.15s;
  border: none;
  padding: 0;
  flex: none;
}
.mr-sw::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s cubic-bezier(0.3, 1.5, 0.6, 1);
}
.mr-sw.on {
  background: var(--md);
}
.mr-sw.on::after {
  transform: translateX(20px);
}
.mr-sw.ok.on {
  background: var(--mo);
}
.mrx.mr-dead .mr-top .mr-fld,
.mrx.mr-dead .mr-prog {
  display: none;
}
.mrx.mr-dead .mr-top {
  justify-content: flex-end;
}
.mrx.mr-dead .mr-sec {
  display: none;
}
.mr-deadnote {
  display: none;
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}
.mr-deadnote b {
  display: block;
  font-size: 13.5px;
  margin-bottom: 2px;
}
.mrx.mr-dead .mr-deadnote {
  display: block;
}
.mr-sec {
  padding: 18px 0;
}
.mr-sec + .mr-sec {
  border-top: 1px solid var(--ml);
}
.mr-sh {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.mr-sh h4 {
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
}
.mr-cnt {
  font-size: 11.5px;
  color: var(--mm);
  font-weight: 600;
}
.mr-tick {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--mo);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mr-pop {
  animation: mrPop 0.3s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.mr-sh .mr-tick {
  display: none;
}
.mr-sh.done .mr-tick {
  display: inline-flex;
  animation: mrPop 0.3s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.mr-dl {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}
.mr-dl:empty {
  display: none;
}
.mr-rd {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border-radius: 10px;
  background: var(--mos);
  cursor: pointer;
  animation: mrIn 0.18s ease-out;
}
.mr-rd small {
  font-size: 11px;
  color: var(--ms);
  font-weight: 600;
  width: 90px;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.mr-rd .mr-v {
  font-size: 13.5px;
  font-weight: 600;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mr-aq {
  font-size: 12.5px;
  color: var(--ms);
  margin-bottom: 6px;
  font-weight: 600;
}
.mr-aq.bad {
  color: var(--md);
}
.mr-ask {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--ml);
  border-radius: 12px;
  padding: 4px 4px 4px 14px;
  transition: border-color 0.12s;
}
.mr-ask:focus-within {
  border-color: var(--ma);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}
.mrx .mr-ask input {
  flex: 1;
  border: none;
  outline: none;
  font: inherit;
  font-size: 14px;
  height: 38px;
  min-height: 38px;
  background: transparent;
  min-width: 0;
  padding: 0;
  margin: 0;
  box-shadow: none;
}
.mr-btn {
  height: 36px;
  padding: 0 16px;
  border-radius: 9px;
  border: none;
  background: var(--ma);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.08s;
  flex: none;
}
.mr-btn:active {
  transform: scale(0.95);
}
.mr-aw {
  animation: mrIn 0.18s ease-out;
}
.mr-aw.hide {
  display: none;
}
.mr-q {
  margin-bottom: 14px;
}
.mr-q:last-child {
  margin-bottom: 0;
}
.mr-qh {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.mr-qn {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f3f4f6;
  color: var(--ms);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition:
    background 0.15s,
    color 0.15s;
}
.mr-q.cur .mr-qn {
  background: var(--ma);
  color: #fff;
}
.mr-q.past.ans .mr-qn {
  background: var(--mo);
  color: #fff;
}
.mr-qt {
  font-size: 13.5px;
  font-weight: 600;
}
.mr-qp {
  margin-left: auto;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
}
.mr-qp:empty {
  display: none;
}
.mr-qp.l1 {
  background: #eef2ff;
  color: #6366f1;
}
.mr-qp.l2 {
  background: #f3e8ff;
  color: #8b5cf6;
}
.mr-qp.l3 {
  background: var(--mos);
  color: #10b981;
}
.mrx textarea.mr-ta {
  width: 100%;
  border: 1.5px solid var(--ml);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  font-size: 13.5px;
  line-height: 1.45;
  resize: none;
  outline: none;
  min-height: 56px;
  overflow: hidden;
  margin: 0;
  background: #fff;
  color: var(--mi);
  transition: border-color 0.12s;
}
.mrx textarea.mr-ta:focus {
  border-color: var(--ma);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}
.mr-q.big textarea.mr-ta {
  min-height: 90px;
}
.mr-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}
.mr-hint {
  padding: 5px 10px;
  border-radius: 999px;
  background: #f3f4f6;
  color: var(--ms);
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: transform 0.08s;
}
.mr-hint:hover {
  background: var(--mas);
  color: var(--ma);
}
.mr-hint:active {
  transform: scale(0.94);
}
.mr-q.future {
  display: none;
}
.mr-q.past .mr-ta,
.mr-q.past .mr-hints,
.mr-q.past .mr-act,
.mr-q.past .mr-meter {
  display: none;
}
.mr-ans {
  display: none;
  font-size: 12.5px;
  color: var(--ms);
  margin: -2px 0 0 28px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mr-q.past .mr-ans {
  display: block;
}
.mr-q.past {
  cursor: pointer;
  padding: 8px 10px;
  margin: 0 -10px 4px;
  border-radius: 10px;
  transition: background 0.12s;
}
.mr-q.past:hover {
  background: #f9fafb;
}
.mr-q.past .mr-qh {
  margin-bottom: 2px;
}
.mr-q.cur {
  animation: mrIn 0.18s ease-out;
}
.mr-q.empty .mr-ans {
  font-style: italic;
  color: var(--md);
}
.mr-act {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}
.mr-meter {
  margin-top: 12px;
  padding: 0 9px;
}
.mr-trk {
  position: relative;
  height: 8px;
  border-radius: 8px;
  background: #f1f2f4;
}
.mr-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  border-radius: 8px;
  background: #6366f1;
  transition: width 0.12s ease-out;
}
.mr-fill.l2 {
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
}
.mr-fill.l3 {
  background: linear-gradient(90deg, #6366f1, #8b5cf6, #10b981);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.45);
}
.mr-fill.glow {
  animation: mrGlow 0.45s ease-out;
}
.mr-tk {
  position: absolute;
  top: 50%;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--ml);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: var(--mm);
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
  z-index: 2;
}
.mr-tk.hit {
  color: #fff;
  animation: mrPop 0.35s cubic-bezier(0.3, 1.7, 0.5, 1);
}
.mr-tk.hit[data-l='1'] {
  background: #6366f1;
  border-color: #6366f1;
}
.mr-tk.hit[data-l='2'] {
  background: #8b5cf6;
  border-color: #8b5cf6;
}
.mr-tk.hit[data-l='3'] {
  background: #10b981;
  border-color: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
}
.mr-tk i {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: 0;
  pointer-events: none;
}
.mr-tk[data-l='1'] i {
  color: #6366f1;
}
.mr-tk[data-l='2'] i {
  color: #8b5cf6;
}
.mr-tk[data-l='3'] i {
  color: #10b981;
}
.mr-tk.burst i {
  animation: mrRing 0.5s ease-out;
}
.mr-mt {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--mm);
  font-weight: 500;
  min-height: 16px;
}
.mr-msg b {
  font-weight: 700;
}
.mr-msg.cheer {
  font-weight: 700;
  animation: mrCheer 0.3s ease-out;
}
.mr-msg.c1 {
  color: #6366f1;
}
.mr-msg.c2 {
  color: #8b5cf6;
}
.mr-msg.c3 {
  color: #10b981;
}
.mr-score {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--mas);
  color: var(--ma);
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  transition:
    background 0.2s,
    color 0.2s;
}
.mr-score.bump {
  animation: mrPop 0.35s cubic-bezier(0.3, 1.7, 0.5, 1);
}
.mr-score.full {
  background: var(--mos);
  color: var(--mo);
}
.mr-fly {
  position: fixed;
  z-index: 9999;
  font-size: 15px;
  font-weight: 800;
  pointer-events: none;
  transition:
    transform 0.55s cubic-bezier(0.5, 0, 0.2, 1),
    opacity 0.55s;
  text-shadow: 0 1px 0 #fff;
}
.mr-spark {
  position: fixed;
  z-index: 9998;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  pointer-events: none;
  transition:
    transform 0.45s ease-out,
    opacity 0.45s;
}
.mr-foot {
  position: sticky;
  bottom: -26px;
  padding: 14px 0 6px;
  margin-bottom: -6px;
  background: linear-gradient(to top, #fff 75%, rgba(255, 255, 255, 0));
  z-index: 4;
}
.mr-save {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  border: none;
  background: var(--mi);
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.15s,
    transform 0.08s;
}
.mr-save:active {
  transform: scale(0.98);
}
.mr-save.ready {
  background: var(--ma);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.24);
}
.mr-save.danger {
  background: var(--md);
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.22);
}
.mr-save.go {
  background: linear-gradient(135deg, #059669, #10b981);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.25);
}
.mr-save:disabled {
  opacity: 0.7;
}
.mr-err {
  color: var(--md);
  font-size: 12.5px;
  font-weight: 500;
  min-height: 16px;
  margin-bottom: 6px;
  text-align: center;
}
.mr-shake {
  animation: mrShake 0.2s;
}
/* toggle row, segmented choice, upload drop zone (onboarding and other forms) */
.mr-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1.5px solid var(--ml);
  border-radius: 12px;
  background: #fff;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.mr-row.on {
  border-color: #a7f3d0;
  background: var(--mos);
}
.mr-row .mr-rt {
  flex: 1;
  min-width: 0;
}
.mr-row .mr-rt b {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
}
.mr-row .mr-rt span {
  font-size: 12px;
  color: var(--ms);
}
.mr-seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.mr-seg button {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 12px 14px;
  border: 1.5px solid var(--ml);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: all 0.12s;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--mi);
}
.mr-seg button span {
  font-size: 18px;
  line-height: 1;
}
.mr-seg button small {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ms);
  margin-top: 1px;
}
.mr-seg button:hover {
  border-color: #c7d2fe;
}
.mr-seg button.on {
  border-color: var(--ma);
  background: var(--mas);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}
.mr-drop {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 14px;
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  background: #fafafa;
  cursor: pointer;
  transition: all 0.15s;
}
.mr-drop:hover {
  border-color: var(--ma);
  background: var(--mas);
}
.mr-drop.has {
  border-style: solid;
  border-color: #6ee7b7;
  background: var(--mos);
}
.mr-drop.need {
  border-color: #fca5a5;
  background: #fef2f2;
}
.mr-drop .mr-di {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--ml);
  display: grid;
  place-items: center;
  font-size: 20px;
  flex: none;
  overflow: hidden;
}
.mr-drop .mr-di img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mr-drop .mr-dt {
  flex: 1;
  min-width: 0;
}
.mr-drop .mr-dt b {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
}
.mr-drop .mr-dt span {
  display: block;
  font-size: 12px;
  color: var(--ms);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mr-drop.has .mr-dt span {
  color: #047857;
  font-weight: 600;
}
.mr-drop input[type='file'] {
  display: none;
}
.mr-req {
  color: var(--md);
  font-weight: 700;
}
.mr-cel {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 2px;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ecfdf5, #f0fdfa);
  border: 1px solid #a7f3d0;
}
.mr-cel .mr-ci {
  font-size: 26px;
  line-height: 1;
}
.mr-cel b {
  display: block;
  font-size: 14px;
  color: #065f46;
}
.mr-cel span {
  font-size: 12.5px;
  color: #047857;
}
@keyframes mrIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes mrPop {
  0% {
    transform: scale(0.6);
  }
  55% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes mrRing {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}
@keyframes mrGlow {
  0% {
    filter: brightness(1);
  }
  40% {
    filter: brightness(1.35);
  }
  100% {
    filter: brightness(1);
  }
}
@keyframes mrCheer {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  60% {
    transform: scale(1.08);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}
@keyframes mrShake {
  0%,
  100% {
    transform: none;
  }
  25% {
    transform: translateX(-4px);
  }
  75% {
    transform: translateX(4px);
  }
}
@media (max-width: 480px) {
  .mr-top {
    flex-wrap: wrap;
  }
  .mr-top .mr-grow {
    flex-basis: 100%;
  }
  .mrx input.mr-date {
    width: 100%;
  }
  .mr-top .mr-fld:nth-child(2) {
    flex: 1;
  }
  .mr-seg {
    grid-template-columns: 1fr;
  }
}

/* ================= Activity, grouped (Calls · Meetings · Other updates) ================= */
.tlg {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--sh);
}
.tlg-h {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fbfcff, #fff);
}
.tlg-h .tlg-i {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 15px;
  color: #fff;
  flex: none;
}
.tlg-h h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}
.tlg-h .tlg-c {
  font-size: 11.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--ink2);
}
.tlg-sum {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-left: auto;
  justify-content: flex-end;
}
.tlg-sum span {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid var(--line);
  color: var(--ink2);
  white-space: nowrap;
}
.tlg-sum span.good {
  background: var(--good-bg);
  border-color: #bbf7d0;
  color: #15803d;
}
.tlg-sum span.warn {
  background: var(--warn-bg);
  border-color: #fde68a;
  color: #b45309;
}
.tlg-sum span.bad {
  background: var(--bad-bg);
  border-color: #fecaca;
  color: #b91c1c;
}
.tlg .tl {
  padding: 14px 14px 2px;
}
.tlg.calls .tlg-i {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
}
.tlg.meet .tlg-i {
  background: linear-gradient(135deg, #db2777, #f43f5e);
}
.tlg.other .tlg-i {
  background: linear-gradient(135deg, #0d9488, #14b8a6);
}
.tlg .tl-more {
  display: block;
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
  background: #fafbfe;
  padding: 9px;
  color: var(--indigo);
  font-weight: 600;
  font-size: 12.5px;
  cursor: pointer;
}
@media (max-width: 640px) {
  .tlg-h {
    flex-wrap: wrap;
  }
  .tlg-sum {
    margin-left: 0;
    justify-content: flex-start;
    width: 100%;
  }
}
.tlg:not(.all) .tl li.x {
  display: none;
}

/* dashboard conversion tiles */
.cvt .cv {
  align-items: flex-start;
}
.cv .cv-n {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 12.5px;
  color: var(--ink2);
  margin-bottom: 2px;
}
.cv .cv-n b {
  color: var(--ink);
  font-weight: 700;
}
.cv .cv-n span {
  margin-left: auto;
  font-weight: 700;
  color: var(--ink3);
  font-size: 12px;
}
.cv .v {
  font-size: 28px;
  line-height: 1.1;
}
.cv .l {
  font-size: 11.5px;
}
.cv .cv-u {
  margin-top: 6px;
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink3);
  background: #f5f7fb;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 8px;
}
/* TvA in monthly targets */
.mp-tva {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 64px;
}
.mp-tva b {
  font-size: 13px;
}
.mp-tva i {
  display: block;
  width: 56px;
  height: 5px;
  border-radius: 5px;
  background: #e5e7eb;
  overflow: hidden;
}
.mp-tva em {
  display: block;
  height: 100%;
  border-radius: 5px;
}
.mp-tva.hit b {
  color: #15803d;
}
.mp-tva.hit em {
  background: #16a34a;
}
.mp-tva.ok b {
  color: #b45309;
}
.mp-tva.ok em {
  background: #f59e0b;
}
.mp-tva.low b {
  color: #b91c1c;
}
.mp-tva.low em {
  background: #ef4444;
}
.mp-tva small {
  font-size: 10.5px;
  color: #6b7280;
  font-weight: 500;
}
.mp .mp-tvh {
  background: #eef2ff;
  color: #3730a3;
}
.mp td.mp-tv {
  background: #fafaff;
}
.mp-row {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
}
.mp-ic td {
  white-space: normal;
}
.mp-ic .mp-tva {
  min-width: 56px;
}
@media (max-width: 1100px) {
  .mp-row {
    grid-template-columns: 1fr;
  }
}

/* ===== dashboard v2 ===== */
.cvt {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.pv-when {
  margin: 0 0 8px;
  font-weight: 600;
}
.cc-sec {
  margin: 0 0 26px;
  padding: 14px;
  border-radius: 16px;
  background: #f6f8fb;
  border: 1px solid #e8eaed;
}
.cc-h {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
}
.cc-h h2 {
  margin: 0;
  font-size: 18px;
}
.cc-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.cc-t {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
}
.cc-t .v {
  font-size: 26px;
  font-weight: 800;
  margin: 2px 0;
}
.cc-t .l {
  font-weight: 700;
  color: #3c4043;
}
.cc-t .kic {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
}
.cc-crn.open td {
  background: #e8f0fe;
}
.cc-txd td {
  background: #fafbfc;
  padding: 8px 14px;
}
.cc-tx {
  margin: 0;
}
.cc-acts {
  display: inline-flex;
  gap: 6px;
  margin-left: 6px;
}
body.cc-shooting .scroll {
  overflow: visible !important;
  max-height: none !important;
}
@media (max-width: 760px) {
  .cc-tiles {
    grid-template-columns: 1fr;
  }
}
#mplan {
  margin-top: 6px;
}
.cvt .cv {
  padding: 14px 14px;
  gap: 10px;
}
.cvt .kic {
  width: 38px;
  height: 38px;
  font-size: 17px;
  border-radius: 11px;
}
.cvt .cv .v {
  font-size: 26px;
}
@media (max-width: 1600px) {
  .cvt {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .cvt {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cvt .kic {
    display: none;
  }
  .cvt .cv .v {
    font-size: 22px;
  }
}
.dash-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: 16px;
  align-items: start;
}
@media (max-width: 1000px) {
  .dash-2 {
    grid-template-columns: 1fr;
  }
}
.fr {
  grid-template-columns: 170px 1fr 190px;
}
.fr .fr-d {
  font-size: 11px;
  color: var(--ink4);
  margin-top: 1px;
}
.fr .val small b {
  color: var(--ink);
  font-size: 11px;
}
@media (max-width: 640px) {
  .fr {
    grid-template-columns: 100px 1fr 110px;
  }
  .fr .fr-d {
    display: none;
  }
}
.cl-g {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}
.cl-t {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: linear-gradient(180deg, #fff, #fbfcfe);
}
.cl-v {
  font: 800 22px var(--fd);
  letter-spacing: -0.02em;
}
.cl-l {
  font-size: 11.5px;
  color: var(--ink3);
  margin-top: 2px;
}
.cl-l b {
  display: block;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
}
.cv-wrap {
  margin: 4px 0 18px;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, #f8fbff 0%, #fff 45%, #fffaf0 100%);
  border: 1px solid #e3e8f0;
  box-shadow:
    0 1px 2px rgba(60, 64, 67, 0.08),
    0 2px 8px rgba(60, 64, 67, 0.06);
}
.cv-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}
.cv-head h2 {
  margin: 2px 0 4px;
  font: 700 20px var(--fd);
  letter-spacing: -0.01em;
  color: #202124;
}
.cv-kick {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #4285f4, #ea4335, #fbbc05, #34a853);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cv-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0 16px;
}
.cv-tabs button {
  border: 1px solid #dadce0;
  background: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 13px;
  color: #3c4043;
  cursor: pointer;
  transition: all 0.15s;
}
.cv-tabs button:hover {
  background: #f1f3f4;
}
.cv-tabs button.on {
  background: var(--gc);
  border-color: var(--gc);
  color: #fff;
  box-shadow: 0 2px 6px rgba(60, 64, 67, 0.25);
}
.cv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(188px, 1fr));
  gap: 12px;
}
.cv-box {
  position: relative;
  background: #fff;
  border: 1px solid #e3e8f0;
  border-radius: 16px;
  padding: 14px 16px 12px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.06);
}
.cv-box:before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 4px;
  background: var(--gc);
}
.cv-click {
  cursor: pointer;
  transition:
    transform 0.12s,
    box-shadow 0.12s;
}
.cv-click:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(60, 64, 67, 0.15);
}
.cv-bh {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #202124;
}
.cv-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gc);
  flex: none;
  margin-right: 6px;
  vertical-align: middle;
}
.cv-bh .cv-dot {
  margin: 0;
}
.cv-sub {
  font-size: 11.5px;
  color: #5f6368;
  margin-top: 2px;
}
.cv-u {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 10px;
}
.cv-u span {
  font: 800 28px var(--fd);
  letter-spacing: -0.02em;
  color: #202124;
}
.cv-u small {
  font-size: 11px;
  color: #5f6368;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}
.cv-bar {
  height: 6px;
  border-radius: 3px;
  background: #eef1f6;
  overflow: hidden;
  margin: 8px 0 10px;
}
.cv-bar i {
  display: block;
  height: 100%;
  background: var(--gc);
  border-radius: 3px;
}
.cv-ks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 10px;
}
.cv-ks div {
  display: grid;
  line-height: 1.25;
}
.cv-ks b {
  font-size: 16px;
  color: #202124;
}
.cv-ks span {
  font-size: 11px;
  color: #5f6368;
}
.cv-ks em {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: #188038;
}
.cv-ks em i {
  display: block;
  font-style: normal;
  font-weight: 500;
  color: #80868b;
}
.cv-tcard {
  margin-top: 16px;
  border-radius: 16px;
}
.cv-t td {
  line-height: 1.25;
}
.cv-t td.num b {
  display: block;
  font-size: 13.5px;
  color: #202124;
}
.cv-p {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  color: #188038;
}
.cv-pu {
  display: block;
  font-size: 10px;
  color: #80868b;
}
.cv-t td.cv-uc {
  font-weight: 800;
  font-size: 14px;
  background: #f8fbff;
}
.cv-t th {
  white-space: nowrap;
  padding: 9px 8px;
}
.cv-t td {
  padding: 9px 8px;
}
.cv-t td.l {
  white-space: normal;
  min-width: 170px;
}
.cv-t tr.crt-tot td {
  background: #f1f3f4;
  font-weight: 700;
}
.crt-sub td {
  background: #f8fafd;
  font-weight: 700;
  border-top: 1px solid #dadce0;
}
.crt-sub td.l {
  color: #1a73e8;
}
.dfb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.mp-sum td {
  background: #f1f3f4;
}
@media (min-width: 1601px) {
  .cvt.cvt5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
.cv-more {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 10px;
  font-size: 12px;
  font-weight: 700;
  color: #5f6368;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.cv-more:after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e3e8f0;
}
@media (max-width: 640px) {
  .cv-wrap {
    padding: 14px;
    border-radius: 16px;
  }
  .cv-grid {
    grid-template-columns: 1fr;
  }
  .cv-tabs button {
    padding: 7px 12px;
    font-size: 12.5px;
  }
}
.cv-two {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  margin-top: 10px;
}
.cv-two div {
  display: grid;
  line-height: 1.1;
}
.cv-two span {
  font: 800 26px var(--fd);
  letter-spacing: -0.02em;
  color: #202124;
}
.cv-two .cv-con span {
  color: #188038;
}
.cv-two small {
  font-size: 11px;
  color: #5f6368;
  font-weight: 600;
  margin-top: 3px;
}
.cv-filt {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0 4px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #e3e8f0;
  border-radius: 14px;
}
.cv-fic {
  font-size: 18px;
  color: #4285f4;
  align-self: center;
}
.cv-f {
  display: grid;
  gap: 3px;
}
.cv-f span {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5f6368;
}
.cv-f select {
  min-width: 190px;
  border-radius: 999px;
  padding: 6px 12px;
  border: 1px solid #dadce0;
  background: #f8fbff;
  font-weight: 600;
  font-size: 13px;
}
.cv-fn {
  margin-left: auto;
  align-self: center;
  font-size: 12px;
  font-weight: 700;
  color: #188038;
  background: #e6f4ea;
  border-radius: 999px;
  padding: 4px 10px;
}
.cv-jump {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0 4px;
}
.cv-jump a {
  border: 1px solid #dadce0;
  background: #fff;
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 600;
  font-size: 12.5px;
  color: #3c4043;
  text-decoration: none;
}
.cv-jump a:hover {
  border-color: var(--gc);
  color: var(--gc);
}
.cv-sec {
  margin-top: 22px;
  scroll-margin-top: 80px;
}
.cv-sh {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.cv-sh h3 {
  margin: 0;
  font: 700 17px var(--fd);
  color: #202124;
}
.cv-n {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gc);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  flex: none;
}
.mp-prog {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
  font-size: 12px;
  color: #5f6368;
}
.mp-prog i {
  display: block;
  width: 180px;
  height: 8px;
  border-radius: 4px;
  background: #eef1f6;
  overflow: hidden;
}
.mp-prog s {
  display: block;
  height: 100%;
  text-decoration: none;
  background: linear-gradient(90deg, #4285f4, #34a853);
}
.mp-t.ew-t td.g0b {
  background: #e8f0fe;
}
.mp-t.ew-t td.g1b {
  background: #e6f4ea;
}
.mp-t.ew-t td.g2b {
  background: #fce8e6;
}
.mp-t.ew-t td.g3b {
  background: #e8f0fe;
}
.mp-t.ew-t td.g4b {
  background: #fef7e0;
}
.mp-t.ew-t td.g5b {
  background: #e6f4ea;
}
.mp-t.ew-t td.g6b {
  background: #f3e8fd;
}
.mp-t td.mp-pt {
  color: #5f6368;
}
.mp-t.ew-t th.g0 {
  background: #e8f0fe;
}
.mp-t.ew-t th.g1 {
  background: #e6f4ea;
}
.mp-t.ew-t th.g4 {
  background: #fef7e0;
}
.mp-t.ew-t th.g2 {
  background: #fce8e6;
}
.mp-t.ew-t th.g3 {
  background: #e8f0fe;
}
.mp-t.ew-t th.g5 {
  background: #e6f4ea;
}
.mp-t.ew-t th.g6 {
  background: #f3e8fd;
}
.mp-t .ew-g th.g0,
.mp-t .ew-g th.g3 {
  border-top: 3px solid #4285f4;
  color: #1967d2;
}
.mp-t .ew-g th.g1,
.mp-t .ew-g th.g5 {
  border-top: 3px solid #34a853;
  color: #188038;
}
.mp-t .ew-g th.g4 {
  border-top: 3px solid #fbbc05;
  color: #b06000;
}
.mp-t .ew-g th.g2 {
  border-top: 3px solid #ea4335;
  color: #c5221f;
}
.mp-t .ew-g th.g6 {
  border-top: 3px solid #a142f4;
  color: #8430ce;
}
.mp-t th,
.mp-t td {
  padding: 8px 8px;
}
.mp-cnt .mp-t td.num {
  font-size: 15px;
}
.mp-cnt .mp-t th {
  padding: 10px 12px;
}
.mp-t .mp-stk {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #fff;
  min-width: 230px;
  max-width: 260px;
  white-space: normal;
  box-shadow: 1px 0 0 #e3e8f0;
}
.mp-t thead .mp-stk {
  background: #f8fafc;
  z-index: 3;
}
.mp-t tr.ew-p .mp-stk {
  background: #fafbff;
}
.mp-t tr.crt-tot .mp-stk {
  background: #f1f3f4;
}
.mp-pr {
  padding-left: 16px;
  font-size: 12.5px;
}
.mp-city {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  background: #5f6368;
  border-radius: 6px;
  padding: 1px 6px;
  margin-right: 6px;
  vertical-align: 1px;
}
.mp-card {
  border-radius: 16px;
}
.mp-busy {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.15s;
}
.mp-t tr.crt-sub td {
  background: #e8f0fe;
  font-weight: 700;
  border-top: 2px solid #c6dafc;
}
.mp-t tr.mp-oth td {
  border-top: 2px solid #e3e8f0;
}
.mp-dpick {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-left: auto;
}
.mp-dpick input {
  width: auto;
  padding: 4px 8px;
  font-size: 12.5px;
}
.mp-dpick .btn.on {
  background: #fbbc05;
  border-color: #fbbc05;
  color: #202124;
}
.mp-edtabs {
  flex-wrap: wrap;
  margin: 4px 0 10px;
}
.mp-edt th {
  padding: 8px 6px;
  font-size: 10px;
}
.mp-edt td {
  padding: 4px;
}
.mp-edt td.l {
  min-width: 170px;
  white-space: normal;
}
.mp-edt input {
  width: 72px;
  padding: 6px;
  text-align: right;
}
.mp-edt th.g0,
.mp-edt th.g3 {
  background: #e8f0fe;
  color: #1967d2;
}
.mp-edt th.g1,
.mp-edt th.g5 {
  background: #e6f4ea;
  color: #188038;
}
.mp-edt th.g4 {
  background: #fef7e0;
  color: #b06000;
}
.mp-edt th.g2 {
  background: #fce8e6;
  color: #c5221f;
}
.mp-edt th.g6 {
  background: #f3e8fd;
  color: #8430ce;
}
.mp-edr {
  display: grid;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.mp-edg {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.mp-edg label {
  display: grid;
  gap: 4px;
  font-size: 11.5px;
  color: var(--ink3);
}
@media (max-width: 520px) {
  .mp-edg {
    grid-template-columns: 1fr 1fr;
  }
}
/* CRM tables */
.crt-card {
  margin-top: 16px;
  overflow: hidden;
}
.crt-card .sect-h {
  flex-wrap: wrap;
}
.crt {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}
.crt th {
  background: #f8fafc;
  color: #64748b;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  white-space: nowrap;
}
.crt th.l,
.crt td.l {
  text-align: left;
}
.crt td {
  padding: 10px 14px;
  border-bottom: 1px solid #eef2f7;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}
.crt tbody tr:hover td:not(.crt-team) {
  background: #fafbff;
}
.crt td.b {
  font-weight: 700;
}
.crt .crt-g th {
  font-size: 11px;
  color: #334155;
  border-bottom: 0;
  padding-bottom: 4px;
}
.crt .crt-g th.g0,
.crt .crt-s th.g0 {
  background: #e8f0fe;
}
.crt .crt-g th.g0 {
  color: #1967d2;
  border-top: 3px solid #4285f4;
}
.crt .crt-g th.g1,
.crt .crt-s th.g1 {
  background: #e6f4ea;
}
.crt .crt-g th.g1 {
  color: #188038;
  border-top: 3px solid #34a853;
}
.crt .crt-g th.g2,
.crt .crt-s th.g2 {
  background: #fce8e6;
}
.crt .crt-g th.g2 {
  color: #c5221f;
  border-top: 3px solid #ea4335;
}
.crt .crt-g th.g3,
.crt .crt-s th.g3 {
  background: #e8f0fe;
}
.crt .crt-g th.g3 {
  color: #1967d2;
  border-top: 3px solid #4285f4;
}
.crt .crt-g th.g4,
.crt .crt-s th.g4 {
  background: #fef7e0;
}
.crt .crt-g th.g4 {
  color: #b06000;
  border-top: 3px solid #fbbc05;
}
.crt .crt-g th.g5,
.crt .crt-s th.g5 {
  background: #fce8e6;
}
.crt .crt-g th.g5 {
  color: #c5221f;
  border-top: 3px solid #ea4335;
}
.crt td.crt-ad,
.crt td.crt-c {
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.crt td.crt-ad {
  color: #1e40af;
  font-weight: 600;
}
.edu-card {
  margin-top: 0;
}
.crt-nt {
  display: block;
  font-style: normal;
  font-weight: 500;
  font-size: 10px;
  opacity: 0.7;
  text-transform: none;
  letter-spacing: 0;
}
.crt-ag {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted, #64748b);
  white-space: nowrap;
  margin-top: 2px;
}
.crt td.crt-team {
  font-weight: 700;
  background: #fff;
  border-right: 1px solid #eef2f7;
  vertical-align: top;
  padding-top: 12px;
}
.crt td.crt-team span {
  display: inline-block;
  margin-top: 3px;
  font-size: 10.5px;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 1px 7px;
}
.crt tr.grp-first td {
  border-top: 1px solid #e2e8f0;
}
.crt tbody tr:first-child td {
  border-top: 0;
}
.crt td.crt-t {
  font-weight: 600;
  color: #0f172a;
}
.crt td.crt-v {
  background: #fcfcff;
}
.crt tr.crt-tot td {
  background: #f8fafc;
  font-weight: 800;
  border-top: 2px solid #e2e8f0;
  border-bottom: 0;
}
.crt-done {
  font-size: 10.5px;
  color: #16a34a;
  font-weight: 600;
  margin-top: 2px;
}
.tvc {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 70px;
  padding: 3px 6px;
  border-radius: 8px;
}
.tvc b {
  font-size: 13.5px;
  font-weight: 800;
}
.tvc i {
  display: block;
  width: 60px;
  height: 5px;
  border-radius: 5px;
  background: #e5e7eb;
  overflow: hidden;
}
.tvc em {
  display: block;
  height: 100%;
  border-radius: 5px;
}
.tvc small {
  font-size: 10.5px;
  color: #64748b;
  font-weight: 500;
}
.tvc small u {
  text-decoration: none;
  color: var(--indigo);
  font-weight: 700;
}
.tvc.hit b {
  color: #188038;
}
.tvc.hit em {
  background: #34a853;
}
.tvc.ok b {
  color: #b06000;
}
.tvc.ok em {
  background: #fbbc05;
}
.tvc.low b {
  color: #d93025;
}
.tvc.low em {
  background: #ea4335;
}
.tvc.has-l {
  cursor: pointer;
}
.tvc.has-l:hover {
  background: #eef2ff;
}
.crt-two {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.crt-two .crt th {
  white-space: normal;
  padding: 9px 10px;
}
.crt-two .crt td {
  padding: 10px 10px;
}
.crt-two .tvc {
  min-width: 60px;
}
.crt-two .tvc i {
  width: 50px;
}
@media (max-width: 1100px) {
  .crt-two {
    grid-template-columns: 1fr;
  }
}
.ka-sub {
  font-size: 11px;
  color: var(--ink4);
  white-space: normal;
}
.tvpop {
  position: fixed;
  z-index: 9000;
  width: 280px;
  max-height: 320px;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
  padding: 10px;
  display: none;
}
.tvpop.on {
  display: block;
  animation: mrIn 0.12s ease-out;
}
.tvp-h {
  font-weight: 700;
  font-size: 12.5px;
}
.tvp-s {
  font-size: 11.5px;
  color: var(--ink3);
  margin: 2px 0 8px;
}
.tvp-l a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
}
.tvp-l a:hover {
  background: #f5f7fb;
}
.tvp-l a span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tvp-l a b {
  font-size: 11px;
  color: var(--indigo);
  background: #eef2ff;
  border-radius: 999px;
  padding: 1px 7px;
}
.tvp-e {
  font-size: 12.5px;
  color: var(--ink3);
  padding: 6px 2px;
}
.hm-row {
  margin-top: 18px;
  align-items: start;
}

/* Start calls button */
.call-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  color: #1e1b4b;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.25);
  transition:
    transform 0.12s,
    box-shadow 0.12s;
  text-align: left;
  font-family: inherit;
}
.call-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.32);
}
.call-cta:active {
  transform: scale(0.98);
}
.call-cta .cc-i {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 21px;
  background: linear-gradient(135deg, #f05a29, #f59e0b);
  box-shadow: 0 0 0 0 rgba(240, 90, 41, 0.5);
  animation: ccPulse 2.2s infinite;
}
.call-cta .cc-t b {
  display: block;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.call-cta .cc-t small {
  display: block;
  font-size: 11.5px;
  color: #64748b;
  font-weight: 500;
  margin-top: 1px;
}
.call-cta .cc-a {
  font-size: 20px;
  font-weight: 800;
  color: #f05a29;
  margin-left: 6px;
}
.call-cta.dark {
  background: linear-gradient(135deg, #f05a29, #f97316);
  color: #fff;
}
.call-cta.dark .cc-i {
  background: rgba(255, 255, 255, 0.2);
}
.call-cta.dark .cc-t small {
  color: rgba(255, 255, 255, 0.85);
}
.call-cta.dark .cc-a {
  color: #fff;
}
@keyframes ccPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(240, 90, 41, 0.45);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(240, 90, 41, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(240, 90, 41, 0);
  }
}
@media (max-width: 640px) {
  .phero-h {
    flex-wrap: wrap;
    gap: 12px;
  }
  .phero-h .call-cta {
    width: 100%;
  }
}

.crt td.crt-d {
  font-weight: 700;
  color: #334155;
}
.dnc {
  display: inline-block;
  min-width: 28px;
  padding: 3px 8px;
  border-radius: 8px;
}
.dnc.has-l {
  cursor: pointer;
  color: var(--indigo);
  background: #eef2ff;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}
.dnc.has-l:hover {
  background: #e0e7ff;
}
.crt-mtd th,
.crt-mtd td {
  padding-left: 9px;
  padding-right: 9px;
}
.crt-mtd .tvc {
  min-width: 56px;
}
.crt-mtd .tvc i {
  width: 46px;
}
.crt-fun td.num {
  text-align: right;
}
.crt-fun th {
  text-align: right;
}
.crt-fun th.l {
  text-align: left;
}
.crt-fun .pct {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--brand-ink);
  margin-top: 1px;
}

.crt td.crt-p {
  color: #64748b;
  font-weight: 600;
}
.crt-mtd th,
.crt-mtd td {
  padding-left: 7px;
  padding-right: 7px;
}
.crt-mtd .crt-s th {
  white-space: normal;
  line-height: 1.25;
}
.crt-mtd .tvc {
  min-width: 50px;
  padding: 3px 3px;
}
.crt-mtd .tvc i {
  width: 42px;
}
.crt tr.ka-oth td:not(.crt-team) {
  background: #fffbeb;
}

/* ===== home v5 ===== */
.hm-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}
@media (max-width: 1000px) {
  .hm-2 {
    grid-template-columns: minmax(0, 1fr);
  }
}
.hm-2 > * {
  min-width: 0;
}
.bt-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px 14px;
}
.bt-row .bt-lab {
  width: 86px;
  flex: none;
}
.bt-row .bt-lab b {
  display: block;
  font-size: 13px;
}
.bt-row .bt-lab span {
  font-size: 11.5px;
  color: var(--ink3);
}
.bt-row .yts {
  flex: 1;
  padding: 0;
}
@media (max-width: 640px) {
  .bt-row {
    flex-direction: column;
    align-items: stretch;
  }
  .bt-row .bt-lab {
    width: auto;
    display: flex;
    gap: 8px;
    align-items: baseline;
  }
}
.fbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 0 16px 12px;
}
.fbar select,
.fbar input {
  width: auto;
  height: 34px;
  padding: 4px 10px;
  font-size: 12.5px;
  border-radius: 9px;
}
.seg2 {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  margin-left: auto;
}
.seg2 button {
  border: 0;
  background: #fff;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink3);
  cursor: pointer;
}
.seg2 button.on {
  background: var(--indigo);
  color: #fff;
}
.cm-list {
  max-height: 620px;
  overflow: auto;
}
.cm-i {
  border-top: 1px solid var(--line);
}
.cm-i summary {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 11px 16px;
  cursor: pointer;
  list-style: none;
}
.cm-i summary::-webkit-details-marker {
  display: none;
}
.cm-i summary:hover {
  background: #fafbff;
}
.cm-i[open] summary {
  background: #f8fafc;
}
.ans {
  margin: 4px 16px 8px 52px;
  padding: 0 0 0 16px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink2);
}
.ans li {
  margin: 2px 0;
}
.ans b {
  color: var(--ink);
}
.momi.rep .ans {
  margin: 6px 0 4px;
  padding-left: 18px;
}
.momi.rep .momh {
  gap: 6px;
  align-items: center;
}
.ns {
  display: inline-flex;
  gap: 4px;
  align-items: baseline;
  font-size: 11.5px;
  color: #7c2d12;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 2px 8px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ns.blk {
  display: block;
  margin-top: 6px;
  white-space: normal;
}
.cs-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 0 16px 12px;
}
.cs {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: linear-gradient(180deg, #fff, #f8fbff);
}
.cs b {
  display: block;
  font: 800 20px var(--fd);
}
.cs span {
  font-size: 11.5px;
  color: var(--ink3);
}
.cs-rng {
  display: flex;
  gap: 16px;
  align-items: baseline;
  flex-wrap: wrap;
  margin: 0 16px 16px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  font-size: 13px;
}
.cs-rng b {
  font-size: 16px;
}
@media (max-width: 640px) {
  .cs-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.hd-sub {
  font-size: 12.5px;
  color: var(--ink3);
  margin: -2px 0 4px;
  font-weight: 500;
}
.nsb {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}
.nsb-i {
  font-size: 18px;
}
.nsb-t {
  flex: 1;
  min-width: 0;
}
.nsb-t b {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9a3412;
}
.nsb-t span {
  font-size: 13.5px;
  font-weight: 600;
  color: #431407;
}
.nsb-d {
  text-align: right;
  flex: none;
}
.nsb-d b {
  display: block;
  font-size: 13px;
  color: #9a3412;
}
.nsb-d span {
  font-size: 11px;
  color: #9a3412;
  opacity: 0.8;
}
.tl-ans {
  margin: 6px 0 2px;
  padding-left: 18px;
}

/* IS view */
.isk {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.isk .kpi {
  padding: 14px;
}
.isk .kic {
  width: 38px;
  height: 38px;
  font-size: 17px;
}
@media (max-width: 1400px) {
  .isk {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .isk {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .isk .kic {
    display: none;
  }
}
.pct2 {
  display: block;
  font-size: 10.5px;
  color: var(--brand-ink);
  font-weight: 600;
}
.crt tr.click {
  cursor: pointer;
}
.isbars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 200px;
  margin-top: 14px;
  padding-bottom: 22px;
}
.isbars > div {
  flex: 1;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  position: relative;
}
.isbars .c {
  width: 100%;
  max-width: 34px;
  background: #bfdbfe;
  border-radius: 6px 6px 2px 2px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  min-height: 2px;
}
.isbars .k {
  width: 100%;
  background: #16a34a;
  display: block;
}
.isbars b {
  font-size: 10px;
  color: var(--ink3);
  margin-top: 3px;
}
.isbars em {
  position: absolute;
  bottom: -20px;
  font-size: 10.5px;
  color: var(--ink4);
  font-style: normal;
}
.lg-c,
.lg-k {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  margin: 0 4px 0 8px;
  background: #bfdbfe;
}
.lg-k {
  background: #16a34a;
}
.is-tabs {
  padding: 0 16px;
}
.is-list {
  max-height: 560px;
  overflow: auto;
}
.is-list.sm {
  max-height: 320px;
}
.tl .ans li {
  padding: 0;
  position: static;
  list-style: disc;
}
.tl .ans li:after {
  display: none;
}
.tl .ans {
  list-style: disc;
}
#isvb .dash-2 {
  margin-top: 16px;
}
.is-tabs {
  overflow-x: auto;
  white-space: nowrap;
  display: flex;
}
@media (max-width: 640px) {
  .is-list .row {
    flex-wrap: wrap;
  }
  .is-list .row .rt {
    width: 100%;
    text-align: left;
    padding-left: 52px;
  }
}

/* ===== Month summary · next-level colours ===== */
.phero {
  background:
    radial-gradient(520px 240px at 100% 0%, rgba(244, 114, 182, 0.35), transparent 60%),
    radial-gradient(520px 260px at 0% 100%, rgba(45, 212, 191, 0.28), transparent 60%),
    radial-gradient(420px 200px at 55% 120%, rgba(251, 191, 36, 0.18), transparent 60%),
    linear-gradient(125deg, #0b1026 0%, #151a45 38%, #2a1b5c 72%, #3b1a5e 100%);
  box-shadow:
    0 22px 48px rgba(17, 24, 64, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.phero-t {
  background: linear-gradient(90deg, #fff, #c7d2fe);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.phero-s {
  color: #a5b4fc;
}
.kp {
  --a1: #818cf8;
  --a2: #6366f1;
  position: relative;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 14px;
  overflow: hidden;
  backdrop-filter: blur(6px);
}
.kp:before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--a1), var(--a2));
  opacity: 0.9;
}
.kp:after {
  content: '';
  position: absolute;
  right: -28px;
  top: -28px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--a1), transparent 70%);
  opacity: 0.22;
  pointer-events: none;
}
.kp:hover {
  transform: translateY(-3px);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}
.kp-ic {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--a1), var(--a2));
  box-shadow:
    0 6px 16px -4px var(--a2),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  font-size: 0;
}
.kp-v {
  font-size: 26px;
  margin-top: 10px;
  font-variant-numeric: tabular-nums;
}
.kp-l {
  color: #e0e7ff;
}
.kp-s {
  color: #a5b4fc;
}
.kp.k-amber {
  --a1: #fbbf24;
  --a2: #f97316;
}
.kp.k-rose {
  --a1: #f472b6;
  --a2: #e11d48;
}
.kp.k-emerald {
  --a1: #34d399;
  --a2: #059669;
}
.kp.k-sky {
  --a1: #38bdf8;
  --a2: #2563eb;
}
.kp.k-indigo {
  --a1: #a78bfa;
  --a2: #6366f1;
}
.kp.k-teal {
  --a1: #5eead4;
  --a2: #0d9488;
}
.kp-tva {
  --a1: #fbbf24;
  --a2: #34d399;
  background: linear-gradient(160deg, rgba(251, 191, 36, 0.18), rgba(52, 211, 153, 0.08));
  border-color: rgba(251, 191, 36, 0.35);
}
.kp-tv-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.kp-ring {
  flex: none;
  margin: -4px -4px -4px 0;
}
.yt-ic {
  color: var(--yc);
}
.yt-ic svg {
  display: block;
}

/* white gradient tiles inside the dark summary card */
.kp {
  background: linear-gradient(165deg, #ffffff 0%, #f6f7ff 60%, color-mix(in srgb, var(--a1) 12%, #fff) 100%);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 8px 20px rgba(8, 10, 40, 0.28);
}
.kp:hover {
  background: linear-gradient(165deg, #ffffff 0%, #f8f9ff 55%, color-mix(in srgb, var(--a1) 18%, #fff) 100%);
  box-shadow: 0 14px 28px rgba(8, 10, 40, 0.35);
}
.kp:after {
  opacity: 0.16;
}
.kp .kp-v {
  color: #0f172a;
}
.kp .kp-l {
  color: #334155;
}
.kp .kp-s {
  color: #64748b;
}
.kp-tva {
  background: linear-gradient(165deg, #ffffff 0%, #fffbeb 55%, #ecfdf5 100%);
  border-color: rgba(251, 191, 36, 0.6);
}
.kp-ring circle:first-child {
  stroke: #e5e7eb;
}
.phero-h {
  align-items: flex-start;
}
.ps-f {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.ps-f select,
.ps-f input {
  width: auto;
  height: 32px;
  padding: 3px 10px;
  font-size: 12.5px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.ps-f select option {
  color: #111;
}
.ps-f input::-webkit-calendar-picker-indicator {
  filter: invert(1);
}
/* colourful stage steps */
.chev span.done {
  color: #fff;
}
.chev span.done[data-cs='0'] {
  background: linear-gradient(135deg, #64748b, #94a3b8);
}
.chev span.done[data-cs='1'] {
  background: linear-gradient(135deg, #0ea5e9, #38bdf8);
}
.chev span.done[data-cs='2'] {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
}
.chev span.done[data-cs='3'] {
  background: linear-gradient(135deg, #06b6d4, #22d3ee);
}
.chev span.done[data-cs='4'] {
  background: linear-gradient(135deg, #6366f1, #818cf8);
}
.chev span.done[data-cs='5'] {
  background: linear-gradient(135deg, #8b5cf6, #c084fc);
}
.chev span.done[data-cs='6'] {
  background: linear-gradient(135deg, #ec4899, #f472b6);
}
.chev span.done[data-cs='7'] {
  background: linear-gradient(135deg, #10b981, #34d399);
}
.chev span.done[data-cs='8'] {
  background: linear-gradient(135deg, #0d9488, #2dd4bf);
}
.chev span.cur {
  background: linear-gradient(135deg, #f05a29, #f97316);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}
/* accounts date filter */
.dfil {
  gap: 8px;
  align-items: center;
}
.dfil select,
.dfil input[type='date'] {
  width: auto;
}
.dq {
  display: inline-flex;
  gap: 4px;
  flex-wrap: wrap;
}
.dq button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink2);
  cursor: pointer;
}
.dq button:hover {
  border-color: var(--indigo);
  color: var(--indigo);
}

/* compact sliders: Completed meetings + Summary */
.sld-w {
  position: relative;
  padding: 0 0 14px;
}
.sld {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 2px 16px 8px;
  scrollbar-width: thin;
}
.sld::-webkit-scrollbar {
  height: 6px;
}
.sld::-webkit-scrollbar-thumb {
  background: #dbe1ea;
  border-radius: 6px;
}
.slc {
  flex: 0 0 272px;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: linear-gradient(180deg, #fff, #fafbff);
  cursor: pointer;
  transition:
    transform 0.12s,
    box-shadow 0.12s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.slc:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
  border-color: #c7d2fe;
}
.sc-h {
  display: flex;
  gap: 10px;
  align-items: center;
}
.sc-t {
  min-width: 0;
}
.sc-t b {
  display: block;
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sc-t span {
  display: block;
  font-size: 11.5px;
  color: var(--ink3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sc-m {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: space-between;
}
.sc-d {
  font-size: 11.5px;
  color: var(--good);
  font-weight: 700;
  white-space: nowrap;
}
.sc-w {
  font-size: 12px;
  color: var(--ink2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sc-a {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sc-a b {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--indigo);
}
.sc-a p {
  margin: 1px 0 0;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ink2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sc-e {
  font-size: 12px;
  color: var(--ink4);
}
.sc-n {
  margin-top: auto;
  font-size: 11.5px;
  color: #7c2d12;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 4px 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sld-b {
  position: absolute;
  top: calc(50% - 22px);
  z-index: 2;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
  font-size: 18px;
  line-height: 1;
  color: var(--ink2);
  cursor: pointer;
}
.sld-b.l {
  left: 4px;
}
.sld-b.r {
  right: 4px;
}
.sld-b:hover {
  color: var(--indigo);
  border-color: #c7d2fe;
}
@media (max-width: 640px) {
  .slc {
    flex-basis: 84%;
  }
  .sld-b {
    display: none;
  }
}

.sld {
  padding: 2px 44px 8px;
  scroll-padding: 0 44px;
}
.sld-b {
  top: calc(50% - 20px);
}
.sld-b.l {
  left: 8px;
}
.sld-b.r {
  right: 8px;
}
@media (max-width: 640px) {
  .sld {
    padding: 2px 16px 8px;
    scroll-padding: 0 16px;
  }
}

/* ---------- OS view ---------- */
.osnote {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
  margin: -4px 0 14px;
  font-size: 13px;
  color: var(--ink3);
}
.osnote b {
  font: 800 15px var(--fd);
  color: var(--ink);
}
.osnote span + span::before {
  content: '·';
  margin-right: 14px;
  color: var(--ink4);
}
.osk {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.ost {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px 12px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.ost::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gc), color-mix(in srgb, var(--gc) 45%, #fff));
}
.ost::after {
  content: '';
  position: absolute;
  right: -40px;
  bottom: -50px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--gc) 7%, transparent);
}
.ost-h {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13px;
  color: var(--ink2);
  position: relative;
  z-index: 1;
}
.ost-h .osp {
  margin-left: auto;
}
.ost-h .osbar {
  display: none;
}
.ost-i {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 15px;
  background: color-mix(in srgb, var(--gc) 13%, #fff);
}
.ost-v {
  font: 800 26px var(--fd);
  color: var(--ink);
  margin-top: 10px;
  line-height: 1.1;
  position: relative;
  z-index: 1;
  font-variant-numeric: tabular-nums;
}
.ost-v small {
  font: 600 12.5px Inter;
  color: var(--ink3);
  margin-left: 4px;
}
.ost-s {
  font-size: 12px;
  color: var(--ink3);
  margin-top: 4px;
  position: relative;
  z-index: 1;
}
@media (max-width: 1300px) {
  .osk {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .osk {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ost-v {
    font-size: 21px;
  }
}
.osp {
  display: inline-block;
  flex: 0 0 auto;
  width: auto;
  min-width: 44px;
  text-align: center;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.osp.bg {
  background: #dcfce7;
  color: #15803d;
}
.osp.bt {
  background: #ccfbf1;
  color: #0f766e;
}
.osp.ba {
  background: #fef3c7;
  color: #b45309;
}
.osp.bo {
  background: #ffedd5;
  color: #c2410c;
}
.osp.bz {
  background: #fee2e2;
  color: #b91c1c;
}
.osp.na {
  background: #f1f5f9;
  color: var(--ink4);
}
.osbar {
  display: block;
  height: 3px;
  border-radius: 3px;
  background: #eef1f6;
  margin: 5px auto 0;
  width: 56px;
  overflow: hidden;
}
.osbar b {
  display: block;
  height: 100%;
  border-radius: 3px;
}
.osbar.bg b {
  background: #22c55e;
}
.osbar.bt b {
  background: #14b8a6;
}
.osbar.ba b {
  background: #f59e0b;
}
.osbar.bo b {
  background: #f97316;
}
.osbar.bz b {
  background: #ef4444;
}
.oschips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}
.oschips button {
  border: 1px solid var(--line2);
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: var(--ink2);
}
.oschips button span {
  background: #eef1f6;
  border-radius: 999px;
  padding: 0 7px;
  font-size: 11.5px;
}
.oschips button.on {
  background: var(--cc, #0f172a);
  border-color: var(--cc, #0f172a);
  color: #fff;
}
.oschips button.on span {
  background: rgba(255, 255, 255, 0.22);
}
.ostab {
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
}
.osmode {
  display: inline-flex;
  background: #f1f3f4;
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.osmode button {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 700;
  font-size: 12.5px;
  color: #5f6368;
  cursor: pointer;
}
.osmode button.on {
  background: #fff;
  color: #1967d2;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.25);
}
.osg {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.osg th,
.osg td {
  padding: 8px 9px;
  text-align: center;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
.osg .who {
  text-align: left;
  position: sticky;
  left: 0;
  background: #fff;
  z-index: 2;
  min-width: 200px;
  border-right: 1px solid var(--line);
}
.osg thead .who {
  background: #f8fafc;
  font-size: 12px;
  color: var(--ink3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  vertical-align: bottom;
}
.osg tr.ob th {
  background: color-mix(in srgb, var(--gc) 9%, #fff);
  border-top: 3px solid var(--gc);
  border-left: 1px solid var(--line);
  padding: 9px 10px 6px;
}
.osg tr.ob th span {
  display: block;
  font: 800 14px var(--fd);
  color: var(--gc);
}
.osg tr.ob th em {
  display: block;
  font-style: normal;
  font-size: 11px;
  color: var(--ink3);
  font-weight: 500;
}
.osg tr.os2 th {
  background: #f8fafc;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink3);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.osg tr.os2 th.pc {
  color: var(--gc);
}
.osg .g0 {
  border-left: 1px solid var(--line);
}
.osg td.c {
  color: var(--ink3);
}
.osg td.ach {
  font-weight: 800;
  color: var(--ink);
}
.osg tbody tr:hover td {
  background: #fafbff;
}
.osg tbody tr:hover td.who {
  background: #fafbff;
}
.osw {
  display: flex;
  align-items: center;
  gap: 10px;
}
.osw b {
  display: block;
  font-weight: 700;
}
.osc {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--cc);
  background: color-mix(in srgb, var(--cc) 11%, #fff);
  border-radius: 6px;
  padding: 0 6px;
  margin-top: 2px;
}
.osg tr.osct td {
  background: #f8fafc;
  font-weight: 700;
  color: var(--ink2);
}
.osg tr.osct td.who {
  background: #f8fafc;
}
.osg tr.ostot td {
  background: #0f172a;
  color: #fff;
  font-weight: 800;
  border-bottom: 0;
}
.osg tr.ostot td.who {
  background: #0f172a;
}
.osg tr.ostot td.c {
  color: #cbd5e1;
}
.osg tr.ostot td.ach {
  color: #fff;
}
.osg tr.ostot .osbar {
  background: rgba(255, 255, 255, 0.18);
}
.osi {
  width: 64px;
  border: 1px solid var(--line2);
  border-radius: 8px;
  padding: 5px 6px;
  text-align: center;
  font: 600 13px Inter;
  background: #fff;
  color: var(--ink);
}
.osi:focus {
  outline: 2px solid #0f766e33;
  border-color: #0f766e;
}
.osw .osi {
  text-align: left;
}
.osx {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  border: 1px solid #fecaca;
  background: #fff5f5;
  color: #dc2626;
  font-weight: 800;
  cursor: pointer;
  flex: 0 0 auto;
}
.osedit {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: linear-gradient(90deg, #ecfdf5, #eff6ff);
  border: 1px solid #bbf7d0;
  font-size: 13px;
  color: var(--ink2);
}
.osempty {
  text-align: center;
  padding: 34px 20px;
}

/* ---------- BTS ---------- */
.btk {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.btk .kpi {
  padding: 14px;
}
.btk .kic {
  width: 38px;
  height: 38px;
  font-size: 17px;
}
@media (max-width: 1400px) {
  .btk {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .btk {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .btk .kic {
    display: none;
  }
}
.bt-row {
  margin-top: 16px;
}
.btf {
  display: grid;
  grid-template-columns: 130px 1fr 52px 44px;
  gap: 10px;
  align-items: center;
  padding: 6px 0;
  font-size: 13px;
}
.btf-l {
  font-weight: 600;
  color: var(--ink2);
}
.btf-b {
  height: 12px;
  background: #eef1f6;
  border-radius: 6px;
  overflow: hidden;
}
.btf-b i {
  display: block;
  height: 100%;
  border-radius: 6px;
}
.btf b {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.btf em {
  font-style: normal;
  font-size: 11.5px;
  color: var(--ink3);
  text-align: right;
}
.btsplit {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.btsplit div {
  border: 1px solid var(--line);
  border-top: 4px solid var(--rc);
  border-radius: 12px;
  padding: 10px 12px;
  background: color-mix(in srgb, var(--rc) 5%, #fff);
}
.btsplit b {
  display: block;
  font: 800 24px var(--fd);
  color: var(--rc);
}
.btsplit span {
  display: block;
  font-weight: 700;
  font-size: 13px;
}
.btsplit em {
  display: block;
  font-style: normal;
  font-size: 11.5px;
  color: var(--ink3);
}
.btbar {
  display: flex;
  height: 10px;
  border-radius: 6px;
  overflow: hidden;
  margin-top: 14px;
  gap: 2px;
}
.btr {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: var(--rc);
  background: color-mix(in srgb, var(--rc) 12%, #fff);
  border-radius: 999px;
  padding: 1px 8px;
  margin-left: 6px;
}
.btg {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  padding: 0 16px 16px;
}
.btc {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  transition:
    box-shadow 0.15s,
    transform 0.15s;
}
.btc:hover {
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}
.btc-p {
  height: 120px;
  background: linear-gradient(135deg, #ccfbf1, #e0e7ff) center/cover no-repeat;
  position: relative;
  display: grid;
  place-items: center;
}
.btc-0 {
  font-size: 34px;
  opacity: 0.6;
}
.btc-p.has .btc-0 {
  display: none;
}
.btc-n {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 8px;
}
.btc-b {
  padding: 10px 12px;
}
.btc-t {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.btc-s {
  font-size: 12px;
  color: var(--ink3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.btc-m {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.btc-m .btr {
  margin-left: 0;
}
.btc-f {
  font-size: 11.5px;
  color: var(--ink4);
  margin-top: 6px;
}
.bt-empty {
  text-align: center;
  padding: 36px 20px;
}
.btpv {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.btpv div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
}
.btpv b {
  display: block;
  font: 800 20px var(--fd);
}
.btpv span {
  font-size: 11.5px;
  color: var(--ink3);
}
@media (max-width: 640px) {
  .btpv {
    grid-template-columns: repeat(2, 1fr);
  }
  .btsplit {
    grid-template-columns: 1fr;
  }
}
.btp {
  margin-top: 14px;
  border: 1px solid #99f6e4;
  background: linear-gradient(135deg, #f0fdfa, #fff);
  border-radius: 14px;
  padding: 12px 14px;
}
.btp-h {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.btp-h .btp-go {
  margin-left: auto;
}
.btp-g {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px 14px;
  margin-top: 10px;
}
.btp-g div span {
  display: block;
  font-size: 11px;
  color: var(--ink3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.btp-g div b {
  font-size: 13px;
  font-weight: 600;
}
.btp-ph {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-top: 12px;
  padding-bottom: 4px;
}
.btp-ph .ph {
  flex: 0 0 auto;
  width: 120px;
  height: 90px;
  border-radius: 10px;
  background: #e2e8f0;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  display: block;
}
.btp-ph .ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.btp-ph .ph span {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-size: 12px;
  font-weight: 700;
  color: #0f766e;
  background: #f0fdfa;
  text-decoration: none;
}
.btp-ph .ph span em {
  font-style: normal;
  font-weight: 500;
  color: var(--ink3);
  font-size: 11px;
}
.btp-ph .ph.bad img {
  display: none;
}
.btp-ph .ph.bad span {
  display: flex;
}
.btp-f {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #99f6e4;
}
.bts-sec {
  margin: 20px 0 2px;
  font: 800 12px Inter;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0f766e;
}
.bt2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.btu {
  display: flex;
  align-items: center;
  border: 1px solid var(--line2);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.btu input {
  border: 0 !important;
  box-shadow: none !important;
  flex: 1;
  min-width: 0;
}
.btu span {
  padding: 0 10px;
  color: var(--ink3);
  font-weight: 600;
  font-size: 13px;
}
.btroute {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.btroute button {
  border: 1.5px solid var(--line2);
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  text-align: left;
  cursor: pointer;
}
.btroute button b {
  display: block;
  font-size: 13.5px;
}
.btroute button span {
  display: block;
  font-size: 11.5px;
  color: var(--ink3);
  margin-top: 2px;
}
.btroute button.on {
  border-color: var(--rc);
  background: color-mix(in srgb, var(--rc) 8%, #fff);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--rc) 15%, transparent);
}
@media (max-width: 640px) {
  .btroute {
    grid-template-columns: 1fr;
  }
  .bt2 {
    grid-template-columns: 1fr;
  }
}
.btph-sum {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
}
.btph-sum.ok {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}
.btph-sum.no {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}
.lsuit {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  color: #3f6212;
  background: #ecfccb;
  border-radius: 999px;
  padding: 1px 8px;
}
.crt.lnd td,
.crt.lnd th {
  white-space: nowrap;
}
.crt.lnd td.l {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.crt.lnd a {
  text-decoration: none;
}
.lnp {
  border-color: #bef264;
  background: linear-gradient(135deg, #f7fee7, #fff);
}
.lfix {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1.5px solid #65a30d;
  background: #f7fee7;
}
.lfix span {
  font-size: 12px;
  color: var(--ink3);
}
.lfix em {
  margin-left: auto;
  font-style: normal;
  font-size: 11.5px;
  font-weight: 700;
  color: #3f6212;
}
.lmcard .sect-h {
  flex-wrap: wrap;
}
.lmap {
  height: 380px;
  border-radius: 0 0 16px 16px;
  background: #e8eef5;
  position: relative;
  z-index: 0;
}
.lmap.mini {
  height: 190px;
  border-radius: 12px;
  margin-top: 12px;
  border: 1px solid var(--line);
}
.lmleg {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0 16px 10px;
  font-size: 12px;
  color: var(--ink3);
}
.lmleg i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: -1px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}
.lmempty {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--ink3);
  font-size: 13px;
  padding: 20px;
  text-align: center;
}
.lmtip {
  font:
    12px/1.4 Inter,
    system-ui,
    sans-serif;
  padding: 6px 9px;
  border-radius: 9px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.18);
}
.lmtip b {
  display: block;
  font-size: 13px;
  margin-bottom: 2px;
}
@media (max-width: 640px) {
  .lmap {
    height: 300px;
  }
}
.lmdot-w {
  background: none;
  border: 0;
}
.lmdot {
  display: block;
  width: 14px;
  height: 14px;
  margin: 2px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.35);
  transition: transform 0.15s;
}
.lmdot.big {
  width: 18px;
  height: 18px;
}
.lmdot-w:hover .lmdot {
  transform: scale(1.35);
}
.lmcl-w {
  background: none;
  border: 0;
}
.lmcl {
  display: grid;
  place-items: center;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.3);
  cursor: pointer;
  transition: transform 0.15s;
}
.lmcl:hover {
  transform: scale(1.08);
}
.lmcl b {
  display: grid;
  place-items: center;
  width: calc(100% - 10px);
  height: calc(100% - 10px);
  border-radius: 50%;
  background: #fff;
  color: #0f172a;
  font:
    700 12px/1 Inter,
    system-ui,
    sans-serif;
}
.lmbar {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 10px !important;
  max-width: calc(100vw - 60px);
}
.lmsearch {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border-radius: 12px;
  padding: 0 6px 0 10px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.18);
  height: 36px;
  width: 280px;
  max-width: 100%;
}
.lmsearch input {
  border: 0;
  outline: 0;
  flex: 1;
  min-width: 0;
  font:
    13px Inter,
    system-ui,
    sans-serif;
  background: none;
  color: #0f172a;
}
.lmsearch .lmx {
  border: 0;
  background: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 13px;
  padding: 4px;
}
.lmbtns {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.18);
  overflow: hidden;
}
.lmbtns button {
  width: 36px;
  height: 34px;
  border: 0;
  background: #fff;
  font:
    600 17px/1 Inter,
    system-ui,
    sans-serif;
  color: #0f172a;
  cursor: pointer;
}
.lmbtns button + button {
  border-top: 1px solid #e2e8f0;
}
.lmbtns button:hover {
  background: #f1f5f9;
}
.lmleg-c {
  margin-left: auto;
}
.lmleg-c b {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #7c3aed;
  font-size: 9px;
  margin-right: 4px;
  vertical-align: -5px;
}
@media (max-width: 640px) {
  .lmsearch {
    width: 190px;
  }
  .lmleg-c {
    margin-left: 0;
  }
}

.mmcity {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 16px 12px;
}
.mmc {
  flex: 1 1 360px;
  border: 1px solid #99f6e4;
  background: linear-gradient(135deg, #f0fdfa, #fff);
  border-radius: 14px;
  padding: 10px 14px;
}
.mmc b {
  font: 800 15px var(--fd);
}
.mmc-n {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 6px;
}
.mmc-n span {
  font-size: 12px;
  color: var(--ink3);
}
.mmc-n em {
  font-style: normal;
  font: 800 18px var(--fd);
  color: var(--ink);
  margin-right: 5px;
}
.mmbar {
  display: flex;
  width: 120px;
  height: 9px;
  border-radius: 5px;
  overflow: hidden;
  background: #eef1f6;
  gap: 1px;
}
.mmt tr.on td {
  background: #ecfeff;
}
.ossc {
  display: flex;
  gap: 18px;
  align-items: stretch;
  background: linear-gradient(135deg, #fffbeb, #fff);
  border: 1px solid #fde68a;
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.ossc-m {
  min-width: 170px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding-right: 18px;
  border-right: 1px solid #fde68a;
}
.ossc-l {
  font-weight: 700;
  font-size: 13px;
  color: #a16207;
}
.ossc-v {
  font: 800 34px/1 var(--fd);
  color: var(--ink);
}
.ossc-v small {
  font:
    600 14px Inter,
    sans-serif;
  color: var(--ink3);
  margin-left: 4px;
}
.ossc .osbar {
  width: 100%;
}
.ossc-p {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.ossc-p div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.ossc-p span {
  font-size: 12px;
  color: var(--ink2);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ossc-p em {
  font-style: normal;
  color: #a16207;
  font-weight: 700;
}
.ossc-p b {
  font: 800 20px var(--fd);
  color: var(--ink);
}
.ossc-p small {
  font-size: 11px;
  color: var(--ink3);
}
.osg tr.ob th.sch {
  background: #fef9c3;
  border-top: 3px solid #ca8a04;
  vertical-align: middle;
  min-width: 96px;
}
.osg tr.ob th.sch span {
  color: #a16207;
}
.osg td.sc {
  background: #fffdf3;
}
.osg tr.ostot td.sc {
  background: #0f172a;
}
@media (max-width: 1100px) {
  .ossc {
    flex-direction: column;
  }
  .ossc-m {
    border-right: 0;
    padding-right: 0;
  }
  .ossc-p {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .ossc-p {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.osrk {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f1f5f9;
  color: var(--ink3);
  font: 800 11px var(--fd);
}
.osrk.t1 {
  background: #fde68a;
  color: #92400e;
}
.osrk.t2 {
  background: #e2e8f0;
  color: #334155;
}
.osrk.t3 {
  background: #fed7aa;
  color: #9a3412;
}
.lands-tabs {
  margin: -4px 0 16px;
  border-bottom: 1px solid var(--line);
}
.pill.pri-pill {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  font-weight: 700;
}
.pri-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px dashed var(--line2);
  font-size: 13px;
}
.pri-strip.on {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #78350f;
}
.filters .chip.pri-chip.on {
  background: #fffbeb;
  border-color: #f59e0b;
  color: #92400e;
  font-weight: 700;
}
.pri-chip b {
  margin-left: 4px;
  font-weight: 800;
  color: #b45309;
}
.pri-star {
  font-size: 12px;
}
.ph-card {
  margin-top: 16px;
}
.ph-b {
  padding: 0 16px 16px;
}
.ph-def {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
  padding: 12px 14px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 12px;
  margin-bottom: 12px;
}
.ph-def label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 4px;
}
.ph-split {
  font-size: 13px;
  color: var(--ink2);
  white-space: nowrap;
}
.ph-split b {
  color: var(--ink);
}
.ph-t input {
  text-align: right;
  padding: 6px 8px;
}
.ph-mark {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.ph-mark select {
  width: auto;
  max-width: 420px;
}
.cp-card {
  margin-top: 16px;
}
.cp-b {
  padding: 0 16px 16px;
}
.cp-sec {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.cp-sec:first-child {
  border-top: 0;
  padding-top: 4px;
}
.cp-order {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}
.cp-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 999px;
  padding: 4px 6px 4px 4px;
  font-weight: 600;
  font-size: 13px;
}
.cp-chip em {
  font-style: normal;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #0f766e;
  color: #fff;
  font-size: 11px;
}
.cp-chip button {
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--ink3);
  padding: 0 2px;
  font-size: 13px;
}
.cp-chip button:hover {
  color: var(--ink);
}
.cp-arrow {
  color: var(--ink4);
}
.cp-people {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}
.cp-person {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
}
.cp-ph {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.cp-today {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  color: var(--ink3);
}
.cp-today span {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2px 8px;
}
.cp-today span.ok {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}
.cp-today i {
  font-style: normal;
  color: var(--ink4);
}
.cp-row,
.cp-rot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
}
.cp-row select,
.cp-rot select {
  width: auto;
  min-width: 150px;
}
.cp-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.cp-cities label {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink3);
  cursor: pointer;
}
.cp-cities label.on {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #3730a3;
}
.cp-cities input {
  display: none;
}
.cp-rot input[type='date'] {
  width: auto;
}
.cp-rot input[type='checkbox'] {
  width: auto;
}
.cp-rt {
  flex-basis: 100%;
  font-size: 12px;
  color: #0f766e;
}
.cp-save {
  display: flex;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.cp-save input {
  flex: 1;
}
.cp-log {
  margin-top: 12px;
  font-size: 12px;
  color: var(--ink2);
}
.cp-log > div {
  display: flex;
  gap: 8px;
  padding: 3px 0;
  border-bottom: 1px dashed var(--line);
}
.cp-log span {
  color: var(--ink4);
  min-width: 120px;
}
@media (max-width: 520px) {
  .mr-top {
    flex-wrap: wrap;
  }
  .mr-top .mr-grow {
    flex-basis: 100%;
  }
}
.pf-card {
  margin-top: 16px;
}
.pf-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
  padding: 4px 16px 14px;
}
.pf-t {
  flex: 1 1 130px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--pc, #4f46e5) 8%, #fff);
  border: 1px solid color-mix(in srgb, var(--pc, #4f46e5) 25%, #fff);
}
.pf-t b {
  font: 800 26px/1.1 var(--fd);
  color: var(--ink);
}
.pf-t span {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink3);
}
.pf-i {
  font-size: 18px;
}
.pf-ar {
  align-self: center;
  color: var(--ink4);
  font-size: 18px;
}
.pf-req {
  --pc: #34a853;
  flex: 1.4 1 180px;
}
.pf-two {
  display: flex;
  gap: 16px;
}
.pf-two div {
  display: flex;
  flex-direction: column;
}
.pf-card tr.tot td {
  background: #f8fafc;
  border-top: 2px solid var(--line);
}
@media (max-width: 640px) {
  .pf-ar {
    display: none;
  }
}
.cpb {
  margin-top: 12px;
  border: 1px solid #c7d2fe;
  background: #f5f7ff;
  border-radius: 14px;
  padding: 10px 12px;
}
.cpb-h {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.cpb-l {
  margin-top: 8px;
  display: grid;
  gap: 6px;
}
.cpb-r {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  flex-wrap: wrap;
}
.cpb-r.off {
  opacity: 0.65;
}
.cpb-a {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.cpw {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}
.cpw div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}
.cpw span {
  color: var(--ink3);
  font-size: 12.5px;
}
.cpw b {
  font-size: 16px;
  letter-spacing: 0.3px;
  user-select: all;
  word-break: break-all;
  text-align: right;
}
.cpq {
  margin-top: 0;
  border-color: #c7d2fe;
  background: #f8f9ff;
}
.cpq-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 4px;
}
.cpq-steps span {
  font-size: 11.5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #eef2f7;
  color: #64748b;
}
.cpq-steps span.on {
  background: #dcfce7;
  color: #166534;
  font-weight: 600;
}
.cpq-steps span.cur {
  background: #e0e7ff;
  color: #3730a3;
  font-weight: 700;
}
.cpq-d {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.cpq-d label {
  font-size: 11.5px;
  color: var(--ink3);
  display: grid;
  gap: 4px;
}
@media (max-width: 560px) {
  .cpq-d {
    grid-template-columns: 1fr;
  }
}
.lg-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 4px;
  margin-top: 20px;
}
.lg-tabs button {
  border: 0;
  background: transparent;
  border-radius: 9px;
  padding: 9px 8px;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ink3);
  cursor: pointer;
}
.lg-tabs button.on {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}
.lg-pf {
  margin-top: 6px;
}
.lg-pf label.f {
  margin-top: 12px;
}
.lg-pf input {
  width: 100%;
  border: 1.5px solid var(--line2, #e2e8f0);
  border-radius: 12px;
  padding: 12px 13px;
  font-size: 15px;
  background: #fff;
}
.lg-ph {
  display: flex;
}
.lg-ph span {
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 1.5px solid var(--line2, #e2e8f0);
  border-right: 0;
  border-radius: 12px 0 0 12px;
  background: #f8fafc;
  color: var(--ink3);
  font-weight: 600;
}
.lg-ph input {
  border-radius: 0 12px 12px 0;
}
.lg-contact {
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--ink3);
  text-align: center;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  padding: 9px 10px;
}
.lg-contact b {
  color: #9a3412;
}
.sh-to {
  display: flex;
}
.sh-to span {
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 1.5px solid var(--line2, #e2e8f0);
  border-right: 0;
  border-radius: 12px 0 0 12px;
  background: #f8fafc;
  color: var(--ink3);
  font-weight: 600;
}
.sh-to input {
  flex: 1;
  min-width: 0;
  border-radius: 0 12px 12px 0;
}
.sh-f {
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.sh-f::-webkit-scrollbar {
  display: none;
}
.sh-f button {
  flex: none;
}
.sh-l {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.sh-r {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
}
.sh-ic {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--c) 14%, #fff);
  font-size: 18px;
}
.sh-t {
  flex: 1;
  min-width: 0;
}
.sh-t b {
  display: block;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sh-t span {
  display: block;
  font-size: 12px;
  color: var(--ink3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sh-r .btn {
  flex: none;
}
@media (max-width: 520px) {
  .sh-r {
    flex-wrap: wrap;
  }
  .sh-t {
    flex: 1 1 calc(100% - 50px);
  }
  .sh-r > .btn {
    flex: 1 1 0;
  }
}
.sh-act {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -2px 0 4px;
  padding: 10px 12px;
  border: 1px dashed #c7d2fe;
  border-radius: 12px;
  background: #f8f9ff;
}
.sh-act .btn {
  flex: 1;
  min-width: 150px;
}
.sh-act .err {
  flex-basis: 100%;
  margin: 0;
}
.doc-g {
  margin-top: 14px;
}
.doc-l {
  display: grid;
  gap: 8px;
  padding: 0 16px 14px;
}
.doc-r {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  flex-wrap: wrap;
}
.doc-r.off {
  opacity: 0.6;
}
.doc-t {
  flex: 1;
  min-width: 200px;
}
.doc-t b {
  font-size: 14px;
}
.doc-t span {
  display: block;
  font-size: 12px;
  color: var(--ink3);
  margin-top: 2px;
}
.doc-a {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
/* grid / flex children may shrink below their content, so wide tables scroll inside their card instead of widening the page */
.dash-2 > *,
.grid > *,
.cvt > *,
.mp-row > *,
.bt-row > *,
.crt-two > *,
.g2 > *,
.g3 > *,
.g4 > *,
.btsplit > *,
.bt2 > * {
  min-width: 0;
}
.cpr-f {
  margin-top: -4px;
}
.cpr-ks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}
.cpr-k {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--c);
  border-radius: 14px;
  padding: 14px 16px;
  display: grid;
  gap: 2px;
  min-width: 0;
}
.cpr-k b {
  font-size: 28px;
  line-height: 1.1;
  color: var(--c);
}
.cpr-k span {
  font-weight: 700;
  color: var(--ink);
}
.cpr-k em {
  font-style: normal;
  font-size: 12px;
  color: var(--ink3);
}
.cpr-q {
  max-width: 260px;
}
.cpr-pp {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}
.cpr-pp span {
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 999px;
  background: #e6f4ea;
  color: #188038;
  white-space: nowrap;
}
.cpr-pp span.new {
  background: #fef7e0;
  color: #b06000;
}
.cpr-pp span.off {
  background: #f1f3f4;
  color: #80868b;
  text-decoration: line-through;
}
.cpr-a {
  display: inline-block;
  min-width: 44px;
  white-space: nowrap;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
}
.cpr-a.y {
  background: #e6f4ea;
  color: #188038;
}
.cpr-a.n {
  background: #f1f3f4;
  color: #80868b;
}
@media (max-width: 760px) {
  .cpr-ks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cpr-k b {
    font-size: 24px;
  }
  .cpr-c .sect-h {
    flex-wrap: wrap;
  }
  .cpr-q {
    max-width: none;
    flex: 1 1 100%;
  }
  .cpr-ow {
    display: none;
  }
  .cpr-t td:first-child {
    min-width: 170px;
  }
}
.cpr-ow2 {
  display: none;
}
@media (max-width: 760px) {
  .cpr-ow2 {
    display: block;
  }
}
.pg-tabs {
  margin: -6px 0 12px;
}
.pgv-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 10px;
}
.pgv {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.pgv-f {
  display: block;
  width: 100%;
  height: calc(100vh - 230px);
  min-height: 560px;
  border: 0;
  background: #fff;
}
.pgv.full {
  position: fixed;
  inset: 0;
  z-index: 80;
  border-radius: 0;
  border: 0;
}
.pgv.full .pgv-f {
  height: 100vh;
  min-height: 0;
}
.pgv-x {
  position: fixed;
  top: 10px;
  right: 12px;
  z-index: 81;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}
.edu-nav {
  margin: 0 0 14px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}
.edu-nav button {
  white-space: nowrap;
  flex: none;
}
.edu-nav .cnt {
  font-size: 11px;
  opacity: 0.75;
  margin-left: 2px;
}
.ep-t .ep-g td {
  background: #f8fafc;
  font-weight: 800;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1a73e8;
  text-align: left;
}
.fuq {
  align-items: center;
  flex-wrap: wrap;
  max-width: 100%;
  min-width: 0;
}
@media (max-width: 640px) {
  .fuq {
    flex: 1 1 100%;
  }
}
.fuq > span {
  margin-right: 2px;
}
.dq button.on {
  background: #1a73e8;
  border-color: #1a73e8;
  color: #fff;
}
@media (max-width: 640px) {
  .pgv-f {
    height: calc(100vh - 250px);
    min-height: 480px;
  }
}
.edu-perbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0 6px;
}
.mp-mbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 8px;
  flex-wrap: wrap;
}
.mp-rng {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-left: 10px;
}
.mp-rng input[type='date'] {
  width: auto;
  padding: 4px 6px;
  font-size: 12px;
}
.mp-rng .btn.on {
  background: #1a73e8;
  color: #fff;
  border-color: #1a73e8;
}
.mp-rl {
  color: #1a73e8;
  font-weight: 600;
}
.mp-mbar select {
  width: auto;
  font-weight: 600;
}
.mp-fb {
  background: #fff7e6;
  border: 1px solid #f6d58e;
  color: #7a4b00;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13px;
  margin: 0 0 10px;
}
.ex-months {
  margin: 0 0 12px;
}
.ex-my {
  color: #2563eb;
  margin-top: 2px;
}
.ex-np {
  opacity: 0.6;
  font-weight: 500;
}
.ex-months button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}
.ex-head {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.ex-head > div:first-child {
  flex: 1;
  min-width: 260px;
}
.ex-cov td {
  background: #f3f8ff;
}
.ex-add {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ex-add label {
  display: flex;
  flex-direction: column;
  font-size: 12.5px;
  gap: 4px;
}
.ex-ed input {
  text-align: right;
}
.ist-card {
  margin-bottom: 14px;
}
.ist-l {
  padding: 4px 16px 10px;
}
.ist-r {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.ist-r.off {
  opacity: 0.55;
}
.ist-n {
  flex: 1;
  min-width: 0;
}
.ist-c {
  text-align: center;
  min-width: 70px;
}
.ist-c b {
  display: block;
  font-size: 17px;
}
.ist-c span {
  font-size: 11px;
  color: var(--ink3);
}
.cpb-ag {
  margin-top: 10px;
  border-top: 1px dashed var(--line);
  padding-top: 10px;
}
.cpb-agh {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.cpb-agd {
  margin-top: 6px;
  line-height: 1.5;
}
.cpb-ags {
  color: #188038;
  margin-top: 4px;
}
.ag-pick {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
}
.ag-pick span {
  flex: 1;
  font-weight: 600;
}
.ag-card {
  margin-top: 14px;
}
.ag-fun {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  flex-wrap: wrap;
}
.ag-st {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 10px 14px;
  min-width: 104px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  font: inherit;
}
.ag-st b {
  font-size: 20px;
}
.ag-st span {
  font-size: 12px;
  color: var(--ink3);
}
.ag-st em {
  font-style: normal;
  font-size: 11px;
  color: #7c3aed;
  font-weight: 600;
}
.ag-st.on {
  border-color: #7c3aed;
  background: #f5f3ff;
}
.ag-ar {
  color: var(--ink3);
  font-style: normal;
  font-size: 18px;
}
.ex-bar {
  margin: 0 0 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ex-bar select {
  width: auto;
}
.ex-tv .tva {
  margin-top: 2px;
}
.ex-tv .tva b {
  font-size: 11px;
}
.ex-t tr.ex-s td {
  background: #fafbfd;
  font-size: 12.5px;
}
.ex-t tr.ex-s td.l {
  padding-left: 28px;
}
.ex-car {
  display: inline-block;
  width: 12px;
  color: var(--ink3);
}
.ex-t tr.ex-p.click {
  cursor: pointer;
}
.edu-dbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 4px 0 12px;
}
.edu-dbar input[type='date'] {
  width: auto;
  padding: 6px 8px;
  font-size: 13px;
}
.dash-pre {
  margin-right: 4px;
}
.dash-pre button {
  padding: 6px 10px;
}
.tier {
  display: inline-flex;
  align-items: center;
  font-size: 10.5px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  vertical-align: middle;
}
.tier.p0 {
  background: #3c1a78;
  color: #fff;
}
.tier.p1 {
  background: #fce8e6;
  color: #d93025;
}
.tier.p4 {
  background: #f1f3f4;
  color: #5f6368;
}
.tier.p2 {
  background: #fef7e0;
  color: #b06000;
}
.tier.p3 {
  background: #e8f0fe;
  color: #1a73e8;
}
.tierbox {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.tb-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.tier-seg {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tsb {
  border: 1px solid #dadce0;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
  background: #fff;
  color: var(--ink2);
  opacity: 0.75;
}
.tsb:hover {
  opacity: 1;
}
.tsb.on {
  opacity: 1;
  box-shadow: 0 0 0 2px currentColor;
}
.tsb.tp-p0 {
  background: #3c1a78;
  color: #fff;
  border-color: #3c1a78;
}
.tsb.tp-p0.on {
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 4px #3c1a78;
}
.tsb.tp-p1 {
  background: #fce8e6;
  color: #c5221f;
  border-color: #f6c7c3;
}
.tsb.tp-p2 {
  background: #fef7e0;
  color: #b06000;
  border-color: #f3d38a;
}
.tsb.tp-p3 {
  background: #e8f0fe;
  color: #1a73e8;
  border-color: #c6dafc;
}
.tsb.tp-p4 {
  background: #f1f3f4;
  color: #5f6368;
  border-color: #dadce0;
}
.tierbox:empty {
  display: none;
}
.ew-bar .filters {
  flex-wrap: wrap;
}
.ew-t th.g0,
.ew-t td.g0b {
  background: #e8f0fe;
}
.ew-t th.g1 {
  background: #e6f4ea;
}
.ew-t th.g2 {
  background: #fef7e0;
}
.ew-t th.g3,
.ew-t td.g3b {
  background: #fce8e6;
}
.ew-t th.g4 {
  background: #e6f4ea;
}
.ew-t th.g5 {
  background: #e8f0fe;
}
.ew-t th.g6 {
  background: #f1f3f4;
}
.ew-t th {
  white-space: nowrap;
}
.ew-t tr.ew-p td {
  border-top: 2px solid var(--line);
  background: #fafbff;
}
.ew-t tr.ew-st td {
  font-size: 12.5px;
  color: var(--ink2);
}
.ew-t td.l {
  text-align: left;
}
.ew-n {
  border: 0;
  background: #e8f0fe;
  color: #1a73e8;
  font-weight: 800;
  border-radius: 8px;
  padding: 2px 8px;
  cursor: pointer;
  text-decoration: underline dotted;
}
.tva {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 52px;
}
.tva i {
  display: block;
  width: 52px;
  height: 4px;
  border-radius: 2px;
  background: #eef1f6;
  overflow: hidden;
}
.tva s {
  display: block;
  height: 100%;
  text-decoration: none;
}
.ew-acc {
  display: grid;
  gap: 6px;
  max-height: 60vh;
  overflow: auto;
}
.ew-acc button {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 9px 12px;
  cursor: pointer;
}
.ew-ed {
  display: grid;
  gap: 10px;
}
.ew-edr {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 1fr 1fr;
  gap: 10px;
  align-items: end;
}
.ew-edr label {
  display: grid;
  gap: 4px;
  font-size: 11.5px;
  color: var(--ink3);
}
.ex-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.ex-prog {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink3);
}
.ex-prog i {
  display: block;
  width: 140px;
  height: 8px;
  border-radius: 4px;
  background: #eef1f6;
  overflow: hidden;
}
.ex-prog s {
  display: block;
  height: 100%;
  background: #4285f4;
  text-decoration: none;
}
.ex-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.ex-c {
  padding-bottom: 6px;
  min-width: 0;
}
.ex-f {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.ex-f th,
.ex-f td {
  padding: 6px 14px;
  border-top: 1px solid var(--line);
}
.ex-f th {
  font-size: 11px;
  color: var(--ink3);
  text-transform: uppercase;
  text-align: right;
}
.ex-f .l {
  text-align: left;
}
.el-tiers {
  flex-wrap: wrap;
}
.el-tiers .cnt {
  font-size: 11px;
  opacity: 0.75;
}
.el-t td.l {
  text-align: left;
  max-width: 320px;
}
.el-info {
  white-space: normal;
  max-width: 360px;
}
.el-tsel {
  width: auto;
  padding: 3px 6px;
  font-size: 12px;
}
@media (max-width: 900px) {
  .ex-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 520px) {
  .ew-edr {
    grid-template-columns: 1fr 1fr;
  }
  .ew-edr > div {
    grid-column: 1/-1;
  }
}
@media (max-width: 640px) {
  .ew-t tr.ew-g th:first-child,
  .ew-t tbody td:first-child {
    display: none;
  }
  .ew-t tbody td:nth-child(2) {
    min-width: 96px;
    max-width: 120px;
    white-space: normal;
  }
  .ew-t tbody td:nth-child(3) {
    min-width: 92px;
    max-width: 110px;
    white-space: normal;
    font-size: 12px;
  }
  .ew-t th,
  .ew-t td {
    padding: 6px 6px;
  }
  .ew-t tbody tr.ew-st td:nth-child(2) {
    padding: 0;
  }
}
.im-ts {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 16px;
}
.im-t {
  display: grid;
  gap: 2px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--c, #9aa0a6);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  min-width: 0;
}
.im-t b {
  font-size: 24px;
  color: var(--c, #202124);
  line-height: 1.1;
}
.im-t span {
  font-weight: 700;
  font-size: 13px;
}
.im-t em {
  font-style: normal;
  font-size: 11.5px;
  color: var(--ink3);
}
.im-x {
  cursor: default;
  --c: #5f6368;
  background: #f8f9fa;
}
.im-list {
  border-top: 1px solid var(--line);
}
.im-lh {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
}
.im-list .row {
  cursor: pointer;
}
@media (max-width: 900px) {
  .im-ts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .im-ts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px), (max-height: 820px) {
  .drawer {
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .drawer .db {
    flex: none;
    overflow: visible;
    min-height: 60vh;
  }
}
body.dr-open {
  overflow: hidden;
  overscroll-behavior: none;
}
.dl-ban {
  display: flex;
  gap: 10px;
  align-items: center;
  background: #e8f0fe;
  border: 1px solid #c6dafc;
  color: #174ea6;
  border-radius: 12px;
  padding: 10px 14px;
  margin: 0 0 12px;
  animation: dlpulse 1.6s ease 2;
}
.dl-ban > span {
  font-size: 22px;
}
.dl-ban .tiny {
  color: #3c4a6b;
}
@keyframes dlpulse {
  50% {
    box-shadow: 0 0 0 6px rgba(66, 133, 244, 0.18);
  }
}
.pill.type-pri.tp-p0 {
  background: #3c1a78;
  color: #fff;
  border-color: #3c1a78;
}
.pill.type-pri.tp-p1 {
  background: #fce8e6;
  color: #c5221f;
  border-color: #f6c7c3;
}
.pill.type-pri.tp-p2 {
  background: #fef7e0;
  color: #b06000;
  border-color: #f3d38a;
}
.pill.type-pri.tp-p3 {
  background: #e8f0fe;
  color: #1a73e8;
  border-color: #c6dafc;
}
.pill.type-pri.tp-p4 {
  background: #f1f3f4;
  color: #5f6368;
  border-color: #dadce0;
}
.pill.type-pri {
  background: #fff4d6;
  color: #8a5a00;
  border: 1px solid #f3d38a;
  white-space: nowrap;
}

/* 🔎 numbers → accounts behind them · Stage multi-select */
[data-dq] {
  cursor: pointer;
}
[data-dq]:hover {
  background: #e8f0fe !important;
  box-shadow: inset 0 -2px 0 #1a73e8;
}
.dq-pop {
  position: fixed;
  z-index: 9000;
  width: 320px;
  max-height: 330px;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
  padding: 10px 12px;
  display: none;
  font-size: 13px;
}
.dq-pop.on {
  display: block;
}
.dq-r {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 6px 4px;
  border-bottom: 1px solid #f1f3f4;
  cursor: pointer;
  border-radius: 8px;
}
.dq-r:hover {
  background: #f8fafd;
}
.dq-n {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.msel {
  position: relative;
}
.msel summary {
  list-style: none;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 30px 8px 12px;
  background: #fff;
  white-space: nowrap;
  position: relative;
  font-size: 14px;
}
.msel summary::-webkit-details-marker {
  display: none;
}
.msel summary::after {
  content: '▾';
  position: absolute;
  right: 11px;
  color: #80868b;
}
.msel summary.on {
  border-color: var(--brand);
  color: var(--brand-ink);
  font-weight: 700;
}
.msel-pop {
  position: absolute;
  z-index: 60;
  top: calc(100% + 4px);
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
  padding: 6px;
  max-height: 360px;
  overflow: auto;
}
.msel-pop label {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13.5px;
}
.msel-pop label:hover {
  background: #f1f3f4;
}
.msel-f {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 4px 2px;
  border-top: 1px solid #f1f3f4;
  margin-top: 4px;
}
.drill-ban {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
  border: 1px solid #c6dafc;
  background: #f4f8ff;
}
.lkt.click {
  cursor: pointer;
}
.lkt.click:hover {
  box-shadow: 0 0 0 2px #c6dafc;
}
.lkt.on {
  box-shadow: 0 0 0 2px var(--brand);
}
.lmom {
  max-width: 340px;
  white-space: normal;
  line-height: 1.35;
}

/* 🧭 OS Flow — clean, table-first on desktop · cards on phones */
.of-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 4px 0 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}
.of-li {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  color: #5f6368;
  background: #fff;
  border: 1px solid #eceef1;
  white-space: nowrap;
}
.of-li b {
  color: #202124;
  font-size: 14px;
}
.of-li:hover {
  background: #f1f3f4;
}
.of-li.on {
  background: #e8f0fe;
  border-color: #c6dafc;
  color: #1a73e8;
}
.of-li.on b {
  color: #1a73e8;
}
.of-sp {
  flex: 1;
}
.of-line select,
.of-line input {
  width: auto;
  min-height: 38px;
}
.of-line input[type='search'] {
  min-width: 220px;
}
.of-t {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
}
.of-t th {
  text-align: left;
  font-size: 11.5px;
  font-weight: 600;
  color: #80868b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: #fafbfc;
}
.of-t td {
  padding: 11px 12px;
  border-bottom: 1px solid #f1f3f4;
  vertical-align: top;
}
.of-t tr.click {
  cursor: pointer;
}
.of-t tr.click:hover td {
  background: #f8fafd;
}
.of-t.sm td,
.of-t.sm th {
  padding: 7px 9px;
}
.of-g td {
  padding: 18px 12px 7px !important;
  border-bottom: 1px solid #dadce0 !important;
  background: #fff !important;
}
.of-g b {
  font-size: 15px;
  color: #202124;
}
.of-g span {
  margin-left: 10px;
  color: #80868b;
  font-size: 12.5px;
}
.of-st {
  color: var(--sc);
  font-weight: 600;
  font-size: 12.5px;
  white-space: nowrap;
}
.of-st::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sc);
  margin-right: 6px;
  vertical-align: 1px;
}
.of-n:empty {
  display: none;
}
.of-li em {
  font-style: normal;
}
.osmode button {
  white-space: nowrap;
}
.of-empty {
  padding: 36px 8px;
  color: #5f6368;
  text-align: center;
  line-height: 1.6;
}
.of-n {
  margin-left: 5px;
  background: #d93025;
  color: #fff;
  border-radius: 9px;
  padding: 0 6px;
  font-size: 11px;
}
/* CRN page */
.of-page {
  max-width: 1100px;
}
.of-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #eceef1;
  border-radius: 16px;
}
.of-cn {
  font-size: 21px;
  font-weight: 800;
  color: #202124;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  line-height: 1.2;
}
.of-head .tiny {
  margin-top: 4px;
  line-height: 1.5;
}
.of-ph {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.of-num {
  font-weight: 600;
  color: #3c4043;
  margin-right: 2px;
}
.of-call {
  background: #e6f4ea;
  border-color: #ceead6;
  color: #137333;
}
.of-wa {
  background: #e7f8ef;
  border-color: #c3ecd3;
  color: #0b7a3e;
}
.of-steps {
  display: flex;
  gap: 6px;
  padding: 14px 2px;
  font-size: 13px;
  color: #80868b;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.of-steps::-webkit-scrollbar {
  display: none;
}
.of-steps span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #eceef1;
  white-space: nowrap;
  flex: none;
}
.of-steps i {
  font-style: normal;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f1f3f4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #5f6368;
}
.of-steps .ok {
  color: #137333;
  border-color: #ceead6;
  background: #f3fbf5;
}
.of-steps .ok i {
  background: #188038;
  color: #fff;
}
.of-steps .cur {
  color: #1a73e8;
  font-weight: 700;
  border-color: #aecbfa;
  background: #e8f0fe;
}
.of-steps .cur i {
  background: #1a73e8;
  color: #fff;
}
.of-sec {
  background: #fff;
  border: 1px solid #eceef1;
  border-radius: 14px;
  margin-bottom: 10px;
  overflow: hidden;
}
.of-sec[open] {
  border-color: #d2e3fc;
  box-shadow: 0 2px 10px rgba(26, 115, 232, 0.06);
}
.of-sec summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
}
.of-sec summary::-webkit-details-marker {
  display: none;
}
.of-st-t {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.of-st-t b {
  font-size: 14.5px;
  color: #202124;
}
.of-st-t small {
  font-size: 12px;
  color: #80868b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.of-dot {
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 50%;
  border: 2px solid #dadce0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
}
.of-dot.ok {
  background: #188038;
  border-color: #188038;
}
.of-chev {
  width: 9px;
  height: 9px;
  border-right: 2px solid #9aa0a6;
  border-bottom: 2px solid #9aa0a6;
  transform: rotate(45deg);
  transition: transform 0.15s;
  margin-right: 4px;
  flex: none;
}
.of-sec[open] .of-chev {
  transform: rotate(-135deg);
}
.of-body {
  padding: 4px 16px 18px;
  border-top: 1px solid #f1f3f4;
}
.of-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px 14px;
  margin-top: 12px;
}
.of-f {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: #5f6368;
}
.of-f.wide {
  grid-column: 1/-1;
}
.of-f input,
.of-f select,
.of-f textarea {
  font-size: 14px;
  font-weight: 400;
  min-height: 40px;
  width: 100%;
}
.of-f textarea {
  min-height: 64px;
}
.of-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
}
.of-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 10px 0;
  flex-wrap: wrap;
}
.of-row input,
.of-row select {
  min-height: 40px;
}
.of-mom {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.55;
  margin-top: 12px;
  min-height: 220px;
}
.of-tis {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 4px;
}
.of-ti {
  font-size: 12px;
  padding: 4px 9px;
  border-radius: 7px;
  background: #f1f3f4;
  color: #3c4043;
}
.of-ti.op {
  background: #fef7e0;
  color: #b06000;
}
.of-ti.ok {
  background: #e6f4ea;
  color: #188038;
}
.of-ti.bad {
  background: #fce8e6;
  color: #c5221f;
}
.of-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 12px;
}
.of-3 > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border: 1px solid #f1f3f4;
  border-radius: 12px;
  background: #fafbfc;
}
.of-won {
  padding: 12px 0;
  font-size: 15px;
}
.of-fin {
  color: #b06000;
}
.of-seg {
  margin: 12px 0 4px;
}
.of-tl {
  margin-top: 16px;
  background: #fff;
  border: 1px solid #eceef1;
  border-radius: 14px;
  padding: 12px 16px;
}
.of-tl h4 {
  margin: 2px 0 8px;
  font-size: 13px;
  color: #5f6368;
}
.of-tl > div {
  padding: 8px 0;
  border-bottom: 1px dashed #eceef1;
  font-size: 13px;
}
.of-tl > div:last-child {
  border-bottom: 0;
}
.of-set {
  max-width: 820px;
  background: #fff;
  border: 1px solid #eceef1;
  border-radius: 16px;
  padding: 6px 18px 18px;
}
.of-set h3 {
  font-size: 15px;
  margin: 18px 0 8px;
}
.of-set .of-f {
  margin-bottom: 10px;
}
.of-ts {
  margin-bottom: 10px;
}
.of-q {
  background: #f8fafd;
  border-left: 3px solid #1a73e8;
  padding: 9px 11px;
  font-size: 13px;
  margin-bottom: 8px;
  border-radius: 0 8px 8px 0;
}
#sheetc .of-f {
  margin-bottom: 10px;
}
/* 📱 phones */
@media (max-width: 760px) {
  .of-line {
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 10px;
  }
  .of-line::-webkit-scrollbar {
    display: none;
  }
  .of-line .of-sp {
    display: none;
  }
  .of-line select,
  .of-line input[type='search'] {
    flex: none;
  }
  .of-line input[type='search'] {
    min-width: 200px;
  }
  .of-t,
  .of-t tbody,
  .of-t tr,
  .of-t td {
    display: block;
    width: 100%;
  }
  .of-t {
    background: transparent;
    border-radius: 0;
  }
  .of-t thead {
    display: none;
  }
  .of-t tr.click {
    background: #fff;
    border: 1px solid #eceef1;
    border-radius: 14px;
    margin: 8px 0;
    padding: 10px 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 12px;
  }
  .of-t tr.click td {
    border: 0;
    padding: 0;
    font-size: 13px;
    min-width: 0;
  }
  .of-t tr.click td::before {
    content: attr(data-l);
    display: block;
    font-size: 10.5px;
    font-weight: 600;
    color: #9aa0a6;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 1px;
  }
  .of-t tr.click td.of-c1 {
    grid-column: 1;
    font-size: 15px;
  }
  .of-t tr.click td.of-c2 {
    grid-column: 2;
    font-weight: 600;
  }
  .of-t tr.click td.of-wide {
    grid-column: 1/-1;
  }
  .of-t tr.click:hover td {
    background: transparent;
  }
  .of-g {
    display: block;
  }
  .of-g td {
    display: block;
    padding: 16px 4px 2px !important;
    border: 0 !important;
    background: transparent !important;
  }
  .of-g span {
    display: block;
    margin: 2px 0 0;
  }
  .of-t.sm,
  .of-t.sm tbody,
  .of-t.sm tr,
  .of-t.sm td {
    display: revert;
  }
  .of-t.sm {
    display: table;
    background: #fff;
    font-size: 12.5px;
  }
  .of-t.sm thead {
    display: table-header-group;
  }
  .of-body .of-t.sm {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  .of-head {
    padding: 14px;
  }
  .of-cn {
    font-size: 19px;
  }
  .of-ph {
    width: 100%;
  }
  .of-ph .of-num {
    flex-basis: 100%;
  }
  .of-ph .btn {
    flex: 1;
    justify-content: center;
    min-height: 42px;
  }
  .of-sec summary {
    padding: 13px 14px;
  }
  .of-body {
    padding: 2px 14px 16px;
  }
  .of-grid,
  .of-3 {
    grid-template-columns: 1fr;
  }
  .of-acts .btn,
  .of-3 .btn {
    flex: 1 1 auto;
    justify-content: center;
    min-height: 44px;
  }
  .of-row > input,
  .of-row > select {
    flex: 1 1 100%;
  }
  .of-row .btn {
    flex: 1 1 auto;
    min-height: 42px;
  }
  .of-add {
    position: fixed;
    right: 16px;
    bottom: calc(18px + env(safe-area-inset-bottom));
    z-index: 40;
    border-radius: 999px;
    width: 58px;
    height: 58px;
    padding: 0;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(240, 90, 41, 0.35);
    font-size: 26px;
  }
  .of-add b {
    display: none;
  }
  .top .osmode {
    width: 100%;
    display: flex;
  }
  .top .osmode button {
    flex: 1;
  }
  .of-set {
    padding: 4px 14px 16px;
  }
  .of-tl {
    padding: 10px 14px;
  }
}
/* OS view on phones */
@media (max-width: 760px) {
  .ostab {
    overflow-x: auto;
  }
  .oschips {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .oschips::-webkit-scrollbar {
    display: none;
  }
  .oschips button {
    flex: none;
  }
}
.archq .dq b {
  margin-left: 5px;
  font-weight: 800;
  opacity: 0.75;
}

/* OS Flow — big customer tile (65) */
.of-big {
  background: #fff;
  border: 1px solid #eceef1;
  border-radius: 16px;
  overflow: hidden;
}
.of-big .of-head {
  border: 0;
  border-radius: 0;
  padding-bottom: 10px;
}
.of-cs {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: #e8f0fe;
  color: #1a56c4;
}
.of-kv {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1px;
  background: #eceef1;
  border-top: 1px solid #eceef1;
  border-bottom: 1px solid #eceef1;
}
.of-kv > div {
  background: #fafbfc;
  padding: 9px 14px;
  min-width: 0;
}
.of-kv span {
  display: block;
  font-size: 11px;
  color: #80868b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.of-kv b {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #202124;
  overflow-wrap: anywhere;
}
.of-kv i {
  color: #bdc1c6;
  font-style: normal;
}
.of-fu {
  padding: 12px 18px 14px;
}
.of-fu-h {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.of-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.of-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f1f3f4;
  color: #5f6368;
  white-space: nowrap;
}
.of-tag.ok {
  background: #e6f4ea;
  color: #188038;
}
.of-tag.no {
  background: #fce8e6;
  color: #c5221f;
}
.of-tag.sm {
  margin-left: 6px;
  background: #e8f0fe;
  color: #1a56c4;
}
.of-rem {
  max-height: 220px;
  overflow: auto;
  margin-top: 8px;
  border-left: 2px solid #eceef1;
  padding-left: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.of-rem > div > div {
  font-size: 13px;
  color: #202124;
}
.of-ex {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #eceef1;
}
.of-by {
  font-size: 11px;
  font-weight: 600;
  color: #80868b;
  margin-left: 6px;
}
@media (max-width: 760px) {
  .of-kv {
    grid-template-columns: 1fr 1fr;
  }
  .of-fu {
    padding: 10px 12px 12px;
  }
  .of-fu .of-row {
    flex-wrap: wrap;
  }
  .of-fu .of-row input,
  .of-fu .of-row select {
    flex: 1 1 100% !important;
    max-width: none !important;
    min-width: 0;
  }
  .of-fu .of-row .btn {
    flex: 1 1 auto;
  }
}

/* Control Centre — Meetings view (66) */
.mt-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 12px;
}
.mt-bar select {
  width: auto;
}
.mt-chf {
  flex-wrap: wrap;
}
.mt-big {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid #eceef1;
  border-radius: 16px;
  padding: 16px 20px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.06);
}
.mt-big:hover,
.mt-big.open {
  border-color: #4285f4;
}
.mt-bl {
  flex: 1;
  min-width: 0;
}
.mt-bl .l {
  font-weight: 600;
  font-size: 13px;
  color: #5f6368;
}
.mt-bl .v {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mt-chev {
  font-size: 12px;
  font-weight: 600;
  color: #1a73e8;
  white-space: nowrap;
}
.mt-g {
  font-size: 12px;
  font-weight: 700;
  color: #80868b;
  white-space: nowrap;
}
.mt-g.up {
  color: #188038;
}
.mt-g.dn {
  color: #d93025;
}
.mt-open {
  margin-top: 12px;
}
.mt-h {
  font-weight: 700;
  font-size: 13px;
  margin: 14px 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mt-tools {
  justify-content: space-between;
  flex-wrap: wrap;
}
.mt-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}
.mt-s {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  background: #fff;
  border: 1px solid #eceef1;
  border-left: 4px solid var(--mc, #9aa0a6);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  text-align: left;
}
.mt-s:hover {
  background: #f8f9fa;
}
.mt-s.on {
  background: #e8f0fe;
  border-color: #4285f4;
  border-left-color: var(--mc, #4285f4);
}
.mt-sl {
  font-size: 12px;
  color: #5f6368;
  font-weight: 600;
}
.mt-s b {
  font-size: 20px;
}
.mt-tab th small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  opacity: 0.75;
  white-space: nowrap;
}
.mt-tab td.mt-fut {
  background: #fafbfc;
}
.mt-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 7px;
}
@media (max-width: 760px) {
  .mt-bl .v {
    font-size: 24px;
  }
  .mt-chev {
    display: none;
  }
  .mt-tiles {
    grid-template-columns: 1fr 1fr;
  }
}
/* Meetings: Target · MTD Target · MTD · TvA (66 v2) */
.mt-kvs {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 6px 32px;
  margin: 8px 0 6px;
}
.mt-kv {
  display: block;
  min-width: 0;
}
.mt-kv > span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #80868b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.mt-kv > b {
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: baseline;
  gap: 6px;
  line-height: 1.15;
}
.mt-kv > b .mt-tva {
  font-size: inherit;
}
.mt-kv.mt-main > b {
  font-size: 30px;
  color: #1a56c4;
}
.mt-tva {
  font-weight: 700;
  color: #80868b;
}
.mt-tva.ok {
  color: #188038;
}
.mt-tva.mid {
  color: #b06000;
}
.mt-tva.low {
  color: #d93025;
}
.mt-sr {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
}
.mt-tab td.mt-tg {
  color: #5f6368;
}
.mt-tab th.mt-hi {
  color: #1a56c4;
}
.mt-tgt input {
  width: 72px;
  padding: 6px 8px;
}
.mt-tgt td,
.mt-tgt th {
  white-space: nowrap;
}
@media (max-width: 760px) {
  .mt-kvs {
    gap: 6px 18px;
  }
  .mt-kv > b {
    font-size: 18px;
  }
  .mt-kv.mt-main > b {
    font-size: 24px;
  }
}
/* meeting targets: channel list + city list (68) */
.mt-tg2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.mt-tg2 .mt-h {
  margin-top: 0;
}
.mb-out {
  margin-top: 10px;
  max-height: 260px;
  overflow: auto;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 11px;
  padding: 10px;
  border-radius: 10px;
  white-space: pre-wrap;
}
@media (max-width: 760px) {
  .mt-tg2 {
    grid-template-columns: 1fr;
  }
}
/* TvA popup (Control Centre) */
.tp-ov {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.tp-box {
  background: #fff;
  border-radius: 18px;
  width: min(880px, 100%);
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.3);
  padding: 18px 20px;
}
.tp-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.tp-t {
  font-size: 18px;
  font-weight: 700;
}
.tp-x {
  border: 0;
  background: #f1f3f4;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 14px;
}
.tp-kpi {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 14px 0;
}
.tp-kpi > div {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 10px 12px;
}
.tp-kpi span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #80868b;
  text-transform: uppercase;
}
.tp-kpi b {
  font-size: 22px;
}
.tp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.tp-s {
  border: 1px solid #eceef1;
  border-radius: 12px;
  padding: 10px 12px;
}
.tp-h {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 6px;
}
.tp-r {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 5px 0;
  border-top: 1px dashed #eceef1;
  font-size: 13px;
}
.tp-r:first-of-type {
  border-top: 0;
}
.tp-k {
  font-size: 10px;
  color: #80868b;
  background: #f1f3f4;
  border-radius: 6px;
  padding: 1px 6px;
  text-transform: uppercase;
}
.tp-n {
  margin-left: auto;
  white-space: nowrap;
  color: #5f6368;
}
.tp-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
}
@media (max-width: 760px) {
  .tp-kpi {
    grid-template-columns: 1fr 1fr;
  }
  .tp-grid {
    grid-template-columns: 1fr;
  }
  .tp-box {
    padding: 14px;
  }
}
.mt-err {
  margin-top: 6px;
  font-size: 12px;
  color: #c5221f;
  background: #fce8e6;
  border-radius: 8px;
  padding: 6px 10px;
}
/* daily table: more than 2 meetings in a day → green */
.mt-tab td.mt-hot {
  background: #e6f4ea;
  color: #137333;
  font-weight: 700;
}
.mt-tab .crt-tot td.mt-hot {
  background: none;
  color: inherit;
}
/* meetings view always open + partnership split (72) */
.mt-big.open {
  cursor: default;
}
.mt-split {
  max-width: 720px;
}
.mt-split th small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  opacity: 0.75;
}
