@font-face { font-family: Vazirmatn; src: url(/assets/fonts/Vazirmatn-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Vazirmatn; src: url(/assets/fonts/Vazirmatn-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Vazirmatn; src: url(/assets/fonts/Vazirmatn-SemiBold.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: Vazirmatn; src: url(/assets/fonts/Vazirmatn-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: Vazirmatn; src: url(/assets/fonts/Vazirmatn-ExtraBold.woff2) format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --bg: #fcf9f3;
  --surface: #ffffff;
  --ink: #1c1c18;
  --muted: #53443b;
  --line: #d8c2b7;
  --copper: #9a5b32;
  --copper-deep: #7a4524;
  --good: #3a684c;
  --good-bg: #e7f6ec;
  --debt: #8a4632;
  --debt-bg: #f8ebe4;
  --wait: #80412a;
  --shadow: 0 1px 2px rgba(28, 28, 24, .06);
  --radius: 8px;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font-family: Vazirmatn, Tahoma, sans-serif; background: var(--bg); color: var(--ink); font-size: 14px; line-height: 24px; font-weight: 400; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
.num { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 15px; line-height: 22px; letter-spacing: 0; }

.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(420px, 100%); background: transparent; text-align: center; }
.mark { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 18px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; box-shadow: var(--shadow); }
.login-card h1 { margin: 0; font-size: clamp(22px, 6vw, 32px); line-height: 1.35; font-weight: 800; letter-spacing: -0.02em; }
.sub { color: var(--muted); margin: 6px 0 16px; }
.pill { display: inline-flex; gap: 8px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; color: var(--muted); font-size: 13px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); display: inline-block; }
.login-card form { margin-top: 22px; display: grid; gap: 12px; text-align: right; }
.field { display: grid; gap: 6px; }
.field span { font-size: 13px; color: var(--muted); }
.control { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; min-height: 44px; }
.control input, .control select, .control textarea { border: 0; outline: 0; background: transparent; width: 100%; padding: 12px 0; }
.control textarea { min-height: 90px; resize: vertical; }
.btn { border: 0; background: var(--copper); color: #fff; border-radius: 8px; min-height: 40px; padding: 8px 20px; font-size: 14px; line-height: 20px; font-weight: 600; box-shadow: var(--shadow); }
.btn.block { width: 100%; }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.small { min-height: 36px; border-radius: 10px; font-size: 13px; }
.btn.warn { background: #fff; color: var(--debt); border: 1px solid #efd5cb; }
.fine { color: var(--muted); font-size: 13px; text-align: center; margin-top: 14px; }
.foot { margin-top: 28px; color: #9a8d82; font-size: 12px; text-align: center; }
.err { background: var(--debt-bg); color: var(--debt); border-radius: 12px; padding: 10px 12px; font-size: 13px; }

.top { position: sticky; top: 0; z-index: 20; background: rgba(252, 249, 243, .9); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(216, 194, 183, .3); box-shadow: 0 1px 8px rgba(28, 25, 23, .04); }
.top-inner { width: min(80rem, 100%); margin: 0 auto; padding-inline: 20px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; height: 64px; }
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brandtext { display: flex; align-items: center; gap: 8px; min-width: 0; }
.logo { width: 40px; height: 40px; border-radius: 12px; background: var(--copper); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow), 0 0 0 2px rgba(154, 91, 50, .2); flex: none; }
.brandstack { display: flex; flex-direction: column; min-width: 0; }
.word { font-size: 15px; line-height: 20px; font-weight: 800; letter-spacing: -0.01em; color: inherit; white-space: nowrap; }
.tag { color: #85736a; font-size: 11px; line-height: 16px; font-weight: 500; }
.proj { display: flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 999px; background: #f0eee8; border: 1px solid rgba(216, 194, 183, .3); font-size: 12px; line-height: 18px; font-weight: 500; white-space: nowrap; }
.phasechip { background: #b9ebc8; color: #224f35; border-radius: 999px; padding: 1px 8px; font-size: 11px; font-weight: 600; }
.bell { position: relative; }
.bellcount { position: absolute; top: -2px; inset-inline-start: -2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: #80412a; color: #fff; font-size: 10px; font-style: normal; font-weight: 700; display: grid; place-items: center; }
.proj .now { color: var(--good); font-size: 11px; line-height: 16px; font-weight: 700; }
.projectpick { border: 0; background: transparent; font: inherit; font-weight: 500; color: inherit; max-width: 220px; }
.proj .sep { color: var(--line); }
.nav { display: flex; align-items: center; gap: 4px; overflow-x: auto; padding: 6px 0 10px; border-top: 1px solid rgba(229, 226, 220, .6); scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.navgroup { display: flex; align-items: center; gap: 4px; flex: none; }
.navgroup + .navgroup { margin-inline-start: 8px; padding-inline-start: 8px; border-inline-start: 1px solid rgba(216, 194, 183, .45); }
.nav a, .tabbar a { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); padding: 6px 10px; border-radius: 8px; white-space: nowrap; font-size: 13px; line-height: 20px; font-weight: 500; }
.nav a.active { background: var(--copper); color: #fff; font-weight: 700; box-shadow: var(--shadow); }
.badge { background: #fff; color: var(--copper); border-radius: 99px; min-width: 16px; height: 16px; font-size: 10px; font-style: normal; font-weight: 700; display: inline-grid; place-items: center; padding: 0 4px; }
.nav a:not(.active) .badge { background: var(--copper); color: #fff; }
.who { display: flex; align-items: center; gap: 8px; flex: none; }
.userchip { display: flex; align-items: center; gap: 6px; padding: 4px 4px 4px 8px; border-radius: 12px; background: #f6f3ed; border: 1px solid rgba(216, 194, 183, .3); }
.userchip b { display: block; font-size: 12px; line-height: 18px; font-weight: 600; text-align: right; }
.userchip .role { display: block; color: var(--copper); font-size: 11px; line-height: 16px; font-weight: 500; }
.avatar { width: 32px; height: 32px; border-radius: 8px; background: var(--copper); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.page { width: min(80rem, calc(100% - 40px)); margin: 20px auto 88px; }
.page h1 { margin: 0; font-size: 24px; line-height: 36px; font-weight: 700; letter-spacing: -0.015em; }
.page h2, .card h2, .card h3 { font-size: 18px; line-height: 28px; font-weight: 600; margin: 0 0 8px; }
.head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; margin-bottom: 16px; }
.muted { color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.card { background: var(--surface); border: 1px solid rgba(216, 194, 183, .3); border-radius: 8px; padding: 20px; box-shadow: var(--shadow); }
.card .k { color: var(--muted); font-size: 12px; line-height: 18px; font-weight: 600; }
.statline { display: flex; align-items: baseline; gap: 6px; margin-top: 8px; }
.card .v { font-size: 32px; line-height: 44px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.waitnum .v { color: var(--wait); }
.unit { font-size: 11px; line-height: 16px; font-weight: 500; color: var(--muted); }
.card .u { color: var(--muted); font-size: 12px; }
.banner { margin: 12px 0; background: var(--good-bg); color: var(--good); border-radius: 14px; padding: 10px 14px; font-size: 14px; }
.banner.warn { background: #f8efe2; color: var(--wait); }
.layout { display: grid; grid-template-columns: 300px 1fr; gap: 14px; align-items: start; }
.statfoot { margin-top: 8px; padding-top: 8px; border-top: 1px solid #e5e2dc; color: var(--muted); font-size: 11px; }
.phase { justify-content: flex-start; }
.phase em { margin-inline-start: auto; font-style: normal; font-size: 11px; }
.mhome { display: none; }
.review.open .preview { width: 100%; max-height: 420px; object-fit: contain; background: #1c1c18; border-radius: 8px; margin-top: 8px; }
.reviewacts { display: flex; gap: 8px; margin-top: 10px; }
.reviewacts form { display: flex; gap: 8px; flex: 1; }
.reviewacts input { flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 8px; }
.timeline { display: grid; gap: 10px; }
.phasecard { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: start; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 12px 14px; }
.phasecard.open, .phasecard.doing { border-color: var(--copper); box-shadow: 0 4px 16px rgba(28, 25, 23, .08); }
.phasemark { width: 36px; height: 36px; border: 0; border-radius: 99px; background: #f0eee8; color: var(--ink); font-weight: 800; cursor: pointer; }
.phasecard.done .phasemark { background: var(--good); color: #fff; }
.phasecard.doing .phasemark, .phasecard.open .phasemark { background: var(--copper); color: #fff; }
.phasehead { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; text-align: right; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.phasehead b { font-size: 18px; }
.phaseline, .phasedates { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.phasenote { background: #f6f3ed; border-radius: 8px; padding: 10px 12px; margin: 8px 0; }
.phasebody .fine { text-align: right; margin-top: 8px; }
.approveband { display: flex; justify-content: space-between; gap: 16px; align-items: end; background: #f6f3ed; border-radius: 12px; padding: 18px 20px; margin-bottom: 16px; }
.approveband h1 { font-size: 32px; line-height: 44px; font-weight: 800; letter-spacing: -0.02em; }
.approvekicker { margin: 0; color: var(--muted); font-size: 12px; font-weight: 600; }
.approvekicker b { color: var(--copper); }
.approvetitle { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.approveband p { margin: 4px 0 0; color: var(--muted); max-width: 42rem; }
.approvesum { background: #fff; border-radius: 8px; padding: 10px 14px; display: flex; gap: 14px; align-items: center; }
.approvesum i { width: 1px; align-self: stretch; background: var(--line); }
.approvesum span, .fig span, .notebox span, .partnerstrip span { display: block; color: var(--muted); font-size: 11px; font-weight: 600; }
.approvesum b { font-size: 18px; line-height: 28px; }
.approvesum small, .qamt small, .fig small { font-size: 12px; font-weight: 400; color: var(--muted); }
.kindline { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.kinddot { width: 8px; height: 8px; border-radius: 99px; display: inline-block; margin-inline-end: 4px; }
.kinddot.slip { background: var(--good); }
.kinddot.bill { background: var(--copper); }
.kinddot.pocket { background: var(--wait); }
.kinddot.fund { background: #3b6d8f; }
.reviewsplit { display: grid; grid-template-columns: minmax(280px, 5fr) minmax(0, 7fr); gap: 16px; align-items: start; }
.qhead { margin-bottom: 8px; }
.qcard { position: relative; background: #fff; border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; box-shadow: 0 1px 6px rgba(28, 25, 23, .06); }
.qcard.on { box-shadow: 0 4px 16px rgba(28, 25, 23, .1); }
.qcard.on::before { content: ""; position: absolute; top: 22px; inset-inline-end: -6px; width: 6px; height: 48px; border-radius: 99px; background: var(--copper); }
.qmain { width: 100%; text-align: right; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.qtop, .qmid, .qmeta, .qfoot { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.qtop time, .qmeta, .qfoot small { color: var(--muted); font-size: 12px; }
.qkind, .qshare { font-style: normal; font-size: 11px; font-weight: 600; border-radius: 99px; padding: 2px 8px; margin-inline-end: 4px; }
.qkind.slip { background: var(--good-bg); color: var(--good); }
.qkind.bill { background: #f6f3ed; color: var(--muted); }
.qkind.pocket { background: #ffdbcf; color: #380c00; }
.qkind.fund { background: #e6f0f6; color: #1f4a66; }
.qshare { background: #f0eee8; color: var(--muted); }
.qmid { align-items: end; margin-top: 6px; }
.qmid h3 { margin: 0; font-size: 18px; }
.qmid p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.qamt { text-align: left; font-weight: 800; font-size: 18px; }
.qcard.on .qamt { color: var(--copper); }
.qmeta, .qfoot { margin-top: 8px; }
.qmeta { background: #f6f3ed; border-radius: 8px; padding: 6px 8px; }
.qmeta b { color: var(--copper); font-size: 12px; }
.qfoot > span:first-child { display: grid; }
.qactions { display: flex; gap: 6px; }
.qpocket { margin: 8px 0 0; background: var(--good-bg); color: var(--good); border-radius: 6px; padding: 4px 8px; font-size: 12px; }
.qnote { display: flex; gap: 8px; background: #f6f3ed; color: var(--muted); border-radius: 12px; padding: 12px; font-size: 13px; }
.workbench { background: #fff; border-radius: 12px; padding: 18px; box-shadow: 0 4px 16px rgba(28, 25, 23, .08); }
.workhead { display: flex; justify-content: space-between; gap: 8px; align-items: center; background: #f6f3ed; border-radius: 8px; padding: 10px 12px; margin-bottom: 14px; }
.workhead small { color: var(--muted); margin-inline-start: 6px; }
.workgrid { display: grid; grid-template-columns: minmax(180px, 5fr) minmax(0, 7fr); gap: 14px; }
.shot { position: relative; border-radius: 12px; overflow: hidden; background: #e5e2dc; min-height: 220px; }
.shot img, .shot iframe { width: 100%; height: 320px; object-fit: contain; background: #1c1c18; border: 0; display: block; }
.shot .zoom { position: absolute; inset: auto 0 0 0; padding: 8px 10px; color: #fff; background: linear-gradient(transparent, rgba(28, 28, 24, .72)); font-size: 12px; }
.shotempty { min-height: 220px; display: grid; place-items: center; color: var(--muted); padding: 12px; text-align: center; }
.partnerstrip { display: flex; justify-content: space-between; gap: 8px; align-items: center; background: #f6f3ed; border-radius: 12px; padding: 12px; }
.partnerstrip > div:first-child { display: flex; gap: 10px; align-items: center; }
.avatar.lg { width: 48px; height: 48px; border-radius: 99px; font-size: 16px; }
.partnerstrip small { display: block; color: var(--muted); font-size: 12px; }
.figgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.fig, .notebox { background: #f6f3ed; border-radius: 8px; padding: 8px 10px; }
.fig b { font-size: 18px; }
.fig em { display: block; font-style: normal; color: var(--copper); font-size: 12px; margin-top: 4px; }
.notebox { border-radius: 12px; margin-top: 10px; display: grid; gap: 8px; }
.notebox p { background: #fff; border-radius: 8px; padding: 8px 10px; margin: 4px 0 0; }
.decide { background: #f6f3ed; border-radius: 12px; padding: 14px; margin-top: 16px; display: grid; gap: 10px; }
.decidehead, .decideapprove { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.decidehead small, .decideapprove p { color: var(--muted); margin: 0; font-size: 13px; }
.decideapprove, .decidereject { background: #fff; border-radius: 12px; padding: 12px; }
.decidereject { display: grid; gap: 8px; }
.rejectrow { display: flex; gap: 8px; }
.rejectrow input { flex: 1; min-height: 42px; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; background: var(--bg); }
.reasons { display: flex; gap: 6px; flex-wrap: wrap; }
.reasons button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 10px; font-size: 12px; }
.callstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.callstats.four { grid-template-columns: repeat(4, 1fr); }
.callstats .v { font-size: 22px; line-height: 32px; }
.gather { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.gather p, .calltable .muted { margin: 8px 0 0; color: var(--muted); }
.calltable { overflow: auto; padding: 12px; }
tr.me { background: #fff8f3; }
.callstats p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
td small { display: block; color: var(--muted); font-size: 12px; }
td .avatar { display: inline-grid; margin-left: 6px; vertical-align: middle; }
.headacts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.callcard { display: block; margin-bottom: 10px; color: inherit; }
.calltop, .exprowtop, .expacts, .audrow { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.callcard .v { font-size: 22px; line-height: 32px; }
.exprow { margin-bottom: 8px; }
.exprow p { margin: 6px 0; }
.expright { display: grid; justify-items: end; gap: 4px; }
.expright .num { font-weight: 800; }
.pocketbox { margin-top: 12px; }
.audrow { padding: 10px 0; border-bottom: 1px solid #f3ece6; }
.audrow p { margin: 2px 0 0; color: var(--muted); }
.auditlist { padding-top: 4px; }
.moregrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.morelink { display: flex; justify-content: space-between; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 14px 12px; }
.morelink .badge { background: var(--copper); color: #fff; border-radius: 999px; min-width: 18px; text-align: center; font-style: normal; font-size: 11px; padding: 0 6px; }
tfoot td { font-weight: 700; border-top: 1px solid var(--line); }
.phasehead i { width: 18px; color: var(--good); }
.phaseform { display: grid; gap: 8px; margin-top: 10px; }
.photoline { display: flex; gap: 8px; flex-wrap: wrap; }
.photoline .preview { max-height: 140px; }
.formpage { display: grid; gap: 12px; max-width: 640px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.picks, .stack { display: grid; gap: 8px; }
.pick { display: grid; gap: 2px; text-align: right; background: #f6f3ed; border: 1px solid transparent; border-radius: 12px; padding: 12px; }
.pick.on { background: #fff; border-color: var(--copper); }
.pick small, .choice small { color: var(--muted); font-size: 12px; }
.words { margin: 4px 0 0; color: var(--copper); font-size: 12px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pillbtn { border: 0; background: #f0eee8; border-radius: 8px; padding: 6px 10px; }
.pillbtn.on { background: var(--copper); color: #fff; }
.filecard { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 12px; padding: 10px; }
.filecard img { width: 72px; height: 88px; object-fit: cover; border-radius: 8px; background: #f0eee8; }
.filerow { display: flex; gap: 6px; margin-top: 8px; }
.plist { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid #f3ece6; }
.plist small { display: block; color: var(--muted); }
.plist .num { margin-inline-start: auto; }
.legend { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; color: var(--muted); font-size: 12px; }
.plist .dot, .legend .dot { background: #d8c2b7; }
.dot.good { background: var(--good); }
.dot.debt { background: var(--debt); }
tfoot td { font-weight: 700; background: #f6f3ed; }
table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 8px; overflow: hidden; }
th, td { padding: 12px; border-bottom: 1px solid #e5e2dc; text-align: right; font-size: 14px; line-height: 20px; vertical-align: middle; }
th { color: var(--muted); font-weight: 600; font-size: 12px; line-height: 18px; }
tr.good td { background: #f3faf6; }
tr.debt td { background: #fdf6f3; }
.chip { display: inline-flex; align-items: center; border-radius: 999px; padding: 2px 8px; font-size: 12px; background: #f3efe9; }
.chip.good { background: var(--good-bg); color: var(--good); }
.chip.debt { background: var(--debt-bg); color: var(--debt); }
.chip.wait { background: #f8efe2; color: var(--wait); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.rowline { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid #f3ece6; font-size: 13.5px; }
.phases { display: grid; gap: 8px; }
.phase { display: flex; gap: 8px; align-items: center; color: var(--muted); }
.phase i { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #d9cfc5; display: grid; place-items: center; font-style: normal; font-size: 11px; }
.phase.done { color: var(--good); }
.phase.done i { background: var(--good); color: white; border-color: var(--good); }
.phase.doing { color: var(--copper); font-weight: 700; }
.phase.doing i { border-color: var(--copper); color: var(--copper); }
.bar { height: 8px; background: #efe7df; border-radius: 99px; overflow: hidden; margin-top: 8px; }
.bar span { display: block; height: 100%; background: var(--copper); }
.taskband { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 16px; }
.taskband p { margin: 6px 0 0; }
.boardscroller {
  margin-inline: calc(50% - 50vw);
  padding-inline: max(12px, calc(50vw - 620px));
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  cursor: grab;
}
.boardscroller.panning { cursor: grabbing; user-select: none; }
.board {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  width: max-content;
  min-height: 280px;
  padding-bottom: 8px;
  touch-action: pan-x;
}
.col {
  flex: 0 0 280px;
  width: 280px;
  background: #f6f3ed;
  border-radius: 12px;
  padding: 10px;
  min-height: 240px;
  max-height: calc(100vh - 220px);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-x pan-y;
  cursor: default;
}
.col h3 { margin: 4px 6px 10px; font-size: 16px; line-height: 24px; font-weight: 600; position: sticky; top: 0; background: #f6f3ed; z-index: 1; padding-block: 4px; }
.coldot { width: 8px; height: 8px; border-radius: 50%; background: #85736a; display: inline-block; }
.col.doing .coldot { background: var(--copper); }
.col.waiting .coldot { background: var(--wait); }
.col.done .coldot { background: var(--good); }
.col .count { color: var(--muted); background: #fff; border-radius: 999px; padding: 0 8px; font-size: 12px; font-weight: 600; }
.task { background: white; border: 1px solid var(--line); border-radius: 8px; padding: 12px; margin-bottom: 8px; cursor: grab; touch-action: pan-x pan-y; user-select: none; }
.task.dragging { opacity: .72; cursor: grabbing; }
.task p { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 20px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.task.done .tasktitle { text-decoration: line-through; color: var(--muted); }
.taskbits { display: flex; gap: 8px; color: var(--muted); font-size: 12px; }
.task .who { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.task select { margin-top: 8px; width: 100%; min-height: 32px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.drawer { position: fixed; inset: 0; background: rgba(40, 28, 18, .28); display: grid; justify-content: start; z-index: 30; }
.panel { width: min(480px, 100%); height: 100%; background: var(--bg); overflow: auto; padding: 18px; box-shadow: var(--shadow); }
.commentbox { display: flex; gap: 8px; margin: 8px 0; }
.commentbox input { flex: 1; min-height: 40px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; background: #fff; }
.check.done { color: var(--muted); text-decoration: line-through; }
.split { display: grid; grid-template-columns: 340px 1fr; gap: 14px; }
.filters { display: flex; gap: 8px; overflow: auto; margin: 12px 0; }
.filters a { border: 1px solid var(--line); background: white; border-radius: 999px; padding: 7px 12px; white-space: nowrap; }
.filters a.on, .choice.on { background: #f6e7dc; border-color: #e4cbb8; color: var(--copper-deep); font-weight: 700; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice {
  border: 1px solid var(--line);
  background: white;
  border-radius: 14px;
  padding: 12px 14px;
  text-align: right;
  min-height: 64px;
  white-space: normal;
  display: grid;
  gap: 4px;
  align-content: center;
}
.choice b { font-size: 14px; line-height: 20px; }
.expenseform .pills { gap: 8px; }
.expenseform .pillbtn { padding: 8px 12px; }
.expenseform .expstatus { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.expenseform .depositacts { margin-top: 4px; }
.list-btn { width: 100%; text-align: right; background: white; border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 8px; }
.list-btn.on { border-color: var(--copper); }
.chatroom { width: min(480px, 100%); margin-inline: auto; }
.bubbles { display: grid; gap: 14px; }
.bubble { display: flex; gap: 8px; align-items: flex-start; max-width: 85%; background: #fff; border-radius: 16px 16px 4px 16px; padding: 12px 14px; }
.bubble.mine { margin-inline-start: auto; background: #9a5b32; color: #fff; border-radius: 16px 16px 16px 4px; }
.bubble header { display: flex; gap: 8px; align-items: center; }
.bubble header b { font-size: 12px; line-height: 18px; color: var(--copper-deep); }
.bubble p { margin: 4px 0; }
.bubble small { display: flex; gap: 8px; align-items: center; justify-content: flex-end; color: var(--muted); }
.bubble small button { border: 0; background: none; color: inherit; font-size: 12px; }
.bubble.mine small { color: #ffe8dc; }
.bubble em { color: var(--good); font-style: normal; font-weight: 600; }
.bubble.mine em { color: #d7f5e1; }
.bubble .edited { background: #f0eee8; color: var(--muted); border-radius: 6px; padding: 0 6px; font-size: 11px; }
.bubble.mine .edited { background: rgba(255,255,255,.16); color: #ffe8dc; }
.bubble .preview { max-height: 180px; border-radius: 8px; }
.filepill { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; padding: 8px 10px; border-radius: 8px; background: #f6f3ed; color: inherit; }
.daychip { justify-self: center; background: #f0eee8; color: var(--muted); border-radius: 999px; padding: 2px 12px; font-size: 12px; font-weight: 500; }
.composer { display: flex; gap: 4px; align-items: center; position: sticky; bottom: 0; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-top: 12px; }
.composer input[name=body] { flex: 1; border: 0; background: transparent; min-height: 36px; }
.composer .send { border-radius: 999px; min-height: 40px; padding-inline: 14px; }
.clip { color: var(--copper); font-size: 12px; font-weight: 600; padding: 0 8px; cursor: pointer; }
.chathead { display: flex; justify-content: space-between; gap: 12px; align-items: center; position: sticky; top: 0; z-index: 4; background: rgba(252,249,243,.95); padding: 8px 0; margin-bottom: 8px; }
.chathead h1 { font-size: 18px; line-height: 28px; font-weight: 600; letter-spacing: 0; }
.chathead p { margin: 0; color: var(--muted); font-size: 11px; line-height: 16px; }
.chatactions { display: flex; gap: 6px; }
.iconbtn { border: 0; background: #f0eee8; color: var(--muted); border-radius: 999px; min-height: 36px; padding: 0 12px; }
.chatsearch, .pinform input { width: 100%; min-height: 40px; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; background: #fff; margin-bottom: 8px; }
.chatpin { background: #ebe8e2; border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.chatpin small { color: var(--copper); font-weight: 600; }
.chatpin p { margin: 2px 0 0; }
.pinform { display: flex; gap: 8px; margin-bottom: 12px; }
.pinform input { flex: 1; margin-bottom: 0; }
.noticeband { display: flex; justify-content: space-between; gap: 16px; align-items: end; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.noticeband p { margin: 4px 0 0; color: var(--muted); max-width: 40rem; }
.noticekpis { display: flex; gap: 10px; flex-wrap: wrap; }
.noticekpis article { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; min-width: 180px; }
.noticekpis b { display: block; font-size: 18px; line-height: 28px; }
.noticekpis span { color: var(--muted); font-size: 12px; }
.noticesplit { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.9fr); gap: 16px; align-items: start; }
.noticetool { display: flex; justify-content: space-between; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; margin-bottom: 12px; }
.noticetool .filters { margin: 0; }
.noticetool input { width: min(240px, 100%); min-height: 36px; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; background: #f6f3ed; }
.noticecard { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; padding: 16px; }
.noticecard.pinned { border-top: 4px solid var(--copper); }
.noticecard.private { border-inline-start: 4px solid var(--wait); }
.noticecard p { margin: 0 0 12px; color: var(--muted); }
.noticehead { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 8px; }
.noticehead small, .noticefoot { color: var(--muted); font-size: 12px; }
.notemeta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.noticefoot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 10px; }
.noticefoot .sender { display: flex; gap: 8px; align-items: center; color: var(--ink); }
.receipt { background: #f6f3ed; border-radius: 8px; padding: 12px; margin-top: 12px; }
.receipthead { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.seengrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.seengrid div { background: #fff; border-radius: 8px; padding: 8px; display: grid; gap: 2px; }
.seengrid span, .seengrid small { color: var(--muted); font-size: 12px; }
.seengrid .seen span, .seengrid .seen small { color: var(--good); }
.seengrid .unseen { background: #f3efe9; }
.noticeform { position: sticky; top: 88px; }
.noticeform .choice { min-height: 40px; border-radius: 8px; text-align: center; }
.notestats { display: grid; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; }
.notestats div { display: flex; justify-content: space-between; color: var(--muted); }
.notestats b { color: var(--ink); }
.drop { border: 1.5px dashed #d9cfc6; border-radius: 16px; background: white; min-height: 110px; display: grid; place-items: center; text-align: center; color: var(--muted); padding: 12px; }
.drop img, .preview { max-width: 100%; border-radius: 12px; }
.tabbar { display: none; }
.iconbtn { width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); display: grid; place-items: center; padding: 0; }
.goodtext { color: var(--good); }
.debttext { color: var(--debt); }
.roleown { color: var(--copper); font-weight: 600; }
.center { text-align: center; }
.crumb { display: flex; gap: 6px; color: #85736a; font-size: 11px; margin-bottom: 4px; }
.crumb b { color: var(--copper); font-weight: 600; }
.sumok { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 12px; background: #b9ebc8; color: #224f35; font-weight: 700; white-space: nowrap; }
.sumok.warn { background: #f8efe2; color: var(--wait); }
.namerow { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.namerow input { flex: 1; min-height: 40px; border: 0; background: #f6f3ed; border-radius: 8px; padding: 0 12px; }
.addgrid { display: grid; grid-template-columns: 1.4fr 1fr .6fr 1fr auto; gap: 8px; align-items: end; margin-bottom: 12px; }
.addgrid h3, .addgrid .fine { grid-column: 1 / -1; margin: 0; }
.sharein { width: 80px; text-align: center; border: 0; background: #f6f3ed; border-radius: 8px; min-height: 36px; font-weight: 700; }
.tablesave { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; background: #f6f3ed; }
.newproject { display: grid; gap: 12px; margin-bottom: 16px; border-inline-start: 4px solid var(--copper); }
.newgrid, .newperson { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; }
.newperson { grid-template-columns: 1fr 1fr 1fr; background: #f6f3ed; border-radius: 8px; padding: 12px; }
.newperson .muted { grid-column: 1 / -1; margin: 0; }
.newfoot { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; }
.newfoot .field { width: 140px; }
.newfoot .fine { margin: 0; text-align: right; }
.projectband { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 16px; }
.projectband h1 { display: flex; align-items: center; gap: 10px; font-size: 32px; line-height: 44px; font-weight: 800; letter-spacing: -0.02em; }
.projectband h1 i { width: 6px; height: 28px; border-radius: 4px; background: var(--copper); }
.projectband p { margin: 4px 0 0; color: var(--muted); max-width: 42rem; }
.sectiontitle { margin: 8px 0 12px; }
.pcard { margin-bottom: 12px; }
.pcardtop { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.pcard .namerow { margin: 0 0 4px; }
.pcardmeta { display: flex; align-items: center; gap: 10px; background: #f6f3ed; border-radius: 8px; padding: 8px 12px; }
.progressbit { display: grid; font-size: 12px; color: var(--muted); }
.progressbit b { color: var(--good); font-size: 14px; }
.assign { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; background: #f6f3ed; border-radius: 8px; padding: 10px; margin-top: 10px; }
.zeronote { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.cardfoot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.check { display: flex; gap: 8px; align-items: center; padding: 6px 0; }
.statement { width: min(480px, 100%); margin-inline: auto; }
.whoami, .vault { background: #f6f3ed; border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.whoami .toprow { display: flex; justify-content: space-between; gap: 8px; align-items: center; color: var(--muted); font-size: 12px; font-weight: 600; }
.whoami .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--good); margin-left: 6px; }
.personline { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.personline h2, .personline p { margin: 0; }
.personline p { color: var(--muted); font-size: 13px; }
.billhero .v { font-size: 32px; line-height: 44px; font-weight: 800; }
.billhero p { margin: 8px 0 12px; }
.billline.fairline { background: #f6f3ed; border-radius: 8px; padding: 10px; border-bottom: 0; }
.billrows { display: grid; gap: 8px; margin-bottom: 14px; }
.billrows .card, .billline { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.billline { padding: 10px 0; border-bottom: 1px solid var(--line); }
.billline p, .billline small, .billrows p { margin: 0; color: var(--muted); font-size: 12px; }
.billline .num, .billrows .num { text-align: left; font-weight: 700; }
.billline .num span, .billrows .num span { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }
.docband { display: flex; justify-content: space-between; gap: 16px; align-items: end; padding-bottom: 16px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.docband h1 { font-size: 32px; line-height: 44px; font-weight: 800; letter-spacing: -0.02em; }
.docband p { margin: 4px 0 0; color: var(--muted); max-width: 42rem; }
.docbar { display: flex; justify-content: space-between; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; margin-bottom: 8px; }
.docbar input { flex: 1; min-height: 36px; border: 0; background: transparent; }
.docbar span { color: var(--muted); font-size: 12px; white-space: nowrap; }
.docsplit { grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.85fr); align-items: start; }
.dochead, .docrow { display: grid; grid-template-columns: 1.8fr .9fr .9fr .8fr; gap: 8px; align-items: center; }
.dochead { color: var(--muted); font-size: 12px; padding: 0 12px 6px; }
.docrow { width: 100%; text-align: right; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; }
.docrow.on { border-color: var(--copper); background: #fff8f3; }
.doctitle { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.doctitle small { flex-basis: 100%; color: var(--muted); font-weight: 400; }
.docpanel { position: sticky; top: 88px; }
.docshot { margin: 8px 0; }
.docmeta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background: #f6f3ed; border-radius: 8px; padding: 8px; margin: 10px 0; }
.docmeta span { display: block; color: var(--muted); font-size: 11px; }
.docrev { display: flex; justify-content: space-between; gap: 8px; padding: 8px; border-radius: 8px; }
.docrev.on { background: #f6f3ed; border-inline-start: 3px solid var(--copper); }
.docrev small { display: block; color: var(--muted); font-weight: 400; }
.docsplit iframe, .idcard img, .docsplit .preview { width: 100%; max-height: 220px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.meta2 { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; margin: 10px 0; font-size: 13px; }
.meta2 span { color: var(--muted); }
.idsplit { grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.5fr); align-items: start; }
.roster { display: grid; gap: 10px; align-content: start; }
.roster .card { display: grid; gap: 6px; }
.roster h2 { margin-bottom: 4px; }
.person { display: grid; grid-template-columns: 32px 1fr auto; gap: 8px; align-items: center; padding: 8px; border-radius: 8px; border: 1px solid transparent; }
.person.on { background: #fff8f3; border-color: var(--copper); }
.idsum { background: #f6f3ed; border-radius: 12px; padding: 12px; }
.idsum p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.idset { margin-top: 16px; }
.idset > .muted { margin: 0 0 8px; }
.trows { display: grid; gap: 8px; margin: 8px 0; }
.trow { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.tpair { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 8px; }
.chainrow { padding: 10px 0; border-bottom: 1px solid var(--line); }
.chainrow small { display: block; color: var(--muted); }
.idhead { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 12px; }
.idhead p { margin: 4px 0 0; color: var(--muted); }
.person small { display: block; color: var(--muted); }
.idgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.idcard { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px; display: grid; gap: 6px; }
.idcard img { max-height: 120px; }
.idcard iframe { width: 100%; height: 180px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.shaba { display: flex; gap: 8px; flex-wrap: wrap; }
.shaba input { flex: 1; min-height: 40px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; }
.dropbox { border-style: dashed; }
.taskfilters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.taskfilters a { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 12px; }
.taskfilters a.on { background: #f6e7dc; border-color: #e4cbb8; color: var(--copper-deep); font-weight: 700; }
.col h3 { display: flex; align-items: center; gap: 6px; }
.col h3 .iconbtn { margin-inline-start: auto; }
.tasktitle { display: block; width: 100%; text-align: right; background: none; border: 0; padding: 0; font-weight: 700; font-size: 15px; }
.tasktop, .taskmeta, .taskfoot, .taskacts { display: flex; gap: 8px; align-items: center; }
.taskfoot { margin-top: 8px; justify-content: space-between; }
.taskfoot select { margin-right: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; max-width: 120px; }
.waitnote { color: var(--wait); }
.drophint { font-size: 12px; padding: 8px; }
@media (max-width: 900px) {
  .addgrid, .newgrid, .newperson { grid-template-columns: 1fr 1fr; }
  .newfoot { align-items: stretch; }
}
@media (max-width: 980px) {
  .stats, .layout, .two, .split, .pair, .idgrid, .dochead, .docrow, .reviewopen, .callstats, .callstats.four, .moregrid, .reviewsplit, .workgrid, .figgrid, .approveband, .decideapprove, .rejectrow, .noticesplit { grid-template-columns: 1fr; }
  .seengrid { grid-template-columns: 1fr 1fr; }
  .noticeband, .noticetool, .docband, .docbar, .projectband, .pcardtop, .taskband { display: grid; }
  .newgrid, .newperson, .tpair { grid-template-columns: 1fr; }
  .noticeform, .docpanel { position: static; }
  .approveband, .decideapprove, .rejectrow { display: grid; }
  .workbench { order: -1; }
  .desk { display: none; }
  .mhome { display: block; }
  .mhome .stats { grid-template-columns: 1fr 1fr; }
  .nav, .proj { display: none; }
  .top-inner { padding-inline: 12px; }
  .page { width: min(100% - 20px, 1240px); }
  .composer { bottom: 72px; }
  .expenseform { max-width: none; gap: 14px; padding: 14px; }
  .expenseform .choices { grid-template-columns: 1fr; }
  .expenseform .pills { display: grid; grid-template-columns: 1fr 1fr; }
  .expenseform .pillbtn { width: 100%; text-align: center; min-height: 42px; }
  .expenseform .depositacts {
    position: sticky;
    bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    z-index: 5;
    background: linear-gradient(180deg, rgba(255,252,248,0), #fffcf8 28%);
    padding-top: 12px;
    margin-inline: -4px;
  }
  .expenseform .field > span { font-size: 13px; }
  .expacts { flex-wrap: wrap; }
  .tabbar {
    display: flex;
    position: fixed;
    inset: auto 0 0 0;
    background: #fffcf8;
    border-top: 1px solid var(--line);
    justify-content: flex-start;
    gap: 2px;
    z-index: 25;
    padding: 6px 8px calc(8px + env(safe-area-inset-bottom, 0px));
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .tabbar::-webkit-scrollbar { display: none; }
  .tabbar a {
    flex: 0 0 auto;
    padding: 8px 12px;
    font-size: 13px;
  }
  .tabbar a.active { color: var(--copper); font-weight: 700; background: #f6e7dc; }
  .card .v { font-size: 22px; }
  .boardscroller { margin-inline: -10px; padding-inline: 10px; touch-action: none; cursor: default; }
  .board, .col, .task { touch-action: none; }
  .col { flex-basis: 260px; width: 260px; max-height: calc(100vh - 260px); }
}
@media print {
  .top, .tabbar, .btn, .composer, .reviewqueue, .decide { display: none !important; }
  .page { margin: 0; width: 100%; }
}
.datecontrol input { cursor: pointer; }
.datebtn { width: 36px; height: 36px; flex: none; border: 0; border-radius: 8px; background: transparent; color: var(--copper); display: grid; place-items: center; padding: 0; }
.datepop { position: fixed; inset: 0; z-index: 60; }
.dateback { position: absolute; inset: 0; border: 0; background: rgba(28, 28, 24, .28); }
.datebox { position: absolute; width: 320px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 40px rgba(28, 28, 24, .16); padding: 12px; }
.datehead, .datefoot, .datejumps { display: flex; align-items: center; gap: 4px; }
.datehead b { flex: 1; text-align: center; font-weight: 700; }
.datehead button, .datefoot button { border: 0; background: #f6f3ed; color: var(--ink); border-radius: 8px; min-height: 32px; min-width: 32px; padding: 0 8px; }
.datejumps { margin-top: 8px; }
.datejumps select { flex: 1; min-height: 36px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 0 8px; }
.dateweek, .datedays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 8px; text-align: center; }
.dateweek span { color: var(--muted); font-size: 12px; font-weight: 600; }
.dateweek span:last-child { color: var(--debt); }
.datedays button { border: 0; background: transparent; border-radius: 8px; min-height: 36px; }
.datedays button.fri { color: var(--debt); }
.datedays button.today:not(.on) { box-shadow: inset 0 0 0 1.5px var(--copper); }
.datedays button.on { background: var(--copper); color: #fff; font-weight: 700; }
.datefoot { justify-content: space-between; margin-top: 10px; }
.techcap { display: inline-flex; align-items: center; margin-inline-start: 8px; padding: 4px 10px; border-radius: 999px; background: #f1e4da; color: var(--copper); font-size: 12px; font-weight: 700; }
.techband { background: #f6f3ed; border-radius: 12px; padding: 16px 18px; margin-bottom: 14px; }
.techband h1 { margin: 4px 0 0; font-size: 28px; line-height: 36px; font-weight: 800; }
.techphase { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; }
.techgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.techcard .btn { margin-top: 12px; }
.techlist { display: grid; gap: 10px; }
.techrow { display: flex; justify-content: space-between; gap: 12px; align-items: center; text-decoration: none; color: inherit; }
.techrow:hover { border-color: var(--copper); }
.checkrow { display: flex; align-items: flex-start; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.checkrow input { margin-top: 3px; }
.checkrow.on b::before { content: "✓ "; color: var(--good); }
.ackrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.ackrow .btn.on { background: var(--copper); color: #fff; border-color: var(--copper); }
.drawpreview { min-height: 180px; display: grid; place-items: center; background: #efeae3; color: var(--muted); border-radius: 8px; }
@media (max-width: 980px) {
  .techgrid, .ackrow { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .datebox { left: 8px !important; right: 8px; top: auto !important; bottom: 84px; width: auto; }
}
.depositacts { display: grid; gap: 8px; margin-top: 4px; }
#busy {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: rgba(28, 28, 24, .22);
  backdrop-filter: blur(2px);
  pointer-events: all;
}
#busy[hidden] { display: none !important; }
.busytop {
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 3px;
  overflow: hidden;
  background: rgba(154, 91, 50, .12);
}
.busytop > i,
.busybar > i {
  display: block;
  height: 100%;
  width: 35%;
  background: var(--copper);
  border-radius: 99px;
  animation: busy-slide 1.05s ease-in-out infinite;
  transform-origin: right center;
}
#busy.has-progress .busytop > i,
#busy.has-progress .busybar > i {
  width: 0%;
  animation: none;
  transition: width .18s ease-out;
}
.busycard {
  min-width: min(280px, calc(100vw - 48px));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(28, 28, 24, .16);
  padding: 18px 20px;
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}
.busycard b {
  font-size: 14px;
  line-height: 22px;
  font-weight: 700;
  color: var(--ink);
}
.busypct {
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  color: var(--copper);
  font-variant-numeric: tabular-nums;
}
.busyspin {
  width: 28px;
  height: 28px;
  border: 2.5px solid #f0eee8;
  border-top-color: var(--copper);
  border-radius: 50%;
  animation: busy-spin .7s linear infinite;
}
#busy.has-progress .busyspin { display: none; }
.busybar {
  width: min(220px, 62vw);
  height: 6px;
  border-radius: 99px;
  overflow: hidden;
  background: #f0eee8;
}
body.is-busy { cursor: progress; }
@keyframes busy-spin { to { transform: rotate(360deg); } }
@keyframes busy-slide {
  0% { transform: translateX(120%); }
  100% { transform: translateX(-320%); }
}
.pushban {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px auto 0;
  width: min(80rem, calc(100% - 24px));
  padding: 12px 14px;
  border-radius: 12px;
  background: #f6efe8;
  border: 1px solid rgba(154, 91, 50, .22);
  color: var(--ink);
}
.pushban > div { flex: 1; min-width: 0; }
.pushban b { display: block; font-size: 14px; line-height: 20px; font-weight: 700; }
.pushban p { margin: 2px 0 0; color: var(--muted); font-size: 12px; line-height: 18px; }
.pushban .btn { flex: none; }
.pushban .iconbtn { flex: none; width: 32px; height: 32px; border: 0; background: transparent; color: var(--muted); border-radius: 8px; font-size: 20px; line-height: 1; }
@media print {
  .pushban { display: none !important; }
}
