:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --navy: #0f172a;
  --deep: #1e3a8a;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --soft: #f1f5f9;
  --bg: #f8fafc;
  --ring: rgba(37, 99, 235, .35);
  --max: 1160px;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 2px 4px rgba(15, 23, 42, .06), 0 18px 40px rgba(15, 23, 42, .12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  display: flex; flex-direction: column; min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
h1, h2, h3, h4 { line-height: 1.25; letter-spacing: -.01em; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 50; border-radius: 8px; }
.skip:focus { left: 8px; }
.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }

/* header */
.nav { position: sticky; top: 0; z-index: 30; background: var(--navy); color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.nav .wrap { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; color: #fff; text-decoration: none; font-weight: 700; }
.brand img { width: 64px; height: 36px; object-fit: contain; flex: none; }
.brand span { font-size: 13px; line-height: 1.25; max-width: 9rem; }
.nav-check { position: absolute; opacity: 0; pointer-events: none; }
.nav-btn {
  margin-left: auto; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .25); border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 14px; white-space: nowrap;
}
.nav-links { display: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 12px 6px; color: #cbd5e1; text-decoration: none; font-weight: 600; font-size: 15px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: #fff; }
.nav-links a[aria-current="page"] { color: #fff; border-bottom-color: #60a5fa; }
.nav-check:checked ~ .nav-links {
  display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--navy); border-bottom: 1px solid rgba(255, 255, 255, .1); padding: 8px 16px 14px; z-index: 40;
  box-shadow: 0 18px 30px rgba(2, 6, 23, .35);
}
.lang { display: inline-flex; align-items: center; gap: 2px; padding: 2px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.lang a, .lang span { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; min-height: 28px; padding: 0 8px; border-radius: 999px; color: #cbd5e1; text-decoration: none; }
.lang a:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.lang a[aria-current]:hover { background: #fff; color: var(--navy); }
.lang [aria-current] { background: #fff; color: var(--navy); }

/* hero */
.hero {
  position: relative; overflow: hidden; color: #fff; text-align: center; padding: 72px 0 112px;
  background:
    radial-gradient(900px 380px at 15% -10%, rgba(96, 165, 250, .55), transparent 60%),
    radial-gradient(700px 360px at 90% 10%, rgba(14, 165, 233, .35), transparent 60%),
    linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 60%, #2563eb 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18;
  background-image: linear-gradient(rgba(255, 255, 255, .5) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .5) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse at 50% 0%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 10%, transparent 70%);
}
.hero .wrap { position: relative; z-index: 1; }
.eyebrow {
  display: inline-block; padding: 4px 14px; border-radius: 999px; background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .25); font-size: 13px; font-weight: 600; letter-spacing: .08em; margin-bottom: 18px;
}
.hero h1 { margin: 0 0 14px; font-size: clamp(2.1rem, 6.2vw, 3.6rem); letter-spacing: .02em; }
.hero p { margin: 0 auto 28px; font-size: clamp(1rem, 2.4vw, 1.2rem); max-width: 44rem; color: #dbeafe; }
.hero .actions { justify-content: center; }
.stats {
  position: relative; z-index: 2; margin-top: -56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden;
}
.stat { padding: 16px 6px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: 1.3rem; color: var(--blue); line-height: 1.3; white-space: nowrap; }
.stat span { color: var(--muted); font-size: 13px; line-height: 1.4; display: block; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px;
  border-radius: 10px; text-decoration: none; font-weight: 700; border: 1px solid transparent; cursor: pointer;
  font: inherit; font-weight: 700; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--deep); box-shadow: 0 6px 18px rgba(2, 6, 23, .2); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-outline:hover { background: rgba(255, 255, 255, .12); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(37, 99, 235, .3); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { background: #fff; color: #334155; border-color: #cbd5e1; }
.btn-danger { background: #b91c1c; color: #fff; }

/* sections */
section { padding: 64px 0; }
.sec-head { text-align: center; max-width: 42rem; margin: 0 auto 36px; }
.sec-head h2 { margin: 0 0 8px; font-size: clamp(1.5rem, 4vw, 2rem); }
.sec-head h2::after { content: ""; display: block; width: 44px; height: 4px; border-radius: 4px; background: var(--blue); margin: 12px auto 0; }
.center { text-align: center; }
.bar::after { content: ""; display: block; width: 44px; height: 4px; border-radius: 4px; background: var(--blue); margin: 12px 0 0; }
.layout .feature { margin-top: 28px; }
.band { background: var(--bg); border-block: 1px solid var(--line); }
.cards { display: grid; grid-template-columns: 1fr; gap: 18px; }
.card {
  display: flex; flex-direction: column; color: inherit; text-decoration: none; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #bfdbfe; }
.card img, .card .ph { width: 100%; aspect-ratio: 16 / 10; height: auto; object-fit: cover; background: #e0ecff; display: block; }
.ph { display: flex; align-items: center; justify-content: center; font-size: 2.4rem; color: var(--blue); font-weight: 700; }
.card .body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card h2, .card h3 { margin: 0; font-size: 1.1rem; }
.card p { margin: 0; font-size: 14px; }
.card .more { margin-top: auto; padding-top: 10px; font-size: 14px; font-weight: 700; color: var(--blue); }
.card .more::after { content: " →"; }
.ticks { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 20px; height: 20px; border-radius: 50%; background: #dbeafe;
}
.ticks li::after {
  content: ""; position: absolute; left: 7px; top: calc(.35em + 4px); width: 6px; height: 10px;
  border: solid var(--blue); border-width: 0 2.5px 2.5px 0; transform: rotate(40deg);
}
.split { display: grid; gap: 28px; align-items: center; }
.feature { width: 100%; height: auto; border-radius: 18px; box-shadow: var(--shadow-lg); }
.band .prose ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.band .prose li { position: relative; padding-left: 30px; margin: 0; }
.band .prose li::before { content: ""; position: absolute; left: 0; top: .35em; width: 20px; height: 20px; border-radius: 50%; background: #dbeafe; }
.band .prose li::after { content: ""; position: absolute; left: 7px; top: calc(.35em + 4px); width: 6px; height: 10px; border: solid var(--blue); border-width: 0 2.5px 2.5px 0; transform: rotate(40deg); }
.dark { background: linear-gradient(160deg, #0b1220, #172554); color: #e2e8f0; }
.dark h2 { color: #fff; }
.dark .muted { color: #94a3b8; }
.facts { display: grid; gap: 14px; }
.fact { display: flex; align-items: flex-start; gap: 14px; background: #fff; border-radius: var(--radius); padding: 18px 20px; border: 1px solid var(--line); }
.fact .ico { flex: none; width: 40px; height: 40px; border-radius: 12px; background: rgba(96, 165, 250, .16); color: #93c5fd; display: grid; place-items: center; }
.fact .ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.fact > div { min-width: 0; }
.fact h2, .fact h3 { margin: 0 0 2px; font-size: .9rem; color: var(--muted); font-weight: 600; }
.fact p { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.fact a[href^="tel:"] { white-space: nowrap; }
.fact a { text-decoration: none; }
.dark .fact { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); }
.dark .fact h2, .dark .fact h3 { color: #93c5fd; }
.dark .fact a { color: #fff; }
.complaint { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: var(--radius); padding: 18px 20px; margin: 20px 0; }
.complaint h2 { margin: 0 0 4px; font-size: 1.05rem; color: var(--deep); }
.complaint p { margin: 0; }
.dark .complaint { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .15); }
.dark .complaint h2 { color: #fff; }

/* inner pages */
.page-head {
  background: radial-gradient(700px 240px at 80% -20%, rgba(96, 165, 250, .35), transparent 60%), linear-gradient(135deg, #1e3a8a, #1d4ed8);
  color: #fff; padding: 36px 0 40px;
}
.page-head h1 { margin: 6px 0 6px; font-size: clamp(1.7rem, 4.5vw, 2.4rem); }
.page-head p { margin: 0; color: #dbeafe; max-width: 44rem; }
.crumbs { font-size: 14px; color: #bfdbfe; margin: 0; }
.crumbs a { color: #bfdbfe; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.page-body { padding: 40px 0 72px; }
.layout { display: grid; gap: 32px; }
.aside { display: grid; gap: 16px; align-content: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.panel h2, .panel h3 { margin: 0 0 10px; font-size: 1rem; }
.panel p { margin: 0; }
.aside .complaint { margin: 0; }
.panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.panel li a { display: block; padding: 8px 10px; border-radius: 8px; color: #334155; text-decoration: none; font-weight: 600; font-size: 15px; }
.panel li a:hover { background: var(--soft); color: var(--blue); }
.panel.cta { background: linear-gradient(145deg, #1e3a8a, #2563eb); color: #fff; border: 0; }
.panel.cta p { margin: 0 0 12px; color: #dbeafe; }

.prose { max-width: 48rem; font-size: 1.02rem; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 1.45rem; margin: 1.8em 0 .5em; padding-left: 12px; border-left: 4px solid var(--blue); }
.prose h3 { font-size: 1.15rem; margin: 1.4em 0 .4em; color: var(--deep); }
.prose p { margin: .7em 0; }
.prose p:has(> br:only-child) { display: none; }
.prose strong { color: #0b1220; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin: .25em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid #cbd5e1; padding: 9px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--soft); }
.prose img { height: auto; border-radius: 10px; margin: .6em .6em .6em 0; border: 1px solid var(--line); }
.prose blockquote { margin: 1em 0; padding: .4em 1em; border-left: 4px solid #93c5fd; background: var(--bg); color: #334155; }
.prose img[data-align="center"], .prose p[data-align="center"], .prose h2[data-align="center"], .prose h3[data-align="center"] { text-align: center; }
.prose img[data-align="center"] { display: block; margin-inline: auto; }
.prose img[data-align="right"] { display: block; margin-left: auto; }
.prose img[data-width="25%"] { width: 25%; }
.prose img[data-width="50%"] { width: 50%; }
.prose img[data-width="75%"] { width: 75%; }
.prose img[data-width="100%"] { width: 100%; }

/* forms */
form .row { margin: 0 0 16px; }
label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 15px; }
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]), select, textarea {
  width: 100%; max-width: 40rem; padding: 9px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; font-size: 15px; line-height: 1.35; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 4px var(--ring); }
textarea { min-height: 7rem; resize: vertical; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; box-shadow: var(--shadow); max-width: 46rem; }
.form-card { padding: 20px 16px; }
.form-card .row { display: grid; grid-template-columns: 5.2rem minmax(0, 1fr); column-gap: 10px; align-items: start; margin: 0 0 16px; }
.form-card .row > label, .form-card .row > .lbl { display: block; font-weight: 600; margin: 0; text-align: right; padding-top: 10px; font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.form-card .field { min-width: 0; }
.form-card .field .hint, .form-card .hint { display: block; margin-top: 6px; color: #64748b; font-size: 13px; font-weight: 400; }
.form-card input:not([type="checkbox"]):not([type="hidden"]), .form-card select, .form-card textarea { max-width: none; }
.req { color: #dc2626; margin-left: 3px; }
.req-note { margin: 0 0 18px; color: #64748b; font-size: 13px; }
.row.submit .btn { justify-self: start; min-width: 9rem; min-height: 42px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.captcha { display: flex; align-items: center; gap: 10px; }
.captcha img { flex: none; display: block; box-sizing: border-box; height: 40px; width: 125px; object-fit: fill; background: #fff; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.captcha input { flex: 1 1 0; min-width: 0; width: auto !important; max-width: 9rem !important; height: 40px; text-transform: uppercase; letter-spacing: .12em; }
.radios { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 2px; }
.chip { position: relative; display: inline-block; margin: 0; font-weight: 400; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 9px 16px; line-height: 1.35; border: 1px solid #cbd5e1; border-radius: 999px; background: #fff; font-size: 14px; font-weight: 600; color: #334155; transition: background .15s, border-color .15s, color .15s; }
.chip:hover span { border-color: #93c5fd; color: var(--blue); }
.chip input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--ring); outline-offset: 2px; }
.flash { scroll-margin-top: 90px; outline: 0; }
.flash:empty { display: none; }
.result-title { margin: 28px 0 12px; font-size: 1.15rem; }
.plain { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.plain li { position: relative; padding-left: 22px; font-weight: 600; }
.plain li::before { content: ""; position: absolute; left: 4px; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
@media (min-width: 560px) {
  .form-card { padding: 24px; }
  .form-card .row { grid-template-columns: 8.5rem minmax(0, 1fr); column-gap: 16px; }
  .form-card .row > label, .form-card .row > .lbl { font-size: 15px; }
}
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.note, .err, .ok { padding: 12px 14px; border-radius: 10px; margin: 0 0 16px; font-weight: 600; }
.note { background: #eff6ff; }
.err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.result { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.result th, .result td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; vertical-align: top; }
.result th { width: 9rem; background: var(--soft); white-space: nowrap; }
.tips { margin: 24px 0 0; padding: 14px 18px 14px 36px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; color: var(--muted); }

/* footer */
footer { background: #0b1220; color: #94a3b8; font-size: 14px; }
.foot { display: grid; gap: 28px; padding: 44px 0 28px; }
footer h2 { margin: 0 0 10px; color: #fff; font-size: 1rem; }
footer p { margin: 0 0 6px; }
footer a { color: #cbd5e1; text-decoration: none; }
footer a:hover { color: #fff; text-decoration: underline; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.copy { border-top: 1px solid rgba(255, 255, 255, .08); padding: 16px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* admin */
.login-box { max-width: 30rem; margin: 64px auto; background: #fff; padding: 28px; border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.admin-narrow { display: none; padding: 24px; }
.admin { min-height: 100vh; display: grid; grid-template-columns: 232px 1fr; background: var(--soft); }
.side { background: var(--navy); color: #fff; padding: 18px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .logo { display: block; font-weight: 800; font-size: 1.05rem; padding: 4px 10px 16px; letter-spacing: .02em; }
.side a { display: block; color: #cbd5e1; text-decoration: none; padding: 9px 12px; border-radius: 10px; font-size: 15px; margin-bottom: 2px; }
.side a:hover { background: #1e293b; color: #fff; }
.side a[aria-current="page"] { background: var(--blue); color: #fff; }
.side form { margin-top: 18px; padding: 0 4px; }
.main { padding: 28px 32px 56px; min-width: 0; max-width: 1280px; }
.main h1 { margin: 0 0 18px; font-size: 1.6rem; }
.main h2 { margin: 28px 0 12px; font-size: 1.1rem; }
.main > p.muted { margin: -6px 0 14px; }
.muted { color: var(--muted); }
.main > form:not(.tools) { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px 24px 20px; box-shadow: var(--shadow); max-width: 62rem; margin-bottom: 16px; }
.main > form h2 { margin: 24px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 1rem; color: var(--deep); }
.main > form h2.first { margin-top: 16px; }
.main .row { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); column-gap: 16px; align-items: start; margin: 0 0 14px; }
.main .row > label { margin: 0; padding-top: 10px; text-align: right; color: #334155; font-weight: 600; }
.main .row > label:not(:only-child)::after { content: "："; }
.main .row > label.check { padding-top: 10px; text-align: left; font-weight: 500; }
.main .row > label.check::after { content: none; }
.main .row > :first-child:last-child { grid-column: 2; }
.main .row input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]), .main .row select { max-width: 38rem; }
.main .row input[type="checkbox"] { width: 1.05rem; height: 1.05rem; margin: 0 6px 0 0; vertical-align: -2px; }
.main .row input[type="file"] { padding: 6px 0; }
.main .row.bi { grid-template-columns: 8.5rem minmax(0, 1fr) minmax(0, 1fr); column-gap: 12px; }
.main .row.bi > input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]), .main .row.bi > select { max-width: none; }
.main .row.bi > input, .main .row.bi > select { width: 100%; }
.main .row.bi > label { margin-right: 4px; }
.main .row.head { margin-bottom: 8px; }
.main .row.head b { color: var(--deep); font-size: 14px; padding-left: 2px; }
.main .row.bi.body textarea { min-height: 16rem; }
.main > form.wide { max-width: 78rem; }
.main .row.bi.body { align-items: stretch; }
.main .row.bi > .rte { min-width: 0; display: flex; flex-direction: column; }
.rte-area { flex: 1; }
.rte { border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; overflow: hidden; }
.rte:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px var(--ring); }
.rte:not(.rte-on) .rte-bar { display: none; }
.rte-bar { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; background: var(--soft); border-bottom: 1px solid var(--line); }
.rte-bar button { min-height: 30px; padding: 0 10px; border: 1px solid #cbd5e1; background: #fff; border-radius: 7px; font: inherit; font-size: 13px; cursor: pointer; color: #334155; }
.rte-bar button:hover { background: #eff6ff; border-color: #93c5fd; }
.rte-src-on .rte-bar button:not([data-cmd="source"]) { opacity: .4; cursor: default; }
.rte-area { min-height: 22rem; max-height: 38rem; overflow: auto; padding: 14px 16px; outline: 0; font-size: .95rem; }
.rte-area.prose { max-width: none; }
.rte-area img { max-width: 100%; height: auto; }
.rte textarea { border: 0; border-radius: 0; box-shadow: none; width: 100%; max-width: 100%; min-height: 22rem; font: 13px/1.6 ui-monospace, Menlo, monospace; }
.rte textarea:focus { box-shadow: none; }
.main .row.submit { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.main .row.submit .actions { margin: 0; }
.main .confirm { display: grid; grid-template-columns: 8.5rem 1fr; column-gap: 16px; padding: 16px 24px; }
.main .confirm .actions { margin: 0; }
.main .editor { min-width: 0; }
.main .editor textarea { display: block; max-width: 100%; margin: 6px 0 8px; }
.main .editor .tools { margin: 0; }
.main .editor-tools .btn { min-height: 34px; padding: 0 14px; }
.hint { display: block; margin-top: 4px; color: #64748b; font-size: 13px; font-weight: 400; }
.thumb { display: block; width: 160px; height: auto; border-radius: 8px; border: 1px solid var(--line); margin-bottom: 8px; }
.main .danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #fef2f2; border-color: #fecaca; color: #991b1b; padding: 14px 24px; }
.btn-sm { min-height: 32px; padding: 0 12px; font-size: 14px; border-radius: 8px; }
.main td form { display: inline; margin: 0; }
.main textarea { max-width: 100%; min-height: 18rem; }
.main .big { font-size: 2rem; color: var(--blue); line-height: 1.1; }
.main .facts { margin-bottom: 8px; }
.main .fact h2 { margin: 0 0 6px; }
table.data { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
table.data th { background: #f8fafc; color: var(--muted); font-size: 13px; }
table.data th, table.data td { border-bottom: 1px solid var(--line); padding: 11px 14px; text-align: left; vertical-align: top; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: #f8fafc; }
table.data .w-ops { width: 9rem; }
table.data .w-sort { width: 4.5rem; }
table.data .w-time, table.data .nowrap { white-space: nowrap; }
table.data .ops { white-space: nowrap; text-align: right; }
table.data .empty { text-align: center; color: #94a3b8; padding: 28px; }
table.data .wrap-text { white-space: pre-wrap; overflow-wrap: anywhere; min-width: 14rem; }
table.data a:not(.btn) { font-weight: 600; text-decoration: none; }
.tag { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: 13px; background: #e2e8f0; color: #475569; white-space: nowrap; }
.tag-new { background: #fef3c7; color: #92400e; }
.tag-ok { background: #d1fae5; color: #065f46; }
.tag-bad { background: #fee2e2; color: #991b1b; white-space: normal; }
.tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; align-items: center; }
.tools input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]) { width: 12rem; padding: 9px 12px; }
.pager a { padding: 4px 11px; border-radius: 8px; text-decoration: none; background: #fff; border: 1px solid var(--line); }
.main td button { cursor: pointer; padding: 5px 12px; border: 1px solid #cbd5e1; background: #fff; border-radius: 8px; margin: 0 0 0 4px; font: inherit; font-size: 14px; }
.main td button:hover { background: var(--soft); }

@media (min-width: 700px) {
  .brand span { font-size: 14px; max-width: 12rem; }
  .cards { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 18px 20px; }
  .stat b { font-size: 1.7rem; }
  .stat span { font-size: 14px; }
  .foot { grid-template-columns: 1.4fr 1fr 1.2fr; }
  .split { grid-template-columns: 1.1fr .9fr; }
}
@media (min-width: 900px) {
  .nav-btn { display: none; }
  .nav-links { display: flex; gap: 6px; margin-left: auto; }
  .nav-check:checked ~ .nav-links { position: static; border: 0; padding: 0; flex-direction: row; background: none; box-shadow: none; }
  .nav-links a { padding: 20px 10px 18px; }
  .layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .layout .aside { position: sticky; top: 88px; align-self: start; }
}
@media (min-width: 1100px) {
  .cards { grid-template-columns: repeat(4, 1fr); }
  .facts { grid-template-columns: 1.7fr auto auto 1.9fr; }
  .hero { padding: 96px 0 128px; }
}
@media (max-width: 1099px) {
  .admin { display: none; }
  .admin-narrow { display: block; }
}
/* compact admin */
.admin { font-size: 14px; line-height: 1.5; }
.side { padding: 12px 8px; }
.side .logo { font-size: 15px; padding: 2px 10px 12px; }
.side a { padding: 6px 10px; font-size: 14px; border-radius: 8px; margin-bottom: 1px; }
.side form { margin-top: 12px; }
.side .btn { min-height: 30px; font-size: 13px; width: 100%; }
.main { padding: 16px 24px 40px; }
.main h1 { font-size: 1.25rem; margin: 0 0 12px; }
.main h2 { font-size: 1rem; margin: 18px 0 8px; }
.main > form:not(.tools) { padding: 2px 20px 14px; border-radius: 10px; box-shadow: 0 1px 2px rgba(15, 23, 42, .06); }
.main > form h2 { margin: 14px 0 10px; padding-bottom: 6px; font-size: .95rem; }
.main > form h2.first { margin-top: 12px; }
.main .row { grid-template-columns: 7rem minmax(0, 1fr); column-gap: 12px; margin: 0 0 8px; }
.main .row.bi { grid-template-columns: 7rem minmax(0, 1fr) minmax(0, 1fr); column-gap: 10px; }
.main .row > label { padding-top: 6px; font-size: 13px; }
.main .row > label.check { padding-top: 6px; }
.main .confirm { grid-template-columns: 7rem 1fr; }
.main input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]), .main select, .main textarea { padding: 5px 10px; font-size: 14px; border-radius: 7px; line-height: 1.5; }
.main textarea { min-height: 12rem; }
.main .btn { min-height: 32px; padding: 0 14px; font-size: 14px; border-radius: 7px; box-shadow: none; }
.main .btn-primary { box-shadow: none; }
.main .btn:hover { transform: none; }
.main .btn-sm { min-height: 26px; padding: 0 10px; font-size: 13px; }
.main .row.submit { margin-top: 12px; padding-top: 12px; }
.main .row.head { margin-bottom: 4px; }
.main .row.head b { font-size: 13px; }
.hint { font-size: 12px; margin-top: 2px; }
.thumb { width: 120px; margin-bottom: 6px; }
.main .danger-zone { padding: 10px 20px; font-size: 13px; }
.main .fact { padding: 12px 16px; }
.main .fact h2 { font-size: 13px; margin: 0 0 2px; }
.main .big { font-size: 1.6rem; }
.main .facts { gap: 10px; }
table.data { font-size: 13px; border-radius: 10px; box-shadow: 0 1px 2px rgba(15, 23, 42, .06); }
table.data th { font-size: 12px; }
table.data th, table.data td { padding: 6px 12px; }
table.data .empty { padding: 18px; }
.tag { font-size: 12px; padding: 0 8px; }
.tools { gap: 6px; margin: 0 0 10px; }
.tools input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]) { width: 10rem; padding: 5px 10px; }
.main td button { padding: 2px 10px; font-size: 13px; border-radius: 6px; }
.rte { border-radius: 8px; }
.rte-bar { gap: 2px; padding: 4px; }
.rte-bar button { min-height: 26px; min-width: 28px; padding: 0 6px; font-size: 12px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; }
.rte-bar button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rte-area { min-height: 18rem; font-size: 14px; padding: 10px 14px; line-height: 1.65; }
.rte textarea { min-height: 18rem; font-size: 12px; }
.main .editor-tools .btn { min-height: 26px; }
.login-box { margin: 48px auto; padding: 22px; }

/* fresh admin theme: teal on mint, light sidebar */
.admin, .login-page {
  --blue: #0d9488; --blue-dark: #0f766e; --deep: #0f766e; --ring: rgba(13, 148, 136, .25);
  --line: #dbe8e5; --soft: #eef6f4; --bg: #f4faf9; --ink: #1f2d2b; --muted: #60716f;
  --shadow: 0 1px 2px rgba(15, 60, 55, .06); --shadow-lg: 0 14px 40px rgba(15, 90, 80, .14);
  color: var(--ink);
}
.admin { background: #f3f9f8; }
.mark { position: relative; display: inline-block; flex: none; width: 28px; height: 28px; border-radius: 9px; background: linear-gradient(135deg, #5eead4, #0d9488); }
.mark::after { content: ""; position: absolute; inset: 7px; border: 2px solid #fff; border-radius: 50%; border-top-color: transparent; border-right-color: transparent; transform: rotate(45deg); }
.side { display: flex; flex-direction: column; background: #fff; color: var(--ink); border-right: 1px solid var(--line); padding: 14px 10px; }
.side .logo { display: flex; align-items: center; gap: 10px; padding: 2px 8px 12px; font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.25; }
.side .logo small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: .04em; }
.side nav { flex: 1; }
.side .grp { margin: 14px 10px 4px; font-size: 11px; color: #8aa09d; letter-spacing: .1em; }
.side a { position: relative; color: #3d4f4c; font-weight: 500; }
.side a:hover { background: var(--soft); color: #0f766e; }
.side a[aria-current="page"] { background: #dff4f0; color: #0f766e; font-weight: 700; }
.side a[aria-current="page"]::before { content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--blue); }
.badge { float: right; margin-top: 1px; min-width: 18px; padding: 0 6px; border-radius: 999px; background: #f97362; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.side-foot { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 10px; }
.side-foot .ext { color: var(--muted); font-size: 13px; }
.side-foot form { margin-top: 6px; }
.side .btn-ghost { background: #fff; color: #3d4f4c; border-color: #cfe0dc; }
.side .btn-ghost:hover { background: var(--soft); }
.main h1 { color: var(--ink); }
.main .btn-ghost { background: #fff; color: #36504c; border-color: #cfe0dc; }
.main .btn-ghost:hover { background: #f0f8f6; border-color: #b6d3cd; }
.main .btn-danger { background: #e5484d; }
.main .btn-danger:hover { background: #cf3a40; }
.main input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]), .main select, .main textarea, .rte, .rte-bar button { border-color: #cfe0dc; }
.main input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):hover, .main select:hover, .main textarea:hover { border-color: #a9cbc4; }
.main input:focus, .main select:focus, .main textarea:focus { border-color: var(--blue); }
.main input[type="checkbox"] { accent-color: var(--blue); }
.rte-bar { background: #f3f9f8; }
.rte-bar button:hover { background: #e6f6f3; border-color: #7fc9bf; color: #0f766e; }
.main > form:not(.tools) { border-color: var(--line); }
.main > form h2 { border-bottom-color: var(--line); }
.main .danger-zone { background: #fff5f4; border-color: #fbd0cc; color: #b4352f; }
.main .row.submit { border-top-color: var(--line); }
.main > form.wide .row.submit { position: sticky; bottom: 0; z-index: 5; margin: 12px -20px -14px; padding: 10px 20px; background: rgba(255, 255, 255, .95); border-radius: 0 0 10px 10px; box-shadow: 0 -6px 12px -8px rgba(15, 90, 80, .18); }
table.data { box-shadow: 0 1px 2px rgba(15, 60, 55, .06); }
table.data th { background: #f3f9f8; color: #60716f; }
table.data th, table.data td { border-bottom-color: #e4efec; }
table.data tr:hover td { background: #f6fbfa; }
table.data a:not(.btn) { color: #0f766e; }
table.data a:not(.btn):hover { text-decoration: underline; }
.tag { background: #e8f0ee; color: #4b5f5c; }
.tag-ok { background: #d5f5e8; color: #0b6b45; }
.tag-new { background: #ffeccf; color: #9a5a0b; }
.main td button { border-color: #cfe0dc; }
.main td button:hover { background: var(--soft); border-color: #b6d3cd; }
.pager a { border-color: var(--line); color: #36504c; }
.pager a:hover { background: var(--soft); }
.pager b { color: #fff; background: var(--blue); border-radius: 8px; padding: 4px 11px; margin: -4px -11px; display: inline-block; }
.main a.fact { display: block; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.main a.fact:hover { border-color: var(--blue); box-shadow: 0 4px 14px rgba(13, 148, 136, .14); }
.main a.fact.alert .big { color: #e0790b; }
.main .fact h2 { color: var(--muted); font-weight: 600; }
.more-link { margin-left: 8px; font-size: 13px; font-weight: 500; text-decoration: none; }
.more-link:hover { text-decoration: underline; }
.count { margin-left: 6px; color: var(--muted); font-size: 13px; }
.tabs { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; }
.tabs a { padding: 3px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: #36504c; font-size: 13px; text-decoration: none; }
.tabs a:hover { background: var(--soft); }
.tabs a[aria-current="true"] { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 600; }
.main > p.ok, .main > p.err { transition: opacity .7s; }
.main > p.ok.fade { opacity: 0; }
.main .ok { background: #e6f8f0; border-color: #b7ead3; color: #0b6b45; padding: 8px 12px; }
.main .err { padding: 8px 12px; }
.main .hint { color: #7a8c89; }
.login-page { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(640px 320px at 10% 0, #ccfbf1, transparent 70%), radial-gradient(560px 320px at 100% 100%, #dbeafe, transparent 70%), #f4faf9; }
.login-box { width: min(30rem, calc(100% - 32px)); margin: 0 auto; padding: 28px 30px 26px; border-color: var(--line); border-radius: 16px; }
.login-box h1 { display: flex; align-items: center; gap: 10px; margin: 0 0 2px; font-size: 1.3rem; }
.login-box > .muted { margin: 0 0 20px; font-size: 13px; }
.login-form .row { display: grid; grid-template-columns: 3.6rem minmax(0, 1fr); column-gap: 12px; align-items: start; margin: 0 0 14px; }
.login-form .row > label { margin: 0; padding-top: 9px; text-align: right; font-size: 14px; color: #36504c; }
.login-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]) { max-width: none; padding: 8px 12px; border-color: #cfe0dc; }
.login-form .btn-primary { min-height: 38px; padding: 0 28px; }
.login-form .row.submit > span { display: block; }

.main .facts { grid-template-columns: repeat(3, 1fr) !important; }

/* contact info list */
.panel .info-list, .info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.panel > h2 + .info-list { margin-top: 14px; }
.info-list li { display: flex; align-items: flex-start; gap: 12px; }
.info-list .ico { flex: none; width: 38px; height: 38px; border-radius: 11px; background: #eff6ff; color: var(--blue); display: grid; place-items: center; }
.info-list svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.info-list .k { display: block; font-size: 13px; line-height: 1.3; color: var(--muted); }
.info-list .v { display: block; margin-top: 2px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.panel .info-list a.v { padding: 0; border-radius: 0; background: none; color: var(--ink); text-decoration: none; font-size: 1rem; }
.panel .info-list a.v:hover { color: var(--blue); background: none; text-decoration: underline; }
.card-lead { margin: 0 0 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.card-lead:empty { display: none; }
.card-lead p { margin: 0; color: var(--muted); }

/* shared polish */
.layout > div, .layout > article { min-width: 0; }
.result { max-width: 46rem; }
@media print {
  .nav, footer, .skip, .aside .cta, .btn { display: none !important; }
  .page-head { background: none; color: #000; padding: 0; }
  .page-head p, .crumbs, .crumbs a { color: #444; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .card:hover, .btn:hover { transform: none; }
}

@media (max-width: 480px) {
  .captcha { gap: 8px; }
  .captcha img { width: 120px; }
}
