:root {
  --bg: #f5f7fa;
  --panel: #ffffff;
  --text: #15202b;
  --muted: #5c6773;
  --border: #d8dee5;
  --accent: #0f766e;
  --accent-2: #b45309;
  --danger: #b91c1c;
  --warn-bg: #fff7ed;
  --warn-border: #fdba74;
  --error-bg: #fef2f2;
  --error-border: #fca5a5;
  --shadow: 0 10px 30px rgba(21, 32, 43, 0.06);
  --radius: 10px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: linear-gradient(180deg, #eef3f7 0%, var(--bg) 18%, var(--bg) 100%);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

code, .mono {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.95em;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar__brand { display: flex; align-items: center; gap: 0.85rem; }
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #155e75);
  box-shadow: var(--shadow);
}
.brand-title { font-weight: 700; }
.brand-subtitle { color: var(--muted); font-size: 0.92rem; }
.topbar__nav { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.topbar__nav a { color: var(--text); }

.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.25rem;
}

.section { margin: 1.25rem 0 2rem; }
.section__lead { margin-bottom: 1rem; }
.section__lead h1, .section__lead h2 { margin: 0 0 0.35rem; }
.section__lead p { margin: 0; color: var(--muted); }

.grid {
  display: grid;
  gap: 1rem;
}
.grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1rem 1.1rem;
}
.panel--narrow { max-width: 620px; }
.panel--action { color: inherit; display: block; transition: transform 0.15s ease, border-color 0.15s ease; }
.panel--action:hover { transform: translateY(-2px); border-color: #9ab3c7; text-decoration: none; }
.panel h2, .panel h1 { margin-top: 0; }

.hero {
  min-height: 65vh;
  display: grid;
  place-items: center;
}

.stack { display: grid; gap: 0.9rem; }
.stack--spaced { margin-top: 0.9rem; }
.field { display: grid; gap: 0.35rem; }
.field span { font-weight: 600; }
input[type="text"],
input[type="password"],
input[type="file"],
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.78rem 0.9rem;
  background: #fff;
  color: var(--text);
  font: inherit;
}

textarea {
  resize: vertical;
  min-height: 132px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.72rem 1rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.button:hover { filter: brightness(0.95); text-decoration: none; }
.button--ghost {
  background: #fff;
  color: var(--accent);
  border-color: #9cc7c1;
}

.notice {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fafc;
  padding: 0.85rem 0.95rem;
  color: var(--text);
}
.notice--warn {
  background: var(--warn-bg);
  border-color: var(--warn-border);
}
.notice--error {
  background: var(--error-bg);
  border-color: var(--error-border);
  color: var(--danger);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th, .table td {
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.table th {
  background: #f8fafc;
  font-size: 0.9rem;
}

.bullets, .steps { margin: 0; padding-left: 1.2rem; }
.bullets li, .steps li { margin: 0.35rem 0; }
.muted { color: var(--muted); }
.qr { width: 220px; height: 220px; margin-top: 0.9rem; border: 1px solid var(--border); background: #fff; }

@media (max-width: 900px) {
  .grid--two, .grid--three { grid-template-columns: 1fr; }
  .topbar { align-items: flex-start; flex-direction: column; }
}
