/* ============================================================
   Dentaltec Order Studio
   A warm, editorial ordering experience for modern dentistry.
   ============================================================ */

:root {
  --sidebar-w: 256px;
  --topbar-h: 76px;
  --paper: #f2efe9;
  --paper-deep: #eae5dc;
  --surface: #fffdf9;
  --surface-2: #f8f5ef;
  --white: #ffffff;
  --ink: #10141c;
  --ink-2: #232936;
  --muted: #6b707b;
  --muted-2: #8c9099;
  --line: #e2ddd4;
  --line-strong: #d3ccc0;
  --navy: #0b1120;
  --navy-2: #101b33;
  --blue: #3056ff;
  --blue-dark: #1f3ddb;
  --blue-soft: #e8edff;
  --cyan: #93e9e2;
  --mint: #dff1e8;
  --peach: #f4d4c6;
  --sand: #e9dfcf;
  --rose: #cf8d7f;
  --success: #157a53;
  --warning: #b56a1f;
  --danger: #b83a37;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, "Times New Roman", serif;
  --sans: "Avenir Next", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow-sm: 0 1px 2px rgba(16, 20, 28, .04), 0 5px 14px -8px rgba(16, 20, 28, .14);
  --shadow-md: 0 2px 6px rgba(16, 20, 28, .05), 0 18px 45px -28px rgba(16, 20, 28, .32);
  --shadow-lg: 0 24px 80px -24px rgba(9, 15, 29, .42);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-io: cubic-bezier(.65, .05, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.locked { overflow: hidden; }

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 3000;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 26px; height: 26px; }

.skip-link {
  position: fixed; left: 14px; top: -80px; z-index: 5000;
  background: var(--blue); color: #fff; padding: 12px 18px; border-radius: 999px;
  font-weight: 700; transition: top .2s;
}
.skip-link:focus { top: 14px; }

/* ------------------------------------------------------------
   Buttons + shared atoms
   ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 650; font-size: 14px; letter-spacing: -.01em; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s, border-color .2s, color .2s, box-shadow .2s;
}
.btn svg { width: 17px; height: 17px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px -10px rgba(48, 86, 255, .75); }
.btn-primary:hover { background: var(--blue-dark); box-shadow: 0 12px 26px -11px rgba(48, 86, 255, .8); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #272d3a; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: #f2f2f2; }
.btn-outline { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); background: rgba(255,255,255,.55); }
.btn-quiet { background: transparent; color: var(--ink); }
.btn-quiet:hover { background: rgba(16, 20, 28, .06); }
.btn-soft { background: var(--blue-soft); color: var(--blue-dark); }
.btn-soft:hover { background: #dce4ff; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 12.5px; gap: 6px; }
.btn-sm svg { width: 15px; height: 15px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }

.icon-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid transparent;
  background: transparent; color: var(--ink); transition: background .2s, border-color .2s, transform .2s;
  flex: none;
}
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn:hover { background: rgba(16, 20, 28, .06); }
.icon-btn.subtle { width: 32px; height: 32px; color: var(--muted); }
.icon-btn.subtle svg { width: 17px; height: 17px; }

.text-btn { background: none; border: 0; padding: 0; font-size: 12.5px; font-weight: 650; color: var(--blue-dark); }
.text-btn:hover { text-decoration: underline; }

.eyebrow {
  display: block; font-size: 10.5px; line-height: 1.1; font-weight: 750;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.display { font-family: var(--serif); font-weight: 400; letter-spacing: -.035em; line-height: .98; }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; }
.muted { color: var(--muted); }
.blue { color: var(--blue); }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.pill {
  display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 3px 10px;
  border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line);
  font-size: 11px; font-weight: 650; color: var(--muted); white-space: nowrap;
}
.pill svg { width: 12px; height: 12px; }
.pill.blue { background: var(--blue-soft); border-color: transparent; color: var(--blue-dark); }
.pill.mint { background: var(--mint); border-color: transparent; color: #1f6b50; }
.pill.peach { background: #fae9e1; border-color: transparent; color: #9b4f36; }
.pill.dark { background: var(--ink); border-color: transparent; color: #fff; }
.pill.glass { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.16); color: rgba(255,255,255,.8); backdrop-filter: blur(14px); }

.status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: #44d19d; box-shadow: 0 0 0 4px rgba(68, 209, 157, .12); flex: none; }

/* ------------------------------------------------------------
   Sidebar
   ------------------------------------------------------------ */
.app-shell { min-height: 100vh; }

.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 80; width: var(--sidebar-w);
  display: flex; flex-direction: column; gap: 20px;
  padding: 24px 16px 16px;
  color: #f4f2ed;
  background:
    radial-gradient(120% 55% at 15% 0%, rgba(48, 86, 255, .22), transparent 58%),
    radial-gradient(95% 40% at 100% 100%, rgba(106, 226, 218, .08), transparent 65%),
    linear-gradient(175deg, #0b1120 0%, #0b1325 58%, #0a1020 100%);
  border-right: 1px solid rgba(255,255,255,.06);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.18) transparent;
}
.sidebar::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.sidebar-brand { display: flex; align-items: center; justify-content: space-between; padding: 0 6px; position: relative; z-index: 1; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px;
  background: linear-gradient(145deg, #4d70ff, #2343e8 55%, #1632b6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 8px 20px -10px rgba(48,86,255,.9);
  color: #fff;
}
.brand-mark svg { width: 23px; height: 23px; stroke-width: 1.9; }
.brand-type { display: flex; flex-direction: column; line-height: 1; }
.brand-type strong { font-size: 18px; font-weight: 750; letter-spacing: -.03em; }
.brand-type span { margin-top: 4px; font-size: 9px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #8f9ab6; }
.sidebar-collapse { display: none; }

.clinic-switcher {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 10px; border-radius: 14px; text-align: left;
  background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.09);
  color: #fff; transition: background .2s, border-color .2s;
}
.clinic-switcher:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.16); }
.clinic-avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: #f0e7d6; color: #3b3020; font-family: var(--serif); font-size: 16px; flex: none; }
.clinic-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.clinic-meta strong { font-size: 12.5px; font-weight: 650; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clinic-meta small { color: #8f9ab6; font-size: 10.5px; margin-top: 2px; }
.clinic-switcher > svg { color: #8f9ab6; }

.side-nav { display: flex; flex-direction: column; gap: 23px; position: relative; z-index: 1; }
.nav-group { display: flex; flex-direction: column; gap: 3px; }
.nav-label { padding: 0 12px 8px; font-size: 9.5px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; color: #606b88; }
.nav-item {
  position: relative; display: flex; align-items: center; gap: 11px; width: 100%;
  min-height: 42px; padding: 9px 12px; border-radius: 12px; border: 0; background: transparent;
  color: #aeb7cc; font-size: 13px; font-weight: 550; letter-spacing: -.005em; text-align: left;
  transition: color .18s, background .18s;
}
.nav-item svg { width: 18px; height: 18px; color: #7f8aa5; transition: color .18s; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.05); }
.nav-item:hover svg { color: #c6d2ee; }
.nav-item.active { color: #fff; background: rgba(255,255,255,.085); box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); }
.nav-item.active::before {
  content: ""; position: absolute; left: -16px; top: 50%; width: 3px; height: 20px;
  border-radius: 0 4px 4px 0; background: linear-gradient(#83a0ff, #4d70ff); transform: translateY(-50%);
}
.nav-item.active svg { color: #b9c8ff; }
.nav-item kbd {
  margin-left: auto; font-family: var(--sans); font-size: 9px; color: #8e9ab8;
  border: 1px solid rgba(255,255,255,.14); border-radius: 5px; padding: 1px 5px; line-height: 1.5;
}
.nav-new { margin: 2px 0; background: var(--blue); color: #fff; box-shadow: 0 10px 20px -14px rgba(48,86,255,.9); }
.nav-new svg { color: #fff; }
.nav-new:hover { background: #4267ff; color: #fff; }
.nav-new:hover svg { color: #fff; }
.nav-new.active { background: var(--blue); }
.nav-count {
  margin-left: auto; font-style: normal; min-width: 20px; height: 20px; padding: 0 6px;
  display: grid; place-items: center; border-radius: 999px; font-size: 10px; font-weight: 700;
  background: rgba(255,255,255,.1); color: #dbe3f7;
}
.nav-dot { width: 6px; height: 6px; border-radius: 50%; background: #7cf0dc; margin-left: auto; box-shadow: 0 0 0 4px rgba(124,240,220,.1); }

.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 14px; position: relative; z-index: 1; }
.aria-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start;
  gap: 6px; width: 100%; padding: 15px; border-radius: 17px; text-align: left;
  background: linear-gradient(145deg, rgba(48,86,255,.24), rgba(16,25,48,.55));
  border: 1px solid rgba(133,158,255,.26); color: #f4f6ff;
}
.aria-card:hover { border-color: rgba(160,182,255,.5); }
.aria-orbit { position: absolute; width: 130px; height: 130px; right: -56px; top: -54px; border-radius: 50%; border: 1px solid rgba(146,233,226,.28); box-shadow: 0 0 0 20px rgba(146,233,226,.035), 0 0 0 46px rgba(146,233,226,.022); }
.aria-card-top { display: flex; align-items: center; gap: 7px; width: 100%; margin-bottom: 3px; }
.aria-card-top em { font-style: normal; font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: #aebfff; }
.aria-card-top .live-dot { margin-left: auto; }
.aria-avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(150deg, #e9fffc, #84eee5 40%, #5c7dff); color: #0b1a2c; box-shadow: inset 0 1px 1px rgba(255,255,255,.7), 0 6px 15px -8px rgba(0,0,0,.7); flex: none; }
.aria-avatar svg { width: 18px; height: 18px; stroke-width: 1.8; }
.aria-avatar.sm { width: 23px; height: 23px; }
.aria-avatar.sm svg { width: 12px; height: 12px; }
.aria-card strong { font-size: 12.5px; font-weight: 650; letter-spacing: -.01em; }
.aria-card > span:not(.aria-orbit):not(.aria-card-top):not(.aria-card-cta) { font-size: 10.5px; line-height: 1.4; color: #a7b3cc; }
.aria-card-cta { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 700; color: #fff; margin-top: 3px; }
.aria-card-cta svg { width: 12px; height: 12px; }

.sidebar-profile { display: flex; align-items: center; gap: 10px; padding: 10px 6px 2px; border-top: 1px solid rgba(255,255,255,.08); }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #e9dfcf; color: #473926; font-size: 11px; font-weight: 750; letter-spacing: .02em; flex: none; }
.avatar.lg { width: 44px; height: 44px; font-size: 13px; }
.sidebar-profile-copy { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.sidebar-profile-copy strong { font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-profile-copy small { font-size: 10px; color: #7f8aa5; }
.sidebar-profile .icon-btn { color: #7f8aa5; }
.sidebar-profile .icon-btn:hover { color: #fff; background: rgba(255,255,255,.08); }

/* ------------------------------------------------------------
   Top bar
   ------------------------------------------------------------ */
.content-shell { min-height: 100vh; margin-left: var(--sidebar-w); background: var(--paper); }

.topbar {
  position: sticky; top: 0; z-index: 60; height: var(--topbar-h);
  display: flex; align-items: center; gap: 16px; padding: 0 34px;
  background: rgba(242, 239, 233, .82); border-bottom: 1px solid rgba(211, 204, 192, .65);
  backdrop-filter: blur(18px) saturate(1.35);
}
.crumb { display: flex; align-items: center; gap: 7px; min-width: 140px; }
.crumb span { font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .015em; }
.crumb span::after { content: "/"; margin-left: 7px; color: #b2ada4; }
.crumb strong { font-size: 12.5px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.mobile-menu-btn { display: none; }

.search-trigger {
  display: flex; align-items: center; gap: 9px; width: min(360px, 31vw); height: 38px;
  margin-left: 10px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--line);
  background: rgba(255,255,255,.52); color: var(--muted);
  font-size: 12px; text-align: left; transition: border-color .2s, background .2s, box-shadow .2s;
}
.search-trigger:hover { border-color: var(--line-strong); background: rgba(255,255,255,.85); box-shadow: var(--shadow-sm); }
.search-trigger svg { width: 16px; height: 16px; }
.search-trigger span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-trigger kbd {
  font-family: var(--sans); font-size: 9.5px; color: #8d8a84; border: 1px solid var(--line);
  padding: 2px 6px; border-radius: 5px; background: var(--surface-2);
}
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 7px; }
.topbar-actions .btn { height: 40px; padding: 0 15px; font-size: 12.5px; gap: 7px; }
.topbar-actions .btn svg { width: 15px; height: 15px; }
.top-new { display: inline-flex; }
.cart-button { margin-left: 2px; border: 1px solid var(--line); background: rgba(255,255,255,.55); }
.cart-button:hover { background: #fff; border-color: var(--line-strong); }
.cart-count {
  position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px;
  display: grid; place-items: center; border-radius: 999px; background: var(--blue); color: #fff;
  font-size: 9px; font-weight: 750; border: 2px solid var(--paper);
}
.notif-wrap { position: relative; }
.notif-dot { position: absolute; top: 8px; right: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 2px var(--paper); }
.top-avatar {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: linear-gradient(145deg, #f0e5d2, #dfcfb6);
  color: #4a3b25; font-size: 10.5px; font-weight: 750; margin-left: 3px;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.55);
}
.top-avatar:hover { box-shadow: inset 0 0 0 3px rgba(255,255,255,.85), 0 4px 12px rgba(0,0,0,.08); }

.popover {
  position: absolute; z-index: 120; width: min(360px, calc(100vw - 28px));
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-lg); overflow: hidden;
  animation: popoverIn .18s var(--ease);
}
@keyframes popoverIn { from { opacity: 0; transform: translateY(-5px) scale(.985); } to { opacity: 1; transform: none; } }
.notif-panel { top: calc(100% + 6px); right: 92px; }
.popover-head { display: flex; align-items: center; justify-content: space-between; padding: 15px 16px; border-bottom: 1px solid var(--line); }
.popover-head strong { font-size: 13px; }
.notif-list { display: flex; flex-direction: column; padding: 5px; }
.notif-item { display: flex; align-items: flex-start; gap: 11px; padding: 11px; border: 0; border-radius: 12px; background: transparent; text-align: left; }
.notif-item:hover { background: var(--surface-2); }
.notif-item.unread { background: #fafbff; }
.notif-item.unread:hover { background: #f2f5ff; }
.notif-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; flex: none; }
.notif-icon svg { width: 15px; height: 15px; }
.notif-icon.blue { background: var(--blue-soft); color: var(--blue-dark); }
.notif-icon.peach { background: #fae9e1; color: #9b4f36; }
.notif-icon.mint { background: var(--mint); color: #1f6b50; }
.notif-item span:last-child { display: flex; flex-direction: column; gap: 2px; }
.notif-item strong { font-size: 11.5px; font-weight: 650; }
.notif-item small { font-size: 10px; color: var(--muted); }
.popover-foot { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 13px 16px; border: 0; border-top: 1px solid var(--line); background: transparent; font-size: 11.5px; font-weight: 650; color: var(--blue-dark); }
.popover-foot svg { width: 14px; height: 14px; }

.profile-panel { top: calc(100% + 6px); right: 20px; width: 250px; padding: 7px; }
.profile-panel-head { display: flex; align-items: center; gap: 10px; padding: 10px; border-bottom: 1px solid var(--line); margin-bottom: 5px; }
.profile-panel-head span:last-child { display: flex; flex-direction: column; }
.profile-panel-head strong { font-size: 12px; }
.profile-panel-head small { font-size: 10px; color: var(--muted); }
.profile-panel > button { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 10px; border: 0; border-radius: 9px; background: transparent; font-size: 12px; text-align: left; }
.profile-panel > button:hover { background: var(--surface-2); }
.profile-panel > button svg { width: 15px; height: 15px; color: var(--muted); }
.profile-panel > button.danger { color: var(--danger); }
.profile-panel > button.danger svg { color: var(--danger); }
.demo-note { display: flex; align-items: center; gap: 7px; padding: 11px 10px 7px; border-top: 1px solid var(--line); margin-top: 5px; font-size: 9.5px; color: var(--muted); }

/* ------------------------------------------------------------
   Main / pages
   ------------------------------------------------------------ */
#main { outline: none; }
.page { width: 100%; max-width: 1510px; margin: 0 auto; padding: 32px 38px 86px; }
.page > * { animation: pageIn .55s var(--ease) both; }
.page > *:nth-child(2) { animation-delay: .04s; }
.page > *:nth-child(3) { animation-delay: .08s; }
.page > *:nth-child(4) { animation-delay: .11s; }
.page > *:nth-child(5) { animation-delay: .14s; }
@keyframes pageIn { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }

.page-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.page-intro h1 { font-family: var(--serif); font-size: clamp(32px, 3.3vw, 47px); font-weight: 400; letter-spacing: -.035em; line-height: 1.02; }
.page-intro h1 em { font-style: italic; color: var(--blue); }
.page-intro .intro-meta { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; color: var(--muted); font-size: 12px; }
.page-intro .intro-meta > span { display: inline-flex; align-items: center; gap: 5px; }
.page-intro .intro-actions { display: flex; gap: 9px; flex: none; }
.page-intro .eyebrow { margin-bottom: 9px; }
.intro-meta .dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin: 34px 0 15px; }
.section-head h2 { font-family: var(--serif); font-size: 29px; font-weight: 400; letter-spacing: -.03em; line-height: 1.05; }
.section-head p { font-size: 12px; color: var(--muted); margin-top: 5px; }
.section-link { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.section-link svg { width: 14px; height: 14px; transition: transform .2s; }
.section-link:hover svg { transform: translateX(3px); }

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */
.studio-hero {
  position: relative; display: grid; grid-template-columns: 1.04fr .96fr; gap: 20px;
  min-height: 428px; padding: 42px 46px 38px; border-radius: 30px; overflow: hidden;
  color: #fff; isolation: isolate;
  background:
    radial-gradient(80% 120% at 94% 22%, rgba(60, 102, 255, .48), transparent 53%),
    radial-gradient(60% 80% at 77% 100%, rgba(99, 230, 219, .13), transparent 60%),
    linear-gradient(118deg, #0a101d 0%, #0c1529 53%, #101d3a 100%);
  box-shadow: 0 30px 80px -44px rgba(11, 17, 32, .7);
}
.studio-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.14) .7px, transparent .7px);
  background-size: 18px 18px; opacity: .16; mask-image: linear-gradient(90deg, #000, transparent 48%);
}
.studio-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); border-radius: inherit;
}
.hero-copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; max-width: 570px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.07); color: #cbd5ef; font-size: 9.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; backdrop-filter: blur(10px); }
.hero-kicker svg { width: 12px; height: 12px; color: var(--cyan); }
.hero-kicker .live-dot { width: 5px; height: 5px; }
.hero-copy h1 { margin: 17px 0 15px; max-width: 520px; font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 4.65vw, 68px); line-height: .94; letter-spacing: -.045em; }
.hero-copy h1 em { font-style: italic; color: #aebfff; }
.hero-copy p { max-width: 410px; color: #a9b4cc; font-size: 13px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.hero-actions .btn { height: 44px; font-size: 12.5px; }
.hero-actions .btn-white { color: #10141c; }
.hero-actions .btn-glass { background: rgba(255,255,255,.07); color: #fff; border-color: rgba(255,255,255,.16); backdrop-filter: blur(10px); }
.hero-actions .btn-glass:hover { background: rgba(255,255,255,.12); }
.hero-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 0; margin-top: 26px; color: #8b97b0; font-size: 9.5px; }
.hero-stat { padding: 0 15px; border-left: 1px solid rgba(255,255,255,.12); line-height: 1.35; }
.hero-stat:first-child { padding-left: 0; border-left: 0; }
.hero-stat strong { display: block; color: #e6eaf3; font-size: 11px; font-weight: 650; }
.hero-stat span { font-size: 9px; color: #8793ad; }

.hero-art { position: relative; min-height: 340px; display: flex; align-items: center; justify-content: center; }
.hero-ring { position: absolute; width: min(360px, 84%); aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(146, 233, 226, .2); box-shadow: 0 0 0 34px rgba(255,255,255,.015), 0 0 0 70px rgba(255,255,255,.01); }
.hero-ring::before { content: ""; position: absolute; inset: 18%; border-radius: 50%; border: 1px dashed rgba(255,255,255,.1); }
.hero-glow { position: absolute; width: 72%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(84, 134, 255, .5), rgba(50, 214, 203, .13) 45%, transparent 68%); filter: blur(10px); }
.hero-denture {
  position: relative; z-index: 2; width: min(440px, 102%); max-height: 350px; object-fit: contain;
  filter: drop-shadow(0 38px 32px rgba(0,0,0,.5)) saturate(1.04) contrast(1.03);
  transform: rotate(-7deg) translateY(3px);
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: rotate(-7deg) translateY(3px); } 50% { transform: rotate(-5deg) translateY(-8px); } }
.hero-crown-card {
  position: absolute; z-index: 3; left: -4%; bottom: 2%; display: flex; align-items: center; gap: 9px;
  padding: 9px 12px 9px 9px; border-radius: 14px; background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(16px); box-shadow: 0 18px 40px -24px #000;
}
.hero-crown-card img { width: 38px; height: 38px; object-fit: contain; border-radius: 9px; background: rgba(255,255,255,.08); }
.hero-crown-card span { display: flex; flex-direction: column; }
.hero-crown-card strong { font-size: 10px; font-weight: 650; color: #fff; }
.hero-crown-card small { font-size: 8.5px; color: #99a7c1; margin-top: 1px; }
.hero-spec {
  position: absolute; z-index: 3; right: 0; top: 3%; width: 151px; padding: 13px;
  border-radius: 16px; background: rgba(255,255,255,.92); color: var(--ink);
  border: 1px solid rgba(255,255,255,.5); box-shadow: 0 22px 45px -24px rgba(0,0,0,.55);
  transform: rotate(2deg);
}
.hero-spec-top { display: flex; align-items: center; justify-content: space-between; font-size: 8px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.hero-spec-top svg { width: 13px; height: 13px; color: var(--success); }
.hero-spec strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 20px; letter-spacing: -.03em; margin: 8px 0 2px; }
.hero-spec small { display: block; font-size: 9px; color: var(--muted); }
.hero-spec-bar { height: 3px; background: #e9e4db; border-radius: 2px; margin-top: 10px; overflow: hidden; }
.hero-spec-bar span { display: block; width: 72%; height: 100%; background: linear-gradient(90deg, var(--blue), #7ee7de); border-radius: inherit; }
.hero-scan-badge {
  position: absolute; z-index: 3; right: 6%; bottom: 1%; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 10px; border-radius: 999px; background: rgba(8, 16, 31, .64); border: 1px solid rgba(255,255,255,.14);
  color: #cfd9ec; font-size: 8.5px; font-weight: 600; backdrop-filter: blur(10px);
}
.hero-scan-badge svg { width: 12px; height: 12px; color: var(--cyan); }

/* ------------------------------------------------------------
   Metrics
   ------------------------------------------------------------ */
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
.metric-card {
  position: relative; overflow: hidden; min-height: 128px; padding: 17px 17px 15px;
  border-radius: 19px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.metric-card::after { content: ""; position: absolute; right: -30px; bottom: -40px; width: 95px; height: 95px; border-radius: 50%; background: radial-gradient(circle, rgba(48,86,255,.09), transparent 68%); }
.metric-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 10.5px; font-weight: 600; }
.metric-label svg { width: 15px; height: 15px; color: #a6a39c; }
.metric-value { font-family: var(--serif); font-size: 34px; font-weight: 400; letter-spacing: -.04em; line-height: 1; margin: 12px 0 7px; }
.metric-value small { font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-left: 2px; }
.metric-sub { display: flex; align-items: center; gap: 6px; font-size: 9.5px; color: var(--muted); }
.metric-delta { display: inline-flex; align-items: center; gap: 3px; color: var(--success); font-weight: 650; }
.metric-delta.down { color: var(--danger); }
.metric-delta svg { width: 10px; height: 10px; }
.metric-spark { position: absolute; right: 15px; bottom: 14px; width: 57px; height: 22px; opacity: .8; }
.metric-spark path { fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-linecap: round; }
.metric-spark .fill { fill: url(#sparkfill); stroke: none; opacity: .12; }

/* ------------------------------------------------------------
   Cases
   ------------------------------------------------------------ */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.case-card {
  position: relative; display: flex; flex-direction: column; gap: 0; padding: 15px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.case-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.case-card-top { display: flex; align-items: flex-start; gap: 11px; }
.case-thumb { width: 58px; height: 58px; border-radius: 13px; display: grid; place-items: center; overflow: hidden; flex: none; border: 1px solid rgba(16,20,28,.05); }
.case-thumb img { width: 86%; height: 86%; object-fit: contain; filter: drop-shadow(0 5px 7px rgba(0,0,0,.16)); }
.case-thumb.tone-ivory { background: linear-gradient(145deg, #ede4d6, #fbf7ef); }
.case-thumb.tone-blue { background: linear-gradient(145deg, #dbe7ff, #f2f6ff); }
.case-thumb.tone-blush { background: linear-gradient(145deg, #f4ded7, #fdf7f3); }
.case-thumb.tone-sage { background: linear-gradient(145deg, #dfe8dd, #f7f8f2); }
.case-thumb.tone-ink { background: linear-gradient(145deg, #172135, #2e3d5a); }
.case-card-meta { min-width: 0; flex: 1; }
.case-card-meta .case-id { display: flex; align-items: center; gap: 6px; font-size: 9.5px; font-weight: 700; letter-spacing: .09em; color: var(--muted); text-transform: uppercase; }
.case-card-meta h3 { margin: 4px 0 3px; font-size: 13.5px; font-weight: 650; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.case-card-meta small { font-size: 10px; color: var(--muted); }
.case-card .pill { position: absolute; top: 15px; right: 15px; }
.case-progress { margin-top: 15px; }
.progress-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 9px; color: var(--muted); }
.progress-top strong { color: var(--ink); font-weight: 650; font-size: 9.5px; }
.progress-track { height: 4px; background: #eae5dd; border-radius: 99px; margin-top: 7px; overflow: hidden; }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), #73d9e0); transition: width .5s var(--ease); }
.case-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; padding-top: 11px; border-top: 1px solid #ece7df; }
.case-due { display: flex; align-items: center; gap: 5px; font-size: 9.5px; color: var(--muted); }
.case-due svg { width: 12px; height: 12px; }
.case-due strong { color: var(--ink); font-weight: 650; }
.case-link { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 700; color: var(--blue-dark); }
.case-link svg { width: 12px; height: 12px; }

/* ------------------------------------------------------------
   Specialty rail
   ------------------------------------------------------------ */
.specialty-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; }
.specialty-card {
  position: relative; overflow: hidden; min-height: 192px; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 16px; border-radius: 19px; color: #fff; isolation: isolate;
  background: #1a2130; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.specialty-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.specialty-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8,12,22,0) 24%, rgba(8,12,22,.72) 75%, rgba(8,12,22,.9) 100%);
}
.specialty-card img { position: absolute; z-index: -2; right: -15%; top: -16%; width: 100%; height: 95%; object-fit: contain; filter: drop-shadow(0 18px 22px rgba(0,0,0,.34)); transition: transform .5s var(--ease); }
.specialty-card:hover img { transform: scale(1.05) rotate(-1deg); }
.specialty-card .sc-count { position: absolute; top: 13px; left: 14px; display: inline-flex; align-items: center; gap: 5px; font-size: 8.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.68); }
.specialty-card .sc-count::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--cyan); }
.specialty-card .sc-arrow { position: absolute; right: 13px; top: 12px; display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: rgba(255,255,255,.11); border: 1px solid rgba(255,255,255,.13); backdrop-filter: blur(8px); }
.specialty-card .sc-arrow svg { width: 12px; height: 12px; }
.specialty-card h3 { font-family: var(--serif); font-size: 21px; font-weight: 400; letter-spacing: -.03em; line-height: 1.02; }
.specialty-card p { margin-top: 4px; font-size: 9px; color: rgba(255,255,255,.65); }
.specialty-card.tone-crowns { background: linear-gradient(145deg, #3f3a31, #181713); }
.specialty-card.tone-dentures { background: linear-gradient(145deg, #6e5448, #251a18); }
.specialty-card.tone-precision { background: linear-gradient(145deg, #274554, #0c1921); }
.specialty-card.tone-implants { background: linear-gradient(145deg, #2d3e61, #101728); }
.specialty-card.tone-aligners { background: linear-gradient(145deg, #1b5d75, #0b2437); }
.specialty-card.tone-ortho { background: linear-gradient(145deg, #4e5d42, #171e13); }
.specialty-card.tone-sleep { background: linear-gradient(145deg, #34386b, #11132b); }
.specialty-card.tone-all { background: linear-gradient(145deg, #3056ff, #172a99); justify-content: space-between; align-items: flex-start; }
.specialty-card.tone-all::after { background: radial-gradient(circle at 80% 10%, rgba(137,238,229,.35), transparent 46%); }
.specialty-card.tone-all h3 { font-size: 25px; max-width: 150px; margin-top: 12px; }
.specialty-card.tone-all p { color: #b9c7ff; }
.specialty-card.tone-all .sc-arrow { width: 36px; height: 36px; background: #fff; color: var(--blue-dark); border: 0; top: auto; bottom: 16px; }
.specialty-card.tone-all .sc-arrow svg { width: 17px; height: 17px; }

/* ------------------------------------------------------------
   Overview split / AI promo / Collection
   ------------------------------------------------------------ */
.overview-split { display: grid; grid-template-columns: 1.36fr .84fr; gap: 13px; margin-top: 13px; }
.ai-promo {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
  min-height: 236px; padding: 23px; border-radius: 22px; color: #fff; isolation: isolate;
  background:
    radial-gradient(90% 120% at 88% 0%, rgba(48,86,255,.55), transparent 53%),
    radial-gradient(80% 100% at 0% 100%, rgba(93,224,216,.16), transparent 58%),
    linear-gradient(125deg, #0b1221, #111e3a);
  border: 1px solid rgba(255,255,255,.07);
}
.ai-promo::before { content: ""; position: absolute; z-index: -1; width: 230px; height: 230px; right: -55px; bottom: -110px; border-radius: 50%; border: 1px solid rgba(146,233,226,.18); box-shadow: 0 0 0 30px rgba(146,233,226,.025), 0 0 0 60px rgba(146,233,226,.018); }
.ai-promo-head { display: flex; align-items: center; gap: 9px; }
.ai-promo-head .aria-avatar { width: 31px; height: 31px; }
.ai-promo-head .aria-avatar svg { width: 15px; height: 15px; }
.ai-promo-head strong { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #b9c7e4; font-weight: 700; }
.ai-promo-head .live-dot { margin-left: auto; }
.ai-promo h3 { max-width: 410px; margin: 15px 0 5px; font-family: var(--serif); font-size: 31px; font-weight: 400; letter-spacing: -.035em; line-height: .99; }
.ai-promo h3 em { font-style: italic; color: #a9baff; }
.ai-promo p { max-width: 390px; font-size: 11px; line-height: 1.6; color: #9eabc4; }
.ai-chat-preview { display: flex; align-items: flex-end; gap: 7px; margin-top: 15px; }
.ai-bubble { max-width: 335px; padding: 9px 12px; border-radius: 12px 12px 12px 3px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.1); color: #d8dfef; font-size: 10px; line-height: 1.45; backdrop-filter: blur(8px); }
.ai-bubble strong { color: #fff; font-weight: 650; }
.ai-promo-actions { display: flex; align-items: center; gap: 8px; margin-top: 15px; flex-wrap: wrap; }
.ai-prompt-chip { display: inline-flex; align-items: center; gap: 5px; height: 29px; padding: 0 11px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.07); color: #dbe3f4; font-size: 9.5px; font-weight: 600; }
.ai-prompt-chip:hover { background: rgba(255,255,255,.13); }
.ai-prompt-chip svg { width: 11px; height: 11px; color: var(--cyan); }

.next-collection {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
  min-height: 236px; padding: 21px; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.next-collection::before { content: ""; position: absolute; right: -50px; top: -60px; width: 170px; height: 170px; border-radius: 50%; background: #edf0ff; opacity: .7; }
.next-collection > * { position: relative; z-index: 1; }
.collection-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.collection-top .eyebrow { margin-bottom: 4px; }
.collection-top h3 { font-family: var(--serif); font-size: 23px; font-weight: 400; letter-spacing: -.03em; margin-top: 4px; }
.collection-date { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.date-tile { display: grid; place-items: center; width: 49px; height: 54px; border-radius: 11px; background: var(--blue); color: #fff; line-height: 1; flex: none; }
.date-tile small { font-size: 8px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.date-tile strong { font-family: var(--serif); font-size: 23px; font-weight: 400; margin-top: 2px; }
.collection-date-copy { display: flex; flex-direction: column; gap: 2px; }
.collection-date-copy strong { font-size: 12px; font-weight: 650; }
.collection-date-copy small { font-size: 10px; color: var(--muted); }
.collection-address { display: flex; align-items: flex-start; gap: 6px; margin-top: 14px; font-size: 10px; line-height: 1.45; color: var(--muted); }
.collection-address svg { width: 13px; height: 13px; color: var(--muted); margin-top: 1px; }
.collection-actions { display: flex; gap: 8px; margin-top: 15px; }
.collection-actions .btn { height: 34px; padding: 0 13px; font-size: 10.5px; }

/* ------------------------------------------------------------
   Table
   ------------------------------------------------------------ */
.table-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-sm); }
.table-card-head { display: flex; align-items: center; justify-content: space-between; padding: 17px 19px; border-bottom: 1px solid var(--line); }
.table-card-head h3 { font-size: 14px; font-weight: 650; letter-spacing: -.02em; }
.table-card-head p { font-size: 10px; color: var(--muted); margin-top: 2px; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 10px 19px; text-align: left; font-size: 8.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); background: #faf8f3; }
.data-table td { padding: 13px 19px; border-bottom: 1px solid #ede8df; font-size: 11.5px; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr { transition: background .15s; }
.data-table tbody tr:hover { background: #fbf9f4; }
.table-product { display: flex; align-items: center; gap: 10px; }
.table-thumb { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; background: #f4efe7; overflow: hidden; flex: none; }
.table-thumb img { width: 88%; height: 88%; object-fit: contain; }
.table-product strong { display: block; font-size: 11.5px; font-weight: 650; }
.table-product small { display: block; font-size: 9.5px; color: var(--muted); margin-top: 1px; }
.table-status { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 600; }
.table-status .status-dot { width: 5px; height: 5px; }
.table-status.production { color: #6b4fe0; }
.table-status.design { color: var(--warning); }
.table-status.qc { color: var(--blue-dark); }
.table-status.delivered { color: var(--success); }
.table-action { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--muted); }
.table-action:hover { border-color: var(--ink); color: var(--ink); }
.table-action svg { width: 12px; height: 12px; }

/* ------------------------------------------------------------
   Catalogue
   ------------------------------------------------------------ */
.catalogue-head { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: end; padding: 22px 0 25px; }
.catalogue-head h1 { font-family: var(--serif); font-size: clamp(42px, 5.3vw, 76px); font-weight: 400; letter-spacing: -.048em; line-height: .91; }
.catalogue-head h1 em { font-style: italic; color: var(--blue); }
.catalogue-head .cat-intro { padding-bottom: 10px; max-width: 365px; justify-self: end; }
.catalogue-head .cat-intro p { color: var(--muted); font-size: 12px; line-height: 1.65; }
.catalogue-head .cat-intro-row { display: flex; gap: 20px; margin-top: 17px; }
.catalogue-head .cat-intro-row span { font-size: 10px; color: var(--muted); }
.catalogue-head .cat-intro-row strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 22px; color: var(--ink); letter-spacing: -.02em; }

.filter-bar {
  position: sticky; top: var(--topbar-h); z-index: 45; display: flex; align-items: center; gap: 12px;
  padding: 10px 0; margin: 0 0 20px; background: rgba(242, 239, 233, .9);
  backdrop-filter: blur(14px); border-bottom: 1px solid rgba(211,204,192,.55);
}
.filter-scroll { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.filter-scroll::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--muted); font-size: 10.5px; font-weight: 600; white-space: nowrap; transition: all .18s;
}
.chip:hover { border-color: var(--line-strong); color: var(--ink); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip .chip-count { display: none; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: rgba(16,20,28,.07); font-size: 8.5px; }
.chip.active .chip-count { display: grid; background: rgba(255,255,255,.16); }
.catalogue-tools { display: flex; align-items: center; gap: 6px; flex: none; }
.select-pill { height: 34px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); padding: 0 31px 0 12px; font-size: 10.5px; font-weight: 600; color: var(--muted); appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b707b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; }
.result-count { font-size: 10px; color: var(--muted); margin-bottom: 13px; }
.result-count strong { color: var(--ink); font-weight: 650; }

.price-list-page { padding-bottom: 30px; }
.price-list-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.price-list-head h1 { margin: 4px 0 7px; }
.price-list-head p { max-width: 590px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.price-list-actions { display: flex; gap: 8px; flex-shrink: 0; }
.price-currency-note { margin: 0 0 16px; }
.price-currency-note code { font-size: 9px; background: #f2ede3; padding: 1px 4px; border-radius: 3px; }
.price-cat-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.price-cat-nav a { display: inline-flex; align-items: center; gap: 5px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: 8.5px; font-weight: 650; text-decoration: none; }
.price-cat-nav a span { display: inline-grid; place-items: center; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 999px; background: #f2ede3; color: var(--muted); font-size: 7.5px; }
.price-group { margin-top: 26px; scroll-margin-top: 86px; }
.price-group-head { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 12px; }
.price-group-head h2 { font-family: var(--serif); font-size: 25px; font-weight: 500; letter-spacing: -.02em; color: var(--ink); }
.price-group-head span { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .1em; }
.price-list-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.price-item { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: var(--shadow-sm); }
.price-item-photo { height: 150px; background: linear-gradient(145deg, #f0e9df, #fbf8f2); display: grid; place-items: center; overflow: hidden; }
.price-item-photo img { width: 76%; height: 84%; object-fit: contain; filter: drop-shadow(0 12px 10px rgba(52, 40, 26, .14)); }
.price-item-body { display: flex; flex-direction: column; flex: 1; padding: 12px; }
.price-item-kicker { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 7.5px; text-transform: uppercase; letter-spacing: .08em; }
.price-item-kicker code { font-size: 7.5px; letter-spacing: .04em; padding: 2px 5px; border-radius: 4px; background: #f2ede3; color: var(--ink-2); }
.price-item-body h3 { margin: 5px 0 4px; font-size: 12px; letter-spacing: -.01em; }
.price-item-body p { flex: 1; margin: 0 0 10px; color: var(--muted); font-size: 8.5px; line-height: 1.55; }
.price-item-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding-top: 8px; }
.price-item-foot > div { display: flex; flex-direction: column; gap: 1px; }
.price-item-foot strong { font-size: 14px; color: var(--ink); }
.price-item-foot small { font-size: 7.5px; color: var(--muted); }
.price-item-php { margin-top: 7px; font-size: 7.5px; color: #4b6a56; }
.price-item-php.muted { color: var(--muted-2); }
.price-list-loading { padding: 60px 0; }
@media (max-width: 1050px) { .price-list-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .price-list-head { align-items: flex-start; flex-direction: column; } .price-list-grid { grid-template-columns: 1fr; } }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.product-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border-radius: 20px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.product-media {
  position: relative; height: 218px; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(145deg, #f0e9df, #fbf8f2);
}
.product-media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 65%, rgba(255,255,255,.6), transparent 54%); pointer-events: none; }
.product-media img { position: absolute; z-index: 1; left: 14.5%; top: 11%; width: 71%; height: 78%; object-fit: contain; filter: drop-shadow(0 16px 14px rgba(52, 40, 26, .16)); transition: transform .45s var(--ease); }
.product-card:hover .product-media img { transform: scale(1.055) translateY(-2px); }
.tone-ivory .product-media, .product-media.tone-ivory { background: linear-gradient(145deg, #ece3d5, #fbf8f1); }
.tone-blue .product-media, .product-media.tone-blue { background: linear-gradient(145deg, #dce7fb, #f5f8ff); }
.tone-blush .product-media, .product-media.tone-blush { background: linear-gradient(145deg, #f3dfd7, #fdf7f3); }
.tone-sage .product-media, .product-media.tone-sage { background: linear-gradient(145deg, #dfe8db, #f7f8f2); }
.tone-ink .product-media, .product-media.tone-ink { background: linear-gradient(145deg, #182237, #2c3a56); }
.tone-ink .product-media img { filter: drop-shadow(0 17px 16px rgba(0,0,0,.4)); }
.tone-sand .product-media, .product-media.tone-sand { background: linear-gradient(145deg, #e9ddcb, #f9f4ea); }
.tone-mint .product-media, .product-media.tone-mint { background: linear-gradient(145deg, #d9eee7, #f4faf6); }
.tone-night .product-media, .product-media.tone-night { background: linear-gradient(145deg, #161a38, #252b55); }
.tone-night .product-media img { filter: drop-shadow(0 17px 18px rgba(0,0,0,.45)); }
.tone-aqua .product-media, .product-media.tone-aqua { background: radial-gradient(circle at 52% 45%, #1d7b90 0%, #0d4358 56%, #092c3d 100%); }
.tone-aqua .product-media::after, .product-media.tone-aqua::after { background: radial-gradient(circle at 50% 60%, rgba(136,247,241,.22), transparent 58%); }
.tone-aqua .product-media img, .product-media.tone-aqua img { filter: drop-shadow(0 15px 18px rgba(0,0,0,.4)) saturate(1.2) contrast(1.1); }

.product-badges { position: absolute; z-index: 2; top: 11px; left: 11px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.product-badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 6px; background: rgba(255,255,255,.9); border: 1px solid rgba(255,255,255,.8); backdrop-filter: blur(7px); font-size: 8px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; color: #35322d; }
.product-badge.blue { background: var(--blue); color: #fff; border-color: transparent; }
.product-badge.dark { background: rgba(12,18,31,.82); color: #fff; border-color: rgba(255,255,255,.14); }
.product-badge.soft { background: rgba(255,255,255,.13); color: #dce5f8; border-color: rgba(255,255,255,.16); }
.product-fav { position: absolute; z-index: 2; top: 10px; right: 10px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.75); color: #6d6a63; backdrop-filter: blur(8px); transition: all .2s; }
.product-fav:hover, .product-fav.active { background: #fff; color: var(--blue); }
.product-fav svg { width: 14px; height: 14px; }
.product-quick { position: absolute; z-index: 2; right: 11px; bottom: 11px; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; border: 0; background: var(--ink); color: #fff; font-size: 9.5px; font-weight: 650; opacity: 0; transform: translateY(5px); transition: all .25s var(--ease); box-shadow: 0 8px 16px -8px rgba(0,0,0,.45); }
.product-card:hover .product-quick { opacity: 1; transform: none; }
.product-quick:hover { background: var(--blue); }
.product-quick svg { width: 13px; height: 13px; }
.product-info { display: flex; flex-direction: column; flex: 1; padding: 13px 14px 14px; }
.product-cat { font-size: 8px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.product-name { margin: 5px 0 5px; font-size: 13px; line-height: 1.25; font-weight: 650; letter-spacing: -.015em; }
.product-sub { font-size: 9.5px; line-height: 1.4; color: var(--muted); min-height: 27px; }
.product-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #ede8df; }
.product-price { font-size: 9px; color: var(--muted); }
.product-price strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 19px; color: var(--ink); letter-spacing: -.02em; line-height: 1.1; margin-top: 1px; }
.product-turn { display: inline-flex; align-items: center; gap: 4px; font-size: 8.5px; color: var(--muted); white-space: nowrap; }
.product-turn svg { width: 11px; height: 11px; }

.empty-state { display: grid; place-items: center; padding: 70px 20px; text-align: center; border: 1px dashed var(--line-strong); border-radius: 20px; background: rgba(255,255,255,.35); }
.empty-state svg { width: 28px; height: 28px; color: var(--muted); margin-bottom: 12px; }
.empty-state h3 { font-family: var(--serif); font-size: 24px; font-weight: 400; }
.empty-state p { margin: 5px 0 16px; color: var(--muted); font-size: 11px; }

/* ------------------------------------------------------------
   Product modal
   ------------------------------------------------------------ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1500; display: flex; align-items: center; justify-content: center;
  padding: 22px; background: rgba(10, 14, 24, .55); backdrop-filter: blur(8px);
  overflow-y: auto; animation: overlayIn .2s ease both;
}
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }
.modal-panel {
  position: relative; width: min(1080px, 100%); max-height: calc(100vh - 44px); overflow-y: auto;
  background: var(--surface); border: 1px solid rgba(255,255,255,.6); border-radius: 26px;
  box-shadow: 0 40px 120px -30px rgba(0,0,0,.55); animation: modalIn .3s var(--ease) both;
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 4; width: 36px; height: 36px; background: rgba(255,255,255,.72); border: 1px solid rgba(16,20,28,.08); backdrop-filter: blur(10px); }
.modal-close:hover { background: #fff; }
.product-modal { display: grid; grid-template-columns: .95fr 1.05fr; overflow: hidden; }
.product-modal .modal-close { background: rgba(255,255,255,.8); }
.product-modal-media { position: relative; min-height: 530px; display: flex; flex-direction: column; padding: 30px; overflow: hidden; background: linear-gradient(145deg, #e9e0d3, #fbf8f2); }
.product-modal-media::after { content: ""; position: absolute; width: 330px; height: 330px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.8), transparent 65%); left: 50%; top: 44%; transform: translate(-50%,-50%); }
.product-modal-media img { position: relative; z-index: 1; width: 100%; height: 360px; object-fit: contain; filter: drop-shadow(0 26px 24px rgba(40,30,20,.17)); }
.product-modal-media.tone-blue { background: linear-gradient(145deg, #d8e4fb, #f2f6ff); }
.product-modal-media.tone-ink, .product-modal-media.tone-night { background: linear-gradient(145deg, #121a2b, #273552); }
.product-modal-media.tone-ink::after, .product-modal-media.tone-night::after { background: radial-gradient(circle, rgba(120,160,255,.25), transparent 65%); }
.product-modal-media.tone-ink img, .product-modal-media.tone-night img { filter: drop-shadow(0 26px 30px rgba(0,0,0,.5)); }
.product-modal-media.tone-sage { background: linear-gradient(145deg, #dde9da, #f5f8f1); }
.product-modal-media.tone-blush { background: linear-gradient(145deg, #f1dcd3, #fdf7f3); }
.product-modal-media.tone-mint { background: linear-gradient(145deg, #d8eee5, #f4faf6); }
.product-modal-media.tone-aqua { background: radial-gradient(circle at 52% 45%, #1d7b90 0%, #0d4358 56%, #092c3d 100%); }
.product-modal-media.tone-aqua::after { background: radial-gradient(circle, rgba(136,247,241,.22), transparent 65%); }
.product-modal-media.tone-aqua img { filter: drop-shadow(0 26px 30px rgba(0,0,0,.5)) saturate(1.2); }
.product-modal-media.tone-sand { background: linear-gradient(145deg, #e7dbc9, #faf5eb); }
.product-modal-media .modal-kicker { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; }
.product-modal-media .modal-kicker .pill { background: rgba(255,255,255,.68); border-color: rgba(255,255,255,.7); }
.product-modal-media .modal-kicker .eyebrow { color: rgba(16,20,28,.5); }
.pm-thumbs { position: relative; z-index: 2; display: flex; gap: 7px; margin-top: auto; }
.pm-thumb { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 10px; background: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.7); overflow: hidden; }
.pm-thumb.active { border-color: var(--ink); }
.pm-thumb img { width: 86%; height: 86%; object-fit: contain; }
.pm-note { position: relative; z-index: 2; display: flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 9px; color: var(--muted); }
.pm-note svg { width: 12px; height: 12px; color: var(--success); }

.product-modal-body { padding: 34px 36px 30px; display: flex; flex-direction: column; }
.product-modal-body .product-cat { font-size: 9px; }
.product-modal-body h2 { margin: 7px 0 8px; font-family: var(--serif); font-size: 38px; font-weight: 400; line-height: .98; letter-spacing: -.04em; }
.product-modal-body .pm-desc { font-size: 12px; line-height: 1.65; color: var(--muted); max-width: 460px; }
.pm-meta { display: flex; gap: 20px; margin: 20px 0 17px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pm-meta > div { display: flex; flex-direction: column; gap: 3px; }
.pm-meta span { font-size: 8.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 650; }
.pm-meta strong { font-size: 13px; font-weight: 650; }
.pm-meta .pm-price { font-family: var(--serif); font-size: 25px; font-weight: 400; letter-spacing: -.03em; }
.pm-option-label { font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.pm-options { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.option-chip { height: 31px; padding: 0 11px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); font-size: 10px; font-weight: 600; color: var(--muted); }
.option-chip.active { border-color: var(--ink); background: var(--ink); color: #fff; }
.pm-buy-row { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 15px; }
.qty-stepper { display: flex; align-items: center; height: 44px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); flex: none; }
.qty-stepper button { width: 37px; height: 100%; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; border-radius: 999px; }
.qty-stepper button:hover { color: var(--ink); background: rgba(0,0,0,.04); }
.qty-stepper button svg { width: 13px; height: 13px; }
.qty-stepper span { min-width: 24px; text-align: center; font-size: 12px; font-weight: 650; }
.pm-buy-row .btn { flex: 1; }
.pm-secondary { display: flex; gap: 8px; margin-top: 10px; }
.pm-secondary .btn { flex: 1; height: 38px; font-size: 10.5px; }
.pm-perks { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 14px; font-size: 9px; color: var(--muted); }
.pm-perks span { display: inline-flex; align-items: center; gap: 5px; }
.pm-perks svg { width: 12px; height: 12px; color: var(--success); }
.pm-accordion { margin-top: 15px; border-top: 1px solid var(--line); }
.pm-accordion details { border-bottom: 1px solid var(--line); }
.pm-accordion summary { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; font-size: 10.5px; font-weight: 650; cursor: pointer; list-style: none; }
.pm-accordion summary::-webkit-details-marker { display: none; }
.pm-accordion summary svg { width: 14px; height: 14px; color: var(--muted); transition: transform .2s; }
.pm-accordion details[open] summary svg { transform: rotate(180deg); }
.pm-accordion p { padding-bottom: 12px; font-size: 10.5px; line-height: 1.6; color: var(--muted); }

/* ------------------------------------------------------------
   Empty / misc
   ------------------------------------------------------------ */
.soft-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-sm); }
.inner-note { display: flex; align-items: flex-start; gap: 8px; padding: 11px 12px; background: #f7f5ef; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.inner-note svg { width: 14px; height: 14px; flex: none; margin-top: 1px; }
.inner-note strong { color: var(--ink); }

/* ------------------------------------------------------------
   Drawers / cart
   ------------------------------------------------------------ */
.scrim {
  position: fixed; inset: 0; z-index: 900; background: rgba(10, 14, 24, .46);
  backdrop-filter: blur(3px); opacity: 0; transition: opacity .35s ease;
}
.scrim.visible { opacity: 1; }
.scrim.top { z-index: 1650; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 950; width: min(438px, 100vw);
  display: flex; flex-direction: column; background: var(--surface); box-shadow: -20px 0 70px rgba(9,15,29,.22);
  transform: translateX(102%); transition: transform .42s var(--ease-io); outline: none;
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 26px 24px 18px; border-bottom: 1px solid var(--line); }
.drawer-head .eyebrow { margin-bottom: 7px; }
.drawer-head h2 { font-family: var(--serif); font-size: 30px; font-weight: 400; letter-spacing: -.035em; line-height: 1; }
.drawer-head .icon-btn { border: 1px solid var(--line); background: var(--surface-2); }
.drawer-body { flex: 1; overflow-y: auto; padding: 17px 24px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.drawer-foot { padding: 17px 24px 24px; border-top: 1px solid var(--line); background: #fcfaf6; }

.cart-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; text-align: center; padding: 40px 20px; }
.cart-empty-icon { width: 66px; height: 66px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); margin-bottom: 16px; }
.cart-empty-icon svg { width: 26px; height: 26px; }
.cart-empty h3 { font-family: var(--serif); font-size: 25px; font-weight: 400; }
.cart-empty p { max-width: 250px; margin: 6px 0 17px; color: var(--muted); font-size: 11px; }
.cart-item { display: grid; grid-template-columns: 66px 1fr auto; gap: 12px; padding: 13px 0; border-bottom: 1px solid #ede8df; }
.cart-item:last-child { border-bottom: 0; }
.cart-item-media { width: 66px; height: 72px; border-radius: 12px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(145deg, #ece3d5, #fbf8f2); border: 1px solid rgba(16,20,28,.05); }
.cart-item-media img { width: 88%; height: 88%; object-fit: contain; filter: drop-shadow(0 5px 5px rgba(0,0,0,.14)); }
.cart-item-media.tone-blue { background: #e1e9fb; }
.cart-item-media.tone-ink, .cart-item-media.tone-night { background: #1c2740; }
.cart-item-media.tone-sage { background: #e2ebdf; }
.cart-item-media.tone-blush { background: #f4e1d9; }
.cart-item-media.tone-mint { background: #dcf0e7; }
.cart-item-info { min-width: 0; padding-top: 1px; }
.cart-item-info .product-cat { font-size: 7.5px; }
.cart-item-info h4 { margin: 4px 0 2px; font-size: 12px; font-weight: 650; line-height: 1.25; }
.cart-item-info small { font-size: 9px; color: var(--muted); }
.cart-item-controls { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 7px; }
.cart-item-price { font-family: var(--serif); font-size: 17px; letter-spacing: -.02em; }
.cart-item-controls .qty-stepper { height: 27px; }
.cart-item-controls .qty-stepper button { width: 24px; }
.cart-item-controls .qty-stepper button svg { width: 10px; height: 10px; }
.cart-item-controls .qty-stepper span { min-width: 17px; font-size: 9.5px; }
.cart-remove { border: 0; background: transparent; color: var(--muted); font-size: 8.5px; text-decoration: underline; padding: 0; }
.cart-remove:hover { color: var(--danger); }
.cart-perks { display: flex; flex-direction: column; gap: 9px; margin: 4px 0 14px; padding: 13px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.cart-perk { display: flex; align-items: center; gap: 8px; font-size: 9.5px; color: var(--muted); }
.cart-perk svg { width: 14px; height: 14px; color: var(--success); }
.cart-totals { display: flex; flex-direction: column; gap: 8px; margin-bottom: 13px; }
.cart-total-row { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted); }
.cart-total-row strong { color: var(--ink); font-weight: 650; }
.cart-total-row.grand { padding-top: 10px; border-top: 1px solid var(--line); margin-top: 2px; font-size: 11px; color: var(--ink); }
.cart-total-row.grand strong { font-family: var(--serif); font-size: 25px; font-weight: 400; letter-spacing: -.03em; }
.cart-fine { margin-top: 9px; text-align: center; font-size: 8.5px; color: var(--muted); }

/* ------------------------------------------------------------
   Aria drawer
   ------------------------------------------------------------ */
.ai-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 1700; width: min(430px, 100vw);
  display: flex; flex-direction: column; background: #fbf9f5;
  box-shadow: -24px 0 80px rgba(7, 13, 25, .28); transform: translateX(102%);
  transition: transform .42s var(--ease-io); outline: none;
}
.ai-drawer.open { transform: translateX(0); }
.ai-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px 18px 14px; color: #fff; background: radial-gradient(120% 150% at 90% 0%, rgba(48,86,255,.45), transparent 58%), linear-gradient(145deg, #0a1120, #111d35); }
.ai-head-id { display: flex; align-items: center; gap: 10px; }
.ai-head-id > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.ai-head-id strong { font-size: 14px; font-weight: 650; letter-spacing: -.01em; }
.ai-head-id small { display: flex; align-items: center; gap: 5px; font-size: 9px; color: #a5b2cb; }
.ai-close { color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); width: 34px; height: 34px; }
.ai-close:hover { background: rgba(255,255,255,.15); }
.ai-context { display: flex; align-items: center; gap: 6px; padding: 8px 18px; border-bottom: 1px solid var(--line); background: #f7f4ee; font-size: 8.5px; color: var(--muted); }
.ai-context svg { width: 12px; height: 12px; color: var(--blue); }
.ai-context strong { color: var(--ink); font-weight: 650; }
.ai-context-tag { margin-left: auto; padding: 2px 6px; border-radius: 4px; background: var(--blue-soft); color: var(--blue-dark); font-size: 7px; font-weight: 750; letter-spacing: .08em; }
.ai-messages { flex: 1; overflow-y: auto; padding: 18px 18px 8px; display: flex; flex-direction: column; gap: 13px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.ai-msg { display: flex; gap: 8px; align-items: flex-start; max-width: 94%; animation: msgIn .28s var(--ease) both; }
@keyframes msgIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.ai-msg.user { align-self: flex-end; flex-direction: row-reverse; }
.ai-msg .msg-avatar { width: 25px; height: 25px; border-radius: 50%; display: grid; place-items: center; flex: none; margin-top: 2px; }
.ai-msg .msg-avatar.ai { background: linear-gradient(145deg, #d9fffb, #79dcd5 50%, #4d70ff); color: #0a1b2a; }
.ai-msg .msg-avatar.ai svg { width: 12px; height: 12px; }
.ai-msg .msg-avatar.user { background: #e9dfcf; color: #4a3b25; font-size: 8px; font-weight: 750; }
.ai-msg-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ai-msg .bubble { padding: 11px 13px; border-radius: 4px 14px 14px 14px; background: #fff; border: 1px solid var(--line); box-shadow: 0 3px 8px -6px rgba(0,0,0,.14); font-size: 11px; line-height: 1.55; color: var(--ink-2); }
.ai-msg.user .bubble { background: var(--blue); color: #fff; border-color: transparent; border-radius: 14px 4px 14px 14px; }
.ai-msg .bubble p + p { margin-top: 7px; }
.ai-msg .bubble strong { font-weight: 650; color: var(--ink); }
.ai-msg.user .bubble strong { color: #fff; }
.ai-msg .bubble ul { margin: 6px 0 0; display: flex; flex-direction: column; gap: 4px; }
.ai-msg .bubble li { position: relative; padding-left: 12px; }
.ai-msg .bubble li::before { content: ""; position: absolute; left: 0; top: 6px; width: 4px; height: 4px; border-radius: 50%; background: var(--blue); }
.ai-msg .msg-time { font-size: 7.5px; color: var(--muted-2); margin-top: -4px; padding-left: 2px; }
.ai-msg.user .msg-time { text-align: right; padding-right: 2px; }
.ai-card-action { display: flex; flex-direction: column; gap: 7px; padding: 10px; border-radius: 12px; background: #f5f2ec; border: 1px solid var(--line); }
.ai-card-action-top { display: flex; align-items: center; gap: 8px; }
.ai-card-action img { width: 42px; height: 42px; border-radius: 8px; object-fit: contain; background: #fff; padding: 3px; }
.ai-card-action strong { display: block; font-size: 10.5px; font-weight: 650; }
.ai-card-action small { display: block; font-size: 8.5px; color: var(--muted); margin-top: 1px; }
.ai-card-action .ai-card-buttons { display: flex; gap: 5px; }
.ai-mini-btn { height: 27px; padding: 0 9px; border-radius: 7px; border: 1px solid var(--line-strong); background: #fff; font-size: 8.5px; font-weight: 650; }
.ai-mini-btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.ai-mini-btn:hover { border-color: var(--ink); }
.ai-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.ai-action-chip { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 9px; border-radius: 7px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 8.5px; font-weight: 600; text-align: left; transition: all .15s; }
.ai-action-chip:hover { border-color: var(--blue); color: var(--blue-dark); background: #f6f8ff; }
.ai-action-chip svg { width: 11px; height: 11px; color: var(--blue); }
.ai-typing { display: flex; align-items: center; gap: 4px; padding: 0 21px 4px 51px; min-height: 26px; }
.ai-typing span { width: 5px; height: 5px; border-radius: 50%; background: #9ba3b4; animation: typing 1.2s infinite ease-in-out; }
.ai-typing span:nth-child(2) { animation-delay: .15s; }
.ai-typing span:nth-child(3) { animation-delay: .3s; }
.ai-typing em { font-style: normal; font-size: 8px; color: var(--muted); margin-left: 4px; }
@keyframes typing { 0%,60%,100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-3px); opacity: 1; } }
.ai-suggestions { display: flex; flex-wrap: wrap; gap: 5px; padding: 6px 18px 9px; }
.ai-suggestions:empty { display: none; }
.ai-suggest-chip { height: 27px; padding: 0 9px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 8.5px; font-weight: 600; }
.ai-suggest-chip:hover { border-color: var(--blue); color: var(--blue-dark); }
.ai-form { display: flex; align-items: center; gap: 5px; margin: 0 14px 8px; padding: 5px 5px 5px 9px; border: 1px solid var(--line-strong); border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); }
.ai-form .icon-btn { width: 31px; height: 31px; color: var(--muted); }
.ai-form .icon-btn svg { width: 16px; height: 16px; }
.ai-form input { flex: 1; min-width: 0; height: 31px; border: 0; background: transparent; font-size: 10.5px; outline: none; }
.ai-form input::placeholder { color: #a3a09a; }
.ai-send { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 9px; background: var(--blue); color: #fff; }
.ai-send:hover { background: var(--blue-dark); }
.ai-send svg { width: 15px; height: 15px; }
.ai-disclaimer { padding: 0 16px 13px; text-align: center; font-size: 7.5px; line-height: 1.45; color: var(--muted-2); }

.ai-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 800; display: flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 6px; border-radius: 999px; border: 1px solid rgba(255,255,255,.16);
  background: #0b1120; color: #fff; box-shadow: 0 14px 35px -12px rgba(8,14,28,.6);
  transition: transform .25s var(--ease), box-shadow .25s; overflow: hidden;
}
.ai-fab:hover { transform: translateY(-2px); box-shadow: 0 18px 42px -14px rgba(8,14,28,.7); }
.ai-fab-glow { position: absolute; inset: -30px; background: radial-gradient(circle at 25% 50%, rgba(48,86,255,.6), transparent 50%); opacity: .8; }
.ai-fab-inner { position: relative; z-index: 1; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(145deg, #d7fffa, #74ede2 38%, #5a7dff); color: #0a1b2a; box-shadow: inset 0 1px 1px rgba(255,255,255,.8); }
.ai-fab-inner svg { width: 19px; height: 19px; stroke-width: 1.8; }
.ai-fab-label { position: relative; z-index: 1; font-size: 11px; font-weight: 650; padding-right: 4px; }

/* ------------------------------------------------------------
   Wizard
   ------------------------------------------------------------ */
.wizard {
  position: fixed; inset: 0; z-index: 1300; display: flex; flex-direction: column;
  background: var(--paper); animation: wizardIn .4s var(--ease) both;
}
@keyframes wizardIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.wizard-top {
  flex: none; height: 70px; display: flex; align-items: center; gap: 16px; padding: 0 24px;
  border-bottom: 1px solid var(--line); background: rgba(255,253,249,.94); backdrop-filter: blur(16px);
}
.wizard-brand { display: flex; align-items: center; gap: 9px; min-width: 0; }
.wizard-brand .brand-mark { width: 32px; height: 32px; border-radius: 10px; }
.wizard-brand .brand-mark svg { width: 18px; height: 18px; }
.wizard-brand-copy { display: flex; flex-direction: column; line-height: 1.1; }
.wizard-brand-copy strong { font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.wizard-brand-copy small { font-size: 8.5px; color: var(--muted); margin-top: 2px; }
.wizard-top-divider { width: 1px; height: 24px; background: var(--line); }
.wizard-order-id { display: flex; align-items: center; gap: 8px; font-size: 10px; color: var(--muted); }
.wizard-order-id strong { color: var(--ink); font-size: 11px; font-weight: 650; font-variant-numeric: tabular-nums; }
.save-status { display: flex; align-items: center; gap: 4px; font-size: 8.5px; color: var(--muted); }
.save-status svg { width: 11px; height: 11px; color: var(--success); }
.wizard-top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.wizard-top .btn { height: 36px; font-size: 10.5px; padding: 0 13px; }
.wizard-close { border: 1px solid var(--line); }
.wizard-body { flex: 1; min-height: 0; display: flex; }

.wizard-rail { width: 248px; flex: none; border-right: 1px solid var(--line); padding: 26px 20px 20px; display: flex; flex-direction: column; background: #f6f2eb; }
.wizard-rail-head { margin-bottom: 22px; }
.wizard-rail-head .eyebrow { margin-bottom: 6px; }
.wizard-rail-head h2 { font-family: var(--serif); font-size: 25px; font-weight: 400; letter-spacing: -.03em; }
.wizard-rail-head p { font-size: 9.5px; line-height: 1.5; color: var(--muted); margin-top: 4px; }
.wiz-steps { display: flex; flex-direction: column; gap: 2px; }
.wiz-step { position: relative; display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 9px 8px; border: 0; border-radius: 10px; background: transparent; text-align: left; color: var(--muted); }
.wiz-step:hover { background: rgba(255,255,255,.65); }
.wiz-step.active { background: var(--surface); box-shadow: var(--shadow-sm); color: var(--ink); }
.wiz-step.done { color: var(--ink); }
.wiz-step-num { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; border: 1px solid var(--line-strong); font-size: 9px; font-weight: 650; flex: none; background: transparent; }
.wiz-step.active .wiz-step-num { background: var(--blue); color: #fff; border-color: var(--blue); }
.wiz-step.done .wiz-step-num { background: var(--mint); border-color: #c9e4d6; color: var(--success); }
.wiz-step-copy { display: flex; flex-direction: column; gap: 1px; padding-top: 1px; }
.wiz-step-copy strong { font-size: 10.5px; font-weight: 650; letter-spacing: -.01em; }
.wiz-step-copy small { font-size: 8.5px; color: var(--muted-2); line-height: 1.35; }
.wiz-step.active .wiz-step-copy small { color: var(--muted); }
.wiz-step-line { position: absolute; left: 19px; top: 35px; width: 1px; height: 10px; background: var(--line-strong); }
.wiz-step:last-child .wiz-step-line { display: none; }

.rail-help { margin-top: auto; padding: 13px; border-radius: 13px; border: 1px solid var(--line); background: rgba(255,255,255,.5); }
.rail-help-head { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; font-size: 9px; font-weight: 700; }
.rail-help-head svg { width: 13px; height: 13px; color: var(--blue); }
.rail-help p { font-size: 8.5px; line-height: 1.5; color: var(--muted); }
.rail-help button { display: inline-flex; align-items: center; gap: 4px; margin-top: 7px; font-size: 8.5px; }
.rail-help button svg { width: 11px; height: 11px; }

.wizard-main { flex: 1; min-width: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.wiz-content { max-width: 800px; margin: 0 auto; padding: 33px 36px 120px; min-height: 100%; display: flex; flex-direction: column; }
.wiz-step-head { margin-bottom: 24px; }
.wiz-step-head .eyebrow { margin-bottom: 8px; }
.wiz-step-head h1 { font-family: var(--serif); font-size: clamp(32px, 3.4vw, 43px); font-weight: 400; line-height: .98; letter-spacing: -.04em; }
.wiz-step-head p { max-width: 520px; margin-top: 8px; font-size: 11.5px; line-height: 1.6; color: var(--muted); }
.wiz-step-head em { color: var(--blue); font-style: italic; }
.wiz-form { display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-row.three { grid-template-columns: 1fr 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 9.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.field label .req { color: var(--blue); margin-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 43px; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  font-size: 12px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 92px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #a9a59e; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(48,86,255,.1); }
.field-hint { font-size: 9px; color: var(--muted); line-height: 1.4; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(184,58,55,.08); }
.field.invalid label { color: var(--danger); }

.radio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.radio-grid.three { grid-template-columns: repeat(3, 1fr); }
.radio-card { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); cursor: pointer; transition: all .18s; }
.radio-card:hover { border-color: var(--line-strong); }
.radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-card strong { font-size: 10.5px; font-weight: 650; padding-right: 17px; }
.radio-card small { font-size: 9px; color: var(--muted); line-height: 1.4; }
.radio-card .radio-indicator { position: absolute; top: 10px; right: 10px; width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--line-strong); }
.radio-card:has(input:checked) { border-color: var(--blue); background: #f7f9ff; box-shadow: 0 0 0 1px var(--blue); }
.radio-card:has(input:checked) .radio-indicator { border-color: var(--blue); background: var(--blue); box-shadow: inset 0 0 0 3px #fff; }
.radio-card:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }

.shade-guide-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 9px; }
.shade-guide-tab { height: 27px; padding: 0 9px; border-radius: 7px; border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 8.5px; font-weight: 600; }
.shade-guide-tab:hover { border-color: var(--blue); color: var(--blue-dark); }
.shade-guide-tab.active { border-color: var(--blue); color: var(--blue-dark); background: #f4f7ff; }
.shade-picker { display: flex; flex-wrap: wrap; gap: 6px; }
.shade-option { position: relative; display: inline-flex; cursor: pointer; }
.shade-option input { position: absolute; opacity: 0; pointer-events: none; }
.shade-box { display: inline-flex; align-items: center; justify-content: center; min-width: 76px; height: 31px; padding: 0 9px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink-2); font-size: 8.5px; font-weight: 600; white-space: nowrap; text-transform: none; letter-spacing: 0; transition: border-color .15s, background .15s, color .15s; }
.shade-option:hover .shade-box { border-color: var(--blue); color: var(--blue-dark); }
.shade-option input:checked + .shade-box { border-color: var(--blue); background: #f4f7ff; color: var(--blue-dark); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--blue); }
.shade-a1 { background: linear-gradient(145deg, #fbf8e9, #e8dfbc); }
.shade-a2 { background: linear-gradient(145deg, #f8f0d6, #ddcfa2); }
.shade-a3 { background: linear-gradient(145deg, #f2e5bd, #ceba81); }
.shade-b1 { background: linear-gradient(145deg, #fffdf4, #ece4cb); }
.shade-bl2 { background: linear-gradient(145deg, #fffef8, #eae3d3); }
.shade-bl3 { background: linear-gradient(145deg, #fbf6e6, #ded2b5); }
.shade-c2 { background: linear-gradient(145deg, #eeddb1, #bfa678); }

.tooth-chart { padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.tooth-chart-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.tooth-chart-head span { font-size: 9.5px; font-weight: 650; }
.tooth-chart-head small { font-size: 8.5px; color: var(--muted); }
.tooth-arch-toggle { display: flex; gap: 6px; margin-bottom: 6px; }
.tooth-arch-toggle .chip { height: 25px; }
.tooth-item-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.tooth-item-tab { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 8.5px; font-weight: 600; color: var(--ink-2); text-align: left; }
.tooth-item-tab small { font-size: 7.5px; color: var(--muted); font-weight: 500; }
.tooth-item-tab.active { border-color: var(--blue); background: #f4f7ff; color: var(--blue-dark); }
.tooth-btn.used { opacity: .3; cursor: not-allowed; text-decoration: line-through; }
.item-teeth-line { margin-top: 5px; font-size: 8px; color: var(--muted); }
.item-teeth-line strong { color: var(--ink-2); font-weight: 650; }

.item-config-arch { display: inline-flex; align-items: center; height: 28px; padding: 0 9px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-2); font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.denture-spec-panel { margin: 14px 0; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.denture-spec-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.denture-spec-head h3 { margin: 3px 0 0; font-family: var(--serif); font-size: 24px; font-weight: 500; letter-spacing: -.02em; color: var(--ink); }
.denture-badge { flex-shrink: 0; padding: 4px 8px; border-radius: 999px; background: #edf3ee; color: #42624d; font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.denture-arch-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.denture-tooth-actions { display: flex; align-items: center; gap: 12px; margin: 5px 0 8px; }
.guide-price-table { margin-top: 10px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.guide-price-row { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 8px; padding: 7px 11px; border-top: 1px solid var(--line); font-size: 8.5px; color: var(--ink-2); }
.guide-price-row:first-child { border-top: 0; }
.guide-price-row span:not(:first-child) { text-align: right; }
.guide-price-row.active { background: #f2f7f0; color: #35503a; font-weight: 650; }
.guide-price-head { background: #faf8f3; color: var(--muted); font-size: 7.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.guide-summary { margin-top: 9px; padding: 9px 11px; border-radius: 8px; background: #eef4ec; color: #35503a; font-size: 9px; }
.guide-summary strong { font-weight: 750; }
.implant-advanced { margin: 8px 0; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: #fbfaf7; }
.implant-advanced summary { cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 8.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.implant-advanced summary span { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--muted); font-size: 8px; }
.implant-advanced[open] summary { margin-bottom: 9px; }
.implant-suggestion { display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; padding: 10px 11px; border: 1px solid #dfe8dd; border-radius: 9px; background: #f4f8f2; color: #425844; font-size: 9px; line-height: 1.55; }
.implant-suggestion svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 1px; }

.work-type-picker { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.work-type-picker .chip { height: 27px; }
.work-type-label { font-size: 8.5px; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin: 11px 0 7px; }

.titanium-bar-field { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.titanium-bar-field .terms-check span { text-transform: none !important; letter-spacing: 0; font-size: 9.5px; line-height: 1.45; font-weight: 500; color: var(--ink-2); }
.titanium-bar-field .terms-check strong { text-transform: uppercase; letter-spacing: .05em; font-size: 9px; color: var(--ink); }

.smile-design-field { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: var(--surface); }
.smile-design-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.smile-design-head label { margin: 0; }
.smile-design-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.smile-card { display: flex; flex-direction: column; text-align: left; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; padding: 0; }
.smile-card img { width: 100%; aspect-ratio: 2.6 / 1; object-fit: cover; display: block; }
.smile-card-copy { padding: 7px 10px 8px; display: flex; flex-direction: column; gap: 2px; }
.smile-card-copy strong { font-size: 10px; color: var(--ink); }
.smile-card-copy small { font-size: 8px; color: var(--muted); line-height: 1.35; }
.smile-card.active { border-color: var(--blue); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--blue); }
.smile-selected-wrap { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.smile-selected { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; flex: 1; min-width: 0; }
.smile-selected img { width: 140px; height: 52px; border-radius: 8px; object-fit: cover; flex: none; }
.smile-selected strong { display: block; font-size: 10px; color: var(--ink); }
.smile-selected small { display: block; font-size: 8px; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.tooth-row { display: flex; gap: 3px; justify-content: center; margin: 4px 0; }
.tooth-row + .tooth-row { margin-top: 9px; }
.tooth-btn { width: 32px; height: 27px; border-radius: 5px; border: 1px solid var(--line); background: #fbf9f4; color: #8c8880; font-size: 7.5px; font-weight: 650; font-variant-numeric: tabular-nums; transition: all .15s; }
.tooth-btn:hover { border-color: var(--blue); color: var(--blue-dark); transform: translateY(-1px); }
.tooth-btn.active { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 3px 8px -4px rgba(48,86,255,.7); }
.tooth-row-label { text-align: center; font-size: 7px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); margin: 5px 0 3px; }
.selected-teeth { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 9px; min-height: 18px; }
.selected-tooth-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: 4px; background: var(--blue-soft); color: var(--blue-dark); font-size: 7.5px; font-weight: 650; }
.selected-teeth .empty-hint { font-size: 8.5px; color: var(--muted-2); }

.item-config-card { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.item-config-main { display: flex; gap: 12px; padding: 12px; align-items: flex-start; }
.item-config-media { width: 67px; height: 67px; border-radius: 9px; display: grid; place-items: center; overflow: hidden; flex: none; background: #f1ece3; }
.item-config-media img { width: 88%; height: 88%; object-fit: contain; filter: drop-shadow(0 4px 5px rgba(0,0,0,.15)); }
.item-config-copy { flex: 1; min-width: 0; }
.item-config-copy h4 { font-size: 12px; font-weight: 650; }
.item-config-copy small { display: block; font-size: 8.5px; color: var(--muted); margin-top: 2px; }
.item-config-controls { display: flex; align-items: center; gap: 7px; margin-top: 9px; flex-wrap: wrap; }
.item-config-controls .qty-stepper { height: 30px; }
.item-config-controls .qty-stepper button { width: 25px; }
.item-config-controls .qty-stepper svg { width: 10px; height: 10px; }
.item-config-controls .qty-stepper span { font-size: 10px; min-width: 18px; }
.item-config-controls select { height: 30px; border-radius: 7px; border: 1px solid var(--line); background: var(--surface-2); font-size: 8.5px; padding: 0 24px 0 8px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%236b707b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 7px center; }
.item-config-price { font-family: var(--serif); font-size: 17px; letter-spacing: -.02em; margin-left: auto; }
.item-config-remove { border: 0; background: transparent; color: var(--muted); width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; }
.item-config-remove:hover { color: var(--danger); background: #fdf2f1; }
.item-config-remove svg { width: 12px; height: 12px; }
.popular-add { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.popular-add button { display: inline-flex; align-items: center; gap: 5px; height: 29px; padding: 0 9px; border: 1px dashed var(--line-strong); border-radius: 7px; background: transparent; color: var(--muted); font-size: 8.5px; font-weight: 600; }
.popular-add button:hover { border-color: var(--blue); color: var(--blue-dark); background: #f7f9ff; }
.popular-add svg { width: 11px; height: 11px; }

.upload-zone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 158px; padding: 24px; border: 1.5px dashed #cdc4b5; border-radius: 15px; background: rgba(255,255,255,.45); text-align: center; transition: all .2s; cursor: pointer; }
.upload-zone:hover, .upload-zone.dragover { border-color: var(--blue); background: #f6f8ff; }
.upload-zone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--blue-soft); color: var(--blue-dark); margin-bottom: 9px; }
.upload-icon svg { width: 19px; height: 19px; }
.upload-zone strong { font-size: 11px; font-weight: 650; }
.upload-zone p { margin-top: 3px; font-size: 9px; color: var(--muted); }
.upload-zone .upload-formats { margin-top: 9px; display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
.upload-formats span { padding: 2px 5px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--line); font-size: 7px; font-weight: 600; color: var(--muted); }
.upload-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.upload-actions small { font-size: 8.5px; color: var(--muted); }
.demo-scan-btn { font-size: 8.5px; }
.file-list { display: flex; flex-direction: column; gap: 5px; margin-top: 8px; }
.file-row { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.file-icon { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 7px; background: var(--blue-soft); color: var(--blue-dark); flex: none; }
.file-icon svg { width: 14px; height: 14px; }
.file-copy { flex: 1; min-width: 0; }
.file-copy strong { display: block; font-size: 9.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-copy small { display: block; font-size: 8px; color: var(--muted); }
.file-status { display: inline-flex; align-items: center; gap: 3px; font-size: 7.5px; font-weight: 650; color: var(--success); }
.file-status.pending { color: var(--warning); }
.file-status svg { width: 10px; height: 10px; }
.file-remove { border: 0; background: transparent; color: var(--muted); padding: 3px; }
.file-remove:hover { color: var(--danger); }
.file-remove svg { width: 12px; height: 12px; }
.scan-check { display: flex; align-items: flex-start; gap: 9px; padding: 10px 11px; border-radius: 10px; background: #f2f8f4; border: 1px solid #d4e7dc; margin-top: 9px; }
.scan-check svg { width: 15px; height: 15px; color: var(--success); flex: none; margin-top: 1px; }
.scan-check strong { display: block; font-size: 9px; font-weight: 650; color: #1e5e44; }
.scan-check p { font-size: 8.5px; line-height: 1.45; color: #4e7765; margin-top: 1px; }

.delivery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.delivery-card { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); cursor: pointer; }
.delivery-card:hover { border-color: var(--line-strong); }
.delivery-card input { position: absolute; opacity: 0; }
.delivery-card:has(input:checked) { border-color: var(--blue); background: #f7f9ff; box-shadow: 0 0 0 1px var(--blue); }
.delivery-card .delivery-top { display: flex; justify-content: space-between; align-items: center; }
.delivery-card .delivery-top svg { width: 17px; height: 17px; color: var(--muted); }
.delivery-card:has(input:checked) .delivery-top svg { color: var(--blue); }
.delivery-card strong { font-size: 10.5px; font-weight: 650; }
.delivery-card small { font-size: 8.5px; color: var(--muted); line-height: 1.4; }
.delivery-card .delivery-price { margin-top: 4px; font-size: 9px; font-weight: 650; color: var(--ink); }

.review-card { border: 1px solid var(--line); border-radius: 15px; background: var(--surface); overflow: hidden; }
.review-block { padding: 14px; border-bottom: 1px solid var(--line); }
.review-block:last-child { border-bottom: 0; }
.review-block-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.review-block-head strong { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.review-block-head button { font-size: 8.5px; }
.review-item { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.review-item img { width: 38px; height: 38px; object-fit: contain; border-radius: 7px; background: #f3eee5; }
.review-item div { flex: 1; }
.review-item strong { display: block; font-size: 10.5px; font-weight: 650; }
.review-item small { display: block; font-size: 8.5px; color: var(--muted); }
.review-item .review-price { font-family: var(--serif); font-size: 15px; }
.review-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.review-row { display: flex; flex-direction: column; gap: 2px; }
.review-row span { font-size: 8px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 650; }
.review-row strong { font-size: 10px; font-weight: 600; }
.crown-spec { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 10px; }
.crown-spec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.crown-spec-head strong { font-size: 10px; }
.crown-spec-head span { font-size: 8.5px; color: var(--muted); }
.crown-spec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.crown-spec .field { margin: 0; }
.crown-spec .field label { font-size: 8px; }
.crown-spec .field select, .crown-spec .field input { font-size: 9px; padding: 6px 7px; }
@media (max-width: 720px) { .crown-spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.review-totals { display: flex; flex-direction: column; gap: 6px; }
.review-total-row { display: flex; justify-content: space-between; gap: 20px; font-size: 9.5px; color: var(--muted); }
.review-total-row strong { color: var(--ink); font-weight: 600; }
.review-total-row.grand { padding-top: 7px; border-top: 1px solid var(--line); color: var(--ink); font-size: 11px; align-items: baseline; }
.review-total-row.grand strong { font-family: var(--serif); font-size: 24px; font-weight: 400; letter-spacing: -.03em; }
.terms-check { display: flex; align-items: flex-start; gap: 8px; font-size: 9px; color: var(--muted); line-height: 1.5; cursor: pointer; }
.terms-check input { margin: 2px 0 0; accent-color: var(--blue); width: 13px; height: 13px; }
.terms-check a { color: var(--blue-dark); text-decoration: underline; }

.wizard-guide { width: 292px; flex: none; border-left: 1px solid var(--line); background: #f6f2eb; padding: 25px 19px 22px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; display: flex; flex-direction: column; }
.guide-head { display: flex; align-items: center; gap: 8px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.guide-head .aria-avatar { width: 29px; height: 29px; }
.guide-head .aria-avatar svg { width: 14px; height: 14px; }
.guide-head > span:nth-child(2) { display: flex; flex-direction: column; }
.guide-head strong { font-size: 10.5px; font-weight: 650; }
.guide-head small { font-size: 8px; color: var(--muted); }
.guide-head .live-dot { margin-left: auto; }
.guide-message { padding: 13px 0 11px; }
.guide-message p { font-size: 10px; line-height: 1.6; color: var(--ink-2); }
.guide-message p strong { font-weight: 650; }
.guide-checks { display: flex; flex-direction: column; gap: 7px; }
.guide-check { display: flex; align-items: flex-start; gap: 7px; font-size: 8.5px; line-height: 1.4; color: var(--muted); }
.guide-check .check-dot { display: grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--line-strong); flex: none; margin-top: 0; color: transparent; }
.guide-check .check-dot svg { width: 9px; height: 9px; }
.guide-check.pass { color: var(--ink); }
.guide-check.pass .check-dot { background: var(--mint); border-color: #c9e4d6; color: var(--success); }
.guide-check.warn { color: var(--warning); }
.guide-check.warn .check-dot { border-color: #e4c49f; background: #fbf1e5; color: var(--warning); }
.guide-tip { margin-top: 14px; padding: 10px; border-radius: 10px; background: rgba(255,255,255,.6); border: 1px solid var(--line); }
.guide-tip span { display: flex; align-items: center; gap: 5px; font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 4px; }
.guide-tip span svg { width: 11px; height: 11px; color: var(--blue); }
.guide-tip p { font-size: 8.5px; line-height: 1.5; color: var(--muted); }
.guide-ai-btn { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px; height: 34px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 9px; font-weight: 650; }
.guide-ai-btn:hover { border-color: var(--blue); color: var(--blue-dark); }
.guide-ai-btn svg { width: 13px; height: 13px; color: var(--blue); }
.guide-suggestions { margin-top: 13px; display: flex; flex-direction: column; gap: 7px; }
.guide-suggestions-head { display: flex; align-items: center; gap: 5px; font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--blue-dark); }
.guide-suggestions-head svg { width: 11px; height: 11px; }
.guide-suggestion { padding: 9px 10px; border: 1px solid #dbe3ff; border-radius: 9px; background: #f7f9ff; }
.guide-suggestion strong { display: block; font-size: 9px; font-weight: 650; color: var(--ink); }
.guide-suggestion p { margin: 3px 0 6px; font-size: 8.5px; line-height: 1.45; color: var(--muted); }
.guide-suggestion button { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: transparent; color: var(--blue-dark); font-size: 8.5px; font-weight: 650; }
.guide-suggestion button svg { width: 10px; height: 10px; }
.guide-ask { display: flex; align-items: center; gap: 5px; margin-top: 9px; padding: 3px 3px 3px 9px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); }
.guide-ask input { flex: 1; min-width: 0; border: 0; background: transparent; outline: 0; font-size: 8.5px; color: var(--ink); }
.guide-ask input::placeholder { color: var(--muted-2); }
.guide-ask button { display: grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 6px; background: var(--blue); color: #fff; }
.guide-ask button svg { width: 11px; height: 11px; }
.guide-foot { margin-top: auto; padding-top: 16px; font-size: 8px; line-height: 1.5; color: var(--muted-2); }

.wizard-footer { position: absolute; left: 248px; right: 292px; bottom: 0; height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 36px; border-top: 1px solid var(--line); background: rgba(255,253,249,.92); backdrop-filter: blur(14px); }
.wizard-footer .footer-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.wizard-footer .footer-progress { width: 86px; height: 3px; background: #e4ded5; border-radius: 99px; overflow: hidden; }
.wizard-footer .footer-progress span { display: block; height: 100%; background: var(--blue); border-radius: inherit; transition: width .4s var(--ease); }
.wizard-footer .footer-label { font-size: 8.5px; color: var(--muted); white-space: nowrap; }
.wizard-footer .footer-label strong { color: var(--ink); font-weight: 650; }
.wizard-footer .footer-right { display: flex; align-items: center; gap: 8px; }
.wizard-footer .btn { height: 41px; font-size: 11.5px; }

.wiz-success { flex: 1; overflow-y: auto; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 40px 24px 100px; position: relative; }
.success-orbit { position: relative; display: grid; place-items: center; width: 100px; height: 100px; margin-bottom: 20px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); }
.success-orbit::before, .success-orbit::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 1px solid rgba(48,86,255,.16); }
.success-orbit::after { inset: -30px; border-style: dashed; border-color: rgba(48,86,255,.1); }
.success-orbit svg { width: 43px; height: 43px; stroke-width: 1.6; }
.wiz-success .eyebrow { margin-bottom: 7px; color: var(--blue-dark); }
.wiz-success h1 { font-family: var(--serif); font-size: clamp(38px, 4.5vw, 58px); font-weight: 400; letter-spacing: -.045em; line-height: .95; max-width: 580px; }
.wiz-success h1 em { color: var(--blue); font-style: italic; }
.wiz-success > p { max-width: 420px; margin-top: 12px; font-size: 11.5px; line-height: 1.65; color: var(--muted); }
.success-order { display: inline-flex; align-items: center; gap: 9px; margin: 18px 0 3px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 10px; color: var(--muted); }
.success-order strong { color: var(--ink); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.success-actions { display: flex; gap: 8px; margin-top: 22px; flex-wrap: wrap; justify-content: center; }
.success-timeline { display: flex; align-items: flex-start; justify-content: center; gap: 0; margin-top: 34px; max-width: 600px; width: 100%; }
.success-step { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; color: var(--muted); }
.success-step::before { content: ""; position: absolute; top: 10px; left: 50%; right: -50%; height: 1px; background: var(--line-strong); }
.success-step:last-child::before { display: none; }
.success-step .success-dot { position: relative; z-index: 1; width: 21px; height: 21px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line-strong); font-size: 8px; font-weight: 700; }
.success-step.done .success-dot { background: var(--blue); border-color: var(--blue); color: #fff; }
.success-step.done::before { background: var(--blue); }
.success-step strong { font-size: 8px; font-weight: 650; color: var(--ink); }
.success-step small { font-size: 7.5px; }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; width: 6px; height: 10px; border-radius: 2px; top: -20px; animation: confettiFall 2.8s linear forwards; opacity: .9; }
@keyframes confettiFall { to { transform: translateY(110vh) rotate(720deg); opacity: 0; } }

/* ------------------------------------------------------------
   Cases page + detail
   ------------------------------------------------------------ */
.case-summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; margin-bottom: 20px; }
.summary-tile { padding: 15px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-sm); }
.summary-tile span { display: flex; align-items: center; gap: 6px; font-size: 9px; font-weight: 600; color: var(--muted); }
.summary-tile span svg { width: 13px; height: 13px; }
.summary-tile strong { display: block; font-family: var(--serif); font-size: 30px; font-weight: 400; letter-spacing: -.03em; margin-top: 7px; line-height: 1; }
.summary-tile small { display: block; font-size: 8.5px; color: var(--muted); margin-top: 4px; }
.case-toolbar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 15px 15px 0 0; background: var(--surface); border-bottom: 0; }
.case-toolbar .filter-scroll { gap: 4px; }
.case-toolbar .chip { height: 30px; font-size: 9.5px; padding: 0 10px; }
.case-toolbar .search-mini { display: flex; align-items: center; gap: 6px; height: 32px; width: 210px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.case-toolbar .search-mini svg { width: 13px; height: 13px; color: var(--muted); }
.case-toolbar .search-mini input { border: 0; background: transparent; outline: 0; font-size: 9.5px; width: 100%; }
.case-list-card { border: 1px solid var(--line); border-radius: 0 0 17px 17px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm); }
.case-list-row { display: grid; grid-template-columns: 1.5fr .8fr .85fr .8fr 30px; align-items: center; gap: 16px; padding: 15px 18px; border-bottom: 1px solid #ede8df; transition: background .15s; }
.case-list-row:last-child { border-bottom: 0; }
.case-list-row:hover { background: #fbf9f4; }
.case-list-head { background: #faf8f3; padding: 9px 18px; font-size: 8px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.case-list-product { display: flex; align-items: center; gap: 11px; min-width: 0; }
.case-list-product .case-thumb { width: 43px; height: 43px; border-radius: 9px; }
.case-list-product h4 { font-size: 11.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.case-list-product small { display: block; font-size: 8.5px; color: var(--muted); margin-top: 2px; }
.case-list-stage { display: flex; flex-direction: column; gap: 5px; }
.case-list-stage strong { font-size: 9.5px; font-weight: 600; }
.case-list-stage .progress-track { margin-top: 0; }
.case-list-meta { font-size: 9.5px; color: var(--muted); }
.case-list-meta strong { display: block; font-size: 10px; color: var(--ink); font-weight: 600; }
.case-list-amount { font-family: var(--serif); font-size: 16px; letter-spacing: -.02em; }

.case-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 19px; }
.case-hero-left { display: flex; gap: 15px; align-items: flex-start; }
.back-btn { display: inline-flex; align-items: center; gap: 5px; height: 31px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 9px; font-weight: 650; color: var(--muted); }
.back-btn:hover { color: var(--ink); border-color: var(--line-strong); }
.case-hero h1 { font-family: var(--serif); font-size: clamp(30px, 3.5vw, 45px); font-weight: 400; letter-spacing: -.04em; line-height: .98; }
.case-hero .case-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 7px; font-size: 9.5px; color: var(--muted); }
.case-hero .case-sub .dot-sep { width: 3px; height: 3px; background: var(--line-strong); border-radius: 50%; }
.case-hero-actions { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.case-detail-grid { display: grid; grid-template-columns: 1.55fr .75fr; gap: 14px; align-items: start; }
.case-main-col, .case-side-col { display: flex; flex-direction: column; gap: 13px; }
.panel { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 17px; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: 12.5px; font-weight: 650; letter-spacing: -.01em; }
.panel-head .pill { font-size: 8px; min-height: 21px; }
.panel-body { padding: 17px; }
.case-progress-panel { padding: 18px; }
.case-progress-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.case-progress-head h2 { font-size: 12.5px; font-weight: 650; }
.case-progress-head span { font-size: 9px; color: var(--muted); }
.stage-rail { display: flex; align-items: flex-start; justify-content: space-between; gap: 0; }
.stage-node { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; }
.stage-node::before { content: ""; position: absolute; top: 11px; left: 50%; right: -50%; height: 2px; background: #e9e4dc; }
.stage-node:last-child::before { display: none; }
.stage-node.done::before, .stage-node.current::before { background: var(--blue); }
.stage-node .stage-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--line-strong); color: var(--muted); font-size: 8px; font-weight: 700; }
.stage-node.done .stage-dot { background: var(--blue); border-color: var(--blue); color: #fff; }
.stage-node.current .stage-dot { background: #fff; border-color: var(--blue); color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.stage-node strong { font-size: 7.5px; font-weight: 650; color: var(--muted); line-height: 1.2; }
.stage-node.done strong, .stage-node.current strong { color: var(--ink); }
.stage-node small { font-size: 6.5px; color: var(--muted-2); }
.case-timeline { display: flex; flex-direction: column; gap: 0; margin-top: 8px; }
.timeline-item { position: relative; display: flex; gap: 12px; padding-bottom: 17px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-line { position: absolute; left: 8px; top: 18px; bottom: 0; width: 1px; background: #e9e4dc; }
.timeline-item:last-child .timeline-line { display: none; }
.timeline-dot { position: relative; z-index: 1; width: 17px; height: 17px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); display: grid; place-items: center; flex: none; margin-top: 1px; color: transparent; }
.timeline-dot svg { width: 9px; height: 9px; }
.timeline-item.done .timeline-dot { background: var(--mint); border-color: #cddfd4; color: var(--success); }
.timeline-item.current .timeline-dot { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 0 0 4px var(--blue-soft); }
.timeline-copy { display: flex; flex-direction: column; gap: 2px; }
.timeline-copy strong { font-size: 10px; font-weight: 650; }
.timeline-copy small { font-size: 8.5px; color: var(--muted); }
.timeline-copy p { font-size: 9px; color: var(--muted); line-height: 1.5; margin-top: 2px; }
.design-preview { display: flex; gap: 13px; align-items: center; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: #f8f5ef; }
.design-preview-media { width: 73px; height: 65px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(145deg, #e9e0d2, #fbf8f2); flex: none; }
.design-preview-media img { width: 88%; height: 88%; object-fit: contain; }
.design-preview-copy { flex: 1; }
.design-preview-copy strong { display: block; font-size: 10px; font-weight: 650; }
.design-preview-copy small { display: block; margin-top: 2px; font-size: 8.5px; color: var(--muted); }
.design-preview-actions { display: flex; gap: 6px; margin-top: 8px; }
.design-preview-actions .btn { height: 29px; padding: 0 9px; font-size: 8.5px; }
.side-info { display: flex; flex-direction: column; }
.side-info-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #ede8df; font-size: 9.5px; }
.side-info-row:last-child { border-bottom: 0; }
.side-info-row span { color: var(--muted); }
.side-info-row strong { font-weight: 600; text-align: right; }
.side-info-row .price-big { font-family: var(--serif); font-size: 21px; font-weight: 400; letter-spacing: -.02em; }
.side-actions { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.side-actions .btn { width: 100%; }
.case-file-list { display: flex; flex-direction: column; gap: 6px; }
.case-file { display: flex; align-items: center; gap: 9px; padding: 8px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.case-file-icon { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 7px; background: var(--blue-soft); color: var(--blue-dark); }
.case-file-icon svg { width: 14px; height: 14px; }
.case-file-copy { flex: 1; min-width: 0; }
.case-file-copy strong { display: block; font-size: 8.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.case-file-copy small { display: block; font-size: 7.5px; color: var(--muted); }
.case-file a { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); }
.case-file a:hover { color: var(--ink); border-color: var(--line-strong); }
.case-file a svg { width: 12px; height: 12px; }
.case-note { font-size: 9.5px; line-height: 1.6; color: var(--muted); }

/* ------------------------------------------------------------
   STL Studio
   ------------------------------------------------------------ */
.stl-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: center; min-height: 292px; padding: 34px 38px; border-radius: 26px; color: #fff; isolation: isolate; background: radial-gradient(100% 150% at 90% 0%, rgba(48,86,255,.46), transparent 55%), radial-gradient(70% 100% at 0% 100%, rgba(86,218,210,.12), transparent 60%), linear-gradient(120deg, #0a101d, #101c35); }
.stl-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 30px 30px; mask-image: radial-gradient(circle at 72% 50%, #000, transparent 65%); }
.stl-hero-copy h1 { font-family: var(--serif); font-size: clamp(36px, 4.2vw, 57px); font-weight: 400; line-height: .93; letter-spacing: -.045em; }
.stl-hero-copy h1 em { font-style: italic; color: #a8b9ff; }
.stl-hero-copy p { max-width: 390px; margin-top: 12px; font-size: 11.5px; line-height: 1.65; color: #a7b3cb; }
.stl-hero-stats { display: flex; gap: 22px; margin-top: 20px; }
.stl-hero-stat strong { display: block; font-family: var(--serif); font-size: 22px; font-weight: 400; letter-spacing: -.02em; }
.stl-hero-stat span { display: block; font-size: 8.5px; color: #8d99b3; margin-top: 1px; }
.stl-upload-panel { padding: 17px; border-radius: 18px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); backdrop-filter: blur(16px); box-shadow: 0 20px 40px -25px rgba(0,0,0,.8); }
.stl-upload-panel .upload-zone { min-height: 169px; border-color: rgba(255,255,255,.27); background: rgba(255,255,255,.045); }
.stl-upload-panel .upload-zone:hover, .stl-upload-panel .upload-zone.dragover { border-color: var(--cyan); background: rgba(255,255,255,.09); }
.stl-upload-panel .upload-icon { background: rgba(146,233,226,.14); color: var(--cyan); }
.stl-upload-panel .upload-zone strong { color: #fff; }
.stl-upload-panel .upload-zone p { color: #a7b3c9; }
.stl-upload-panel .upload-formats span { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); color: #b6c0d5; }
.stl-upload-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 9px; }
.stl-upload-actions span { font-size: 8px; color: #8f9bb4; }
.stl-upload-actions .btn { height: 33px; padding: 0 11px; font-size: 9px; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.16); color: #fff; }
.stl-upload-actions .btn:hover { background: rgba(255,255,255,.16); }

.scan-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 25px 0 13px; }
.scan-toolbar-left { display: flex; align-items: center; gap: 10px; }
.scan-toolbar h2 { font-family: var(--serif); font-size: 27px; font-weight: 400; letter-spacing: -.03em; }
.scan-toolbar .count-badge { display: grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-size: 8px; font-weight: 700; color: var(--muted); }
.scan-toolbar-right { display: flex; gap: 6px; align-items: center; }
.scan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.scan-card { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s; }
.scan-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.scan-media { position: relative; height: 176px; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 50% 45%, #eef6f7, #fbfaf6 68%); border-bottom: 1px solid var(--line); }
.scan-card.tone-dark .scan-media { background: radial-gradient(circle at 50% 45%, #1d3140, #0e1723 75%); }
.scan-media img { width: 100%; height: 100%; object-fit: cover; }
.scan-card.tone-dark .scan-media img { opacity: .95; }
.scan-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(8,14,24,.46)); pointer-events: none; }
.scan-card.tone-dark .scan-overlay { background: linear-gradient(180deg, transparent 55%, rgba(8,14,24,.65)); }
.scan-status { position: absolute; z-index: 2; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 4px; height: 23px; padding: 0 8px; border-radius: 999px; background: rgba(255,255,255,.9); border: 1px solid rgba(255,255,255,.8); backdrop-filter: blur(8px); font-size: 7.5px; font-weight: 700; color: var(--success); }
.scan-status.pending { color: var(--warning); }
.scan-status.review { color: var(--danger); }
.scan-status svg { width: 10px; height: 10px; }
.scan-view-btn { position: absolute; z-index: 2; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; height: 29px; padding: 0 10px; border-radius: 7px; border: 1px solid rgba(255,255,255,.16); background: rgba(9,16,29,.7); color: #fff; font-size: 8.5px; font-weight: 650; backdrop-filter: blur(8px); }
.scan-view-btn:hover { background: var(--blue); }
.scan-view-btn svg { width: 12px; height: 12px; }
.scan-card-body { padding: 12px 13px 13px; }
.scan-card-body .eyebrow { font-size: 7px; margin-bottom: 3px; }
.scan-card-body h3 { font-size: 11px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scan-card-meta { display: flex; align-items: center; gap: 5px; margin-top: 3px; font-size: 8px; color: var(--muted); }
.scan-card-meta .dot-sep { width: 2px; height: 2px; border-radius: 50%; background: var(--line-strong); }
.scan-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding-top: 9px; border-top: 1px solid #ede8df; }
.scan-card-foot span { display: inline-flex; align-items: center; gap: 4px; font-size: 8px; color: var(--muted); }
.scan-card-foot span svg { width: 11px; height: 11px; }
.scan-card-foot a { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; font-size: 8px; font-weight: 650; color: var(--ink); }
.scan-card-foot a:hover { border-color: var(--ink); }
.scan-card-foot a svg { width: 11px; height: 11px; }

.studio-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; padding: 14px 15px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.45); }
.studio-note svg { width: 17px; height: 17px; color: var(--blue); margin-top: 1px; flex: none; }
.studio-note p { font-size: 9px; line-height: 1.55; color: var(--muted); }
.studio-note strong { color: var(--ink); }

/* 3D viewer */
.viewer-overlay { position: fixed; inset: 0; z-index: 1400; display: flex; flex-direction: column; background: #080d16; color: #e9eef8; animation: overlayIn .2s ease both; }
.viewer-top { flex: none; height: 64px; display: flex; align-items: center; gap: 15px; padding: 0 20px; border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(10,16,28,.78); backdrop-filter: blur(14px); }
.viewer-top .viewer-title { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.viewer-title strong { font-size: 11.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewer-title small { font-size: 8.5px; color: #8592aa; }
.viewer-top-actions { margin-left: auto; display: flex; align-items: center; gap: 5px; }
.viewer-tool { display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 32px; min-width: 32px; padding: 0 9px; border-radius: 7px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); color: #bcc7db; font-size: 8.5px; font-weight: 650; }
.viewer-tool:hover, .viewer-tool.active { background: rgba(255,255,255,.13); color: #fff; border-color: rgba(255,255,255,.2); }
.viewer-tool svg { width: 14px; height: 14px; }
.viewer-close { color: #fff; border-color: rgba(255,255,255,.16); }
.viewer-main { flex: 1; min-height: 0; display: flex; }
.viewer-canvas-wrap { flex: 1; min-width: 0; position: relative; overflow: hidden; background: radial-gradient(circle at 50% 45%, #16283a 0%, #0a121e 52%, #070b12 100%); }
.viewer-grid { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(130,195,210,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(130,195,210,.05) 1px, transparent 1px); background-size: 34px 34px; mask-image: radial-gradient(circle at 50% 45%, #000 20%, transparent 75%); }
#viewerCanvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: none; }
#viewerCanvas:active { cursor: grabbing; }
.viewer-hint { position: absolute; left: 20px; bottom: 18px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 7px; background: rgba(8,13,22,.6); border: 1px solid rgba(255,255,255,.09); color: #8391a8; font-size: 8px; backdrop-filter: blur(8px); }
.viewer-hint svg { width: 12px; height: 12px; }
.viewer-loading { position: absolute; inset: 0; display: grid; place-items: center; z-index: 3; background: rgba(7,11,18,.7); }
.viewer-loading span { width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(255,255,255,.12); border-top-color: var(--cyan); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.viewer-side { width: 300px; flex: none; border-left: 1px solid rgba(255,255,255,.08); background: #0b1220; padding: 22px 19px; overflow-y: auto; }
.viewer-side .eyebrow { color: #71809b; margin-bottom: 7px; }
.viewer-side h2 { font-family: var(--serif); font-size: 24px; font-weight: 400; letter-spacing: -.03em; }
.viewer-side > p { margin-top: 6px; font-size: 9.5px; line-height: 1.55; color: #8997af; }
.viewer-specs { display: flex; flex-direction: column; margin-top: 16px; border-top: 1px solid rgba(255,255,255,.08); }
.viewer-spec { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 8.5px; }
.viewer-spec span { color: #7f8da5; }
.viewer-spec strong { color: #dfe7f3; text-align: right; font-weight: 600; }
.viewer-check { display: flex; align-items: flex-start; gap: 7px; margin-top: 14px; padding: 10px; border-radius: 8px; background: rgba(47,201,143,.08); border: 1px solid rgba(47,201,143,.16); color: #93d7b8; font-size: 8.5px; line-height: 1.45; }
.viewer-check svg { width: 14px; height: 14px; flex: none; color: #4dd5a1; margin-top: 1px; }
.viewer-side-actions { display: flex; flex-direction: column; gap: 7px; margin-top: 18px; }
.viewer-side-actions .btn { height: 38px; font-size: 10px; }
.viewer-side-actions .btn-outline { border-color: rgba(255,255,255,.17); color: #dfe7f3; }
.viewer-side-actions .btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.05); }
.viewer-side-actions .btn-primary { background: var(--blue); }
.viewer-note { margin-top: 12px; font-size: 7.5px; line-height: 1.45; color: #66738a; }

/* ------------------------------------------------------------
   Collections / impressions
   ------------------------------------------------------------ */
.collection-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; min-height: 258px; padding: 33px 36px; border-radius: 26px; color: #fff; isolation: isolate; background: radial-gradient(100% 160% at 96% 0%, rgba(48,86,255,.5), transparent 56%), radial-gradient(70% 100% at 0% 100%, rgba(97,230,220,.12), transparent 60%), linear-gradient(120deg, #0a101d, #111e37); }
.collection-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255,255,255,.22) .7px, transparent .7px); background-size: 17px 17px; opacity: .17; mask-image: linear-gradient(90deg, #000, transparent 62%); }
.collection-hero-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.collection-hero-copy h1 { font-family: var(--serif); font-size: clamp(38px, 4.3vw, 58px); font-weight: 400; letter-spacing: -.045em; line-height: .92; }
.collection-hero-copy h1 em { font-style: italic; color: #a9baff; }
.collection-hero-copy p { max-width: 380px; margin-top: 11px; font-size: 11.5px; line-height: 1.6; color: #a7b2c9; }
.collection-hero-copy .btn { margin-top: 17px; }
.collection-hero-art { position: relative; display: flex; align-items: center; justify-content: center; }
.route-map { position: relative; width: 100%; max-width: 350px; aspect-ratio: 1.25; border-radius: 19px; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.12); overflow: hidden; backdrop-filter: blur(10px); }
.route-map::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 26px 26px; mask-image: radial-gradient(circle, #000, transparent 80%); }
.route-path { position: absolute; inset: 20% 12%; border: 1.5px dashed rgba(146,233,226,.55); border-radius: 52% 48% 42% 58% / 48% 40% 60% 52%; transform: rotate(-9deg); }
.route-pin { position: absolute; display: flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 7px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); color: #dbe5f6; font-size: 7.5px; font-weight: 600; backdrop-filter: blur(8px); }
.route-pin svg { width: 10px; height: 10px; color: var(--cyan); }
.route-pin.p1 { top: 18%; left: 15%; }
.route-pin.p2 { top: 47%; right: 10%; }
.route-pin.p3 { bottom: 14%; left: 28%; }
.route-truck { position: absolute; left: 39%; top: 38%; display: grid; place-items: center; width: 47px; height: 47px; border-radius: 50%; background: var(--blue); color: #fff; box-shadow: 0 0 0 8px rgba(48,86,255,.16), 0 14px 25px -10px rgba(0,0,0,.6); }
.route-truck svg { width: 20px; height: 20px; }
.route-eta { position: absolute; right: 12px; bottom: 12px; padding: 6px 9px; border-radius: 7px; background: rgba(7,13,24,.6); border: 1px solid rgba(255,255,255,.1); font-size: 7.5px; color: #a9b6cb; }
.route-eta strong { color: #fff; }

.tabs { display: flex; align-items: center; gap: 3px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); width: fit-content; }
.tab-btn { height: 31px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; font-size: 10px; font-weight: 600; color: var(--muted); }
.tab-btn.active { background: var(--ink); color: #fff; }
.collections-tabs-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 0 14px; }
.collections-tabs-row .right { display: flex; align-items: center; gap: 8px; }
.collection-overview { display: grid; grid-template-columns: 1.25fr .75fr; gap: 13px; align-items: start; }
.upcoming-pickup { position: relative; overflow: hidden; padding: 21px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.upcoming-pickup::before { content: ""; position: absolute; right: -50px; top: -60px; width: 190px; height: 190px; border-radius: 50%; background: #eff2ff; }
.upcoming-pickup > * { position: relative; }
.upcoming-pickup .eyebrow { margin-bottom: 6px; }
.upcoming-pickup h2 { font-family: var(--serif); font-size: 28px; font-weight: 400; letter-spacing: -.03em; }
.pickup-detail { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; }
.pickup-date-big { width: 61px; height: 66px; border-radius: 12px; background: var(--blue); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; line-height: 1; }
.pickup-date-big small { font-size: 8px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.pickup-date-big strong { font-family: var(--serif); font-size: 30px; font-weight: 400; margin-top: 3px; }
.pickup-copy h3 { font-size: 12px; font-weight: 650; }
.pickup-copy p { font-size: 9.5px; color: var(--muted); line-height: 1.5; margin-top: 3px; }
.pickup-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.pickup-actions { display: flex; gap: 7px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.pickup-actions .btn { height: 34px; font-size: 9.5px; }
.collection-side { display: flex; flex-direction: column; gap: 13px; }
.service-card { padding: 17px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.service-card h3 { font-family: var(--serif); font-size: 21px; font-weight: 400; letter-spacing: -.025em; }
.service-card p { margin-top: 4px; font-size: 9px; line-height: 1.55; color: var(--muted); }
.service-list { display: flex; flex-direction: column; gap: 7px; margin-top: 11px; }
.service-list span { display: flex; align-items: center; gap: 6px; font-size: 9px; color: var(--muted); }
.service-list svg { width: 12px; height: 12px; color: var(--success); }
.collection-history { margin-top: 14px; }
.history-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.history-head h2 { font-family: var(--serif); font-size: 23px; font-weight: 400; }
.history-table { border: 1px solid var(--line); border-radius: 15px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm); }
.history-row { display: grid; grid-template-columns: 1.1fr .9fr 1fr .6fr; gap: 15px; align-items: center; padding: 12px 16px; border-bottom: 1px solid #ede8df; font-size: 9.5px; }
.history-row:last-child { border-bottom: 0; }
.history-row.head { background: #faf8f3; font-size: 7.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 8px 16px; }
.history-row strong { font-size: 10px; font-weight: 650; }
.history-row small { display: block; font-size: 8px; color: var(--muted); }
.history-status { display: inline-flex; align-items: center; gap: 4px; font-size: 8.5px; font-weight: 650; }
.history-status.collected { color: var(--success); }
.history-status.cancelled { color: var(--muted); }

.impressions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.impression-card { position: relative; overflow: hidden; padding: 19px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.impression-step-num { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; background: var(--blue-soft); color: var(--blue-dark); font-family: var(--serif); font-size: 15px; margin-bottom: 13px; }
.impression-card h3 { font-family: var(--serif); font-size: 22px; font-weight: 400; letter-spacing: -.025em; }
.impression-card p { margin-top: 5px; font-size: 9.5px; line-height: 1.6; color: var(--muted); }
.impression-card .mini-check { display: flex; align-items: flex-start; gap: 5px; margin-top: 8px; font-size: 8.5px; color: var(--muted); }
.impression-card .mini-check svg { width: 11px; height: 11px; color: var(--success); margin-top: 1px; flex: none; }
.impression-help { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 13px; }
.help-banner { position: relative; overflow: hidden; padding: 20px; border-radius: 18px; background: linear-gradient(135deg, #0b1221, #15264a); color: #fff; }
.help-banner h3 { font-family: var(--serif); font-size: 25px; font-weight: 400; letter-spacing: -.03em; }
.help-banner p { margin-top: 5px; font-size: 9.5px; line-height: 1.55; color: #a6b2c8; max-width: 300px; }
.help-banner .btn { margin-top: 14px; height: 34px; font-size: 9.5px; }
.help-checklist { padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); }
.help-checklist h3 { font-size: 11px; font-weight: 650; margin-bottom: 9px; }
.checklist-row { display: flex; align-items: flex-start; gap: 7px; padding: 5px 0; font-size: 9px; color: var(--muted); }
.checklist-row svg { width: 12px; height: 12px; color: var(--success); margin-top: 1px; flex: none; }

/* Booking modal */
.booking-modal { width: min(780px, 100%); }
.booking-body { display: grid; grid-template-columns: 1.08fr .92fr; min-height: 490px; }
.booking-form-col { padding: 29px 28px; }
.booking-form-col h2 { font-family: var(--serif); font-size: 35px; font-weight: 400; letter-spacing: -.04em; line-height: .96; margin: 5px 0 7px; }
.booking-form-col > p { font-size: 10px; line-height: 1.55; color: var(--muted); margin-bottom: 16px; }
.booking-side { padding: 26px 24px; background: #f4f0e9; border-left: 1px solid var(--line); }
.booking-side h3 { font-family: var(--serif); font-size: 22px; font-weight: 400; letter-spacing: -.025em; }
.booking-side p { font-size: 9px; color: var(--muted); line-height: 1.5; margin-top: 3px; }
.booking-summary { display: flex; flex-direction: column; margin-top: 15px; border-top: 1px solid var(--line); }
.booking-summary-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 9px; }
.booking-summary-row span { color: var(--muted); }
.booking-summary-row strong { font-weight: 600; text-align: right; max-width: 150px; }
.booking-summary-row.total { padding-top: 11px; font-size: 10px; }
.booking-summary-row.total strong { font-family: var(--serif); font-size: 20px; font-weight: 400; }
.booking-side .inner-note { margin-top: 14px; font-size: 8.5px; }
.booking-side .btn { margin-top: 14px; }
.date-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.date-option { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 7px 3px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); cursor: pointer; }
.date-option input { position: absolute; opacity: 0; }
.date-option small { font-size: 7px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.date-option strong { font-family: var(--serif); font-size: 19px; font-weight: 400; line-height: 1.1; }
.date-option span { font-size: 6.5px; color: var(--muted); }
.date-option:has(input:checked) { background: var(--blue); border-color: var(--blue); color: #fff; }
.date-option:has(input:checked) small, .date-option:has(input:checked) span { color: rgba(255,255,255,.7); }
.time-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 5px; }
.time-option { position: relative; display: flex; align-items: center; justify-content: center; height: 34px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); font-size: 9px; font-weight: 600; color: var(--muted); cursor: pointer; }
.time-option input { position: absolute; opacity: 0; }
.time-option:has(input:checked) { background: var(--ink); border-color: var(--ink); color: #fff; }
.booking-case-list { display: flex; flex-direction: column; gap: 4px; margin-top: 3px; }
.booking-case { display: flex; align-items: center; gap: 7px; padding: 6px 7px; border: 1px solid var(--line); border-radius: 6px; font-size: 8px; background: var(--surface); cursor: pointer; }
.booking-case input { accent-color: var(--blue); width: 11px; height: 11px; }
.booking-case strong { font-weight: 600; }
.booking-case span { color: var(--muted); margin-left: auto; }
.booking-form-col .field { gap: 4px; }
.booking-form-col .field label { font-size: 8px; }
.booking-form-col .field input, .booking-form-col .field select, .booking-form-col .field textarea { min-height: 37px; font-size: 10px; border-radius: 8px; padding: 8px 10px; }
.booking-form-col .field textarea { min-height: 54px; }
.booking-form-col .field-row { gap: 8px; }
.booking-section-label { font-size: 8px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }

/* ------------------------------------------------------------
   Messages
   ------------------------------------------------------------ */
.messages-shell { display: grid; grid-template-columns: 304px 1fr; border: 1px solid var(--line); border-radius: 21px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm); min-height: 606px; }
.thread-list { border-right: 1px solid var(--line); background: #fbf9f4; display: flex; flex-direction: column; min-height: 0; }
.thread-list-head { padding: 17px 16px 11px; border-bottom: 1px solid var(--line); }
.thread-list-head .row { display: flex; align-items: center; justify-content: space-between; }
.thread-list-head h2 { font-family: var(--serif); font-size: 25px; font-weight: 400; letter-spacing: -.03em; }
.thread-search { display: flex; align-items: center; gap: 6px; height: 32px; margin-top: 11px; padding: 0 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.thread-search svg { width: 13px; height: 13px; color: var(--muted); }
.thread-search input { border: 0; background: transparent; outline: 0; font-size: 9px; width: 100%; }
.thread-items { flex: 1; overflow-y: auto; padding: 5px; }
.thread-item { display: flex; align-items: flex-start; gap: 9px; width: 100%; padding: 10px; border: 0; border-radius: 12px; background: transparent; text-align: left; }
.thread-item:hover { background: rgba(255,255,255,.6); }
.thread-item.active { background: var(--surface); box-shadow: var(--shadow-sm); }
.thread-avatar { width: 33px; height: 33px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--blue-soft); color: var(--blue-dark); font-size: 9px; font-weight: 750; }
.thread-avatar.lab { background: #e9e0d2; color: #54452f; }
.thread-avatar.billing { background: var(--mint); color: #28674f; }
.thread-copy { min-width: 0; flex: 1; }
.thread-copy-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.thread-copy strong { font-size: 9.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread-copy time { font-size: 7px; color: var(--muted-2); flex: none; }
.thread-copy p { font-size: 8.5px; color: var(--muted); line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.thread-badge { display: grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 6.5px; font-weight: 700; margin-top: 2px; }
.conversation { display: flex; flex-direction: column; min-height: 0; background: var(--surface); }
.conversation-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.conversation-head .thread-avatar { width: 37px; height: 37px; }
.conversation-head-copy { flex: 1; }
.conversation-head-copy h2 { font-size: 12px; font-weight: 650; }
.conversation-head-copy small { display: flex; align-items: center; gap: 4px; font-size: 8px; color: var(--muted); margin-top: 1px; }
.conversation-head-actions { display: flex; gap: 3px; }
.conversation-body { flex: 1; overflow-y: auto; padding: 20px 23px; display: flex; flex-direction: column; gap: 13px; background: #fcfaf6; }
.conv-date { text-align: center; font-size: 7.5px; color: var(--muted-2); margin: 4px 0; }
.conv-msg { display: flex; gap: 8px; align-items: flex-start; max-width: 80%; }
.conv-msg.them { align-self: flex-start; }
.conv-msg.me { align-self: flex-end; flex-direction: row-reverse; }
.conv-msg .msg-avatar { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 7px; font-weight: 700; background: #e9e0d2; color: #54452f; }
.conv-msg.me .msg-avatar { background: #e5e0d7; color: #4d4a43; }
.conv-bubble { padding: 9px 11px; border-radius: 3px 12px 12px 12px; background: #fff; border: 1px solid var(--line); font-size: 10px; line-height: 1.55; color: var(--ink-2); box-shadow: 0 2px 5px -4px rgba(0,0,0,.12); }
.conv-msg.me .conv-bubble { border-radius: 12px 3px 12px 12px; background: var(--blue); border-color: var(--blue); color: #fff; }
.conv-bubble strong { font-weight: 650; }
.conv-time { font-size: 7px; color: var(--muted-2); margin-top: 3px; }
.conv-msg.me .conv-time { text-align: right; }
.conv-card { margin-top: 6px; padding: 8px; border-radius: 8px; background: #f7f4ee; border: 1px solid var(--line); display: flex; align-items: center; gap: 7px; color: var(--ink); }
.conv-card img { width: 31px; height: 31px; object-fit: contain; background: #fff; border-radius: 5px; }
.conv-card div { flex: 1; }
.conv-card strong { display: block; font-size: 8.5px; font-weight: 650; }
.conv-card small { display: block; font-size: 7.5px; color: var(--muted); }
.conv-card svg { width: 12px; height: 12px; color: var(--muted); }
.conversation-form { display: flex; align-items: flex-end; gap: 7px; padding: 12px 15px; border-top: 1px solid var(--line); background: var(--surface); }
.conversation-form .attach-btn { width: 33px; height: 33px; border: 1px solid var(--line); border-radius: 8px; }
.conversation-input { flex: 1; min-height: 38px; max-height: 100px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; font-size: 10px; resize: none; outline: none; background: var(--surface-2); }
.conversation-input:focus { border-color: var(--blue); }
.conversation-form .btn { height: 38px; padding: 0 13px; font-size: 9.5px; }
.conv-reply { font-size: 8px; color: var(--muted); padding: 0 23px 10px; background: #fcfaf6; display: flex; align-items: center; gap: 5px; }

/* ------------------------------------------------------------
   Search modal
   ------------------------------------------------------------ */
.search-modal { width: min(610px, 100%); max-height: 78vh; align-self: flex-start; margin-top: 12vh; overflow: hidden; display: flex; flex-direction: column; }
.search-input-wrap { display: flex; align-items: center; gap: 10px; padding: 15px 17px; border-bottom: 1px solid var(--line); }
.search-input-wrap svg { width: 19px; height: 19px; color: var(--muted); }
.search-input-wrap input { flex: 1; border: 0; background: transparent; outline: 0; font-size: 17px; letter-spacing: -.02em; }
.search-input-wrap input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.search-input-wrap kbd { font-family: var(--sans); font-size: 8px; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 2px 5px; }
.search-results { overflow-y: auto; padding: 8px; }
.search-section { padding: 6px 8px 4px; font-size: 7.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.search-result { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border: 0; border-radius: 9px; background: transparent; text-align: left; }
.search-result:hover { background: var(--surface-2); }
.search-result-media { width: 35px; height: 35px; border-radius: 7px; display: grid; place-items: center; overflow: hidden; background: #f0ebe3; flex: none; }
.search-result-media img { width: 86%; height: 86%; object-fit: contain; }
.search-result-copy { flex: 1; min-width: 0; }
.search-result-copy strong { display: block; font-size: 10px; font-weight: 650; }
.search-result-copy small { display: block; font-size: 8px; color: var(--muted); margin-top: 1px; }
.search-result > svg { width: 13px; height: 13px; color: var(--muted); }
.search-empty { padding: 28px 15px; text-align: center; font-size: 10px; color: var(--muted); }
.search-foot { display: flex; align-items: center; gap: 15px; padding: 9px 16px; border-top: 1px solid var(--line); background: #faf8f3; font-size: 7.5px; color: var(--muted); }
.search-foot span { display: inline-flex; align-items: center; gap: 4px; }
.search-foot kbd { font-family: var(--sans); border: 1px solid var(--line); border-radius: 3px; padding: 1px 4px; font-size: 7px; }

/* ------------------------------------------------------------
   Toasts
   ------------------------------------------------------------ */
.toast-root { position: fixed; z-index: 2000; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; background: var(--ink); color: #fff; box-shadow: 0 14px 36px -12px rgba(0,0,0,.48); font-size: 10.5px; font-weight: 500; animation: toastIn .3s var(--ease) both; }
.toast svg { width: 15px; height: 15px; color: var(--cyan); flex: none; }
.toast.out { animation: toastOut .25s ease both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(5px) scale(.98); } }

/* ------------------------------------------------------------
   Mobile tab bar
   ------------------------------------------------------------ */
.mobile-tabbar { display: none; }

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 1350px) {
  :root { --sidebar-w: 236px; }
  .page { padding: 28px 30px 80px; }
  .topbar { padding: 0 27px; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .wizard-rail { width: 224px; }
  .wizard-guide { width: 268px; }
  .wizard-footer { left: 224px; right: 268px; padding: 0 30px; }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .scan-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1120px) {
  .search-trigger { width: 230px; }
  .search-trigger span { font-size: 10.5px; }
  .top-collection { display: none; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .specialty-grid { grid-template-columns: repeat(3, 1fr); }
  .studio-hero { grid-template-columns: 1.08fr .92fr; padding: 36px; }
  .hero-copy h1 { font-size: 51px; }
  .hero-spec { width: 140px; }
  .case-detail-grid { grid-template-columns: 1.35fr .8fr; }
  .wizard-guide { display: none; }
  .wizard-footer { right: 0; }
  .viewer-side { width: 260px; }
}

@media (max-width: 920px) {
  :root { --sidebar-w: 0px; --topbar-h: 64px; }
  .sidebar { width: 268px; transform: translateX(-102%); transition: transform .35s var(--ease-io); z-index: 1000; box-shadow: 20px 0 60px rgba(0,0,0,.35); }
  body.nav-open .sidebar { transform: translateX(0); }
  .sidebar-collapse { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06); color: #fff; border-radius: 8px; }
  .sidebar-collapse svg { width: 15px; height: 15px; }
  .content-shell { margin-left: 0; }
  .topbar { padding: 0 18px; gap: 8px; }
  .mobile-menu-btn { display: inline-grid; margin-right: 1px; }
  .crumb { min-width: 0; }
  .crumb span { display: none; }
  .crumb strong { font-size: 12px; }
  .search-trigger { margin-left: auto; width: 39px; padding: 0; justify-content: center; border-radius: 50%; height: 39px; background: transparent; border-color: transparent; }
  .search-trigger span, .search-trigger kbd { display: none; }
  .search-trigger svg { width: 18px; height: 18px; }
  .page { padding: 22px 20px 100px; }
  .topbar-actions { margin-left: 0; gap: 3px; }
  .topbar-actions .top-new { display: none; }
  .top-avatar { width: 34px; height: 34px; }
  .topbar-actions .icon-btn { width: 38px; height: 38px; }
  .mobile-tabbar {
    position: fixed; z-index: 750; left: 12px; right: 12px; bottom: 10px; height: 58px;
    display: flex; align-items: center; justify-content: space-around;
    padding: 5px 7px; border-radius: 18px; background: rgba(11, 17, 32, .94);
    border: 1px solid rgba(255,255,255,.1); box-shadow: 0 16px 35px -12px rgba(6,11,22,.6);
    backdrop-filter: blur(18px);
  }
  .mobile-tabbar a, .mobile-tabbar button {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    width: 54px; height: 44px; border: 0; background: transparent; color: #7e8aa4;
    font-size: 7.5px; font-weight: 600; border-radius: 11px;
  }
  .mobile-tabbar a.active, .mobile-tabbar a:hover, .mobile-tabbar button:hover { color: #fff; }
  .mobile-tabbar svg { width: 18px; height: 18px; }
  .mobile-tabbar .mobile-order { color: #fff; transform: translateY(-11px); }
  .mobile-tabbar .mobile-order span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--blue); box-shadow: 0 7px 17px -5px rgba(48,86,255,.8), 0 0 0 4px var(--paper); }
  .mobile-tabbar .mobile-order span svg { width: 20px; height: 20px; }
  .mobile-tabbar .mobile-order em { font-style: normal; margin-top: 2px; color: #b7c0d5; font-size: 7px; }
  .ai-fab { display: none; }
  .toast-root { bottom: 82px; }

  .studio-hero { grid-template-columns: 1fr; min-height: auto; padding: 31px 27px 22px; }
  .hero-copy { max-width: 100%; }
  .hero-copy h1 { max-width: 470px; font-size: 48px; }
  .hero-copy p { max-width: 400px; }
  .hero-art { min-height: 280px; margin-top: 8px; }
  .hero-denture { width: min(390px, 88%); max-height: 290px; }
  .hero-spec { right: 4%; top: 8%; width: 135px; }
  .hero-crown-card { left: 2%; bottom: 0; }
  .hero-scan-badge { bottom: 2%; }
  .metric-grid { gap: 9px; }
  .specialty-grid { grid-template-columns: repeat(2, 1fr); }
  .overview-split { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .catalogue-head { grid-template-columns: 1fr; gap: 18px; padding-top: 9px; }
  .catalogue-head .cat-intro { justify-self: start; padding: 0; }
  .catalogue-head h1 { font-size: 58px; }
  .filter-bar { margin-left: -20px; margin-right: -20px; padding: 9px 20px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-media { height: 200px; }
  .product-modal { grid-template-columns: 1fr; }
  .product-modal-media { min-height: 290px; padding: 22px; }
  .product-modal-media img { height: 240px; }
  .product-modal-body { padding: 24px; }
  .case-detail-grid { grid-template-columns: 1fr; }
  .case-hero { flex-direction: column; gap: 12px; }
  .case-summary-grid { grid-template-columns: repeat(2, 1fr); }
  .case-list-row { grid-template-columns: 1.4fr .9fr .8fr 26px; }
  .case-list-row .case-list-amount { display: none; }
  .case-list-row.case-list-head { grid-template-columns: 1.4fr .9fr .8fr 26px; }
  .stl-hero { grid-template-columns: 1fr; padding: 27px; gap: 20px; }
  .stl-hero-copy h1 { font-size: 43px; }
  .stl-upload-panel { max-width: 460px; }
  .scan-grid { grid-template-columns: repeat(2, 1fr); }
  .collection-hero { grid-template-columns: 1fr; padding: 27px; }
  .collection-hero-art { display: none; }
  .collection-overview { grid-template-columns: 1fr; }
  .collections-tabs-row { align-items: flex-start; flex-direction: column; }
  .impressions-grid { grid-template-columns: 1fr; }
  .impression-help { grid-template-columns: 1fr; }
  .messages-shell { grid-template-columns: 250px 1fr; min-height: 560px; }
  .thread-list { border-right: 1px solid var(--line); }
  .viewer-side { width: 245px; padding: 17px 14px; }
  .wizard-rail { width: 204px; padding: 20px 13px; }
  .wiz-content { padding: 26px 24px 110px; }
  .wizard-footer { left: 204px; padding: 0 22px; }
  .wizard-top { padding: 0 15px; }
  .wizard-brand-copy { display: none; }
  .wizard-top-divider { display: none; }
  .booking-body { grid-template-columns: 1fr; }
  .booking-side { border-left: 0; border-top: 1px solid var(--line); }
  .booking-form-col { padding: 24px 22px 18px; }
  .booking-side { padding: 20px 22px; }
  .booking-side .btn { width: 100%; }
}

@media (max-width: 700px) {
  .page { padding: 18px 14px 96px; }
  .topbar { padding: 0 13px; }
  .topbar-actions .top-collection { display: none; }
  .top-avatar { display: none; }
  .notif-panel { right: 48px; }
  .page-intro { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 17px; }
  .page-intro .intro-actions { width: 100%; }
  .page-intro .intro-actions .btn { flex: 1; }
  .page-intro h1 { font-size: 36px; }
  .studio-hero { border-radius: 24px; padding: 27px 21px 18px; }
  .hero-copy h1 { font-size: 43px; }
  .hero-copy p { font-size: 11.5px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1; height: 41px; padding: 0 12px; }
  .hero-stats { margin-top: 20px; }
  .hero-stat { padding: 0 10px; }
  .hero-art { min-height: 235px; }
  .hero-denture { width: min(310px, 88%); max-height: 235px; }
  .hero-spec { width: 120px; padding: 9px; top: 2%; right: 0; }
  .hero-spec strong { font-size: 17px; }
  .hero-crown-card { display: none; }
  .hero-scan-badge { right: auto; left: 2%; bottom: 1%; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-card { min-height: 112px; padding: 13px; }
  .metric-value { font-size: 28px; margin: 9px 0 4px; }
  .metric-label { font-size: 9px; }
  .metric-sub { font-size: 8px; }
  .metric-spark { display: none; }
  .section-head { margin-top: 27px; }
  .section-head h2 { font-size: 24px; }
  .case-grid { grid-template-columns: 1fr; }
  .specialty-grid { grid-template-columns: 1fr 1fr; }
  .specialty-card { min-height: 165px; padding: 13px; }
  .specialty-card h3 { font-size: 18px; }
  .specialty-card.tone-all h3 { font-size: 22px; }
  .case-card { padding: 13px; }
  .case-card .pill { position: static; margin-left: auto; }
  .ai-promo { min-height: 255px; padding: 19px; }
  .ai-promo h3 { font-size: 27px; }
  .ai-promo p { font-size: 10px; }
  .ai-bubble { font-size: 9px; }
  .next-collection { padding: 17px; }
  .data-table th:nth-child(3), .data-table td:nth-child(3), .data-table th:nth-child(4), .data-table td:nth-child(4) { display: none; }
  .data-table th, .data-table td { padding: 10px 12px; }
  .table-card-head { padding: 13px; }
  .table-card-head .btn { font-size: 9px; height: 29px; padding: 0 9px; }
  .catalogue-head { padding: 6px 0 14px; gap: 11px; }
  .catalogue-head h1 { font-size: 49px; }
  .catalogue-head .cat-intro p { font-size: 10.5px; }
  .catalogue-head .cat-intro-row { display: none; }
  .filter-bar { margin-left: -14px; margin-right: -14px; padding: 8px 14px; gap: 6px; }
  .catalogue-tools .select-pill { display: none; }
  .chip { height: 31px; padding: 0 10px; font-size: 9.5px; }
  .product-grid { gap: 8px; }
  .product-media { height: 164px; }
  .product-info { padding: 10px; }
  .product-name { font-size: 11.5px; }
  .product-sub { font-size: 8.5px; min-height: 24px; }
  .product-price strong { font-size: 17px; }
  .product-turn { font-size: 7.5px; }
  .product-quick { opacity: 1; transform: none; height: 29px; padding: 0 9px; font-size: 8px; }
  .product-cat { font-size: 7px; }
  .product-fav { width: 27px; height: 27px; }
  .product-badge { font-size: 7px; height: 20px; }
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal-panel { border-radius: 24px 24px 0 0; max-height: 92vh; width: 100%; }
  .product-modal { display: block; }
  .product-modal-media { min-height: 260px; }
  .product-modal-media img { height: 210px; }
  .product-modal-body { padding: 21px 18px 25px; }
  .product-modal-body h2 { font-size: 33px; }
  .pm-meta { gap: 13px; }
  .pm-meta .pm-price { font-size: 22px; }
  .pm-buy-row { flex-wrap: wrap; }
  .pm-buy-row .qty-stepper { width: 100%; justify-content: space-between; }
  .pm-buy-row .qty-stepper button { width: 48%; }
  .pm-buy-row .btn { flex: 1; }
  .pm-secondary .btn { font-size: 9.5px; }
  .drawer { width: 100vw; }
  .drawer-head { padding: 20px 18px 14px; }
  .drawer-head h2 { font-size: 27px; }
  .drawer-body { padding: 13px 18px; }
  .drawer-foot { padding: 13px 18px 19px; }
  .ai-drawer { width: 100vw; }
  .ai-head { padding: 14px 15px 12px; }
  .ai-messages { padding: 15px 14px 6px; }
  .ai-suggestions { padding: 5px 14px 8px; }
  .ai-form { margin: 0 10px 6px; }
  .ai-disclaimer { padding: 0 12px 10px; }
  .wizard-top { height: 60px; gap: 7px; padding: 0 10px; }
  .wizard-brand .brand-mark { width: 28px; height: 28px; border-radius: 8px; }
  .wizard-brand .brand-mark svg { width: 16px; height: 16px; }
  .wizard-order-id { font-size: 8.5px; gap: 4px; }
  .wizard-order-id strong { font-size: 9px; }
  .wizard-order-id .save-status { display: none; }
  .wizard-top .btn { height: 32px; font-size: 9px; padding: 0 10px; }
  .wizard-close { width: 32px; height: 32px; }
  .wizard-body { flex-direction: column; }
  .wizard-rail { width: 100%; flex: none; border-right: 0; border-bottom: 1px solid var(--line); padding: 9px 12px; background: var(--surface); }
  .wizard-rail-head { display: none; }
  .wiz-steps { flex-direction: row; gap: 2px; overflow-x: auto; scrollbar-width: none; }
  .wiz-steps::-webkit-scrollbar { display: none; }
  .wiz-step { flex: 1; min-width: 75px; justify-content: center; padding: 7px 4px; }
  .wiz-step-copy small, .wiz-step-line { display: none; }
  .wiz-step-copy strong { font-size: 8px; white-space: nowrap; }
  .wiz-step-num { width: 19px; height: 19px; font-size: 8px; }
  .rail-help { display: none; }
  .wiz-content { padding: 21px 15px 105px; }
  .wiz-step-head { margin-bottom: 18px; }
  .wiz-step-head h1 { font-size: 34px; }
  .wiz-step-head p { font-size: 10.5px; }
  .field-row, .field-row.three { grid-template-columns: 1fr; gap: 14px; }
  .field input, .field select, .field textarea { font-size: 12px; }
  .radio-grid, .radio-grid.three { grid-template-columns: 1fr 1fr; }
  .tooth-btn { width: 28px; height: 25px; font-size: 6.5px; }
  .tooth-chart { padding: 9px 6px; overflow-x: auto; }
  .tooth-row { min-width: 470px; }
  .tooth-chart-head small { display: none; }
  .delivery-grid { grid-template-columns: 1fr 1fr; }
  .wizard-footer { height: 66px; padding: 0 14px; left: 0; right: 0; }
  .wizard-footer .footer-progress { width: 60px; }
  .wizard-footer .footer-label { display: none; }
  .wizard-footer .btn { height: 38px; font-size: 10px; }
  .wizard-guide { display: none; }
  .wiz-success { padding: 35px 17px 100px; justify-content: flex-start; }
  .success-orbit { width: 78px; height: 78px; margin-top: 15px; }
  .wiz-success h1 { font-size: 39px; }
  .success-timeline { margin-top: 26px; }
  .success-step strong { font-size: 6.5px; }
  .success-step small { display: none; }
  .case-summary-grid { gap: 8px; }
  .summary-tile { padding: 11px; }
  .summary-tile strong { font-size: 25px; }
  .case-toolbar { flex-wrap: wrap; padding: 10px; }
  .case-toolbar .search-mini { width: 100%; }
  .case-list-row { grid-template-columns: 1.4fr .8fr 26px; padding: 11px 12px; gap: 9px; }
  .case-list-row .case-list-meta { display: none; }
  .case-list-row.case-list-head { grid-template-columns: 1.4fr .8fr 26px; }
  .case-list-row.case-list-head span:nth-child(3) { display: block; }
  .case-hero-left { flex-direction: column; gap: 8px; }
  .case-hero h1 { font-size: 33px; }
  .case-progress-panel { padding: 13px 10px; }
  .stage-node strong { font-size: 6.2px; }
  .stage-node small { display: none; }
  .stage-node .stage-dot { width: 20px; height: 20px; font-size: 7px; }
  .stage-node::before { top: 9px; }
  .case-detail-grid { gap: 10px; }
  .panel-body { padding: 13px; }
  .design-preview { align-items: flex-start; }
  .design-preview-media { width: 55px; height: 52px; }
  .case-list-product h4 { font-size: 10.5px; }
  .stl-hero { border-radius: 23px; padding: 22px 19px; }
  .stl-hero-copy h1 { font-size: 38px; }
  .stl-hero-copy p { font-size: 10px; }
  .stl-hero-stats { gap: 14px; margin-top: 15px; }
  .stl-hero-stat strong { font-size: 19px; }
  .stl-upload-panel { padding: 10px; }
  .stl-upload-panel .upload-zone { min-height: 145px; padding: 17px; }
  .scan-toolbar { margin-top: 19px; }
  .scan-toolbar h2 { font-size: 23px; }
  .scan-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .scan-media { height: 135px; }
  .scan-card-body { padding: 9px; }
  .scan-card-body h3 { font-size: 9.5px; }
  .scan-card-meta { font-size: 7px; }
  .scan-card-foot a { font-size: 7px; padding: 0 5px; }
  .scan-view-btn { height: 25px; font-size: 7.5px; }
  .studio-note { padding: 11px; }
  .collection-hero { border-radius: 23px; padding: 23px 19px; }
  .collection-hero-copy h1 { font-size: 40px; }
  .collection-hero-copy p { font-size: 10px; }
  .pickup-detail { gap: 9px; }
  .pickup-date-big { width: 52px; height: 58px; }
  .pickup-date-big strong { font-size: 26px; }
  .pickup-actions { flex-wrap: wrap; }
  .pickup-actions .btn { flex: 1; }
  .history-row { grid-template-columns: 1.2fr 1fr .8fr; padding: 10px 12px; gap: 7px; }
  .history-row > *:nth-child(3) { display: none; }
  .history-row.head > *:nth-child(3) { display: none; }
  .impression-card { padding: 15px; }
  .help-banner { padding: 16px; }
  .help-banner h3 { font-size: 23px; }
  .messages-shell { grid-template-columns: 1fr; min-height: 0; }
  .thread-list { border-right: 0; max-height: 260px; }
  .thread-list-head { padding: 13px 13px 8px; }
  .thread-list-head h2 { font-size: 22px; }
  .thread-items { display: flex; flex-direction: row; overflow-x: auto; padding: 5px; }
  .thread-item { min-width: 230px; flex: none; }
  .conversation { min-height: 470px; }
  .conversation-head { padding: 11px 13px; }
  .conversation-body { padding: 14px; }
  .conv-msg { max-width: 92%; }
  .conversation-form { padding: 9px 10px; }
  .conversation-form .btn { padding: 0 10px; }
  .viewer-top { height: 56px; gap: 8px; padding: 0 11px; }
  .viewer-title small { display: none; }
  .viewer-top-actions { gap: 3px; }
  .viewer-tool { width: 29px; min-width: 29px; height: 29px; padding: 0; }
  .viewer-tool span { display: none; }
  .viewer-main { flex-direction: column; }
  .viewer-canvas-wrap { flex: 1; min-height: 280px; }
  .viewer-side { width: 100%; flex: none; max-height: 34%; border-left: 0; border-top: 1px solid rgba(255,255,255,.08); padding: 12px 14px; }
  .viewer-side h2 { font-size: 19px; }
  .viewer-side > p { display: none; }
  .viewer-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; margin-top: 7px; }
  .viewer-spec { padding: 6px 0; }
  .viewer-check, .viewer-side-actions, .viewer-note { display: none; }
  .viewer-hint { bottom: 10px; left: 10px; font-size: 7px; }
  .booking-modal { border-radius: 22px 22px 0 0; max-height: 94vh; }
  .booking-form-col h2 { font-size: 31px; }
  .booking-body { min-height: 0; }
  .date-strip { gap: 3px; }
  .date-option { padding: 5px 2px; }
  .date-option strong { font-size: 17px; }
  .date-option span { display: none; }
  .search-modal { margin-top: 8vh; }
  .search-input-wrap input { font-size: 15px; }
  .toast { font-size: 9.5px; padding: 9px 12px; }
}

@media (max-width: 430px) {
  .product-grid { grid-template-columns: 1fr 1fr; }
  .product-media { height: 148px; }
  .product-sub { display: none; }
  .product-bottom { padding-top: 8px; margin-top: 8px; }
  .product-turn { display: none; }
  .specialty-card { min-height: 148px; }
  .specialty-card h3 { font-size: 16px; }
  .specialty-card p { display: none; }
  .hero-copy h1 { font-size: 38px; }
  .hero-actions .btn { font-size: 10.5px; }
  .hero-copy .hero-stats { gap: 0; }
  .hero-stat { padding: 0 8px; }
  .hero-stat strong { font-size: 9.5px; }
  .hero-stat span { font-size: 8px; }
  .hero-spec { width: 113px; }
  .metric-value { font-size: 26px; }
  .scan-grid { grid-template-columns: 1fr; }
  .scan-media { height: 160px; }
  .case-summary-grid { grid-template-columns: 1fr 1fr; }
  .wiz-step-copy strong { font-size: 7px; }
  .wiz-step { min-width: 64px; }
  .date-strip { grid-template-columns: repeat(4, 1fr); }
  .date-strip .date-option:nth-child(5) { display: none; }
  .radio-grid, .radio-grid.three { grid-template-columns: 1fr; }
  .delivery-grid { grid-template-columns: 1fr; }
  .review-rows { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- portal auth */
.auth-gate {
  position: fixed; inset: 0; z-index: 1200;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: #efe9dd; overflow: auto;
}
.auth-gate[hidden] { display: none; }
.auth-visual {
  position: relative; overflow: hidden; padding: 54px 58px;
  background:
    radial-gradient(circle at 20% 18%, rgba(255,255,255,.9), transparent 34%),
    radial-gradient(circle at 78% 74%, rgba(188,166,128,.35), transparent 46%),
    linear-gradient(145deg, #f8f4ec, #e8dfcf);
  display: flex; flex-direction: column; justify-content: space-between;
}
.auth-visual::after {
  content: ""; position: absolute; width: 430px; height: 430px; right: -130px; bottom: -120px;
  border: 1px solid rgba(63,53,36,.18); border-radius: 50%;
  box-shadow: 0 0 0 38px rgba(255,255,255,.16), 0 0 0 76px rgba(255,255,255,.1);
}
.auth-visual-brand { display: flex; align-items: center; gap: 11px; font-size: 17px; letter-spacing: -.02em; }
.auth-visual-brand .brand-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--ink); color: #fff; }
.auth-visual-brand .brand-mark svg { width: 19px; height: 19px; }
.auth-visual-brand strong { font-weight: 650; }
.auth-visual-brand span { color: var(--muted); font-size: 12px; display: block; margin-top: 1px; }
.auth-quote { max-width: 430px; position: relative; z-index: 1; }
.auth-quote .eyebrow { color: #7b6d55; }
.auth-quote h2 { font-family: var(--serif); font-size: clamp(38px, 4.2vw, 62px); line-height: .98; font-weight: 400; letter-spacing: -.04em; color: #26231d; margin: 18px 0 20px; }
.auth-quote h2 em { color: #6f5d42; font-style: italic; }
.auth-quote p { color: #6f6657; line-height: 1.65; max-width: 340px; font-size: 14px; }
.auth-quote-foot { display: flex; align-items: center; gap: 14px; color: #7b6d55; font-size: 12px; position: relative; z-index: 1; }
.auth-quote-foot .line { width: 34px; height: 1px; background: rgba(63,53,36,.3); }
.auth-card-wrap { display: flex; align-items: center; justify-content: center; padding: 40px 28px; background: #fbf8f2; }
.auth-card { width: 100%; max-width: 430px; }
.auth-card .auth-kicker { display: flex; align-items: center; gap: 8px; color: #8d7f66; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; font-weight: 650; }
.auth-card h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4vw, 46px); line-height: 1.02; letter-spacing: -.03em; color: var(--ink); margin: 16px 0 10px; }
.auth-card h1 em { color: var(--blue); font-style: italic; }
.auth-card .auth-lead { color: var(--muted); line-height: 1.6; font-size: 13.5px; margin: 0 0 24px; }
.auth-card form { display: grid; gap: 13px; }
.auth-card .field { margin: 0; }
.auth-card .field label { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #7c7467; font-weight: 650; }
.auth-card .field input { background: #fff; border-color: #ded6c7; }
.auth-card .field input:focus { border-color: #a89674; box-shadow: 0 0 0 3px rgba(168,150,116,.15); }
.auth-submit { width: 100%; justify-content: center; min-height: 47px; }
.auth-submit[disabled] { opacity: .55; cursor: wait; }
.auth-secondary { background: none; border: 0; color: #7b6d55; font: inherit; font-size: 12px; cursor: pointer; padding: 4px 0; justify-self: center; }
.auth-secondary:hover { color: var(--ink); }
.auth-error { display: none; background: #fff0ef; border: 1px solid #f0c9c4; color: #a63a2c; border-radius: 10px; padding: 10px 12px; font-size: 12px; line-height: 1.45; }
.auth-error.show { display: block; }
.auth-dev { background: #f4efe4; border: 1px dashed #cdbfa5; border-radius: 9px; padding: 9px 11px; color: #7b6846; font-size: 11px; line-height: 1.5; }
.auth-account { display: flex; align-items: center; gap: 10px; background: #f4efe4; border: 1px solid #e6ddcc; border-radius: 12px; padding: 10px 12px; margin-bottom: 4px; }
.auth-account .auth-avatar { width: 32px; height: 32px; border-radius: 50%; background: #2e3b45; color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.auth-account strong { display: block; font-size: 12.5px; color: var(--ink); }
.auth-account span { display: block; font-size: 11px; color: var(--muted); margin-top: 1px; }
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.auth-grid .span-2 { grid-column: 1 / -1; }
.auth-foot { margin-top: 22px; color: #9a8f7e; font-size: 10.5px; line-height: 1.6; text-align: center; }
.portal-signout { width: 100%; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 10px; padding: 9px 11px; font: inherit; font-size: 12px; cursor: pointer; margin-bottom: 9px; }
.portal-signout:hover { color: var(--ink); border-color: var(--line-2); background: var(--surface-2); }
.portal-pending { background: #fff7e7; border-bottom: 1px solid #f0dcb8; color: #7b5a24; padding: 9px 24px; font-size: 12px; text-align: center; }
.portal-pending strong { font-weight: 650; }
@media (max-width: 900px) {
  .auth-gate { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-card-wrap { min-height: 100dvh; padding: 28px 20px; align-items: flex-start; padding-top: 9vh; }
  .auth-grid { grid-template-columns: 1fr; }
  .auth-grid .span-2 { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
