:root {
  --brand: #268f8b;
  --brand-600: #1d7672;
  --brand-50: #e9f6f5;
  --brand-100: #d2eeec;
  --ink: #16181b;
  --ink-2: #3b4047;
  --muted: #6b7280;
  --line: #e6e8eb;
  --bg: #f4f5f7;
  --card: #ffffff;
  --head: #111315;
  --green: #16a34a;  --green-50: #e8f7ee;
  --blue: #2563eb;   --blue-50: #eaf1fe;
  --amber: #d97706;  --amber-50: #fdf4e3;
  --orange: #ea580c; --orange-50: #fdeee4;
  --red: #dc2626;    --red-50: #fdecec;
  --slate: #475569;  --slate-50: #eef1f4;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.06);
  --shadow-lg: 0 12px 32px rgba(16,24,40,.18);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --nav-h: 64px;
  --top-h: 56px;
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px; line-height: 1.45;
  font-feature-settings: "tnum" 1, "cv11" 1;
}
a { color: var(--brand-600); text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
[x-cloak] { display: none !important; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.bold { font-weight: 700; }
.right { text-align: right; }
.center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 6px; } .mt-2 { margin-top: 12px; } .mt-3 { margin-top: 20px; }
.mb-2 { margin-bottom: 12px; } .mb-3 { margin-bottom: 20px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- App shell ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: var(--head); color: #fff;
  padding: var(--safe-t) 12px 0; height: calc(var(--top-h) + var(--safe-t));
  display: flex; align-items: center; gap: 10px;
}
.topbar .brand { display: flex; align-items: center; gap: 10px; color: #fff; min-width: 0; }
.topbar .brand img { height: 34px; }
.topbar .title { font-weight: 600; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .back { color: #fff; display: grid; place-items: center; width: 40px; height: 40px; margin-left: -6px; border-radius: 10px; }
.topbar .spacer { flex: 1; }
.topbar .icon-btn { color: #fff; background: rgba(255,255,255,.08); }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none;
}

.page { padding: 16px 14px calc(var(--nav-h) + var(--safe-b) + 24px); max-width: 1100px; margin: 0 auto; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.page-head h1 { font-size: 22px; font-weight: 700; }

.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: #fff; border-top: 1px solid var(--line);
  height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
}
.bottomnav a, .bottomnav button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--muted); font-size: 11px; font-weight: 600; height: 100%; background: none; border: 0; font-family: inherit;
}
.bottomnav a.active { color: var(--brand-600); }
.bottomnav svg { width: 24px; height: 24px; }
.bottomnav .fab {
  width: 54px; height: 54px; border-radius: 18px; background: var(--brand); color: #fff;
  display: grid; place-items: center; box-shadow: 0 6px 16px rgba(38,143,139,.45); margin-top: -18px;
}
.bottomnav .fab svg { width: 28px; height: 28px; }

.sidebar { display: none; }

/* ---------- Cards / stats ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.card-pad { padding: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); gap: 10px; }
.card-head h2 { font-size: 16px; font-weight: 700; }
.section-title { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 22px 2px 10px; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { padding: 14px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.stat .label { font-size: 12px; font-weight: 600; color: var(--muted); }
.stat .value { font-size: 20px; font-weight: 800; margin-top: 4px; letter-spacing: -.01em; }
.stat .hint { font-size: 12px; color: var(--muted); margin-top: 2px; }
.stat.hero { grid-column: 1 / -1; background: var(--head); color: #fff; border: 0; }
.stat.hero .label, .stat.hero .hint { color: rgba(255,255,255,.65); }
.stat.hero .value { font-size: 28px; color: #fff; }
.stat.red .value { color: var(--red); }
.stat.green .value { color: var(--green); }
.stat.amber .value { color: var(--amber); }

/* ---------- List items ---------- */
.list { display: flex; flex-direction: column; gap: 8px; }
.item {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  position: relative; overflow: hidden; color: inherit;
}
.item::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: transparent; }
.item.s-overdue::before { background: var(--red); }
.item.s-upcoming::before { background: var(--amber); }
.item.s-partial::before { background: var(--orange); }
.item.s-portfolio::before { background: var(--blue); }
.item.s-paid::before { background: var(--green); }
.item.s-protested::before, .item.s-legal::before { background: var(--slate); }
.item .main { flex: 1; min-width: 0; }
.item .t1 { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .t2 { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .side { text-align: right; flex: none; }
.item .amount { font-weight: 800; font-variant-numeric: tabular-nums; }
.item-actions { display: flex; gap: 6px; margin-top: 6px; justify-content: flex-end; }

.empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty svg { width: 44px; height: 44px; color: #c3c8cf; margin-bottom: 6px; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.b-overdue { background: var(--red-50); color: var(--red); }
.b-upcoming { background: var(--amber-50); color: var(--amber); }
.b-partial { background: var(--orange-50); color: var(--orange); }
.b-portfolio { background: var(--blue-50); color: var(--blue); }
.b-paid { background: var(--green-50); color: var(--green); }
.b-protested, .b-legal, .b-returned, .b-cancelled, .b-muted { background: var(--slate-50); color: var(--slate); }
.b-brand { background: var(--brand-50); color: var(--brand-600); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-weight: 650; font-size: 15px; cursor: pointer; white-space: nowrap;
  background: #fff; color: var(--ink); border-color: var(--line); transition: background .15s, transform .05s;
}
.btn:active { transform: scale(.98); }
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-600); }
.btn-dark { background: var(--head); color: #fff; border-color: var(--head); }
.btn-danger { background: var(--red); color: #fff; border-color: var(--red); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-soft { background: var(--brand-50); color: var(--brand-600); border-color: var(--brand-100); }
.btn-soft-danger { background: var(--red-50); color: var(--red); border-color: #f8d4d4; }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-lg { min-height: 52px; font-size: 16px; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); color: var(--ink-2); cursor: pointer; flex: none; }
.icon-btn svg { width: 20px; height: 20px; }
.btn-wa { background: #25d366; color: #fff; border-color: #25d366; }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 14px; }
.field label { display: block; font-size: 13px; font-weight: 650; color: var(--ink-2); margin-bottom: 6px; }
.field .help { font-size: 12px; color: var(--muted); margin-top: 4px; }
.field .error { font-size: 12.5px; color: var(--red); margin-top: 4px; font-weight: 600; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid #d5d9de; border-radius: 12px;
  font: inherit; font-size: 16px; background: #fff; color: var(--ink); outline: none; appearance: none;
}
.textarea { min-height: 84px; resize: vertical; }
.select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 38px; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }
.input.is-invalid { border-color: var(--red); }
.input-money { font-weight: 700; font-size: 20px; font-variant-numeric: tabular-nums; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.grid-2 > *, .photo-picker > * { min-width: 0; }
.input[type=date], .input[type=time] { min-width: 0; max-width: 100%; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--brand); margin: 1px 0 0; flex: none; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; background: #eceef1; padding: 4px; border-radius: 12px; }
.seg label { text-align: center; padding: 9px 6px; border-radius: 9px; font-weight: 650; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.seg input { display: none; }
.seg input:checked + span { color: var(--ink); }
.seg label:has(input:checked) { background: #fff; box-shadow: var(--shadow); color: var(--ink); }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { padding: 8px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13.5px; font-weight: 650; color: var(--ink-2); white-space: nowrap; }
.chip.active { background: var(--head); color: #fff; border-color: var(--head); }
.chip .count { opacity: .6; margin-left: 4px; }

.search { position: relative; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); }
.search .input { padding-left: 40px; }

.photo-picker { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.photo-slot {
  border: 1.5px dashed #cfd4da; border-radius: 12px; aspect-ratio: 4/3; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px; color: var(--muted); font-size: 13px; font-weight: 600;
  background: #fafbfc; position: relative; overflow: hidden; cursor: pointer;
}
.photo-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-slot input { display: none; }
.photo-slot svg { width: 26px; height: 26px; }

/* ---------- Detail ---------- */
.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: 14.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-weight: 600; word-break: break-word; }
.big-amount { font-size: 30px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.progress { height: 8px; border-radius: 99px; background: #eceef1; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--green); border-radius: 99px; }
.thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.thumbs a { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; background: #eee; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.timeline { display: flex; flex-direction: column; }
.tl { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.tl:last-child { border-bottom: 0; }
.tl .dot { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--green-50); color: var(--green); }
.tl .dot svg { width: 18px; height: 18px; }
.tl.cancelled { opacity: .55; }
.tl.cancelled .amount { text-decoration: line-through; }

/* ---------- Table (desktop) ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fafbfc; white-space: nowrap; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; }
.table tfoot td { font-weight: 800; background: #fafbfc; }

/* ---------- Alerts / toast ---------- */
.alert { padding: 12px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; margin-bottom: 12px; display: flex; gap: 10px; align-items: flex-start; }
.alert-success { background: var(--green-50); color: #166534; }
.alert-error { background: var(--red-50); color: #991b1b; }
.alert-info { background: var(--brand-50); color: #155e5b; }
.alert-warn { background: var(--amber-50); color: #92400e; }
.toast {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + var(--safe-b) + 14px); z-index: 80;
  background: var(--head); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; box-shadow: var(--shadow-lg);
  max-width: calc(100% - 28px); font-size: 14.5px;
}

/* ---------- Bottom sheet ---------- */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(15,17,20,.5); z-index: 90; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 91; background: #fff;
  border-radius: 20px 20px 0 0; max-height: 92vh; overflow-y: auto; overscroll-behavior: contain;
  padding: 8px 16px calc(18px + var(--safe-b)); box-shadow: var(--shadow-lg);
}
.sheet .grabber { width: 40px; height: 5px; border-radius: 99px; background: #d7dbe0; margin: 4px auto 12px; }
.sheet h3 { font-size: 18px; font-weight: 750; }
.sheet .sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 10px; }
.menu-list { display: flex; flex-direction: column; }
.menu-list a, .menu-list button {
  display: flex; align-items: center; gap: 14px; padding: 13px 4px; color: var(--ink); font-weight: 600; font-size: 15.5px;
  border: 0; border-bottom: 1px solid var(--line); background: none; font-family: inherit; width: 100%; text-align: left; cursor: pointer;
}
.menu-list a:last-child { border-bottom: 0; }
.menu-list .mi { width: 38px; height: 38px; border-radius: 11px; background: var(--brand-50); color: var(--brand-600); display: grid; place-items: center; flex: none; }
.menu-list .mi svg { width: 20px; height: 20px; }
.menu-list .chev { margin-left: auto; color: #c0c5cc; width: 18px; height: 18px; }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick-grid a { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 14px; border: 1px solid var(--line); color: var(--ink); font-weight: 700; }
.quick-grid a .mi { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-600); }
.quick-grid a small { font-weight: 500; color: var(--muted); font-size: 12.5px; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button, .tabs a { background: none; border: 0; font: inherit; font-weight: 650; font-size: 14px; color: var(--muted); padding: 12px 12px; border-bottom: 2px solid transparent; white-space: nowrap; cursor: pointer; }
.tabs .active { color: var(--ink); border-color: var(--brand); }

/* ---------- Permission matrix ---------- */
.perm-group { border-top: 1px solid var(--line); padding: 14px 16px; }
.perm-group h4 { margin: 0 0 10px; font-size: 14px; display: flex; justify-content: space-between; align-items: center; }
.perm-group .check { padding: 6px 0; }

/* ---------- Pagination ---------- */
.pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; }

/* ---------- Auth ---------- */
.auth { min-height: 100vh; display: flex; flex-direction: column; background: var(--head); }
.auth .hero { padding: calc(56px + var(--safe-t)) 24px 34px; text-align: center; color: #fff; }
.auth .hero img { height: 64px; }
.auth .hero p { color: rgba(255,255,255,.6); margin: 12px 0 0; font-size: 14px; }
.auth .panel { flex: 1; background: var(--bg); border-radius: 26px 26px 0 0; padding: 28px 20px calc(24px + var(--safe-b)); }
.auth .panel-inner { max-width: 420px; margin: 0 auto; }
.auth h1 { font-size: 22px; margin-bottom: 4px; }

/* ---------- Install banner ---------- */
.install-banner { display: flex; gap: 12px; align-items: center; padding: 12px 14px; background: var(--head); color: #fff; border-radius: var(--radius); margin-bottom: 14px; }
.install-banner img { width: 44px; height: 44px; border-radius: 11px; flex: none; }
.install-banner .grow small { color: rgba(255,255,255,.65); display: block; font-size: 12.5px; }
.ios-steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.ios-steps li { display: flex; gap: 12px; align-items: center; font-size: 15px; }
.ios-steps li::before { counter-increment: s; content: counter(s); width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.ios-steps svg { width: 22px; height: 22px; vertical-align: -5px; color: var(--blue); }

/* ---------- Desktop ---------- */
@media (max-width: 899px) {
  .hide-m { display: none !important; }
  .stats > .stat.wide-m { grid-column: 1 / -1; }
}

@media (min-width: 900px) {
  .hide-d { display: none !important; }
  body { font-size: 14.5px; }
  .bottomnav { display: none; }
  .sidebar {
    display: flex; flex-direction: column; position: fixed; left: 0; top: 0; bottom: 0; width: 248px; z-index: 35;
    background: var(--head); color: #fff; padding: 18px 12px;
  }
  .sidebar .logo { padding: 6px 10px 22px; }
  .sidebar .logo img { height: 34px; }
  .sidebar .logo small { display: block; color: rgba(255,255,255,.5); font-size: 11.5px; margin-top: 6px; }
  .sidebar nav { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
  .sidebar nav .grp { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.4); padding: 16px 12px 6px; font-weight: 700; }
  .sidebar nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: rgba(255,255,255,.75); font-weight: 600; font-size: 14px; }
  .sidebar nav a svg { width: 20px; height: 20px; }
  .sidebar nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
  .sidebar nav a.active { background: var(--brand); color: #fff; }
  .sidebar .me { margin-top: auto; display: flex; gap: 10px; align-items: center; padding: 12px 8px 0; border-top: 1px solid rgba(255,255,255,.08); }
  .sidebar .me small { display: block; color: rgba(255,255,255,.5); font-size: 12px; }
  .topbar { margin-left: 248px; background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); padding-left: 24px; padding-right: 24px; }
  .topbar .brand { display: none; }
  .topbar .back, .topbar .icon-btn { color: var(--ink-2); background: #fff; }
  .topbar .title { font-size: 18px; }
  .main-wrap { margin-left: 248px; }
  .page { padding: 24px 24px 40px; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stat.hero { grid-column: auto; }
  .stat.hero .value { font-size: 24px; }
  .sheet { left: 50%; right: auto; bottom: auto; top: 50%; transform: translate(-50%, -50%); width: 520px; border-radius: 20px; padding: 20px 22px 22px; max-height: 88vh; }
  .sheet .grabber { display: none; }
  .toast { bottom: 24px; }
  .cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; align-items: start; }
  .cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
  .auth { flex-direction: row; }
  .auth .hero { flex: 1; display: flex; flex-direction: column; justify-content: center; }
  .auth .panel { flex: none; width: 480px; border-radius: 0; display: flex; align-items: center; }
  .auth .panel-inner { width: 100%; }
}

/* ---------- Photo input ---------- */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.photo-input .photo-slot { cursor: default; }
.photo-input .photo-label { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.photo-input .photo-info { position: absolute; left: 6px; bottom: 6px; background: rgba(17,19,21,.75); color: #fff; font-size: 11px; font-weight: 600; padding: 3px 7px; border-radius: 7px; z-index: 2; }
.photo-input .photo-busy { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255,255,255,.8); color: var(--ink); z-index: 3; }
.photo-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 6px; }
.photo-actions .btn { padding: 0 6px; gap: 5px; }
.photo-actions .btn svg { width: 20px; height: 20px; }
