/* Scoped to the new module; inherits Proa's font, palette and shared select menus. */
.rules-inspector{display:flex;flex-direction:column;gap:14px;font-size:12px;color:var(--ui-text,#283342);min-width:0}.rules-inspector *{min-width:0}.rules-eyebrow{font-size:9px;letter-spacing:.8px;color:var(--ui-muted,#748093);font-weight:600}.rules-inspector h3,.rules-group-head strong{font-size:11px;font-weight:600}.rules-inspector input:not([type=radio]):not([type=checkbox]),.rules-inspector select,.rules-inspector textarea{border:1px solid var(--ui-line,#dce1e8);border-radius:5px;background:#fff;color:inherit;padding:8px 9px;width:100%;font:inherit;min-height:34px}.rules-inspector textarea{min-height:160px;resize:vertical;font:11px/1.6 monospace}.rules-group{border:1px solid var(--ui-line,#e0e5eb);border-radius:6px;padding:11px;display:flex;flex-direction:column;gap:12px;background:#fafbfd}.rules-group .rules-group{background:#fff;padding:9px;border-left:2px solid #b7cde5}.rules-group-head{display:flex;flex-direction:column;gap:10px}.rules-segmented{display:flex;gap:3px;padding:3px;border-radius:5px;background:#edf0f4}.rules-segmented button{flex:1;padding:6px;font-size:10px;border-radius:3px;color:#647185}.rules-segmented button[aria-pressed=true]{background:#fff;color:#1b63a6;box-shadow:0 1px 3px #152b481a}.rules-children{display:flex;flex-direction:column;gap:12px}.rules-condition{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:7px;padding-bottom:10px;border-bottom:1px solid #e5e9ef}.rules-condition>:first-child{grid-column:1/-1}.rules-condition>.ui-select-control{grid-column:auto}.rules-condition>select:first-child+.ui-select-control{grid-column:1/-1}.rules-row-actions{display:flex;justify-content:flex-end;gap:3px;grid-column:1/-1}.rules-row-actions button{padding:3px 6px;min-height:26px;color:#6b7786;font-size:14px;border-radius:3px}.rules-row-actions button:hover{background:#e9eef5}.rules-action{border:1px solid #dce2e9;border-radius:4px;padding:6px 8px;background:#fff;font-size:10px;color:#4e6075;line-height:1.5}.rules-action:hover{background:#eef5fd;border-color:#a8c3e1}.rules-add{display:flex;gap:5px;flex-wrap:wrap}.rules-help{font-size:10px;line-height:1.65;color:var(--ui-muted,#707e90)}.rules-unit{font-size:9px;color:#748195;grid-column:1/-1}.rules-missing,.rules-preview{padding-top:16px;border-top:1px solid var(--ui-line,#e0e5eb);display:flex;flex-direction:column;gap:9px}.rules-missing>strong{font-weight:500;font-size:11px}.rules-summary{font-size:10px;line-height:1.65;color:#607086;overflow-wrap:anywhere}.rules-scenarios{border:1px solid #dfe5ec;border-radius:5px;overflow:hidden}.rules-scenario{display:flex;align-items:center;gap:8px;margin:0;padding:10px;background:#fff;font-weight:400;font-size:11px;border-bottom:1px solid #e8ecf1;cursor:pointer}.rules-scenario:last-child{border:0}.rules-scenario:has(:checked){background:#f3f7fc}.rules-scenario input{width:13px;height:13px;flex:none;accent-color:#2379c8;margin:0}.rules-scenario>span:first-of-type{flex:1}.rules-badge{font-size:9px;line-height:1.5;padding:3px 7px;border-radius:12px;background:#eef0f3;color:#647185}.rules-badge.is-shown{color:#286849;background:#e4f2ea}.rules-ghost{display:flex;align-items:center;gap:8px;font-size:10px;font-weight:400;margin:0;padding:12px 0;border-top:1px solid #e0e5eb;border-bottom:1px solid #e0e5eb}.rules-ghost input{accent-color:#3b7959;width:15px;height:15px;margin:0;flex:none}.rules-error{font-size:11px;line-height:1.5;color:#a44236;overflow-wrap:anywhere}.rules-error:empty{display:none}.rules-save{display:flex;gap:8px;justify-content:space-between;position:sticky;bottom:0;background:#fff;padding:10px 0}.rules-save .button{padding:8px 12px;font-size:11px}.rules-metafield summary,.rules-sample-data summary{font-size:10px;color:#47729a;cursor:pointer;padding:4px 0}.rules-meta-form{display:flex;flex-direction:column;gap:8px;padding-top:10px}.rules-sample-data textarea{margin:8px 0}.rules-inspector [hidden]{display:none!important}
@media(max-width:600px){.rules-inspector{font-size:13px}.rules-inspector input:not([type=radio]):not([type=checkbox]),.rules-inspector select,.rules-inspector textarea{min-height:42px;font-size:16px}.rules-help,.rules-summary,.rules-ghost,.rules-metafield summary,.rules-sample-data summary{font-size:11px}.rules-action,.rules-row-actions button,.rules-save .button{min-height:40px;font-size:12px}.rules-scenario{min-height:44px;font-size:12px}.rules-segmented button{min-height:34px;font-size:11px}}
.rules-badge{color:#4d5a6b}.rules-save{position:static;border-top:1px solid #e0e5eb}.rules-condition.is-unary>.ui-select-control{grid-column:1/-1}
.rules-row-actions button{display:inline-flex;align-items:center;justify-content:center;min-width:28px;min-height:28px}.rules-row-actions svg{width:14px;height:14px}.rules-row-actions button:disabled{opacity:.35}@media(max-width:600px){.rules-row-actions button{min-width:40px;min-height:40px}}

.rules-inspector.is-always>.rules-summary,.rules-inspector.is-always>.rules-preview,.rules-inspector.is-always>.rules-ghost,.rules-inspector.is-always>.rules-help,.rules-inspector.is-always[data-dirty=false]>.rules-save{display:none}
