/* Пульт — светлая и тёмная тема, без внешних шрифтов */
:root { --bg:#f6f7f9; --card:#fff; --text:#1d2330; --muted:#6b7385; --line:#e3e6ec; --accent:#2f5bd3; --accent-ink:#fff;
  --ok:#1f7a4d; --ok-bg:#e8f5ee; --err:#b3261e; --err-bg:#fdecea; --warn-bg:#fff4dc; color-scheme: light; }
@media (prefers-color-scheme: dark) { :root { --bg:#14171d; --card:#1d2129; --text:#e6e9ef; --muted:#9aa3b5; --line:#2c323d;
  --accent:#7b9cff; --accent-ink:#0d1220; --ok:#7fd3a5; --ok-bg:#16301f; --err:#ff9b93; --err-bg:#3a1d1b; --warn-bg:#3a2f15; color-scheme: dark; } }
* { box-sizing: border-box; }
body { margin:0; background:var(--bg); color:var(--text); font:15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color:var(--accent); text-decoration:none; } a:hover { text-decoration:underline; }
header { background:var(--card); border-bottom:1px solid var(--line); }
.bar { max-width:1100px; margin:0 auto; padding:10px 16px; display:flex; gap:20px; align-items:center; flex-wrap:wrap; }
.brand { font-weight:700; color:var(--text); }
nav { display:flex; gap:14px; flex:1; }
.me { display:flex; gap:10px; align-items:center; color:var(--muted); font-size:14px; }
main { max-width:1100px; margin:0 auto; padding:20px 16px 60px; }
h1 { font-size:24px; margin:8px 0 16px; } h2 { font-size:18px; margin:24px 0 10px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:10px; padding:16px; }
.muted { color:var(--muted); }
dl { display:grid; grid-template-columns:max-content 1fr; gap:6px 18px; margin:0; } dt { color:var(--muted); } dd { margin:0; }
table.list { width:100%; border-collapse:collapse; background:var(--card); border:1px solid var(--line); border-radius:10px; overflow:hidden; }
.list th, .list td { text-align:left; padding:9px 12px; border-bottom:1px solid var(--line); }
.list th { font-weight:600; color:var(--muted); font-size:13px; }
@media (max-width:700px) { .list th:nth-child(3), .list td:nth-child(3), .list th:nth-child(5), .list td:nth-child(5) { display:none; } }
button { font:inherit; padding:7px 14px; border-radius:8px; border:1px solid var(--line); background:var(--card); color:var(--text); cursor:pointer; }
button.primary { background:var(--accent); color:var(--accent-ink); border-color:var(--accent); }
button.link { border:0; background:none; color:var(--accent); padding:0; }
form.inline { display:inline; }
.actions { display:flex; gap:8px; flex-wrap:wrap; margin-top:14px; }
.row { display:flex; gap:10px; align-items:flex-end; flex-wrap:wrap; }
label { display:flex; flex-direction:column; gap:4px; font-size:14px; color:var(--muted); }
input { font:inherit; padding:8px 10px; border:1px solid var(--line); border-radius:8px; background:var(--bg); color:var(--text); min-width:220px; }
code { font-family:ui-monospace, Menlo, Consolas, monospace; font-size:14px; }
code.secret { background:var(--warn-bg); padding:2px 6px; border-radius:6px; }
.hint { color:var(--muted); font-size:13px; margin:10px 0 0; }
.flash { padding:10px 14px; border-radius:8px; margin-bottom:14px; background:var(--warn-bg); }
.flash.ok { background:var(--ok-bg); color:var(--ok); } .flash.error { background:var(--err-bg); color:var(--err); }
.acting { background:var(--warn-bg); padding:10px 16px; text-align:center; display:flex; gap:12px; justify-content:center; align-items:center; flex-wrap:wrap; }
body.login { display:flex; min-height:100vh; align-items:center; justify-content:center; padding:16px; }
.login-card { width:100%; max-width:360px; display:flex; flex-direction:column; gap:14px; }
.login-card input { min-width:0; width:100%; }
/* этап 3: реестр, группы, загрузка */
h3 { font-size:16px; margin:0 0 10px; }
.btn { display:inline-block; padding:7px 14px; border-radius:8px; border:1px solid var(--line); background:var(--card); color:var(--text); }
.btn.primary { background:var(--accent); color:var(--accent-ink); border-color:var(--accent); }
.btn:hover { text-decoration:none; }
.head-row { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; }
.head-row .actions { margin:0; }
.filters { display:flex; gap:8px; flex-wrap:wrap; margin:0 0 14px; }
.filters input { min-width:200px; flex:1; }
select, textarea { font:inherit; padding:8px 10px; border:1px solid var(--line); border-radius:8px; background:var(--bg); color:var(--text); }
textarea { width:100%; font-family:ui-monospace, Menlo, Consolas, monospace; font-size:13px; }
.grid-form { display:grid; grid-template-columns:repeat(auto-fit, minmax(240px, 1fr)); gap:12px; margin-bottom:16px; }
.grid-form .wide { grid-column:1 / -1; }
.grid-form input, .grid-form select { min-width:0; width:100%; }
.two { display:grid; grid-template-columns:repeat(auto-fit, minmax(280px, 1fr)); gap:16px; margin-bottom:16px; }
.two .card { display:flex; flex-direction:column; gap:10px; align-items:flex-start; }
.two input, .two select { min-width:0; width:100%; }
.row.tight { gap:6px; flex-wrap:nowrap; } .row.tight input { min-width:0; width:140px; }
.st { padding:1px 8px; border-radius:10px; font-size:13px; background:var(--bg); }
.st-active { background:var(--ok-bg); color:var(--ok); } .st-paused { background:var(--warn-bg); } .st-fired { background:var(--err-bg); color:var(--err); }
.group { margin-bottom:12px; } .group.archived { opacity:.6; } .group p, .group .rops { margin:6px 0; }
.chip form.inline { display:inline-flex; }
.chip { display:inline-flex; align-items:center; gap:4px; background:var(--bg); border:1px solid var(--line); border-radius:12px; padding:1px 4px 1px 10px; }
.chip-x { border:0; background:none; color:var(--muted); padding:0 6px; font-size:16px; line-height:1; }
details { margin:8px 0; } details > summary { cursor:pointer; color:var(--accent); }
details form { margin:10px 0; }
pre.sample { white-space:pre-wrap; background:var(--bg); padding:8px 10px; border-radius:8px; font-size:12px; }
ul.hint { padding-left:18px; } ul.hint li { margin:4px 0; }
.stats { display:flex; gap:24px; flex-wrap:wrap; margin-bottom:14px; }
.err { color:var(--err); } .warn { color:var(--muted); font-style:italic; }
.imp-error td { background:var(--err-bg); } .imp-new td:nth-child(2) { color:var(--ok); }
table.list td code { word-break:break-all; }
/* этап 4: доступы */
.creds tr.archived td { opacity:.7; }
.copyable { display:inline-flex; gap:6px; align-items:center; flex-wrap:wrap; }
button.copy { padding:2px 8px; font-size:13px; }
label.check { flex-direction:row; align-items:center; gap:8px; color:var(--text); }
label.check input { min-width:0; width:auto; }
.cred-form { margin-top:12px; }
/* этап 5: смены паролей */
table.rot td:first-child, table.rot th:first-child { width:32px; }
.rot-applied td, .rot-replaced td, .rot-excluded td { color:var(--muted); }
.rot-excluded td:nth-child(2) { text-decoration:line-through; }
a.pend { font-size:13px; }
input[type=checkbox] { min-width:0; width:auto; }
