/* Shared visual system for customer, seller, account and portal surfaces. */
:root {
  --ui-ink: #15243a;
  --ui-muted: #536176;
  --ui-line: #dce3ec;
  --ui-canvas: #f7f8fb;
  --ui-radius: 20px;
  --ui-shadow: 0 8px 28px -16px #15243a30;
}
html { -webkit-text-size-adjust: 100%; }
html body { color: var(--ui-ink); }
html[lang=en] body, html[lang=en] #root { font-weight: 500; }
html #root { --muted: var(--ui-muted); }
html #root :is(p,li) { line-height: 1.7; }
html #root :is(h1,h2,h3,h4) { text-wrap: balance; }
html #root h2 { line-height: 1.3; }
html #root :is(.section-heading,.market-heading,.profile-heading) { margin-bottom: 24px; }
html #root :is(.section-heading,.market-heading) h2 { margin-bottom: 8px; }
html #root :is(.overline,.eyebrow) { font-weight: 500; letter-spacing: .13em; }
html #root :is(.section-heading p,.market-heading p,.profile-bio) { color: var(--ui-muted); }
html[lang=en] #root :is(.muted,.notice,.empty,.saved p,.form-note,.doc-list small) {
  font-size: 14px; line-height: 1.65;
}
/* A comfortable common control rhythm, with room for translated labels. */
html #root :is(.btn,.studio-start) {
  min-height: 48px; border-radius: 14px; padding: 12px 20px;
  line-height: 1.5; gap: 10px;
}
html #root .btn:not(.secondary):not(:disabled) { box-shadow: 0 5px 14px -8px var(--action-primary); }
html #root .btn.secondary { border-color: #aab6c7; }
html #root :is(button,a,input,select,textarea):focus-visible,
body :is(.reviews-sheet,.offer-share-panel) :is(button,a,input):focus-visible {
  outline: 3px solid var(--brand-blue,#3057c0); outline-offset: 3px;
}
html #root button:disabled { cursor: not-allowed; }
html #root :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),select,textarea) {
  border-radius: 12px; border-color: #98a5b7;
  font-size: 16px; min-height: 48px;
}
html #root :is(input,textarea)::placeholder { color: #657287; opacity: 1; }
html #root :is(.form-grid,.form-actions,.onboarding-actions) { gap: 16px; }
html #root :is(.field,.form-grid>div) { min-width: 0; }
html #root :is(.field label,.dialog label,.vendor-onboarding label,.offer-editor label) {
  display: block; margin-bottom: 8px;
}
html #root :is(.category-card,.vendor-tile,.saved,.bundle-item,.document-upload,.application-status) {
  border-radius: var(--ui-radius); border-color: var(--ui-line); box-shadow: var(--ui-shadow);
}
html #root :is(.saved,.document-upload) { padding: 20px; }
html #root :is(.offer-body,.vendor-tile) p { line-height: 1.65; }
html #root :is(.offer-bottom>strong,.bundle-grand strong,.reviews-score strong) { font-size: 22px; }
html #root .offer-bottom { align-items: center; gap: 12px; flex-wrap: wrap; }
html #root :is(.bundle-grand,.flow-summary,.expert-guide-title) { flex-wrap: wrap; gap: 14px; }
html #root :is(.bundle-name,.flow-event h3,.flow-order h3,.expert-event-booking h3) { overflow-wrap: anywhere; }
html #root :is(.form-actions,.onboarding-actions) > .btn { white-space: normal; text-align: center; }
html #root :is(.bundle-grand,.planner-summary) {
  border: 1px solid var(--selected-outline,#edb7aa); border-radius: 16px;
  background: var(--selected-surface,#fff0eb); padding: 18px;
}
html #root :is(.notice,.application-status) { padding: 14px 16px; line-height: 1.7; }
html #root :is(.market-tabs,.filter-strip) { gap: 8px; }
html #root :is(.market-tabs button,.filter-strip button,.studio-switch button) { min-height: 44px; }
html #root .market-tabs button { padding: 12px 16px; }
html #root .empty { padding: 40px 24px; border-radius: 20px; background: var(--ui-canvas); }
html #root :is(.flow-event,.flow-order,.flow-summary,.expert-event-booking,.expert-empty) {
  border-radius: 20px; border-color: var(--ui-line); box-shadow: var(--ui-shadow);
}
html #root :is(.flow-event,.flow-order,.expert-event-booking) { padding: 22px; gap: 14px; }
html #root :is(.flow-tabs,.expert-booking-stats) { gap: 10px; }
html #root :is(.flow-tabs button,.expert-guide-options .btn) { min-height: 48px; }
html #root :is(.flow-summary strong,.expert-booking-total) { font-size: 22px; line-height: 1.5; }
html #root :is(.flow-steps,.expert-bundle-guide) { border-radius: 18px; padding: 18px; }
html #root .expert-booking-service { padding-block: 14px; }
/* Dialogs and every step of the event planner share the same hierarchy. */
html #root .dialog,body .reviews-sheet { box-shadow: 0 24px 80px #15243a2b; }
html #root .planner-head { padding: 26px 28px 20px; }
html #root .planner-head h2 { font-size: clamp(25px,3vw,32px); line-height: 1.3; }
html #root .planner-progress { margin-top: 20px; gap: 12px; }
html #root .planner-progress button { font-size: 12px; gap: 8px; color: var(--ui-muted); }
html #root .planner-progress button:disabled { color: #697487; opacity: 1; }
html #root .planner-progress button[aria-current=step] { color: var(--accent); }
html #root .planner-progress .filled { border-color: var(--action-primary); color: var(--on-action,#fff); }
html #root .planner-progress button span { width: 28px; height: 28px; flex-shrink: 0; }
html #root .planner-content { padding: 24px 28px; }
html #root .planner-content>label { margin-bottom: 10px; }
html #root .planner-label { margin: 24px 0 14px; font-size: 15px; }
html #root .occasion-options { gap: 10px; }
html #root .occasion-options button { min-height: 100px; padding: 14px 7px; gap: 10px; font-size: 12px; border-radius: 16px; }
html #root .occasion-options .chosen { box-shadow: inset 0 0 0 1px var(--action-primary); }
html #root .planner-calendar { border-radius: 20px; padding: 14px 10px; border-color: var(--ui-line); }
html #root .month-controls { gap: 6px; margin-bottom: 14px; }
html #root .month-controls select { font-size: 16px; border: 0; border-radius: 10px; background-color: transparent; }
html #root .month-controls .icon-btn { min-width: 44px; min-height: 44px; }
html #root .planner-calendar .weekday { font-size: 12px; color: var(--ui-muted); padding-block: 6px; }
html #root .planner-calendar .calendar-grid { gap: 3px; }
html #root .planner-calendar .calendar-grid button { min-height: 44px; font-size: 15px; border-radius: 12px; }
html #root .planner-calendar .calendar-grid button:disabled { color: #697487; opacity: 1; font-weight: 500!important; }
html #root .planner-calendar .calendar-grid button.selected { box-shadow: 0 4px 10px -5px var(--action-primary); }
html #root .quick-days { gap: 10px; margin: 16px 0; flex-wrap: wrap; }
html #root .quick-days button { min-height: 44px; padding: 8px 16px; font-size: 13px; background: var(--surface); }
html #root .planner-time { gap: 12px; border: 1px solid var(--ui-line); border-radius: 16px; padding: 12px; }
html #root .planner-time label { margin: 0; font-size: 14px; }
html #root .planner-time input { font-weight: 500; border-radius: 12px; }
html #root .planner-footer { padding: 16px 28px max(18px,env(safe-area-inset-bottom)); gap: 14px; }
html #root .planner-footer small { font-size: 12px; line-height: 1.5; color: var(--ui-muted); }
html[lang=ar] #root .planner-footer small { font-size: 15px; line-height: 1.7; }
html #root .planner-footer .btn { min-height: 52px; font-size: 16px; }
html #root .selected-date { line-height: 1.6; padding: 8px 0; }
html #root .close { width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
/* Keep standalone offer, download and return pages in the same visual family. */
body:not(:has(#root)) { color: var(--ui-ink); line-height: 1.7; }
body:not(:has(#root)) h1 { line-height: 1.35; text-wrap: balance; }
body:not(:has(#root)) :is(button,input,select,textarea) { font: inherit; }
body:not(:has(#root)) :is(button,a):focus-visible { outline: 3px solid #3057c0; outline-offset: 4px; }
@media (hover: hover) {
  html #root .btn:not(:disabled):hover { filter: brightness(.96); }
  html #root .occasion-options button:not(.chosen):hover { border-color: #aab6c7; background: #fafbfe; }
}
@media (max-width:720px) {
  html #root :is(.section-heading,.market-heading,.profile-heading) { margin-bottom: 20px; gap: 14px; }
  html #root :is(.planner-head,.planner-content) { padding: 20px; }
  html #root .planner-head h2 { font-size: 26px; }
  html #root .planner-progress { gap: 6px; margin-top: 18px; }
  html #root .planner-progress button { font-size: 11px; gap: 6px; }
  html #root .occasion-options button { min-height: 94px; padding: 12px 5px; }
  html #root .planner-footer { padding-inline: 20px; }
  html #root :is(.saved,.document-upload) { padding: 16px; }
  html #root .market-tabs button { padding-inline: 12px; }
}
@media (max-width:360px) {
  html #root :is(.section-heading,.market-heading) { grid-template-columns: minmax(0,1fr); }
  html #root .market-heading { flex-wrap: wrap; }
  html #root .section-heading>.text-link { justify-self: start; }
  html #root :is(.flow-event,.flow-order,.expert-event-booking) { padding: 16px; }
  html #root .planner-progress button { font-size: 10px; gap: 4px; }
  html #root .planner-progress button span { width: 24px; height: 24px; }
  html #root .planner-time { flex-wrap: wrap; }
  html #root .planner-time input { flex: 1 1 100%; width: 100%; max-width: 100%; }
  html #root .month-controls { gap: 2px; }
  html #root .month-controls select { padding-inline: 2px; font-size: 14px; }
}
@media (max-height:680px) {
  html #root .planner-head { padding-block: 14px; }
  html #root .planner-progress { margin-top: 10px; }
  html #root .planner-content { padding-block: 16px; }
}
@media (prefers-reduced-motion:reduce) {
  html #root *,body .reviews-sheet * { scroll-behavior: auto!important; transition: none!important; animation: none!important; }
}
html #root .btn:not(:disabled):active { filter: brightness(.9); }
@media (forced-colors:active) {
  html #root :is(.chosen,[aria-pressed=true]) { outline: 2px solid Highlight; outline-offset: 2px; }
}
