:root{font-family:Inter,"Segoe UI",Arial,sans-serif;color:#253146;background:#f3f5f8;font-synthesis:none;font-size:14px;line-height:1.5;--accent:#197b65;--accent-hover:#126a56;--ink:#253146;--muted:#718096;--line:#e3e8ee;--danger:#b44141;--sidebar:#202735;--shadow:0 8px 30px #1b2a4010}

*{box-sizing:border-box}
body{margin:0}
button,input,textarea,select{font:inherit}
button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}
button{cursor:pointer}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
button:disabled{cursor:not-allowed;opacity:.48}
button:focus-visible,a:focus-visible{outline:3px solid #78c5ae;outline-offset:3px}
input:focus,textarea:focus,select:focus{outline:2px solid #9acabc;outline-offset:1px;border-color:var(--accent)}
button{color:inherit}
h1,h2,h3,p{margin:0}
h1{font-size:25px;letter-spacing:-.75px;line-height:1.3;font-weight:650}
h2{font-size:16px;font-weight:650;letter-spacing:-.2px}
h3{font-size:14px;font-weight:650}
.muted{color:var(--muted)}
.small{font-size:12px}
.mono{font-family:Consolas,"SFMono-Regular",monospace;font-size:12px}
.nowrap{white-space:nowrap}
.truncate{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:280px}
.icon{flex-shrink:0;vertical-align:middle}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid #dbe2e9;background:white;border-radius:7px;padding:8px 13px;font-size:13px;font-weight:550;line-height:20px;white-space:nowrap;text-decoration:none;transition:background .12s,border-color .12s;min-height:37px}
.btn:hover{background:#f2f5f8;border-color:#c6d0dc;text-decoration:none}
.btn .icon{width:17px;height:17px}
.btn.primary{background:var(--accent);border-color:var(--accent);color:white}
.btn.primary:hover{background:var(--accent-hover);border-color:var(--accent-hover)}
.btn.danger{color:var(--danger);border-color:#ebcece;background:#fffafa}
.btn.danger:hover{background:#fbeded}
.btn.quiet{background:transparent;border-color:transparent}
.btn.quiet:hover{background:#eaf0f5}
.btn.compact{padding:5px 9px;min-height:30px;font-size:12px}
.btn.icon-only{width:34px;padding:6px;min-height:34px}
.button-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.push-right{margin-left:auto}
.badge{display:inline-flex;align-items:center;gap:5px;border-radius:5px;padding:3px 7px;font-size:11px;line-height:16px;font-weight:600;white-space:nowrap;background:#edf1f5;color:#65748a}
.badge.good{background:#e9f4ef;color:#217657}
.badge.warn{background:#fff4dd;color:#94691f}
.badge.bad{background:#fcecec;color:#ad4141}
.badge.info{background:#eaf0fd;color:#506fa5}
.dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:currentColor}
.boot{min-height:100dvh;display:flex;gap:12px;align-items:center;justify-content:center;color:var(--muted)}
.spinner{display:inline-block;width:18px;height:18px;border:2px solid #d8e3e5;border-top-color:var(--accent);border-radius:50%;animation:spin .7s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}
}
.loading{display:flex;align-items:center;justify-content:center;gap:12px;min-height:200px;color:var(--muted)}
.empty{text-align:center;padding:52px 24px;color:var(--muted);display:flex;align-items:center;flex-direction:column;gap:9px}
.empty>.icon{width:30px;height:30px;color:#a6b3c2;margin-bottom:5px}
.empty h3{color:#46556b;font-size:15px}
.empty p{max-width:400px}
.empty .btn{margin-top:6px}
.notice{padding:13px 16px;border:1px solid #dce7e1;border-radius:8px;background:#f0f7f3;color:#416451;display:flex;align-items:flex-start;gap:10px;font-size:13px}
.notice.warn{background:#fff9ed;border-color:#f0e0bf;color:#866325}
.notice.error{background:#fff3f3;border-color:#eed4d4;color:#a04747}
.notice .icon{margin-top:1px;width:18px}
.notice .btn{margin-top:8px}
.field{display:flex;flex-direction:column;gap:6px;min-width:0}
.field>label,.field-label{font-size:12px;font-weight:600;color:#566479}
.field input,.field textarea,.field select,.input{border:1px solid #d9e1e9;border-radius:6px;background:#fff;padding:9px 11px;color:var(--ink);width:100%;min-width:0;line-height:20px}
.field textarea{resize:vertical;min-height:100px}
.field small{font-size:12px;color:var(--muted)}
.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.field-grid .full{grid-column:1/-1}
.form-stack{display:flex;flex-direction:column;gap:19px}
.check-label{display:flex;gap:10px;align-items:center;cursor:pointer}
.check-label input{accent-color:var(--accent);width:16px;height:16px}
.form-error{color:#a84040;background:#fff1f1;padding:10px 12px;border:1px solid #f1d6d6;border-radius:6px;font-size:13px}
.form-error:empty{display:none}
.search{position:relative;min-width:180px;max-width:320px;width:100%}
.search .icon{position:absolute;left:10px;top:10px;width:17px;height:17px;color:#9aa6b5}
.search input{padding-left:34px;font-size:13px}
.filters{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.filters select{width:auto;min-width:145px;font-size:13px}
.table-wrap{overflow-x:auto;max-width:100%;min-width:0;overscroll-behavior-x:contain}
.table{width:100%;border-collapse:collapse;font-size:13px;text-align:left}
.table th{font-size:10px;text-transform:uppercase;letter-spacing:.8px;font-weight:650;color:#8490a0;background:#fafbfc;border-bottom:1px solid var(--line);padding:11px 18px;white-space:nowrap}
.table td{border-bottom:1px solid #edf0f4;padding:13px 18px;vertical-align:middle}
.table tbody tr:last-child td{border-bottom:0}
.table tbody tr:hover{background:#fafcfd}
.table td strong{font-weight:550;color:#334257}
.table .align-right{text-align:right}
.table button.link-btn{background:none;border:none;color:#2f5d91;padding:0;text-align:left;font-weight:550;line-height:1.5}
.table button.link-btn:hover{text-decoration:underline}
.cell-sub{display:block;font-size:11px;color:var(--muted);margin-top:3px;max-width:310px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.table-footer{padding:12px 18px;font-size:11px;color:#8b97a6;background:#fafbfc;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:12px}
.panel{background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden;min-width:0;max-width:100%}
.panel-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:19px 21px;border-bottom:1px solid var(--line)}
.panel-head p{font-size:12px;color:var(--muted);margin-top:3px}
.panel-body{padding:22px}
.toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 18px;border-bottom:1px solid var(--line)}
.page-title{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}
.page-title p{font-size:13px;color:var(--muted);margin-top:6px}
.tabs{display:flex;gap:24px;padding:0 21px;border-bottom:1px solid var(--line);overflow:auto}
.tab{border:0;background:transparent;padding:15px 0;color:#8490a1;border-bottom:2px solid transparent;font-size:13px;font-weight:550;white-space:nowrap}
.tab.active{color:var(--accent);border-bottom-color:var(--accent)}
.two-column{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:20px}
.two-column>*{min-width:0}
.stack{display:flex;flex-direction:column;gap:20px;min-width:0}
.detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}
.detail-grid dt{font-size:11px;color:var(--muted);margin-bottom:5px}
.detail-grid dd{margin:0;font-size:14px;overflow-wrap:anywhere}
.progress{width:100%;height:5px;border:none;background:#e8eef1;border-radius:4px;display:block;overflow:hidden;accent-color:var(--accent)}
.progress::-webkit-progress-bar{background:#e8eef1;border-radius:4px}
.progress::-webkit-progress-value{background:var(--accent);border-radius:4px}
.progress::-moz-progress-bar{background:var(--accent);border-radius:4px}
.notifications{position:fixed;right:24px;bottom:24px;display:flex;flex-direction:column;gap:10px;z-index:100;max-width:420px}
.toast{display:flex;align-items:flex-start;gap:10px;border:1px solid #d4e5de;background:#fff;box-shadow:0 10px 40px #152c3826;border-radius:9px;padding:14px 15px;font-size:13px;animation:enter .18s ease-out}
.toast>.icon{color:var(--accent)}
.toast.error{border-color:#eed0d0}
.toast.error>.icon{color:var(--danger)}
.toast button{margin-left:auto;border:0;background:none;padding:0;color:var(--muted)}
@keyframes enter{from{transform:translateY(8px);opacity:0}
to{transform:translateY(0);opacity:1}
}
dialog{border:1px solid #d7e0e8;border-radius:13px;width:min(650px,calc(100% - 32px));padding:0;color:var(--ink);box-shadow:0 25px 100px #0f172a33;max-height:90dvh}
dialog::backdrop{background:#17233170;backdrop-filter:blur(3px)}
.modal-head{display:flex;align-items:flex-start;justify-content:space-between;padding:21px 24px;border-bottom:1px solid var(--line)}
.modal-head p{font-size:12px;color:var(--muted);margin-top:5px}
.modal-body{padding:24px;overflow:auto}
.modal-foot{display:flex;justify-content:flex-end;gap:9px;padding:16px 24px;border-top:1px solid var(--line);background:#fafbfd}
.variant{display:flex;gap:8px;align-items:flex-start}
.variant textarea{flex:1}
.variant-list{display:flex;flex-direction:column;gap:10px}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
pre{white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.65 Consolas,monospace;margin:0}
.divider{border:0;border-top:1px solid var(--line);margin:6px 0}
.danger-text{color:var(--danger)}

.sidebar nav{overflow-y:auto;min-height:0;flex:1}
.sidebar .brand{flex-shrink:0}
.stack-top{margin-top:20px}
.spaced{margin-bottom:20px}
.filters .search{width:260px;flex:0 1 260px}
.reply-preview{white-space:pre-wrap;overflow-wrap:anywhere;border:1px solid var(--line);border-radius:7px;background:#fafbfd;padding:18px;line-height:1.8;max-height:50dvh;overflow:auto}

@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}
}

@media(max-width:760px){.page-title{align-items:flex-start;gap:15px;flex-wrap:wrap}
.page-title h1{font-size:23px}
.field-grid,.two-column{grid-template-columns:minmax(0,1fr)}
.panel-head,.panel-body{padding:17px}
.toolbar{align-items:flex-start;flex-wrap:wrap;padding:13px 15px}
.table th,.table td{padding:12px 14px}
.notifications{right:12px;left:12px;bottom:12px;max-width:none}
.modal-head,.modal-body{padding:18px}
.modal-foot{padding:14px 18px}
.tabs{gap:18px;padding:0 17px}
.btn{min-height:39px}
.field input,.field textarea,.field select{font-size:16px}
.table .hide-mobile{display:none}
.detail-grid{gap:14px}
}
