:root{--bg:#f5f6f8;--panel:#fff;--ink:#18212f;--muted:#7a8596;--border:#e5e9ef;--green:#16836b;--green-bg:#e8f4ef;--nav:#142b29;--shadow:0 2px 5px #18212f04}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:24px}body{margin:0;color:var(--ink);background:var(--bg);font:14px/1.6 "Segoe UI",Arial,sans-serif}button,input{font:inherit}button,a,input{ -webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0;border-radius:8px;padding:10px 17px;font-weight:600;transition:background .15s}button:disabled{opacity:.5;cursor:wait}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible{outline:3px solid #50baaa;outline-offset:3px}h1,h2,h3,p{margin:0}h1{font-size:30px;font-weight:650;letter-spacing:-1px;line-height:1.3}h2{font-size:22px;letter-spacing:-.6px}h3{font-size:17px;letter-spacing:-.3px}.muted{color:var(--muted)}.eyebrow{font-size:10px;letter-spacing:1.9px;font-weight:700;color:var(--muted)}.primary{color:white;background:var(--green)}.primary:hover{background:#106d59}.secondary{background:white;border:1px solid var(--border);color:var(--ink)}.secondary:hover{background:#f3f6f6}.quiet{background:transparent;color:inherit;padding-left:0}.shell{display:flex;min-height:100vh}.sidebar{width:222px;position:fixed;top:0;bottom:0;background:var(--nav);color:#b9d1cd;padding:32px 24px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;flex-wrap:wrap;font-size:20px;font-weight:650;gap:10px;color:#fff;line-height:1.15}.brand-mark{display:grid;place-items:center;background:#72d2ad;color:#173c30;border-radius:10px;width:36px;height:36px;font-size:23px;font-weight:800}.brand-sub{font-size:9px;letter-spacing:3px;margin-left:47px;margin-top:-9px;color:#9ebdb5}.nav-label{margin:53px 0 16px;color:#6e958b;font-size:9px}.sidebar nav{display:grid;gap:7px}.sidebar nav a{padding:11px 13px;border-radius:8px;font-size:13px}.sidebar nav a:hover,.sidebar nav a.active{background:#264440;color:#d1f5e7}.sidebar-bottom{margin-top:auto;font-size:12px}.sidebar-bottom .muted{font-size:10px;color:#739990;margin-top:7px}.sidebar-bottom button{margin-top:22px;font-size:12px}.dot{width:7px;height:7px;background:#4ab995;border-radius:50%;display:inline-block;margin-right:9px}.main{margin-left:222px;width:calc(100% - 222px);padding:38px 44px;max-width:1800px}header{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:32px}header .eyebrow{margin-bottom:7px}header .muted{margin-top:7px;font-size:13px}.header-actions{display:flex;gap:16px;align-items:center;flex-shrink:0}.badge{font-size:11px;background:var(--green-bg);color:var(--green);padding:5px 10px;border-radius:20px;white-space:nowrap}.badge.warning{background:#fff2db;color:#95610a}.badge.failed,.badge.uncertain{background:#fff0ed;color:#b5503d}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.stat{background:var(--panel);border:1px solid var(--border);border-radius:12px;padding:20px 22px;box-shadow:var(--shadow)}.stat p{font-size:9px;letter-spacing:1.1px;font-weight:700;color:var(--muted)}.stat strong{display:block;font-size:32px;font-weight:600;margin:11px 0 6px;line-height:1.25;font-variant-numeric:tabular-nums}.stat strong.small-stat{font-size:17px;min-height:40px;display:flex;align-items:center}.stat small{font-size:10px;color:var(--muted)}.panel{background:var(--panel);border:1px solid var(--border);border-radius:12px;padding:25px;box-shadow:var(--shadow)}.status-panel{margin-top:20px;display:flex;align-items:center;justify-content:space-between;background:#f0f7f4;border-color:#d9e9e1;padding:19px 24px}.status-panel .muted{margin:3px 0 0 16px;font-size:12px}.status-panel b{font-size:13px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:35px 0 18px}.section-heading .eyebrow{margin-bottom:3px}.section-heading>.muted{font-size:11px}.config-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.panel-heading{display:flex;align-items:center;gap:13px;margin-bottom:22px}.icon{width:36px;height:36px;border:1px solid var(--border);border-radius:9px;display:grid;place-items:center;color:var(--green);font-size:12px;font-weight:700}.panel-heading .muted{font-size:11px;margin-top:2px}label{display:block;font-size:12px;font-weight:600;margin:15px 0 7px}input:not([type=checkbox]){width:100%;border:1px solid #dfe5ea;border-radius:7px;padding:11px 12px;background:#fbfcfd;color:var(--ink);outline:none;min-width:0;font-size:13px}input:not([type=checkbox]):focus{border-color:#319680;box-shadow:0 0 0 3px #16836b12}input::placeholder{color:#a0a8b3;font-size:12px}.hint{font-size:10px;color:var(--muted);margin:6px 0}.check{display:flex;gap:8px;align-items:center;font-size:12px;font-weight:400;margin:13px 0}.check.subtle{font-size:10px;color:var(--muted)}input[type=checkbox]{accent-color:var(--green);width:15px;height:15px;margin:0;flex-shrink:0}.two-cols{display:grid;grid-template-columns:1fr 1fr;gap:18px}.panel .secondary{font-size:12px;margin-top:14px}.input-unit{position:relative}.input-unit input{padding-right:50px}.input-unit span{position:absolute;right:12px;top:11px;color:var(--muted);font-size:12px}.notice{border-top:1px solid var(--border);padding-top:15px;margin-top:19px;font-size:11px;color:var(--muted)}.preview-panel{background:#f9fbfa;display:flex;flex-direction:column}.preview-panel h3{margin:8px 0 22px}.preview-panel>.muted{font-size:12px;max-width:380px;margin-top:22px}.telegram-preview{background:white;border:1px solid #e0e9e5;border-radius:12px 12px 12px 0;padding:20px;box-shadow:0 3px 10px #294b3a06;max-width:380px}.telegram-name{color:var(--green);font-size:12px;font-weight:700}.telegram-name span{color:#9eb2aa;font-weight:400;margin-left:5px}.telegram-preview p{font-size:13px;line-height:1.8;margin-top:8px}.telegram-preview small{display:block;font-size:9px;color:var(--muted);text-align:right;margin-top:8px}.save-bar{display:flex;justify-content:space-between;align-items:center;gap:25px;margin-top:20px}.save-bar p{font-size:11px;max-width:600px}.save-bar button{white-space:nowrap}.tabs{display:flex;background:#e9edf0;border-radius:8px;padding:4px;gap:3px}.tabs button{padding:6px 11px;background:transparent;font-size:11px;color:var(--muted)}.tabs button.active{background:#fff;color:var(--ink);box-shadow:var(--shadow)}.table-panel{padding:0;overflow:hidden}.table-scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap;font-size:12px}thead{background:#fafbfc;color:var(--muted);font-size:10px}td,th{padding:14px 20px;border-bottom:1px solid var(--border);font-weight:400}th{font-weight:600}td .error-text{display:block;white-space:normal;max-width:330px;color:#ac5748;font-size:10px;margin-top:5px}.empty{text-align:center;color:var(--muted);padding:42px}.table-footer{padding:13px 20px;color:var(--muted);font-size:10px}.retry{padding:5px 10px;background:#f4f5f7;font-size:10px}footer{display:flex;justify-content:space-between;font-size:10px;color:var(--muted);margin-top:35px}.toast{border:1px solid #bce0cf;border-radius:8px;padding:12px 18px;background:#eaf7ef;margin-bottom:20px;position:sticky;top:10px;z-index:5}.toast.error{border-color:#efc2b8;background:#fff1ec;color:#a14633}.login-page{min-height:100vh;display:grid;place-items:center;background:#edf2ef}.login-card{width:min(440px,calc(100% - 36px));background:white;border:1px solid #dce7df;border-radius:18px;padding:40px;box-shadow:0 20px 70px #12362c09}.login-card .eyebrow{margin:25px 0 12px;font-size:9px}.login-card h1{font-size:34px;line-height:1.3}.login-card>.muted{margin:15px 0 25px;font-size:13px}.full{width:100%;margin-top:20px;display:flex;justify-content:space-between}.footnote{border-top:1px solid var(--border);padding-top:18px;color:var(--muted);font-size:10px;margin-top:23px}.message{font-size:12px;color:#b14d38;margin-top:15px}
@media(min-width:1500px){.main{padding-left:60px;padding-right:60px}.config-grid{grid-template-columns:1fr 1fr}}
@media(max-width:1100px){.sidebar{width:185px;padding:26px 18px}.main{margin-left:185px;width:calc(100% - 185px);padding:28px 24px}.stats{grid-template-columns:repeat(2,1fr)}header{align-items:flex-start}.header-actions{flex-direction:column;gap:9px;align-items:flex-end}.panel{padding:20px}}
@media(max-width:760px){.shell{display:block}.sidebar{position:relative;width:100%;padding:16px 20px;flex-direction:row;align-items:center;justify-content:space-between}.brand{font-size:17px}.brand-sub,.nav-label,.sidebar-bottom{display:none}.sidebar nav{display:flex;gap:1px}.sidebar nav a{font-size:11px;padding:7px}.main{margin:0;width:100%;padding:25px 18px}.brand-mark{width:30px;height:30px;font-size:18px}h1{font-size:25px}.config-grid{grid-template-columns:1fr}.stats{gap:10px}.stat{padding:17px 15px}.stat small{font-size:9px}.stat strong{font-size:28px}.stat strong.small-stat{font-size:14px}.section-heading{align-items:flex-start}.section-heading>.muted{display:none}.save-bar{align-items:flex-start}.save-bar button{padding:10px 13px}.tabs button{padding:6px 7px;font-size:10px}footer span{max-width:190px;text-align:right}.status-panel{gap:12px;align-items:flex-start}.status-panel button{white-space:nowrap;font-size:11px}.status-panel .muted{margin-left:0}.panel-heading{margin-bottom:15px}header{gap:10px}.header-actions .primary{font-size:11px}.two-cols{gap:12px}.login-card{padding:30px}}
