/* تسک‌تو کارگاه — سیستم طراحی و صفحه‌ها
   ساختار: ۱) توکن‌ها ۲) پایه ۳) اجزا ۴) صفحه‌ها */

/* ---------- ۱. توکن‌ها ---------- */
:root {
  --ink: #0e0f0c;
  --ink-2: #4b4d45;
  --ink-3: #8b8d84;
  --paper: #f3f2ed;
  --card: #fbfbf8;
  --line: #e4e3dc;
  --lime: #dff25a;
  --lime-deep: #c9de3c;
  --lime-soft: #eef7b4;
  --amber: #f4a13a;
  --amber-soft: #fdecd3;
  --red: #e2553f;
  --red-soft: #fbe1dc;

  --r-s: 14px;
  --r-m: 22px;
  --r-l: 30px;
  --shadow: 0 1px 0 #fff inset, 0 10px 24px -14px rgba(14, 15, 12, 0.28);
  --hatch: repeating-linear-gradient(-45deg, rgba(14, 15, 12, 0.13) 0 1.5px, transparent 1.5px 9px);
  --font: "Kalameh", Tahoma, system-ui, sans-serif;
  --tap: 52px; /* کمترین ارتفاع هر چیز لمس‌شدنی */
}

/* ---------- ۲. پایه ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: #dcdbd4;
}
h1, h2, h3, p { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
svg.i { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 12px; }

/* قاب برنامه: روی موبایل تمام‌صفحه، روی دسکتاپ یک ستون وسط */
.app {
  position: relative;
  max-width: 440px;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--paper);
  overflow: hidden;
}
.screen { display: none; min-height: 100dvh; padding-bottom: 104px; }
#home { padding-bottom: 176px; }
.screen.is-active { display: block; animation: rise 0.28s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .screen.is-active { animation: none; } }
.pad { padding-inline: 20px; }

/* ---------- ۳. اجزا ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 10px; }
.topbar .logo { height: 26px; }
.icon-btn {
  width: var(--tap); height: var(--tap); border-radius: 50%;
  display: grid; place-items: center;
  background: var(--card); box-shadow: var(--shadow);
}
.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: var(--lime); font-weight: 700; font-size: 14px;
  border: 2px solid var(--paper);
}
.avatars { display: flex; }
.avatars .avatar { width: 36px; height: 36px; font-size: 12px; margin-inline-start: -10px; }
.avatars .avatar:first-child { margin-inline-start: 0; }
.avatars .avatar.alt { background: var(--lime); color: var(--ink); }
.avatars .avatar.more { background: #2a2b27; color: #fff; }

.site-chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 600; font-size: 15px;
}
.site-chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); }
.site-chip svg.i { width: 18px; height: 18px; }

.hello { padding: 14px 20px 4px; }
.hello h1 { font-size: 24px; font-weight: 800; letter-spacing: -0.3px; }
.hello p { color: var(--ink-2); font-size: 15px; }

/* نوار هفته */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; padding: 14px 20px 6px; }
.day { text-align: center; font-size: 12px; color: var(--ink-3); }
.day b {
  position: relative; display: grid; place-items: center;
  height: 46px; margin-top: 6px; border-radius: 16px;
  background: var(--card); box-shadow: var(--shadow);
  font-size: 16px; font-weight: 700; color: var(--ink);
}
.day.has b::after { content: ""; position: absolute; top: 6px; inset-inline-end: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.day.today b { background: var(--ink); color: var(--lime); }
.day.off b { background: var(--hatch), var(--paper); box-shadow: none; color: var(--ink-3); }

.section-head { display: flex; align-items: baseline; justify-content: space-between; padding: 22px 20px 12px; }
.section-head h2 { font-size: 20px; font-weight: 800; }
.section-head a { font-size: 14px; color: var(--ink-2); text-decoration: none; }

/* کاشی‌های «چه کاری داری؟» */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-inline: 20px; }
.tile {
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  min-height: 116px; padding: 16px; border-radius: var(--r-m);
  background: var(--card); box-shadow: var(--shadow); text-align: start;
  transition: transform 0.12s ease;
}
.tile:active { transform: scale(0.97); }
.tile .ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--paper); }
.tile strong { display: block; font-size: 17px; font-weight: 700; line-height: 1.35; }
.tile span { font-size: 13px; color: var(--ink-2); }
.tile.primary {
  grid-column: 1 / -1; flex-direction: row; align-items: center; min-height: 96px;
  background: var(--hatch), var(--lime);
}
.tile.primary .ico { width: 56px; height: 56px; border-radius: 18px; background: var(--ink); color: var(--lime); }
.tile.primary .txt { flex: 1; }
.tile.primary strong { font-size: 20px; }
.tile.primary span { color: var(--ink); opacity: 0.82; }

/* دکمه‌های فیلتر */
.pills { display: flex; gap: 8px; padding: 0 20px 14px; overflow-x: auto; scrollbar-width: none; }
.pills::-webkit-scrollbar { display: none; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; flex: none;
  min-height: 46px; padding: 0 8px 0 18px; border-radius: 999px;
  background: var(--card); box-shadow: var(--shadow); font-weight: 600; font-size: 15px;
}
.pill i { font-style: normal; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 999px; display: grid; place-items: center; background: var(--paper); font-size: 13px; }
.pill.is-on { background: var(--ink); color: #fff; box-shadow: none; }
.pill.is-on i { background: #33342f; }

/* کارت کار */
.todo-list { display: grid; gap: 10px; padding-inline: 20px; }
.todo {
  display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: start;
  padding: 14px; border-radius: var(--r-m); background: var(--card); box-shadow: var(--shadow);
}
.todo .ico { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--paper); }
.todo h3 { font-size: 16px; font-weight: 700; line-height: 1.45; }
.todo p { font-size: 13.5px; color: var(--ink-2); }
.todo .act { grid-column: 2; margin-top: 8px; }
.todo.warn .ico { background: var(--amber-soft); color: #9a5a08; }
.todo.bad .ico { background: var(--red-soft); color: var(--red); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 0 22px; border-radius: 999px;
  font-weight: 700; font-size: 16px; background: var(--ink); color: #fff;
}
.btn.sm { min-height: 42px; padding: 0 16px; font-size: 14px; }
.btn.lime { background: var(--lime); color: var(--ink); }
.btn.ghost { background: var(--paper); color: var(--ink); }
.btn.line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.block { display: flex; width: 100%; }
.btn.xl { min-height: 62px; font-size: 18px; }

.tag { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--paper); color: var(--ink-2); }
.tag.lime { background: var(--lime-soft); color: #4a5406; }
.tag.amber { background: var(--amber-soft); color: #9a5a08; }
.tag.red { background: var(--red-soft); color: #a22f1c; }

/* نوار پیشرفت هاشورخورده */
.bar { position: relative; height: 30px; border-radius: 10px; background: var(--paper); overflow: hidden; display: flex; align-items: center; justify-content: space-between; padding-inline: 12px; font-size: 13px; font-weight: 600; }
.bar::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--v, 50%); background: var(--hatch), var(--lime); border-radius: 10px; }
.bar > * { position: relative; }
.bar.low::before { background: var(--hatch), var(--amber); }

/* جعبه «به تسک‌تو بگو» */
.composer {
  position: fixed; inset-inline: 0; bottom: 84px; z-index: 5;
  max-width: 440px; margin: 0 auto; padding: 0 14px;
}
.composer .box {
  display: flex; align-items: center; gap: 8px; padding: 8px;
  border-radius: 999px; background: var(--card);
  box-shadow: 0 0 0 1px var(--line), 0 18px 30px -16px rgba(14, 15, 12, 0.45);
}
.composer input { flex: 1; min-width: 0; height: 44px; border: 0; outline: 0; background: none; font-size: 15px; }
.composer input::placeholder { color: var(--ink-3); }
.composer .round { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); flex: none; }
.composer .round.send { background: var(--ink); color: var(--lime); }
.composer .round.send svg { transform: scaleX(-1); }

/* ناوبری پایین */
.nav {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 6;
  max-width: 440px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: rgba(243, 242, 237, 0.92); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.nav button { display: grid; justify-items: center; gap: 2px; min-height: 58px; padding-top: 6px; border-radius: 18px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.nav button.is-on { color: var(--ink); background: var(--lime); }

/* ---------- ۴. صفحه‌ها ---------- */

/* کارگاه */
.hero {
  position: relative; padding: 18px 20px 26px; color: #fff; background: var(--ink);
  border-end-start-radius: 0; overflow: hidden;
}
.hero::before { content: ""; position: absolute; inset-block-start: -120px; inset-inline-start: -90px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(closest-side, rgba(223, 242, 90, 0.22), transparent); }
.hero > * { position: relative; }
.hero .row { display: flex; align-items: center; justify-content: space-between; }
.hero .icon-btn { background: #24251f; box-shadow: none; color: #fff; }
.hero .logo { height: 22px; filter: invert(1); }
.hero h1 { margin-top: 22px; font-size: 28px; font-weight: 800; letter-spacing: -0.4px; }
.hero .addr { color: #b9bbb0; font-size: 15px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 20px; }
.stat { padding: 12px; border-radius: 18px; background: #1d1e19; }
.stat b { display: block; font-size: 24px; font-weight: 800; line-height: 1.2; }
.stat span { font-size: 12.5px; color: #b9bbb0; }
.stat.hot b { color: var(--lime); }
.hero .meta { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; font-size: 13px; color: #b9bbb0; }
.hero .meta b { display: block; color: #fff; font-size: 15px; }
.progress-band {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; font-weight: 700; font-size: 17px;
  background: linear-gradient(to left, transparent 38%, var(--lime-deep) 38%), var(--hatch), var(--lime);
}
.report { padding: 16px; border-radius: var(--r-m); background: var(--card); box-shadow: var(--shadow); }
.report + .report { margin-top: 12px; }
.report .top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.report h3 { font-size: 18px; font-weight: 800; }
.report p { color: var(--ink-2); font-size: 14.5px; margin-bottom: 12px; }
.crew { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }

/* فاکتور */
.subbar { display: flex; align-items: center; gap: 12px; padding: 18px 20px 12px; }
.subbar h1 { font-size: 21px; font-weight: 800; }
.paper {
  margin: 0 20px; height: 150px; border-radius: var(--r-m);
  background:
    linear-gradient(#fff, #fff) 24px 26px / 46% 9px no-repeat,
    linear-gradient(var(--line), var(--line)) 24px 52px / 82% 2px no-repeat,
    linear-gradient(var(--line), var(--line)) 24px 74px / 82% 2px no-repeat,
    linear-gradient(var(--line), var(--line)) 24px 96px / 82% 2px no-repeat,
    linear-gradient(#fff, #fff) 24px 118px / 30% 9px no-repeat,
    var(--hatch), #e9e8e1;
  display: grid; place-items: end start; padding: 12px;
}
.note { display: flex; gap: 10px; align-items: center; margin: 14px 20px 0; padding: 12px 14px; border-radius: var(--r-s); background: var(--lime-soft); font-size: 14.5px; font-weight: 600; }
.sheet { margin: 12px 20px 0; padding: 6px 16px; border-radius: var(--r-m); background: var(--card); box-shadow: var(--shadow); }
.field { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; border-bottom: 1px solid var(--line); }
.field:last-child { border-bottom: 0; }
.field span { color: var(--ink-2); font-size: 14px; }
.field b { font-size: 16px; font-weight: 700; text-align: end; }
.field.unsure { margin-inline: -8px; padding-inline: 8px; border-radius: 12px; background: var(--amber-soft); border-bottom-color: transparent; }
.item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.item:last-child { border-bottom: 0; }
.item .l1 { display: flex; justify-content: space-between; gap: 10px; font-weight: 700; }
.item .l2 { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--ink-2); }
.total { display: flex; justify-content: space-between; align-items: center; margin: 12px 20px 0; padding: 16px; border-radius: var(--r-m); background: var(--ink); color: #fff; }
.total b { font-size: 22px; font-weight: 800; color: var(--lime); }
.actions { display: grid; gap: 10px; padding: 16px 20px 0; }
.actions .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* انبار */
.stock { padding: 16px; border-radius: var(--r-m); background: var(--card); box-shadow: var(--shadow); }
.stock + .stock { margin-top: 10px; }
.stock .top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.stock h3 { font-size: 17px; font-weight: 800; }
.stock .qty { font-size: 22px; font-weight: 800; }
.stock .qty small { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.stock .foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; font-size: 13px; color: var(--ink-2); }

/* حضور و غیاب */
.scanner { position: relative; margin: 0 20px; aspect-ratio: 1; border-radius: var(--r-l); background: var(--ink); display: grid; place-items: center; overflow: hidden; }
.scanner .frame { position: relative; width: 62%; aspect-ratio: 1; }
.scanner .frame i { position: absolute; width: 34%; height: 34%; border: 4px solid var(--lime); }
.scanner .frame i:nth-child(1) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 26px; }
.scanner .frame i:nth-child(2) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 26px; }
.scanner .frame i:nth-child(3) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 26px; }
.scanner .frame i:nth-child(4) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 26px; }
.scanner .frame::after { content: ""; position: absolute; inset: auto 8% 50%; height: 3px; border-radius: 3px; background: var(--lime); box-shadow: 0 0 18px 4px rgba(223, 242, 90, 0.5); animation: scan 2.2s ease-in-out infinite alternate; }
@keyframes scan { from { transform: translateY(-70px); } to { transform: translateY(70px); } }
@media (prefers-reduced-motion: reduce) { .scanner .frame::after { animation: none; } }
.scanner p { position: absolute; bottom: 18px; inset-inline: 0; text-align: center; color: #d7d9cd; font-size: 15px; }
.count { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 20px 0; }
.count div { padding: 14px 16px; border-radius: var(--r-m); background: var(--card); box-shadow: var(--shadow); }
.count div.on { background: var(--hatch), var(--lime); box-shadow: none; }
.count b { display: block; font-size: 28px; font-weight: 800; line-height: 1.2; }
.count span { font-size: 13.5px; color: var(--ink-2); }
.person { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.person:last-child { border-bottom: 0; }
.person .who { flex: 1; }
.person .who b { display: block; font-size: 15.5px; }
.person .who span { font-size: 13px; color: var(--ink-2); }

/* مانع */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding-inline: 20px; }
.cat { display: grid; justify-items: center; align-content: center; gap: 8px; min-height: 98px; padding: 10px 6px; border-radius: var(--r-m); background: var(--card); box-shadow: var(--shadow); font-size: 13.5px; font-weight: 700; text-align: center; line-height: 1.35; }
.cat.is-on { background: var(--ink); color: var(--lime); box-shadow: none; }
.textbox { display: block; width: calc(100% - 40px); margin: 14px 20px 0; min-height: 96px; padding: 14px 16px; border: 0; border-radius: var(--r-m); background: var(--card); box-shadow: var(--shadow); resize: none; font-size: 16px; }
.textbox::placeholder { color: var(--ink-3); }

/* دسکتاپ: قاب گوشی */
@media (min-width: 700px) {
  body { padding: 28px 0; }
  .app { min-height: 880px; border-radius: 44px; box-shadow: 0 0 0 10px var(--ink), 0 40px 80px -30px rgba(14, 15, 12, 0.5); }
  .screen { min-height: 880px; max-height: 880px; overflow-y: auto; scrollbar-width: none; }
  .screen::-webkit-scrollbar { display: none; }
  .nav, .composer { position: absolute; }
  .nav { border-radius: 0 0 44px 44px; }
}

/* ---------- ۵. فرم‌ها و صفحه‌های تکمیلی سرپرست ---------- */
.app.bare .nav { display: none; }
.screen[data-bare] { padding-bottom: 32px; }

.label { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 22px 20px 10px; font-size: 16px; font-weight: 800; }
.label small { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.lead { padding: 0 20px; color: var(--ink-2); font-size: 15px; }

.input {
  display: flex; align-items: center; gap: 10px; margin: 0 20px;
  min-height: 60px; padding: 0 18px; border-radius: 20px;
  background: var(--card); box-shadow: var(--shadow);
}
.input input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 18px; font-weight: 600; }
.input input::placeholder { color: var(--ink-3); font-weight: 500; }
.input .pre { color: var(--ink-3); font-weight: 700; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 46px; padding: 0 18px; border-radius: 999px;
  background: var(--card); box-shadow: var(--shadow); font-weight: 600; font-size: 15px;
}
.chip svg.i { width: 20px; height: 20px; }
.chip.is-on { background: var(--ink); color: #fff; box-shadow: none; }
.chip.warn.is-on { background: var(--amber); color: var(--ink); }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; margin: 0 20px; padding: 4px; border-radius: 999px; background: #e7e6df; }
.seg button { min-height: 46px; border-radius: 999px; font-weight: 700; font-size: 15px; color: var(--ink-2); }
.seg button.is-on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }

.stepper { display: flex; align-items: center; gap: 4px; flex: none; }
.stepper button { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); }
.stepper button:last-child { background: var(--ink); color: var(--lime); }
.stepper output { min-width: 48px; text-align: center; font-size: 21px; font-weight: 800; }
.stepper.big button { width: 64px; height: 64px; }
.stepper.big output { min-width: 110px; font-size: 44px; }

.list { display: grid; gap: 10px; padding: 0 20px; }
.line-card { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r-m); background: var(--card); box-shadow: var(--shadow); text-align: start; width: 100%; }
.line-card .ico { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: var(--paper); flex: none; }
.line-card .grow { flex: 1; min-width: 0; }
.line-card b { display: block; font-size: 16px; font-weight: 700; line-height: 1.45; }
.line-card small { display: block; color: var(--ink-2); font-size: 13.5px; }
.line-card .end { text-align: end; flex: none; }
.line-card .end b { font-size: 17px; font-weight: 800; }
.line-card.stack { flex-direction: column; align-items: stretch; }
.line-card.stack .row { display: flex; align-items: center; gap: 12px; }

.shot {
  display: grid; place-items: center; gap: 6px; margin: 0 20px; min-height: 118px;
  border-radius: var(--r-m); border: 2px dashed #cfcec6; color: var(--ink-2); font-weight: 600; text-align: center;
}
.shot svg.i { width: 30px; height: 30px; color: var(--ink); }

/* وضعیت سفارش */
.track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 12px; }
.track span { position: relative; padding-top: 16px; font-size: 12px; color: var(--ink-3); text-align: center; }
.track span::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 7px; border-radius: 7px; background: var(--line); }
.track span.ok { color: var(--ink); font-weight: 600; }
.track span.ok::before { background: var(--ink); }
.track span.now { color: var(--ink); font-weight: 800; }
.track span.now::before { background: var(--hatch), var(--lime); }

/* پیش‌نیازها */
.checks { display: grid; }
.check { display: flex; align-items: center; gap: 12px; min-height: 58px; border-top: 1px solid var(--line); }
.check:first-child { border-top: 0; }
.check .mark { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--lime); }
.check .mark svg.i { width: 18px; height: 18px; stroke-width: 2.4; }
.check.no .mark { background: var(--amber-soft); color: #9a5a08; }
.check .grow { flex: 1; min-width: 0; }
.check b { display: block; font-size: 15.5px; font-weight: 700; }
.check small { color: var(--ink-2); font-size: 13px; }

/* منو */
.menu-list { margin: 0 20px; padding: 4px 16px; border-radius: var(--r-m); background: var(--card); box-shadow: var(--shadow); }
.menu-list a, .menu-list button { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; text-align: start; }
.menu-list > :first-child { border-top: 0; }
.menu-list .grow { flex: 1; }
.menu-list .fwd { color: var(--ink-3); }
.profile { display: flex; align-items: center; gap: 14px; margin: 6px 20px 0; padding: 18px; border-radius: var(--r-l); background: var(--ink); color: #fff; }
.profile .avatar { width: 58px; height: 58px; font-size: 18px; background: var(--lime); color: var(--ink); border-color: var(--ink); }
.profile b { display: block; font-size: 19px; }
.profile span { color: #b9bbb0; font-size: 14px; }
.site-pick { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r-m); background: var(--card); box-shadow: var(--shadow); width: 100%; text-align: start; }
.site-pick .grow { flex: 1; }
.site-pick b { display: block; font-size: 16px; }
.site-pick small { color: var(--ink-2); }
.site-pick .radio { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line); }
.site-pick.is-on { box-shadow: inset 0 0 0 2px var(--ink); }
.site-pick.is-on .radio { box-shadow: inset 0 0 0 8px var(--ink); }

/* ورود */
.login-top { display: grid; place-items: center; gap: 22px; padding: 64px 20px 34px; text-align: center; }
.login-top .mark { width: 92px; height: 92px; border-radius: 30px; display: grid; place-items: center; background: var(--hatch), var(--lime); }
.login-top .mark img { width: 58px; }
.login-top img.logo { height: 34px; }
.login-top h1 { font-size: 26px; font-weight: 800; }
.login-top p { color: var(--ink-2); font-size: 15.5px; max-width: 300px; }
.otp { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 0 20px; direction: ltr; }
.otp span { display: grid; place-items: center; height: 66px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); font-size: 28px; font-weight: 800; }
.otp span.on { box-shadow: inset 0 0 0 2px var(--ink); }
.hint { margin: 14px 20px 0; text-align: center; color: var(--ink-2); font-size: 14.5px; }
.hint b { color: var(--ink); }

/* ثبت شد */
.done-wrap { display: grid; justify-items: center; gap: 14px; padding: 72px 20px 24px; text-align: center; }
.done-wrap .big { width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; background: var(--hatch), var(--lime); }
.done-wrap .big svg.i { width: 54px; height: 54px; stroke-width: 2.4; }
.done-wrap h1 { font-size: 28px; font-weight: 800; }
.done-wrap p { color: var(--ink-2); font-size: 16px; max-width: 300px; }

/* سربرگ پرونده پیمانکار */
.c-hero { margin: 0 20px; padding: 18px; border-radius: var(--r-l); background: var(--ink); color: #fff; }
.c-hero .row { display: flex; align-items: center; gap: 12px; }
.c-hero .avatar { width: 54px; height: 54px; font-size: 18px; background: var(--lime); color: var(--ink); border-color: var(--ink); }
.c-hero b { display: block; font-size: 20px; }
.c-hero span { color: #b9bbb0; font-size: 14px; }
.money { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.money div { padding: 12px; border-radius: 16px; background: #1d1e19; }
.money b { font-size: 19px; font-weight: 800; line-height: 1.25; }
.money span { font-size: 12px; }
.money .hot { background: var(--hatch), var(--lime); }
.money .hot b, .money .hot span { color: var(--ink); }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px 20px 0; }
.trio button { display: grid; justify-items: center; gap: 6px; padding: 14px 6px; border-radius: var(--r-m); background: var(--card); box-shadow: var(--shadow); font-size: 13.5px; font-weight: 700; }
.trio button .ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--paper); }
.trio button.lime { background: var(--hatch), var(--lime); box-shadow: none; }
.trio button.lime .ico { background: var(--ink); color: var(--lime); }

.calc { display: flex; justify-content: space-between; align-items: center; margin: 14px 20px 0; padding: 16px 18px; border-radius: var(--r-m); background: var(--lime-soft); font-weight: 700; }
.calc b { font-size: 20px; font-weight: 800; }
.sticky-act { position: sticky; bottom: 92px; padding: 14px 20px 0; z-index: 4; }
.screen[data-bare] .sticky-act { bottom: 16px; }
.toast-row { display: flex; gap: 10px; align-items: center; margin: 0 20px; padding: 12px 14px; border-radius: var(--r-s); background: var(--amber-soft); color: #7a4706; font-size: 14px; font-weight: 600; }
.profile b, .c-hero .row b { color: #fff; }
