:root{font-family:"DM Sans",Inter,system-ui,sans-serif;color:#20243a;background:#f7f8fc;font-synthesis:none;text-rendering:optimizeLegibility;--purple:#6558e8;--purple-dark:#5144d5;--ink:#20243a;--muted:#81879a;--line:#eceef4}*{box-sizing:border-box}body{margin:0}.app-shell{min-height:100vh}.sidebar{width:248px;background:#fff;border-right:1px solid var(--line);position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column;padding:25px 16px 14px;z-index:10}.brand{display:flex;align-items:center;gap:11px;color:var(--ink);text-decoration:none;font-size:22px;font-weight:800;letter-spacing:-.8px;padding:0 9px 25px}.brand-mark,.login-logo{display:grid;place-items:center;width:39px;height:39px;border-radius:13px;background:linear-gradient(145deg,#8276ff,#5749d9);color:#fff;font-size:25px;font-weight:800;box-shadow:0 5px 14px #6558e833}.brand-light{color:var(--purple)}.brand small{display:block;font-size:8px;letter-spacing:1.25px;color:#a0a4b3;font-weight:700;margin-top:1px}.workspace{display:flex;align-items:center;gap:10px;background:#f7f7fc;border:1px solid #eeeef7;border-radius:11px;padding:10px;margin-bottom:26px}.workspace-avatar,.profile-avatar,.top-avatar{display:grid;place-items:center;border-radius:10px;background:#eeeaff;color:var(--purple);font-weight:800;width:34px;height:34px}.workspace b,.profile b{display:block;font-size:11px}.workspace small,.profile small{display:block;color:#9a9eac;font-size:10px;margin-top:3px}.chevron{margin-left:auto;color:#969bad}.side-label{font-size:9px;letter-spacing:1.35px;color:#a3a7b5;font-weight:800;padding:0 11px 9px}.side-nav{display:grid;gap:4px}.nav-link{display:flex;align-items:center;gap:12px;text-decoration:none;color:#777d91;padding:11px 12px;border-radius:9px;font-size:12px;font-weight:600}.nav-link:hover{background:#f8f7ff;color:var(--purple)}.nav-link.active{background:#f0efff;color:var(--purple);font-weight:700}.nav-icon{font-size:17px;width:19px;text-align:center}.side-label-lower{margin-top:27px}.sidebar-bottom{margin-top:auto}.help-card{border:1px solid #efeff7;background:#fafaff;border-radius:11px;padding:13px;margin:0 2px 16px}.help-icon{display:grid;place-items:center;background:#eeecff;color:var(--purple);border-radius:8px;width:25px;height:25px;font-weight:800;margin-bottom:9px}.help-card b{font-size:11px}.help-card p{font-size:10px;line-height:1.55;color:#9297a7;margin:5px 0 0}.profile{border-top:1px solid var(--line);padding:14px 4px 0;display:flex;align-items:center;gap:9px}.profile-avatar{border-radius:50%;background:#e9f2ff;color:#4779d5}.profile-dots{margin-left:auto;color:#999}.logout-btn{width:100%;border:0;background:#f7f6ff;color:var(--purple);padding:10px;border-radius:8px;font:inherit;font-size:12px;font-weight:700;margin-bottom:12px;cursor:pointer}.main-area{margin-left:248px;min-height:100vh}.topbar{height:67px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 38px;position:sticky;top:0;z-index:5}.breadcrumbs{font-size:11px;color:#9a9eac}.breadcrumbs span{padding:0 9px;color:#c7cad4}.breadcrumbs b{color:#4a4f63}.top-actions{display:flex;align-items:center;gap:9px;font-size:10px;color:#7e8495}.status-dot{width:7px;height:7px;border-radius:50%;background:#35bd83}.top-avatar{width:29px;height:29px;border-radius:50%;margin-left:10px}.page-section{max-width:1250px;margin:auto;padding:34px 38px 60px}.page-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px}.eyebrow{font-size:9px;letter-spacing:1.5px;font-weight:800;color:#999db0;margin:0 0 8px}.page-heading h1,.login-card h1{font-size:27px;letter-spacing:-1px;margin:0;color:var(--ink)}.wave{color:#f4ae52;font-size:20px}.subtext{color:#9297a7;font-size:11px;line-height:1.7;margin:7px 0 0}.date-chip{border:1px solid var(--line);background:#fff;border-radius:8px;padding:9px 12px;color:#7e8495;font-size:10px}.stats-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-bottom:18px}.stat-card,.quick-card,.editor-card,.history-card{background:#fff;border:1px solid var(--line);border-radius:13px;box-shadow:0 3px 14px #282d4a05}.stat-card{padding:17px 19px}.stat-top{display:flex;align-items:center;justify-content:space-between;color:#777d91;font-size:10px;font-weight:600}.stat-card strong{display:block;font-size:25px;letter-spacing:-1px;margin:13px 0 3px}.stat-card>small{font-size:9px;color:#a0a4b1}.stat-icon,.quick-icon,.large-icon{display:grid;place-items:center;border-radius:9px;font-weight:700}.stat-icon{width:31px;height:31px;font-size:15px}.violet{background:#f0efff;color:#6a5ce8}.blue{background:#eaf3ff;color:#4c88dc}.green{background:#e7f8f0;color:#28a875}.orange{background:#fff2e8;color:#e3944c}.content-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:15px}.welcome-card{min-height:220px;border-radius:13px;padding:23px;background:linear-gradient(115deg,#eeedff,#f7f6ff 62%,#eeefff);display:flex;overflow:hidden;position:relative}.welcome-copy{max-width:62%;position:relative;z-index:1}.welcome-copy h2{font-size:21px;line-height:1.25;letter-spacing:-.7px;margin:0 0 9px}.welcome-copy>p:not(.eyebrow){font-size:10px;line-height:1.7;color:#777d91}.text-link{display:inline-block;color:var(--purple);font-size:10px;font-weight:800;text-decoration:none;margin-top:10px}.text-link span{padding-left:6px}.welcome-art{position:absolute;right:14px;top:24px;width:190px;height:175px}.bot-face{position:absolute;left:70px;top:48px;width:66px;height:66px;border-radius:22px;background:linear-gradient(145deg,#8276ff,#584bd9);box-shadow:0 10px 25px #6357dc55;display:grid;place-items:center;color:white;font-size:40px;font-weight:800;transform:rotate(7deg)}.bubble{position:absolute;background:#fff;border-radius:9px;padding:8px 10px;font-size:9px;box-shadow:0 5px 15px #4442}.bubble-one{top:12px;left:5px}.bubble-two{right:0;bottom:22px}.quick-card{padding:18px}.quick-card h3,.history-card h2,.editor-card h2{font-size:13px;margin:0}.quick-card>a{display:flex;align-items:center;gap:10px;padding:14px 0;border-bottom:1px solid #f1f2f6;text-decoration:none;color:var(--ink)}.quick-card>a:last-child{border:0;padding-bottom:3px}.quick-icon{width:33px;height:33px;font-size:15px}.quick-card b{display:block;font-size:10px}.quick-card small{display:block;color:#999eac;font-size:9px;margin-top:4px}.arrow{margin-left:auto;color:#9da2b1}.editor-layout{display:grid;grid-template-columns:1fr 1fr;gap:16px}.editor-card{padding:21px}.card-heading{display:flex;align-items:center;gap:12px;margin-bottom:21px}.large-icon{width:39px;height:39px;font-size:18px;flex-shrink:0}.card-heading>div{flex:1}.card-heading p,.section-title p{font-size:10px;color:#979cac;line-height:1.6;margin:5px 0 0}.switch{position:relative;display:inline-block;width:35px;height:20px;flex-shrink:0}.switch input{opacity:0;width:0;height:0}.switch span{position:absolute;inset:0;background:#dfe2ea;border-radius:20px;cursor:pointer;transition:.2s}.switch span:before{content:"";position:absolute;width:14px;height:14px;left:3px;top:3px;background:#fff;border-radius:50%;transition:.2s;box-shadow:0 1px 3px #0002}.switch input:checked+span{background:var(--purple)}.switch input:checked+span:before{transform:translateX(15px)}.editor-card>label,.login-card label{display:block;font-size:10px;font-weight:700;color:#555b70;margin:15px 0 7px}.editor-card textarea,.editor-card input,.login-card input{display:block;width:100%;border:1px solid #e5e7ef;border-radius:9px;background:#fcfcfe;padding:12px;color:var(--ink);font:inherit;font-size:11px;line-height:1.6;resize:vertical;outline:none}.editor-card textarea:focus,.editor-card input:focus,.login-card input:focus{border-color:#9c94f4;box-shadow:0 0 0 3px #6b5ce814}.editor-footer{display:flex;align-items:center;justify-content:space-between;margin-top:13px}.hint{font-size:9px;color:#a1a5b2}.primary-btn{border:0;border-radius:8px;background:var(--purple);color:#fff;padding:11px 15px;font:inherit;font-size:10px;font-weight:800;cursor:pointer;box-shadow:0 4px 10px #6558e822}.primary-btn:hover{background:var(--purple-dark)}.primary-btn:disabled{opacity:.65;cursor:wait}.primary-btn span{padding-left:8px}.save-btn{padding:10px 13px}.narrow-editor{max-width:690px}.broadcast-layout{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:start}.compliance-note{font-size:9px;line-height:1.7;color:#9298a9;background:#f8f8fc;border-radius:8px;padding:11px;margin:14px 0}.history-card{padding:20px}.section-title{display:flex;align-items:center;justify-content:space-between}.ghost-btn{border:1px solid #e8e9f0;background:white;border-radius:7px;padding:8px 10px;font:inherit;font-size:9px;color:#777d91;cursor:pointer}.history-list{margin-top:15px}.history-item{padding:13px 0;border-top:1px solid #f0f1f5}.history-item strong{font-size:10px}.history-item p{font-size:10px;color:#777d91;line-height:1.6;overflow-wrap:anywhere}.history-item small{font-size:9px;color:#9da2af}.empty-state{font-size:10px;color:#a0a4b1;padding:20px 0}.connection-card{max-width:690px;display:grid;grid-template-columns:48px 1fr;gap:15px;align-items:center}.connection-symbol{width:45px;height:45px;display:grid;place-items:center;background:#eaf2ff;color:#3679d8;border-radius:12px;font-size:26px;font-weight:800}.connection-card .compliance-note{grid-column:1/-1;width:100%}.connection-pill{display:inline-block;margin-top:8px;padding:5px 9px;background:#eff8f3;color:#25996a;border-radius:20px;font-size:9px;font-weight:700}.login-wrap{min-height:calc(100vh - 67px);display:grid;place-items:center;padding:25px}.login-card{background:white;border:1px solid var(--line);border-radius:16px;padding:34px;width:min(100%,390px);box-shadow:0 10px 40px #20243a0b}.login-logo{margin-bottom:20px}.login-card h1{font-size:23px}.login-card .subtext{margin-bottom:23px}.login-card input{margin-bottom:15px}.full-btn{width:100%;display:flex;justify-content:center;align-items:center}.notice{font-size:10px;color:#b64b4b;min-height:15px}.toast{position:fixed;right:25px;bottom:25px;z-index:20;max-width:min(420px,calc(100vw - 32px));padding:12px 16px;border-radius:10px;background:#24243b;color:white;font-size:11px;box-shadow:0 8px 30px #1b1b3a30;opacity:0;transform:translateY(8px);pointer-events:none;transition:.2s}.toast.show{opacity:1;transform:translateY(0)}.toast.error{background:#9d353d}.mobile-menu{display:none;border:0;background:transparent;font-size:19px;color:#555}.top-status{font-size:10px}@media(max-width:1050px){.page-section{padding:28px 24px}.topbar{padding:0 24px}.welcome-art{opacity:.75}.content-grid,.broadcast-layout{grid-template-columns:1fr}.editor-layout{grid-template-columns:1fr}}@media(max-width:700px){.sidebar{transform:translateX(-100%);transition:transform .2s;box-shadow:10px 0 30px #0001}.sidebar.open{transform:translateX(0)}.main-area{margin-left:0}.mobile-menu{display:block}.topbar{height:58px;padding:0 16px}.page-section{padding:24px 15px 45px}.page-heading{align-items:flex-start}.page-heading h1{font-size:23px}.date-chip{display:none}.stats-grid{grid-template-columns:1fr;gap:9px}.stat-card{padding:13px 16px}.stat-card strong{font-size:22px;margin:7px 0 1px}.content-grid{grid-template-columns:1fr}.welcome-card{min-height:230px}.welcome-copy{max-width:75%}.welcome-art{right:-25px;opacity:.5}.editor-card,.history-card{padding:16px}.editor-layout{grid-template-columns:1fr}.top-status{display:none}.login-wrap{min-height:calc(100vh - 58px)}}[hidden]{display:none!important}

/* Phone and tablet usability */
html{min-width:320px;-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{overflow-x:hidden}
button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}
button,a{touch-action:manipulation}
.editor-card,.history-card,.stat-card,.quick-card,.welcome-card{min-width:0}
.editor-card textarea,.editor-card input,.login-card input,.editor-card select{font-size:16px;max-width:100%}
.history-item,.history-item p,.compliance-note{overflow-wrap:anywhere}
@media(max-width:700px){
 .topbar{gap:10px;padding:0 12px}
 .breadcrumbs{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .top-actions{margin-left:auto;min-width:0}
 .top-avatar{flex:0 0 29px}
 .page-section{width:100%;padding:20px 12px 36px}
 .page-heading{gap:12px;margin-bottom:18px}
 .page-heading>div{min-width:0}
 .page-heading h1{font-size:22px;line-height:1.2;overflow-wrap:anywhere}
 .subtext{font-size:13px}
 .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .stat-card{padding:12px;min-width:0}
 .stat-top{font-size:11px;gap:6px}
 .stat-card strong{font-size:21px}
 .stat-card>small{font-size:10px;line-height:1.4}
 .welcome-card{padding:18px 15px;min-height:215px}
 .welcome-copy{max-width:100%;padding-right:8px}
 .welcome-copy h2{font-size:19px;max-width:260px}
 .welcome-copy>p:not(.eyebrow){font-size:12px;max-width:250px}
 .welcome-art{display:none}
 .quick-card{padding:15px}
 .quick-card b{font-size:12px}
 .quick-card small{font-size:10px}
 .editor-layout,.broadcast-layout,.content-grid{grid-template-columns:minmax(0,1fr);gap:12px}
 .editor-card,.history-card{padding:15px;border-radius:11px}
 .card-heading{gap:9px;margin-bottom:16px}
 .card-heading h2,.editor-card h2,.history-card h2{font-size:15px}
 .card-heading p,.section-title p{font-size:12px}
 .editor-card>label,.login-card label{font-size:12px}
 .editor-card textarea,.editor-card input,.login-card input{padding:12px;font-size:16px;min-height:46px}
 .editor-card textarea{min-height:120px}
 .editor-footer{align-items:stretch;gap:10px;flex-wrap:wrap}
 .editor-footer .hint{width:100%;font-size:10px}
 .primary-btn,.ghost-btn,.logout-btn{min-height:44px;font-size:13px;padding:11px 14px}
 .merge-tags{display:flex;align-items:center;flex-wrap:wrap;gap:7px}
 .merge-tags>span{width:100%;font-size:11px}
 .merge-tags .ghost-btn{min-height:40px}
 .merge-tags .url-button-input{width:100%;min-height:44px}
 .section-title{gap:10px;align-items:flex-start;flex-wrap:wrap}
 .connection-card{grid-template-columns:42px minmax(0,1fr);gap:10px}
 .connection-card .compliance-note{font-size:11px}
 .login-wrap{min-height:calc(100dvh - 58px);padding:16px}
 .login-card{width:100%;max-width:430px;padding:24px 19px}
 .login-card h1{font-size:22px}
 .login-card .subtext{font-size:13px}
 .toast{right:12px;bottom:12px;left:12px;max-width:none;font-size:12px}
 .sidebar{width:min(285px,86vw);padding:18px 14px max(14px,env(safe-area-inset-bottom))}
 .nav-link{min-height:44px;font-size:13px}
}
@media(max-width:380px){
 .stats-grid{grid-template-columns:1fr}
 .page-section{padding-left:10px;padding-right:10px}
 .topbar{padding:0 9px}
 .breadcrumbs{font-size:10px}
 .page-heading h1{font-size:20px}
 .editor-footer .save-btn,.editor-footer>div{width:100%}
 .editor-footer .save-btn{justify-content:center}
}
@media(hover:none){
 .nav-link:hover,.primary-btn:hover{background:initial}
}
