.cast-actions,.cast-tools,.cast-head{display:flex;gap:.55rem;align-items:center;flex-wrap:wrap}
.cast-actions button,.cast-tools button,.cast-dialog button,.cast-quick,.cast-setup{min-height:44px;padding:.55rem .85rem;border-radius:.65rem;border:1px solid var(--line,#414047);background:var(--panel,#222229);color:var(--text,#faf8fa);font:inherit;cursor:pointer}
.cast-actions .cast-main,.cast-dialog .cast-main{background:var(--accent,#dbbd78);color:#151417;border-color:transparent;font-weight:700}
.cast-empty,.cast-muted,.cast-info small,.cast-quick small{color:var(--muted,#a9a7b0);line-height:1.5}
.cast-search,.cast-field input:not([type=checkbox]),.cast-field select,.cast-field textarea{box-sizing:border-box;width:100%;padding:.7rem;border:1px solid var(--line,#494851);border-radius:.55rem;background:var(--panel,#242329);color:var(--text,#f7f6f9);font:inherit;min-width:0}
.cast-search{margin:1rem 0 .2rem}.cast-row{display:flex;align-items:center;justify-content:space-between;gap:.8rem;padding:.8rem 0;border-bottom:1px solid var(--line,#43414b);flex-wrap:wrap}
.cast-info,.cast-quick{display:grid;gap:.2rem;overflow-wrap:anywhere}.cast-info strong,.cast-quick strong{font-weight:650}
.cast-dialog{box-sizing:border-box;background:var(--panel,#202126);color:var(--text,#f7f6f9);width:min(30rem,calc(100% - 1.4rem));max-height:85dvh;border:1px solid var(--line,#44444d);border-radius:1rem;padding:1.2rem;overflow:auto}
.cast-dialog::backdrop{background:#060609b8}.cast-head{justify-content:space-between;flex-wrap:nowrap}.cast-head h2{font-size:1.25rem;margin:0}.cast-dialog .cast-close{font-size:1.4rem;line-height:1;padding:.5rem .8rem}
.cast-form,.cast-field,.cast-dialog .cast-merge{display:grid;gap:.4rem}.cast-form{margin-top:1rem;gap:.8rem}.cast-field[hidden]{display:none}.cast-field span{font-size:.9rem}.cast-field.cast-check{display:flex;align-items:center;justify-content:space-between;min-height:42px}.cast-check input{width:1.2rem;height:1.2rem}.cast-preview{font-weight:650}.cast-dialog .cast-remove{background:transparent;color:var(--text,#eee)}
.cast-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(9rem,100%),1fr));gap:.5rem}.cast-quick{text-align:left}.cast-setup{width:100%;border-style:dashed;background:transparent}.cast-dialog textarea{resize:vertical}
.cast-settings{margin-block:1rem}.cast-settings summary{font-weight:650;cursor:pointer;padding:.65rem 0}.cast-settings .cast-field{margin-block:.65rem}.cast-discounts{display:grid;grid-template-columns:minmax(5rem,1fr) repeat(2,minmax(0,1fr));align-items:center;gap:.45rem;margin-block:1rem}.cast-discounts input{min-width:0;width:100%;box-sizing:border-box;font:inherit}.cast-discounts b{font-size:.875rem}.cast-focus-row,.cast-group{padding:.65rem 0;border-bottom:1px solid var(--line,#444)}.cast-focus-row{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.cast-catalog,.cast-tiers{display:grid;gap:.5rem}.cast-tiers{grid-template-columns:repeat(auto-fit,minmax(6.5rem,1fr));margin-top:.55rem}.cast-group .cast-info small{color:var(--muted,#aaa)}.cast-tiers button{padding:.4rem;font-size:.92em}.cast-tiers button:disabled{opacity:.55}.cast-dialog a,.cast-info a{color:var(--link,#c7acf4);font-size:.9em;text-decoration:underline}
.cast-focus-toggle{display:block;font:inherit;min-height:44px;margin-bottom:.6rem;padding:.45rem .8rem;border:1px solid var(--line,#444);border-radius:.55rem;color:var(--text,#eee);background:var(--surface,#252229)}.cast-focus-toggle[aria-pressed=true]{border-color:var(--accent,#c6a2fc);color:var(--accent,#c6a2fc)}
