/* DRS — colours and shapes drawn from the original drs.jpg artwork. */
:root{color-scheme:light;--bg:#f8f6f0;--paper:#fff;--raised:#fff;--tint:#f0eee6;--ink:#242d25;--muted:#60695f;--line:#dedfd5;--accent:#b83723;--accent-ink:#ac301d;--on-accent:#fff;--soft:#ffebe2;--olive:#475e38;--green-bg:#e9f4e4;--green:#345d2b;--amber-bg:#fff1cf;--amber:#805500;--red-bg:#ffebe8;--red:#a52f32;--blue-bg:#e8f0ff;--blue:#355c9a;--bubble-out:#fce6d9;--shadow:0 6px 25px #29321f07;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}
:root[data-theme=dark]{color-scheme:dark;--bg:#111612;--paper:#191e1b;--raised:#212822;--tint:#242d25;--ink:#f5f3e9;--muted:#b9c1b6;--line:#3d493d;--accent:#ff805d;--accent-ink:#ff9d7b;--on-accent:#25170e;--soft:#3e2920;--olive:#c3dc8c;--green-bg:#273d29;--green:#c1e79d;--amber-bg:#3d321c;--amber:#f3d384;--red-bg:#402726;--red:#ffb4ab;--blue-bg:#263349;--blue:#b9d0ff;--bubble-out:#3c2b22;--shadow:0 6px 25px #00000014}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-size:14px;line-height:1.5}button,input,textarea,select{font:inherit}button{cursor:pointer;border:0;color:inherit}button:disabled{opacity:.55;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid var(--accent);outline-offset:3px}svg{width:20px;height:20px;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}h1,h2,h3,p{margin:0}h1{font-size:29px;line-height:1.25;letter-spacing:-.9px;font-weight:750}h2{font-size:20px;letter-spacing:-.4px}h3{font-size:16px}small{font-size:12px}a{color:var(--accent-ink)}.muted{color:var(--muted)}.eyebrow{font-size:11px;letter-spacing:1.7px;font-weight:750;color:var(--accent-ink);text-transform:uppercase}.shell{display:flex;min-height:100dvh}
.sidebar{position:fixed;inset:0 auto 0 0;width:252px;padding:24px 16px;background:var(--paper);border-right:1px solid var(--line);display:flex;flex-direction:column;z-index:12}.brand{display:flex;align-items:center;gap:12px;margin:0 0 30px;padding:0 3px}.brand-logo{width:78px;height:86px;border-radius:17px;object-fit:contain;background:#fff;border:1px solid #e7e1d6;padding:3px;flex-shrink:0}.brand-copy{min-width:0}.brand-copy strong{display:block;font-size:17px;letter-spacing:1px;font-weight:850}.brand-copy span{display:block;font-size:12px;font-weight:650;color:var(--accent-ink);margin:3px 0 7px}.brand-copy small{display:block;font-size:10px;color:var(--muted)}.nav-group-label{padding:0 15px 12px;font-size:10px;letter-spacing:1.8px;color:var(--muted);font-weight:650}.nav-item{display:flex;align-items:center;gap:13px;width:100%;padding:13px 15px;margin-bottom:6px;border-radius:13px;background:transparent;color:var(--muted);text-align:left;font-size:14px;font-weight:600;transition:background .15s}.nav-item:hover{background:var(--tint);color:var(--ink)}.nav-item.active{background:var(--soft);color:var(--accent-ink);box-shadow:inset 3px 0 var(--accent)}.nav-badge{display:grid;place-items:center;margin-left:auto;background:var(--accent);color:var(--on-accent);font-size:11px;border-radius:7px;min-width:23px;height:23px;padding:0 5px}.sidebar-footer{margin-top:auto;padding:20px 15px 0}.sidebar-footer .eyebrow{font-size:9px;letter-spacing:1.2px;color:var(--muted)}.sidebar-footer p{font-size:12px;color:var(--muted);margin-top:9px}.status-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--olive);margin-right:6px}
.workspace{margin-left:252px;width:calc(100% - 252px);min-width:0}.topbar{position:sticky;top:0;z-index:10;min-height:76px;padding:14px 32px;display:flex;align-items:center;justify-content:space-between;gap:16px;background:var(--paper);border-bottom:1px solid var(--line)}.crumb{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:12px}.crumb>svg{width:14px;height:14px}.crumb strong{font-weight:650;color:var(--ink)}.mobile-brand{display:none}.top-actions{display:flex;align-items:center;gap:12px}.date-label{font-size:12px;color:var(--muted)}.icon-button{display:inline-flex;justify-content:center;align-items:center;width:38px;height:38px;flex-shrink:0;border-radius:11px;background:transparent;color:var(--muted)}.icon-button:hover{background:var(--soft);color:var(--accent-ink)}[data-action=theme-toggle]{background:var(--tint);color:var(--ink);border:1px solid var(--line)}.avatar{display:grid;place-items:center;flex-shrink:0;width:39px;height:39px;border-radius:13px;background:var(--soft);color:var(--accent-ink);font-size:13px;font-weight:750}.avatar.mint{background:var(--green-bg);color:var(--green)}.avatar.rose{background:var(--red-bg);color:var(--red)}.avatar.blue{background:var(--blue-bg);color:var(--blue)}.profile-button{display:flex;gap:10px;align-items:center;text-align:left;background:transparent;padding:0}.profile-button strong{display:block;font-size:13px;font-weight:650}.profile-button small{font-size:11px;color:var(--muted)}#main{max-width:1500px;margin:0 auto;padding:28px 32px 40px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:24px}.page-heading p{font-size:13px;color:var(--muted);margin-top:7px}.actions{display:flex;gap:9px;align-items:center}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--accent);color:var(--on-accent);border-radius:11px;padding:11px 16px;font-size:13px;font-weight:700;white-space:nowrap;min-height:42px;box-shadow:0 4px 12px #c1422020}.button svg{width:17px;height:17px}.button:hover{filter:brightness(.94)}.button.secondary{background:var(--paper);border:1px solid var(--line);color:var(--ink);box-shadow:none}.button.soft{background:var(--soft);color:var(--accent-ink);box-shadow:none}.button.danger{background:var(--red-bg);color:var(--red);box-shadow:none}.button.small{font-size:12px;min-height:34px;padding:7px 11px;border-radius:9px}.button.wide{width:100%}.text-link{display:inline-flex;align-items:center;gap:6px;background:transparent;color:var(--accent-ink);padding:0;font-size:12px;font-weight:650}.text-link svg{width:16px;height:16px}
.dashboard-welcome{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:25px;padding:3px 0 23px;border-bottom:1px solid var(--line)}.dashboard-welcome .eyebrow{margin-bottom:8px;font-size:10px}.dashboard-welcome h1{font-size:30px}.greeting-dot{color:var(--accent)}.dashboard-welcome>div>p:last-child{color:var(--muted);font-size:13px;margin-top:7px}.welcome-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end}.inbox-pill{display:flex;align-items:center;gap:8px;padding:11px 13px;border-radius:11px;border:1px solid var(--line);background:var(--paper);color:var(--ink);font-size:12px}.inbox-pill>svg:first-child{color:var(--accent-ink);width:18px}.inbox-pill>svg:last-child{width:14px}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:24px}.stat{position:relative;text-align:left;color:var(--ink);overflow:hidden;padding:19px 21px;background:var(--paper);border:1px solid var(--line);border-radius:17px;box-shadow:var(--shadow)}.stat:hover{border-color:var(--accent)}.stat:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.stat:before{content:'';position:absolute;left:0;top:18px;bottom:18px;width:3px;background:var(--accent);border-radius:3px}.stat:nth-child(2):before{background:var(--green)}.stat:nth-child(3):before{background:var(--amber)}.stat:nth-child(4):before{background:var(--blue)}.stat-top{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:12px;color:var(--muted);font-weight:550}.stat-icon{width:35px;height:35px;display:grid;place-items:center;border-radius:11px;background:var(--soft);color:var(--accent-ink)}.stat-icon.green{background:var(--green-bg);color:var(--green)}.stat-icon.amber{background:var(--amber-bg);color:var(--amber)}.stat-icon.pink{background:var(--blue-bg);color:var(--blue)}.stat-icon svg{width:19px;height:19px}.stat-value{display:block;font-size:34px;font-weight:750;letter-spacing:-1.2px;margin-top:7px}.stat-bottom{display:block;color:var(--muted);font-size:12px;margin-top:2px}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr);gap:20px}.panel{background:var(--paper);border:1px solid var(--line);border-radius:17px;box-shadow:var(--shadow);overflow:hidden}.panel-head{padding:22px 22px 18px;display:flex;justify-content:space-between;align-items:center;gap:12px}.panel-head h2{font-size:17px;font-weight:750}.panel-head p{font-size:12px;color:var(--muted);margin-top:5px}.table-scroll{overflow:auto}.data-table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}.data-table th{font-size:10px;letter-spacing:.7px;color:var(--muted);font-weight:700;background:var(--tint);padding:12px 20px;border-bottom:1px solid var(--line)}.data-table td{font-size:13px;padding:16px 20px;border-bottom:1px solid var(--line)}.data-table tr:last-child td{border-bottom:0}.table-person{display:flex;align-items:center;gap:9px}.table-person .avatar{width:33px;height:33px;border-radius:10px;font-size:11px}.table-person small{display:block;color:var(--muted);font-size:11px}.order-id{color:var(--accent-ink);font-size:12px;font-weight:700}.badge{display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border-radius:7px;white-space:nowrap;font-size:11px;font-weight:650;background:var(--soft);color:var(--accent-ink)}.badge.working{background:var(--amber-bg);color:var(--amber)}.badge.done,.badge.published{background:var(--green-bg);color:var(--green)}.badge.no,.badge.failed{background:var(--red-bg);color:var(--red)}.badge.draft{background:var(--tint);color:var(--muted)}.badge.publishing{background:var(--blue-bg);color:var(--blue)}.quick-actions{padding:0 22px 15px}.quick-action{width:100%;display:flex;align-items:center;gap:12px;text-align:left;padding:15px 0;background:transparent;border-bottom:1px solid var(--line);color:var(--ink)}.quick-action:last-child{border:0}.quick-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:var(--soft);color:var(--accent-ink);flex-shrink:0}.quick-action:nth-child(2) .quick-icon{background:var(--green-bg);color:var(--green)}.quick-action:nth-child(3) .quick-icon{background:var(--amber-bg);color:var(--amber)}.quick-action strong{display:block;font-size:13px;font-weight:650}.quick-action small{font-size:12px;color:var(--muted)}.quick-action>svg{margin-left:auto;width:16px;color:var(--muted)}.intro-note{display:flex;align-items:flex-start;gap:8px;padding:17px 22px;color:var(--muted);font-size:12px;border-top:1px solid var(--line)}.intro-note svg{width:16px;height:16px;color:var(--olive);margin-top:1px}
.toolbar{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:20px}.searchbox{display:flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:11px;background:var(--paper);padding:0 13px;width:300px;height:44px;color:var(--muted)}.searchbox svg{width:17px;height:17px}.searchbox input{background:transparent;color:var(--ink);border:0;outline:0;min-width:0;width:100%;font-size:13px}.searchbox input::placeholder{color:var(--muted);opacity:1}.tabs{display:flex;gap:4px;flex-wrap:wrap}.tab{padding:9px 12px;background:transparent;border-radius:9px;color:var(--muted);font-size:12px;font-weight:600}.tab.active{background:var(--soft);color:var(--accent-ink)}.result-count{color:var(--muted);font-size:12px}.empty{display:flex;align-items:center;flex-direction:column;text-align:center;padding:44px 20px;color:var(--muted)}.empty-icon{display:grid;place-items:center;width:58px;height:58px;background:var(--tint);color:var(--olive);border-radius:18px;margin-bottom:16px}.empty-icon svg{width:26px;height:26px}.empty h3{font-size:15px;font-weight:700;color:var(--ink);margin-bottom:7px}.empty p{max-width:330px;font-size:13px;line-height:1.7}.empty .button{margin-top:18px}.cards-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.contact-card{padding:22px}.contact-top{display:flex;align-items:center;gap:11px;margin-bottom:18px}.contact-top .avatar{width:44px;height:44px}.contact-top .icon-button{margin-left:auto}.contact-top strong{font-size:14px}.contact-top small{display:block;font-size:12px;color:var(--muted)}.contact-details{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--muted);margin:9px 0}.contact-details svg{width:15px;height:15px}.chips{display:flex;flex-wrap:wrap;gap:6px;min-height:27px;margin:13px 0}.chip{font-size:11px;border-radius:7px;padding:4px 8px;background:var(--tint);color:var(--muted)}.contact-card>.button{margin-top:8px}.review-card{padding:22px;display:flex;flex-direction:column;gap:16px}.review-header{display:flex;justify-content:space-between;align-items:center;gap:7px}.stars{letter-spacing:2px;color:var(--amber);font-size:18px}.review-text{font-size:14px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}.review-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:auto}.person-name{font-size:13px;font-weight:650}.review-footer small{display:block;color:var(--muted);font-size:11px}.news-card{padding:23px}.card-top{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:18px}.news-card h3{font-size:18px;margin-bottom:9px}.excerpt{white-space:pre-wrap;overflow-wrap:anywhere;color:var(--muted);font-size:14px;line-height:1.8}.news-meta{display:flex;gap:15px;flex-wrap:wrap;font-size:12px;color:var(--muted);padding:15px 0;margin-top:13px;border-top:1px solid var(--line)}.news-meta span{display:flex;align-items:center;gap:5px}.news-meta svg{width:15px;height:15px}.news-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.news-actions .icon-button{margin-left:auto}.news-progress{height:5px;background:var(--tint);border-radius:5px;overflow:hidden;margin-bottom:14px}.news-progress div{height:100%;background:var(--accent);border-radius:5px}
.settings-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:21px}.form-panel{padding:25px}.form-panel h2{font-size:18px;margin-bottom:8px}.description{font-size:13px;color:var(--muted);line-height:1.75;margin-bottom:22px}.field{margin-bottom:20px}.field label{display:block;color:var(--ink);font-size:13px;font-weight:650;margin-bottom:8px}.input,.textarea,.select{width:100%;padding:11px 13px;font-size:14px;color:var(--ink);background:var(--paper);border:1px solid var(--line);border-radius:10px;outline:0}.textarea{min-height:120px;resize:vertical;line-height:1.8}.input:focus,.textarea:focus,.select:focus{border-color:var(--accent)}.field small{display:block;color:var(--muted);font-size:12px;margin-top:6px}.toggle-row{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:20px 0 24px}.toggle-row strong{display:block;font-size:14px;font-weight:650}.toggle-row small{font-size:12px;color:var(--muted)}.switch{appearance:none;width:42px;height:25px;background:var(--muted);border:0;border-radius:16px;position:relative;flex-shrink:0;cursor:pointer}.switch:after{content:'';position:absolute;left:3px;top:3px;width:19px;height:19px;border-radius:50%;background:var(--paper);transition:.15s}.switch:checked{background:var(--accent)}.switch:checked:after{transform:translateX(17px)}.divider{border:0;border-top:1px solid var(--line);margin:26px 0}.admin-row{display:flex;align-items:center;gap:11px;padding:14px 0;border-bottom:1px solid var(--line)}.admin-row:last-child{border:0}.admin-row strong{font-size:13px;font-weight:650}.admin-row small{display:block;color:var(--muted);font-size:12px}.admin-actions{margin-left:auto;display:flex}.settings-stack{display:grid;gap:21px;align-content:start}.theme-section>.eyebrow{margin-bottom:8px}.theme-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.theme-options button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:9px;min-height:82px;padding:12px 6px;border:1px solid var(--line);border-radius:12px;background:var(--tint);color:var(--ink);font-size:12px;font-weight:650}.theme-options button[aria-pressed=true]{background:var(--soft);color:var(--accent-ink);border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}
.chat-shell{height:calc(100dvh - 220px);min-height:380px;display:flex;background:var(--paper);border:1px solid var(--line);border-radius:16px;overflow:hidden}.chat-list-pane{width:290px;flex-shrink:0;display:flex;flex-direction:column;border-right:1px solid var(--line)}.chat-list-head{padding:16px;border-bottom:1px solid var(--line)}.chat-list-head .searchbox{width:100%;background:var(--tint)}.chat-list-meta{display:flex;justify-content:space-between;color:var(--muted);font-size:12px;padding:13px 2px 0}.chat-items{overflow:auto;flex:1}.chat-row{display:flex;align-items:flex-start;gap:10px;width:100%;padding:17px 15px;text-align:left;background:var(--paper);border-bottom:1px solid var(--line)}.chat-row:hover{background:var(--tint)}.chat-row.selected{background:var(--soft);box-shadow:inset 3px 0 var(--accent)}.chat-row .avatar{width:36px;height:36px;font-size:12px}.chat-row-body{min-width:0;flex:1}.chat-row-top{display:flex;justify-content:space-between;align-items:center;gap:6px}.chat-row strong{font-size:13px;font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-row time{font-size:11px;color:var(--muted);white-space:nowrap}.chat-row p{font-size:12px;color:var(--muted);margin-top:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:175px}.unread-badge{display:grid;place-items:center;margin:8px 0 0 auto;min-width:20px;height:20px;border-radius:7px;background:var(--accent);color:var(--on-accent);font-size:11px;font-weight:700;padding:0 4px}.conversation{display:flex;flex:1;min-width:0;flex-direction:column;background:var(--bg)}.conversation>.empty{margin:auto}.conversation-header{display:flex;align-items:center;gap:10px;min-height:76px;padding:13px 20px;background:var(--paper);border-bottom:1px solid var(--line)}.conversation-header strong{font-size:14px}.conversation-header small{display:block;font-size:12px;color:var(--muted)}.conversation-header .actions{margin-left:auto;gap:2px}.chat-back{display:none}.message-area{display:flex;flex-direction:column;gap:15px;flex:1;overflow:auto;padding:24px}.message{align-self:flex-start;max-width:85%;min-width:85px}.message.outgoing{align-self:flex-end}.bubble{padding:12px 15px;border:1px solid var(--line);border-radius:15px 15px 15px 3px;background:var(--paper);color:var(--ink);font-size:14px;line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere}.outgoing .bubble{background:var(--bubble-out);border-color:var(--line);border-radius:15px 15px 3px 15px}.message time{display:block;font-size:11px;color:var(--muted);margin-top:5px;padding:0 2px}.outgoing time{text-align:right}.composer{padding:15px 18px;background:var(--paper);border-top:1px solid var(--line)}.compose-row{display:flex;align-items:flex-end;gap:8px}.compose-row textarea{flex:1;min-width:0;resize:none;min-height:44px;max-height:130px;border:1px solid var(--line);border-radius:11px;background:var(--tint);color:var(--ink);padding:11px 12px;font-size:14px;outline:0}.compose-row textarea::placeholder{color:var(--muted);opacity:1}.send-button{display:grid;place-items:center;flex-shrink:0;width:44px;height:44px;border-radius:12px;background:var(--accent);color:var(--on-accent)}.composer-hint{font-size:11px;color:var(--muted);margin-top:8px}.attachment-line{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--accent-ink);padding-bottom:10px}.attachment-line[hidden]{display:none}.attachment-line>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-detail{width:240px;flex-shrink:0;padding:23px 18px;overflow:auto;border-left:1px solid var(--line)}.detail-person{text-align:center;padding-bottom:20px;border-bottom:1px solid var(--line)}.detail-person .avatar{margin:0 auto 12px;width:56px;height:56px;font-size:18px;border-radius:18px}.detail-person strong{font-size:14px}.detail-person small{display:block;font-size:12px;color:var(--muted);margin-top:3px}.detail-section{padding-top:21px}.detail-section h3{font-size:11px;font-weight:700;letter-spacing:1px;color:var(--muted);margin-bottom:13px}.detail-section p{display:flex;gap:6px;align-items:center;margin:10px 0;font-size:12px;color:var(--muted)}.detail-section p svg{width:14px;height:14px}.detail-order{padding:12px;border:1px solid var(--line);border-radius:11px;margin-bottom:9px}.detail-order strong{font-size:12px}.detail-order p{display:block;font-size:12px;overflow-wrap:anywhere;margin:7px 0 10px}.detail-order .select{font-size:12px;padding:7px}.attachment-button{display:inline-flex;align-items:center;gap:7px;background:var(--tint);color:var(--accent-ink);border:1px solid var(--line);border-radius:9px;padding:8px 10px;font-size:12px;margin-top:7px;max-width:100%;overflow-wrap:anywhere;white-space:normal}.attachment-button svg{width:15px;height:15px}.media-preview img,.media-preview video{display:block;max-width:100%;max-height:300px;border-radius:8px;margin-top:8px}.media-preview audio{max-width:100%;height:38px;margin-top:8px}
.modal-backdrop{position:fixed;inset:0;z-index:50;display:flex;align-items:center;justify-content:center;padding:22px;background:#07100999;backdrop-filter:blur(6px)}.modal-backdrop[hidden]{display:none}.modal-card{width:100%;max-width:540px;max-height:90dvh;padding:27px;background:var(--paper);border:1px solid var(--line);border-radius:20px;overflow:auto;box-shadow:0 30px 90px #0003}.modal-card.large{max-width:670px}.modal-header{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;margin-bottom:24px}.modal-header h2{font-size:22px}.modal-header p{font-size:13px;color:var(--muted);margin-top:6px}.modal-footer{display:flex;justify-content:flex-end;gap:9px;margin-top:24px}.confirm-description{font-size:14px;line-height:1.8;color:var(--muted);white-space:pre-line}.tag-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.tag-option{display:flex;align-items:center;gap:6px;font-size:12px;line-height:1.6;color:var(--ink);padding:8px;border:1px solid var(--line);border-radius:8px;cursor:pointer}.tag-option input{accent-color:var(--accent)}.news-preview{padding:20px;border-radius:13px;border:1px solid var(--line);background:var(--tint)}.news-preview p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.8;color:var(--ink);margin-top:11px}.news-audience{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted);margin-top:18px}.toast-stack{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);z-index:100;display:flex;flex-direction:column;gap:8px;max-width:90vw;pointer-events:none}.toast{padding:13px 18px;background:var(--ink);color:var(--bg);font-size:13px;border-radius:12px;box-shadow:0 10px 30px #0003}.toast.error{background:var(--red-bg);color:var(--red);border:1px solid var(--red)}.spinner{display:inline-block;width:25px;height:25px;border:2px solid var(--line);border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite}.boot{display:flex;min-height:55dvh;align-items:center;justify-content:center;flex-direction:column;gap:16px}.boot h2{font-size:19px}.boot p{font-size:14px;color:var(--muted)}.mobile-nav{display:none}.load-more{display:block;margin:14px auto;padding:9px;background:transparent;color:var(--accent-ink);font-size:13px}.pagination{display:flex;justify-content:flex-end;align-items:center;gap:10px;margin-top:18px;color:var(--muted);font-size:12px}.connection-note{padding:10px 15px;background:var(--amber-bg);color:var(--amber);font-size:12px;border-bottom:1px solid var(--line)}.more-list{display:flex;flex-direction:column;gap:8px}.more-list button{display:flex;align-items:center;gap:13px;padding:16px;background:var(--tint);color:var(--ink);border-radius:12px;text-align:left}.more-list button>svg:last-child{margin-left:auto}.order-description{white-space:normal;overflow-wrap:anywhere;max-width:245px;font-size:13px;line-height:1.7;color:var(--muted);margin-top:5px}.error-box{padding:30px;border:1px solid var(--line);border-radius:16px;background:var(--red-bg);color:var(--red);text-align:center}.error-box p{font-size:14px;margin:10px 0 20px}.refreshing svg{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
@media(max-width:1250px){.sidebar{width:226px;padding-left:12px;padding-right:12px}.brand-logo{width:65px;height:73px}.brand-copy strong{font-size:15px}.workspace{margin-left:226px;width:calc(100% - 226px)}#main{padding:25px}.topbar{padding-left:25px;padding-right:25px}.chat-detail{display:none}.cards-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.chat-list-pane{width:275px}.dashboard-grid{grid-template-columns:minmax(0,1.4fr) minmax(250px,1fr)}.date-label{display:none}.dashboard-welcome{align-items:flex-start}.welcome-actions{max-width:230px}.stat{padding:17px}.stat-top{font-size:11px}.stat-bottom{font-size:11px}}
@media(max-width:950px){.sidebar{width:88px;padding:20px 11px}.brand{padding:0;margin-bottom:28px}.brand-logo{width:64px;height:72px;border-radius:12px}.brand-copy,.nav-group-label,.sidebar-footer,.nav-item>span{display:none}.nav-item{justify-content:center;padding:14px 0}.nav-item.active{box-shadow:inset 0 -3px var(--accent)}.workspace{margin-left:88px;width:calc(100% - 88px)}.dashboard-grid,.settings-grid{grid-template-columns:1fr}.stats-grid{gap:12px}.stat{padding:14px}.stat-top{align-items:flex-start;flex-direction:column-reverse;gap:10px}.dashboard-welcome h1{font-size:27px}.welcome-actions{max-width:220px}.chat-list-pane{width:250px}.topbar .desktop-crumb{display:none}.dashboard-welcome>div>p:last-child{max-width:250px}}
@media(max-width:600px){.sidebar{display:none}.workspace{margin-left:0;width:100%}.topbar{min-height:68px;padding:10px 16px;padding-top:calc(10px + env(safe-area-inset-top));gap:10px}.crumb{gap:9px;font-size:12px;min-width:0}.crumb strong{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.mobile-brand{display:block;width:39px;height:43px;object-fit:contain;border-radius:9px;background:#fff;padding:2px;border:1px solid #e7e1d6;flex-shrink:0}.profile-text{display:none}.top-actions{gap:4px}.topbar .icon-button{width:34px;height:36px}.profile-button .avatar{width:32px;height:34px;font-size:11px;border-radius:10px}#main{padding:22px 16px calc(92px + env(safe-area-inset-bottom))}h1{font-size:26px}.page-heading{align-items:flex-start;gap:12px;margin-bottom:20px}.page-heading p{font-size:12px;line-height:1.7;max-width:230px}.page-heading>.actions .button{padding:10px;min-width:42px}.page-heading>.actions .button span{display:none}.dashboard-welcome{display:block;padding:0 0 19px;margin-bottom:18px}.dashboard-welcome h1{font-size:27px;overflow-wrap:anywhere}.dashboard-welcome .eyebrow{font-size:9px;letter-spacing:1.4px;margin-bottom:6px}.dashboard-welcome>div>p:last-child{font-size:12px;max-width:100%;margin-top:6px}.welcome-actions{display:flex;justify-content:space-between;max-width:none;flex-wrap:nowrap;gap:8px;margin-top:16px}.inbox-pill{font-size:11px;padding:9px 10px;gap:6px;min-height:40px}.inbox-pill>svg:last-child{display:none}.welcome-actions .button{font-size:11px;min-height:40px;padding:9px 10px}.welcome-actions .button svg{width:15px;height:15px}.stats-grid{grid-template-columns:1fr 1fr;gap:11px;margin-bottom:18px}.stat{padding:14px 15px;border-radius:14px}.stat-top{flex-direction:row;align-items:center;font-size:11px;gap:5px}.stat-icon{width:28px;height:28px;border-radius:9px}.stat-icon svg{width:16px;height:16px}.stat-value{font-size:30px;margin-top:7px}.stat-bottom{font-size:11px;line-height:1.5;margin-top:1px}.dashboard-grid{gap:17px}.panel-head{padding:19px 17px 15px}.panel-head h2{font-size:16px}.panel-head p{font-size:12px}.data-table th,.data-table td{padding-left:14px;padding-right:14px}.data-table td{font-size:12px}.table-person .avatar{display:none}.hide-mobile{display:none}.quick-actions{padding:0 17px 12px}.quick-action{padding:14px 0}.intro-note{padding:16px 17px;font-size:11px}.mobile-nav{display:flex;position:fixed;left:0;right:0;bottom:0;justify-content:space-around;z-index:20;min-height:calc(70px + env(safe-area-inset-bottom));padding:9px 5px calc(8px + env(safe-area-inset-bottom));background:var(--paper);border-top:1px solid var(--line)}.mobile-nav button{position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;min-width:56px;padding:3px 5px;border-radius:11px;background:transparent;color:var(--muted);font-size:10px;font-weight:650}.mobile-nav button.active{color:var(--accent-ink);background:var(--soft)}.mobile-nav button svg{width:20px;height:20px}.toolbar{flex-wrap:wrap;gap:12px;margin-bottom:17px}.searchbox{width:100%;height:44px}.searchbox input{font-size:16px}.tabs{gap:1px}.tab{padding:8px 9px;font-size:12px}.result-count{margin-left:auto;font-size:12px}.cards-grid{grid-template-columns:1fr;gap:14px}.contact-card,.review-card,.news-card{padding:20px}.settings-grid,.settings-stack{gap:17px}.form-panel{padding:21px}.theme-options{gap:6px}.theme-options button{font-size:11px;min-height:78px}.input,.textarea,.select{font-size:16px}.tag-option{font-size:12px;padding:8px 6px}.toggle-row strong{font-size:13px}.modal-backdrop{align-items:flex-end;padding:0}.modal-card{max-width:100%;max-height:91dvh;padding:23px 20px calc(24px + env(safe-area-inset-bottom));border-radius:21px 21px 0 0}.modal-header h2{font-size:21px}.modal-footer .button{flex:1}.toast-stack{bottom:calc(84px + env(safe-area-inset-bottom));width:max-content;max-width:90vw}.empty{padding:36px 18px}.empty p{font-size:13px}.order-description{max-width:175px;font-size:12px}.data-table .select{min-width:118px;padding:8px;font-size:12px}.news-preview{padding:17px}.pagination{font-size:11px;gap:7px}.news-actions .button{font-size:12px}.review-text,.excerpt{font-size:14px}body[data-view=chats] #main{padding:12px 12px calc(80px + env(safe-area-inset-bottom))}.chat-page .page-heading{margin-bottom:10px;min-height:36px;align-items:center}.chat-page h1{font-size:23px}.chat-page .page-heading p{display:none}.chat-page .page-heading .button{min-height:34px;padding:8px}.chat-shell{height:calc(100dvh - 206px - env(safe-area-inset-bottom) - env(safe-area-inset-top));min-height:270px;border-radius:14px}.chat-list-pane{width:100%;border:0}.conversation{display:none}.chat-shell.has-selection .chat-list-pane{display:none}.chat-shell.has-selection .conversation{display:flex}.conversation-header{min-height:68px;gap:7px;padding:10px 9px}.chat-back{display:flex;width:23px}.conversation-header .avatar{width:29px;height:31px;font-size:11px;border-radius:10px}.conversation-header strong{display:block;font-size:12px;max-width:140px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.conversation-header small{font-size:10px}.conversation-header .actions{gap:0}.conversation-header .actions .icon-button{width:26px;height:32px}.conversation-header .actions svg{width:18px;height:18px}.message-area{padding:16px 12px;gap:14px}.bubble{font-size:14px;padding:11px 13px}.message{max-width:91%}.message time{font-size:11px}.composer{padding:11px 9px}.composer-hint{display:none}.compose-row{gap:5px}.compose-row textarea{font-size:16px;padding:10px}.composer .icon-button{width:32px}.chat-row strong{font-size:14px}.chat-row p{max-width:230px;font-size:13px}.chat-row time{font-size:11px}.chat-list-head{padding:14px}.chat-row .avatar{width:39px;height:39px}}
@media(max-width:370px){.topbar{padding-left:12px;padding-right:12px}.profile-button{display:none}.stat-top{flex-direction:column-reverse;align-items:flex-start}.welcome-actions{align-items:stretch}.inbox-pill{max-width:51%;font-size:10px}.inbox-pill>svg{display:none}.welcome-actions .button{font-size:10px}.conversation-header .avatar{display:none}.tag-grid{grid-template-columns:1fr}.theme-options button{font-size:10px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;scroll-behavior:auto!important;transition:none!important}}
.input::placeholder,.textarea::placeholder{color:var(--muted);opacity:1}
/* Rich news editor: the same document can later power the customer Mini App. */
.avatar{overflow:hidden}.avatar img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}
button{touch-action:manipulation}[data-action=refresh][aria-busy=true] svg{animation:spin .8s linear infinite}[data-action=refresh][aria-busy=true]{color:var(--accent-ink);background:var(--soft);opacity:1}
.news-editor-modal.large{max-width:1080px}.composer-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,.85fr);gap:24px}.composer-fields{min-width:0}.composer-preview{align-self:start;position:sticky;top:0;border:1px solid var(--line);border-radius:15px;padding:20px;background:var(--bg);max-height:70dvh;overflow:auto}.composer-preview>.eyebrow{display:block;margin-bottom:18px}.rich-content{color:var(--ink);font-size:16px;line-height:1.8;overflow-wrap:anywhere}.rich-content p{margin:0 0 10px;white-space:pre-wrap}.rich-content h1,.rich-content h2,.rich-content h3{margin:15px 0 10px;line-height:1.35;letter-spacing:-.5px}.rich-content h1{font-size:32px}.rich-content h2{font-size:26px}.rich-content h3{font-size:21px}.rich-content ul,.rich-content ol{padding-left:25px;margin:10px 0}.rich-content blockquote{border-left:3px solid var(--accent);padding-left:14px;margin:12px 0;color:var(--muted)}.rich-content code{background:var(--tint);padding:2px 4px;border-radius:4px}.rich-title{font-size:24px;font-weight:700;margin-bottom:12px}.rich-content:empty{display:none}.rich-content .ql-size-small{font-size:12px}.rich-content .ql-size-large{font-size:24px}.rich-content .ql-size-huge{font-size:32px}.rich-content .ql-align-center{text-align:center}.rich-content .ql-align-right{text-align:right}.rich-content .ql-align-justify{text-align:justify}
.ql-toolbar.ql-snow{font-family:inherit;background:var(--tint);border:1px solid var(--line);border-radius:11px 11px 0 0;padding:8px;line-height:1.4}.ql-container.ql-snow{font-family:inherit;border:1px solid var(--line);border-top:0;border-radius:0 0 11px 11px;background:var(--paper);font-size:16px}.ql-editor{min-height:210px;padding:15px;color:var(--ink);overflow-wrap:anywhere;line-height:1.75}.title-editor .ql-editor{min-height:75px;font-size:24px;font-weight:700}.ql-editor.ql-blank:before{color:var(--muted);font-style:normal;font-weight:400}.ql-snow .ql-picker{color:var(--ink)}.ql-snow .ql-stroke{stroke:var(--ink)}.ql-snow .ql-fill,.ql-snow .ql-stroke.ql-fill{fill:var(--ink)}.ql-snow .ql-picker-options{background:var(--paper);border-color:var(--line);color:var(--ink);box-shadow:0 8px 30px #0003}.ql-snow .ql-picker.ql-expanded .ql-picker-options{border-color:var(--line);z-index:80}.ql-snow .ql-picker-label{border-radius:4px}.ql-snow .ql-picker.ql-expanded .ql-picker-label{color:var(--accent-ink);border-color:var(--accent)}.ql-toolbar.ql-snow button:hover,.ql-toolbar.ql-snow button.ql-active{color:var(--accent-ink);background:var(--soft);border-radius:4px}.ql-toolbar.ql-snow button:hover .ql-stroke,.ql-toolbar.ql-snow button.ql-active .ql-stroke{stroke:var(--accent-ink)}.ql-toolbar.ql-snow button:hover .ql-fill,.ql-toolbar.ql-snow button.ql-active .ql-fill{fill:var(--accent-ink)}.ql-toolbar.ql-snow .ql-formats{margin-right:7px;margin-bottom:4px}.ql-snow .ql-picker.ql-size{width:68px}.ql-snow .ql-picker.ql-size .ql-picker-label:before{content:attr(data-value)}.ql-snow .ql-picker.ql-size .ql-picker-label:not([data-value]):before{content:'16px'}.ql-snow .ql-picker.ql-size .ql-picker-item:before{content:attr(data-value);font-size:14px}.ql-snow .ql-tooltip{background:var(--paper);color:var(--ink);border-color:var(--line);white-space:normal;max-width:90vw;z-index:90}.ql-snow .ql-tooltip input[type=text]{background:var(--paper);color:var(--ink);border:1px solid var(--line);max-width:65vw}.ql-snow .ql-tooltip:before{content:'Ссылка:'}.ql-snow .ql-tooltip.ql-editing a.ql-action:after{content:'Сохранить'}.ql-snow .ql-tooltip[data-mode=link]:before{content:'Ссылка:'}.ql-snow a{color:var(--accent-ink)}.ql-toolbar.ql-snow button,.ql-toolbar.ql-snow .ql-picker-label{min-height:30px}.ql-editor a{color:var(--accent-ink)}
.emoji-bar{display:flex;gap:3px;flex-wrap:wrap;margin:-5px 0 20px}.emoji-bar button{font-size:21px;padding:5px;background:transparent;border-radius:8px;min-width:34px}.emoji-bar button:hover{background:var(--soft)}.news-upload-box{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px dashed var(--line);padding:16px;border-radius:13px;background:var(--bg);margin-bottom:14px}.news-upload-box strong{font-size:14px}.news-upload-box p{font-size:12px;color:var(--muted);margin-top:4px}.upload-label{cursor:pointer;position:relative}.upload-label input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden;clip:rect(0,0,0,0)}.news-media-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}.news-media-grid:empty{display:none}.news-media-tile{border:1px solid var(--line);border-radius:12px;background:var(--paper);overflow:hidden;min-width:0}.news-media-tile img,.news-media-tile video{display:block;width:100%;max-height:230px;object-fit:contain;background:var(--tint)}.media-tile-footer{display:flex;align-items:center;gap:7px;padding:7px 9px}.media-tile-footer>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;color:var(--muted)}.media-tile-footer button{margin-left:auto;width:27px;height:27px}.media-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:130px;padding:15px;text-align:center;color:var(--muted);font-size:12px}.media-placeholder svg{color:var(--accent-ink)}.editor-note{font-size:12px;color:var(--muted);line-height:1.7;margin-top:13px}.editor-footer{position:sticky;bottom:-27px;background:var(--paper);padding:16px 0 0;border-top:1px solid var(--line);z-index:5}.news-attachment-count{display:flex;align-items:center;gap:7px;margin:8px 0;font-size:12px;color:var(--accent-ink)}.news-attachment-count svg{width:16px;height:16px}
@media(max-width:800px){.composer-layout{grid-template-columns:1fr}.composer-preview{position:static;max-height:none}.news-editor-modal.large{max-width:650px}.ql-toolbar.ql-snow{padding:8px 5px}.ql-toolbar.ql-snow .ql-formats{margin-right:5px}.news-upload-box{flex-wrap:wrap}.news-upload-box .button{width:100%}.editor-footer{bottom:-24px}.ql-editor{min-height:180px;font-size:16px}.title-editor .ql-editor{min-height:72px;font-size:22px}.ql-snow .ql-picker-options{max-width:250px}.news-media-tile video{max-height:200px}.composer-preview{padding:17px}.ql-toolbar.ql-snow button{width:30px;height:32px}}
.ql-snow .ql-picker.ql-size .ql-picker-label:not([data-value]):before,.ql-snow .ql-picker.ql-size .ql-picker-item:not([data-value]):before{content:'Авто'}.ql-snow .ql-picker.ql-header{width:110px}.ql-snow .ql-picker.ql-header .ql-picker-label:before,.ql-snow .ql-picker.ql-header .ql-picker-item:before{content:'Текст'}.ql-snow .ql-picker.ql-header [data-value='1']:before{content:'Заголовок 1'}.ql-snow .ql-picker.ql-header [data-value='2']:before{content:'Заголовок 2'}.ql-snow .ql-picker.ql-header [data-value='3']:before{content:'Заголовок 3'}

/* Quill's SVGs have their own fill and stroke rules. */
.ql-toolbar svg { fill:none; stroke:none; }
.ql-toolbar.ql-snow button { font-size:16px; font-weight:650; color:var(--ink); }
.ql-toolbar .ql-italic { font-style:italic; }
.ql-toolbar .ql-underline { text-decoration:underline; }
.ql-toolbar .ql-strike { text-decoration:line-through; }
.ql-toolbar .ql-bold { font-weight:900; }
.ql-toolbar .ql-active { color:var(--accent-ink); }
.ql-toolbar .ql-background .ql-fill:not(.ql-color-label) { fill:none; }
.title-editor .ql-editor.ql-blank::before { font-size:17px; line-height:1.4; white-space:normal; overflow-wrap:anywhere; }
.title-editor .ql-editor { min-height:80px; }

.mobile-nav .nav-badge{position:absolute;top:0;left:calc(50% + 7px);min-width:16px;padding:1px 4px;line-height:14px;border-radius:8px;background:var(--accent);color:#fff;font-size:10px}
