/* Session refinement: preserve page character and features with the approved Community palette. */
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d) {
 --sr-paper:#faf6ee; --sr-surface:#fffdf8; --sr-cyan:#dcebef; --sr-violet:#e7dff0; --sr-green:#e9eedf; --sr-peach:#f3e5d6; --sr-line:#c5bbcd; --sr-ink:#352e40; --sr-muted:#62576d;
 background-color:var(--sr-paper)!important; background-image:linear-gradient(#82758b06 1px,transparent 1px),linear-gradient(90deg,#82758b06 1px,transparent 1px)!important; background-size:28px 28px!important;
 gap:20px!important; border-color:var(--sr-line)!important;
}
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d) :is(h2,h3,h4,strong,b) { font-weight:600!important; color:var(--sr-ink)!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d) :is(p,small,dd,em,input,select,textarea) { font-weight:400!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d) :is(label,label > span,button,dt,legend,.eyebrow,summary) { font-weight:500!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d) :is(p,small) { line-height:1.6!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d) :is(input,textarea)::placeholder { font-weight:400!important; color:var(--sr-muted)!important; opacity:1!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d) :is(div,article,section,aside,header,form,fieldset,label,details,button,input,textarea,select) { border-color:var(--sr-line)!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d) :is(button,input,select,textarea) { font-size:14px!important; line-height:1.5!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d) input:not([type="checkbox"]):not([type="radio"]),html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d) textarea,html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d) select { background:var(--sr-surface)!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d) :is(button,input,select,textarea):focus-visible { outline:2px solid #776286!important; outline-offset:3px; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d) :is(h2,h3) .ploxy-help-trigger { min-height:24px!important; height:24px!important; width:24px!important; padding:0!important; background:transparent!important; border:0!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d) > .panel-header > :is(aside,div:last-child):not(:first-child) { background:var(--sr-violet)!important; border-left:1px solid var(--sr-line)!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d) > .panel-header { overflow:hidden!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d) details > summary { background:var(--sr-violet)!important; gap:14px!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d) details:nth-of-type(4n+2) > summary { background:var(--sr-cyan)!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d) details:nth-of-type(4n+3) > summary { background:var(--sr-green)!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d) details:nth-of-type(4n+4) > summary { background:var(--sr-peach)!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d) summary::after { content:""!important; width:7px!important; height:7px!important; min-width:7px!important; min-height:7px!important; max-width:7px!important; max-height:7px!important; flex:0 0 7px!important; border:0!important; border-right:1.5px solid #75697f!important; border-bottom:1.5px solid #75697f!important; background:transparent!important; box-shadow:none!important; border-radius:0!important; transform:rotate(45deg)!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d) details[open] > summary::after { transform:rotate(225deg)!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d) summary::before { content:none!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d) summary::-webkit-details-marker { display:none!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d) summary { list-style:none!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d) .session-feature-panel { display:grid!important; grid-template-columns:minmax(0,1fr) auto!important; align-items:center!important; gap:24px!important; padding:24px!important; border:1px solid var(--sr-line)!important; border-radius:12px!important; background:var(--sr-green)!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d) .session-feature-panel > div { min-width:0; background:transparent!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d) .session-feature-panel h3 { font-size:22px!important; line-height:1.3!important; margin:0 0 10px!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d) .session-feature-panel p { max-width:75ch; margin:0!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d) .session-feature-panel button { width:auto!important; padding:12px 18px!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d) :is(.session-stat-grid,.telegram-proof-strip,#reports-summary-grid,.subscription-summary,.plan-usage-grid,.credit-insights-summary,.project-credit-grid) { display:grid!important; gap:14px!important; padding:0!important; border:0!important; background:transparent!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d) :is(.session-stat-grid,.telegram-proof-strip,#reports-summary-grid,.subscription-summary,.plan-usage-grid,.credit-insights-summary,.project-credit-grid) > :is(article,div) { display:flex!important; flex-direction:column!important; align-items:flex-start!important; gap:9px!important; padding:20px!important; background:var(--sr-cyan)!important; border:1px solid var(--sr-line)!important; border-radius:12px!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d) :is(.session-stat-grid,.telegram-proof-strip,#reports-summary-grid,.subscription-summary,.plan-usage-grid,.credit-insights-summary,.project-credit-grid) > :nth-child(4n+2) { background:var(--sr-green)!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d) :is(.session-stat-grid,.telegram-proof-strip,#reports-summary-grid,.subscription-summary,.plan-usage-grid,.credit-insights-summary,.project-credit-grid) > :nth-child(4n+3) { background:var(--sr-violet)!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d) :is(.session-stat-grid,.telegram-proof-strip,#reports-summary-grid,.subscription-summary,.plan-usage-grid,.credit-insights-summary,.project-credit-grid) > :nth-child(4n+4) { background:var(--sr-peach)!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d) :is(.session-stat-grid,.telegram-proof-strip,#reports-summary-grid,.subscription-summary,.plan-usage-grid,.credit-insights-summary,.project-credit-grid) > :is(article,div) > :is(span,.eyebrow,small,strong) { display:block!important; width:auto!important; grid-column:auto!important; grid-row:auto!important; text-transform:none!important; letter-spacing:normal!important; background:transparent!important; border:0!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d) .session-stat-grid { grid-template-columns:repeat(4,minmax(0,1fr))!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d) .session-stat-grid::before { content:none!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d) .session-stat-grid strong { font-size:28px!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d) .session-stat-grid :is(span,small) { font-size:13px!important; line-height:1.5!important; }
/* Reach: a useful overview, clear input cards and roomier delivery workflows. */
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#reach-module-panel #reach-message-form { padding:20px!important; gap:20px!important; border:1px solid var(--sr-line)!important; border-radius:12px!important; background:var(--sr-peach)!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#reach-module-panel #reach-message-form label { gap:9px!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#reach-module-panel :is(.reach-source-card,.reach-review-card,.reach-reply-inbox,.reach-compliance-workflow,.reach-analytics-workflow) { padding:20px!important; background:var(--sr-green)!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#reach-module-panel .reach-source-card { background:var(--sr-peach)!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#reach-module-panel .reach-stage-body { padding:22px!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#reach-module-panel :is(.reach-adaptation-card,.reach-channel-card) { padding:20px!important; background:var(--sr-cyan)!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#reach-module-panel .reach-message-item { padding:18px!important; gap:14px!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#reach-module-panel .reach-message-item.selected { background:var(--sr-violet)!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#reach-module-panel :is(.reach-performance-funnel-section,.reach-performance-unavailable) { padding:20px!important; border:1px solid var(--sr-line)!important; border-radius:12px!important; background:var(--sr-cyan)!important; }
/* Telegram: keep each studio distinct and all fields easy to scan. */
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#telegram-control-room .telegram-restored-brief { grid-template-columns:minmax(0,1.4fr) minmax(250px,1fr)!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#telegram-control-room .telegram-restored-brief aside { display:grid; gap:14px; padding:20px; border:1px solid var(--sr-line)!important; border-radius:10px; background:var(--sr-surface)!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#telegram-control-room .telegram-primary-actions { margin-top:20px!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#telegram-control-room .telegram-studio-grid { gap:18px!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#telegram-control-room .telegram-studio-disclosure > article { background:#fffdf8!important; padding:22px!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#telegram-control-room .telegram-studio-disclosure form { gap:20px!important; padding:20px!important; border:1px solid var(--sr-line)!important; border-radius:12px!important; background:#edf2e7!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#telegram-control-room .telegram-studio-disclosure:nth-child(2n) form { background:#edf2f5!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#telegram-control-room form label { gap:9px!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#telegram-control-room .telegram-post-draft-empty { padding:18px!important; margin-top:20px!important; border:1px solid var(--sr-line)!important; border-radius:10px!important; background:var(--sr-peach)!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#telegram-control-room .telegram-work-grid { grid-template-columns:repeat(2,minmax(0,1fr))!important; gap:20px!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#telegram-control-room .telegram-work-grid > article { padding:20px!important; border:1px solid var(--sr-line)!important; border-radius:12px!important; background:var(--sr-surface)!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#telegram-control-room .telegram-performance-insights-section { padding:20px!important; border:1px solid var(--sr-line)!important; border-radius:12px!important; background:var(--sr-cyan)!important; }
/* Reports: recover its evidence cards and distinct work areas. */
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#reports-control-room .report-assembly-main { padding:22px!important; border:1px solid var(--sr-line)!important; border-radius:12px!important; background:var(--sr-surface)!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#reports-control-room :is(.report-source-proof-kpis,.agent-proof-kpis,.workspace-proof-kpis,.mission-proof-kpis) { display:grid!important; gap:14px!important; background:transparent!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#reports-control-room :is(.report-source-proof-kpis,.agent-proof-kpis,.workspace-proof-kpis,.mission-proof-kpis) article { padding:18px!important; background:var(--sr-cyan)!important; border:1px solid var(--sr-line)!important; border-radius:10px!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#reports-control-room :is(.report-source-proof-kpis,.agent-proof-kpis,.workspace-proof-kpis,.mission-proof-kpis) article:nth-child(even) { background:var(--sr-green)!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#reports-control-room :is(.agent-proof-grid,.workspace-proof-grid,.report-management-grid) { gap:20px!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#reports-control-room :is(.agent-proof-grid,.workspace-proof-grid,.report-management-grid) > article { padding:20px!important; border:1px solid var(--sr-line)!important; border-radius:12px!important; background:var(--sr-surface)!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#reports-control-room :is(.report-performance-empty,.report-source-proof-list > article) { padding:20px!important; background:var(--sr-peach)!important; border-color:var(--sr-line)!important; }
/* Brand Voice: expressive field cards, with real saved sources kept available. */
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#brand-voice-panel #brand-form > label { padding:20px!important; border:1px solid var(--sr-line)!important; border-radius:12px!important; background:var(--sr-green)!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#brand-voice-panel #brand-form > label:nth-child(2) { background:var(--sr-cyan)!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#brand-voice-panel #brand-form > label:nth-child(3) { background:var(--sr-peach)!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#brand-voice-panel #brand-form label > span { display:flex; align-items:center; justify-content:space-between; gap:12px; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#brand-voice-panel .brand-form-actions { display:flex!important; justify-content:flex-end; flex-wrap:wrap; gap:12px; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#brand-voice-panel #brand-language-workspace > header { background:var(--sr-green)!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#brand-voice-panel .brand-language-rule { padding:20px!important; margin-bottom:14px!important; border:1px solid var(--sr-line)!important; border-radius:12px!important; background:var(--sr-violet)!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#brand-voice-panel .brand-language-rule:nth-child(even) { background:var(--sr-cyan)!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#brand-voice-panel :is(.brand-language-empty,.brand-conflict-empty) { padding:18px!important; background:var(--sr-peach)!important; border-radius:10px; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#brand-voice-panel #brand-brain-metrics article { padding:16px!important; background:var(--sr-cyan)!important; border:1px solid var(--sr-line)!important; border-radius:10px!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#brand-voice-panel #brand-language-form { background:var(--sr-paper)!important; gap:20px!important; }
/* Settings: restore the choices and the workspace's visual structure. */
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#settings-control-room .session-settings-shortcuts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-bottom:20px; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#settings-control-room .session-settings-shortcuts button { display:flex; flex-direction:column; align-items:flex-start; text-align:left; gap:10px; padding:22px!important; border:1px solid var(--sr-line)!important; border-radius:12px!important; background:var(--sr-green)!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#settings-control-room .session-settings-shortcuts button:nth-child(2) { background:var(--sr-violet)!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#settings-control-room .session-settings-shortcuts button:nth-child(3) { background:var(--sr-peach)!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#settings-control-room .session-settings-shortcuts strong { font-size:18px!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#settings-control-room .session-settings-shortcuts span { font-size:13px!important; font-weight:400!important; line-height:1.5; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#settings-control-room .settings-focused-header { display:grid!important; grid-template-columns:minmax(0,1fr) 320px; column-gap:28px; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#settings-control-room .settings-focused-header > :is(h2,p) { grid-column:1; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#settings-control-room .settings-project-picker { grid-column:2; grid-row:1/3; margin-top:0; align-self:center; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#settings-control-room #settings-scope-note { grid-column:1/-1; border-top:1px solid var(--sr-line); padding-top:16px; margin-top:18px; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#settings-control-room :is(.form-grid,.settings-toggle-grid,.polxy-communication-choices,.security-management-grid,.security-status-grid) { gap:20px!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#settings-control-room .form-grid > label { padding:18px!important; border:1px solid var(--sr-line)!important; border-radius:10px!important; background:#f5f0e7!important; gap:10px!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#settings-control-room .form-grid > label:nth-child(even) { background:#edf1f4!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#settings-control-room .polxy-communication-choices label { padding:20px!important; border:1px solid var(--sr-line)!important; border-radius:12px!important; background:var(--sr-surface)!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#settings-control-room .polxy-communication-choices label:has(input:checked) { background:var(--sr-violet)!important; border-color:#8e7e9e!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#settings-control-room .polxy-communication-preview { padding:20px!important; background:var(--sr-green)!important; border:1px solid var(--sr-line)!important; border-radius:12px!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#settings-control-room .settings-toggle-grid label { padding:18px!important; border:1px solid var(--sr-line)!important; border-radius:10px!important; background:var(--sr-surface)!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#settings-control-room :is(.settings-agentic-workspace-body,#polxy-communication-panel) { padding:24px!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#settings-control-room .appearance-theme-option { padding:20px!important; border-color:var(--sr-line)!important; }
/* Plan & Credits: distinct current-plan, capacity and comparison cards. */
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#credits-control-room .credit-command-surface { display:grid!important; gap:18px!important; padding:0!important; background:transparent!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#credits-control-room .plan-usage-grid { margin-top:0!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#credits-control-room .plan-usage-grid > article { background:var(--sr-surface)!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#credits-control-room .plan-usage-meter { width:100%!important; margin-top:10px; height:6px!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#credits-control-room .plan-comparison-showcase { background:var(--sr-paper)!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#credits-control-room .plan-grid { display:grid!important; grid-template-columns:repeat(3,minmax(0,1fr))!important; gap:20px!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#credits-control-room .plan-card { padding:24px!important; border:1px solid var(--sr-line)!important; border-radius:12px!important; background:var(--sr-surface)!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#credits-control-room .plan-card.selected { background:var(--sr-violet)!important; border-color:#8e7e9e!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#credits-control-room .plan-card:nth-child(3n+2):not(.selected) { background:#edf2e6!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#credits-control-room .plan-card :is(header,dl,ul) { gap:12px!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#credits-control-room .credit-insight-card { padding:20px!important; border:1px solid var(--sr-line)!important; border-radius:12px!important; background:var(--sr-surface)!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#credits-control-room .credit-insight-card > header { padding:16px!important; background:var(--sr-cyan)!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#credits-control-room .topup-form { padding:22px!important; border:1px solid var(--sr-line)!important; border-radius:12px!important; background:var(--sr-green)!important; gap:20px!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#credits-control-room :is(.credit-service-card,.credit-alert-settings) { padding:20px!important; background:var(--sr-surface)!important; }
/* Keep the existing review contracts, with the same lighter typography. */
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d) dialog :is(h3,strong) { font-weight:600!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d) dialog :is(p,small,span) { font-weight:400!important; line-height:1.6!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d) dialog button { font-weight:500!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d) [hidden][hidden] { display:none!important; }
@media(max-width:1050px) {
 html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#credits-control-room .plan-grid { grid-template-columns:repeat(2,minmax(0,1fr))!important; }
 html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#settings-control-room .settings-focused-header { grid-template-columns:1fr!important; }
 html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#settings-control-room .settings-project-picker { grid-column:1!important; grid-row:auto!important; margin-top:16px; }
 html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#telegram-control-room .telegram-restored-brief { grid-template-columns:1fr!important; }
}
@media(max-width:760px) {
 html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d) .session-feature-panel { grid-template-columns:1fr!important; padding:20px!important; gap:18px!important; }
 html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d) .session-feature-panel > button { justify-self:start; }
 html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d) .session-stat-grid { grid-template-columns:repeat(2,minmax(0,1fr))!important; }
 html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d) :is(.session-stat-grid,.telegram-proof-strip,#reports-summary-grid,.subscription-summary,.plan-usage-grid,.credit-insights-summary,.project-credit-grid) { gap:12px!important; }
 html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d) :is(.session-stat-grid,.telegram-proof-strip,#reports-summary-grid,.subscription-summary,.plan-usage-grid,.credit-insights-summary,.project-credit-grid) > :is(article,div) { padding:16px!important; }
 html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d) > .panel-header > :is(aside,div:last-child):not(:first-child) { border-left:0!important; border-top:1px solid var(--sr-line)!important; padding:20px!important; }
 html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#telegram-control-room .telegram-work-grid,html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#credits-control-room .plan-grid,html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#settings-control-room .session-settings-shortcuts { grid-template-columns:1fr!important; }
 html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#settings-control-room .session-settings-shortcuts button { padding:18px!important; }
 html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#settings-control-room :is(.settings-agentic-workspace-body,#polxy-communication-panel),html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#telegram-control-room .telegram-studio-disclosure > article,html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#brand-voice-panel #brand-form > label { padding:16px!important; }
 html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#telegram-control-room .telegram-studio-disclosure form,html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#reach-module-panel #reach-message-form { padding:16px!important; }
 html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#brand-voice-panel #brand-brain-metrics { grid-template-columns:repeat(2,minmax(0,1fr))!important; }
 html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#credits-control-room .plan-card { padding:20px!important; }
}
@media(max-width:480px) {
 html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#telegram-control-room .telegram-proof-strip,html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#reports-control-room #reports-summary-grid { grid-template-columns:1fr!important; }
 html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d) .session-stat-grid { grid-template-columns:1fr!important; }
}
/* Plan cards use a vertical layout; legacy comparison rows had fixed columns. */
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#credits-control-room .plan-card { display:flex!important; flex-direction:column!important; align-items:stretch!important; gap:22px!important; width:100%!important; min-width:0!important; min-height:0!important; height:auto!important; max-height:none!important; overflow:visible!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#credits-control-room .plan-card > * { grid-column:auto!important; grid-row:auto!important; width:100%!important; min-width:0!important; max-width:100%!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#credits-control-room .plan-card header { display:flex!important; flex-direction:column!important; align-items:stretch!important; gap:20px!important; padding:0!important; border:0!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#credits-control-room .plan-card header > div { display:block!important; width:100%!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#credits-control-room .plan-card h3 { font-size:24px!important; margin:14px 0 8px!important; overflow-wrap:normal!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#credits-control-room .plan-card p { margin:0!important; max-width:none!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#credits-control-room .plan-state { display:inline-block!important; width:auto!important; padding:6px 10px!important; border:1px solid var(--sr-line)!important; border-radius:6px!important; background:var(--sr-surface)!important; font-size:12px!important; font-weight:500!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#credits-control-room .plan-card.selected .plan-state { background:var(--sr-green)!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#credits-control-room .plan-price { font-size:32px!important; line-height:1.2!important; display:block!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#credits-control-room .plan-price small { font-size:13px!important; margin-left:8px; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#credits-control-room .plan-credit-allowance { display:grid!important; gap:8px!important; border:0!important; border-top:1px solid var(--sr-line)!important; padding:18px 0 0!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#credits-control-room .plan-credit-allowance span { font-size:13px!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#credits-control-room .plan-credit-allowance strong { font-size:24px!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#credits-control-room .plan-limit-list { display:grid!important; grid-template-columns:1fr!important; gap:12px!important; border:0!important; padding:0!important; margin:0!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#credits-control-room .plan-limit-list > div { display:flex!important; justify-content:space-between!important; gap:16px!important; padding:0!important; border:0!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#credits-control-room .plan-limit-list :is(dt,dd) { font-size:14px!important; margin:0!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#credits-control-room .plan-usage-note { display:grid!important; gap:8px!important; padding:16px!important; border:0!important; border-radius:8px!important; background:#fffdf880!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#credits-control-room .plan-card > button { margin-top:auto!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#telegram-control-room .telegram-post-draft-empty { grid-column:1/-1!important; width:100%!important; }
/* Shared small text and badges should not inherit the old 800–950 weight. */
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d) span { font-weight:500!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d) :is(.session-stat-grid,.telegram-proof-strip) article > span { font-size:13px!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d) .session-stat-grid strong { align-self:flex-start!important; text-align:left!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#brand-voice-panel #brand-brain-status-grid-legacy article { padding:16px!important; border:1px solid var(--sr-line)!important; border-radius:10px!important; background:var(--sr-cyan)!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#brand-voice-panel #brand-brain-status-grid-legacy article:nth-child(even) { background:var(--sr-green)!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#telegram-control-room .section-title { min-height:0!important; height:auto!important; margin:0 0 18px!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#telegram-control-room .section-title h3 { margin:0!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d) :is(.report-source-proof-item,.agent-proof-item,.module-work-item) > b { padding:6px 10px!important; background:var(--sr-peach)!important; border:1px solid var(--sr-line)!important; border-radius:6px!important; font-size:12px!important; font-weight:500!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d) .report-source-proof-item > b.ready { background:var(--sr-green)!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d) :is(.settings-tier-chip,.credit-module-rank,#credit-usage-result-count,.invoice-row .badge) { background:var(--sr-violet)!important; color:var(--sr-ink)!important; border-color:var(--sr-line)!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d) input:is([type="checkbox"],[type="radio"]) { accent-color:#806b93!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d) input:is([type="checkbox"],[type="radio"]):checked { background-color:#b5a3c6!important; border-color:#806b93!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#reach-module-panel .reach-adaptation-grid { gap:20px!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#reach-module-panel .reach-adaptation-grid article { padding:20px!important; background:var(--sr-cyan)!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#reach-module-panel .reach-adaptation-grid article:nth-child(even) { background:var(--sr-green)!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#reach-module-panel :is(.reach-score-grid,.reach-compliance-kpis,.reach-analytics-kpis) { gap:14px!important; }
html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#reach-module-panel :is(.reach-score-grid,.reach-compliance-kpis,.reach-analytics-kpis) article { padding:16px!important; background:var(--sr-surface)!important; border:1px solid var(--sr-line)!important; border-radius:10px!important; }
@media(max-width:760px) {
 html body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d)#brand-voice-panel #brand-brain-status-grid-legacy { grid-template-columns:repeat(2,minmax(0,1fr))!important; }
}
/* Respect the existing Calm Monochrome preference without changing its setting. */
html[data-polxy-theme="calm-monochrome"] body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d):not(#refine-theme) {
 --sr-paper:#f6f3ee; --sr-surface:#fffdf8; --sr-cyan:#e9e7e2; --sr-violet:#e2dfdc; --sr-green:#eeece6; --sr-peach:#eee9e2; --sr-line:#bfb8b4;
}
html[data-polxy-theme="calm-monochrome"] body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d):not(#refine-theme) :is(.telegram-studio-disclosure form,.plan-card:not(.selected),.form-grid > label,.polxy-communication-choices label,.reach-restored-brief,.brand-language-rule) { background:#eeece6!important; }
html[data-polxy-theme="calm-monochrome"] body.app-mode .session-refined-page:not(#refine-a):not(#refine-b):not(#refine-c):not(#refine-d):not(#refine-theme) .polxy-communication-choices label:has(input:checked) { background:#dfddd8!important; }

/* Keep the navigation hit area, soften its visible tab and icon. */
html body.app-mode :is(#sidebar-collapse-toggle,#sidebar-reopen-toggle):not(#nav-ref-a):not(#nav-ref-b):not(#nav-ref-c):not(#nav-ref-d){color:#75697f!important;box-shadow:none!important;}
html body.app-mode :is(#sidebar-collapse-toggle,#sidebar-reopen-toggle):not(#nav-ref-a):not(#nav-ref-b):not(#nav-ref-c):not(#nav-ref-d)::before{border:1px solid #c5bbcd!important;border-radius:7px!important;background:#e7dff0!important;box-shadow:none!important;}
html body.app-mode :is(#sidebar-collapse-toggle,#sidebar-reopen-toggle):not(#nav-ref-a):not(#nav-ref-b):not(#nav-ref-c):not(#nav-ref-d):hover::before{background:#ddd3e9!important;}
html body.app-mode :is(#sidebar-collapse-toggle,#sidebar-reopen-toggle):not(#nav-ref-a):not(#nav-ref-b):not(#nav-ref-c):not(#nav-ref-d) svg{width:18px!important;height:18px!important;stroke:currentColor!important;stroke-width:1.5px!important;fill:none!important;}
html body.app-mode :is(#sidebar-collapse-toggle,#sidebar-reopen-toggle):not(#nav-ref-a):not(#nav-ref-b):not(#nav-ref-c):not(#nav-ref-d) svg path{stroke-width:1.5px!important;stroke-linecap:round!important;stroke-linejoin:round!important;}
