:root { --brand: #1f4e79; --bg: #f4f6f9; --card: #fff; --text: #1d2430; --muted: #6b7686; --line: #e2e6ec;
  --green: #1e8e4e; --amber: #b7791f; --red: #c53030; --grey: #8a94a3; }
* { box-sizing: border-box; }
body { margin: 0; font: 14px/1.5 -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background: var(--bg); color: var(--text); }
a { color: var(--brand); text-decoration: none; } a:hover { text-decoration: underline; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.top { background: var(--brand); color: #fff; margin-bottom: 24px; }
.is-admin .top { background: #222b36; border-bottom: 4px solid var(--brand); }
.top-in { display: flex; align-items: center; gap: 24px; min-height: 58px; flex-wrap: wrap; }
.top a { color: #fff; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; }
.logo img { max-height: 36px; max-width: 160px; background: #fff; border-radius: 4px; padding: 2px 6px; }
.logo-ph { display: inline-block; padding: 4px 10px; border: 1px dashed rgba(255,255,255,.6); border-radius: 4px; font-size: 12px; letter-spacing: .5px; text-transform: uppercase; color: #fff; }
.mainnav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.mainnav a { padding: 6px 12px; border-radius: 4px; opacity: .85; }
.mainnav a.active, .mainnav a:hover { background: rgba(255,255,255,.15); opacity: 1; text-decoration: none; }
.topright { display: flex; align-items: center; gap: 14px; font-size: 13px; }
.lang a { opacity: .7; } .lang a.on { opacity: 1; font-weight: 700; }
.who { opacity: .85; }
button.link { background: none; border: 0; color: #fff; cursor: pointer; text-decoration: underline; font: inherit; padding: 0; }
form.inline { display: inline; margin: 0; }
h1 { font-size: 22px; margin: 0 0 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
h2 { font-size: 16px; margin: 0 0 12px; display: flex; align-items: center; gap: 10px; }
h3 { font-size: 14px; margin: 16px 0 8px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px; margin-bottom: 20px; }
table.card { padding: 0; border-collapse: separate; border-spacing: 0; width: 100%; overflow: hidden; }
.card.narrow { max-width: 440px; margin: 40px auto; }
.card.highlight { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 15%, transparent); }
.card.wizard { max-width: 860px; margin: 0 auto 20px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .3px; }
tr:last-child td { border-bottom: 0; }
tr.muted td { color: var(--muted); }
label { display: block; margin-bottom: 12px; font-weight: 500; }
label.inline { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
label.check { display: flex; align-items: center; gap: 8px; font-weight: 400; }
input, select, textarea { display: block; width: 100%; margin-top: 4px; padding: 8px 10px; border: 1px solid #cfd6df; border-radius: 6px; font: inherit; background: #fff; }
label.check input, label.inline input { width: auto; display: inline-block; margin: 0; }
input[type=color] { padding: 2px; height: 38px; }
textarea { resize: vertical; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.row input { width: auto; flex: 1; min-width: 200px; margin: 0; }
.row .right, .right { margin-left: auto; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; align-items: end; }
@media (max-width: 900px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.btn { display: inline-block; padding: 8px 14px; border-radius: 6px; border: 1px solid #cfd6df; background: #fff; color: var(--text); cursor: pointer; font: inherit; font-weight: 500; }
.btn:hover { background: #f0f3f7; text-decoration: none; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { filter: brightness(1.1); }
.btn.danger { color: var(--red); border-color: #f0c6c6; }
.btn.small { padding: 3px 9px; font-size: 12px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.actions { white-space: nowrap; } .actions form { display: inline-block; margin: 0 2px 2px 0; }
.pill { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; font-weight: 600; background: #eef1f5; color: var(--grey); white-space: nowrap; }
.pill.small { font-size: 11px; padding: 0 6px; }
.pill.green { background: #e3f4ea; color: var(--green); } .pill.amber { background: #fdf2dc; color: var(--amber); }
.pill.red { background: #fbe4e4; color: var(--red); } .pill.grey { background: #eef1f5; color: var(--grey); }
.flash { padding: 10px 14px; border-radius: 6px; margin-bottom: 16px; }
.flash.ok { background: #e3f4ea; color: #145c33; } .flash.err { background: #fbe4e4; color: #8b1f1f; } .flash.warn { background: #fdf2dc; color: #7a5212; }
.stats { display: flex; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 14px 20px; min-width: 150px; }
.stat b { display: block; font-size: 26px; } .stat span { color: var(--muted); font-size: 12px; }
.stat.warn b { color: var(--red); }
.muted { color: var(--muted); } .small { font-size: 12px; } .nowrap { white-space: nowrap; }
.mono { font-family: ui-monospace, Consolas, monospace; } .break { word-break: break-all; }
.err-text { color: var(--red); }
.hint { color: var(--muted); font-size: 13px; }
.top-gap { margin-top: 14px; }
.qr { width: 220px; margin: 10px 0; } .qr svg { width: 100%; height: auto; }
code.secret { font-size: 13px; letter-spacing: 1px; background: #eef1f5; padding: 2px 6px; border-radius: 4px; word-break: break-all; }
.bigcode { font: 600 26px/1.2 ui-monospace, Consolas, monospace; letter-spacing: 2px; margin: 8px 0; }
.steps { display: flex; list-style: none; padding: 0; margin: 0 0 20px; gap: 6px; counter-reset: s; flex-wrap: wrap; }
.steps li { counter-increment: s; flex: 1; min-width: 110px; padding: 8px 10px; border-radius: 6px; background: #eef1f5; color: var(--muted); font-size: 12px; font-weight: 600; }
.steps li::before { content: counter(s) ". "; }
.steps li.on { background: var(--brand); color: #fff; } .steps li.done { background: #e3f4ea; color: var(--green); }
.dnstable td { font-size: 13px; }
.howto li { margin-bottom: 8px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
details summary { cursor: pointer; color: var(--muted); margin: 10px 0; }
.brandform { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.brandform:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.brandhead { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.brandhead .logo-ph { color: #fff; border: 0; }
.logo-preview { max-height: 40px; max-width: 160px; border: 1px solid var(--line); border-radius: 4px; padding: 2px; }
.foot { color: var(--muted); font-size: 12px; padding: 20px; text-align: center; }

.card.approve { background: #fff8e6; border: 2px solid #e0a526; box-shadow: 0 0 0 4px rgba(224,165,38,.15); }
.card.approve h2 { color: #7a5212; }
.btn.big { font-size: 1.05rem; padding: .7rem 1.4rem; }
td .btn.small { margin-left: .5rem; }

details.danger-zone { border: 1px solid #e3b4b4; margin-top: 1.5rem; }
details.danger-zone > summary { cursor: pointer; font-weight: 600; color: #8b1f1f; }
details.danger-zone label.check { margin: .5rem 0; }
details.danger-zone .btn.danger { background: #b42318; border-color: #b42318; color: #fff; }

pre.cmd { background: #1e2430; color: #e6e9ef; padding: .7rem 1rem; border-radius: 8px; white-space: pre-wrap; word-break: break-all; user-select: all; }

.row.wrap { flex-wrap: wrap; gap: .4rem 1rem; }
details.assign > summary { cursor: pointer; color: var(--brand); margin-bottom: .3rem; }
details.assign label.check { margin: .2rem 0; }

.assign-list{display:flex;flex-wrap:wrap;gap:.3rem 1rem;margin:.3rem 0 .6rem}
.assign-list .check{font-size:.9rem}
