/* GPT_PETAL_V2 — opt-in palette and presentation. Schedule deliberately excluded. */
html[data-skin="petal"] {
  --petal-bg:#f5efdb; --petal-chat:#f2dfdf; --petal-paper:#fbf6ea;
  --petal-panel:#fffaf5; --petal-ink:#493a38; --petal-muted:#776160;
  --petal-pink:#edbbcf; --petal-accent:#d89ab5; --petal-edge:#e7d8d4;
  --petal-ai:#fbf6ea; --petal-ai-ink:#493a38; --petal-dock:70px;
  --petal-bottom:max(2px,calc(env(safe-area-inset-bottom) - 8px));
  --petal-glass:rgba(251,246,222,.8);
  --petal-serif:'Cormorant Garamond','Noto Serif SC','Songti SC','STSong',Georgia,serif;
}
html[data-skin="petal"][data-petal-tone="dark"] {
  --petal-bg:#242123; --petal-chat:#262326; --petal-paper:#303030;
  --petal-panel:#242224; --petal-ink:#f4e2dd; --petal-muted:#c7afb9;
  --petal-pink:#e8b8c5; --petal-accent:#db7191; --petal-edge:#514349;
  --petal-glass:rgba(57,49,51,.82); --petal-ai:#efefef; --petal-ai-ink:#282326;
}
html[data-skin="petal"] :is(#home,#chat,#drawer,#petalDock,#petalAdd,#modelSheet,#picSheet,#thoughtSheet,#bellSheet,#ckSheet,#usgSheet,.petal-surface) {
  --bg-primary:var(--petal-bg); --bg-surface:var(--petal-paper); --bg-sunken:var(--petal-chat);
  --text-primary:var(--petal-ink); --text-secondary:var(--petal-muted); --text-faint:var(--petal-muted);
  --accent:var(--petal-accent); --accent-hover:var(--petal-muted); --border:var(--petal-edge);
  --claude-sidebar-bg:var(--petal-paper); --claude-text-primary:var(--petal-ink);
  --claude-text-secondary:var(--petal-muted); --claude-text-muted:var(--petal-muted);
  --claude-recents-label-color:var(--petal-muted); --claude-recents-text-color:var(--petal-ink);
  --claude-selected-bg:var(--petal-chat); --claude-new-chat-bg:var(--petal-pink); --claude-new-chat-text:#493a38;
  color:var(--petal-ink);
}
html[data-skin="petal"] #home {background:var(--petal-bg)!important}
html[data-skin="petal"] #home .home-inner {padding-bottom:calc(100px + env(safe-area-inset-bottom));gap:16px}
.petal-home-heading {display:none}
html[data-skin="petal"] .petal-home-heading {display:block;margin:0 4px 10px}
html[data-skin="petal"] .petal-home-heading div {text-transform:uppercase;letter-spacing:.18em;font-size:10px;color:var(--petal-muted)}
html[data-skin="petal"] .petal-home-heading h1 {font:400 34px/1.15 var(--petal-serif);letter-spacing:-.03em;margin:10px 0 0}
html[data-skin="petal"] #home .home-panel {padding:24px}
html[data-skin="petal"] #home :is(.home-welcome,.home-since,.home-quote-text,.home-quote-author) {text-align:left}
html[data-skin="petal"] #home .home-counter {justify-content:flex-start}
html[data-skin="petal"] #home :is(.home-panel,.home-grid-card) {background:var(--petal-paper)!important;border:1px solid var(--petal-edge);box-shadow:0 6px 22px #493a3808;border-radius:26px;color:var(--petal-ink)}
html[data-skin="petal"] #home .home-panel:nth-child(2) {background:var(--petal-chat)!important}
html[data-skin="petal"] #home :is(.card-heart,.home-chat-card,[data-page="trace"],[data-page="memory"],[data-page="settings"]) {display:none!important}
html[data-skin="petal"] #home .home-grid {gap:12px}
html[data-skin="petal"] #home .home-grid-card {min-height:124px;padding:20px}
html[data-skin="petal"] #home .home-grid-card:nth-child(3n+2) {background:var(--petal-chat)!important}
html[data-skin="petal"] #home :is(.home-grid-sub,.home-grid-icon,.home-rule,.home-since,.home-quote-author) {color:var(--petal-muted)!important}
html[data-skin="petal"] #home .home-counter {background:none!important;box-shadow:none!important}
html[data-skin="petal"] #chatBg {background:var(--petal-chat)!important}
html[data-skin="petal"] #chat {background:transparent}
html[data-skin="petal"] #chat .topbar {display:flex;gap:5px;align-items:center;padding:max(0px,calc(env(safe-area-inset-top) - 8px)) 12px 0;height:calc(50px + env(safe-area-inset-top));background:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;mask-image:none!important;-webkit-mask-image:none!important;border:0;box-shadow:none}
html[data-skin="petal"] #chat .topbar::before,html[data-skin="petal"] #chat .topbar::after {display:none!important}
html[data-skin="petal"] #chat .topbar-center {flex:0 1 auto;min-width:0;gap:0;background:var(--petal-glass);backdrop-filter:blur(22px) saturate(1.1);-webkit-backdrop-filter:blur(22px) saturate(1.1);border:1px solid var(--petal-edge);border-radius:18px;padding:4px 12px;box-shadow:0 3px 10px #493a3809}
html[data-skin="petal"] #chat .topbar-name {font-size:14px;line-height:20px;color:var(--petal-ink)}
html[data-skin="petal"] #topbarStatus {display:none}
html[data-skin="petal"] #chat .topbar-right-group {margin-left:auto;gap:4px}
html[data-skin="petal"] #chat :is(.topbar-hamburger,.topbar-icon-btn) {position:relative;width:40px;height:40px;min-width:40px;flex:none;background:none!important;box-shadow:none;border:0;color:var(--petal-muted);isolation:isolate}
html[data-skin="petal"] #chat :is(.topbar-hamburger,.topbar-icon-btn)::before {content:'';position:absolute;inset:3px;background:var(--petal-glass);backdrop-filter:blur(22px) saturate(1.1);-webkit-backdrop-filter:blur(22px) saturate(1.1);border:1px solid var(--petal-edge);border-radius:50%;z-index:-1;box-shadow:0 3px 10px #493a3809}
html[data-skin="petal"] #chat :is(.topbar-hamburger,.topbar-icon-btn) svg {width:17px;height:17px;stroke-width:1.5}
html[data-skin="petal"] #ctxMeter {accent-color:var(--petal-accent)}
html[data-skin="petal"] #stream {margin:calc(54px + env(safe-area-inset-top)) 12px calc(var(--petal-composer-height,112px) + var(--petal-dock) + var(--petal-bottom));padding:18px 12px 24px!important;border-radius:32px;background:var(--petal-panel);box-shadow:0 8px 22px #493a3808;transition:margin .28s ease,border-radius .28s ease}
html[data-skin="petal"] #stream .stream-inner {min-height:0!important;padding-bottom:0}
html[data-skin="petal"][data-chat-own] #stream {background-image:var(--chat-own-wallpaper)!important;background-size:cover;background-position:center;background-repeat:no-repeat}
html[data-skin="petal"] #chat .composer-wrap {background:none!important;padding:0 12px calc(var(--petal-dock) + var(--petal-bottom));}
html[data-skin="petal"] #chat .composer-box {background:var(--petal-paper)!important;border:1px solid var(--petal-edge)!important;border-radius:25px!important;padding:4px 14px 2px;box-shadow:0 5px 18px #493a3810!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
html[data-skin="petal"] #chat :is(#input,.composer-tools,#modelCapsuleButton) {color:var(--petal-ink)}
html[data-skin="petal"] #chat #input::placeholder {color:var(--petal-muted)}
html[data-skin="petal"] #chat :is(#fileAttachBtn,#bellBtn) {display:none!important}
html[data-skin="petal"] #chat .composer-tool-btn {min-width:40px;min-height:40px;color:var(--petal-muted)}
html[data-skin="petal"] #chat #modelCapsuleButton {opacity:1;min-height:40px;min-width:0;overflow:hidden;font-size:12px}
html[data-skin="petal"] #modelCapsuleText {overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html[data-skin="petal"] #jumpLatest {bottom:calc(var(--petal-composer-height,112px) + var(--petal-dock) + var(--petal-bottom) + 12px)}
/* Preserve native split-bubble DOM, widths, gap and timestamp order. Only the md paints a bubble. */
html[data-skin="petal"] #streamInner .msg-body {max-width:80%}
html[data-skin="petal"] #streamInner :is(.bubble,.md) {font-family:var(--font-sans)!important;font-size:16px!important;line-height:1.55!important;border-radius:22px!important;padding:4px 15px!important;min-height:0!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;box-shadow:none!important;border:0!important}
html[data-skin="petal"] #streamInner .bubble {background:var(--petal-pink)!important;color:#493a38!important}
html[data-skin="petal"] #streamInner .msg-claude .md {background:var(--petal-ai)!important;color:var(--petal-ai-ink)!important;align-self:flex-start;margin-top:0!important}
html[data-skin="petal"] #streamInner .ai-bubble {padding:0!important;min-height:0!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow:visible;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
html[data-skin="petal"] #streamInner .ai-bubble > .thinking-summary {font:italic 400 13px/1.4 var(--petal-serif)!important;color:var(--petal-muted)!important;min-height:40px;gap:7px;max-width:100%;padding:0!important;margin:0 0 8px!important;opacity:1!important}
html[data-skin="petal"] #streamInner .thinking-summary-text {font:inherit!important;color:inherit!important}
html[data-skin="petal"] #streamInner .thinking-chevron {width:13px;height:13px;transition:transform .2s}
html[data-skin="petal"] #streamInner .thinking-summary[aria-expanded="true"] .thinking-chevron {transform:rotate(90deg)}
html[data-skin="petal"] .petal-inline-thought {white-space:pre-wrap;overflow-wrap:anywhere;font:14px/1.8 var(--petal-serif);color:var(--petal-muted);padding:0 4px 16px 21px}
html[data-skin="petal"] #streamInner .msg-time {font:italic 400 13.5px/1 var(--petal-serif)!important;letter-spacing:.06em;color:var(--petal-muted)!important;opacity:1!important;text-shadow:none;margin-top:8px}
html[data-skin="petal"] #streamInner .md:empty {display:none!important}
html[data-skin="petal"] #streamInner .md p {margin:0}
html[data-skin="petal"] #streamInner .md p+p {margin-top:1em}
html[data-skin="petal"][data-petal-layout="classic"] #stream {margin:0;border-radius:0;padding:calc(54px + env(safe-area-inset-top)) 16px calc(var(--petal-composer-height,112px) + env(safe-area-inset-bottom) + 16px)!important;box-shadow:none}
html[data-skin="petal"][data-petal-layout="classic"] #chat .composer-wrap {padding-bottom:var(--petal-bottom)}
html[data-skin="petal"][data-petal-layout="classic"] #jumpLatest {bottom:calc(var(--petal-composer-height,112px) + env(safe-area-inset-bottom) + 18px)}
html[data-skin="petal"].kb-open #chat .composer-wrap {padding-bottom:2px}
html[data-skin="petal"].kb-open:not([data-petal-layout="classic"]) #stream {margin-bottom:calc(var(--petal-composer-height,112px) + 8px)}
html[data-skin="petal"].kb-open #jumpLatest {bottom:calc(var(--petal-composer-height,112px) + 12px)}
/* Real native panels: palette only, no typography or structure changes. */
html[data-skin="petal"] .petal-surface {background:var(--petal-bg)!important;color:var(--petal-ink)!important}
html[data-skin="petal"] .petal-surface :is(.settings-card,.profile-card,.profile-nav-row,.profile-memory-card,.profile-preferences-card,.wnd-card,.wnd-tabs,.tn-row,.lt-env,.kp-card,.mm-card:not(.has-bg),.nt-card,.pulse-now-box) {background:var(--petal-paper)!important;color:var(--petal-ink)!important;border-color:var(--petal-edge)!important}
html[data-skin="petal"] .petal-surface :is(.settings-title,.settings-row-title,.profile-title,.profile-name-input,.profile-memory-textarea,.profile-preferences-textarea,.profile-nav-row-title,.wnd-title,.kp-title,.ks-title) {color:var(--petal-ink)!important}
html[data-skin="petal"] .petal-surface :is(.settings-section-title,.settings-row-desc,.profile-subtitle,.profile-help-text,.profile-section-title,.profile-nav-row-note,.wnd-sub) {color:var(--petal-muted)!important}
html[data-skin="petal"] .petal-surface :is(.settings-row-icon,.profile-mini-button,.profile-round-button,.profile-back-button,.profile-save-button) {background:var(--petal-chat)!important;color:var(--petal-ink)!important}
html[data-skin="petal"] .petal-surface :is(.mem-tabs,.mem-tab,.ob-nav-item,.ob-card,.ob-search-bubble,.ob-filter-pill,.ob-detail-sheet,.wnd-here,.settings-back) {background:var(--petal-paper)!important;color:var(--petal-ink)!important;border-color:var(--petal-edge)!important}
html[data-skin="petal"] #memoryPanel :is(.mem-tab.active,.ob-nav-item.active,.ob-filter-pill.active) {background:var(--petal-pink)!important;color:#493a38!important}
html[data-skin="petal"] #memoryPanel :is(.ob-search-input,.ob-card-name,.ob-detail-content) {color:var(--petal-ink)!important}
html[data-skin="petal"] #memoryPanel :is(.ob-status-text,.ob-empty,.ob-loading,.ob-card-preview,.ob-card-meta,.ob-nav-item small,.ob-search-icon) {color:var(--petal-muted)!important}
html[data-skin="petal"] #memoryPanel .ob-nav-item.active small {color:#493a38!important}
html[data-skin="petal"] #memoryPanel .ob-search-input::placeholder {color:var(--petal-muted)!important}
html[data-skin="petal"] .petal-surface .wnd-dot {background:var(--petal-accent);box-shadow:none}
html[data-skin="petal"] #tracePanel .trs-stat {background:var(--petal-paper)!important;border-color:var(--petal-edge)!important}
html[data-skin="petal"] #tracePanel .trs-stat-n {color:var(--petal-accent)!important}
html[data-skin="petal"] #tracePanel .trs-stat-k {color:var(--petal-muted)!important}
html[data-skin="petal"] :is(#settingsRoot,#tracePanel .wnd-scroll,#memoryPanel .profile-page) {padding-bottom:calc(100px + env(safe-area-inset-bottom))}
html[data-skin="petal"] #drawer {background:var(--petal-paper)!important}
html[data-skin="petal"] :is(#modelSheet,#picSheet,#thoughtSheet,#bellSheet,#ckSheet,.usg-sheet-box) {background:var(--petal-paper)!important;color:var(--petal-ink)!important;border-color:var(--petal-edge)!important}
html[data-skin="petal"] #thoughtContent {color:var(--petal-ink)}
html[data-skin="petal"] :is(#modelSheet,#picSheet,#thoughtSheet,#bellSheet,#ckSheet) .sheet-title {color:var(--petal-ink)!important}
html[data-skin="petal"] :is(#modelSheet,#picSheet,#thoughtSheet,#bellSheet,#ckSheet) .icon-button {background:var(--petal-chat)!important;color:var(--petal-ink)!important;min-width:40px;min-height:40px}
/* Dock uses actual route buttons; absent outside this theme and in full-screen subpages. */
#petalDock,#petalAdd,.petal-inline-thought {display:none}
html[data-skin="petal"] .petal-inline-thought:not([hidden]) {display:block}
html[data-skin="petal"] #petalDock:not([hidden]) {position:fixed;z-index:90;bottom:var(--petal-bottom);left:50%;transform:translateX(-50%);width:calc(100% - 24px);max-width:440px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:5px;background:var(--petal-paper);border:1px solid var(--petal-edge);border-radius:32px;box-shadow:0 7px 20px #493a3810}
html[data-skin="petal"] #petalDock button {height:56px;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font:11px var(--font-sans);color:var(--petal-muted);border-radius:26px}
html[data-skin="petal"] #petalDock button[aria-current="page"] {background:var(--petal-chat);color:var(--petal-ink)}
html[data-skin="petal"] #petalDock svg {width:20px;height:20px}
html[data-skin="petal"] #petalAdd[open] {display:block;position:fixed;inset:auto 0 0;margin:0 auto;width:min(100%,480px);max-width:100%;max-height:85dvh;overflow:auto;padding:0 22px calc(24px + env(safe-area-inset-bottom));border:1px solid var(--petal-edge);border-bottom:0;border-radius:32px 32px 0 0;background:var(--petal-panel);color:var(--petal-ink);box-shadow:0 -8px 38px #493a3815}
html[data-skin="petal"] #petalAdd::backdrop {background:#29202544;backdrop-filter:blur(5px)}
html[data-skin="petal"] #petalAdd .petal-handle {display:block;width:100%;height:32px;touch-action:none;cursor:grab}
.petal-handle::after {content:'';display:block;width:36px;height:4px;border-radius:4px;margin:auto;background:var(--petal-muted);opacity:.3}
.petal-add-head {display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;font-size:15px}
.petal-add-head button {width:40px;height:40px;font-size:24px}
.petal-add-row {width:100%;display:flex;align-items:center;gap:14px;min-height:52px;text-align:left;font-size:14px;border-bottom:1px solid var(--petal-edge)}
.petal-add-row svg {width:19px;height:19px;flex:none;color:var(--petal-muted)}
.petal-add-row small {margin-left:auto;color:var(--petal-muted)}
.petal-model-label {font-size:11px;letter-spacing:.12em;color:var(--petal-muted);margin:16px 0 10px}
.petal-model-rail {display:flex;gap:5px;padding:5px;background:var(--petal-chat);border-radius:18px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;touch-action:pan-x;cursor:grab}
.petal-model-rail button {flex:0 0 90px;min-height:68px;padding:10px;font-size:13px;border-radius:14px;color:var(--petal-ink)}
.petal-model-rail button[aria-pressed="true"] {background:var(--petal-paper);box-shadow:0 2px 8px #493a3809}
.petal-effort button {flex:1 0 65px;min-height:48px;padding:8px 5px}
.petal-model-note {font-size:12px;line-height:1.6;color:var(--petal-muted);margin:14px 0}
@media(prefers-reduced-motion:reduce) {html[data-skin="petal"] #stream {transition:none}}

/* GPT_PETAL_V2 — neutralize native dark ink/cards locally, including generated Settings rows.
   Do not change data-theme/data-chat-bg: other themes, saved color mode and Schedule retain their state. */
html[data-skin="petal"] {color-scheme:light;background:var(--petal-bg)!important}
html[data-skin="petal"][data-petal-tone="dark"] {color-scheme:dark}
html[data-skin="petal"]:has(#chat:not(.hidden)) {background:var(--petal-chat)!important}
html[data-skin="petal"][data-petal-layout="classic"]:has(#chat:not(.hidden)) {background:var(--petal-panel)!important}
html[data-skin="petal"] body {background:inherit!important}
/* KB_FIX_V2 keeps chatBg full-height when the foreground shrinks. Match that canvas in Classic. */
html[data-skin="petal"][data-petal-layout="classic"] #chatBg {background:var(--petal-panel)!important}
html[data-skin="petal"][data-petal-layout="classic"][data-chat-own] #chatBg {background-image:var(--chat-own-wallpaper)!important}
html[data-skin="petal"] #chat .composer-tools {padding:0}
html[data-skin="petal"] #chat .composer-box :is(.composer,.composer-input-row,.composer-tools) {background:transparent!important}

/* Module-owned palettes (receipt, journal, dream, memory, keepsakes) must follow Petal's tone. */
html[data-skin="petal"][data-petal-tone] :is(.petal-surface,#drawer,.sheet,#usgSheet,#ctxSheet,#ckTicketDialog) {
  --text-primary:var(--petal-ink);--text-secondary:var(--petal-muted);--text-faint:var(--petal-muted);
  --rc-paper:var(--petal-paper);--rc-ink:var(--petal-ink);--rc-faded:var(--petal-muted);--rc-veryfaded:var(--petal-muted);
  --rc-stamp:var(--petal-ink);--rc-rule:var(--petal-muted);--rc-rule-soft:var(--petal-edge);
  --cl-bg:var(--petal-bg);--cl-card:var(--petal-paper);--cl-ink:var(--petal-ink);--cl-soft:var(--petal-muted);--cl-faint:var(--petal-muted);
  --dr-bg:var(--petal-bg);--dr-card:var(--petal-paper);--dr-ink:var(--petal-ink);--dr-soft:var(--petal-muted);--dr-faint:var(--petal-muted);--dr-edge:var(--petal-edge);
  --hs-paper:var(--petal-paper);--hs-paper2:var(--petal-chat);--hs-ink:var(--petal-ink);--hs-soft:var(--petal-muted);--hs-faint:var(--petal-muted);
  --nb-paper:var(--petal-paper);--nb-ink:var(--petal-ink);--nb-soft:var(--petal-muted);--nb-faint:var(--petal-muted);
  --kp-paper:var(--petal-paper);--kp-ink:var(--petal-ink);--kp-faint:var(--petal-muted);
  --mp-paper:var(--petal-paper);--mp-paper-2:var(--petal-chat);--mp-ink:var(--petal-ink);--mp-ink-2:var(--petal-muted);--mp-ink-3:var(--petal-muted);
  --tw-paper:var(--petal-paper);--tw-ink:var(--petal-ink);--tw-soft:var(--petal-muted);--tw-faint:var(--petal-muted);
}
/* Text-bearing UI elements only; preserve SVG artwork, uploaded content and chat message formatting. */
html[data-skin="petal"][data-petal-tone] :is(.petal-surface,#drawer,.sheet,#usgSheet,#ctxSheet) :is(div,span,p,label,button,input,textarea,select,option,h1,h2,h3,h4,h5,h6,strong,b,em,small,a,summary,li,td,th,pre,code):not(.skin-card .sw *,[data-paper] *,svg *,iframe *) {
  color:var(--petal-ink)!important;-webkit-text-fill-color:currentColor;text-shadow:none;
}
html[data-skin="petal"][data-petal-tone] :is(.petal-surface,#drawer,.sheet,#usgSheet,#ctxSheet) :is(input,textarea)::placeholder {color:var(--petal-muted)!important;-webkit-text-fill-color:currentColor;opacity:1}
html[data-skin="petal"][data-petal-tone] :is(.petal-surface,#drawer,.sheet,#usgSheet,#ctxSheet) :is([class$="-desc"],[class$="-sub"],[class$="-meta"],[class$="-hint"],[class$="-note"],[class$="-label"],[class$="-time"],.settings-row-value,.settings-row-chevron,.rc-date,.rc-brand,.rc-row.faded,.ck-receipt-meta,.ck-receipt-number) {color:var(--petal-muted)!important;opacity:1}
html[data-skin="petal"][data-petal-tone] :is(.petal-surface,#drawer,.sheet) :is([class$="-title"],[class$="-name"],.settings-stat-value,.pv-hero-v,.model-name,.rc-title) {opacity:1}

/* Native black/gray cards, forms and selected tabs become paper or dusty rose in this theme. */
html[data-skin="petal"][data-petal-tone] .petal-surface :is(.settings-stat-card,.settings-provider-tabs,.settings-provider-tab,.settings-input,.settings-select,.settings-textarea,.settings-btn,.settings-mode-card,.settings-model-item,.pv-card,.pv-hero,.pv-chip,.pv-ava,.rs-bcard,.mcp-card,.file-item,.project-card,.chat-card,.profile-empty,.profile-add-button,.profile-switch,.cal-day,.cal-day-sheet,.cal-person,.cal-event-input,.diary-month-pill,.diary-search-bubble,.memory-search-bubble,.dm-wish,.dm-wish-in,.dm-card,.nb-entry,.nb-chat,.nb-write textarea,.mm-chat-card,.mm-detail-card,.hs-cover,.hs-card,.hs-answer,.lt-tabs,.lt-fab,.kp-rv-c,.ks-cell,.pulse-tabs,.pulse-tab,.pulse-debug-block) {
  background:var(--petal-paper)!important;border-color:var(--petal-edge)!important;color:var(--petal-ink)!important;box-shadow:inset 0 0 0 1px var(--petal-edge)!important;
}
html[data-skin="petal"][data-petal-tone] .petal-surface :is(.settings-provider-tab.active,.settings-btn.primary,.settings-mode-card.active,.settings-toggle.on,.profile-switch.on,.profile-add-button,.lt-fab,.pulse-tab.active,.pv-chip,.settings-row-badge,.pv-ava) {background:var(--petal-chat)!important;color:var(--petal-ink)!important}
html[data-skin="petal"][data-petal-tone] :is(.usg-sheet-box,.ctx-sheet-box,.model-group,.model-group-item,.extended-row,.pic-option,.bell-mode,.bell-go,.ck-go,.ck-opt,.ck-entry,.ck-ticket-main,.ck-ticket-stub) {background:var(--petal-paper)!important;color:var(--petal-ink)!important;border-color:var(--petal-edge)!important}
html[data-skin="petal"][data-petal-tone] #ckSheet .rc-stamp {color:var(--petal-ink)!important;border-color:var(--petal-muted)!important}
html[data-skin="petal"][data-petal-tone] #ckTicketDialog {--rc-paper:var(--petal-paper)!important;--rc-ink:var(--petal-ink)!important;--rc-faded:var(--petal-muted)!important;--rc-stamp:var(--petal-ink)!important}
/* Paper thumbnails use their own paired foreground/background; do not recolor their artwork. */
html[data-skin="petal"][data-petal-tone] .petal-surface [data-paper] {color:var(--pp-ink,var(--petal-ink))!important}
/* Shared card families also cover features beyond the screenshots and their nested forms. */
html[data-skin="petal"][data-petal-tone] .petal-surface :is([class$="-card"],[class$="-box"],[class$="-item"],[class$="-bubble"],[class$="-input"],[class$="-textarea"],[class$="-tabs"]):not(.has-bg,[data-paper],.skin-card,.skin-card *,[data-paper] *) {
  background:var(--petal-paper)!important;border-color:var(--petal-edge)!important;color:var(--petal-ink)!important;
}
html[data-skin="petal"][data-petal-tone] .petal-surface :is([class$="-item"],[class$="-tab"],[class$="-card"]):is(.active,.on,.selected):not(.skin-card,[data-paper]) {background:var(--petal-chat)!important;color:var(--petal-ink)!important}
