/* Wolense brand layer: tokens taken from wolense.com and backend.wolense.com.
   Fonts: Syne (headings, 600), Outfit (body). Colors: cream page, warm ink, blue pill buttons,
   tan-to-blue gradient on title words and bars, #D6D6D6 borders. Swap these tokens per brand. */
:root {
  --bg: #F9F6F2;
  --ink: #494742;
  --ink-dark: #463f34;
  --muted: #7a7874;
  --beige: #a1937f;
  --eyebrow: #b0a28d;
  --line: #D6D6D6;
  --blue: #2b71de;
  --blue-dark: #2260c4;
  --tan: #d8ae83;
  --steel: #3483be;
  --err: #b3261e;
  --card: radial-gradient(125% 125% at 26% 10%, #fff 0%, #f6efe6 58%, #eee5d7 100%);
  --h-font: "Syne", sans-serif;
  --b-font: "Outfit", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.5 var(--b-font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
.site-header { height: 76px; background: rgba(255,255,255,.61); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; position: sticky; top: 0; z-index: 10; }
.site-header img { height: 32px; width: auto; display: block; }
main { max-width: 560px; margin: 0 auto; padding: 32px 16px 72px; }
main.wide { max-width: 1040px; }
h1, h2, h3, .price, .tile .v { font-family: var(--h-font); font-weight: 600; color: var(--ink); }
h1 { font-size: 34px; line-height: 1.2; margin: 0 0 14px; text-align: center; }
h2 { font-size: 20px; margin: 20px 0 12px; }
.grad { background: linear-gradient(90deg, var(--tan), var(--steel)); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
p { margin: 0 0 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 32px 24px; margin-top: 8px; }
.kicker { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--eyebrow); text-align: center; margin: 0 0 12px; }
.muted { color: var(--muted); font-size: 14px; line-height: 1.6; }
.card > p, #slot > p { text-align: center; }
.price { font-size: 24px; text-align: center; margin: 8px 0 6px; color: var(--ink-dark); }
.btn { display: block; width: 100%; padding: 16px 24px; margin: 12px 0 8px; border: 0; border-radius: 30px; background: var(--blue); color: #fff; font: 600 16px var(--h-font); cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--blue-dark); }
.btn:disabled { opacity: .6; cursor: default; }
.btn.opt { background: #fff; color: var(--ink); border: 1px solid var(--line); text-align: left; font-weight: 500; margin: 8px 0; }
.btn.opt:hover { border-color: var(--blue); background: #fff; }
.link { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; padding: 12px 0; font: 400 14px var(--b-font); display: block; margin: 0 auto; }
.inp { width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; font: 400 16px var(--b-font); color: var(--ink); background: #fff; margin-bottom: 8px; }
.inp:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
#msg { text-align: center; margin-top: 8px; }
/* dashboard */
.bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: center; margin: 16px 0 24px; }
.bar input, .bar select { padding: 12px 16px; border: 1px solid var(--line); border-radius: 30px; font: 400 15px var(--b-font); background: #fff; color: var(--ink); }
.bar button { width: auto; margin: 0; padding: 12px 24px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 16px 0; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 18px; }
.tile .v { font-size: 26px; color: var(--ink-dark); }
.tile .l { color: var(--muted); font-size: 13px; }
.sec { font: 600 11px var(--b-font); letter-spacing: .16em; text-transform: uppercase; color: var(--eyebrow); margin: 28px 0 8px; }
table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; margin: 8px 0 24px; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid #ebe6df; font-size: 15px; }
tr:last-child td { border-bottom: 0; }
th { font: 600 11px var(--b-font); text-transform: uppercase; letter-spacing: .12em; color: var(--eyebrow); }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; }
.meter { height: 8px; background: #ebe6df; border-radius: 4px; min-width: 90px; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--tan), var(--steel)); border-radius: 4px; }
.err { color: var(--err); }
@media (max-width: 480px) { h1 { font-size: 28px; } .card { padding: 24px 18px; } }

/* ---- basics pass: consistent control sizing, select arrow spacing, mobile, focus, overflow ---- */
.inp, .bar input, .bar select, .bar button, .btn { min-height: 52px; line-height: 1.2; }
.inp, .bar input, .bar select { padding: 0 20px; }
.bar select {
  -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 52px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23494742' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 22px center / 12px 8px;
}
.bar input { min-width: 260px; }
.bar { gap: 10px; }
.bar button, .bar .btn { display: inline-flex; align-items: center; justify-content: center; padding: 0 32px; }
.btn { display: flex; align-items: center; justify-content: center; text-align: center; }
.btn.opt { justify-content: flex-start; text-align: left; padding: 14px 24px; }
.btn:focus-visible, .link:focus-visible, .bar select:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.bar input:focus, .bar select:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
#out { overflow-x: auto; }
table { min-width: 520px; }
.tile .l { line-height: 1.35; }
@media (max-width: 480px) {
  main { padding: 20px 14px 56px; }
  .site-header { height: 64px; }
  .site-header img { height: 28px; }
  .bar { flex-direction: column; align-items: stretch; }
  .bar input, .bar select, .bar button { width: 100%; min-width: 0; }
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tile { padding: 14px; }
  .tile .v { font-size: 22px; }
  .price { font-size: 22px; }
}
.card h2 { text-align: center; }
.btn.opt { margin-left: 0; margin-right: 0; }
