:root {
  --bg: #eef2f6;
  --card: #fff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --c: #0f766e;
  --c2: #ccfbf1;
  --p: #c2410c;
  --p2: #ffedd5;
  --danger: #e11d48;
  --ok: #15803d;
  --shadow: 0 10px 28px rgba(15, 23, 42, .07);
  --r: 18px;
  --safe-top: env(safe-area-inset-top);
  --safe-bot: env(safe-area-inset-bottom);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: #e8edf3; color: var(--ink); font-family: Manrope, Segoe UI, sans-serif; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
.ic { display: inline-block; vertical-align: -3px; flex-shrink: 0; }

.landing { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: radial-gradient(1200px 500px at 50% -10%, #99f6e4 0%, var(--bg) 55%); }
.landing-card { width: min(420px, 100%); background: var(--card); border-radius: 28px; padding: 24px 18px 18px; box-shadow: var(--shadow); }
.logo { width: 48px; height: 48px; border-radius: 16px; background: linear-gradient(180deg, #14b8a6, var(--c)); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 20px; box-shadow: 0 8px 16px rgba(15,118,110,.28); }
.eyebrow { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin: 14px 0 4px; }
h1 { margin: 0 0 8px; font-size: 28px; letter-spacing: -.04em; }
.sub { color: var(--muted); font-size: 13px; line-height: 1.45; margin: 0 0 14px; }
.svc-pills { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 14px; }
.svc-pills span { background: var(--bg); border-radius: 999px; padding: 6px 10px; font-size: 11px; font-weight: 800; color: var(--muted); display: inline-flex; gap: 5px; align-items: center; }
.role-grid { display: grid; gap: 10px; }
.role { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 18px; background: var(--bg); border: 1px solid transparent; }
.role:active { transform: scale(.99); }
.role .ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--c2); color: var(--c); }
.role.provider .ico { background: var(--p2); color: var(--p); }
.role h2 { margin: 0; font-size: 16px; }
.role p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.hint-box { margin-top: 12px; padding: 10px 12px; border-radius: 14px; background: #fff7ed; color: #9a3412; font-size: 12px; line-height: 1.4; }
.landing .btn.wide { margin-top: 12px; }

.app-shell {
  min-height: 100vh; min-height: 100dvh; height: 100dvh; max-width: 430px; margin: 0 auto;
  display: flex; flex-direction: column; position: relative; overflow: hidden;
  background: var(--bg); box-shadow: 0 0 40px rgba(15, 23, 42, .08);
}
.app-shell::before {
  content: "";
  position: absolute; inset: -30% -20%;
  pointer-events: none; z-index: 0;
  background:
    radial-gradient(42% 36% at 18% 22%, rgba(45,212,191,.32), transparent 70%),
    radial-gradient(38% 34% at 86% 12%, rgba(251,191,36,.2), transparent 68%),
    radial-gradient(46% 40% at 72% 84%, rgba(99,102,241,.16), transparent 70%),
    radial-gradient(30% 28% at 8% 78%, rgba(244,114,182,.1), transparent 70%);
  animation: meshDrift 22s ease-in-out infinite alternate;
}
.app-shell > * { position: relative; z-index: 1; }
@keyframes meshDrift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-4%, 3%, 0) scale(1.08); }
}
html.apk .app-shell, html.standalone .app-shell { max-width: 100%; box-shadow: none; }
html.apk, html.apk body, html.standalone, html.standalone body { background: var(--bg); }
html.apk .landing { max-width: none; padding-top: 56px; }
html.apk .landing-card { width: min(420px, 100%); }
html.apk .apk-only-hide { display: none !important; }

/* ── Topbar ── */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: calc(6px + var(--safe-top, 0px)) 10px 6px; background: rgba(238,242,246,.92); backdrop-filter: blur(14px); min-height: 48px; }
html.apk .topbar { padding-right: 10px; }
.brand { font-weight: 800; font-size: 15px; display: flex; gap: 6px; align-items: center; }
.top-actions { display: flex; gap: 4px; align-items: center; }
/* compact chip in topbar */
.topbar .chip { padding: 4px 8px; font-size: 10px; }

/* ── Hamburger button ── */
.btn-menu { border: 0; background: transparent; width: 36px; height: 36px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; cursor: pointer; border-radius: 10px; flex-shrink: 0; }
.btn-menu:active { background: var(--line); }
.btn-menu span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink); transition: all .2s; }

/* ── Drawer overlay ── */
.drawer-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(15,23,42,.4); opacity: 0; pointer-events: none; transition: opacity .22s; }
.drawer-overlay.open { opacity: 1; pointer-events: auto; }

/* ── Drawer panel ── */
.drawer { position: fixed; top: 0; left: 0; bottom: 0; z-index: 101; width: 280px; max-width: 85vw; background: var(--card); box-shadow: 4px 0 24px rgba(15,23,42,.14); transform: translateX(-100%); transition: transform .22s cubic-bezier(.4,0,.2,1); overflow-y: auto; padding-bottom: 24px; display: flex; flex-direction: column; }
.drawer.open { transform: translateX(0); }
.drawer-head { padding: calc(18px + var(--safe-top, 0px)) 16px 12px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.drawer-logo { width: 36px; height: 36px; border-radius: 12px; background: linear-gradient(180deg, #14b8a6, var(--c)); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 16px; flex-shrink: 0; }
.drawer-logo.usta { background: linear-gradient(180deg, #f59e0b, var(--p)); }
.drawer-title { font-weight: 800; font-size: 15px; }
.drawer-sub { font-size: 11px; color: var(--muted); margin-top: 1px; }
.drawer-section { padding: 8px 0; border-bottom: 1px solid var(--line); }
.drawer-section:last-child { border-bottom: 0; }
.drawer-label { padding: 8px 16px 4px; font-size: 10px; font-weight: 800; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.drawer-item { display: flex; align-items: center; gap: 10px; padding: 10px 16px; cursor: pointer; border: 0; background: transparent; width: 100%; text-align: left; font-size: 13px; font-weight: 700; color: var(--ink); border-radius: 0; }
.drawer-item:active { background: var(--bg); }
.drawer-item .nav-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--bg); color: var(--muted); flex-shrink: 0; }
.drawer-item.active .nav-ico { background: var(--c2); color: var(--c); }
.drawer-item.active { color: var(--c); }
.usta-app .drawer-item.active .nav-ico { background: var(--p2); color: var(--p); }
.usta-app .drawer-item.active { color: var(--p); }
.drawer-item .badge { margin-left: auto; background: var(--danger); color: #fff; font-size: 10px; font-weight: 800; border-radius: 999px; padding: 2px 6px; min-width: 18px; text-align: center; }
.chip { border: 0; border-radius: 999px; padding: 6px 10px; background: var(--card); color: var(--muted); font-size: 11px; font-weight: 700; display: inline-flex; gap: 6px; align-items: center; box-shadow: 0 1px 0 var(--line); }
.chip.live { background: var(--c2); color: #0f766e; }
.chip input { accent-color: var(--p); }

.btn { border: 0; border-radius: 12px; padding: 9px 12px; font-weight: 800; font-size: 13px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; justify-content: center; min-height: 40px; transition: transform .16s cubic-bezier(.22,1.4,.36,1), filter .16s ease; }
.btn.client { background: var(--c); color: #fff; }
.btn.provider { background: var(--p); color: #fff; }
.btn.ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.ok { background: var(--ok); color: #fff; }
.btn.icon { width: 40px; min-width: 40px; padding: 0; }
.btn.icon.sm { width: 34px; min-width: 34px; min-height: 34px; }
.btn.wide { width: 100%; }
.btn:active { transform: scale(.94); }
.btn.sm { min-height: 34px; padding: 6px 8px; font-size: 12px; border-radius: 10px; }

.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: radial-gradient(900px 420px at 50% -8%, #99f6e4 0%, var(--bg) 58%); }
.usta-app.auth-wrap { background: radial-gradient(900px 420px at 50% -8%, #fed7aa 0%, var(--bg) 58%); }
.auth-card, .panel, .sheet { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }
.auth-card { width: min(400px, 100%); padding: 20px 18px 16px; }
.auth-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.auth-brand h2 { margin: 0; font-size: 20px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 12px; background: var(--bg); padding: 4px; border-radius: 14px; }
.auth-tab { text-align: center; padding: 10px 8px; border-radius: 12px; font-size: 12px; font-weight: 800; color: var(--muted); }
.auth-tab.on { background: var(--c); color: #fff; }
.auth-tab.on.usta { background: var(--p); }
.ok-note { background: #dcfce7; color: var(--ok); border-radius: 12px; padding: 10px; font-size: 12px; font-weight: 700; margin: 0 0 8px; }
.steps { display: flex; gap: 6px; margin: 0 0 12px; }
.step { flex: 1; height: 4px; border-radius: 99px; background: var(--line); }
.step.on { background: var(--c); }
.step.on.usta { background: var(--p); }
.otp { letter-spacing: .35em; font-size: 24px; text-align: center; font-weight: 800; }
.demo-note { margin-top: 10px; padding: 10px; border-radius: 12px; background: #fff7ed; color: #9a3412; font-size: 12px; font-weight: 700; }

.splash { min-height: 100vh; display: grid; place-items: center; padding: 20px 16px; position: relative; overflow: hidden; }
.splash-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 480px at 20% -10%, #5eead4 0%, transparent 50%),
    radial-gradient(700px 400px at 110% 20%, #fdba74 0%, transparent 46%),
    linear-gradient(180deg, #ecfeff, #eef2f6 55%);
}
.splash-card {
  position: relative; z-index: 1;
  width: min(420px, 100%);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-radius: 28px;
  padding: 28px 18px 18px;
  box-shadow: var(--shadow);
  text-align: center;
}
.splash-logo { margin: 0 auto 10px; }
.splash-card h1 { margin: 0 0 6px; }
.splash-roles { display: grid; gap: 10px; margin-top: 18px; text-align: left; }
.splash-role {
  display: flex; gap: 12px; align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: var(--bg);
  box-shadow: 0 4px 14px rgba(15,23,42,.05);
}
.splash-role:active { transform: scale(.98); }
.splash-role.client { border: 1px solid #99f6e4; }
.splash-role.provider { border: 1px solid #fed7aa; }
.splash-role h2 { margin: 0; font-size: 16px; }
.splash-role p { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.splash-ico {
  width: 48px; height: 48px; border-radius: 16px;
  display: grid; place-items: center; font-size: 22px;
  background: #fff; flex-shrink: 0;
}
.splash-role.client .splash-ico { background: var(--c2); }
.splash-role.provider .splash-ico { background: var(--p2); }
html.apk .splash { padding-top: 56px; }

.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.field span { color: var(--muted); font-size: 11px; font-weight: 800; }
.field input, .field select, .field textarea { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; outline: none; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #99f6e4; box-shadow: 0 0 0 3px rgba(15,118,110,.12); }
.hidden { display: none !important; }
.error { color: var(--danger); font-size: 12px; min-height: 1em; }

.map { height: 32vh; margin: 0; border-radius: 18px; overflow: hidden; background: #dbeafe; box-shadow: var(--shadow); }
#mapWrap { margin: 0 10px 8px; }
.sheet { margin: 0 10px 8px; flex: 1; overflow-y: auto; overflow-x: hidden; padding: 10px; overscroll-behavior: contain; }
.view[data-view="map"] { overflow: hidden; }
.view[data-view="map"] .sheet { max-height: none; flex: 1; }
.view[data-view="map"].map-on .sheet { max-height: 30vh; flex: none; }
.list { display: grid; gap: 8px; }
.item { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; padding: 8px; border-radius: 14px; background: var(--bg); align-items: center; }
.item:active { background: #e2e8f0; }
.avatar { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 12px; background: var(--c2); color: #0f766e; }
.usta-app .avatar { background: var(--p2); color: #9a3412; }
.item b { display: block; font-size: 13px; }
.item small { display: block; color: var(--muted); font-size: 11px; }
.pill { font-size: 10px; font-weight: 800; border-radius: 999px; padding: 4px 8px; white-space: nowrap; }
.pill.FREE, .pill.ACCEPTED { background: #dcfce7; color: var(--ok); }
.pill.PENDING { background: var(--p2); color: #9a3412; }
.pill.REJECTED, .pill.CANCELLED { background: #ffe4e6; color: var(--danger); }
.pill.COMPLETED { background: var(--c2); color: #0f766e; }
.empty { text-align: center; padding: 18px 8px; color: var(--muted); font-size: 13px; }
.empty .ic { margin-bottom: 6px; opacity: .7; }

.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 6px 10px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs .btn { min-height: 34px; padding: 6px 10px; font-size: 12px; white-space: nowrap; }
.toolbar { padding: 0 10px 8px; display: grid; gap: 6px; }
.search { display: flex; gap: 6px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 10px; }
.search input { border: 0; background: transparent; width: 100%; padding: 10px 0; outline: none; }
.filters { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.filters select, .radius { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; font-size: 12px; font-weight: 700; color: var(--muted); }
.radius { display: flex; align-items: center; gap: 6px; }
.radius input { flex: 1; accent-color: var(--c); }

.bottom-nav { position: sticky; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(255,255,255,.94); border-top: 1px solid var(--line); padding: 6px 4px calc(8px + env(safe-area-inset-bottom)); }
.bottom-nav button { border: 0; background: 0; color: var(--muted); font-size: 10px; font-weight: 800; display: grid; justify-items: center; gap: 2px; padding: 4px; }
.bottom-nav .nav-ico { width: 32px; height: 28px; border-radius: 10px; display: grid; place-items: center; }
.bottom-nav button.active { color: var(--c); }
.bottom-nav button.active .nav-ico { background: var(--c2); color: var(--c); }
.bottom-nav.usta button.active { color: var(--p); }
.bottom-nav.usta button.active .nav-ico { background: var(--p2); color: var(--p); }

.page { padding: 4px 10px 12px; }
.page h2 { margin: 0; font-size: 18px; letter-spacing: -.03em; }
.page p { margin: 2px 0 8px; color: var(--muted); font-size: 12px; }
.panel { padding: 10px; margin-bottom: 8px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 0 10px 8px; }
.stat { background: var(--card); border-radius: 14px; padding: 10px 6px; text-align: center; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 16px; }
.stat span { color: var(--muted); font-size: 10px; font-weight: 700; }

.extra-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
button.tile { background: var(--card); border: 0; border-radius: 16px; padding: 10px 4px 8px; text-align: center; box-shadow: var(--shadow); min-height: 78px; cursor: pointer; width: 100%; }
button.tile:active { transform: scale(.97); }
.tile .ico { width: 32px; height: 32px; margin: 0 auto 6px; border-radius: 10px; display: grid; place-items: center; background: var(--c2); color: var(--c); }
.usta-app .tile .ico { background: var(--p2); color: var(--p); }
.tile b { display: block; font-size: 10.5px; line-height: 1.2; font-weight: 800; }
.suggest-row { display: flex; gap: 6px; overflow-x: auto; padding: 0 10px 8px; scrollbar-width: none; }
.suggest-row::-webkit-scrollbar { display: none; }
.suggest-row .btn { min-height: 32px; padding: 5px 10px; font-size: 11px; white-space: nowrap; flex-shrink: 0; }
.idea-banner { margin: 0 10px 8px; padding: 10px 12px; border-radius: 14px; background: var(--card); box-shadow: var(--shadow); display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.idea-banner p { margin: 0; font-size: 12px; color: var(--muted); }
.idea-banner b { color: var(--ink); display: block; font-size: 13px; }
.note-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.note-chips button { min-height: 30px; padding: 4px 10px; font-size: 11px; }
.quick-bar { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; padding: 0 10px 8px; }

.sheet-dialog { border: 0; width: min(480px, 94vw); max-height: 90vh; overflow-y: auto; background: var(--card); border-radius: 22px; padding: 16px; }
.sheet-dialog.dp-dialog {
  position: fixed !important;
  inset: auto !important;
  top: var(--dp-t, 48px) !important;
  left: var(--dp-l, 0px) !important;
  right: auto !important;
  bottom: auto !important;
  width: var(--dp-w, 100%) !important;
  height: var(--dp-h, 70vh) !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  overflow: hidden;
  padding: 0;
  border-radius: 24px 24px 0 0;
  background: rgba(248, 250, 252, .97);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border: 0;
  box-shadow: 0 -12px 40px rgba(15,23,42,.16);
  transform: translateY(0);
  animation: dpSheetIn .38s cubic-bezier(.22, 1, .36, 1) both;
  will-change: transform, opacity;
}
.sheet-dialog.dp-dialog.is-dragging {
  animation: none;
  transition: none;
}
.sheet-dialog.dp-dialog::backdrop {
  background: transparent;
}
.sheet-dialog.dp-dialog #detailBody {
  height: 100%;
  min-height: 0;
}
@keyframes dpFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes dpSheetIn {
  from { transform: translateY(100%); opacity: .45; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes springIn {
  0% { opacity: 0; transform: translateY(36px) scale(.96); }
  68% { opacity: 1; transform: translateY(-5px) scale(1.012); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes neonSpin {
  to { transform: rotate(360deg); }
}
@keyframes ringSpin {
  to { transform: rotate(360deg); }
}
.sheet-dialog h3 { margin: 4px 0 6px; font-size: 18px; display: flex; gap: 8px; align-items: center; }
.hero-name { font-size: 20px; font-weight: 800; margin: 2px 0 4px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.facts span { background: var(--bg); border-radius: 999px; padding: 5px 8px; font-size: 11px; color: var(--muted); font-weight: 700; }
.btn-row { display: flex; flex-wrap: wrap; gap: 6px; }
.btn-col { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.hours { display: grid; gap: 6px; }
.hours-row { display: grid; grid-template-columns: 48px 1fr 1fr; gap: 6px; align-items: center; font-size: 12px; }
.review { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.view { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: hidden; }
.tap { cursor: pointer; }
dialog::backdrop { background: rgba(15,23,42,.45); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.kv span { color: var(--muted); }

@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 360px) {
  .extra-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ═══════════════════════════════════════════════
   DETAIL PANEL — premium glass + 3D wheel
═══════════════════════════════════════════════ */
.dp-root { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.dp-head {
  position: relative;
  background: rgba(255,255,255,.42);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  padding: 0 12px 10px;
  border: 1px solid rgba(255,255,255,.7);
  border-left: 0; border-right: 0; border-top: 0;
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;
  margin-bottom: 0;
  flex-shrink: 0;
  touch-action: none;
}
.dp-handle-wrap {
  display: flex;
  justify-content: center;
  padding: 7px 0 6px;
  cursor: grab;
  touch-action: none;
}
.dp-handle {
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: rgba(60, 60, 67, .28);
  box-shadow: none;
}
.dp-head-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) 34px;
  gap: 8px 8px;
  align-items: end;
}
.dp-avatar-slot {
  position: relative;
  width: 80px; height: 80px;
  flex-shrink: 0;
  overflow: visible;
  align-self: start;
  margin-top: -6px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.dp-avatar-ring {
  width: 80px; height: 80px; border-radius: 50%;
  padding: 3px;
  background: conic-gradient(from 120deg, #2dd4bf, #6366f1, #f59e0b, #2dd4bf);
  box-shadow: 0 8px 16px rgba(15,23,42,.16);
}
.dp-status {
  position: absolute;
  right: 2px; bottom: 2px;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid #fff;
  z-index: 2;
  box-shadow: 0 1px 4px rgba(15,23,42,.2);
}
.dp-status.on { background: #22c55e; }
.dp-status.off { background: #94a3b8; }
.dp-status.on::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid rgba(34, 197, 94, .55);
  animation: statusPulse 1.8s ease-out infinite;
}
@keyframes statusPulse {
  0% { transform: scale(.55); opacity: .7; }
  100% { transform: scale(1.55); opacity: 0; }
}
.dp-avatar-wrap {
  width: 100%; height: 100%; border-radius: 50%;
  overflow: hidden; background: #e2e8f0;
}
.dp-avatar-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dp-avatar-init {
  width: 100%; height: 100%; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; font-weight: 900;   font-size: 28px;
}
.dp-info { min-width: 0; }
.dp-name {
  font-size: 19px; font-weight: 800; line-height: 1.15; letter-spacing: -.03em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dp-spec-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.dp-spec { font-size: 14px; font-weight: 700; color: #475569; }
.dp-dist {
  display: inline-flex; align-items: center; gap: 3px;
  background: linear-gradient(180deg, #ecfeff, #ccfbf1);
  color: #0f766e;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px; font-weight: 800;
  box-shadow: 0 3px 8px rgba(13,148,136,.16);
  white-space: nowrap;
}
.dp-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.dp-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  padding: 0;
}
.dp-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  width: 100%;
  min-width: 0;
}
.dp-act {
  flex: 1 1 0;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 30px;
  padding: 0 8px;
  border-radius: 9px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  border: 1px solid rgba(15,23,42,.1);
  box-shadow: 0 1px 2px rgba(15,23,42,.06);
}
.dp-act span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.dp-act svg { width: 14px; height: 14px; flex-shrink: 0; }
.dp-act-call {
  color: #166534;
  background: linear-gradient(180deg, #ffffff, #eef8f1);
  border-color: rgba(22, 101, 52, .16);
}
.dp-act-tg {
  color: #0369a1;
  background: linear-gradient(180deg, #ffffff, #eef6fb);
  border-color: rgba(3, 105, 161, .16);
}
.dp-act:active {
  transform: translateY(1px);
  filter: brightness(.97);
}
.dp-act.is-off {
  opacity: .4;
  pointer-events: none;
}
.dp-rev-chip,
.dp-rate-3d,
.dp-heart-3d {
  height: 36px;
  min-width: 36px;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  flex-shrink: 0;
}
.dp-side .dp-rate-3d,
.dp-side .dp-rev-chip,
.dp-side .dp-heart-3d {
  width: 32px;
  height: 32px;
  min-width: 32px;
  padding: 0;
  flex-direction: column;
  gap: 0;
  border-radius: 10px;
  font-size: 8px;
  line-height: 1;
}
.dp-side .dp-rate-3d .star { font-size: 12px; }
.dp-side .n { font-size: 8px; font-weight: 800; }
.dp-side .dp-rev-chip svg,
.dp-side .dp-heart-3d svg { width: 14px; height: 14px; }
.dp-rev-chip {
  padding: 0 12px;
  background: rgba(255,255,255,.92);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(15,23,42,.08);
}
.dp-rev-chip svg { width: 18px; height: 18px; }
.dp-root.mode-rev .dp-rev-chip { background: var(--c2); color: var(--c); }
.dp-rate-3d {
  position: relative;
  overflow: hidden;
  padding: 0 12px;
  background: linear-gradient(180deg, #fffbeb, #fde68a);
  color: #92400e;
  box-shadow: 0 2px 8px rgba(245, 158, 11, .25);
}
.dp-rate-3d .star { font-size: 16px; line-height: 1; }
.dp-heart-3d {
  width: 36px; padding: 0;
  color: #fb7185;
  background: rgba(255,255,255,.92);
  box-shadow: 0 2px 8px rgba(244, 63, 94, .16);
  transition: transform .12s ease, color .12s ease, background .12s ease;
}
.dp-heart-3d svg { width: 20px; height: 20px; }
.dp-heart-3d.on {
  color: #fff;
  background: #e11d48;
}
.dp-heart-3d.on svg { fill: currentColor; }
.dp-heart-3d:active { transform: scale(.92); }
.dp-today {
  margin-top: 3px;
  font-size: 12px; font-weight: 700; color: var(--c);
  display: flex; align-items: center; gap: 5px;
}

.dp-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 8px;
}
.dp-bookbar {
  display: flex; gap: 8px; margin: 0; flex-shrink: 0;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,.92);
  border-top: 1px solid var(--line);
}
.dp-bookbar .btn {
  position: relative;
  overflow: hidden;
  flex: 1;
  min-height: 50px;
  font-size: 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, #5eead4 0%, #14b8a6 42%, #0d9488 100%);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.45),
    0 3px 0 #0f766e,
    0 8px 0 #115e59,
    0 14px 22px rgba(13,148,136,.32);
  transform: translateY(-2px);
  transition: transform .14s ease, filter .25s ease, opacity .25s ease, box-shadow .14s ease;
}
.dp-bookbar .btn.is-dim {
  filter: saturate(.5) brightness(.82);
  opacity: .78;
  animation: none;
}
.dp-bookbar .btn.is-ready {
  animation: bookPulse 2.2s ease-in-out infinite;
}
.dp-bookbar .btn.is-press,
.dp-bookbar .btn.is-ready.is-press {
  transform: translateY(6px);
  animation: none;
  box-shadow:
    inset 0 2px 6px rgba(15,23,42,.28),
    0 1px 0 #0f766e,
    0 3px 8px rgba(13,148,136,.22);
}
@keyframes bookPulse {
  0%, 100% {
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.45),
      0 3px 0 #0f766e,
      0 8px 0 #115e59,
      0 14px 22px rgba(13,148,136,.32),
      0 0 0 0 rgba(45,212,191,.4);
  }
  55% {
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.55),
      0 3px 0 #0f766e,
      0 8px 0 #115e59,
      0 16px 26px rgba(13,148,136,.42),
      0 0 0 8px rgba(45,212,191,0);
  }
}
.dp-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.42);
  transform: scale(0);
  animation: dpRipple .5s ease-out forwards;
  pointer-events: none;
}
@keyframes dpRipple {
  to { transform: scale(1); opacity: 0; }
}
.dp-nav { display: flex; flex-direction: column; gap: 8px; flex: 1; min-height: 0; min-width: 0; overflow-y: auto; overflow-x: hidden; }
.dp-nav-rest { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.dp-root.mode-svc .dp-nav,
.dp-root.svc-done .dp-nav { overflow: hidden; }
.dp-nav-btn {
  width: 100%; border: 0; border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #e8eef4 55%, #dce4ec 100%);
  padding: 16px 16px;
  font-weight: 800; font-size: 15px; text-align: left;
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,.98),
    inset 0 -2px 3px rgba(148,163,184,.22),
    0 5px 0 #b7c4d2,
    0 14px 26px rgba(15,23,42,.16);
  transform: translateY(-2px);
  transition: transform .14s ease, box-shadow .14s ease;
  flex-shrink: 0;
}
.dp-nav-btn:active {
  transform: translateY(3px);
  box-shadow:
    inset 0 2px 6px rgba(15,23,42,.12),
    0 1px 0 #c5d0dc,
    0 4px 10px rgba(15,23,42,.1);
}
.dp-nav-btn .dp-nav-sub { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--c); }
.dp-panel { display: none; }
.dp-root.mode-slot .dp-nav,
.dp-root.mode-svc .dp-nav-rest,
.dp-root.mode-rev .dp-nav { display: none; }
.dp-root.svc-done .dp-acc { display: none; }
.dp-root.time-done #slotToggle { display: none; }
.dp-svc-summary, .dp-time-card { display: none; }
.dp-root.svc-done .dp-svc-summary { display: flex; }
.dp-root.time-done .dp-time-card { display: flex; width: 100%; max-width: 100%; box-sizing: border-box; }
.dp-root.mode-svc .dp-acc { display: flex; flex: 1; min-height: 0; }
.dp-root.mode-svc .dp-svc-summary { display: none !important; }
.dp-root.mode-slot .dp-time-card { display: none !important; }
.dp-root.time-done .dp-nav-rest {
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
}
.dp-root.mode-slot #slotPanel,
.dp-root.mode-rev #revPanel {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  animation: springIn .45s cubic-bezier(.22, 1.28, .36, 1) both;
}
.dp-save-btn { width: 100%; margin-top: 10px; flex-shrink: 0; }
.dp-hidden { display: none !important; }

.dp-acc {
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #e8eef4 55%, #dce4ec 100%);
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,.98),
    inset 0 -2px 3px rgba(148,163,184,.22),
    0 5px 0 #b7c4d2,
    0 14px 26px rgba(15,23,42,.16);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transform: translateY(-2px);
}
.dp-root.mode-svc .dp-acc {
  flex: 1;
  min-height: 0;
  transform: none;
  background: linear-gradient(180deg, #f8fafc, #eef2f6);
}
.dp-acc-head {
  width: 100%; border: 0; background: transparent;
  padding: 16px;
  font-weight: 800; font-size: 15px; text-align: left;
  display: flex; align-items: center; gap: 8px; cursor: pointer;
}
.dp-acc-head:active { transform: scale(.99); }
.dp-acc-chev {
  margin-left: auto;
  transition: transform .2s ease;
  color: var(--muted);
}
.dp-root.mode-svc .dp-acc-chev { transform: rotate(180deg); }
.dp-acc-sub { font-size: 11px; font-weight: 700; color: var(--c); }
.dp-acc-body { display: none; flex: 1; min-height: 0; flex-direction: column; overflow: hidden; padding: 0 10px 10px; }
.dp-root.mode-svc .dp-acc-body { display: flex; animation: springIn .4s cubic-bezier(.22, 1.28, .36, 1) both; }

.dp-picked-box {
  display: none;
  margin-bottom: 8px;
  padding: 8px 8px 6px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #f4f6f8);
  box-shadow:
    0 2px 0 #fff inset,
    0 6px 0 rgba(148,163,184,.2),
    0 12px 18px rgba(15,23,42,.07);
  flex-shrink: 0;
  max-height: 42%;
  overflow-y: auto;
}
.dp-picked-box.show { display: block; }
.dp-picked-title {
  font-size: 10px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.dp-pick-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: baseline;
  padding: 4px 6px;
  background: transparent;
  font-size: 13px;
}
.dp-pick-row b { font-weight: 700; letter-spacing: -.01em; }
.dp-pick-row .p { color: #0f766e; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dp-pick-row .t { color: var(--muted); font-weight: 600; white-space: nowrap; font-size: 11px; }
.dp-picked-total {
  margin-top: 8px; padding-top: 8px;
  border-top: 1px dashed rgba(15,23,42,.12);
  font-size: 13px; font-weight: 800;
  color: var(--ink);
  display: flex; justify-content: space-between;
  letter-spacing: -.01em;
}
.dp-svc-summary {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 0;
  text-align: left;
  border-radius: 24px;
  padding: 12px 14px 10px;
  background: linear-gradient(180deg, #f3efe6 0%, #ebe4d6 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.7),
    0 10px 18px rgba(15,23,42,.1),
    0 22px 44px rgba(15,23,42,.14);
  animation: springIn .45s cubic-bezier(.22, 1.28, .36, 1) both;
  flex: 0 1 auto;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}
.dp-svc-summary .k {
  font-size: 9px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: #94a3b8;
  margin-bottom: 4px;
  text-align: center;
  cursor: pointer;
  flex-shrink: 0;
}
.dp-svc-summary #svcSumList {
  overflow-y: auto;
  min-height: 0;
  flex: 1 1 auto;
  -webkit-overflow-scrolling: touch;
}
.dp-svc-summary .subv {
  margin-top: 6px; padding-top: 6px;
  border-top: 1px dashed rgba(15,23,42,.14);
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 13px; font-weight: 800;
  flex-shrink: 0;
}
.dp-svc-summary .subv em {
  font-style: normal; color: #94a3b8; font-weight: 700; font-size: 10px;
  letter-spacing: .08em; text-transform: uppercase;
}
.dp-svc-summary .subv b { color: #0f766e; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.receipt-row { padding: 3px 2px; background: transparent; }
.receipt-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.receipt-line .name {
  font-weight: 700; font-size: 13px; letter-spacing: -.02em; color: #0f172a;
}
.receipt-line .dots {
  flex: 1;
  border-bottom: 1px dotted rgba(15,23,42,.22);
  transform: translateY(-4px);
  min-width: 12px;
}
.receipt-line .price {
  font-weight: 800; color: #0f766e; font-variant-numeric: tabular-nums;
  font-size: 13px; letter-spacing: -.02em; white-space: nowrap;
}
.receipt-row .meta {
  font-size: 10px; color: #94a3b8; font-weight: 600; margin-top: 0;
}

.swipe-row { position: relative; overflow: hidden; border-radius: 8px; margin-bottom: 0; }
.swipe-under {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, #fb7185, #ef4444);
  color: #fff;
  display: flex; align-items: center; justify-content: flex-end;
  padding-right: 16px;
}
.swipe-over {
  position: relative;
  background: #f8fafc;
  touch-action: pan-y;
  will-change: transform;
}
.dp-svc-summary .swipe-over { background: #efe9dc; }
.swipe-row.removing { animation: swipeOut .28s ease forwards; }
@keyframes swipeOut {
  to { height: 0; margin: 0; opacity: 0; padding: 0; }
}

.dp-time-card {
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 0;
  cursor: pointer;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border-radius: 16px;
  padding: 12px 12px;
  color: #fff;
  background: linear-gradient(180deg, rgba(71,85,105,.95), rgba(15,23,42,.92));
  border: 1px solid rgba(255,255,255,.2);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.28),
    0 6px 16px rgba(15,23,42,.22);
  backdrop-filter: blur(16px) saturate(1.2);
  animation: springIn .45s cubic-bezier(.22, 1.28, .36, 1) both;
}
.dp-time-card .when {
  font-size: 16px; font-weight: 800; color: #fff;
  letter-spacing: -.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.flip-timer {
  display: inline-flex; align-items: center; gap: 0;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  letter-spacing: 0;
  background: rgba(2,6,23,.45);
  border-radius: 999px;
  padding: 5px 10px 5px 9px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  flex-shrink: 0;
}
.roll {
  position: relative;
  display: inline-block;
  width: .62em;
  height: 1.1em;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.1em;
  text-align: center;
}
.roll-now { display: block; height: 1.15em; }
.roll-now.in, .roll-now.out {
  position: absolute; left: 0; right: 0; top: 0;
}
.roll-now.out { animation: rollUp .32s cubic-bezier(.22,.8,.28,1) forwards; }
.roll-now.in { animation: rollIn .32s cubic-bezier(.22,.8,.28,1) forwards; }
@keyframes rollUp {
  to { transform: translateY(-110%); opacity: 0; }
}
@keyframes rollIn {
  from { transform: translateY(110%); opacity: .4; }
  to { transform: translateY(0); opacity: 1; }
}
.flip-colon { opacity: .45; font-size: 12px; padding: 0 1px; }
.flip-left {
  font-size: 10px; font-weight: 800; color: #5eead4;
  margin-left: 6px; letter-spacing: .04em;
}

.dp-svc-fly {
  position: fixed;
  z-index: 80;
  pointer-events: none;
  border-radius: 12px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 12px 28px rgba(15,23,42,.16);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 10px 8px;
  will-change: transform, opacity;
}
.dp-svc-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  padding: 4px 6px;
}
.dp-svc-line {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px dashed #e2e8f0;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease, transform .12s ease;
}
.dp-svc-line:last-child { border-bottom: 0; }
.dp-svc-line:active { transform: scale(.98); }
.dp-svc-line.on {
  background: linear-gradient(180deg, #e9eef3 0%, #d8e0e8 100%);
  border-bottom-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}
.dp-svc-line.on .dp-svc-name { color: #1e293b; }
.dp-svc-line.on .dp-svc-desc,
.dp-svc-line.on .dp-svc-dur { color: #64748b; }
.dp-svc-line.on .dp-svc-price { color: #475569; }
.dp-svc-name { font-weight: 800; font-size: 14px; color: #0f172a; letter-spacing: -.02em; }
.dp-svc-desc { font-size: 11px; color: var(--muted); margin-top: 1px; }
.dp-svc-price {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 800;
  color: #0d9488;
  letter-spacing: -.01em;
}
.dp-svc-dur { font-size: 10px; color: var(--muted); font-weight: 700; }
.dp-receipt-sum {
  display: none;
  margin-top: 8px;
  padding: 10px 8px 2px;
  border-top: 1px dashed #99f6e4;
}
.dp-receipt-sum.show { display: grid; gap: 6px; }
.dp-price-line { display: grid; gap: 1px; padding: 4px 2px; }
.dp-price-line span { font-size: 13px; font-weight: 800; color: #0f172a; }
.dp-price-line b {
  font-size: 13px; font-weight: 800; color: #0d9488;
}
.dp-price-total {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px dashed #99f6e4;
  font-size: 13px;
  font-weight: 800;
}

.dp-days {
  display: flex; gap: 8px; overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 10px;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  flex-shrink: 0;
}
.dp-days::-webkit-scrollbar { display: none; }
.dp-day {
  flex: 0 0 72px; scroll-snap-align: center;
  border: 0; border-radius: 16px;
  background: rgba(255,255,255,.55);
  padding: 10px 6px; text-align: center; cursor: pointer;
  transition: transform .16s cubic-bezier(.22,1.4,.36,1);
}
.dp-day:active { transform: scale(.94); }
.dp-day b { display: block; font-size: 13px; }
.dp-day span { font-size: 11px; color: var(--muted); }
.dp-day.on { background: var(--c); color: #fff; box-shadow: 0 8px 18px rgba(15,118,110,.28); }
.dp-day.on span { color: #ccfbf1; }

.dp-wheels {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; margin: 4px 0;
  background: rgba(255,255,255,.4);
  backdrop-filter: blur(12px);
  border-radius: 24px; padding: 8px 10px;
  flex: 1;
  min-height: 240px;
  position: relative;
  border: 1px solid rgba(255,255,255,.65);
  box-shadow: 0 12px 28px rgba(15,23,42,.06);
}
.w3d {
  position: relative;
  height: 240px;
  width: 108px;
  perspective: 1200px;
  touch-action: none;
  overflow: hidden;
  user-select: none;
  cursor: grab;
  flex-shrink: 0;
}
.w3d:active { cursor: grabbing; }
.w3d-hl {
  position: absolute;
  left: 6px; right: 6px;
  top: 50%;
  height: 44px;
  margin-top: -22px;
  border-radius: 14px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 8px 22px rgba(15,23,42,.08);
  pointer-events: none;
  z-index: 0;
}
.w3d-track {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  z-index: 1;
}
.w3d-item {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 44px;
  margin-top: -22px;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
  backface-visibility: hidden;
  pointer-events: none;
  letter-spacing: -.04em;
}
.w3d-item.off { color: #94a3b8; text-decoration: line-through; }
.w3d-item.on { font-size: 32px; font-weight: 900; color: #0f766e; }
.dp-colon {
  font-size: 30px; font-weight: 900; z-index: 2;
  color: var(--ink);
}
.dp-time-preview { text-align: center; font-weight: 800; font-size: 14px; margin-top: 4px; flex-shrink: 0; }
.dp-date-inp {
  width: 100%; padding: 8px 10px; border: 1px solid var(--line);
  border-radius: 10px; font-size: 13px; margin-bottom: 10px; margin-top: 4px;
}
.dp-slot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.dp-slot-btn {
  padding: 8px 2px; border-radius: 10px; font-size: 12px; font-weight: 700;
  border: none; cursor: pointer;
}
.dp-slot-free { background: var(--c); color: #fff; }
.dp-slot-busy { background: var(--line); color: var(--muted); opacity: .5; }
.dp-slot-sel { outline: 3px solid #fff; box-shadow: 0 0 0 4px var(--c); }
.dp-error { color: var(--danger); font-size: 12px; margin-top: 4px; min-height: 16px; flex-shrink: 0; }

.dp-reviews-scroll {
  flex: 1; min-height: 0; overflow-y: auto;
  background: rgba(255,255,255,.75);
  border-radius: 16px;
  padding: 8px 12px;
}
.dp-review { padding: 6px 0; border-bottom: 1px solid var(--line); }
.dp-review:last-child { border-bottom: 0; }
.dp-review-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.dp-client-rate { font-size: 10px; font-weight: 800; color: #c2410c; white-space: nowrap; }
.dp-rev-stars { font-size: 11px; color: #f59e0b; margin: 1px 0 2px; }
.dp-review p {
  margin: 0; font-size: 12px; color: var(--muted); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dp-review b { font-size: 12px; }

dialog.dp-gallery {
  position: fixed;
  inset: 0;
  z-index: 12000;
  width: 100vw;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: rgba(0,0,0,.92);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
dialog.dp-gallery::backdrop {
  background: rgba(0,0,0,.88);
}
.dp-gallery-x {
  position: absolute;
  top: calc(10px + env(safe-area-inset-top, 0px));
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
}
.dp-gallery-x:active { transform: scale(.94); }
.dp-gallery-stage {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
}
.dp-gallery-track {
  display: flex;
  height: 100%;
  will-change: transform;
}
.dp-gallery-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 56px 18px 64px;
  box-sizing: border-box;
}
.dp-gallery-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  box-shadow: 0 18px 48px rgba(0,0,0,.45);
}
.dp-gallery-dots {
  position: absolute;
  left: 0; right: 0;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  display: flex;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
}
.dp-gallery-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.28);
}
.dp-gallery-dot.on {
  background: #fff;
  width: 16px;
  border-radius: 999px;
}

@media (prefers-reduced-motion: reduce) {
  .app-shell::before, .dp-avatar-ring, .dp-status.on::after, .dp-rate-3d::after { animation: none; }
  .sheet-dialog.dp-dialog, .dp-root.mode-slot #slotPanel, .dp-rev-compact.open .dp-rev-box { animation: none; }
  .dp-bookbar .btn.is-ready { animation: none; }
}

/* ═══════════════════════════════════════════════
   CLIENT — CALL OVERLAY (buyurtma qo'ng'irog'i)
═══════════════════════════════════════════════ */
.call-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(15,23,42,.85);
  display: grid; place-items: center;
  backdrop-filter: blur(8px);
}
.call-card {
  background: #fff; border-radius: 28px; padding: 32px 24px 24px;
  width: min(340px, 90vw); text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  position: relative;
}
.call-avatar {
  width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 12px;
  display: grid; place-items: center; font-size: 32px; font-weight: 900; color: #fff;
  overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.call-name { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.call-spec { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.call-status { font-size: 13px; font-weight: 700; color: var(--c); margin-bottom: 16px; }
.call-ring-anim { position: relative; width: 72px; height: 72px; margin: 0 auto 20px; }
.call-ring-anim div {
  position: absolute; inset: 0; border-radius: 50%;
  border: 3px solid var(--c); opacity: 0;
  animation: ringPulse 1.8s ease-out infinite;
}
.call-ring-anim div:nth-child(2) { animation-delay: .6s; }
.call-ring-anim div:nth-child(3) { animation-delay: 1.2s; }
@keyframes ringPulse {
  0% { transform: scale(.6); opacity: .8; }
  100% { transform: scale(1.8); opacity: 0; }
}
.call-cancel-btn {
  background: var(--danger); color: #fff; border: none; border-radius: 14px;
  padding: 12px 24px; font-size: 14px; font-weight: 700; cursor: pointer; width: 100%;
}

.miui-call {
  position: fixed; inset: 0; z-index: 10000;
  color: #fff; display: flex; flex-direction: column; align-items: center;
  padding: calc(18px + env(safe-area-inset-top)) 16px calc(18px + env(safe-area-inset-bottom));
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}
.miui-bg { position: absolute; inset: 0; overflow: hidden; background: #05070d; }
.miui-bg-photo {
  position: absolute; inset: -18%;
  width: 136%; height: 136%;
  object-fit: cover;
  filter: blur(52px) saturate(1.55) brightness(.42);
  transform: scale(1.12);
  animation: miuiBgPulse 4.6s ease-in-out infinite;
  pointer-events: none;
}
.miui-bg-blur {
  position: absolute; inset: 0;
  background:
    radial-gradient(80% 55% at 50% 28%, rgba(15,23,42,.15), transparent 70%),
    linear-gradient(180deg, rgba(2,6,23,.35) 0%, rgba(2,6,23,.72) 55%, #020617 100%);
  backdrop-filter: blur(28px) saturate(1.2);
  -webkit-backdrop-filter: blur(28px) saturate(1.2);
}
.miui-bg-glow {
  position: absolute; left: 50%; top: 36%;
  width: min(78vw, 340px); height: min(78vw, 340px);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251,146,60,.42) 0%, rgba(14,165,233,.12) 42%, transparent 72%);
  filter: blur(8px);
  animation: miuiGlowPulse 3.2s ease-in-out infinite;
  pointer-events: none;
}
.miui-bg-vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 50% 100%, rgba(0,0,0,.55), transparent 55%),
    radial-gradient(90% 50% at 50% 0%, rgba(255,255,255,.06), transparent 45%);
  pointer-events: none;
}
.miui-call.swipe-right .miui-bg-glow {
  background: radial-gradient(circle, rgba(74,222,128,.5) 0%, transparent 70%);
}
.miui-call.swipe-left .miui-bg-glow {
  background: radial-gradient(circle, rgba(248,113,113,.5) 0%, transparent 70%);
}
.miui-call.swipe-up .miui-bg-glow {
  background: radial-gradient(circle, rgba(96,165,250,.5) 0%, transparent 70%);
}
.miui-top, .miui-mid, .miui-controls, .miui-propose { position: relative; z-index: 1; width: min(420px, 100%); }
.miui-top {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  transition: opacity .35s ease, transform .35s ease;
}
.miui-card {
  background: linear-gradient(165deg, rgba(255,255,255,.22), rgba(255,255,255,.06) 55%, rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 22px;
  padding: 12px 14px 13px;
  backdrop-filter: blur(22px) saturate(1.45);
  -webkit-backdrop-filter: blur(22px) saturate(1.45);
  box-shadow:
    0 18px 36px rgba(0,0,0,.38),
    0 1px 0 rgba(255,255,255,.4) inset,
    0 -10px 18px rgba(0,0,0,.18) inset;
  animation: miuiFloat 4.8s ease-in-out infinite;
  min-height: 72px;
}
.miui-card:nth-child(2) { animation-delay: .35s; }
.miui-card span {
  display: block; font-size: 10px; opacity: .72; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: 4px;
}
.miui-card b { font-size: 14px; font-weight: 800; line-height: 1.3; display: block; }
.miui-mid { text-align: center; margin: auto 0; padding: 8px 0 12px; }
.miui-avatar-wrap {
  width: 168px; height: 168px; margin: 0 auto 16px;
  position: relative;
}
.miui-rings, .miui-rings i {
  position: absolute; inset: -10px; border-radius: 50%; pointer-events: none;
}
.miui-rings i {
  border: 1.5px solid rgba(255,255,255,.22);
  animation: miuiRing 2.6s ease-out infinite;
}
.miui-rings i:nth-child(2) { animation-delay: .85s; }
.miui-rings i:nth-child(3) { animation-delay: 1.7s; }
.miui-avatar-shell {
  position: relative; z-index: 1;
  width: 100%; height: 100%;
  border-radius: 50%;
  padding: 7px;
  background:
    conic-gradient(from 130deg, #fff, #94a3b8 18%, #e2e8f0 36%, #64748b 52%, #fff 70%, #cbd5e1 86%, #fff);
  box-shadow:
    0 28px 48px rgba(0,0,0,.5),
    0 0 0 1px rgba(255,255,255,.28),
    inset 0 2px 3px rgba(255,255,255,.75),
    inset 0 -8px 14px rgba(15,23,42,.35);
  animation: miuiAvatarPulse 2.8s ease-in-out infinite;
}
.miui-avatar-shell img,
.miui-avatar-fallback {
  width: 100%; height: 100%; border-radius: 50%;
  object-fit: cover; display: grid; place-items: center;
  background: linear-gradient(180deg, #fb923c, #9a3412);
  font-size: 42px; font-weight: 900;
  box-shadow: inset 0 10px 22px rgba(0,0,0,.28);
}
.miui-name { font-size: 28px; font-weight: 900; letter-spacing: -.03em; text-shadow: 0 8px 24px rgba(0,0,0,.45); }
.miui-phone { font-size: 13px; opacity: .7; margin-top: 4px; font-weight: 700; }
.miui-rating {
  margin-top: 10px;
  color: #fbbf24;
  font-weight: 800;
  font-size: 17px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  text-shadow: 0 0 18px rgba(251,191,36,.55);
}
.miui-stars { letter-spacing: 2px; font-size: 18px; }
.miui-stars span { opacity: .28; }
.miui-stars span.on { opacity: 1; }
.miui-trust {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px; padding: 7px 12px;
  border-radius: 999px; font-size: 12px; font-weight: 800;
  max-width: 92%;
  box-shadow: 0 10px 24px rgba(0,0,0,.28);
}
.miui-trust.ok {
  background: linear-gradient(180deg, #22c55e, #15803d);
}
.miui-trust.warn {
  background: linear-gradient(180deg, #f59e0b, #b45309);
}
.miui-trust.danger {
  background: linear-gradient(180deg, #f43f5e, #be123c);
}
.miui-controls { padding-top: 4px; }
.miui-up-hint {
  text-align: center; font-size: 12px; font-weight: 800;
  opacity: .72; margin-bottom: 10px;
  letter-spacing: .04em;
}
.miui-chevs { display: flex; flex-direction: column; align-items: center; gap: 2px; height: 28px; margin-bottom: 4px; }
.miui-chevs i {
  width: 12px; height: 12px; margin-top: -6px;
  border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff;
  transform: rotate(135deg);
  opacity: .2;
  animation: miuiChev 1.15s ease-in-out infinite;
}
.miui-chevs i:nth-child(2) { animation-delay: .12s; }
.miui-chevs i:nth-child(3) { animation-delay: .24s; }
.miui-call.swipe-up .miui-chevs i { border-color: #bfdbfe; opacity: 1; }
.miui-slider {
  position: relative;
  height: 96px;
  border-radius: 999px;
  display: grid;
  grid-template-columns: 1fr 84px 1fr;
  align-items: center;
  padding: 0 18px;
  touch-action: none;
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.05));
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow:
    0 22px 44px rgba(0,0,0,.4),
    inset 0 1px 0 rgba(255,255,255,.28),
    inset 0 -10px 20px rgba(0,0,0,.2);
  overflow: visible;
}
.miui-trail {
  position: absolute; left: 50%; top: 50%;
  width: 48px; height: 62px;
  margin: -31px 0 0 -24px;
  border-radius: 31px;
  opacity: 0; pointer-events: none;
  transform-origin: 50% 50%;
  filter: blur(1px);
  z-index: 1;
}
.miui-call.swipe-right .miui-trail {
  background: linear-gradient(90deg, rgba(74,222,128,0), rgba(74,222,128,.9));
}
.miui-call.swipe-left .miui-trail {
  background: linear-gradient(90deg, rgba(251,113,133,0), rgba(244,63,94,.92));
}
.miui-call.swipe-up .miui-trail {
  background: linear-gradient(90deg, rgba(96,165,250,0), rgba(59,130,246,.92));
}
.miui-side {
  font-size: 12px; font-weight: 800; opacity: .42;
  display: flex; align-items: center; gap: 6px;
  z-index: 2;
}
.miui-side.left { justify-content: flex-start; color: #fda4af; }
.miui-side.right { justify-content: flex-end; color: #86efac; }
.miui-call.swipe-left .miui-side.left,
.miui-call.swipe-right .miui-side.right { opacity: 1; }
.miui-knob {
  width: 84px; height: 84px; border-radius: 50%;
  border: 0; padding: 0; color: #0f172a;
  display: grid; place-items: center;
  position: relative; z-index: 3;
  background:
    radial-gradient(circle at 32% 28%, #fff 0%, #e2e8f0 38%, #94a3b8 100%);
  box-shadow:
    0 0 0 7px rgba(255,255,255,.1),
    0 0 28px 6px rgba(125,211,252,.5),
    0 16px 28px rgba(0,0,0,.42),
    inset 0 3px 6px #fff,
    inset 0 -8px 12px rgba(15,23,42,.2);
  touch-action: none; cursor: grab;
  animation: miuiKnobGlow 1.8s ease-in-out infinite;
}
.miui-knob:active { cursor: grabbing; }
.miui-call.proposing .miui-top {
  opacity: 0; pointer-events: none; transform: translateY(-10px);
  transition: .35s ease;
}
.miui-call.proposing .miui-mid,
.miui-call.proposing .miui-controls {
  opacity: .28; transform: scale(.96); pointer-events: none;
  transition: .35s ease;
}
.miui-propose {
  position: absolute; left: 50%; right: auto;
  top: calc(10px + env(safe-area-inset-top));
  bottom: auto;
  width: min(420px, calc(100% - 24px));
  color: #fff;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, #1e293b, #0b1220);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 28px; padding: 14px 14px 12px;
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  box-shadow: 0 24px 50px rgba(0,0,0,.55);
  transform: translate(-50%, -120%);
  transition: transform .45s cubic-bezier(.22,1,.36,1), opacity .3s ease;
  z-index: 4;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
}
.miui-propose.open {
  transform: translate(-50%, 0);
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
}
.miui-propose::after {
  content: "";
  display: block;
  width: 40px; height: 4px;
  border-radius: 99px;
  background: rgba(255,255,255,.28);
  margin: 10px auto 2px;
  order: 99;
  flex-shrink: 0;
}
.miui-propose-title { font-weight: 800; margin-bottom: 8px; font-size: 16px; }
.miui-time-preview {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px; margin: 0 0 10px; padding: 10px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
}
.miui-time-preview b { font-size: 14px; font-weight: 800; }
.miui-time-preview span {
  font-size: 22px; font-weight: 900; letter-spacing: -.04em;
  color: #fdba74; font-variant-numeric: tabular-nums;
}
.miui-propose .dp-days { margin: 0 0 4px; padding-bottom: 8px; }
.miui-propose .dp-day {
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,.1);
}
.miui-propose .dp-day span { color: rgba(255,255,255,.55); }
.miui-propose .dp-day.on {
  background: linear-gradient(180deg, #f59e0b, #c2410c);
  color: #fff;
  box-shadow: 0 8px 18px rgba(194, 65, 12, .4);
}
.miui-propose .dp-day.on span { color: #ffedd5; }
.miui-propose .btn { width: 100%; margin-top: 8px; flex-shrink: 0; }
.miui-propose .btn.ghost {
  background: rgba(255,255,255,.08);
  color: #fff;
  border-color: rgba(255,255,255,.2);
}
.miui-wheels {
  background: rgba(255,255,255,.06) !important;
  border-color: rgba(255,255,255,.12) !important;
  min-height: 180px; height: 188px; max-height: none;
  overflow: hidden; flex: 0 0 auto;
  padding: 4px 8px; margin: 4px 0 8px;
  box-shadow: none;
}
.miui-propose .w3d {
  height: 176px;
  width: 96px;
}
.miui-propose .w3d-hl {
  background: rgba(255,255,255,.14);
  box-shadow: 0 8px 22px rgba(0,0,0,.2);
}
.miui-propose .w3d-item {
  color: rgba(255,255,255,.45);
  font-size: 24px;
}
.miui-propose .w3d-item.on {
  color: #fdba74;
  font-size: 30px;
  font-weight: 900;
}
.miui-wheels .dp-colon { color: #fff; }
@media (max-height: 700px) {
  .miui-wheels { min-height: 150px; height: 156px; }
  .miui-propose .w3d { height: 144px; }
  .miui-time-preview span { font-size: 18px; }
}
@keyframes miuiAvatarPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.035); }
}
@keyframes miuiGlowPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: .85; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}
@keyframes miuiBgPulse {
  0%, 100% { transform: scale(1.12); opacity: .9; }
  50% { transform: scale(1.18); opacity: 1; }
}
@keyframes miuiFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes miuiRing {
  0% { transform: scale(.92); opacity: .45; }
  100% { transform: scale(1.28); opacity: 0; }
}
@keyframes miuiChev {
  0%, 100% { opacity: .15; transform: rotate(135deg) translateY(3px); }
  50% { opacity: .85; transform: rotate(135deg) translateY(-2px); }
}
@media (max-height: 740px) {
  .miui-avatar-wrap { width: 132px; height: 132px; margin-bottom: 10px; }
  .miui-name { font-size: 24px; }
  .miui-card { min-height: 64px; padding: 10px 12px; }
  .miui-slider { height: 88px; }
}
@keyframes miuiKnobGlow {
  0%, 100% { box-shadow: 0 0 0 7px rgba(255,255,255,.1), 0 0 22px 4px rgba(125,211,252,.38), 0 16px 28px rgba(0,0,0,.42), inset 0 3px 6px #fff; }
  50% { box-shadow: 0 0 0 10px rgba(255,255,255,.16), 0 0 36px 10px rgba(125,211,252,.62), 0 16px 28px rgba(0,0,0,.42), inset 0 3px 6px #fff; }
}

/* ═══════════════════════════════════════════════
   CHROME v3 — home / lists / profile / auth
   Never restyle .dp-root, .miui-call, .call-*
═══════════════════════════════════════════════ */
html, body { background: #efece7; font-weight: 400; }
.app-shell {
  background: #f6f4f0;
  height: 100dvh;
  max-height: 100dvh;
  min-height: 0;
  box-shadow: 0 0 40px rgba(28, 25, 23, .06);
}
.app-shell .view { min-height: 0; flex: 1; }
.app-shell .topbar,
.app-shell .tabs,
.app-shell .toolbar,
.app-shell .stats,
.app-shell .idea-banner { flex-shrink: 0; }
.app-shell::before { opacity: 0; }
.app-shell svg.ic,
.auth-wrap svg.ic,
.splash svg.ic,
.drawer svg.ic,
.landing svg.ic,
#extraDialog svg.ic {
  stroke-width: 1.75;
}
.dp-root svg.ic,
.miui-call svg.ic,
.call-overlay svg.ic {
  stroke-width: 2;
}

.app-shell .topbar {
  padding: calc(12px + var(--safe-top, 0px)) 16px 8px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  min-height: 56px;
  gap: 12px;
}
.app-shell .brand {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.04em;
  color: #1c1917;
}
.app-shell .btn-menu {
  width: 42px; height: 42px; border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(28,25,23,.06);
  display: grid; place-items: center;
  gap: 0;
}
.app-shell .btn-menu span { display: none; }
.app-shell .topbar .btn.icon {
  width: 42px; min-width: 42px; height: 42px; min-height: 42px;
  border-radius: 16px; border: 0;
  background: #fff;
  box-shadow: 0 10px 30px rgba(28,25,23,.06);
  color: #57534e;
}
.app-shell .topbar .btn.icon.on,
.app-shell .topbar .btn.icon.client {
  background: var(--c); color: #fff;
  box-shadow: 0 10px 24px rgba(13,148,136,.28);
}
.usta-app .topbar .chip.live {
  border: 0; box-shadow: 0 10px 30px rgba(28,25,23,.06);
  background: #fff;
  padding: 10px 14px;
  font-weight: 500;
  font-size: 12px;
  color: #78716c;
}

.drawer {
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(28px) saturate(1.3);
  -webkit-backdrop-filter: blur(28px) saturate(1.3);
  box-shadow: 16px 0 50px rgba(28,25,23,.1);
}
.drawer-head { border-bottom: 0; padding: calc(28px + var(--safe-top, 0px)) 20px 22px; }
.drawer-logo { width: 44px; height: 44px; border-radius: 16px; font-weight: 700; }
.drawer-title { font-weight: 700; font-size: 16px; letter-spacing: -.03em; }
.drawer-sub { font-weight: 400; color: #a8a29e; }
.drawer-section { border-bottom: 0; padding: 4px 12px 12px; }
.drawer-label {
  font-weight: 500; letter-spacing: .12em; color: #a8a29e; font-size: 10px;
}
.drawer-item {
  border-radius: 16px; font-weight: 500;
  padding: 12px 14px;
  font-size: 14px;
}
.drawer-item .nav-ico {
  background: #f5f2ed; border-radius: 14px; color: #78716c;
}

.app-shell .btn,
.auth-wrap .btn,
.splash .btn,
.landing .btn,
#extraDialog .btn {
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.app-shell .btn.icon,
.auth-wrap .btn.icon,
#extraDialog .btn.icon {
  border-radius: 14px;
}
.app-shell .btn.ghost,
.auth-wrap .btn.ghost,
.splash .btn.ghost,
#extraDialog .btn.ghost {
  border: 0;
  background: #fff;
  box-shadow: 0 8px 28px rgba(28,25,23,.05);
  font-weight: 500;
  color: #44403c;
}
.app-shell .btn.client {
  box-shadow: 0 12px 28px rgba(13,148,136,.22);
}
.app-shell .btn.provider,
.usta-app .btn.provider {
  box-shadow: 0 12px 28px rgba(234,88,12,.22);
}

.app-shell .tabs {
  padding: 2px 18px 14px; gap: 6px;
}
.app-shell .tabs .btn {
  border-radius: 999px;
  min-height: 38px;
  padding: 8px 16px;
  font-weight: 500;
  font-size: 13px;
}
.app-shell .tabs .btn.ghost {
  background: transparent;
  box-shadow: none;
  color: #a8a29e;
}
.app-shell .tabs .btn.client,
.app-shell .tabs .btn.provider {
  color: #fff;
}

.app-shell .toolbar { padding: 0 18px 16px; gap: 12px; }
.app-shell .search {
  border: 0;
  border-radius: 999px;
  padding: 4px 18px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(28,25,23,.05);
  color: #a8a29e;
}
.app-shell .search input { font-weight: 500; color: #1c1917; }
.app-shell .filters { gap: 10px; }
.app-shell .filters select,
.app-shell .radius {
  border: 0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(28,25,23,.04);
  font-weight: 500;
  color: #78716c;
  padding: 10px 14px;
}
.app-shell .sheet {
  background: transparent;
  box-shadow: none;
  margin: 0 8px 4px;
  padding: 4px 10px 16px;
  min-height: 0;
}
.app-shell .list { gap: 14px; }
.app-shell .item {
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 14px;
  padding: 16px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(28,25,23,.04), 0 14px 40px rgba(28,25,23,.05);
  align-items: center;
}
.app-shell .item.plain { grid-template-columns: 44px minmax(0, 1fr); }
.app-shell .item:active { background: #fff; transform: scale(.985); }
.app-shell .item > div { min-width: 0; }
.app-shell .item b {
  font-size: 15px; font-weight: 700; letter-spacing: -.03em; color: #1c1917;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.app-shell .item small { font-size: 12px; font-weight: 400; color: #a8a29e; margin-top: 3px; }
.app-shell .item .btn-col { align-items: flex-end; gap: 6px; }
.app-shell .item .btn-row { justify-content: flex-end; gap: 6px; }
.app-shell .avatar,
.app-shell .avatar-photo {
  width: 56px; height: 56px; border-radius: 50%;
  object-fit: cover; display: grid; place-items: center;
  font-weight: 600;
}
.app-shell .plain .avatar { width: 40px; height: 40px; font-size: 13px; background: #f5f2ed; color: #78716c; }
.app-shell .avatar-photo { background: #e7e5e4; }
.app-shell .pill { font-weight: 600; padding: 5px 10px; }
.app-shell .stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 10px;
  padding: 4px 18px 16px;
}

.app-shell .page { padding: 4px 20px 10px; }
.app-shell .page h2 { font-size: 22px; font-weight: 700; letter-spacing: -.04em; }
.app-shell .page p { display: none; }
.app-shell .stat {
  border-radius: 22px;
  padding: 16px 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(28,25,23,.04), 0 12px 32px rgba(28,25,23,.04);
}
.app-shell .stat b { font-size: 18px; font-weight: 700; letter-spacing: -.03em; }
.app-shell .stat span { font-weight: 400; color: #a8a29e; }
.app-shell .idea-banner {
  margin: 0 18px 14px;
  padding: 16px 18px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(28,25,23,.04);
}
.app-shell .idea-banner[hidden] { display: none !important; }
.app-shell .group {
  font-size: 11px;
  font-weight: 500;
  color: #a8a29e;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 18px 6px 10px;
}
.app-shell .extra-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.app-shell .idea-banner b { font-weight: 700; }
.app-shell .idea-banner p { font-weight: 400; color: #a8a29e; display: block; }
.app-shell .quick-bar { display: none; }
.app-shell .suggest-row { display: none; }
.app-shell button.tile {
  border-radius: 22px;
  box-shadow: 0 1px 2px rgba(28,25,23,.04), 0 12px 32px rgba(28,25,23,.04);
  min-height: 92px;
  padding: 14px 8px 12px;
  background: #fff;
}
.app-shell .tile .ico { width: 36px; height: 36px; border-radius: 14px; background: #f5f2ed; color: #57534e; }
.app-shell .tile b { font-weight: 500; color: #44403c; font-size: 11px; }
.app-shell .empty { padding: 48px 16px; font-weight: 400; color: #a8a29e; }
.app-shell .field { margin-bottom: 16px; gap: 8px; }
.app-shell .field span { font-weight: 500; color: #a8a29e; letter-spacing: .04em; text-transform: uppercase; font-size: 10px; }
.app-shell .field input,
.app-shell .field select,
.app-shell .field textarea {
  border: 0;
  background: #fff;
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 10px 28px rgba(28,25,23,.04);
  font-weight: 500;
}
.app-shell .hours { gap: 12px; }
.app-shell .hours-row {
  background: #fff;
  border-radius: 18px;
  padding: 12px 14px;
  box-shadow: 0 10px 28px rgba(28,25,23,.04);
  grid-template-columns: 40px 1fr 1fr;
}
.app-shell .hours-row input {
  border: 0; background: #f6f4f0; border-radius: 12px; padding: 10px;
}

.app-shell .bottom-nav {
  position: relative;
  flex-shrink: 0;
  bottom: auto;
  margin: 6px 16px calc(14px + env(safe-area-inset-bottom));
  border: 0;
  border-radius: 32px;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  box-shadow: 0 18px 48px rgba(28,25,23,.12);
  padding: 8px 10px;
  z-index: 40;
}
.app-shell .bottom-nav button {
  position: relative;
  font-size: 10px;
  font-weight: 500;
  color: #a8a29e;
  gap: 4px;
}
.app-shell .bottom-nav .badge {
  position: absolute; top: 2px; right: calc(50% - 22px);
  min-width: 16px; height: 16px; padding: 0 4px;
  font-size: 9px; line-height: 16px;
}
.app-shell .bottom-nav .nav-ico {
  width: 40px; height: 30px; border-radius: 14px;
}
.app-shell .bottom-nav button.active { color: var(--c); font-weight: 600; }
.app-shell .bottom-nav button.active .nav-ico {
  background: var(--c); color: #fff;
  box-shadow: 0 8px 18px rgba(13,148,136,.35);
}
.app-shell .bottom-nav.usta button.active { color: var(--p); }
.app-shell .bottom-nav.usta button.active .nav-ico {
  background: var(--p); color: #fff;
  box-shadow: 0 8px 18px rgba(234,88,12,.35);
}

.auth-wrap, .splash { background: #f6f4f0; }
.auth-wrap {
  background: #f6f4f0;
}
.usta-app.auth-wrap { background: #f6f4f0; }
.auth-card, .splash-card {
  border: 0;
  border-radius: 32px;
  box-shadow: 0 1px 2px rgba(28,25,23,.04), 0 24px 60px rgba(28,25,23,.08);
  background: #fff;
  padding: 28px 22px 22px;
}
.auth-brand h2 { font-weight: 700; letter-spacing: -.04em; }
.auth-tabs { background: #f6f4f0; border-radius: 16px; padding: 4px; }
.auth-tab { font-weight: 500; border-radius: 12px; }
.splash-bg {
  background:
    radial-gradient(800px 420px at 12% -8%, rgba(45,212,191,.18) 0%, transparent 52%),
    radial-gradient(640px 360px at 108% 8%, rgba(253,186,116,.16) 0%, transparent 48%),
    linear-gradient(180deg, #faf8f4, #f6f4f0 58%);
}
.splash-card h1 { font-weight: 700; letter-spacing: -.05em; }
.splash-card .sub { font-weight: 400; color: #a8a29e; }
.splash-role, .role {
  border: 0;
  background: #f6f4f0;
  box-shadow: none;
  border-radius: 22px;
  padding: 16px;
}
.splash-role.client, .splash-role.provider { border: 0; }
.splash-role h2 { font-weight: 700; letter-spacing: -.03em; }
.splash-role p { font-weight: 400; color: #a8a29e; }
.auth-wrap .field { margin-bottom: 14px; gap: 8px; }
.auth-wrap .field span { font-weight: 500; color: #a8a29e; letter-spacing: .04em; text-transform: uppercase; font-size: 10px; }
.auth-wrap .field input,
.auth-wrap .field select {
  border: 0;
  background: #f6f4f0;
  border-radius: 16px;
  padding: 14px 16px;
  font-weight: 500;
}
.demo-note {
  background: transparent;
  color: #a8a29e;
  font-weight: 400;
  border: 0;
  padding: 8px 0 0;
  text-align: center;
}
.hint-box {
  background: transparent;
  color: #a8a29e;
  padding: 8px 0 0;
  font-weight: 400;
}
#lanHint:empty { display: none; }
.eyebrow { font-weight: 500; color: #a8a29e; letter-spacing: .12em; }

#extraDialog.sheet-dialog {
  border-radius: 32px;
  padding: 24px 20px;
  box-shadow: 0 28px 70px rgba(28,25,23,.16);
  border: 0;
  background: #fff;
}
#extraDialog .kv { border-bottom: 0; padding: 12px 0; }
#extraDialog .kv span { font-weight: 400; color: #a8a29e; }
#extraDialog .review { border-bottom: 0; padding: 12px 0; }
#extraDialog .item {
  display: grid; grid-template-columns: 44px 1fr; gap: 12px;
  padding: 12px 0; align-items: center;
}
