/* DEJOIY Sellerhub — single stylesheet, light theme only.
   Its own look, apart from the shop: blue-black ledger ink, marigold as the one signal colour, ruled ledger paper,
   an editorial serif for big moments and a sober sans for every number. */

:root {
	--ink: #141A33;
	--ink-2: #343A55;
	--paper: #F6F4EE;
	--paper-2: #ECE8DD;
	--white: #FFFFFF;
	--lime: #F6B400;
	--pink: #3B4BFF;
	--khata: #B3261E;
	--ledger: #FBF7EA;
	--green: #1E7A3C;
	--warn: #C2410C;
	--red: #B42318;
	--muted: #5E6275;
	--line: #E3E0D6;
	--line-strong: #CBC7BB;
	--w-shop: #D4FF3A;
	--w-nexus: #9FD8FF;
	--w-studio: #FF9BCB;
	--w-quick: #FF7A1A;
	--w-renew: #7DEBB5;
	--w-hire: #FFD43B;
	--display: 'Instrument Serif', Georgia, 'Times New Roman', serif;
	--ui: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--r-card: 16px;
	--r-btn: 12px;
	--r-tile: 14px;
	--r-field: 10px;
	--shadow: 0 1px 2px rgba(18, 18, 18, .04);
	--side: 248px;
	--ease: cubic-bezier(.16, 1, .3, 1);
	color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }

body.dsc {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 15px/1.55 var(--ui);
	font-optical-sizing: auto;
	-webkit-font-smoothing: antialiased;
	min-height: 100vh;
	overflow-x: hidden;
}

::selection { background: var(--lime); color: var(--ink); }

:focus-visible { outline: 2.5px solid var(--pink); outline-offset: 2px; border-radius: 10px; }

a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
code { font: 500 13px/1.4 ui-monospace, 'SFMono-Regular', Menlo, monospace; background: var(--paper-2); padding: 2px 6px; border-radius: 6px; }
svg.i { flex: none; width: 20px; height: 20px; }

.num, td, .stat-value, .tab-count, .pager-info { font-variant-numeric: tabular-nums; }

.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--lime); color: var(--ink); padding: 10px 16px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

* { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 999px; border: 3px solid transparent; background-clip: padding-box; }

/* ---------- Type ---------- */

.display {
	font-family: var(--display);
	font-weight: 400;
	letter-spacing: -0.015em;
	text-wrap: balance;
}
.logo-word { font-family: var(--ui); font-weight: 700; letter-spacing: -0.02em; }
.h2, .h3, .stat-value { font-family: var(--ui); font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
.display { font-size: clamp(34px, 2.6vw + 16px, 52px); line-height: 1; margin: 0; }
.h2 { font-size: 19px; line-height: 1.2; margin: 0 0 4px; }
.h3 { font-size: 16px; line-height: 1.25; margin: 0; }
.muted { color: var(--muted); margin: 0; }
.hint { color: var(--muted); font-size: 13px; margin: 6px 0 0; }
.sub { display: block; color: var(--muted); font-size: 12.5px; font-weight: 400; }
.link { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.link:hover { text-decoration-color: var(--ink); }
.link-plain { text-decoration: none; font-weight: 500; }
.link-plain:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Logo ---------- */

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark {
	display: inline-grid; place-items: center;
	width: 36px; height: 36px; border-radius: 10px;
	background: var(--lime); color: var(--ink);
	font: italic 400 26px/1 var(--display);
}
.logo-word { display: grid; gap: 2px; font-size: 18px; line-height: 1; white-space: nowrap; }
.logo-brand { font-size: 10px; font-weight: 600; letter-spacing: .18em; opacity: .62; }
.logo-sm .logo-mark { width: 32px; height: 32px; font-size: 15px; border-radius: 10px; }
.logo-sm .logo-word { font-size: 17px; }
.logo-lg .logo-mark { width: 48px; height: 48px; font-size: 22px; border-radius: 14px; }
.logo-lg .logo-word { font-size: 24px; }

/* ---------- Shell ---------- */

.side {
	position: fixed; inset: 0 auto 0 0; z-index: 40;
	width: var(--side);
	background: var(--ink); color: var(--white);
	display: flex; flex-direction: column;
	padding: 22px 14px 18px;
	overflow-y: auto;
}
.side-logo { display: block; padding: 4px 10px 22px; text-decoration: none; color: var(--white); }
.nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.nav a, .side-link {
	display: flex; align-items: center; gap: 12px;
	min-height: 44px; padding: 0 14px;
	border-radius: 10px;
	color: rgba(255, 255, 255, .72);
	text-decoration: none; font-weight: 500;
	transition: background .2s var(--ease), color .2s var(--ease);
}
.nav a:hover, .side-link:hover { color: var(--white); background: rgba(255, 255, 255, .08); }
.nav a[aria-current="page"] { background: rgba(255, 255, 255, .1); color: var(--white); font-weight: 700; box-shadow: inset 3px 0 0 var(--lime); }
.nav a[aria-current="page"] .i { color: var(--lime); }
.side-foot { margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); display: grid; gap: 8px; }
.side-store { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 14px; }
.side-store-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.app { margin-left: var(--side); min-width: 0; min-height: 100vh; display: flex; flex-direction: column; }

.top {
	position: sticky; top: 0; z-index: 30;
	display: flex; align-items: center; gap: 12px;
	padding: 12px 40px;
	background: rgba(255, 255, 255, .92);
	backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--line);
}
.top-logo { display: none; text-decoration: none; }
.top-menu { display: none; }
.top-search {
	flex: 1; max-width: 560px;
	display: flex; align-items: center; gap: 10px;
	height: 42px; padding: 0 14px;
	background: var(--paper);
	border: 1.5px solid transparent;
	border-radius: var(--r-btn);
	color: var(--muted);
	transition: border-color .2s var(--ease);
}
.top-search:focus-within { border-color: var(--ink); background: var(--white); color: var(--ink); }
.top-search input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; color: var(--ink); height: 100%; outline: none; }
.top-search input::placeholder { color: var(--muted); }
.top .pop { margin-left: auto; }

.icon-btn {
	position: relative;
	display: inline-grid; place-items: center;
	width: 42px; height: 42px; border-radius: var(--r-btn);
	background: var(--white); border: 1.5px solid var(--line);
	color: var(--ink); cursor: pointer; list-style: none;
}
.icon-btn::-webkit-details-marker { display: none; }
.icon-btn:hover { border-color: var(--ink); }
.dot {
	position: absolute; top: -3px; right: -3px;
	min-width: 20px; height: 20px; padding: 0 5px;
	border-radius: 999px; background: var(--pink); color: var(--white);
	font: 700 11.5px/20px var(--ui); text-align: center;
	box-shadow: 0 0 0 2px var(--paper);
}

.pop { position: relative; }
.pop-menu {
	position: absolute; right: 0; top: calc(100% + 10px);
	width: min(360px, calc(100vw - 32px));
	background: var(--white); border: 1px solid var(--line); border-radius: var(--r-tile);
	box-shadow: 0 18px 48px -18px rgba(18, 18, 18, .35);
	padding: 10px;
	animation: pop-in .28s var(--ease);
}
@keyframes pop-in { from { opacity: 0; transform: translateY(-6px) scale(.98); filter: blur(2px); } }
.pop-title { margin: 6px 10px 8px; font: 700 15px/1.2 var(--ui); letter-spacing: -0.01em; }
.pop-menu ul { list-style: none; margin: 0; padding: 0; }
.pop-menu a { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: 14px; text-decoration: none; }
.pop-menu a:hover { background: var(--paper); }
.pop-empty { margin: 4px 10px 10px; color: var(--muted); }

.banner {
	display: flex; gap: 10px; align-items: center;
	margin: 16px 40px 0; padding: 10px 16px; max-width: 1440px;
	background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--ink); border-radius: 12px; font-weight: 500; font-size: 14px;
}

.main { width: 100%; max-width: 1520px; padding: 32px 40px 64px; display: grid; gap: 24px; align-content: start; outline: none; }

.tabbar { display: none; }
.scrim { display: none; }

/* ---------- Page head + blocks ---------- */

.ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ph-sub { margin: 8px 0 0; color: var(--muted); }
.ph-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.block { display: grid; gap: 14px; }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.card .block-head.card-pad-x { padding-top: 22px; }

.card {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--r-card);
	box-shadow: var(--shadow);
	min-width: 0;
}
.card-pad { padding: 24px; }
.card-pad-x { padding-left: 24px; padding-right: 24px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 24px; border-top: 1px solid var(--line); }
.anchor { scroll-margin-top: 96px; }

.stack { display: grid; gap: 16px; align-content: start; }
.split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.split-wide { grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.row-gap { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 0; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ---------- Stats ---------- */

.stats { display: grid; gap: 14px; }
.stats-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat {
	display: grid; gap: 4px; align-content: start;
	padding: 20px 22px;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--r-tile);
	min-width: 0;
}
.stat-label { font-weight: 600; font-size: 13px; color: var(--muted); }
.stat-ink .stat-label { color: rgba(255, 255, 255, .72); }
.stat-value { font-size: clamp(24px, 1.2vw + 14px, 32px); line-height: 1.1; overflow-wrap: anywhere; letter-spacing: -0.03em; }
.stat-hint { color: var(--muted); font-size: 13px; }
.stat-ink { background: var(--ink); border-color: var(--ink); color: var(--white); }
.stat-ink .stat-value { color: var(--lime); }
.stat-ink .stat-hint { color: rgba(255, 255, 255, .7); }

/* ---------- Buttons ---------- */

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 42px; padding: 0 18px;
	border-radius: var(--r-btn);
	border: 1.5px solid var(--line-strong);
	background: var(--white); color: var(--ink);
	font: 700 14.5px/1 var(--ui);
	text-decoration: none; white-space: nowrap; cursor: pointer;
	transition: border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { border-color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn-primary:hover { box-shadow: 0 8px 20px -10px rgba(18, 18, 18, .6); }
.btn-primary .i { color: var(--lime); }
.btn-accent { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.btn-accent:hover { border-color: var(--ink); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; pointer-events: none; }

/* ---------- Forms ---------- */

form { margin: 0; }
.field { display: grid; gap: 6px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field > label, .field > legend, .label-like { font-weight: 700; font-size: 14px; padding: 0; }
.opt { font-weight: 500; font-size: 12px; color: var(--muted); background: var(--paper); border-radius: 999px; padding: 2px 8px; margin-left: 4px; }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="url"], input[type="number"], input[type="date"], input[type="month"], input[type="search"], input:not([type]), select, textarea {
	width: 100%;
	min-height: 46px;
	padding: 10px 14px;
	border: 1.5px solid var(--line-strong);
	border-radius: var(--r-field);
	background: var(--white);
	color: var(--ink);
	font: 400 15px/1.4 var(--ui);
	caret-color: var(--pink);
	transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
textarea { resize: vertical; min-height: 96px; }
select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23121212' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
input::placeholder, textarea::placeholder { color: #75726B; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(246, 180, 0, .4); }
input:user-invalid, textarea:user-invalid, select:user-invalid { border-color: var(--red); }
input[type="file"] { font: inherit; font-size: 14px; max-width: 100%; }
input[type="file"]::file-selector-button { font: 700 13.5px/1 var(--ui); border: 1.5px solid var(--line-strong); background: var(--white); border-radius: 999px; padding: 10px 14px; margin-right: 10px; cursor: pointer; }
input[type="file"]::file-selector-button:hover { border-color: var(--ink); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--ink); width: 18px; height: 18px; margin: 0; flex: none; }
.in-sm { width: 110px !important; min-height: 38px !important; padding: 6px 10px !important; }
.in-xs { width: 84px !important; min-height: 38px !important; padding: 6px 10px !important; }
.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; }
.field-check { align-self: end; min-height: 46px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; padding-top: 4px; }
.stack .form-actions { margin-top: 4px; }

.upload { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.upload-thumb { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; border: 1px solid var(--line); }
.upload-blank { display: grid; place-items: center; background: var(--paper); color: var(--muted); }

.slug-preview { margin: 0; min-height: 46px; display: flex; align-items: center; padding: 0 14px; border-radius: var(--r-field); background: var(--paper); color: var(--muted); overflow-wrap: anywhere; }
.slug-preview strong { color: var(--ink); }

.world-picks { display: flex; flex-wrap: wrap; gap: 10px; }
.world-pick { position: relative; cursor: pointer; }
.world-pick input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.world-pick span {
	display: inline-flex; align-items: center; gap: 8px;
	min-height: 42px; padding: 0 16px;
	border-radius: 999px; border: 1.5px solid var(--line-strong);
	background: var(--white); font-weight: 700;
	transition: background .2s var(--ease), border-color .2s var(--ease);
}
.world-pick span::before { content: ""; width: 12px; height: 12px; border-radius: 999px; background: var(--world); box-shadow: inset 0 0 0 1px rgba(18, 18, 18, .2); }
.world-pick input:checked + span { background: var(--world); border-color: var(--ink); }
.world-pick input:focus-visible + span { outline: 2.5px solid var(--pink); outline-offset: 2px; }

.toggle { display: flex; align-items: flex-start; gap: 14px; cursor: pointer; position: relative; }
.toggle input { position: absolute; opacity: 0; width: 52px; height: 30px; margin: 0; cursor: pointer; }
.toggle-track { flex: none; width: 52px; height: 30px; border-radius: 999px; background: var(--line-strong); position: relative; transition: background .25s var(--ease); }
.toggle-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 999px; background: var(--white); box-shadow: 0 1px 3px rgba(18, 18, 18, .3); transition: transform .3s var(--ease); }
.toggle input:checked + .toggle-track { background: var(--ink); }
.toggle input:checked + .toggle-track::after { transform: translateX(22px); background: var(--lime); }
.toggle input:focus-visible + .toggle-track { outline: 2.5px solid var(--pink); outline-offset: 2px; }

/* ---------- Feedback ---------- */

.flash { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 16px; font-weight: 500; }
.flash-success { background: #E2F3E7; color: #13532A; }
.flash-error { background: #FDE8E7; color: #8A1B12; }
.flash-warn { background: #FFF1DE; color: #8A3208; }
.note { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--paper); }
.quiet-done { display: flex; gap: 10px; align-items: center; margin: 8px 0 0; color: var(--green); font-weight: 700; }

.chip { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.chip-good { background: #E2F3E7; color: #13532A; }
.chip-warn { background: #FFEBD8; color: #8A3208; }
.chip-bad { background: #FDE8E7; color: #8A1B12; }
.chip-info { background: #DDF0FF; color: #0B4A75; }
.chip-lime { background: var(--lime); color: var(--ink); }
.chip-pink { background: #FFD6EA; color: #7A1145; }
.chip-neutral { background: var(--paper-2); color: #45433F; }
.side .chip-warn, .side .chip-good, .side .chip-bad { box-shadow: none; }

.empty { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 48px 24px; }
.empty-icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 20px; background: var(--lime); margin-bottom: 8px; }
.empty-icon .i { width: 26px; height: 26px; }
.empty h2 { margin: 0; font: 400 28px/1.1 var(--display); }
.empty p { margin: 0; color: var(--muted); max-width: 46ch; }
.empty-action { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.main > .empty { background: var(--white); border: 1px dashed var(--line-strong); border-radius: var(--r-card); }

/* ---------- Tabs + pager ---------- */

.tabs ul { list-style: none; display: flex; gap: 6px; flex-wrap: wrap; margin: 0; padding: 0; }
.tabs a {
	display: inline-flex; align-items: center; gap: 8px;
	min-height: 36px; padding: 0 12px;
	border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 14px;
	border: 1.5px solid transparent; color: var(--muted);
}
.tabs a:hover { color: var(--ink); border-color: var(--line-strong); }
.tabs a[aria-current="page"] { background: var(--ink); color: var(--white); }
.tab-count { font-size: 12px; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--paper-2); color: var(--ink); display: inline-grid; place-items: center; }
.tabs a[aria-current="page"] .tab-count { background: var(--lime); }
.card .tabs { margin-bottom: 12px; }

.inline-search { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.inline-search input:not([type="hidden"]) { width: 220px; min-height: 38px; padding: 6px 14px; border-radius: 10px; }
.inline-search label { font-weight: 700; font-size: 14px; }

.pager { display: flex; justify-content: center; align-items: center; gap: 12px; }
.pager-info { color: var(--muted); font-size: 14px; }

/* ---------- Tables ---------- */

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table thead th { font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--muted); background: #FAFAF7; white-space: nowrap; }
.table tbody tr:last-child > * { border-bottom: 0; }
.table tbody tr:hover { background: #FBFBF8; }
.table th:first-child, .table td:first-child { padding-left: 24px; }
.table th:last-child, .table td:last-child { padding-right: 24px; }
.table-tight th, .table-tight td { padding: 10px 12px; }
.table-tight tbody th { font-weight: 700; white-space: nowrap; }
.t-right { text-align: right !important; }

.prod { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 220px; }
.prod strong { display: block; line-height: 1.3; }
.prod small { display: block; color: var(--muted); font-size: 12.5px; }
a.prod:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.thumb { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex: none; border: 1px solid var(--line); }
.thumb-blank { display: grid; place-items: center; background: var(--paper); color: var(--muted); }
.quick { display: flex; gap: 6px; align-items: center; flex-wrap: nowrap; }
.code { font-family: var(--ui); font-weight: 600; letter-spacing: 0; }

.result-list { list-style: none; margin: 0; padding: 0 0 8px; }
.result-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 24px; border-top: 1px solid var(--line); }

/* ---------- Dashboard ---------- */

.attention { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.attention a {
	display: flex; align-items: center; gap: 12px;
	padding: 14px 16px; border-radius: 16px;
	background: var(--paper); text-decoration: none;
	transition: background .2s var(--ease);
}
.attention a:hover { background: var(--paper-2); }
.attention-label { flex: 1; font-weight: 500; }
.attention-count { font: 700 18px/1 var(--ui); font-variant-numeric: tabular-nums; }

.setup { border-color: var(--ink); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.checklist li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--paper); }
.checklist a { text-decoration: none; font-weight: 500; }
.checklist a:hover { text-decoration: underline; text-underline-offset: 3px; }
.check-dot { width: 24px; height: 24px; border-radius: 999px; border: 1.5px solid var(--line-strong); display: grid; place-items: center; flex: none; background: var(--white); }
.check-dot .i { width: 14px; height: 14px; }
.checklist .is-done .check-dot { background: var(--lime); border-color: var(--ink); }
.checklist .is-done a { color: var(--muted); }

/* ---------- Chart ---------- */

.chart { margin: 8px 0 0; display: grid; grid-template-columns: 56px minmax(0, 1fr); grid-template-rows: 220px auto; column-gap: 10px; }
.chart-y { position: relative; }
.chart-y span { position: absolute; right: 0; transform: translateY(-50%); font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.chart-plot svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart-grid { stroke: var(--line); stroke-width: 1; }
.chart-bar { fill: var(--ink); transition: fill .2s var(--ease); }
.chart-bar:hover { fill: var(--pink); }
.chart-bar.is-last { fill: var(--pink); }
.chart-x { grid-column: 2; display: flex; margin-top: 8px; }
.chart-x span { flex: 1 1 0; min-width: 0; text-align: center; font-size: 11.5px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; overflow: visible; }

.hbars { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 12px; }
.hbars li { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.hbar-label { font-weight: 700; }
.bar { display: block; height: 12px; background: var(--paper); border-radius: 999px; overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 999px; background: var(--ink); box-shadow: inset 0 0 0 1px rgba(18, 18, 18, .15); }

/* ---------- Wizard ---------- */

.wizard { display: grid; gap: 20px; max-width: 920px; }
.progress { height: 8px; border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--ink); border-radius: 999px; transition: width .6s var(--ease); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.steps a { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 8px 10px; border-radius: 999px; color: var(--muted); font-weight: 700; font-size: 14px; }
.steps a:hover { background: var(--white); color: var(--ink); }
.step-dot { width: 30px; height: 30px; flex: none; border-radius: 999px; display: grid; place-items: center; border: 1.5px solid var(--line-strong); background: var(--white); color: var(--ink); font-variant-numeric: tabular-nums; }
.step-dot .i { width: 16px; height: 16px; }
.steps .is-done .step-dot { background: var(--lime); border-color: var(--ink); }
.steps .is-current a { color: var(--ink); background: var(--white); box-shadow: inset 0 0 0 1.5px var(--ink); }
.steps .is-current .step-dot { background: var(--ink); color: var(--white); border-color: var(--ink); }
.steps .is-current.is-done .step-dot { color: var(--lime); }

.review { margin: 0 0 20px; display: grid; gap: 10px; }
.review-row { display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 16px; border-radius: 16px; background: var(--paper); }
.review-row dt { font-weight: 700; display: grid; gap: 6px; justify-items: start; }
.review-row dd { margin: 0; display: grid; gap: 2px; overflow-wrap: anywhere; }

/* ---------- Product editor ---------- */

.editor { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.editor-main, .editor-side { display: grid; gap: 24px; min-width: 0; }
.editor-side { position: sticky; top: 96px; }
.tree-box { max-height: 280px; overflow: auto; padding: 4px 2px; }
.tree { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tree-sub { padding: 6px 0 0 26px; }
.gallery { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.gallery-item { position: relative; cursor: pointer; }
.gallery-item img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; border: 1px solid var(--line); }
.gallery-item input { position: absolute; top: 4px; right: 4px; }
.gallery-item:has(input:checked) img { opacity: .35; }
body.is-simple .only-variable, body.is-variable .only-simple { display: none; }
.cols { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pick-list { max-height: 220px; overflow: auto; display: grid; gap: 8px; padding: 12px; border-radius: 14px; background: var(--paper); margin-top: 6px; }

/* ---------- Order detail ---------- */

.detail { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.detail-main, .detail-side { display: grid; gap: 24px; min-width: 0; }
.addr { font-style: normal; line-height: 1.6; }
.sums { margin: 0; padding-top: 12px; padding-bottom: 20px; display: grid; gap: 8px; border-top: 1px solid var(--line); }
.sums div { display: flex; justify-content: space-between; gap: 12px; }
.sums dt { color: var(--muted); }
.sums dd { margin: 0; }
.sums-total { padding-top: 8px; border-top: 1px dashed var(--line-strong); }
.sums-total dt { color: var(--ink); font-weight: 700; }
.sums-total dd { font: 700 22px/1 var(--ui); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.timeline { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 0; }
.timeline li { position: relative; display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; }
.timeline li:not(:last-child)::before { content: ""; position: absolute; left: 6px; top: 26px; bottom: -10px; width: 2px; background: var(--line); }
.tl-dot { width: 14px; height: 14px; border-radius: 999px; background: var(--ink); box-shadow: 0 0 0 4px var(--white); position: relative; z-index: 1; }
.timeline li:last-child .tl-dot { background: var(--lime); box-shadow: 0 0 0 4px var(--white), 0 0 0 5.5px var(--ink); }
.timeline time { color: var(--muted); font-size: 13.5px; }

/* ---------- Payments, reviews, help ---------- */

.rates { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rates li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 12px; background: var(--paper); }

.review-summary { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: center; }
.review-avg { display: grid; gap: 6px; justify-items: start; }
.review-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.review-bars a { display: grid; grid-template-columns: 56px minmax(0, 1fr) 40px; gap: 12px; align-items: center; text-decoration: none; padding: 4px 8px; border-radius: 10px; }
.review-bars a:hover, .review-bars a[aria-current] { background: var(--paper); }
.review-bars .bar > span { background: var(--w-hire); }
.stars { display: inline-flex; gap: 2px; }
.star .i { width: 17px; height: 17px; color: var(--line-strong); }
.star.is-on .i { color: var(--ink); fill: var(--w-hire); }
.reviews { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.review-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.review-product { margin: 8px 0 0; font-size: 14px; }
.review-body p { margin: 10px 0 0; max-width: 72ch; }
.reply { margin-top: 14px; padding: 12px 16px; border-radius: 14px; background: var(--paper); }
.reply p { margin: 4px 0 0; }
.reply-form { margin-top: 14px; display: grid; gap: 8px; justify-items: start; }
.reply-form label { font-weight: 700; font-size: 14px; }

.faq details { border-top: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 24px; cursor: pointer; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 10px; height: 10px; flex: none; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg) translateY(-3px); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details p { margin: 0; padding: 0 24px 20px; color: var(--ink-2); max-width: 70ch; }

/* ---------- Guest pages ---------- */

.dsc-guest { background: var(--paper); }
.guest { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.guest-art {
	background: var(--ink); color: var(--white);
	padding: 48px clamp(24px, 5vw, 72px);
	display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
}
.guest-line { margin: 0; font: 400 clamp(44px, 5.4vw, 92px)/0.95 var(--display); letter-spacing: -0.02em; color: var(--white); max-width: 11ch; text-wrap: balance; }
.guest-worlds { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.guest-worlds li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px; background: rgba(255, 255, 255, .07); color: var(--white); font-weight: 600; font-size: 14px; }
.guest-worlds li::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--world); }
.guest-line em, .w-h1 em, .w-h2 em { font-style: italic; color: var(--lime); }
.guest-panel { display: grid; align-content: center; gap: 18px; padding: 48px clamp(24px, 6vw, 88px); max-width: 620px; width: 100%; }
.guest-panel .stack { gap: 16px; }
.guest-alt { margin: 4px 0 0; color: var(--muted); }

/* ---------- Printable documents ---------- */

.dsc-doc { background: var(--paper); }
.doc-bar { display: flex; justify-content: space-between; gap: 10px; max-width: 900px; margin: 24px auto 0; padding: 0 16px; }
.doc { max-width: 900px; margin: 16px auto 48px; background: var(--white); padding: 40px; border-radius: var(--r-card); border: 1px solid var(--line); display: grid; gap: 24px; }
.doc-head { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.doc-head .display { margin-top: 18px; font-size: 32px; }
.doc-head p { margin: 6px 0 0; color: var(--muted); }
.doc-from { display: grid; gap: 2px; text-align: right; }
.doc-ship { padding: 18px; border: 1.5px solid var(--ink); border-radius: 16px; }
.doc-ship .h3 { margin-bottom: 6px; }
.doc-table th:first-child, .doc-table td:first-child { padding-left: 12px; }
.doc-table th:last-child, .doc-table td:last-child { padding-right: 12px; }
.doc-sums { border-top: 0; padding: 0; max-width: 380px; margin-left: auto; width: 100%; }
.doc-foot { margin: 0; color: var(--muted); font-size: 13px; }
.tick-box { display: inline-block; width: 18px; height: 18px; border: 1.5px solid var(--ink); border-radius: 4px; }

@media print {
	.doc-bar { display: none; }
	.dsc-doc { background: var(--white); }
	.doc { border: 0; margin: 0; padding: 0; max-width: none; border-radius: 0; }
	.logo-mark, .chip { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
	.split, .split-wide, .detail, .editor { grid-template-columns: minmax(0, 1fr); }
	.editor-side { position: static; }
	.stats-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.checklist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
	.steps { grid-template-columns: repeat(5, auto); justify-content: space-between; }
	.steps .step-label { display: none; }
	.steps .is-current .step-label { display: inline; }
	.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.review-row { grid-template-columns: minmax(0, 1fr) auto; }
	.review-row dd { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 760px) {
	body.dsc:not(.dsc-guest):not(.dsc-doc) { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
	.side { transform: translateX(-100%); transition: transform .35s var(--ease); width: min(300px, 86vw); padding-bottom: 96px; }
	body.nav-open .side { transform: none; }
	.scrim { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(18, 18, 18, .45); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); }
	body.nav-open .scrim { opacity: 1; pointer-events: auto; }
	.app { margin-left: 0; }
	.top { flex-wrap: wrap; padding: 10px 16px; gap: 10px; }
	.top-logo { display: inline-flex; margin-right: auto; }
	.top-menu { display: inline-grid; }
	.top .pop { margin-left: 0; order: 2; }
	.top-menu { order: 3; }
	.top-search { order: 4; flex-basis: 100%; max-width: none; height: 44px; }
	.icon-btn { width: 42px; height: 42px; }
	.banner { margin: 12px 16px 0; }
	.main { padding: 20px 16px 32px; gap: 18px; }
	.display { font-size: 30px; }
	.card-pad { padding: 18px; }
	.card-pad-x { padding-left: 18px; padding-right: 18px; }
	.table th:first-child, .table td:first-child { padding-left: 18px; }
	.table th:last-child, .table td:last-child { padding-right: 18px; }
	.stats-3 { grid-template-columns: minmax(0, 1fr); }
	.stats-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.stat { padding: 16px; }
	.stat-value { font-size: 24px; }
	.grid-2, .grid-3, .grid-4, .checklist { grid-template-columns: minmax(0, 1fr); }
	.chart { grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: 180px auto; column-gap: 6px; }
	.chart-y span, .chart-x span { font-size: 10.5px; }
	.inline-search input:not([type="hidden"]) { width: 100%; flex: 1; }
	.inline-search { width: 100%; }
	.toolbar { align-items: stretch; }
	.tabs { overflow-x: auto; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; }
	.tabs ul { flex-wrap: nowrap; }
	.tabs a { white-space: nowrap; }
	.ph-actions { width: 100%; }
	.ph-actions .btn { flex: 1; }
	.review-summary { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.hbars li { grid-template-columns: 76px minmax(0, 1fr) auto; }
	.doc { padding: 20px; margin: 12px 12px 32px; }
	.doc-from { text-align: left; }
	.result-list li { padding: 12px 18px; }

	.tabbar {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
		display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
		padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
		background: var(--ink);
	}
	.tabbar a, .tabbar button {
		display: grid; justify-items: center; gap: 2px;
		padding: 6px 2px; border-radius: 16px;
		background: none; border: 0; cursor: pointer;
		color: rgba(255, 255, 255, .72); text-decoration: none;
		font: 700 11.5px/1.2 var(--ui);
	}
	.tabbar a[aria-current="page"] { color: var(--lime); background: rgba(255, 255, 255, .1); }

	.guest { grid-template-columns: minmax(0, 1fr); }
	.guest-art { padding: 28px 20px; gap: 20px; }
	.guest-line { font-size: 40px; }
	.guest-panel { padding: 28px 20px 48px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* The global input style must not redraw a box inside the top-bar search pill. */
.top-search input[type="search"], .top-search input:not([type]) { border: 0; background: none; box-shadow: none; min-height: 0; padding: 0; height: 100%; }

/* ---------- Public "Sell on DEJOIY" page ----------
   Idea: the seller's own bahi-khata. The fee calculator is a ruled ledger slip with a red margin line,
   set on blue-black ink; the rest of the page is plain ledger paper. */

body.dsc.dsc-welcome { background: var(--paper); font-size: 16px; }
.dsc-welcome .btn { min-height: 44px; }
.btn-lg { min-height: 54px !important; padding: 0 26px; font-size: 16px; }
.btn-ghost { border-color: transparent; background: none; }
.btn-ghost:hover { border-color: var(--line-strong); }
.btn-line { background: none; border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--white); }
.btn-line-dark { background: none; border-color: rgba(255, 255, 255, .35); color: var(--white); }
.btn-line-dark:hover { border-color: var(--white); background: rgba(255, 255, 255, .06); }

.w-wrap { width: min(1240px, 100% - 64px); margin: 0 auto; }

.w-top {
	position: sticky; top: 0; z-index: 30;
	display: flex; align-items: center; gap: 24px;
	padding: 14px max(32px, (100% - 1240px) / 2);
	background: rgba(20, 26, 51, .94); backdrop-filter: saturate(1.3) blur(12px);
	color: var(--white);
	border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.w-logo { text-decoration: none; color: var(--white); }
.w-nav { display: flex; gap: 2px; margin: 0 auto; }
.w-nav a { padding: 8px 12px; border-radius: 8px; text-decoration: none; font-weight: 500; font-size: 15px; color: rgba(255, 255, 255, .78); }
.w-nav a:hover { background: rgba(255, 255, 255, .08); color: var(--white); }
.w-top-cta { display: flex; gap: 8px; }
.w-top .btn-ghost { color: var(--white); }
.w-top .btn-ghost:hover { border-color: rgba(255, 255, 255, .35); }

.w-h1 { margin: 0; font: 400 clamp(52px, 6.4vw, 104px)/.92 var(--display); letter-spacing: -0.025em; text-wrap: balance; }
.w-h2 { margin: 0; font: 400 clamp(38px, 4vw, 64px)/1 var(--display); letter-spacing: -0.02em; text-wrap: balance; }
.w-h2 em { color: inherit; font-style: italic; background: linear-gradient(transparent 64%, #FFE08A 64%, #FFE08A 92%, transparent 92%); padding: 0 .05em; }
.w-h3 { margin: 0; font: 600 18px/1.25 var(--ui); letter-spacing: -0.015em; }
.w-lede { margin: 0; max-width: 52ch; font-size: clamp(17px, 1vw + 11px, 20px); line-height: 1.55; }
.w-text { margin: 0; max-width: 56ch; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.w-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero on ink */
.w-hero-band { background: var(--ink); color: var(--white); overflow: hidden; position: relative; }
.w-hero-band::after { content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: rgba(255, 255, 255, .1); }
.w-hero {
	width: min(1240px, 100% - 64px); margin: 0 auto;
	display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 88px); align-items: center;
	padding: clamp(56px, 7vw, 112px) 0 clamp(64px, 8vw, 120px);
}
.w-hero-copy { display: grid; gap: 28px; }
.w-hero .w-h1 { max-width: 11ch; }
.w-hero .w-h1 em { color: var(--lime); }
.w-hero .w-lede { color: rgba(255, 255, 255, .8); }
.w-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 16px 0 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.w-facts div { padding: 18px 16px 0 0; }
.w-facts div + div { padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, .14); }
.w-facts dt { font: 600 clamp(26px, 1.6vw + 12px, 34px)/1 var(--ui); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--white); }
.w-facts dd { margin: 6px 0 0; color: rgba(255, 255, 255, .64); font-size: 14px; line-height: 1.35; }

/* The ledger slip */
.w-calc {
	position: relative;
	display: grid; gap: 18px;
	padding: 28px 28px 24px 56px;
	background-color: var(--ledger);
	background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 31px, #E6DFC8 31px, #E6DFC8 32px);
	color: var(--ink);
	border-radius: 6px 6px 6px 6px;
	box-shadow: 0 2px 0 #D9D0B4, 0 40px 80px -30px rgba(0, 0, 0, .6);
	transform: rotate(-1.2deg);
}
.w-calc::before { content: ""; position: absolute; top: 0; bottom: 0; left: 38px; width: 5px; border-left: 1.5px solid var(--khata); border-right: 1.5px solid var(--khata); opacity: .75; }
.w-calc-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.w-calc-title { margin: 0; font: italic 400 34px/1 var(--display); letter-spacing: -0.01em; }
.w-calc .chip-lime { background: var(--ink); color: var(--lime); }
.w-calc-fields { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 12px; }
.w-calc .field > label { color: var(--muted); font-weight: 600; font-size: 13px; }
.w-calc input, .w-calc select { background: var(--white) !important; border-color: #D8D0B6 !important; color: var(--ink) !important; min-height: 50px; font-size: 17px; font-weight: 600; }
.w-calc input:focus, .w-calc select:focus { border-color: var(--ink) !important; box-shadow: 0 0 0 3px rgba(246, 180, 0, .45); }
.w-money { position: relative; }
.w-money span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-weight: 600; color: var(--muted); }
.w-money input { padding-left: 32px; font-variant-numeric: tabular-nums; }
.w-bill { margin: 0; display: grid; }
.w-bill div { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; min-height: 32px; align-items: baseline; }
.w-bill dt { color: var(--ink-2); }
.w-bill dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.w-bill .w-bill-total { margin-top: 6px; padding-top: 14px; border-top: 2px solid var(--ink); }
.w-bill-total dt { font-weight: 700; color: var(--ink); }
.w-bill-total dd { font: 700 clamp(30px, 2.2vw + 14px, 42px)/1 var(--ui); letter-spacing: -0.03em; color: var(--ink); background: linear-gradient(transparent 58%, #FFE08A 58%); padding: 0 4px; }
.w-calc-note { margin: 0; font-size: 13px; color: var(--muted); }

/* Paper sections */
.w-band, .w-section { padding: clamp(64px, 8vw, 120px) 0; }
.w-section-tint { background: var(--white); border-block: 1px solid var(--line); }
.w-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.w-split > div:first-child { display: grid; gap: 18px; }
.w-head-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: end; margin-bottom: 40px; }

.w-fee-card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 6px 28px 22px; }
.w-fee-table { width: 100%; border-collapse: collapse; font-size: 17px; }
.w-fee-table th, .w-fee-table td { padding: 16px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: baseline; }
.w-fee-table th { font-weight: 500; padding-right: 16px; }
.w-fee-table td { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.w-fee-table tr:last-child > * { border-bottom: 0; }
.w-zero { font: 700 24px/1 var(--ui) !important; color: var(--green); }
.w-fee-card .w-calc-note { margin-top: 12px; }

.w-steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.w-steps li { display: grid; gap: 12px; align-content: start; padding: 26px 28px 8px 0; border-top: 2px solid var(--ink); }
.w-steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.w-steps p { margin: 0; color: var(--ink-2); line-height: 1.6; }
.w-step-n { font: italic 400 56px/.9 var(--display); color: var(--ink); }
.w-steps li:last-child .w-step-n { color: var(--khata); }

.w-worlds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.w-worlds li {
	display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; row-gap: 6px; align-content: start;
	padding: 26px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
	transition: background .3s var(--ease);
}
.w-worlds li::before { content: ""; grid-row: span 3; width: 6px; border-radius: 3px; background: var(--world); }
.w-worlds li:hover { background: var(--paper); }
.w-world-name { font: 400 32px/1 var(--display); }
.w-world-line { color: var(--ink-2); }
.w-world-rate { justify-self: start; margin-top: 6px; font-weight: 600; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }

.w-tools { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.w-tool { display: grid; gap: 10px; align-content: start; padding: 26px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); transition: border-color .25s var(--ease), transform .25s var(--ease); }
.w-tool:hover { border-color: var(--ink); transform: translateY(-2px); }
.w-tool p { margin: 0; color: var(--ink-2); line-height: 1.6; }
.w-tool .i { width: 24px; height: 24px; color: var(--ink); }
.w-tool-wide { grid-column: span 2; grid-row: span 2; background: var(--ink); color: var(--white); border-color: var(--ink); }
.w-tool-wide .i { color: var(--lime); }
.w-tool-wide .w-h3 { font: 400 clamp(36px, 2.4vw + 16px, 52px)/1 var(--display); letter-spacing: -0.02em; }
.w-tool-wide p { color: rgba(255, 255, 255, .78); max-width: 46ch; font-size: 17px; }
.w-pipe { margin-top: auto; padding-top: 28px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: pipe; }
.w-pipe span { padding: 14px 12px 0; border-top: 3px solid rgba(255, 255, 255, .18); color: rgba(255, 255, 255, .7); font-weight: 600; font-size: 14px; }
.w-pipe span.is-on { border-color: var(--lime); color: var(--lime); }

.dsc-welcome .faq { background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.dsc-welcome .faq details:first-child { border-top: 0; }
.dsc-welcome .faq summary { font-size: 17px; font-weight: 600; padding: 20px 26px; }
.dsc-welcome .faq details p { padding: 0 26px 22px; line-height: 1.65; }

.w-cta { background: var(--ink); color: var(--white); padding: clamp(72px, 9vw, 136px) 0; }
.w-cta .w-wrap { display: grid; gap: 22px; justify-items: start; }
.w-cta .w-h2 { font-size: clamp(48px, 6vw, 96px); }
.w-cta .w-h2 em { background: none; color: var(--lime); }
.w-cta .w-text { color: rgba(255, 255, 255, .78); }

.w-foot { background: var(--ink); color: rgba(255, 255, 255, .7); border-top: 1px solid rgba(255, 255, 255, .1); padding: 28px 0 36px; }
.w-foot .logo { color: var(--white); }
.w-foot-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.w-foot nav { display: flex; gap: 20px; flex-wrap: wrap; margin-right: auto; }
.w-foot a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.w-foot a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.w-foot p { margin: 0; font-size: 14px; }

/* Entrance: content is visible without this; it only adds travel. */
@media (prefers-reduced-motion: no-preference) {
	.w-hero-copy > * { animation: w-rise .7s var(--ease) both; }
	.w-hero-copy > *:nth-child(2) { animation-delay: .08s; }
	.w-hero-copy > *:nth-child(3) { animation-delay: .16s; }
	.w-hero-copy > *:nth-child(4) { animation-delay: .24s; }
	.w-calc { animation: w-slip .9s .2s var(--ease) both; }
}
@keyframes w-rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes w-slip { from { opacity: 0; transform: translateY(28px) rotate(-4deg); } }

@media (max-width: 1080px) {
	.w-nav { display: none; }
	.w-top-cta { margin-left: auto; }
	.w-hero, .w-split, .w-head-row { grid-template-columns: minmax(0, 1fr); }
	.w-calc { transform: none; max-width: 560px; }
	.w-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
	.w-steps li:nth-child(3) { padding-left: 0; border-left: 0; }
	.w-worlds, .w-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.w-tool-wide { grid-row: auto; }
}
@media (max-width: 640px) {
	.w-wrap, .w-hero { width: calc(100% - 32px); }
	.w-top { padding: 10px 16px; gap: 8px; }
	.w-top .logo-word { display: none; }
	.w-top-cta .btn { min-height: 40px; padding: 0 14px; font-size: 14px; }
	.w-hero { padding-top: 40px; gap: 40px; }
	.w-actions .btn { flex: 1 1 100%; }
	.w-facts { grid-template-columns: minmax(0, 1fr); }
	.w-facts div, .w-facts div + div { padding: 14px 0; border-left: 0; border-bottom: 1px solid rgba(255, 255, 255, .14); display: flex; align-items: baseline; gap: 12px; }
	.w-facts dd { margin: 0; }
	.w-calc { padding: 22px 18px 20px 42px; }
	.w-calc::before { left: 24px; }
	.w-calc-fields { grid-template-columns: minmax(0, 1fr); }
	.w-steps, .w-worlds, .w-tools { grid-template-columns: minmax(0, 1fr); }
	.w-steps li, .w-steps li + li { padding: 22px 0 4px; border-left: 0; }
	.w-tool-wide { grid-column: auto; }
	.w-pipe { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; }
	.w-fee-card { padding: 4px 18px 18px; }
	.w-fee-table { font-size: 15px; }
	.w-fee-table th, .w-fee-table td { padding: 14px 0; }
}
