:root {
  --bg: #050d1a; --bg2: #0a1526; --card: #0d1a2e; --line: #1b2d47; --text: #e9eff8; --muted: #8b9fba;
  --accent: #3cc8ee; --accent-ink: #03202b; --lime: #8fdc4a; --amber: #e8b04a; --red: #f0707f; --violet: #a78bfa;
  --btn: #3cc8ee; --btn-ink: #03202b;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif; --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r: 14px;
}
:root[data-theme='light'] {
  --bg: #f6f8fb; --bg2: #eaf0f6; --card: #ffffff; --line: #d9e2ec; --text: #0c1c2e; --muted: #5a6e85;
  --accent: #0b7fa3; --accent-ink: #fff; --btn: #0b7fa3; --btn-ink: #fff;
}
* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { background: var(--bg); color: var(--text); font: 400 15.5px/1.6 var(--sans); min-height: 100vh; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }
a { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.ico { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -.2em; }
.eyebrow { font: 600 12px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 14px; height: 66px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); font: 600 16px var(--serif); line-height: 1.15; }
.brand img { height: 38px; width: auto; }
.brand small { display: block; font: 500 10.5px var(--sans); color: var(--muted); letter-spacing: .14em; text-transform: uppercase; margin-top: 2px; }
.spacer { flex: 1; }
.nav { display: flex; gap: 2px; margin-left: 24px; }
.nav a { padding: 8px 14px; border-radius: 8px; text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 500; }
.nav a:hover { color: var(--text); background: var(--bg2); }
.call { font-size: 13.5px; color: var(--muted); text-decoration: none; display: flex; gap: 8px; align-items: center; margin-right: 6px; }
.callbtn { margin-right: 4px; }
.callbtn .ico { font-size: 16px; }
@media (max-width: 420px) { .callbtn span { display: none; } .callbtn { padding: 0; width: 40px; min-height: 40px; } }
.icon-btn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--muted); }
.icon-btn:hover { color: var(--text); border-color: var(--muted); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 24px; border: 1px solid transparent; border-radius: 10px; background: var(--btn); color: var(--btn-ink); font-weight: 600; font-size: 14.5px; cursor: pointer; text-decoration: none; transition: filter .15s, border-color .15s; }
.btn:hover { filter: brightness(1.08); }
.btn.accent { background: var(--btn); color: var(--btn-ink); }
.btn.alt { background: transparent; border-color: var(--line); color: var(--text); }
.btn.alt:hover { border-color: var(--muted); filter: none; }
.btn.sm { min-height: 38px; padding: 0 18px; font-size: 13.5px; }
.btn[disabled] { opacity: .4; cursor: not-allowed; filter: none; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 6px; font-size: 12px; font-weight: 600; background: var(--bg2); color: var(--muted); border: 1px solid var(--line); }
.pill.ok { color: var(--lime); } .pill.warn { color: var(--amber); } .pill.no { color: var(--red); }

/* hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before { content: ''; position: absolute; inset: 0; background: url(assets/studio.jpg) center right/cover; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 24%, color-mix(in srgb, var(--bg) 70%, transparent) 55%, color-mix(in srgb, var(--bg) 25%, transparent)), linear-gradient(0deg, var(--bg) 0%, transparent 35%); }
:root[data-theme='light'] .hero::before { opacity: .5; }
.hero .wrap { position: relative; z-index: 1; padding: 96px 0 0; }
.hero h1 { font-size: clamp(38px, 6.2vw, 68px); max-width: 14ch; margin: 16px 0 18px; }
.hero p.lead { color: var(--muted); max-width: 50ch; font-size: 18px; margin-bottom: 30px; }
.hero .row { display: flex; gap: 12px; flex-wrap: wrap; }
.strip { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 72px; border: 1px solid var(--line); border-bottom: 0; border-radius: var(--r) var(--r) 0 0; background: color-mix(in srgb, var(--card) 85%, transparent); backdrop-filter: blur(10px); }
.strip div { padding: 18px 22px; border-right: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.strip div:last-child { border: 0; }
.strip b { display: block; font: 600 22px var(--serif); color: var(--text); }

/* sections */
section { padding: 72px 0 8px; }
.sec-h { margin-bottom: 30px; max-width: 62ch; }
.sec-h h2 { font-size: clamp(28px, 4vw, 40px); margin: 8px 0 10px; }
.sec-h p { color: var(--muted); font-size: 16.5px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); margin-top: 56px; }
.steps > div { padding: 24px 26px; border-right: 1px solid var(--line); }
.steps > div:last-child { border: 0; }
.steps .n { font: 600 13px var(--sans); color: var(--accent); letter-spacing: .12em; }
.steps h3 { font: 600 18px var(--serif); margin: 6px 0 4px; }
.steps p { color: var(--muted); font-size: 14px; }

/* cards */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.sec-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.arrows { display: flex; gap: 8px; margin-bottom: 30px; }
.arrows button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); cursor: pointer; display: grid; place-items: center; color: var(--text); font-size: 18px; }
.arrows button:hover { border-color: var(--accent); color: var(--accent); }
.rail { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 20px 20px; margin: 0 -20px; scroll-padding: 0 20px; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.rail > .ev { flex: 0 0 clamp(290px, 31%, 372px); scroll-snap-align: start; }
.ev { display: flex; flex-direction: column; padding: 0; overflow: hidden; transition: border-color .2s, transform .2s; }
.ev:hover { border-color: color-mix(in srgb, var(--c) 55%, var(--line)); transform: translateY(-2px); }
.ev .pic { aspect-ratio: 16 / 10; background: var(--bg2) center / cover no-repeat; position: relative; }
.ev .pic::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, var(--card) 0%, transparent 55%), linear-gradient(135deg, color-mix(in srgb, var(--c) 22%, transparent), transparent 60%); }
.ev .kind { position: absolute; z-index: 1; left: 14px; top: 14px; font: 600 10.5px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #fff; background: rgba(5, 13, 26, .62); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .16); padding: 5px 10px; border-radius: 6px; }
.ev .body { display: flex; flex-direction: column; gap: 14px; padding: 4px 22px 22px; flex: 1; }
.ev h3 { font-size: 22px; }
.ev .desc { color: var(--muted); font-size: 14.5px; }
.ev dl { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 14px; font-size: 14px; }
.ev dl div { display: flex; gap: 10px; align-items: baseline; }
.ev dt { color: var(--muted); width: 56px; flex: none; }
.ev .foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding-top: 6px; }
.ev .price { font: 600 26px var(--serif); line-height: 1; }
.ev .price small { font: 400 13px var(--sans); color: var(--muted); }
.ev .price em { display: block; font: 400 12.5px var(--sans); color: var(--muted); margin-top: 6px; font-style: normal; }
.pk { cursor: pointer; transition: border-color .2s; position: relative; padding: 22px 20px; }
.pk:hover { border-color: var(--muted); }
.pk.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.pk .nm { font: 600 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pk .big { font: 600 28px var(--serif); margin: 10px 0 2px; }
.pk .hr { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--accent); font-weight: 600; }
.pk .tag { position: absolute; top: 14px; right: 14px; font: 600 10.5px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent); padding: 3px 8px; border-radius: 5px; }
.incl { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px 24px; margin-top: 22px; font-size: 14px; color: var(--muted); }
.incl span { display: flex; gap: 10px; align-items: center; } .incl .ico { color: var(--accent); }

/* forms */
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 12.5px; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg2); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.row2 { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 10px 16px; min-height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg2); cursor: pointer; font-size: 14px; }
.chip:hover { border-color: var(--muted); }
.chip.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.chip[disabled] { opacity: .3; text-decoration: line-through; cursor: not-allowed; }
.stepper { display: inline-flex; align-items: center; gap: 16px; }
.stepper button { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg2); font-size: 20px; cursor: pointer; }
.stepper b { min-width: 28px; text-align: center; font-size: 20px; }
.tables { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.tbl { aspect-ratio: 1; border-radius: 50%; border: 1.5px solid var(--line); background: var(--bg2); cursor: pointer; font-size: 12px; font-weight: 600; color: var(--muted); }
.tbl:hover:not([disabled]) { border-color: var(--accent); color: var(--text); }
.tbl.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tbl[disabled] { opacity: .25; cursor: not-allowed; }
.stage { text-align: center; padding: 8px; margin-bottom: 14px; border-radius: 8px; border: 1px dashed var(--line); color: var(--muted); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 50; display: none; background: rgba(2, 8, 18, .72); backdrop-filter: blur(4px); align-items: center; justify-content: center; padding: 16px; }
.modal.open { display: flex; }
.sheet { width: min(560px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.sheet h3 { font-size: 26px; margin-bottom: 4px; }
.sheet .sub { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.sum { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 16px 0; display: grid; gap: 8px; font-size: 14.5px; }
.sum div { display: flex; justify-content: space-between; gap: 12px; }
.sum .tot { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 2px; font: 600 20px var(--serif); }
.pay { display: grid; gap: 10px; margin: 4px 0 14px; }
.pay label { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg2); cursor: pointer; }
.pay label.dis { opacity: .5; cursor: not-allowed; }
.pay input { width: 18px; height: 18px; accent-color: var(--accent); }
.note { font-size: 13px; color: var(--muted); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.dates { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.date { flex: 0 0 auto; width: 66px; padding: 10px 0; text-align: center; border-radius: 12px; border: 1px solid var(--line); background: var(--bg2); cursor: pointer; }
.date:hover { border-color: var(--muted); }
.date b { display: block; font: 600 21px var(--serif); line-height: 1.2; }
.date small { color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; }
.date.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.date.on small { color: var(--accent-ink); }
.ok-badge { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; background: color-mix(in srgb, var(--lime) 16%, transparent); color: var(--lime); font-size: 30px; }

footer { margin-top: 80px; border-top: 1px solid var(--line); background: var(--bg2); padding: 40px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; }
footer b { color: var(--text); display: block; margin-bottom: 6px; font-weight: 600; }
footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; font-size: 12.5px; }

/* admin */
.app { display: grid; grid-template-columns: 244px 1fr; min-height: 100vh; }
.side { background: var(--bg2); border-right: 1px solid var(--line); padding: 20px 14px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 2px; }
.side .brand { padding: 2px 8px 22px; }
.side a.item { display: flex; gap: 12px; align-items: center; padding: 11px 12px; border-radius: 9px; color: var(--muted); text-decoration: none; cursor: pointer; font-size: 14.5px; font-weight: 500; }
.side a.item:hover { background: var(--card); color: var(--text); }
.side a.item.on { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.side .ico { font-size: 18px; }
.main { padding: 32px 36px; min-width: 0; max-width: 1280px; }
.bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.bar h1 { font-size: 30px; flex: 1; min-width: 160px; }
.stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 20px; }
.stat { padding: 20px; }
.stat b { display: block; font: 600 30px var(--serif); }
.stat span { color: var(--muted); font-size: 13px; }
.tbl-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th, table.t td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t th { color: var(--muted); font: 600 11.5px var(--sans); text-transform: uppercase; letter-spacing: .08em; }
table.t tr:last-child td { border-bottom: 0; }
table.t input, table.t select { width: 100%; min-width: 72px; min-height: 38px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg2); }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.wk-day { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px; min-height: 170px; }
.wk-day h4 { font: 600 12px var(--sans); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 10px; color: var(--muted); }
.wk-day.today { border-color: var(--accent); } .wk-day.today h4 { color: var(--accent); }
.it { border-left: 3px solid var(--c); background: var(--bg2); border-radius: 6px; padding: 7px 9px; margin-bottom: 6px; font-size: 12px; line-height: 1.35; }
.it b { display: block; font-size: 12.5px; font-weight: 600; }
.it span { color: var(--muted); }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.cal .h { text-align: center; font: 600 11px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 4px 0; }
.cal .c { aspect-ratio: 1.15; min-height: 52px; border-radius: 9px; background: var(--card); border: 1px solid var(--line); padding: 6px 8px; cursor: pointer; display: flex; flex-direction: column; justify-content: space-between; font-size: 13px; }
.cal .c:hover { border-color: var(--muted); }
.cal .c.sel { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.cal .c.td b { color: var(--accent); }
.dots { display: flex; gap: 3px; flex-wrap: wrap; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: radial-gradient(900px 500px at 70% -10%, color-mix(in srgb, var(--accent) 12%, transparent), transparent), var(--bg); }
.login .card { width: min(420px, 100%); padding: 32px; }
.who { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.tabbar { display: none; }

@media (max-width: 860px) {
  .arrows { display: none; }
  .rail { padding: 4px 16px 18px; margin: 0 -16px; scroll-padding: 0 16px; }
  .rail > .ev { flex-basis: min(82vw, 340px); }
  .wrap { width: min(1160px, 100% - 32px); }
  .nav, .call { display: none; }
  .top .wrap { height: 60px; }
  .hero .wrap { padding: 56px 0 0; }
  .hero::after { background: linear-gradient(0deg, var(--bg) 35%, color-mix(in srgb, var(--bg) 55%, transparent) 100%); }
  .hero p.lead { font-size: 16.5px; }
  .strip { grid-template-columns: 1fr 1fr; margin-top: 44px; }
  .strip div:nth-child(2) { border-right: 0; } .strip div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; margin-top: 36px; } .steps > div { border-right: 0; border-bottom: 1px solid var(--line); } .steps > div:last-child { border: 0; }
  section { padding-top: 52px; }
  footer .wrap { grid-template-columns: 1fr; }
  .app { grid-template-columns: 1fr; }
  .side { display: none; }
  .main { padding: 20px 16px 96px; }
  .tabbar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; background: var(--bg2); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a { flex: 1; text-align: center; font-size: 10.5px; color: var(--muted); padding: 6px 2px; border-radius: 10px; cursor: pointer; text-decoration: none; }
  .tabbar a .ico { display: block; margin: 0 auto 3px; font-size: 20px; }
  .tabbar a.on { color: var(--accent); }
  .week { grid-template-columns: 1fr; } .wk-day { min-height: 0; }
  .modal { padding: 0; align-items: flex-end; }
  .sheet { width: 100%; max-height: 92dvh; border-radius: 20px 20px 0 0; padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); }
}
@media (max-width: 420px) { .row2 { grid-template-columns: 1fr; } .main .bar h1 { font-size: 25px; } .ev .foot { flex-wrap: wrap; } }

.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 16px; scrollbar-width: none; }
.tabs button { white-space: nowrap; padding: 9px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); cursor: pointer; font-size: 14px; color: var(--muted); }
.tabs button:hover { border-color: var(--muted); }
.tabs button.on { background: color-mix(in srgb, var(--accent) 14%, transparent); border-color: var(--accent); color: var(--accent); font-weight: 600; }

/* ---- studio calendar picker ---- */
.mhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.mhead b { font: 600 18px var(--serif); }
.mhead button { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg2); cursor: pointer; font-size: 18px; }
.mhead button[disabled] { opacity: .3; cursor: not-allowed; }
.mcal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.mcal .h { text-align: center; font: 600 11px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 2px 0 4px; }
.cd { min-height: 58px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg2); padding: 5px 6px; text-align: left; cursor: pointer; display: flex; flex-direction: column; justify-content: space-between; font-size: 12px; color: var(--text); }
.cd b { font: 600 15px var(--serif); }
.cd small { font-size: 10.5px; color: var(--muted); line-height: 1.15; }
.cd:hover:not([disabled]) { border-color: var(--accent); }
.cd.sel { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, var(--bg2)); }
.cd.on { box-shadow: 0 0 0 2px var(--accent) inset; }
.cd.full { background: repeating-linear-gradient(135deg, var(--bg2) 0 6px, color-mix(in srgb, var(--red) 12%, var(--bg2)) 6px 12px); cursor: not-allowed; }
.cd.full small { color: var(--red); font-weight: 600; }
.cd.closed { background: color-mix(in srgb, var(--amber) 10%, var(--bg2)); cursor: not-allowed; }
.cd.closed small { color: var(--amber); font-weight: 600; }
.cd.off, .cd.past, .cd.out { opacity: .28; cursor: not-allowed; }
.cd.blank { visibility: hidden; }
.picks { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.pickchip { display: inline-flex; gap: 8px; align-items: center; padding: 7px 12px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 16%, var(--bg2)); border: 1px solid var(--accent); font-size: 13px; }
.pickchip button { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 15px; padding: 0 2px; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--muted); margin-top: 10px; }
.legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.progress { height: 6px; background: var(--bg2); border-radius: 99px; overflow: hidden; margin: 6px 0 14px; }
.progress div { height: 100%; background: var(--accent); transition: width .2s; }
.lockline { display: flex; gap: 8px; align-items: center; color: var(--red); font-size: 13.5px; margin: 8px 0; }

/* ---- teaser + social ---- */
.eq-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.eq-mini { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--line); background: var(--bg2) center / cover; display: flex; align-items: flex-end; text-decoration: none; color: #fff; }
.eq-mini::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(3, 10, 22, .85), transparent 55%); }
.eq-mini span { position: relative; z-index: 1; padding: 14px 16px; font: 600 16px var(--serif); }
.eq-mini em { display: block; font: 500 10.5px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-style: normal; margin-bottom: 3px; }
.social { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); align-items: start; }
.social iframe { width: 100%; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.social .follow { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }

/* ---- client portal + documents ---- */
.acct { max-width: 980px; margin: 0 auto; padding: 36px 0 80px; }
.authbox { max-width: 460px; margin: 40px auto; }
.banner { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); margin-bottom: 18px; font-size: 14px; }
.banner.warn { border-color: var(--amber); background: color-mix(in srgb, var(--amber) 9%, var(--card)); }
.banner.bad { border-color: var(--red); background: color-mix(in srgb, var(--red) 9%, var(--card)); }
.banner.ok { border-color: var(--lime); background: color-mix(in srgb, var(--lime) 8%, var(--card)); }
.rental { margin-bottom: 16px; }
.rental h3 { font-size: 21px; }
.sess { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.sess:last-child { border: 0; }
.invrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; margin-top: 8px; background: var(--bg2); font-size: 14px; }
.invoice { background: #fff; color: #0c1c2e; border-radius: 10px; padding: 30px; font-size: 14px; }
.invoice h2 { font-size: 26px; color: #0c1c2e; }
.invoice table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.invoice th, .invoice td { text-align: left; padding: 8px 6px; border-bottom: 1px solid #dfe6ee; vertical-align: top; }
.invoice th { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #5a6e85; }
.invoice .tot { text-align: right; font: 600 20px var(--serif); }
.invoice .stamp { display: inline-block; border: 2px solid; padding: 2px 12px; border-radius: 6px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; transform: rotate(-4deg); }
.invoice .paid { color: #1f9d55; } .invoice .unpaid { color: #c2410c; }
.sheet.wide { width: min(760px, 100%); }
@media print {
  body * { visibility: hidden !important; }
  #printArea, #printArea * { visibility: visible !important; }
  #printArea { position: absolute; left: 0; top: 0; width: 100%; box-shadow: none; padding: 0; }
  .no-print { display: none !important; }
}

/* ---- admin extras ---- */
.pillbtn { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--muted); }
.dot.info { background: var(--accent); } .dot.warn { background: var(--amber); } .dot.error { background: var(--red); }
table.t tr.lvl-error td { background: color-mix(in srgb, var(--red) 7%, transparent); }
table.t tr.lvl-warn td { background: color-mix(in srgb, var(--amber) 6%, transparent); }
.eqrow { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.eqrow:last-child { border: 0; }
.eqimg { width: 84px; height: 62px; border-radius: 10px; background: var(--bg2) center / cover; border: 1px solid var(--line); }
.minibtns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.badge { display: inline-block; min-width: 20px; padding: 1px 7px; border-radius: 999px; background: var(--red); color: #fff; font: 600 11px var(--sans); margin-left: auto; text-align: center; }
.bar-cell { height: 8px; background: var(--bg2); border-radius: 99px; overflow: hidden; min-width: 120px; }
.bar-cell div { height: 100%; background: var(--accent); }
@media (max-width: 860px) { .eqrow { grid-template-columns: 64px 1fr; } .eqrow .minibtns { grid-column: 1 / -1; justify-content: flex-start; } .eqimg { width: 64px; height: 48px; } .invoice { padding: 18px; } }

/* header fits mid-size screens */
.btn, .nav a, .brand span { white-space: nowrap; }
.date.locked { opacity: .38; cursor: not-allowed; }
@media (max-width: 1180px) { .nav { margin-left: 8px; } .nav a { padding: 8px 10px; } .nav a:nth-child(4) { display: none; } }
@media (max-width: 1020px) { .nav a:nth-child(2) { display: none; } .callbtn span { display: none; } .callbtn { padding: 0; width: 38px; } }

/* small phones: header stays on one line */
@media (max-width: 520px) {
  .top .wrap { gap: 8px; }
  .brand span { display: none; }
  .top .btn.sm { padding: 0 12px; font-size: 13px; }
  .top .callbtn { padding: 0; width: 38px; }
}
