:root{--bg: #f4f6f9;--surface: #ffffff;--border: #e3e7ee;--text: #1c2430;--muted: #6b7686;--primary: #2563eb;--primary-hover: #1d4fd0;--danger: #c62828;--sidebar: #111827;--sidebar-text: #cbd5e1;--radius: 10px}*{box-sizing:border-box}body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;background:var(--bg);color:var(--text);font-size:15px}h1{font-size:1.5rem;margin:0 0 1rem}.muted{color:var(--muted)}.center-screen{min-height:100vh;display:grid;place-items:center;padding:16px}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:20px}.login-card{width:100%;max-width:360px;display:flex;flex-direction:column;gap:14px}.login-card h1,.login-card p{margin:0}label{display:flex;flex-direction:column;gap:6px;font-weight:500;font-size:.9rem}input{padding:10px 12px;border:1px solid var(--border);border-radius:8px;font:inherit}input:focus{outline:2px solid var(--primary);outline-offset:-1px}.error{background:#fdecea;color:var(--danger);padding:8px 12px;border-radius:8px;font-size:.9rem}.success{background:#e8f5e9;color:#2e7d32;padding:8px 12px;border-radius:8px;font-size:.9rem}.form-card{max-width:400px;display:flex;flex-direction:column;gap:14px}.btn{padding:10px 16px;border-radius:8px;border:1px solid transparent;font:inherit;font-weight:600;cursor:pointer}.btn:disabled{opacity:.6;cursor:default}.btn-primary{background:var(--primary);color:#fff}.btn-primary:hover:not(:disabled){background:var(--primary-hover)}.btn-ghost{background:transparent;color:var(--sidebar-text);border-color:#374151}.btn-ghost:hover{background:#1f2937}.btn-secondary{background:var(--surface);color:var(--text);border-color:var(--border)}.btn-secondary:hover:not(:disabled){background:#eef1f6}.btn-danger{background:var(--surface);color:var(--danger);border-color:#f0c4c4}.btn-danger:hover:not(:disabled){background:#fdecea}.icon-btn{background:transparent;border:0;font-size:1.4rem;line-height:1;cursor:pointer;color:var(--muted);padding:2px 8px;border-radius:6px}.icon-btn:hover{background:#eef1f6;color:var(--text)}.link-btn{background:none;border:0;color:var(--primary);cursor:pointer;font:inherit;padding:0;text-decoration:underline}h2{font-size:1.15rem;margin:0 0 12px}h3{font-size:.95rem;margin:14px 0 6px}.small{font-size:.82rem}.right{text-align:right}.center{text-align:center}.mt-4{margin-top:4px}.section{margin-bottom:28px}.section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:12px}.section-head h2{margin:0}.card+.card,.notice+.card,.section .card{margin-top:12px}section.card{margin-bottom:16px}code{background:#eef1f6;padding:1px 5px;border-radius:4px;font-size:.85em}.help summary{cursor:pointer;font-weight:600}.help ul{margin:10px 0 0;padding-left:20px;display:flex;flex-direction:column;gap:8px}.conn-card{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}.actions{display:flex;gap:8px;flex-wrap:wrap}.toolbar{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap;margin-bottom:14px}label.inline{flex-direction:row;align-items:center;gap:8px}.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:14px}.grid-2>label,section.card>label{margin-bottom:0}section.card>label{margin-top:14px}select{padding:10px 12px;border:1px solid var(--border);border-radius:8px;font:inherit;background:var(--surface);width:100%}select:focus{outline:2px solid var(--primary);outline-offset:-1px}textarea{padding:10px 12px;border:1px solid var(--border);border-radius:8px;font:inherit;resize:vertical;width:100%}textarea:focus{outline:2px solid var(--primary);outline-offset:-1px}input:disabled,select:disabled{background:#f4f6f9;color:var(--muted)}.badge{display:inline-block;padding:2px 9px;border-radius:999px;font-size:.75rem;font-weight:600}.badge-ok{background:#e8f5e9;color:#2e7d32}.badge-error{background:#fdecea;color:var(--danger)}.badge-pending{background:#eef1f6;color:var(--muted)}.badge-info{background:#e8f0fe;color:#1a3d8f}.badge-warn{background:#fff4e0;color:#8a5a00}.nowrap{white-space:nowrap}.chips{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}.chip{background:var(--surface);border:1px solid var(--border);border-radius:999px;padding:5px 12px;font:inherit;font-size:.85rem;cursor:pointer;color:var(--text)}.chip:hover{background:#eef1f6}.chip-active{background:var(--primary);border-color:var(--primary);color:#fff}.chip-active:hover{background:var(--primary-hover)}.pager{display:flex;justify-content:center;align-items:center;gap:16px;margin-top:14px;flex-wrap:wrap}.kv{display:grid;grid-template-columns:max-content 1fr;gap:6px 18px;margin:0}.kv dt{color:var(--muted);font-size:.85rem;text-transform:capitalize}.kv dd{margin:0;word-break:break-word}.kv-row{display:contents}.audit-diff{margin-top:6px}.audit-diff td{padding:4px 8px;border-bottom:0;word-break:break-word}.attempt{border:1px solid var(--border);border-radius:8px;padding:10px 14px;margin-top:10px}.attempt summary{cursor:pointer}.notice{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;padding:10px 14px;border-radius:8px;margin-bottom:12px;font-size:.92rem}.notice-ok{background:#e8f5e9;color:#1b5e20}.notice-error{background:#fdecea;color:var(--danger)}.notice-info{background:#e8f0fe;color:#1a3d8f}.copy-field{margin-top:10px}.copy-row{display:flex;gap:8px}.copy-row input{flex:1;min-width:0}.switch{flex-direction:row;align-items:center;gap:8px;font-weight:500;cursor:pointer}.switch input{width:18px;height:18px}.table-card{padding:0;overflow-x:auto}.table{width:100%;border-collapse:collapse}.table th,.table td{padding:10px 14px;text-align:left;border-bottom:1px solid var(--border);vertical-align:top}.table th{font-size:.8rem;color:var(--muted);font-weight:600;text-transform:uppercase;letter-spacing:.03em}.table tr:last-child td{border-bottom:0}.map-table-wrap{overflow-x:auto;margin:0 -8px}.map-table td,.map-table th{padding:8px}.map-table input:not([type=checkbox]),.map-table select{min-width:150px}.map-table input[type=checkbox]{width:18px;height:18px}pre{background:#0f172a;color:#e2e8f0;padding:14px;border-radius:8px;overflow-x:auto;font-size:.82rem;margin:6px 0 0}.footer-bar{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;position:sticky;bottom:12px;box-shadow:0 4px 16px #0f172a1f}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a80;display:grid;place-items:center;padding:16px;z-index:50}.modal{background:var(--surface);border-radius:var(--radius);width:100%;max-width:480px;max-height:90vh;overflow-y:auto;padding:20px}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.modal-head h2{margin:0}.form-stack{display:flex;flex-direction:column;gap:14px}.modal-actions{display:flex;justify-content:flex-end;gap:8px}@media (max-width: 768px){.grid-2{grid-template-columns:1fr}}.shell{display:grid;grid-template-columns:230px 1fr;min-height:100vh}.sidebar{background:var(--sidebar);color:var(--sidebar-text);display:flex;flex-direction:column;padding:20px 14px;gap:18px;position:sticky;top:0;height:100vh}.brand{font-size:1.2rem;font-weight:700;color:#fff;padding:0 8px}.sidebar nav{display:flex;flex-direction:column;gap:2px;flex:1}.nav-link{color:var(--sidebar-text);text-decoration:none;padding:9px 12px;border-radius:8px}.nav-link:hover{background:#1f2937}.nav-link.active{background:var(--primary);color:#fff}.sidebar-footer{display:flex;flex-direction:column;gap:4px;padding:0 8px}.user-name{color:#fff;font-weight:600}.user-email{font-size:.8rem;word-break:break-all;margin-bottom:8px}.content{padding:28px 32px;min-width:0}@media (max-width: 768px){.shell{grid-template-columns:1fr}.sidebar{position:static;height:auto}.sidebar nav{flex-direction:row;flex-wrap:wrap}.content{padding:20px 16px}}
