:root{--paper:#f4f5f1;--surface:#fff;--ink:#253631;--muted:#586962;--line:#d9dfd8;--teal:#17685b;--hover:#105044;--tint:#e7f0eb;--amber:#775015;--amber-bg:#fff2da;--red:#a03632;--red-bg:#fff1ef;--radius:12px;--space:24px;color-scheme:light}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif}::selection{background:#c5e3d5;color:#173c31}a{color:var(--teal);text-underline-offset:4px}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--teal)}button{border:1px solid transparent;border-radius:6px;background:var(--teal);color:white;padding:9px 16px;cursor:pointer;min-height:42px;font-weight:600;transition:background .16s ease-out}button:hover{background:var(--hover)}button:disabled{background:#e0e5e0;color:#6c7870;border-color:var(--line);cursor:not-allowed}.secondary{background:var(--surface);border-color:#b8c5bc;color:var(--ink)}.secondary:hover{background:var(--tint)}.quiet{background:transparent;color:var(--muted)}.quiet:hover{background:var(--tint)}input,select,textarea{width:100%;min-height:42px;border:1px solid #a9b8ad;border-radius:5px;background:#fff;color:var(--ink);padding:8px 10px;caret-color:var(--teal)}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#66776d}label{display:grid;gap:6px;font-size:14px;font-weight:500}fieldset{border:0;margin:20px 0 0;padding:0;min-width:0}legend{font-size:14px;font-weight:650;padding:0;margin-bottom:10px}p{margin:8px 0 16px}h1{font-size:28px;line-height:1.3;margin:0;font-weight:650;letter-spacing:-.02em;text-wrap:balance}h2{font-size:18px;line-height:1.5;margin:0;font-weight:650}h3{font-size:16px;margin:0 0 8px}.shell{display:grid;grid-template-columns:210px minmax(0,1fr);min-height:100vh}.sidebar{border-right:1px solid var(--line);background:#ebeee7;padding:30px 18px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:block;text-decoration:none;color:var(--ink);font-size:16px;line-height:1.55;margin:0 14px 34px}.brand strong{font-size:19px}.sidebar nav{display:grid;gap:6px}.nav{background:transparent;color:var(--muted);text-align:left;font-size:15px;padding:11px 14px;font-weight:500}.nav:hover{background:#e0e7df}.nav.active{background:#d6e6da;color:#163d2c;font-weight:650}.sidefoot{margin-top:auto;padding:30px 12px 0;font-size:12px;color:var(--muted)}.sidefoot p{margin:12px 0 0}.badge{display:inline-block;border:1px solid #b9c8b8;border-radius:4px;padding:3px 7px;font-weight:600;color:#345840;font-size:12px}main{min-width:0;max-width:1420px;width:100%;padding:30px 36px 0;margin:0 auto}.top{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:20px}.top p{color:var(--muted);margin:7px 0 0;font-size:14px}.boundary{display:flex;gap:12px;align-items:baseline;background:var(--amber-bg);color:var(--amber);padding:10px 16px;border-radius:6px;font-size:13px}.boundary strong{white-space:nowrap}.services{display:flex;gap:22px;flex-wrap:wrap;font-size:12px;color:var(--muted);padding:12px 0 20px}.service{display:flex;align-items:center;gap:7px}.dot{width:7px;height:7px;border-radius:50%;display:inline-block;background:var(--teal)}.dot.off{background:var(--red)}.worksheet{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:22px 24px;margin-bottom:24px;overflow:hidden}.sectionhead{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px;flex-wrap:wrap}.muted{font-size:12px;color:var(--muted);font-weight:400}.description{max-width:75ch;font-size:14px;color:var(--muted)}.schedule{display:grid;grid-template-columns:130px 1fr 1fr;font-size:14px}.schedule>div{padding:11px 14px;border-bottom:1px solid var(--line);background:#f8f9f6}.schedule>div:nth-last-child(-n+3){border-bottom:0}.schedule>div:nth-child(3n+1){padding-left:12px;background:#eef3ed}.schedule .schedule-head{font-size:12px;color:var(--muted);background:transparent!important;border-bottom:1px solid #bbc9bd}.schedule span{margin-left:12px;color:var(--muted);font-size:12px}.formrow{display:grid;grid-template-columns:1fr 1fr;gap:20px}.languages{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:4px}.languages fieldset{border-top:1px solid var(--line);padding-top:10px}.languages label+label{margin-top:12px}.products{display:flex;flex-wrap:wrap;gap:10px 26px}.product-choice{display:flex;align-items:center;gap:10px;font-weight:400;cursor:pointer}.product-choice input,.reviewcheck input{width:18px;height:18px;min-height:18px;accent-color:var(--teal)}.product-choice small{color:var(--muted);font-size:12px}.actionbar{display:flex;justify-content:space-between;align-items:center;gap:16px;border-top:1px solid var(--line);padding-top:18px;margin-top:22px;flex-wrap:wrap}.inline-label{display:flex;align-items:center;gap:10px;max-width:440px}.inline-label select{min-width:180px}.empty{padding:24px 0;color:var(--muted);font-size:14px}.notice{padding:14px 18px;background:var(--tint);border:1px solid #a4c4b4;border-radius:6px;margin-bottom:20px;font-size:14px;overflow-wrap:anywhere}.notice.error{background:var(--red-bg);border-color:#d8aaa4;color:var(--red)}.notice a{margin-left:8px}.event-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.flowpath{display:flex;gap:0;margin-top:28px;font-size:13px}.flowpath span{flex:1;padding:10px 12px;background:#f3f6f1;border:1px solid var(--line);border-right:0;text-align:center}.flowpath span:last-child{border-right:1px solid var(--line)}.tablewrap{overflow-x:auto;scrollbar-width:thin;scrollbar-color:#9cb6a6 #f0f4ef}table{width:100%;border-collapse:collapse;font-size:13px;text-align:left}th{font-weight:500;color:var(--muted);font-size:12px;background:#f5f7f3}th,td{padding:12px 10px;border-bottom:1px solid var(--line);vertical-align:top}tbody tr:last-child td{border-bottom:0}td small{display:block;margin-top:4px;color:var(--muted);font-size:12px;max-width:36ch;overflow-wrap:anywhere}td a{overflow-wrap:anywhere}table button{font-size:12px;padding:5px 10px;min-height:34px}td .status{white-space:nowrap}.status{font-size:12px;color:var(--teal);background:#e7f1ea;padding:3px 7px;border-radius:4px;display:inline-block}.status.pending,.status.draft{background:#fff2da;color:#775015}.status.cancelled{background:#edf0ec;color:#586962}.status.failed{background:var(--red-bg);color:var(--red)}.review-layout{display:grid;grid-template-columns:minmax(260px,1fr) minmax(320px,1.1fr);gap:24px;margin-top:18px}.review-list{display:grid;align-content:start;gap:0}.review-row{border-bottom:1px solid var(--line);padding:16px 0}.review-row:first-child{padding-top:0}.review-row p{font-size:13px;margin:8px 0}.review-row .rowtitle{display:flex;gap:10px;align-items:center;justify-content:space-between}.reviewcheck{display:flex;align-items:center;gap:8px;margin-top:14px;font-size:13px;cursor:pointer}.linklist{padding-left:18px;margin:10px 0;font-size:12px;overflow-wrap:anywhere}.previewframe{border:1px solid var(--line);border-radius:6px;width:100%;height:450px;background:#f4f5f1}.mail-layout{display:grid;grid-template-columns:minmax(200px,.7fr) minmax(350px,1.6fr);gap:24px}.mail-list{max-height:600px;overflow:auto;scrollbar-width:thin;scrollbar-color:#9cb6a6 #f0f4ef}.mail-item{display:block;width:100%;background:transparent;border:0;border-bottom:1px solid var(--line);text-align:left;border-radius:0;color:var(--ink);padding:14px 12px;font-size:13px;font-weight:500}.mail-item:hover,.mail-item.selected{background:var(--tint)}.mail-item small{display:block;font-size:12px;color:var(--muted);font-weight:400;margin-top:5px}.mail-item span{display:block;overflow-wrap:anywhere}.mail-item span:last-child{color:var(--muted);font-size:12px;font-weight:400;margin-top:4px}#mail-preview{width:100%;height:600px;border:1px solid var(--line);border-radius:6px;margin-top:12px;background:#fff}.mail-list .empty{padding:20px 12px}footer{display:flex;align-items:center;justify-content:space-between;gap:20px;font-size:12px;color:var(--muted);padding:2px 0 24px}footer div{display:flex;gap:20px}.shop{max-width:740px;margin:40px auto;background:white;border:1px solid var(--line);border-radius:var(--radius);padding:28px}.shop h1{margin:24px 0}.shop button{margin-top:12px}[hidden]{display:none!important}
@media(min-width:1500px){main{padding-left:48px;padding-right:48px}.worksheet{padding:24px 28px}}
@media(max-width:1000px){.shell{grid-template-columns:178px minmax(0,1fr)}main{padding:24px 24px 0}.sidebar{padding:26px 12px}.brand{margin-left:10px}.review-layout,.mail-layout{grid-template-columns:1fr}.mail-list{max-height:280px}.languages{gap:16px}.schedule{grid-template-columns:95px 1fr 1fr}.schedule>div{padding:10px}.schedule span{margin-left:7px}}
@media(max-width:700px){body{font-size:14px}.shell{display:block}.sidebar{position:static;height:auto;padding:16px 16px 0;border-right:0;border-bottom:1px solid var(--line)}.brand{font-size:14px;margin:0 0 14px}.brand br{display:none}.brand strong{font-size:16px;margin-left:8px}.sidebar nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;margin-bottom:10px}.nav{padding:9px 3px;min-height:42px;text-align:center;font-size:12px;white-space:nowrap}.sidefoot{display:none}main{padding:22px 16px 0}.top{gap:12px;align-items:flex-start;margin-bottom:16px}.top h1{font-size:24px}.top p{font-size:13px}.top button{padding:7px 10px;white-space:nowrap;font-size:12px}.boundary{font-size:12px;padding:10px 12px;gap:9px}.services{gap:10px 16px;padding:12px 0 18px;font-size:11px}.worksheet{padding:18px 16px;margin-bottom:20px}.sectionhead{gap:8px;margin-bottom:14px}.sectionhead h2{font-size:17px}.formrow,.languages{grid-template-columns:1fr;gap:14px}.languages fieldset{margin-top:16px}.schedule{grid-template-columns:60px 1fr 1fr;font-size:12px}.schedule>div{padding:10px 7px}.schedule span{display:block;margin:2px 0 0}.schedule .schedule-head{font-size:11px}.schedule>div:nth-child(3n+1){padding-left:7px}.actionbar{align-items:stretch;margin-top:18px;padding-top:16px;gap:12px}.actionbar>button{width:100%}.products{gap:12px}.product-choice{width:100%;font-size:13px}.products small{margin-left:auto}.event-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.event-actions button{font-size:12px;padding:8px}.flowpath{display:grid;grid-template-columns:1fr 1fr;font-size:12px}.flowpath span{border:1px solid var(--line);margin:-1px 0 0 -1px}.review-layout{display:block}.previewframe{height:420px;margin-top:16px}.inline-label{width:100%;max-width:none}.inline-label select{min-width:0;flex:1}.mail-layout{display:block}.mail-list{max-height:260px;margin-bottom:18px}#mail-preview{height:500px}footer{align-items:flex-start;flex-direction:column;gap:10px}.shop{margin:16px;width:calc(100% - 32px);padding:20px}.tablewrap table{min-width:660px}.notice{font-size:13px}.review-row .rowtitle{align-items:flex-start}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
.top-actions{display:flex;gap:6px;align-items:center}.login{max-width:460px;margin:10vh auto;padding:30px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}.login h1{font-size:25px}.login .boundary{margin:24px 0}.login form label+label{margin-top:18px}.login form button{width:100%}.login #login-result{color:var(--red);font-size:13px;margin:16px 0}.status.unsubscribed{background:#edf0ec;color:var(--muted)}@media(max-width:700px){.top-actions{gap:0}.top-actions .quiet{padding:7px}.login{margin:40px 16px;width:calc(100% - 32px);padding:24px}}
.inline-label{white-space:nowrap}.inline-label select{min-width:0;max-width:calc(100% - 40px)}.draft-heading-actions{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.tablehint{display:none}.tablewrap:focus-visible{outline:2px solid var(--teal);outline-offset:3px}@media(max-width:700px){.draft-heading-actions{width:100%;justify-content:space-between;gap:10px}.draft-heading-actions .muted{font-size:11px}.draft-heading-actions button{padding:7px 12px;font-size:12px}.tablehint{display:block;font-size:11px;color:var(--muted);margin:0 0 8px}}
.notice{position:sticky;top:12px;z-index:10}
#native-review-title,#native-create-title{scroll-margin-top:100px}
.native-fields{margin-top:18px}.native-brands{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:16px 0 24px}.native-brand{display:flex;align-items:center;gap:12px;min-width:0}.native-brand img{width:110px;height:32px;object-fit:contain;object-position:left}.native-brand strong{font-size:13px}.native-brand small{display:block;font-size:12px;color:var(--muted);overflow-wrap:anywhere}.native-product{display:grid;grid-template-columns:20px 64px minmax(0,1fr) minmax(180px,.8fr);align-items:center;gap:14px;padding:14px 0;border-bottom:1px solid var(--line);cursor:pointer}.native-product input{width:18px;height:18px;min-height:18px;accent-color:var(--teal)}.native-product img{width:64px;height:48px;object-fit:cover}.native-product strong{font-size:14px}.native-product small{display:block;color:var(--muted);font-size:12px;font-weight:400}.native-prices{display:grid;gap:3px;font-size:12px;font-variant-numeric:tabular-nums;font-weight:400}.native-summary{display:flex;gap:12px;align-items:center;flex-wrap:wrap;font-size:13px}.native-error,.native-issue{color:var(--red)}.native-issue{background:var(--red-bg);padding:12px 14px;border-radius:6px;font-size:14px}.native-preview-frame{height:620px}.native-executions{overflow-wrap:anywhere;margin:16px 0 0}.status.needs_review,.status.blocked,.status.partial{color:var(--red);background:var(--red-bg)}.status.generating,.status.submitted,.status.creating{color:var(--amber);background:var(--amber-bg)}.legacy-activities{margin:24px 0;color:var(--muted)}.legacy-activities>summary{cursor:pointer;padding:14px 0;font-weight:600;color:var(--ink)}.legacy-activities[open]>summary{margin-bottom:12px}
@media(max-width:700px){.native-brands{grid-template-columns:1fr;gap:14px}.native-product{grid-template-columns:20px 48px minmax(0,1fr);gap:10px}.native-product img{width:48px;height:40px}.native-prices{grid-column:3}.native-preview-frame{height:500px}.native-brand small{font-size:11px}.native-summary{align-items:flex-start}.native-executions{line-height:2}}

/* Automation configuration inherits the operating worksheet. */
/* Shared-master drafts extend the existing ruled worksheet; no new visual identity. */
.suite-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px}.suite-choice{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid var(--line);padding:12px 0;font-size:13px}.suite-choice label,.suite-site-choice{display:flex;align-items:center;gap:10px}.suite-options input,.suite-product>input{width:18px;height:18px;min-height:18px;flex:0 0 18px;accent-color:var(--teal)}.suite-site-choice{padding:12px 0;border-bottom:1px solid var(--line);min-width:0}.suite-site-choice img{width:72px;height:30px;object-fit:contain;background:#111}.suite-site-choice small{display:block;font-size:11px;color:var(--muted);overflow-wrap:anywhere}.suite-extra,#suite-connection{margin:18px 0}.suite-extra summary,#suite-connection summary{cursor:pointer;font-size:14px;font-weight:600}.suite-extra[open] summary,#suite-connection[open] summary{margin-bottom:16px}.suite-key-form{max-width:700px}.suite-key-form .muted{margin-top:10px}.suite-review-layout{display:grid;grid-template-columns:minmax(250px,.8fr) minmax(0,1.2fr);gap:24px;margin-top:18px}.suite-draft-list{max-height:760px;overflow:auto;scrollbar-color:var(--line) var(--surface);scrollbar-width:thin}.suite-draft-row{padding:16px 12px;border-bottom:1px solid var(--line);scroll-margin:20px}.suite-draft-row.selected{background:var(--tint)}.suite-draft-row h3{font-size:14px}.suite-draft-row p{margin:8px 0;overflow-wrap:anywhere}.suite-preview-panel{min-width:0}.suite-preview-panel .linklist{font-size:12px}.suite-preview-panel h3{scroll-margin-top:110px}.suite-product .native-prices{font-variant-numeric:tabular-nums}.suite-product .native-prices span{font-size:11px}.suite-draft-row .reviewcheck{font-size:12px}.suite-draft-row button{font-size:12px;min-height:36px;padding:6px 12px}
.suite-back-review{display:none}
#suite-products{max-height:480px;overflow:auto;scrollbar-color:var(--line) var(--surface);scrollbar-width:thin;padding-right:8px}#suite-products .native-product:first-child{border-top:0}
@media(max-width:1000px){.suite-review-layout{grid-template-columns:1fr}.suite-draft-list{max-height:420px}.suite-back-review{display:inline-flex;margin-bottom:12px}}
@media(max-width:700px){.suite-options{grid-template-columns:1fr}.suite-choice{gap:8px}.suite-site-choice img{width:64px}.suite-review-layout{gap:20px}.suite-draft-list{max-height:350px}.suite-draft-row{padding:14px 8px}}
.auto-destination{font-size:13px;overflow-wrap:anywhere;background:var(--tint);padding:12px 14px;border-radius:6px}.auto-site-links{display:flex;flex-wrap:wrap;gap:12px 24px;font-size:14px;margin:20px 0}.auto-site{border:0;padding:0;margin:28px 0 0;min-width:0}.auto-site legend{font-size:17px;font-weight:650;margin-bottom:4px}.auto-rule{padding:18px 0;border-bottom:1px solid var(--line)}.auto-rule-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:12px}.auto-enabled{display:flex;align-items:center;gap:8px;font-size:13px}.auto-enabled input{width:18px;height:18px;min-height:18px;accent-color:var(--teal)}.auto-rule-fields{display:grid;grid-template-columns:minmax(0,1fr) 150px;gap:18px}.auto-rule-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px 20px;margin-top:12px;font-size:13px}.auto-event-details{margin-top:22px}.auto-event-details summary{cursor:pointer;margin-bottom:14px;font-size:14px}#auto-preview-title{scroll-margin-top:110px}.status.blocked{background:var(--red-bg);color:var(--red)}
@media(max-width:700px){.sidebar nav{grid-template-columns:repeat(3,minmax(0,1fr))}.auto-rule-fields{grid-template-columns:minmax(0,1fr) 104px;gap:10px}.auto-rule-fields label{font-size:13px}.auto-site-links{display:grid;gap:12px}.auto-rule-actions{gap:10px 16px}.auto-rule-actions button{font-size:13px}.auto-site legend{font-size:16px}}
.auto-scope-switch{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px}.auto-scope-switch button[aria-pressed="true"]{background:var(--teal);border-color:var(--teal);color:var(--surface)}.recovery-filters{display:grid;grid-template-columns:220px 220px;gap:18px;margin:20px 0}.recovery-rule-note{margin:10px 0 0;color:var(--amber);font-size:13px}#recovery-preview-title,#recovery-records-title{scroll-margin-top:110px}#recovery-events small{display:block;white-space:normal}#auto-recovery-scope h3{font-size:16px;margin-top:24px}@media(max-width:700px){.recovery-filters{grid-template-columns:1fr 1fr;gap:12px}.auto-scope-switch{gap:8px}.auto-scope-switch button{flex:1}.recovery-filters label{font-size:13px}#recovery-form .actionbar .event-actions{width:100%}}
#recovery-events table{table-layout:fixed;min-width:1120px;width:100%}#recovery-events th:nth-child(1){width:9%}#recovery-events th:nth-child(2){width:11%}#recovery-events th:nth-child(3){width:23%}#recovery-events th:nth-child(4){width:28%}#recovery-events th:nth-child(5){width:29%}#recovery-events td{overflow-wrap:anywhere}#recovery-events td:nth-child(-n+2){overflow-wrap:normal;word-break:normal}
