:root {
  --color-bg: #f3f2f2;
  --color-surface: #eae9e9;
  --color-text: #201e1d;
  --color-accent: #ec3013;
  --color-divider: color-mix(in srgb, #201e1d 40%, transparent);
  --color-neutral-100: #f8f4f4;
  --color-neutral-200: #eae7e7;
  --color-neutral-400: #bab6b6;
  --color-neutral-600: #7d7979;
  --color-neutral-700: #605d5d;
  --color-neutral-800: #444141;
  --color-neutral-900: #2d2b2b;
  --color-accent-100: #fff2ef;
  --color-accent-600: #dd2b0f;
  --color-accent-700: #ae1800;
  --color-accent-800: #7c1405;
  --color-accent-900: #4d170e;
  --font: "Archivo", system-ui, sans-serif;
  --shadow-lg: 0 12px 32px color-mix(in srgb, #2d2b2b 22%, transparent);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--color-bg); color: var(--color-text); font: 400 14px/1.55 var(--font); }
p { margin: 0; }
a { color: var(--color-accent-700); }
b { font-weight: 700; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }

.btn {
  display: inline-flex; align-items: center; justify-content: flex-start; gap: 6px; flex: none; white-space: nowrap;
  cursor: pointer; text-decoration: none; font: 800 14px/1.2 var(--font); color: var(--color-text);
  background: transparent; border: 1px solid transparent; padding: 8px 14.4px; border-radius: 0;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--color-accent); color: var(--color-bg); }
.btn-primary:hover { background: var(--color-accent-600); }
.btn-primary:active { background: var(--color-accent-700); }
.btn-secondary { border-color: var(--color-divider); }
.btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.btn-ghost { color: var(--color-accent-700); padding-inline: 4px; }
.btn-ghost:hover { background: color-mix(in srgb, var(--color-accent) 10%, transparent); }
.btn-icon { width: 36px; height: 36px; padding: 0; justify-content: center; }
.btn-block { width: 100%; }

.field { min-width: 0; }
.field > label { display: block; font-size: 12px; margin-bottom: 5px; color: color-mix(in srgb, var(--color-text) 70%, transparent); }
.input {
  width: 100%; min-height: 36px; padding: 6px 10px; font: inherit; color: var(--color-text); caret-color: var(--color-accent);
  background: var(--color-surface); border: 1px solid var(--color-divider); border-radius: 0;
}
.input:hover { border-color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.input:focus-visible { border-color: var(--color-accent); outline-offset: 0; }
.input:disabled { opacity: 0.5; }
textarea.input { min-height: 64px; resize: vertical; }
.radio { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.radio input, .seg-opt input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.radio .dot { width: 16px; height: 16px; flex: none; border-radius: 50%; border: 1.5px solid var(--color-divider); }
.radio input:checked + .dot { border-color: var(--color-accent); background: var(--color-accent); box-shadow: inset 0 0 0 4px var(--color-bg); }
.radio input:focus-visible + .dot { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.seg { display: inline-flex; flex: none; align-self: flex-start; border: 1px solid var(--color-divider); }
.seg-opt { display: inline-flex; align-items: center; padding: 7px 12px; font-size: 13px; cursor: pointer; white-space: nowrap; }
.seg-opt + .seg-opt { border-left: 1px solid var(--color-divider); }
.seg-opt:has(input:checked) { background: var(--color-accent); color: var(--color-bg); }
.seg-opt:has(input:focus-visible) { outline: 2px solid var(--color-accent); outline-offset: -2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; cursor: pointer; }
.check input { accent-color: var(--color-accent); width: 16px; height: 16px; margin: 2px 0 0; flex: none; }

.tag { display: inline-flex; align-items: center; flex: none; white-space: nowrap; font-size: 11px; letter-spacing: 0.02em; padding: 3px 10px; justify-self: start; }
.tag-accent { background: var(--color-accent-100); color: var(--color-accent-800); }
.tag-neutral { background: var(--color-neutral-100); color: var(--color-neutral-800); }
.tag-outline { border: 1px solid var(--color-accent); color: var(--color-accent-700); }
.tag.big { font-size: 13px; padding: 6px 12px; font-weight: 700; }

.dialog-backdrop { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 16px; background: color-mix(in srgb, var(--color-neutral-900) 50%, transparent); }
.dialog {
  display: flex; flex-direction: column; gap: 12px; padding: 16px; max-height: calc(100vh - 32px); overflow: auto;
  background: var(--color-bg); border-top: 4px solid var(--color-text); box-shadow: var(--shadow-lg);
}
.dialog-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.dialog-title { font: 800 20px/1.2 var(--font); white-space: nowrap; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }

#app { min-height: 100vh; display: flex; flex-direction: column; }
.lbl { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.mut { color: var(--color-neutral-700); }
.red { color: var(--color-accent-700); }
.s12 { font-size: 12px; }
.s13 { font-size: 13px; }
.r { text-align: right; }
.col { display: flex; flex-direction: column; }
.two { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.h1 { font: 800 36px/1.1 var(--font); margin: 0; letter-spacing: -0.01em; }
.h2 { font: 800 20px/1.1 var(--font); margin: 0; }
.rule { border-bottom: 2px solid var(--color-text); padding-bottom: 8px; display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.sub { margin: 8px 0 0; color: var(--color-neutral-700); max-width: 80ch; }
.top { border-top: 2px solid var(--color-text); }
.empty { padding: 20px 8px; color: var(--color-neutral-700); }
.box { border: 1px solid var(--color-divider); padding: 6px 10px; background: var(--color-bg); white-space: nowrap; }
.note { background: var(--color-accent-100); color: var(--color-accent-900); padding: 12px 14px; }

.nav { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; padding: 12px 32px; border-bottom: 2px solid var(--color-text); }
.brand { font: 800 18px/1.2 var(--font); white-space: nowrap; }
.nav nav { display: flex; gap: 24px; margin-right: auto; flex-wrap: wrap; }
.nav nav button { all: unset; cursor: pointer; padding: 4px 0; white-space: nowrap; border-bottom: 2px solid transparent; }
.nav nav button.on { border-color: var(--color-accent); font-weight: 700; }
.who { all: unset; cursor: pointer; display: flex; flex-direction: column; line-height: 1.2; white-space: nowrap; border-left: 2px solid var(--color-text); padding-left: 16px; }
.filters { padding: 14px 32px; border-bottom: 1px solid var(--color-divider); background: var(--color-surface); display: flex; flex-direction: column; gap: 12px; }
.filters > div:first-child { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.filters .input { background: var(--color-bg); }

.page { flex: 1; padding: 28px 32px 40px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.head { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.head > div:first-child { margin-right: auto; flex: 1 1 auto; min-width: 0; }
.head .input { width: auto; }
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--color-text); }
.tab { all: unset; cursor: pointer; padding: 10px 14px; display: flex; gap: 8px; align-items: baseline; white-space: nowrap; border-bottom: 4px solid transparent; margin-bottom: -2px; }
.tab.on { font-weight: 700; border-color: var(--color-text); }
.tab.red.on { border-color: var(--color-accent); }

.scroll { overflow-x: auto; }
.g { display: grid; grid-template-columns: var(--c); gap: 16px; padding: 12px 8px; border-bottom: 1px solid var(--color-divider); align-items: center; min-width: var(--min, 0); }
.g.h { padding: 10px 8px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; color: var(--color-neutral-700); }
.g.click { cursor: pointer; }
.g.click:hover { background: var(--color-surface); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); border-top: 2px solid var(--color-text); border-bottom: 2px solid var(--color-text); }
.kpis > div { padding: 18px 20px 18px 0; display: flex; flex-direction: column; gap: 6px; }
.kpis b { font: 800 40px/1.1 var(--font); }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.f3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.sect { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--color-divider); padding-top: 12px; }

.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, 1fr); }
.login-brand { background: var(--color-accent); color: var(--color-bg); padding: 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.login-brand h1 { font: 800 clamp(40px, 5vw, 72px)/1.02 var(--font); margin: 0; letter-spacing: -0.02em; max-width: 12ch; text-wrap: balance; }
.login-form { padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.login-form > form { width: min(380px, 100%); display: flex; flex-direction: column; gap: 20px; }
.login-form .input, .login-form .btn { min-height: 48px; }

.split { flex: 1; display: grid; grid-template-columns: minmax(260px, 330px) minmax(0, 1fr); min-height: 620px; }
.split-list { border-right: 2px solid var(--color-text); display: flex; flex-direction: column; }
.split-list button, .pick { all: unset; cursor: pointer; padding: 12px 16px; border-bottom: 1px solid var(--color-divider); display: flex; flex-direction: column; gap: 3px; }
.split-list button.on { background: var(--color-surface); box-shadow: inset 4px 0 0 var(--color-accent); }
.split-detail { padding: 24px 0 32px 32px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.detail { display: grid; grid-template-columns: minmax(220px, 260px) minmax(0, 1fr) minmax(240px, 300px); flex: 1; }
.detail > aside:first-child { border-right: 1px solid var(--color-divider); padding: 20px 20px 0 0; display: flex; flex-direction: column; gap: 16px; font-size: 13px; }
.detail > section { padding: 20px 24px 0; display: flex; flex-direction: column; min-width: 0; }
.detail > aside:last-child { border-left: 1px solid var(--color-divider); padding: 20px 0 0 20px; display: flex; flex-direction: column; gap: 16px; }
.tl { display: grid; grid-template-columns: 96px 12px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--color-divider); }
.tl i { width: 10px; height: 10px; margin-top: 4px; background: var(--color-neutral-400); }
.tl i.ai { background: var(--color-accent); }
.transcript { gap: 6px; padding: 10px 12px; background: var(--color-surface, rgba(0,0,0,.03)); border: 1px solid var(--color-divider); max-height: 320px; overflow-y: auto; }
.tline { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 8px; font-size: 13px; }
.tline b { font-size: 12px; color: var(--color-text-secondary, inherit); }
.tline.agent b { color: var(--color-accent); }
.tl i.human { background: var(--color-text); }

.admin { flex: 1; display: grid; grid-template-columns: 220px minmax(0, 1fr); }
.admin > nav { border-right: 2px solid var(--color-text); padding: 28px 0; display: flex; flex-direction: column; }
.admin > nav button { all: unset; cursor: pointer; padding: 10px 20px; }
.admin > nav button.on { background: var(--color-surface); font-weight: 700; }
.pick { flex-direction: row; justify-content: space-between; padding: 10px 12px; }
.pick.on { background: var(--color-text); color: var(--color-bg); }
.terr { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--color-text); border-bottom: 1px solid var(--color-divider); min-height: 440px; }
.terr > div { border-right: 1px solid var(--color-divider); display: flex; flex-direction: column; min-width: 0; }
.bar { height: 22px; background: var(--color-surface); }
.bar > div { height: 100%; background: var(--color-text); }
.toast { position: fixed; left: 32px; bottom: 24px; max-width: calc(100vw - 64px); background: var(--color-text); color: var(--color-bg); padding: 12px 18px; z-index: 30; border-left: 4px solid var(--color-accent); }

/* App shell: NeoDove-style left sidebar and top bar */
.shell { flex: 1; display: grid; grid-template-columns: 244px minmax(0, 1fr); min-height: 100vh; transition: grid-template-columns .2s ease; }
.shell.slim { grid-template-columns: 116px minmax(0, 1fr); }
.side { background: var(--color-text); color: var(--color-bg); display: flex; flex-direction: row; position: sticky; top: 0; height: 100vh; overflow: hidden; min-width: 0; }
.side .brand { padding: 20px 20px 18px; font-size: 22px; border-bottom: 1px solid color-mix(in srgb, var(--color-bg) 18%, transparent); }
.side .modsw { border-bottom: 1px solid color-mix(in srgb, var(--color-bg) 18%, transparent); }
.side .modbtn { all: unset; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 16px 20px; width: 100%; box-sizing: border-box; }
.side .modbtn:hover { background: color-mix(in srgb, var(--color-bg) 8%, transparent); }
.side .brand0 { font-size: 20px; line-height: 1; }
.side .modlist { display: flex; flex-direction: column; padding: 0 0 10px; max-height: 50vh; overflow-y: auto; }
.side .modlist button { all: unset; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 9px 20px 9px 48px; color: color-mix(in srgb, var(--color-bg) 85%, transparent); }
.side .modlist button:hover:not(:disabled) { background: color-mix(in srgb, var(--color-bg) 8%, transparent); }
.side .modlist button.on { color: var(--color-bg); box-shadow: inset 3px 0 0 var(--color-accent); }
.side .modlist button:disabled { cursor: default; opacity: .55; }
.side .modlist .soon { margin-left: auto; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; border: 1px solid currentColor; padding: 2px 6px; }
.side nav { display: flex; flex-direction: column; padding: 8px 0; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--color-bg) 30%, transparent) transparent; }
.side nav .lbl1 { overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; }
.side nav button { all: unset; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 9px 20px; white-space: nowrap; min-width: 0; box-sizing: border-box; width: 100%; flex-shrink: 0; color: color-mix(in srgb, var(--color-bg) 82%, transparent); }
.side nav button svg { flex-shrink: 0; }
.side nav button:hover { background: color-mix(in srgb, var(--color-bg) 8%, transparent); color: var(--color-bg); }
.side nav button.on { background: var(--color-accent); color: var(--color-bg); font-weight: 700; }
.side nav button .n { margin-left: auto; font-size: 12px; }
.side .grp { padding: 14px 20px 4px; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: color-mix(in srgb, var(--color-bg) 50%, transparent); }
.side .me { margin-top: auto; flex-shrink: 0; padding: 12px 20px; border-top: 1px solid color-mix(in srgb, var(--color-bg) 18%, transparent); display: flex; flex-direction: column; gap: 6px; }
.side .me button { all: unset; cursor: pointer; font-size: 13px; color: color-mix(in srgb, var(--color-bg) 75%, transparent); }
.side .me button:hover { color: var(--color-bg); text-decoration: underline; }
.mainc { display: flex; flex-direction: column; min-width: 0; }
.topbar { display: flex; align-items: center; gap: 10px; padding: 10px 32px; border-bottom: 2px solid var(--color-text); position: sticky; top: 0; background: var(--color-bg); z-index: 10; }
.topbar .ttl { font: 800 16px/1.2 var(--font); margin-right: auto; }
.menu { position: relative; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 6px); min-width: 240px; background: var(--color-bg); border: 1px solid var(--color-divider); border-top: 3px solid var(--color-text); box-shadow: var(--shadow-lg); z-index: 25; display: flex; flex-direction: column; }
.menu-pop button { all: unset; cursor: pointer; padding: 10px 14px; border-bottom: 1px solid var(--color-divider); display: flex; flex-direction: column; gap: 2px; }
.menu-pop button:hover { background: var(--color-surface); }
.badge { background: var(--color-accent); color: var(--color-bg); font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 9px; }

/* Dashboard */
.card { background: var(--color-neutral-100); border: 1px solid var(--color-divider); padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card > h2 { font: 800 16px/1.2 var(--font); margin: 0; border-bottom: 1px solid var(--color-divider); padding-bottom: 10px; display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { background: var(--color-bg); border: 1px solid var(--color-divider); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; text-align: center; }
.stat b { font: 800 30px/1.1 var(--font); }
.stat.hot b { color: var(--color-accent-700); }
button.stat.click:hover, .legend .click:hover u { border-color: var(--color-text); text-decoration-color: var(--color-text); }
.funnel-row.click:hover, div.click[role=button]:hover { background: var(--color-surface); }
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-top: 2px solid var(--color-text); border-bottom: 2px solid var(--color-text); }
.strip > div { padding: 12px 16px 12px 0; display: flex; flex-direction: column; gap: 2px; }
.strip b { font: 800 26px/1.1 var(--font); }
.dgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.donuts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.donut { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.donut svg { width: 140px; height: 140px; }
.legend { display: flex; flex-direction: column; gap: 3px; font-size: 12px; align-self: stretch; }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; flex: none; border-radius: 2px; }
.legend em { font-style: normal; margin-left: auto; font-weight: 700; }
.hlegend { display: flex; gap: 16px; font-size: 12px; flex-wrap: wrap; }
.hlegend span { display: flex; align-items: center; gap: 6px; }
.hlegend i { width: 10px; height: 10px; border-radius: 2px; }
.chart { width: 100%; height: auto; overflow: visible; }
.chart text { font: 400 11px var(--font); fill: var(--color-neutral-700); }
.chart .hit:hover + .tipg, .chart .tipg:hover { display: block; }

/* Calling */
.callgrid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, 1fr); gap: 24px; align-items: start; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { all: unset; cursor: pointer; border: 1px solid var(--color-divider); padding: 7px 12px; font-size: 13px; white-space: nowrap; }
.chip:hover { border-color: var(--color-text); }
.chip.on { background: var(--color-text); color: var(--color-bg); border-color: var(--color-text); }
.chip.big { padding: 12px 18px; font-weight: 700; font-size: 15px; }
.bulkbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 12px; background: var(--color-text); color: var(--color-bg); }
.bulkbar .input { background: var(--color-bg); width: auto; min-height: 32px; }
.bulkbar .btn-secondary { border-color: var(--color-bg); color: var(--color-bg); }
.cb { accent-color: var(--color-accent); width: 16px; height: 16px; margin: 0; }
.qrow { display: grid; grid-template-columns: minmax(0, 2fr) 130px minmax(0, 1.4fr) 80px 32px; gap: 8px; align-items: center; }
.rrow { display: grid; grid-template-columns: 140px minmax(0, 1fr) minmax(0, 1fr) 32px; gap: 8px; align-items: center; }
.agents { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px 12px; max-height: 160px; overflow: auto; border: 1px solid var(--color-divider); padding: 10px; }

@media (max-width: 820px) {
  .nav, .filters { padding-inline: 16px; }
  .page { padding: 20px 16px 32px; }
  .h1 { font-size: 28px; }
  .login, .split, .detail, .admin, .terr { grid-template-columns: minmax(0, 1fr); }
  .login-brand, .login-form { padding: 28px 20px; }
  .split-list, .admin > nav { border-right: 0; border-bottom: 2px solid var(--color-text); }
  .admin > nav { flex-direction: row; flex-wrap: wrap; padding: 8px 0; }
  .split-detail { padding-left: 0; }
  .detail > aside, .detail > section { border: 0 !important; padding: 16px 0 0 !important; }
  .f3 { grid-template-columns: 1fr; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .topbar { padding: 8px 12px; gap: 8px; }
  .dgrid, .callgrid { grid-template-columns: minmax(0, 1fr); }
  .qrow, .rrow { grid-template-columns: minmax(0, 1fr); }
}
.side nav button.subnav { padding: 6px 20px 6px 48px; font-size: 13px; }
.side nav button.subnav.on2 { color: var(--color-bg); font-weight: 700; background: color-mix(in srgb, var(--color-bg) 12%, transparent); }
.card.click:hover { border-color: var(--color-text); }
@media (max-width: 820px) {
  .fieldrow, .newcol { grid-template-columns: minmax(0,1fr) !important; }
  .pipegrid, .fbgrid, .aboutgrid { grid-template-columns: minmax(0, 1fr) !important; }
  .side nav button.subnav { padding-left: 10px; }
}

/* Vishwakarma */
.rolebtn { all: unset; cursor: pointer; display: flex; padding: 10px 16px; border-left: 3px solid transparent; box-sizing: border-box; width: 100%; }
.rolebtn:hover { background: color-mix(in srgb, var(--color-text) 5%, transparent); }
.rolebtn.on { border-left-color: var(--color-accent); background: color-mix(in srgb, var(--color-accent) 8%, transparent); }
.rcell input { width: 16px; height: 16px; accent-color: var(--color-accent); }
@media (max-width: 820px) { .rolesgrid { grid-template-columns: minmax(0, 1fr) !important; } }

/* Logo: Hindi first, English after */
.brand .hi, .brand0 .hi { font-family: "Noto Sans Devanagari", "Kohinoor Devanagari", "Mangal", var(--font); font-weight: 800; }
.brand .en, .brand0 .en { font-size: .62em; font-weight: 600; opacity: .75; letter-spacing: .02em; }

/* Jatayu map */
.jt-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(280px, 1fr); gap: 16px; align-items: start; }
@media (max-width: 980px) { .jt-grid { grid-template-columns: minmax(0, 1fr); } }
.jt-map { width: 100%; height: auto; max-height: 72vh; display: block; background: #faf7f2; }
.jt-area { cursor: pointer; transition: fill-opacity .15s; }
.jt-area:hover { fill-opacity: .8; }
.jt-label { fill: #222; font-family: var(--font); font-weight: 600; paint-order: stroke; stroke: rgba(255,255,255,.85); stroke-width: .25em; }
.jt-tip { position: absolute; z-index: 5; pointer-events: none; background: #fff; border: 1px solid var(--color-divider); box-shadow: 0 4px 14px rgba(0,0,0,.12); padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; font-size: 12px; max-width: 260px; }
.jt-side { gap: 10px; max-height: 80vh; overflow-y: auto; }
.jt-side h2 { display: flex; flex-direction: column; gap: 2px; }
.jt-sum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.jt-sum div { display: flex; flex-direction: column; } .jt-sum b { font-size: 18px; } .jt-sum span { font-size: 11px; opacity: .7; }
.jt-bar { display: flex; height: 8px; gap: 2px; } .jt-bar i { display: block; border-radius: 2px; }
.jt-row { display: grid; grid-template-columns: 12px 1fr auto; gap: 8px; align-items: center; padding: 7px 4px; border: 0; border-bottom: 1px solid var(--color-divider); background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.jt-row:hover { background: rgba(0,0,0,.03); } .jt-row i, .jt-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.jt-line { display: flex; flex-direction: column; gap: 3px; padding: 8px 0; border-bottom: 1px solid var(--color-divider); }
.jt-warn { color: #b8661a; font-weight: 600; }
.jt-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 6px; }
.jt-tile { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 8px 10px; border: 1px solid var(--color-divider); border-left: 5px solid; background: none; font: inherit; color: inherit; cursor: pointer; }
.jt-tile:hover { background: rgba(0,0,0,.03); }
.jt-city { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--color-divider); }
.f4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 700px) { .f4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.jt-ob { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(280px, 1fr); gap: 16px; align-items: start; margin-top: 14px; }
@media (max-width: 980px) { .jt-ob { grid-template-columns: minmax(0, 1fr); } }
.jt-miss { margin: 0; padding-left: 18px; color: #b8661a; }
.jt-step { display: grid; grid-template-columns: 14px 1fr; gap: 8px; align-items: start; }
.jt-step i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #bbb; margin-top: 3px; }
.jt-step i.ok { background: #2f8f57; border-color: #2f8f57; } .jt-step i.now { border-color: #e39a2d; background: #f6d9a8; }

/* Phones and small tablets: sidebar becomes a drawer behind the ☰ button. */
.hamb, .ttl-mod, .side-bd { display: none; }
@media (max-width: 820px) {
  .side { position: fixed; z-index: 60; top: 0; left: 0; bottom: 0; height: 100dvh; width: min(300px, 86vw); transform: translateX(-105%); transition: transform .22s ease; box-shadow: 4px 0 24px rgba(0,0,0,.25); }
  .side.open { transform: none; }
  .side-bd { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(0,0,0,.45); }
  .hamb { all: unset; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex-shrink: 0; cursor: pointer; margin-left: -6px; }
  .topbar .ttl { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; display: flex; flex-direction: column; }
  .ttl-mod { display: block; font: 600 11px/1.2 var(--font); opacity: .6; }
  .topbar .btn { padding-inline: 10px; }
  .side nav button { padding: 11px 20px; }
}

/* Phones: one column for forms and side-by-side panels, two stat tiles a row, full-screen dialogs. */
@media (max-width: 820px) {
  .card > h2 { flex-wrap: wrap; row-gap: 6px; }
  .card { padding: 14px; overflow-x: auto; }
  .card > h2 .input, .card > h2 input { max-width: 100%; min-width: 0; }
  .tb-lbl { display: none; }
  .menu-pop { position: fixed; left: 8px; right: 8px; top: 56px; min-width: 0 !important; max-height: 70vh; overflow-y: auto; }
  .toast { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .dialog-backdrop { padding: 0; place-items: stretch; }
  .dialog { width: 100% !important; max-height: 100dvh; min-height: 100dvh; border-top: 0; padding: 14px 14px calc(14px + env(safe-area-inset-bottom)); }
  .dialog-head { position: sticky; top: -14px; background: var(--color-bg); padding: 4px 0 8px; z-index: 2; border-bottom: 1px solid var(--color-divider); }
  .dialog-title { white-space: normal; font-size: 18px; }
  .dialog-actions { position: sticky; bottom: -14px; background: var(--color-bg); padding: 10px 0; border-top: 1px solid var(--color-divider); flex-wrap: wrap; }
  .dialog-actions .btn { flex: 1 1 auto; }
  [style*="grid-template-columns"]:not(.g):not(.stats):not([style*="auto-f"]):not([style*="repeat("]):not([style*="24px"]) { grid-template-columns: minmax(0, 1fr) !important; }
  [style*="grid-template-columns: repeat(4"], [style*="grid-template-columns:repeat(4"], [style*="grid-template-columns:repeat(3"], [style*="grid-template-columns: repeat(3"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .head { align-items: stretch; }
  .head > span, .head > div:not(:first-child) { flex-wrap: wrap; }
  .chips { gap: 6px; }
}
@media (max-width: 600px) {
  .f2 { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .stat b { font-size: 24px; }
  .page { padding: 16px 12px 28px; }
  .h1 { font-size: 24px; }
}

/* Hanuman (field force) */
.hn .card { gap: 10px; }
.hn-item { display: flex; gap: 10px; justify-content: space-between; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--color-divider); }
.hn-item:last-child { border-bottom: 0; }
.hn-lead { all: unset; cursor: pointer; display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.hn-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; flex-shrink: 0; }
.hn-daybar { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.hn-cta { min-height: 52px; font-size: 16px; }
.hn-big { border-left: 4px solid var(--color-accent); }
.hn-open { border-left: 4px solid #2f8f57; }
@media (max-width: 600px) { .hn-item { flex-direction: column; } .hn-acts { justify-content: flex-start; width: 100%; } .hn-acts .btn { flex: 1 1 auto; text-align: center; } }

/* Home */
.home { gap: 22px; }
.hm-hello .h1 { margin: 0; }
.hm-banner { position: relative; min-height: 210px; display: flex; align-items: flex-end; padding: 26px 28px; background: var(--color-text); color: var(--color-bg); background-size: cover; background-position: center; }
.hm-banner > div:first-child { max-width: 640px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.hm-banner h2 { font: 800 30px/1.1 var(--font); margin: 0; }
.hm-banner p { margin: 0; font-size: 15px; opacity: .92; }
.hm-banner .hi { font-family: "Noto Sans Devanagari", "Mangal", var(--font); font-weight: 800; font-size: 22px; color: var(--color-accent); }
.hm-default { background: linear-gradient(120deg, var(--color-text) 55%, var(--color-accent)); }
.hm-kind { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; background: var(--color-accent); padding: 3px 8px; }
.hm-car { position: relative; }
.hm-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.hm-track::-webkit-scrollbar { display: none; }
.hm-track > .hm-banner { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.hm-arrow { all: unset; cursor: pointer; position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  font-size: 26px; line-height: 1; color: #fff; background: rgba(0,0,0,.35); }
.hm-arrow:hover { background: rgba(0,0,0,.6); } .hm-arrow.l { left: 8px; } .hm-arrow.r { right: 8px; }
@media (hover: none) { .hm-arrow { display: none; } }
.hm-ticker { all: unset; cursor: pointer; box-sizing: border-box; display: flex; align-items: center; width: 100%; border-top: 2px solid var(--color-text); border-bottom: 2px solid var(--color-text); background: var(--color-bg); overflow: hidden; }
.hm-tk-lbl { flex-shrink: 0; background: var(--color-accent); color: var(--color-bg); padding: 8px 12px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.hm-tk-win { flex: 1; overflow: hidden; min-width: 0; }
.hm-tk-run { display: inline-flex; white-space: nowrap; animation: hm-tick linear infinite; }
.hm-tk-run > span { display: inline-flex; }
.hm-ticker:hover .hm-tk-run { animation-play-state: paused; }
.hm-tk-item { padding: 8px 28px 8px 16px; font-size: 14px; position: relative; }
.hm-tk-item::after { content: '•'; position: absolute; right: 8px; color: var(--color-accent); }
@keyframes hm-tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .hm-tk-run { animation: none; } .hm-track { scroll-behavior: auto; } }
.hm-dots { position: absolute; right: 18px; bottom: 16px; display: flex; gap: 6px; }
.hm-dots button { all: unset; cursor: pointer; width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.45); }
.hm-dots button.on { background: #fff; }
.hm-h2 { font: 800 18px/1.2 var(--font); margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.hm-h2 .btn { margin-left: auto; }
.hm-mods { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.hm-mod { all: unset; cursor: pointer; box-sizing: border-box; display: flex; flex-direction: column; gap: 4px; padding: 16px; background: var(--color-bg); border: 1px solid var(--color-divider); border-top: 3px solid var(--color-text); min-height: 112px; }
.hm-mod:hover { border-top-color: var(--color-accent); background: var(--color-neutral-100); }
.hm-ic { font-size: 26px; line-height: 1; margin-bottom: 4px; }
.hm-news { display: flex; flex-direction: column; gap: 10px; }
.hm-post { display: flex; gap: 14px; padding: 14px 16px; background: var(--color-neutral-100); border: 1px solid var(--color-divider); }
.hm-post.pinned { border-left: 4px solid var(--color-accent); }
.hm-post img { width: 120px; height: 84px; object-fit: cover; flex-shrink: 0; }
.hm-post p { margin: 0; white-space: pre-line; }
.hm-clip { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 600px) {
  .hm-banner { min-height: 180px; padding: 18px; } .hm-banner h2 { font-size: 22px; }
  .hm-mods { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .hm-mod { min-height: 100px; padding: 12px; }
  .hm-post { flex-direction: column; } .hm-post img { width: 100%; height: 150px; }
}

.hm-thumb { width: 96px; height: 56px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--color-text); color: var(--color-bg); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }

/* Jatayu: on-screen preview of the filled forms */
.jt-prev { width: min(1000px, 100%) !important; }
.jt-paper { background: #e6e6e6; border: 1px solid var(--color-divider); max-height: 74vh; overflow: auto; }
.jt-paper iframe { display: block; width: 100%; border: 0; min-height: 600px; background: #e6e6e6; }
.jt-final { border-left: 4px solid var(--color-accent); }
@media (max-width: 820px) { .jt-paper { max-height: none; } }
/* Hanuman SFA */
.sf-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.sf-stats > div { background: var(--color-bg-2, #f6f4ef); border-radius: 10px; padding: 8px 6px; text-align: center; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.sf-stats b { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sf-stats span { font-size: 11px; color: var(--color-text-2, #777); }
.sf-prog { height: 6px; background: var(--color-divider); border-radius: 3px; overflow: hidden; margin: 2px 0 6px; }
.sf-prog i { display: block; height: 100%; background: #2f8f57; border-radius: 3px; }
.sf-out { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--color-divider); }
.sf-out:last-of-type { border-bottom: 0; }
.sf-out.done { opacity: .6; }
.sf-n { width: 28px; height: 28px; border-radius: 50%; background: var(--color-accent); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 600; flex-shrink: 0; }
.sf-out.done .sf-n { background: #2f8f57; }
.sf-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0 10px; }
.sf-tile { all: unset; cursor: pointer; box-sizing: border-box; min-height: 84px; border: 1.5px solid var(--color-divider); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; background: var(--color-surface, #fff); }
.sf-tile:active { transform: scale(.98); }
.sf-tile.done { border-color: #2f8f57; background: #eef7f1; color: #1d6b3e; }
.sf-ic { font-size: 26px; line-height: 1; }
.sf-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.sf-chips .chip { min-height: 40px; padding: 8px 14px; }
.sf-prods { display: flex; flex-direction: column; max-height: 52vh; overflow: auto; margin: 6px 0; }
.sf-prod { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--color-divider); }
.sf-prod.on { background: #fff8e6; }
.sf-step { display: flex; align-items: center; flex-shrink: 0; }
.sf-step button { width: 40px; height: 40px; border: 1px solid var(--color-divider); background: var(--color-surface, #fff); font-size: 20px; cursor: pointer; border-radius: 10px; }
.sf-step input { width: 48px; height: 40px; text-align: center; border: 0; font-size: 16px; font-weight: 600; background: transparent; }
.sf-total { position: sticky; bottom: -1px; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0 2px; background: var(--color-surface, #fff); border-top: 1px solid var(--color-divider); }
.sf-score { display: flex; justify-content: space-between; align-items: center; padding: 2px 0; }
.sf-score button { all: unset; cursor: pointer; font-size: 26px; color: #d8d3c8; padding: 0 2px; }
.sf-score button.on { color: #e3b23c; }
.sf-pick { all: unset; cursor: pointer; display: block; padding: 9px 4px; border-bottom: 1px solid var(--color-divider); font-size: 14px; }
.sf-me td { background: #fff8e6; }
@media (max-width: 600px) { .sf-out { flex-wrap: wrap; } .sf-out .hn-acts { width: auto; } .sf-out .hn-acts .btn { flex: 0 0 auto; } }
/* Kubera DMS */
.kb-firm { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.kb-firm select { flex: 1; max-width: 460px; }
.kb-kpi { margin: 0 0 12px; }
.kb-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kb-tiles .sf-tile { min-height: 104px; position: relative; }
.kb-tiles .badge { position: absolute; top: 8px; right: 8px; }
.kb-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.kb-row { all: unset; box-sizing: border-box; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; padding: 10px 2px; border-bottom: 1px solid var(--color-divider); }
.kb-row:last-child { border-bottom: 0; }
.kb-qty { font-size: 17px; font-weight: 700; white-space: nowrap; }
.kb-big { text-align: center; font-size: 15px; margin: 6px 0 14px; }
.kb-big b { font-size: 30px; }
.kb-amt { font-size: 24px; font-weight: 700; height: 52px; }
.kb-add { padding: 8px 2px; border-bottom: 1px solid var(--color-divider); }
.kb-add.on { background: #fff8e6; }
.kb-add3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-top: 4px; }
tr.click { cursor: pointer; }
@media (max-width: 600px) { .kb-tiles { grid-template-columns: 1fr 1fr; } .kb-firm { flex-direction: column; align-items: stretch; } }
.kb-row > .col { flex: 1 1 55%; }
@media (max-width: 600px) { .kb-row { flex-wrap: wrap; } .kb-row > .hn-acts { width: auto; margin-left: auto; } .kb-row > .hn-acts .btn { flex: 0 0 auto; } }


/* Sidebar: slim app rail (icons) + the current app's pages. Narrow mode keeps icons only. */
.side { background: #161514; }
.side .rail { flex: 0 0 60px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
  background: linear-gradient(180deg, #0f0e0e, #171615); border-right: 1px solid rgba(255,255,255,.06); }
.side .rail::-webkit-scrollbar { display: none; }
.side .rail button { all: unset; cursor: pointer; box-sizing: border-box; width: 60px; padding: 5px 2px; display: flex; flex-direction: column; align-items: center; gap: 3px; flex-shrink: 0; position: relative; color: rgba(255,255,255,.55); }
.side .rail-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; transition: background .18s, color .18s, box-shadow .18s, transform .18s; }
.side .rail-l { font-size: 9.5px; font-weight: 600; letter-spacing: .01em; line-height: 1.1; max-width: 56px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side .rail button:hover { color: #fff; }
.side .rail button:hover .rail-ic { background: rgba(255,255,255,.08); transform: translateY(-1px); }
.side .rail button.on { color: #fff; }
.side .rail button.on .rail-ic { background: linear-gradient(135deg, var(--color-accent), #ff7a3d); color: #fff; box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--color-accent) 80%, transparent); }
.side .side-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; min-height: 0; background: #1c1b1a; }
.side .modhead { padding: 14px 10px 12px 16px; display: flex; align-items: center; gap: 6px; border-bottom: 1px solid rgba(255,255,255,.06); }
.side .modhead .brand0 { font-size: 12px; opacity: .55; }
.side .modname { font-size: 16px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side .slimbtn { all: unset; cursor: pointer; margin-left: auto; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: rgba(255,255,255,.55); flex-shrink: 0; }
.side .slimbtn:hover { background: rgba(255,255,255,.08); color: #fff; }
.side nav { padding: 8px 8px; gap: 1px; }
.side nav button { padding: 8px 10px; border-radius: 9px; gap: 10px; font-size: 13.5px; color: rgba(255,255,255,.68); }
.side nav button:hover { background: rgba(255,255,255,.06); color: #fff; }
.side nav button.on { background: rgba(255,255,255,.1); color: #fff; font-weight: 600; box-shadow: inset 3px 0 0 var(--color-accent); }
.side nav button.on svg { color: var(--color-accent); }
.side nav button.subnav { padding: 6px 10px 6px 36px; }
.side .me { flex-direction: row; align-items: center; gap: 10px; padding: 12px 10px 12px 14px; border-top: 1px solid rgba(255,255,255,.06); }
.side .av { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #5b3fd1, #ec3013); }
.side .me-t { flex: 1; overflow: hidden; } .side .me-t > * { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side .me-a { display: flex; gap: 2px; flex-shrink: 0; }
.side .me-a button { all: unset; cursor: pointer; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: rgba(255,255,255,.55); }
.side .me-a button:hover { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
/* narrow mode (desktop only) */
@media (min-width: 821px) {
.shell.slim .side .modhead .col, .shell.slim .side nav .lbl1, .shell.slim .side nav .n, .shell.slim .side .me-t, .shell.slim .side nav button.subnav { display: none; }
.shell.slim .side .modhead { justify-content: center; padding: 14px 0 12px; } .shell.slim .side .slimbtn { margin: 0; }
.shell.slim .side nav button { justify-content: center; padding: 10px 0; }
.shell.slim .side .me { flex-direction: column; padding: 10px 0; } .shell.slim .side .me-a { flex-direction: column; }
}
@media (max-width: 820px) {
  .side { width: min(300px, 86vw); }
  .side .slimbtn { display: none; }
  .side nav button { padding: 11px 10px; }
}
/* Back office / user switch in the sidebar */
.side .facesw { display: inline-flex; margin-top: 6px; padding: 3px; border-radius: 10px; background: rgba(255,255,255,.07); gap: 2px; align-self: flex-start; }
.side .facesw button { all: unset; cursor: pointer; padding: 4px 10px; border-radius: 7px; font-size: 11.5px; font-weight: 600; color: rgba(255,255,255,.6); white-space: nowrap; }
.side .facesw button.on { background: #fff; color: #161514; }
.side .facesw button:not(.on):hover { color: #fff; }
@media (min-width: 821px) { .shell.slim .side .facesw { display: none; } }
.ux-steps { display: flex; gap: 3px; margin-top: 2px; } .ux-steps i { flex: 1; height: 4px; border-radius: 2px; background: var(--color-divider); max-width: 34px; } .ux-steps i.on { background: #2f8f57; }
.sf-two .btn { white-space: normal; min-width: 0; text-align: center; justify-content: center; }
/* Sandhi */
.sd-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-bottom: 14px; }
.sd-cat h2 { display: flex; justify-content: space-between; }
.sd-mini { display: flex; gap: 16px; font-size: 13px; color: var(--color-text-2, #666); margin-bottom: 6px; } .sd-mini b { color: var(--color-text); font-size: 16px; }
.sd-li { all: unset; cursor: pointer; display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 6px 0; border-top: 1px solid var(--color-divider); font-size: 13px; }
.sd-li span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.sd-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.sd-type { all: unset; cursor: pointer; box-sizing: border-box; border: 1.5px solid var(--color-divider); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 4px; background: var(--color-surface, #fff); }
.sd-type:hover { border-color: var(--color-text); } .sd-ic { font-size: 26px; }
.sd-head { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.sd-flow { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.sd-st { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 5px 10px 5px 6px; border-radius: 99px; background: var(--color-bg-2, #f1efec); color: var(--color-text-2, #777); }
.sd-st i { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11px; background: #fff; border: 1.5px solid #cfcac5; }
.sd-st.ok { background: #eef7f1; color: #1d6b3e; } .sd-st.ok i { background: #2f8f57; border-color: #2f8f57; color: #fff; }
.sd-st.now { background: #fff1ec; color: var(--color-accent); } .sd-st.now i { border-color: var(--color-accent); }
.sd-doc { width: 100%; height: 60vh; border: 1px solid var(--color-divider); border-radius: 10px; background: #e6e6e6; }
.sd-sig { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-bottom: 1px solid var(--color-divider); } .sd-sig img { max-height: 54px; max-width: 200px; background: #fff; }
.sd-sign { border-left: 4px solid var(--color-accent); }
.sd-pad { position: relative; border: 2px dashed #c9c4c0; border-radius: 12px; height: 190px; background: #fff; touch-action: none; margin: 8px 0; }
.sd-pad canvas { width: 100%; height: 100%; display: block; border-radius: 12px; }
.sd-pad i { position: absolute; left: 12px; bottom: 8px; font-size: 12px; color: #aaa; font-style: normal; pointer-events: none; }
.sd-pad .btn { position: absolute; right: 6px; top: 6px; }
.sd-otp { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 12px; background: var(--color-bg-2, #f6f4f1); margin: 8px 0; }
.sd-code { font-size: 22px; letter-spacing: .3em; text-align: center; height: 50px; }
.sd-frow { display: grid; grid-template-columns: 1fr 120px auto auto; gap: 6px; align-items: center; margin-bottom: 4px; }
@media (max-width: 600px) { .sd-frow { grid-template-columns: 1fr 1fr; } }
.sd-cat4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.sd-cat4 .sd-type { min-height: 150px; } .sd-n { margin-top: auto; font-size: 12px; font-weight: 600; color: var(--color-accent); }
/* Freezer state-wise */
.fz-rows { display: flex; flex-direction: column; }
.fz-row { all: unset; cursor: pointer; display: grid; grid-template-columns: 170px 1fr auto auto; gap: 12px; align-items: center; padding: 9px 2px; border-bottom: 1px solid var(--color-divider); }
.fz-row:hover { background: color-mix(in srgb, var(--color-text) 4%, transparent); }
.fz-bar { display: flex; height: 10px; background: var(--color-divider); border-radius: 5px; overflow: hidden; min-width: 60px; }
.fz-bar i { display: block; height: 100%; background: #2f8f57; } .fz-bar i.p { background: #e3b23c; }
.fz-n { font-size: 13px; white-space: nowrap; } .fz-h { margin: 4px 0 8px; }
@media (max-width: 700px) { .fz-row { grid-template-columns: 1fr auto; } .fz-row .fz-bar { grid-column: 1 / -1; order: 3; } .fz-sw .sf-stats { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
/* Kubera — current-DMS screens */
.kb-bc { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.kb-dash { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 14px; margin-top: 14px; align-items: start; }
.kb-chart { width: 100%; height: 130px; } .kb-chart polyline { fill: none; stroke-width: 2.2; vector-effect: non-scaling-stroke; } .kb-chart .b { stroke: #2f6fd6; } .kb-chart .o { stroke: #e3b23c; }
.kb-leg { display: flex; gap: 14px; font-size: 12px; } .kb-leg i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; } .kb-leg i.b { background: #2f6fd6; } .kb-leg i.o { background: #e3b23c; }
.kb-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .kb-mini .card { padding: 10px 12px; gap: 2px; } .kb-mini b { font-size: 19px; }
.kb-win { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-radius: 12px; background: #eef7f1; color: #1d6b3e; margin-bottom: 12px; font-size: 14px; }
.kb-po { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--color-divider); } .kb-po.on { background: #fff8e6; }
.kb-po2 { display: grid; grid-template-columns: 76px 76px; gap: 6px; flex-shrink: 0; }
.kb-sch { background: #fff1ec; color: #a1300f; border-radius: 10px; padding: 8px 10px; font-size: 13px; margin: 6px 0; }
.kb-bcc { border-left: 4px solid var(--color-accent); gap: 10px; } .kb-big2 { font-size: 30px; }
.tbl td.num { text-align: right; white-space: nowrap; } .tbl tr.tot td { font-weight: 700; border-top: 2px solid var(--color-text); }
@media (max-width: 900px) { .kb-dash { grid-template-columns: minmax(0, 1fr); } }
.kb-flow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 12px; font-size: 12.5px; }
.kb-flow span { padding: 5px 10px; border-radius: 99px; background: var(--color-bg-2, #f1efec); } .kb-flow span.on { background: var(--color-accent); color: #fff; } .kb-flow b { margin-right: 4px; } .kb-flow i { font-style: normal; opacity: .5; }

/* ===== Sidebar v3: light, single column (Nov 2026) ===== */
.shell { grid-template-columns: 248px minmax(0, 1fr); }
.shell.slim { grid-template-columns: 72px minmax(0, 1fr); }
.side { background: #fbfaf9; color: var(--color-text); border-right: 1px solid #e7e3e0; flex-direction: column; }
.side .side-main { background: transparent; padding: 0; }
.side .sbtop { display: flex; align-items: center; gap: 10px; padding: 16px 12px 12px 16px; }
.side .sblogo { width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center; font: 700 17px/1 var(--font); color: #fff;
  background: linear-gradient(140deg, #ff6a3d, var(--color-accent) 55%, #c4210a); box-shadow: 0 4px 12px -4px color-mix(in srgb, var(--color-accent) 70%, transparent); }
.side .sbname { font: 800 17px/1 var(--font); letter-spacing: -.02em; }
.side .slimbtn { color: #8d8884; }
.side .slimbtn:hover { background: #efebe8; color: var(--color-text); }
.side .appsw { margin: 4px 12px 6px; padding: 3px; display: flex; gap: 2px; background: #efebe8; border-radius: 11px; }
.side .appsw button { all: unset; cursor: pointer; flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 7px 4px; border-radius: 8px;
  font-size: 12.5px; font-weight: 600; color: #6f6a66; transition: background .15s, color .15s, box-shadow .15s; }
.side .appsw button .lbl1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side .appsw button:hover:not(.on) { color: var(--color-text); }
.side .appsw button.on { background: #fff; color: var(--color-text); box-shadow: 0 1px 3px rgba(32,30,29,.12), 0 0 0 1px rgba(32,30,29,.04); }
.side .appsw button.on svg { color: var(--color-accent); }
.side .appsw-wrap { position: relative; margin: 4px 12px 6px; }
.side .appcur { all: unset; cursor: pointer; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 10px; padding: 7px 10px 7px 7px; border-radius: 11px; background: #fff; border: 1px solid #e7e3e0; font-weight: 600; font-size: 13.5px; }
.side .appcur .lbl1 { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side .appic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--color-accent-100); color: var(--color-accent); flex-shrink: 0; }
.side .apppop { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 5; background: #fff; border: 1px solid #e7e3e0; border-radius: 12px; padding: 6px; box-shadow: 0 12px 32px -8px rgba(32,30,29,.25); display: flex; flex-direction: column; }
.side .apppop button { all: unset; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 8px; font-size: 13.5px; }
.side .apppop button:hover, .side .apppop button.on { background: #f4f1ef; }
.side .facesw { display: flex; margin: 0 12px 4px; padding: 3px; border-radius: 10px; background: transparent; border: 1px solid #e7e3e0; gap: 2px; align-self: auto; }
.side .facesw button { flex: 1; text-align: center; color: #6f6a66; }
.side .facesw button.on { background: var(--color-text); color: #fff; }
.side .facesw button:not(.on):hover { color: var(--color-text); }
.side .sbsect { padding: 12px 20px 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #a29d99; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side nav { padding: 2px 10px 10px; gap: 1px; scrollbar-color: #d9d4d0 transparent; }
.side nav button { padding: 7px 10px; border-radius: 8px; gap: 11px; font-size: 13.5px; font-weight: 500; color: #4a4643; transition: background .12s, color .12s; }
.side nav button svg { color: #8d8884; transition: color .12s; }
.side nav button:hover { background: #f1eeeb; color: var(--color-text); }
.side nav button:hover svg { color: var(--color-text); }
.side nav button.on { background: var(--color-accent-100); color: var(--color-accent-700); font-weight: 650; box-shadow: none; }
.side nav button.on svg { color: var(--color-accent); }
.side nav button .n { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: #efebe8; color: #6f6a66; }
.side nav button.on .n { background: #fff; color: var(--color-accent-700); }
.side nav button.subnav { padding: 5px 10px 5px 38px; font-size: 13px; color: #6f6a66; }
.side nav button.subnav.on2 { color: var(--color-accent-700); font-weight: 650; background: transparent; }
.side .me { margin: 6px 10px 10px; padding: 8px; border: 1px solid #e7e3e0; border-top: 1px solid #e7e3e0; border-radius: 12px; background: #fff; }
.side .me .s12 { opacity: .6 !important; }
.side .av { background: linear-gradient(140deg, #ff6a3d, var(--color-accent) 60%, #c4210a); }
.side .me-a button { color: #8d8884; }
.side .me-a button:hover { background: #f1eeeb; color: var(--color-text); }
.topbar { border-bottom: 1px solid #e7e3e0; background: color-mix(in srgb, var(--color-bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
@media (min-width: 821px) {
  .shell.slim .side .sbname, .shell.slim .side .sbsect, .shell.slim .side .appsw .lbl1, .shell.slim .side .appcur .lbl1, .shell.slim .side .appcur > svg:last-child { display: none; }
  .shell.slim .side .sbtop { flex-direction: column; padding: 14px 0 8px; gap: 8px; }
  .shell.slim .side .appsw { flex-direction: column; margin: 4px 10px 8px; }
  .shell.slim .side .appsw button { padding: 8px 0; }
  .shell.slim .side .appsw-wrap { margin: 4px 10px 8px; } .shell.slim .side .appcur { justify-content: center; padding: 6px 0; }
  .shell.slim .side .apppop { right: auto; width: 220px; }
  .shell.slim .side nav button { padding: 9px 0; }
  .shell.slim .side .me { margin: 6px 8px 10px; padding: 8px 0; }
}
@media (max-width: 820px) { .side { box-shadow: 8px 0 32px rgba(32,30,29,.18); } }

/* =====================================================================
   Fiori-style theme (SAP S/4HANA "Horizon" design language), Nov 2026.
   Shell bar on top, light side navigation, white cards on a soft grey page,
   blue for interaction, Sheetal red kept for the main action button.
   ===================================================================== */
:root {
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --color-bg: #f5f6f7; --color-surface: #ffffff; --color-text: #1d2d3e; --color-neutral-100: #ffffff;
  --color-divider: #d9dde1; --line: #e5e8eb; --t2: #556b82; --blue: #0070f2; --blue-t: #0064d9; --blue-bg: #ebf8ff; --hover: #eaecee;
  --field: #bcc3ca; --sh-card: 0 0 2px rgba(34,53,72,.16), 0 2px 4px rgba(34,53,72,.12); --sh-pop: 0 10px 30px rgba(34,53,72,.18), 0 0 2px rgba(34,53,72,.16);
  --color-neutral-700: #556b82; --shadow-lg: var(--sh-pop);
}
body { font: 400 14px/1.5 var(--font); }
a { color: var(--blue-t); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }

/* shell bar */
.fl { min-height: 100vh; display: flex; flex-direction: column; }
.shellbar { position: sticky; top: 0; z-index: 40; height: 52px; flex-shrink: 0; display: flex; align-items: center; gap: 8px; padding: 0 12px 0 8px; background: #fff; box-shadow: 0 0 3px rgba(34,53,72,.14), 0 1px 0 rgba(34,53,72,.06); }
.shellbar .sblogo { width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0; display: grid; place-items: center; font: 700 16px/1 var(--font); color: #fff; background: linear-gradient(140deg, #ff6a3d, var(--color-accent) 55%, #c4210a); }
.shellbar .sbname { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.sb-ic { all: unset; cursor: pointer; width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; color: var(--t2); flex-shrink: 0; position: relative; }
.sb-ic:hover { background: var(--hover); color: var(--color-text); }
.sb-app { position: relative; }
.sb-title { all: unset; cursor: pointer; display: flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 8px; font-size: 14px; color: var(--t2); font-weight: 500; border-left: 1px solid var(--line); margin-left: 6px; border-radius: 0 8px 8px 0; }
.sb-title:hover { background: var(--hover); color: var(--color-text); }
.sb-search { position: relative; flex: 0 1 420px; margin: 0 auto; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 18px; background: #eff1f2; color: var(--t2); }
.sb-search:focus-within { background: #fff; box-shadow: 0 0 0 1px var(--blue) inset; }
.sb-search input { all: unset; flex: 1; min-width: 0; font-size: 14px; color: var(--color-text); }
.sb-search input::placeholder { color: #8396a8; }
.sb-right { display: flex; align-items: center; gap: 2px; }
.sb-right .menu { position: relative; }
.sb-av { all: unset; cursor: pointer; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; background: #5b738b; margin-left: 6px; }
.sb-av:hover { box-shadow: 0 0 0 3px var(--hover); }
.sb-av.big { width: 44px; height: 44px; font-size: 15px; margin: 0; cursor: default; }
.menu-pop { border: 0; border-radius: 12px; box-shadow: var(--sh-pop); background: #fff; overflow: hidden; padding: 4px; }
.menu-pop button { border-bottom: 0; border-radius: 8px; padding: 9px 12px; }
.menu-pop button:hover { background: var(--hover); }
.menu-pop button.on { background: var(--blue-bg); }
.sb-pop-l { left: 0; right: auto; min-width: 300px; }
.sb-pop-l .row1 { display: flex; align-items: center; gap: 10px; }
.sb-pop-l button > .s12 { padding-left: 36px; }
.sb-pop-s { left: 0; right: 0; min-width: 0; }
.sb-grid { width: 380px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 10px; }
.sb-grid button { align-items: center; text-align: center; gap: 6px; padding: 14px 6px; }
.sb-grid button b { font-size: 13px; } .sb-grid button .s12 { font-size: 11px; line-height: 1.3; }
.sb-me { min-width: 260px; }
.sb-me-h { display: flex; gap: 12px; align-items: center; padding: 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.appic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--blue-bg); color: var(--blue-t); flex-shrink: 0; }
.appic.big { width: 44px; height: 44px; border-radius: 12px; }

/* layout under the shell bar */
.shell { min-height: calc(100vh - 52px); grid-template-columns: 240px minmax(0, 1fr); }
.shell.slim { grid-template-columns: 60px minmax(0, 1fr); }
.side { top: 52px; height: calc(100vh - 52px); background: #fff; border-right: 0; box-shadow: 1px 0 0 var(--line); }
.side .side-main { padding-top: 8px; }
.side .sbsect { color: #8396a8; padding: 10px 18px 6px; }
.side .facesw { margin: 6px 10px 2px; border-color: var(--line); border-radius: 8px; }
.side .facesw button { border-radius: 6px; }
.side .facesw button.on { background: var(--blue-bg); color: var(--blue-t); box-shadow: inset 0 0 0 1px var(--blue-t); }
.side nav { padding: 2px 8px 12px; }
.side nav button { padding: 9px 10px; border-radius: 8px; color: var(--color-text); font-weight: 500; }
.side nav button svg { color: var(--t2); }
.side nav button:hover { background: var(--hover); }
.side nav button.on { background: var(--blue-bg); color: var(--blue-t); font-weight: 700; box-shadow: inset 3px 0 0 var(--blue-t); }
.side nav button.on svg { color: var(--blue-t); }
.side nav button.on .n { background: #fff; color: var(--blue-t); }
.side nav button.subnav.on2 { color: var(--blue-t); }
@media (min-width: 821px) {
  .shell.slim .side .facesw, .shell.slim .side .sbsect { display: none; }
  .shell.slim .side nav { padding: 2px 6px 12px; }
  .shell.slim .side nav button { padding: 10px 0; }
}
.topbar { top: 52px; padding: 12px 32px; background: #fff; backdrop-filter: none; border-bottom: 0; box-shadow: 0 1px 0 var(--line); }
.topbar .ttl { font: 700 18px/1.2 var(--font); }
.topbar .ttl-mod { color: var(--t2); font-weight: 500; font-size: 13px; }
.hamb { display: none !important; }

/* page */
.page { padding: 24px 32px 40px; gap: 16px; }
.h1 { font: 700 24px/1.2 var(--font); letter-spacing: -.01em; }
.h2 { font: 700 18px/1.2 var(--font); }
.sub { color: var(--t2); }
.rule { border-bottom: 1px solid var(--line); }
.top { border-top: 1px solid var(--line); }
.card { background: #fff; border: 0; border-radius: 12px; box-shadow: var(--sh-card); padding: 16px 20px; }
.card > h2 { font: 700 16px/1.3 var(--font); border-bottom: 0; padding-bottom: 0; }
.card.click:hover { box-shadow: 0 0 0 1px var(--blue-t), var(--sh-card); border-color: transparent; }
.stat { background: #f5f6f7; border: 0; border-radius: 8px; }
.stat b, .stats b { font: 700 24px/1.2 var(--font); }
.kpis, .strip { border: 0; gap: 12px; }
.kpis > div, .strip > div { background: #fff; border-radius: 12px; box-shadow: var(--sh-card); padding: 16px 18px; }
.kpis b { font: 700 32px/1.1 var(--font); } .strip b { font: 700 24px/1.1 var(--font); }
.empty { color: var(--t2); }
.note { background: var(--blue-bg); color: #00315f; border-radius: 8px; }
.box { border-color: var(--line); border-radius: 6px; background: #fff; }

/* buttons (Horizon) */
.btn { font: 600 14px/1.2 var(--font); border-radius: 8px; min-height: 36px; padding: 8px 14px; }
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-secondary { background: #fff; border-color: var(--field); color: var(--blue-t); }
.btn-secondary:hover { background: var(--hover); }
.btn-ghost { color: var(--blue-t); padding-inline: 8px; }
.btn-ghost:hover { background: var(--hover); }
.btn-icon { width: 36px; padding: 0; }

/* fields */
.field > label { color: var(--t2); font-size: 13px; }
.input { background: #fff; border: 1px solid var(--field); border-bottom-color: var(--t2); border-radius: 6px; min-height: 36px; }
.input:hover { border-color: var(--blue-t); background: #fff; }
.input:focus-visible { border-color: var(--blue-t); box-shadow: 0 0 0 1px var(--blue-t); outline: none; }
.filters { background: #fff; border-bottom: 1px solid var(--line); }
.filters .input { background: #fff; }
.seg { border-color: var(--field); border-radius: 8px; overflow: hidden; }
.seg-opt:has(input:checked) { background: var(--blue-bg); color: var(--blue-t); font-weight: 600; }
.radio input:checked + .dot { border-color: var(--blue-t); background: var(--blue-t); }
.check input { accent-color: var(--blue-t); }

/* tabs, chips, tags */
.tabs { border-bottom: 1px solid var(--line); gap: 8px; }
.tab { padding: 10px 6px; border-bottom: 3px solid transparent; color: var(--t2); font-weight: 500; }
.tab:hover { color: var(--blue-t); }
.tab.on, .tab.red.on { color: var(--blue-t); border-color: var(--blue-t); font-weight: 600; border-radius: 2px; }
.chip { border-color: var(--field); border-radius: 8px; background: #fff; color: var(--color-text); padding: 6px 12px; }
.chip:hover { background: var(--hover); border-color: var(--field); }
.chip.on { background: var(--blue-bg); color: var(--blue-t); border-color: var(--blue-t); font-weight: 600; }
.tag { border-radius: 6px; font-size: 12px; font-weight: 600; letter-spacing: 0; padding: 2px 8px; }
.tag-neutral { background: #eff1f2; color: var(--t2); }
.tag-accent { background: #fff3b8; color: #8d4600; }
.tag-outline { border: 0; background: #f5fae5; color: #256f3a; }
.badge { background: #d20a0a; color: #fff; }

/* lists and tables */
.g { border-bottom: 1px solid var(--line); }
.g.h { font-size: 13px; letter-spacing: 0; text-transform: none; font-weight: 600; color: var(--t2); border-bottom: 1px solid var(--color-divider); }
.g.click:hover { background: #f2f3f4; }
.scroll { background: #fff; border-radius: 12px; box-shadow: var(--sh-card); padding: 0 8px; }
.card .scroll, .dialog .scroll { box-shadow: none; padding: 0; border-radius: 0; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 13px; font-weight: 600; color: var(--t2); padding: 8px 10px; border-bottom: 1px solid var(--color-divider); white-space: nowrap; }
.tbl td { padding: 8px 10px; border-bottom: 1px solid var(--line); }
.tbl tbody tr:hover td { background: #f7f8f9; }
.tbl tr.tot td { border-top: 1px solid var(--color-divider); }
.split { gap: 16px; }
.split-list { border-right: 0; background: #fff; border-radius: 12px; box-shadow: var(--sh-card); overflow: hidden; align-self: start; }
.split-list button, .pick { border-bottom: 1px solid var(--line); }
.split-list button:hover { background: #f2f3f4; }
.split-list button.on { background: var(--blue-bg); box-shadow: inset 3px 0 0 var(--blue-t); }
.split-detail { padding: 0 0 32px 8px; }
.admin > nav { border-right: 1px solid var(--line); background: #fff; }
.admin > nav button.on { background: var(--blue-bg); color: var(--blue-t); }
.pick.on { background: var(--blue-bg); color: var(--blue-t); }
.terr { border-top: 1px solid var(--line); background: #fff; border-radius: 12px; overflow: hidden; }
.bar > div { background: var(--blue); }
.tl i.human { background: var(--t2); } .tl i { border-radius: 50%; }

/* dialogs, toast */
.dialog-backdrop { background: rgba(29,45,62,.4); }
.dialog { background: #fff; border-top: 0; border-radius: 12px; padding: 20px 24px; box-shadow: var(--sh-pop); }
.dialog-title { font: 700 18px/1.3 var(--font); }
.toast { left: 50%; transform: translateX(-50%); bottom: 32px; border-left: 0; border-radius: 8px; background: rgba(29,45,62,.94); color: #fff; box-shadow: var(--sh-pop); }

/* module widgets */
.sf-tile, .sd-type { border: 0; box-shadow: var(--sh-card); background: #fff; }
.sf-tile:hover, .sd-type:hover { box-shadow: 0 0 0 1px var(--blue-t), var(--sh-card); }
.hm-mod { border: 0; border-radius: 12px; box-shadow: var(--sh-card); background: #fff; }
.hm-ticker { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

@media (max-width: 820px) {
  .shell, .shell.slim { grid-template-columns: minmax(0, 1fr); }
  .shellbar { gap: 4px; padding: 0 6px; }
  .shellbar .sbname, .sb-title { display: none; }
  .sb-search { margin: 0 2px; flex: 1 1 0; min-width: 0; padding: 0 10px; }
  .sb-av { margin-left: 2px; }
  .side { top: 0; height: 100dvh; }
  .topbar { padding: 10px 14px; }
  .page { padding: 16px 12px 28px; }
  .sb-grid { position: fixed; left: 8px; right: 8px; width: auto; top: 56px; }
  .sb-me, .sb-pop-l { position: fixed; left: 8px; right: 8px; top: 56px; }
}
.dialog-backdrop { z-index: 70; } .toast { z-index: 80; }

/* Exact Fiori look: SAP's "72" typeface (Apache 2.0, from @sap-theming/theming-base-content) and Horizon emphasized blue */
@font-face { font-family: "72"; font-style: normal; font-weight: 300; font-display: swap; src: url("https://cdn.jsdelivr.net/npm/@sap-theming/theming-base-content@11/content/Base/baseLib/sap_base_fiori/fonts/72-Light.woff2") format("woff2"); }
@font-face { font-family: "72"; font-style: normal; font-weight: 400; font-display: swap; src: url("https://cdn.jsdelivr.net/npm/@sap-theming/theming-base-content@11/content/Base/baseLib/sap_base_fiori/fonts/72-Regular-full.woff2") format("woff2"); }
@font-face { font-family: "72"; font-style: normal; font-weight: 600 900; font-display: swap; src: url("https://cdn.jsdelivr.net/npm/@sap-theming/theming-base-content@11/content/Base/baseLib/sap_base_fiori/fonts/72-Bold-full.woff2") format("woff2"); }
:root { --font: "72", "72full", Arial, Helvetica, sans-serif; --sh-card: 0 0 .125rem 0 rgba(34,53,72,.2), 0 .125rem .25rem 0 rgba(34,53,72,.2); }
.btn-primary { background: #0070f2; color: #fff; }
.btn-primary:hover { background: #0064d9; } .btn-primary:active { background: #0058bf; }
.badge { background: #aa0808; }
.h1 { font-weight: 700; letter-spacing: 0; }
.input { border-color: #556b82; border-radius: 4px; }
.side nav button.on { box-shadow: none; }

/* Sheetal brand colours (Brand Guidelines · 03 Colour) on the Fiori layout:
   Magenta #0f6a45 primary actions · Purple #0b4a32 interaction & selection · Sunshine Yellow #46d98a accent · Ink #201E1D text · Warm White #f7f7f4 page */
:root {
  --color-accent: #0f6a45; --color-accent-100: #e4f4ec; --color-accent-600: #0c5a3a; --color-accent-700: #0a4c31; --color-accent-800: #083d28; --color-accent-900: #052a1c;
  --color-text: #201e1d; --color-bg: #f7f7f4; --t2: #5f655f; --line: #e6e8e3; --color-divider: #d9dcd5; --hover: #eef0eb; --field: #c5c9c1;
  --blue: #0b4a32; --blue-t: #0b4a32; --blue-bg: #e9f5ef; --yellow: #46d98a;
  --sh-card: 0 0 .125rem 0 rgba(32,30,29,.16), 0 .125rem .25rem 0 rgba(32,30,29,.12);
}
.btn-primary { background: #0f6a45; color: #fff; }
.btn-primary:hover { background: #0c5a3a; } .btn-primary:active { background: #0a4c31; }
.red { color: #b3261e; }
.shellbar .sblogo, .side .sblogo { background: linear-gradient(140deg, #0f6a45, #0b4a32); box-shadow: none; }
.sb-av { background: #0b4a32; }
.sb-search { background: #eef0eb; } .sb-search input::placeholder { color: #868c86; }
.input { border-color: #c5c9c1; border-bottom-color: #5f655f; }
.input:hover, .input:focus-visible { border-color: #0b4a32; }
.input:focus-visible { box-shadow: 0 0 0 1px #0b4a32; }
:focus-visible { outline-color: #0b4a32; }
.tag-accent { background: #fdf0c9; color: #6e4f00; }
.tag-outline { background: #e4f4ec; color: #0a4c31; }
.badge { background: #0f6a45; }
.note { background: #fdf0c9; color: #4a3600; }
.side nav button.on { box-shadow: inset 3px 0 0 #0f6a45; }
.tab.on, .tab.red.on { border-color: #0f6a45; color: #0b4a32; }
.bar > div { background: #0b4a32; }
.toast { background: rgba(32,30,29,.95); border-left: 4px solid #46d98a; }
.g.click:hover, .split-list button:hover, .tbl tbody tr:hover td { background: #f4f5f1; }
.stat { background: #f2f3ef; }
.sb-search:focus-within { box-shadow: 0 0 0 1px #0b4a32 inset; }
/* Font: Geist (Vercel, SIL Open Font License, via Google Fonts) */
:root { --font: "Geist", "Segoe UI", system-ui, -apple-system, Arial, sans-serif; }

/* Samagra logo: magenta tile with white "s" and a Sunshine Yellow square; wordmark "samagra" with a magenta square */
.slogo { position: relative; width: 32px; height: 32px; border-radius: 9px; background: #0f6a45; flex-shrink: 0; display: inline-block; }
.slogo b { position: absolute; left: 0; right: 5px; top: 0; bottom: 3px; display: grid; place-items: center; color: #fff; font: 700 21px/1 var(--font); letter-spacing: -.02em; }
.slogo i { position: absolute; width: 5px; height: 5px; background: #46d98a; right: 7px; bottom: 9.5px; }
.slogo.big { width: 52px; height: 52px; border-radius: 14px; } .slogo.big b { font-size: 34px; right: 8px; bottom: 5px; } .slogo.big i { width: 8px; height: 8px; right: 11px; bottom: 15px; }
.swm { font: 700 19px/1 var(--font); letter-spacing: -.035em; color: #201e1d; display: inline-flex; align-items: baseline; }
.swm i { display: inline-block; width: .26em; height: .26em; background: #0f6a45; margin-left: .07em; }
.swm.inv { color: #fff; font-size: 34px; } .swm.inv i { background: #46d98a; }
.login-logo { display: flex; align-items: center; gap: 14px; }
.login-logo .slogo { background: #fff; } .login-logo .slogo b { color: #0f6a45; }
.shellbar .sblogo { display: none; }
@media (max-width: 820px) { .shellbar .swm { display: none; } }
/* Type per Sheetal brand guidelines: Montserrat for headings, Inter for text (the logo wordmark stays Geist) */
:root { --font: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif; --font-h: "Montserrat", "Inter", system-ui, sans-serif; }
.h1, .h2, .card > h2, .dialog-title, .topbar .ttl, .login-brand h1, .kpis b, .strip b, .stat b, .stats b, .sd-head b, .sf-tile b { font-family: var(--font-h); letter-spacing: -.01em; }
.h1 { font-weight: 700; } .topbar .ttl { font-weight: 700; }
.swm, .slogo b { font-family: "Geist", "Inter", system-ui, sans-serif; }

/* Side panel sections */
.side nav .navgrp { all: unset; cursor: pointer; display: flex; align-items: center; justify-content: space-between; box-sizing: border-box; width: 100%; padding: 14px 10px 5px; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #9a938c; }
.side nav .navgrp:hover { color: var(--color-text); background: transparent; }
.side nav .navgrp svg { color: inherit; }
@media (min-width: 821px) { .shell.slim .side nav .navgrp { display: block; height: 1px; padding: 0; margin: 8px 10px; background: var(--line); font-size: 0; } .shell.slim .side nav .navgrp svg { display: none; } }
.side .sbsect { display: none; }
/* Type: Geist for headings and numbers, Inter for text */
:root { --font-h: "Geist", "Inter", system-ui, sans-serif; }

/* ===== CRM command centre ===== */
.cd { gap: 16px; }
.cd-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cd-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.cd-skel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; } .cd-skel span { height: 110px; border-radius: 12px; background: linear-gradient(90deg, #edefea, #f5f6f3, #edefea); background-size: 200% 100%; animation: cdsk 1.2s infinite; }
@keyframes cdsk { to { background-position: -200% 0; } }
.cd-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cd-kpi { all: unset; box-sizing: border-box; position: relative; overflow: hidden; background: #fff; border-radius: 12px; box-shadow: var(--sh-card); padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 4px; min-height: 104px; }
.cd-kpi.click { cursor: pointer; } .cd-kpi.click:hover { box-shadow: 0 0 0 1px var(--blue-t), var(--sh-card); }
.cd-kl { font-size: 13px; color: var(--t2); font-weight: 500; }
.cd-kv { font: 700 28px/1.1 var(--font-h); letter-spacing: -.02em; }
.cd-ks { font-size: 12px; color: var(--t2); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; padding-right: 96px; }
.cd-ks em { font-style: normal; font-weight: 700; padding: 1px 6px; border-radius: 6px; background: #eff1f2; color: var(--t2); }
.cd-ks em.up { background: #e7f4ec; color: #1b7a43; } .cd-ks em.down { background: #fdece7; color: #b3261e; }
.cd-kpi.warn .cd-kv { color: #b3261e; }
.cd-spark { position: absolute; right: 12px; bottom: 12px; width: 96px; height: 28px; }
.cd-live { display: flex; gap: 8px; flex-wrap: wrap; align-items: stretch; background: #fff; border-radius: 12px; box-shadow: var(--sh-card); padding: 10px 12px; }
.cd-livet { align-self: center; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--t2); padding: 0 8px 0 4px; }
.cd-lv { all: unset; cursor: pointer; display: flex; align-items: baseline; gap: 6px; padding: 6px 12px; border-radius: 8px; background: #f2f3ef; }
.cd-lv:hover { background: var(--blue-bg); } .cd-lv b { font: 700 18px/1 var(--font-h); } .cd-lv span { font-size: 13px; color: var(--t2); }
.cd-lv.warn { background: #fdece7; } .cd-lv.warn b { color: #b3261e; }
.cd-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.cd-card { gap: 12px; min-height: 100%; } .cd-card > h2 { align-items: flex-start; }
.cd-mini { width: auto; min-height: 30px; padding: 2px 8px; font-size: 13px; }
.cd-empty { color: var(--t2); font-size: 13px; padding: 18px 0; text-align: center; }
.cd-svg { width: 100%; height: auto; display: block; overflow: visible; }
.cd-svg text { font: 11px var(--font); fill: #868c86; } .cd-svg .grid { stroke: #eceee9; }
.cd-legend { display: flex; gap: 6px; flex-wrap: wrap; }
.cd-legend button, .cd-legend span { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; padding: 4px 9px; border-radius: 8px; background: #f2f3ef; }
.cd-legend.static span { cursor: default; background: transparent; padding: 2px 6px 2px 0; }
.cd-legend button.off { opacity: .4; } .cd-legend i { width: 10px; height: 10px; border-radius: 3px; } .cd-legend em { font-style: normal; font-weight: 700; }
.cd-tip { position: fixed; z-index: 90; pointer-events: none; background: #201e1d; color: #fff; border-radius: 8px; padding: 8px 10px; font-size: 12.5px; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--sh-pop); max-width: 260px; }
.cd-tip b { font-weight: 700; } .cd-tr { display: flex; align-items: center; gap: 6px; } .cd-tr i { width: 8px; height: 8px; border-radius: 2px; } .cd-tr em { margin-left: auto; padding-left: 12px; font-style: normal; font-weight: 700; }
.cd-hbars { display: flex; flex-direction: column; gap: 2px; }
.cd-hb { all: unset; box-sizing: border-box; display: grid; grid-template-columns: minmax(70px, 38%) minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; padding: 5px 4px; border-radius: 6px; font-size: 13px; }
.cd-hb.click { cursor: pointer; } .cd-hb:hover { background: #f4f5f1; }
.cd-hl { all: unset; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
button.cd-hl.click { cursor: pointer; } button.cd-hl.click:hover { color: var(--blue-t); text-decoration: underline; }
.cd-ht { height: 12px; background: #f1f3ee; border-radius: 3px; overflow: hidden; } .cd-ht span { display: block; height: 100%; border-radius: 3px; }
.cd-hb b { font: 700 13px var(--font-h); text-align: right; min-width: 32px; }
.cd-hs { grid-column: 2 / 4; font-size: 11.5px; color: var(--t2); margin-top: -3px; }
.cd-mix { display: flex; flex-direction: column; gap: 6px; }
.cd-mr { display: grid; grid-template-columns: minmax(90px, 26%) minmax(0, 1fr) 44px 64px; gap: 10px; align-items: center; }
.cd-mt { display: flex; height: 16px; gap: 2px; } .cd-mt span { border-radius: 3px; min-width: 3px; cursor: pointer; } .cd-mt span:hover { filter: brightness(1.1); }
.cd-mr b { font: 700 13px var(--font-h); text-align: right; } .cd-mr .cd-hs { grid-column: auto; margin: 0; }
.cd-donut { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; } .cd-donut svg circle.click { cursor: pointer; } .cd-donut svg circle:hover { stroke-width: 22; }
.cd-dt { font: 700 22px var(--font-h); fill: #201e1d; } .cd-du { font: 11px var(--font); fill: #868c86; }
.cd-dl { flex: 1; min-width: 150px; display: flex; flex-direction: column; gap: 2px; }
.cd-dl button { all: unset; display: grid; grid-template-columns: 10px minmax(0, 1fr) auto 40px; gap: 8px; align-items: center; font-size: 12.5px; padding: 3px 4px; border-radius: 6px; }
.cd-dl button.click { cursor: pointer; } .cd-dl button:hover { background: #f4f5f1; }
.cd-dl i { width: 10px; height: 10px; border-radius: 3px; } .cd-dl span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .cd-dl em { font-style: normal; font-weight: 700; } .cd-dl small { color: var(--t2); text-align: right; }
.cd-gauges { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 8px; }
.cd-gauge { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0; } .cd-gauge svg { width: 100%; max-width: 130px; } .cd-gauge b { font-size: 13px; }
.cd-gv { font: 700 18px var(--font-h); fill: #201e1d; }
.cd-cols { display: flex; align-items: stretch; gap: 8px; padding-top: 6px; }
.cd-col { all: unset; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; min-width: 0; }
.cd-col.click { cursor: pointer; } .cd-col span { width: 70%; border-radius: 4px 4px 0 0; } .cd-col:hover span { filter: brightness(1.12); }
.cd-col em { font: 700 12.5px var(--font-h); font-style: normal; } .cd-col small { font-size: 11px; color: var(--t2); white-space: nowrap; }
.cd-heat { display: grid; grid-template-columns: 34px repeat(14, minmax(0, 1fr)); gap: 3px; align-items: center; }
.cd-heat span { aspect-ratio: 1.6; border-radius: 3px; } .cd-heat small { font-size: 10.5px; color: var(--t2); text-align: center; } .cd-heat small.wd { text-align: left; }
.cd-scale { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--t2); justify-content: flex-end; margin-top: 4px; }
.cd-scale i { width: 90px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, color-mix(in srgb, #17845a 12%, #fff), #17845a); }
.cd-funnel { display: flex; flex-direction: column; gap: 4px; }
.cd-funnel button { all: unset; cursor: pointer; display: grid; grid-template-columns: minmax(70px, 34%) minmax(0, 1fr) 40px; gap: 8px; align-items: center; padding: 4px; border-radius: 6px; font-size: 13px; }
.cd-funnel button:hover { background: #f4f5f1; } .cd-fl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cd-fb { display: flex; justify-content: center; height: 22px; } .cd-fb span { border-radius: 4px; } .cd-funnel b { font: 700 13px var(--font-h); text-align: right; }
.cd-team { display: flex; flex-direction: column; overflow-x: auto; }
.cd-tr0, .cd-trow { display: grid; grid-template-columns: minmax(160px, 1.4fr) repeat(4, minmax(90px, 1fr)) repeat(3, 76px); gap: 12px; align-items: center; min-width: 860px; }
.cd-tr0 { font-size: 12.5px; font-weight: 600; color: var(--t2); padding: 0 4px 8px; border-bottom: 1px solid var(--color-divider); }
.cd-trow { padding: 7px 4px; border-bottom: 1px solid var(--line); } .cd-trow:hover { background: #f4f5f1; }
.cd-tn { all: unset; cursor: pointer; display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13.5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cd-tn:hover { color: var(--blue-t); }
.cd-av { width: 28px; height: 28px; border-radius: 50%; background: var(--blue-bg); color: var(--blue-t); display: grid; place-items: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.cd-cell { position: relative; height: 22px; background: #f3f4f0; border-radius: 4px; overflow: hidden; display: flex; align-items: center; }
.cd-cell i { position: absolute; left: 0; top: 0; bottom: 0; opacity: .28; border-radius: 4px; } .cd-cell b { position: relative; padding-left: 8px; font: 700 12.5px var(--font-h); }
.cd-num { all: unset; cursor: pointer; display: flex; align-items: baseline; gap: 4px; justify-content: flex-end; padding: 2px 6px; border-radius: 6px; } .cd-num:hover { background: var(--blue-bg); }
.cd-num b { font: 700 14px var(--font-h); } .cd-num small { font-size: 11px; color: var(--t2); }
.cd-regions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
.cd-st { display: flex; flex-direction: column; gap: 4px; }
.cd-sth { all: unset; cursor: pointer; display: flex; flex-direction: column; padding: 4px; border-radius: 6px; border-bottom: 1px solid var(--line); } .cd-sth:hover { background: #f4f5f1; }
.cd-sth b { font: 700 14px var(--font-h); } .cd-sth span { font-size: 12px; color: var(--t2); }
@media (max-width: 1180px) { .cd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cd-grid > .cd-card[style*="span 3"] { grid-column: span 2 !important; } .cd-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .cd-grid { grid-template-columns: minmax(0, 1fr); } .cd-grid > .cd-card, .cd-grid > .cd-card[style*="span"] { grid-column: 1 / -1 !important; } .cd-svg { min-height: 180px; } .cd-regions { grid-template-columns: minmax(0, 1fr); } .cd-kpi { min-height: 96px; } .cd-kv { font-size: 24px; } .cd-ks { padding-right: 0; } .cd-spark { display: none; } .cd-mr { grid-template-columns: minmax(80px, 30%) minmax(0, 1fr) 36px; } .cd-mr .cd-hs { display: none; } }

/* ===== Master Home ===== */
.mh { display: flex; flex-direction: column; gap: 18px; }
.mh-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding: 22px 24px; border-radius: 16px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, #0f6a45 0%, #0a4c31 45%, #0b4a32 100%); box-shadow: 0 10px 30px -12px rgba(11,74,50,.55); position: relative; overflow: hidden; }
.mh-hero::after { content: ""; position: absolute; right: 24px; top: 20px; width: 14px; height: 14px; background: #46d98a; }
.mh-date { font-size: 13px; opacity: .85; font-weight: 500; }
.mh-hi h1 { margin: 4px 0 4px; font: 700 30px/1.15 var(--font-h); letter-spacing: -.02em; }
.mh-hi p { margin: 0; opacity: .9; font-size: 14px; }
.mh-att { all: unset; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,.14); backdrop-filter: blur(6px); }
.mh-att:hover { background: rgba(255,255,255,.22); } .mh-att b { font-size: 14px; } .mh-att .s12 { opacity: .85; }
.mh-dot { width: 10px; height: 10px; border-radius: 50%; background: #46d98a; box-shadow: 0 0 0 4px rgba(246,195,67,.3); }
.mh-att.in .mh-dot { background: #5fd38a; box-shadow: 0 0 0 4px rgba(95,211,138,.3); }
.mh-today { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.mh-tile { all: unset; cursor: pointer; box-sizing: border-box; background: #fff; border-radius: 12px; box-shadow: var(--sh-card); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; border-top: 3px solid #17845a; }
.mh-tile:hover { box-shadow: 0 0 0 1px var(--blue-t), var(--sh-card); }
.mh-tile b { font: 700 28px/1.1 var(--font-h); } .mh-tl { font-weight: 600; font-size: 14px; } .mh-ts { font-size: 12px; color: var(--t2); }
.mh-tile.warn { border-top-color: #d98a00; } .mh-tile.bad { border-top-color: #e8603c; } .mh-tile.bad b { color: #b3261e; }
.mh-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.mh-h2 { font: 700 16px/1.2 var(--font-h); margin: 0 0 10px; }
.mh-apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.mh-app { all: unset; cursor: pointer; box-sizing: border-box; background: #fff; border-radius: 14px; box-shadow: var(--sh-card); padding: 16px; display: flex; flex-direction: column; gap: 4px; min-height: 150px; transition: transform .15s, box-shadow .15s; }
.mh-app:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--blue-t), 0 8px 20px -8px rgba(32,30,29,.25); }
.mh-aic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(140deg, #0f6a45, #0b4a32); margin-bottom: 6px; }
.mh-app b { font: 700 17px/1.2 var(--font-h); } .mh-asub { font-size: 12.5px; color: var(--t2); }
.mh-ast { display: flex; gap: 14px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; color: var(--t2); }
.mh-ast span { display: flex; flex-direction: column; } .mh-ast b { font: 700 16px/1.2 var(--font-h); color: var(--color-text); }
.mh-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 10px; }
.mh-strip > div { background: #f2f3ef; border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; } .mh-strip b { font: 700 22px/1.1 var(--font-h); } .mh-strip span { font-size: 12px; color: var(--t2); }
.mh-bar { display: flex; height: 10px; gap: 2px; border-radius: 5px; overflow: hidden; } .mh-bar span { min-width: 0; }
.mh-row { all: unset; cursor: pointer; box-sizing: border-box; display: flex; gap: 12px; align-items: center; padding: 8px 6px; border-radius: 8px; border-bottom: 1px solid var(--line); }
.mh-row:last-child { border-bottom: 0; } .mh-row:hover { background: #f4f5f1; } .mh-row b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mh-when { flex-shrink: 0; width: 86px; font-size: 12px; font-weight: 600; color: var(--blue-t); } .mh-when.late { color: #b3261e; }
.mh-quick { display: flex; flex-direction: column; gap: 6px; }
.mh-quick button { all: unset; cursor: pointer; display: flex; justify-content: space-between; padding: 10px 12px; border-radius: 10px; background: #f2f3ef; font-weight: 600; font-size: 13.5px; }
.mh-quick button:hover { background: var(--blue-bg); color: var(--blue-t); }
.mh-hol { display: flex; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13px; } .mh-hol span { width: 96px; color: var(--t2); flex-shrink: 0; } .mh-hol:last-child { border-bottom: 0; }
.mh .hm-banner, .mh .hm-car { border-radius: 14px; overflow: hidden; }
.mh .hm-default { background: linear-gradient(120deg, #e4f4ec, #e4f2ea); color: #201e1d; min-height: 170px; }
.mh .hm-default h2 { font-family: var(--font-h); } .mh .hm-default .hm-kind { background: #0f6a45; color: #fff; }
@media (max-width: 1100px) { .mh-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .mh-hero { padding: 18px; } .mh-hi h1 { font-size: 24px; } .mh-att { width: 100%; box-sizing: border-box; } .mh-today { grid-template-columns: 1fr 1fr; } .mh-apps { grid-template-columns: 1fr 1fr; } .mh-app { min-height: 130px; padding: 12px; } }
/* Home updates (notice board) */
.mh-feed { gap: 8px; }
.mh-new { display: inline-block; margin-left: 6px; font: 700 11px/1 var(--font); padding: 4px 7px; border-radius: 99px; background: #0f6a45; color: #fff; vertical-align: middle; }
.mh-post { all: unset; cursor: pointer; box-sizing: border-box; display: flex; gap: 12px; align-items: flex-start; padding: 10px 8px; border-radius: 10px; border-bottom: 1px solid var(--line); position: relative; }
.mh-post:hover { background: #f4f5f1; } .mh-post.new::before { content: ""; position: absolute; left: -2px; top: 16px; width: 6px; height: 6px; border-radius: 50%; background: #0f6a45; }
.mh-post img { width: 54px; height: 54px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.mh-pk { width: 54px; height: 54px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center; font: 700 22px var(--font-h); color: #0b4a32; background: #e9f5ef; }
.mh-pm { font-size: 11.5px; color: var(--t2); } .mh-kd { font-weight: 700; color: #0b4a32; } .mh-kd.k-Announcement { color: #0c5a3a; } .mh-kd.k-Event { color: #8d5a00; } .mh-kd.k-Achievement { color: #1b7a43; }
.mh-pt { font: 600 14px/1.3 var(--font-h); } .mh-pb { font-size: 12.5px; color: var(--t2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mh .hm-banner:not(.has-img):not(.hm-default) { background: linear-gradient(115deg, #08341f 0%, #0b4a32 45%, #0c5a3a 100%); }
.mh .hm-car .hm-banner > div:first-child { padding-left: 40px; padding-right: 40px; }
.mh .hm-kind { background: #46d98a; color: #201e1d; border-radius: 6px; }
@media (max-width: 1100px) { .mh-grid > aside { order: -1; } }

/* ===== Home v2: calm ===== */
.page.home { max-width: 1080px; width: 100%; margin: 0 auto; }
.mh2 { display: flex; flex-direction: column; gap: 28px; padding-top: 8px; }
.mh2-hi { display: flex; flex-direction: column; gap: 6px; }
.mh2-date { font-size: 13px; color: var(--t2); font-weight: 500; }
.mh2-hi h1 { margin: 0; font: 700 34px/1.15 var(--font-h); letter-spacing: -.025em; }
.mh2-hi h1 i { display: inline-block; width: 9px; height: 9px; background: #0f6a45; margin-left: 4px; }
.mh2-att { all: unset; cursor: pointer; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding: 6px 12px; border-radius: 99px; background: #fff; box-shadow: var(--sh-card); font-size: 13px; font-weight: 600; }
.mh2-att span { width: 8px; height: 8px; border-radius: 50%; background: #d98a00; } .mh2-att.in span { background: #1b7a43; }
.mh2-today { display: flex; gap: 10px; flex-wrap: wrap; }
.mh2-t { all: unset; cursor: pointer; display: flex; align-items: baseline; gap: 8px; padding: 12px 16px; border-radius: 12px; background: #fff; box-shadow: var(--sh-card); }
.mh2-t b { font: 700 22px/1 var(--font-h); } .mh2-t span { font-size: 13.5px; color: var(--t2); }
.mh2-t.bad b { color: #b3261e; } .mh2-t.warn b { color: #a86400; } .mh2-t:hover, .mh2-next:hover { box-shadow: 0 0 0 1px var(--blue-t), var(--sh-card); }
.mh2-next { all: unset; cursor: pointer; display: flex; flex-direction: column; padding: 8px 16px; border-radius: 12px; background: #fff; box-shadow: var(--sh-card); margin-left: auto; min-width: 0; }
.mh2-next b { font-size: 14px; }
.mh2-h { font: 600 15px/1.2 var(--font-h); margin: 0 0 12px; color: var(--color-text); }
.mh2-apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.mh2-app { all: unset; cursor: pointer; box-sizing: border-box; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px; border-radius: 16px; background: #fff; box-shadow: var(--sh-card); transition: transform .15s, box-shadow .15s; }
.mh2-app:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(32,30,29,.3), 0 0 0 1px rgba(11,74,50,.25); }
.mh2-ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: linear-gradient(140deg, #0f6a45, #0b4a32); }
.mh2-app b { font: 600 15px/1.2 var(--font-h); }
.mh2-feed { display: flex; flex-direction: column; gap: 4px; }
.mh2-feed .mh-post { background: #fff; border: 0; box-shadow: var(--sh-card); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; }
.mh2 .hm-car, .mh2 .hm-banner { border-radius: 16px; overflow: hidden; }
.mh2 .hm-banner:not(.has-img) { background: linear-gradient(115deg, #08341f 0%, #0b4a32 45%, #0c5a3a 100%); min-height: 180px; }
.mh2 .hm-car .hm-banner > div:first-child { padding-left: 40px; padding-right: 40px; }
.mh2 .hm-kind { background: #46d98a; color: #201e1d; border-radius: 6px; }
@media (max-width: 600px) { .mh2 { gap: 22px; } .mh2-hi h1 { font-size: 26px; } .mh2-apps { grid-template-columns: repeat(2, 1fr); gap: 10px; } .mh2-next { margin-left: 0; width: 100%; box-sizing: border-box; } .mh2-t { flex: 1 1 40%; } }
/* Home is a launchpad: no side panel on computers */
@media (min-width: 821px) { .fl.on-home .shell { grid-template-columns: minmax(0, 1fr); } .fl.on-home .side { display: none; } .fl.on-home .topbar { display: none; } }
.mh2-feed > .btn-ghost { align-self: flex-start !important; }

/* ===== Sign in ===== */
.lg { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 32px 16px; background: #f7f7f4; position: relative; overflow: hidden; }
.lg-glow { position: absolute; inset: -20%; background: radial-gradient(40% 35% at 78% 18%, rgba(15,106,69,.16), transparent 70%), radial-gradient(45% 40% at 18% 85%, rgba(11,74,50,.16), transparent 70%), radial-gradient(18% 16% at 60% 80%, rgba(246,195,67,.18), transparent 70%); pointer-events: none; }
.lg-card { position: relative; width: min(400px, 100%); box-sizing: border-box; background: #fff; border-radius: 20px; padding: 32px 30px 26px; box-shadow: 0 20px 50px -24px rgba(32,30,29,.28), 0 0 0 1px rgba(32,30,29,.05); display: flex; flex-direction: column; gap: 18px; }
.lg-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; } .lg-logo .slogo { width: 36px; height: 36px; border-radius: 10px; } .lg-logo .slogo b { font-size: 23px; } .lg-logo .swm { font-size: 21px; }
.lg-card h1 { margin: 0; font: 700 26px/1.15 var(--font-h); letter-spacing: -.02em; }
.lg-sub { margin: 0; color: var(--t2); font-size: 14px; }
.lg-f { display: flex; flex-direction: column; gap: 6px; } .lg-f > span:first-child { font-size: 13px; font-weight: 600; color: #4a4643; }
.lg-f .input { min-height: 44px; border-radius: 10px; border: 1px solid #d9dcd5; padding: 8px 12px; font-size: 15px; }
.lg-f .input:focus-visible { border-color: #0b4a32; box-shadow: 0 0 0 3px rgba(11,74,50,.15); }
.lg-pw { position: relative; display: block; } .lg-pw .input { padding-right: 64px; }
.lg-pw button { all: unset; cursor: pointer; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 13px; font-weight: 600; color: #0b4a32; padding: 6px 8px; border-radius: 6px; } .lg-pw button:hover { background: #e9f5ef; }
.lg-go { min-height: 46px; border-radius: 10px; font-size: 15px; justify-content: center; margin-top: 4px; }
.lg-err { margin: 0; padding: 10px 12px; border-radius: 10px; background: #fdece7; color: #8a1c14; font-size: 13.5px; }
.lg-note { margin: 0; padding: 10px 12px; border-radius: 10px; background: #fdf0c9; color: #4a3600; font-size: 13.5px; }
.lg-help { margin: 0; text-align: center; font-size: 13px; color: var(--t2); }
.lg-foot { position: relative; margin: 0; font-size: 12.5px; color: #868c86; text-align: center; }

/* ===== Scripture × technology: sign in ===== */
.lg2 { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(380px, 1fr); background: #f7f7f4; }
.lg2-brand { position: relative; overflow: hidden; color: #fff; padding: 40px 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  background: radial-gradient(120% 90% at 100% 0%, #0c5a3a 0%, transparent 55%), linear-gradient(160deg, #062818 0%, #093d29 45%, #0b4a32 100%); }
.lg2-brand::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1.2px); background-size: 22px 22px; mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); pointer-events: none; }
.lg2-brand .yantra { position: absolute; right: -140px; top: 50%; width: 620px; height: 620px; transform: translateY(-50%); color: rgba(246,195,67,.28); animation: yspin 160s linear infinite; pointer-events: none; }
@keyframes yspin { to { transform: translateY(-50%) rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .lg2-brand .yantra { animation: none; } }
.lg2-brand > * { position: relative; }
.lg2-mid { display: flex; flex-direction: column; gap: 22px; max-width: 560px; }
.lg2-kicker { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: #46d98a; font-weight: 600; } .lg2-kicker span { font-family: "Noto Sans Devanagari", var(--font); text-transform: none; letter-spacing: 0; font-size: 15px; }
.lg2-mid h1 { margin: 0; font: 700 clamp(38px, 4.4vw, 62px)/1.04 var(--font-h); letter-spacing: -.03em; }
.lg2-mid blockquote { margin: 0; padding-left: 16px; border-left: 3px solid #46d98a; display: flex; flex-direction: column; gap: 4px; }
.lg2-mid blockquote span:first-child { font: 700 24px/1.3 "Noto Sans Devanagari", var(--font); } .lg2-mid blockquote span:last-child { font-size: 13px; opacity: .8; }
.lg2-family { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin-top: 6px; }
.lg2-family span { display: flex; flex-direction: column; gap: 1px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(4px); }
.lg2-family b { font: 700 17px/1.2 "Noto Sans Devanagari", var(--font); color: #fff; } .lg2-family em { font-style: normal; font-weight: 600; font-size: 13px; color: #46d98a; } .lg2-family small { font-size: 11.5px; opacity: .75; }
.lg2-foot { font-size: 12.5px; opacity: .7; }
.lg2-form { display: flex; align-items: center; justify-content: center; padding: 40px 32px; }
.lg2-form form { width: min(380px, 100%); display: flex; flex-direction: column; gap: 18px; }
.lg2-nm { font: 700 15px/1 "Noto Sans Devanagari", var(--font); color: #0f6a45; }
.lg2-form h2 { margin: 0; font: 700 32px/1.1 var(--font-h); letter-spacing: -.02em; }
@media (max-width: 860px) { .lg2 { grid-template-columns: minmax(0, 1fr); } .lg2-brand { padding: 28px 22px; gap: 20px; } .lg2-brand .yantra { width: 420px; height: 420px; right: -170px; top: 120px; transform: none; animation: none; }
  .lg2-mid h1 { font-size: 34px; } .lg2-family { grid-template-columns: repeat(2, 1fr); } .lg2-family small { display: none; } .lg2-family span:nth-child(n+5) { display: none; } .lg2-form { padding: 28px 22px 40px; } .lg2-mid blockquote span:first-child { font-size: 19px; } }

/* Home: namaste, yantra watermark, names with meaning */
.mh2-hi { position: relative; padding: 4px 0 4px; }
.mh2-yantra { position: absolute; right: -10px; top: -40px; width: 230px; height: 230px; color: rgba(11,74,50,.12); pointer-events: none; }
.mh2-nm { font: 700 15px/1 "Noto Sans Devanagari", var(--font); color: #0f6a45; }
.mh2-dv { display: flex; flex-direction: column; gap: 1px; font-size: 12px; color: var(--t2); margin-top: -8px; }
.mh2-dv em { font: 600 13px/1.3 "Noto Sans Devanagari", var(--font); font-style: normal; color: #0b4a32; }
@media (max-width: 600px) { .mh2-yantra { width: 150px; height: 150px; top: -20px; right: -30px; } }
/* Home poster slider: square posts, three across */
.mh2-posters { position: relative; }
.mh2-ptrack { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px; }
.mh2-ptrack::-webkit-scrollbar { display: none; }
.mh2-poster { flex: 0 0 calc((100% - 28px) / 3); aspect-ratio: 1 / 1; scroll-snap-align: start; border-radius: 16px; overflow: hidden; position: relative; box-sizing: border-box; text-decoration: none; color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 22px; box-shadow: var(--sh-card);
  background: radial-gradient(90% 90% at 100% 0%, #0c5a3a 0%, transparent 60%), linear-gradient(160deg, #062818, #0b4a32); }
.mh2-poster.img { background-size: cover; background-position: center; padding: 0; }
.mh2-poster:not(.img)::after { content: ""; position: absolute; right: 18px; top: 18px; width: 12px; height: 12px; background: #46d98a; }
.mh2-pk { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: #46d98a; color: #201e1d; }
.mh2-poster b { font: 700 22px/1.2 var(--font-h); letter-spacing: -.01em; } .mh2-pb { font-size: 13.5px; opacity: .85; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mh2-pl { font-size: 13px; font-weight: 700; color: #46d98a; }
a.mh2-poster:hover { transform: translateY(-2px); transition: transform .15s; }
.mh2-arr { all: unset; cursor: pointer; position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; background: #fff; box-shadow: var(--sh-pop); display: grid; place-items: center; font-size: 22px; color: #201e1d; }
.mh2-arr.l { left: -14px; } .mh2-arr.r { right: -14px; } .mh2-arr:hover { background: #e9f5ef; }
@media (max-width: 760px) { .mh2-poster { flex-basis: 78%; } .mh2-arr { display: none; } }
.mh2-yantra { color: rgba(11,74,50,.08); right: 220px; top: -30px; } @media (max-width: 760px) { .mh2-yantra { right: -30px; } } .mh2-hi > *:not(.mh2-yantra) { position: relative; }

/* ===== Sign in · folio (manuscript page × precise line-work) ===== */
.lg3 { --ink: #04170e; --gold: #c9a45c; --paper: #f6f1e8; --serif: "Cormorant Garamond", Georgia, serif; --deva: "Tiro Devanagari Sanskrit", "Noto Sans Devanagari", serif;
  min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(400px, 1fr); background: var(--paper); }
.lg3-folio { position: relative; overflow: hidden; background: var(--ink); color: #e9ebe5; padding: 56px 64px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; isolation: isolate; }
.lg3-folio::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E"); }
.lg3-folio::after { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(70% 55% at 85% 100%, rgba(11,74,50,.55), transparent 70%), radial-gradient(40% 35% at 0% 0%, rgba(15,106,69,.18), transparent 70%); }
.lg3-frame { position: absolute; inset: 24px; border: 1px solid rgba(201,164,92,.32); pointer-events: none; }
.lg3-frame i { position: absolute; width: 9px; height: 9px; border: 1px solid var(--gold); background: var(--ink); transform: rotate(45deg); }
.lg3-frame i:nth-child(1) { left: -5px; top: -5px; } .lg3-frame i:nth-child(2) { right: -5px; top: -5px; } .lg3-frame i:nth-child(3) { left: -5px; bottom: -5px; } .lg3-frame i:nth-child(4) { right: -5px; bottom: -5px; }
.lg3-seal { position: absolute; right: -150px; bottom: -150px; width: 520px; height: 520px; color: rgba(201,164,92,.22); z-index: -1; }
.lg3-top { display: flex; justify-content: space-between; align-items: center; }
.lg3-top .slogo { width: 34px; height: 34px; } .lg3-top .swm { font-size: 20px; }
.lg3-om { font: 400 15px/1 var(--deva); color: var(--gold); letter-spacing: .04em; }
.lg3-body { display: flex; flex-direction: column; gap: 26px; max-width: 540px; }
.lg3-sc { font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.lg3-body h1 { margin: 0; font: 400 clamp(44px, 5vw, 72px)/1.02 var(--serif); letter-spacing: -.01em; color: #eff1eb; }
.lg3-body h1 em { font-style: italic; color: var(--gold); }
.lg3-verse { margin: 4px 0 0; padding: 18px 0; border-top: 1px solid rgba(201,164,92,.28); border-bottom: 1px solid rgba(201,164,92,.28); display: flex; flex-direction: column; gap: 8px; }
.lg3-verse blockquote { margin: 0; font: 400 30px/1.35 var(--deva); color: #fff; }
.lg3-verse figcaption { display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: rgba(239,231,218,.72); }
.lg3-verse figcaption i { font: italic 400 17px/1.3 var(--serif); color: rgba(239,231,218,.9); }
.lg3-index { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 36px; }
.lg3-index li { display: grid; grid-template-columns: 26px auto auto minmax(12px, 1fr) auto; align-items: baseline; gap: 8px; font-size: 13px; color: rgba(239,231,218,.78); }
.lg3-index .n { font: italic 400 14px var(--serif); color: var(--gold); }
.lg3-index b { font: 400 16px/1.4 var(--deva); color: #fff; } .lg3-index .en { font: 500 15px var(--serif); color: #e9ebe5; }
.lg3-index .dots { border-bottom: 1px dotted rgba(201,164,92,.45); transform: translateY(-4px); } .lg3-index .w { font-size: 12px; letter-spacing: .02em; }
.lg3-foot { display: flex; justify-content: space-between; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(239,231,218,.5); }
.lg3-form { display: flex; align-items: center; justify-content: center; padding: 56px 40px; }
.lg3-form form { width: min(360px, 100%); display: flex; flex-direction: column; gap: 22px; }
.lg3-nm { font: 400 18px/1 var(--deva); color: #0c5a3a; }
.lg3-form h2 { margin: -10px 0 0; font: 400 52px/1 var(--serif); letter-spacing: -.01em; color: var(--ink); }
.lg3-sub { margin: -8px 0 6px; font-size: 14px; line-height: 1.55; color: #5f655f; }
.lg3-f { display: flex; flex-direction: column; gap: 4px; }
.lg3-f > span:first-child { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #5f655f; font-weight: 600; }
.lg3-f input { all: unset; box-sizing: border-box; width: 100%; padding: 10px 0 9px; font: 400 17px var(--font); color: var(--ink); border-bottom: 1px solid #b9ad9c; transition: border-color .2s, box-shadow .2s; }
.lg3-f input:focus { border-bottom-color: var(--ink); box-shadow: 0 1px 0 0 var(--ink); }
.lg3-pw { position: relative; display: block; } .lg3-pw input { padding-right: 56px; }
.lg3-pw button { all: unset; cursor: pointer; position: absolute; right: 0; bottom: 10px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: #5f655f; } .lg3-pw button:hover { color: var(--ink); }
.lg3-err { margin: 0; font-size: 13.5px; color: #9b1c1c; padding-left: 10px; border-left: 2px solid #9b1c1c; }
.lg3-go { all: unset; cursor: pointer; box-sizing: border-box; display: flex; justify-content: space-between; align-items: center; height: 54px; padding: 0 22px; margin-top: 6px; background: var(--ink); color: #eff1eb;
  font-size: 13px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; transition: background .2s; }
.lg3-go span:last-child { font-size: 18px; letter-spacing: 0; color: var(--gold); transition: transform .2s; }
.lg3-go:hover:not(:disabled) { background: #062818; } .lg3-go:hover:not(:disabled) span:last-child { transform: translateX(4px); }
.lg3-go:disabled { opacity: .35; cursor: default; }
.lg3-go:focus-visible { outline: 2px solid #0c5a3a; outline-offset: 3px; }
.lg3-help { margin: 0; font-size: 12.5px; color: #8a8076; }
@media (max-width: 900px) { .lg3 { grid-template-columns: minmax(0, 1fr); } .lg3-folio { padding: 40px 32px; gap: 28px; } .lg3-frame { inset: 14px; } .lg3-index { display: none; } .lg3-seal { width: 340px; height: 340px; right: -120px; bottom: -120px; }
  .lg3-body h1 { font-size: 42px; } .lg3-verse blockquote { font-size: 24px; } .lg3-foot span:last-child { display: none; } .lg3-form { padding: 40px 28px 56px; } .lg3-form h2 { font-size: 44px; } }
@media (max-width: 900px) { .lg3-folio { padding: 30px 28px; gap: 18px; } .lg3-sc, .lg3-verse figcaption, .lg3-foot { display: none; } .lg3-body { gap: 14px; } .lg3-body h1 { font-size: 36px; } .lg3-verse { padding: 12px 0; } .lg3-verse blockquote { font-size: 21px; } .lg3-form { padding: 28px 28px 48px; align-items: flex-start; } .lg3-form h2 { font-size: 40px; } }

/* Sign in · brought back to the brand guidelines: Geist headings, Inter text, Noto Sans Devanagari for Devanagari;
   Ink #201E1D, Warm White #f7f7f4, Magenta #0f6a45, Purple #0b4a32, Sunshine Yellow #46d98a */
.lg3 { --ink: #201e1d; --gold: #46d98a; --paper: #f7f7f4; --serif: var(--font-h); --deva: "Noto Sans Devanagari", var(--font); }
.lg3-folio { background: #201e1d; }
.lg3-folio::after { background: radial-gradient(70% 55% at 85% 100%, rgba(11,74,50,.6), transparent 70%), radial-gradient(40% 35% at 0% 0%, rgba(15,106,69,.22), transparent 70%); }
.lg3-frame { border-color: rgba(246,195,67,.3); } .lg3-frame i { background: #201e1d; }
.lg3-seal { color: rgba(246,195,67,.18); }
.lg3-body h1 { font: 700 clamp(40px, 4.6vw, 64px)/1.05 var(--font-h); letter-spacing: -.03em; }
.lg3-body h1 em { font-style: normal; }
.lg3-verse blockquote { font: 700 28px/1.35 var(--deva); }
.lg3-verse figcaption i { font: italic 400 15px/1.4 var(--font); }
.lg3-index .n { font: 600 12px var(--font-h); } .lg3-index b { font: 700 15px/1.4 var(--deva); } .lg3-index .en { font: 600 14px var(--font-h); }
.lg3-nm { font: 700 16px/1 var(--deva); color: #0f6a45; }
.lg3-form h2 { font: 700 44px/1 var(--font-h); letter-spacing: -.03em; }
.lg3-go { background: #0f6a45; color: #fff; border-radius: 10px; letter-spacing: .12em; }
.lg3-go:hover:not(:disabled) { background: #0c5a3a; } .lg3-go span:last-child { color: #fff; }
.lg3-go:focus-visible { outline-color: #0b4a32; }
.lg3-f input:focus { border-bottom-color: #0b4a32; box-shadow: 0 1px 0 0 #0b4a32; }
@media (max-width: 900px) { .lg3-body h1 { font-size: 34px; } .lg3-form h2 { font-size: 36px; } }

/* ===== Home v3 — same system as every page: white cards, Geist headings, Inter text, brand colours ===== */
.page.home { max-width: 1240px; }
.hm3 { display: flex; flex-direction: column; gap: 16px; }
.hm3-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.hm3-hello { min-width: 0; }
.hm3-punch { flex-direction: row; align-items: center; gap: 16px; padding: 14px 16px; min-width: 300px; }
.hm3-punch b { font-size: 14px; } .hm3-punch .btn { margin-left: auto; }
.hm3-row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.hm3-apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.hm3-app { all: unset; cursor: pointer; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: 12px; text-align: center; }
.hm3-app:hover { background: var(--blue-bg); }
.hm3-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: #0f6a45; }
.hm3-app:nth-child(3n+2) .hm3-ic { background: #0b4a32; } .hm3-app:nth-child(3n) .hm3-ic { background: #201e1d; color: #46d98a; }
.hm3-app b { font: 600 13.5px/1.2 var(--font-h); } .hm3-dv { font: 600 11.5px/1.2 "Noto Sans Devanagari", var(--font); color: var(--t2); margin-top: -3px; }
.hm3-shloka { gap: 10px; border-top: 3px solid #46d98a; }
.hm3-sa { margin: 0; font: 700 20px/1.55 "Noto Sans Devanagari", var(--font); white-space: pre-line; color: #201e1d; }
.hm3-tr { margin: 0; font-size: 13px; font-style: italic; color: var(--t2); }
.hm3-en { margin: 0; font-size: 14.5px; line-height: 1.55; }
.hm3-life { background: var(--blue-bg); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.hm3-life b { font: 600 12px/1 var(--font-h); letter-spacing: .04em; text-transform: uppercase; color: #0b4a32; } .hm3-life p { margin: 0; font-size: 14px; line-height: 1.55; }
.hm3 .mh2-poster { border-radius: 12px; }
@media (max-width: 900px) { .hm3-row2 { grid-template-columns: minmax(0, 1fr); } .hm3-punch { width: 100%; min-width: 0; } .hm3-apps { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 420px) { .hm3-apps { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 821px) { .fl.on-home .shell { grid-template-columns: 240px minmax(0, 1fr); } .fl.on-home .side { display: flex; } .fl.on-home .topbar { display: flex; } .fl.on-home .shell.slim { grid-template-columns: 60px minmax(0, 1fr); } }
/* Home: one colour, one type system */
.hm3 .mh2-poster:not(.img) { background: #fff; color: var(--color-text); box-shadow: none; border: 1px solid var(--line); padding: 22px; }
.hm3 .mh2-poster:not(.img)::after { display: none; }
.hm3 .mh2-pk { background: transparent; color: #0f6a45; padding: 0; letter-spacing: .04em; font-family: var(--font); }
.hm3 .mh2-poster b { font-family: var(--font-h); color: var(--color-text); } .hm3 .mh2-pb { color: var(--t2); opacity: 1; font-family: var(--font); }
.hm3 .mh2-pl { color: #0f6a45; font-family: var(--font); }
.hm3-ic, .hm3-app:nth-child(3n+2) .hm3-ic, .hm3-app:nth-child(3n) .hm3-ic { background: #0f6a45; color: #fff; }
.hm3-tr { font-style: normal; font-family: var(--font); }
.hm3-shloka { border-top: 0; }
.hm3-life b { font-family: var(--font); }

/* ===== Home v4 — as sketched ===== */
.hm4 { display: flex; flex-direction: column; gap: 16px; }
.hm4-banner { position: relative; padding: 0; overflow: hidden; gap: 0; }
.hm4-post { position: absolute; top: 10px; right: 12px; display: flex; gap: 2px; z-index: 2; }
.hm4-empty { padding: 36px 28px; display: flex; flex-direction: column; gap: 6px; } .hm4-empty b { font: 700 22px/1.2 var(--font-h); }
.hm4-wide { display: flex; flex-direction: column; }
.hm4-slide { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 260px; animation: hm4in .4s ease; }
@keyframes hm4in { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
.hm4-sq { aspect-ratio: 1 / 1; width: 100%; background: #e4f4ec; background-size: cover; background-position: center; display: grid; place-items: center; }
.hm4-sq span { font: 700 13px var(--font-h); color: #0f6a45; letter-spacing: .06em; text-transform: uppercase; }
.hm4-txt { padding: 28px 32px; display: flex; flex-direction: column; justify-content: center; gap: 10px; min-width: 0; }
.hm4-kind { font-size: 12px; font-weight: 700; color: #0f6a45; letter-spacing: .05em; text-transform: uppercase; }
.hm4-txt h2 { margin: 0; font: 700 28px/1.2 var(--font-h); letter-spacing: -.02em; } .hm4-txt p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--t2); max-width: 64ch; }
.hm4-txt .btn { align-self: flex-start; }
.hm4-pages { display: flex; align-items: center; gap: 6px; padding: 10px 16px; border-top: 1px solid var(--line); }
.hm4-pages button { all: unset; cursor: pointer; min-width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 12.5px; font-weight: 600; color: var(--t2); }
.hm4-pages button.on { background: #0f6a45; color: #fff; } .hm4-pages button:hover:not(.on) { background: var(--hover); }
.hm4-pages .hm4-nav { margin-left: auto; font-size: 18px; } .hm4-pages .hm4-nav + .hm4-nav { margin-left: 0; }
.hm4-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.hm4-c1 { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.hm4-c1 .hm3-punch { min-width: 0; padding: 12px 14px; }
.hm4-work { gap: 4px; }
.hm4-w { all: unset; cursor: pointer; box-sizing: border-box; display: flex; gap: 12px; align-items: center; padding: 8px 6px; border-radius: 8px; border-bottom: 1px solid var(--line); }
.hm4-w:last-child { border-bottom: 0; } .hm4-w:hover { background: var(--blue-bg); } .hm4-w b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm4-wt { flex-shrink: 0; width: 78px; font-size: 12px; font-weight: 600; color: #0b4a32; } .hm4-wt.late { color: #b3261e; }
.hm4-cols .hm3-apps { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1100px) { .hm4-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .hm4-cols > .hm3-shloka { grid-column: 1 / -1; } }
@media (max-width: 720px) { .hm4-cols { grid-template-columns: minmax(0, 1fr); } .hm4-slide { grid-template-columns: minmax(0, 1fr); } .hm4-sq { aspect-ratio: 1 / 1; } .hm4-txt { padding: 18px; } .hm4-txt h2 { font-size: 22px; } .hm4-cols .hm3-apps { grid-template-columns: repeat(4, 1fr); } }
/* Home v4 polish */
.hm4 { gap: 20px; }
.hm4-hello { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.hm4-hello h1 { margin: 0; font: 700 28px/1.15 var(--font-h); letter-spacing: -.025em; } .hm4-hello p { margin: 4px 0 0; color: var(--t2); font-size: 14px; }
.hm4-chip { font-size: 13px; font-weight: 600; color: #0b4a32; background: var(--blue-bg); padding: 6px 12px; border-radius: 99px; }
.hm4-banner { border-radius: 16px; }
.hm4-slide { grid-template-columns: 280px minmax(0, 1fr); min-height: 280px; }
.hm4-sq { background-color: #0f6a45; }
.hm4-sqi { position: relative; width: 96px; height: 96px; border-radius: 26px; background: #fff; display: block; }
.hm4-sqi b { position: absolute; inset: 0 14px 6px 0; display: grid; place-items: center; font: 700 62px/1 var(--font-h); color: #0f6a45; letter-spacing: -.03em; }
.hm4-sqi i { position: absolute; right: 22px; bottom: 28px; width: 14px; height: 14px; background: #46d98a; }
.hm4-txt { padding: 32px 40px; gap: 12px; }
.hm4-kind { display: flex; gap: 10px; align-items: baseline; } .hm4-kind em { font-style: normal; font-weight: 500; color: var(--t2); text-transform: none; letter-spacing: 0; }
.hm4-txt h2 { font-size: 30px; }
.hm4-wide { position: relative; }
.hm4-prog { position: absolute; left: 0; height: 2px; background: #0f6a45; bottom: 46px; animation: hm4p 6s linear forwards; }
@keyframes hm4p { from { width: 0; } to { width: 100%; } }
.hm4-cols { align-items: stretch; gap: 20px; }
.hm4-cols > .card, .hm4-c1 > .hm4-work { height: 100%; box-sizing: border-box; } .hm4-c1 > .hm4-work { flex: 1; }
.hm3-punch { gap: 14px; }
.hm4-clock { font: 700 22px/1 var(--font-h); letter-spacing: -.02em; padding-right: 14px; border-right: 1px solid var(--line); flex-shrink: 0; }
.hm4-clear { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 24px 0; text-align: center; }
.hm4-clear span:first-child { width: 44px; height: 44px; border-radius: 50%; background: var(--blue-bg); color: #0b4a32; display: grid; place-items: center; font-weight: 700; font-size: 18px; margin-bottom: 4px; }
.hm4-w { position: relative; padding-left: 16px; } .hm4-w::before { content: ""; position: absolute; left: 4px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: #0b4a32; }
.hm4-w:has(.late)::before { background: #b3261e; }
.hm3-ic, .hm3-app:nth-child(3n+2) .hm3-ic, .hm3-app:nth-child(3n) .hm3-ic { background: #e4f4ec; color: #0f6a45; transition: background .15s, color .15s; }
.hm3-app:hover .hm3-ic { background: #0f6a45; color: #fff; } .hm3-app:hover { background: transparent; }
.hm3-app { padding: 14px 6px; }
.hm3-shloka { position: relative; overflow: hidden; }
.hm4-q { position: absolute; right: 16px; top: 2px; font: 700 110px/1 var(--font-h); color: #e4f4ec; pointer-events: none; }
.hm3-shloka > *:not(.hm4-q) { position: relative; }
.hm3-sa { font-size: 18px; line-height: 1.6; }
.hm4-src { font-size: 12.5px; color: var(--t2); font-weight: 600; }
@media (max-width: 720px) { .hm4-slide { grid-template-columns: minmax(0, 1fr); } .hm4-txt { padding: 20px; } .hm4-txt h2 { font-size: 22px; } .hm4-prog { display: none; } .hm4-hello h1 { font-size: 24px; } }

/* ===== Sign in v4: form left, showcase right (bank-style), on brand ===== */
.lg4 { min-height: 100vh; display: grid; grid-template-columns: minmax(380px, 34%) minmax(0, 1fr); grid-template-rows: 1fr auto; background: #f7f7f4; }
.lg4-form { display: flex; align-items: center; padding: 48px 56px; background: #fff; box-shadow: 1px 0 0 var(--line); }
.lg4-form form { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 22px; }
.lg4-form .lg-logo .slogo { width: 38px; height: 38px; } .lg4-form .lg-logo .swm { font-size: 22px; }
.lg4-nm { font: 700 15px/1 "Noto Sans Devanagari", var(--font); color: #0f6a45; }
.lg4-form h1 { margin: 0; font: 700 28px/1.15 var(--font-h); letter-spacing: -.02em; }
.lg4-form .lg3-f > span:first-child { font-size: 13px; letter-spacing: 0; text-transform: none; color: #201e1d; font-weight: 600; }
.lg4-form .lg3-f input::placeholder { color: #b5aca2; }
.lg4-link { margin: -6px 0 0; font-size: 13px; color: var(--t2); } .lg4-link b { color: #0b4a32; font-weight: 600; }
.lg4-go { align-self: flex-start; min-width: 150px; min-height: 46px; justify-content: center; font-size: 15px; border-radius: 10px; }
.lg4-apps { display: flex; flex-direction: column; gap: 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.lg4-apps > div { display: flex; gap: 8px; flex-wrap: wrap; } .lg4-apps > div span { font-size: 12.5px; color: var(--t2); padding: 5px 10px; border-radius: 8px; background: #f2f3ef; display: flex; gap: 6px; align-items: baseline; }
.lg4-apps b { font: 700 13px "Noto Sans Devanagari", var(--font); color: #0b4a32; }
.lg4-show { position: relative; overflow: hidden; color: #fff; display: flex; flex-direction: column; justify-content: center; padding: 56px 72px 72px;
  background: radial-gradient(80% 70% at 100% 0%, rgba(15,106,69,.55), transparent 60%), linear-gradient(160deg, #201e1d 0%, #08341f 55%, #0b4a32 100%); }
.lg4-yantra { position: absolute; right: -120px; bottom: -140px; width: 560px; height: 560px; color: rgba(246,195,67,.18); }
.lg4-slide { position: relative; max-width: 640px; animation: hm4in .5s ease; }
.lg4-s { display: flex; flex-direction: column; gap: 18px; }
.lg4-k { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #46d98a; }
.lg4-s h2 { margin: 0; font: 700 clamp(40px, 4.4vw, 64px)/1.05 var(--font-h); letter-spacing: -.03em; } .lg4-s h2 span { color: #46d98a; }
.lg4-s h3 { margin: 0; font: 700 26px/1.25 var(--font-h); }
.lg4-s p { margin: 0; font-size: 16px; line-height: 1.6; color: rgba(255,255,255,.82); max-width: 54ch; }
.lg4-s blockquote { margin: 0; font: 700 46px/1.3 "Noto Sans Devanagari", var(--font); }
.lg4-s .lg4-tr { font-style: italic; font-size: 15px; color: rgba(255,255,255,.7); margin-top: -10px; }
.lg4-fam { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.lg4-fam span { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); }
.lg4-fam b { font: 700 18px/1.3 "Noto Sans Devanagari", var(--font); } .lg4-fam em { font-style: normal; font-weight: 600; font-size: 14px; color: #46d98a; } .lg4-fam small { font-size: 12px; color: rgba(255,255,255,.7); }
.lg4-dots { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; gap: 10px; }
.lg4-dots button { all: unset; cursor: pointer; width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.45); transition: width .2s; }
.lg4-dots button.on { width: 26px; border-radius: 5px; background: #46d98a; }
.lg4-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 28px; background: #0b4a32; color: rgba(255,255,255,.9); font-size: 12.5px; }
@media (max-width: 900px) { .lg4 { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; } .lg4-form { padding: 32px 24px; box-shadow: none; } .lg4-show { padding: 36px 24px 56px; min-height: 360px; }
  .lg4-s h2 { font-size: 34px; } .lg4-s blockquote { font-size: 30px; } .lg4-yantra { width: 360px; height: 360px; } .lg4-foot { padding: 12px 20px; } }
/* Sign in: showcase on the left, form on the right */
@media (min-width: 901px) {
  .lg4 { grid-template-columns: minmax(0, 1fr) minmax(380px, 34%); }
  .lg4-show { grid-column: 1; grid-row: 1; }
  .lg4-form { grid-column: 2; grid-row: 1; box-shadow: -1px 0 0 var(--line); }
}

/* ===== Welcome ===== */
.page.home { max-width: 1280px; }
.wl { display: flex; flex-direction: column; gap: 20px; }
.wl-hero { position: relative; overflow: hidden; isolation: isolate; border-radius: 20px; color: #fff; padding: 40px 44px; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "hi ring" "pulse pulse"; gap: 28px 32px; align-items: center;
  background: radial-gradient(70% 90% at 100% 0%, rgba(15,106,69,.6), transparent 60%), radial-gradient(50% 70% at 0% 100%, rgba(246,195,67,.12), transparent 70%), linear-gradient(150deg, #201e1d 0%, #08341f 55%, #0b4a32 100%);
  box-shadow: 0 24px 50px -28px rgba(11,74,50,.75); }
.wl-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255,255,255,.1) 1px, transparent 1.3px); background-size: 24px 24px; mask-image: linear-gradient(90deg, #000, transparent 70%); }
.wl-yantra { position: absolute; right: -90px; top: -110px; width: 460px; height: 460px; color: rgba(246,195,67,.16); z-index: -1; animation: wlspin 240s linear infinite; }
@keyframes wlspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .wl-yantra { animation: none; } }
.wl-hi { grid-area: hi; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.wl-k { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #46d98a; } .wl-k span { font-family: "Noto Sans Devanagari", var(--font); text-transform: none; letter-spacing: 0; font-size: 15px; }
.wl-hi h1 { margin: 0; font: 700 clamp(32px, 3.6vw, 48px)/1.08 var(--font-h); letter-spacing: -.03em; } .wl-hi h1 span { color: #46d98a; }
.wl-mantra { margin: 0; display: flex; flex-direction: column; gap: 4px; padding-left: 14px; border-left: 3px solid #0f6a45; max-width: 60ch; }
.wl-mantra b { font: 700 19px/1.4 "Noto Sans Devanagari", var(--font); } .wl-mantra span { font-size: 14px; color: rgba(255,255,255,.78); }
.wl-acts { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.wl-go { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 12px; padding: 14px 22px; border-radius: 12px; background: #0f6a45; color: #fff; font: 600 15px var(--font-h); box-shadow: 0 10px 24px -10px rgba(15,106,69,.9); transition: transform .15s, background .15s; }
.wl-go:hover:not(:disabled) { background: #0c5a3a; transform: translateY(-1px); } .wl-go span { transition: transform .15s; } .wl-go:hover span { transform: translateX(4px); } .wl-go:disabled { opacity: .6; }
.wl-in { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: rgba(255,255,255,.85); } .wl-in i { width: 8px; height: 8px; border-radius: 50%; background: #5fd38a; box-shadow: 0 0 0 4px rgba(95,211,138,.25); }
.wl-ring { grid-area: ring; position: relative; width: 168px; height: 168px; }
.wl-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); } .wl-ring circle { fill: none; stroke-width: 10; stroke-linecap: round; } .wl-ring .t { stroke: rgba(255,255,255,.14); } .wl-ring .v { stroke: #46d98a; transition: stroke-dasharray .8s ease; }
.wl-ring > span { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; } .wl-ring b { font: 700 34px/1 var(--font-h); } .wl-ring small { font-size: 12px; color: rgba(255,255,255,.75); margin-top: 4px; }
.wl-pulse { grid-area: pulse; display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); }
.wl-live { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.75); margin-right: 8px; }
.wl-live i { width: 8px; height: 8px; border-radius: 50%; background: #0f6a45; animation: wlbeat 1.6s ease-in-out infinite; }
@keyframes wlbeat { 50% { box-shadow: 0 0 0 6px rgba(15,106,69,.25); } }
.wl-pulse > div { display: flex; align-items: baseline; gap: 6px; padding: 8px 14px; border-radius: 10px; background: rgba(255,255,255,.07); } .wl-pulse b { font: 700 20px/1 var(--font-h); } .wl-pulse small { font-size: 12.5px; color: rgba(255,255,255,.72); }
.wl-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, .9fr); gap: 20px; align-items: stretch; }
.wl-row > .card { height: 100%; box-sizing: border-box; }
.wl-top { all: unset; cursor: pointer; box-sizing: border-box; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 12px; background: var(--blue-bg); margin-bottom: 6px; }
.wl-top:hover { box-shadow: 0 0 0 1px #0b4a32; } .wl-top b { font: 700 18px/1.25 var(--font-h); }
.wl-tt { font-size: 12px; font-weight: 700; color: #0b4a32; letter-spacing: .03em; text-transform: uppercase; } .wl-tt.late { color: #b3261e; }
.wl-fbody { display: flex; align-items: center; gap: 18px; flex: 1; }
.wl-fring { position: relative; width: 128px; height: 128px; flex-shrink: 0; } .wl-fring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.wl-fring circle { fill: none; stroke-width: 9; stroke-linecap: round; } .wl-fring .t { stroke: #e9f5ef; } .wl-fring .v { stroke: #0b4a32; transition: stroke-dasharray 1s linear; }
.wl-fring b { position: absolute; inset: 0; display: grid; place-items: center; font: 700 26px/1 var(--font-h); letter-spacing: -.02em; }
.wl-att { gap: 12px; } .wl-clock { display: flex; flex-direction: column; gap: 4px; } .wl-clock b { font: 700 32px/1 var(--font-h); letter-spacing: -.02em; }
.wl-dock { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; background: #fff; border-radius: 18px; box-shadow: var(--sh-card); padding: 12px; }
.wl-app { all: unset; cursor: pointer; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 104px; padding: 10px 4px; border-radius: 12px; text-align: center; transition: transform .15s; }
.wl-app:hover { transform: translateY(-3px); } .wl-app:hover .hm3-ic { background: #0f6a45; color: #fff; }
.wl-app b { font: 600 13px/1.2 var(--font-h); } .wl-app small { font: 600 11px/1.2 "Noto Sans Devanagari", var(--font); color: var(--t2); }
@media (max-width: 1100px) { .wl-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .wl-row > .wl-next { grid-column: 1 / -1; } }
@media (max-width: 720px) { .wl-hero { padding: 26px 22px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "hi" "ring" "pulse"; } .wl-ring { width: 130px; height: 130px; } .wl-ring b { font-size: 26px; }
  .wl-row { grid-template-columns: minmax(0, 1fr); } .wl-go { width: 100%; box-sizing: border-box; justify-content: space-between; } .wl-app { width: 84px; } .wl-yantra { width: 300px; height: 300px; } }
.wl .mh2-poster:not(.img) { background: #fff; color: var(--color-text); box-shadow: none; border: 1px solid var(--line); }
.wl .mh2-poster:not(.img)::after { display: none; }
.wl .mh2-pk { background: transparent; color: #0f6a45; padding: 0; letter-spacing: .04em; }
.wl .mh2-poster b { color: var(--color-text); } .wl .mh2-pb { color: var(--t2); opacity: 1; } .wl .mh2-pl { color: #0f6a45; }

/* Sign in · phones: brand band on top, form as a sheet over it */
.lg4-mlogo { display: none; }
@media (max-width: 900px) {
  .lg4 { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; min-height: 100dvh; background: #fff; }
  .lg4-show { grid-row: 1; grid-column: 1; min-height: 0; padding: 28px 24px 56px; justify-content: flex-start; gap: 22px; }
  .lg4-mlogo { display: flex; position: relative; } .lg4-mlogo .slogo { width: 34px; height: 34px; } .lg4-mlogo .swm { font-size: 20px; }
  .lg4-slide { animation: none; }
  .lg4-s { gap: 10px; } .lg4-s h2 { font-size: 30px; } .lg4-s h3 { font-size: 18px; } .lg4-s blockquote { font-size: 26px; }
  .lg4-s p, .lg4-fam, .lg4-s .lg4-tr { display: none; } .lg4-k { font-size: 11.5px; }
  .lg4-dots { bottom: 30px; left: 24px; transform: none; }
  .lg4-yantra { width: 300px; height: 300px; right: -110px; bottom: auto; top: -70px; }
  .lg4-form { grid-row: 2; grid-column: 1; position: relative; z-index: 1; margin-top: -28px; border-radius: 22px 22px 0 0; padding: 28px 24px 32px; align-items: flex-start; box-shadow: 0 -10px 30px -18px rgba(32,30,29,.35); }
  .lg4-form form { max-width: none; gap: 18px; }
  .lg4-form .lg-logo { display: none; }
  .lg4-form h1 { font-size: 24px; }
  .lg4-go { align-self: stretch; width: 100%; min-height: 50px; }
  .lg4-apps { padding-top: 14px; }
  .lg4-foot { grid-row: 3; flex-direction: column; gap: 2px; padding: 12px 24px; font-size: 11.5px; text-align: center; align-items: center; }
}
@media (max-width: 900px) { .lg4-show { padding-bottom: 64px; } .lg4-dots { bottom: 40px; } }

/* ========== Samagra theme (neutral SaaS look, 28 Nov 2026) ==========
   Deep green + mint on a calm off-white; white cards with soft borders; small uppercase labels; icon chips.
   Fonts unchanged (Geist headings, Inter text). Tenant themes (e.g. a customer's own colours) override these tokens in M5. */
:root {
  --sg-900: #062818; --sg-800: #083d28; --sg-700: #0a4c31; --sg-600: #0f6a45; --sg-500: #17845a; --sg-300: #46d98a; --sg-100: #e4f4ec; --sg-50: #f1f9f4;
  --color-accent: var(--sg-600); --color-accent-100: var(--sg-100); --color-accent-600: #0c5a3a; --color-accent-700: var(--sg-700); --color-accent-800: var(--sg-800); --color-accent-900: var(--sg-900);
  --blue: var(--sg-700); --blue-t: var(--sg-700); --blue-bg: #e9f5ef; --yellow: var(--sg-300);
  --color-bg: #f7f7f4; --line: #e8e9e4; --t2: #5f655f;
  --sh-card: 0 1px 2px rgba(16,24,20,.05), 0 0 0 1px rgba(16,24,20,.06);
}
.card { border-radius: 16px; }
.btn-primary { background: var(--sg-600); border-radius: 10px; } .btn-primary:hover { background: var(--sg-700); }
.btn-secondary { border-radius: 10px; }
.shellbar .sblogo, .side .sblogo { background: var(--sg-700); }

/* Home (wx) */
.wx { display: flex; flex-direction: column; gap: 18px; max-width: 1240px; margin: 0 auto; width: 100%; }
.wx-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 6px 2px 2px; }
.wx-head h1 { font: 600 clamp(26px, 3.4vw, 40px)/1.1 var(--font-h); letter-spacing: -.02em; margin: 0; color: #141a16; }
.wx-head p { margin: 6px 0 0; color: var(--t2); font-size: 14px; }
.wx-cta { height: 44px; padding: 0 18px; font-size: 14px; gap: 10px; display: inline-flex; align-items: center; }
.wx-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.wx-kpi { all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 6px; background: #fff; border-radius: 16px; box-shadow: var(--sh-card); padding: 18px 18px 16px; min-height: 140px; }
button.wx-kpi { cursor: pointer; transition: box-shadow .15s, transform .15s; } button.wx-kpi:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(16,24,20,.08), 0 0 0 1px rgba(16,24,20,.06); }
.wx-lb { display: flex; align-items: center; gap: 10px; font: 600 11.5px/1.2 var(--font); letter-spacing: .08em; text-transform: uppercase; color: #59605a; }
.wx-n { font: 600 40px/1.05 var(--font-h); letter-spacing: -.02em; color: #141a16; margin-top: 6px; }
.wx-sub { font-size: 13px; color: var(--t2); display: flex; align-items: center; gap: 6px; }
.wx-dot { width: 7px; height: 7px; border-radius: 50%; background: #d1432b; display: inline-block; }
.wx-kpi.dark { background: radial-gradient(120% 140% at 100% 0%, #10593b 0%, var(--sg-800) 55%, var(--sg-900) 100%); box-shadow: none; color: #fff; }
.wx-kpi.dark .wx-lb { color: rgba(255,255,255,.72); } .wx-kpi.dark .wx-n { color: #fff; } .wx-kpi.dark .wx-sub { color: rgba(255,255,255,.78); }
.wx-bar { margin-top: auto; height: 6px; border-radius: 6px; background: rgba(255,255,255,.14); overflow: hidden; } .wx-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #2fbf74, var(--sg-300)); }
.wx-ic { width: 32px; height: 32px; border-radius: 9px; display: inline-grid; place-items: center; flex: none; background: #edf0ff; color: #3d4fc4; font-size: 15px; }
.wx-ic.mint { background: var(--sg-100); color: var(--sg-600); } .wx-ic.solid { width: 42px; height: 42px; border-radius: 11px; background: var(--sg-700); color: #fff; font-size: 20px; }
.wx-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr); gap: 18px; align-items: start; }
.wx-main, .wx-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.wx-focus h2 { display: flex; align-items: center; gap: 10px; } .wx-focus h2 .mut { margin-left: auto; }
.wx-row { display: flex; align-items: center; gap: 14px; justify-content: space-between; padding: 14px 16px; border-radius: 12px; border: 1px solid; margin-top: 10px; }
.wx-row b { font-weight: 600; font-size: 14.5px; } .wx-when { font-weight: 400; color: #4a514b; }
.wx-row.rose { background: #fdf0ec; border-color: #f6d3c9; } .wx-row.amber { background: #fdf6e3; border-color: #f2e0ad; }
.wx-row.mint { background: var(--sg-50); border-color: #cfe9da; } .wx-row.violet { background: #f4f2fd; border-color: #ddd8f5; }
.wx-row .btn { background: #fff; flex: none; }
.wx-att { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 16px; background: linear-gradient(120deg, #e6f7ee, #d4f3e3); border: 1px solid #bfe8d2; }
.wx-att b { font: 600 15.5px/1.25 var(--font-h); color: var(--sg-800); } .wx-att .s12 { color: #3f5b4b; }
.wx-thought b { display: block; font: 600 17px/1.5 "Noto Sans Devanagari", var(--font); color: #141a16; margin: 8px 0 4px; } .wx-thought p { margin: 0; color: var(--t2); }
.wl-app:hover .hm3-ic { background: var(--sg-600); }
@media (max-width: 1000px) { .wx-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .wx-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .wx-kpi { min-height: 0; padding: 14px; } .wx-n { font-size: 30px; } .wx-cta { width: 100%; justify-content: space-between; }
  .wx-row { flex-direction: column; align-items: stretch; } .wx-row .btn { align-self: flex-start; } }
:root { --color-neutral-700: #5f655f; }
.side nav button.on { box-shadow: inset 3px 0 0 var(--sg-600); }

/* ---- Samagra theme, app-wide pass: the reference look on every app's shared components ---- */
.page { gap: 18px; }
.h1 { font: 600 30px/1.15 var(--font-h); letter-spacing: -.02em; color: #141a16; }
.sub { font-size: 14px; color: var(--t2); margin-top: 6px; }
.card { border-radius: 16px; box-shadow: var(--sh-card); }
.card h2 { font: 600 16px/1.3 var(--font-h); letter-spacing: -.005em; }
/* Shell */
.shellbar { background: #fff; box-shadow: 0 1px 0 var(--line); }
.sb-search { background: #fff; border: 1px solid #e1e3de; border-radius: 10px; box-shadow: 0 1px 2px rgba(16,24,20,.04); }
.sb-search:focus-within { border-color: var(--sg-500); box-shadow: 0 0 0 3px rgba(15,106,69,.12); }
.topbar { background: var(--color-bg); box-shadow: none; border-bottom: 1px solid var(--line); }
.topbar .ttl { font: 600 17px/1.2 var(--font-h); }
.side { background: #fff; }
.side nav button { border-radius: 10px; }
.side nav button.on { background: var(--sg-100); color: var(--sg-800); box-shadow: none; font-weight: 600; }
.side nav button:hover:not(.on) { background: #f2f4f0; }
/* Stat cards: label on top (small uppercase), big number below */
.stats { gap: 14px; }
.stat { background: #fff; border: 0; border-radius: 16px; box-shadow: var(--sh-card); padding: 16px 18px; text-align: left; flex-direction: column-reverse; justify-content: flex-end; gap: 8px; min-height: 96px; }
.stat > span, .stat .s12 { font: 600 11px/1.3 var(--font); letter-spacing: .08em; text-transform: uppercase; color: #59605a; }
.stat b, .stats b { font: 600 30px/1.05 var(--font-h); letter-spacing: -.02em; color: #141a16; }
.stat.click:hover { box-shadow: 0 6px 18px rgba(16,24,20,.08), 0 0 0 1px rgba(15,106,69,.25); }
.stat.hot b { color: #b3261e; }
.cd-kpi { border-radius: 16px; padding: 16px 18px 14px; gap: 6px; }
.cd-kl { font: 600 11px/1.3 var(--font); letter-spacing: .08em; text-transform: uppercase; color: #59605a; }
.cd-kv { font: 600 32px/1.05 var(--font-h); color: #141a16; }
.cd-kpi.click:hover { box-shadow: 0 6px 18px rgba(16,24,20,.08), 0 0 0 1px rgba(15,106,69,.25); }
/* Chips, tabs, tags: pills */
.chip { border-radius: 999px; }
.chip.on, .chip[aria-pressed="true"] { background: var(--sg-700); border-color: var(--sg-700); color: #fff; }
.tab.on, .tab.red.on { border-color: var(--sg-700); color: var(--sg-800); }
.tag { border-radius: 999px; font-weight: 600; letter-spacing: .02em; }
.btn-secondary { background: #fff; }
.input, select.input { border-radius: 10px; border-color: #dcdfd8; }
.input:hover, .input:focus-visible { border-color: var(--sg-500); } .input:focus-visible { box-shadow: 0 0 0 3px rgba(15,106,69,.12); }
/* Tables and lists */
.tbl th { font: 600 11px/1.3 var(--font); letter-spacing: .07em; text-transform: uppercase; color: #6a706a; }
.tbl tbody tr:hover td, .g.click:hover, .split-list button:hover { background: var(--sg-50); }
.note { border-radius: 12px; }
.kpis > div { background: #fff; border: 0; border-radius: 16px; box-shadow: var(--sh-card); padding: 16px 18px; }
.kpis > div > span { font: 600 11px/1.3 var(--font); letter-spacing: .08em; text-transform: uppercase; color: #59605a; }
.kpis > div > b { font: 600 30px/1.1 var(--font-h); letter-spacing: -.02em; color: #141a16; }

/* ---------- Org explorer (web/org.js) ---------- */
.ox .head { align-items: flex-start; }
.ox-find { position: relative; width: min(340px, 100%); }
.ox-find .input { width: 100%; }
.ox-hits { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 20; background: #fff; border-radius: 12px; box-shadow: 0 12px 32px rgba(16,24,20,.14), 0 0 0 1px rgba(16,24,20,.06); padding: 6px; }
.ox-hits button { all: unset; box-sizing: border-box; display: flex; gap: 10px; align-items: center; width: 100%; padding: 8px; border-radius: 8px; cursor: pointer; }
.ox-hits button:hover { background: var(--sg-50); } .ox-hits small { display: block; color: var(--t2); font-size: 12px; }
.ox-kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.ox-k.on b { color: var(--sg-600); } .ox-k.leave b { color: #b7791f; }
.ox-chart { padding: 0; overflow: hidden; }
.ox-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.ox-scroll { overflow: auto; padding: 24px 16px 28px; background: radial-gradient(circle at 1px 1px, #e4e7e1 1px, transparent 1.2px) 0 0 / 18px 18px; max-height: 72vh; }
.ox-tree, .ox-tree ul { display: flex; justify-content: center; margin: 0; padding: 22px 0 0; position: relative; }
.ox-tree { padding-top: 0; min-width: max-content; margin: 0 auto; }
.ox-tree li { list-style: none; position: relative; padding: 22px 7px 0; display: flex; flex-direction: column; align-items: center; }
.ox-tree li::before, .ox-tree li::after { content: ''; position: absolute; top: 0; right: 50%; width: 50%; height: 22px; border-top: 1.5px solid #c9cec6; }
.ox-tree li::after { right: auto; left: 50%; border-left: 1.5px solid #c9cec6; }
.ox-tree li:only-child::before, .ox-tree li:only-child::after { display: none; } .ox-tree li:only-child { padding-top: 0; }
.ox-tree li:first-child::before, .ox-tree li:last-child::after { border: 0; }
.ox-tree li:last-child::before { border-right: 1.5px solid #c9cec6; border-radius: 0 10px 0 0; } .ox-tree li:first-child::after { border-radius: 10px 0 0 0; }
.ox-tree ul::before { content: ''; position: absolute; top: 0; left: 50%; height: 22px; border-left: 1.5px solid #c9cec6; }
.ox-tree > li { padding-top: 0; } .ox-tree > li::before, .ox-tree > li::after { display: none; }
.ox-node { display: flex; flex-direction: column; align-items: center; }
.ox-card { all: unset; box-sizing: border-box; cursor: pointer; width: 214px; background: #fff; border-radius: 14px; padding: 12px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 10px; align-items: center; text-align: left;
  box-shadow: 0 1px 2px rgba(16,24,20,.06), 0 0 0 1px rgba(16,24,20,.08); transition: box-shadow .15s, transform .15s; }
.ox-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(16,24,20,.10), 0 0 0 1px rgba(15,106,69,.3); }
.ox-card:focus-visible { outline: 2px solid var(--sg-600); outline-offset: 2px; }
.ox-node.me .ox-card { box-shadow: 0 0 0 2px var(--sg-600); } .ox-node.sel .ox-card { box-shadow: 0 0 0 2px var(--sg-700), 0 8px 20px rgba(16,24,20,.12); }
.ox-node.hit .ox-card { background: #fffbea; box-shadow: 0 0 0 2px #e0b43c; }
.ox-who { min-width: 0; display: flex; flex-direction: column; } .ox-who b { font: 600 14px/1.25 var(--font-h); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ox-who b small { font: 600 10px var(--font); color: var(--sg-600); background: var(--sg-100); padding: 1px 6px; border-radius: 99px; vertical-align: 2px; }
.ox-who > span { font-size: 12px; color: var(--t2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ox-meta { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 6px; font-size: 11.5px; color: #59605a; border-top: 1px solid #eef0ec; padding-top: 8px; }
.ox-st { font-size: 11.5px; font-weight: 600; color: #6a706a; } .ox-st.on { color: var(--sg-600); } .ox-st.in { color: #2a6fdb; } .ox-st.leave { color: #b7791f; }
.ox-tog { all: unset; cursor: pointer; margin-top: -9px; z-index: 1; font: 600 11px/1 var(--font); color: var(--sg-700); background: #fff; border: 1px solid #cfe9da; border-radius: 99px; padding: 4px 9px; }
.ox-tog:hover { background: var(--sg-100); }
.ox-av { position: relative; width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; background: var(--sg-100); color: var(--sg-800); font: 600 13px var(--font-h); }
.ox-av.big { width: 60px; height: 60px; font-size: 20px; }
.ox-dot { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid #fff; background: #c5c9c1; }
.ox-av.big .ox-dot { width: 15px; height: 15px; } .ox-dot.on { background: #22b462; } .ox-dot.in { background: #2a6fdb; } .ox-dot.leave { background: #e0a32e; }
/* Person panel */
.ox-shade { position: fixed; inset: 0; z-index: 60; background: rgba(12,20,16,.28); display: flex; justify-content: flex-end; animation: oxf .15s ease; }
.ox-panel { position: relative; width: min(560px, 100%); height: 100%; overflow-y: auto; background: var(--color-bg); padding: 22px 22px 40px; box-shadow: -12px 0 40px rgba(12,20,16,.18); animation: oxs .2s ease; display: flex; flex-direction: column; gap: 14px; }
@keyframes oxs { from { transform: translateX(30px); opacity: .4; } } @keyframes oxf { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ox-shade, .ox-panel { animation: none; } }
.ox-x { all: unset; cursor: pointer; position: absolute; top: 12px; right: 14px; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 22px; color: #59605a; } .ox-x:hover { background: #eceee9; }
.ox-ph { display: flex; gap: 14px; align-items: center; padding-right: 36px; } .ox-ph h2 { font: 600 22px/1.2 var(--font-h); margin: 0; } .ox-ph p { margin: 2px 0 4px; font-size: 13px; color: var(--t2); }
.ox-acts { display: flex; gap: 8px; flex-wrap: wrap; } .ox-acts .btn { text-decoration: none; }
.ox-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; background: var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--sh-card); }
.ox-facts div { background: #fff; padding: 10px 12px; min-width: 0; } .ox-facts dt { font: 600 10.5px/1.3 var(--font); letter-spacing: .07em; text-transform: uppercase; color: #6a706a; }
.ox-facts dd { margin: 3px 0 0; font-size: 13.5px; overflow-wrap: anywhere; }
.ox-link { all: unset; cursor: pointer; color: var(--sg-700); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.ox-range { display: flex; gap: 6px; }
.ox-h { font: 600 12px/1.3 var(--font); letter-spacing: .07em; text-transform: uppercase; color: #59605a; margin: 6px 0 -4px; }
.ox-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; } .ox-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ox-m { background: #fff; border-radius: 12px; box-shadow: var(--sh-card); padding: 10px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ox-m span { font-size: 11.5px; color: var(--t2); line-height: 1.25; } .ox-m b { font: 600 20px/1.1 var(--font-h); color: #141a16; } .ox-m.bad b { color: #b3261e; }
.ox-trend { margin: 0; background: #fff; border-radius: 12px; box-shadow: var(--sh-card); padding: 12px 12px 8px; }
.ox-trend svg { width: 100%; height: auto; display: block; } .ox-trend rect.b { fill: #cfe9da; } .ox-trend rect.c { fill: var(--sg-600); } .ox-trend rect:hover { opacity: .8; }
.ox-trend text { font: 10px var(--font); fill: #6a706a; }
.ox-trend figcaption { display: flex; gap: 12px; align-items: center; font-size: 12px; color: var(--t2); margin-top: 4px; }
.ox-trend figcaption i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: -6px; } .ox-trend figcaption i.b { background: #cfe9da; } .ox-trend figcaption i.c { background: var(--sg-600); }
.ox-reps { background: #fff; border-radius: 12px; box-shadow: var(--sh-card); overflow: hidden; }
.ox-rh, .ox-rr { display: grid; grid-template-columns: minmax(0, 2.4fr) repeat(4, minmax(0, 1fr)); gap: 8px; align-items: center; padding: 9px 12px; }
.ox-rh { font: 600 10.5px/1.3 var(--font); letter-spacing: .07em; text-transform: uppercase; color: #6a706a; border-bottom: 1px solid var(--line); }
.ox-rr { all: unset; box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 2.4fr) repeat(4, minmax(0, 1fr)); gap: 8px; align-items: center; padding: 9px 12px; width: 100%; cursor: pointer; font-size: 13.5px; border-top: 1px solid #f0f1ee; }
.ox-rr:hover { background: var(--sg-50); } .ox-rr .warn { color: #b3261e; font-weight: 600; }
.ox-rn { display: flex; gap: 8px; align-items: center; min-width: 0; } .ox-rn .ox-av { width: 30px; height: 30px; font-size: 11px; } .ox-rn b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ox-rn small { color: var(--t2); font-size: 11.5px; }
.ox-feed { list-style: none; margin: 0; padding: 4px 12px; background: #fff; border-radius: 12px; box-shadow: var(--sh-card); }
.ox-feed li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid #f0f1ee; font-size: 13.5px; } .ox-feed li:last-child { border: 0; }
.ox-feed time { font-size: 12px; color: var(--t2); white-space: nowrap; }
.ox-ai { width: 8px; height: 8px; border-radius: 50%; background: #c5c9c1; display: inline-block; } .ox-ai.call { background: var(--sg-600); } .ox-ai.lead { background: #8e5bd0; } .ox-ai.task { background: #2a6fdb; } .ox-ai.punch { background: #e0a32e; }
@media (max-width: 1000px) { .ox-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Phones: the chart becomes an indented tree */
@media (max-width: 760px) {
  .ox-scroll { padding: 10px; max-height: none; background: none; }
  .ox-tree, .ox-tree ul { display: block; padding: 0; min-width: 0; }
  .ox-tree ul { margin-left: 16px; padding-left: 10px; border-left: 1.5px solid #dfe2dc; }
  .ox-tree li { display: block; padding: 6px 0 0; } .ox-tree li::before, .ox-tree li::after, .ox-tree ul::before { display: none; }
  .ox-node { flex-direction: row; align-items: center; gap: 6px; } .ox-card { width: auto; flex: 1; min-width: 0; padding: 10px; }
  .ox-tog { margin: 0; padding: 8px 10px; }
  .ox-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ox-facts { grid-template-columns: 1fr; }
  .ox-panel { padding: 18px 14px 40px; } .ox-rh, .ox-rr { grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); } .ox-rh span:last-child, .ox-rr > span:last-child { display: none; }
}
.ox-panel > * { flex-shrink: 0; }
.ox-trend text { font-size: 7px; }
.ox-facts div:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* Org explorer · views and hierarchy (29 Nov 2026) */
.ox-bar { gap: 12px; }
.ox-note { flex: 1; text-align: right; min-width: 200px; }
.ox-seg { display: inline-flex; background: #eef0eb; border-radius: 11px; padding: 3px; gap: 2px; }
.ox-seg button { all: unset; cursor: pointer; padding: 7px 16px; border-radius: 9px; font: 600 13px var(--font); color: #59605a; }
.ox-seg button.on { background: #fff; color: var(--sg-800); box-shadow: 0 1px 3px rgba(16,24,20,.12); } .ox-seg button:focus-visible { outline: 2px solid var(--sg-600); }
.ox-tools { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ox-zoom { display: inline-flex; align-items: center; gap: 2px; background: #fff; border: 1px solid #e1e3de; border-radius: 10px; padding: 2px; }
.ox-zoom button { all: unset; cursor: pointer; min-width: 30px; height: 28px; display: grid; place-items: center; border-radius: 8px; font: 600 15px var(--font); color: #3f463f; }
.ox-zoom button:hover { background: var(--sg-50); } .ox-zoom .fit { font-size: 12.5px; padding: 0 10px; } .ox-zoom > span { font: 600 12px var(--font); color: var(--t2); min-width: 40px; text-align: center; }
/* Connectors: stronger */
.ox-tree li::before, .ox-tree li::after { border-top-width: 2px; border-color: #b9c4bc; } .ox-tree li::after { border-left-width: 2px; }
.ox-tree li:last-child::before { border-right-width: 2px; } .ox-tree ul::before { border-left-width: 2px; border-color: #b9c4bc; }
/* Levels */
.ox-card.lead { width: 248px; background: radial-gradient(130% 140% at 100% 0%, #10593b 0%, var(--sg-800) 55%, var(--sg-900) 100%); box-shadow: 0 10px 24px rgba(6,40,24,.25); padding: 14px; }
.ox-card.lead .ox-who b { color: #fff; font-size: 15.5px; } .ox-card.lead .ox-who > span { color: rgba(255,255,255,.75); }
.ox-card.lead .ox-meta { border-color: rgba(255,255,255,.14); color: rgba(255,255,255,.8); } .ox-card.lead .ox-st { color: #8ff0bd; } .ox-card.lead .ox-num b { color: #fff; }
.ox-card.lead .ox-team { background: rgba(255,255,255,.1); color: #fff; } .ox-card.lead .ox-dot { border-color: var(--sg-800); }
.ox-card.mgr { width: 226px; border-top: 4px solid var(--sg-600); }
.ox-card.mem { width: 196px; padding: 10px; gap: 6px 9px; } .ox-card.mem .ox-av { width: 32px; height: 32px; font-size: 12px; } .ox-card.mem .ox-who b { font-size: 13.5px; }
.ox-num b { color: #141a16; font-weight: 600; }
.ox-team { grid-column: 1 / -1; display: flex; justify-content: space-between; font: 600 11px/1 var(--font); color: var(--sg-800); background: var(--sg-50); border-radius: 8px; padding: 6px 8px; }
.ox-node.me .ox-card.lead { box-shadow: 0 0 0 3px #8ff0bd, 0 10px 24px rgba(6,40,24,.25); }
/* Stacked members under a manager */
.ox-tree ul.ox-stack { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 22px; }
.ox-tree ul.ox-stack > li { padding: 0; } .ox-tree ul.ox-stack > li::before, .ox-tree ul.ox-stack > li::after { display: none; }
.ox-tree ul.ox-stack::before { height: calc(100% - 20px); }
.ox-tree ul.ox-stack > li > .ox-node { position: relative; z-index: 1; }
/* Avatar colours */
.ox-av.mint { background: #dff3e8; color: #0b4a32; } .ox-av.blue { background: #e1ecfb; color: #1f4f9c; } .ox-av.violet { background: #ece4f8; color: #5b3a94; }
.ox-av.amber { background: #fbefd5; color: #8a5a00; } .ox-av.coral { background: #fbe4dd; color: #9b3a1f; } .ox-av.teal { background: #dcf1f3; color: #16616b; }
/* Teams view */
.ox-teams { display: grid; grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)); gap: 16px; padding: 16px; background: #f7f8f5; }
.ox-tm { background: #fff; border-radius: 16px; box-shadow: var(--sh-card); padding: 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ox-tm.d0 { border-top: 5px solid var(--sg-800); } .ox-tm.d1 { border-top: 5px solid var(--sg-500); } .ox-tm.d2 { border-top: 5px solid var(--sg-300); }
.ox-tm header { display: flex; flex-direction: column; gap: 10px; }
.ox-tmh { all: unset; cursor: pointer; display: flex; gap: 12px; align-items: center; } .ox-tmh .ox-who b { font: 600 17px/1.2 var(--font-h); } .ox-tmh:hover .ox-who b { color: var(--sg-700); }
.ox-tmk { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.ox-tmk span { background: #f5f7f3; border-radius: 10px; padding: 8px; font-size: 11px; color: var(--t2); display: flex; flex-direction: column; gap: 2px; }
.ox-tmk b { font: 600 18px/1.1 var(--font-h); color: #141a16; }
.ox-path { margin: -4px 0 0; font-size: 12px; color: var(--t2); display: flex; gap: 4px; flex-wrap: wrap; align-items: center; } .ox-path .ox-link { font-weight: 500; }
.ox-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.ox-tile { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 9px; align-items: center; padding: 10px; border-radius: 12px; border: 1px solid #e8eae5; }
.ox-tile:hover { border-color: var(--sg-500); background: var(--sg-50); } .ox-tile .ox-st, .ox-tile .ox-num, .ox-tile .ox-pill { grid-column: 2; font-size: 11.5px; }
.ox-tile.hit { background: #fffbea; border-color: #e0b43c; } .ox-tile.me { border-color: var(--sg-600); }
.ox-pill { justify-self: start; background: var(--sg-100); color: var(--sg-800); border-radius: 99px; padding: 2px 8px; font-weight: 600; }
/* List view */
.ox-list { overflow-x: auto; }
.ox-lr { all: unset; box-sizing: border-box; display: grid; grid-template-columns: minmax(200px, 2.2fr) 70px minmax(120px, 1.2fr) 70px minmax(130px, 1.2fr) 90px 80px 80px; gap: 10px; align-items: center; padding: 10px 16px; width: 100%; min-width: 900px; border-bottom: 1px solid #f0f1ee; font-size: 13.5px; cursor: pointer; }
.ox-lr:hover { background: var(--sg-50); } .ox-lr.hit { background: #fffbea; } .ox-lr.me { box-shadow: inset 3px 0 0 var(--sg-600); }
.ox-lh { cursor: default; background: #fafbf9; } .ox-lh:hover { background: #fafbf9; }
.ox-th { all: unset; cursor: pointer; font: 600 10.5px/1.3 var(--font); letter-spacing: .07em; text-transform: uppercase; color: #6a706a; } .ox-th.on { color: var(--sg-700); }
.ox-lr .warn { color: #b3261e; font-weight: 600; }
.ox-lv { display: inline-block; font: 600 11px/1 var(--font); padding: 4px 8px; border-radius: 99px; } .ox-lv.l0 { background: var(--sg-800); color: #fff; } .ox-lv.l1 { background: var(--sg-600); color: #fff; } .ox-lv.l2 { background: var(--sg-100); color: var(--sg-800); } .ox-lv.l3 { background: #eef0eb; color: #59605a; }
@media (max-width: 760px) {
  .ox-note { text-align: left; } .ox-seg { width: 100%; } .ox-seg button { flex: 1; text-align: center; } .ox-zoom { display: none; }
  .ox-card.lead, .ox-card.mgr, .ox-card.mem { width: auto; } .ox-tree ul.ox-stack { display: block; padding: 0; } .ox-tree ul.ox-stack > li { padding: 6px 0 0; }
  .ox-teams { grid-template-columns: 1fr; padding: 10px; } .ox-tmk { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ox-tmk span:nth-child(n+4) { display: none; }
  .ox-lr { min-width: 0; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr) 54px; padding: 10px 12px; } .ox-lr .hm { display: none; }
}

/* ========== Samagra suite theme (macOS look, one colour per app · 30 Nov 2026, ADR-0008) ==========
   Applies once the shell sets <html data-app="home|crm|hrms|admin">; the sign-in page keeps its own look.
   Mitra (CRM) orange · Kutumb (HRMS) blue · Niyam (Admin) pink · Home graphite. Indigo #5E5CE6 is kept for AI only.
   Each app maps its colour onto the existing --sg-* and --color-accent-* tokens, so every screen follows the open app. */
html[data-app] {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", "Noto Sans Devanagari", system-ui, sans-serif;
  --font-h: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", "Noto Sans Devanagari", system-ui, sans-serif;
  --color-text: #1d1d1f; --color-bg: #f2f2f7; --t2: #6e6e73; --line: rgba(60, 60, 67, .12); --color-divider: rgba(60, 60, 67, .18);
  --hover: rgba(0, 0, 0, .05); --field: rgba(118, 118, 128, .12); --color-neutral-700: #6e6e73;
  --sh-card: 0 1px 2px rgba(0, 0, 0, .04), 0 10px 30px rgba(0, 0, 0, .05);
  --ai: #5e5ce6; --ai-t: #4b49c8; --ai-bg: rgba(94, 92, 230, .08);
  --app-grad: linear-gradient(160deg, #636366 0%, #3a3a3c 55%, #1d1d1f 100%);
  --sg-900: #000; --sg-800: #1d1d1f; --sg-700: #1d1d1f; --sg-600: #1d1d1f; --sg-500: #3a3a3c; --sg-300: #aeaeb2; --sg-100: #ececf1; --sg-50: #f7f7f9;
  --color-accent: var(--sg-600); --color-accent-100: var(--sg-100); --color-accent-600: var(--sg-700); --color-accent-700: var(--sg-700); --color-accent-800: var(--sg-800); --color-accent-900: var(--sg-900);
  --blue: var(--sg-700); --blue-t: var(--sg-700); --blue-bg: var(--sg-50); --yellow: var(--sg-300);
}
html[data-app="crm"] { --app-grad: linear-gradient(160deg, #ffb340 0%, #f97316 55%, #ea580c 100%);
  --sg-900: #431407; --sg-800: #7c2d12; --sg-700: #9a3412; --sg-600: #c2410c; --sg-500: #f97316; --sg-300: #fdba74; --sg-100: #ffedd5; --sg-50: #fff7ed; }
html[data-app="hrms"] { --app-grad: linear-gradient(160deg, #64d2ff 0%, #0a84ff 55%, #0062cc 100%);
  --sg-900: #001f42; --sg-800: #003a75; --sg-700: #004c99; --sg-600: #0071e3; --sg-500: #0a84ff; --sg-300: #7cc0ff; --sg-100: #e3f0fd; --sg-50: #f2f8fe; }
html[data-app="bi"] { --app-grad: linear-gradient(160deg, #6ee7b7 0%, #10b981 55%, #047857 100%);
  --sg-900: #022c22; --sg-800: #064e3b; --sg-700: #047857; --sg-600: #059669; --sg-500: #10b981; --sg-300: #6ee7b7; --sg-100: #d1fae5; --sg-50: #ecfdf5; }
html[data-app="sfa"] { --app-grad: linear-gradient(160deg, #ffe27a 0%, #facc15 55%, #ca8a04 100%);
  --sg-900: #422006; --sg-800: #713f12; --sg-700: #854d0e; --sg-600: #a16207; --sg-500: #eab308; --sg-300: #fde047; --sg-100: #fef3c7; --sg-50: #fefce8; }
html[data-app="admin"] { --app-grad: linear-gradient(160deg, #ff8fb8 0%, #ec4899 55%, #be185d 100%);
  --sg-900: #500724; --sg-800: #831843; --sg-700: #9d174d; --sg-600: #db2777; --sg-500: #ec4899; --sg-300: #f9a8d4; --sg-100: #fce7f3; --sg-50: #fdf2f8; }

html[data-app] body { background: var(--color-bg); color: var(--color-text); -webkit-font-smoothing: antialiased; }
html[data-app] ::selection { background: color-mix(in srgb, var(--sg-500) 28%, transparent); }
html[data-app] :focus-visible { outline: 2px solid var(--sg-500); outline-offset: 2px; }
html[data-app] a { color: var(--sg-600); }

/* App icons: a gradient tile per app (launcher, app menu, Home dock) */
html[data-app] .appic, html[data-app] .hm3-ic { color: #fff; background: var(--app-grad); box-shadow: inset 0 0 0 .5px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.12); }
html[data-app] .ap-home { background: linear-gradient(160deg, #636366 0%, #3a3a3c 55%, #1d1d1f 100%) !important; color: #fff !important; }
html[data-app] .ap-crm { background: linear-gradient(160deg, #ffb340 0%, #f97316 55%, #ea580c 100%) !important; color: #fff !important; }
html[data-app] .ap-hrms { background: linear-gradient(160deg, #64d2ff 0%, #0a84ff 55%, #0062cc 100%) !important; color: #fff !important; }
html[data-app] .ap-bi { background: linear-gradient(160deg, #6ee7b7 0%, #10b981 55%, #047857 100%) !important; color: #fff !important; }
html[data-app] .ap-sfa { background: linear-gradient(160deg, #ffe27a 0%, #facc15 55%, #ca8a04 100%) !important; color: #fff !important; }
html[data-app] .ap-admin { background: linear-gradient(160deg, #ff8fb8 0%, #ec4899 55%, #be185d 100%) !important; color: #fff !important; }
html[data-app] .hm3-app:hover .hm3-ic, html[data-app] .wl-app:hover .hm3-ic { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0,0,0,.16); }
html[data-app] .hm3-ic { transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s; }
/* Samagra logo: graphite tile; the small square shows the open app's colour */
html[data-app] .slogo, html[data-app] .shellbar .sblogo, html[data-app] .side .sblogo { background: #1d1d1f; box-shadow: none; }
html[data-app] .slogo i { background: var(--sg-500); }
html[data-app] .swm i { background: var(--sg-500); }

/* Shell: frosted toolbar and sidebar */
html[data-app] .shellbar { background: rgba(242, 242, 247, .8); -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px); box-shadow: 0 .5px 0 rgba(0,0,0,.12); }
html[data-app] .sb-search { background: rgba(118, 118, 128, .12); border: 0; border-radius: 10px; box-shadow: none; }
html[data-app] .sb-search:focus-within { background: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--sg-500) 30%, transparent); }
html[data-app] .sb-search input::placeholder { color: #8e8e93; }
html[data-app] .sb-av { background: #d1d1d6; color: #3a3a3c; }
html[data-app] .sb-ic { color: #3a3a3c; } html[data-app] .sb-ic:hover { background: rgba(0,0,0,.05); color: #1d1d1f; }
html[data-app] .side { background: rgba(236, 236, 241, .82); -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px); border-right: .5px solid rgba(0,0,0,.1); color: var(--color-text); }
html[data-app] .side .side-main { background: transparent; }
html[data-app] .side .sbsect { color: #6e6e73; font-size: 11px; font-weight: 600; letter-spacing: 0; text-transform: none; padding: 14px 18px 6px; }
html[data-app] .side nav { padding: 6px 10px; gap: 2px; }
html[data-app] .side nav button { min-height: 32px; padding: 6px 10px; border-radius: 8px; font-size: 13px; font-weight: 400; color: #1d1d1f; box-shadow: none; }
html[data-app] .side nav button svg { color: #3a3a3c; }
html[data-app] .side nav button:hover:not(.on) { background: rgba(0,0,0,.05); color: #1d1d1f; }
html[data-app] .side nav button.on { background: var(--sg-600); color: #fff; font-weight: 500; box-shadow: none; }
html[data-app] .side nav button.on svg { color: #fff; }
html[data-app] .side nav button.subnav.on2 { background: color-mix(in srgb, var(--sg-500) 14%, transparent); color: var(--sg-700); }
html[data-app] .side nav .navgrp { color: #6e6e73; font-size: 11px; font-weight: 600; letter-spacing: 0; text-transform: none; padding: 12px 10px 4px; }
html[data-app] .side .facesw { background: rgba(118,118,128,.12); }
html[data-app] .side .facesw button { color: #3a3a3c; } html[data-app] .side .facesw button.on { background: #fff; color: #1d1d1f; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
html[data-app] .topbar { background: rgba(242, 242, 247, .78); -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px); border-bottom: .5px solid rgba(0,0,0,.1); box-shadow: none; }
html[data-app] .topbar .ttl { font: 600 15px/1.2 var(--font-h); }
html[data-app] .ttl-mod { color: var(--sg-600); }

/* Type */
html[data-app] .h1 { font: 700 32px/1.12 var(--font-h); letter-spacing: -.03em; color: #1d1d1f; }
html[data-app] .h2, html[data-app] .card > h2, html[data-app] .card h2 { font-family: var(--font-h); font-weight: 700; letter-spacing: -.015em; color: #1d1d1f; }
html[data-app] .sub, html[data-app] .mut { color: #6e6e73; }

/* Buttons */
html[data-app] .btn { border-radius: 8px; font: 500 13.5px/1.2 var(--font); padding: 8px 14px; }
html[data-app] .btn-primary { background: var(--sg-600); color: #fff; border-color: transparent; }
html[data-app] .btn-primary:hover { background: var(--sg-700); } html[data-app] .btn-primary:active { background: var(--sg-800); transform: scale(.98); }
html[data-app] .btn-secondary { background: #fff; border: 1px solid rgba(0,0,0,.12); color: #1d1d1f; }
html[data-app] .btn-secondary:hover { background: #f7f7f9; }
html[data-app] .btn-ghost { color: var(--sg-600); } html[data-app] .btn-ghost:hover { background: color-mix(in srgb, var(--sg-500) 10%, transparent); }

/* Fields */
html[data-app] .input { background: rgba(118, 118, 128, .12); border: 1px solid transparent; border-radius: 10px; min-height: 38px; }
html[data-app] .input:hover { border-color: transparent; background: rgba(118, 118, 128, .16); }
html[data-app] .input:focus-visible { background: #fff; border-color: var(--sg-500); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sg-500) 22%, transparent); outline: none; }
html[data-app] .check input, html[data-app] input[type=checkbox], html[data-app] input[type=radio] { accent-color: var(--sg-600); }
html[data-app] .seg { border: 0; border-radius: 9px; background: rgba(118,118,128,.12); padding: 2px; gap: 2px; }
html[data-app] .seg-opt { border: 0 !important; border-radius: 7px; font-weight: 500; }
html[data-app] .seg-opt:has(input:checked) { background: #fff; color: #1d1d1f; box-shadow: 0 1px 3px rgba(0,0,0,.12); }

/* Surfaces */
html[data-app] .card { background: #fff; border: 0; border-radius: 22px; box-shadow: var(--sh-card); }
html[data-app] .card.click:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(0,0,0,.04), 0 18px 40px rgba(0,0,0,.08); }
html[data-app] .card { transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s; }
html[data-app] .stat, html[data-app] .kpis > div { background: #fff; border: 0; border-radius: 18px; box-shadow: var(--sh-card); }
html[data-app] .kpis { border: 0; gap: 12px; } html[data-app] .kpis > div { padding: 16px 18px; }
html[data-app] .kpis b, html[data-app] .stat b, html[data-app] .stats b { font-family: var(--font-h); font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
html[data-app] .strip { border: 0; background: #fff; border-radius: 18px; box-shadow: var(--sh-card); }
html[data-app] .dialog { border-top: 0; border-radius: 16px; background: #fff; box-shadow: 0 0 0 .5px rgba(0,0,0,.1), 0 24px 60px rgba(0,0,0,.22); }
html[data-app] .dialog-backdrop { background: rgba(0, 0, 0, .28); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
html[data-app] .menu-pop { border: 0; border-top: 0; border-radius: 12px; padding: 6px; background: rgba(255,255,255,.96); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 0 0 .5px rgba(0,0,0,.12), 0 16px 40px rgba(0,0,0,.16); }
html[data-app] .menu-pop button { border-bottom: 0; border-radius: 8px; }
html[data-app] .menu-pop button:hover, html[data-app] .menu-pop button.on { background: rgba(0,0,0,.05); }
html[data-app] .toast { border-radius: 12px; border-left: 0; background: rgba(29,29,31,.92); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
html[data-app] .note { background: var(--sg-50); color: var(--sg-800); border-radius: 12px; }

/* Tabs, chips, tags: pills */
html[data-app] .tabs { border-bottom: 0; gap: 2px; padding: 2px; background: rgba(118,118,128,.12); border-radius: 10px; align-self: flex-start; flex-wrap: wrap; }
html[data-app] .tab { border: 0; margin: 0; padding: 6px 12px; border-radius: 8px; font-weight: 500; font-size: 13px; color: #3a3a3c; }
html[data-app] .tab.on, html[data-app] .tab.red.on { background: #fff; color: #1d1d1f; box-shadow: 0 1px 3px rgba(0,0,0,.12); font-weight: 600; }
html[data-app] .chip { border-radius: 16px; }
html[data-app] .chip.on { background: var(--sg-600); border-color: var(--sg-600); color: #fff; }
html[data-app] .tag { border-radius: 12px; font-weight: 600; }
html[data-app] .tag-accent { background: color-mix(in srgb, var(--sg-500) 14%, transparent); color: var(--sg-700); }
html[data-app] .tag-outline { background: var(--sg-50); color: var(--sg-700); border-color: transparent; }
html[data-app] .tag-neutral { background: rgba(118,118,128,.12); color: #3a3a3c; }
html[data-app] .badge { background: #ff3b30; }
html[data-app] .bar > div { background: var(--sg-500); border-radius: 4px; }

/* Lists and tables */
html[data-app] .g { border-bottom: .5px solid rgba(0,0,0,.08); }
html[data-app] .g.h { color: #6e6e73; letter-spacing: 0; text-transform: none; font-size: 12px; font-weight: 600; }
html[data-app] .g.click:hover, html[data-app] .split-list button:hover, html[data-app] .tbl tbody tr:hover td { background: rgba(0,0,0,.035); }
html[data-app] .split-list button.on, html[data-app] .pick.on { background: color-mix(in srgb, var(--sg-500) 10%, transparent); }

/* AI stays indigo in every app */
html[data-app] .tl i.ai { background: var(--ai); }
/* Org chart: people who don't sign in (directors, consultants) get a dashed avatar ring and a grey status */
.ox-av.member { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #aeaeb2; }
.ox-av.member .ox-dot { display: none; }
.ox-st.member { color: #6e6e73; background: rgba(118,118,128,.12); }
.ox-k.member b { color: #6e6e73; }
.ox-rr.two { grid-template-columns: minmax(0, 1fr) auto; }

/* ===== Shared dashboard filter bar and chart switcher (web/dash-ui.js) ===== */
.fb { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border-radius: 18px; background: #fff; box-shadow: var(--sh-card); }
.fb-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fb-views { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fb-vw { display: inline-flex; align-items: center; }
.fb-view { all: unset; cursor: pointer; height: 30px; padding: 0 12px; border-radius: 15px; border: 1px solid rgba(0,0,0,.1); background: #fff; font: 600 12.5px/30px var(--font); color: #1d1d1f; box-sizing: border-box; }
.fb-view.on { background: #1d1d1f; color: #fff; border-color: #1d1d1f; }
.fb-view.add { border-style: dashed; color: #6e6e73; font-weight: 500; }
.fb-x { all: unset; cursor: pointer; margin-left: -6px; width: 20px; height: 20px; border-radius: 50%; text-align: center; line-height: 20px; color: #6e6e73; font-size: 14px; }
.fb-x:hover { background: rgba(0,0,0,.06); }
.fb-name { display: inline-flex; gap: 6px; align-items: center; } .fb-name .input { width: 170px; min-height: 30px; padding: 4px 10px; }
.fb-right { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-left: auto; }
.fb-seg { display: flex; padding: 2px; border-radius: 9px; background: rgba(118,118,128,.12); flex-wrap: wrap; }
.fb-seg button { all: unset; cursor: pointer; height: 26px; padding: 0 10px; border-radius: 7px; font: 500 12.5px/26px var(--font); color: #3a3a3c; }
.fb-seg button.on { background: #fff; color: #1d1d1f; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.fb-cmp { all: unset; cursor: pointer; height: 30px; padding: 0 12px; border-radius: 8px; border: 1px solid rgba(0,0,0,.12); font: 500 12.5px/28px var(--font); color: #6e6e73; box-sizing: border-box; }
.fb-cmp.on { border-color: transparent; background: color-mix(in srgb, var(--sg-500, #0a84ff) 14%, transparent); color: var(--sg-700, #004c99); }
.fb-chips { position: relative; gap: 6px; }
.fb-wrap { position: relative; display: inline-flex; }
.fb-chip { all: unset; cursor: pointer; height: 30px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px 0 12px; border-radius: 15px; border: 1px solid rgba(0,0,0,.1); background: #fff; font: 500 12.5px/1 var(--font); color: #1d1d1f; box-sizing: border-box; }
.fb-chip .fb-k { color: #6e6e73; } .fb-chip b { font-weight: 600; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fb-chip.on { border-color: transparent; background: color-mix(in srgb, var(--sg-500, #0a84ff) 14%, transparent); color: var(--sg-700, #004c99); } .fb-chip.on .fb-k { color: inherit; }
.fb-pop { position: absolute; top: 36px; left: 0; z-index: 40; min-width: 220px; max-height: 300px; overflow: auto; padding: 6px; border-radius: 12px; background: rgba(255,255,255,.97); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 0 0 .5px rgba(0,0,0,.12), 0 16px 40px rgba(0,0,0,.16); display: flex; flex-direction: column; }
.fb-pop button { all: unset; cursor: pointer; display: flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; border-radius: 8px; font: 13px/1.3 var(--font); color: #1d1d1f; }
.fb-pop button:hover { background: rgba(0,0,0,.05); } .fb-tick { width: 14px; color: var(--sg-600, #0071e3); font-weight: 700; }
.fb-more { all: unset; cursor: pointer; height: 30px; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; border-radius: 15px; background: rgba(118,118,128,.12); font: 600 12.5px/1 var(--font); color: #1d1d1f; }
.fb-reset { all: unset; cursor: pointer; height: 30px; padding: 0 8px; font: 600 12.5px/30px var(--font); color: var(--sg-600, #0071e3); }
.fb-panel { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 12px; background: #f7f7f9; }
.fb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 4px 14px; }
.sw-tools { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.sw-seg { display: inline-flex; padding: 2px; border-radius: 8px; background: rgba(118,118,128,.12); }
.sw-seg button { all: unset; cursor: pointer; width: 28px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; color: #6e6e73; }
.sw-seg button.on { background: #fff; color: #1d1d1f; box-shadow: 0 1px 2px rgba(0,0,0,.14); }
.cd-card h2 { display: flex; align-items: flex-start; gap: 10px; }
.sw-tbl { overflow: auto; max-height: 320px; }
.sw-tbl table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sw-tbl th { position: sticky; top: 0; background: #fff; text-align: left; font-size: 11.5px; font-weight: 600; color: #6e6e73; padding: 6px 8px; }
.sw-tbl td { padding: 8px; border-top: .5px solid rgba(0,0,0,.07); font-variant-numeric: tabular-nums; }
.sw-tbl .r { text-align: right; } .sw-tbl tr.click { cursor: pointer; } .sw-tbl tr.click:hover td { background: rgba(0,0,0,.035); }
.cd-hi { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 14px 18px; border-radius: 18px; background: #fff; box-shadow: var(--sh-card); font-size: 13.5px; line-height: 1.45; }
.cd-hi b { width: 100%; font-size: 12px; color: var(--sg-600, #6e6e73); letter-spacing: .02em; text-transform: uppercase; }
.cd-hi span { flex: 1 1 240px; }
.cd-scale i { background: linear-gradient(90deg, color-mix(in srgb, #f97316 12%, #fff), #f97316); }
.cd-ks em.up { background: rgba(52,199,89,.14); color: #1e7d34; } .cd-ks em.down { background: rgba(255,59,48,.12); color: #c4141f; }
html[data-app] .cd-kpi { border-radius: 18px; }
@media (max-width: 640px) { .fb-right { margin-left: 0; } .fb-seg { overflow-x: auto; flex-wrap: nowrap; max-width: 100%; } }
/* Kutumb dashboard: paired columns (joiners/leavers, on time/late) */
.hd-pair { display: flex; align-items: flex-end; gap: 10px; height: 190px; padding-top: 8px; }
.hd-pc { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; min-width: 0; }
.hd-bars { flex: 1; width: 100%; max-width: 54px; display: flex; align-items: flex-end; gap: 3px; }
.hd-bars i { flex: 1; border-radius: 4px 4px 0 0; min-height: 2px; }
.hd-bars.stack { flex-direction: column-reverse; justify-content: flex-start; gap: 1px; } .hd-bars.stack i { flex: none; width: 100%; border-radius: 3px; min-height: 0; }
.hd-pc b { font-size: 12px; font-variant-numeric: tabular-nums; } .hd-pc small { font-size: 11px; color: #6e6e73; }
/* Suite Home (ADR-0008): app cards on top, graphite instead of the old green */
.wx-apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.wx-app { all: unset; cursor: pointer; box-sizing: border-box; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 20px; background: #fff; box-shadow: var(--sh-card); transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s; }
.wx-app:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(0,0,0,.04), 0 18px 40px rgba(0,0,0,.08); }
.wx-app .hm3-ic { width: 52px; height: 52px; border-radius: 14px; flex: none; display: grid; place-items: center; }
.wx-app b { font: 700 18px/1.2 var(--font-h); letter-spacing: -.02em; } .wx-app b small { font: 500 13px/1 "Noto Sans Devanagari", var(--font); color: #6e6e73; }
.wx-open { margin-left: auto; font-size: 22px; color: #c7c7cc; }
html[data-app] .wx-kpi.dark { background: radial-gradient(120% 140% at 100% 0%, #3a3a3c 0%, #1d1d1f 60%, #000 100%); }
html[data-app] .wx-bar i { background: linear-gradient(90deg, #64d2ff, #0a84ff); }
html[data-app] .wx-att { background: #fff; border: 0; box-shadow: var(--sh-card); }
html[data-app] .wx-att b { color: #1d1d1f; } html[data-app] .wx-att .s12 { color: #6e6e73; }
html[data-app] .wx-ic.solid { background: #1d1d1f; }
html[data-app] .hm4-clear span:first-child { color: #1d1d1f; }
html[data-app] .wl-app:hover .hm3-ic { background: var(--app-grad); }
html[data-app] .mh2-poster:not(.img) { background: radial-gradient(90% 90% at 100% 0%, #3a3a3c 0%, transparent 60%), linear-gradient(160deg, #000, #1d1d1f); }
html[data-app] .mh2-poster:not(.img)::after { background: #0a84ff; border-radius: 3px; }
html[data-app] .mh2-pk { background: rgba(255,255,255,.16); color: #fff; } html[data-app] .mh2-pl { color: #64d2ff; }
html[data-app] .wl-fring .t { stroke: #ececf1; } html[data-app] .wl-fring .v { stroke: #1d1d1f; }
/* ===== Mitra › Leads: tabs, list with checkboxes, side panel (ADR-0008) ===== */
.ld { gap: 14px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ld-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.ld-tabs { display: flex; flex-wrap: wrap; gap: 2px; padding: 2px; border-radius: 10px; background: rgba(118,118,128,.12); }
.ld-tabs button { all: unset; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; height: 30px; padding: 0 12px; border-radius: 8px; font: 500 13px/1 var(--font); color: #3a3a3c; }
.ld-tabs button.on { background: #fff; color: #1d1d1f; box-shadow: 0 1px 3px rgba(0,0,0,.12); font-weight: 600; }
.ld-tabs button span { font-size: 11.5px; font-weight: 600; color: #6e6e73; font-variant-numeric: tabular-nums; } .ld-tabs button span.ai { color: #4b49c8; } .ld-tabs button span.red { color: #c4141f; }
.ld-search { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 10px; background: #fff; box-shadow: var(--sh-card); color: #6e6e73; min-width: 240px; }
.ld-search input { all: unset; flex: 1; font: 14px var(--font); color: #1d1d1f; } .ld-search input::placeholder { color: #8e8e93; }
.ld-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 8px 8px 16px; border-radius: 14px; background: #1d1d1f; color: #fff; position: sticky; top: 64px; z-index: 5; }
.ld-bulk b { margin-right: 8px; font-size: 13.5px; }
.ld-bulk button { all: unset; cursor: pointer; height: 30px; padding: 0 12px; border-radius: 8px; background: rgba(255,255,255,.14); font: 500 12.5px/30px var(--font); }
.ld-bulk button:hover { background: rgba(255,255,255,.24); } .ld-bulk button:last-child { background: transparent; }
.ld-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; }
.ld-list { background: #fff; border-radius: 20px; box-shadow: var(--sh-card); overflow: hidden; min-width: 0; }
.ld-row { display: grid; grid-template-columns: 40px minmax(0, 1.5fr) minmax(0, 1.5fr) minmax(0, .8fr) minmax(0, 1fr) 96px; gap: 10px; align-items: center; padding: 10px 14px 10px 4px; border-top: .5px solid rgba(0,0,0,.07); cursor: pointer; transition: background .15s; }
.ld-row:hover { background: rgba(0,0,0,.03); } .ld-row.on { background: color-mix(in srgb, var(--sg-500, #f97316) 9%, #fff); }
.ld-h { cursor: default; background: #fafafc; border-top: 0; font-size: 11.5px; font-weight: 600; color: #6e6e73; } .ld-h:hover { background: #fafafc; }
.ld-ck { display: flex; justify-content: center; } .ld-ck input { width: 16px; height: 16px; cursor: pointer; }
.ld-who, .ld-cc { display: flex; flex-direction: column; gap: 3px; min-width: 0; } .ld-who b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ld-who span, .ld-cc > span:first-child { font-size: 12.5px; color: #6e6e73; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ld-st { align-self: flex-start; padding: 2px 9px; border-radius: 10px; font-size: 12px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ld-st.open { background: rgba(10,132,255,.1); color: #0058b0; } .ld-st.won { background: rgba(52,199,89,.14); color: #1e7d34; } .ld-st.lost { background: rgba(255,59,48,.1); color: #c4141f; }
.ld-panel { position: sticky; top: 72px; display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 20px; background: #fff; box-shadow: var(--sh-card); max-height: calc(100vh - 96px); overflow: auto; }
.ld-ph { display: flex; gap: 12px; align-items: center; } .ld-ph b { font: 700 18px/1.2 var(--font-h); letter-spacing: -.01em; }
.ld-av { width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #e5e5ea; color: #3a3a3c; font-weight: 700; }
.ld-acts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .ld-acts .btn { justify-content: center; min-height: 44px; }
.ld-ai { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 14px; background: rgba(94,92,230,.08); }
.ld-ai b { font-size: 11.5px; letter-spacing: .02em; text-transform: uppercase; color: #4b49c8; } .ld-ai p { margin: 0; font-size: 13.5px; line-height: 1.45; }
.ld-ai dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; margin: 4px 0 0; } .ld-ai dt { font-size: 11px; color: #6e6e73; } .ld-ai dd { margin: 0; font-size: 13px; font-weight: 600; }
.ld-facts { margin: 0; border-radius: 12px; background: #f5f5f7; padding: 2px 12px; }
.ld-facts > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: .5px solid rgba(0,0,0,.06); font-size: 13px; } .ld-facts > div:first-child { border-top: 0; }
.ld-facts dt { color: #6e6e73; } .ld-facts dd { margin: 0; font-weight: 500; text-align: right; }
.ld-foot { display: flex; justify-content: space-between; gap: 8px; }
@media (max-width: 1099px) { .ld-wrap { grid-template-columns: 1fr; } .ld-panel { display: none; } }
@media (max-width: 760px) { .ld-row { grid-template-columns: 36px minmax(0, 1fr) minmax(0, 1fr); } .ld-row > :nth-child(4), .ld-row > :nth-child(5), .ld-row > :nth-child(6) { display: none; } .ld-search { min-width: 0; flex: 1; } }
/* ===== Mitra › Start Calling (wide screens): lead on the left, dispose always open on the right ===== */
.sc-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.sc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, 1.15fr); gap: 16px; align-items: start; }
.sc-hero { align-items: center; text-align: center; gap: 6px; padding: 24px; }
.sc-av { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: #e5e5ea; color: #3a3a3c; font: 700 24px/1 var(--font-h); margin-bottom: 6px; }
.sc-name { margin: 0; font: 700 28px/1.15 var(--font-h); letter-spacing: -.03em; }
.sc-sub { font-size: 15px; color: #6e6e73; }
.sc-stage { margin-top: 4px; padding: 3px 12px; border-radius: 12px; background: rgba(10,132,255,.1); color: #0058b0; font-size: 12.5px; font-weight: 600; }
.sc-timer { margin-top: 10px; font: 600 38px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: -.02em; color: #6e6e73; font-variant-numeric: tabular-nums; }
.sc-timer.on { color: #1e7d34; }
.sc-btns { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; width: 100%; margin-top: 12px; }
.sc-btns .btn { min-height: 52px; justify-content: center; font-size: 16px; font-weight: 600; border-radius: 14px; }
.sc-wa { background: rgba(52,199,89,.14) !important; color: #1e7d34 !important; border-color: transparent !important; }
.sc-ai { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: 20px; background: rgba(94,92,230,.08); }
.sc-ai b { font-size: 11.5px; letter-spacing: .02em; text-transform: uppercase; color: #4b49c8; } .sc-ai p { margin: 0; font-size: 14px; line-height: 1.5; }
.sc-ai dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; margin: 4px 0 0; } .sc-ai dt { font-size: 11px; color: #6e6e73; } .sc-ai dd { margin: 0; font-size: 13.5px; font-weight: 600; }
.sc-disp { position: sticky; top: 72px; }
html[data-app] .wx-row { border: 0; background: #f5f5f7; } html[data-app] .wx-row.rose { background: rgba(255,59,48,.07); } html[data-app] .wx-row.amber { background: rgba(255,159,10,.09); }
html[data-app] .wx-row.violet { background: rgba(10,132,255,.07); } html[data-app] .wx-when { color: #6e6e73; }

/* ---------- Pulse (BI) screens: web/pulse.js (ADR-0010) ---------- */
.pl-page .cd-head { margin-bottom: 4px; }
.pl-page .cd-ks { padding-right: 0; }
.pl-empty { text-align: center; padding: 40px 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 640px; margin: 8px auto; }
.pl-empty h2 { margin: 4px 0 0; }
.pl-emic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: var(--app-grad); }
.pl-360 { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
.pl-list { display: flex; flex-direction: column; gap: 10px; position: sticky; top: 12px; max-height: calc(100vh - 120px); }
.pl-items { overflow: auto; display: flex; flex-direction: column; margin: 0 -8px; }
.pl-it { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 9px 10px; border-radius: 10px; background: none; border: 0; cursor: pointer; min-height: 44px; }
.pl-it:hover { background: var(--hover); } .pl-it.on { background: var(--sg-50); box-shadow: inset 3px 0 0 var(--sg-500); }
.pl-it b { font-size: 14px; font-weight: 600; }
.pl-detail { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pl-prof { display: flex; flex-direction: row; align-items: center; text-align: left; gap: 14px; flex-wrap: wrap; }
.pl-av { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: var(--app-grad); flex: none; }
.pl-acts { margin-left: auto; display: flex; gap: 8px; }
.pl-alerts { display: flex; flex-direction: column; }
.pl-al { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 12px; align-items: center; text-align: left; padding: 12px 4px; border: 0; border-bottom: 1px solid var(--line); background: none; font-size: 14px; color: inherit; }
.pl-al.click { cursor: pointer; } .pl-al.click:hover { background: var(--hover); }
.pl-soon { display: flex; flex-direction: column; gap: 4px; background: var(--ai-bg); }
.pl-flow { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.pl-flow i { color: var(--t2); font-style: normal; }
.pl-step { display: flex; flex-direction: column; padding: 10px 14px; border-radius: 12px; background: var(--sg-50); min-width: 150px; }
.pl-src { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 14px; background: #1d4ed8; }
.pl-ok { background: #e8f7ec; color: #1e7a35; } .pl-warn { background: #fff4e5; color: #a04500; }
.pl-counts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.pl-counts span { display: flex; flex-direction: column; padding: 10px; border-radius: 10px; background: var(--field); }
.pl-counts b { font-size: 18px; } .pl-counts em { font-style: normal; font-size: 12px; color: var(--t2); }
.pl-errs { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; padding: 10px; border-radius: 10px; background: #ffebee; color: #c4001a; }
.pl-oth { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pl-oth > span:first-child { display: flex; flex-direction: column; }
.pl-steps { display: flex; flex-direction: column; gap: 14px; padding-left: 20px; margin: 4px 0 0; font-size: 14px; line-height: 1.5; }
.pl-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; padding: 4px 8px; border-radius: 6px; background: var(--field); word-break: break-all; }
@media (max-width: 900px) { .pl-360 { grid-template-columns: minmax(0, 1fr); } .pl-list { position: static; max-height: 320px; } .pl-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pl-al { grid-template-columns: minmax(0, 1fr) auto; } .pl-al .tag { grid-column: 1 / -1; justify-self: start; } .pl-acts { margin-left: 0; } }

/* ---------- Kutumb (new HRMS front-end): web/kutumb.js (ADR-0011) ---------- */
.kt-page { display: flex; flex-direction: column; gap: 16px; }
.kt-page .cd-ks { padding-right: 0; }
.kt-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.kt-hact { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.kt-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: #f2f2f7; color: #3a3a3c; }
.kt-chip.g { background: #e8f7ec; color: #1e7a35; } .kt-chip.o { background: #fff4e5; color: #a04500; } .kt-chip.r { background: #ffebee; color: #c4001a; }
.kt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.kt-card { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.kt-card > h2 { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin: 0; }
.kt-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--field); align-self: flex-start; max-width: 100%; overflow-x: auto; }
.kt-tabs button { border: 0; background: none; padding: 7px 14px; border-radius: 9px; font: inherit; font-size: 13.5px; font-weight: 500; color: var(--t2); cursor: pointer; white-space: nowrap; min-height: 34px; display: inline-flex; gap: 6px; align-items: center; }
.kt-tabs button.on { background: #fff; color: var(--color-text); box-shadow: 0 1px 3px rgba(0,0,0,.1); font-weight: 600; }
.kt-tabs em { font-style: normal; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 999px; background: var(--sg-100); color: var(--sg-700); }
.kt-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--field); }
.kt-seg.wrap { flex-wrap: wrap; }
.kt-seg button { border: 0; background: none; padding: 6px 12px; border-radius: 8px; font: inherit; font-size: 13px; color: var(--t2); cursor: pointer; min-height: 32px; }
.kt-seg button.on { background: #fff; color: var(--sg-700); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.kt-soon { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; background: var(--sg-50); }
.kt-soon { align-items: flex-start; } .kt-soon > .col { flex: 1; min-width: 0; } .kt-soon .kt-chip, .kt-conn { align-self: flex-start; margin-top: 2px; } .kt-conn { min-height: 32px; padding: 4px 12px; font-size: 12.5px; }
.kt-soic { width: 36px; height: 36px; border-radius: 10px; flex: none; display: grid; place-items: center; color: #fff; background: var(--app-grad); font-size: 16px; }
.kt-soic.plug { background: #636366; }
.kt-ai { display: flex; flex-direction: column; gap: 8px; background: var(--ai-bg); color: var(--ai-t); box-shadow: inset 0 0 0 1px rgba(94,92,230,.18); }
.kt-ai > b { color: var(--ai-t); }
.kt-aiq { display: flex; flex-wrap: wrap; gap: 6px; } .kt-aiq button { border: 1px solid rgba(94,92,230,.3); background: #fff; color: var(--ai-t); border-radius: 999px; padding: 5px 11px; font: inherit; font-size: 12.5px; }
.kt-today { display: grid; grid-template-columns: 1fr 1fr 1.6fr auto; gap: 20px; align-items: center; }
.kt-tcol { display: flex; flex-direction: column; gap: 3px; min-width: 0; } .kt-tcol > b { font-size: 22px; letter-spacing: -.02em; } .kt-tcol.end { align-items: flex-end; }
.kt-lbl { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--t2); }
.kt-punch { min-height: 48px; padding: 0 28px; font-size: 16px; border-radius: 14px; }
.kt-bal { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.kt-bal > div { display: flex; flex-direction: column; padding: 12px; border-radius: 14px; background: var(--sg-50); }
.kt-bal b { font-size: 26px; color: var(--sg-700); line-height: 1.1; } .kt-bal span { font-size: 13px; font-weight: 600; } .kt-bal em { font-style: normal; font-size: 12px; color: var(--t2); }
.kt-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; font: inherit; color: inherit; width: 100%; min-height: 48px; }
.kt-row:last-child { border-bottom: 0; } .kt-row.click { cursor: pointer; border-radius: 10px; } .kt-row.click:hover { background: var(--hover); }
.kt-row > .col { flex: 1; }
.kt-av { width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 12.5px; font-weight: 700; color: #fff; background: var(--app-grad); }
.kt-av.hr { background: #636366; }
.kt-date { width: 44px; flex: none; display: flex; flex-direction: column; align-items: center; padding: 4px 0; border-radius: 10px; background: var(--sg-50); }
.kt-date b { font-size: 17px; line-height: 1.1; color: var(--sg-700); } .kt-date em { font-style: normal; font-size: 11px; text-transform: uppercase; color: var(--t2); }
.kt-faces { display: flex; flex-wrap: wrap; gap: 12px; } .kt-faces span { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; width: 56px; text-align: center; }
.kt-faces i { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 13px; background: var(--sg-100); color: var(--sg-700); }
.kt-inbox { gap: 0; }
.kt-bulk { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); min-height: 48px; flex-wrap: wrap; }
.kt-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.kt-item > input { width: 18px; height: 18px; }
.kt-ib { display: flex; align-items: center; gap: 12px; border: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; padding: 4px; border-radius: 10px; min-width: 0; }
.kt-ib:hover { background: var(--hover); }
.kt-ir { display: flex; align-items: center; gap: 8px; }
.kt-idet { grid-column: 2 / -1; display: flex; flex-direction: column; gap: 12px; padding: 6px 4px 8px; }
.kt-trail { display: flex; flex-direction: column; gap: 6px; } .kt-trail span { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.kt-trail i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11px; background: var(--field); } .kt-trail i.ok { background: #e8f7ec; color: #1e7a35; }
.kt-exp { display: flex; flex-direction: column; gap: 10px; }
.kt-pay { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--sg-50); }
.kt-pay > span:last-child { flex-basis: 100%; }
.kt-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.kt-type { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 16px 18px; border-radius: 18px; border: 1px solid var(--line); background: #fff; text-align: left; font: inherit; color: inherit; cursor: pointer; overflow: hidden; box-shadow: var(--sh-card); }
.kt-type.on { box-shadow: inset 0 0 0 2px var(--sg-500), var(--sh-card); }
.kt-type b { font-size: 28px; line-height: 1.1; color: var(--sg-700); } .kt-type span { font-weight: 600; font-size: 14px; } .kt-type em { font-style: normal; font-size: 12px; color: var(--t2); }
.kt-type i { position: absolute; left: 0; bottom: 0; height: 4px; width: var(--p); background: var(--sg-500); }
.kt-calc { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; background: var(--sg-50); }
.kt-calc > b { font-size: 20px; color: var(--sg-700); } .kt-calc > span { flex: 1; min-width: 200px; }
.kt-pol { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.kt-split { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.kt-split > div { display: flex; flex-direction: column; gap: 2px; }
.kt-li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kt-li.tot { border-bottom: 0; border-top: 2px solid var(--color-text); font-size: 15px; margin-top: 4px; }
.kt-reg { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kt-rg { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: #fff; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.kt-rg.on { box-shadow: inset 0 0 0 2px var(--sg-500); } .kt-rg b { font-size: 26px; } .kt-rg em { font-style: normal; font-size: 13px; color: var(--t2); } .kt-rg.best em { color: #1e7a35; font-weight: 600; }
.kt-dec { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); } .kt-dec input { width: 130px; text-align: right; }
.kt-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.kt-steps.v { grid-template-columns: minmax(0, 1fr); }
.kt-step { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border-radius: 18px; background: #fff; box-shadow: var(--sh-card); }
.kt-step i { width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 13px; background: var(--field); color: var(--t2); }
.kt-step.done i { background: #e8f7ec; color: #1e7a35; } .kt-step.now { box-shadow: inset 0 0 0 2px var(--sg-500), var(--sh-card); } .kt-step.now i { background: var(--sg-600); color: #fff; }
.kt-hb { display: flex; flex-direction: column; gap: 8px; }
.kt-hb > div { display: grid; grid-template-columns: minmax(90px, 40%) minmax(0, 1fr) 28px; gap: 8px; align-items: center; font-size: 13px; }
.kt-hb i { display: block; height: 10px; border-radius: 5px; width: var(--p); min-width: 4px; background: var(--sg-500); } .kt-hb b { text-align: right; }
.kt-cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; height: 170px; align-items: end; }
.kt-cols > div { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; }
.kt-cols > div > span { flex: 1; width: 100%; max-width: 30px; display: flex; flex-direction: column-reverse; border-radius: 6px; overflow: hidden; background: var(--sg-50); }
.kt-cols i.v { background: #0a84ff; } .kt-cols i.a { background: #ff9f0a; } .kt-cols em { font-style: normal; font-size: 11px; color: var(--t2); }
.kt-sub { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.kt-sub > main { padding: 0 !important; flex: none; }
.kt-sub > main > .head:first-child, .kt-sub > main > .cd-head:first-child { display: none; }
.kt-sent { line-height: 2.2; color: var(--color-text); }
.kt-inl { font: inherit; font-weight: 600; color: var(--ai-t); border: 0; border-bottom: 2px solid rgba(94,92,230,.4); background: transparent; padding: 0 2px; }
.kt-tpl { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.kt-doc { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: #fff; font: inherit; color: inherit; cursor: pointer; text-align: left; box-shadow: var(--sh-card); min-height: 120px; }
.kt-doc:hover { box-shadow: inset 0 0 0 2px var(--sg-300), var(--sh-card); }
.kt-dic { width: 34px; height: 42px; border-radius: 6px; display: grid; place-items: center; font-weight: 700; color: var(--sg-700); background: var(--sg-50); box-shadow: inset 0 0 0 1px var(--sg-100); margin-bottom: 6px; }
@media (max-width: 1100px) { .kt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kt-today { grid-template-columns: 1fr 1fr; } .kt-tcol.end { align-items: flex-start; } .kt-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .kt-grid { grid-template-columns: minmax(0, 1fr); } .kt-grid > .kt-card, .kt-grid > section { grid-column: 1 / -1 !important; }
  .kt-today { grid-template-columns: 1fr 1fr; gap: 14px; } .kt-modes, .kt-tcol.end { grid-column: 1 / -1; } .kt-tcol.end .btn { width: 100%; }
  .kt-split { grid-template-columns: minmax(0, 1fr); } .kt-reg { grid-template-columns: minmax(0, 1fr); } .kt-steps { grid-template-columns: minmax(0, 1fr); }
  .kt-item { grid-template-columns: auto minmax(0, 1fr); } .kt-ir { grid-column: 1 / -1; justify-content: flex-end; } .kt-idet { grid-column: 1 / -1; } }

/* Pheri (field sales, ADR-0012): phone-first pieces the shared styles don't have. Colours come from the app theme (--sg-*). */
.ph .page, .ph { max-width: 980px; }
.ph-h2 { font: 700 18px/1.25 var(--font); margin: 0; }
.ph-banners { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
.ph-banner { flex: 0 0 min(88%, 420px); scroll-snap-align: start; border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; color: #3b2a00;
  background: var(--app-grad); min-height: 96px; }
.ph-banner.up { background: linear-gradient(135deg, #fff 0%, var(--sg-50) 100%); color: var(--color-text); box-shadow: var(--sh-card); }
.ph-k { font-size: 11px; font-weight: 700; letter-spacing: .05em; opacity: .75; }
.ph-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ph-tile { all: unset; cursor: pointer; box-sizing: border-box; min-height: 92px; border-radius: 18px; background: #fff; box-shadow: var(--sh-card); padding: 14px; display: flex; flex-direction: column;
  justify-content: space-between; gap: 8px; font-weight: 700; font-size: 15px; }
.ph-tile:hover, .ph-tile:focus-visible { box-shadow: inset 0 0 0 2px var(--sg-500), var(--sh-card); }
.ph-ic { width: 36px; height: 36px; border-radius: 11px; background: var(--sg-100); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.ph-big { min-height: 46px; justify-content: center; }
.ph-list { display: flex; flex-direction: column; background: #fff; border-radius: 16px; box-shadow: var(--sh-card); overflow: hidden; }
.ph-item { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: .5px solid var(--color-divider); }
.ph-item:first-child { border-top: 0; } .ph-item:hover, .ph-item.on { background: var(--sg-50); }
.ph-grow { flex: 1; min-width: 0; }
.ph-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ph-row > * { min-width: 0; } .ph-row .chips { flex-wrap: wrap; }
.ph .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ph-av { flex: none; width: 36px; height: 36px; border-radius: 11px; background: var(--color-bg); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; color: var(--color-neutral-700); }
.ph-av.sm { width: 28px; height: 28px; border-radius: 14px; font-size: 11px; }
.ph-ai { border-radius: 14px; padding: 10px 14px; background: rgba(94,92,230,.08); border: 1px solid rgba(94,92,230,.22); display: flex; flex-direction: column; gap: 4px; }
.ph-ai-l { font-size: 11px; font-weight: 700; color: #5e5ce6; letter-spacing: .04em; }
.ph-warn { border-radius: 12px; padding: 10px 12px; background: rgba(255,159,10,.14); color: #6b3a00; }
.ph-bad, .ph-h-bad { background: rgba(255,59,48,.10); color: #b42318; }
.ph-h-ok { background: rgba(52,199,89,.14); color: #1e7d34; } .ph-h-warn { background: rgba(255,159,10,.16); color: #8a4b00; } .ph-h-new { background: rgba(10,132,255,.12); color: #0058b0; }
.ph-tgs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; } .ph-tg { display: flex; flex-direction: column; gap: 3px; }
.ph-stk { background: var(--sg-50) !important; }
.ph-tight { gap: 0; padding: 10px 14px; } .ph-tight > h2 { margin-bottom: 4px; }
.ph-prod { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: .5px solid var(--color-divider); }
.ph-prod:first-of-type { border-top: 0; }
.ph-step { all: unset; cursor: pointer; width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--color-divider); background: #fff; text-align: center; font-size: 20px; font-weight: 600; }
.ph-qty { width: 58px !important; text-align: center; font-weight: 700; }
.ph-bar { position: sticky; bottom: 0; display: flex; gap: 10px; padding: 10px 0; background: linear-gradient(transparent, var(--color-bg) 30%); z-index: 2; }
.ph-split { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; } .ph-main { flex: 999 1 620px; min-width: 0; } .ph-side { flex: 1 1 320px; min-width: 0; }
.ph-sel { background: var(--sg-50); }
.ph-meter { display: block; height: 5px; border-radius: 3px; background: var(--color-bg); overflow: hidden; margin-top: 4px; } .ph-meter i { display: block; height: 100%; background: var(--sg-500); }
.ph-ev { display: flex; gap: 10px; padding: 8px 0; border-top: .5px solid var(--color-divider); } .ph-ev:first-child { border-top: 0; }
.ph-t { flex: none; width: 42px; } .ph-dot { flex: none; width: 8px; height: 8px; border-radius: 4px; margin-top: 6px; }
.ph-route { width: 100%; border-radius: 12px; background: #f4f1e8; }
.ph-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
@media (max-width: 640px) { .ph-tiles { grid-template-columns: 1fr 1fr; } }
