/* =====================================================================
   SiTanam — gaya tampilan web
   ===================================================================== */
@font-face { font-family: PJS; font-weight: 400; font-display: swap; src: url('/vendor/fonts/plus-jakarta-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: PJS; font-weight: 500; font-display: swap; src: url('/vendor/fonts/plus-jakarta-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: PJS; font-weight: 600; font-display: swap; src: url('/vendor/fonts/plus-jakarta-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: PJS; font-weight: 700; font-display: swap; src: url('/vendor/fonts/plus-jakarta-sans-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: PJS; font-weight: 800; font-display: swap; src: url('/vendor/fonts/plus-jakarta-sans-latin-800-normal.woff2') format('woff2'); }

:root {
  --forest: #1E4636; --forest-2: #163628; --leaf: #3C8D5E; --leaf-t: #E6F1EA; --leaf-ring: #D3E9DA;
  --bg: #F3F5F1; --sf: #FFFFFF; --ink: #16221C; --ink-2: #3F4B44; --mute: #64716A; --faint: #8D978F;
  --line: #DCE2DC; --line2: #E9EDE8; --soft: #F7F9F6; --track: #ECEFEB;
  --suhu: #C8621A; --suhu-t: #FBEFE6;
  --tanah: #2B78B5; --tanah-t: #E8F1F9;
  --cahaya: #C99412; --cahaya-t: #FBF4DF; --cahaya-ink: #8A6508;
  --tangki: #258A80; --tangki-t: #E4F3F1;
  --warn: #B4540A; --warn-t: #FDF0E3; --warn-ink: #7A3A08;
  --bad: #B42318; --bad-t: #FCECEA; --bad-ink: #8A1C13;
  --zone-ok: #CFE6D7; --zone-hi: #F6D9C3;
  --radius: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: PJS, system-ui, sans-serif; color: var(--ink); background: var(--bg);
  font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
svg.lucide { flex: none; display: block; stroke-width: 1.75; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--leaf); outline-offset: 2px; }

/* ---------------------------------------------------------------- shell */
.app { display: flex; min-height: 100vh; }
.side {
  width: 236px; flex: none; background: var(--sf); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 22px 16px; position: sticky; top: 0; height: 100vh;
}
.logo { display: flex; align-items: center; gap: 11px; padding: 0 8px 26px; }
.mark { width: 36px; height: 36px; border-radius: 9px; background: var(--forest); color: #fff; display: grid; place-items: center; flex: none; }
.mark svg { width: 20px; height: 20px; stroke-width: 2; }
.logo b { font-size: 18px; font-weight: 800; letter-spacing: -.3px; display: block; line-height: 1.1; }
.logo span { font-size: 12px; color: var(--mute); }
.nav a {
  display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-radius: 7px;
  color: var(--ink-2); font-weight: 500; margin-bottom: 2px; width: 100%;
}
.nav a svg { width: 19px; height: 19px; }
.nav a:hover { background: var(--soft); }
.nav a.on { background: var(--leaf-t); color: var(--forest); font-weight: 700; }
.nav .cnt {
  margin-left: auto; background: var(--bad); color: #fff; font-size: 11px; font-weight: 700; border-radius: 9px;
  height: 18px; min-width: 18px; padding: 0 5px; display: grid; place-items: center;
}
.navlbl { font-size: 12px; color: var(--faint); padding: 18px 12px 8px; font-weight: 600; }
.me { margin-top: auto; border-top: 1px solid var(--line2); padding: 16px 8px 0; display: flex; align-items: center; gap: 10px; min-width: 0; }
.av { width: 36px; height: 36px; border-radius: 50%; background: #D8E6DC; color: var(--forest); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.me div { min-width: 0; }
.me b { font-size: 13px; display: block; }
.me span { font-size: 12px; color: var(--mute); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.top {
  min-height: 72px; display: flex; align-items: center; gap: 14px; padding: 0 32px;
  border-bottom: 1px solid var(--line); background: var(--sf); position: sticky; top: 0; z-index: 20;
}
.top h1 { font-size: 22px; font-weight: 700; letter-spacing: -.3px; margin-right: auto; }
.ib.menu-btn { display: none; }
.content { padding: 28px 32px 40px; flex: 1; }

.devsel { position: relative; }
.devsel > button {
  display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px 0 14px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--sf); text-align: left; min-width: 210px;
}
.devsel > button:hover { border-color: #C5CEC6; }
.devsel b { font-size: 13px; display: block; line-height: 1.2; }
.devsel small { font-size: 12px; color: var(--mute); display: block; }
.devsel .chev { margin-left: auto; width: 16px; height: 16px; }
.menu {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 100%; width: max-content; max-width: 320px;
  background: var(--sf); border: 1px solid var(--line); border-radius: 9px; padding: 6px; z-index: 40;
  box-shadow: 0 10px 30px rgba(22, 34, 28, .12);
}
.menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 6px; text-align: left; }
.menu button:hover, .menu button.on { background: var(--soft); }
.menu button.on b { color: var(--forest); }
.menu .add { border-top: 1px solid var(--line2); margin-top: 4px; border-radius: 0 0 6px 6px; color: var(--forest); font-weight: 600; }

.conn { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--leaf); font-weight: 600; white-space: nowrap; }
.conn.off { color: var(--bad); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 3px var(--leaf-ring); flex: none; }
.conn.off .dot { background: var(--bad); box-shadow: 0 0 0 3px #F6D4D0; }
.ib {
  width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 8px; display: grid; place-items: center;
  position: relative; color: var(--ink-2); flex: none; background: var(--sf);
}
.ib svg { width: 19px; height: 19px; }
.ib i { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); border: 2px solid #fff; }

/* ------------------------------------------------------------ building blocks */
.panel { background: var(--sf); border: 1px solid var(--line); border-radius: var(--radius); }
.row { display: flex; align-items: center; }
.muted { color: var(--mute); }
.small { font-size: 12px; }
.grow { flex: 1; min-width: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px;
  border-radius: 7px; font-weight: 600; font-size: 14px; border: 1px solid var(--line); background: var(--sf);
  color: var(--ink); white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn:hover { border-color: #C5CEC6; background: var(--soft); }
.btn.pri { background: var(--forest); border-color: var(--forest); color: #fff; }
.btn.pri:hover { background: var(--forest-2); }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.block { width: 100%; }
.link { color: var(--forest); font-weight: 600; font-size: 13px; }
.link:hover { text-decoration: underline; }

.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 12px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill.ok { background: var(--tangki-t); color: var(--tangki); }
.pill.warn { background: var(--warn-t); color: var(--warn); }
.pill.bad { background: var(--bad-t); color: var(--bad); }
.pill.info { background: var(--tanah-t); color: var(--tanah); }
.pill.manual { background: var(--cahaya-t); color: var(--cahaya-ink); }
.pill.auto { background: var(--leaf-t); color: var(--forest); }

.switch { width: 44px; height: 24px; border-radius: 12px; background: #C9D1CB; position: relative; flex: none; transition: background .15s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .15s; }
.switch.on { background: var(--leaf); }
.switch.on::after { left: 23px; }
.switch:disabled { opacity: .45; cursor: not-allowed; }
.switch.lg { width: 56px; height: 30px; border-radius: 15px; }
.switch.lg::after { width: 24px; height: 24px; }
.switch.lg.on::after { left: 29px; }

.seg { display: inline-flex; background: #EDF0EC; border-radius: 8px; padding: 3px; gap: 2px; }
.seg button { height: 32px; padding: 0 14px; border-radius: 6px; display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--mute); border: 1px solid transparent; }
.seg button svg { width: 16px; height: 16px; }
.seg button.on { background: #fff; color: var(--forest); border-color: var(--line); }
.seg.big button { height: 40px; padding: 0 20px; font-size: 14px; }

.chip { white-space: nowrap; height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 7px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; background: var(--sf); }
.chip svg { width: 15px; height: 15px; }
.chip:hover { border-color: #C5CEC6; }
.chip.on { border-color: var(--forest); background: var(--leaf-t); color: var(--forest); }
.chip:disabled { opacity: .5; cursor: not-allowed; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }

.ico { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; flex: none; }
.ico svg { width: 17px; height: 17px; }
.ico.lg { width: 46px; height: 46px; border-radius: 10px; }
.ico.lg svg { width: 22px; height: 22px; }
.ico.md { width: 40px; height: 40px; border-radius: 9px; }
.ico.md svg { width: 20px; height: 20px; }
.t-suhu { background: var(--suhu-t); color: var(--suhu); }
.t-tanah { background: var(--tanah-t); color: var(--tanah); }
.t-cahaya { background: var(--cahaya-t); color: var(--cahaya); }
.t-tangki { background: var(--tangki-t); color: var(--tangki); }
.t-warn { background: var(--warn-t); color: var(--warn); }
.t-bad { background: var(--bad-t); color: var(--bad); }
.t-off { background: #EFF1EE; color: var(--mute); }
.t-leaf { background: var(--leaf-t); color: var(--forest); }

.note { display: flex; gap: 12px; align-items: flex-start; border-radius: 8px; padding: 12px 16px; font-size: 13px; }
.note svg { width: 18px; height: 18px; margin-top: 1px; }
.note.warn { background: var(--warn-t); color: var(--warn-ink); }
.note.bad { background: var(--bad-t); color: var(--bad-ink); }
.note.info { background: var(--tanah-t); color: #1D4F78; }

.ph { display: flex; align-items: center; gap: 12px; padding: 18px 22px 14px; }
.ph h3 { font-size: 16px; font-weight: 700; }
.ph .sub { font-size: 13px; color: var(--mute); }

/* -------------------------------------------------------------- forms */
.lbl { font-size: 13px; font-weight: 600; margin: 16px 0 7px; display: block; }
.field {
  height: 42px; border: 1px solid var(--line); border-radius: 7px; display: flex; align-items: center; padding: 0 13px;
  gap: 10px; background: var(--sf);
}
.field svg { width: 17px; height: 17px; color: var(--mute); }
.field input { border: 0; outline: 0; background: none; flex: 1; min-width: 0; height: 100%; font-size: 14px; }
.field input::placeholder { color: var(--faint); }
.field:focus-within { border-color: var(--forest); box-shadow: 0 0 0 3px #DCEBE1; }
.field.err { border-color: var(--bad); }
.hint { font-size: 12px; color: var(--mute); margin-top: 7px; }
.form-error { display: none; margin-top: 16px; }
.form-error.show { display: flex; }
.check { display: flex; gap: 10px; align-items: center; font-size: 13px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--forest); }

/* -------------------------------------------------------------- tables */
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; font-weight: 600; color: var(--mute); font-size: 12px; padding: 10px 22px; background: var(--soft); border-top: 1px solid var(--line2); border-bottom: 1px solid var(--line2); white-space: nowrap; }
td { padding: 12px 22px; border-bottom: 1px solid var(--line2); }
tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }
.empty { padding: 36px 22px; text-align: center; color: var(--mute); }

/* ------------------------------------------------------------ beranda */
.hero { display: flex; align-items: center; gap: 20px; padding: 22px 24px; margin-bottom: 20px; }
.hero h2 { font-size: 20px; font-weight: 700; letter-spacing: -.2px; }
.hero p { color: var(--mute); margin-top: 2px; }
.hero .modebox { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.sn { padding: 18px 20px; }
.sn .h { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 13px; color: var(--ink-2); }
.sn .h .pill { margin-left: auto; }
.sn .v { font-size: 38px; font-weight: 700; letter-spacing: -1.2px; margin: 14px 0; line-height: 1; white-space: nowrap; }
.sn .v small { font-size: 16px; font-weight: 600; letter-spacing: 0; color: var(--mute); margin-left: 4px; }
.sn .cap { font-size: 12px; color: var(--mute); margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line2); }
.rb { position: relative; height: 8px; border-radius: 4px; background: var(--track); }
.rb .z { position: absolute; top: 0; height: 100%; border-radius: 4px; }
.rb .mk { position: absolute; top: -5px; width: 4px; height: 18px; border-radius: 2px; background: var(--ink); border: 2px solid #fff; box-sizing: content-box; margin-left: -4px; transition: left .4s; }
.rb-l { position: relative; height: 14px; font-size: 11px; color: var(--faint); margin-top: 7px; }
.rb-l span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.rb-l span:first-child { transform: none; }
.rb-l span:last-child { transform: translateX(-100%); }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tabs button { font-size: 12px; font-weight: 600; color: var(--mute); height: 30px; padding: 0 11px; border-radius: 6px; }
.tabs button.on { background: var(--tanah-t); color: var(--tanah); }
.legend { display: flex; gap: 18px; padding: 0 22px; font-size: 12px; color: var(--mute); flex-wrap: wrap; }
.legend span { display: flex; align-items: center; gap: 7px; }
.chart-box { position: relative; height: 290px; padding: 10px 18px 14px 10px; }
.act { display: flex; align-items: center; gap: 14px; padding: 16px 22px; border-top: 1px solid var(--line2); }
.act b { display: block; font-size: 14px; }
.act span { font-size: 12px; color: var(--mute); }
.act .switch { margin-left: auto; }
.nt { display: flex; gap: 12px; padding: 13px 22px; border-top: 1px solid var(--line2); }
.nt b { font-size: 13px; font-weight: 600; display: block; line-height: 1.35; }
.nt span { font-size: 12px; color: var(--mute); }
.unread-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--bad); margin-top: 6px; flex: none; }

/* ------------------------------------------------------------ kontrol */
.modep { display: flex; align-items: center; gap: 22px; padding: 20px 24px; margin-bottom: 20px; flex-wrap: wrap; }
.modep h3 { font-size: 16px; font-weight: 700; }
.modep p { color: var(--mute); font-size: 13px; margin-top: 2px; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
.ctl { padding: 22px 24px; }
.ctl .t { display: flex; align-items: center; gap: 14px; }
.ctl .t h3 { font-size: 17px; font-weight: 700; }
.ctl .t span { font-size: 13px; color: var(--mute); }
.ctl .t .switch { margin-left: auto; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 20px 0; border: 1px solid var(--line2); border-radius: 8px; }
.stats div { padding: 12px 16px; }
.stats div + div { border-left: 1px solid var(--line2); }
.stats small { font-size: 12px; color: var(--mute); display: block; }
.stats b { font-size: 18px; font-weight: 700; }
.slider { margin: 22px 0 8px; }
.slider .top2 { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 14px; }
.slider .top2 b { font-size: 30px; font-weight: 700; letter-spacing: -.8px; line-height: 1; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 4px; background: linear-gradient(to right, var(--cahaya) var(--p, 0%), var(--track) var(--p, 0%)); outline: none; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--cahaya); cursor: pointer; }
.range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--cahaya); cursor: pointer; }
.range:disabled { opacity: .5; }
.locked { margin-top: 18px; }
.fld { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line2); }
.fld .ico { width: 34px; height: 34px; border-radius: 8px; }
.fld b { font-size: 14px; font-weight: 600; display: block; }
.fld span { font-size: 12px; color: var(--mute); }
.inp { margin-left: auto; display: flex; align-items: center; height: 38px; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; flex: none; }
.inp:focus-within { border-color: var(--forest); box-shadow: 0 0 0 3px #DCEBE1; }
.inp i { font-style: normal; min-width: 30px; text-align: center; padding: 0 6px; font-size: 13px; color: var(--mute); }
.inp input { width: 80px; text-align: right; font-weight: 700; font-size: 15px; border: 0; outline: 0; padding-right: 4px; -moz-appearance: textfield; }
.inp input::-webkit-outer-spin-button, .inp input::-webkit-inner-spin-button { -webkit-appearance: none; }
.inp u { min-width: 52px; justify-content: center; text-decoration: none; font-size: 13px; color: var(--mute); padding: 0 10px; height: 100%; display: flex; align-items: center; background: var(--soft); border-left: 1px solid var(--line); }

/* ------------------------------------------------------------ histori */
.flt { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.datebox { height: 42px; border: 1px solid var(--line); border-radius: 8px; background: #fff; display: flex; align-items: center; gap: 8px; padding: 0 12px; font-size: 13px; font-weight: 600; }
.datebox svg { width: 17px; height: 17px; color: var(--mute); }
.datebox input { border: 0; outline: 0; font-weight: 600; font-size: 13px; background: none; }
.sm { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.mc { padding: 16px 20px 12px; }
.mc .hd { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.mc .hd > b { font-size: 14px; font-weight: 700; margin-right: auto; }
.mc .kv { display: flex; gap: 18px; font-size: 12px; color: var(--mute); }
.mc .kv strong { color: var(--ink); font-size: 13px; margin-left: 4px; }
.mc .chart-box { height: 170px; padding: 8px 0 0; }
.pg { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 22px; border-top: 1px solid var(--line2); font-size: 13px; color: var(--mute); flex-wrap: wrap; }
.pn { display: flex; gap: 6px; }
.pn button { min-width: 32px; height: 32px; padding: 0 6px; border: 1px solid var(--line); border-radius: 6px; display: grid; place-items: center; color: var(--ink); font-weight: 600; background: #fff; }
.pn button svg { width: 15px; height: 15px; }
.pn button.on { background: var(--forest); color: #fff; border-color: var(--forest); }
.pn button:disabled { opacity: .4; cursor: not-allowed; }
.pn span { min-width: 20px; display: grid; place-items: center; }

/* ------------------------------------------------------- notifikasi */
.ngroup { font-size: 13px; font-weight: 700; color: var(--mute); margin: 22px 0 10px; }
.ngroup:first-child { margin-top: 0; }
.nc { display: flex; gap: 14px; padding: 16px 22px; border-top: 1px solid var(--line2); width: 100%; text-align: left; }
.nc:first-child { border-top: 0; }
.nc:hover { background: var(--soft); }
.nc b { font-size: 14px; font-weight: 700; display: block; line-height: 1.3; }
.nc p { font-size: 13px; color: var(--mute); margin-top: 3px; }
.nc small { font-size: 12px; color: var(--faint); display: block; margin-top: 6px; }
.nc.read b { font-weight: 600; }

/* ------------------------------------------------------- perangkat */
.st { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; }
.st i { width: 8px; height: 8px; border-radius: 50%; }
.st.on { color: var(--leaf); } .st.on i { background: var(--leaf); }
.st.off { color: var(--bad); } .st.off i { background: var(--bad); }
.acts { display: flex; gap: 6px; justify-content: flex-end; }
.acts button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 7px; display: grid; place-items: center; color: var(--mute); }
.acts button:hover { color: var(--ink); background: var(--soft); }
.acts button svg { width: 15px; height: 15px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }

/* ------------------------------------------------------- modal & toast */
.modal-bg { position: fixed; inset: 0; background: rgba(22, 34, 28, .45); display: grid; place-items: center; z-index: 60; padding: 16px; }
.modal { background: #fff; border-radius: 12px; width: 100%; max-width: 440px; padding: 24px; }
.modal h3 { font-size: 18px; font-weight: 700; }
.modal p { color: var(--mute); margin-top: 6px; }
.modal .foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 80; }
.toast { display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 8px; font-size: 13px; font-weight: 500; box-shadow: 0 8px 24px rgba(0,0,0,.18); max-width: 380px; animation: toast-in .2s ease-out; }
.toast svg { width: 17px; height: 17px; }
.toast.err { background: var(--bad); }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } .rb .mk, .switch, .switch::after { transition: none; } }

.loading { color: var(--mute); padding: 40px; text-align: center; }
.blank { padding: 48px 24px; text-align: center; max-width: 460px; margin: 40px auto; }
.blank .ico { margin: 0 auto 16px; }
.blank h2 { font-size: 20px; font-weight: 700; }
.blank p { color: var(--mute); margin: 6px 0 20px; }

/* ------------------------------------------------------------- auth */
.auth { display: flex; min-height: 100vh; }
.auth-l { width: 46%; background: var(--forest); color: #fff; padding: 48px 56px; display: flex; flex-direction: column; }
.auth-l .mark { background: #fff; color: var(--forest); }
.auth-l h1 { font-size: 44px; line-height: 1.12; font-weight: 700; letter-spacing: -1.4px; margin-top: auto; max-width: 520px; }
.auth-l p { font-size: 16px; color: #B9D2C3; margin-top: 16px; max-width: 460px; line-height: 1.6; }
.rd { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: #2F5A48; border: 1px solid #2F5A48; border-radius: 10px; overflow: hidden; margin-top: 44px; }
.rd div { background: var(--forest); padding: 14px 16px; }
.rd small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #9DBDAA; }
.rd small svg { width: 14px; height: 14px; }
.rd b { font-size: 22px; font-weight: 700; display: block; margin-top: 6px; white-space: nowrap; }
.rd b span { font-size: 14px; font-weight: 600; color: #9DBDAA; }
.auth-r { flex: 1; display: flex; align-items: center; justify-content: center; background: #fff; padding: 32px 20px; }
.frm { width: 100%; max-width: 400px; }
.frm h2 { font-size: 28px; font-weight: 700; letter-spacing: -.6px; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1240px) {
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols { grid-template-columns: 1fr; }
}
@media (max-width: 1000px) {
  .two, .sm { grid-template-columns: 1fr; }
  .hero { flex-wrap: wrap; }
  .hero .modebox { margin-left: 0; }
}
@media (max-width: 860px) {
  .side { position: fixed; left: 0; top: 0; z-index: 50; transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 40px rgba(0,0,0,.15); }
  .app.nav-open .side { transform: none; }
  .app.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(22,34,28,.35); z-index: 45; }
  .ib.menu-btn { display: grid; }
  .top { padding: 12px 16px; flex-wrap: wrap; gap: 10px; }
  .top h1 { font-size: 19px; }
  .conn span:last-child { display: none; }
  .devsel { order: 5; width: 100%; }
  .devsel > button { width: 100%; }
  .content { padding: 16px; }
  .auth-l { display: none; }
  .ph { flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .grid4 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .sn { padding: 14px; }
  .sn .v { font-size: 28px; }
  .sn .h .pill { display: none; }
  .stats { grid-template-columns: 1fr; }
  .stats div + div { border-left: 0; border-top: 1px solid var(--line2); }
  .fld { flex-wrap: wrap; }
  .inp { margin-left: 48px; }
}
.eye { color: var(--mute); display: grid; place-items: center; padding: 4px; margin-right: -4px; }
table.tight th, table.tight td { padding-left: 16px; padding-right: 10px; }
table.tight th:first-child, table.tight td:first-child { padding-left: 22px; }
@media (max-width: 560px) {
  .hero .modebox { width: 100%; justify-content: space-between; }
  .hero .modebox > span { white-space: nowrap; }
}
