:root{--ink:#11132d;--muted:#697087;--line:#e6e7ef;--soft:#f6f6fa;--purple:#6840e8;--purple-dark:#4c26ba;--nav:#090b1d;--green:#11845b;--red:#c43d51;--amber:#b56b00;--shadow:0 18px 50px rgba(24,20,65,.1)}*{box-sizing:border-box}html{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:#f8f8fb}body{margin:0;font-weight:400}button,input,select,textarea{font:inherit}button,.button{border:0;border-radius:10px;background:var(--purple);color:#fff;font-weight:600;padding:.75rem 1rem;cursor:pointer;text-decoration:none;transition:.18s ease}button:hover,.button:hover{background:var(--purple-dark)}button:disabled{opacity:.45;cursor:not-allowed}.secondary{background:#fff!important;color:var(--ink)!important;border:1px solid var(--line)!important}.icon-button{padding:.5rem;background:transparent;color:inherit;font-size:1.2rem}.icon-button:hover{background:rgba(255,255,255,.1)}input,select,textarea{width:100%;border:1px solid #d9dbe7;border-radius:10px;background:#fff;color:var(--ink);padding:.72rem .8rem;outline:none}input:focus,select:focus,textarea:focus{border-color:var(--purple);box-shadow:0 0 0 3px rgba(104,64,232,.1)}label{display:grid;gap:.45rem;font-size:.82rem;font-weight:600;color:#454b62}.eyebrow{display:block;color:var(--purple);font-size:.68rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase}.brand{display:flex;align-items:baseline;font-size:1.48rem;letter-spacing:-.05em}.brand span{font-weight:400}.brand strong{font-weight:650}.brand i{margin-left:.35rem;color:var(--purple);font-size:.7rem;font-style:normal;font-weight:500;letter-spacing:.04em}.brand-light{color:#fff}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.muted{color:var(--muted)}
.login-view{min-height:100vh;display:grid;place-items:center;padding:2rem;background:radial-gradient(circle at 20% 10%,#e8ddff,transparent 30%),radial-gradient(circle at 90% 90%,#dcecff,transparent 30%),#f7f6fb}.login-card{width:min(430px,100%);padding:2.5rem;border:1px solid #ecebf2;border-radius:24px;background:rgba(255,255,255,.92);box-shadow:var(--shadow)}.login-card .brand{margin-bottom:3rem}.login-card h1{font-size:2.2rem;margin:.45rem 0}.login-card>p{color:var(--muted);margin:0 0 1.7rem}.stack-form{display:grid;gap:1rem}.stack-form button{margin-top:.3rem}.form-status{min-height:1.2em;margin:.2rem 0 0;color:var(--red);font-size:.85rem}
.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:245px;z-index:20;display:flex;flex-direction:column;padding:1.6rem 1rem;background:var(--nav);color:#d7d8e4}.sidebar .brand{padding:.1rem .75rem 2.3rem}.nav-label{padding:0 .75rem;margin:0 0 .6rem;color:#71778e;font-size:.66rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase}.sidebar nav{display:grid;gap:.25rem}.sidebar nav button{display:flex;align-items:center;gap:.8rem;width:100%;padding:.75rem .85rem;border-radius:10px;background:transparent;color:#aeb2c4;text-align:left;font-size:.84rem;font-weight:500}.sidebar nav button .nav-icon{display:grid;place-items:center;width:1.25rem;color:#777d98}.nav-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.sidebar nav button:hover,.sidebar nav button.active{background:#1a1d35;color:#fff}.sidebar nav button.active .nav-icon{color:#9e83ff}.sidebar-user{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:.65rem;margin-top:auto;padding:.85rem .65rem;border-top:1px solid #252840}.sidebar-user .avatar{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:linear-gradient(135deg,#825df0,#3c249c);color:#fff;font-size:.7rem;font-weight:650}.sidebar-user strong,.sidebar-user small{display:block;max-width:115px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar-user strong{font-size:.77rem;font-weight:600}.sidebar-user small{margin-top:.15rem;color:#848aa2;font-size:.65rem}.workspace{min-height:100vh;margin-left:245px;padding:0 2.25rem 3rem}.topbar{position:relative;display:flex;align-items:center;gap:1rem;min-height:108px;padding:1.4rem 0;border-bottom:1px solid var(--line)}.topbar h1{margin:.2rem 0 0;font-size:1.5rem;font-weight:600;letter-spacing:-.03em}.topbar p{margin:.2rem 0 0;color:var(--muted);font-size:.82rem}.top-actions{display:flex;align-items:center;gap:.65rem;margin-left:auto}.notification-button{position:relative;width:42px;height:42px;padding:0;border:1px solid var(--line);border-radius:50%;background:#fff;color:var(--ink);font-size:1.25rem}.notification-button span{position:absolute;top:-5px;right:-5px;display:grid;place-items:center;min-width:19px;height:19px;padding:0 4px;border:2px solid #fff;border-radius:10px;background:var(--red);color:#fff;font-size:.62rem}.notification-popover{position:absolute;z-index:30;top:82px;right:0;width:min(390px,calc(100vw - 2rem));max-height:430px;overflow:auto;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:var(--shadow)}.notification-popover header{position:sticky;top:0;display:flex;justify-content:space-between;padding:1rem;border-bottom:1px solid var(--line);background:#fff}.notification-popover header button{padding:0;background:none;color:var(--purple);font-size:.75rem}.notification-item{display:grid;gap:.2rem;width:100%;padding:1rem;border-radius:0;border-bottom:1px solid var(--line);background:#fff;color:var(--ink);text-align:left}.notification-item:hover{background:#f7f5ff}.notification-item.unread{border-left:3px solid var(--purple);background:#faf9ff}.notification-item span,.notification-item time{color:var(--muted);font-size:.75rem}.empty-notifications{padding:1rem;color:var(--muted)}.view{padding-top:1.6rem;animation:viewIn .28s ease}.period-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem;color:var(--muted);font-size:.8rem;font-weight:600}.period-row select{width:auto}
.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem;margin-bottom:1rem}.metrics article{padding:1.25rem;border:1px solid var(--line);border-radius:16px;background:#fff}.metrics article>span{display:block;color:var(--muted);font-size:.74rem;font-weight:600}.metrics strong{display:block;margin:.45rem 0 .25rem;font-size:1.72rem;font-weight:600;letter-spacing:-.04em}.metrics small{color:#8b90a2;font-size:.7rem}.compact-metrics article{padding:1rem 1.2rem}.compact-metrics strong{font-size:1.45rem}.panel{border:1px solid var(--line);border-radius:16px;background:#fff;overflow:hidden}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1.15rem 1.3rem;border-bottom:1px solid var(--line)}.panel-heading h2{margin:.2rem 0 0;font-size:1.02rem;font-weight:600;letter-spacing:-.015em}.panel-heading p{margin:.35rem 0 0;color:var(--muted);font-size:.78rem}.dashboard-grid{display:grid;grid-template-columns:2fr 1fr;gap:1rem}.chart-panel{grid-row:span 2;min-height:480px}.trend-chart{display:flex;align-items:end;gap:5px;height:385px;padding:2rem 1.5rem 1.2rem}.trend-column{display:grid;grid-template-rows:1fr 22px;align-items:end;gap:.4rem;flex:1;height:100%;min-width:3px}.trend-column span{display:block;min-height:4px;border-radius:5px 5px 2px 2px;background:linear-gradient(180deg,#8d6cf0,var(--purple))}.trend-column small{color:#8b90a2;font-size:.56rem;white-space:nowrap;transform:rotate(-30deg);transform-origin:left top}.bar-list{display:grid;gap:1rem;padding:1.2rem 1.35rem}.bar-item>div{display:flex;justify-content:space-between;gap:1rem;margin-bottom:.4rem;font-size:.76rem}.bar-item i{display:block;height:6px;border-radius:5px;background:#eeeef4;overflow:hidden}.bar-item b{display:block;height:100%;border-radius:5px;background:linear-gradient(90deg,var(--purple),#9d84f5)}
.submission-panel{overflow:visible}.filters{display:grid;grid-template-columns:minmax(220px,2fr) repeat(5,minmax(115px,1fr)) auto auto;gap:.65rem;padding:1rem 1.35rem;border-bottom:1px solid var(--line)}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse}th,td{padding:.85rem 1rem;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle}th{background:#fafafd;color:#6d7287;font-size:.69rem;font-weight:600;letter-spacing:.04em;text-transform:uppercase}td{font-size:.78rem}tbody tr{transition:.15s}tbody tr:hover{background:#faf9ff}tbody tr.unread td:first-child{box-shadow:inset 3px 0 var(--purple)}.contact-cell{display:grid;gap:.18rem;min-width:175px}.contact-cell strong{font-weight:600}.contact-cell span,td small{color:var(--muted);font-size:.7rem}.status-pill,.priority-pill{display:inline-flex;padding:.3rem .55rem;border-radius:20px;background:#ececf2;color:#545a70;font-size:.67rem;font-weight:600;white-space:nowrap}.status-pill.new,.status-pill.sent,.priority-pill.normal{background:#eee9ff;color:#6040bf}.status-pill.contacted,.status-pill.in_progress{background:#e8f1ff;color:#2866ad}.status-pill.qualified,.status-pill.converted,.status-pill.connected{background:#e4f7ef;color:#08724c}.status-pill.spam,.status-pill.failed,.priority-pill.urgent{background:#ffe8ec;color:#ae2e43}.priority-pill.high{background:#fff1dc;color:#9a5900}.priority-pill.low{background:#eef0f4;color:#6a7083}.empty,.loading{display:grid;place-items:center;gap:.4rem;min-height:210px;color:var(--muted)}.pagination{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.35rem}.pagination>div{display:flex;gap:.5rem}
.drawer-backdrop{position:fixed;z-index:40;inset:0;background:rgba(9,11,29,.38);backdrop-filter:blur(3px)}.drawer{position:fixed;z-index:50;inset:0 0 0 auto;width:min(610px,100%);overflow:auto;background:#fff;box-shadow:-20px 0 60px rgba(9,11,29,.18);animation:drawerIn .25s ease}.drawer>header{position:sticky;z-index:2;top:0;display:flex;justify-content:space-between;align-items:center;padding:1.25rem 1.4rem;border-bottom:1px solid var(--line);background:rgba(255,255,255,.96);backdrop-filter:blur(10px)}.drawer h2{margin:.2rem 0 0;font-size:1.15rem;font-weight:600}.drawer>header button{padding:.25rem .5rem;background:none;color:var(--ink);font-size:1.8rem}.drawer-content{padding:1.3rem}.detail-actions{display:flex;gap:.65rem;margin-bottom:1rem}.detail-section{padding:1.1rem 0;border-top:1px solid var(--line)}.detail-section h3{margin:0 0 .85rem;font-size:.8rem;font-weight:600}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:.8rem}.detail-item{display:grid;gap:.2rem}.detail-item span{color:var(--muted);font-size:.65rem;text-transform:uppercase}.detail-item strong{font-size:.78rem;font-weight:600;overflow-wrap:anywhere}.message-box{padding:1rem;border-radius:12px;background:var(--soft);font-size:.82rem;line-height:1.6;white-space:pre-wrap}.management-grid{display:grid;grid-template-columns:1fr 1fr;gap:.8rem}.management-grid button{grid-column:1/-1}.note-form{display:grid;gap:.65rem}.note-form textarea{min-height:90px;resize:vertical}.note-form button{justify-self:start}.notes{display:grid;gap:.65rem;margin-top:1rem}.note{padding:.85rem;border-radius:10px;background:var(--soft)}.note div{display:flex;justify-content:space-between;gap:1rem}.note time{color:var(--muted);font-size:.65rem}.note p{margin:.45rem 0 0;font-size:.78rem;line-height:1.5;white-space:pre-wrap}
.integration-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:.8rem;margin-bottom:1rem}.integration-grid article{display:flex;align-items:center;gap:.7rem;padding:1rem;border:1px solid var(--line);border-radius:14px;background:#fff}.integration-grid strong,.integration-grid small{display:block}.integration-grid strong{font-size:.78rem}.integration-grid small{margin-top:.2rem;color:var(--muted);font-size:.65rem}.connection-dot{width:10px;height:10px;flex:none;border-radius:50%;background:#b6bac7;box-shadow:0 0 0 4px #eff0f4}.connection-dot.connected{background:var(--green);box-shadow:0 0 0 4px #ddf5eb}.settings-panel{margin-bottom:1rem}.settings-form{display:grid;grid-template-columns:1fr 1fr;gap:1rem;padding:1.35rem}.settings-form button,.settings-form .form-status{align-self:end}.status-toggle{padding:.4rem .65rem;background:#eceef3;color:#5e6477;font-size:.68rem}.status-toggle.active{background:#e1f7ed;color:#08724c}.role-control{min-width:145px;padding:.5rem}.reset-password{padding:.5rem .7rem!important;font-size:.68rem}
dialog{width:min(480px,calc(100% - 2rem));padding:0;border:0;border-radius:18px;box-shadow:var(--shadow)}dialog::backdrop{background:rgba(9,11,29,.45);backdrop-filter:blur(3px)}.dialog-card{display:grid;gap:1rem;padding:1.5rem}.dialog-card header{display:flex;justify-content:space-between;align-items:start}.dialog-card h2{margin:.25rem 0 0}.dialog-card header button{color:var(--ink)}.dialog-card>p{margin:0;color:var(--muted);font-size:.85rem}.toast{position:fixed;z-index:100;right:1.5rem;bottom:1.5rem;padding:.85rem 1rem;border-radius:10px;background:var(--ink);color:#fff;box-shadow:var(--shadow);opacity:0;transform:translateY(10px);pointer-events:none;transition:.2s}.toast.show{opacity:1;transform:none}.toast.danger{background:var(--red)}.mobile-only{display:none}
@keyframes drawerIn{from{transform:translateX(40px);opacity:.6}}@keyframes viewIn{from{opacity:.5;transform:translateY(4px)}}
@media(max-width:1180px){.filters{grid-template-columns:2fr repeat(3,1fr) auto auto}.filters label:nth-of-type(4),.filters label:nth-of-type(5){display:none}.integration-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:860px){.mobile-only{display:block}.sidebar{transform:translateX(-100%);transition:.25s}.sidebar.open{transform:none;box-shadow:20px 0 50px rgba(0,0,0,.25)}.workspace{margin-left:0;padding:0 1rem 2rem}.topbar{min-height:92px}.topbar .mobile-only{margin-right:.2rem}.metrics{grid-template-columns:1fr 1fr}.dashboard-grid{grid-template-columns:1fr}.chart-panel{grid-row:auto;min-height:380px}.trend-chart{height:285px}.filters{grid-template-columns:1fr 1fr}.filters .search{grid-column:1/-1}.integration-grid{grid-template-columns:1fr 1fr}.settings-form{grid-template-columns:1fr}}
@media(max-width:560px){.topbar p,.top-actions .secondary{display:none}.topbar h1{font-size:1.35rem}.metrics{gap:.65rem}.metrics article{padding:1rem}.metrics strong{font-size:1.45rem}.filters{grid-template-columns:1fr}.filters .search{grid-column:auto}.panel-heading{align-items:flex-start}.dashboard-grid{gap:.7rem}.integration-grid{grid-template-columns:1fr}.detail-grid,.management-grid{grid-template-columns:1fr}.drawer-content{padding:1rem}th,td{padding:.75rem}.pagination{align-items:flex-start;gap:1rem}.pagination>div{display:grid}.trend-chart{padding-left:.7rem;padding-right:.7rem}}
.trend-chart{display:block}.trend-chart svg{width:100%;height:100%;overflow:visible}.trend-chart rect{fill:var(--purple)}.bar-item progress{display:block;width:100%;height:6px;border:0;border-radius:5px;overflow:hidden;background:#eeeef4}.bar-item progress::-webkit-progress-bar{background:#eeeef4}.bar-item progress::-webkit-progress-value{border-radius:5px;background:linear-gradient(90deg,var(--purple),#9d84f5)}.bar-item progress::-moz-progress-bar{border-radius:5px;background:var(--purple)}
.traffic-period{display:grid;grid-template-columns:1fr;min-width:190px}.traffic-period select{margin-top:.4rem}.traffic-table td:nth-child(2){max-width:36rem;overflow-wrap:anywhere}
/* Editorial workspace */
.editor-open{overflow:hidden}
.blog-tabs{display:flex;gap:1.4rem;margin:0 0 1.3rem;border-bottom:1px solid var(--line)}
.blog-tabs button{border-radius:0;padding:.65rem .1rem .85rem;background:transparent;color:var(--muted);font-size:.85rem;font-weight:500;border-bottom:2px solid transparent}
.blog-tabs button[aria-pressed=true]{color:var(--purple);border-color:var(--purple)}
.blog-actions,.row-actions{display:flex;align-items:center;gap:.65rem;flex-wrap:wrap}.row-actions{gap:.9rem}
.blog-actions button{font-size:.8rem;font-weight:500}.blog-filters{grid-template-columns:minmax(180px,2fr) minmax(120px,1fr) minmax(150px,1fr) auto}.blog-status{padding:0 1.3rem}.blog-status:empty{min-height:0;margin:0}
.text-action{padding:0;background:transparent;border-radius:2px;color:var(--purple);font-size:inherit;font-weight:500;text-align:left}.text-action:hover{color:var(--purple-dark);background:transparent;text-decoration:underline}.text-action.danger-text{color:var(--red)}
.post-name{min-width:220px;max-width:440px;overflow-wrap:anywhere}.post-name>.text-action{display:block;font-size:.87rem}.post-name small{display:block;margin-top:.35rem}.status-pill.published{background:#e5f4ec;color:#176945}.status-pill.draft{background:#f0ecff;color:#6241b0}.status-pill.trash{background:#fcecef;color:#a33747}
.category-heading{margin:1.7rem 0}.category-heading h2{margin:0;font-size:1.45rem;font-weight:500}.category-heading p{margin:.6rem 0 0;color:var(--muted);font-size:.85rem}.category-layout{display:grid;grid-template-columns:minmax(250px,.9fr) minmax(0,2fr);gap:1.8rem;align-items:start}.category-form{padding:1.5rem;display:grid;gap:1.2rem}.category-form h3{margin:0;font-size:1rem;font-weight:550}.category-form label,.post-settings label{font-size:.77rem;font-weight:500}.category-form small,.post-settings small{font-size:.7rem;line-height:1.5;font-weight:400;color:var(--muted)}.category-search{max-width:320px;flex:1}.category-layout #category-count{font-size:.73rem}.parent-note{display:block;margin-top:.3rem}.category-description{max-width:220px;white-space:pre-line;overflow-wrap:anywhere}.category-layout td{overflow-wrap:anywhere}
.blog-editor-dialog{width:100vw;max-width:none;height:100vh;height:100dvh;max-height:none;inset:0;margin:0;border-radius:0;overflow:hidden;background:#fafafb}
.blog-editor{height:100%;display:grid;grid-template-rows:auto minmax(0,1fr);padding:0;gap:0}
.editor-header{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:78px;padding:1rem 1.5rem;border-bottom:1px solid var(--line);background:#fff;z-index:3}
.editor-identity{display:flex;align-items:center;gap:1.2rem;flex-shrink:0}.editor-identity h2{margin:.2rem 0 0;font-size:.85rem;font-weight:500}.editor-identity .eyebrow{font-size:.57rem;letter-spacing:.1em}.editor-header button{font-size:.78rem;font-weight:500;border-radius:6px;white-space:nowrap}.editor-header-actions{display:flex;gap:.6rem;align-items:center;justify-content:flex-end;flex-wrap:wrap}.editor-header-actions .form-status{max-width:280px;margin:0;font-size:.7rem;line-height:1.4;color:var(--muted)}
.editor-workspace{display:grid;grid-template-columns:minmax(0,1fr) 310px;min-height:0;overflow:hidden}.editor-canvas{display:flex;flex-direction:column;min-width:0;overflow:auto;background:#f9f9fb}.editor-tools{position:sticky;top:0;z-index:2;display:flex;align-items:center;flex-wrap:wrap;gap:.3rem;padding:.8rem 1.5rem;border-bottom:1px solid var(--line);background:#fff}.editor-tools button,.upload-button{display:inline-flex;align-items:center;gap:.4rem;padding:.5rem .65rem;border:1px solid transparent;border-radius:5px;background:transparent;color:#474b60;font-size:.75rem;font-weight:500;cursor:pointer}.editor-tools button:hover,.upload-button:hover{background:#f2effa;color:var(--purple)}.editor-tools button:focus-visible,.upload-button:focus-within{outline:2px solid var(--purple);outline-offset:2px}.editor-tools #blog-insert-toggle{background:var(--purple);color:#fff}.tool-divider{height:22px;border-left:1px solid var(--line);margin:0 .35rem}.block-control{position:relative}.block-menu{position:absolute;top:calc(100% + 12px);left:0;display:grid;grid-template-columns:1fr 1fr;gap:.35rem;width:250px;padding:.65rem;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow)}.block-menu button{padding:.9rem .6rem;text-align:left}
.writing-sheet{flex:1;width:calc(100% - 4rem);max-width:850px;min-height:570px;margin:2rem auto;padding:clamp(24px,4vw,64px);background:#fff;border:1px solid #ececf2;border-radius:3px;box-shadow:0 4px 24px #15132704}.post-title{resize:vertical;min-height:106px;padding:0;border:0;box-shadow:none!important;border-radius:0;font-family:inherit;font-size:clamp(28px,3vw,42px);line-height:1.2;letter-spacing:-.03em;font-weight:500;background:transparent;color:var(--ink)}.post-title::placeholder{color:#999ba6}.post-title:focus{outline:0}.blog-content-visual,.blog-content-html{min-height:380px;padding:1.2rem 0;border:0;border-radius:0;outline:0;max-height:none;overflow:visible;background:#fff;font-size:1rem;line-height:1.85}.blog-content-visual:empty::before{content:attr(data-placeholder);color:#9295a2;pointer-events:none}.blog-content-visual:focus-visible{outline:1px solid #e5ddff;outline-offset:12px}.blog-content-visual h2{font-size:1.65rem;font-weight:550;line-height:1.35}.blog-content-visual h3{font-size:1.3rem;font-weight:550}.blog-content-visual img{max-width:100%;height:auto}.blog-content-visual figure{margin:1.5rem 0}.blog-content-visual blockquote,.preview-body blockquote{margin:1.5rem 0;padding:.5rem 1.3rem;border-left:3px solid var(--purple);color:var(--muted)}.blog-content-visual table{display:block;overflow-x:auto}.blog-content-html{width:100%;font-family:ui-monospace,monospace;font-size:.8rem;line-height:1.6;resize:vertical}.editor-canvas-footer{display:flex;flex-wrap:wrap;justify-content:space-between;gap:.5rem;padding:.75rem 1.5rem;background:#fff;border-top:1px solid var(--line);color:var(--muted);font-size:.67rem}
.post-settings{overflow:auto;border-left:1px solid var(--line);background:#fff}.post-settings-heading{display:flex;justify-content:space-between;align-items:center;padding:1.3rem 1.25rem .8rem}.post-settings h3{margin:0;font-size:.87rem;font-weight:550}.publication-note{font-size:.71rem;line-height:1.65;padding:0 1.25rem 1rem;margin:0;color:var(--muted)}.post-settings details{padding:1.15rem 1.25rem;border-top:1px solid var(--line);border-radius:0}.post-settings summary{font-size:.78rem;font-weight:550;cursor:pointer}.post-settings details[open]>summary{margin-bottom:1rem}.post-settings label{display:grid;gap:.45rem;margin-top:1rem}.post-settings input,.post-settings textarea,.post-settings select{font-size:.76rem;border-radius:5px;padding:.65rem;min-width:0}.post-settings input[type=file]{font-size:.67rem;background:#faf9ff;border-style:dashed}.post-settings small{display:block;margin-top:.5rem}.post-settings details>label:first-of-type{margin-top:0}.featured-preview{display:grid;gap:.6rem;margin-top:.8rem}.featured-preview img{width:100%;max-height:180px;object-fit:contain;border-radius:6px;background:#f7f7fb}.featured-preview button{font-size:.7rem;font-weight:500;padding:.5rem}.post-settings #blog-category-status{font-size:.68rem}
.blog-preview-dialog{width:min(1060px,calc(100% - 2rem));max-height:92vh;overflow:auto;background:#f7f7fb}.blog-preview-dialog>header{position:sticky;top:0;z-index:1;display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:1.15rem 1.5rem;background:#fff;border-bottom:1px solid var(--line)}.blog-preview-dialog h2{margin:0;font-size:1rem;font-weight:500}.blog-preview-dialog header p{margin:.35rem 0 0;font-size:.73rem;color:var(--muted)}.preview-article{width:calc(100% - 3rem);max-width:800px;min-height:400px;margin:2rem auto;padding:clamp(20px,5vw,60px);background:#fff;overflow-wrap:anywhere}.preview-article.mobile-preview{max-width:390px;padding:24px}.preview-article h1{font-size:clamp(28px,3vw,42px);font-weight:500;line-height:1.25;letter-spacing:-.025em}.preview-excerpt{font-size:1.1rem;line-height:1.65;color:var(--muted)}.preview-body{font-size:1rem;line-height:1.8}.preview-body h2{font-size:1.6rem;line-height:1.35;font-weight:550}.preview-body h3{font-size:1.3rem;font-weight:550}.preview-body img,.preview-cover{max-width:100%;height:auto}.preview-cover{display:block;margin:0 0 1.8rem}.preview-body figure{margin:1.5rem 0}.preview-body table{display:block;overflow:auto}
.wordpress-import-dialog{width:min(600px,calc(100% - 28px));max-height:88vh;overflow:auto}.wordpress-import-dialog h2{font-size:1.2rem;font-weight:500}.wordpress-import-dialog p{line-height:1.6}.wordpress-import-dialog .import-media-note{padding:12px 14px;border-radius:8px;background:#f1efff;color:#51427d;font-size:.85rem}.wordpress-import-dialog footer{display:flex;justify-content:flex-end;margin-top:18px}
@media(min-width:1700px){.editor-workspace{grid-template-columns:minmax(0,1fr) 350px}.writing-sheet{max-width:920px}}
@media(max-width:1100px){.category-layout{grid-template-columns:minmax(220px,.8fr) minmax(0,1.5fr);gap:1rem}.category-layout .panel-heading{flex-wrap:wrap}.writing-sheet{width:calc(100% - 2rem);padding:2rem;margin:1rem auto}.editor-workspace{grid-template-columns:minmax(0,1fr) 280px}.editor-header-actions .form-status{max-width:150px}}
@media(max-width:800px){.category-layout{grid-template-columns:1fr}.blog-filters{grid-template-columns:1fr 1fr}.blog-filters .search{grid-column:1/-1}.editor-header{padding:.8rem;flex-wrap:wrap}.editor-header-actions{flex:1}.editor-header-actions .form-status{order:4;flex-basis:100%;max-width:none;text-align:right}.editor-identity>div{display:none}.editor-tools{padding:.55rem}.editor-workspace{grid-template-columns:1fr;overflow:auto;display:block}.editor-canvas{overflow:visible}.post-settings{overflow:visible;border-left:0;border-top:1px solid var(--line)}.writing-sheet{min-height:400px}.blog-content-visual,.blog-content-html{min-height:240px}.editor-tools{position:relative}.blog-preview-dialog>header{flex-wrap:wrap}.blog-editor-dialog{overflow:hidden}}
@media(max-width:560px){.blog-actions{width:100%}.blog-actions button{flex:1}.blog-posts-panel .panel-heading,#blog-posts-panel>.panel-heading{flex-wrap:wrap}.blog-filters{grid-template-columns:1fr}.blog-filters .search{grid-column:auto}.writing-sheet{padding:1.3rem}.editor-header{gap:.65rem}.editor-header button{font-size:.7rem;padding:.6rem}.editor-header-actions{gap:.35rem}.editor-canvas-footer{font-size:.62rem}.preview-article{width:calc(100% - 1.5rem);margin:1rem auto}.traffic-period{width:100%}.panel-heading:has(.traffic-period){display:grid}.traffic-period{min-width:0}}

.published-link{padding:.7rem 1rem;border-radius:6px;font-size:.78rem;white-space:nowrap;text-decoration:none}

/* Integration status and controls share one padded content area. */
.integration-panel{margin-bottom:1rem}
.integration-panel-body{padding:1.2rem 1.35rem 1.35rem}
.integration-message{margin:0;color:#454b62;font-size:.86rem;line-height:1.6;max-width:900px;overflow-wrap:anywhere}
.integration-actions{display:flex;align-items:center;flex-wrap:wrap;gap:.65rem;margin-top:1.1rem}
.integration-actions button{min-height:42px;padding:.7rem 1rem;font-size:.8rem;line-height:1.25;border-radius:9px;white-space:normal}
.integration-actions button:disabled{opacity:1;background:#efebfa;color:#82759f;cursor:not-allowed}
.integration-actions button:focus-visible{outline:3px solid #a98cf7;outline-offset:2px}
@media(max-width:560px){.integration-panel-body{padding:1rem}.integration-actions button{flex:1 1 160px}}
.pulse-row-actions{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}
.pulse-row-actions button{padding:.58rem .8rem;font-size:.76rem;white-space:nowrap}
.pulse-mapping{margin:0 0 14px;padding:0 4px}.pulse-mapping summary{cursor:pointer;color:#5b3bd2;font-size:.86rem;font-weight:600;padding:6px 0}.pulse-mapping table{margin-top:6px}.pulse-mapping em{color:#b42318;font-style:normal}

/* Command Centre (0.7.0) */
.cc-banner{margin-bottom:1rem;padding:.9rem 1.1rem;border:1px solid #f3d29b;border-radius:12px;background:#fff8eb;color:#7a4a00;font-size:.84rem;line-height:1.55}.cc-banner code{background:#fff;padding:.1rem .35rem;border-radius:5px}
.cc-status{display:flex;align-items:center;gap:1rem;margin-bottom:1rem;padding:1.1rem 1.3rem;border:1px solid var(--line);border-radius:16px;background:#fff}.cc-status>div{flex:1;min-width:0}.cc-status h2{margin:.2rem 0 .15rem;font-size:1.15rem;font-weight:600}.cc-status p{margin:0;color:var(--muted);font-size:.76rem}
.cc-dot{width:14px;height:14px;flex:none;border-radius:50%;background:#b6bac7;box-shadow:0 0 0 6px #eff0f4}.cc-dot.green{background:var(--green);box-shadow:0 0 0 6px #e3f4ec}.cc-dot.amber{background:#e09400;box-shadow:0 0 0 6px #fdf1d8}.cc-dot.red{background:var(--red);box-shadow:0 0 0 6px #fbe6e9;animation:ccPulse 1.6s ease-in-out infinite}
@keyframes ccPulse{50%{box-shadow:0 0 0 10px #fbe6e900}}
.cc-kpis strong.good{color:var(--green)}.cc-kpis strong.warn{color:var(--amber)}.cc-kpis strong.bad{color:var(--red)}
.cc-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(280px,1fr);gap:1rem;margin-bottom:1rem;align-items:start}.cc-grid--even{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
.cc-side .cc-subhead{border-top:1px solid var(--line)}
.cc-bands{display:grid;gap:.7rem;padding:1rem 1.35rem 1.2rem}.cc-band{display:grid;grid-template-columns:70px 1fr 34px;align-items:center;gap:.7rem;font-size:.78rem}.cc-band progress{width:100%;height:8px;border:0;border-radius:6px;overflow:hidden;background:#eeeef4}.cc-band progress::-webkit-progress-bar{background:#eeeef4}.cc-band.hot progress::-webkit-progress-value{background:#d6455d}.cc-band.warm progress::-webkit-progress-value{background:#e09400}.cc-band.cold progress::-webkit-progress-value{background:#98a2b3}.cc-band.hot progress::-moz-progress-bar{background:#d6455d}.cc-band.warm progress::-moz-progress-bar{background:#e09400}.cc-band.cold progress::-moz-progress-bar{background:#98a2b3}.cc-band strong{text-align:right}
.cc-mail{display:grid;gap:.55rem;padding:1rem 1.35rem 1.3rem;font-size:.78rem;color:#454b62}.cc-mail div{display:flex;justify-content:space-between;gap:1rem}.cc-mail span{color:var(--muted)}.cc-mail strong{text-align:right;overflow-wrap:anywhere}
.cc-checks{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:.75rem;padding:1.1rem 1.35rem 1.35rem}
.cc-check{display:grid;grid-template-columns:auto 1fr;gap:.25rem .75rem;padding:.9rem 1rem;border:1px solid var(--line);border-radius:12px;background:#fcfcfe}.cc-check .cc-dot{width:10px;height:10px;margin-top:.3rem;box-shadow:0 0 0 4px #eff0f4;animation:none}.cc-check.red{border-color:#f2c4cb;background:#fff7f8}.cc-check.amber{border-color:#f3dfb5;background:#fffbf2}
.cc-check strong{font-size:.8rem}.cc-check p{grid-column:2;margin:0;color:#4b5065;font-size:.74rem;line-height:1.45;overflow-wrap:anywhere}.cc-check small{grid-column:2;color:var(--muted);font-size:.68rem}
.cc-group{grid-column:1/-1;margin:.4rem 0 -.2rem;color:var(--muted);font-size:.66rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase}
.score-pill{display:inline-flex;align-items:center;gap:.3rem;padding:.22rem .55rem;border-radius:999px;font-size:.7rem;font-weight:600;white-space:nowrap}.score-pill.hot{background:#fdecef;color:#b42338}.score-pill.warm{background:#fff3dc;color:#9a5b00}.score-pill.cold{background:#f0f2f6;color:#4f566b}.score-pill.unscored{background:#f6f6f9;color:#8b90a2}
.sla-chip{font-size:.72rem;font-weight:600;white-space:nowrap}.sla-chip.overdue,.sla-chip.missed{color:var(--red)}.sla-chip.due_soon{color:var(--amber)}.sla-chip.met{color:var(--green)}.sla-chip.open,.sla-chip.none,.sla-chip.excluded{color:var(--muted);font-weight:500}
.cc-attention-row{cursor:pointer}.cc-empty{padding:1.4rem 1.35rem;color:var(--muted);font-size:.82rem}
.ops-form{grid-template-columns:repeat(2,minmax(0,1fr))}.ops-form fieldset{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.9rem 1rem;margin:0;padding:1rem 0 .2rem;border:0;border-top:1px solid var(--line)}.ops-form fieldset:first-child{border-top:0;padding-top:0}.ops-form legend{padding:0 0 .75rem;font-size:.82rem;font-weight:600;color:var(--ink)}.ops-form .wide{grid-column:1/-1}.ops-form small{display:block;margin-top:.3rem;color:var(--muted);font-size:.68rem;font-weight:400}
.switch-row{grid-column:1/-1;display:flex!important;align-items:center;gap:.6rem;font-size:.8rem!important;font-weight:500}.switch-row input{width:18px;height:18px;margin:0;accent-color:var(--purple)}
.ops-actions{grid-column:1/-1;display:flex;align-items:center;gap:1rem;flex-wrap:wrap}.ops-actions .form-status{margin:0}
.ops-panel .panel-heading{flex-wrap:wrap;gap:1rem}
.lead-insight{display:grid;gap:.6rem}.lead-insight ul{margin:0;padding-left:1.1rem;color:#4b5065;font-size:.78rem;line-height:1.7}
@media(max-width:1100px){.cc-grid{grid-template-columns:1fr}}
@media(max-width:700px){.ops-form,.ops-form fieldset{grid-template-columns:1fr}.cc-status{flex-wrap:wrap}.cc-status button{width:100%}.cc-checks{padding:1rem}}
.cc-grid .panel-heading{flex-wrap:wrap;gap:.8rem}.cc-grid .panel-heading button,#cc-run{white-space:nowrap}
.detail-item .score-pill,.detail-item .sla-chip{font-size:.72rem;text-transform:none;letter-spacing:0}.detail-item .sla-chip.none,.detail-item .sla-chip.open{color:var(--muted)}
@media(max-width:700px){.cc-grid table th:nth-child(3),.cc-grid table td:nth-child(3){display:none}.cc-grid .panel-heading button{width:100%}}
.cc-inline-score{display:none}
@media(max-width:700px){.cc-grid table th:nth-child(2),.cc-grid table td:nth-child(2){display:none}.cc-inline-score{display:block;margin-top:.35rem}.cc-grid td,.cc-grid th{padding:.75rem .8rem}.cc-grid .sla-chip{white-space:normal}}

.sync-summary{display:grid;gap:10px;margin:14px 0}.sync-summary p{margin:0}.sync-row{padding:12px 14px;border:1px solid #e8e4f5;border-radius:10px;background:#fbfaff}.sync-row>strong{font-size:1.15rem;color:#4b2bb0;margin-right:4px}.sync-row ul{margin:8px 0 0;padding-left:18px;font-size:.88rem;line-height:1.5}.sync-row small{color:#6b7089}.sync-failed{border-color:#f3c7c7;background:#fff6f6}.sync-failed>strong{color:#b42318}.wordpress-import-dialog footer{gap:10px}

.media-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:14px;margin:12px 0}.media-card{margin:0;border:1px solid #e8e4f5;border-radius:12px;overflow:hidden;background:#fff;display:flex;flex-direction:column}.media-thumb{display:block;width:100%;aspect-ratio:16/10;object-fit:cover;background:#f4f2fb}.media-pdf{display:grid;place-items:center;color:#4b2bb0;font-weight:700;font-size:1.1rem}.media-card figcaption{display:grid;gap:4px;padding:10px 12px;font-size:.82rem}.media-card strong{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.media-card span{color:#6b7089}.media-card .link-button{justify-self:start;padding:0;border:0;background:none;color:#4b2bb0;font-weight:600;cursor:pointer}.media-migration{padding:12px 14px;border-radius:10px;background:#fff6e5;color:#7a4d00}.media-progress{height:8px;border-radius:99px;background:#efeaff;overflow:hidden;margin:14px 0 6px}.media-progress span{display:block;height:100%;width:0;background:linear-gradient(90deg,#69ddff,#6f45f5);transition:width .3s}
.media-summary{margin:12px 0 0;color:#6b7089;font-size:.88rem}

/* 0.8.0 AI assistant */
.chat-filters{display:flex;gap:.5rem;flex-wrap:wrap;align-items:center}.chat-filters select{width:auto;min-width:170px;padding:.55rem .8rem;font-size:.82rem}
.clickable-row{cursor:pointer}.clickable-row:hover td{background:var(--soft,#f7f5ff)}
.chat-first{max-width:420px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chat-knowledge textarea{width:100%;min-height:380px;font:13px/1.55 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;resize:vertical}
.chat-dialog{width:min(720px,calc(100% - 2rem))}
.chat-dialog .dialog-card header{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem}
.chat-transcript{display:grid;gap:.6rem;max-height:60vh;overflow:auto;padding:.2rem .1rem}
.chat-bubble{max-width:85%;padding:.65rem .85rem;border-radius:14px;font-size:.85rem;line-height:1.55}
.chat-bubble span{display:block;margin-bottom:.2rem;font-size:.68rem;font-weight:600;opacity:.65}
.chat-bubble p{margin:0;white-space:pre-wrap}
.chat-bubble.from-visitor{justify-self:end;background:var(--purple,#6c3df4);color:#fff}
.chat-bubble.from-assistant{justify-self:start;background:#f2f0fa;color:#1d2140}
.chat-dialog-lead{margin:.8rem 0 0;font-size:.85rem}.chat-dialog-lead button{margin-left:.5rem}
@media(max-width:700px){.chat-first{max-width:180px}.chat-filters{width:100%}.chat-filters select{flex:1}}
.detail-actions .danger{margin-left:auto}
