:root {
  --navy: #1E2761;
  --ice: #E6E9F5;
  --slate: #5A6B87;
  --body: #3A4256;
  --bg: #F7F9FC;
  --card-bg: #FFFFFF;
  --border: #E1E6EF;
  --danger: #A32D2D;
  --danger-bg: #FCEBEB;
  --success: #0F6E56;
  --success-bg: #EAF3DE;
  --warning: #854F0B;
  --warning-bg: #FAEEDA;
  --muted: #8A93A6;
}
* { box-sizing: border-box; }
body { margin:0; font-family:"Calibri","Segoe UI",Arial,sans-serif; background:var(--bg); color:var(--body); }
.wrap { max-width: 720px; margin: 0 auto; padding: 28px 20px 60px; }
.topbar-row { display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; }
.tabs { display:flex; gap:8px; }
.tab { background:transparent; border:1px solid var(--navy); color:var(--navy); padding:8px 18px; border-radius:6px; cursor:pointer; font-size:14px; }
.tab.active { background:var(--navy); color:#fff; font-weight:bold; }
.view { display:none; }
.view.active { display:block; }
.lang-row { display:flex; justify-content:flex-end; gap:6px; margin-bottom:10px; }
.lang-btn { padding:4px 10px; font-size:12px; border:1px solid var(--border); border-radius:4px; background:#fff; cursor:pointer; }
.lang-btn.active { font-weight:600; }
.card { background:var(--card-bg); border:1px solid var(--border); border-radius:10px; margin-bottom:20px; overflow:hidden; }
.card-head { background:var(--navy); color:#fff; padding:10px 20px; font-size:15px; font-weight:500; }
.card-body { padding:18px 22px; }
.subhead { background:var(--ice); color:var(--navy); padding:6px 12px; font-size:13px; font-weight:500; border-radius:6px; margin:0 0 10px; }
.row { display:flex; gap:10px; margin:10px 0; flex-wrap:wrap; }
.row input[type="text"], .row input[type="password"], .row input[type="date"], .row input[type="file"] {
  flex:1; min-width:150px; padding:8px 10px; border:1px solid var(--border); border-radius:6px; font-size:14px;
}
.field-label { font-size:11px; color:var(--slate); display:block; margin-bottom:2px; }
.btn { padding:8px 16px; border-radius:6px; border:1px solid var(--navy); background:#fff; color:var(--navy); cursor:pointer; font-size:14px; text-decoration:none; display:inline-block; }
.btn:hover { background:var(--bg); }
.btn.primary { background:var(--navy); color:#fff; }
.btn.small { padding:4px 10px; font-size:12px; }
.error { color:var(--danger); font-size:13px; }
.hint { color:var(--slate); font-size:13px; }
.intro-text p { font-size:14px; color:var(--slate); margin:0 0 10px; }
.badge { display:inline-flex; align-items:center; gap:6px; padding:6px 14px; border-radius:6px; font-size:14px; font-weight:bold; margin-bottom:12px; }
.badge.found { background:var(--success-bg); color:var(--success); }
.badge.notfound { background:var(--danger-bg); color:var(--danger); }
.badge.multi { background:var(--warning-bg); color:var(--warning); }
.result-card { border:1px solid var(--border); border-radius:8px; padding:14px 18px; background:var(--bg); }
.version-tag, .chip { display:inline-flex; align-items:center; gap:6px; background:var(--ice); color:var(--navy); padding:3px 10px; border-radius:12px; font-size:12px; margin:0 6px 6px 0; }
.version-tag.solid { background:var(--navy); color:#fff; }
.chip button { border:none; background:transparent; color:inherit; cursor:pointer; font-weight:bold; }
.user-row { display:flex; justify-content:space-between; align-items:center; margin-bottom:14px; font-size:13px; color:var(--slate); }
.switch-row { display:flex; align-items:center; gap:8px; font-size:14px; cursor:pointer; }
.metric-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(110px,1fr)); gap:8px; }
.metric { border:1px solid var(--border); border-radius:6px; padding:10px 12px; background:var(--bg); }
.metric.todo { border-color:#E0A0A0; }
.metric-label { font-size:12px; color:var(--slate); display:block; }
.metric-count { font-size:20px; font-weight:600; }
.metric.todo .metric-count { color:var(--danger); }
.alpha-row { display:flex; flex-wrap:wrap; gap:4px; margin-bottom:6px; }
.alpha-row button { padding:3px 8px; font-size:12px; min-width:26px; border:1px solid var(--border); background:#fff; border-radius:4px; cursor:pointer; }
.alpha-row button.active { background:var(--navy); color:#fff; }
.textarea { width:100%; font-family:inherit; font-size:13px; padding:8px 10px; border:1px solid var(--border); border-radius:6px; }
.dirty { font-size:12px; color:var(--danger); }
.row-item { display:flex; align-items:center; gap:10px; width:100%; text-align:left; background:none; border:none; border-bottom:1px solid var(--border); padding:9px 4px; cursor:pointer; }
.row-item:hover { background:var(--bg); }
.row-item-name { font-weight:500; font-size:13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.row-item-status { margin-left:auto; flex-shrink:0; }
.status-dot { display:inline-block; width:10px; height:10px; border-radius:50%; }
.status-dot.ok { background:#3B6D11; }
.status-dot.todo { background:var(--danger); }
.modal-backdrop { background:rgba(0,0,0,0.45); display:flex; align-items:flex-start; justify-content:center; padding:24px 12px; }
.modal { background:#fff; border-radius:12px; max-width:620px; width:100%; overflow:hidden; }
.modal-head { background:var(--navy); color:#fff; padding:14px 20px; display:flex; align-items:center; justify-content:space-between; gap:10px; }
.modal-head input { background:transparent; border:none; border-bottom:1px solid rgba(255,255,255,0.4); color:#fff; font-size:16px; font-weight:500; flex:1; margin-right:12px; }
.modal-body { padding:18px 20px; }
.status-toggle { display:inline-flex; align-items:center; gap:6px; border-radius:999px; padding:5px 12px; font-size:13px; font-weight:500; cursor:pointer; border:1px solid var(--border); background:var(--bg); margin-bottom:10px; }
table.entries { width:100%; border-collapse:collapse; font-size:13px; margin-top:10px; }
table.entries th, table.entries td { text-align:left; padding:6px 4px; border-bottom:1px solid var(--border); }
table.entries th { color:var(--slate); font-weight:normal; }
table.entries input { padding:5px 7px; border:1px solid var(--border); border-radius:4px; font-size:12px; width:100%; }
.backup-row { display:flex; justify-content:space-between; align-items:center; padding:6px 0; border-bottom:1px solid var(--border); font-size:13px; }
