/* Acemastars — design tokens
   Ink (blueprint navy) on cool plaster, one bold accent: tape-measure yellow. */
:root {
  --ink: #13212e;
  --ink-2: #3a4a57;
  --ink-3: #66757f;
  --plaster: #eef2ef;
  --sheet: #fafbfa;
  --line: #d4dcd7;
  --tape: #ffc21a;
  --tape-deep: #e0a500;
  --level: #1f7a5c;       /* verified / escrow / success — spirit-level green */
  --level-tint: #e3f1ea;
  --brick: #b42318;
  --brick-tint: #fbe9e7;
  --sky: #2f5d8a;
  --r-s: 6px; --r-m: 12px; --r-l: 22px;
  --display: "Bricolage Grotesque Variable", "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 1px 0 rgba(19,33,46,.06), 0 8px 24px -12px rgba(19,33,46,.25);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 var(--body); color: var(--ink); background: var(--plaster); }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--tape); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.08; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 750; letter-spacing: -.02em; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1.02rem; font-weight: 700; }
p { margin: 0 0 1em; max-width: 68ch; }
.muted { color: var(--ink-3); }
.small { font-size: .875rem; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(238,242,239,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 22px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.32rem; letter-spacing: -.03em; }
.brand svg { flex: none; }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 999px; color: var(--ink-2); font-weight: 500; }
.nav a:hover, .nav a.on { background: var(--sheet); color: var(--ink); }
.topbar .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.bell { position: relative; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--sheet); display: grid; place-items: center; cursor: pointer; }
.bell b { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--brick); color: #fff; font-size: 11px; display: grid; place-items: center; padding: 0 4px; }
.menu-btn { display: none; }
@media (max-width: 860px) {
  .nav { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; background: var(--sheet); padding: 12px 20px 18px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .menu-btn { display: grid; }
}

/* ---------- buttons & fields ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--ink); color: var(--sheet); font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .12s ease, background .12s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.tape { background: var(--tape); border-color: var(--tape); color: var(--ink); }
.btn.tape:hover { background: var(--tape-deep); border-color: var(--tape-deep); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--sheet); }
.btn.level { background: var(--level); border-color: var(--level); }
.btn.danger { background: var(--brick); border-color: var(--brick); }
.btn.link { border: 0; background: none; color: var(--sky); padding: 0; min-height: 0; text-decoration: underline; }
.btn.sm { min-height: 34px; padding: 0 13px; font-size: .9rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > span { font-weight: 600; font-size: .92rem; }
.field small { color: var(--ink-3); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time], input[type=datetime-local], input[type=tel], input[type=search], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: var(--r-m); background: #fff; outline: none; transition: border-color .12s;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 720px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }

/* segmented choice (appointment type, hire style) */
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice .face { height: 100%; border: 1.5px solid var(--line); border-radius: var(--r-m); padding: 16px; background: #fff; display: grid; gap: 4px; transition: border-color .12s, box-shadow .12s; }
.choice .face svg { margin-bottom: 6px; }
.choice input:checked + .face { border-color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink), 0 6px 0 -2px var(--tape); }
.choice input:focus-visible + .face { outline: 3px solid var(--tape); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 56px 0 40px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: .3em; }
.hero h1 .measure { display: inline-block; position: relative; }
.hero h1 .measure::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .16em; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 10px), var(--tape); background-size: 100% 45%, 100% 100%; background-repeat: no-repeat; background-position: top, center; z-index: -1; }
.hero .lede { font-size: 1.18rem; color: var(--ink-2); max-width: 46ch; }
@media (max-width: 920px) { .hero .wrap { grid-template-columns: 1fr; } .hero-art { order: -1; max-width: 460px; } }

.finder { background: var(--sheet); border: 1.5px solid var(--ink); border-radius: var(--r-l); padding: 18px; box-shadow: 8px 8px 0 var(--ink); margin-top: 26px; }
.finder .top { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 10px; }
@media (max-width: 640px) { .finder .top { grid-template-columns: 1fr; } }
.finder .modes { display: flex; gap: 8px; margin: 14px 0 6px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-weight: 500; font-size: .93rem; }
.pill[aria-pressed=true] { border-color: var(--ink); background: var(--ink); color: var(--sheet); }

/* The tape measure — distance radius control */
.tapem { margin-top: 12px; }
.tape-label { display: flex; justify-content: space-between; font-size: .9rem; margin-bottom: 6px; }
.tape-label b { font-family: var(--display); font-size: 1.05rem; }
.tape-track { position: relative; height: 44px; border-radius: 8px; background: var(--tape); border: 1.5px solid var(--ink); overflow: hidden; }
.tape-track .ticks { position: absolute; inset: 0; background:
  repeating-linear-gradient(90deg, var(--ink) 0 1.5px, transparent 1.5px calc(100%/30)) top / 100% 12px no-repeat,
  repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px calc(100%/6)) top / 100% 20px no-repeat; pointer-events: none; }
.tape-track .nums { position: absolute; left: 0; right: 0; bottom: 3px; display: flex; justify-content: space-between; padding: 0 4px; font: 700 11px var(--display); pointer-events: none; }
.tape-track .fill { position: absolute; top: 0; bottom: 0; left: 0; background: rgba(19,33,46,.13); border-right: 3px solid var(--brick); pointer-events: none; transition: width .08s; }
.tape-track input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.tape-track:focus-within { outline: 3px solid var(--ink); outline-offset: 2px; }

.hero-art svg { width: 100%; height: auto; }
@media (prefers-reduced-motion: no-preference) {
  .hero-art .unroll { animation: unroll 1.4s cubic-bezier(.2,.7,.2,1) .2s both; transform-origin: left center; }
  .hero-art .pop { animation: pop .5s ease 1.2s both; }
  @keyframes unroll { from { transform: scaleX(0); } }
  @keyframes pop { from { opacity: 0; transform: translateY(8px); } }
}

/* ---------- home sections ---------- */
section.band { padding: 64px 0; }
.band.ink { background: var(--ink); color: var(--sheet); }
.band.ink .muted { color: #a9b6bf; }
.band.sheet { background: var(--sheet); border-block: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head p { margin: 0; }

.toolboard { display: grid; grid-template-columns: 220px 1fr; gap: 28px; }
.toolboard .tabs { display: grid; gap: 6px; align-content: start; }
.toolboard .tabs button { text-align: left; border: 0; background: none; padding: 12px 14px; border-radius: var(--r-m); font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; }
.toolboard .tabs button[aria-selected=true] { background: var(--ink); color: var(--sheet); }
.toolboard .list { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1.5px solid var(--ink); }
.toolboard .list a { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 14px; padding: 16px 6px; border-bottom: 1px solid var(--line); text-decoration: none; }
.toolboard .list a:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 18px; }
.toolboard .list a:nth-child(even) { padding-left: 18px; }
.toolboard .list a:hover h4 { text-decoration: underline; text-decoration-color: var(--tape); text-decoration-thickness: 3px; }
.toolboard .list .ico { width: 44px; height: 44px; border-radius: 10px; background: var(--plaster); display: grid; place-items: center; }
.toolboard .list p { margin: 0; font-size: .9rem; color: var(--ink-3); }
@media (max-width: 820px) { .toolboard { grid-template-columns: 1fr; } .toolboard .tabs { grid-auto-flow: column; overflow-x: auto; } .toolboard .list { grid-template-columns: 1fr; } .toolboard .list a:nth-child(n) { border-right: 0; padding: 14px 4px; } }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 22px; left: 22px; right: 12%; height: 0; border-top: 2px dashed #51616d; }
.steps li { list-style: none; position: relative; padding-right: 24px; }
.steps li::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--tape); color: var(--ink); font: 800 1.2rem var(--display); margin-bottom: 16px; position: relative; }
.steps { padding: 0; margin: 0; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr 1fr; gap: 28px; } .steps::before { display: none; } }

.escrow-rail { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 26px; border: 1.5px solid var(--ink); border-radius: var(--r-l); overflow: hidden; background: var(--sheet); }
.escrow-rail div { padding: 18px 16px; border-right: 1px solid var(--line); }
.escrow-rail div:last-child { border-right: 0; background: var(--level-tint); }
.escrow-rail b { display: block; font-family: var(--display); font-size: 1.1rem; }
.escrow-rail span { font-size: .88rem; color: var(--ink-3); }
@media (max-width: 760px) { .escrow-rail { grid-template-columns: 1fr; } .escrow-rail div { border-right: 0; border-bottom: 1px solid var(--line); } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.ticklist { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.ticklist li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.ticklist li::before { content: ""; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--level) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.band.ink .ticklist li::before { background-color: var(--tape); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%2313212e' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E"); }

footer.site { padding: 40px 0 60px; font-size: .92rem; color: var(--ink-3); }
footer.site .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ---------- panels, cards, lists ---------- */
.page { padding: 34px 0 70px; }
.panel { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-l); padding: 22px; }
.panel + .panel { margin-top: 18px; }
.panel h3 { margin-bottom: 12px; }
.panel.flush { padding: 0; overflow: hidden; }
.layout-side { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; }
.layout-main { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
@media (max-width: 980px) { .layout-side, .layout-main { grid-template-columns: 1fr; } }
.sticky { position: sticky; top: 86px; }

.pro-card { display: grid; grid-template-columns: 72px 1fr auto; gap: 16px; padding: 18px; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-l); align-items: start; }
.pro-card + .pro-card { margin-top: 12px; }
.pro-card:hover { border-color: var(--ink-3); }
.pro-card h3 { margin: 0 0 2px; font-size: 1.15rem; }
.pro-card h3 a { text-decoration: none; }
.pro-card .meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: .88rem; color: var(--ink-2); margin-top: 8px; }
.pro-card .price { text-align: right; display: grid; gap: 8px; justify-items: end; }
.pro-card .price b { font: 800 1.35rem var(--display); }
@media (max-width: 640px) { .pro-card { grid-template-columns: 56px 1fr; } .pro-card .price { grid-column: 1 / -1; justify-items: start; text-align: left; grid-auto-flow: column; align-items: center; } }

.avatar { width: 72px; height: 72px; border-radius: 18px; background: var(--ink); color: var(--tape); display: grid; place-items: center; font: 800 1.4rem var(--display); overflow: hidden; flex: none; }
.avatar.sm { width: 40px; height: 40px; border-radius: 10px; font-size: .95rem; }
.avatar.lg { width: 112px; height: 112px; border-radius: 26px; font-size: 2.2rem; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .pro-card .avatar { width: 56px; height: 56px; } }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: .78rem; font-weight: 650; background: var(--plaster); color: var(--ink-2); white-space: nowrap; }
.badge.ok { background: var(--level-tint); color: var(--level); }
.badge.warn { background: #fff4d1; color: #7a5600; }
.badge.bad { background: var(--brick-tint); color: var(--brick); }
.badge.info { background: #e4edf6; color: var(--sky); }
.badge.dark { background: var(--ink); color: var(--sheet); }
.stars { color: var(--tape-deep); letter-spacing: 1px; }

.filters h4 { margin-top: 18px; }
.filters h4:first-child { margin-top: 0; }
.map { height: 300px; border-radius: var(--r-m); border: 1px solid var(--line); overflow: hidden; background: #dfe7e3; }
.leaflet-container { font-family: var(--body); }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-l); padding: 16px 18px; }
.stat span { font-size: .86rem; color: var(--ink-3); }
.stat b { display: block; font: 800 1.7rem var(--display); letter-spacing: -.02em; margin-top: 2px; }
.stat.hl { background: var(--ink); color: var(--sheet); border-color: var(--ink); }
.stat.hl span { color: #a9b6bf; }

table.data { width: 100%; border-collapse: collapse; font-size: .93rem; }
table.data th { text-align: left; font-weight: 650; color: var(--ink-3); font-size: .82rem; padding: 10px 14px; border-bottom: 1.5px solid var(--line); background: var(--plaster); }
table.data td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; }

.empty { text-align: center; padding: 40px 20px; color: var(--ink-2); }
.empty svg { margin: 0 auto 12px; }

/* side nav for dashboards */
.sidenav { display: grid; gap: 2px; }
.sidenav a { display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; border-radius: var(--r-m); text-decoration: none; font-weight: 550; color: var(--ink-2); }
.sidenav a:hover { background: var(--plaster); }
.sidenav a.on { background: var(--ink); color: var(--sheet); }
.sidenav a .badge { background: var(--tape); color: var(--ink); }
@media (max-width: 980px) { .sidenav { grid-auto-flow: column; overflow-x: auto; } .sidenav a { white-space: nowrap; } }

/* booking timeline (a real sequence) */
.timeline { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin: 6px 0 4px; }
.timeline div { position: relative; padding-top: 22px; font-size: .84rem; color: var(--ink-3); }
.timeline div::before { content: ""; position: absolute; top: 5px; left: 0; right: 0; height: 3px; background: var(--line); }
.timeline div::after { content: ""; position: absolute; top: 0; left: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--sheet); border: 2.5px solid var(--line); }
.timeline div.done { color: var(--ink); }
.timeline div.done::before { background: var(--level); }
.timeline div.done::after { background: var(--level); border-color: var(--level); }
.timeline div.now { color: var(--ink); font-weight: 650; }
.timeline div.now::after { background: var(--tape); border-color: var(--ink); }
@media (max-width: 640px) { .timeline { grid-auto-flow: row; gap: 8px; } .timeline div { padding: 0 0 0 24px; } .timeline div::before { display: none; } }

/* chat */
.chat { display: flex; flex-direction: column; height: 460px; }
.chat .msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: var(--plaster); }
.bubble { max-width: 80%; padding: 9px 13px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.bubble.me { align-self: flex-end; background: var(--ink); color: var(--sheet); border-color: var(--ink); }
.bubble small { display: block; opacity: .65; font-size: .74rem; margin-top: 2px; }
.chat form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat .locked { padding: 14px 16px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: .9rem; display: flex; gap: 8px; align-items: center; }

/* notice strips */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-m); background: #fff4d1; border: 1px solid #f0d27a; margin-bottom: 16px; }
.notice.ok { background: var(--level-tint); border-color: #b9dccb; }
.notice.bad { background: var(--brick-tint); border-color: #f1bdb6; }
.notice.info { background: #e4edf6; border-color: #bcd0e5; }
.notice p { margin: 0; }

/* slots */
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.slots button { min-height: 40px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-weight: 600; }
.slots button[aria-pressed=true] { background: var(--ink); color: var(--sheet); border-color: var(--ink); }
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 12px; }
.days button { flex: none; width: 66px; padding: 8px 0; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; display: grid; line-height: 1.2; }
.days button b { font: 800 1.3rem var(--display); }
.days button span { font-size: .78rem; color: var(--ink-3); }
.days button[aria-pressed=true] { border-color: var(--ink); box-shadow: inset 0 -4px 0 var(--tape); }

/* calendar (pro) */
.week { display: grid; grid-template-columns: 54px repeat(7, 1fr); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; background: #fff; font-size: .8rem; }
.week .h { padding: 8px 6px; background: var(--plaster); font-weight: 650; text-align: center; border-bottom: 1px solid var(--line); }
.week .h.today { background: var(--tape); }
.week .col { position: relative; border-left: 1px solid var(--line); height: 520px; }
.week .times { position: relative; height: 520px; }
.week .times span { position: absolute; right: 6px; transform: translateY(-50%); color: var(--ink-3); }
.week .avail { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(135deg, var(--level-tint) 0 6px, #f2f8f5 6px 12px); }
.week .off { position: absolute; inset: 0; background: repeating-linear-gradient(135deg, #f4e3e1 0 6px, #fbf1f0 6px 12px); display: grid; place-items: center; color: var(--brick); font-weight: 650; }
.week .bk { position: absolute; left: 3px; right: 3px; border-radius: 6px; background: var(--ink); color: var(--sheet); padding: 3px 5px; overflow: hidden; text-decoration: none; font-size: .74rem; line-height: 1.25; border-left: 4px solid var(--tape); }
.week .hr { position: absolute; left: 0; right: 0; border-top: 1px dashed #e6ebe8; }

/* stepper (post a job) */
.stepper { display: flex; gap: 6px; margin-bottom: 24px; }
.stepper span { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.stepper span.on { background: var(--ink); }
.stepper span.now { background: var(--tape); }
.wizard { max-width: 760px; margin: 0 auto; }
.photos { display: flex; gap: 8px; flex-wrap: wrap; }
.photos img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.drop { border: 2px dashed var(--line); border-radius: var(--r-m); padding: 22px; text-align: center; cursor: pointer; background: #fff; }
.drop:hover { border-color: var(--ink-3); }

/* rating */
.rate { display: flex; gap: 6px; }
.rate button { width: 48px; height: 48px; border: 0; background: none; cursor: pointer; padding: 0; }
.rate svg path { fill: var(--line); transition: fill .1s, transform .1s; }
.rate button.on svg path { fill: var(--tape); stroke: var(--ink); stroke-width: 1.2; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }

/* modal & toast */
.modal-back { position: fixed; inset: 0; background: rgba(19,33,46,.55); z-index: 90; display: grid; place-items: center; padding: 20px; }
.modal { background: var(--sheet); border-radius: var(--r-l); width: min(560px, 100%); max-height: 90vh; overflow-y: auto; padding: 26px; border: 1.5px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); }
@media (prefers-reduced-motion: no-preference) { .modal { animation: pop .22s ease both; } }
.modal .actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--sheet); padding: 12px 18px; border-radius: 999px; z-index: 100; box-shadow: var(--shadow); max-width: calc(100% - 40px); }
.toast.bad { background: var(--brick); }
.drawer { position: fixed; top: 66px; right: 16px; width: min(380px, calc(100% - 32px)); max-height: 70vh; overflow-y: auto; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow); z-index: 60; }
.drawer a { display: block; padding: 13px 16px; border-bottom: 1px solid var(--line); text-decoration: none; font-size: .92rem; }
.drawer a.unread { background: #fffbea; }
.drawer a small { display: block; color: var(--ink-3); }

/* call */
.call-shell { position: fixed; inset: 0; background: var(--ink); z-index: 80; display: grid; grid-template-rows: auto 1fr; }
.call-bar { display: flex; align-items: center; gap: 14px; padding: 10px 18px; color: var(--sheet); }
.call-bar .btn.ghost { color: var(--sheet); border-color: #51616d; }
#jitsi { width: 100%; height: 100%; }
#jitsi iframe { border: 0; }

/* auth */
.auth { max-width: 460px; margin: 40px auto; }
.demo-logins { display: grid; gap: 6px; margin-top: 16px; }
.demo-logins button { text-align: left; }

.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 14px; font-size: .94rem; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; }
.hide { display: none !important; }
.spin { width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--ink); border-radius: 50%; animation: sp 0.8s linear infinite; margin: 40px auto; }
@keyframes sp { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.layout-side > *, .layout-main > * { min-width: 0; }

.mobile-only { display: none !important; }
@media (max-width: 860px) {
  .nav.open .mobile-only { display: block !important; }
  #out { display: none; }
  .topbar .wrap { gap: 10px; }
  .hero-art { max-width: 330px; margin: 0 auto; }
  .hero { padding-top: 24px; }
}
