/* ===== BuildControl MVP — styles ===== */
:root {
  --navy: #14213D;
  --navy-2: #22325A;
  --navy-3: #2E4170;
  --orange: #E8833A;
  --orange-d: #C4621C;
  --peach: #FCEBDD;
  --bg: #F4F6F9;
  --card: #FFFFFF;
  --line: #E2E5EA;
  --text: #14213D;
  --muted: #5A6474;
  --soft: #8A93A3;
  --s-new: #2F6FDE;
  --s-work: #B7791F;
  --s-fixed: #7B5BD6;
  --s-ok: #2E8B57;
  --s-back: #C8423B;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(20,33,61,.06), 0 4px 14px rgba(20,33,61,.06);
}

/* Rol ranglari: .r-<rol> klassi qo'yilgan element ichida --accent shu rol rangiga aylanadi
   (sidebar logotipi, faol menyu, avatar, rol nomi). --accent-text oq fonda o'qiladigan to'qroq variant. */
.r-rahbar { --accent: #2F6FDE; --accent-on: #FFFFFF; --accent-text: #2F6FDE; }
.r-nazorat { --accent: #26804F; --accent-on: #FFFFFF; --accent-text: #26804F; }
.r-pudratchi { --accent: #E8833A; --accent-on: #14213D; --accent-text: #A9531A; }
.r-admin { --accent: #7B5BD6; --accent-on: #FFFFFF; --accent-text: #7B5BD6; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
p { margin: 0; }

/* ===== Login ===== */
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.login-hero {
  background: var(--navy);
  color: #fff;
  padding: 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.login-hero::after {
  content: "";
  position: absolute;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: var(--navy-2);
  right: -180px; top: -160px;
}
.login-hero > * { position: relative; z-index: 1; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 22px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--accent, var(--orange)); color: var(--accent-on, var(--navy));
  display: grid; place-items: center;
}
.login-hero h1 { font-size: 46px; margin-bottom: 16px; }
.login-hero p { color: #C9D1DE; font-size: 18px; max-width: 520px; }
.login-hero .eyebrow { color: var(--orange); letter-spacing: 3px; font-weight: 700; font-size: 13px; margin-bottom: 14px; }
.login-foot { color: #8C98AD; font-size: 13px; }
.login-panel { padding: 64px; display: flex; flex-direction: column; justify-content: center; gap: 24px; background: var(--card); }
.login-panel h2 { font-size: 28px; }
.login-panel .muted { margin-top: -14px; }
.role-list { display: grid; gap: 12px; }
.role-btn {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  cursor: pointer;
  text-align: left;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.role-btn:hover { border-color: var(--accent, var(--orange)); box-shadow: var(--shadow); transform: translateY(-1px); }
.role-btn b { display: block; }
.role-btn small { color: var(--muted); }
.role-btn em { display: block; font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--accent-text, var(--muted)); margin-top: 3px; }

/* ===== Shell ===== */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar {
  background: var(--navy);
  color: #C9D1DE;
  padding: 22px 16px;
  display: flex; flex-direction: column; gap: 6px;
  position: sticky; top: 0; height: 100vh;
}
.sidebar .brand { color: #fff; font-size: 19px; padding: 0 8px 22px; }
.sidebar .brand-mark { width: 34px; height: 34px; }
.nav-link {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: #C9D1DE;
  font-weight: 600;
  cursor: pointer;
}
.nav-link:hover { background: var(--navy-2); color: #fff; }
.nav-link.active { background: var(--accent, var(--orange)); color: var(--accent-on, var(--navy)); }
.nav-link .count {
  margin-left: auto; background: var(--navy-3); color: #fff;
  border-radius: 999px; font-size: 12px; padding: 1px 8px;
}
.nav-link.active .count { background: rgba(0,0,0,.2); color: var(--accent-on, var(--navy)); }
.sidebar-foot { margin-top: auto; display: grid; gap: 8px; }
.sidebar-foot button {
  background: transparent; border: 1px solid var(--navy-3); color: #C9D1DE;
  border-radius: 10px; padding: 9px 12px; cursor: pointer; text-align: left;
  display: flex; gap: 10px; align-items: center; font-size: 13px;
}
.sidebar-foot button:hover { background: var(--navy-2); color: #fff; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 28px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.topbar .crumbs { font-weight: 700; font-size: 18px; }
.topbar .spacer { flex: 1; }
.demo-switch {
  display: flex; align-items: center; gap: 8px;
  background: var(--peach); color: var(--orange-d);
  padding: 6px 10px; border-radius: 10px; font-size: 13px; font-weight: 600;
}
.demo-switch select {
  border: 1px solid #F2C9A6; background: #fff; border-radius: 8px; padding: 4px 6px; font-size: 13px;
}
.me { display: flex; align-items: center; gap: 10px; }
.me b { display: block; font-size: 14px; }
.me small { color: var(--accent-text, var(--muted)); font-size: 12px; font-weight: 700; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: var(--accent, var(--navy)); color: var(--accent-on, #fff);
  display: grid; place-items: center; font-weight: 700; font-size: 14px;
}
.icon-btn {
  display: none; width: 38px; height: 38px; border-radius: 50%; flex: none;
  border: 1px solid var(--line); background: var(--card); color: var(--muted);
  place-items: center; cursor: pointer;
}
.icon-btn:hover { color: var(--text); border-color: var(--soft); }

.page { padding: 28px; display: flex; flex-direction: column; gap: 22px; max-width: 1400px; width: 100%; }
.page-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.page-head h1 { font-size: 26px; }
.page-head .sub { color: var(--muted); margin-top: 4px; }
.page-head .actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }

/* ===== Generic ===== */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 20px; }
.card-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.card-head h3 { font-size: 16px; }
.card-head .right { margin-left: auto; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.grid { display: grid; gap: 18px; }
.g-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.g-main { grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); }
.row { display: flex; align-items: center; gap: 10px; }
.wrap { flex-wrap: wrap; }
[data-obj]:focus-visible, [data-defect]:focus-visible, [data-actid]:focus-visible { outline: 2px solid var(--orange); outline-offset: -2px; }
input[type="range"] { accent-color: var(--orange); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line); background: var(--card);
  padding: 9px 16px; border-radius: 10px; cursor: pointer; font-weight: 600;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { border-color: var(--soft); }
.btn-primary { background: var(--orange); border-color: var(--orange); color: var(--navy); }
.btn-primary:hover { background: #F09550; border-color: #F09550; }
.btn-dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); }
.btn-ok { background: var(--s-ok); border-color: var(--s-ok); color: #fff; }
.btn-danger { background: #fff; border-color: var(--s-back); color: var(--s-back); }
.btn-sm { padding: 6px 12px; font-size: 13px; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  white-space: nowrap;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-yangi { background: #E6EEFC; color: var(--s-new); }
.st-ishda { background: #FBF0DC; color: var(--s-work); }
.st-bartaraf { background: #EEE9FB; color: var(--s-fixed); }
.st-tasdiq { background: #E3F2EA; color: var(--s-ok); }
.st-qaytarildi { background: #F9E4E3; color: var(--s-back); }
.tag { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; background: var(--bg); color: var(--muted); }
.sev-kritik { background: #F9E4E3; color: var(--s-back); }
.sev-yuqori { background: #FCEBDD; color: var(--orange-d); }
.sev-orta { background: #FBF0DC; color: var(--s-work); }
.overdue { color: var(--s-back); font-weight: 700; }

/* KPI */
.kpi { padding: 18px 20px; display: flex; gap: 16px; align-items: center; }
.kpi-ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--peach); color: var(--orange-d); }
.kpi-ic.blue { background: #E6EEFC; color: var(--s-new); }
.kpi-ic.green { background: #E3F2EA; color: var(--s-ok); }
.kpi-ic.red { background: #F9E4E3; color: var(--s-back); }
.kpi .val { font-size: 30px; font-weight: 800; line-height: 1; }
.kpi .lbl { color: var(--muted); font-size: 13px; margin-top: 4px; }

/* progress */
.prog { height: 10px; background: #E9ECF1; border-radius: 999px; position: relative; overflow: visible; }
.prog > span { display: block; height: 100%; border-radius: 999px; background: var(--s-new); }
.prog.lag > span { background: var(--orange); }
.prog.done > span { background: var(--s-ok); }
.prog .plan { position: absolute; top: -4px; width: 2px; height: 18px; background: var(--navy); border-radius: 2px; }
.obj-prog { display: grid; grid-template-columns: minmax(0,1fr) 64px; gap: 6px 14px; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--line); cursor: pointer; }
.obj-prog:last-child { border-bottom: none; }
.obj-prog:hover { background: #FAFBFC; }
.obj-prog .nm { font-weight: 700; }
.obj-prog .pct { font-weight: 800; text-align: right; }
.obj-prog .meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 12.5px; color: var(--muted); }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

.bars { padding: 16px 20px; display: grid; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 130px minmax(0,1fr) 34px; gap: 10px; align-items: center; font-size: 13.5px; }
.bar-row .track { height: 14px; background: #EEF0F4; border-radius: 6px; overflow: hidden; }
.bar-row .track span { display: block; height: 100%; border-radius: 6px; }
.bar-row b { text-align: right; }
.sev-row { padding: 14px 20px 18px; border-top: 1px solid var(--line); display: grid; gap: 8px; }

.feed { list-style: none; margin: 0; padding: 6px 0; }
.feed li { display: flex; gap: 12px; padding: 10px 20px; font-size: 13.5px; }
.feed .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); margin-top: 7px; flex: none; }
.feed time { display: block; color: var(--soft); font-size: 12px; }
.empty { padding: 28px 20px; text-align: center; color: var(--muted); }

/* Objects */
.obj-card { padding: 20px; display: flex; flex-direction: column; gap: 14px; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.obj-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(20,33,61,.1); }
.obj-card .top { display: flex; gap: 12px; align-items: flex-start; }
.obj-ic { width: 44px; height: 44px; border-radius: 10px; background: var(--navy); color: var(--orange); display: grid; place-items: center; flex: none; }
.obj-card h3 { font-size: 16.5px; }
.obj-card .addr { color: var(--muted); font-size: 13px; margin-top: 2px; }
.obj-stats { display: flex; gap: 18px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.obj-stats b { color: var(--text); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); padding: 0 8px; overflow-x: auto; }
.tab { padding: 14px 14px; border: none; background: none; cursor: pointer; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; }
.tab.active { color: var(--navy); border-bottom-color: var(--orange); }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px 24px; }
.info-grid .k { font-size: 12.5px; color: var(--muted); }
.info-grid .v { font-weight: 600; }
.people { display: grid; gap: 10px; }
.person { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.person b { display: block; font-size: 14px; }
.person small { color: var(--muted); }

/* Table */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 700; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #FAFBFC; white-space: nowrap; }
.tbl td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: #FAFBFC; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--bg); display: grid; place-items: center; color: var(--soft); flex: none; }
.cell-title { display: flex; gap: 12px; align-items: center; }
.cell-title b { display: block; }
.cell-title small { color: var(--muted); }
.warn-row td { background: #FFF8F2; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 14px; cursor: pointer; font-weight: 600; font-size: 13px; }
.chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip .n { opacity: .65; margin-left: 4px; }
select.input, input.input, textarea.input {
  border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 9px 12px; width: 100%;
}
select.input:focus, input.input:focus, textarea.input:focus { outline: 2px solid #F5C59F; border-color: var(--orange); }
textarea.input { min-height: 84px; resize: vertical; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 700; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }

/* Upload */
.drop {
  border: 2px dashed #D3D8E0; border-radius: 12px; padding: 18px; text-align: center; color: var(--muted);
  cursor: pointer; display: grid; gap: 6px; place-items: center; background: #FAFBFC;
}
.drop:hover { border-color: var(--orange); color: var(--orange-d); }
.drop input { display: none; }
.previews { display: flex; gap: 10px; flex-wrap: wrap; }
.previews img { width: 86px; height: 86px; border-radius: 10px; object-fit: cover; border: 1px solid var(--line); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px,1fr)); gap: 10px; }
.photo-grid figure { margin: 0; }
.photo-grid img { width: 100%; height: 140px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); cursor: zoom-in; }
.photo-grid figcaption { font-size: 12px; color: var(--muted); margin-top: 4px; }
.no-photo { height: 140px; border-radius: 10px; background: var(--bg); display: grid; place-items: center; color: var(--soft); font-size: 13px; text-align: center; padding: 10px; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 16px 28px; }
.timeline li::before { content: ""; position: absolute; left: 7px; top: 18px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline .tdot { position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--line); }
.timeline b { font-size: 14px; }
.timeline time { color: var(--soft); font-size: 12px; margin-left: 6px; }
.timeline p { color: var(--muted); font-size: 13.5px; margin-top: 2px; }

/* Flow indicator */
.flow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; font-weight: 700; }
.flow span { padding: 4px 10px; border-radius: 999px; background: var(--bg); color: var(--soft); }
.flow span.on { background: var(--navy); color: #fff; }
.flow span.cur { background: var(--orange); color: var(--navy); }
.flow i { color: var(--soft); font-style: normal; }

.action-box { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: #FAFBFC; display: grid; gap: 12px; }
.action-box h4 { font-size: 14px; }

/* Modal */
.modal-bg {
  position: fixed; inset: 0; background: rgba(20,33,61,.55);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 16px; overflow-y: auto; z-index: 100;
  animation: fade .15s ease;
}
.modal { background: var(--card); border-radius: 16px; width: 100%; max-width: 640px; box-shadow: 0 20px 60px rgba(0,0,0,.25); animation: rise .18s ease; }
.modal.wide { max-width: 920px; }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 18px; }
.modal-head .x { margin-left: auto; border: none; background: var(--bg); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.modal-body { padding: 22px; display: grid; gap: 18px; }
.modal-body > *, .grid > * { min-width: 0; }
.up-list li { cursor: pointer; border-bottom: 1px solid var(--line); }
.up-list li:last-child { border-bottom: none; }
.up-list li:hover { background: #FAFBFC; }
.lbl-short { display: none; }
.modal-foot { padding: 16px 22px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.85); z-index: 200; display: grid; place-items: center; padding: 20px; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 8px; }

/* Toast */
#toast-root { position: fixed; right: 20px; bottom: 20px; display: grid; gap: 10px; z-index: 300; }
.toast { background: var(--navy); color: #fff; padding: 12px 16px; border-radius: 10px; box-shadow: var(--shadow); display: flex; gap: 10px; align-items: center; font-size: 14px; animation: rise .2s ease; max-width: 360px; }
.toast.ok svg { color: #7FD6A4; }
.toast.err { background: var(--s-back); }

/* Act document */
.act-paper {
  background: #fff; color: #111; padding: 48px 56px; border: 1px solid var(--line); border-radius: 6px;
  font-family: "Times New Roman", Times, serif; font-size: 15px; line-height: 1.5;
}
.act-paper h2 { text-align: center; font-size: 19px; text-transform: uppercase; margin-bottom: 4px; }
.act-paper .act-no { text-align: center; margin-bottom: 20px; }
.act-paper .act-meta { display: flex; justify-content: space-between; margin-bottom: 18px; }
.act-paper h4 { font-size: 15px; margin: 18px 0 8px; }
.act-paper { overflow-x: auto; }
.act-paper table { width: 100%; border-collapse: collapse; margin: 6px 0; font-size: 14px; }
.act-paper th, .act-paper td { border: 1px solid #555; padding: 5px 8px; text-align: left; }
.act-paper th { background: #F0F0F0; }
.act-paper .sign { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; margin-top: 34px; }
.act-paper .sign div { border-top: 1px solid #111; padding-top: 4px; font-size: 13.5px; display: flex; justify-content: space-between; gap: 12px; }
.act-paper .stamp { margin-top: 26px; font-size: 12px; color: #555; text-align: center; }

#print-area { display: none; }
@media print {
  body.print-mode #app, body.print-mode #modal-root, body.print-mode #toast-root { display: none !important; }
  body.print-mode #print-area { display: block; }
  body.print-mode { background: #fff; }
  body.print-mode .act-paper { border: none; padding: 0; }
  @page { size: A4; margin: 18mm; }
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .g-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .g-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .g-main { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 820px) {
  .login { grid-template-columns: 1fr; }
  .login-hero, .login-panel { padding: 32px 22px; }
  .login-hero h1 { font-size: 34px; }
  .shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; bottom: 0; left: 0; right: 0; top: auto; height: auto; z-index: 50;
    flex-direction: row; padding: 6px; gap: 2px; justify-content: space-around;
  }
  .sidebar .brand, .sidebar-foot { display: none; }
  .nav-link { flex-direction: column; gap: 2px; font-size: 11px; padding: 6px 4px; flex: 1; text-align: center; }
  .nav-link .count, .lbl-long { display: none; }
  .lbl-short { display: inline; }
  .main { padding-bottom: 72px; }
  .topbar { padding: 10px 14px; flex-wrap: wrap; gap: 10px; }
  .topbar .crumbs { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 16px; }
  .topbar .spacer { display: none; }
  .demo-switch { order: 5; flex: 1 1 100%; }
  .demo-switch select { flex: 1; min-width: 0; }
  .icon-btn { display: grid; }
  .me div { display: none; }
  .page { padding: 16px; }
  .g-2, .g-3, .form-grid, .info-grid { grid-template-columns: minmax(0,1fr); }
  .g-4 { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  .kpi { padding: 14px; gap: 10px; flex-direction: column; align-items: flex-start; }
  .kpi-ic { width: 36px; height: 36px; border-radius: 10px; }
  .kpi .val { font-size: 24px; }
  .act-paper { padding: 24px 18px; }
  .bar-row { grid-template-columns: 100px minmax(0,1fr) 30px; }
  #toast-root { left: 16px; right: 16px; bottom: 84px; }
  .toast { max-width: none; }
}
