:root {
  --bg: #ffffff;
  --fg: #0a0a0a;
  --muted: #6b6b74;
  --muted-2: #a1a1aa;
  --border: #eaeaec;
  --border-2: #f0f0f2;
  --subtle: #f6f6f7;
  --subtle-2: #fafafa;
  --primary: #0a0a0a;
  --primary-hover: #262629;
  --accent: #39a0fb;
  --accent-hover: #2b8fe6;
  --accent-soft: rgba(57, 160, 251, 0.14);
  --claude: #c96442;
  --image: #8b5cf6;
  --chatgpt: #10a37f;
  --radius: 10px;
  --radius-lg: 16px;
  color-scheme: light;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.011em;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::-webkit-scrollbar { height: 8px; width: 8px; }
::-webkit-scrollbar-thumb { background: #e2e2e5; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #d4d4d8; }

/* ---- Shell -------------------------------------------------------------- */

.app { display: grid; grid-template-columns: 244px 1fr; min-height: 100vh; }

/* ---- Sidebar ------------------------------------------------------------ */

.sidebar {
  border-right: 1px solid var(--border);
  padding: 16px 12px; display: flex; flex-direction: column; gap: 1px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--bg);
}
.brand { display: flex; align-items: center; gap: 9px; padding: 4px 8px 14px; }
.brand .logo {
  width: 26px; height: 26px; border-radius: 7px; background: var(--primary);
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 14px;
}
.brand b { font-size: 15px; font-weight: 600; letter-spacing: -0.02em; }

.side-search {
  display: flex; align-items: center; gap: 8px; border: 1px solid var(--border);
  border-radius: 9px; padding: 7px 10px; margin: 0 4px 12px; background: var(--bg);
  transition: border-color 0.15s;
}
.side-search:focus-within { border-color: var(--muted-2); }
.side-search svg { width: 15px; height: 15px; color: var(--muted-2); flex: none; }
.side-search input { border: none; outline: none; background: none; width: 100%; font-size: 13px; color: var(--fg); }
.side-search kbd {
  font-family: inherit; font-size: 11px; color: var(--muted-2); border: 1px solid var(--border);
  border-radius: 5px; padding: 1px 5px; background: var(--subtle); flex: none;
}

.nav-label {
  font-size: 11px; font-weight: 500; letter-spacing: 0.02em; color: var(--muted-2);
  padding: 14px 10px 5px;
}
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px;
  color: var(--muted); font-size: 13.5px; font-weight: 450; border: none; background: none;
  width: 100%; text-align: left; transition: background 0.12s, color 0.12s;
}
.nav-item svg { width: 16px; height: 16px; flex: none; opacity: 0.85; }
.nav-item:hover { background: var(--subtle); color: var(--fg); }
.nav-item.active { background: var(--subtle); color: var(--fg); font-weight: 550; }
.nav-item .count {
  margin-left: auto; font-size: 11.5px; color: var(--muted-2); font-weight: 450;
  background: var(--subtle); border-radius: 5px; padding: 0 6px; min-width: 18px; text-align: center;
}
.nav-item.active .count { background: #ebebee; }

.sidebar-foot { margin-top: auto; padding-top: 16px; }
.promo {
  border: 1px solid var(--border); border-radius: 12px; padding: 12px; background: var(--bg);
}
.promo .kick { font-size: 11px; font-weight: 600; color: var(--fg); }
.promo p { font-size: 12px; color: var(--muted); margin: 4px 0 10px; line-height: 1.45; }
.promo .cta {
  display: flex; align-items: center; gap: 8px; background: var(--primary); color: #fff;
  border-radius: 9px; padding: 10px 12px; font-size: 12.5px; font-weight: 550;
}
.promo .cta svg { width: 14px; height: 14px; }
.promo .cta:hover { background: var(--primary-hover); }

.user-card {
  display: flex; align-items: center; gap: 9px; border: 1px solid var(--border);
  border-radius: 10px; padding: 8px; margin-top: 8px; background: var(--bg);
}
.user-card .avatar {
  width: 28px; height: 28px; border-radius: 7px; background: var(--primary);
  display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 12px;
}
.user-card small { display: block; color: var(--muted-2); font-size: 11.5px; }
.user-card b { font-size: 12.5px; font-weight: 550; }

/* ---- Main / topbar ------------------------------------------------------ */

.main { min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center;
  padding: 0 24px; height: 52px;
  background: rgba(255,255,255,0.78); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.topbar .center { position: absolute; left: 50%; transform: translateX(-50%); font-size: 13.5px; font-weight: 550; }
.topbar .crumb { color: var(--muted); font-size: 13.5px; }
.topbar .spacer { flex: 1; }
.icon-btn {
  width: 32px; height: 32px; border: 1px solid var(--border); background: var(--bg);
  border-radius: 8px; display: grid; place-items: center; color: var(--muted); transition: background 0.12s;
}
.icon-btn:hover { background: var(--subtle); color: var(--fg); }
.icon-btn svg { width: 15px; height: 15px; }

.content { padding: 26px 24px 72px; max-width: 1240px; }

/* ---- Section header ----------------------------------------------------- */

.sec { margin-bottom: 40px; }
.sec-head { display: flex; align-items: center; margin-bottom: 14px; }
.sec-head h2 { font-size: 16px; font-weight: 600; margin: 0; letter-spacing: -0.02em; }
.sec-head .link {
  margin-left: auto; font-size: 12.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 3px;
}
.sec-head .link:hover { color: var(--fg); }
.sec-head .link svg { width: 13px; height: 13px; }

/* ---- Featured horizontal row -------------------------------------------- */

.rail-wrap { position: relative; }
.rail {
  display: flex; gap: 14px; overflow-x: auto; scroll-behavior: smooth;
  padding-bottom: 4px; scroll-snap-type: x proximity;
}
.rail::-webkit-scrollbar { display: none; }
.rail-btn {
  position: absolute; top: 78px; right: -4px; z-index: 3;
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--bg); box-shadow: 0 4px 12px rgba(10,10,10,0.1);
  display: grid; place-items: center; color: var(--fg);
}
.rail-btn:hover { background: var(--subtle); }
.rail-btn svg { width: 16px; height: 16px; }

.feat {
  flex: 0 0 288px; scroll-snap-align: start;
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 6px;
  background: var(--bg); transition: border-color 0.14s, box-shadow 0.14s; cursor: pointer;
}
.feat:hover { border-color: var(--muted-2); box-shadow: 0 4px 16px rgba(10,10,10,0.05); }
.feat .thumb {
  height: 168px; border-radius: 12px; overflow: hidden; position: relative;
  background: linear-gradient(160deg, #fafafa, #f2f2f4);
  border: 1px solid var(--border-2); padding: 16px;
}
.feat .thumb .plabel {
  font-size: 11px; font-weight: 550; color: var(--muted); margin-bottom: 8px;
}
.feat .thumb pre {
  margin: 0; font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px; line-height: 1.55; color: #3a3a40; white-space: pre-wrap; word-break: break-word;
}
.feat .thumb::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 64px;
  background: linear-gradient(180deg, rgba(244,244,246,0), #f2f2f4);
}
.feat .fmeta { display: flex; align-items: center; gap: 9px; padding: 11px 8px 6px; }
.feat .fico {
  width: 26px; height: 26px; border-radius: 7px; background: var(--subtle);
  border: 1px solid var(--border); display: grid; place-items: center; color: var(--fg); flex: none;
}
.feat .fico svg { width: 14px; height: 14px; }
.feat .fmeta b { font-size: 13px; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feat .fmeta .metric { margin-left: auto; font-size: 11.5px; color: var(--muted-2); display: inline-flex; align-items: center; gap: 5px; flex: none; }
.feat .fmeta .metric .dot { width: 6px; height: 6px; border-radius: 50%; }
.dot.claude { background: var(--claude); } .dot.chatgpt { background: var(--chatgpt); } .dot.both { background: var(--fg); }

/* ---- Banner ------------------------------------------------------------- */

.banner {
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 28px; align-items: center;
  background: linear-gradient(180deg, var(--subtle-2), var(--bg));
}
.banner h3 { font-size: 20px; font-weight: 600; margin: 0 0 8px; letter-spacing: -0.02em; }
.banner p { color: var(--muted); font-size: 13.5px; margin: 0 0 18px; line-height: 1.55; max-width: 40ch; }
.banner .actions { display: flex; gap: 9px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { border: 1px solid var(--border); border-radius: 11px; padding: 13px; background: var(--bg); }
.tile .ti { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 550; }
.tile .ti svg { width: 15px; height: 15px; color: var(--fg); }
.tile small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 4px; }

/* ---- Filters ------------------------------------------------------------ */

.filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 16px; }
.chip {
  border: 1px solid var(--border); background: var(--bg); border-radius: 8px; padding: 6px 12px;
  font-size: 13px; font-weight: 450; color: var(--muted); transition: all 0.12s;
}
.chip:hover { color: var(--fg); background: var(--subtle); }
.chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.seg { margin-left: auto; display: inline-flex; gap: 2px; background: var(--subtle); border: 1px solid var(--border); border-radius: 9px; padding: 2px; }
.seg button { border: none; background: none; border-radius: 7px; padding: 5px 12px; font-size: 12.5px; font-weight: 450; color: var(--muted); transition: all 0.12s; }
.seg button.active { background: var(--bg); color: var(--fg); font-weight: 550; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }

/* ---- Template card grid ------------------------------------------------- */

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 14px; }
.tpl {
  position: relative; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 18px; background: var(--bg); display: flex; flex-direction: column; gap: 10px;
  transition: border-color 0.14s, box-shadow 0.14s; cursor: pointer;
}
.tpl:hover { border-color: var(--muted-2); box-shadow: 0 3px 14px rgba(10,10,10,0.05); }
.tpl .thead { display: flex; align-items: flex-start; gap: 11px; }
.tpl .ico {
  width: 34px; height: 34px; border-radius: 9px; background: var(--subtle); border: 1px solid var(--border);
  display: grid; place-items: center; color: var(--fg); flex: none;
}
.tpl .ico svg { width: 17px; height: 17px; }
.tpl h4 { font-size: 14.5px; font-weight: 600; margin: 3px 0 0; letter-spacing: -0.01em; line-height: 1.3; }
.tpl .cat { font-size: 11.5px; color: var(--muted-2); margin-top: 2px; }
.tpl p.desc {
  color: var(--muted); font-size: 12.5px; margin: 0; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tpl .foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
.tag { font-size: 11.5px; color: var(--muted); background: var(--subtle); border-radius: 6px; padding: 2px 8px; }
.badge { font-size: 11px; font-weight: 500; padding: 2px 8px; border-radius: 6px; display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--border); color: var(--muted); }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted-2); }
.badge.claude .dot { background: var(--claude); } .badge.chatgpt .dot { background: var(--chatgpt); } .badge.both .dot { background: var(--accent); } .badge.image .dot { background: var(--image); }
.copy-mini {
  position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--bg); color: var(--muted);
  display: grid; place-items: center; opacity: 0; transition: opacity 0.14s, background 0.12s;
}
.tpl:hover .copy-mini { opacity: 1; }
.copy-mini:hover { background: var(--subtle); color: var(--fg); }
.copy-mini svg { width: 14px; height: 14px; }

/* ---- Buttons ------------------------------------------------------------ */

.btn {
  border: 1px solid var(--border); background: var(--bg); color: var(--fg); border-radius: 8px;
  padding: 8px 14px; font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; transition: all 0.12s;
}
.btn svg { width: 14px; height: 14px; }
.btn:hover { background: var(--subtle); }
.btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.block { width: 100%; justify-content: center; padding: 9px 13px; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ---- Empty -------------------------------------------------------------- */

.empty { text-align: center; padding: 60px 20px; color: var(--muted); grid-column: 1/-1; }
.empty .eico { width: 46px; height: 46px; margin: 0 auto 14px; border-radius: 12px; background: var(--subtle); border: 1px solid var(--border); display: grid; place-items: center; color: var(--muted); }
.empty h3 { color: var(--fg); margin: 0 0 4px; font-size: 15px; font-weight: 600; }
.empty p { font-size: 13px; }

/* ---- Modal -------------------------------------------------------------- */

.overlay { position: fixed; inset: 0; background: rgba(10,10,10,0.35); backdrop-filter: blur(2px); display: none; align-items: center; justify-content: center; padding: 24px; z-index: 50; }
.overlay.open { display: flex; }
.modal { background: var(--bg); border: 1px solid var(--border); border-radius: 16px; width: min(680px, 100%); max-height: 86vh; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 24px 60px rgba(10,10,10,0.22); }
.modal header { padding: 18px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: flex-start; gap: 12px; }
.modal header h2 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.modal header .cat { font-size: 12px; color: var(--muted); }
.modal .x { margin-left: auto; border: 1px solid var(--border); background: var(--bg); border-radius: 7px; width: 30px; height: 30px; color: var(--muted); font-size: 17px; transition: background 0.12s; }
.modal .x:hover { background: var(--subtle); }
.modal .body { padding: 18px 20px; overflow-y: auto; }
.modal pre { white-space: pre-wrap; word-wrap: break-word; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px; line-height: 1.65; color: var(--fg); background: var(--subtle); border: 1px solid var(--border); border-radius: 10px; padding: 15px; margin: 0; }
.modal footer { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; gap: 10px; }

/* ---- Admin panel -------------------------------------------------------- */

.panel { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; max-width: 680px; }
.panel h3.panel-title { margin: 0 0 4px; font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.panel .hint { color: var(--muted); font-size: 13px; margin: 0 0 20px; line-height: 1.55; }
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.field textarea, .field input, .field select { width: 100%; border: 1px solid var(--border); border-radius: 9px; padding: 9px 12px; font-size: 13.5px; font-family: inherit; color: var(--fg); outline: none; background: var(--bg); transition: border-color 0.14s, box-shadow 0.14s; }
.field textarea { min-height: 88px; resize: vertical; line-height: 1.5; }
.field textarea:focus, .field input:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field .sub { font-size: 12px; color: var(--muted-2); margin-top: 5px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.page-head { margin-bottom: 22px; }
.page-head h2 { font-size: 22px; margin: 0 0 4px; font-weight: 600; letter-spacing: -0.02em; }
.page-head p { color: var(--muted); font-size: 14px; margin: 0; }
.pill { font-size: 12px; color: var(--muted); border: 1px solid var(--border); border-radius: 7px; padding: 4px 10px; }
.result { margin-top: 22px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg); padding: 18px; display: none; }
.result.show { display: block; }
.result .cat { color: var(--muted); font-weight: 500; font-size: 12px; }

/* ---- Toast / spinner ---------------------------------------------------- */

.toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--primary); color: #fff; padding: 10px 16px; border-radius: 9px; font-size: 13px; font-weight: 500; box-shadow: 0 8px 24px rgba(10,10,10,0.24); opacity: 0; pointer-events: none; transition: all 0.22s; z-index: 100; display: flex; align-items: center; gap: 8px; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.spinner { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,0.35); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; }
.btn:not(.primary) .spinner { border-color: rgba(10,10,10,0.2); border-top-color: var(--fg); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Single-column page (no sidebar / no top bar) ----------------------- */

.page { max-width: 1080px; margin: 0 auto; padding: 60px 28px 96px; }

.hero { margin-bottom: 30px; }
.brand-lg { display: inline-flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 26px; }
.brand-lg .logo { width: 26px; height: 26px; border-radius: 7px; background: var(--primary); display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 14px; }
.logo-img { height: 52px; width: auto; display: inline-block; margin-bottom: 22px; }
.hero h1 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 8px; }
.hero .tagline { color: var(--muted); font-size: 14px; margin: 0 0 22px; max-width: 58ch; line-height: 1.6; }

/* Centered hero variant — logo, title, tagline and search all centered. */
.hero-center { text-align: center; }
.hero-center .tagline { max-width: 52ch; margin-left: auto; margin-right: auto; }
.hero-center .hero-search { margin: 0 auto; }

.hero-search {
  display: flex; align-items: center; gap: 9px; border: 1px solid var(--border);
  border-radius: 11px; padding: 11px 14px; width: 100%; max-width: 480px; background: var(--bg);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.hero-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.hero-search svg { width: 16px; height: 16px; color: var(--muted-2); flex: none; }
.hero-search input { border: none; outline: none; background: none; width: 100%; font-size: 14px; color: var(--fg); }
.hero-search kbd { font-family: inherit; font-size: 11px; color: var(--muted-2); border: 1px solid var(--border); border-radius: 5px; padding: 1px 5px; background: var(--subtle); flex: none; }

.tabbar { margin-bottom: 14px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.tab {
  border: none; background: var(--subtle); border-radius: 8px; padding: 7px 12px;
  font-size: 13px; font-weight: 500; color: #52525b; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px; transition: background 0.13s, color 0.13s;
}
.tab:hover { background: #e8e8ec; color: var(--fg); }
.tab.active { background: var(--fg); color: #fff; }
.tab .count { font-size: 11.5px; font-weight: 500; opacity: 0.55; }

.platbar { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 24px; padding-top: 14px; border-top: 1px solid var(--border); }
.plat-label { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.platbar .seg { margin-left: 0; }

@media (max-width: 720px) {
  .page { padding: 36px 18px 72px; }
}

/* ---- Guide link on home ------------------------------------------------- */

.hero-links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.guide-link {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px;
  font-size: 13px; color: var(--muted); background: var(--bg); transition: all 0.14s;
}
.guide-link svg { width: 14px; height: 14px; transition: transform 0.14s; }
.guide-link:hover { border-color: var(--accent); color: var(--accent); }
.guide-link:hover svg { transform: translateX(3px); }

/* ---- Guide page --------------------------------------------------------- */

.guide { max-width: 760px; padding-top: 44px; }
.guide-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 34px; }
.guide .kicker {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 4px 12px; margin-bottom: 16px;
}
.guide-h1 { font-size: 34px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; margin: 0 0 14px; }
.guide .lead { font-size: 16px; color: var(--muted); line-height: 1.6; margin: 0 0 28px; max-width: 60ch; }
.guide h2 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; margin: 40px 0 14px; }
.guide .sub-lead { color: var(--muted); font-size: 14px; margin: -6px 0 14px; }
.guide p { line-height: 1.65; }

.callout { border: 1px solid var(--accent); background: linear-gradient(180deg, var(--accent-soft), rgba(57,160,251,0.04)); border-radius: 14px; padding: 20px 22px; margin: 8px 0 8px; }
.callout p { margin: 0; font-size: 15px; }
.callout-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); margin-bottom: 8px; }
.callout.tips { border-color: var(--border); background: var(--subtle); }
.callout.tips .callout-tag { color: var(--fg); }
.callout.tips ul { margin: 0; padding-left: 20px; }
.callout.tips li { font-size: 14px; line-height: 1.7; color: var(--fg); }

.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.vs-card { border: 1px solid var(--border); border-radius: 14px; padding: 18px; background: var(--bg); }
.vs-card.accent { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.vs-head { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.vs-ico { font-size: 18px; }
.vs-card p { font-size: 13.5px; color: var(--muted); margin: 0 0 12px; }
.vs-eg { font-size: 13px; background: var(--subtle); border-radius: 9px; padding: 10px 12px; color: var(--fg); line-height: 1.5; }
.vs-card.accent .vs-eg { background: var(--accent-soft); }
.bottom-line { font-size: 14.5px; color: var(--fg); background: var(--subtle-2); border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; padding: 12px 16px; }

.why { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.why-item { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.why-item b { display: block; font-size: 14px; margin-bottom: 3px; }
.why-item span { font-size: 13px; color: var(--muted); }

.ingredients { margin: 0; padding-left: 0; list-style: none; counter-reset: ing; }
.ingredients li { position: relative; padding: 10px 0 10px 34px; border-bottom: 1px solid var(--border-2); font-size: 14.5px; }
.ingredients li:last-child { border-bottom: none; }
.ingredients li::before { counter-increment: ing; content: counter(ing); position: absolute; left: 0; top: 9px; width: 22px; height: 22px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.ingredients li span { color: var(--muted); font-weight: 400; }

.steps { display: flex; flex-direction: column; gap: 4px; }
.step { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border-2); }
.step:last-child { border-bottom: none; }
.step .num { flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 700; font-size: 14px; display: grid; place-items: center; }
.step b { font-size: 14.5px; }
.step p { font-size: 13.5px; color: var(--muted); margin: 4px 0 0; }
.step .where { margin: 10px 0 0; padding-left: 18px; }
.step .where li { font-size: 13.5px; color: var(--fg); line-height: 1.7; }

.ex-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ex { border: 1px solid var(--border); border-radius: 14px; padding: 16px; background: var(--bg); }
.ex-title { font-weight: 600; font-size: 14.5px; margin-bottom: 10px; }
.ex-line { display: flex; gap: 8px; font-size: 13px; padding: 3px 0; }
.ex-line span { flex: none; width: 62px; color: var(--muted-2); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; padding-top: 2px; }

.guide-cta { margin-top: 36px; }

/* Model guide: pick cards + comparison table */
.pick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pick { border: 1px solid var(--border); border-radius: 14px; padding: 18px; background: var(--bg); }
.pick .pt { font-weight: 600; font-size: 14.5px; }
.pick .model { color: var(--accent); font-weight: 600; font-size: 13px; margin: 6px 0 9px; }
.pick p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.6; }

.mtable-wrap { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; overflow-x: auto; }
.mtable { width: 100%; border-collapse: collapse; min-width: 520px; }
.mtable th { text-align: left; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); background: var(--subtle); padding: 10px 14px; border-bottom: 1px solid var(--border); }
.mtable td { padding: 13px 14px; border-top: 1px solid var(--border-2); font-size: 13.5px; vertical-align: top; color: var(--muted); }
.mtable td:first-child { color: var(--fg); }
.mtable .mn { color: var(--accent); font-weight: 600; white-space: nowrap; }
.mtable tbody tr:first-child td { border-top: none; }

@media (max-width: 640px) {
  .vs, .why, .ex-grid { grid-template-columns: 1fr; }
  .guide-h1 { font-size: 26px; }
}
