*{box-sizing:border-box}
:root{--bg:#ffffff;--surface:#ffffff;--text:#1d1d1f;--muted:#6e6e73;--primary:#0a84ff;--border:#d2d2d7;--success:#34c759;--danger:#ff3b30}
body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;background:#f5f5f7;color:var(--text);margin:0;min-height:100vh}
a{text-decoration:none;color:var(--primary)}
input,button,select{font:inherit}
button{border:none}
.card{background:var(--surface);border:1px solid var(--border);border-radius:20px;box-shadow:0 10px 30px rgba(0,0,0,.08);padding:28px;max-width:720px;margin:72px auto}
.topbar{position:sticky;top:0;background:#fff;border-bottom:1px solid var(--border);padding:12px 24px;display:flex;align-items:center;justify-content:space-between}
.brand{font-weight:600;color:var(--text)}
.title{font-size:22px;font-weight:600;margin-bottom:12px;color:var(--text)}
.row{display:flex;gap:12px;margin:12px 0;align-items:center}
.row>label{width:120px;color:var(--muted)}
.input{flex:1;padding:12px 14px;border:1px solid var(--border);border-radius:12px;background:#f5f5f7;color:var(--text);outline:none;transition:border-color .2s,box-shadow .2s,background .2s}
.input:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(10,132,255,.2);background:#fff}
.btn{padding:12px 18px;border-radius:999px;background:var(--primary);color:#fff;font-weight:600;cursor:pointer;transition:transform .05s ease,filter .2s ease}
.btn:hover{filter:brightness(1.05)}
.btn:active{transform:scale(.98)}
.btn-secondary{padding:12px 18px;border-radius:999px;border:1px solid var(--border);background:#fff;color:var(--text);cursor:pointer;transition:border-color .2s,background .2s}
.btn-secondary:hover{border-color:var(--primary);background:#f0f7ff}
.btn-danger{padding:12px 18px;border-radius:999px;background:#ff3b30;color:#fff;font-weight:600;cursor:pointer;transition:transform .05s ease,filter .2s ease}
.btn-danger:hover{filter:brightness(1.05)}
.btn-danger:active{transform:scale(.98)}
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.tabs{display:flex;gap:8px;margin-bottom:16px}
.tab{padding:10px 16px;border-radius:999px;border:1px solid var(--border);color:var(--muted);cursor:pointer;transition:background .2s,color .2s,border-color .2s}
.tab:hover{border-color:var(--primary);color:var(--text)}
.tab-active{background:#eaf2ff;color:var(--text);border-color:var(--primary)}
.table{width:100%;border-collapse:separate;border-spacing:0;border:1px solid var(--border);border-radius:12px;overflow:hidden;background:#fff}
.table thead th{background:#f8f9fb;color:var(--muted);padding:14px;border-bottom:1px solid var(--border);text-align:left}
.table tbody td{padding:14px;border-bottom:1px solid var(--border)}
.table tbody tr:hover{background:#f5f7fa}
.table-wrap{width:100%;overflow-x:auto}
.table thead th,.table tbody td{white-space:nowrap}
.line{border:none;border-top:1px solid var(--border);margin:24px 0}
.error{color:var(--danger)}
.info{color:var(--success)}
.modal-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.35);display:flex;align-items:center;justify-content:center;z-index:1000}
.modal{background:#fff;border:1px solid var(--border);border-radius:20px;box-shadow:0 10px 30px rgba(0,0,0,.08);padding:24px;max-width:420px;width:100%}
.modal-title{font-weight:600;margin-bottom:8px}
.modal-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:16px}