:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#172033;background:#f5f7fb;font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:#f5f7fb;color:#172033}button,input,select,textarea{font:inherit}.app-shell{min-height:100vh}.topbar{height:72px;background:#101722;color:#fff;display:flex;align-items:center;padding:0 28px;gap:28px;box-shadow:0 8px 24px #0b122020}.brand{display:flex;align-items:center;gap:11px;color:#fff;text-decoration:none;min-width:270px}.brand span{display:flex;flex-direction:column}.brand strong{font-size:18px}.brand small{font-size:11px;color:#91a0b8;letter-spacing:.06em;text-transform:uppercase}.app-mark{width:35px;height:35px;border-radius:9px}.nav-links{display:flex;gap:6px;flex:1}.nav-links a{color:#9facbe;text-decoration:none;padding:10px 13px;border-radius:8px;font-weight:650;font-size:14px}.nav-links a.active,.nav-links a:hover{background:#202b3a;color:#fff}.page-shell{max-width:1180px;margin:0 auto;padding:34px 28px 60px}.page-heading{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;margin-bottom:24px}.page-heading h1{font-size:30px;margin:4px 0 8px}.page-heading p{margin:0;color:#69758a;max-width:700px}.eyebrow{text-transform:uppercase;font-size:11px;font-weight:800;letter-spacing:.12em;color:#526cff}.actions{display:flex;gap:10px}.button{border:0;border-radius:8px;padding:10px 15px;font-weight:750;cursor:pointer}.button:disabled{opacity:.55;cursor:not-allowed}.button.primary{background:#2b55e7;color:#fff}.button.secondary{background:#e9eef8;color:#25324a}.topbar .button.secondary{background:#202b3a;color:#e7edf7}.card{background:#fff;border:1px solid #e1e6ef;border-radius:14px;padding:22px;box-shadow:0 10px 30px #1b2b4710}.two-column{display:grid;grid-template-columns:1fr 1fr;gap:28px}.card h2{margin:0 0 18px;font-size:18px}label{display:flex;flex-direction:column;gap:7px;font-weight:700;font-size:13px;margin-bottom:16px}label small{color:#7a8598;font-weight:500;line-height:1.45}input,select,textarea{width:100%;border:1px solid #ccd4e1;background:#fff;border-radius:8px;padding:10px 11px;color:#192235}textarea{resize:vertical}.status-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:20px}.status-card{background:#fff;border:1px solid #e1e6ef;border-radius:12px;padding:15px;display:flex;align-items:center;gap:11px}.status-card div{display:flex;flex-direction:column;gap:3px}.status-card small{color:#748095}.dot{width:10px;height:10px;border-radius:50%;background:#d04c5a}.dot.ok{background:#1da46f}.notice,.error-box{margin:14px 0;padding:11px 13px;border-radius:8px;background:#eef3ff;color:#334b83}.error-box{background:#fff0f1;color:#a43040}.json-box{background:#0f1722;color:#b8d0ff;border-radius:10px;padding:14px;overflow:auto;max-height:340px;font-size:12px}.channel-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:14px}.channel-toolbar input{max-width:420px}.channel-toolbar span{color:#6e798c;font-size:13px}.channel-list{border-top:1px solid #edf0f5}.channel-row{display:grid;grid-template-columns:24px 1fr auto;align-items:center;gap:10px;margin:0;padding:14px 4px;border-bottom:1px solid #edf0f5;cursor:pointer}.channel-row input{width:17px;height:17px}.channel-row div{display:flex;flex-direction:column;gap:3px}.channel-row small{color:#7a8598;font-weight:500}.pill{font-size:11px;border-radius:999px;background:#eef2f7;padding:5px 8px;color:#546076}.empty{text-align:center;color:#7b8798;padding:30px}.auth-page{min-height:100vh;background:#101722;display:grid;place-items:center;padding:24px}.auth-card{width:min(420px,100%);background:#fff;border-radius:16px;padding:30px;box-shadow:0 30px 80px #0006}.auth-card h1{margin:22px 0 8px;font-size:25px}.auth-card p{color:#6d788a;margin:0 0 24px;line-height:1.5}.auth-brand{display:flex;align-items:center;gap:10px}.auth-brand div{display:flex;flex-direction:column}.auth-brand small{color:#7b8797}.auth-card .button{width:100%}@media(max-width:800px){.topbar{padding:0 14px}.brand{min-width:0}.brand small{display:none}.nav-links{justify-content:flex-end}.nav-links a{font-size:12px;padding:8px}.page-shell{padding:24px 16px}.page-heading{flex-direction:column}.status-grid,.two-column{grid-template-columns:1fr}.topbar .button{display:none}}.channel-row{cursor:default}.channel-row>div:nth-child(2){display:flex;flex-direction:column;gap:3px}.channel-actions{display:flex!important;flex-direction:row!important;align-items:center;justify-content:flex-end;gap:8px!important}.button.compact{padding:7px 10px;font-size:12px}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;display:flex;justify-content:flex-end;background:#0b1220aa}.history-dialog{width:min(720px,94vw);height:100%;padding:24px;overflow-y:auto;background:#f7f9fc;box-shadow:-20px 0 60px #0003}.history-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:18px}.history-header h2{margin:4px 0;font-size:24px}.history-header small{color:#748095}.modal-close{width:38px;height:38px;border:0;border-radius:9px;background:#e8edf5;color:#26334a;font-size:25px;line-height:1;cursor:pointer}.modal-close:disabled{opacity:.55}.history-warning{margin-bottom:16px;padding:12px 14px;border:1px solid #f0d390;border-radius:10px;background:#fff6df;color:#76571a;line-height:1.45}.message-history{display:flex;flex-direction:column;gap:12px}.history-message{padding:16px;border:1px solid #e1e6ef;border-radius:12px;background:#fff}.history-message-meta{display:flex;justify-content:space-between;gap:12px;color:#6f7b8e;font-size:12px}.history-message p{display:-webkit-box;margin:12px 0;overflow:hidden;overflow-wrap:anywhere;line-height:1.5;white-space:pre-wrap;-webkit-box-orient:vertical;-webkit-line-clamp:8}.history-message-action{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.result-label{color:#42516b;font-size:12px;font-weight:700}.result-label.published{color:#147653}.result-label.non_trade,.result-label.already_processed{color:#755b13}.result-label.failed,.result-label.rejected{color:#a43040}@media(max-width:800px){.channel-row{grid-template-columns:24px 1fr}.channel-actions{grid-column:2;justify-content:flex-start;flex-wrap:wrap}.history-dialog{width:100vw;padding:18px}.history-message-meta,.history-message-action{align-items:flex-start;flex-direction:column}.history-message-action .button{width:100%}}
