.aan-workspace{display:grid;gap:18px;padding:20px;border:1px solid #e1e3ed;border-radius:22px;background:#eef0f7;color:#262137;--muted:#606176}
.aan-heading,.aan-card-title{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}
.aan-heading h2{margin:5px 0 7px;font-size:clamp(1.5rem,2vw,2rem);color:#262137}
.aan-heading p,.aan-guidance,.aan-footnote,.aan-delivery{line-height:1.5;color:var(--muted,#625c70)}
.aan-eyebrow,.aan-status{font-size:.76rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#7252aa}
.aan-heading-actions{display:flex;gap:9px;flex-wrap:wrap}
.aan-workspace button{cursor:pointer;border:1px solid #b9add3;border-radius:12px;padding:10px 15px;background:#fff;color:#4d3c68;font:inherit;font-weight:750}
.aan-workspace button.aan-primary,.aan-workspace form button{background:#6e42bc;border-color:#6e42bc;color:#fff}
.aan-workspace button:disabled{opacity:.55;cursor:wait}
.aan-guidance,.aan-card,.aan-drafts,.aan-empty{border:1px solid #d9d2e7;border-radius:18px;background:#fff;padding:20px}
.aan-guidance{background:#f6f1ff;margin:0}
.aan-card{display:grid;gap:0;padding:0;overflow:hidden}
.aan-card h3,.aan-drafts h3{margin:5px 0 0;font-size:1.2rem}
.aan-dates{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0}
.aan-dates div,.aan-metrics div{background:#f8f6fb;border-radius:12px;padding:11px}
.aan-dates dt,.aan-metrics span{display:block;font-size:.77rem;color:var(--muted,#625c70)}
.aan-dates dd{margin:5px 0 0;font-weight:700;overflow-wrap:anywhere}
.aan-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.aan-metrics strong{display:block;font-size:1.35rem;color:#594084}
.aan-delivery,.aan-footnote,.aan-status-message{margin:0}
.aan-card form{display:flex;align-items:end;flex-wrap:wrap;gap:12px;padding:16px;border-radius:14px;background:#f6f1ff}
.aan-card form h4{flex-basis:100%;margin:0}
.aan-card form label{display:grid;gap:5px;font-weight:700;font-size:.9rem}
.aan-card form label.aan-check{display:flex;align-items:center;gap:8px}
.aan-card form input[type=number]{width:78px;padding:8px;border:1px solid #aea4bf;border-radius:9px;font:inherit}
.aan-drafts ul{padding-left:18px}.aan-drafts li{padding:5px 0}.aan-drafts span{margin-left:10px;color:var(--muted,#625c70)}
.aan-error{color:#a42246;font-weight:700}
.aan-toolbar,.aan-filters,.aan-card-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.aan-toolbar{justify-content:space-between}
.aan-toolbar button[aria-pressed=true]{background:#6e42bc;color:#fff;border-color:#6e42bc}
.aan-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
.aan-notice-list{display:grid;gap:10px;min-width:0;align-content:start}
.aan-notice-list.is-scrollable{max-height:min(82vh,1050px);overflow-y:auto;padding:2px 7px 2px 2px;scrollbar-gutter:stable}
.aan-design-preview{position:sticky;top:16px;min-width:0;padding:22px;border:1px solid #d9d2e7;border-radius:18px;background:#fff;box-shadow:0 12px 34px #2111370d}
.aan-preview-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:16px}
.aan-preview-heading h3{margin:0;font-size:1.2rem}.aan-preview-heading p{margin:5px 0 0;color:var(--muted,#625c70);font-size:.86rem}
.aan-preview-heading>span{color:#7252aa;font-size:.76rem;font-weight:800;white-space:nowrap}
.aan-preview-frame{overflow:hidden;border:1px solid #d9d2e7;border-radius:15px;background:#f2eef8}
.aan-preview-chrome{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 18px;background:#17131f;color:#fff;font-size:.84rem}
.aan-preview-chrome strong{font-weight:850;letter-spacing:.07em;text-transform:uppercase}.aan-preview-chrome span{color:#e7d8ff}
.aan-customer-preview{padding:24px;background:#faf8fd;color:#1c1429;font:400 15px/1.55 system-ui,sans-serif;max-height:min(62vh,690px);overflow-y:auto}
.aan-customer-preview h2{font-size:clamp(1.3rem,1.7vw,1.6rem);line-height:1.2;margin:8px 0 20px;overflow-wrap:anywhere}
.aan-customer-preview .spn-eyebrow{text-transform:uppercase;color:#68419d;font-size:12px;font-weight:800;letter-spacing:.1em;margin:0}
.aan-customer-preview .spn-copy{white-space:pre-wrap;overflow-wrap:anywhere}.aan-customer-preview .spn-launch-copy{white-space:normal}
.aan-customer-preview .spn-intro{margin:0 0 12px}.aan-customer-preview .spn-points{list-style:disc;margin:0 0 18px;padding-left:1.25em}.aan-customer-preview .spn-points li{margin:7px 0;padding-left:3px}.aan-customer-preview .spn-points li::marker{color:#7441c8}
.aan-customer-preview .spn-date{font-weight:700;padding:14px;background:#e9e0f8;border-radius:10px}.aan-customer-preview .spn-explanation{font-size:13px;color:#544761}
.aan-customer-preview .spn-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end;margin-top:15px}.aan-customer-preview .spn-actions span{display:inline-flex;align-items:center;justify-content:center;min-height:44px;box-sizing:border-box;padding:10px 18px;border:1px solid #bcabc9;border-radius:9px;background:#fff;color:#362441;font:600 14px/1.3 system-ui,sans-serif}.aan-customer-preview .spn-actions span.spn-primary{background:#7441c8;color:#fff;border-color:#7441c8}.aan-customer-preview .spn-actions span.spn-feature-link{background:#e7f5f0;border-color:#8bc8ae;color:#1a5a43}
.aan-preview-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-top:15px}.aan-preview-footer span{font-size:.82rem;color:var(--muted,#625c70)}.aan-preview-placeholder{margin:0;padding:28px;border:1px dashed #cdbde4;border-radius:12px;color:var(--muted,#625c70)}
.aan-card.is-selected{border-color:#875ccc;box-shadow:0 0 0 2px #875ccc30}
.aan-card{min-width:0}
.aan-card-compact{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px 14px}
.aan-workspace .aan-card-select{display:grid;gap:5px;min-width:0;width:100%;padding:4px 2px;border:0;border-radius:8px;background:transparent;color:#28243a;text-align:left;box-shadow:none}
.aan-card-select:hover .aan-card-name,.aan-card-select:focus-visible .aan-card-name{color:#5d35a8}
.aan-card-tags{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.aan-card-name{display:block;overflow-wrap:anywhere;font-size:1rem;font-weight:800;line-height:1.32}
.aan-card-detail{display:grid;gap:16px;padding:16px 18px 18px;border-top:1px solid #e8e2ef}
.aan-card-compact .aan-card-actions{justify-content:flex-end;flex-wrap:nowrap;gap:6px}
.aan-workspace .aan-card-actions button{flex:none;min-height:36px;padding:7px 10px;border-radius:9px;font-size:.78rem;white-space:nowrap}
.aan-workspace .aan-card-actions button.aan-icon-button{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;padding:7px}
.aan-icon-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.aan-workspace .aan-card-actions button.aan-expand-toggle{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;padding:0;border:0;border-radius:50%;background:#e8ff63;color:#17191a;box-shadow:0 2px 6px #16201024}
.aan-expand-chevron{display:block;width:12px;height:12px;margin-top:-5px;border-right:3px solid currentColor;border-bottom:3px solid currentColor;transform:rotate(45deg);transition:transform .2s ease,margin .2s ease}
.aan-expand-toggle[aria-expanded=true] .aan-expand-chevron{margin-top:5px;transform:rotate(225deg)}
.aan-workspace .aan-card-actions button.aan-expand-toggle:hover{background:#d7f24b}
.aan-card-title h3{overflow-wrap:anywhere}
.aan-state{flex:none;border-radius:99px;background:#e9e1f8;color:#52317e;padding:5px 10px;font-size:.75rem;font-weight:800}
.aan-summary{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;margin:0;color:var(--muted,#625c70);line-height:1.5}
.aan-quick{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.aan-quick span{background:#f8f6fb;border-radius:10px;padding:9px;font-size:.78rem}
.aan-quick strong{display:block;font-size:1.2rem;color:#594084}
.aan-details summary{cursor:pointer;font-weight:800;color:#5c3b8e}
.aan-details[open]{display:grid;gap:12px}
.aan-card form p{margin:0;color:var(--muted,#625c70);font-size:.83rem}
.aan-card-actions button{padding:8px 11px;font-size:.82rem}
@media(max-width:1050px){.aan-grid{grid-template-columns:1fr}.aan-notice-list.is-scrollable{max-height:min(60vh,690px)}.aan-design-preview{position:static}}
@media(max-width:900px){.aan-dates{grid-template-columns:repeat(2,minmax(0,1fr))}.aan-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.aan-heading,.aan-card-title{flex-direction:column}.aan-dates,.aan-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.aan-heading-actions,.aan-heading-actions button{width:100%}.aan-card form label,.aan-card form button{width:100%}}
.aan-card form{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:12px}
.aan-card form h4{grid-column:1/-1}
.aan-card form .aan-popup-choice{display:flex;grid-column:1/-1;align-items:flex-start;gap:10px;margin:0;font-weight:500;line-height:1.45;min-width:0}
.aan-popup-choice input{flex:none;width:18px;height:18px;margin:2px 0 0;accent-color:#6e42bc}
.aan-card form .aan-days{min-width:130px;grid-column:1}
.aan-days span{display:flex;align-items:center;gap:6px;white-space:nowrap;font-size:.8rem}
.aan-card form .aan-save{white-space:nowrap;grid-column:2}
.aan-workspace .aan-card-actions button.aan-action-preview,.aan-workspace .aan-card-actions button.aan-action-test{background:#efe8fb;border-color:#b79fe0;color:#59318f}
.aan-workspace .aan-card-actions button.aan-action-preview[aria-pressed=true]{background:#6240aa;border-color:#6240aa;color:#fff}
.aan-workspace .aan-preview-footer button{background:#6e42bc;border-color:#6e42bc;color:#fff}
.aan-workspace .aan-card-actions button.aan-action-template{background:#6e42bc;border-color:#6e42bc;color:#fff}
.aan-workspace .aan-card-actions button.aan-action-edit{background:#251e2e;border-color:#251e2e;color:#fff}
.aan-workspace .aan-card-actions button.aan-action-pause{background:#e8e6eb;border-color:#cac5d0;color:#393240}
.aan-workspace .aan-card-actions button.aan-action-remove{background:#fff0f2;border-color:#d47986;color:#a92035}
.aan-workspace .aan-card-actions button.aan-action-restore{background:#e8e6eb;border-color:#cac5d0;color:#393240}
.aan-copy-editor{border:1px solid #d8c7ee;border-radius:14px;padding:18px;background:#faf7ff}
.aan-copy-editor h4{margin:0 0 5px}.aan-copy-editor p{margin:4px 0 14px;line-height:1.5;color:#61546d}
.aan-copy-editor label{display:grid;gap:7px;font-weight:750}.aan-copy-editor textarea{width:100%;box-sizing:border-box;resize:vertical;min-height:125px;padding:12px;border:1px solid #b9a9cb;border-radius:10px;font:inherit;color:#2d203b;background:#fff}
.aan-edit-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:12px}.aan-workspace .aan-edit-actions button:first-child,.aan-workspace .aan-ai-suggestion button{background:#efe8fb;color:#59318f;border-color:#b79fe0}
.aan-ai-result{margin-top:14px;padding:15px;border:1px solid #d1c0eb;background:#fff;border-radius:11px}.aan-ai-result p{margin:6px 0}.aan-ai-result ul{margin:8px 0;padding-left:20px}.aan-ai-result small{color:#70667a}.aan-ai-suggestion{padding:12px;background:#f4effc;border-radius:9px;margin:10px 0}.aan-ai-suggestion p{white-space:pre-wrap;overflow-wrap:anywhere}
.aan-preview-dialog .aan-preview-tools{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding-bottom:14px;border-bottom:1px solid #ded3eb;color:#5a4d67;font-size:12px;font-weight:750}
.aan-preview-tools label{display:flex;align-items:center;gap:7px;cursor:pointer}.aan-preview-tools input{accent-color:#7441c8;width:17px;height:17px}
.aan-preview-dialog .spn-eyebrow{margin-top:17px}.aan-preview-dialog .spn-tabs[hidden]{display:none}.aan-preview-dialog .aan-preview-close{display:flex;justify-content:flex-end;margin-top:18px;padding-top:14px;border-top:1px solid #ded3eb}.aan-preview-dialog .spn-panel .spn-actions{margin-top:14px}
.aan-workspace button:focus-visible,.aan-copy-editor textarea:focus-visible,.aan-preview-dialog :is(button,input):focus-visible{outline:3px solid #58cbe3;outline-offset:3px}
@media(max-width:600px){.aan-card form{grid-template-columns:1fr}.aan-card form .aan-popup-choice,.aan-card form .aan-days,.aan-card form .aan-save{grid-column:auto}.aan-card form label,.aan-card form button{width:auto}.aan-preview-dialog .aan-preview-tools{display:grid}.aan-design-preview{padding:16px}.aan-preview-heading{flex-direction:column}.aan-customer-preview{padding:18px}.aan-customer-preview .spn-actions span{flex:1}}
@media(max-width:700px){.aan-workspace{padding:14px}.aan-card-compact{grid-template-columns:minmax(0,1fr)}.aan-card-compact .aan-card-actions{justify-content:flex-start;flex-wrap:wrap}}
