[hidden] { display: none !important; }
:root {
  --bg: #f4f5f7; --card: #fff; --ink: #1c2330; --muted: #667085; --line: #e3e6ec;
  --brand: #1a5f80; --brand-2: #2a7ba3; --accent: #38b6ff; --ok: #1b7f4b; --warn: #b7791f; --bad: #c0392b;
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--bg); color: var(--ink); }
header.top { background: #fff; color: var(--ink); padding: 10px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 3px solid var(--accent); }
header.top .brand { display: flex; align-items: center; gap: 14px; }
header.top .brand img { height: 56px; width: auto; display: block; }
header.top h1 { font-size: 17px; margin: 0; font-weight: 600; color: var(--brand); }
header.top .sub { color: var(--muted); font-size: 13px; }
main { max-width: 980px; margin: 0 auto; padding: 20px 16px 60px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 18px; margin-bottom: 16px; }
.card h2 { margin: 0 0 4px; font-size: 17px; }
.muted { color: var(--muted); font-size: 13px; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
input[type=text], input[type=email], input[type=tel], input[type=password] {
  width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 7px; font: inherit; background: #fff;
}
input:focus { outline: 2px solid var(--brand-2); outline-offset: -1px; }
button, .btn {
  font: inherit; font-size: 14px; padding: 8px 14px; border-radius: 7px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); cursor: pointer; text-decoration: none; display: inline-block;
}
button:hover, .btn:hover { background: #f0f3f8; }
button.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
button.primary:hover { background: var(--brand-2); }
button.danger { color: var(--bad); }
button.small, .btn.small { padding: 5px 10px; font-size: 13px; }
button:disabled { opacity: .5; cursor: default; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.tabs { display: flex; gap: 4px; margin: 16px 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button { border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: none; padding: 10px 14px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.tabs button:hover { background: none; color: var(--brand); }
.tabs button.active { color: var(--brand); border-bottom-color: var(--accent); background: none; }
.bar { height: 8px; background: #e6e9f0; border-radius: 99px; overflow: hidden; min-width: 90px; }
.bar > i { display: block; height: 100%; background: var(--ok); }
.doc { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.doc:first-of-type { border-top: 0; }
.doc .name { font-weight: 600; }
.badge { font-size: 12px; padding: 2px 8px; border-radius: 99px; background: #eef1f6; color: var(--muted); }
.badge.ok { background: #e3f4ea; color: var(--ok); }
.badge.warn { background: #fdf3dc; color: var(--warn); }
.badge.bad { background: #fbe7e4; color: var(--bad); }
.req { color: var(--bad); }
.plist { list-style: none; margin: 0; padding: 0; }
.plist li { display: grid; grid-template-columns: 1fr 170px auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); cursor: pointer; }
.plist li:first-child { border-top: 0; }
.plist li:hover { background: #fafbfd; }
.linkbox { display: flex; gap: 6px; align-items: center; margin-top: 6px; }
.linkbox input { font-size: 12px; background: #f7f8fa; }
.toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); background: #1c2330; color: #fff; padding: 10px 16px; border-radius: 8px; font-size: 14px; z-index: 9; }
.toast.err { background: var(--bad); }
.center { max-width: 380px; margin: 12vh auto; }
@media (max-width: 640px) {
  .plist li { grid-template-columns: 1fr; }
  .doc { grid-template-columns: 1fr; }
}

.center .logo { display: block; margin: 0 auto 8px; height: 110px; width: auto; }
