/* Publication controls inherit the explicit light/dark desktop surface tokens. */
.desktop-workspace .offer-publication { display:grid; gap:20px; width:100%; min-width:0; }
.desktop-workspace .offer-runtime-card, .desktop-workspace .offer-credit-summary { background:var(--dw-raised); color:var(--dw-text); border:1px solid var(--dw-line); border-radius:20px; padding:24px; }
.desktop-workspace .offer-publication :is(h2,h3,p,span,strong,small,label,a), .desktop-workspace .offer-credit-summary :is(p,span,strong,label) { color:var(--dw-text); opacity:1; }
.desktop-workspace .offer-publication h2 { font-size:24px; line-height:1.3; margin:0 0 12px; text-align:start; }
.desktop-workspace .offer-publication p { line-height:1.6; margin:8px 0; }
.desktop-workspace .offer-runtime-value { font-size:30px; font-weight:800; display:block; margin-block:8px; }
.desktop-workspace .offer-extension-rule { border-top:1px solid var(--dw-line); padding-top:16px; }
.desktop-workspace .offer-addon-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.desktop-workspace .offer-addon-card { background:var(--dw-card); color:var(--dw-text); border:1px solid var(--dw-line); border-radius:16px; display:flex; align-items:flex-start; gap:12px; padding:20px; min-width:0; cursor:pointer; }
.desktop-workspace .offer-addon-card:has(input:disabled) { cursor:default; }
.desktop-workspace .offer-addon-card.is-selected { border-color:var(--dw-accent); box-shadow:inset 0 0 0 2px var(--dw-accent); }
.desktop-workspace .offer-addon-card:focus-within { outline:3px solid var(--dw-text); outline-offset:3px; }
.desktop-workspace .offer-addon-card.is-unavailable { border-style:dashed; }
.desktop-workspace .offer-addon-card > input { width:20px; height:20px; flex:none; margin-top:3px; accent-color:var(--dw-accent); }
.desktop-workspace .offer-addon-card > span { display:grid; gap:8px; min-width:0; overflow-wrap:anywhere; }
.desktop-workspace .offer-addon-card strong { font-size:18px; }
.desktop-workspace .offer-addon-description { font-size:14px; line-height:1.5; }
.desktop-workspace .offer-addon-cost { font-weight:700; font-size:14px; }
.desktop-workspace .offer-addon-reason { background:var(--dw-raised); border-radius:8px; padding:8px; font-size:13px; line-height:1.4; }
.desktop-workspace .offer-credit-bar { display:flex; gap:16px 24px; flex-wrap:wrap; padding:18px; border-radius:14px; background:var(--dw-raised); color:var(--dw-text); }
.desktop-workspace .offer-credit-bar :is(p,strong) { margin:0; }
.desktop-workspace .offer-options-status:empty { display:none; }
.desktop-workspace .offer-frame-choice { border-inline-start:5px solid var(--frame-color); padding-inline-start:10px; font-weight:600; }
.desktop-workspace .offer-frame-dialog { background:var(--dw-card); color:var(--dw-text); border:1px solid var(--dw-line); border-radius:22px; width:min(560px,calc(100vw - 32px)); max-height:calc(100dvh - 40px); overflow:auto; padding:24px; }
.desktop-workspace .offer-frame-dialog::backdrop { background:#050a17bb; }
.desktop-workspace .offer-frame-dialog :is(h2,p,span) { color:var(--dw-text); }
.desktop-workspace .offer-frame-dialog h2 { font-size:24px; text-align:start; }
.desktop-workspace .offer-frame-dialog p { line-height:1.5; }
.desktop-workspace .offer-frame-palette { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin:20px 0; }
.desktop-workspace .offer-frame-swatch { display:grid; justify-items:center; align-content:start; gap:8px; border:1px solid var(--dw-line); border-radius:12px; padding:12px 6px; font-size:13px; cursor:pointer; text-align:center; }
.desktop-workspace .offer-frame-swatch:has(input:checked) { outline:3px solid var(--dw-accent); }
.desktop-workspace .offer-frame-swatch:focus-within { outline:3px solid var(--dw-text); outline-offset:3px; }
.desktop-workspace .offer-frame-swatch input { width:16px; height:16px; margin:0; accent-color:var(--dw-accent); }
.desktop-workspace .offer-frame-sample { display:block; width:38px; height:38px; border:5px solid var(--frame-color); border-radius:12px; background:var(--dw-card); }
.desktop-workspace .offer-credit-summary { grid-column:1/-1; margin:16px 0; }
.desktop-workspace .offer-credit-summary h2 { font-size:22px; text-align:start; }
.desktop-workspace .offer-credit-summary .dw-check { align-items:flex-start; line-height:1.5; }
.desktop-workspace .offer-publish-consent[hidden] { display:none; }
@media(max-width:760px) {
    .desktop-workspace .offer-addon-grid { grid-template-columns:minmax(0,1fr); }
    .desktop-workspace .offer-runtime-card, .desktop-workspace .offer-credit-summary { padding:18px; }
    .desktop-workspace .offer-addon-card { padding:16px; }
    .desktop-workspace .offer-frame-palette { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
