:root {
  --g: #14853a; --g2: #1fa046; --g-dk: #0b4a22; --g-ink: #08331a; --g-soft: #e7f4ea; --g-soft2: #f2f9f3;
  --red: #e0261c; --red-soft: #fdecea; --amber: #b86b00; --amber-soft: #fff4dd; --blue: #1d5fd1; --blue-soft: #e9f0ff;
  --bg: #f5f7f3; --card: #fff; --line: #e1e8e1; --line2: #edf2ed; --ink: #15241a; --muted: #5d6e62; --faint: #8a998e;
  --r: 14px; --sh: 0 1px 2px rgba(10,50,25,.05), 0 4px 14px rgba(10,50,25,.05); --sh-lg: 0 20px 50px rgba(10,50,25,.2);
  --side: 248px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; font-size: 15px; line-height: 1.55; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--g); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; letter-spacing: -.01em; }
p { margin: 0 0 8px; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.boot { min-height: 100vh; display: grid; place-items: center; }
.spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--g); animation: sp .8s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 13px; } .tiny { font-size: 12px; }
.ic { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Khung ---------- */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow: auto; background: linear-gradient(180deg, var(--g-ink), #0d4a26 60%, #106033); color: #e9f5ec; padding: 18px 14px; display: flex; flex-direction: column; gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 6px 10px; border-bottom: 1px solid rgba(255,255,255,.12); }
.brand .mark, .brand svg { width: 42px; height: 42px; flex: none; border-radius: 11px; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.brand b { display: block; font-size: 15px; letter-spacing: .02em; }
.brand small { display: block; font-size: 11.5px; opacity: .75; line-height: 1.3; }
.nav { display: grid; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: #d8ecdd; font-weight: 500; font-size: 14px; }
.nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav a.on { background: #fff; color: var(--g-ink); font-weight: 700; }
.nav a.on .ic { color: var(--g); }
.nav .sep { height: 1px; background: rgba(255,255,255,.12); margin: 8px 4px; }
.side-foot { margin-top: auto; font-size: 12px; opacity: .8; padding: 0 6px; }
.role { display: grid; gap: 6px; background: rgba(255,255,255,.07); border-radius: 12px; padding: 10px; }
.role label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; opacity: .75; }
.role select { width: 100%; border: 0; border-radius: 8px; padding: 7px 8px; background: #fff; color: var(--ink); font-weight: 600; font-size: 13.5px; }
.main { min-width: 0; padding: 22px 28px 40px; }
.top { display: none; }
.bottom { display: none; }
.pghead { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.pghead h1 { font-size: 24px; }
.pghead p { margin: 4px 0 0; color: var(--muted); max-width: 760px; }
.crumb { font-size: 12.5px; font-weight: 600; color: var(--g); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }

/* ---------- Thành phần ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); padding: 18px; min-width: 0; }
.card h2 { font-size: 17px; margin-bottom: 10px; }
.card h3 { font-size: 15px; margin-bottom: 6px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack { display: grid; gap: 16px; }
.kpi { display: flex; flex-direction: column; gap: 4px; }
.kpi .v { font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--g-ink); line-height: 1.15; }
.kpi .l { font-size: 13px; color: var(--muted); }
.kpi .s { font-size: 12px; color: var(--faint); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: #c8d6ca; background: #fafcfa; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-p { background: var(--g); border-color: var(--g); color: #fff; }
.btn-p:hover { background: #0f6e30; border-color: #0f6e30; }
.btn-r { background: var(--red); border-color: var(--red); color: #fff; }
.btn-sm { padding: 6px 10px; font-size: 13px; border-radius: 8px; }
.btn-ghost { background: transparent; border-color: transparent; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--g-soft); color: var(--g-dk); white-space: nowrap; }
.chip.red { background: var(--red-soft); color: var(--red); } .chip.amber { background: var(--amber-soft); color: var(--amber); } .chip.blue { background: var(--blue-soft); color: var(--blue); } .chip.gray { background: #eef1ee; color: var(--muted); }
.note { background: var(--g-soft2); border: 1px dashed #bcd9c3; border-radius: 12px; padding: 10px 12px; font-size: 13px; color: var(--g-dk); }
.note.amber { background: var(--amber-soft); border-color: #f0d49c; color: #7a4a00; }
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 12px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th, .tbl td { padding: 9px 11px; border-bottom: 1px solid var(--line2); text-align: left; vertical-align: top; }
.tbl th { background: var(--g-soft2); color: var(--g-dk); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.tbl td.n, .tbl th.n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tfoot td { font-weight: 700; background: #fafcfa; }
.bar { height: 8px; border-radius: 99px; background: var(--line2); overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--g), var(--g2)); border-radius: 99px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 7px 11px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--muted); }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--g); color: #fff; }
.seg button.on.warn { background: var(--amber); }
.seg button.on.bad { background: var(--red); }
.inp, .sel, .ta { width: 100%; border: 1px solid #d3ddd4; border-radius: 10px; padding: 9px 11px; background: #fff; outline: 0; }
.inp:focus, .sel:focus, .ta:focus { border-color: var(--g); box-shadow: 0 0 0 3px rgba(20,133,58,.14); }
.ta { min-height: 70px; resize: vertical; }
.fld { display: grid; gap: 5px; }
.fld > label { font-size: 13px; font-weight: 600; color: var(--muted); }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 14px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 7px 13px; font-size: 13.5px; font-weight: 600; cursor: pointer; color: var(--muted); }
.tabs button.on { background: var(--g-ink); border-color: var(--g-ink); color: #fff; }
.empty { text-align: center; padding: 26px 12px; color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--g-ink); color: #fff; padding: 10px 16px; border-radius: 12px; box-shadow: var(--sh-lg); z-index: 99; font-size: 14px; max-width: calc(100vw - 32px); }
.modal { position: fixed; inset: 0; background: rgba(8,30,16,.5); display: grid; place-items: center; z-index: 90; padding: 16px; }
.dlg { background: #fff; border-radius: 16px; width: min(560px, 100%); max-height: 90vh; overflow: auto; padding: 20px; box-shadow: var(--sh-lg); display: grid; gap: 12px; }
.dlg h3 { font-size: 18px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row.end { justify-content: flex-end; }
.split { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }

/* ---------- Tổng quan ---------- */
.hero { position: relative; overflow: hidden; border-radius: 20px; background: linear-gradient(120deg, var(--g-ink) 0%, #0f5c2d 55%, #17853c 100%); color: #fff; padding: 26px 28px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; margin-bottom: 18px; }
.hero::after { content: ''; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; border: 46px solid rgba(255,255,255,.06); }
.hero .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #9fe0b2; }
.hero h1 { font-size: 30px; margin: 6px 0 8px; letter-spacing: -.02em; }
.hero p { color: #d6eedc; max-width: 640px; margin: 0; }
.hero .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.hero .tags span { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: rgba(255,255,255,.12); color: #eafbe9; }
.hero .logo-big { width: 150px; height: 150px; border-radius: 22px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.3); position: relative; z-index: 1; background: #fff; }
.hero .logo-big img { width: 100%; height: 100%; object-fit: cover; }
.mods { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.mod { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px; color: var(--ink); box-shadow: var(--sh); transition: transform .12s, box-shadow .12s; }
.mod:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(10,50,25,.1); }
.mod .mi { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--g-soft); color: var(--g); }
.mod b { display: block; font-size: 14.5px; margin-bottom: 2px; }
.mod span { font-size: 13px; color: var(--muted); }
.today { display: grid; gap: 8px; }
.task { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.task .dt { width: 54px; text-align: center; border-radius: 10px; background: var(--g-soft2); padding: 5px 0; }
.task .dt b { display: block; font-size: 18px; color: var(--g-ink); line-height: 1.1; }
.task .dt small { font-size: 11px; color: var(--muted); }
.task.nt .dt { background: #f1f3f1; }

/* ---------- Vùng, lô ---------- */
.zone { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 0; padding: 0; overflow: hidden; }
.zone .zi { background: var(--g-soft) center/cover no-repeat; min-height: 180px; display: grid; place-items: center; color: var(--g); }
.zone .zb { padding: 16px 18px; display: grid; gap: 8px; }
.zone .nums { display: flex; flex-wrap: wrap; gap: 18px; }
.zone .nums div b { display: block; font-size: 20px; font-weight: 800; color: var(--g-ink); }
.zone .nums div span { font-size: 12px; color: var(--muted); }
.lots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.lot { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #fff; cursor: pointer; text-align: left; }
.lot:hover { border-color: var(--g2); }
.lot.on { border-color: var(--g); box-shadow: 0 0 0 3px rgba(20,133,58,.14); }
.lot b { font-size: 18px; color: var(--g-ink); }
.lot .bar { margin: 8px 0 4px; }

/* ---------- Lịch ---------- */
.week { margin-bottom: 18px; }
.week h3 { font-size: 15px; margin: 0 0 8px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.day { display: grid; grid-template-columns: 66px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 8px; }
.day.nt { background: #fbfcfb; }
.day .dd { text-align: center; }
.day .dd b { display: block; font-size: 17px; color: var(--g-ink); }
.day .dd small { font-size: 11.5px; color: var(--muted); }
.day .vv b { font-size: 14px; }
.day .vv .tiny { margin-top: 2px; }
.day .code { cursor: pointer; }
.day.st-dat { border-color: #bfe2c8; background: #f6fbf7; }
.day.st-tre { border-color: #f3cfa0; background: #fffaf0; }
.day.st-xong { border-color: #bfe2c8; background: #f6fbf7; }

/* ---------- Nhật ký ---------- */
.obs { display: grid; gap: 10px; }
.obs-row { display: grid; grid-template-columns: 120px auto minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line2); }
.obs-row:last-child { border-bottom: 0; }
.obs-row b { font-size: 14px; }
.photo-pick { display: grid; place-items: center; border: 2px dashed #c9d8cb; border-radius: 12px; min-height: 110px; cursor: pointer; color: var(--muted); text-align: center; padding: 10px; background: var(--g-soft2); }
.photo-pick img { max-height: 180px; border-radius: 8px; }
.checks { display: grid; gap: 6px; }
.checks label { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; }
.entry { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line2); }
.entry:last-child { border-bottom: 0; }
.entry .th { width: 64px; height: 64px; border-radius: 10px; background: var(--g-soft) center/cover; display: grid; place-items: center; color: var(--g); }
.dots { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.dot { font-size: 11.5px; padding: 2px 7px; border-radius: 6px; background: var(--g-soft); color: var(--g-dk); }
.dot.warn { background: var(--amber-soft); color: var(--amber); }
.dot.bad { background: var(--red-soft); color: var(--red); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.gallery figure { margin: 0; border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.gallery img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.gallery figcaption { padding: 7px 9px; font-size: 12px; }
.gallery figcaption b { display: block; color: var(--g-ink); }

/* ---------- Cảnh báo 72h ---------- */
.alert { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 14px; display: grid; gap: 10px; }
.alert.done { opacity: .85; }
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.stp { border-radius: 10px; padding: 8px; background: #f2f4f2; font-size: 12px; color: var(--muted); min-height: 58px; }
.stp b { display: block; font-size: 12.5px; color: var(--ink); }
.stp.ok { background: var(--g-soft); color: var(--g-dk); }
.stp.cur { background: var(--amber-soft); color: #7a4a00; outline: 2px solid #f0c77a; }
.cd { font-variant-numeric: tabular-nums; font-weight: 700; }

/* ---------- Quy trình, trợ lý ---------- */
.proc { display: grid; gap: 12px; }
.proc-item { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 16px; }
.proc-item.noimg { grid-template-columns: minmax(0, 1fr); }
.proc-item img { border-radius: 12px; width: 100%; height: 150px; object-fit: cover; }
.proc-item ul { margin: 4px 0 0; padding-left: 18px; }
.proc-item li { margin-bottom: 4px; }
mark { background: #fff1b3; border-radius: 3px; padding: 0 2px; }
.chat { display: grid; gap: 10px; max-height: 60vh; overflow: auto; padding: 4px; }
.msg { max-width: 88%; padding: 10px 13px; border-radius: 14px; font-size: 14px; }
.msg.me { justify-self: end; background: var(--g); color: #fff; border-bottom-right-radius: 4px; }
.msg.bot { justify-self: start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.bot .src { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 12px; color: var(--muted); }
.suggest { display: flex; gap: 6px; flex-wrap: wrap; }
.suggest button { border: 1px solid #cfe3d4; background: var(--g-soft2); color: var(--g-dk); border-radius: 99px; padding: 6px 11px; font-size: 13px; cursor: pointer; }
.ask { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }

/* ---------- Tài chính ---------- */
.hbar { display: grid; grid-template-columns: 150px minmax(0, 1fr) 130px; gap: 10px; align-items: center; padding: 6px 0; font-size: 13.5px; }
.hbar .bar { height: 12px; }
.hbar .n { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.vbars { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; align-items: end; height: 200px; padding-top: 10px; }
.vb { display: grid; gap: 6px; align-items: end; height: 100%; text-align: center; font-size: 12px; }
.vb i { display: block; background: linear-gradient(180deg, var(--g2), var(--g)); border-radius: 8px 8px 3px 3px; }
.vb b { font-size: 12px; font-variant-numeric: tabular-nums; }
.formula { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 15px; }
.formula span { background: var(--g-soft2); border: 1px solid #d2e7d7; border-radius: 10px; padding: 8px 12px; font-weight: 700; color: var(--g-ink); }
.formula em { font-style: normal; color: var(--muted); font-weight: 700; }

/* ---------- Truy xuất ---------- */
.trace { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 16px; align-items: start; }
.tl { position: relative; padding-left: 22px; display: grid; gap: 12px; }
.tl::before { content: ''; position: absolute; left: 6px; top: 4px; bottom: 4px; width: 2px; background: var(--line); }
.tl > div { position: relative; }
.tl > div::before { content: ''; position: absolute; left: -21px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--g); box-shadow: 0 0 0 3px var(--g-soft); }
.tl > div.pend::before { background: #c9d2ca; box-shadow: 0 0 0 3px #eef1ee; }
.qrbox { display: grid; gap: 10px; justify-items: center; text-align: center; }
.qrbox #qr { background: #fff; padding: 10px; border-radius: 12px; border: 1px solid var(--line); }
.qrbox #qr img, .qrbox #qr canvas { width: 180px !important; height: 180px !important; }
.public { max-width: 760px; margin: 0 auto; padding: 18px 16px 40px; }
.public .ph { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.public .ph .mark, .public .ph svg { width: 48px; height: 48px; border-radius: 12px; }

/* ---------- Giới thiệu ---------- */
.intro { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.intro .sign { border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; padding: 18px; }
.intro .sign img { max-height: 300px; border-radius: 12px; }
.pill-list { display: grid; gap: 10px; }
.pill-list > div { border-left: 4px solid var(--g2); background: #fff; border-radius: 0 12px 12px 0; padding: 10px 14px; border-top: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.road { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.road > div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; border-top: 4px solid var(--g2); }
.road b { display: block; color: var(--g); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.strip img { width: 100%; height: 150px; object-fit: cover; border-radius: 12px; }

/* ---------- Di động ---------- */
@media (max-width: 1100px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .road, .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .top { display: flex; position: sticky; top: 0; z-index: 30; align-items: center; gap: 10px; padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); background: var(--g-ink); color: #fff; }
  .top .mark, .top svg { width: 34px; height: 34px; border-radius: 9px; flex: none; }
  .top b { font-size: 14.5px; display: block; line-height: 1.2; }
  .top small { font-size: 11px; opacity: .75; display: block; }
  .top .grow { flex: 1; min-width: 0; }
  .top select { border: 0; border-radius: 8px; padding: 5px 6px; font-size: 12px; font-weight: 600; max-width: 130px; color: var(--ink); background: #fff; }
  .main { padding: 16px 16px 96px; }
  .bottom { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--line); padding: 6px 4px; padding-bottom: max(6px, env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(10,50,25,.08); }
  .bottom a, .bottom button { display: grid; justify-items: center; gap: 2px; font-size: 11px; font-weight: 600; color: var(--muted); background: none; border: 0; padding: 4px 2px; cursor: pointer; }
  .bottom .on { color: var(--g); }
  .bottom .ic { width: 22px; height: 22px; }
  .sheet { position: fixed; inset: 0; background: rgba(8,30,16,.45); z-index: 60; display: flex; align-items: flex-end; }
  .sheet .in { background: #fff; width: 100%; border-radius: 18px 18px 0 0; padding: 14px 14px 22px; padding-bottom: max(22px, env(safe-area-inset-bottom)); display: grid; gap: 4px; max-height: 80vh; overflow: auto; }
  .sheet a { display: flex; gap: 12px; align-items: center; padding: 12px 10px; border-radius: 10px; color: var(--ink); font-weight: 600; }
  .sheet a.on { background: var(--g-soft); color: var(--g-dk); }
  .pghead h1 { font-size: 21px; }
  .hero { grid-template-columns: minmax(0, 1fr); padding: 20px; }
  .hero h1 { font-size: 23px; }
  .hero .logo-big { display: none; }
  .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); }
  .g4.kp { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zone { grid-template-columns: minmax(0, 1fr); }
  .zone .zi { min-height: 150px; }
  .proc-item { grid-template-columns: minmax(0, 1fr); }
  .proc-item img { height: 180px; }
  .trace { grid-template-columns: minmax(0, 1fr); }
  .intro { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .stp { min-height: 0; display: flex; gap: 8px; align-items: baseline; }
  .hbar { grid-template-columns: 110px minmax(0, 1fr); }
  .hbar .n { grid-column: 2; text-align: left; font-size: 12.5px; margin-top: -4px; }
  .obs-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .day { grid-template-columns: 54px minmax(0, 1fr); }
  .day .act { grid-column: 1 / -1; }
  .card { padding: 15px; }
  .kpi .v { font-size: 22px; }
  .vbars { height: 170px; gap: 8px; }
}
@media (max-width: 420px) {
  .road, .strip { grid-template-columns: minmax(0, 1fr); }
  .mods { grid-template-columns: minmax(0, 1fr); }
}
@media print { .side, .top, .bottom { display: none !important; } .shell { display: block; } }
.main-wrap { min-width: 0; }
summary::-webkit-details-marker { display: none; }
.mark { object-fit: cover; background: #1c9a3a; }
@media (max-width: 860px) { .toast { bottom: calc(84px + env(safe-area-inset-bottom)); } }
