:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI","Microsoft YaHei",sans-serif;color:#19202d;background:#f8fafc;font-size:14px;line-height:1.6;--accent:#0e8296;--muted:#64748b;--line:#dbe2ea;--navy:#020617}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:36px;padding:7px 14px;border:1px solid #d1d8e0;border-radius:6px;background:white;color:#263447;cursor:pointer;white-space:nowrap;text-decoration:none;font-weight:500}button:hover,.button:hover{background:#f1f5f9}button:disabled{opacity:.5;cursor:wait}button.primary{background:var(--accent);color:white;border-color:var(--accent)}button.primary:hover{background:#0e7490}button.danger{color:#dc2626}.small{font-size:13px;min-height:30px;padding:4px 9px}.text-button{border:0;color:var(--accent);background:none;padding:4px 8px}.muted,.fine{color:var(--muted)}.fine{font-size:13px}.error{color:#dc2626}.error:empty{display:none}a{color:var(--accent);text-decoration:none}h1,h2,h3,p{margin-top:0}h1{font-size:22px;line-height:1.4;margin-bottom:6px;font-weight:600}h2{font-size:18px}h3{font-size:15px;margin-bottom:0}.sidebar{position:fixed;inset:0 auto 0 0;width:240px;background:var(--navy);color:white;display:flex;flex-direction:column;z-index:20}.brand{display:flex;align-items:center;gap:12px;height:82px;padding:0 22px;color:white;border-bottom:1px solid #ffffff18}.brand-mark{width:34px;height:36px;display:grid;place-items:center;background:#0e7490;border-radius:5px;font-weight:650;font-size:22px}.brand strong{display:block;font-size:19px;letter-spacing:.5px}.brand small{display:block;color:#94a3b8;font-size:12px}.nav-label{padding:24px 24px 10px;color:#64748b;font-size:12px}.sidebar nav{padding:0 12px;display:grid;gap:5px}.sidebar nav a{height:44px;border-radius:5px;padding:0 12px;display:flex;align-items:center;color:#cbd5e1;gap:12px}.sidebar nav a:hover{background:#ffffff12}.sidebar nav a.active{background:#0891b2;color:white}.nav-icon{width:18px;text-align:center;font-size:20px}.nav-count{margin-left:auto;font-size:12px;background:#ffffff17;border-radius:4px;min-width:22px;text-align:center}.sidebar-foot{margin-top:auto;padding:22px;border-top:1px solid #ffffff18;font-size:13px}.sidebar-foot strong{font-weight:500}.sidebar-foot p{color:#94a3b8;font-size:12px;margin:8px 0 14px}.sidebar-foot small{color:#64748b}.online-dot{display:inline-block;width:7px;height:7px;background:#34d399;border-radius:100%;margin-right:8px}main{margin-left:240px;min-height:100vh;display:flex;flex-direction:column;min-width:0}.topbar{height:66px;border-bottom:1px solid var(--line);background:#fff;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 28px}.topbar>div{display:flex;align-items:center;gap:12px}.topbar strong{font-size:14px;font-weight:500}.topbar span{color:var(--muted)}.slash{color:#cbd5e1!important}.top-actions{font-size:13px}.content{padding:28px;flex:1;min-width:0}.heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}.heading p{margin-bottom:0;color:var(--muted)}.actions{display:flex;gap:8px;align-items:center}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:22px}.stat{border:1px solid var(--line);border-radius:6px;background:white;padding:18px 20px}.stat span{color:var(--muted);font-size:13px}.stat strong{font-size:29px;font-weight:600;display:block;margin:6px 0 0}.stat small{color:var(--muted);font-size:12px}.stat.accent strong{color:var(--accent)}.panel{background:white;border:1px solid var(--line);border-radius:6px;margin-bottom:20px;overflow:hidden}.panel-head{padding:15px 18px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line)}.panel-body{padding:22px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:14px}th{text-align:left;padding:12px 16px;font-size:13px;font-weight:500;color:var(--muted);background:#f8fafc;border-bottom:1px solid var(--line)}td{padding:14px 16px;border-bottom:1px solid #eef1f4;vertical-align:middle;color:#334155}tr:last-child td{border-bottom:0}tbody tr:hover{background:#fafcfd}td strong{color:#19202d;font-weight:500}.subline{display:block;font-size:12px;color:var(--muted);margin-top:3px;white-space:normal;max-width:330px}.badge{display:inline-flex;border:1px solid #e2e8f0;border-radius:4px;padding:1px 7px;font-size:12px;background:#f8fafc;color:#64748b}.badge.green{background:#ecfdf5;color:#059669;border-color:#a7f3d0}.badge.amber{background:#fffbeb;color:#b45309;border-color:#fde68a}.badge.red{background:#fef2f2;color:#dc2626;border-color:#fecaca}.badge.cyan{background:#ecfeff;color:#0e7490;border-color:#a5f3fc}.empty{padding:58px 24px;text-align:center;color:var(--muted)}.empty-symbol{display:grid;place-items:center;font-size:26px;border:1px solid var(--line);background:#f8fafc;border-radius:6px;width:50px;height:50px;margin:0 auto 16px;color:#94a3b8}.empty h3{color:#334155;margin-bottom:8px}.empty p{max-width:460px;margin:0 auto 20px;font-size:14px}.notice{padding:12px 16px;border:1px solid #bae6fd;background:#f0f9ff;color:#0e7490;border-radius:6px;margin-bottom:20px;display:flex;align-items:center;justify-content:space-between;gap:12px}.notice.warn{background:#fffbeb;border-color:#fde68a;color:#92400e}.workflow{display:flex;gap:28px;flex-wrap:wrap;border:1px solid var(--line);border-radius:6px;background:white;padding:16px 20px;color:var(--muted);font-size:13px}.workflow b{font-weight:600;color:var(--accent);margin-right:10px}footer{margin:0 28px;padding:18px 0;border-top:1px solid var(--line);font-size:12px;color:#94a3b8;display:flex;justify-content:space-between}label{display:block;font-size:14px;color:#334155;margin-bottom:16px}input,select{width:100%;height:38px;border:1px solid #d1d8e0;border-radius:6px;padding:7px 11px;background:white;color:#19202d;margin-top:6px;outline:none}input:focus,select:focus{border-color:var(--accent);box-shadow:0 0 0 2px #0e829619}button:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:3px}input::placeholder{color:#94a3b8}.check{display:flex;gap:9px;align-items:center}.check input{width:16px;height:16px;margin:0;accent-color:var(--accent)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.query-form{display:grid;grid-template-columns:1.2fr 1.4fr 1fr auto;gap:16px;align-items:end}.query-form label{margin:0}.query-form button{height:38px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.settings-grid .panel{margin:0}.setting-line{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #eef1f4;padding:12px 0;gap:20px}.setting-line:last-child{border:0}.notification-row{padding:20px;display:flex;justify-content:space-between;align-items:center;gap:20px;border-bottom:1px solid var(--line)}.notification-row:last-child{border:0}.notification-row h3{margin:0 0 6px}.notification-row p{margin:0 0 4px;color:var(--muted)}.notification-row.unread{border-left:3px solid var(--accent)}dialog{width:min(500px,94vw);border:1px solid var(--line);border-radius:8px;padding:24px;color:#19202d;box-shadow:0 20px 50px #0f172a30;max-height:92vh;overflow:auto}dialog::backdrop{background:#02061780}dialog.large{width:min(1120px,95vw)}.dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.dialog-head h2{margin:0}.dialog-head>button{font-size:24px;border:0;background:none;padding:0;min-height:28px;width:28px;color:var(--muted)}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:24px;padding-top:16px;border-top:1px solid var(--line)}.captcha-box{display:flex;align-items:center;justify-content:center;min-height:120px;border:1px solid var(--line);border-radius:6px;background:#f8fafc;margin-bottom:20px}.captcha-box img{height:70px;max-width:100%}.captcha-box img:not([src]){display:none}#captcha-code{text-align:center;font-size:20px;letter-spacing:4px}#toast{position:fixed;bottom:26px;left:50%;transform:translateX(-50%);background:#0f172a;color:white;max-width:90vw;padding:12px 20px;border-radius:7px;box-shadow:0 6px 24px #0f172a30;z-index:100;display:none}#toast.show{display:block}.mobile-only{display:none}.wrap{white-space:normal;max-width:390px}.code{font-family:ui-monospace,Consolas,monospace}.spacer{margin-top:20px}.tab-filters{display:flex;gap:6px}.tab-filters button{border:0;background:none;min-height:30px;padding:4px 10px;color:var(--muted)}.tab-filters button.active{background:#ecfeff;color:var(--accent)}
@media(min-width:1500px){.content{padding:32px 38px}.topbar{padding:0 38px}}
@media(max-width:1150px){.sidebar{width:210px}main{margin-left:210px}.content{padding:22px}.topbar{padding:0 22px}.top-actions #connection{display:none}.query-form{grid-template-columns:1fr 1fr}.stats{gap:12px}.stat{padding:16px}.settings-grid{grid-template-columns:1fr}}
@media(max-width:760px){.sidebar{display:none;width:240px}.sidebar.open{display:flex}.mobile-only{display:inline-flex}main{margin-left:0}.content{padding:18px}.topbar{height:auto;min-height:66px;padding:12px 18px;flex-wrap:wrap}.topbar>div{gap:8px}.top-actions{margin-left:auto}.top-actions .button{display:none}.heading{align-items:flex-start}.heading h1{font-size:21px}.heading p{font-size:13px}.stats{grid-template-columns:1fr 1fr}.form-grid,.query-form{grid-template-columns:1fr}.workflow{gap:12px}footer{margin:0 18px}footer span{display:none}.panel-head{flex-wrap:wrap}.notification-row{align-items:flex-start}.tab-filters{flex-wrap:wrap}}

.booking-status{display:flex;flex-wrap:wrap;gap:5px;min-width:90px;max-width:200px;white-space:normal}.booking-status .badge{font-size:14px;white-space:nowrap}

.stat .pool-next-name{font-size:20px;overflow-wrap:anywhere}

textarea{width:100%;font:inherit;border:1px solid var(--border,#dbe3ec);border-radius:6px;padding:10px;resize:vertical} [hidden]{display:none!important}.login-page{display:flex;min-height:100vh;align-items:center;justify-content:center;margin:0;padding:24px}.login-card{width:min(100%,440px)}.login-brand{color:#192b3b;margin-bottom:24px}.login-card h1{font-size:24px}.login-card form{margin-top:24px}.login-card button{width:100%}
