:root {
  --bg: #fbf9f6;
  --surface: #ffffff;
  --line: #ece6df;
  --line-strong: #ddd5cb;
  --ink: #2b2623;
  --muted: #8b8279;
  --accent: #d4577a;
  --accent-ink: #b63f62;
  --accent-soft: #fdeef3;
  --ok: #3d7a2c;
  --warn: #9a6b00;
  --bad: #b3362f;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(60, 40, 30, .05), 0 6px 20px rgba(60, 40, 30, .06);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Кольори статусів — як у вашій таблиці */
.s-ordered          { --c: #5b9bd5; --bg: #f1f7fd; --pill: #d9e9f8; --pill-ink: #25598a; }
.s-awaiting_payment { --c: #e3b21f; --bg: #fffbea; --pill: #fff0bd; --pill-ink: #7d5f00; }
.s-to_ship          { --c: #9a7bd0; --bg: #f6f2fc; --pill: #e7dff6; --pill-ink: #55399a; }
.s-problem          { --c: #e06666; --bg: #fdf1f1; --pill: #f8d7d7; --pill-ink: #9b2c2c; }
.s-shipped          { --c: #7db66b; --bg: #f5faf2; --pill: #dff0d7; --pill-ink: #356f26; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.nw { white-space: nowrap; }
.boot { padding: 80px 20px; text-align: center; color: var(--muted); }

/* ---------- Каркас ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251, 249, 246, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
  padding-top: var(--safe-t);
}
.topbar-in {
  max-width: 1480px; margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; gap: 18px;
}
.brand { display: flex; align-items: flex-end; gap: 8px; text-decoration: none; }
.brand img { height: 26px; width: auto; display: block; }
.brand-tag { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; color: var(--muted); padding-bottom: 2px; }
.auth-brand { justify-content: center; }
.auth-brand img { height: 48px; }
.auth-sub { text-align: center; font-size: 11px; font-weight: 700; letter-spacing: .3em; color: var(--muted); margin: 10px 0 18px; }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a {
  display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px;
  text-decoration: none; color: var(--muted); font-weight: 560;
}
.nav a svg { width: 18px; height: 18px; }
.nav a:hover { background: #f3eee8; color: var(--ink); }
.nav a.on { background: var(--accent-soft); color: var(--accent-ink); }
.spacer { flex: 1; }

.sync {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 560; background: #eef6ea; color: var(--ok); white-space: nowrap;
}
.sync::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.sync.busy { background: #eef3fa; color: #3a6ea5; }
.sync.busy::before { animation: pulse 1s infinite; }
.sync.off { background: #fff4d6; color: var(--warn); }
.sync.pend { background: #fff4d6; color: var(--warn); }
@keyframes pulse { 50% { opacity: .25; } }

.avatar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; text-decoration: none;
}

.main { max-width: 1480px; margin: 0 auto; padding: 22px 20px 120px; }
.page-title { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.page-title h1 { font-size: 24px; }

.tabbar { display: none; }

/* ---------- Кнопки контактів клієнта ---------- */
.cbtn {
  display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 3px 11px 3px 3px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line-strong); text-decoration: none; color: var(--ink); font-weight: 600; font-size: 13.5px;
  line-height: 1.2; transition: .15s; vertical-align: middle;
}
.cbtn:hover { border-color: var(--c2, #ccc); box-shadow: 0 3px 10px rgba(40, 25, 20, .08); }
.cbtn-ic { width: 22px; height: 22px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--c2, #8b8279); }
.cbtn-ic svg { width: 15px; height: 15px; display: block; }
.cbtn-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cbtn-ig { --c2: #e2426e; }
.cbtn-ig .cbtn-ic { background: radial-gradient(circle at 30% 110%, #fdd36b 0%, #f7894a 30%, #e2426e 60%, #9b4fd0 100%); }
.cbtn-tg { --c2: #2aa3e0; }
.cbtn-threads { --c2: #222; }
.cbtn-phone { --c2: #3d9a5b; }
.cbtn-web { --c2: #8b8279; }
.net-pick { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 8px; }
.np {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 4px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line-strong); background: #fff; font-weight: 600; font-size: 13.5px; color: #5d554e;
}
.np .cbtn-ic { width: 22px; height: 22px; opacity: .45; filter: grayscale(1); transition: .15s; }
.np.on { color: var(--ink); border-color: var(--c2); background: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c2) 15%, transparent); }
.np.on .cbtn-ic { opacity: 1; filter: none; }
.np-ig { --c2: #e2426e; } .np-ig .cbtn-ic { background: radial-gradient(circle at 30% 110%, #fdd36b 0%, #f7894a 30%, #e2426e 60%, #9b4fd0 100%); }
.np-tg { --c2: #2aa3e0; } .np-tg .cbtn-ic { background: #2aa3e0; }
.np-threads { --c2: #222; } .np-threads .cbtn-ic { background: #222; }
.np-phone { --c2: #3d9a5b; } .np-phone .cbtn-ic { background: #3d9a5b; }
.client-field > label { margin: 0; }
.cbtn.sm { padding: 1px 9px 1px 2px; gap: 6px; font-size: 14px; }
.cbtn.sm .cbtn-ic { width: 19px; height: 19px; }
.cbtn.sm .cbtn-ic svg { width: 13px; height: 13px; }
.strip .who .cbtn { max-width: 100%; }
.modal-head .cbtn { margin-right: 4px; }

/* ---------- Instagram ---------- */
.ig {
  display: inline-flex; align-items: center; gap: 9px; padding: 5px 12px 5px 6px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: #fff; text-decoration: none; color: var(--ink);
  font-weight: 650; font-size: 13.5px; line-height: 1.15; transition: .15s; white-space: nowrap;
}
.ig:hover { border-color: #e9a9bd; box-shadow: 0 4px 14px rgba(212, 87, 122, .14); transform: translateY(-1px); }
.ig-dot {
  width: 26px; height: 26px; border-radius: 50%; flex: none; position: relative;
  background: radial-gradient(circle at 30% 110%, #fdd36b 0%, #f7894a 30%, #e2426e 60%, #9b4fd0 100%);
}
.ig-dot::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; border: 2px solid #fff; }
.ig-txt { display: flex; flex-direction: column; }
.ig-txt small { font-size: 10px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.ig-arr { width: 14px; height: 14px; color: var(--muted); flex: none; }
.ig:hover .ig-arr { color: var(--accent-ink); }
.ig-big { padding: 8px 16px 8px 8px; font-size: 16px; }
.ig-big .ig-dot { width: 38px; height: 38px; }
.ig-big .ig-dot::after { inset: 11px; border-width: 2.5px; }
.ig-big .ig-txt small { font-size: 11.5px; }
.auth-ig { display: flex; justify-content: center; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }

/* ---------- Кнопки та поля ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 16px; border-radius: 11px; border: 1px solid var(--line-strong);
  background: var(--surface); cursor: pointer; font-weight: 600; text-decoration: none;
}
.btn:hover { background: #faf6f1; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-ink); }
.btn.danger { color: var(--bad); border-color: #efc9c5; background: #fff; }
.btn.danger:hover { background: #fdf1f0; }
.btn.small { padding: 5px 10px; font-size: 13px; border-radius: 9px; }
.btn:disabled { opacity: .55; cursor: default; }
.icon-btn { border: 0; background: transparent; font-size: 26px; line-height: 1; cursor: pointer; color: var(--muted); padding: 2px 8px; border-radius: 8px; }
.icon-btn:hover { background: #f3eee8; }

input, select, textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: #fff; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(212, 87, 122, .15); }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); }
label { display: block; font-weight: 560; font-size: 13px; color: #5d554e; }
label > input, label > select, label > textarea { margin-top: 5px; font-weight: 400; color: var(--ink); font-size: 15px; }
label small { font-weight: 400; color: var(--muted); }

/* ---------- Панель інструментів ---------- */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar .search { flex: 1 1 260px; max-width: 420px; }
.toolbar select { width: auto; min-width: 170px; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px;
  border: 1.5px solid var(--line-strong); background: #fff; cursor: pointer; font-weight: 580; font-size: 14px;
}
.chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--c, #bbb); display: inline-block; }
.chip b { font-weight: 700; color: var(--muted); font-size: 13px; }
.chip.on { background: var(--pill, #f1ece6); border-color: var(--c, var(--ink)); color: var(--pill-ink, var(--ink)); }
.chip.on b { color: inherit; }

.summary {
  display: flex; flex-wrap: wrap; gap: 6px 22px; padding: 10px 14px; margin-bottom: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; color: var(--muted);
}
.summary b { color: var(--ink); font-weight: 650; }

/* ---------- Таблиця замовлень ---------- */
.tbl-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; }
.tbl th {
  position: sticky; top: 0; text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); font-weight: 650; padding: 11px 10px; background: #fcfaf7; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.tbl td { padding: 10px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { background: var(--bg); cursor: pointer; }
.tbl tbody tr td:first-child { box-shadow: inset 4px 0 0 var(--c); }
.tbl tbody tr:hover { filter: brightness(.975); }
.num { text-align: right; white-space: nowrap; }
.tbl th.num { text-align: right; }
.prod { font-weight: 600; }
.note { color: var(--muted); font-size: 13px; margin-top: 2px; }
.sub { color: var(--muted); font-size: 12.5px; }
.pos { color: var(--ok); font-weight: 650; }
.neg { color: var(--bad); font-weight: 650; }
.done { color: var(--ok); font-weight: 600; font-size: 13px; }

.client { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 560; overflow-wrap: anywhere; word-break: normal; }
.tbl td:nth-child(2) { min-width: 170px; }
.tbl td:nth-child(3) { min-width: 190px; }
a.client:hover { text-decoration: underline; }
.net {
  flex: none; white-space: nowrap; font-size: 10.5px; font-weight: 700; padding: 2px 6px; border-radius: 6px; background: #f1ece6; color: #6c635b; letter-spacing: .03em;
}
.tag {
  display: inline-block; padding: 1px 8px; border-radius: 999px; background: #fff0bd; color: #7d5f00;
  font-size: 12px; font-weight: 650; margin-left: 4px;
}

.status-select {
  appearance: none; -webkit-appearance: none; width: auto; min-width: 140px; padding: 6px 28px 6px 12px;
  border: 0; border-radius: 999px; font-weight: 650; font-size: 13.5px; cursor: pointer;
  background: var(--pill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23666' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 11px center;
  color: var(--pill-ink);
}

.empty { padding: 60px 20px; text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 4px; }

/* ---------- Смужки (телефон) ---------- */
.strips { display: none; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.strip-head { display: flex; justify-content: space-between; padding: 6px 12px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); background: #fcfaf7; border-bottom: 1px solid var(--line); }
.strip { background: var(--bg); box-shadow: inset 5px 0 0 var(--c); padding: 6px 12px 6px 15px; border-bottom: 1px solid var(--line); cursor: pointer; }
.strip:last-child { border-bottom: 0; }
.strip:active { filter: brightness(.95); }
.strip .l1, .strip .l2 { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.strip .l1 { font-size: 15px; line-height: 20px; }
.strip .l2 { font-size: 12.5px; line-height: 18px; color: var(--muted); }
.strip .who { display: flex; align-items: center; gap: 6px; min-width: 0; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.strip .who .net { font-size: 9.5px; padding: 1px 5px; }
.strip .what { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.strip .rest { flex: none; white-space: nowrap; }
.strip .rest .done { font-size: 12.5px; }
.strip .w { flex: none; white-space: nowrap; padding: 0 7px; border-radius: 999px; background: #efebe6; color: #6c635b; font-weight: 600; font-size: 12px; }
.strip .w.due { background: #fff0bd; color: #7d5f00; }
.head-act { display: flex; align-items: center; gap: 6px; }

/* ---------- Блоки ---------- */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-bottom: 16px; }
.panel h2 { font-size: 17px; margin-bottom: 12px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.kpi span { display: block; color: var(--muted); font-size: 13px; font-weight: 560; }
.kpi b { display: block; font-size: 25px; margin-top: 4px; letter-spacing: -.02em; }
.kpi small { color: var(--muted); }
.kpi.hero { background: var(--accent-soft); border-color: #f6d3df; }

.rows { display: flex; flex-direction: column; }
.row { display: flex; gap: 14px; align-items: center; padding: 11px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.row:last-child { border-bottom: 0; }
.row:hover { background: #fcfaf7; }
.row .d { width: 92px; color: var(--muted); flex: none; }
.row .cat { width: 150px; flex: none; font-weight: 600; }
.row .t { flex: 1; min-width: 0; color: #5d554e; overflow-wrap: anywhere; }
.row .a { font-weight: 650; white-space: nowrap; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 12px; font-weight: 700; }
.badge.off { background: #eee; color: #777; }
.err { color: var(--bad); font-size: 14px; min-height: 1em; }
.hint { color: var(--muted); font-size: 13px; }
.user-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.user-row:last-child { border-bottom: 0; }
.user-row .who { flex: 1; min-width: 160px; }

table.mini { width: 100%; border-collapse: collapse; font-size: 14px; }
.mini th { text-align: left; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.mini td { padding: 9px 8px; border-bottom: 1px solid var(--line); }
.mini th.num, .mini td.num { text-align: right; }

/* ---------- Модальне вікно ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 50; background: rgba(43, 38, 35, .38); display: flex; align-items: flex-start;
  justify-content: center; padding: 4vh 14px; overflow-y: auto;
}
.modal {
  background: #fff; border-radius: 18px; width: 100%; max-width: 640px; padding: 20px 22px 22px;
  box-shadow: 0 20px 60px rgba(40, 25, 20, .25); animation: pop .16s ease-out;
}
@keyframes pop { from { transform: translateY(10px); opacity: 0; } }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.modal-head h2 { font-size: 20px; }
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 14px; margin: 0; }
fieldset legend { padding: 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.pct-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.quick { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.quick button { padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; cursor: pointer; font-weight: 600; font-size: 13px; }
.quick button:hover { background: var(--accent-soft); border-color: var(--accent); }
.calc { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; background: #fbf8f4; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.calc span { display: block; font-size: 12px; color: var(--muted); font-weight: 560; }
.calc b { font-size: 19px; }
.w-total { margin-top: 10px; padding: 9px 12px; border-radius: 10px; background: #fff7dc; color: #6b5200; font-size: 14px; }
.w-total b { color: var(--ink); }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; }

/* ---------- Вхід ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.auth-card { width: 100%; max-width: 400px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 30px 28px; }

.auth-card p { text-align: center; color: var(--muted); margin: 0 0 20px; }

#toast {
  position: fixed; left: 50%; bottom: calc(86px + var(--safe-b)); transform: translateX(-50%) translateY(20px);
  background: #2b2623; color: #fff; padding: 11px 18px; border-radius: 12px; font-weight: 560; font-size: 14px;
  opacity: 0; pointer-events: none; transition: .2s; z-index: 80; max-width: 92vw; text-align: center;
}
#toast.show { opacity: 1; transform: translateX(-50%); }

.fab {
  display: none; position: fixed; right: 14px; bottom: calc(82px + var(--safe-b)); z-index: 30;
  width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--accent); color: #fff;
  font-size: 28px; line-height: 1; box-shadow: 0 8px 22px rgba(212, 87, 122, .45); cursor: pointer;
}

/* ---------- Адаптивність ---------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .tbl-wrap { display: none; }
  .strips { display: flex; }
  .topbar-in { padding: 8px 14px; gap: 10px; }
  .main { padding: 16px 14px calc(110px + var(--safe-b)); }
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + var(--safe-b));
  }
  .tabbar a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; border-radius: 10px;
    text-decoration: none; color: var(--muted); font-size: 11.5px; font-weight: 600;
  }
  .tabbar a svg { width: 23px; height: 23px; }
  .tabbar a.on { color: var(--accent-ink); }
  .fab { display: block; }
  .toolbar .btn.primary { display: none; }
  .toolbar { gap: 8px; margin-bottom: 8px; flex-wrap: nowrap; }
  .toolbar .search { max-width: none; flex: 1 1 0; min-width: 0; }
  .toolbar select { flex: none; width: 44%; max-width: 190px; min-width: 0; }
  .toolbar input, .toolbar select { padding: 8px 10px; }
  .m-hide { display: none; }
  .summary { padding: 7px 12px; font-size: 13px; gap: 4px 14px; margin-bottom: 8px; }
  .chips { margin-bottom: 8px; }
  .chip { padding: 5px 11px; font-size: 13px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-left: -14px; margin-right: -14px; padding: 0 14px 4px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  input, select, textarea { font-size: 16px; }
  .page-title h1 { font-size: 21px; }
  .row { flex-wrap: wrap; gap: 4px 12px; }
  .row .d { width: auto; }
  .row .cat { width: auto; flex: 1; }
  .row .t { flex-basis: 100%; order: 3; }
  .overlay { padding: 0; }
  .modal { max-width: none; border-radius: 0; min-height: 100%; padding: calc(16px + var(--safe-t)) 16px calc(24px + var(--safe-b)); }
  .grid2, .pct-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .ig-top { padding: 3px; gap: 0; }
  .ig-top .ig-txt, .ig-top .ig-arr { display: none; }
  .ig-top .ig-dot { width: 28px; height: 28px; }
  .ig-top .ig-dot::after { inset: 8.5px; }
}
@media (max-width: 420px) {
  .sync.ok { font-size: 0; gap: 0; padding: 8px; }
  .brand-tag { display: none; }
  .grid2 { grid-template-columns: 1fr; }
}
