/* Graha JATS */
:root {
  --ink: #10262e;
  --ink-2: #3d5560;
  --muted: #6b7f88;
  --line: #dde5e8;
  --paper: #f6f8f7;
  --card: #ffffff;
  --brand: #1e8b92;
  --brand-dark: #024456;
  --brand-soft: #e5f3f3;
  --accent: #e3a33b;
  --ok: #1d7a4c;
  --ok-soft: #e4f4ea;
  --warn: #8a5a00;
  --warn-soft: #fff4dc;
  --bad: #b3261e;
  --bad-soft: #fdeceb;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 38, 46, .05), 0 6px 24px rgba(16, 38, 46, .06);
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--paper); }
a { color: var(--brand-dark); text-underline-offset: 3px; }
a:hover { color: var(--brand); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; }
h2 { font-size: 1.3rem; font-weight: 700; margin-top: 1.6em; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
code { font-size: .9em; background: #eef3f4; padding: .1em .35em; border-radius: 5px; word-break: break-all; }
img { max-width: 100%; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.nowrap { white-space: nowrap; }
.inline { display: inline; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hp { position: absolute; left: -9999px; }
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 62ch; }

/* Tombol */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; padding: .7em 1.2em; border-radius: 10px; border: 1.5px solid var(--brand); background: var(--brand); color: #fff !important; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; line-height: 1.2; }
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn-ghost { background: transparent; color: var(--brand-dark) !important; border-color: #b7d4d6; }
.btn-ghost:hover { background: var(--brand-soft); border-color: var(--brand); }
.btn-sm { padding: .45em .85em; font-size: .9rem; }
.btn-lg { padding: .9em 1.5em; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; }
button.link { background: none; border: 0; padding: 0; font: inherit; color: var(--brand-dark); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
button.link.danger, .danger { color: var(--bad) !important; }

/* Kepala halaman */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: var(--brand-dark); color: #fff; font: 700 .85rem/1 ui-monospace, monospace; }
.brand-name { font-weight: 800; font-size: 1.1rem; letter-spacing: -.01em; }
.main-nav { display: flex; align-items: center; gap: 20px; }
.main-nav > a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; }
.main-nav > a:not(.btn):hover { color: var(--brand); }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; font-size: .8rem; font-weight: 700; }
.lang-switch a { padding: .3em .55em; text-decoration: none; color: var(--muted); }
.lang-switch a.on { background: var(--brand-soft); color: var(--brand-dark); }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; padding: 8px; cursor: pointer; }
.nav-toggle span:not(.sr) { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px 20px 20px; gap: 6px; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav > a:not(.btn) { padding: .5em 0; }
  .main-nav form { padding: .5em 0; }
  .lang-switch { align-self: flex-start; margin-top: 6px; }
}

/* Pesan */
.flashes { padding-top: 16px; }
.flash { padding: .8em 1em; border-radius: 10px; margin: 0 0 12px; border: 1px solid; font-size: .95rem; }
.flash-ok { background: var(--ok-soft); border-color: #b8dfc7; color: #12502f; }
.flash-info { background: var(--brand-soft); border-color: #bfe0e1; color: var(--brand-dark); }
.flash-warn { background: var(--warn-soft); border-color: #f0d38f; color: var(--warn); }
.flash-error { background: var(--bad-soft); border-color: #f2b8b5; color: #8c1d18; }

/* Hero */
.hero { background: linear-gradient(180deg, #fff 0%, var(--paper) 100%); padding: 56px 0 64px; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); background: var(--brand-soft); padding: .3em .7em; border-radius: 99px; }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.12; margin: .4em 0 .45em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4em 0 .8em; }

.pipeline { display: grid; grid-template-columns: 1fr auto 1.25fr auto 1fr; align-items: center; gap: 10px; }
.pipe-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 30px 14px 16px; min-height: 230px; }
.pipe-tag { position: absolute; top: 10px; left: 12px; font: 700 .7rem/1 ui-monospace, monospace; color: var(--brand-dark); background: var(--brand-soft); padding: .3em .5em; border-radius: 5px; }
.pipe-xml { background: #0e2b33; border-color: #0e2b33; }
.pipe-xml .pipe-tag { background: #1e8b92; color: #fff; }
.pipe-xml pre { margin: 0; color: #a9d6d9; font: .66rem/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre; overflow: hidden; }
.pipe-xml pre b { color: #f2c46b; font-weight: 600; }
.pipe-arrow { color: var(--brand); font-weight: 800; font-size: 1.3rem; }
.doc-line { height: 6px; background: #e3e9eb; border-radius: 3px; margin: 7px 0; }
.doc-line.bold { background: #b9c7cc; height: 8px; }
.doc-line.head { background: var(--brand); height: 8px; opacity: .75; }
.doc-line.italic { background: #d4dde0; }
.doc-line.w90 { width: 90%; } .doc-line.w80 { width: 80%; } .doc-line.w70 { width: 70%; } .doc-line.w60 { width: 60%; } .doc-line.w50 { width: 50%; } .doc-line.w40 { width: 40%; }
.doc-gap { height: 8px; }
.doc-img { height: 52px; border-radius: 6px; margin: 10px 0 6px; background: linear-gradient(135deg, #cfe7e8, #9fcfd2); }
.doc-img.small { height: 40px; }
.pipe-view { display: grid; grid-template-columns: 22px 1fr; gap: 8px; }
.view-side i { display: block; height: 5px; border-radius: 3px; background: #e3e9eb; margin: 0 0 7px; }
.view-side i.on { background: var(--brand); }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: 1fr auto 1.3fr; }
  .pipeline > :nth-child(4), .pipeline > :nth-child(5) { display: none; }
}
@media (max-width: 520px) {
  .pipeline { grid-template-columns: 1fr; }
  .pipeline .pipe-arrow, .pipe-docx { display: none; }
}

/* Bagian */
.section { padding: 56px 0; }
.section.tight { padding: 28px 0 56px; }
.section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { text-align: center; margin: 0 0 1.4em; font-size: 1.6rem; }
.page-head { padding: 36px 0 8px; }
.head-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step-n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand-dark); color: #fff; font-weight: 800; margin-bottom: 12px; }
.steps p { color: var(--ink-2); font-size: .95rem; margin: 0; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 22px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.feature h3 { color: var(--brand-dark); }
.feature p { color: var(--ink-2); font-size: .95rem; margin: 0; }
@media (max-width: 900px) { .steps, .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps, .features { grid-template-columns: 1fr; } }

.faq { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 0 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; }
.faq p { color: var(--ink-2); }

/* Paket */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px 24px; box-shadow: var(--shadow); }
.plan.featured { border: 2px solid var(--brand); }
.plan-badge { position: absolute; top: -12px; left: 24px; background: var(--accent); color: #3b2500; font-size: .75rem; font-weight: 800; padding: .3em .7em; border-radius: 99px; }
.price { margin: .2em 0 .1em; }
.price strong { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
.price span { color: var(--muted); }
.plan-limit { color: var(--brand-dark); font-weight: 700; }
.checks { list-style: none; padding: 0; margin: 0 0 1.4em; flex: 1; }
.checks li { position: relative; padding-left: 1.6em; margin: .45em 0; font-size: .95rem; color: var(--ink-2); }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }
.notes { margin-top: 36px; }

/* Kartu dan formulir */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 0 0 18px; box-shadow: var(--shadow); }
.card h2:first-child, .card h3:first-child { margin-top: 0; }
.auth { max-width: 460px; }
.auth h1 { text-align: center; }
.form label { display: block; font-weight: 600; font-size: .9rem; margin: 0 0 14px; color: var(--ink); }
.form input[type=text], .form input[type=email], .form input[type=password], .form input[type=url], .form input[type=date], .form input[type=search], .form select, .form textarea, .search-row input, .plan-edit select, .plan-edit input[type=date] {
  display: block; width: 100%; margin-top: 6px; padding: .62em .75em; border: 1.5px solid #ccd8dc; border-radius: 9px; font: inherit; font-weight: 400; background: #fff; color: var(--ink); }
.form textarea { resize: vertical; line-height: 1.5; }
.form input:focus, .form select:focus, .form textarea:focus, .search-row input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(30, 139, 146, .18); }
.form input:disabled { background: #f1f4f5; color: var(--muted); }
fieldset { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
fieldset.card { padding: 22px; }
legend { font-weight: 800; font-size: 1.05rem; padding: 0; margin-bottom: 14px; color: var(--brand-dark); }
fieldset.card > legend { float: left; width: 100%; }
fieldset.card > legend + * { clear: both; }
.grid { display: grid; gap: 0 14px; }
.g2 { grid-template-columns: 2fr 1fr; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g5 { grid-template-columns: repeat(5, 1fr); }
.g3-1 { grid-template-columns: 3fr 1fr; }
@media (max-width: 800px) { .g2, .g3, .g4, .g3-1 { grid-template-columns: 1fr 1fr; } .g5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .g2, .g3, .g4, .g3-1, .g5 { grid-template-columns: 1fr; } }

.author { border: 1px solid var(--line); border-radius: 10px; padding: 14px 14px 0; margin-bottom: 12px; background: #fbfcfc; }
.author-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; flex-wrap: wrap; }
.author-n { color: var(--brand-dark); }
.form label.radio { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 500; }
.author-tools { margin-left: auto; display: inline-flex; gap: 4px; }
.icon-btn { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 1rem; line-height: 1; color: var(--ink-2); }
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.icon-btn.danger:hover { border-color: var(--bad); color: var(--bad); }
details.sub { margin: 4px 0 8px; }
details.sub summary { cursor: pointer; font-weight: 700; color: var(--brand-dark); margin-bottom: 12px; }
.card.highlight { border: 2px dashed #9fcfd2; background: #fbfefe; }
.drop { position: relative; display: flex !important; align-items: center; justify-content: center; flex-direction: column; text-align: center; min-height: 130px; border-radius: 10px; background: var(--brand-soft); padding: 20px; cursor: pointer; }
.drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop.over { outline: 3px solid var(--brand); }
.drop-file { margin-top: 8px; font-weight: 700; color: var(--brand-dark); }
.submit-bar { position: sticky; bottom: 0; display: flex; justify-content: flex-end; align-items: center; gap: 16px; padding: 14px 0; background: linear-gradient(180deg, rgba(246,248,247,0), var(--paper) 30%); flex-wrap: wrap; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); margin: 18px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.option { display: flex !important; gap: 10px; align-items: flex-start; padding: 12px; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 500 !important; }
.option:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.option input { margin-top: .3em; }

/* Langkah konversi */
.wizard { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 14px; font-size: .82rem; font-weight: 700; }
.wizard li { padding: .35em .8em; border-radius: 99px; background: #e9eff0; color: var(--muted); }
.wizard li.on { background: var(--brand-dark); color: #fff; }
.wizard li.done { background: var(--brand-soft); color: var(--brand-dark); }

/* Dasbor */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 8px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow); }
.stat-label { color: var(--muted); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.stat strong { font-size: 1.5rem; }
.meter { height: 6px; background: #e6eced; border-radius: 3px; overflow: hidden; margin-top: 6px; }
.meter span { display: block; height: 100%; background: var(--brand); }
@media (max-width: 700px) { .stat-row { grid-template-columns: 1fr; } }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: .7em .9em; border-bottom: 1px solid #edf1f2; vertical-align: top; }
.table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: #fafbfb; }
.table tr:last-child td { border-bottom: 0; }
.table td.ok { color: var(--ok); font-weight: 800; }
.table td.bad { color: var(--bad); font-weight: 800; }
.pill { display: inline-block; padding: .15em .6em; border-radius: 99px; font-size: .78rem; font-weight: 700; background: #e9eff0; color: var(--ink-2); white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.empty { text-align: center; padding: 36px; }
.search-row { display: flex; gap: 8px; margin-bottom: 12px; max-width: 520px; }
.search-row input { margin: 0; }
.plan-edit { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.plan-edit select, .plan-edit input[type=date] { width: auto; margin: 0; padding: .4em .5em; }

/* Hasil */
.result-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; }
@media (max-width: 860px) { .result-grid { grid-template-columns: 1fr; } }
.download-card { border: 2px solid var(--brand); }
.files { padding-left: 1.1em; }
.files li { margin: .3em 0; }
.warnings { padding-left: 1.1em; margin: 0; }
.warnings li { margin: .5em 0; color: var(--warn); }
.ok-text { color: var(--ok); font-weight: 700; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.stats div { display: flex; justify-content: space-between; background: var(--paper); border-radius: 8px; padding: .5em .8em; }
.stats dt { color: var(--ink-2); font-size: .9rem; }
.stats dd { margin: 0; font-weight: 800; }

/* Pembayaran */
.pay .amount { font-size: 2.2rem; font-weight: 800; color: var(--brand-dark); margin: .2em 0; letter-spacing: -.02em; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }
.price-table { margin: 6px 0 18px; }

/* Teks panjang */
.prose h2 { margin-top: 1.8em; }
.prose li { margin: .4em 0; }
.prose .table { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }

/* Kaki halaman */
.site-footer { background: #0e2b33; color: #b8cdd2; padding: 36px 0; margin-top: 40px; }
.site-footer a { color: #dbeaec; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-row { display: grid; grid-template-columns: 2fr 2fr 1fr; gap: 20px; align-items: start; }
.footer-row nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer strong { color: #fff; }
.site-footer p { margin: .3em 0 0; }
@media (max-width: 760px) { .footer-row { grid-template-columns: 1fr; } }

/* Contoh tampilan (beranda) */
.section.alt .steps li { background: var(--paper); }
.section:not(.alt) .feature { background: #fff; }
.center-block { text-align: center; margin: -1em auto 2em; }
.show-grid { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 36px; align-items: center; }
.browser { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 50px rgba(16, 38, 46, .14); overflow: hidden; }
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #eef2f3; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #d3dbde; }
.browser-bar i:nth-child(1) { background: #f1786b; } .browser-bar i:nth-child(2) { background: #f4c04e; } .browser-bar i:nth-child(3) { background: #5ec26a; }
.browser-bar span { margin-left: 10px; flex: 1; background: #fff; border-radius: 6px; padding: 3px 10px; font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.show-tabs { display: flex; gap: 6px; padding: 10px 14px 0; border-bottom: 1px solid var(--line); background: #fafbfb; overflow-x: auto; }
.show-tab { border: 0; background: none; font: inherit; font-size: .88rem; font-weight: 700; color: var(--muted); padding: .55em .9em; border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap; }
.show-tab.on { color: var(--brand-dark); border-bottom-color: var(--brand); }
.browser-view { aspect-ratio: 16 / 10; overflow: hidden; background: #fff; }
.browser-view img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: top; }
.phone { justify-self: center; width: 250px; padding: 12px; border-radius: 36px; background: #0e2b33; box-shadow: 0 20px 50px rgba(16, 38, 46, .25); }
.phone img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 2; object-fit: cover; object-position: top; border-radius: 26px; }
.show-points { list-style: none; padding: 0; margin: 32px 0 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.show-points li { position: relative; padding-left: 1.7em; color: var(--ink-2); font-size: .95rem; }
.show-points li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 1.25em; height: 1.25em; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 800; font-size: .85em; display: grid; place-items: center; }
@media (max-width: 900px) {
  .show-grid { grid-template-columns: 1fr; }
  .phone { width: 220px; }
  .show-points { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) { .show-points { grid-template-columns: 1fr; } }
.browser-view img[hidden] { display: none; }

.checks li.no { color: #a3b1b6; text-decoration: line-through; }
.checks li.no::before { content: "–"; color: #b9c5c9; }
.checks li.plus { color: var(--brand-dark); font-weight: 700; }

.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 4px; }
.price strong { white-space: nowrap; font-size: clamp(1.45rem, 2.1vw, 2rem); }
.checks li.no-strike { color: var(--muted); }

/* Katalog tema */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; margin-bottom: 24px; }
.theme-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.theme-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(16, 38, 46, .14); color: var(--ink); }
.theme-cover { aspect-ratio: 16 / 10; background: #e9eff0; display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.theme-cover img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.theme-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.theme-body h2, .theme-body h3 { margin: 0; font-size: 1.15rem; }
.theme-body p { margin: 0; font-size: .95rem; }
.theme-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.theme-price { font-weight: 800; color: var(--brand-dark); }
.theme-price.big { font-size: 1.7rem; margin: 0 0 .2em; letter-spacing: -.02em; }
.theme-more { margin-top: auto; padding-top: 10px; font-weight: 700; color: var(--brand); font-size: .92rem; }
.theme-detail { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.theme-detail .gallery { grid-column: 1; }
.theme-side { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 84px; }
.theme-info { grid-column: 1; }
.stack { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.gallery-main { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.gallery-main img { display: block; width: 100%; height: auto; }
.gallery-main figcaption { padding: 10px 16px; font-size: .9rem; color: var(--ink-2); border-top: 1px solid var(--line); }
.gallery-main figcaption:empty { display: none; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.thumb { flex: 0 0 auto; width: 120px; aspect-ratio: 16 / 10; padding: 0; border: 2px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.thumb.on { border-color: var(--brand); }
.checks.two-col { columns: 2; column-gap: 28px; }
.checks.two-col li { break-inside: avoid; }
.admin-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-bottom: 16px; }
.admin-image { border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: #fbfcfc; }
.admin-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 6px; display: block; margin-bottom: 8px; }
.admin-image label { margin-bottom: 8px; }
@media (max-width: 900px) {
  .theme-detail { grid-template-columns: 1fr; }
  .theme-side { grid-column: 1; grid-row: auto; position: static; }
  .checks.two-col { columns: 1; }
}
