:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --card: #fff;
  --soft: #f1f5f9;
  --soft2: #f8fafc;
  --soft3: #e8eef6;
  --soft4: #eef2f7;
  --line: #dbe3ee;
  --line2: #e8edf4;
  --t: #0f172a;
  --t2: #334155;
  --m: #64748b;
  --m2: #94a3b8;
  --p: #2563eb;
  --ph: #1d4ed8;
  --pl: #eff6ff;
  --pt: #1d4ed8;
  --navy: #0f2a5c;
  --n2: #0f172a;
  --blue: #1d4ed8;
  --g: #2563eb;
  --ok: #16a34a;
  --gbg: #dcfce7;
  --gt: #15803d;
  --wbg: #fef3c7;
  --wt: #a16207;
  --obg: #ffedd5;
  --ot: #c2410c;
  --rbg: #fee2e2;
  --rt: #b91c1c;
  --sw: #cbd5e1;
  --hdr: #1e40af;
}

[data-theme=dark] {
  color-scheme: dark;
  --bg: #0b1220;
  --card: #111a2e;
  --soft: #16213a;
  --soft2: #0e1628;
  --soft3: #1b2947;
  --soft4: #15213c;
  --line: #243252;
  --line2: #1c2944;
  --t: #e8eef9;
  --t2: #b6c3da;
  --m: #8a9bb8;
  --m2: #5f7090;
  --p: #3b82f6;
  --ph: #60a5fa;
  --pl: #13234a;
  --pt: #93c5fd;
  --n2: #e8eef9;
  --blue: #93c5fd;
  --g: #3b82f6;
  --ok: #4ade80;
  --gbg: #0f2f1e;
  --gt: #86efac;
  --wbg: #3a2a07;
  --wt: #fcd34d;
  --obg: #3a1c08;
  --ot: #fdba74;
  --rbg: #3b1217;
  --rt: #fca5a5;
  --sw: #334155;
  --hdr: #10204a;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  scrollbar-width: none;
}

*::-webkit-scrollbar {
  display: none;
}

html,
body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  margin: 0;
  font: 14.5px/1.5 Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--t);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--p);
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--n2);
  letter-spacing: -.01em;
  font-weight: 700;
}

h5 {
  margin: 0;
}

p {
  margin: 0 0 8px;
}

small {
  font-size: 12.5px;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

@keyframes up {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pg {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fi {
  from {
    opacity: 0;
  }
}

@keyframes sl {
  from {
    transform: translateY(100%);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  50% {
    opacity: .45;
  }
}

@keyframes fo {
  to {
    opacity: 1;
  }
}

@keyframes dr {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes gh {
  from {
    height: 0;
  }
}

@keyframes gw {
  from {
    width: 0;
  }
}

@keyframes flt {
  50% {
    transform: translateY(-5px);
  }
}

@keyframes ti {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

/* buttons + forms */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--p);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, border-color .15s, transform .1s;
}

.btn:hover {
  background: var(--ph);
}

.btn:active {
  transform: scale(.98);
}

.btn.ghost {
  background: var(--card);
  color: var(--t);
  border-color: var(--line);
}

.btn.ghost:hover {
  background: var(--soft);
}

.btn.g {
  background: #16a34a;
}

.btn.g:hover {
  background: #15803d;
}

.btn.r {
  background: #dc2626;
}

.btn.r:hover {
  background: #b91c1c;
}

.btn.sm {
    height: 38px;
  /*height: 32px;*/
  padding: 0 12px;
  font-size: 13px;
  border-radius: 7px;
}

.btn.w {
  width: 100%;
}

.btn:disabled {
  opacity: .45;
  pointer-events: none;
}

.btn.off {
  opacity: .5;
}

.btn.ld {
  pointer-events: none;
  opacity: .8;
}

.btn.ld:after {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, .4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

.btn.ghost.ld:after {
  border-color: var(--line);
  border-top-color: var(--p);
}

input,
select,
textarea {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  margin: 4px 0 14px;
  outline: 0;
  transition: border-color .15s, box-shadow .15s;
}

textarea {
  height: auto;
  padding: 10px 12px;
  resize: vertical;
  margin-bottom: 8px;
}

input[type=file] {
  height: auto;
  padding: 8px;
}

input:focus,
select:focus,
textarea:focus,
.ddb:focus {
  border-color: var(--p);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .18);
}

input::placeholder,
textarea::placeholder {
  color: var(--m2);
}

input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}

input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=date],
input[type=month] {
  min-width: 0;
  max-width: 100%;
  -webkit-appearance: none;
  appearance: none;
  display: block;
  text-align: left;
}

label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--m);
  margin: 0 0 2px;
}

.hint {
  color: var(--m);
  font-size: 12.5px;
  margin: -4px 0 12px;
}

.iw {
  position: relative;
}

.iw i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  margin-top: -5px;
  font-style: normal;
  font-weight: 600;
  color: var(--m);
}

.iw i + input {
  padding-left: 28px;
}

.g2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.g2 > * {
  min-width: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.cols2 {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.fw {
  grid-column: 1/-1;
  order: -1;
}

/* surfaces */
.card,
.panel,
.cl,
.hd,
.kg {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.card {
  padding: 18px;
  animation: up .3s both;
}

.panel,
.cl {
  overflow: hidden;
  animation: up .3s both;
}

.cl {
  margin-bottom: 16px;
}

.sx {
  padding: 18px;
  border-bottom: 1px solid var(--line2);
}

.sx:last-child {
  border-bottom: 0;
}

.sx h4,
.sech {
  margin: 0 0 12px;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--m);
  font-weight: 700;
}

.sech {
  margin: 18px 0 8px;
}

.lh {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 14px;
}

.lh h3 {
  font-size: 20px;
}

.lh small {
  display: block;
  color: var(--m);
}

.lh.sv {
  position: sticky;
  top: -20px;
  z-index: 6;
  background: var(--bg);
  padding: 12px 0;
  margin-top: -8px;
  flex-wrap: nowrap;
}

.ma2 {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  font-weight: 600;
  color: var(--t2);
  cursor: pointer;
  font-size: 13.5px;
}

.back:hover {
  color: var(--p);
}

.lk {
  cursor: pointer;
}

.empty {
  text-align: center;
  color: var(--m);
  padding: 28px 12px;
}

.sk {
  height: 96px;
  border-radius: 12px;
  background: var(--soft3);
  animation: pulse 1.2s ease-in-out infinite;
  margin-bottom: 12px;
}

/* app shell */
#app {
  height: 100vh;
  height: 100dvh;
  display: flex;
}

aside {
  position: relative;
  width: 248px;
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 12px;
  background: var(--card);
  border-right: 1px solid var(--line);
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  height: 64px;
  margin: -16px -12px 12px;
  padding: 0 20px;
  background: var(--hdr);
}

.brand b {
  display: block;
  font-size: 15px;
  color: #fff;
}

.brand small {
  color: rgba(255, 255, 255, .75);
  font-size: 12px;
}

.brand svg rect,
.pl svg rect,
.lhero svg rect {
  fill: #fff;
}

.brand svg path,
.pl svg path,
.lhero svg path {
  stroke: var(--hdr);
}

.brand svg circle,
.pl svg circle,
.lhero svg circle {
  stroke: var(--hdr);
  stroke-opacity: .35;
}

aside > a {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--t2);
  font-weight: 500;
}

aside > a span {
  display: grid;
  place-items: center;
  color: var(--m);
}

aside > a:hover {
  background: var(--soft);
}

aside > a.on {
  color: var(--pt);
  font-weight: 600;
}

aside > a.on span {
  color: var(--p);
}

.ind {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  background: var(--pl);
  border-radius: 8px;
  transition: transform .28s cubic-bezier(.3, 1, .4, 1), width .2s, height .2s;
}

aside .ind {
  left: 12px;
  right: 12px;
  top: 0;
  height: 40px;
}

.sbu {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 8px;
  border-top: 1px solid var(--line2);
}

.sbu-n {
  min-width: 0;
}

.sbu b {
  display: block;
  font-size: 13.5px;
  color: var(--n2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sbu small {
  color: var(--m);
}

.lgo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  border: 1px solid #dc2626;
  border-radius: 8px;
  background: transparent;
  color: #dc2626;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}

.lgo:hover {
  background: var(--rbg);
}

[data-theme=dark] .lgo {
  color: #f87171;
  border-color: #f87171;
}

.main {
  flex: 1;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.top {
  flex: none;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: var(--hdr);
  color: #fff;
  position: relative;
  z-index: 3;
}

.top small {
  display: block;
  color: rgba(255, 255, 255, .75);
  font-size: 12px;
}

.top h2 {
  font-size: 17px;
  color: #fff;
}

.top-r {
  display: flex;
  gap: 10px;
  align-items: center;
}

.top .tgl,
.top .bell {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .22);
  color: #fff;
}

.top .tgl:hover,
.top .bell:hover {
  background: rgba(255, 255, 255, .22);
}

.top .av {
  background: #fff;
  color: var(--hdr);
}

#view {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px 24px 100px;
}

#view > * {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.pg {
  animation: pg .25s ease both;
}

.av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--pl);
  color: var(--pt);
  display: grid;
  place-items: center;
  font-weight: 700;
  flex: none;
  cursor: pointer;
}

.tgl,
.bell {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--t2);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  transition: background .15s;
}

.tgl:hover,
.bell:hover {
  background: var(--soft);
}

.bell b {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: #dc2626;
  color: #fff;
  font-size: 10px;
  font-style: normal;
  display: none;
  place-items: center;
  padding: 0 4px;
}

.i-m,
.i-s {
  display: grid;
}

.i-s {
  display: none;
}

[data-theme=dark] .i-m {
  display: none;
}

[data-theme=dark] .i-s {
  display: grid;
}

.fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 24px;
  background: var(--p);
  color: #fff;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, .35);
}

.fab:hover {
  background: var(--ph);
}

.bn {
  display: none;
}

/* dashboard */
.banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  margin-bottom: 16px;
}

.banner small {
  color: #9db6e4;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 11px;
  font-weight: 700;
}

.banner h2 {
  color: #fff;
  font-size: clamp(26px, 5vw, 36px);
  margin: 4px 0;
  font-variant-numeric: tabular-nums;
}

.banner p {
  margin: 0;
  color: #c7d7f5;
}

.gauge {
  position: relative;
  width: 96px;
  height: 96px;
  flex: none;
}

.gauge svg {
  width: 100%;
  height: 100%;
}

.gauge circle + circle {
  transition: stroke-dasharray 1.2s ease;
}

.gauge > div {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}

.gauge b {
  font-size: 22px;
  line-height: 1;
}

.gauge small {
  font-size: 10px!important;
  color: #9db6e4!important;
}

.kg {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 16px;
  overflow: hidden;
}

.kpi {
  padding: 16px 18px;
  border-right: 1px solid var(--line2);
  cursor: pointer;
  animation: up .3s both;
  transition: background .15s;
}

.kpi:last-child {
  border-right: 0;
}

.kpi:hover {
  background: var(--soft2);
}

.kpi i {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 15px;
  background: var(--pl);
}

.kpi.k2 i {
  background: var(--gbg);
}

.kpi.k3 i {
  background: var(--wbg);
}

.kpi.k4 i {
  background: var(--obg);
}

.kpi b {
  display: block;
  font-size: 22px;
  margin: 10px 0 2px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.kpi u {
  text-decoration: none;
}

.kpi em {
  font-style: normal;
  font-size: 13px;
  color: var(--m);
  font-weight: 600;
}

.kpi > span {
  font-size: 12.5px;
  color: var(--m);
}

.chh {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.chh small {
  color: var(--m);
}

.chart {
  width: 100%;
  height: auto;
  display: block;
}

.ln {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: dr 1.2s .2s ease forwards;
}

.ar {
  fill: var(--p);
  fill-opacity: .1;
  opacity: 0;
  animation: fo .6s .8s forwards;
}

.pt {
  fill: var(--card);
  opacity: 0;
  animation: fo .3s forwards;
}

.trk {
  stroke: var(--soft3);
}

.gl {
  stroke: var(--line2);
}

.svt {
  fill: var(--n2);
}

.svm {
  fill: var(--m);
}

.donut {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.donut svg {
  flex: none;
}

.donut circle {
  transition: stroke-dasharray 1s ease;
}

.lg div {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
}

.lg div:hover {
  background: var(--soft);
}

.lg i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.hb {
  height: 6px;
  border-radius: 6px;
  background: var(--soft3);
  overflow: hidden;
  margin: 4px 0 12px;
}

.hb i {
  display: block;
  height: 100%;
  background: var(--p);
  border-radius: 6px;
  animation: gw .8s both;
}

.li {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line2);
  animation: up .3s both;
}

.li:last-child {
  border: 0;
}

.li .e {
  flex: 1;
  min-width: 130px;
}

.li small {
  display: block;
  color: var(--m);
}

.li.lk:hover {
  background: var(--soft2);
}

.ic {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--soft);
  flex: none;
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  background: var(--soft3);
  color: var(--t2);
  white-space: nowrap;
}

.tag.ok {
  background: var(--gbg);
  color: var(--gt);
}

.tag.w {
  background: var(--wbg);
  color: var(--wt);
}

.tag.o {
  background: var(--obg);
  color: var(--ot);
}

.tag.r {
  background: var(--rbg);
  color: var(--rt);
}

.apg {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
  margin-top: 6px;
}

.ap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft2);
  animation: up .3s both;
}

.ap-t {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ap-t .e {
  flex: 1;
  min-width: 0;
}

.ap-t small {
  color: var(--m);
  display: block;
}

.ap-a {
  font-size: 18px;
  white-space: nowrap;
}

.ap-m {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ap-b {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ap-b .btn {
  width: 100%;
}

.ap-b .pf {
  grid-column: 1/-1;
}

.chip {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  background: var(--pl);
  color: var(--pt);
  word-break: break-all;
}

.chip.u {
  background: var(--wbg);
  color: var(--wt);
}

/* chips, pickers, tabs */
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 12px;
}

.chips button {
  flex: none;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--t2);
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s;
}

.chips button:hover {
  background: var(--soft);
}

.chips button.on {
  background: var(--p);
  border-color: var(--p);
  color: #fff;
}

.pk {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 14px;
}

.pk[hidden] {
  display: none;
}

.pk button {
  height: 38px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--t);
  font-weight: 600;
  cursor: pointer;
}

.pk button.on {
  background: var(--p);
  border-color: var(--p);
  color: #fff;
}

.seg {
  display: flex;
  gap: 2px;
  padding: 3px;
  background: var(--soft);
  border-radius: 9px;
  margin: 6px 0 14px;
}

.seg button {
  flex: 1;
  height: 34px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--m);
  font-weight: 600;
  cursor: pointer;
}

.seg button.on {
  background: var(--card);
  color: var(--t);
  box-shadow: 0 1px 3px rgba(15, 23, 42, .12);
}

.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 8px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--t);
  cursor: pointer;
}

.tile span {
  font-size: 22px;
}

.tile small {
  color: var(--m);
  font-size: 11.5px;
}

.tile.on {
  border-color: var(--p);
  background: var(--pl);
  box-shadow: inset 0 0 0 1px var(--p);
}

.tg {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.tg small {
  display: block;
  color: var(--m);
}

.sw {
  flex: none;
  position: relative;
  width: 44px;
  height: 24px;
  border: 0;
  border-radius: 24px;
  background: var(--sw);
  cursor: pointer;
  padding: 0;
  transition: background .2s;
}

.sw:after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: left .2s;
}

.sw.on {
  background: var(--p);
}

.sw.on:after {
  left: 23px;
}

.amt {
  background: var(--pl);
  color: var(--pt);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 14px;
}

/* list rows */
.hc,
.mr {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line2);
  animation: up .3s both;
}

.hc:last-child,
.mr:last-child {
  border-bottom: 0;
}

.hc {
  border-left: 3px solid var(--ok);
  cursor: pointer;
}

.hc.w {
  border-left-color: #d97706;
}

.hc.o {
  border-left-color: #ea580c;
}

.hc.r {
  border-left-color: #dc2626;
}

.hc:hover,
.mr:hover {
  background: var(--soft2);
}

.hc.sl {
  background: var(--pl);
}

.hc-n,
.mr-n {
  flex: 1;
  min-width: 0;
}

.hc-n b,
.mr-n b {
  display: block;
  font-size: 14.5px;
  color: var(--n2);
}

.hc-n small,
.mr-n small {
  display: block;
  color: var(--m);
  font-size: 12.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hc-x {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.hc-x b {
  font-size: 14.5px;
}

.mr .tag {
  flex: none;
}

.mr.blk {
  opacity: .7;
}

.mr-n .bub {
  margin: 6px 0;
  white-space: normal;
}

.clamp {
  white-space: normal!important;
  display: -webkit-box!important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ck {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1.5px solid var(--m2);
  display: grid;
  place-items: center;
  flex: none;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  background: var(--card);
}

.hc.sl .ck {
  background: var(--p);
  border-color: var(--p);
}

.ma {
  display: flex;
  gap: 6px;
  align-items: center;
}

.ib {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  cursor: pointer;
  font-size: 14px;
}

.ib:hover {
  background: var(--soft);
}

.ib.d:hover {
  background: var(--rbg);
}

.bub {
  background: var(--soft);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 8px 0;
  font-size: 14px;
  word-break: break-word;
}

.nt {
  margin-bottom: 16px;
}

.ntc {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  margin-top: 8px;
  background: var(--soft2);
}

.ntc.un {
  background: var(--pl);
}

.ntc i {
  color: var(--p);
  font-style: normal;
  width: 10px;
  flex: none;
}

.ntc p {
  margin: 0;
}

.ntc small {
  color: var(--m);
}

.selbar {
  position: fixed;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: max-content;
  max-width: calc(100% - 24px);
  bottom: 24px;
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0f172a;
  color: #fff;
  padding: 8px 8px 8px 16px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .3);
  white-space: nowrap;
}

.selbar .btn.ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .3);
}

/* detail pages */
.hd {
  padding: 18px;
  margin-bottom: 16px;
  animation: up .3s both;
}

.hd-t {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hd-i {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 24px;
  background: var(--pl);
}

.hd-n {
  flex: 1;
  min-width: 0;
}

.hd-n h2 {
  font-size: 22px;
}

.hd-n small {
  color: var(--m);
}

.stats3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 16px 0;
  border: 1px solid var(--line2);
  border-radius: 10px;
  overflow: hidden;
}

.stats3 > div {
  padding: 12px 14px;
  border-right: 1px solid var(--line2);
}

.stats3 > div:last-child {
  border: 0;
}

.stats3 small {
  display: block;
  color: var(--m);
  font-size: 11.5px;
}

.stats3 b {
  font-size: 18px;
}

.hd-a {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hd-a .btn {
  flex: 1;
  min-width: 120px;
}

.ur {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line2);
  color: var(--t);
}

.ur:last-child {
  border: 0;
}

.ur > div:nth-child(2) {
  flex: 1;
  min-width: 0;
}

.ur small {
  display: block;
  color: var(--m);
}

.ur > i {
  font-style: normal;
  color: var(--m);
  font-size: 20px;
}

.mch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mchip {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
}

.mchip i {
  font-style: normal;
  opacity: .85;
}

.mchip.p {
  background: var(--gbg);
  color: var(--gt);
}

.mchip.u {
  background: var(--wbg);
  color: var(--wt);
}

.kv {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
}

.kv span {
  color: var(--m);
}

.vt2 {
  display: grid;
  gap: 6px;
}

.acg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 900px;
}

.prof {
  display: flex;
  gap: 14px;
  align-items: center;
}

.prof small {
  color: var(--m);
}

.tool {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line2);
  border-radius: 10px;
  margin-top: 8px;
  color: var(--t);
  background: var(--soft2);
}

.tool:hover {
  border-color: var(--p);
}

.tool > i {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 18px;
  background: var(--pl);
  flex: none;
}

.tool small {
  display: block;
  color: var(--m);
}

.tool > span {
  margin-left: auto;
  color: var(--m);
  font-size: 22px;
}

.res {
  margin-top: 14px;
  padding: 12px;
  border-radius: 8px;
  background: var(--gbg);
  color: var(--gt);
  font-weight: 700;
  text-align: center;
}

.fgt {
  display: block;
  text-align: right;
  font-size: 13px;
  margin: -6px 0 12px;
  cursor: pointer;
  font-weight: 600;
}

.utr {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--wbg);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 12px;
}

.utr div {
  flex: 1;
  min-width: 0;
}

.utr small {
  display: block;
  color: var(--wt);
}

.utr b {
  font-size: 18px;
  word-break: break-all;
}

.pv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.pv small {
  display: block;
  color: var(--m);
  font-size: 11.5px;
}

.pv b {
  word-break: break-word;
}

.pimg {
  width: 100%;
  max-height: 46vh;
  object-fit: contain;
  background: var(--soft);
  border-radius: 10px;
  display: block;
}

.pq {
  display: flex;
  justify-content: center;
  margin: 8px 0;
}

.pq canvas,
.pq img {
  border-radius: 8px;
  border: 6px solid #fff;
}

.wn {
  display: none;
  background: var(--wbg);
  color: var(--wt);
  border-radius: 8px;
  padding: 10px 12px;
  margin: 6px 0 10px;
  font-size: 13.5px;
}

.vars {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 10px;
}

.vc {
  display: inline-block;
  background: var(--pl);
  color: var(--pt);
  font-family: ui-monospace, Menlo, monospace;
  font-size: 12.5px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
}

.vt {
  display: grid;
  gap: 6px;
  margin: 6px 0 14px;
}

.vr {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--soft2);
  cursor: pointer;
  flex-wrap: wrap;
}

.vr small {
  color: var(--m);
}

.vr em {
  color: var(--wt);
  font-style: normal;
}

.cdd {
  position: relative;
}

.cdp {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: -8px 0 14px;
  max-height: 230px;
  overflow: auto;
  background: var(--card);
  padding: 6px;
}

.cdp[hidden] {
  display: none;
}

.cda {
  display: flex;
  justify-content: space-between;
  padding: 6px 8px;
  font-size: 13px;
  font-weight: 600;
}

.cda a {
  cursor: pointer;
}

.cdp h5 {
  margin: 8px 8px 2px;
  color: var(--m);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.co {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 8px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--t);
  font-weight: 500;
  margin: 0;
}

.co:hover {
  background: var(--soft2);
}

.co input {
  width: 18px;
  height: 18px;
  padding: 0;
  margin: 0;
  accent-color: var(--p);
  flex: none;
  box-shadow: none;
}

.tcr {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 14px;
  cursor: pointer;
  font-size: 13.5px;
  background: var(--soft2);
}

.tcr.on {
  border-color: var(--p);
  background: var(--pl);
}

.tcr .ck {
  width: 22px;
  height: 22px;
}

.tcr.on .ck {
  background: var(--p);
  border-color: var(--p);
}

.tcs {
  max-height: 50vh;
  overflow-y: auto;
  padding-right: 6px;
  font-size: 14px;
  color: var(--t2);
}

.tcs h4,
.tcs2 h4 {
  margin: 14px 0 4px;
}

.tch {
  text-align: center;
  color: var(--m);
  font-size: 12.5px;
  margin: 10px 0;
}

.tcs2 p {
  margin: 0 0 6px;
}

/* modal + dropdown */
.bd {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(15, 23, 42, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fi .15s;
}

.bd.out {
  opacity: 0;
  transition: opacity .15s;
}

.sheet {
  position: relative;
  width: 100%;
  max-height: 92vh;
  overflow: auto;
  overflow-x: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  animation: pop .2s ease;
}

.sheet h3 {
  margin-bottom: 14px;
  font-size: 18px;
  padding-right: 36px;
}

.x,
.x2 {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: var(--soft);
  color: var(--m);
  cursor: pointer;
}

.ddb {
  width: 100%;
  height: 42px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  margin: 4px 0 14px;
  color: var(--t);
  cursor: pointer;
  text-align: left;
  outline: 0;
}

.ddb .ph {
  color: var(--m2);
}

.ddb span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ddb svg {
  flex: none;
  color: var(--m);
}

.ddp {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(15, 23, 42, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fi .15s;
}

.ddp.out {
  opacity: 0;
  transition: opacity .15s;
}

.ddc {
  width: 100%;
  max-width: 420px;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  animation: pop .2s ease;
}

.ddh {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line2);
  font-weight: 700;
}

.ddh .x2 {
  top: 50%;
  margin-top: -16px;
}

.dds {
  margin: 12px 14px 4px;
  width: auto;
  flex: none;
}

.ddl {
  overflow-y: auto;
  padding: 6px;
}

.ddo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  cursor: pointer;
}

.ddo:hover {
  background: var(--soft);
}

.ddo i {
  font-style: normal;
  opacity: 0;
  color: var(--p);
  font-weight: 700;
}

.ddo.on {
  background: var(--pl);
  color: var(--pt);
  font-weight: 600;
}

.ddo.on i {
  opacity: 1;
}

#toasts {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: #0f172a;
  color: #fff;
  padding: 11px 16px;
  border-radius: 8px;
  animation: ti .25s;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .25);
}

.toast.ok {
  background: #15803d;
}

.toast.err {
  background: #b91c1c;
}

.toast.out {
  opacity: 0;
  transition: opacity .3s;
}

/* public site + login */
.pub {
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--bg);
}

.pn {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: calc(10px + env(safe-area-inset-top)) 5vw 10px;
  background: var(--hdr);
}

.pl {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 16px;
  color: #fff;
}

.pn nav {
  display: flex;
  gap: 6px;
  align-items: center;
}

.pn nav a:not(.btn) {
  padding: 8px 12px;
  font-weight: 500;
  color: #dbe7ff;
  border-radius: 8px;
}

.pn nav a:not(.btn):hover {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

.pn .btn.sm {
  background: #fff;
  color: var(--hdr);
}

.pn .btn.sm:hover {
  background: #e8eefc;
}

.pn .tgl {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .22);
  color: #fff;
}

.pc {
  max-width: 1000px;
  margin: auto;
  padding: 20px 5vw 40px;
}

.pc.wide {
  max-width: 1180px;
}

.hh {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 30px;
  align-items: center;
  padding: 44px 40px;
  border-radius: 16px;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
}

.hh > * {
  position: relative;
}

.pill {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  background: rgba(255, 255, 255, .12);
  color: #dbe7ff;
}

.hh h1 {
  color: #fff;
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  line-height: 1.08;
  margin: 16px 0 12px;
}

.hh h1 em {
  display: block;
  font-style: normal;
  color: #93c5fd;
  font-size: .58em;
  margin-top: 6px;
  font-weight: 600;
}

.hh p {
  color: #c7d7f5;
  font-size: 16.5px;
  max-width: 480px;
}

.ctas {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.hh .btn:not(.ghost) {
  background: #fff;
  color: var(--navy);
}

.hh .btn:not(.ghost):hover {
  background: #e8eefc;
}

.hh .btn.ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .35);
}

.trust {
  display: flex;
  gap: 8px 16px;
  flex-wrap: wrap;
  color: #9db6e4;
  font-size: 13px;
  font-weight: 500;
}

.hh-r {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 340px;
}

.phone {
  width: 230px;
  background: #fff;
  border-radius: 30px;
  padding: 16px;
  color: #0f172a;
  border: 6px solid #1e3a8a;
  animation: flt 5s ease-in-out infinite;
}

.phone .pt {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 12px;
  opacity: 1;
  fill: none;
  animation: none;
}

.pbal {
  background: #2563eb;
  color: #fff;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pbal small {
  opacity: .85;
}

.pbal b {
  font-size: 26px;
}

.pbars {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 66px;
  margin: 14px 2px;
}

.pbars i {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: #93c5fd;
  animation: gh .8s both;
}

.ppay {
  background: #2563eb;
  color: #fff;
  text-align: center;
  border-radius: 10px;
  padding: 10px;
  font-weight: 700;
}

.fc {
  position: absolute!important;
  background: #fff;
  color: #0f2a5c;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 12.5px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
  animation: flt 4s ease-in-out infinite;
}

.f1 {
  left: 0;
  top: 18%;
}

.f2 {
  right: 0;
  top: 44%;
  animation-delay: -1.5s;
}

.f3 {
  left: 6%;
  bottom: 10%;
  animation-delay: -3s;
}

.sec {
  margin: 44px 0;
}

.sec h2 {
  text-align: center;
  font-size: clamp(1.4rem, 4vw, 2rem);
  margin-bottom: 20px;
}

.fg {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}

.fg .ic {
  width: 46px;
  height: 46px;
  font-size: 22px;
  margin-bottom: 10px;
  background: var(--pl);
}

.fg h3 {
  font-size: 16px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  counter-reset: s;
}

.stp {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
}

.stp:before {
  counter-increment: s;
  content: counter(s);
  position: absolute;
  right: 14px;
  top: -4px;
  font-size: 72px;
  font-weight: 800;
  color: var(--soft3);
}

.stp > * {
  position: relative;
}

.ctab {
  text-align: center;
  padding: 40px 20px;
  border-radius: 16px;
  background: var(--p);
  color: #fff;
}

.ctab h2 {
  color: #fff;
}

.ctab p {
  color: #dbe7ff;
}

.ctab .btn {
  background: #fff;
  color: var(--navy);
}

footer {
  text-align: center;
  color: var(--m);
  padding: 20px;
  font-size: 13px;
}

.pf-l {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 6px;
}

.lgn {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  display: grid;
  place-items: center;
  padding: 20px;
  background: var(--navy);
}

.orb,
.hh-l {
  display: none;
}

.lc {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  width: min(940px, 100%);
  border-radius: 16px;
  overflow: hidden;
  background: var(--card);
  animation: pg .3s both;
  
    box-shadow: 0 0px 10px -3px rgba(255, 255, 255);
}

.lhero {
  padding: 44px 40px;
  color: #fff;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lhero svg {
  margin-bottom: 14px;
}

.lhero h1 {
  color: #fff;
  font-size: 30px;
}

.lhero p {
  color: #c7d7f5;
}

.lhero ul {
  padding: 0;
  margin: 14px 0 0;
}

.lhero li {
  list-style: none;
  padding: 7px 0;
  color: #dbe7ff;
}

.lform {
  background: var(--card);
  padding: 44px 38px;
}

.lform h2 {
  font-size: 24px;
}

.lform > p {
  color: var(--m);
  margin: 2px 0 14px;
}

.lform > a {
  display: block;
  text-align: center;
  margin-top: 14px;
  font-size: 13px;
}

.tgl.fl {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .25);
  color: #fff;
}

/* ---- mobile ---- */
@media (max-width: 800px) {
  aside {
    display: none;
  }
  .top {
    height: calc(56px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) 14px 0;
  }
  #view {
    padding: 14px 14px 110px;
  }
  .lh.sv {
    top: -14px;
  }
  .bn {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 15;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: var(--card);
    border-top: 1px solid var(--line);
  }
  .bn a {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 2px;
    font-size: 10.5px;
    font-weight: 600;
    color: var(--m);
  }
  .bn a b {
    display: grid;
    place-items: center;
  }
  .bn a.on {
    color: var(--p);
  }
  .bn .ind {
    left: 0;
    top: 4px;
    height: calc(100% - 8px);
  }
  .fab {
    right: 14px;
    bottom: 78px;
  }
  .selbar {
    width: auto;
    left: 12px;
    right: 12px;
    bottom: 78px;
    justify-content: space-between;
  }
  .banner {
    padding: 18px;
  }
  .gauge {
    width: 80px;
    height: 80px;
  }
  .gauge b {
    font-size: 18px;
  }
  .cols,
  .cols2,
  .acg {
    grid-template-columns: 1fr;
  }
  .kpi:nth-child(2n) {
    border-right: 0;
  }
  .kpi:nth-child(-n+2) {
    border-bottom: 1px solid var(--line2);
  }
  .kpi {
    padding: 13px;
  }
  .kg {
    grid-template-columns: repeat(2, 1fr);
  }
  .kpi b {
    font-size: 19px;
  }
  .apg {
    grid-template-columns: 1fr;
  }
  .hc {
    padding: 12px 10px;
    gap: 10px;
  }
  .hd {
    padding: 14px;
  }
  .hd-n h2 {
    font-size: 19px;
  }
  .stats3 b {
    font-size: 15px;
  }
  .ma2 {
    width: 100%;
  }
  .ma2 .btn {
    flex: 1;
  }
  .tile small {
    display: none;
  }
  .tile {
    padding: 12px 6px;
  }
  .bd,
  .ddp {
    padding: 0;
    align-items: flex-end;
  }
  .sheet,
  .ddc {
    max-width: 100%!important;
    border-radius: 16px 16px 0 0;
    border-bottom: 0;
    animation: sl .25s ease;
  }
  .sheet {
    padding-bottom: calc(22px + env(safe-area-inset-bottom));
  }
  .ddc {
    max-height: 75vh;
  }
  .pn {
    padding: calc(10px + env(safe-area-inset-top)) 14px 10px;
  }
  .pn nav a:not(.btn) {
    display: none;
  }
  .pc {
    padding: 12px 14px 28px;
  }
  .sec {
    margin: 30px 0;
  }
  .hh {
    grid-template-columns: 1fr;
    padding: 26px 18px 0;
    text-align: center;
    gap: 4px;
  }
  .hh p {
    margin: auto;
  }
  .ctas,
  .trust {
    justify-content: center;
  }
  .ctas {
    flex-direction: column;
    margin: 16px 0 14px;
  }
  .ctas .btn {
    width: 100%;
  }
  .hh-r {
    min-height: 270px;
    overflow: hidden;
    align-items: flex-start;
    margin: 6px -18px 0;
    padding-top: 12px;
  }
  .phone {
    width: 206px;
    border-width: 5px;
    margin-bottom: -70px;
  }
  .fc {
    font-size: 11px;
    padding: 6px 10px;
  }
  .f1 {
    left: 6%;
    top: 14%;
  }
  .f2 {
    right: 6%;
    top: 46%;
  }
  .f3 {
    display: none;
  }
  .fg {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .fg .card {
    padding: 14px;
  }
  .fg .ic {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  .fg h3 {
    font-size: 14px;
  }
  .fg p {
    font-size: 12.5px;
  }
  .ctab {
    padding: 30px 16px;
  }
  .lgn {
    display: block;
    padding: 0;
  }
  .lc {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    width: 100%;
    border-radius: 0;
    background: transparent;
  }
  .lhero {
    flex: none;
    align-items: center;
    text-align: center;
    padding: 52px 22px 24px;
  }
  .lhero ul {
    display: none;
  }
  .lhero svg {
    width: 54px;
    height: 54px;
  }
  .lhero h1 {
    font-size: 25px;
  }
  .lform {
    flex: 1;
    border-radius: 20px 20px 0 0;
    padding: 26px 20px calc(24px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 800px) {
  .ddp.has-s {
    padding: 8px;
    align-items: flex-start;
  }
  .ddp.has-s .ddc {
    height: 100%;
    max-height: none;
    border-radius: 16px;
  }
}

.ddl {
  min-height: 150px;
}

@media (max-width: 380px) {
  .fg {
    grid-template-columns: 1fr;
  }
  .hh h1 {
    font-size: 1.85rem;
  }
}

/* society name chip in the top bar (a button when the person has more than one society) */
.soc {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  max-width: 230px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
}

.soc em,
.soc i {
  flex: none;
  font-style: normal;
}

.soc i {
  opacity: .8;
}

.soc span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

button.soc {
  cursor: pointer;
}

button.soc:hover {
  background: rgba(255, 255, 255, .22);
}

@media (max-width: 800px) {
  .soc {
    max-width: 150px;
    padding: 0 10px;
  }
}

@media (max-width: 380px) {
  .soc {
    max-width: 104px;
  }
  .soc em {
    display: none;
  }
}

@media (max-width: 800px) {
  .top > div:first-child {
    min-width: 0;
    flex: 1;
  }
  .top > div:first-child small {
    display: none;
  }
  .top h2 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .top-r {
    flex: none;
    gap: 8px;
  }
}

/* super admin society filter bar */
.sfl {
  flex: none;
  align-self: center;
  padding: 0 4px;
  color: var(--m);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- person cards (Help Desk, Admins, flat requests): stacked, never overlap on a phone ---------- */
.pcl {
  display: grid;
  gap: 12px;
}

.pc {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--line2);
  border-radius: 16px;
  min-width: 0;
  animation: up .3s both;
}

.pc.blk {
  opacity: .72;
}

.pc-h {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.pc-t {
  flex: 1;
  min-width: 0;
}

.pc-t b,
.pc-t small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pc-t b {
  font-size: 15px;
  color: var(--n2);
}

.pc-t small {
  color: var(--m);
  font-size: 12.5px;
}

.pc-s {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip2 {
  display: inline-block;
  max-width: 100%;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--t2);
  font-size: 12.5px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.pc-a {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line2);
}

.pc-a .btn {
  flex: 0 1 auto;
}

.btn.dg {
  color: var(--rt);
}

@media (max-width: 480px) {
  .pc-a .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* ---------- opened from Society Details: back link + the society name (no society picker) ---------- */
.ctxb {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.ctxb .back {
  margin: 0;
}

.ctxn {
  max-width: 100%;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--pl);
  color: var(--pt);
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- Society Details ---------- */
.sd-hero {
  margin-bottom: 14px;
  padding: 18px;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(135deg, #0f2a5c, #1d4ed8);
  box-shadow: 0 10px 30px -12px rgba(29, 78, 216, .55);
}

.sd-ht {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sd-av {
  flex: none;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .25);
  font-size: 20px;
  font-weight: 800;
}

.sd-hn {
  flex: 1;
  min-width: 0;
}

.sd-hn h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.sd-hn small {
  display: block;
  margin-top: 3px;
  opacity: .8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sd-ed {
  flex: none;
  background: rgba(255, 255, 255, .14) !important;
  border-color: rgba(255, 255, 255, .3) !important;
  color: #fff !important;
}

.sd-hs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.sd-hs div {
  min-width: 0;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .1);
}

.sd-hs b {
  display: block;
  font-size: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sd-hs span {
  font-size: 11.5px;
  opacity: .78;
}

.sd-qa {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.sd-qa::-webkit-scrollbar {
  display: none;
}

.sd-qa a {
  flex: none;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--t2);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}

.sd-qa a b {
  margin-left: 4px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--rbg);
  color: var(--rt);
  font-size: 12px;
}

.sd-g {
  margin-bottom: 14px;
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--line2);
  border-radius: 18px;
}

.sd-g h4 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--t2);
}

.sd-g h4 a {
  color: var(--p);
  font-size: 12.5px;
  font-weight: 600;
}

.sd-tg {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
}

.sd-t {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border-radius: 14px;
  background: var(--soft2);
  border: 1px solid var(--line2);
  color: inherit;
  transition: transform .15s, border-color .15s, background .15s;
}

.sd-t:hover,
.sd-t:active {
  transform: translateY(-1px);
  border-color: var(--p);
  background: var(--pl);
}

.sd-t i {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--card);
  font-style: normal;
  font-size: 19px;
}

.sd-t div {
  flex: 1;
  min-width: 0;
}

.sd-t b {
  display: block;
  font-size: 20px;
  color: var(--n2);
  line-height: 1.2;
}

.sd-t b em {
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  color: var(--m);
}

.sd-t span {
  display: block;
  color: var(--m);
  font-size: 12.5px;
}

.sd-t s {
  text-decoration: none;
  color: var(--m2);
  font-size: 22px;
}

.sd-t.warn i {
  background: var(--wbg);
}

.sd-kv {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
}

.sd-kv div {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--soft2);
  min-width: 0;
}

.sd-kv span {
  display: block;
  color: var(--m);
  font-size: 12px;
}

.sd-kv b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--n2);
}

@media (max-width: 520px) {
  .sd-hs {
    grid-template-columns: repeat(2, 1fr);
  }
  .sd-tg {
    grid-template-columns: 1fr;
  }
  .sd-hero {
    padding: 14px;
  }
}

/* ---------- flat requests notice on the dashboard ---------- */
.rq-note {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--wbg);
  color: var(--wt);
  font-weight: 600;
}

.rq-note span {
  margin-left: auto;
  color: var(--p);
}

/* ---------- collection report ---------- */
.rp-f {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

#rp_q {
  margin: 10px 0 14px;
  flex-wrap: wrap;
}

.rp-k {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.kp {
  min-width: 0;
  padding: 14px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line2);
}

.kp span {
  display: block;
  color: var(--m);
  font-size: 12.5px;
  font-weight: 600;
}

.kp b {
  display: block;
  margin: 4px 0;
  font-size: 22px;
  color: var(--n2);
}

.kp small {
  color: var(--m);
  font-size: 12px;
}

.kp.k-c {
  background: var(--gbg);
}

.kp.k-o {
  background: var(--pl);
}

.rp-s {
  margin-bottom: 16px;
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--line2);
  border-radius: 18px;
}

.rp-s h4 {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
  font-size: 15px;
}

.rp-s h4 em {
  font-style: normal;
  color: var(--p);
}

.rp-d {
  margin-bottom: 10px;
  border: 1px solid var(--line2);
  border-radius: 14px;
  overflow: hidden;
}

.rp-dh {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px;
  padding: 9px 12px;
  background: var(--soft);
  font-size: 13px;
}

.rp-r {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-top: 1px solid var(--line2);
}

.rp-i {
  flex: 1 1 160px;
  min-width: 0;
}

.rp-i b,
.rp-i small {
  display: block;
  overflow-wrap: anywhere;
}

.rp-i small {
  color: var(--m);
  font-size: 12.5px;
}

.rp-a {
  min-width: 70px;
  text-align: right;
  color: var(--n2);
}

@media (max-width: 520px) {
  .rp-k {
    grid-template-columns: 1fr;
  }
  .kp b {
    font-size: 20px;
  }
}

.sd-hn h2 {
  color: #fff;
}

.sd-t u {
  text-decoration: none;
}

/* ---------- v24 ---------- */
/* Admin / Help Desk / flat-request cards: fill the page width (they used to shrink to their content on a wide screen) */
.pcl {
  width: 100%;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr));
  align-items: start;
}

.pc {
  width: 100%;
}

/* Export (Print / PDF / CSV) buttons */
.xg {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.xg .btn {
  flex: 1 1 110px;
  justify-content: center;
}

/* receipt preview frame */
.rcf {
  display: block;
  width: 100%;
  min-height: 300px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

textarea.code {
  width: 100%;
  margin-top: 10px;
  font: 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre;
  overflow: auto;
  tab-size: 2;
}

/* ---------- flat requests: one full-width list, a row per request (no boxed cards, no empty gaps) ---------- */
.rql {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--line2);
  border-radius: 16px;
  overflow: hidden;
}

.rqr {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-top: 1px solid var(--line2);
}

.rqr:first-child {
  border-top: 0;
}

.rq-p {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 260px;
  min-width: 0;
}

.rq-c {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1 1 240px;
  min-width: 0;
}

.rq-a {
  display: flex;
  gap: 8px;
  flex: none;
}

@media (max-width: 700px) {
  .rqr {
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px;
  }
  .rq-p,
  .rq-c,
  .rq-a {
    flex: 1 1 100%;
  }
  .rq-a .btn {
    flex: 1;
    justify-content: center;
  }
}
