:root {
  --paper: #f4f7f5;
  --white: #ffffff;
  --ink: #10211c;
  --ink-soft: #3a4f48;
  --muted: #6a7b74;
  --line: #dde6e1;
  --pine: #0d7a62;
  --pine-hover: #0a6450;
  --pine-deep: #08221b;
  --gel: #c8f05a;
  --copper: #c9842a;
  --danger: #b42318;
  --danger-soft: #fdecec;
  --radius: 8px;
  --radius-sm: 6px;
  --header-h: 64px;
  --font: "Poppins", "Segoe UI", sans-serif;
  --display: "Poppins", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --strain: #2f8f62;
  --skill: #2b7c93;
  --test: #c9842a;
  --service: #4d6aa8;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { height: 100%; }
body {
  min-height: 100%;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--pine); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
p { margin: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: -999px; top: 8px; }
.skip:focus { left: 8px; background: #fff; padding: 8px 12px; z-index: 50; }

.site-header {
  height: var(--header-h);
  display: flex;
  align-items: stretch;
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(244, 247, 245, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}
body:not(.is-home) .site-header {
  background: rgba(255,255,255,0.92);
  border-bottom-color: var(--line);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  padding: 0 8px 0 0; color: var(--pine); text-decoration: none;
  margin-left: clamp(20px, 4vw, 48px);
}
.brand:hover { text-decoration: none; color: var(--pine-hover); }
.mark { width: 32px; height: 32px; display: block; flex: none; border-radius: 8px; object-fit: cover; }
.brand-name {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.nav {
  display: flex; align-items: center; gap: 4px; padding: 0 16px; flex: 1;
}
.nav a, .nav-btn {
  color: var(--ink-soft); padding: 0 12px; height: 36px; display: inline-flex; align-items: center;
  border-radius: 999px; font-size: 14px; font-weight: 500; text-decoration: none; background: none; border: 0; cursor: pointer;
}
.nav a:hover, .nav-btn:hover { background: rgba(13,122,98,0.08); color: var(--ink); text-decoration: none; }
.nav a.is-active { color: var(--pine); background: rgba(13,122,98,0.1); }
.header-actions {
  display: flex; align-items: center; gap: 12px;
  padding-right: clamp(20px, 4vw, 48px);
}
.header-login, .header-actions button.nav-btn {
  color: var(--ink-soft); font-size: 14px; font-weight: 500; text-decoration: none;
}
.header-login:hover { color: var(--ink); text-decoration: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid transparent; background: var(--pine); color: #fff;
  font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--pine-hover); text-decoration: none; color: #fff; }
.btn:focus-visible, .nav a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .btn-ghost:focus-visible, .btn-line:focus-visible {
  outline: 2px solid var(--pine); outline-offset: 2px;
}
.btn-line {
  background: transparent; color: var(--ink); border-color: var(--line);
}
.btn-line:hover { background: #fff; color: var(--ink); }
.btn-ghost { background: transparent; color: inherit; border-color: transparent; }
.btn-ghost:hover { background: rgba(13,122,98,0.08); color: var(--ink); }
.btn-danger { background: var(--danger); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn-wide { width: 100%; }

.page { max-width: var(--wrap); margin: 0 auto; padding: 32px 24px 64px; }
.page-wide { max-width: 1280px; }
.page-narrow { max-width: 720px; }
.page-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  margin-bottom: 28px;
}
.page-kicker, .home-kicker {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pine); font-weight: 700; margin-bottom: 10px;
}
.page-title { font-size: 36px; line-height: 1.12; }
.page-lead { color: var(--ink-soft); font-size: 17px; margin-top: 8px; max-width: 58ch; }
.section { margin: 36px 0; }
.section-title { font-size: 24px; margin-bottom: 12px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.panel-pad { padding: 22px 24px; }
.panel + .panel { margin-top: 14px; }

.flash {
  background: #e7f6ef; color: #145c45;
  padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 14px;
}
.flash-error { background: var(--danger-soft); color: #7a1d16; }

/* Homepage */
.home-wrap { width: min(var(--wrap), calc(100% - 48px)); margin: 0 auto; }
.home-hero {
  position: relative;
  overflow: hidden;
  background: var(--pine-deep);
  color: #e9f3ee;
  padding: 28px 0 88px;
}
.home-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 420px at 88% 8%, rgba(200, 240, 90, 0.22), transparent 55%),
    linear-gradient(90deg, rgba(8, 34, 27, 0.9) 0%, rgba(8, 34, 27, 0.55) 55%, rgba(8, 34, 27, 0.28) 100%),
    url("/images/hero-glow.jpg") center / cover no-repeat;
  pointer-events: none;
}
.home-hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--wrap), calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 420px;
  align-items: center;
}
.home-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 38rem;
}
.home-hero-inner::after {
  content: "";
  position: absolute;
  right: 0;
  top: 24px;
  bottom: 24px;
  width: min(46%, 460px);
  background: url("/images/cats/default.jpg") center / cover no-repeat;
  border-radius: 20px;
  opacity: 0.42;
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent, #000 28%);
}
.home-hero-copy .home-kicker { color: var(--gel); }
.home-hero h1 {
  font-size: clamp(40px, 5.2vw, 64px);
  line-height: 1.04;
  color: #f7fbf8;
  max-width: 13ch;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.home-lead {
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.55;
  color: #c5d8cf;
  max-width: 46ch;
}
.home-search {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 28px;
  max-width: 540px;
  background: #fff;
  border-radius: 999px;
  padding: 5px 5px 5px 6px;
}
.home-search input {
  flex: 1;
  height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  background: transparent;
  color: var(--ink);
  min-width: 0;
}
.home-search input::placeholder { color: #8a9a93; }
.home-search input:focus { outline: none; }
.home-search .btn { height: 46px; padding: 0 22px; background: var(--gel); color: var(--pine-deep); flex: none; }
.home-search .btn:hover { background: #d6f57a; color: var(--pine-deep); }
.home-hero-links {
  display: flex; flex-wrap: wrap; gap: 10px 14px;
  margin-top: 16px; font-size: 14px; color: #9fb3aa;
}
.home-hero-links a { color: #e9f3ee; text-decoration: underline; text-underline-offset: 3px; }
.home-hero-links a:hover { color: var(--gel); }

.home-cats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.home-cat {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(16, 33, 28, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.home-cat:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(16, 33, 28, 0.08); }
.home-cat-img {
  width: 100%;
  height: 188px;
  object-fit: cover;
  border: 0;
  border-radius: 0;
  background: var(--pine-deep);
}
.home-cat-copy { display: grid; gap: 6px; padding: 16px 18px 18px; }
.home-cat strong { font-family: var(--display); font-size: 20px; font-weight: 600; }
.home-cat span:not(.home-cat-copy) { color: var(--muted); font-size: 14px; }
.home-cat em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--cat, var(--pine)); }
.home-band { padding: 72px 0; }
.home-band-alt { background: #fff; }
.home-band-head { max-width: 42rem; margin-bottom: 36px; }
.home-band-head h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.15; }
.home-band-head p { margin-top: 10px; color: var(--ink-soft); font-size: 17px; }
.home-band-head-follow { margin-top: 48px; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; max-width: none; }
.home-more { font-weight: 600; }

.spin { position: relative; }
.spin-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 6px 44px 16px;
}
.spin-track::-webkit-scrollbar { display: none; }
.spin-slide {
  flex: 0 0 min(300px, 78vw);
  scroll-snap-align: start;
}
.spin-slide .listing { height: 100%; }
.spin-nav {
  position: absolute;
  top: 42%;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--pine-deep);
  box-shadow: 0 6px 18px rgba(16, 33, 28, 0.16);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.spin-prev { left: 0; }
.spin-next { right: 0; }
.spin-nav:hover { background: var(--gel); }

.home-flow {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
  counter-reset: none;
}
.home-flow li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.home-flow-n {
  width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--pine-deep); color: var(--gel);
  font-family: var(--display); font-size: 14px; font-weight: 700;
}
.home-flow h3 { font-size: 20px; margin-bottom: 6px; }
.home-flow p { color: var(--ink-soft); font-size: 15px; }

.hero {
  display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 28px; align-items: end;
  padding: 12px 0 8px;
}
.hero h1 { font-size: 42px; line-height: 1.05; font-weight: 800; max-width: 16ch; }
.hero p { margin-top: 10px; font-size: 16px; color: var(--ink-soft); max-width: 48ch; }
.hero-actions { display: flex; gap: 8px; margin-top: 18px; }
.hero-aside { color: var(--ink-soft); font-size: 14px; }
.hero-aside strong { display: block; color: var(--pine); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px; }

.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.choice-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 0 0 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(16, 33, 28, 0.04);
}
.choice-card:hover { text-decoration: none; border-color: var(--cat, var(--pine)); }
.choice-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: var(--pine-deep);
}
.choice-card strong { display: block; padding: 14px 16px 0; font-size: 18px; }
.choice-card span { display: block; padding: 0 16px; color: var(--muted); font-size: 14px; }
.field-advanced {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.field-advanced summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
}
.cat-tile {
  display: grid; gap: 8px; color: inherit; text-decoration: none;
  padding-top: 14px; border-top: 2px solid var(--cat, var(--pine));
}
.cat-tile:hover { text-decoration: none; }
.cat-tile h3 { font-size: 20px; }
.cat-tile p { color: var(--muted); font-size: 14px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-num { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: 0.08em; margin-bottom: 6px; }
.step h3 { font-size: 18px; margin-bottom: 6px; }

.layout-2 {
  display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start;
}
.filters { padding: 0; position: sticky; top: 80px; }
.filters h2 { font-size: 13px; margin-bottom: 10px; }
.filter-group { margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.filter-group:last-child { border-bottom: 0; margin-bottom: 0; }
.filter-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 700; margin-bottom: 6px; }
.filter-options { display: grid; gap: 6px; }
.filter-options label { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--ink-soft); cursor: pointer; }

.toolbar { display: flex; gap: 8px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.search {
  flex: 1; min-width: 220px; height: 40px; border: 1px solid var(--line); border-radius: 999px;
  padding: 0 14px; background: #fff;
}
select.input, .input, textarea.input {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; padding: 8px 12px; min-height: 40px;
}
textarea.input { min-height: 120px; resize: vertical; border-radius: var(--radius); }
.field { margin-bottom: 14px; }
.field label, .label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 5px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 4px; }
.req { color: var(--copper); }
.error { color: var(--danger); font-size: 13px; margin-top: 4px; }

.listing-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.listing {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 24px rgba(16, 33, 28, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.listing:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(16, 33, 28, 0.08); }
.listing-media { position: relative; display: block; background: var(--pine-deep); }
.listing-cover {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.listing-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.listing-rail { display: none; }
.listing-body { display: grid; gap: 6px; padding: 14px 16px 16px; min-width: 0; }
.listing-cat { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cat, var(--pine)); font-weight: 700; }
.listing-title { display: block; font-family: var(--display); font-size: 18px; font-weight: 600; line-height: 1.25; }
.listing:hover .listing-title { color: var(--pine); }
.listing-meta { font-size: 14px; color: var(--ink-soft); }
.listing-fields { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 4px; font-size: 13px; color: var(--muted); }
.listing-fields span b { color: var(--ink-soft); font-weight: 600; }
.listing-side { display: none; }
.badge {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px;
  border-radius: 999px; font-size: 11px; color: var(--ink-soft); background: rgba(13,122,98,0.08); font-weight: 600;
}
.badge-rec { color: var(--pine); background: rgba(13,122,98,0.12); }
.badge-feat { color: #8a5a12; background: #f8edda; }
.badge-req { color: var(--service); background: #e8eef8; }

.stats-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.stat { padding: 4px 0; }
.stat-n { font-size: 28px; font-family: var(--display); line-height: 1; }
.stat-l { font-size: 12px; color: var(--muted); margin-top: 6px; text-transform: uppercase; letter-spacing: 0.08em; }

.table { width: 100%; border-collapse: collapse; font-size: 14px; background: transparent; }
.table th { text-align: left; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:hover td { background: rgba(13,122,98,0.04); }

.empty { padding: 28px 0; }
.empty h2 { font-size: 22px; margin-bottom: 6px; }
.empty p { color: var(--ink-soft); margin-bottom: 12px; }

.auth-shell {
  width: min(var(--wrap), calc(100% - 48px));
  margin: 0 auto;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 440px);
  gap: 56px;
  align-items: center;
  padding: 36px 0 72px;
}
.auth-copy { padding: 0; color: #e9f3ee; }
.auth-copy h1 {
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1.05;
  max-width: 12ch;
  color: #f7fbf8;
}
.auth-lead { margin-top: 14px; font-size: 17px; line-height: 1.55; color: #c5d8cf; max-width: 38ch; }
.auth-points {
  list-style: none; margin: 28px 0 0; padding: 0;
  display: grid; gap: 12px; color: #d5e6de; font-size: 15px;
}
.auth-points li {
  padding-left: 22px;
  position: relative;
}
.auth-points li::before {
  content: "";
  position: absolute; left: 0; top: 7px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gel);
}
.auth-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px 32px 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: -8px 0 22px;
  padding: 4px;
  background: var(--paper);
  border-radius: 999px;
}
.auth-tabs button {
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-weight: 600;
  cursor: pointer;
}
.auth-tabs button.is-on {
  background: #fff;
  color: var(--pine-deep);
  box-shadow: 0 2px 10px rgba(16, 33, 28, 0.08);
}
.auth-fields .field { margin-bottom: 16px; }
.auth-fields .input { min-height: 44px; border-radius: 10px; }
.auth-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 4px 0 18px; font-size: 14px;
}
.auth-check { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); cursor: pointer; }
.auth-switch { margin-top: 16px; font-size: 14px; color: var(--muted); text-align: center; }
body.is-auth {
  background:
    radial-gradient(900px 420px at 88% 0%, rgba(200, 240, 90, 0.16), transparent 55%),
    linear-gradient(180deg, rgba(8, 34, 27, 0.2), rgba(8, 34, 27, 0.55)),
    url("/images/hero-glow.jpg") center / cover no-repeat,
    var(--pine-deep);
}
body.is-auth .auth-copy .home-kicker { color: var(--gel); }

.admin-shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: calc(100vh - var(--header-h)); }
.admin-nav { background: var(--pine-deep); color: #d5e0db; padding: 20px 0; }
.admin-nav a { display: block; color: #c5d4ce; padding: 8px 18px; font-size: 14px; text-decoration: none; }
.admin-nav a:hover, .admin-nav a.is-active { background: rgba(200,240,90,0.08); color: #fff; text-decoration: none; }
.admin-nav .nav-label { padding: 16px 18px 6px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #8aa197; }
.admin-main { padding: 28px 32px 56px; background: #fff; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
.check-row { display: flex; flex-wrap: wrap; gap: 12px 18px; }
.check-row label { display: flex; gap: 6px; align-items: center; font-size: 14px; }
.wizard-steps { display: flex; gap: 18px; margin-bottom: 16px; font-size: 13px; color: var(--muted); }
.wizard-steps .on { color: var(--ink); font-weight: 600; }

.dl { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 8px 16px; font-size: 14px; }
.dl dt { color: var(--muted); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; }

.field-builder { display: grid; gap: 10px; }
.field-row { border-bottom: 1px solid var(--line); background: transparent; padding: 12px 0; }
.field-row-head { display: flex; justify-content: space-between; gap: 8px; cursor: grab; }

.fb {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 300px;
  min-height: 640px;
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper);
}
.fb-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 8px;
}
.fb-palette {
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 16px 14px;
}
.fb-palette .hint { margin-bottom: 12px; }
.fb-palette-list { display: grid; gap: 6px; }
.fb-chip {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  cursor: grab;
  text-align: left;
}
.fb-chip:hover { border-color: var(--pine); background: rgba(13,122,98,0.08); color: var(--pine-deep); }
.fb-chip:active { cursor: grabbing; }
.fb-canvas-wrap { display: flex; flex-direction: column; min-width: 0; background: var(--paper); }
.fb-canvas-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.fb-canvas-head strong { flex: 1; }
.fb-status { font-size: 13px; color: var(--muted); }
.fb-status.is-dirty { color: var(--copper); font-weight: 600; }
.fb-canvas {
  flex: 1;
  padding: 16px;
  outline: none;
}
.fb-canvas.is-over {
  background: rgba(13,122,98,0.06);
}
.fb-empty {
  border: 2px dashed var(--line);
  border-radius: 12px;
  padding: 48px 16px;
  text-align: center;
  color: var(--muted);
  font-weight: 600;
  background: #fff;
}
.fb-canvas.is-over .fb-empty { border-color: var(--pine); color: var(--pine); }
.fb-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 14px 14px 10px;
  margin-bottom: 10px;
  cursor: pointer;
}
.fb-item:hover { border-color: #c5d4ce; }
.fb-item.is-on { border-color: var(--pine); box-shadow: 0 0 0 3px rgba(13,122,98,0.12); }
.fb-item.is-dragging { opacity: 0.45; }
.fb-item.drop-before { box-shadow: inset 0 3px 0 var(--gel); }
.fb-item.drop-after { box-shadow: inset 0 -3px 0 var(--gel); }
.fb-handle {
  color: #9aada5;
  font-size: 12px;
  letter-spacing: -2px;
  cursor: grab;
  user-select: none;
  padding-top: 4px;
}
.fb-item-body { display: grid; gap: 6px; min-width: 0; }
.fb-item-label { font-weight: 600; }
.fb-item .input, .fb-item textarea.input, .fb-item select.input {
  pointer-events: none;
  background: var(--paper);
  min-height: 38px;
}
.fb-item .check-row { pointer-events: none; }
.fb-props {
  background: #fff;
  border-left: 1px solid var(--line);
  padding: 16px 16px 24px;
}
.fb-option { display: grid; grid-template-columns: minmax(0, 1fr) 36px; gap: 6px; margin-bottom: 6px; }
.fb-option .btn { min-width: 36px; padding: 0; }
.fb-props .check-row { flex-direction: column; gap: 8px; margin: 12px 0; }

.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 12px; }
.pager { display: flex; gap: 8px; align-items: center; margin-top: 18px; font-size: 14px; }

.site-footer { padding: 36px 0 40px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
.site-footer-inner { display: flex; justify-content: space-between; gap: 24px; align-items: start; }
.site-footer strong { display: block; font-family: var(--display); color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--ink-soft); }

.mobile-toggle { display: none; }

@media (max-width: 1100px) {
  .home-hero-inner, .home-flow, .hero, .layout-2, .auth-shell, .admin-shell, .detail-grid, .stats-row, .cat-grid, .steps, .form-grid, .fb {
    grid-template-columns: 1fr;
  }
  .fb-palette, .fb-props { border: 0; border-bottom: 1px solid var(--line); }
  .home-hero-inner { min-height: 0; }
  .home-hero-inner::after { display: none; }
  .page-title { font-size: 28px; }
  .nav { display: none; }
  .nav.is-open {
    display: flex; flex-direction: column; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: #fff; padding: 8px; border-bottom: 1px solid var(--line);
  }
  .mobile-toggle { display: inline-flex; }
}

.home-prose-list { margin: 12px 0 0; padding-left: 1.2em; color: var(--ink-soft); }
.home-prose-list li { margin: 6px 0; }

body.is-home .site-header {
  background: var(--pine-deep);
  border-bottom-color: transparent;
}
body.is-auth .site-header {
  background: transparent;
  border-bottom-color: transparent;
}
body.is-home .brand,
body.is-home .brand-name,
body.is-home .nav a,
body.is-home .header-login,
body.is-home .nav-btn,
body.is-auth .brand,
body.is-auth .brand-name,
body.is-auth .nav a,
body.is-auth .header-login,
body.is-auth .nav-btn {
  color: #e7f2ec;
}
body.is-home .brand:hover,
body.is-home .brand-name,
body.is-auth .brand:hover,
body.is-auth .brand-name {
  color: #f7fbf8;
}
body.is-home .nav a:hover,
body.is-home .nav-btn:hover,
body.is-auth .nav a:hover,
body.is-auth .nav-btn:hover { background: rgba(200,240,90,0.1); color: #fff; }
body.is-home .nav a.is-active,
body.is-auth .nav a.is-active { color: var(--gel); background: rgba(200,240,90,0.12); }
body.is-home .header-login:hover,
body.is-auth .header-login:hover { color: #fff; }
body.is-home .header-actions .btn,
body.is-auth .header-actions .btn { background: var(--gel); color: var(--pine-deep); }
body.is-home .header-actions .btn:hover,
body.is-auth .header-actions .btn:hover { background: #d6f57a; color: var(--pine-deep); }
body.is-home .nav.is-open,
body.is-auth .nav.is-open {
  background: var(--pine-deep);
  border-bottom-color: rgba(255,255,255,0.08);
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
