/* PupukPas-IoT — tampilan v2
   Gagasan: buku lapang digital. Satu panel keputusan berwarna kulit bawang menjadi pusat
   perhatian; selebihnya tenang. Penggaris umur tanaman (0–60 HST) menandai jendela pupuk N. */
:root {
  --paper: #EDF0EA;
  --paper-2: #E4E8E0;
  --surface: #FFFFFF;
  --ink: #18211D;
  --ink-2: #4B5650;
  --ink-3: #78827C;
  --line: #D6DCD3;
  --shallot: #7A1F3D;
  --shallot-2: #9B2E53;
  --shallot-wash: #F3E3E8;
  --leaf: #2B6A46;
  --leaf-deep: #1E4F33;
  --leaf-wash: #DDEDE2;
  --turmeric: #94590A;
  --turmeric-deep: #6E4307;
  --turmeric-wash: #F7EBD0;
  --band: rgba(122, 31, 61, .16);
  --band-fc: rgba(122, 31, 61, .08);
  --focus: #1F5FBF;
  --r-s: 10px;
  --r-m: 16px;
  --r-l: 22px;
  --tab-h: 64px;
  --side-w: 236px;
  --fs-1: 14px; --fs-2: 16px; --fs-3: 19px; --fs-4: 24px; --fs-5: 31px; --fs-6: 40px;
  --display: "Bricolage Grotesque", "Atkinson Hyperlegible", system-ui, sans-serif;
  font-family: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #151A17; --paper-2: #1B211D; --surface: #1F2622; --ink: #ECEFEA; --ink-2: #B9C2BC; --ink-3: #8A948E;
    --line: #313A34; --shallot: #E58AA6; --shallot-2: #F0A3BA; --shallot-wash: #3A2129; --leaf: #7CC99A; --leaf-deep: #1E4F33;
    --leaf-wash: #1D3326; --turmeric: #E8B24C; --turmeric-deep: #6E4307; --turmeric-wash: #3A2D14;
    --band: rgba(229, 138, 166, .22); --band-fc: rgba(229, 138, 166, .10); --focus: #8AB4FF; color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); }
body { font-size: var(--fs-2); line-height: 1.5; min-height: 100dvh; padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom));
  -webkit-font-smoothing: antialiased; }
body.no-tabs { padding-bottom: 0; }
a { color: var(--shallot); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
main:focus, main:focus-visible { outline: none; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- bingkai ---------- */
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 8px; min-height: 56px;
  padding: calc(8px + env(safe-area-inset-top)) 16px 8px;
  background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); }
.top h1 { font-family: var(--display); font-weight: 700; font-size: var(--fs-3); margin: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.back { width: 40px; height: 40px; margin-left: -8px; border: 0; background: none; color: var(--ink); border-radius: 50%; cursor: pointer; }
.back:hover { background: var(--paper-2); }
.back svg, .tabs svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sync { font-size: var(--fs-1); color: var(--turmeric); background: var(--turmeric-wash); padding: 2px 10px; border-radius: 999px; }
main { max-width: 760px; margin: 0 auto; padding: 16px 16px 32px; }
.tabs { position: fixed; inset: auto 0 0 0; z-index: 5; display: flex; height: calc(var(--tab-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom); background: var(--surface); border-top: 1px solid var(--line); }
.tabs .brand { display: none; }
.tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--ink-3); text-decoration: none; font-size: var(--fs-1); }
.tabs a[aria-current="page"] { color: var(--shallot); font-weight: 700; }
.offline { background: var(--turmeric-wash); color: var(--ink); padding: 8px 16px; font-size: var(--fs-1); text-align: center; }

/* ---------- tipografi & umum ---------- */
h2 { font-family: var(--display); font-weight: 700; font-size: var(--fs-3); letter-spacing: -.005em; margin: 28px 0 10px; }
h2:first-child { margin-top: 4px; }
p { margin: 0 0 12px; max-width: 64ch; }
.muted { color: var(--ink-2); }
.small { font-size: var(--fs-1); }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.spacer { flex: 1; }
.page-head { margin: 6px 0 20px; }
.page-head h2 { font-size: var(--fs-5); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 4px; }
.page-head p { margin: 0; }

/* ---------- status ---------- */
.status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 999px;
  font-size: var(--fs-1); font-weight: 700; line-height: 1.4; white-space: nowrap; }
.status svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.s-pupuk { background: var(--shallot-wash); color: var(--shallot); }
.s-tunda, .s-pantau { background: var(--turmeric-wash); color: var(--turmeric); }
.s-aman { background: var(--leaf-wash); color: var(--leaf); }
.s-stop, .s-data, .s-belum { background: var(--paper-2); color: var(--ink-2); }

/* ---------- penggaris umur tanaman ---------- */
.ruler { --r-track: color-mix(in srgb, var(--ink) 9%, transparent); --r-win: var(--leaf-wash); --r-win-edge: var(--leaf);
  --r-fill: color-mix(in srgb, var(--ink) 22%, transparent); --r-mark: var(--ink); --r-mark-in: var(--leaf); --r-bg: var(--surface);
  margin: 14px 0 0; }
.ruler .track { position: relative; height: 10px; border-radius: 999px; background: var(--r-track); }
.ruler .win { position: absolute; top: 0; bottom: 0; background: var(--r-win); box-shadow: inset 0 0 0 1.5px var(--r-win-edge); border-radius: 3px; }
.ruler .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px 0 0 999px; background: var(--r-fill); }
.ruler .mark { position: absolute; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%;
  background: var(--r-bg); border: 4px solid var(--r-mark); }
.ruler .mark.in { border-color: var(--r-mark-in); }
.ruler .ticks { position: relative; height: 18px; margin-top: 6px; font-size: 12px; color: var(--ink-3); }
.ruler .ticks span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.ruler .ticks span:first-child { transform: none; }
.ruler .ticks span:last-child { transform: translateX(-100%); }
.ruler-cap { margin: 6px 0 0; }
.ruler.compact { margin-top: 10px; }
.ruler.compact .track { height: 6px; }
.ruler.compact .mark { width: 12px; height: 12px; margin: -6px 0 0 -6px; border-width: 3px; }

/* ---------- daftar lahan (kartu) ---------- */
.fieldlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.fieldlist li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.fieldlist li > a { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 18px 20px 16px 24px; color: inherit; text-decoration: none; }
.fieldlist li > a:hover { background: color-mix(in srgb, var(--paper) 45%, var(--surface)); }
.fieldlist .bar { position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--line); }
.fieldlist .card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.fieldlist .name { font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.15; letter-spacing: -.01em; }
.fieldlist .hst { font-size: var(--fs-1); color: var(--ink-2); font-weight: 700; }
.fieldlist .verdict { font-size: var(--fs-2); color: var(--ink-2); }
.fieldlist .meta { font-size: var(--fs-1); color: var(--ink-3); margin-top: 10px; }
[data-act="pupuk"] .bar { background: var(--shallot); }
[data-act="tunda"] .bar, [data-act="pantau"] .bar { background: var(--turmeric); }
[data-act="aman"] .bar { background: var(--leaf); }
.fieldlist .add-card { background: none; border: 1.5px dashed color-mix(in srgb, var(--ink) 22%, transparent); }
.fieldlist .add-card a { align-items: center; justify-content: center; flex-direction: row; gap: 10px; min-height: 120px; color: var(--ink-2); font-weight: 700; }
.fieldlist .add-card .plus { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--paper-2); font-size: 22px; line-height: 1; }

.tally { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px; margin: 0 0 20px; padding: 0; list-style: none;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.tally li { font-size: var(--fs-1); color: var(--ink-2); background: var(--surface); padding: 14px 16px; }
.tally b { display: block; font-family: var(--display); font-size: 30px; font-weight: 700; color: var(--ink); line-height: 1.1; }

/* ---------- panel keputusan (elemen utama) ---------- */
.verdict-hero { --hero: var(--ink-2); position: relative; margin: 0 0 20px; padding: 22px 24px 20px; border-radius: var(--r-l);
  background-color: var(--hero); color: #fff; overflow: hidden; isolation: isolate; }
.verdict-hero::before { /* guratan bedengan */ content: ""; position: absolute; inset: 0; z-index: -1; opacity: .09;
  background: repeating-linear-gradient(-12deg, #fff 0 1px, transparent 1px 22px); }
.verdict-hero.act-pupuk { --hero: #7A1F3D; }
.verdict-hero.act-tunda, .verdict-hero.act-pantau { --hero: #6E4307; }
.verdict-hero.act-aman { --hero: #1E4F33; }
.verdict-hero.act-stop, .verdict-hero.act-data { --hero: #34403A; }
.vh-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.vh-top .status { background: rgba(255, 255, 255, .16); color: #fff; }
.vh-date { opacity: .75; }
.vh-body { display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: end; margin-top: 14px; }
.verdict-hero h2 { font-size: clamp(27px, 3.4vw, 38px); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 10px; max-width: 16ch; color: #fff; }
.verdict-hero p { font-size: var(--fs-2); line-height: 1.5; opacity: .9; margin: 0; max-width: 46ch; }
.vh-dose { text-align: right; line-height: 1; }
.vh-dose b { display: block; font-family: var(--display); font-weight: 800; font-size: 96px; letter-spacing: -.04em; line-height: .85; }
.vh-dose span { display: block; margin-top: 8px; font-size: var(--fs-1); opacity: .8; }
.verdict-hero .ruler { --r-track: rgba(255, 255, 255, .16); --r-win: rgba(255, 255, 255, .22); --r-win-edge: rgba(255, 255, 255, .55);
  --r-fill: rgba(255, 255, 255, .28); --r-mark: #fff; --r-mark-in: #fff; --r-bg: var(--hero); margin-top: 22px; }
.verdict-hero .ruler .ticks { color: rgba(255, 255, 255, .7); }
.verdict-hero .ruler-cap { opacity: .85; }
@media (max-width: 560px) { .vh-dose { display: none; } .vh-body { grid-template-columns: 1fr; } }

.notes { list-style: none; padding: 0; margin: 0 0 16px; }
.notes li { padding: 10px 14px; border-left: 4px solid var(--turmeric); background: var(--turmeric-wash); margin-bottom: 8px; border-radius: 0 var(--r-s) var(--r-s) 0; }

/* pilihan pupuk */
.dose { border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); padding: 6px; margin-bottom: 14px; display: grid; gap: 4px; }
.dose label { display: grid; grid-template-columns: 24px 1fr; gap: 2px 12px; padding: 12px 14px; border-radius: var(--r-s); cursor: pointer; }
.dose label:hover { background: var(--paper); }
.dose label:has(input:checked) { background: var(--shallot-wash); }
.dose input { accent-color: var(--shallot); width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; grid-row: span 2; }
.dose .opt { color: var(--ink-2); font-size: var(--fs-1); }
.dose .kg { font-family: var(--display); font-weight: 700; font-size: 21px; }
.fb { margin: 16px 0 4px; }

details.why { margin: 10px 0 20px; }
details.why summary { cursor: pointer; color: var(--ink-2); padding: 6px 0; font-weight: 700; }
details.why ul { margin: 6px 0 0; padding-left: 20px; color: var(--ink-2); }
details.why li { margin-bottom: 4px; }

/* ---------- tombol & form ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px;
  border-radius: var(--r-s); border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s; }
.btn:hover { border-color: color-mix(in srgb, var(--ink) 28%, transparent); }
.btn.primary { background: var(--shallot); color: #fff; border-color: var(--shallot); }
.btn.primary:hover { background: var(--shallot-2); border-color: var(--shallot-2); }
@media (prefers-color-scheme: dark) { .btn.primary { color: #1B1012; } }
.btn.block { width: 100%; }
.btn.quiet { border-color: transparent; background: none; color: var(--shallot); padding: 0 8px; }
.btn:disabled { opacity: .55; cursor: default; }
.actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 8px 0 20px; }
form .f { margin-bottom: 14px; }
form label, .lbl { display: block; font-weight: 700; margin-bottom: 6px; }
.hint { display: block; font-size: var(--fs-1); color: var(--ink-3); font-weight: 400; margin-top: 2px; }
input, select, textarea { width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-s); }
textarea { min-height: 80px; }
input:focus, select:focus, textarea:focus { border-color: var(--focus); outline: 2px solid var(--focus); outline-offset: 0; }
.seg { display: flex; border: 1px solid var(--line); border-radius: var(--r-s); overflow: hidden; background: var(--surface); }
.seg button { flex: 1; min-height: 44px; border: 0; background: none; color: var(--ink-2); font: inherit; cursor: pointer; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--shallot-wash); color: var(--shallot); font-weight: 700; }
.err { color: var(--shallot); font-weight: 700; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
main > form, main > section > form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 20px; }

/* ---------- angka sensor ---------- */
.gauges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; margin-bottom: 8px; }
.gauges div { background: var(--surface); padding: 12px 14px; }
.gauges b { display: block; font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1.15; letter-spacing: -.01em; }
.gauges span { font-size: var(--fs-1); color: var(--ink-2); }
@media (max-width: 380px) { .gauges { grid-template-columns: repeat(2, 1fr); } }
.budget p { margin: 0 0 8px; color: var(--ink-2); }
.budget b { font-family: var(--display); font-size: 26px; color: var(--ink); margin-right: 4px; }
.meter { height: 10px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 9%, transparent); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--shallot); border-radius: inherit; }

/* ---------- grafik ---------- */
.chart { position: relative; margin: 8px 0 4px; }
.chart svg { display: block; width: 100%; height: auto; touch-action: pan-y; }
.chart .grid line { stroke: var(--line); stroke-width: 1; }
.chart .axis text { fill: var(--ink-3); font-size: 11px; font-family: inherit; }
.chart .band { fill: var(--band); }
.chart .band-fc { fill: var(--band-fc); }
.chart .p50 { fill: none; stroke: var(--shallot); stroke-width: 2; stroke-linejoin: round; }
.chart .p50-fc { fill: none; stroke: var(--shallot); stroke-width: 2; stroke-dasharray: 5 4; }
.chart .obs { fill: var(--surface); stroke: var(--shallot); stroke-width: 1.5; }
.chart .crit { fill: none; stroke: var(--ink-2); stroke-width: 1.5; stroke-dasharray: 2 3; }
.chart .today { stroke: var(--ink-3); stroke-width: 1; }
.chart .fert { fill: var(--ink-2); }
.chart .label { fill: var(--ink-2); font-size: 11px; font-family: inherit; }
.chart .xh { stroke: var(--ink-2); stroke-width: 1; }
.chart .dot { fill: var(--shallot); stroke: var(--surface); stroke-width: 2; }
.tip { position: absolute; pointer-events: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-s);
  padding: 6px 10px; font-size: var(--fs-1); box-shadow: 0 2px 10px rgba(0,0,0,.08); white-space: nowrap; }
.tip b { font-size: var(--fs-2); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: var(--fs-1); color: var(--ink-2); margin: 4px 0 8px; padding: 0; list-style: none; }
.legend i { display: inline-block; width: 18px; height: 0; border-top: 2px solid var(--shallot); vertical-align: middle; margin-right: 6px; }
.legend i.band { height: 10px; border: 0; background: var(--band); }
.legend i.crit { border-top: 2px dotted var(--ink-2); }
.legend i.fc { border-top-style: dashed; }
table.data { width: 100%; border-collapse: collapse; font-size: var(--fs-1); }
table.data th, table.data td { text-align: right; padding: 6px 4px; border-bottom: 1px solid var(--line); }
table.data th:first-child, table.data td:first-child { text-align: left; }

/* ---------- riwayat ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: start; break-inside: avoid; }
.timeline .d { color: var(--ink-3); font-size: var(--fs-1); padding-top: 2px; }
.timeline .k { font-weight: 700; }
.timeline.clipped li:nth-child(n+9) { display: none; }
.del { border: 0; background: none; color: var(--ink-3); min-width: 40px; min-height: 40px; font-size: 20px; border-radius: 50%; cursor: pointer; }
.del:hover { background: var(--paper-2); color: var(--shallot); }

.empty { padding: 28px 0; }
.empty p { font-size: var(--fs-3); }
.toast { position: fixed; left: 50%; bottom: calc(var(--tab-h) + 16px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--r-s); opacity: 0; transition: opacity .2s, transform .2s;
  max-width: calc(100% - 32px); z-index: 10; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.keybox { font-family: ui-monospace, Menlo, monospace; word-break: break-all; background: var(--surface); border: 1px dashed var(--shallot);
  padding: 12px; border-radius: var(--r-s); }

/* ---------- halaman lahan ---------- */
.field-grid { display: grid; gap: 8px; }
.col-side h2:first-child { margin-top: 8px; }
.chart-host, [data-v="field"] .col-main > div > .chart { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 14px 10px 6px; }
@media (max-width: 999px) { [data-v="field"] .page-head h2 { display: none; } [data-v="field"] .page-head { margin-bottom: 12px; } }

/* ---------- masuk ---------- */
[data-v="login"] .top { display: none; }
.login-art { display: none; }
.login { max-width: 420px; margin: 0 auto; padding-top: 8vh; }
.login .mark { width: 56px; height: 56px; }
.login h2 { font-size: var(--fs-6); line-height: 1.02; letter-spacing: -.03em; margin: 16px 0 12px; max-width: 13ch; }
.login form { background: none; border: 0; padding: 0; margin-top: 24px; }

/* ---------- laptop / layar lebar ---------- */
@media (min-width: 1000px) {
  body { padding-bottom: 0; padding-left: var(--side-w); }
  body.no-tabs { padding-left: 0; }
  .tabs { inset: 0 auto 0 0; width: var(--side-w); height: auto; flex-direction: column; gap: 2px; padding: 22px 14px;
    border-top: 0; border-right: 1px solid var(--line); background: var(--surface); }
  .tabs .brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 22px; margin-bottom: 10px; border-bottom: 1px solid var(--line);
    font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -.02em; color: var(--ink); }
  .tabs .brand img { width: 34px; height: 34px; }
  .tabs .brand em { font-style: normal; color: var(--shallot); }
  .tabs a { flex: none; flex-direction: row; justify-content: flex-start; gap: 12px; padding: 11px 12px; border-radius: var(--r-s);
    font-size: var(--fs-2); color: var(--ink-2); }
  .tabs a:hover { background: var(--paper); color: var(--ink); }
  .tabs a[aria-current="page"] { background: var(--shallot-wash); color: var(--shallot); }
  .top { padding: 10px 40px; min-height: 60px; }
  .top h1 { font-size: var(--fs-2); font-family: inherit; font-weight: 700; color: var(--ink-2); }
  main { max-width: 1180px; padding: 28px 40px 56px; }
  main[data-v=""] { max-width: 820px; margin-left: max(0px, calc((100% - 1180px) / 2)); }
  .page-head h2 { font-size: var(--fs-6); }
  .toast { bottom: 24px; margin-left: calc(var(--side-w) / 2); }

  [data-v="field"] .field-grid { grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 28px; align-items: start; }
  .col-side { position: sticky; top: 84px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 6px 20px 20px; }
  .col-side .gauges { grid-template-columns: repeat(2, 1fr); border-radius: var(--r-s); }
  .col-side .actions { margin-bottom: 8px; }
  .col-wide { margin-top: 12px; }
  .col-wide .timeline { column-count: 2; column-gap: 40px; }
  [data-v="field"] .verdict-hero { padding: 28px 32px 24px; }

  [data-v="login"] { max-width: none; padding: 0; }
  .login-wrap { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100dvh; }
  .login-art { display: flex; flex-direction: column; justify-content: flex-end; padding: 48px; background: #7A1F3D; color: #F3D9E1; position: relative; overflow: hidden; }
  .login-art svg { position: absolute; inset: 8% -4% auto; width: 108%; height: auto; }
  .art-cap { position: relative; font-family: var(--display); font-weight: 600; font-size: 22px; line-height: 1.25; color: #fff; max-width: 22ch; margin: 0; }
  .login { align-self: center; padding: 48px; width: 100%; max-width: 520px; }
}
@media (min-width: 1000px) and (max-width: 1180px) { .vh-dose b { font-size: 76px; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* nama aplikasi di halaman masuk */
.login h2.app-name { max-width: none; }
.login .app-sub { display: block; margin-top: 10px; font-family: "Atkinson Hyperlegible", system-ui, sans-serif;
  font-size: var(--fs-2); font-weight: 400; line-height: 1.4; letter-spacing: 0; color: var(--ink-2); max-width: 44ch; text-wrap: balance; }
.login h2.app-name + p { margin-top: 16px; }
