﻿.automation-shell{display:grid;gap:20px;align-content:start;max-width:1500px;width:100%;color:var(--product-ink,#102644)}
.auto-heading,.auto-summary,.auto-route header,.auto-event header,.auto-sticky{display:flex;justify-content:space-between;align-items:center;gap:16px}.auto-heading h1{font-size:26px;margin:0 0 8px}.auto-heading p,.auto-meta{color:var(--product-muted,#7389aa);line-height:1.9;font-size:13px}.auto-heading p{margin:0}.automation-shell .panel{padding:24px;border:1px solid var(--product-line,#d9e5f3);border-radius:20px}.automation-shell h2{font-size:18px;margin:0 0 14px}.auto-summary{background:var(--product-surface,#fff)}.auto-summary p{margin-bottom:0;color:var(--product-muted,#7389aa)}.auto-routes,.auto-plan-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:18px}.auto-route header h2{margin:0}.auto-pill{display:inline-flex;background:#e6faf4;color:#008e84;padding:7px 12px;border-radius:100px;font-size:12px;white-space:nowrap}.auto-pill.is-muted{background:#eef2f7;color:#637791}.auto-flow{display:grid;grid-template-columns:1fr 24px 1fr;align-items:center;gap:12px;margin:24px 0}.auto-flow div{min-width:0;display:grid;gap:8px}.auto-flow strong{overflow-wrap:anywhere}.auto-flow small{color:#7389aa}.auto-route footer{display:flex;gap:8px;flex-wrap:wrap}.auto-route footer form{display:inline-flex;margin:0}.auto-empty{text-align:center;grid-column:1/-1;padding:20px 22px}.auto-empty p{color:#7389aa;line-height:2}.auto-empty-icon{display:block;font-size:42px;color:#1683ff;margin-bottom:15px}.auto-editor{display:grid;gap:18px}.auto-steps{display:flex;justify-content:center;gap:36px;list-style:none;margin:0;padding:20px;color:#1683ff}.auto-steps li{display:flex;align-items:center;gap:10px}.auto-fields,.auto-two-column{display:grid;grid-template-columns:1fr 1fr;gap:20px;min-width:0}.auto-two-column{align-items:start}.auto-field{display:flex;flex-direction:column;gap:9px;min-width:0;margin-bottom:14px}.auto-field label{font-size:13px;font-weight:600}.auto-full{grid-column:1/-1}.automation-shell input:not([type=checkbox]):not([type=hidden]),.automation-shell select,.automation-shell textarea{width:100%;min-height:44px;border:1px solid var(--product-line,#d5e2f3);background:var(--product-surface-soft,#f8fbff);color:inherit;border-radius:12px;padding:12px;font:inherit;box-sizing:border-box}.automation-shell input[type=time],.automation-shell input[type=number]{direction:ltr}.automation-shell input:focus,.automation-shell select:focus,.automation-shell textarea:focus{outline:2px solid #1683ff;outline-offset:2px}.automation-shell textarea{resize:vertical}.automation-shell summary{font-weight:700;font-size:16px;cursor:pointer;padding-block:3px 18px}.auto-section[open] summary{margin-bottom:8px}.auto-links{display:flex;gap:20px;flex-wrap:wrap;font-size:13px}.auto-links a{color:#0874dd}.auto-tip{padding:14px;background:#edf6ff;border-radius:12px;color:#375a82;font-size:13px;line-height:1.9}.auto-checkbox{display:flex;gap:10px;align-items:center}.auto-checkbox input{width:20px;height:20px;accent-color:#1683ff}.auto-sticky{justify-content:flex-end;background:var(--product-surface,#fff);border:1px solid var(--product-line,#d9e5f3);border-radius:16px;padding:15px}.auto-preview{display:block;background:#e9faf1;padding:14px;border-radius:12px;white-space:pre-wrap;overflow-wrap:anywhere}.auto-notice,.errorlist{padding:12px 16px;border-radius:12px;background:#eef7ff;color:#21578b;line-height:1.8}.auto-notice.error,.errorlist{background:#fff1f1;color:#c52c40}.errorlist{list-style:none;margin:8px 0;font-size:13px}.auto-limit-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.auto-plan form{display:grid;gap:14px}.auto-plan ul{padding-inline-start:22px;line-height:2.4;color:#647a98;font-size:14px}.auto-plan.auto-gold{border-color:#e8cf87;background:linear-gradient(160deg,#fffdf6,var(--product-surface,#fff))}.auto-price{display:block;font-size:24px;color:#1683ff}.auto-price small{font-size:12px;color:#7389aa}.auto-periods{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.auto-periods div{display:grid;gap:12px;border:1px solid #d9e5f3;border-radius:12px;padding:18px}.auto-periods span{font-size:13px;color:#7389aa}.auto-periods strong{font-size:16px}.auto-event p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:2}.auto-pagination{display:flex;justify-content:center;gap:24px;padding:16px}.auto-section header p{margin-top:0}.automation-shell [hidden]{display:none!important}
@media(max-width:760px){.automation-shell{gap:12px}.automation-shell .panel{padding:17px;border-radius:16px}.auto-heading{align-items:flex-start;flex-wrap:wrap}.auto-heading h1{font-size:21px}.auto-heading p{font-size:12px}.auto-heading .button{min-height:42px}.auto-two-column,.auto-fields,.auto-routes{grid-template-columns:1fr}.auto-limit-fields{grid-template-columns:1fr 1fr;gap:12px}.auto-summary{align-items:flex-start;flex-direction:column}.auto-steps{gap:14px;padding:12px 0;font-size:12px}.auto-steps li{flex-direction:column;gap:6px;text-align:center}.auto-steps span{font-size:10px}.auto-sticky{position:sticky;bottom:calc(72px + env(safe-area-inset-bottom));z-index:5;box-shadow:0 -5px 20px #183d6410}.auto-sticky .button-primary{flex:1}.auto-periods{grid-template-columns:1fr 1fr}.auto-periods div{padding:12px}.auto-plan-grid{grid-template-columns:1fr}.automation-shell summary{font-size:15px}.auto-route footer .button{padding:10px}.auto-links{gap:12px}.auto-fields{gap:6px}.auto-full{grid-column:auto}}

.auto-steps button{border:0;background:transparent;color:var(--product-muted,#7389aa);font:inherit;display:flex;align-items:center;gap:10px;padding:10px;cursor:pointer;border-radius:12px}.auto-steps button[aria-current=step]{background:var(--product-blue-soft,#edf6ff);color:var(--product-brand,#1683ff)}.auto-review{white-space:pre-line;line-height:2.2;padding:18px;background:var(--product-surface-soft,#f4f8fc);border-radius:12px;margin-bottom:20px}@media(max-width:760px){.auto-steps{gap:4px}.auto-steps button{flex-direction:column;gap:6px;padding:10px 6px}.auto-sticky{flex-wrap:wrap}.auto-sticky .button{font-size:12px;padding:10px}}
.auto-picker{position:relative;min-width:0}.auto-picker-trigger{width:100%;min-height:48px;text-align:start;padding:12px 14px;border:1px solid var(--product-line);border-radius:12px;background:var(--product-surface-soft);color:var(--product-ink);font:inherit;cursor:pointer}.auto-picker-trigger:after{content:"▾";float:left}.auto-picker-panel{position:absolute;top:calc(100% + 6px);inset-inline:0;z-index:80;padding:10px;background:var(--product-surface);border:1px solid var(--product-line);border-radius:14px;box-shadow:0 12px 30px #0003}.auto-picker-options{max-height:min(270px,40vh);overflow:auto;margin-top:8px}.auto-picker-options button{display:block;width:100%;text-align:start;border:0;background:transparent;padding:12px;color:var(--product-ink);font:inherit;cursor:pointer;overflow-wrap:anywhere;border-radius:8px}.auto-picker-options button:hover,.auto-picker-options button:focus,.auto-picker-options button[aria-selected=true]{background:var(--product-blue-soft)}.automation-shell .auto-picker-native{position:absolute!important;opacity:0;width:1px!important;height:1px!important;min-height:0!important;padding:0!important;pointer-events:none}.auto-section{overflow:visible!important}

.automation-shell .plan-wallet-buy:disabled{background:#e2e8f0!important;color:#64748b!important;border-color:#cbd5e1!important;box-shadow:none;cursor:not-allowed;opacity:1}.plan-wallet-form select{margin-bottom:12px}.plan-wallet-form .plan-wallet-buy{width:100%}

/* Rule builder: individual phrases and explicit replacement fields. */
.auto-rule-stage{display:grid;gap:20px}
.auto-rule-stage .panel{box-shadow:0 6px 24px #14325206}
.auto-rule-stage summary{display:flex;align-items:center;gap:10px;list-style:none;padding-bottom:12px}
.auto-rule-stage summary::-webkit-details-marker{display:none}
.auto-rule-stage summary:after{content:'⌄';margin-inline-start:auto;color:var(--product-muted);font-size:18px}
.auto-rule-stage details:not([open]) summary{padding-bottom:0}
.auto-section-mark{display:inline-grid;place-items:center;flex:none;width:32px;height:32px;border-radius:10px;background:var(--product-blue-soft);color:var(--product-brand,#1683ff);font-size:20px}
.auto-rule-description{font-size:13px;line-height:1.9;color:var(--product-muted);margin:0 0 18px}
.auto-schedule-layout{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:start}
.auto-schedule-layout .auto-tip{margin:0}
.auto-schedule-layout .auto-meta{margin-bottom:0}
.auto-schedule-options{display:flex;flex-wrap:wrap;gap:8px}
.auto-schedule-options label{display:flex;align-items:center;gap:8px;padding:10px 14px;border:1px solid var(--product-line);border-radius:12px;cursor:pointer;font-size:13px}
.auto-schedule-options label:has(input:checked){background:var(--product-blue-soft);border-color:var(--product-brand,#1683ff);color:var(--product-brand,#1683ff)}
.automation-shell .auto-schedule-options input[type=radio]{width:16px;min-height:16px;height:16px;padding:0;margin:0;accent-color:var(--product-brand,#1683ff)}
.auto-filter-grid,.auto-transform-grid{align-items:stretch}
.auto-filter-include .auto-section-mark{background:#e5f7ef;color:#11815c}
.auto-filter-exclude .auto-section-mark{background:#fff0f1;color:#c64356}
.auto-entry-label{display:block;font-size:12px;font-weight:600;margin-bottom:8px}
.auto-word-entry{display:flex;gap:8px;align-items:stretch}
.auto-word-entry input{flex:1;min-width:0}
.auto-word-entry .button{flex:none;white-space:nowrap;padding-inline:16px}
.auto-entry-hint{display:block;font-size:11px;color:var(--product-muted);line-height:1.9;margin-top:8px}
.auto-word-chips{display:flex;flex-wrap:wrap;gap:8px;list-style:none;padding:0;margin:14px 0 0}
.auto-word-chips:empty{display:none}
.auto-word-chips li{display:inline-flex;align-items:center;gap:10px;max-width:100%;border:1px solid var(--product-line);background:var(--product-blue-soft);border-radius:9px;padding:4px 9px;font-size:13px;overflow-wrap:anywhere}
.auto-word-exclude .auto-word-chips li{background:var(--product-surface-soft);border-inline-start:3px solid #cf6d7a}
.auto-word-chips button,.auto-remove-rule{display:grid;place-items:center;width:30px;height:30px;flex:none;border:0;border-radius:8px;background:transparent;color:var(--product-muted);font:inherit;font-size:22px;cursor:pointer}
.auto-word-chips button:hover,.auto-remove-rule:hover{background:#fff0f1;color:#ba344c}
.auto-word-empty{margin:14px 0 0;padding:14px;border:1px dashed var(--product-line);border-radius:10px;font-size:12px;color:var(--product-muted);text-align:center}
.auto-entry-feedback{font-size:12px;color:#c43d55;line-height:1.8;margin:8px 0 0;overflow-wrap:anywhere}
.auto-entry-feedback:empty{display:none}
.auto-match-field{margin:18px 0 0;padding-top:16px;border-top:1px solid var(--product-line)}
.auto-match-field select{font-size:13px;min-height:44px}
.auto-replacement-list{display:grid;gap:12px}
.auto-replacement-row{display:grid;grid-template-columns:22px minmax(0,1fr) minmax(0,1fr) 30px;gap:10px;align-items:end;padding:14px 10px;border:1px solid var(--product-line);border-radius:12px;background:var(--product-surface-soft)}
.auto-replacement-row label{display:grid;gap:8px;font-size:12px;min-width:0}
.auto-rule-number{align-self:center;color:var(--product-muted);font-size:12px}
.auto-replacement-row input{font-size:13px!important;background:var(--product-surface)!important}
.auto-remove-rule{margin-bottom:7px}
.auto-add-rule{margin-top:12px;font-size:13px}
.auto-add-rule:disabled{opacity:.5;cursor:not-allowed}
.auto-preview-button{width:100%;font-size:13px}
.auto-preview-placeholder{padding:18px;border:1px dashed var(--product-line);border-radius:12px;font-size:12px;color:var(--product-muted);line-height:2;text-align:center;margin:16px 0 0}
.auto-preview-result{margin-top:18px;font-size:12px}
.auto-preview-result .auto-preview{margin-top:8px;color:var(--product-ink);background:var(--product-blue-soft);font-size:14px;line-height:2}
.auto-rule-stage .auto-meta{font-size:12px;margin:14px 0 0}
@media(max-width:1100px){.auto-transform-grid{grid-template-columns:1fr}.auto-schedule-layout{gap:16px}}
@media(max-width:760px){.auto-rule-stage{gap:12px}.auto-schedule-layout{grid-template-columns:1fr}.auto-word-entry .button{padding-inline:12px;font-size:12px}.auto-replacement-row{grid-template-columns:20px minmax(0,1fr) 30px;gap:10px}.auto-replacement-row label{grid-column:2}.auto-replacement-row .auto-rule-number{grid-column:1;grid-row:1/3}.auto-remove-rule{grid-column:3;grid-row:1/3;align-self:center}.auto-rule-stage summary{font-size:14px}.auto-schedule-options label{flex:1;justify-content:center;font-size:12px;padding-inline:8px}.auto-rule-description{margin-bottom:14px}.auto-preview-panel textarea{min-height:120px}}
