:root { --accent: #4a90d9; --danger: #d9534f; --ok: #2ea44f; --warn: #e8833a; --line: #d5d9e0; }
* { box-sizing: border-box; }
body { font-family: -apple-system, system-ui, sans-serif; margin: 0; color: #1c2430; font-size: 14px; }
.topnav { display: flex; gap: 4px; align-items: center; padding: 8px 16px; border-bottom: 2px solid var(--line); }
.topnav .brand { font-weight: 800; margin-right: 12px; }
.topnav a { padding: 6px 12px; border-radius: 6px; text-decoration: none; color: inherit; }
.topnav a.active { background: var(--accent); color: #fff; }
.topnav .logout { margin-left: auto; opacity: .7; }
main { padding: 16px; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar select, .toolbar input, table input, table select { padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; font: inherit; }
.pill { padding: 3px 12px; border-radius: 14px; border: 1px solid var(--line); background: none; font: inherit; cursor: pointer; }
.pill.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.statline { font-size: 13px; opacity: .85; margin-bottom: 10px; }
.editor-split { display: flex; gap: 16px; align-items: flex-start; }
.editor-split > section { flex: 1; min-width: 0; }
table { border-collapse: collapse; width: 100%; }
th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; opacity: .6; padding: 6px 8px; border-bottom: 1px solid var(--line); }
td { padding: 6px 8px; border-bottom: 1px solid #eceff3; vertical-align: top; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 9px; font-size: 11px; font-weight: 600; background: #9b59b61e; color: #9b59b6; margin-right: 3px; }
.tok1 { background: #2ea44f33; border-radius: 3px; padding: 0 2px; }
.tok2 { background: #e8833a4d; border-radius: 3px; padding: 0 2px; }
.used { color: var(--ok); font-weight: 700; }
.loccard { border: 1px solid var(--line); border-radius: 8px; padding: 12px; margin-bottom: 12px; }
.loccard h3 { margin: 0 0 8px; font-size: 14px; }
.loccard .hint { font-weight: 400; opacity: .6; font-size: 12px; }
.fieldrow { margin-bottom: 10px; }
.fieldrow label { display: flex; justify-content: space-between; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; opacity: .75; margin-bottom: 3px; }
.fieldrow input, .fieldrow textarea { width: 100%; padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px; font: inherit; }
.fieldrow .cnt.over { color: var(--danger); font-weight: 700; }
.dup-chips { font-size: 12px; margin-top: 3px; }
.btn { padding: 6px 14px; border-radius: 6px; border: none; background: var(--accent); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.btn.ghost { background: none; border: 1px solid var(--accent); color: var(--accent); }
.btn.danger { background: var(--danger); }
.iconbtn { border: none; background: none; cursor: pointer; font-size: 14px; opacity: .6; }
.iconbtn:hover { opacity: 1; }
.error-line { color: var(--danger); font-size: 12px; margin: 4px 0; }
.warn-line { color: var(--warn); font-size: 12px; margin: 4px 0; }
.note { font-size: 12.5px; padding: 8px 10px; border-radius: 6px; background: #4a90d914; border: 1px solid #4a90d940; margin-bottom: 10px; }
.kv { font-family: ui-monospace, monospace; font-size: 12px; background: #f2f4f7; padding: 10px; border-radius: 6px; overflow-x: auto; white-space: pre; }
.login-page { display: flex; min-height: 100vh; align-items: center; justify-content: center; }
.login-card { display: flex; flex-direction: column; gap: 12px; width: 280px; }
.login-card input { padding: 8px; width: 100%; }
.error { color: var(--danger); }
dialog { border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
