:root{font-family:Inter,"Segoe UI",system-ui,sans-serif;color:#292337;background:#f7f6fa;font-synthesis:none;--purple:#66518c;--purple-deep:#4d3b70;--muted:#726c7e;--line:#ebe8f0;--teal:#337b72;--white:#fff}
*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button,a,input,textarea{ -webkit-tap-highlight-color:transparent}button{border:1px solid #ded8e8;background:#fff;color:#4c405d;border-radius:9px;padding:10px 15px;font-size:13px;font-weight:600;cursor:pointer;transition:background .15s,border-color .15s}button:hover{background:#f5f1fa;border-color:#b7a8ce}button:disabled{opacity:.48;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #8e79b4;outline-offset:3px}[hidden]{display:none!important}a{color:var(--purple-deep)}.skip-link{position:absolute;left:16px;top:-70px;z-index:20;background:#fff;padding:14px}.skip-link:focus{top:16px}.primary-button{background:var(--purple);border-color:var(--purple);color:#fff}.primary-button:hover{background:var(--purple-deep);border-color:var(--purple-deep)}.secondary-button{background:#fff}.danger-button{color:#9a4555;background:#fff7f8;border-color:#eed4db}
.sidebar{width:248px;position:fixed;inset:0 auto 0 0;background:#fff;border-right:1px solid var(--line);padding:36px 20px;display:flex;flex-direction:column;z-index:5}.brand{display:flex;gap:11px;align-items:center;text-decoration:none;color:#49335e;font-size:29px;font-weight:650;letter-spacing:-1.3px;padding:0 10px}.brand-mark{width:44px;height:44px;display:grid;place-items:center;background:#eee8f5;color:#6d528b;border-radius:14px;font-family:Georgia,serif;font-size:35px;font-weight:400}.brand-subtitle{display:block;font-size:9px;letter-spacing:2.1px;color:#81708f;margin-top:2px}.nav-caption{font-size:9px;font-weight:650;letter-spacing:1.8px;color:#98919f;margin:48px 14px 16px}.sidebar nav{display:grid;gap:7px}.sidebar nav button{text-align:left;border:0;background:transparent;display:flex;align-items:center;gap:11px;padding:13px 12px;color:#72687d;font-weight:500;font-size:13px}.sidebar nav button:hover{background:#f7f4fa}.sidebar nav button.is-active{background:#eee9f6;color:#624983;font-weight:650}.nav-icon{width:22px;font-size:19px;line-height:22px;text-align:center;color:#9a88af}.is-active .nav-icon{color:#73538f}.sidebar-note{margin-top:auto;padding:18px 12px 0;display:flex;gap:10px;color:#7c7486;border-top:1px solid var(--line);font-size:11px;line-height:1.7}.sidebar-note strong{font-size:11px;font-weight:600;color:#665d70}.sidebar-note p{margin:5px 0 0}.note-dot{width:7px;height:7px;flex-shrink:0;margin-top:6px;border-radius:50%;background:#87b9a7}
.main-shell{margin-left:248px}.topbar{height:84px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:0 40px;background:#fff}.topbar>p{font-size:12px;color:#756b80}.topbar>p span{color:#c5bdce;margin:0 12px}.session-actions{display:flex;align-items:center;gap:14px}.staff-label{font-size:11px;color:#8f859b}main{max-width:1510px;margin:auto;padding:38px 40px 22px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}.eyebrow{font-size:10px;font-weight:650;letter-spacing:1.9px;color:#9684aa;margin:0 0 10px}h1{font-size:31px;letter-spacing:-1.1px;line-height:1.2;font-weight:600;margin:0 0 10px}.page-heading #subtitle{font-size:13px;color:var(--muted);margin:0;line-height:1.7}#message:empty{display:none}#message{font-size:13px;line-height:1.6;color:#66517e;background:#eee9f5;border-radius:9px;padding:12px 16px;white-space:pre-wrap}.workspace-panel{background:#fff;border:1px solid var(--line);border-radius:16px;padding:24px 26px;box-shadow:0 4px 20px #46345c03}.freshness{font-size:11px;color:#958b9e;margin:0 0 22px}.workspace-intro{padding-bottom:22px}.workspace-intro h3{font-size:21px;letter-spacing:-.6px;font-weight:550;margin:0 0 8px}.workspace-intro p:last-child{font-size:12px;line-height:1.7;margin:0;max-width:680px}.muted{color:var(--muted)}
.queue-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:26px}.queue-card{min-height:126px;padding:17px;text-align:left;display:flex;flex-direction:column;align-items:flex-start;gap:8px;border:1px solid var(--line);border-radius:12px;background:#fff;position:relative}.queue-card[aria-pressed=true]{border-color:#a991c5;background:#f8f5fc;box-shadow:0 0 0 1px #a991c5}.queue-card.attention{background:#fff9f2}.queue-card.ready{background:#f2f8f6}.queue-card.fulfilled{background:#f5f8fb}.queue-label{font-size:11px;font-weight:500;color:#72687d}.queue-number{font-size:30px;line-height:1.1;font-weight:600;letter-spacing:-1px;color:#50415e}.queue-hint{font-size:10px;color:#9a8fa4;font-weight:400}.queue-card.attention .queue-number{color:#ac7748}.queue-card.ready .queue-number{color:#3e8273}.queue-card.closed{background:#faf9fb}.queue-card.closed .queue-number{color:#8d8597}.orders-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);padding-bottom:20px}.orders-toolbar form{display:flex;align-items:flex-end;gap:8px}.orders-toolbar label{margin:0;display:flex;flex-direction:column;gap:6px;font-size:10px;color:#887a95}.orders-toolbar input{width:240px;padding:9px 12px;font-size:12px}.filter-button[aria-pressed=true]{background:#eee9f6;color:#614781;border-color:#ded4eb}.queue-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-top:25px}.queue-heading h3{font-size:16px;font-weight:600;margin:0}.queue-heading p{font-size:10px;text-align:right}.order-table-header,.order-row{display:grid;grid-template-columns:minmax(155px,1.4fr) minmax(120px,1fr) minmax(145px,1.15fr) 100px 104px;gap:14px;align-items:center}.order-table-header{font-size:10px;color:#9a8fA5;background:#faf9fc;border-radius:8px;padding:13px 14px;margin:14px 0 0}.order-row{padding:20px 14px;border-bottom:1px solid #f0edf4;font-size:12px}.order-id{display:block;color:#51415e;font-size:12px;overflow-wrap:anywhere;font-weight:600}.order-date{display:block;font-size:10px;margin-top:7px}.badge{display:inline-block;padding:6px 9px;border-radius:6px;font-size:10px;line-height:1.45;width:fit-content}.badge.positive{color:#327968;background:#edf7f2}.badge.neutral{color:#897443;background:#faf5e8}.fulfillment-label{font-size:11px;color:#6f5a80;line-height:1.6}.attention-note{display:block;font-size:9px;color:#ae7744;margin-top:4px}.order-total{font-size:12px;font-weight:550}.order-open{font-size:11px;padding:8px 10px;color:#74578e;background:#faf8fc}.orders-footer{display:flex;gap:8px;align-items:center;margin-top:18px}.orders-footer p{margin-right:auto;font-size:11px}.orders-footer button{font-size:11px;padding:8px 12px}.empty-state{text-align:center;padding:50px 20px;color:#8f829d}.empty-state h4{color:#5f4f70;font-weight:500;margin:0 0 10px}.empty-state p{font-size:12px;line-height:1.7}.form-status{font-size:12px;line-height:1.7;color:#806086;white-space:pre-wrap}.form-status:empty{display:none}
.welcome-state{text-align:center;padding:65px 20px 80px}.welcome-mark{display:grid;place-items:center;width:64px;height:64px;background:#f0eaf7;border-radius:21px;margin:auto;color:#7c5d96;font:48px Georgia,serif}.welcome-state h2{font-size:24px;font-weight:500;letter-spacing:-.7px;margin:25px 0 12px}.welcome-state p{color:#8f829d;font-size:13px;line-height:1.8}.welcome-tags{display:flex;justify-content:center;gap:8px;margin-top:30px;flex-wrap:wrap}.welcome-tags span{font-size:10px;color:#9b8ca8;background:#faf8fc;padding:8px 12px;border-radius:6px}.page-footer{display:flex;justify-content:space-between;font-size:10px;color:#a299ad;padding-top:24px}.page-footer span{color:#b5adbd}
.card{border-top:1px solid var(--line);padding:24px 0}.card h3{font-size:18px;font-weight:550}.card p{font-size:13px;line-height:1.7}.card form{max-width:680px}.card button{margin:0 8px 8px 0}.card h4{font-size:13px}.card ul{font-size:12px;line-height:1.8;color:#81708f;padding-left:20px}.coupon-code{display:block;overflow-wrap:anywhere;font-family:monospace;font-size:18px;color:#66518c;padding:10px 0}label{display:block;font-size:12px;color:#74647e;margin:15px 0}input,textarea{display:block;box-sizing:border-box;width:100%;padding:11px 12px;border:1px solid #e0d9e8;border-radius:8px;background:#fff;color:#403347;margin-top:7px;font-size:13px}input::placeholder{color:#b0a5ba}textarea{min-height:110px;resize:vertical}input[type=checkbox]{display:inline;width:auto;margin:0 8px}.pager{display:flex;gap:10px;padding-top:20px}dialog{border:1px solid #e0d7ea;border-radius:16px;width:min(560px,90vw);padding:28px;max-height:90vh;color:#47364f;box-shadow:0 18px 75px #35213e2b}dialog::backdrop{background:#30243866;backdrop-filter:blur(3px)}dialog h2{font-size:22px;font-weight:550}#edit-error{font-size:12px;color:#a04d64;line-height:1.6}ul{padding-left:20px}
.order-drawer{margin:16px 16px 16px auto;width:min(760px,calc(100vw - 32px));height:calc(100vh - 32px);max-height:calc(100vh - 32px);padding:26px 30px;overflow-y:auto}.drawer-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;border-bottom:1px solid var(--line);padding-bottom:17px}.drawer-heading .eyebrow{margin:0}.order-hero{padding:25px 0 18px}.order-hero h3{font-size:22px;font-weight:550;overflow-wrap:anywhere;margin:0 0 8px}.order-hero p{font-size:12px;line-height:1.8}.detail-total{font-size:27px;font-weight:500;color:#6a5186}.workflow-note{background:#f5f0fa;border-radius:10px;padding:13px 16px;color:#8b719d;font-size:11px;line-height:1.8;margin:22px 0}.detail-section{border-top:1px solid var(--line);padding:22px 0}.detail-section h4{font-size:16px;font-weight:600;margin:0 0 14px}.detail-section p{font-size:12px;line-height:1.8}.item-line{display:flex;gap:12px;align-items:center;flex-wrap:wrap;font-size:12px;padding:12px 0}.item-line span:first-child{flex:1;color:#594564}.item-line span:nth-child(2){font-size:10px;color:#9f90a9}.item-line strong{font-weight:500}.measure-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 15px}.parcel-card{background:#faf8fc;border:1px solid var(--line);border-radius:11px;padding:18px;margin-top:12px}.parcel-card>strong{font-size:11px;overflow-wrap:anywhere;display:block}.parcel-card>button{margin-right:8px}.parcel-card form{border-top:1px solid var(--line);margin-top:16px;padding-top:2px}.label-link{display:block;margin:14px 0;font-size:12px}.available-refund{color:#527f73;font-weight:550}.refund-section ul{font-size:11px;color:#897592;line-height:2;overflow-wrap:anywhere}.refund-confirmation:not(:empty){background:#fff6f7;border-radius:9px;padding:14px;margin-top:16px}.refund-confirmation p{color:#a16271}
@media(min-width:1500px){.queue-grid{grid-template-columns:repeat(7,minmax(0,1fr))}.queue-card{padding:15px 12px}.queue-label{font-size:10px}.queue-hint{font-size:9px}}
@media(max-width:1150px){.sidebar{width:220px;padding:30px 14px}.main-shell{margin-left:220px}.topbar{padding:0 28px}main{padding:30px 28px 20px}.workspace-panel{padding:22px}.order-table-header{display:none}.order-row{grid-template-columns:minmax(120px,1.4fr) 1fr 1fr}.order-row .order-total{grid-column:2}.order-open{grid-column:3}.orders-toolbar{align-items:flex-start}.orders-toolbar form{flex-wrap:wrap;justify-content:flex-end}.orders-toolbar input{width:200px}.queue-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:800px){.sidebar{position:static;width:auto;padding:20px;border-right:0;border-bottom:1px solid var(--line)}.brand{font-size:25px;padding:0}.brand-mark{width:38px;height:38px;font-size:30px}.brand-subtitle{font-size:8px}.nav-caption,.sidebar-note{display:none}.sidebar nav{display:flex;overflow-x:auto;margin-top:20px;gap:6px;padding-bottom:2px}.sidebar nav button{flex-shrink:0;padding:10px 12px;font-size:11px}.nav-icon{font-size:16px;width:16px}.main-shell{margin-left:0}.topbar{height:64px;padding:0 22px}.topbar>p{font-size:10px}.staff-label{display:none}main{padding:26px 22px 18px}.page-heading{align-items:flex-start}h1{font-size:27px}.page-heading #subtitle{font-size:12px}.workspace-panel{padding:20px}.queue-heading{align-items:flex-start;flex-direction:column;gap:3px}.queue-heading p{text-align:left;line-height:1.7}.orders-toolbar input{width:180px}.order-row{padding:18px 4px}.order-drawer{padding:22px}}
@media(max-width:480px){.sidebar{padding:18px 16px}.sidebar nav{margin-top:16px}.topbar{padding:0 16px}.topbar>p span{margin:0 5px}.topbar>p{max-width:180px;line-height:1.7}.topbar button{font-size:11px;padding:8px 12px}main{padding:24px 16px 18px}.page-heading #subtitle{max-width:235px;font-size:11px}.page-heading>button{font-size:11px;padding:8px 11px}.eyebrow{font-size:9px}h1{font-size:25px}.workspace-panel{padding:18px 16px;border-radius:13px}.freshness{font-size:10px;line-height:1.6}.workspace-intro h3{font-size:18px}.workspace-intro p:last-child{font-size:11px}.queue-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.queue-card{padding:13px;min-height:118px}.queue-number{font-size:27px}.queue-label{font-size:10px}.queue-hint{font-size:9px;line-height:1.6}.orders-toolbar{flex-direction:column;align-items:stretch}.orders-toolbar form{justify-content:flex-start;gap:7px}.orders-toolbar label{flex:1;width:100%;min-width:100%}.orders-toolbar input{width:100%}.orders-toolbar button{font-size:11px}.filter-button{align-self:flex-start}.order-row{grid-template-columns:1fr 1fr;gap:12px}.order-row>div:first-child{grid-column:1/-1}.order-row .badge{grid-column:1}.order-row>div:nth-child(3){grid-column:2}.order-row .order-total{grid-column:1}.order-row .order-open{grid-column:2}.order-id{font-size:13px}.order-date{font-size:10px}.page-footer{font-size:9px}.page-footer span{max-width:160px;text-align:right}.order-drawer{margin:8px;width:calc(100vw - 16px);height:calc(100vh - 16px);max-height:calc(100vh - 16px);padding:20px 17px}.drawer-heading button{font-size:11px}.item-line{align-items:flex-start}.item-line span:first-child{min-width:100%;flex-basis:100%}.measure-grid{gap:0 11px}.measure-grid label{font-size:10px}.measure-grid input{font-size:12px;padding:10px 8px}.welcome-state{padding:40px 5px 50px}.welcome-state h2{font-size:21px}.welcome-state p{font-size:12px}}
.table-scroll{overflow-x:auto;max-width:100%;margin:12px 0}.table-scroll table{border-collapse:collapse;font-size:12px;min-width:560px}.table-scroll th,.table-scroll td{border-bottom:1px solid var(--line);padding:6px 10px;text-align:left;overflow-wrap:anywhere}.contact-list{list-style:none;padding-left:0}.contact-list li{border-bottom:1px solid var(--line);padding:8px 0}.contact-list p{margin:2px 0}.card.mk label{display:block;margin:8px 0}.card.mk select,.card.mk label>input{font:inherit;display:block;width:100%;max-width:100%;margin:6px 0 0}
.card.mk textarea{font:inherit;display:block;width:100%;max-width:100%;box-sizing:border-box;margin:6px 0 0;min-height:3.5em}.card.mk label.check{display:flex;gap:8px;align-items:flex-start}.card.mk label.check>input{width:auto;margin:3px 0 0;flex:none}.consent-channel{border-bottom:1px solid var(--line);padding:8px 0;overflow-wrap:anywhere}.consent-channel p{margin:2px 0}.consent-channel details{margin:4px 0}.consent-channel ol{padding-left:18px;margin:4px 0;font-size:12px}.opted-out{font-weight:600}.consent-warning{border-left:3px solid currentColor;padding-left:8px}
.card.mk label>input[type=checkbox]{display:inline;width:auto;margin:0 8px 0 0}.card.mk fieldset{border:1px solid var(--line);border-radius:8px;margin:12px 0;padding:6px 12px}.card.mk fieldset label{margin:6px 0}.card.mk pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;font-size:13px;background:#faf8fc;border-radius:8px;padding:12px}.card.mk h4{overflow-wrap:anywhere}.card.mk li>button{margin:0 6px 4px 0;text-align:left;overflow-wrap:anywhere;max-width:100%}
.social-media{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}.social-media img{width:120px;height:120px;object-fit:cover;border-radius:8px;border:1px solid var(--line);background:#faf8fc}.card.mk a{overflow-wrap:anywhere}
.insert-bar{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0}.insert-bar button{font-size:12px}

/* Marketing: readable hierarchy, consistent controls, cards, chips and tab bars. Text colours meet WCAG AA (4.5:1) on their backgrounds. */
.card ul{color:#5d5468}
.card.mk>h3{font-size:19px;font-weight:650;letter-spacing:-.3px;color:#2a2235;margin:0 0 4px}
.card.mk>h3+p{color:#5f5869;margin:0 0 14px;max-width:780px}
.card.mk h4{color:#2f2638}
.card.mk .meta,.card.mk p.meta,.card.mk .helper{color:#5f5869;font-size:12.5px;line-height:1.6}
.card.mk p.meta{margin:0}
.notice{background:#eee9f5;color:#4d3b70;border-radius:10px;padding:10px 14px;font-size:13px;line-height:1.6}

/* Form controls: one height, radius, border and focus ring for input, select and textarea; labels above. */
.card.mk label{display:block;margin:12px 0;font-size:12.5px;font-weight:600;color:#4f4459}
.card.mk input:not([type=checkbox]):not([type=file]),.card.mk select,.card.mk textarea{display:block;width:100%;max-width:100%;margin:6px 0 0;border:1px solid #d3cadf;border-radius:8px;background-color:#fff;color:#2f2638;font:inherit;font-size:13.5px;font-weight:400;transition:border-color .15s,box-shadow .15s}
.card.mk input:not([type=checkbox]):not([type=file]),.card.mk select{height:42px;padding:0 12px}
.card.mk textarea{padding:10px 12px;min-height:96px;line-height:1.55}
.card.mk select{appearance:none;-webkit-appearance:none;padding-right:38px;cursor:pointer;background-image:linear-gradient(45deg,transparent 50%,#5f5869 50%),linear-gradient(135deg,#5f5869 50%,transparent 50%);background-position:calc(100% - 20px) 18px,calc(100% - 15px) 18px;background-size:5px 5px;background-repeat:no-repeat}
.card.mk input:not([type=checkbox]):not([type=file]):hover,.card.mk select:hover,.card.mk textarea:hover{border-color:#b7a8ce}
.card.mk input:focus-visible,.card.mk select:focus-visible,.card.mk textarea:focus-visible{outline:none;border-color:var(--purple);box-shadow:0 0 0 3px #8e79b4}
.card.mk input[type=checkbox]{width:18px;height:18px;margin:1px 0 0;flex:none;accent-color:var(--purple);cursor:pointer}
.card.mk input[type=checkbox]:focus-visible{outline:3px solid #8e79b4;outline-offset:2px;box-shadow:none}
.card.mk input[type=file]{display:block;margin-top:6px;font-size:13px;font-weight:400;color:#4f4659;max-width:100%}
.card.mk input[type=file]::file-selector-button{font:inherit;font-weight:600;font-size:12.5px;border:1px solid #d3cadf;background:#fff;color:#4c405d;border-radius:8px;padding:8px 12px;margin-right:10px;cursor:pointer}
.card.mk label.check{display:flex;gap:10px;align-items:flex-start;margin:8px 0;font-weight:400;font-size:13px;line-height:1.5;color:#2f2638}
.card.mk label>input[type=checkbox]{display:inline-block;margin:1px 8px 0 0}
.card.mk label.check>input[type=checkbox]{margin:1px 0 0}
.card.mk fieldset{min-width:0}
.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:0 18px}
.card.mk .form-grid>label{margin:10px 0}

/* Buttons: actions sit in one row (primary first), wrap on small screens. */
.button-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:14px 0 6px}
.card .button-row button{margin:0}
.card-footer{border-top:1px solid var(--line);padding-top:16px;margin-top:22px}
.card button.small-button{padding:6px 12px;font-size:12px;border-radius:8px}
.danger-button:hover{background:#fbeaec;border-color:#e3b3bd;color:#86283a}
.card .link-button{background:none;border:0;padding:2px 0;margin:0;min-height:28px;color:var(--purple-deep);font-size:14px;font-weight:650;text-align:left;text-decoration:underline;text-decoration-color:#cbbfdc;text-underline-offset:3px;overflow-wrap:anywhere}
.card .link-button:hover{background:none;color:var(--purple);text-decoration-color:currentColor}

/* Tab bars: the selected tab is white with a purple underline. */
.tab-bar{display:flex;flex-wrap:wrap;gap:4px;padding:4px;background:#f3f0f7;border:1px solid var(--line);border-radius:12px;width:fit-content;max-width:100%;margin:6px 0 18px}
.tab-bar .filter-button,.card .tab-bar .filter-button{margin:0;border:1px solid transparent;background:transparent;color:#4f4659;padding:9px 16px;border-radius:9px;font-weight:600}
.tab-bar .filter-button:hover{background:#e9e3f2;border-color:transparent}
.tab-bar .filter-button[aria-pressed=true],.card .tab-bar .filter-button[aria-pressed=true]{background:#fff;color:var(--purple-deep);border-color:#d9cfe9;box-shadow:0 1px 3px #3a2a5024,inset 0 -3px 0 var(--purple)}

/* Status chips: one colour per campaign or post state. */
.chip{display:inline-block;padding:1px 9px;border-radius:999px;font-size:11.5px;font-weight:650;line-height:1.7;border:1px solid #e0dbe7;background:#f1eff4;color:#4f4659;white-space:nowrap;vertical-align:baseline}
.chip[data-state=APPROVED]{background:#eee9f6;color:#4d3b70;border-color:#d9cfe9}
.chip[data-state=SCHEDULED],.chip[data-state=RUNNING],.chip[data-state=PENDING],.chip[data-state=PUBLISHING]{background:#e7f0fa;color:#1f4f86;border-color:#c9dbf0}
.chip[data-state=PAUSED],.chip[data-state=MANUAL]{background:#fdf3e3;color:#7a4b0c;border-color:#f0d9b0}
.chip[data-state=COMPLETED],.chip[data-state=PUBLISHED]{background:#e6f4ef;color:#1f5f4c;border-color:#c3e3d6}
.chip[data-state=CANCELLED]{background:#f3f2f5;color:#5f5869;border-color:#e2dfe7}
.chip[data-state=FAILED]{background:#fbeaec;color:#9a2f40;border-color:#efc5cc}
.chip[data-state=UNKNOWN]{background:#fff1e6;color:#8a3f0a;border:1px dashed #d99a63}

/* Calendar and campaign list. */
.month-nav{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:4px 0 12px}
.card .month-nav button{margin:0}
.month-nav h4{margin:0;min-width:130px;text-align:center;font-size:15px}
.agenda{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(260px,100%),1fr));gap:12px}
.agenda-day{border:1px solid var(--line);border-radius:10px;padding:12px 14px;background:#fff}
.agenda-day h4{margin:0 0 4px;font-size:13px;color:#4f4659}
.card ul.agenda-list{list-style:none;padding:0;margin:0;color:#5f5869}
.agenda-list li{display:flex;flex-direction:column;gap:2px;padding:6px 0}
.agenda-list li+li{border-top:1px solid #f1eef5}
.agenda-list .meta{font-size:12.5px;color:#5f5869}
.card ul.campaign-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(320px,100%),1fr));gap:10px;color:#5f5869}
.contact-list li.campaign-item{border:1px solid var(--line);border-radius:10px;padding:12px 16px;display:flex;flex-direction:column;gap:4px;background:#fff}
.campaign-meta{margin:2px 0 4px}
.card ul.fact-list{list-style:none;padding:0;display:grid;gap:6px;color:#2f2638;font-size:13px}
.fact-list li{background:#faf8fc;border:1px solid var(--line);border-radius:8px;padding:8px 12px}

/* Content safety box and warnings: dark text on a light tint, never faded grey. */
.safety-box{background:#f2f8f6;border:1px solid #cfe3dd;border-left:4px solid var(--teal);border-radius:10px;padding:12px 18px 14px;margin:8px 0 18px;color:#1e3f39}
.card.mk .safety-box h4{margin:0 0 6px;font-size:13.5px;color:#1e3f39}
.card .safety-box ul{color:#1e3f39;font-size:12.5px;line-height:1.7;margin:0;padding-left:18px}
.card.mk .consent-warning{border-left:3px solid #c77c2a;background:#fdf6ec;color:#6b3f0f;padding:8px 12px;border-radius:0 8px 8px 0;margin:8px 0}
.card ul>li.consent-warning{list-style:none;margin-left:-18px}

/* Editor sections: numbered steps. */
.card form.wide-form{max-width:none;counter-reset:step}
.card.mk fieldset.step{counter-increment:step;border:1px solid var(--line);border-radius:12px;padding:6px 20px 18px;margin:18px 0;background:#fff}
.card.mk fieldset.step>legend{display:flex;align-items:center;gap:10px;font-size:15px;font-weight:650;color:#2f2638;padding:0 8px;margin-left:-8px}
.card.mk fieldset.step>legend::before{content:counter(step) / "";flex:none;display:inline-grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--purple);color:#fff;font-size:12.5px;font-weight:700}
.card.mk fieldset.option-list,div.option-list{border:0;padding:0;margin:12px 0}
.card.mk fieldset.option-list>legend{font-size:12.5px;font-weight:600;color:#4f4659;padding:0;margin-bottom:2px}
.card.mk .option-list label.check{border:1px solid var(--line);border-radius:9px;padding:9px 12px;background:#fcfbfe;margin:6px 0;cursor:pointer}
.card.mk .option-list label.check:has(input:checked){border-color:#b7a8ce;background:#f6f2fb}
.upload-row{display:flex;flex-wrap:wrap;align-items:flex-end;gap:4px 12px}
.card.mk .upload-row label{flex:1 1 260px;margin:8px 0}
.card .upload-row button{margin:0 0 8px}
.card.mk fieldset.day-picker{border:0;padding:0;margin:8px 0;display:flex;flex-wrap:wrap;gap:4px 18px}
.card.mk fieldset.day-picker>legend{font-size:12.5px;font-weight:600;color:#4f4659;padding:0;margin-bottom:4px}
.card.mk fieldset.day-picker label{display:inline-flex;align-items:center;margin:4px 0;font-weight:500;color:#2f2638}

/* Per-site cards with a character counter badge. */
.site-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(300px,100%),1fr));gap:16px;align-items:start;margin-top:8px}
.card.mk .site-card{border:1px solid #e3ddeb;border-radius:12px;padding:4px 16px 14px;margin:0;background:#fcfbfe;min-width:0;overflow-wrap:anywhere}
.card.mk .site-card.review-card{padding:14px 16px}
.card.mk fieldset.site-card>legend,.card.mk .review-card>h4{font-size:14px;font-weight:650;color:#2f2638;padding:0 6px;margin:0}
.card.mk .review-card>h4{padding:0;margin-bottom:8px}
.card.mk fieldset.site-card>legend::before,.card.mk .review-card>h4::before{content:"";display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:8px;background:var(--dot,#8e79b4)}
.site-card[data-channel=FACEBOOK]{--dot:#3b62ad}.site-card[data-channel=INSTAGRAM]{--dot:#b8327a}.site-card[data-channel=X]{--dot:#292337}
.counter-badge{display:inline-block;margin:8px 0 4px;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:600;line-height:1.5;background:#eef6f4;color:#1f5a51;border:1px solid #cfe5df}
.card.mk p.counter-badge{font-size:12px;line-height:1.5}
.counter-badge[data-level=warn]{background:#fdf3e3;color:#7a4b0c;border-color:#f0d9b0}
.counter-badge[data-level=over]{background:#fbeaec;color:#9a2f40;border-color:#efc5cc}
.insert-tools .helper{margin:6px 0 2px}
.card .insert-bar button{font-size:12px;padding:6px 10px;margin:0}

/* Checklists with pass / fail / check-by-eye icons. */
.card.mk fieldset.checklist{border:1px solid var(--line);border-radius:12px;padding:6px 18px 10px;margin:16px 0;background:#fff}
.card.mk fieldset.checklist>legend{font-size:14px;font-weight:650;color:#2f2638;padding:0 6px}
.card.mk .checklist label.check{padding:8px 0;margin:0;border-bottom:1px solid #f1eef5}
.card.mk .checklist label.check:last-of-type{border-bottom:0}
.card.mk label.check-item{display:grid;grid-template-columns:auto auto 1fr;column-gap:10px;align-items:start}
.check-item .check-result{grid-column:3;font-size:12.5px}
.check-icon{position:relative;width:20px;height:20px;border-radius:50%;display:inline-block;background:#f1eff4;border:1px solid #d3cadf}
.pass .check-icon{background:#e3f2ec;border-color:#8fc6b1}
.pass .check-icon::after{content:"";position:absolute;left:6px;top:2px;width:5px;height:10px;border:solid #1f6f56;border-width:0 2px 2px 0;transform:rotate(45deg)}
.fail .check-icon{background:#fbeaec;border-color:#e6a9b4}
.fail .check-icon::before,.fail .check-icon::after{content:"";position:absolute;left:8px;top:3.5px;width:2px;height:11px;background:#9a2f40;transform:rotate(45deg)}
.fail .check-icon::before{transform:rotate(-45deg)}
.manual .check-icon{background:#fdf3e3;border-color:#e9c98f}
.manual .check-icon::after{content:"";position:absolute;left:4.5px;top:8px;width:9px;height:2px;background:#8a5a12}
.pass .check-result{color:#1f5f4c}.fail .check-result{color:#9a2f40;font-weight:600}.manual .check-result{color:#7a4b0c}

/* Hashtag library: compact set cards with kind badge, hashtag chips and date badge. */
.card.mk .panel{border:1px solid var(--line);border-radius:12px;background:#fcfbfe;padding:4px 20px 14px;margin:16px 0;max-width:none}
.card.mk .panel>h4,.card.mk .panel form>h4{font-size:14.5px;margin:14px 0 2px}
.card.mk h4.section-title{font-size:15px;margin:26px 0 4px}
.card ul.set-grid{list-style:none;padding:0;margin:10px 0 0;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(280px,100%),1fr));gap:14px;color:#2f2638}
.set-card{border:1px solid #e3ddeb;border-radius:12px;padding:14px 16px;background:#fff;display:flex;flex-direction:column;gap:10px;box-shadow:0 1px 2px #2c1f3c0d;min-width:0}
.set-head{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.set-head strong{font-size:14.5px;color:#2f2638;overflow-wrap:anywhere}
.kind-badge{font-size:11px;font-weight:650;padding:2px 9px;border-radius:999px;background:#eee9f6;color:#4d3b70;border:1px solid #d9cfe9;white-space:nowrap}
.kind-badge[data-kind=TOPIC]{background:#e6f3f1;color:#1f5a51;border-color:#c7e2dc}
.kind-badge[data-kind=AWARENESS]{background:#fdf3e3;color:#7a4b0c;border-color:#f0d9b0}
.card.mk p.tag-chips{display:flex;flex-wrap:wrap;gap:6px;margin:0}
.tag-chip{font-size:12px;line-height:1.5;padding:2px 9px;border-radius:999px;background:#f5f2f9;border:1px solid #e6e0ee;color:#3f3550;overflow-wrap:anywhere}
.card.mk p.date-badge{align-self:flex-start;margin:0;font-size:11.5px;font-weight:600;line-height:1.5;padding:2px 9px;border-radius:6px;background:#fdf3e3;color:#7a4b0c;border:1px solid #f0d9b0}
.set-card .button-row{margin:auto 0 0;padding-top:2px}
.set-card form{border-top:1px solid var(--line);padding-top:4px}
.card.mk .set-card .consent-warning{margin:0}

/* Posts (publications) and the results face-off. */
.contact-list li.pub-item{border:1px solid var(--line);border-left:4px solid #d3cadf;border-radius:10px;padding:10px 16px;margin:10px 0;background:#fff}
.pub-item[data-state=PUBLISHED]{border-left-color:var(--teal)}
.pub-item[data-state=MANUAL],.pub-item[data-state=PAUSED]{border-left-color:#c77c2a}
.pub-item[data-state=FAILED]{border-left-color:#b8455a}
.pub-item[data-state=UNKNOWN]{border-left-color:#d99a63}
.card.mk p.pub-head{font-weight:600;color:#2f2638;margin:0 0 4px}
.faceoff{border:1px solid var(--line);border-radius:12px;padding:6px 20px 16px;margin:18px 0;background:#fff}
.faceoff>h4{font-size:15px;margin:12px 0 4px}
.data-table table{width:100%;border-collapse:separate;border-spacing:0;font-size:13px}
.data-table th{background:#f6f3fa;color:#4f4659;font-weight:650;font-size:12px;padding:10px 12px;border-bottom:1px solid #e3ddeb;white-space:nowrap}
.data-table td{padding:10px 12px;border-bottom:1px solid #f0edf4;vertical-align:top;color:#2f2638}
.data-table small{color:#5f5869}
.data-table tr.winner-row td{background:#eef7f3}
.data-table tr.winner-row td:first-child{box-shadow:inset 4px 0 0 var(--teal);font-weight:650}
.data-table .badge.positive{margin-left:6px;padding:2px 8px;font-weight:650;color:#1f5f4c;background:#d9efe6}
.card.mk p.verdict{font-weight:600;color:#4f4659}
.card.mk p.verdict.has-winner{color:#1f5f4c}

@media(max-width:600px){
.tab-bar{width:100%}
.tab-bar .filter-button,.card .tab-bar .filter-button{flex:1 1 calc(50% - 4px);min-height:44px;padding:8px 10px;text-align:center}
.card.mk button{min-height:44px}
.card.mk .link-button{min-height:36px}
.button-row>button{flex:1 1 auto}
.card.mk fieldset.step{padding:4px 14px 14px;border-radius:10px}
.card.mk .panel{padding:2px 14px 12px}
.faceoff{padding:4px 12px 12px}
.month-nav h4{min-width:0;flex:1 1 100%;text-align:left;order:-1}
}
.card ul.campaign-list{padding-left:0}
.data-table td:first-child,.data-table th:first-child{overflow-wrap:normal;word-break:normal;min-width:110px}
.data-table table{min-width:640px}
.check-item .check-result{margin-top:2px}
.card.mk section.step{counter-increment:step;border:1px solid var(--line);border-radius:12px;padding:0 20px 18px;margin:18px 0;background:#fff}
.card.mk section.step>h4.step-title{display:flex;align-items:center;gap:10px;font-size:15px;font-weight:650;color:#2f2638;margin:-13px 0 4px -8px;padding:0 8px;background:#fff;width:fit-content;max-width:100%}
.card.mk section.step>h4.step-title::before{content:counter(step) / "";flex:none;display:inline-grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--purple);color:#fff;font-size:12.5px;font-weight:700}
@media(max-width:600px){.card.mk section.step{padding:0 14px 14px;border-radius:10px}}
.card.mk .site-card textarea{min-height:150px}
