@font-face {
  font-family: 'Estedad';
  src: url('/fonts/estedad-arabic-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
  font-family: 'Estedad';
  src: url('/fonts/estedad-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-200B, U+2012-206F, U+20AC, U+2190-2193, U+2212;
}

/* ---------- تم‌ها ---------- */
:root, [data-theme='golshan'] {
  --outer: #1c4a37;
  --bg: #efe6d2;
  --card: #f9f4e7;
  --soft: #e3d9c0;
  --line: #cfc2a3;
  --ink: #1f2a24;
  --muted: #6f6b57;
  --primary: #1c4a37;
  --primary-2: #2e6b4f;
  --on-primary: #f6efdc;
  --accent: #b3873f;
  --danger: #a5412b;
  --ok: #2c7049;
  color-scheme: light;
}
[data-theme='light'] {
  --outer: #d9d9d6;
  --bg: #f4f4f1;
  --card: #ffffff;
  --soft: #e9e9e5;
  --line: #d2d2cd;
  --ink: #121212;
  --muted: #6b6b68;
  --primary: #121212;
  --primary-2: #3a3a3a;
  --on-primary: #ffffff;
  --accent: #121212;
  --danger: #b8321f;
  --ok: #1d6f41;
  color-scheme: light;
}
[data-theme='dark'] {
  --outer: #000000;
  --bg: #0e0e0e;
  --card: #1a1a19;
  --soft: #272726;
  --line: #3a3a38;
  --ink: #f1f1ee;
  --muted: #9c9c97;
  --primary: #f1f1ee;
  --primary-2: #c9c9c4;
  --on-primary: #0e0e0e;
  --accent: #f1f1ee;
  --danger: #ff8572;
  --ok: #74d6a0;
  color-scheme: dark;
}

/* کاشی هشت‌پر (گره‌چینی) — به‌صورت ماسک تا با هر تمی هم‌رنگ شود */
:root {
  --girih: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' fill='none' stroke='%23000' stroke-width='1.3'%3E%3Cpath d='M24 6l18 18-18 18L6 24zM11.3 11.3h25.4v25.4H11.3zM24 0v6M24 42v6M0 24h6M42 24h6'/%3E%3C/svg%3E");
  --oct: polygon(29% 0, 71% 0, 100% 29%, 100% 71%, 71% 100%, 29% 100%, 0 71%, 0 29%);
}

/* ---------- پایه ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--outer);
  color: var(--ink);
  font-family: 'Estedad', Tahoma, sans-serif;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.65;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
/* کناره‌های خالی روی دسکتاپ: کاشی‌کاری */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1;
  background: var(--bg); opacity: .13;
  -webkit-mask: var(--girih) 0 0 / 48px 48px; mask: var(--girih) 0 0 / 48px 48px;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; touch-action: manipulation; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }

#app { position: relative; max-width: 480px; min-height: 100dvh; margin: 0 auto; background: var(--bg); }
.page { padding: 12px 16px calc(100px + env(safe-area-inset-bottom)); animation: fade .18s ease-out; }
.page.no-nav { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
@keyframes fade { from { opacity: 0; } }

/* ---------- نوار بالا ---------- */
.topbar { display: flex; align-items: center; gap: 6px; min-height: 46px; margin-bottom: 12px; }
.topbar h1 { font-size: 23px; font-weight: 900; flex: 1; color: var(--primary); letter-spacing: -.3px; }
.topbar h1 small { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.icon-btn { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; color: var(--ink); background: var(--soft); }
.icon-btn:active { background: var(--line); }

/* ---------- تیترها ---------- */
.section-title, .card-title { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 15.5px; }
.section-title { margin: 22px 2px 10px; }
.section-title::before, .card-title::before {
  content: ''; width: 9px; height: 9px; flex: none; background: var(--accent); transform: rotate(45deg);
}
.card-title > * { margin-inline-start: auto; }
.section-title::after { content: ''; order: 1; flex: 1; height: 0; border-top: 3px double var(--line); }
.section-title > * { order: 2; }
.card-title { margin-bottom: 10px; padding-bottom: 9px; border-bottom: 3px double var(--line); }
.card-title small, .link { color: var(--primary-2); font-weight: 700; font-size: 12.5px; text-decoration: none; }
[data-theme='dark'] .card-title small, [data-theme='dark'] .link { color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.unit { font-size: .6em; font-weight: 600; opacity: .7; letter-spacing: 0; }
.num { font-weight: 800; }

/* ---------- کارت ---------- */
.card { background: var(--card); border-radius: 12px; padding: 14px; margin-bottom: 12px; }
a.card { text-decoration: none; }
.card.row { padding: 12px 14px; border: 0; }

/* طاق‌نمای بالای داشبورد */
.hero {
  position: relative; isolation: isolate; overflow: hidden; text-align: center;
  background: var(--primary); color: var(--on-primary);
  border-radius: 170px 170px 14px 14px; padding: 34px 20px 24px; margin-bottom: 14px;
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: currentColor; opacity: .1;
  -webkit-mask: var(--girih) center top / 44px 44px; mask: var(--girih) center top / 44px 44px;
}
.hero::after {
  content: ''; position: absolute; inset: 7px; z-index: -1; pointer-events: none;
  border: 1.5px solid var(--accent); border-radius: 163px 163px 9px 9px; opacity: .75;
}
.hero .mark { width: 62px; height: 62px; margin: 0 auto 4px; display: grid; place-items: center; color: var(--primary); background: var(--on-primary); clip-path: var(--oct); }
.hero .mark svg { width: 34px; height: 34px; }
.hero .name { font-size: 25px; font-weight: 900; letter-spacing: -.4px; line-height: 1.5; }
.hero .cap { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; opacity: .85; margin-top: 8px; }
.hero .cap::before, .hero .cap::after { content: ''; width: 26px; border-top: 1px solid currentColor; opacity: .6; }
.hero .big { font-size: 42px; font-weight: 900; line-height: 1.3; letter-spacing: -1px; }
.hero .sub { font-size: 12.5px; opacity: .9; display: flex; justify-content: center; gap: 6px 14px; flex-wrap: wrap; }
.hero .sub b { font-weight: 800; }

/* جدول دفتری آمار */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 12px; }
.stats.three { grid-template-columns: repeat(3, 1fr); }
.stat { background: var(--card); padding: 12px 14px; text-align: start; min-width: 0; }
.stat .k { font-size: 12px; color: var(--muted); }
.stat .v { font-size: 20px; font-weight: 900; letter-spacing: -.4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat .s { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat.warn .v { color: var(--danger); }
.stat.name .v { font-size: 16px; letter-spacing: 0; color: var(--primary); }
[data-theme='dark'] .stat.name .v { color: var(--ink); }
.stats.three .stat { padding: 10px; }
.stats.three .v { font-size: 14.5px; letter-spacing: 0; }

/* ---------- دکمه‌ها ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
  min-height: 50px; padding: 0 18px; border-radius: 10px; font-weight: 800; font-size: 15px;
  background: var(--soft); color: var(--ink); transition: transform .08s;
}
.btn:active { transform: translateY(1px) scale(.985); }
.btn.primary { background: var(--primary); color: var(--on-primary); box-shadow: inset 0 0 0 3px var(--primary), inset 0 0 0 4px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn.danger { background: transparent; color: var(--danger); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn.outline { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--primary); }
[data-theme='dark'] .btn.outline { color: var(--ink); }
.btn.block { display: flex; width: 100%; }
.btn.sm { min-height: 38px; padding: 0 12px; border-radius: 8px; font-size: 12.5px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn-row { display: flex; gap: 8px; }
.btn-row > * { flex: 1; }

/* ---------- فرم ---------- */
.field { margin-bottom: 14px; }
.field > label, .label { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); margin: 0 2px 6px; }
.input {
  width: 100%; min-height: 50px; padding: 10px 14px; border-radius: 10px 10px 4px 4px;
  border: 0; border-bottom: 2px solid var(--line); background: var(--soft); outline: none;
  font-size: 16px; font-weight: 600;
}
.input::placeholder { color: var(--muted); font-weight: 400; opacity: .8; }
.input:focus { border-bottom-color: var(--primary); }
textarea.input { resize: none; line-height: 1.8; }
select.input { appearance: none; -webkit-appearance: none; }
.search { position: relative; margin-bottom: 10px; }
.search svg { position: absolute; right: 14px; top: 14px; color: var(--muted); }
.search .input { padding-right: 46px; }

.chips { display: flex; gap: 6px; overflow-x: auto; padding: 2px 16px 8px; margin: 0 -16px 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips.wrap { flex-wrap: wrap; overflow: visible; }
.chip {
  flex: none; min-height: 36px; padding: 0 13px; border-radius: 8px; font-size: 13px; font-weight: 700;
  background: var(--soft); color: var(--ink); white-space: nowrap; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.chip svg { width: 16px; height: 16px; }
.chip.on { background: var(--primary); color: var(--on-primary); }
.chip.dashed { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--primary); }
[data-theme='dark'] .chip.dashed { color: var(--ink); }

.seg { display: flex; background: var(--soft); border-radius: 10px; padding: 4px; gap: 4px; }
.seg button { flex: 1; min-height: 42px; border-radius: 7px; font-size: 13px; font-weight: 700; color: var(--muted); }
.seg button.on { background: var(--primary); color: var(--on-primary); }

.stepper { display: inline-flex; align-items: center; background: var(--soft); border-radius: 9px; }
.stepper button { width: 38px; height: 38px; display: grid; place-items: center; font-size: 19px; font-weight: 800; color: var(--primary); }
[data-theme='dark'] .stepper button { color: var(--ink); }
.stepper b { min-width: 22px; text-align: center; font-weight: 900; }

/* ---------- لیست‌ها ---------- */
.row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: start; padding: 11px 0; border-bottom: 1px dashed var(--line); text-decoration: none; }
.row:last-child { border-bottom: 0; }
.row .grow { flex: 1; min-width: 0; }
.row .t { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .d { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .end { text-align: end; flex: none; }
/* کاشی هشت‌ضلعی برای عکس/آیکون */
.thumb { width: 46px; height: 46px; clip-path: var(--oct); background: var(--soft); display: grid; place-items: center; font-size: 19px; flex: none; overflow: hidden; font-weight: 900; color: var(--primary); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.rank { background: var(--primary); color: var(--on-primary); font-size: 17px; }
[data-theme='dark'] .thumb { color: var(--ink); }
[data-theme='dark'] .thumb.rank { color: var(--on-primary); }

/* مُهر وضعیت */
.badge { display: inline-flex; align-items: center; padding: 0 8px; min-height: 21px; border-radius: 4px; font-size: 11px; font-weight: 800; white-space: nowrap; color: var(--ok); box-shadow: inset 0 0 0 1.5px currentColor; transform: rotate(-2.5deg); }
.badge.debt { color: var(--danger); }
.badge.neutral { color: var(--muted); transform: none; }

.order { display: block; width: 100%; text-align: start; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.order:last-child { border-bottom: 0; }
.order .head { display: flex; gap: 8px; align-items: baseline; }
.order .who { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order .who i { font-style: normal; color: var(--muted); font-weight: 500; font-size: 11.5px; margin-inline-start: 6px; }
.order .head::after { content: ''; order: 1; flex: 1; min-width: 12px; border-bottom: 2px dotted var(--line); transform: translateY(-4px); }
.order .head b { order: 2; font-weight: 900; font-size: 15.5px; }
.order .items { font-size: 12.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 1px 0 5px; }
.order .items svg { width: 13px; height: 13px; vertical-align: -2px; }
.order .foot { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); }

.empty { text-align: center; color: var(--muted); padding: 26px 10px; font-size: 13.5px; }
.empty .e { width: 58px; height: 58px; margin: 0 auto 10px; display: grid; place-items: center; background: var(--soft); color: var(--primary); clip-path: var(--oct); }
[data-theme='dark'] .empty .e { color: var(--ink); }
.empty .e svg { width: 28px; height: 28px; }
.skeleton { height: 76px; border-radius: 12px; margin-bottom: 10px; background: var(--card); animation: sk 1s ease-in-out infinite alternate; }
@keyframes sk { to { opacity: .45; } }

/* سطرهای منو-مانند با نقطه‌چین */
.kv { display: flex; align-items: baseline; gap: 8px; padding: 5px 0; }
.kv > :first-child { flex: 1; display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.kv > :first-child::after { content: ''; flex: 1; min-width: 14px; border-bottom: 2px dotted var(--line); transform: translateY(-4px); }
.kv.plain > :first-child::after { display: none; }
.kv.total { font-weight: 900; font-size: 17px; border-top: 3px double var(--line); margin-top: 8px; padding-top: 10px; }
.neg { color: var(--danger); }

/* رسید با لبه دندانه‌دار */
.receipt { position: relative; border-radius: 12px 12px 0 0; margin-bottom: 22px; }
.receipt::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -8px; height: 8px;
  background: linear-gradient(-135deg, var(--card) 6px, transparent 0) 0 0 / 12px 8px, linear-gradient(135deg, var(--card) 6px, transparent 0) 0 0 / 12px 8px;
}

/* ---------- نوار پایین ---------- */
#nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); z-index: 20;
  width: min(100%, 480px); display: grid; grid-template-columns: 1fr 1fr 78px 1fr 1fr; align-items: center;
  background: var(--card); border-top: 3px double var(--line);
  padding: 4px 6px calc(6px + env(safe-area-inset-bottom));
}
#nav a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0; padding: 9px 0 3px; font-size: 11px; font-weight: 700; color: var(--muted); text-decoration: none; }
#nav a.on { color: var(--primary); }
[data-theme='dark'] #nav a.on { color: var(--ink); }
#nav a.on::before { content: ''; position: absolute; top: -1px; width: 7px; height: 7px; background: var(--accent); transform: rotate(45deg); }
#nav a.add {
  width: 62px; height: 62px; margin: -30px auto 0; padding: 0; justify-content: center; clip-path: none;
  background: var(--primary); color: var(--on-primary); border-radius: 50%;
  box-shadow: 0 0 0 5px var(--bg), inset 0 0 0 4px var(--primary), inset 0 0 0 5.5px var(--accent);
}
#nav a.add svg { width: 28px; height: 28px; stroke-width: 2.4; }
#nav a.add:active { transform: scale(.94); }

.bottom-bar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); z-index: 20;
  width: min(100%, 480px); background: var(--card); border-top: 3px double var(--line);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
}

/* ---------- انتخاب آیتم ---------- */
.pick-head { position: sticky; top: 0; z-index: 5; background: var(--bg); margin: -12px -16px 8px; padding: 12px 16px 0; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.item {
  position: relative; background: var(--card); border-radius: 12px; color: var(--ink);
  padding: 12px 6px 9px; text-align: center; min-height: 122px; display: flex; flex-direction: column; align-items: center; gap: 3px;
  user-select: none; -webkit-user-select: none; transition: transform .08s;
}
.item:active { transform: scale(.95); }
.item .pic { width: 48px; height: 48px; clip-path: var(--oct); display: grid; place-items: center; font-size: 21px; overflow: hidden; background: var(--soft); color: var(--primary); font-weight: 900; }
[data-theme='dark'] .item .pic { color: var(--ink); }
.item .pic svg { width: 26px; height: 26px; }
.item .pic img { width: 100%; height: 100%; object-fit: cover; }
.item .n { font-size: 12.5px; font-weight: 800; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item .p { font-size: 11.5px; color: var(--muted); margin-top: auto; font-weight: 600; }
.item.sel { background: var(--primary); color: var(--on-primary); box-shadow: inset 0 0 0 4px var(--primary), inset 0 0 0 5px var(--accent); }
.item.sel .p { color: inherit; opacity: .75; }
.item.sel .pic, [data-theme='dark'] .item.sel .pic { background: var(--on-primary); color: var(--primary); }
.item .q { position: absolute; top: -7px; right: -5px; min-width: 27px; height: 27px; padding: 0 6px; border-radius: 14px; background: var(--accent); color: var(--bg); font-weight: 900; font-size: 13px; display: grid; place-items: center; box-shadow: 0 0 0 3px var(--bg); }
[data-theme='golshan'] .item .q { color: #fff; }
.item .minus { position: absolute; top: -7px; left: -5px; width: 27px; height: 27px; border-radius: 14px; background: var(--card); color: var(--danger); font-size: 18px; font-weight: 900; display: grid; place-items: center; line-height: 1; box-shadow: 0 0 0 3px var(--bg); }
.item.custom { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); justify-content: center; }
.item.custom .pic { background: transparent; }

/* ---------- نمودارها ---------- */
.bars { display: flex; align-items: flex-end; gap: 3px; height: 150px; padding-top: 6px; border-bottom: 1.5px solid var(--line); margin-bottom: 18px; }
.bars .col { position: relative; flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.bars .bar { width: 100%; max-width: 28px; border-radius: 3px 3px 0 0; background: var(--primary-2); opacity: .45; transition: height .3s; }
.bars .col.on .bar, .bars .col.hi .bar { opacity: 1; background: var(--primary); }
.bars .col.on::before { content: ''; width: 7px; height: 7px; margin-bottom: 4px; background: var(--accent); transform: rotate(45deg); flex: none; }
.bars .lb { position: absolute; bottom: -19px; font-size: 10px; color: var(--muted); white-space: nowrap; }
.bars.sm { height: 84px; }
.chart-tip { min-height: 22px; font-size: 12.5px; font-weight: 700; color: var(--muted); }

.hbar { margin-bottom: 12px; }
.hbar:last-child { margin-bottom: 0; }
.hbar .top { display: flex; align-items: baseline; gap: 8px; font-size: 13px; margin-bottom: 5px; }
.hbar .top span:first-child { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar .top::after { content: ''; order: 1; flex: 1; min-width: 10px; border-bottom: 2px dotted var(--line); transform: translateY(-4px); }
.hbar .top span:last-child { order: 2; color: var(--muted); flex: none; font-size: 12px; }
.hbar .track { height: 7px; background: var(--soft); border-radius: 2px; }
.hbar .fill { height: 100%; background: var(--primary); border-radius: 2px; }
.split { display: flex; gap: 2px; height: 12px; margin: 4px 0 10px; }
.split i { display: block; height: 100%; border-radius: 2px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 8px; height: 8px; margin-inline-end: 6px; transform: rotate(45deg); }

/* ---------- شیت و توست ---------- */
#sheets { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.sheet-wrap { position: absolute; inset: 0; pointer-events: auto; display: flex; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, .5); animation: dim .18s; }
@keyframes dim { from { background: transparent; } }
.sheet {
  width: min(100%, 480px); max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg); border-radius: 18px 18px 0 0; padding: 8px 16px calc(18px + env(safe-area-inset-bottom));
  animation: up .22s cubic-bezier(.2, .8, .2, 1);
}
@keyframes up { from { transform: translateY(100%); } }
.sheet .grab { width: 9px; height: 9px; background: var(--accent); transform: rotate(45deg); margin: 6px auto 12px; }
.sheet h2 { font-size: 19px; font-weight: 900; color: var(--primary); margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
[data-theme='dark'] .sheet h2 { color: var(--ink); }
#toast { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 90; width: min(calc(100% - 32px), 440px); pointer-events: none; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: 10px; font-weight: 700; font-size: 13.5px; animation: drop .2s; }
.toast.err { background: var(--danger); color: #fff; }
@keyframes drop { from { opacity: 0; transform: translateY(-10px); } }

/* ---------- ورود ---------- */
.login { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding: 20px 22px; }
.login .hero { padding: 46px 20px 30px; margin-bottom: 22px; }
.login .hero .name { font-size: 34px; }

.success-mark { width: 76px; height: 76px; margin: 6px auto 12px; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); clip-path: var(--oct); }
.success-mark svg { width: 38px; height: 38px; stroke-width: 2.6; }
.center { text-align: center; }
.theme-opt { display: flex; gap: 8px; }
.theme-opt button { flex: 1; border-radius: 10px; padding: 8px 8px 6px; font-size: 12.5px; font-weight: 800; background: var(--card); box-shadow: inset 0 0 0 1.5px transparent; }
.theme-opt button.on { box-shadow: inset 0 0 0 2px var(--primary); }
.theme-opt .sw { display: flex; height: 30px; border-radius: 6px; overflow: hidden; margin-bottom: 5px; }
.theme-opt .sw i { flex: 1; }
.icon-row { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.icon-row::-webkit-scrollbar { display: none; }
.icon-row button { flex: none; width: 46px; height: 46px; clip-path: var(--oct); background: var(--soft); color: var(--primary); display: grid; place-items: center; }
[data-theme='dark'] .icon-row button { color: var(--ink); }
.icon-row button.on, [data-theme='dark'] .icon-row button.on { background: var(--primary); color: var(--on-primary); }
.date-row { display: grid; grid-template-columns: 1fr 1.4fr 1.2fr; gap: 8px; margin-bottom: 12px; }
