@font-face { font-family: "Noto Sans Bengali"; src: url(/static/fonts/noto-bengali-regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Noto Sans Bengali"; src: url(/static/fonts/noto-bengali-medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Noto Sans Bengali"; src: url(/static/fonts/noto-bengali-semibold.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Noto Sans Bengali"; src: url(/static/fonts/noto-bengali-bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ground: #F2F5F0;
  --sheet: #FFFFFF;
  --sunk: #E9EEE7;
  --rule: #DDE3DB;
  --rule2: #C4CDC2;
  --ink: #15201B;
  --ink2: #46524C;
  --ink3: #5B6760;
  --board: #1E5B4A;
  --board-deep: #133F33;
  --board-wash: #E1EDE7;
  --seal: #4B3A8C;
  --seal-wash: #ECE8F5;
  --amber: #855600;
  --amber-wash: #F7ECD4;
  --red: #A1281D;
  --red-wash: #F8E4E1;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(21, 32, 27, .05), 0 8px 24px -16px rgba(21, 32, 27, .25);
  --shadow-pop: 0 2px 6px rgba(21, 32, 27, .08), 0 24px 48px -20px rgba(21, 32, 27, .35);
  --font: "Noto Sans Bengali", system-ui, -apple-system, "Segoe UI", sans-serif;
  --side: 264px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--board); }
h1, h2, h3, h4 { margin: 0; line-height: 1.35; font-weight: 700; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--board); outline-offset: 2px; }

.boot { min-height: 100dvh; display: grid; place-items: center; }
.boot-mark { width: 44px; height: 44px; border-radius: 12px; background: var(--board); animation: pulse 1.1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; transform: scale(.92); } }

.ico { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico.sm { width: 17px; height: 17px; }
.ico.lg { width: 24px; height: 24px; }

.shell { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100dvh; }
.side {
  position: sticky; top: 0; height: 100dvh; overflow-y: auto;
  background: var(--sheet); border-right: 1px solid var(--rule);
  display: flex; flex-direction: column; padding: 18px 14px 14px;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 6px 16px; text-decoration: none; color: var(--ink); }
.brand-logo {
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  background: var(--board); color: #fff; display: grid; place-items: center; overflow: hidden;
}
.brand-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.brand-text { min-width: 0; }
.brand-name { font-weight: 700; font-size: 15px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.brand-sub { font-size: 13px; color: var(--ink3); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-group { font-size: 12.5px; font-weight: 600; color: var(--ink3); padding: 14px 10px 4px; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px;
  color: var(--ink2); text-decoration: none; font-weight: 500; font-size: 15px;
}
.nav a:hover { background: var(--ground); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--board-wash); color: var(--board-deep); font-weight: 600; }
.nav a[aria-current="page"] .ico { color: var(--board); }
.nav .badge { margin-left: auto; }
.side-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--rule); display: grid; gap: 8px; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 6px 8px; font-size: 14px; color: var(--ink2); }
.side-user .who { min-width: 0; flex: 1; }
.side-user .who b { display: block; color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  display: flex; align-items: center; gap: 12px; padding: 12px 28px; min-height: 64px;
}
.topbar.scrolled { border-bottom-color: var(--rule); }
.topbar h1 { font-size: 21px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .back { margin-left: -8px; }
.topbar-actions { display: flex; gap: 8px; align-items: center; }
.topbar .menu-btn { display: none; }
.content { padding: 8px 28px 56px; width: 100%; max-width: 1080px; }
.content.narrow { max-width: 760px; }
.page-lead { color: var(--ink3); font-size: 15px; margin: 0 0 18px; max-width: 64ch; }

.sheet { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 20px; }
.sheet.flush { padding: 0; overflow: hidden; }
.sheet.warn { border-color: #E7CF9C; }
.sheet.bad { border-color: #E7B8B2; }
.sheet + .sheet { margin-top: 16px; }
.sheet-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--rule); }
.sheet-head h2, .sheet-head h3 { font-size: 16.5px; flex: 1; }
.section-title { display: flex; align-items: baseline; gap: 12px; margin: 28px 0 10px; }
.section-title h2 { font-size: 17px; flex: 1; }
.section-title .link { font-weight: 600; font-size: 14.5px; }

.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.stack { display: grid; gap: 16px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--ink3); }
.small { font-size: 13.5px; }
.strong { font-weight: 600; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: var(--radius);
  border: 1px solid var(--rule2); background: var(--sheet); color: var(--ink);
  font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.btn:hover { background: var(--ground); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.primary { background: var(--board); border-color: var(--board); color: #fff; }
.btn.primary:hover { background: var(--board-deep); }
.btn.seal { background: var(--seal); border-color: var(--seal); color: #fff; }
.btn.seal:hover { background: #3c2e73; }
.btn.amber { background: var(--amber); border-color: var(--amber); color: #fff; }
.btn.danger { color: var(--red); border-color: #E7B8B2; }
.btn.danger:hover { background: var(--red-wash); }
.btn.danger.solid { background: var(--red); color: #fff; border-color: var(--red); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--board); padding: 0 10px; }
.btn.ghost:hover { background: var(--board-wash); }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn.icon { width: 40px; min-height: 40px; padding: 0; border-color: transparent; background: transparent; color: var(--ink2); }
.btn.icon:hover { background: var(--sunk); color: var(--ink); }
.btn.busy { position: relative; color: transparent !important; pointer-events: none; }
.btn.busy::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .5); border-top-color: #fff; animation: spin .7s linear infinite;
}
.btn:not(.primary):not(.seal):not(.amber):not(.solid).busy::after { border-color: var(--rule2); border-top-color: var(--board); }
@keyframes spin { to { transform: rotate(360deg); } }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.draft { background: var(--sunk); color: var(--ink2); }
.pill.trial { background: var(--seal-wash); color: var(--seal); }
.pill.active { background: var(--board-wash); color: var(--board); }
.pill.grace { background: var(--amber-wash); color: var(--amber); }
.pill.paused, .pill.lapsed { background: var(--red-wash); color: var(--red); }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: 12.5px; font-weight: 600; background: var(--sunk); color: var(--ink2); }
.tag.ok { background: var(--board-wash); color: var(--board); }
.tag.warn { background: var(--amber-wash); color: var(--amber); }
.tag.bad { background: var(--red-wash); color: var(--red); }
.tag.seal { background: var(--seal-wash); color: var(--seal); }

.banner { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius); font-size: 14.5px; line-height: 1.55; }
.banner .ico { margin-top: 2px; }
.banner .grow { flex: 1; }
.banner.info { background: var(--board-wash); color: var(--board-deep); }
.banner.seal { background: var(--seal-wash); color: #33275f; }
.banner.warn { background: var(--amber-wash); color: #5c3b00; }
.banner.bad { background: var(--red-wash); color: #74190f; }

.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field > label, .field-label { font-weight: 600; font-size: 14.5px; color: var(--ink); }
.field .hint { font-size: 13.5px; color: var(--ink3); line-height: 1.45; }
.field .err { font-size: 13.5px; color: var(--red); font-weight: 600; line-height: 1.4; }
.field .req { color: var(--red); }
.input, .field input:not([type=checkbox]):not([type=radio]):not([type=file]), .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: var(--radius);
  border: 1px solid var(--rule2); background: #fff; font-size: 15.5px; line-height: 1.5;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field textarea.tall { min-height: 260px; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { outline: none; border-color: var(--board); box-shadow: 0 0 0 3px rgba(30, 91, 74, .16); }
.field input:user-invalid, .field textarea:user-invalid, .field select:user-invalid, .field.has-err input, .field.has-err textarea, .field.has-err select { border-color: var(--red); background: #fffafa; }
.field .count { font-size: 12.5px; color: var(--ink3); text-align: right; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; align-items: center; padding-top: 4px; }
.form-actions .grow { color: var(--ink3); font-size: 14px; }
.fields-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 15px; }
.check input { width: 20px; height: 20px; accent-color: var(--board); margin-top: 3px; flex: none; }

.switch { position: relative; width: 44px; height: 26px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--rule2); transition: background .15s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.switch input:checked + span { background: var(--board); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--board); outline-offset: 2px; }

.list { list-style: none; margin: 0; padding: 0; }
.list > li + li { border-top: 1px solid var(--rule); }
a.item, a.check-row, a.tile, a.brand, a.btn { text-decoration: none; }
.item { display: flex; align-items: center; gap: 14px; padding: 14px 20px; color: var(--ink); text-decoration: none; min-height: 60px; }
a.item:hover, button.item:hover { background: #FAFBF9; }
button.item { width: 100%; border: 0; background: none; text-align: left; cursor: pointer; }
.item .tile-ico { width: 40px; height: 40px; border-radius: 10px; background: var(--board-wash); color: var(--board); display: grid; place-items: center; flex: none; }
.item .tile-ico.off { background: var(--sunk); color: var(--ink3); }
.item-body { flex: 1; min-width: 0; }
.item-title { font-weight: 600; font-size: 15.5px; line-height: 1.4; }
.item-sub { font-size: 13.5px; color: var(--ink3); line-height: 1.45; margin-top: 2px; }
.item .chev { color: var(--ink3); }
.thumb { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--sunk); flex: none; }
.avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--sunk); flex: none; display: grid; place-items: center; color: var(--ink3); font-weight: 700; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.tile {
  display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px;
  border: 1px solid var(--rule); background: var(--sheet); color: var(--ink); text-decoration: none; cursor: pointer; text-align: left;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.tile:hover { border-color: var(--rule2); box-shadow: var(--shadow); }
.tile .tile-ico { width: 42px; height: 42px; border-radius: 11px; background: var(--board-wash); color: var(--board); display: grid; place-items: center; flex: none; }
.tile b { display: block; font-size: 15.5px; font-weight: 600; line-height: 1.35; }
.tile span { font-size: 13.5px; color: var(--ink3); }

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.progress { height: 8px; border-radius: 99px; background: var(--sunk); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--board); border-radius: 99px; transition: width .4s; }
.progress.seal > i { background: var(--seal); }

.stat { padding: 16px 18px; }
.stat .k { font-size: 13.5px; color: var(--ink3); }
.stat .v { font-size: 26px; font-weight: 700; line-height: 1.25; margin-top: 2px; }

.hero-card { position: relative; overflow: hidden; }
.status-head { display: flex; align-items: center; gap: 12px; }
.status-dot { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none; }
.status-dot.info { background: var(--seal); }
.status-dot.seal { background: var(--board); }
.status-dot.warn { background: var(--amber); }
.status-dot.bad { background: var(--red); }
.addr {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin: 14px 0;
  border-radius: 10px; border: 1px solid var(--rule); background: var(--ground); color: var(--ink2);
  font-size: 14.5px; width: 100%; cursor: pointer; text-align: left;
}
.addr span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; text-align: left; }
.addr:hover { border-color: var(--rule2); }

.check-row { color: var(--ink); display: flex; align-items: center; gap: 14px; padding: 13px 20px; width: 100%; border: 0; background: none; text-align: left; cursor: pointer; color: var(--ink); }
.check-row:hover { background: #FAFBF9; }
.check-num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 13px; font-weight: 600; color: var(--ink3); border: 1.5px solid var(--rule2); }
.check-num.done { background: var(--board); border-color: var(--board); color: #fff; }
.check-row .state { font-size: 13.5px; font-weight: 700; color: var(--amber); }
.check-row .state.done { color: var(--board); }
.check-row.done .item-title { color: var(--ink3); }

.empty { text-align: center; padding: 40px 20px; color: var(--ink3); }
.empty .ico { width: 40px; height: 40px; color: var(--rule2); margin: 0 auto 10px; stroke-width: 1.4; }
.empty h3 { color: var(--ink); font-size: 17px; margin-bottom: 4px; }
.loading { padding: 48px 0; display: grid; place-items: center; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--rule); border-top-color: var(--board); animation: spin .8s linear infinite; }
.skeleton { background: linear-gradient(90deg, var(--sunk), #f4f7f3, var(--sunk)); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 10px; }
@keyframes shimmer { to { background-position: -200% 0; } }

.photo-pick { display: flex; gap: 16px; align-items: center; }
.photo-pick .preview { width: 120px; height: 90px; border-radius: 12px; border: 1px dashed var(--rule2); background: var(--ground) center/cover no-repeat; display: grid; place-items: center; color: var(--ink3); flex: none; overflow: hidden; }
.photo-pick .preview.round { width: 96px; height: 96px; border-radius: 50%; }
.photo-pick .preview.square { width: 96px; height: 96px; }
.photo-pick .preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-pick .preview.contain img { object-fit: contain; background: #fff; }
.drop { border: 1.5px dashed var(--rule2); border-radius: var(--radius); padding: 22px; text-align: center; color: var(--ink3); background: var(--ground); cursor: pointer; display: grid; gap: 6px; justify-items: center; }
.drop:hover, .drop.over { border-color: var(--board); background: var(--board-wash); color: var(--board-deep); }
.drop input { display: none; }
.file-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; background: var(--sunk); font-size: 14px; max-width: 100%; }
.file-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.photo-cell { position: relative; border-radius: 12px; overflow: hidden; background: var(--sunk); aspect-ratio: 4 / 3; border: 1px solid var(--rule); }
.photo-cell img { width: 100%; height: 100%; object-fit: cover; }
.photo-cell .cap { position: absolute; inset: auto 0 0; padding: 18px 10px 8px; background: linear-gradient(transparent, rgba(0,0,0,.65)); color: #fff; font-size: 13px; line-height: 1.35; }
.photo-cell .acts { position: absolute; top: 6px; right: 6px; display: flex; gap: 4px; }
.photo-cell .acts .btn.icon { background: rgba(255,255,255,.92); width: 34px; min-height: 34px; color: var(--ink); }
.photo-cell .star { position: absolute; top: 8px; left: 8px; }

.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; }
table.data th, table.data td { padding: 10px 12px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: middle; }
table.data th { font-size: 13.5px; font-weight: 600; color: var(--ink3); background: #FAFBF9; }
table.data td input { width: 100%; min-height: 40px; padding: 6px 10px; border: 1px solid var(--rule2); border-radius: 9px; text-align: right; }
table.data tfoot td { font-weight: 700; }

dialog.modal {
  border: 0; padding: 0; border-radius: 18px; width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 48px);
  box-shadow: var(--shadow-pop); color: var(--ink); background: var(--sheet);
}
dialog.modal.wide { width: min(820px, calc(100vw - 32px)); }
dialog.modal:modal { overscroll-behavior: contain; }
dialog.modal::backdrop { background: rgba(14, 24, 19, .45); overflow: hidden; overscroll-behavior: contain; }
dialog.modal[open] { display: flex; flex-direction: column; }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 18px 20px 6px; }
.modal-head h2 { font-size: 18.5px; flex: 1; }
.modal-body { padding: 8px 20px 20px; overflow-y: auto; }
.modal-body > p { color: var(--ink2); }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 20px; border-top: 1px solid var(--rule); background: #FAFBF9; }
dialog.drawer {
  margin: 0; height: 100dvh; max-height: 100dvh; width: min(300px, 86vw); border: 0; padding: 0;
  background: var(--sheet); box-shadow: var(--shadow-pop);
}
dialog.drawer::backdrop { background: rgba(14, 24, 19, .45); overflow: hidden; overscroll-behavior: contain; }
dialog.drawer:modal { overscroll-behavior: contain; }
dialog.drawer .side { position: static; height: 100%; border: 0; }

.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; z-index: 100; pointer-events: none; width: min(460px, calc(100vw - 32px)); }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 12px 14px 12px 16px;
  background: var(--ink); color: #fff; border-radius: 12px; box-shadow: var(--shadow-pop); font-size: 14.5px; font-weight: 500;
  animation: toast-in .2s ease-out;
}
.toast.bad { background: var(--red); }
.toast .grow { flex: 1; }
.toast button { background: none; border: 0; color: rgba(255,255,255,.8); cursor: pointer; padding: 4px; display: grid; }
.toast.out { opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

.auth { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.auth-art {
  position: relative; overflow: hidden; color: #fff; padding: 48px;
  background: var(--board-deep);
  display: flex; flex-direction: column; justify-content: space-between;
}
.auth-art::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 100% 0%, rgba(124, 196, 166, .28), transparent 60%), radial-gradient(90% 70% at 0% 100%, rgba(75, 58, 140, .35), transparent 60%);
}
.auth-art > * { position: relative; }
.auth-logo { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 22px; }
.auth-logo img { width: 44px; height: 44px; border-radius: 12px; background: #fff; }
.auth-art h2 { font-size: 34px; line-height: 1.3; max-width: 15ch; }
.auth-art p { color: rgba(255,255,255,.82); max-width: 42ch; margin-top: 12px; font-size: 16px; }
.auth-points { display: grid; gap: 10px; margin-top: 28px; }
.auth-points div { display: flex; gap: 10px; align-items: center; color: rgba(255,255,255,.9); font-size: 15px; }
.auth-points .ico { color: #9fd8bf; }
.auth-foot { font-size: 13.5px; color: rgba(255,255,255,.65); }
.auth-pane { display: grid; place-items: center; padding: 40px 24px; background: var(--sheet); }
.auth-form { width: 100%; max-width: 420px; }
.auth-form h1 { font-size: 28px; }
.auth-form .lead { color: var(--ink3); margin: 6px 0 24px; }
.auth-switch { margin-top: 18px; text-align: center; color: var(--ink3); font-size: 14.5px; }
.steps { display: flex; gap: 6px; margin-bottom: 18px; }
.steps i { flex: 1; height: 4px; border-radius: 99px; background: var(--sunk); }
.steps i.on { background: var(--board); }
.choice { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.choice label { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--rule2); cursor: pointer; font-size: 14.5px; }
.choice label:has(input:checked) { border-color: var(--board); background: var(--board-wash); color: var(--board-deep); font-weight: 600; }
.choice input { accent-color: var(--board); }
.otp-input { letter-spacing: .4em; font-size: 22px !important; text-align: center; font-weight: 600; }

.picker-list { max-height: min(56dvh, 460px); overflow-y: auto; border: 1px solid var(--rule); border-radius: var(--radius); margin-top: 10px; }
.picker-list button { display: flex; width: 100%; gap: 10px; align-items: baseline; padding: 11px 14px; border: 0; border-bottom: 1px solid var(--rule); background: #fff; cursor: pointer; text-align: left; }
.picker-list button:hover, .picker-list button:focus-visible { background: var(--board-wash); }
.picker-list button small { color: var(--ink3); }
.pick-box { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 46px; padding: 10px 14px; border-radius: var(--radius); border: 1px solid var(--rule2); background: #fff; cursor: pointer; text-align: left; font-size: 15.5px; }
.pick-box span { flex: 1; }
.pick-box span.ph { color: var(--ink3); }

.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { width: 44px; height: 44px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--rule2); cursor: pointer; position: relative; }
.swatch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.swatch:has(input:checked) { box-shadow: 0 0 0 2.5px var(--ink); }

.sortable > li { display: flex; align-items: center; }
.sortable .handle { cursor: grab; color: var(--ink3); padding: 0 4px 0 14px; display: grid; }
.sortable li.dragging { opacity: .4; }
.sortable li.drop-before { box-shadow: inset 0 2px 0 var(--board); }
.sortable li.drop-after { box-shadow: inset 0 -2px 0 var(--board); }

.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; font-size: 15px; }
.kv dt { color: var(--ink3); }
.kv dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }

@media (max-width: 1100px) {
  .split { grid-template-columns: 1fr; }
  .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .shell > .side { display: none; }
  .topbar .menu-btn { display: inline-flex; margin-left: -8px; }
  .topbar { padding: 10px 16px; min-height: 58px; }
  .topbar h1 { font-size: 18.5px; }
  .content { padding: 4px 16px 48px; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { padding: 28px 24px; }
  .auth-art h2 { font-size: 24px; }
  .auth-points, .auth-foot { display: none; }
  .auth-pane { padding: 28px 16px 40px; align-items: start; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .grid.two, .grid.three, .fields-2 { grid-template-columns: 1fr; }
  .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sheet { padding: 16px; border-radius: 14px; }
  .sheet-head, .item, .check-row { padding-left: 16px; padding-right: 16px; }
  .topbar-actions .btn:not(.icon) .label { display: none; }
  .form-actions { flex-wrap: wrap; }
  .form-actions .btn { flex: 1; }
  .form-actions .grow { flex-basis: 100%; }
  .tiles { grid-template-columns: 1fr; }
  .tiles.quick { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tiles.quick .tile { padding: 12px; gap: 10px; }
  .tiles.quick .tile span:not(.tile-ico) { display: none; }
  .tiles.quick .tile .tile-ico { width: 36px; height: 36px; }
  .stat { padding: 12px 14px; }
  .stat .v { font-size: 22px; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toasts { bottom: 16px; }
  .modal-foot { flex-wrap: wrap; }
  .modal-foot .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
.modal-body > p { white-space: pre-line; }
.grid > .sheet + .sheet, .stats > .sheet + .sheet, .split > * > .sheet + .sheet, .stack > .sheet + .sheet, .tiles > .sheet + .sheet { margin-top: 0; }
