:root { --bg:#F2F3F5; --surface:#FFF; --dim:#F7F8F9; --ink:#191C1F; --ink2:#555B63; --ink3:#878E97; --outline:#E2E4E8; --outline2:#C9CDD3; --brand:#D32027; --brand2:#B0181E; --danger:#B3261E; --danger-bg:#FBEDEB; --danger-border:#E5B6B1; --ok:#1B7A3D; --ok-bg:#E9F4EC; --ok-border:#BFE0C9; --info:#1559A8; --info-bg:#E8F0FB; --info-border:#BDD3F0; }
* { box-sizing: border-box; }
body { margin:0; background:var(--bg); color:var(--ink); font:14px/22px 'Noto Sans','Noto Sans Georgian',system-ui,sans-serif; -webkit-font-smoothing:antialiased; }
a { color:var(--ink); }
h1 { margin:0; font-size:24px; line-height:32px; font-weight:600; }
h2 { margin:0; font-size:17px; line-height:24px; font-weight:600; }
.caption { font-size:12px; line-height:16px; color:var(--ink2); }
.ovl { font-size:11px; line-height:16px; font-weight:700; letter-spacing:1.6px; color:var(--ink2); text-transform:uppercase; }
.brand { display:flex; align-items:center; gap:10px; }
.mark { width:24px; height:24px; background:var(--brand); border-radius:2px; color:#fff; font-weight:700; font-size:14px; line-height:24px; text-align:center; }
.wordmark { font-size:15px; line-height:24px; font-weight:700; letter-spacing:2.5px; }
.brand-lg .mark { width:28px; height:28px; font-size:16px; line-height:28px; } .brand-lg .wordmark { font-size:20px; line-height:28px; letter-spacing:3px; }
.divider { width:1px; height:20px; background:var(--outline); }
.topbar { height:56px; background:var(--surface); border-bottom:1px solid var(--outline); display:flex; align-items:center; gap:16px; padding:0 24px; }
.topbar nav { margin-left:8px; } .navlink { text-decoration:none; font-weight:600; font-size:13px; line-height:16px; padding:10px 12px; border-radius:2px; background:var(--bg); }
.spacer { flex:1 1 auto; }
main { width:100%; max-width:1120px; margin:0 auto; padding:24px 24px 48px; display:flex; flex-direction:column; gap:24px; }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:6px; height:40px; padding:0 18px; border-radius:2px; font:inherit; font-size:13px; font-weight:600; line-height:16px; white-space:nowrap; border:1px solid transparent; cursor:pointer; text-decoration:none; background:transparent; color:var(--ink); }
.btn-primary { background:var(--brand); color:#fff; } .btn-primary:hover { background:var(--brand2); }
.btn-secondary { background:var(--surface); border-color:var(--outline2); padding:0 16px; }
.btn-danger { background:var(--surface); color:var(--danger); border-color:var(--danger); padding:0 16px; }
.btn-text { text-decoration:underline; text-decoration-color:var(--outline2); padding:0 8px; height:32px; }
.btn-text.danger { color:var(--danger); text-decoration-color:var(--danger-border); }
.btn-sm { height:32px; padding:0 12px; } .btn-block { width:100%; }
.btn:disabled { background:var(--outline); color:#A7ADB5; border-color:transparent; cursor:default; }
.input, select.input { height:40px; padding:0 12px; border:1px solid var(--outline2); border-radius:2px; background:var(--surface); font:inherit; color:var(--ink); width:100%; }
.input:disabled { background:var(--dim); color:var(--ink2); } .input::placeholder { color:var(--ink3); }
.input.code, .code { font-family:Menlo,'Roboto Mono',ui-monospace,monospace; letter-spacing:.8px; }
.code { font-size:12px; font-weight:600; border:1px solid var(--outline2); border-radius:2px; padding:1px 6px; white-space:nowrap; }
.field { display:flex; flex-direction:column; gap:6px; min-width:0; } .field label, .field .label { font-size:13px; line-height:16px; font-weight:500; color:var(--ink2); }
.field-error { font-size:12px; line-height:16px; color:var(--danger); }
.grid2 { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; } .grid3 { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.card { background:var(--surface); border:1px solid var(--outline); border-radius:4px; }
.card-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px 20px; border-bottom:1px solid var(--outline); flex-wrap:wrap; }
.card-body { padding:20px; display:flex; flex-direction:column; gap:16px; }
.card-foot { padding:12px 20px; border-top:1px solid var(--outline); }
.chip { display:inline-flex; align-items:center; height:24px; padding:0 8px; border-radius:2px; font-size:12px; font-weight:600; line-height:16px; white-space:nowrap; border:1px solid; }
.chip-active { color:var(--ok); background:var(--ok-bg); border-color:var(--ok-border); }
.chip-suspended { color:var(--ink2); background:#EEF0F2; border-color:#D5D8DD; }
.chip-id { color:var(--ink2); background:var(--surface); border-color:var(--outline2); font-weight:500; }
.tablewrap { overflow-x:auto; } table { border-collapse:collapse; width:100%; }
th { text-align:left; font-size:11px; line-height:16px; font-weight:700; letter-spacing:1.6px; color:var(--ink2); text-transform:uppercase; padding:12px 16px; border-bottom:1px solid var(--outline); white-space:nowrap; }
td { padding:14px 16px; border-bottom:1px solid var(--outline); vertical-align:middle; } tr:last-child td { border-bottom:0; } tbody tr:hover td { background:var(--dim); }
.num { font-variant-numeric:tabular-nums lining-nums; text-align:right; }
.actions { display:flex; gap:8px; justify-content:flex-end; flex-wrap:wrap; }
.pagehead { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.detailhead { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.titlerow { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.meta { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.cols { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; } .span2 { grid-column:span 2; }
.stack { display:flex; flex-direction:column; gap:24px; }
.rowlist { list-style:none; margin:0; padding:0; } .rowlist li { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 20px; border-bottom:1px solid var(--outline); } .rowlist li:last-child { border-bottom:0; }
.audit li { display:grid; grid-template-columns:150px 1fr; }
.seg { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); border:1px solid var(--outline2); border-radius:2px; overflow:hidden; }
.seg button { height:36px; border:0; background:var(--surface); font:inherit; font-size:13px; font-weight:600; color:var(--ink2); cursor:pointer; } .seg button[aria-pressed="true"] { background:var(--ink); color:#fff; }
.note { display:flex; gap:12px; padding:12px 14px; background:var(--dim); border:1px solid var(--outline); border-radius:4px; font-size:13px; line-height:20px; color:var(--ink2); }
.note.danger { background:var(--danger-bg); border-color:var(--danger-border); color:var(--ink); }
.check { display:flex; align-items:center; gap:12px; padding:10px 12px; border:1px solid var(--outline); border-radius:4px; cursor:pointer; } .check input { width:18px; height:18px; margin:0; flex:none; }
.note.ok { background:var(--ok-bg); border-color:var(--ok-border); color:var(--ink); }
.note.info { background:var(--info-bg); border-color:var(--info-border); color:var(--ink); }
.error { margin:0; font-size:13px; line-height:20px; color:var(--danger); }
dialog { border:0; border-radius:8px; padding:0; width:min(560px, calc(100% - 32px)); box-shadow:0 12px 32px rgba(25,28,31,.18); color:var(--ink); }
dialog.narrow { width:min(480px, calc(100% - 32px)); }
dialog::backdrop { background:rgba(25,28,31,.48); }
.dlg-head { padding:20px 24px; border-bottom:1px solid var(--outline); display:flex; align-items:center; justify-content:space-between; gap:12px; }
.dlg-body { padding:20px 24px; display:flex; flex-direction:column; gap:16px; } .dlg-foot { padding:16px 24px; border-top:1px solid var(--outline); display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.dlg-foot .actions { margin-left:auto; }
.close { width:32px; height:32px; border:0; background:transparent; cursor:pointer; font-size:18px; line-height:32px; color:var(--ink); }
.signin { min-height:100vh; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:24px; padding:48px 16px; }
.signin-card { width:100%; max-width:400px; padding:32px; display:flex; flex-direction:column; gap:20px; } .signin-card h1 { font-size:20px; line-height:28px; }
.toast { position:fixed; left:50%; bottom:24px; transform:translateX(-50%); background:var(--ink); color:#fff; padding:10px 16px; border-radius:4px; font-size:13px; line-height:20px; box-shadow:0 4px 12px rgba(25,28,31,.1); }
.toast.error { background:var(--danger); }
.skeleton td { color:transparent; } .skeleton td span { display:inline-block; height:12px; width:60%; background:var(--outline); border-radius:2px; }
.empty { padding:32px; text-align:center; color:var(--ink2); }
@media (max-width: 760px) {
  .topbar { padding:0 12px; gap:8px; } .topbar nav { display:none; } main { padding:16px 16px 48px; }
  .cols, .grid2, .grid3 { grid-template-columns:minmax(0,1fr); } .span2 { grid-column:auto; }
  .audit li { grid-template-columns:minmax(0,1fr); gap:2px; }
  .actions { justify-content:stretch; } .actions .btn { flex:1 1 auto; }
}
