:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:#17243a;background:#f4f7fb;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;min-height:100vh}button,input{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}[hidden]{display:none!important}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.topbar{height:72px;padding:0 28px;background:#fff;border-bottom:1px solid #e4eaf1;display:flex;align-items:center;justify-content:space-between;gap:20px}
.brand{display:flex;align-items:center;gap:12px;line-height:1.15}.brand strong{display:block;font-size:16px;letter-spacing:-.02em}.brand small{display:block;color:#718096;font-size:12px;margin-top:4px}
.brand-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;color:#fff;background:#3158d4;font-size:12px;font-weight:800;letter-spacing:.04em}
.top-actions{display:flex;align-items:center;gap:14px}.region-label,.user-name{font-size:13px;color:#5e6b7f}.badge{border:1px solid #cbd8ff;background:#edf2ff;color:#2e4ba9;border-radius:99px;padding:5px 10px;font-size:12px;font-weight:700}
.button,.icon-button{border:1px solid transparent;border-radius:9px;min-height:36px;padding:8px 13px;font-weight:650;font-size:13px;white-space:nowrap;transition:background .15s,border-color .15s,box-shadow .15s}.button:focus-visible,.icon-button:focus-visible,.input:focus-visible{outline:3px solid #a9bcff;outline-offset:2px}
.button-primary{background:#3158d4;color:#fff}.button-primary:hover{background:#2447b7}.button-secondary{background:#fff;color:#2d3a50;border-color:#d4deeb}.button-secondary:hover,.icon-button:hover{background:#f3f6fa}.button-quiet{background:transparent;color:#506079}.button-quiet:hover{background:#eef2f7}.icon-button{width:36px;padding:4px;background:#fff;border-color:#d4deeb;font-size:20px;line-height:1}
.notice{margin:14px 24px 0;padding:12px 15px;border-radius:9px;font-size:13px;border:1px solid #fecaca;background:#fff1f1;color:#8d2525}.notice.success{border-color:#bbefd8;background:#edfff6;color:#106843}
.welcome{min-height:calc(100vh - 72px);display:grid;place-items:center;padding:28px}.welcome-card{width:min(100%,520px);padding:48px;border:1px solid #e3eaf3;border-radius:18px;background:#fff;box-shadow:0 16px 50px rgba(20,42,86,.08)}.eyebrow{font-size:10px;letter-spacing:.14em;font-weight:800;color:#627ad0}.welcome h1{font-size:34px;line-height:1.12;margin:14px 0;letter-spacing:-.04em}.welcome p{font-size:15px;line-height:1.6;color:#617087}.welcome .button{margin-top:15px;font-size:14px;padding:11px 18px}.hint{font-size:12px!important;color:#8a96a8!important}
.workspace{display:grid;grid-template-columns:265px minmax(0,1fr);min-height:calc(100vh - 72px)}.sidebar{background:#fff;border-right:1px solid #e4eaf1;padding:26px 16px;display:flex;flex-direction:column;min-height:0}.sidebar-head{display:flex;align-items:center;justify-content:space-between;padding:0 7px 20px}.sidebar h2{font-size:19px;letter-spacing:-.025em;margin:5px 0 0}.search-label{font-size:12px;color:#6d7b90;font-weight:650;margin:0 7px 8px}.input{width:100%;border:1px solid #d5deeb;border-radius:9px;background:#fff;padding:10px 12px;color:#17243a;font-size:13px;outline:none}.input::placeholder{color:#9aa6b7}.table-list{display:flex;flex-direction:column;gap:4px;overflow:auto;margin:15px -4px 0}.table-list button{border:0;background:transparent;text-align:left;border-radius:9px;padding:11px 12px;color:#34435a;width:100%;font-size:13px;display:flex;align-items:center;gap:9px}.table-list button:before{content:"▦";font-size:16px;color:#8493aa}.table-list button:hover{background:#f2f5fa}.table-list button.active{background:#eaf0ff;color:#2141a4;font-weight:700}.table-list button.active:before{color:#3158d4}.sidebar-foot{padding:12px 7px 0;margin:auto 0 0;color:#8a96a8;font-size:12px}
.content{padding:32px;min-width:0}.empty-state{height:min(65vh,520px);display:flex;flex-direction:column;align-items:center;justify-content:center;color:#8794a8;text-align:center}.empty-icon{display:grid;place-items:center;width:64px;height:64px;background:#e9efff;color:#3158d4;border-radius:18px;font-size:30px}.empty-state h2{font-size:20px;color:#2b3c56;margin:18px 0 4px}.empty-state p{font-size:14px;margin:0}.table-heading{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:27px}.table-heading h1{font-size:27px;letter-spacing:-.035em;margin:7px 0}.table-heading p{margin:0;color:#77869a;font-size:13px}.table-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.table-tools{background:#fff;border:1px solid #e2e9f2;border-bottom:0;border-radius:12px 12px 0 0;padding:15px 17px;display:flex;align-items:center;justify-content:space-between;gap:12px}.table-tools strong{font-size:13px}.table-tools .hint{margin-left:10px}.table-tools .input{width:230px;padding:8px 11px}
.row-table-wrap{background:#fff;border:1px solid #e2e9f2;border-radius:0 0 12px 12px;overflow:auto;max-height:calc(100vh - 290px)}table{border-collapse:collapse;width:100%;font-size:13px}th,td{text-align:left;padding:12px 15px;border-bottom:1px solid #eef2f6;white-space:nowrap;max-width:320px;overflow:hidden;text-overflow:ellipsis}th{position:sticky;top:0;background:#f9fbfe;color:#64748b;font-size:11px;text-transform:uppercase;letter-spacing:.06em;z-index:1}tbody tr:hover{background:#fafcff}tbody tr:last-child td{border-bottom:0}.row-key{color:#2448b8;font-weight:700}.row-actions{display:flex;gap:10px}.row-actions button{border:0;background:transparent;color:#3158d4;font-size:12px;font-weight:650;padding:2px}.row-actions button.delete{color:#b43b3b}.rows-empty{text-align:center;padding:35px;color:#7b889d}.load-more{display:block;margin:20px auto}
.row-dialog{width:min(100% - 28px,560px);max-height:min(85vh,740px);border:1px solid #dde5f0;border-radius:15px;padding:0;box-shadow:0 25px 70px rgba(21,36,68,.25)}.row-dialog::backdrop{background:rgba(21,34,60,.52)}.row-dialog form{padding:24px}.dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;border-bottom:1px solid #e8edf4;padding-bottom:17px}.dialog-heading h2{margin:6px 0 0;font-size:22px;letter-spacing:-.03em}.row-fields{padding:20px 0;max-height:52vh;overflow:auto;display:grid;gap:15px}.field label{display:block;font-size:13px;font-weight:650;margin-bottom:6px}.field .input{width:100%}.field small{display:block;margin-top:5px;color:#8794a8;font-size:11px}.field.checkbox{display:flex;align-items:center;gap:10px}.field.checkbox label{margin:0}.field.checkbox input{width:16px;height:16px;accent-color:#3158d4}.form-error{color:#aa2f2f;background:#fff1f1;padding:10px;border-radius:8px;font-size:12px}.dialog-actions{display:flex;justify-content:flex-end;gap:9px;border-top:1px solid #e8edf4;padding-top:17px}
@media(max-width:850px){.workspace{grid-template-columns:1fr}.sidebar{border-right:0;border-bottom:1px solid #e4eaf1;padding:16px}.table-list{max-height:145px}.content{padding:20px}.table-heading{flex-direction:column}.table-actions{justify-content:flex-start}.row-table-wrap{max-height:55vh}}
@media(max-width:560px){.topbar{height:auto;min-height:70px;padding:12px 15px}.region-label,.user-name{display:none}.content{padding:15px}.table-tools{flex-direction:column;align-items:stretch}.table-tools .input{width:100%}.welcome-card{padding:30px}.welcome h1{font-size:28px}.table-heading h1{font-size:23px}}
