/* New-plan workspace: compact editing surface shared by the portal and desktop app. */
.new-plan-workspace .inline-composer .studio-composer { border:0; min-height:calc(100dvh - 110px); }
.new-plan-workspace .studio-composer__header { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 20px; }
.new-plan-workspace .studio-composer__header h2 { margin:0; font-size:18px; white-space:nowrap; }
.new-plan-workspace .studio-composer__header .strategy-tag { display:none; }
.new-plan-workspace .studio-header-actions { display:flex; align-items:center; gap:8px; margin-left:auto; }
.new-plan-workspace .studio-header-actions select { width:140px; }
.new-plan-workspace .studio-steps { padding:0 20px; gap:0; height:38px; align-items:stretch; }
.new-plan-workspace .studio-steps span { padding:0 14px; border-bottom:2px solid transparent; }
.new-plan-workspace .studio-steps .is-current { color:var(--primary); border-color:var(--primary); }
.new-plan-workspace .studio-composer>.dialog__body { display:flex; flex-direction:column; min-height:0; flex:1; overflow:visible; }
.new-plan-workspace .studio-draft-tools,.new-plan-workspace .studio-batch-guard { display:inline-block; flex:none; width:max-content; max-width:100%; margin:0; padding:4px 12px; border:0; background:transparent; color:var(--muted-foreground); }
.new-plan-workspace .studio-draft-tools summary,.new-plan-workspace .studio-batch-guard summary { font-size:11px; font-weight:400; }
.new-plan-workspace .studio-draft-tools[open],.new-plan-workspace .studio-batch-guard[open] { width:100%; padding:10px 20px; background:var(--surface-subtle); border-bottom:1px solid var(--border); }
.new-plan-workspace .studio-draft-tools[open] .studio-draft-actions,.new-plan-workspace .studio-batch-guard[open] .form-field { margin-top:8px; }
.new-plan-workspace .studio-workspace { grid-template-columns:242px minmax(0,1fr); min-height:570px; }
.new-plan-workspace .studio-plan-tree { padding:12px 12px 16px; }
.new-plan-workspace .studio-plan-tree>header { align-items:center; padding:4px 6px 12px; font-size:13px; }
.new-plan-workspace .studio-plan-tree>header button { height:30px; padding:0 9px; font-size:12px; }
.new-plan-workspace .studio-tree-plan { margin:0 0 14px; }
.new-plan-workspace .studio-tree-plan__card,.new-plan-workspace .studio-tree-unit { display:flex; align-items:flex-start; position:relative; min-width:0; border-radius:5px; }
.new-plan-workspace .studio-tree-plan__card { border:1px solid transparent; }
.new-plan-workspace .studio-tree-plan.is-selected .studio-tree-plan__card { background:#fff; border-color:#ffab81; }
.new-plan-workspace .studio-tree-plan__name { min-width:0; flex:1; padding:8px 4px 8px 8px; }
.new-plan-workspace .studio-tree-plan__card .studio-tree-plan__name { height:auto; min-height:55px; }
.new-plan-workspace .studio-tree-plan__name span { min-width:0; }
.new-plan-workspace .studio-tree-plan__name strong,.new-plan-workspace .studio-tree-unit strong { line-height:1.35; }
.new-plan-workspace .studio-tree-plan__name small { font-size:11px; }
.new-plan-workspace .studio-tree-delete { width:auto!important; min-width:0!important; height:26px!important; padding:2px 5px!important; font-size:11px!important; flex:none; }
.new-plan-workspace .studio-tree-units { margin:4px 0 0 15px; padding-left:0; border-left:0; }
.new-plan-workspace .studio-tree-unit { border-left:2px solid transparent; }
.new-plan-workspace .studio-tree-unit:has(button[aria-current=true]) { background:#fff; border-color:var(--primary); }
.new-plan-workspace .studio-tree-unit button[aria-current=true] { background:transparent; color:var(--primary); }
.new-plan-workspace .studio-tree-unit>button:first-child { display:block; flex:1; min-width:0; text-align:left; white-space:normal; padding:8px; }
.new-plan-workspace .studio-tree-unit>button:first-child { height:auto; min-height:48px; }
.new-plan-workspace .studio-tree-unit>button:first-child span { display:block; overflow-wrap:anywhere; }
.new-plan-workspace .studio-tree-unit>button:first-child small { display:block; margin:4px 0 0; }
.new-plan-workspace .studio-tree-units>button:last-child { margin-top:5px; justify-content:center; padding:6px; min-height:30px; }
.new-plan-workspace .studio-unit-editor { padding:14px 20px 20px; }
.new-plan-workspace .studio-plan-settings { margin:0 0 12px; padding:0 0 10px; }
.new-plan-workspace .studio-unit-editor .editor-card__heading { margin:0 0 10px; gap:8px; }
.new-plan-workspace .studio-unit-editor .editor-card__heading h3 { font-size:13px; }
.new-plan-workspace .studio-plan-type { font-size:11px; color:#d84900; background:#fff3ec; padding:5px 8px; border-radius:3px; }
.new-plan-workspace .studio-plan-settings .studio-inline-actions { margin-left:auto; }
.new-plan-workspace .studio-plan-fields { grid-template-columns:minmax(0,1fr) minmax(150px,1fr) minmax(180px,1fr); gap:10px; }
.new-plan-workspace .studio-plan-fields>.form-field { min-width:0; }
.new-plan-workspace .studio-plan-fields>.daypart-setting { align-self:end; justify-content:space-between; }
.new-plan-workspace .studio-name-preview { margin:8px 0 10px; padding:0 0 10px; border-bottom:1px solid var(--border); font-size:12px; }
.new-plan-workspace .studio-name-preview button { margin-left:auto; }
.new-plan-workspace .studio-control-row { margin:0; min-height:36px; }
.new-plan-workspace .studio-control-row strong { font-size:12px; margin-right:3px; }
.new-plan-workspace .studio-control-row .button { height:32px; }
.new-plan-workspace .studio-plan-more { margin-top:4px; font-size:11px; color:var(--muted-foreground); }
.new-plan-workspace .studio-plan-more summary { cursor:pointer; }
.new-plan-workspace .studio-plan-more:not([open]) { height:0; overflow:visible; text-align:right; }
.new-plan-workspace .studio-unit-settings { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px 10px; }
.new-plan-workspace .studio-unit-heading { grid-column:1/-1; }
.new-plan-workspace .studio-unit-settings>.form-field { grid-column:1; grid-row:2; }
.new-plan-workspace .studio-unit-settings>.studio-unit-region { grid-column:2; grid-row:2; }
.new-plan-workspace .studio-products { grid-column:3; grid-row:2; position:relative; padding:0; border:0; min-width:0; }
.new-plan-workspace .studio-products .editor-card__heading { margin-bottom:2px; }
.new-plan-workspace .studio-products h4 { font-size:12px; }
.new-plan-workspace .studio-products .studio-product-fields { grid-template-columns:minmax(0,1fr) 90px; gap:4px; }
.new-plan-workspace .studio-products .studio-product-fields { width:63%; }
.new-plan-workspace .studio-products .studio-product-fields .form-field span { display:none; }
.new-plan-workspace .studio-products .studio-product-fields input,.new-plan-workspace .studio-products .studio-product-fields select { height:32px; }
.new-plan-workspace .studio-products:has(.studio-selected-skus) .studio-product-fields { display:none; }
.new-plan-workspace .studio-products .studio-card-picker { display:flex; margin:0; position:absolute; right:0; top:25px; }
.new-plan-workspace .studio-products .studio-card-picker button { height:30px; padding:0 7px; font-size:11px; }
.new-plan-workspace .studio-products .studio-selected-skus { position:absolute; top:25px; left:0; right:37%; min-width:0; pointer-events:none; }
.new-plan-workspace .studio-products .studio-selected-skus span { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:11px; border:1px solid var(--border); padding:7px; }
.new-plan-workspace .studio-products .studio-selected-skus textarea { display:none; }
.new-plan-workspace .studio-bid-heading { grid-column:1/-1; grid-row:3; margin-top:4px; padding-top:6px; border-bottom:1px solid var(--border); font-size:12px; font-weight:700; }
.new-plan-workspace .studio-unit-bids { display:contents; }
.new-plan-workspace .studio-unit-bids>.form-field:first-child { grid-column:1; grid-row:4; }
.new-plan-workspace .studio-unit-bids>.form-field:last-child { grid-column:2; grid-row:4; }
.new-plan-workspace .studio-unit-advanced { grid-column:1/-1; grid-row:5; font-size:11px; color:var(--muted-foreground); }
.new-plan-workspace .studio-unit-advanced summary { cursor:pointer; }
.new-plan-workspace .studio-unit-advanced .studio-unit-targeting { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:8px 0; }
.new-plan-workspace .studio-keywords { grid-column:1/-1; grid-row:6; padding:4px 0 0; border:0; min-width:0; }
.new-plan-workspace .studio-keyword-heading { padding-bottom:8px; border-bottom:1px solid var(--border); }
.new-plan-workspace .studio-keyword-heading h4 { margin-right:auto; white-space:nowrap; }
.new-plan-workspace .studio-keyword-heading .studio-keyword-batch { margin:0; }
.new-plan-workspace .studio-keyword-heading select { margin:0; width:170px; }
.new-plan-workspace .studio-keyword-heading button { padding:0 8px; height:30px; white-space:nowrap; }
.new-plan-workspace .studio-keyword-raw { margin:4px 0; color:var(--muted-foreground); font-size:11px; }
.new-plan-workspace .studio-keyword-raw summary { cursor:pointer; }
.new-plan-workspace .studio-keyword-add { display:flex; gap:6px; margin:6px 0; }
.new-plan-workspace .studio-keyword-add input { flex:1; }
.new-plan-workspace .studio-keyword-bids { gap:0; max-height:none; margin:0; border:1px solid var(--border); border-radius:4px; }
.new-plan-workspace .studio-keyword-table-head,.new-plan-workspace .studio-keyword-bid { display:grid; grid-template-columns:minmax(0,1fr) 125px 110px 52px; gap:8px; align-items:center; padding:7px 10px; }
.new-plan-workspace .studio-keyword-table-head { background:var(--surface-subtle); color:var(--muted-foreground); font-size:11px; }
.new-plan-workspace .studio-keyword-bid { border-top:1px solid var(--border); border-bottom:0; }
.new-plan-workspace .studio-keyword-bid input,.new-plan-workspace .studio-keyword-bid select { height:32px; }
.new-plan-workspace .studio-keyword-bid button { padding:0 4px; }
.new-plan-workspace .studio-unit-negatives { grid-column:1/-1; grid-row:7; font-size:11px; }
.new-plan-workspace .studio-unit-negatives summary { cursor:pointer; }
.new-plan-workspace .studio-budget-bar { position:sticky; bottom:0; z-index:4; background:var(--background); border-top:1px solid var(--border); padding:10px 20px; }
.new-plan-workspace .studio-budget-bar small { display:none; }
.new-plan-workspace .studio-budget-total strong { font-size:13px; }
@media(max-width:1180px) { .new-plan-workspace .studio-unit-settings { grid-template-columns:repeat(2,minmax(0,1fr)); } .new-plan-workspace .studio-unit-settings>*,.new-plan-workspace .studio-unit-bids>.form-field { grid-row:auto!important; grid-column:auto!important; } .new-plan-workspace .studio-unit-heading,.new-plan-workspace .studio-bid-heading,.new-plan-workspace .studio-keywords,.new-plan-workspace .studio-unit-negatives,.new-plan-workspace .studio-unit-advanced { grid-column:1/-1!important; } .new-plan-workspace .studio-products { min-height:78px; } .new-plan-workspace .studio-products .studio-product-fields { width:100%; } .new-plan-workspace .studio-products .studio-card-picker { position:static; margin-top:4px; } .new-plan-workspace .studio-products .studio-selected-skus { position:static; pointer-events:auto; } }
@media(max-width:760px) { .new-plan-workspace .studio-header-actions { flex-wrap:wrap; } .new-plan-workspace .studio-workspace { grid-template-columns:145px minmax(0,1fr); } .new-plan-workspace .studio-plan-fields,.new-plan-workspace .studio-unit-settings { grid-template-columns:1fr; } .new-plan-workspace .studio-unit-settings>*,.new-plan-workspace .studio-unit-bids>.form-field { grid-column:1!important; } .new-plan-workspace .studio-keyword-heading { flex-wrap:wrap; } .new-plan-workspace .studio-keyword-bids { overflow-x:auto; } .new-plan-workspace .studio-keyword-table-head,.new-plan-workspace .studio-keyword-bid { min-width:430px; grid-template-columns:minmax(100px,1fr) 90px 90px 45px; } }
