:root {
  --bg: #f4f5f7; --panel: #fff; --ink: #1a1d21; --muted: #6b7280; --line: #e3e5e8;
  --accent: #0f6b3d; --accent2: #12854c; --accent-soft: #e7f4ec; --danger: #c0392b; --warn: #b7791f; --warn-soft: #fff6e0;
  --radius: 14px; --shadow: 0 10px 40px rgba(0,0,0,.06);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
h1 { font-size: 22px; margin: 0 0 4px; letter-spacing: .2px; }
h2 { font-size: 18px; margin: 0 0 6px; }
h3 { font-size: 15px; margin: 18px 0 8px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); }
.center { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.narrow { width: 100%; max-width: 400px; }
label { display: block; font-size: 13px; font-weight: 600; margin: 0 0 6px; }
.hint { font-size: 12.5px; color: var(--muted); margin: -8px 0 12px; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=tel], input[type=url], input[type=number], input[type=time], select, textarea {
  width: 100%; height: 44px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; font: inherit; font-size: 16px;
  background: #fff; color: var(--ink); margin-bottom: 14px;
}
textarea { height: 110px; padding: 10px 12px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
input[type=color] { width: 54px; height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 2px; background: #fff; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.row3 { display: grid; grid-template-columns: 2fr 1fr 2fr; gap: 0 14px; }
@media (max-width: 640px) { .row, .row3 { grid-template-columns: 1fr; } }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 12px; border: 0;
  background: var(--accent); color: #fff; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--accent2); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.sec { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.sec:hover { background: #f3f4f6; }
.btn.danger { background: #fff; color: var(--danger); border: 1px solid #f1c4bd; }
.btn.block { width: 100%; }
.btn.big { height: 52px; font-size: 16px; }
.msg { font-size: 13.5px; min-height: 18px; margin: 10px 0 0; }
.msg.err { color: var(--danger); }
.msg.ok { color: var(--accent); }
.note { border-radius: 12px; padding: 12px 14px; font-size: 14px; margin: 0 0 16px; background: var(--accent-soft); }
.note.warn { background: var(--warn-soft); }
.note.test { background: #fff4cc; border: 1px dashed #e0b400; }
.pill { display: inline-block; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 2px 9px; background: #eef0f2; color: #374151; }
.pill.ok { background: var(--accent-soft); color: var(--accent); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.err { background: #fde8e5; color: var(--danger); }
.hidden { display: none !important; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.guide { border: 1px solid var(--line); border-radius: 12px; margin: 0 0 16px; background: #fafbfc; }
.guide summary { cursor: pointer; padding: 12px 14px; font-weight: 600; font-size: 14px; }
.guide ol { margin: 0; padding: 0 18px 14px 36px; font-size: 14px; }
.guide li { margin: 6px 0; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 8px 8px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }
.code6 { width: 100%; max-width: 100%; height: 54px; text-align: center; font-size: 26px; letter-spacing: 10px; font-weight: 700; }

.logo-nkd { display: block; height: 43px; width: auto; margin: 0 0 16px; }
