:root {
  --bg: #f3f0e8;
  --paper: #fffdf8;
  --paper-2: #f9f7f0;
  --ink: #20302a;
  --ink-2: #64746c;
  --ink-3: #91a097;
  --green: #1f6a55;
  --green-deep: #174b3d;
  --green-soft: #e3efe9;
  --blue: #286aa6;
  --blue-soft: #e5eff8;
  --amber: #b87124;
  --amber-soft: #f8ead8;
  --purple: #7860a4;
  --purple-soft: #eee9f6;
  --danger: #b94033;
  --danger-soft: #f9e6e3;
  --line: #e5dfd1;
  --shadow: 0 1px 2px rgba(28, 47, 39, .05);
  --shadow-float: 0 12px 35px rgba(25, 55, 43, .16);
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.5;
}
button, input, textarea { font: inherit; }
button { color: inherit; }
button, .item-card { -webkit-tap-highlight-color: transparent; }
.hidden { display: none !important; }

.auth-screen {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 16% 12%, rgba(255,255,255,.95) 0, rgba(255,255,255,0) 30%),
    radial-gradient(circle at 88% 84%, rgba(31,106,85,.13) 0, rgba(31,106,85,0) 32%),
    var(--bg);
}
.auth-card {
  width: min(100%, 420px);
  padding: 36px;
  background: rgba(255,253,248,.94);
  border: 1px solid rgba(229,223,209,.9);
  border-radius: 24px;
  box-shadow: var(--shadow-float);
}
.brand-mark {
  width: 52px; height: 52px; display: grid; place-items: center;
  border-radius: 17px; color: white; background: var(--green);
  font-family: Georgia, serif; font-size: 25px; font-weight: 700; margin-bottom: 20px;
}
.eyebrow, .section-kicker {
  margin: 0; color: var(--green); font-size: 10px; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase;
}
.auth-card h1 { margin: 3px 0 4px; font-family: Georgia, "Songti SC", serif; font-size: 34px; letter-spacing: .04em; }
.auth-subtitle { margin: 0 0 26px; color: var(--ink-2); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--green-soft); border-radius: 12px; margin-bottom: 22px; }
.auth-tab { border: 0; background: transparent; border-radius: 9px; height: 40px; cursor: pointer; color: var(--ink-2); font-weight: 700; }
.auth-tab.active { background: var(--paper); color: var(--green); box-shadow: var(--shadow); }
.auth-form { display: grid; gap: 15px; }
.auth-form label, .form-card label, .modal-body label { display: grid; gap: 7px; color: var(--ink-2); font-size: 12px; font-weight: 700; }
input, textarea {
  width: 100%; min-width: 0; height: 48px; padding: 0 14px;
  color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 12px; outline: none;
}
textarea { min-height: 90px; padding-top: 12px; resize: vertical; }
input:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(31,106,85,.12); }
.form-error { min-height: 18px; margin: -5px 0 0; color: var(--danger); font-size: 12px; }
.local-note { margin: 18px 0 0; color: var(--ink-3); font-size: 11px; line-height: 1.6; }

.app { min-height: 100dvh; padding-bottom: 82px; }
.topbar {
  position: sticky; top: 0; z-index: 20; height: 74px; padding: 0 max(18px, calc((100vw - 680px) / 2));
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,253,248,.91); border-bottom: 1px solid rgba(229,223,209,.8); backdrop-filter: blur(16px);
}
.topbar h1 { margin: 1px 0 0; font-family: Georgia, "Songti SC", serif; font-size: 22px; letter-spacing: .06em; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn, .avatar-btn, .close-btn { border: 0; cursor: pointer; }
.icon-btn { height: 36px; padding: 0 13px; border-radius: 11px; background: var(--green-soft); color: var(--green); font-size: 12px; font-weight: 800; }
.avatar-btn { width: 36px; height: 36px; border-radius: 50%; color: white; background: var(--green-deep); font-weight: 800; }
.shell { width: min(100%, 680px); margin: 0 auto; padding: 22px 16px 32px; }
.view { display: none; animation: fade-in .22s ease; }
.view.active { display: block; }
@keyframes fade-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin: 0 2px 18px; }
.section-head h2 { margin: 2px 0 0; font-size: 23px; line-height: 1.25; letter-spacing: -.02em; }
.month-filter { display: grid; gap: 4px; color: var(--ink-3); font-size: 10px; font-weight: 800; }
.month-filter input { width: 142px; height: 40px; font-size: 12px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.hero-card {
  display: grid; grid-template-columns: 1.55fr 1fr; overflow: hidden; margin-bottom: 12px;
  color: white; border-radius: 20px; background: linear-gradient(135deg, var(--green-deep), var(--green)); box-shadow: 0 10px 25px rgba(31,106,85,.22);
}
.hero-main, .hero-side { min-height: 160px; padding: 25px 24px; display: flex; flex-direction: column; justify-content: center; }
.hero-main { border-right: 1px solid rgba(255,255,255,.16); }
.hero-card p { margin: 0 0 6px; color: rgba(255,255,255,.72); font-size: 12px; font-weight: 700; }
.hero-card strong { display: block; font-variant-numeric: tabular-nums; line-height: 1.1; }
.hero-main strong { font-size: clamp(28px, 7vw, 39px); }
.hero-side strong { font-size: 23px; }
.hero-card span { margin-top: 8px; color: rgba(255,255,255,.58); font-size: 10px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
.stat-card { min-width: 0; padding: 16px 14px; border-radius: 15px; border: 1px solid transparent; }
.stat-card p { margin: 0; color: var(--ink-2); font-size: 11px; font-weight: 700; }
.stat-card strong { display: block; margin: 6px 0 3px; font-size: 17px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat-card span { display: block; color: var(--ink-3); font-size: 9px; line-height: 1.35; }
.tone-blue { background: var(--blue-soft); border-color: #d6e5f2; } .tone-blue strong { color: var(--blue); }
.tone-amber { background: var(--amber-soft); border-color: #f0dec5; } .tone-amber strong { color: var(--amber); }
.tone-purple { background: var(--purple-soft); border-color: #e3daef; } .tone-purple strong { color: var(--purple); }
.tone-green { background: var(--green-soft); border-color: #d6e7de; } .tone-green strong { color: var(--green); }
.shipping-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px; margin-bottom: 12px; }
.shipping-card strong { display: inline-block; margin: 2px 10px 0 0; font-size: 23px; font-variant-numeric: tabular-nums; }
.shipping-card span { color: var(--ink-3); font-size: 10px; }
.card-label { margin: 0; color: var(--ink-2); font-size: 11px; font-weight: 800; }
.btn { min-height: 44px; border: 0; border-radius: 12px; padding: 0 17px; cursor: pointer; font-weight: 800; transition: .15s ease; }
.btn:active, .flow-grid button:active, .item-card:active { transform: scale(.985); }
.btn-primary { color: white; background: var(--green); box-shadow: 0 6px 14px rgba(31,106,85,.18); }
.btn-soft { color: var(--green); background: var(--green-soft); }
.btn-ghost { color: var(--ink-2); background: var(--paper-2); border: 1px solid var(--line); }
.btn-danger { color: var(--danger); background: var(--danger-soft); }
.full { width: 100%; }
.flow-card, .recent-card { padding: 18px; margin-bottom: 12px; }
.card-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-title-row h3 { margin: 2px 0 0; font-size: 16px; }
.link-btn { border: 0; padding: 8px 0; color: var(--green); background: transparent; cursor: pointer; font-size: 11px; font-weight: 800; }
.flow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 15px; }
.flow-grid button { padding: 13px 8px; border: 0; border-radius: 12px; background: var(--paper-2); cursor: pointer; }
.flow-grid strong { display: block; font-size: 21px; font-variant-numeric: tabular-nums; }
.flow-grid span { color: var(--ink-2); font-size: 10px; }
.formula-card { padding: 15px 18px; margin-bottom: 12px; border-radius: 14px; border: 1px dashed #bdd3c7; background: rgba(227,239,233,.6); }
.formula-card strong { display: block; margin-bottom: 3px; color: var(--green); font-size: 11px; }
.formula-card span { color: var(--ink-2); font-size: 11px; }
.compact-list { margin-top: 8px; }
.compact-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); }
.compact-row:first-child { border-top: 0; }
.compact-row strong { display: block; font-size: 13px; }
.compact-row span, .compact-row small { color: var(--ink-3); font-size: 10px; }
.empty { padding: 32px 14px; text-align: center; color: var(--ink-3); }
.empty strong { display: block; margin-bottom: 3px; color: var(--ink-2); font-size: 13px; }

.search-box { position: relative; margin-bottom: 12px; }
.search-box span { position: absolute; left: 16px; top: 50%; transform: translateY(-52%); color: var(--ink-3); font-size: 25px; }
.search-box input { padding-left: 45px; background: var(--paper); }
.segmented { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 4px; margin-bottom: 15px; border-radius: 13px; background: var(--green-soft); }
.segmented::-webkit-scrollbar { display: none; }
.segmented button { flex: 1 0 auto; height: 39px; padding: 0 11px; border: 0; border-radius: 10px; color: var(--ink-2); background: transparent; cursor: pointer; font-size: 11px; font-weight: 800; }
.segmented button.active { color: var(--green); background: var(--paper); box-shadow: var(--shadow); }
.segmented b { display: inline-grid; min-width: 18px; height: 18px; margin-left: 3px; padding: 0 4px; place-items: center; border-radius: 9px; background: rgba(31,106,85,.1); font-size: 9px; }
.item-list { display: grid; gap: 10px; }
.item-card { padding: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); transition: .15s ease; }
.item-top { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: start; }
.item-title { min-width: 0; }
.item-title strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.item-title span { color: var(--ink-3); font-size: 11px; }
.status { display: inline-flex; height: 25px; padding: 0 9px; align-items: center; border-radius: 12px; font-size: 9px; font-weight: 800; }
.status-unpurchased { color: var(--amber); background: var(--amber-soft); }
.status-sent { color: var(--blue); background: var(--blue-soft); }
.status-settled { color: var(--green); background: var(--green-soft); }
.status-returned { color: var(--danger); background: var(--danger-soft); }
.item-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.meta-cell { min-width: 0; padding: 10px; border-radius: 10px; background: var(--paper-2); }
.meta-cell span { display: block; color: var(--ink-3); font-size: 9px; }
.meta-cell strong { display: block; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-variant-numeric: tabular-nums; }
.item-actions { display: flex; gap: 7px; margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line); }
.item-actions .btn { flex: 1; min-height: 38px; padding: 0 8px; font-size: 11px; }
.profit-positive { color: var(--green); }
.profit-negative { color: var(--danger); }
.count-pill { align-self: center; padding: 7px 10px; color: var(--green); background: var(--green-soft); border-radius: 12px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.notice { padding: 13px 15px; margin-bottom: 14px; color: var(--ink-2); background: rgba(227,239,233,.65); border: 1px solid #d5e6dd; border-radius: 12px; font-size: 11px; }

.form-card { padding: 20px; }
.field-grid { display: grid; gap: 14px; margin-bottom: 16px; }
.field-grid.two { grid-template-columns: 1fr 1fr; }
.live-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 15px; margin: 2px 0 12px; border-radius: 12px; background: var(--green-soft); }
.live-summary div:last-child { text-align: right; }
.live-summary span { display: block; color: var(--ink-2); font-size: 9px; }
.live-summary strong { display: block; margin-top: 3px; color: var(--green); font-size: 16px; }
.form-hint { margin: 0 0 16px; color: var(--ink-3); font-size: 10px; }

.tabbar {
  position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; height: calc(65px + env(safe-area-inset-bottom)); padding: 7px 10px env(safe-area-inset-bottom);
  display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(255,253,248,.96); border-top: 1px solid var(--line); backdrop-filter: blur(16px);
}
.tabbar button { display: grid; place-items: center; align-content: center; gap: 2px; border: 0; background: transparent; color: var(--ink-3); cursor: pointer; }
.tabbar button.active { color: var(--green); }
.tabbar b { font-size: 10px; }
.nav-icon { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 9px; font-size: 11px; font-weight: 900; }
.tabbar button.active .nav-icon { background: var(--green-soft); }

.modal-mask { position: fixed; z-index: 100; inset: 0; display: grid; align-items: end; justify-items: center; background: rgba(20,31,27,.48); backdrop-filter: blur(2px); }
.modal-sheet { width: min(100%, 520px); max-height: 90dvh; overflow-y: auto; padding: 8px 20px 20px; border-radius: 22px 22px 0 0; background: var(--paper); box-shadow: var(--shadow-float); animation: slide-up .2s ease; }
@keyframes slide-up { from { transform: translateY(30px); opacity: .5; } }
.modal-grip { width: 42px; height: 4px; margin: 2px auto 15px; border-radius: 2px; background: var(--line); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.modal-head h3 { margin: 2px 0 0; font-size: 20px; }
.close-btn { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; color: var(--ink-2); background: var(--paper-2); font-size: 22px; }
.modal-body { display: grid; gap: 13px; margin: 18px 0; }
.modal-actions { display: flex; gap: 9px; }
.modal-actions .btn { flex: 1; }
.detail-grid { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.detail-row { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 11px 13px; border-top: 1px solid var(--line); }
.detail-row:first-child { border-top: 0; }
.detail-row span { color: var(--ink-3); font-size: 11px; }
.detail-row strong { text-align: right; font-size: 12px; word-break: break-all; }
.detail-profit { padding: 15px; border-radius: 12px; color: white; background: linear-gradient(135deg, var(--green-deep), var(--green)); }
.detail-profit span { display: block; color: rgba(255,255,255,.65); font-size: 10px; }
.detail-profit strong { display: block; margin-top: 4px; font-size: 27px; }
.account-menu { display: grid; gap: 8px; }
.account-name { padding: 13px; border-radius: 12px; background: var(--paper-2); }
.account-name span { display: block; color: var(--ink-3); font-size: 9px; }
.account-name strong { display: block; margin-top: 2px; }
.toast { position: fixed; z-index: 200; left: 50%; bottom: 86px; max-width: calc(100vw - 32px); transform: translate(-50%, 18px); padding: 11px 15px; opacity: 0; pointer-events: none; color: white; background: rgba(32,48,42,.95); border-radius: 12px; font-size: 12px; transition: .2s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 768px) {
  .app { padding-bottom: 30px; }
  .tabbar { position: static; width: 648px; height: 64px; margin: 0 auto 24px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 17px; box-shadow: var(--shadow); }
  .shell { padding-top: 28px; }
  .modal-sheet { margin-bottom: 18px; border-radius: 22px; }
  .toast { bottom: 34px; }
}

@media (max-width: 580px) {
  .auth-card { padding: 28px 22px; }
  .topbar { padding-inline: 16px; }
  .shell { padding: 18px 13px 28px; }
  .filter-head { align-items: flex-end; }
  .section-head h2 { font-size: 21px; }
  .month-filter input { width: 132px; }
  .hero-card { grid-template-columns: 1.28fr .92fr; }
  .hero-main, .hero-side { min-height: 145px; padding: 21px 17px; }
  .hero-main strong { font-size: 29px; }
  .hero-side strong { font-size: 19px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-card { min-height: 92px; }
  .stat-card strong { font-size: 18px; }
  .field-grid.two { grid-template-columns: 1fr; }
  .segmented { gap: 2px; }
  .segmented button { min-width: 0; padding-inline: 5px; font-size: 10px; }
  .segmented b { min-width: 16px; margin-left: 1px; padding-inline: 3px; }
  .flow-grid { gap: 5px; }
  .flow-grid button { padding-inline: 4px; }
  .item-meta { gap: 5px; }
  .meta-cell { padding: 9px 7px; }
  .shipping-card span { display: block; }
}

@media (max-width: 360px) {
  .hero-card { grid-template-columns: 1fr; }
  .hero-main { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.16); }
  .hero-main, .hero-side { min-height: 112px; }
  .item-actions { flex-wrap: wrap; }
  .item-actions .btn { flex-basis: 40%; }
}

/* v2 cloud, image, audit, alert and report additions */
.mode-note { display: grid; gap: 3px; margin-top: 18px; padding: 12px 14px; border-radius: 12px; color: var(--ink-2); background: var(--paper-2); font-size: 10px; }
.mode-note strong { color: var(--green); font-size: 11px; }
.auth-link { justify-self: center; padding: 4px 0; }
.sync-badge { padding: 5px 8px; border-radius: 9px; color: var(--amber); background: var(--amber-soft); font-size: 9px; font-weight: 800; }
.sync-badge.cloud { color: var(--green); background: var(--green-soft); }
.install-btn { color: white; background: var(--green); }
.small-btn { min-height: 38px; padding-inline: 13px; font-size: 11px; }
.unsent-card { padding: 18px; margin-bottom: 12px; border-color: #d5e6dd; background: linear-gradient(145deg, var(--paper), #f3faf6); }
.unsent-row { cursor: pointer; }
.unsent-row small { color: var(--green); font-weight: 800; text-align: right; }
.focus-card { border-color: var(--green); box-shadow: 0 0 0 4px rgba(31,106,85,.15), var(--shadow-float); }
.image-field { display: grid; gap: 7px; margin-bottom: 16px; color: var(--ink-2); font-size: 12px; font-weight: 700; }
.image-field input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.image-preview { min-height: 92px; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 10px; color: var(--green); border: 1px dashed #a9c8ba; border-radius: 13px; background: var(--green-soft); cursor: pointer; overflow: hidden; }
.image-preview img { width: 70px; height: 70px; border-radius: 11px; object-fit: cover; }
.item-top { grid-template-columns: auto minmax(0,1fr) auto; }
.item-thumb { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; background: var(--green-soft); }
.item-thumb.placeholder { display: grid; place-items: center; color: var(--green); font-family: Georgia, serif; font-weight: 800; }
.item-title small { display: block; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-3); font-size: 9px; }
.detail-image { width: 100%; max-height: 220px; object-fit: cover; border-radius: 14px; }
.tabbar.five { grid-template-columns: repeat(5, 1fr); }
.report-card { padding: 18px; margin-bottom: 12px; }
.report-stats { margin-bottom: 12px; }
.chart-box { margin-top: 14px; overflow: hidden; }
.chart-box svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-box text { fill: var(--ink-3); font-size: 10px; }
.chart-legend { display: flex; justify-content: center; gap: 18px; color: var(--ink-2); font-size: 10px; }
.chart-legend span { display: flex; align-items: center; gap: 5px; }
.chart-legend i { width: 18px; height: 3px; border-radius: 2px; }
.chart-legend .blue { background: var(--blue); }.chart-legend .green { background: var(--green); }
.ranking-list { display: grid; gap: 4px; margin-top: 12px; }
.rank-row { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.rank-row:first-child { border-top: 0; }
.rank-row > b { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 9px; color: var(--green); background: var(--green-soft); font-size: 10px; }
.rank-row div { position: relative; min-width: 0; padding-bottom: 6px; }
.rank-row strong, .rank-row span { display: block; }
.rank-row strong { font-size: 12px; }.rank-row span { color: var(--ink-3); font-size: 9px; }
.rank-row i { position: absolute; left: 0; bottom: 0; height: 3px; max-width: 100%; border-radius: 2px; background: var(--green); }
.rank-row em { font-style: normal; font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.return-total { display: flex; align-items: center; justify-content: space-between; padding: 13px; border-radius: 11px; color: var(--danger); background: var(--danger-soft); }
.return-total span { font-size: 10px; }
.log-list { display: grid; gap: 6px; max-height: 55dvh; overflow-y: auto; }
.log-row { display: grid; grid-template-columns: 66px 1fr; gap: 10px; align-items: center; padding: 10px; border-radius: 10px; background: var(--paper-2); }
.log-row > b { color: var(--green); font-size: 10px; }.log-row strong, .log-row span { display: block; }.log-row strong { font-size: 11px; }.log-row span { color: var(--ink-3); font-size: 9px; }
.backup-note { margin: 0 0 13px; color: var(--ink-2); font-size: 11px; line-height: 1.6; }
.backup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.backup-action { min-height: 82px; display: grid; align-content: center; gap: 5px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: var(--paper); cursor: pointer; text-align: center; }
.backup-action:active { transform: scale(.985); }
.backup-action b { font-size: 12px; }.backup-action span { color: var(--ink-3); font-size: 9px; }
.excel-tools { margin-top: 14px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper-2); }
.excel-tools summary { color: var(--ink-2); cursor: pointer; font-size: 11px; font-weight: 800; }
.excel-tools .account-menu { margin-top: 10px; }
.backup-textarea { width: 100%; min-height: 210px; resize: vertical; word-break: break-all; font-family: Consolas, monospace; font-size: 10px; line-height: 1.45; }
.backup-warning { padding: 11px 12px; border-radius: 11px; color: var(--amber); background: var(--amber-soft); font-size: 10px; line-height: 1.6; }
.btn:disabled { opacity: .55; cursor: wait; }
@media (max-width: 580px) {
  .top-actions { gap: 4px; }.sync-badge { display: none; }.icon-btn { padding-inline: 8px; font-size: 10px; }
  .tabbar.five { padding-inline: 4px; }.tabbar.five b { font-size: 9px; }
  .report-stats { grid-template-columns: 1fr 1fr; }
  .item-thumb { width: 43px; height: 43px; }.item-top { gap: 8px; }
}
