:root {
  --ink: #0A1F44;
  --ink-2: #717171;
  --ink-4: #b0b0b0;
  --hairline: #ebebeb;
  --sand: #f7f4f2;
  --coral: #246BFD;
  --coral-dark: #0A4FD6;
  --gold: #c79a3b;
  --red: #d9392b;
  --page: #ffffff;
  --radius: 14px;
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.10);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--page);
  line-height: 1.45;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }

/* ---------- top bar (app style) ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: var(--page);
  border-bottom: 1px solid var(--hairline);
  padding: 10px 16px 12px;
}
.topbar-row { display: flex; align-items: center; gap: 12px; max-width: 1080px; margin: 0 auto; }
.brand { font-size: 18px; font-weight: 800; text-decoration: none; letter-spacing: -0.02em; color: var(--coral); }
.brand small { color: var(--ink); font-weight: 700; }
.navmeta { margin-left: auto; color: var(--ink-2); font-size: 12.5px; }
.searchpill {
  margin: 10px auto 0; max-width: 1080px;
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--hairline); border-radius: 999px; padding: 12px 18px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
  color: var(--ink-2); font-size: 14px; text-decoration: none; background: #fff;
}
.searchpill svg { flex: none; }
.searchpill strong { color: var(--ink); font-weight: 600; }

/* ---------- bottom tab bar ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; justify-content: space-around; align-items: flex-end;
  background: var(--page); border-top: 1px solid var(--hairline);
  padding: 6px 8px calc(8px + env(safe-area-inset-bottom, 0px));
}
.tab {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  min-width: 64px; min-height: 48px; justify-content: center;
  color: var(--ink-2); text-decoration: none; font-size: 11px; font-weight: 600;
}
.tab svg { display: block; }
.tab.active { color: var(--coral); }
.tab-ask {
  margin-top: -26px;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--coral); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(36, 107, 253, 0.45);
  border: 4px solid #fff;
  text-decoration: none;
}
.tab-ask-wrap { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 64px; color: var(--ink-2); font-size: 11px; font-weight: 600; text-decoration: none; }
.tab-ask-wrap.active { color: var(--coral); }

main { max-width: 1080px; margin: 0 auto; padding: 14px 16px 110px; }

/* ---------- category strip ---------- */
.catstrip {
  display: flex; gap: 22px; overflow-x: auto; padding: 12px 2px 10px;
  scrollbar-width: none; border-bottom: 1px solid var(--hairline);
}
.catstrip::-webkit-scrollbar { display: none; }
.cat {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--ink-2); font-size: 12px; font-weight: 600; background: none; border: none;
  padding: 2px 2px 8px; border-bottom: 2px solid transparent; white-space: nowrap;
}
.cat[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.cat svg { display: block; }

/* ---------- listing cards (Airbnb style) ---------- */
.grid { display: grid; grid-template-columns: 1fr; gap: 26px; margin-top: 18px; }
@media (min-width: 700px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .grid { grid-template-columns: 1fr 1fr 1fr; } }
.card { display: flex; flex-direction: column; }
.card-media { position: relative; border-radius: var(--radius); overflow: hidden; }
.card-media img { width: 100%; aspect-ratio: 1 / 0.95; object-fit: cover; }
.heart {
  position: absolute; top: 10px; right: 10px;
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: rgba(0,0,0,0.35); display: flex; align-items: center; justify-content: center;
}
.heart svg { display: block; }
.badge {
  position: absolute; top: 12px; left: 12px;
  background: #fff; border-radius: 999px; padding: 5px 12px;
  font-size: 12px; font-weight: 700; box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.card-body { padding: 10px 2px 0; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.card-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.card-title { font-size: 15.5px; font-weight: 700; margin: 0; letter-spacing: -0.01em; }
.card-rating { font-size: 13.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 3px; }
.card-sub { color: var(--ink-2); font-size: 13.5px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 3px; }
.tag { padding: 3px 10px; border-radius: 999px; background: var(--sand); color: var(--ink-2); font-size: 11.5px; font-weight: 600; }
.card-price { font-weight: 800; font-size: 15px; margin-top: 5px; }
.card-price span { font-weight: 400; color: var(--ink-2); }
.card-foot { margin-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.demo-flag { font-size: 11px; color: var(--ink-4); }

/* ---------- buttons / chips ---------- */
.btn {
  min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  text-decoration: none;
}
.btn-primary { background: var(--coral); color: #fff; }
.btn-primary:disabled { background: var(--ink-4); cursor: default; }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--ink); border-radius: 10px; }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-small { min-height: 36px; padding: 6px 14px; font-size: 13px; }
.btn-view { color: var(--ink); font-weight: 700; font-size: 13.5px; text-decoration: underline; }
.sugs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip {
  min-height: 44px; padding: 8px 16px; border-radius: 999px; font-size: 13px;
  border: 1px solid var(--hairline); background: #fff; color: var(--ink-2); font-weight: 600;
}
.chip:hover { color: var(--ink); border-color: var(--ink-4); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.note { font-size: 12.5px; color: var(--ink-2); margin-top: 10px; }

/* ---------- panels / forms ---------- */
.panel {
  background: var(--page); border-radius: var(--radius); border: 1px solid var(--hairline);
  padding: 20px; margin-top: 16px;
}
.panel h2 { margin: 0 0 4px; font-size: 20px; letter-spacing: -0.02em; }
.panel .sub { color: var(--ink-2); margin: 0 0 14px; font-size: 14px; }
.section-title { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; margin: 26px 0 4px; }
.section-sub { color: var(--ink-2); font-size: 13.5px; margin: 0; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input, .field select {
  min-height: 48px; padding: 0 14px; font: inherit; color: var(--ink);
  border: 1px solid var(--hairline); border-radius: 12px; background: #fff;
}
.field input:focus, .field select:focus { outline: 2px solid var(--coral); outline-offset: 1px; }
.error { color: var(--red); font-size: 13px; margin: 8px 0 0; }
.ok { color: #0f7a3d; font-size: 13px; margin: 8px 0 0; }
.callout { border-radius: 12px; background: var(--sand); padding: 12px 14px; margin: 14px 0; font-size: 13.5px; color: var(--ink-2); }
.callout strong { color: var(--ink); }

/* ---------- filters ---------- */
.filters { display: flex; flex-direction: column; gap: 14px; }
.filter-group { display: flex; flex-direction: column; gap: 8px; }
.filter-label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; }
.slider-row { display: flex; align-items: center; gap: 12px; }
.slider-row input[type="range"] { flex: 1; accent-color: var(--coral); min-height: 44px; }
.slider-val { font-weight: 700; min-width: 84px; text-align: right; }

/* ---------- chat ---------- */
.chatlog { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.bubble { max-width: 92%; padding: 10px 14px; border-radius: 18px; font-size: 14px; }
.bubble-you { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
.bubble-app { align-self: flex-start; background: var(--sand); border-bottom-left-radius: 4px; }
.bubble-hold { align-self: flex-start; background: #fff; border: 1px solid var(--red); color: var(--red); }
.askrow { display: flex; gap: 8px; }
.askrow input {
  flex: 1; min-width: 0; min-height: 48px; padding: 0 16px; font: inherit; color: var(--ink);
  border: 1px solid var(--hairline); border-radius: 999px; background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.askrow input:focus { outline: 2px solid var(--coral); outline-offset: 1px; }
@media (max-width: 360px) {
  .askrow { flex-direction: column; }
  .askrow .btn { width: 100%; }
}
.minicards { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.minicard { display: flex; align-items: center; gap: 10px; border: 1px solid var(--hairline); border-radius: 12px; padding: 8px; background: #fff; }
.minicard img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
.minicard .mc-info { flex: 1; min-width: 0; }
.minicard .mc-name { font-weight: 700; font-size: 14px; }
.minicard .mc-meta { color: var(--ink-2); font-size: 12.5px; }

/* ---------- detail ---------- */
.detail-photo { border-radius: 18px; overflow: hidden; }
.detail-photo img { width: 100%; max-height: 420px; object-fit: cover; }
.hero-credit { font-size: 11px; color: var(--ink-2); margin: 6px 2px 0; }
.facts { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 14px 0; }
@media (min-width: 640px) { .facts { grid-template-columns: 1fr 1fr; } }
.fact { background: var(--sand); border-radius: 12px; padding: 12px 14px; }
.fact .fl { font-size: 12px; color: var(--ink-2); margin-bottom: 2px; }
.fact .fv { font-weight: 700; }
.thread { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.thread-empty { color: var(--ink-2); font-size: 14px; }
.stars { display: flex; gap: 6px; flex-wrap: wrap; }
.star {
  min-width: 44px; min-height: 44px; border-radius: 10px; border: 1px solid var(--hairline);
  background: #fff; font-size: 16px; color: var(--ink-2); font-weight: 600;
}
.star[aria-pressed="true"] { background: var(--coral); border-color: var(--coral); color: #fff; }
.empty { border: 1px solid var(--hairline); border-radius: var(--radius); padding: 28px 20px; text-align: center; color: var(--ink-2); margin-top: 16px; }

.roadmap { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 10px; }
.roadmap li { display: flex; gap: 10px; font-size: 14px; }
.roadmap .rm-k { font-weight: 800; white-space: nowrap; color: var(--coral); }

.sitefoot { max-width: 1080px; margin: 0 auto; padding: 0 16px 130px; color: var(--ink-2); font-size: 12.5px; }
.backrow { margin-bottom: 12px; }
.backlink { color: var(--ink); font-weight: 700; font-size: 13.5px; text-decoration: none; }
.backlink:hover { text-decoration: underline; }

/* messages inbox */
.threadlist { margin-top: 14px; display: flex; flex-direction: column; gap: 4px; }
.threadrow { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 14px; text-decoration: none; color: inherit; }
.threadrow:hover { background: #f7f7f7; }
.threadrow img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; }
.tr-info { flex: 1; min-width: 0; }
.tr-name { font-weight: 600; font-size: 15px; }
.tr-last { font-size: 13px; color: #717171; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-open { font-size: 13px; font-weight: 600; color: #246BFD; flex: none; }

/* search-first hero box (AI-style gradient border) */
.aibox {
  margin: 14px 14px 6px;
  padding: 20px 16px;
  border-radius: 22px;
  border: 2px solid transparent;
  background: linear-gradient(#ffffff, #ffffff) padding-box,
              linear-gradient(100deg, #0A1F44 0%, #246BFD 40%, #00C2FF 75%, #5B8CFF 100%) border-box;
  box-shadow: 0 12px 32px rgba(36, 107, 253, 0.14);
}
.aibox h2 { margin: 0 0 6px; font-size: 21px; }
.aibox .sub { margin: 0 0 14px; }
.aibox .askrow input {
  border: 1.5px solid #ebebeb;
  border-radius: 999px;
  padding: 13px 18px;
}
.aibox .askrow input:focus { border-color: #246BFD; outline: none; box-shadow: 0 0 0 3px rgba(36,107,253,0.12); }

/* sign-in panel */
.signin-google { border: 1.5px solid #ebebeb; border-radius: 16px; padding: 14px 16px; margin-top: 14px; background: #fafafa; }
.signin-google-title { font-weight: 700; font-size: 15px; margin: 0 0 4px; }
.signin-google .sub { margin: 0; }
.divider { border: none; border-top: 1px solid #ebebeb; margin: 18px 0; }

/* gradient-border AI/chat surfaces (navy + electric blue) */
.panel-ai {
  border: 2px solid transparent;
  background: linear-gradient(#ffffff, #ffffff) padding-box,
              linear-gradient(100deg, #0A1F44 0%, #246BFD 40%, #00C2FF 75%, #5B8CFF 100%) border-box;
  box-shadow: 0 12px 32px rgba(36, 107, 253, 0.10);
}
.askrow input.grad {
  border: 2px solid transparent;
  background: linear-gradient(#ffffff, #ffffff) padding-box,
              linear-gradient(100deg, #0A1F44 0%, #246BFD 55%, #00C2FF 100%) border-box;
  border-radius: 999px;
}
.askrow input.grad:focus { outline: none; box-shadow: 0 0 0 3px rgba(36,107,253,0.14); }
.searchpill {
  border: 2px solid transparent !important;
  background: linear-gradient(#ffffff, #ffffff) padding-box,
              linear-gradient(100deg, #0A1F44 0%, #246BFD 55%, #00C2FF 100%) border-box !important;
}

/* first-entry sign-in */
.entry-hero { text-align: center; padding: 34px 20px 6px; }
.entry-hero h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; color: #0A1F44; margin: 0 0 6px; }
.entry-hero p { color: #5b6472; margin: 0; font-size: 15px; }
.entry-explore { text-align: center; margin: 14px 0 30px; }
.entry-explore a { color: #246BFD; font-weight: 600; font-size: 14px; }

/* standalone entry screen: no app chrome */
body.entry-mode .topbar, body.entry-mode .tabbar, body.entry-mode .sitefoot { display: none; }
body.entry-mode main { padding-top: 24px; }

/* AI sparkle glow on the Ask FAB */
.tab-ask svg { filter: drop-shadow(0 0 6px rgba(255,255,255,0.85)); }
.tab-ask { box-shadow: 0 6px 20px rgba(36, 107, 253, 0.55), 0 0 18px rgba(0, 194, 255, 0.5); }

/* mobile fit fixes: no Safari input auto-zoom, no sideways page drift */
/* overflow guard removed: it hid real overflow */
input, select, textarea { font-size: 16px; }
.tab, .tab-ask-wrap { min-width: 0; flex: 1; }

/* performer studio */
.kick { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #246BFD; margin: 0 0 2px; }
body.performer .topbar { background: #0A1F44; }
body.performer .brand { color: #fff; }
body.performer .brand small { color: #00C2FF; }
body.performer #navmeta { color: rgba(255,255,255,0.75); }
.pstats { display: flex; gap: 10px; margin: 14px 0; }
.pstat { flex: 1; min-width: 0; background: #F0F5FF; border-radius: 12px; padding: 10px; text-align: center; }
.pstat b { display: block; font-size: 15px; color: #0A1F44; }
.pstat span { font-size: 12px; color: #5A6B8C; }
.bkcard { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid #E4E9F2; border-radius: 14px; padding: 12px; margin-top: 10px; }
.bkmain { min-width: 0; }
.bkstatus { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 3px 10px; }
.bkstatus.ok { background: #E7F8EF; color: #137A43; }
.bkstatus.warn { background: #FFF4E0; color: #A35B00; }
.bkprice { font-weight: 700; color: #0A1F44; white-space: nowrap; }
.daypick { display: flex; flex-wrap: wrap; gap: 8px; }
.daychip { border: 1px solid #D5DCE8; background: #fff; border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 600; color: #33415C; cursor: pointer; }
.daychip.on { background: #246BFD; border-color: #246BFD; color: #fff; }
.daychip.off { opacity: 0.45; cursor: not-allowed; }
.blocked { list-style: none; margin: 10px 0 0; padding: 0; }
.blocked li { display: flex; align-items: center; justify-content: space-between; border: 1px solid #E4E9F2; border-radius: 10px; padding: 8px 12px; margin-top: 8px; font-size: 14px; }
.bremove { background: none; border: none; color: #C0392B; font-weight: 600; cursor: pointer; font-size: 13px; }
.pphoto { display: block; width: 96px; height: 96px; object-fit: cover; border-radius: 50%; margin-bottom: 8px; border: 3px solid #246BFD; }
body.performer .searchpill { display: none; }
body.performer .topbar { padding: 14px 16px; }

/* home-screen standalone safe areas */
.topbar { padding-top: calc(10px + env(safe-area-inset-top, 0px)); }
.tabbar { padding-bottom: env(safe-area-inset-bottom, 0px); }

/* no whole-page sideways drag: vertical scroll + pinch only; carousels opt back in */
html { width: 100%; max-width: 100%; overflow-x: hidden; overscroll-behavior-x: none; touch-action: pan-y pinch-zoom; }
body { width: 100%; max-width: 100%; position: relative; overflow-x: hidden; overscroll-behavior-x: none; touch-action: pan-y pinch-zoom; }
.topbar, .tabbar, #app, .sitefoot { max-width: 100vw; box-sizing: border-box; }
.catstrip { touch-action: pan-x pan-y; overscroll-behavior-x: contain; }
.navmeta { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-row > * { min-width: 0; }

.qgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qf { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: #0A1F44; min-width: 0; }
.qwide { grid-column: 1 / -1; }
.qf select, .qf input { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; font-size: 16px; padding: 11px 12px; border: 1px solid #d5dbe8; border-radius: 12px; background: #fff; color: #0A1F44; font-family: inherit; }
.qf select:focus, .qf input:focus { border-color: #246BFD; outline: none; box-shadow: 0 0 0 3px rgba(36,107,253,0.12); }
@media (max-width: 340px) { .qgrid { grid-template-columns: 1fr; } }
.aibox { border: 1px solid #e3e8f2; background: #fff; box-shadow: 0 6px 20px rgba(10,31,68,0.06); }

.qf input[type="date"] { -webkit-appearance: none; appearance: none; display: block; width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; text-align: left; height: 46px; }
.qf input[type="date"]::-webkit-date-and-time-value { text-align: left; min-width: 0; margin: 0; }
.qf input[type="date"]::-webkit-datetime-edit { padding: 0; }
.field textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; padding: 11px 12px; border: 1px solid #d5dbe8; border-radius: 12px; resize: vertical; color: #0A1F44; }

.qf { position: relative; }
.qf > input { width: 100%; box-sizing: border-box; font-size: 16px; padding: 11px 12px; border: 1px solid #d5dbe8; border-radius: 12px; background: #fff; color: #0A1F44; font-family: inherit; }
.locsug { position: absolute; left: 0; right: 0; top: 100%; margin-top: 4px; z-index: 30; background: #fff; border: 1px solid #d5dbe8; border-radius: 12px; box-shadow: 0 10px 24px rgba(10,31,68,0.15); overflow: hidden; }
.locopt { display: block; width: 100%; text-align: left; background: #fff; border: 0; border-bottom: 1px solid #eef1f7; padding: 12px; font: inherit; font-size: 16px; color: #0A1F44; }
.locattr { padding: 6px 12px; font-size: 11px; color: #6b7690; }

.bkmain { flex: 1; min-width: 0; }
.bkstatus { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; margin-top: 6px; }
.bkstatus.ok { background: #E3F6EA; color: #11713A; } .bkstatus.wait { background: #E8F0FF; color: #0A4FD6; } .bkstatus.off { background: #EEF0F4; color: #5B6577; }
.bkactions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.btn-small { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.reviewbox { margin-top: 12px; display: grid; gap: 8px; } .reviewbox textarea, .field textarea, .field select { width: 100%; font: inherit; font-size: 16px; padding: 10px; border: 1px solid #d5dbe8; border-radius: 12px; box-sizing: border-box; }
.star.on { color: #246BFD; border-color: #246BFD; background: #E8F0FF; }
.rv { border-top: 1px solid #E4E9F2; padding: 10px 0; } .rv strong { color: #246BFD; }

.calhead { display: flex; align-items: center; justify-content: space-between; margin: 12px 0 8px; font-size: 17px; }
.calgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.calwd { text-align: center; font-size: 12px; font-weight: 700; color: #6B7894; margin-bottom: 4px; }
.calcell { position: relative; min-height: 58px; border: 1px solid #E4E9F2; background: #fff; border-radius: 10px; padding: 4px 2px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 3px; cursor: pointer; font: inherit; color: #14213D; }
.calcell.empty { border: 0; background: none; cursor: default; }
.calcell.usual { background: #EAF1FF; border-color: #C6D8FF; }
.calcell.blockd { background: #EDEFF3; color: #6B7894; }
.calcell.booked { background: #246BFD; border-color: #246BFD; color: #fff; }
.calcell.past { opacity: 0.55; }
.calcell.today .calnum { text-decoration: underline; }
.calcell.sel { outline: 3px solid #14213D; outline-offset: 1px; }
.calnum { font-size: 14px; font-weight: 700; }
.caltag { font-size: 9.5px; font-weight: 700; line-height: 1.1; max-width: 100%; overflow: hidden; text-overflow: clip; }
.caltag.req { color: #B45309; }
.calnote { position: absolute; top: 4px; right: 5px; width: 6px; height: 6px; border-radius: 50%; background: #F59E0B; }
.callegend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: #4A5878; margin: 10px 0; }
.callegend i.lg { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; border: 1px solid #C6D8FF; }
.lg.usual { background: #EAF1FF; } .lg.booked { background: #246BFD; border-color: #246BFD !important; } .lg.blockd { background: #EDEFF3; border-color: #CBD2E0 !important; } .lg.req { background: #FDE9C8; border-color: #F59E0B !important; }
.caldetail { border-top: 1px solid #E4E9F2; margin-top: 8px; padding-top: 14px; }
.caldetail textarea { width: 100%; box-sizing: border-box; border: 1px solid #D5DCE8; border-radius: 10px; padding: 10px; font: inherit; }
@media (min-width: 700px) { .calcell { min-height: 84px; } .caltag { font-size: 11px; } }

.calcell.hasreq { box-shadow: inset 0 -4px 0 #F59E0B; }
@media (max-width: 560px) { .caltag { display: none; } .calcell { min-height: 54px; } }

/* ---------- professional sign-in ---------- */
.signin h2 { font-size: 22px; }
.gbtn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; margin-top: 14px; padding: 11px 16px;
  background: #fff; color: #1f1f1f;
  border: 1px solid #dadce0; border-radius: 10px;
  font-size: 15px; font-weight: 600; font-family: Roboto, -apple-system, "Segoe UI", Arial, sans-serif;
  transition: box-shadow 0.15s ease, background 0.15s ease;
}
.gbtn:hover { background: #f8f9fa; box-shadow: 0 1px 3px rgba(60, 64, 67, 0.25); }
.abtn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; margin-top: 10px; padding: 11px 16px;
  background: #000; color: #fff;
  border: 1px solid #000; border-radius: 10px;
  font-size: 15px; font-weight: 600; font-family: -apple-system, "Segoe UI", Arial, sans-serif;
  transition: background 0.15s ease;
}
.abtn:hover { background: #1a1a1a; }
.abtn:active { background: #333; }
.or-div { display: flex; align-items: center; gap: 12px; margin: 16px 0 12px; color: #8a93a1; font-size: 13px; }
.or-div::before, .or-div::after { content: ''; flex: 1; height: 1px; background: #e3e7ec; }
.ebtn { width: 100%; margin-top: 2px; }
.gbtn:active { background: #f1f3f4; }
.glogo { flex: none; }
.btn-linklike {
  background: none; border: 0; padding: 0; margin-top: 14px;
  color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: underline;
}
.tiny { font-size: 12px; color: var(--ink-2); margin-top: 12px; }

/* ---------- owner dashboard ---------- */
.dcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.dcard { border: 1px solid var(--hairline); border-radius: 12px; padding: 12px; background: #fff; }
.dnum { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.dlabel { font-size: 13px; font-weight: 700; color: var(--ink); margin-top: 2px; }
.dsub { font-size: 11.5px; color: var(--ink-2); margin-top: 2px; }
.dbarrow { display: flex; align-items: center; gap: 8px; margin: 4px 0; font-size: 12px; }
.dbarlabel { width: 74px; flex: none; color: var(--ink-2); }
.dbartrack { flex: 1; height: 10px; background: var(--sand); border-radius: 6px; overflow: hidden; }
.dbar { display: block; height: 100%; background: var(--coral); border-radius: 6px; min-width: 0; }
.dbarn { width: 34px; flex: none; text-align: right; font-weight: 700; color: var(--ink); }
.drow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--hairline); }
.drow:first-of-type { border-top: 0; }
.dwho { display: flex; flex-direction: column; min-width: 0; }
.dwho strong { font-size: 14px; }
.dmail { font-size: 12px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dtime { flex: none; font-size: 12px; color: var(--ink-2); }
.dpath { font-size: 13px; color: var(--ink); }
.dcount { font-size: 13px; font-weight: 700; color: var(--ink); }
.dtag { display: inline-block; font-size: 11px; font-weight: 700; color: var(--coral-dark); background: #e8effe; border-radius: 999px; padding: 1px 8px; margin-top: 2px; }
.arhp{position:absolute;left:-9999px;top:-9999px;height:1px;width:1px;overflow:hidden}

/* === Desktop layout (min-width:1024px), designer patch merged 2026-11-22 === */
/* Simcha Anytime desktop layout. Append AFTER the current application CSS.
   Desktop only: existing mobile/tablet rules and app event handlers stay intact. */
@media (min-width: 1024px) {
  html, body { touch-action: auto; }
  body { background: #f6f8fc; }
  .topbar {
    height: 88px; padding: 0 40px; background: #fff;
    border-bottom: 1px solid #e3e8f2;
  }
  .topbar-row { height: 100%; max-width: 1280px; gap: 18px; }
  .brand { font-size: 23px; white-space: nowrap; }
  .brand small { font-size: inherit; }
  .navmeta { max-width: 190px; font-size: 12px; text-align: right; }
  .tabbar {
    top: 0; bottom: auto; left: 50%; right: auto; transform: translateX(-50%);
    width: max-content; max-width: 560px; height: 88px; padding: 0;
    gap: 6px; align-items: center; justify-content: center;
    background: transparent; border: 0;
  }
  .tabbar .tab, .tabbar .tab-ask-wrap {
    flex: none; flex-direction: row; gap: 7px; min-width: 0; min-height: 44px;
    padding: 10px 14px; border-radius: 10px; font-size: 14px; font-weight: 650;
    color: #55627a; white-space: nowrap;
  }
  .tabbar .tab svg { width: 18px; height: 18px; }
  .tabbar .tab:hover, .tabbar .tab-ask-wrap:hover { background: #f1f5fc; color: #0a1f44; }
  .tabbar .tab.active { background: #eaf1ff; color: #1559df; }
  .tabbar .tab-ask-wrap { color: #1559df; }
  .tabbar .tab-ask-wrap.active { background: #eaf1ff; }
  .tabbar .tab-ask {
    width: 22px; height: 22px; margin: 0; padding: 3px; border: 0;
    border-radius: 6px; box-shadow: none; background: #246bfd;
  }
  .tabbar .tab-ask svg { width: 18px; height: 18px; filter: none; }
  #app { max-width: 1360px; padding: 36px 40px 56px; }
  .sitefoot { max-width: 1360px; padding: 24px 40px 36px; border-top: 1px solid #dfe6f0; font-size: 12px; line-height: 1.65; }
  .sitefoot p { max-width: 980px; margin: 0; }
  .aibox { margin: 0 0 32px; padding: 30px 32px 24px; border-radius: 20px; border: 1px solid #dfe6f0; box-shadow: 0 8px 32px rgba(10,31,68,.04); }
  .aibox h2 { font-size: 34px; line-height: 1.18; letter-spacing: -.035em; margin-bottom: 10px; }
  .aibox > .sub { color: #59677e; font-size: 16px; margin-bottom: 24px; }
  .aibox .qgrid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px 20px; }
  .aibox .qwide { grid-column: auto; }
  .qf { gap: 8px; font-size: 12px; }
  .qf select, .qf input, .qf > input { height: 48px; border-radius: 10px; }
  .aibox .note { font-size: 11px; line-height: 1.5; margin: 18px 0 0 !important; }
  .section-title { font-size: 26px; letter-spacing: -.025em; margin-top: 30px; }
  .section-sub { font-size: 14px; }
  .grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; margin-top: 22px; }
  .card { background: #fff; border: 1px solid #e0e6ef; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 16px rgba(10,31,68,.025); }
  .card-media { border-radius: 0; }
  .card-media img { aspect-ratio: 1.6; }
  .card-body { padding: 18px 20px 20px; gap: 5px; }
  .card-title { font-size: 18px; line-height: 1.3; }
  .card-price { margin-top: 8px; }
  .card-foot { padding-top: 8px; }
  .panel { padding: 28px; border-color: #dfe6f0; box-shadow: 0 4px 18px rgba(10,31,68,.025); }
  .panel h2 { font-size: 25px; }
  #app > .panel:only-child { max-width: 960px; margin: 0 auto; }
  .threadlist { max-width: 100%; }
  .threadrow { padding: 16px; }
  .panel-ai .chatlog { min-height: 250px; }
  .bubble { max-width: 75%; }
  .detail-photo img { max-height: 480px; }
  .facts { gap: 16px; }
  .calcell { min-height: 100px; padding-top: 10px; }
  .dcards { grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); gap: 16px; }
  body.performer .topbar { height: 88px; padding: 0 40px; }
  body.performer .tabbar .tab { color: #d6e3fa; }
  body.performer .tabbar .tab:hover, body.performer .tabbar .tab.active { background: #213a61; color: #fff; }
  body.entry-mode .topbar { display: block; }
  body.entry-mode #app {
    display: grid; grid-template-columns: minmax(0,1.1fr) minmax(360px,.9fr);
    align-items: center; gap: 64px; min-height: calc(100vh - 88px);
    padding-top: 48px; padding-bottom: 48px;
  }
  .entry-hero {
    display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end;
    min-height: 560px; padding: 48px; text-align: left; border-radius: 24px;
    background: linear-gradient(0deg,rgba(5,20,47,.96),rgba(5,20,47,.15)),url('images/hero-stage.jpg') center/cover;
  }
  .entry-hero h1 { color: #fff; max-width: 440px; font-size: 58px; line-height: 1.04; letter-spacing: -.045em; margin-bottom: 22px; }
  .entry-hero p { max-width: 390px; color: #e0e9f9; font-size: 19px; line-height: 1.6; }
  body.entry-mode .signin { margin: 0; width: 100%; max-width: 440px; padding: 36px; }
  body.entry-mode .signin h2 { font-size: 30px; letter-spacing: -.03em; }
  .gbtn { min-height: 48px; }
  .btn-linklike { min-height: 44px; }
  a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #246bfd; outline-offset: 4px; }
}
@media (min-width:1024px) and (max-width:1199px) {
  .topbar, body.performer .topbar { padding-left: 24px; padding-right: 24px; }
  .brand { font-size: 20px; }
  .tabbar { left: 52%; }
  .tabbar .tab, .tabbar .tab-ask-wrap { padding: 10px; font-size: 13px; }
  .tabbar .tab svg { display: none; }
  .navmeta { max-width: 140px; font-size: 11px; }
  #app { padding-left: 28px; padding-right: 28px; }
  body.entry-mode #app { gap: 32px; }
  .entry-hero { padding: 32px; min-height: 500px; }
  .entry-hero h1 { font-size: 48px; }
}

/* Service-areas chip remove button (scoped, additive) */
.srvx { background: none; border: 0; color: inherit; cursor: pointer; font-size: 14px; padding: 0 0 0 4px; }

/* ---------- v54 sign-in page polish ---------- */
.auth-hero {
  margin: 18px 0 16px; padding: 30px 24px 24px; border-radius: 20px;
  background:
    radial-gradient(120% 160% at 85% -20%, rgba(0,194,255,0.55) 0%, rgba(0,194,255,0) 55%),
    linear-gradient(115deg, #0A1F44 0%, #123B8F 45%, #246BFD 80%, #00C2FF 130%);
  color: #fff; text-align: center;
  box-shadow: 0 14px 34px rgba(10, 31, 68, 0.35);
}
.auth-hero h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 6px; color: #fff; }
.auth-hero p { margin: 0; color: rgba(255,255,255,0.82); font-size: 14.5px; }
.auth-chips { display: flex; gap: 8px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.auth-chips span {
  font-size: 12px; font-weight: 600; letter-spacing: 0.01em;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.28);
  color: #fff; backdrop-filter: blur(2px);
}
.panel.signin {
  background: linear-gradient(180deg, #fdfeff 0%, #f3f6ff 100%);
  border: 1px solid #e3e9fb; border-radius: 18px;
  box-shadow: 0 10px 28px rgba(10, 31, 68, 0.10);
}
.signin h2 { font-size: 22px; }
.gbtn { padding: 13px 18px; border-radius: 12px; box-shadow: 0 2px 8px rgba(10,31,68,0.10); }
.abtn { padding: 13px 18px; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.25); }
.or-div span { color: #5b6b8c; font-weight: 600; }
/* Compact musician disclosure; existing controls stay inside until opened. */
.auth-account { min-width: 0; }
.panel.musicjoin {
  padding: 0; margin: 12px 0 0; border-radius: 14px;
  border: 1px solid #dbe5f8; background: #fff;
  box-shadow: 0 3px 12px rgba(10, 31, 68, 0.05);
}
.mj-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 54px; padding: 15px 20px; cursor: pointer;
  list-style: none; font-size: 15px; font-weight: 700;
}
.mj-toggle::-webkit-details-marker { display: none; }
.mj-toggle:hover { background: #f6f9ff; border-radius: 14px; }
.mj-toggle:focus-visible { outline: 3px solid #246bfd; outline-offset: 3px; border-radius: 14px; }
.mj-chevron {
  width: 8px; height: 8px; border-right: 2px solid #246BFD;
  border-bottom: 2px solid #246BFD; transform: rotate(45deg); flex: none;
  margin: -4px 2px 0 0;
}
.musicjoin[open] .mj-chevron { transform: rotate(225deg); margin-top: 4px; }
.musicjoin[open] .mj-toggle { border-bottom: 1px solid #e8edf8; }
.mj-content { padding: 10px 20px 20px; }
.mj-code h3, .panel.musicjoin h3 { margin: 10px 0 4px; font-size: 16px; }
#pcode { text-transform: none; }
@media (min-width: 1024px) {
  body.entry-mode .auth-account { width: 100%; max-width: 440px; }
}

html{scroll-padding-bottom:110px}#event-pricing-editor input,#event-pricing-editor select,#psave{scroll-margin-bottom:110px;scroll-margin-top:100px}

/* Keep one viewport safe-area shield while the document scrolls. Clipping only
   the x axis must not turn body into a non-scrolling sticky ancestor. */
:root{--sa-safe-top:env(safe-area-inset-top,0px)}
html,body{overflow-x:clip}
body::before{content:"";position:fixed;inset:0 0 auto;height:var(--sa-safe-top);background:#0a1f44;z-index:100;pointer-events:none}
@media(max-width:899px){
 .topbar{padding-top:calc(10px + var(--sa-safe-top))}
 body.performer .topbar{padding-top:calc(14px + var(--sa-safe-top))}
 body.entry-mode #app{padding-top:calc(16px + var(--sa-safe-top))}
 .portfolio-editor input:not([type=checkbox]):not([type=radio]),.portfolio-upload-panel input[type=file]{font-size:16px}
}

/* Mobile headers stack the account label rather than cropping it beside the
   Studio name. Calendar controls stay within the same available width. */
@media(max-width:599px){
 .topbar-row{flex-wrap:wrap;gap:2px 10px}
 .topbar-row .brand{flex:1 0 100%;max-width:100%;font-size:18px;white-space:normal;overflow-wrap:anywhere}
 .topbar-row .navmeta{flex:1 0 100%;max-width:100%;margin-left:0;text-align:left;white-space:normal;overflow:visible;overflow-wrap:anywhere;font-size:12px}
 .topbar-row .navmeta:empty{display:none}
 .calhead{gap:8px;min-width:0}
 .calhead strong{min-width:0;text-align:center;font-size:clamp(14px,4.3vw,17px)}
 .calhead .btn{flex:none;min-width:38px;padding:8px 12px}
 .caldetail{min-width:0;overflow-wrap:anywhere}
}

/* Long account names, emails and form values must wrap inside their cards. */
.fact,.fv,.bkmain,.tr-info{min-width:0;overflow-wrap:anywhere}
@media(max-width:599px){
 input:not([type=checkbox]):not([type=radio]),select,textarea{min-width:0;max-width:100%;font-size:16px}
 .facts{grid-template-columns:repeat(2,minmax(0,1fr))}
 .btn,.gbtn,.abtn{max-width:100%;white-space:normal;overflow-wrap:anywhere}
}

.usual-weekdays{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}
.usual-weekdays span{border:1px solid #e7d8ac;border-radius:8px;padding:5px 8px;font-size:12px}
.usual-weekdays .on{background:#f8edcf;border-color:#aa7b25;color:#563700;font-weight:700}
.usual-weekdays .off{color:#596579;background:#f6f7f9;border-color:#e4e7ec}
.usual-summary{font-weight:600;color:#563700}

.calgrid .calcell.usual:not(.booked):not(.blockd){background:#f8edcf;border-color:#aa7b25}.calcell.usual .calnum{color:#563700}.usual-weekdays{max-width:100%;min-width:0}.fact .usual-weekdays span{padding:3px 5px;font-size:11px}
@media(max-width:599px){.facts>.fact:last-child:nth-child(odd){grid-column:1/-1}.facts{display:grid}}
