/* Wander Wheels — admin dashboard (ocean navy + sunset, from the logo) */
:root {
  --ink: #06192E; --ink-2: #0B2C4F; --ink-3: #123A63;
  --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.15);
  --cream: #F7F1E6; --muted: #9DB0C6; --amber: #FDB52E;
  --grad: linear-gradient(120deg, #FFD466, #FDA806 50%, #F28C18);
  --teal: #2BB5AE; --sand: #FBF7EF;
  --ok: #3DDC97; --err: #FF5D6C; --blue: #6CB6FF;
  --ease: cubic-bezier(.2,.8,.2,1);
  --display: 'Montserrat', system-ui, sans-serif; --body: 'Manrope', system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ink); color: var(--cream); font: 500 15px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
.ic { width: 18px; height: 18px; flex: none; }
.muted { color: var(--muted); font-size: 14px; }
.inline { display: inline; margin: 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 999px; border: 1px solid transparent; font-weight: 700; cursor: pointer; transition: transform .3s var(--ease), box-shadow .3s, background .25s, border-color .25s; white-space: nowrap; }
.btn-primary { background: var(--grad); color: #1b0f02; box-shadow: 0 10px 26px -10px rgba(255,120,30,.6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -10px rgba(255,120,30,.75); }
.btn-ghost { background: rgba(255,255,255,.05); border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn.full { width: 100%; }
.danger { color: var(--err) !important; }
.icon-btn { width: 34px; height: 34px; border-radius: 10px; display: inline-grid; place-items: center; border: 1px solid var(--line-2); background: transparent; cursor: pointer; transition: background .2s; }
.icon-btn:hover { background: rgba(255,255,255,.08); }
.icon-btn .ic { width: 16px; height: 16px; }

/* layout */
.side { position: fixed; inset: 0 auto 0 0; width: 250px; background: var(--ink-2); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 22px 14px; z-index: 30; transition: transform .45s var(--ease); }
.side-brand { display: flex; align-items: center; gap: 8px; margin: 0 2px 22px; padding: 10px 12px; border-radius: 18px; background: var(--sand); box-shadow: 0 0 0 3px rgba(253,181,46,.25), 0 14px 30px -16px rgba(0,0,0,.6); transition: transform .4s var(--ease); }
.side-brand:hover { transform: translateY(-2px); }
.side-brand .sb-emblem { width: 52px; flex: none; transition: transform .7s var(--ease); }
.side-brand:hover .sb-emblem { transform: rotate(-14deg); }
.side-brand .sb-lock { display: grid; gap: 2px; min-width: 0; }
.side-brand .sb-word { width: 132px; height: auto; }
.side-brand small { font-size: 9px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: #0E8388; }
h1, h2, h3, .stat b { letter-spacing: -.02em; }
.side-brand b, .login-card h1 b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-mark { width: 38px; height: 38px; }
.side nav { display: grid; gap: 4px; }
.side nav a, .side-foot a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; color: var(--muted); font-weight: 600; transition: background .25s, color .25s; position: relative; }
.side nav a:hover, .side-foot a:hover { background: rgba(255,255,255,.05); color: var(--cream); }
.side nav a.on { background: rgba(253,181,46,.13); color: var(--amber); }
.side nav a.on::before { content: ""; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--amber); }
.side nav em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 800; padding: 1px 8px; border-radius: 999px; background: var(--grad); color: #1b0f02; }
.side-foot { margin-top: auto; display: grid; gap: 4px; border-top: 1px solid var(--line); padding-top: 14px; }
.side-scrim { display: none; }

.main { margin-left: 250px; padding: 26px clamp(16px, 3vw, 36px) 60px; min-height: 100vh; animation: fadeUp .5s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } }
.topbar { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.topbar small { color: var(--muted); font-weight: 600; }
.topbar h1 { margin: 0; font-family: var(--display); font-size: clamp(26px, 3vw, 34px); letter-spacing: -.02em; line-height: 1.1; }
.topbar > .btn { margin-left: auto; }
.burger { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--ink-2); cursor: pointer; place-items: center; }

.alert { padding: 13px 16px; border-radius: 14px; margin-bottom: 18px; font-weight: 600; border: 1px solid; animation: fadeUp .4s var(--ease); }
.alert.ok { background: rgba(61,220,151,.1); border-color: rgba(61,220,151,.3); color: var(--ok); }
.alert.err { background: rgba(255,93,108,.1); border-color: rgba(255,93,108,.3); color: #ff9aa4; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.stat { position: relative; overflow: hidden; padding: 20px; border-radius: 20px; background: var(--ink-2); border: 1px solid var(--line); display: grid; gap: 2px; animation: fadeUp .6s var(--ease) both; }
.stat:nth-child(2) { animation-delay: .06s; } .stat:nth-child(3) { animation-delay: .12s; } .stat:nth-child(4) { animation-delay: .18s; }
.stat .ic { width: 40px; height: 40px; padding: 10px; border-radius: 12px; margin-bottom: 10px; }
.stat b { font-family: var(--display); font-size: 28px; line-height: 1.1; }
.stat span { color: var(--muted); font-size: 13px; font-weight: 600; }
.stat::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; opacity: .14; }
.s1 .ic { background: rgba(255,180,58,.15); color: var(--amber); } .s1::after { background: var(--amber); }
.s2 .ic { background: rgba(108,140,255,.15); color: var(--blue); } .s2::after { background: var(--blue); }
.s3 .ic { background: rgba(61,220,151,.15); color: var(--ok); } .s3::after { background: var(--ok); }
.s4 .ic { background: rgba(255,107,26,.15); color: #FF8A2A; } .s4::after { background: #FF6B1A; }

.grid-2 { display: grid; grid-template-columns: 1.7fr 1fr; gap: 18px; align-items: start; }
.grid-2.even { grid-template-columns: 1fr 1fr; }
.col { display: grid; gap: 18px; }
.dash { display: grid; gap: 18px; }
.dash > .col { grid-template-columns: 1fr 1fr; align-items: start; }
.nowrap { white-space: nowrap; }
.panel { background: var(--ink-2); border: 1px solid var(--line); border-radius: 20px; padding: 20px; min-width: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.panel-head h2 { margin: 0; font-family: var(--display); font-size: 19px; }
.panel-head a { color: var(--amber); font-weight: 700; font-size: 14px; }

/* tables */
.table-wrap { overflow-x: auto; margin: 0 -6px; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 14px; }
.tbl tbody tr { transition: background .2s; }
.tbl tbody tr:hover { background: rgba(255,255,255,.025); }
.tbl td small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.tbl td small a:hover { color: var(--amber); }
.row-actions { white-space: nowrap; text-align: right; }
.row-actions > * { margin-left: 4px; }

.badge { display: inline-block; font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em; }
.s-pending { background: rgba(255,180,58,.15); color: var(--amber); }
.s-confirmed { background: rgba(61,220,151,.15); color: var(--ok); }
.s-completed { background: rgba(108,140,255,.15); color: var(--blue); }
.s-cancelled { background: rgba(255,93,108,.15); color: var(--err); }
.status-select { border: 0; border-radius: 999px; padding: 6px 10px; font-weight: 800; font-size: 12px; cursor: pointer; outline: none; }
.status-select option { background: var(--ink-2); color: var(--cream); }

.empty { text-align: center; padding: 40px 10px; color: var(--muted); }
.empty .ic { width: 40px; height: 40px; margin: 0 auto 10px; opacity: .5; }

/* mini list */
.mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mini-list li { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 12px; }
.mini-list li.unread { background: rgba(255,180,58,.06); }
.mini-list small { display: block; color: var(--muted); font-size: 12px; }
.date-chip { width: 48px; flex: none; text-align: center; border-radius: 12px; background: var(--ink); border: 1px solid var(--line-2); padding: 4px 0; font-size: 11px; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.date-chip b { display: block; font-family: var(--display); font-size: 18px; color: var(--amber); line-height: 1.1; }
.avatar { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: #1b0f02; font-family: var(--display); font-weight: 800; }

/* toolbar */
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar input[type=search] { flex: 1; min-width: 200px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--ink); outline: none; }
.toolbar input:focus { border-color: var(--amber); }
.seg-links { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 22px; background: var(--ink); border: 1px solid var(--line-2); }
.seg-links a { padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: 13px; color: var(--muted); transition: all .25s; }
.seg-links a.on { background: var(--cream); color: var(--ink); }

/* inquiries */
.inq-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.inq { background: var(--ink-2); border: 1px solid var(--line); border-radius: 20px; padding: 18px; display: grid; gap: 10px; align-content: start; animation: fadeUp .5s var(--ease) both; }
.inq.unread { border-color: rgba(255,180,58,.4); }
.inq header { display: flex; gap: 12px; align-items: center; }
.inq header small { display: block; color: var(--muted); font-size: 12px; }
.inq header .badge { margin-left: auto; }
.inq h3 { margin: 0; font-size: 15px; font-family: var(--display); }
.inq p { margin: 0; color: #cfd6e4; font-size: 14px; white-space: pre-line; overflow-wrap: anywhere; }
.inq-contact { display: flex; flex-wrap: wrap; gap: 8px; }
.inq-contact a { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 10px; background: var(--ink); border: 1px solid var(--line); }
.inq-contact a:hover { border-color: var(--amber); color: var(--amber); }
.inq-contact .ic { width: 14px; height: 14px; }
.inq footer { display: flex; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }

/* vehicles */
.veh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.veh { background: var(--ink-2); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; transition: transform .4s var(--ease), border-color .3s; animation: fadeUp .5s var(--ease) both; }
.veh:hover { transform: translateY(-4px); border-color: var(--line-2); }
.veh.off .veh-img img { filter: grayscale(1) brightness(.6); }
.veh-img { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.veh-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.veh:hover .veh-img img { transform: scale(1.05); }
.veh-img .badge { position: absolute; left: 12px; top: 12px; backdrop-filter: blur(8px); background-color: rgba(11,18,32,.75); }
.veh-img .badge.pop { left: auto; right: 12px; }
.veh-body { padding: 16px; display: grid; gap: 10px; flex: 1; }
.veh-body h3 { margin: 0; font-family: var(--display); font-size: 18px; }
.veh-body > small { color: var(--muted); font-size: 13px; }
.veh-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.veh-prices div { padding: 8px 12px; border-radius: 12px; background: var(--ink); border: 1px solid var(--line); }
.veh-prices small { display: block; font-size: 11px; color: var(--muted); }
.veh-prices b { font-family: var(--display); }
.veh-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.veh.add { align-items: center; justify-content: center; text-align: center; gap: 6px; min-height: 300px; border: 2px dashed var(--line-2); background: transparent; color: var(--muted); }
.veh.add span { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; font-size: 34px; background: var(--grad); color: #1b0f02; margin-bottom: 8px; transition: transform .4s var(--ease); }
.veh.add:hover { border-color: var(--amber); color: var(--cream); }
.veh.add:hover span { transform: rotate(90deg) scale(1.08); }

/* forms */
.fld { display: grid; gap: 6px; min-width: 0; align-content: start; }
.fld > span { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.fld input, .fld select, .fld textarea, .p-in { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--ink); outline: none; color-scheme: dark; transition: border-color .2s, box-shadow .2s; }
.fld input:focus, .fld select:focus, .fld textarea:focus, .p-in:focus { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(255,180,58,.15); }
.fld.price input { font-family: var(--display); font-size: 18px; font-weight: 700; color: var(--amber); }
.hint { color: var(--ok); font-size: 12px; font-weight: 700; min-height: 16px; }
.stack-form { display: grid; gap: 14px; }

.vform { display: grid; grid-template-columns: 1fr 1.4fr; gap: 22px; }
.vfields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-content: start; }
.vfields .wide { grid-column: 1 / -1; }
.drop { position: relative; display: grid; place-items: center; min-height: 280px; border-radius: 18px; border: 2px dashed var(--line-2); background: var(--ink); cursor: pointer; overflow: hidden; transition: border-color .25s; align-self: start; aspect-ratio: 4/3; }
.drop:hover, .drop.over { border-color: var(--amber); }
.drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.drop-txt { position: relative; display: grid; justify-items: center; gap: 4px; text-align: center; padding: 16px; color: var(--muted); }
.drop-txt .ic { width: 32px; height: 32px; color: var(--amber); }
.drop-txt b { color: var(--cream); }
.drop img:not([hidden]) + .drop-txt { position: absolute; bottom: 12px; padding: 8px 14px; border-radius: 12px; background: rgba(11,18,32,.8); backdrop-filter: blur(6px); }
.drop img:not([hidden]) + .drop-txt .ic, .drop img:not([hidden]) + .drop-txt small { display: none; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.checks { display: flex; flex-wrap: wrap; gap: 20px; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; }
.switch input { position: absolute; opacity: 0; }
.switch i { width: 44px; height: 26px; border-radius: 26px; background: var(--ink-3); border: 1px solid var(--line-2); position: relative; transition: background .3s; }
.switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--cream); transition: transform .35s var(--ease); }
.switch input:checked + i { background: var(--amber); }
.switch input:checked + i::after { transform: translateX(18px); background: var(--ink); }
.switch input:focus-visible + i { outline: 2px solid var(--amber); outline-offset: 2px; }
.form-actions { display: flex; gap: 10px; margin-top: 8px; }
.panel > form > .form-actions { margin-top: 16px; }

/* prices table */
.pv { display: flex; gap: 12px; align-items: center; }
.pv img { width: 70px; height: 46px; object-fit: cover; border-radius: 10px; }
.prices-tbl td { vertical-align: middle; }
.p-in { max-width: 180px; font-family: var(--display); font-weight: 700; font-size: 16px; }
.save-badge { font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: rgba(61,220,151,.12); color: var(--ok); }
.save-badge.warn { background: rgba(255,93,108,.12); color: var(--err); }
.p-in.changed { border-color: var(--amber); }

/* note popup */
.note-pop { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(5,8,15,.65); backdrop-filter: blur(4px); padding: 16px; }
.note-pop[hidden] { display: none; }
.note-pop > div { position: relative; width: min(440px, 100%); background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 20px; padding: 22px; animation: fadeUp .35s var(--ease); }
.note-pop h3 { margin: 0 0 8px; font-family: var(--display); }
.note-pop p { margin: 0; white-space: pre-line; color: #cfd6e4; overflow-wrap: anywhere; }
.note-pop .icon-btn { position: absolute; right: 14px; top: 14px; }

/* login */
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 16px; overflow: hidden; }
.login-bg .blob { position: fixed; border-radius: 50%; filter: blur(90px); opacity: .35; animation: drift 14s ease-in-out infinite alternate; }
.login-bg .b1 { width: 460px; height: 460px; background: #FDA806; top: -140px; right: -100px; }
.login-bg .b2 { width: 420px; height: 420px; background: #0E8388; bottom: -160px; left: -120px; animation-delay: -7s; }
@keyframes drift { to { transform: translate(50px, 40px) scale(1.1); } }
.login-card { position: relative; width: min(400px, 100%); padding: 32px; border-radius: 26px; background: rgba(17,26,44,.85); border: 1px solid var(--line-2); backdrop-filter: blur(14px); display: grid; gap: 14px; animation: fadeUp .7s var(--ease); box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
.login-brand { justify-self: center; display: grid; justify-items: center; gap: 6px; padding: 18px 26px 14px; border-radius: 22px; background: var(--sand); box-shadow: 0 0 0 4px rgba(253,181,46,.25); margin-bottom: 4px; }
.login-brand .lb-emblem { width: 92px; animation: spinIn 1.1s var(--ease) both; }
.login-brand .lb-word { width: 170px; animation: fadeUp .8s .3s var(--ease) both; }
@keyframes spinIn { from { transform: scale(.4) rotate(-120deg); opacity: 0; } }
.login-card { text-align: center; }
.login-card .fld { text-align: left; }
@keyframes lane { to { stroke-dashoffset: -12.4; } }
.login-card h1 { margin: 6px 0 0; font-family: var(--display); font-size: 28px; }
.login-card p { margin: 0 0 6px; color: var(--muted); }
.login-card .alert { margin: 0; }
.back { text-align: center; color: var(--muted); font-size: 14px; }
.back:hover { color: var(--amber); }

/* responsive */
@media (max-width: 1100px) {
  .grid-2, .grid-2.even { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .side { transform: translateX(-100%); }
  .side.open { transform: none; box-shadow: 20px 0 60px rgba(0,0,0,.5); }
  .side-scrim.open { display: block; position: fixed; inset: 0; z-index: 25; background: rgba(5,8,15,.6); }
  .main { margin-left: 0; }
  .burger { display: grid; }
  .vform { grid-template-columns: 1fr; }
  .dash > .col { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .stats { gap: 10px; }
  .stat { padding: 14px; }
  .stat b { font-size: 20px; }
  .vfields { grid-template-columns: 1fr; }
  .topbar > .btn { padding: 8px 12px; }
  /* tables become cards */
  .tbl thead { display: none; }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl tr { padding: 12px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--ink); }
  .tbl td { border: 0; padding: 5px 0; white-space: normal; }
  .tbl td::before { content: attr(data-l); display: block; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
  .tbl td.row-actions { display: flex; justify-content: flex-end; }
  .tbl td.row-actions::before { display: none; }
  .table-wrap { margin: 0; }
  .p-in { max-width: none; }
  .inq-grid { grid-template-columns: 1fr; }
}

/* ================= v2 ================= */
.btn-wa { background: #25D366; color: #fff; box-shadow: 0 10px 24px -10px rgba(37,211,102,.6); }
.btn-wa:hover { transform: translateY(-2px); background: #22c35e; }
.btn .ic { width: 16px; height: 16px; }
.top-actions { margin-left: auto; display: flex; gap: 8px; }
.alert { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.alert .btn { margin-left: auto; }
a.stat { transition: transform .35s var(--ease), border-color .3s; }
a.stat:hover { transform: translateY(-4px); border-color: var(--line-2); }
.ref-link { font-weight: 800; color: var(--cream); border-bottom: 1px dashed rgba(255,180,58,.6); }
.ref-link:hover { color: var(--amber); }
.inv-tag { display: inline-block !important; margin-top: 4px !important; padding: 1px 7px; border-radius: 6px; background: rgba(108,140,255,.15); color: var(--blue) !important; font-weight: 700; }
small.sent { display: block; color: var(--ok); font-size: 11px; font-weight: 700; margin-top: 4px; }
small.unsent { display: block; color: var(--amber); font-size: 11px; font-weight: 700; margin-top: 4px; }
.center { text-align: center; }
.icon-btn.wa { background: #25D366; border-color: #25D366; color: #fff; }
.icon-btn.wa:hover { background: #22c35e; }
.icon-btn.inv { border-color: rgba(108,140,255,.5); color: var(--blue); }
.push { margin-left: auto; }
.mb { margin-bottom: 16px; display: inline-flex; }
.seg-links a i { font-style: normal; font-size: 11px; padding: 0 6px; border-radius: 999px; background: rgba(255,255,255,.1); margin-left: 4px; }
.seg-links a.on i { background: rgba(11,18,32,.12); }
.avatar.alt { background: rgba(108,140,255,.15); color: var(--blue); }
.avatar.alt .ic { width: 18px; height: 18px; }
.dash > .col.col-3 { grid-template-columns: repeat(3, 1fr); }
.mini-list li > div { min-width: 0; }
.mini-list a b:hover { color: var(--amber); }

.inq.st-converted { opacity: .75; } .inq.st-cancelled { opacity: .55; }
.inq footer { flex-wrap: wrap; align-items: center; }
.inq footer .btn .ic { width: 14px; height: 14px; }

.limits { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 12.5px; color: var(--muted); }
.limits li { display: flex; align-items: center; gap: 6px; }
.limits .ic { width: 14px; height: 14px; color: var(--amber); }

h3.sub { display: flex; align-items: center; gap: 8px; margin: 10px 0 -4px; padding-top: 14px; border-top: 1px solid var(--line); font-family: var(--display); font-size: 15px; }
h3.sub .ic { color: var(--amber); }
h3.sub small { font-family: var(--body); font-size: 12px; color: var(--muted); font-weight: 600; }

.prices-tbl .grp th { border-bottom: 0; padding-bottom: 0; color: var(--amber); font-size: 11px; }
.prices-tbl .grp th[colspan] { text-align: center; border-bottom: 2px solid rgba(255,180,58,.25); }
.p-in.sm { max-width: 110px; font-size: 14px; }
.pv .save-badge { display: inline-block; margin-top: 4px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
textarea.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; line-height: 1.5; }
.tags code { display: inline-block; margin: 2px 3px 2px 0; padding: 1px 6px; border-radius: 6px; background: var(--ink); border: 1px solid var(--line-2); font-size: 12px; color: var(--amber); }
.small { font-size: 12.5px; margin: 10px 0 0; }

/* booking editor */
.inq-banner { display: flex; gap: 14px; padding: 16px 18px; margin-bottom: 18px; border-radius: 18px; background: rgba(108,140,255,.08); border: 1px solid rgba(108,140,255,.3); }
.inq-banner > .ic { width: 22px; height: 22px; color: var(--blue); flex: none; margin-top: 2px; }
.inq-banner small { display: block; color: var(--muted); }
.inq-banner p { margin: 6px 0 0; color: #cfd6e4; }
.bk { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.bk-main { display: grid; gap: 18px; min-width: 0; }
.bk-side { position: sticky; top: 20px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fgrid .wide { grid-column: 1 / -1; }
.fgrid.five { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.step-no { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 8px; border-radius: 8px; background: var(--grad); color: #1b0f02; font-size: 13px; vertical-align: 2px; }
.chip-link { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--amber); font-weight: 700; font-size: 13px; cursor: pointer; transition: background .2s; }
.chip-link:hover { background: rgba(255,180,58,.1); }
.chip-link .ic { width: 15px; height: 15px; }
.status-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.status-pick label { position: relative; }
.status-pick input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.status-pick span { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 800; font-size: 13px; cursor: pointer; background: transparent !important; color: var(--muted) !important; transition: all .25s var(--ease); }
.status-pick input:checked + span.s-pending { background: rgba(255,180,58,.18) !important; color: var(--amber) !important; border-color: var(--amber); }
.status-pick input:checked + span.s-confirmed { background: rgba(61,220,151,.18) !important; color: var(--ok) !important; border-color: var(--ok); }
.status-pick input:checked + span.s-completed { background: rgba(108,140,255,.18) !important; color: var(--blue) !important; border-color: var(--blue); }
.status-pick input:checked + span.s-cancelled { background: rgba(255,93,108,.18) !important; color: var(--err) !important; border-color: var(--err); }
.status-pick input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 2px; }
.finish { border-color: rgba(108,140,255,.3); scroll-margin-top: 20px; }
.finish:target { animation: glow 1.6s var(--ease); }
@keyframes glow { 0%, 60% { box-shadow: 0 0 0 4px rgba(255,180,58,.35); } 100% { box-shadow: none; } }
.item-row { display: grid; grid-template-columns: 1fr 140px 34px; gap: 8px; margin-bottom: 8px; animation: fadeUp .35s var(--ease); }
.item-row input { width: 100%; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--ink); outline: none; color-scheme: dark; }
.item-row input:focus { border-color: var(--amber); }
.item-row .icon-btn { height: 42px; width: 34px; }
#addItem { justify-self: start; }

.sum { padding: 0; overflow: hidden; }
.sum-ref { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); font-family: var(--display); font-size: 18px; }
.sum dl { margin: 0; padding: 14px 20px 4px; display: grid; gap: 8px; }
.sum dl div { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding-bottom: 8px; border-bottom: 1px dashed var(--line-2); }
.sum dt { color: var(--muted); } .sum dd { margin: 0; font-weight: 700; text-align: right; }
.sum dd.warn { color: var(--amber); }
.sum .sum-total { display: flex; justify-content: space-between; align-items: center; margin: 10px 20px 0; padding: 14px 16px; border-radius: 14px; background: var(--grad); color: #1b0f02; }
.sum .sum-total b { font-family: var(--display); font-size: 24px; }
.sum .sum-total b.bump { animation: bump .35s var(--ease); }
@keyframes bump { 40% { transform: scale(1.1); } }
.sum-bal { display: flex; justify-content: space-between; padding: 10px 22px 0; font-size: 13px; color: var(--muted); }
.sum-bal b { color: var(--cream); }
.sum-actions { display: grid; gap: 8px; padding: 16px 20px 20px; }

@media (max-width: 1250px) { .dash > .col.col-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 1100px) {
  .bk { grid-template-columns: 1fr; }
  .bk-side { position: static; order: -1; }
}
@media (max-width: 640px) {
  .dash > .col.col-3, .two, .fgrid { grid-template-columns: 1fr; }
  .fgrid.five { grid-template-columns: 1fr 1fr; }
  .item-row { grid-template-columns: 1fr 100px 34px; }
  .topbar { flex-wrap: wrap; }
  .alert .btn { margin-left: 0; }
  .prices-tbl .grp { display: none; }
  .p-in.sm { max-width: none; }
}
.flash-in { animation: flashIn .7s var(--ease); }
@keyframes flashIn { 0% { box-shadow: 0 0 0 4px rgba(255,180,58,.5); } 100% { box-shadow: none; } }
