/* Polina's 12 October references: shared UI colours and fonts, existing geometry. */
:root,body,body[class],.studio-design-dialog{
  --povod-ui-bg:#f8f7f4;
  --povod-choice-paper:#f3e9e0;
  --povod-ui-paper:linear-gradient(145deg,#fffffff0,#faf8f5c9);
  --povod-ui-field:linear-gradient(145deg,#ffffffd9,#faf8f4b3);
  --povod-ui-ink:#665e57;
  --povod-ui-heading:#856e60;
  --povod-ui-muted:#827a74;
  --povod-ui-accent:#987260;
  --povod-ui-edge:#dfd3ca;
  --povod-ui-field-shadow:inset 0 1px 3px #9872600a,inset 0 1px 0 #ffffffcc;
  --bg:var(--povod-ui-bg);--bg-soft:#f5f1eb;--surface:#fffdfb;--surface-warm:#faf7f2;
  --surface-solid:#fffdfb;--card-soft:#f7f2ec;--milk:var(--povod-ui-bg);
  --text:var(--povod-ui-ink);--text-dark:#775e4f;--text-strong:#775e4f;--ink:var(--povod-ui-ink);
  --muted:var(--povod-ui-muted);--muted-light:#968c83;--border:var(--povod-ui-edge);--line:var(--povod-ui-edge);
  --ui-line:var(--povod-ui-edge);--ui-paper:#fffdfb;--ui-muted:var(--povod-ui-muted);
  --studio-font:Onest,system-ui,sans-serif;--povod-control-font:Onest,system-ui,sans-serif;
  --studio-ink:var(--povod-ui-ink);--studio-muted:var(--povod-ui-muted);--studio-line:var(--povod-ui-edge);
  --studio-glass:var(--povod-ui-field);--studio-shadow:var(--povod-ui-field-shadow);
  --povod-control-ink:var(--povod-ui-ink);--povod-control-line:var(--povod-ui-edge);--povod-control-gray:#f4f0eb;
  --povod-secondary-ink:var(--povod-ui-accent);--povod-secondary-edge:var(--povod-ui-edge);
  --povod-secondary-shadow:inset 0 1px 0 #ffffffd9,0 2px 7px #98726007;
  --povod-notice-ink:var(--povod-ui-ink);--povod-notice-muted:var(--povod-ui-muted);
  --povod-menu-paper:linear-gradient(145deg,#ffffffb8,#faf7f294);--povod-menu-edge:#ffffffd9;
  --povod-highlight-edge:#dbb5a2;--povod-highlight-focus:#ad7b63;--povod-highlight-glow:#f47b5c17;
  --povod-highlight-shadow:inset 0 1px 0 #ffffffe6,0 0 0 2px var(--povod-highlight-glow),0 2px 8px #9872600a;
  --povod-highlight-inset:inset 0 0 0 1px #dbb5a299,inset 0 0 6px #f47b5c12;
}
body,body:is(.theme-blue,.theme-beige,.theme-neutral,.theme-green){background:var(--povod-ui-bg);color:var(--povod-ui-ink);font-family:Onest,system-ui,sans-serif;}
/* These selectors target the interface, leaving invitation art and font specimens intact. */
body :is(input,textarea,select,button,label,.btn,.field-hint,.muted,.tag,.studio-save-status,.studio-font-name,.studio-font-option-name):not(.studio-invitation *):not(.sfc-stage *):not(.studio-font-option):not(.studio-font-current):not(.studio-font-preview){font-family:Onest,system-ui,sans-serif;}
body :is(.studio-fields,.gift-composer,.account-section,.guest-response,.modal-card) :is(input,textarea,select):not([type=hidden],[type=file],[type=range],[type=checkbox],[type=radio]),
body :is(.studio-published-link input,.studio-gift-fields input,.studio-gift-fields textarea,.povod-glass-select-button,.studio-date-field){background:var(--povod-ui-field)!important;border-color:var(--povod-ui-edge)!important;box-shadow:var(--povod-ui-field-shadow);color:var(--povod-ui-ink)!important;font-family:Onest,system-ui,sans-serif!important;}
body :is(.studio-fields,.gift-composer,.account-section,.guest-response) :is(label,.field-hint),
body :is(.studio-save-status,.studio-field-label,.gift-composer-status,.account-heading p,.account-bot p,.account-empty,.site-heading p,.info-section p,.footer,.dashboard-welcome>p,.dashboard-archive-note){color:var(--povod-ui-muted)!important;font-family:Onest,system-ui,sans-serif;}
body :is(input,textarea)::placeholder{color:#968c83!important;font-style:normal;font-weight:400;}
body :is(.studio-journey,.studio-tools,.dashboard-tabs) button{color:var(--povod-ui-muted)!important;font-family:Onest,system-ui,sans-serif;}
body :is(.studio-journey button[aria-current],.studio-tools button[aria-pressed=true],.dashboard-tabs button[aria-pressed=true]){color:var(--povod-ui-accent)!important;}
body .studio-journey{border-bottom-color:var(--povod-ui-edge);}
body .studio-journey button[aria-current]{border-bottom-color:#f47b5c;}
/* Compact step captions keep the existing 44px touch targets. */
body :is(#editorView,#publicView) .studio-journey button{font-size:9px!important;}
/* A free gift uses the main coral action even in the read-only review. */
body :is(#publicView,#editorView,.invitation-preview) .studio-guest-paper .gift-card:not(.reserved) .gift-actions .gift-reserve-action:not(.gift-cancel-action),
body #editorView .studio-wishlist-card:not(.is-reserved) .povod-owner-gift-actions>.gift-reserve-action:not(.gift-cancel-action){color:#694c3d!important;}
body :is(#publicView,#editorView,.invitation-preview) .studio-guest-paper .gift-card:not(.reserved) .gift-actions .gift-reserve-action:not(.gift-cancel-action)::before,
body #editorView .studio-wishlist-card:not(.is-reserved) .povod-owner-gift-actions>.gift-reserve-action:not(.gift-cancel-action)::before{
  background-color:#f47b5c;background-image:linear-gradient(180deg,#ffffff26,transparent 48%,#873d2510);border-color:#f47b5c;
}
@media(hover:hover){
  body :is(#publicView,#editorView,.invitation-preview) .studio-guest-paper .gift-card:not(.reserved) .gift-actions .gift-reserve-action:not(:disabled):not(.gift-cancel-action):hover::before,
  body #editorView .studio-wishlist-card:not(.is-reserved) .povod-owner-gift-actions>.gift-reserve-action:not(:disabled):not(.gift-cancel-action):hover::before{background-color:#e6684a;}
}
body :is(.studio-tools,.povod-navigation,.povod-glass-options){color:var(--povod-ui-ink);}
body :is(.event-menu-list,.studio-wishlist-menu-panel,.povod-navigation,.povod-glass-options) :is(button,a){color:var(--povod-ui-ink);}
body :is(.account-heading h2,.site-heading h1,.archive-event h1,.editor-title-pill h1,#authView h2,#loginView h2){font-family:'Cormorant Garamond',Georgia,serif;color:var(--povod-ui-heading);}
body :is(.dashboard-heading h2,.studio-group-title,.studio-fields h3,.studio-wishlist h3,.gift-form-heading h3,.account-section h3,.info-section h2,.povod-final-overview h3){color:var(--povod-ui-heading);}
body :is(.studio-wishlist-title,.studio-wishlist-price,.gift-admin-card b,.gift-title,.gift-price,.pro-price,.povod-pro-packs strong,.document-list strong){color:var(--povod-ui-ink);}
body :is(.gift-composer-data,.studio-wishlist-card,.gift-admin-card,.account-booking,.archive-records,.site-page,.pro-plan){border-color:var(--povod-ui-edge);}
body .gift-composer-data{background:var(--povod-ui-paper);box-shadow:inset 0 1px 0 #ffffffe6,0 5px 14px #98726006;}
body .gift-composer[data-phase=done][data-loading=false] .gift-composer-data{background:var(--povod-ui-paper);border-color:var(--povod-ui-edge);}
body .gift-composer-notice[data-phase=done]{background:linear-gradient(145deg,#fffdfba3,#f6f0e978);border-color:#ddcabc99;}
body .gift-composer-notice[data-phase=done] .gift-composer-status-mark{background:#f7ede3;color:var(--povod-ui-accent);}
body .gift-composer-mode{position:relative;isolation:isolate;padding-inline:12px;color:var(--povod-ui-accent);background:transparent;border:0;box-shadow:none;}
body .gift-composer-mode::before{content:'';position:absolute;inset:7px 0;z-index:-1;pointer-events:none;border:1px solid var(--povod-ui-edge);border-radius:999px;background:var(--povod-ui-field);box-shadow:inset 0 1px 0 #ffffffed,0 2px 5px #98726006;}
body .gift-composer-mode:hover::before{border-color:#cdb5a6;background:#fffdf9;}
body :is(.btn-primary,.btn-accent,.povod-pro-action,.welcome-start,.telegram-welcome-start):not(:disabled){color:#694c3d!important;}
body .topbar,body :is(.studio-head,.editor-title-pill,.povod-preview-heading){color:var(--povod-ui-heading);}
body #dashboardView .dashboard-heading,body #dashboardView .dashboard-heading::before,
body #publicView .povod-preview-heading,body #publicView .povod-preview-heading::before{background:var(--povod-ui-bg);}
body :is(.povod-legal-dialog,.povod-support,.povod-notice,.povod-guest-update) a{color:var(--povod-ui-accent);}
body :is(.studio-section-title,.studio-wishlist-intro h2,.povod-final-heading h2){color:var(--povod-ui-heading);}
body #editorView .studio-gallery .studio-design{background:var(--povod-ui-paper);border-color:var(--povod-ui-edge);}
body .studio-switch::after,body #editorView.active .studio-shell[data-step] .studio-switch::after{background:#f47b5c!important;}
body .studio-switch::before,body #editorView.active .studio-shell[data-step] .studio-switch::before{background:var(--povod-choice-paper)!important;box-shadow:inset 0 1px 0 #ffffffb3,0 1px 3px #98726017;}
body .studio-switch button,body #editorView.active .studio-shell[data-step] .studio-switch button{color:var(--povod-ui-accent)!important;}
body #editorView .studio-wishes-group{display:grid;gap:4px;}
body #editorView .studio-wishes-group>label{margin:0;}
body #editorView.active .studio-shell[data-step][data-tool] .studio-fields [data-studio-tool=details] .studio-wish-suggestions{gap:2px 4px;margin:0;}
body #editorView.active .studio-shell[data-step][data-tool] .studio-fields [data-studio-tool=details] .studio-wish-suggestions :is(button,.studio-wish-variant){width:100%;max-width:none;height:44px;min-height:44px;margin:0;padding:4px;font:400 11px/1.2 Onest,system-ui,sans-serif;color:var(--povod-ui-accent)!important;white-space:normal;}
body #editorView.active .studio-shell[data-step][data-tool] .studio-fields [data-studio-tool=details] .studio-wish-suggestions :is(button,.studio-wish-variant)::before{inset:6px 0;background:var(--povod-choice-paper)!important;}
body #editorView.active .studio-shell[data-step] :is(.studio-design-upload,.studio-wishlist-add,.studio-wishlist-ghost){background:var(--povod-ui-paper)!important;border-color:var(--povod-ui-edge)!important;box-shadow:inset 0 1px 1px #ffffffe6,inset 0 -1px 0 #ffffff66,0 3px 9px #98726008;}
body #editorView.active .studio-shell[data-step] :is(.studio-design-upload small,.studio-wishlist-add-title,.studio-collection button,.studio-design>span){color:var(--povod-ui-accent);}
body #editorView.active .studio-shell[data-step] .studio-wishlist-add-hint{color:var(--povod-ui-muted);}
/* The same gift appears in personal lists, the import picker, the invitation
   editor, review, sending and the guest view. Keep its resting style shared. */
body #editorView.active .studio-shell[data-step] .studio-wishlist-card:not(.is-reserved),
body .wish-dialog .studio-wishlist-card,
body :is(#publicView,#editorView,.invitation-preview) .studio-guest-paper .gift-card:not(.reserved){background:var(--povod-ui-paper)!important;border-color:var(--povod-ui-edge)!important;box-shadow:inset 0 1px 0 #ffffffd9;}
body #editorView .studio-shell .studio-wishlist-copy h3,
body .wish-dialog .studio-wishlist-copy h3,
body :is(#publicView,#editorView,.invitation-preview) .studio-guest-paper .gift-body h3{font-weight:400;color:var(--povod-ui-ink);}
body #editorView .studio-shell .studio-wishlist-copy p,
body .wish-dialog .studio-wishlist-copy p,
body :is(#publicView,#editorView,.invitation-preview) .studio-guest-paper .gift-meta{color:var(--povod-ui-heading);}
body #editorView .studio-wishlist-sketch>svg{stroke:#a18b7d;}
body .status-pill.draft{--povod-status-paper:linear-gradient(140deg,#ffffff4d,#fff5ec26);background:var(--povod-status-paper)!important;border-color:transparent!important;box-shadow:inset 0 1px 0 #ffffff99!important;backdrop-filter:blur(8px) saturate(1.08);-webkit-backdrop-filter:blur(8px) saturate(1.08);}
body :is(.studio-muted,.studio-wishlist-intro p,.povod-guests-note,.povod-final-fold-note,.povod-final-fold-copy small,.povod-owner-guests>p,.povod-owner-guests small,.povod-guest-answers p,.povod-guests-totals span,.povod-final-hint,.account-section-head span,.povod-support-hint,.povod-pro-dialog p,.povod-pro-dialog small){color:var(--povod-ui-muted);}
body :is(.povod-guests-totals b,.povod-final-totals b,.povod-final-expand,.povod-final-fold-copy>span,.povod-guest-answers b,.povod-pro-dialog h2,.povod-pro-dialog h3){color:var(--povod-ui-heading);}
body :is(.povod-final-fold,.povod-guests-totals>div,.povod-guest-answers article,.povod-pro-packs button){border-color:var(--povod-ui-edge);}
@media(prefers-reduced-transparency:reduce){body .gift-composer-data{background:#fffdfb;}body .gift-composer-mode::before{background:#fffdf9;}}
@media(forced-colors:active){body{background:Canvas;color:CanvasText;}body .gift-composer-mode::before{border-color:ButtonText;background:ButtonFace;box-shadow:none;}body .gift-composer-mode{color:ButtonText;}}
