/* PixelPreset. Black and white, light mode only.
   Archivo for interface and headings, Literata for reading. */
:root {
  --bg: #ffffff; --bg2: #f5f5f4; --bg3: #ececea; --card: #ffffff;
  --ink: #0a0a0a; --ink2: #3d3d3d; --ink3: #6e6e6e; --ink4: #9a9a9a;
  --line: #e6e6e4; --line2: #d4d4d2;
  --accent: #0a0a0a; --accent-ink: #0a0a0a;
  --good: #1f7a4d; --bad: #c0262d;
  --r: 12px; --r-sm: 8px; --wrap: 1180px;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Literata", Georgia, "Times New Roman", serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden }
img, svg, canvas { max-width: 100%; display: block }
[hidden] { display: none !important }
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 3px }
a:hover { text-decoration-color: var(--ink) }
button, input, select, textarea { font: inherit; color: inherit }
h1, h2, h3 { font-family: var(--sans); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 800 }
.i { flex-shrink: 0 }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 300 }
.skip:focus { left: 8px }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px }

/* ── header ── */
.top { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.5) blur(10px); -webkit-backdrop-filter: saturate(1.5) blur(10px); border-bottom: 1px solid var(--line) }
.top-in { display: flex; align-items: center; gap: 28px; height: 68px }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--ink); letter-spacing: -.03em; text-decoration: none }
.nav { display: flex; align-items: center; gap: 2px; flex: 1 }
.nav-link { color: var(--ink2); padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: 15px; background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; text-decoration: none }
.nav-link:hover, .nav-link[aria-current], .nav-link[aria-expanded="true"] { color: var(--ink); background: var(--bg2) }
.nav-link .i { transition: transform .15s }
.nav-link[aria-expanded="true"] .i { transform: rotate(180deg) }
.nav-drop { position: relative }
.mega { position: absolute; top: calc(100% + 10px); left: -12px; width: min(780px, 92vw); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 50px rgba(0,0,0,.12); padding: 22px 22px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 24px }
.mega-h { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink3); margin: 0 0 8px }
.mega-col a { display: block; color: var(--ink); padding: 6px 0; font-size: 15px; text-decoration: none; font-weight: 500 }
.mega-col a:hover { text-decoration: underline }
.mega-foot { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 16px; padding: 14px 0 }
.mega-foot a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none }
.top-actions { display: flex; gap: 6px; margin-left: auto; align-items: center }
.icon-btn { width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: inline-grid; place-items: center; cursor: pointer; color: var(--ink) }
.icon-btn:hover { border-color: var(--ink) }
.burger { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; position: relative }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s, top .2s }
.burger span:nth-child(1) { top: 14px } .burger span:nth-child(2) { top: 20px } .burger span:nth-child(3) { top: 26px }
.burger[aria-expanded="true"] span:nth-child(1) { top: 20px; transform: rotate(45deg) }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0 }
.burger[aria-expanded="true"] span:nth-child(3) { top: 20px; transform: rotate(-45deg) }
@media (max-width: 900px) {
  .nav { display: none }
  .burger { display: inline-block }
  .top-in { height: 62px }
}
/* the mobile menu */
.drawer-back { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 190; animation: fade .2s }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(380px, 100vw); background: #fff; z-index: 200; display: flex; flex-direction: column; box-shadow: -20px 0 50px rgba(0,0,0,.12); animation: slide .22s ease-out }
@keyframes slide { from { transform: translateX(100%) } to { transform: none } }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
.dr-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 12px 20px; border-bottom: 1px solid var(--line); min-height: 62px }
.dr-search { margin: 16px 20px 6px; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 10px; background: var(--bg2); color: var(--ink3); font-size: 15px; cursor: text; text-align: left }
.dr-nav { overflow-y: auto; padding: 8px 20px 40px; flex: 1 }
.dr-main { display: flex; justify-content: space-between; align-items: center; font-size: 19px; font-weight: 700; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink) }
.dr-group { padding: 18px 0 6px; border-bottom: 1px solid var(--line) }
.dr-h { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink3); margin-bottom: 6px }
.dr-group a { display: block; padding: 8px 0; font-size: 16px; color: var(--ink); text-decoration: none }
body.locked { overflow: hidden }

/* ── search ── */
.search-panel { position: fixed; inset: 0; z-index: 250; background: rgba(0,0,0,.4); display: flex; justify-content: center; align-items: flex-start; padding: 10vh 16px 16px; animation: fade .15s }
.sp-box { width: min(640px, 100%); background: #fff; border-radius: 16px; box-shadow: 0 24px 70px rgba(0,0,0,.25); overflow: hidden }
.sp-form { display: flex; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--line) }
.sp-form input { flex: 1; height: 62px; border: 0; outline: 0; font-size: 18px; background: none; min-width: 0 }
.sp-close { border: 1px solid var(--line2); background: var(--bg2); border-radius: 6px; font-size: 12px; font-weight: 700; padding: 4px 8px; cursor: pointer; color: var(--ink3) }
.sp-results { max-height: 56vh; overflow-y: auto; padding: 8px }
.sp-results a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 12px; border-radius: 8px; text-decoration: none; color: var(--ink) }
.sp-results a:hover, .sp-results a.on { background: var(--bg2) }
.sp-results small { color: var(--ink3); white-space: nowrap }
.sp-empty { padding: 14px 12px; color: var(--ink3); font-size: 15px }
.sp-all { font-weight: 700 }
.search-page-form { display: flex; align-items: center; gap: 10px; max-width: 640px; border: 1px solid var(--line2); border-radius: 12px; padding: 6px 6px 6px 14px; background: #fff; margin-top: 6px }
.search-page-form input { flex: 1; border: 0; outline: 0; font-size: 17px; height: 44px; min-width: 0; background: none }

/* ── hero + tool ── */
.hero { padding: 44px 0 20px }
.hero h1 { font-size: clamp(30px, 4.6vw, 52px); font-weight: 800; max-width: 880px; letter-spacing: -.035em; margin-bottom: 12px }
.hero-tool h1 { font-size: clamp(28px, 3.8vw, 42px) }
.hero-small { padding-bottom: 6px }
.lead { font-size: clamp(16.5px, 1.6vw, 18.5px); color: var(--ink2); max-width: 760px; margin: 0 0 24px; line-height: 1.55 }
.tool { background: #fff; border: 1px solid var(--line2); border-radius: 18px; padding: 16px; min-height: 270px; position: relative; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 32px rgba(0,0,0,.05) }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 14px; scrollbar-width: none }
.chips::-webkit-scrollbar { display: none }
.chip { white-space: nowrap; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line2); background: #fff; color: var(--ink2); font-weight: 600; font-size: 14px; text-decoration: none }
.chip:hover { border-color: var(--ink); color: var(--ink) }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff }
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; min-height: 230px; border: 1.5px dashed var(--line2); border-radius: 14px; background: var(--bg2); cursor: pointer; padding: 24px 16px; transition: border-color .15s, background .15s }
.drop:hover, .tool.dragging .drop { border-color: var(--ink); background: #fafaf9 }
.drop-icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--ink); color: #fff }
.drop-title { font-size: 19px; font-weight: 700 }
.drop-title u { text-underline-offset: 3px }
.drop-sub { color: var(--ink3); font-size: 14.5px }
.drop-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-top: 4px; color: var(--ink2); font-size: 13.5px; font-weight: 600 }
.drop-badges span { display: inline-flex; align-items: center; gap: 6px }
.drop.compact { min-height: 0; flex-direction: row; padding: 10px 14px; gap: 12px; justify-content: flex-start; text-align: left }
.drop.compact .drop-icon { width: 34px; height: 34px; border-radius: 9px }
.drop.compact .drop-icon svg { width: 17px; height: 17px }
.drop.compact .drop-title { font-size: 15px }
.drop.compact .drop-badges, .drop.compact .drop-sub { display: none }
.tool.dragging::after { content: "Drop to add"; position: absolute; inset: 0; border-radius: 18px; background: rgba(255,255,255,.85); border: 2px solid var(--ink); display: grid; place-items: center; font-weight: 800; font-size: 20px; pointer-events: none }
.answer { border-left: 3px solid var(--ink); background: var(--bg2); border-radius: 0 10px 10px 0; padding: 14px 18px; margin: 20px 0 0 }
.answer p { margin: 0; font-size: 16.5px }
.answer-post { margin: 0 0 22px; font-family: var(--serif) }
.answer-post p { font-size: 18px; line-height: 1.6 }
.answer-label { display: block; font-family: var(--sans); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink3); margin-bottom: 4px }

/* ── workspace ── */
.workspace { margin-top: 14px }
.ws-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 2px 12px }
.ws-stats { color: var(--ink2); font-size: 15px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap }
.ws-actions { display: flex; gap: 8px; flex-wrap: wrap }
.save { color: var(--good); font-weight: 700 }
.grow, .warn { color: var(--ink2); font-weight: 700 }
.warn { font-size: 12px; border: 1px solid var(--line2); padding: 0 6px; border-radius: 5px }
.err { color: var(--bad) }
.ws-grid { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 16px; align-items: start }
@media (max-width: 820px) { .ws-grid { grid-template-columns: 1fr } }
.ws-opts { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: grid; gap: 14px }
.opt > label:first-child { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--ink2); margin-bottom: 6px }
.opt output { color: var(--ink) }
.opt select, .opt input[type=number], .opt input[type=text] { width: 100%; height: 40px; border: 1px solid var(--line2); border-radius: 8px; background: #fff; padding: 0 10px }
.wh { display: flex; align-items: center; gap: 6px; margin-top: 8px }
.wh input { min-width: 0 }
.wh span { color: var(--ink3) }
.hint { margin: 6px 0 0; font-size: 12.5px; color: var(--ink3) }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--bg3); border-radius: 9px; padding: 3px; gap: 3px }
.seg button { border: 0; background: none; padding: 7px 4px; border-radius: 7px; font-weight: 600; font-size: 13.5px; color: var(--ink2); cursor: pointer }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.12) }
input[type=range] { width: 100%; accent-color: var(--ink) }
.check { display: flex !important; align-items: center; gap: 8px; justify-content: flex-start !important; cursor: pointer; font-size: 14px !important; color: var(--ink) !important }
.check input { width: 18px; height: 18px; accent-color: var(--ink) }
.kb { display: flex; align-items: center; gap: 8px; margin-top: 8px }
.kb input { max-width: 120px }
.kb span { color: var(--ink3); font-size: 14px }
.opt input#o-base { margin-top: 8px }
.swatches { display: flex; flex-wrap: wrap; gap: 6px }
.sw { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line2); background: #fff; border-radius: 7px; padding: 5px 8px; font-size: 12.5px; font-weight: 600; cursor: pointer }
.sw span { width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--line2) }
.sw-ffffff span { background: #fff } .sw-000000 span { background: #000 }
.sw-transparent span { background: conic-gradient(#ccc 25%, #fff 0 50%, #ccc 0 75%, #fff 0) 0 0/8px 8px }
.sw-blur span { background: #9a9a9a; filter: blur(1.5px) }
.sw.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink) }
.sw:disabled { opacity: .4; cursor: not-allowed }
.sw-custom input { width: 18px; height: 18px; padding: 0; border: 0; background: none }
.stage { position: relative; background-color: var(--bg2); background-image: conic-gradient(var(--line) 25%, transparent 0 50%, var(--line) 0 75%, transparent 0); background-size: 18px 18px; border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 46px 12px 12px; min-height: 300px; overflow: hidden }
.stage canvas { touch-action: none; border-radius: 3px; box-shadow: 0 4px 18px rgba(0,0,0,.16) }
.stage img { max-width: 100%; max-height: 520px; border-radius: 3px; box-shadow: 0 4px 18px rgba(0,0,0,.16) }
.stage-tabs { position: absolute; top: 8px; left: 8px; display: flex; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 3px }
.stage-tabs button { border: 0; background: none; padding: 4px 12px; border-radius: 6px; font-weight: 600; font-size: 13px; color: var(--ink2); cursor: pointer }
.stage-tabs button.on { background: var(--ink); color: #fff }
.stage-info { margin-top: 10px; font-size: 13.5px; color: var(--ink2); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; text-align: center }
.stage-info .tip { color: var(--ink); font-weight: 600 }
.files { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px }
.file { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px }
.file.sel { border-color: var(--ink) }
.f-pick { border: 0; padding: 0; background: var(--bg2); width: 54px; height: 54px; border-radius: 7px; overflow: hidden; flex-shrink: 0; cursor: pointer }
.f-pick img { width: 100%; height: 100%; object-fit: cover }
.f-ph { display: grid; place-items: center; height: 100%; font-size: 11px; font-weight: 700; color: var(--ink3) }
.f-info { min-width: 0; flex: 1 }
.f-name { font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.f-meta { font-size: 13px; color: var(--ink3); display: flex; align-items: center; gap: 5px; flex-wrap: wrap }
.f-meta strong { color: var(--ink) }
.spin { width: 14px; height: 14px; border: 2px solid var(--line2); border-top-color: var(--ink); border-radius: 50%; display: inline-block; animation: spin .7s linear infinite; vertical-align: -2px }
@keyframes spin { to { transform: rotate(360deg) } }

/* ── buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 42px; padding: 0 18px; border-radius: 9px; border: 1px solid var(--line2); background: #fff; color: var(--ink); font-weight: 700; font-size: 14.5px; cursor: pointer; white-space: nowrap; text-decoration: none }
.btn:hover { border-color: var(--ink) }
.btn-primary { background: var(--ink); border-color: var(--ink); color: #fff }
.btn-primary:hover { background: #262626 }
.btn-ghost { background: transparent }
.btn-icon { width: 38px; height: 38px; padding: 0; flex-shrink: 0 }
.btn:disabled { opacity: .6; cursor: wait }

/* ── sections & cards ── */
.section { padding: 38px 24px }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px }
.sec-head h2 { font-size: clamp(22px, 2.4vw, 28px); margin: 0 }
.sec-head p { margin: 0; color: var(--ink3); flex-basis: 100% }
.more { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; text-decoration: none }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line) }
@media (max-width: 860px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
@media (max-width: 520px) { .features { grid-template-columns: 1fr } }
.feature { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 22px 20px }
.feature h3 { font-size: 17px; margin-bottom: 6px; font-weight: 700 }
.feature p { margin: 0; color: var(--ink2); font-size: 15px }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r) }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px }
.tool-card { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 13px 14px; color: var(--ink); text-decoration: none; transition: border-color .15s }
.tool-card:hover { border-color: var(--ink) }
.tc-icon { grid-row: span 2; width: 40px; height: 40px; border-radius: 9px; display: grid; place-items: center; background: var(--bg2); color: var(--ink) }
.tc-name { font-weight: 700; font-size: 15px; line-height: 1.3 }
.tc-meta { font-size: 13px; color: var(--ink3) }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 28px 22px }
.post-card .pc-link { color: var(--ink); display: flex; flex-direction: column; height: 100%; text-decoration: none }
.pc-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg2); border-radius: 10px }
.pc-ph { display: grid; place-items: center; color: var(--ink4); border: 1px solid var(--line) }
.pc-body { padding: 12px 0 0; display: flex; flex-direction: column; gap: 6px; flex: 1 }
.pc-cat { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink3); text-decoration: none }
.pc-title { font-weight: 700; font-size: 19px; line-height: 1.3; letter-spacing: -.015em }
.post-card:hover .pc-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px }
.pc-desc { color: var(--ink2); font-size: 15.5px; font-family: var(--serif) }
.pc-meta { color: var(--ink3); font-size: 13px; margin-top: auto }
.post-card.big { grid-column: 1 / -1 }
@media (min-width: 760px) {
  .post-card.big .pc-link { flex-direction: row; gap: 28px; align-items: center }
  .post-card.big .pc-img { width: 56%; flex-shrink: 0 }
  .post-card.big .pc-title { font-size: 30px; letter-spacing: -.025em }
}
.empty { padding: 48px 20px; color: var(--ink3); text-align: center; border: 1px dashed var(--line2); border-radius: 12px }
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-top: 6px }
.tabs a { white-space: nowrap; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line2); color: var(--ink2); font-weight: 600; font-size: 14px; background: #fff; text-decoration: none }
.tabs a.on { background: var(--ink); color: #fff; border-color: var(--ink) }
.pager { display: flex; justify-content: space-between; margin-top: 30px; font-weight: 700 }
.crumbs { font-size: 13.5px; color: var(--ink3); margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 6px }
.crumbs a { color: var(--ink3); text-decoration: none }
.crumbs a:hover { color: var(--ink); text-decoration: underline }
.crumbs .sep { opacity: .5 }
.center { text-align: center }
.narrow { max-width: 780px }

/* ── prose: articles and guides read in Literata ── */
.prose-wrap .prose, .prose-wrap > .sec-head, .prose-wrap > .post-grid { max-width: 780px }
.prose { font-family: var(--serif); font-size: 19px; line-height: 1.75; color: #1a1a1a }
.prose h2 { font-family: var(--sans); font-size: clamp(24px, 2.8vw, 30px); font-weight: 800; letter-spacing: -.025em; margin: 1.7em 0 .5em; line-height: 1.2 }
.prose h3 { font-family: var(--sans); font-size: 21px; font-weight: 700; margin: 1.5em 0 .4em }
.prose h4 { font-family: var(--sans); font-size: 18px; font-weight: 700; margin: 1.3em 0 .3em }
.prose > :first-child { margin-top: 0 }
.prose p, .prose ul, .prose ol { margin: 0 0 1.15em }
.prose li { margin: .3em 0 }
.prose strong { font-weight: 600; color: var(--ink) }
.prose a { text-decoration-color: var(--ink4) }
.prose code { font: 500 .82em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--bg2); border: 1px solid var(--line); border-radius: 5px; padding: .1em .35em }
.prose pre { background: #0f0f0f; color: #efefef; border-radius: 10px; padding: 16px; overflow-x: auto; font-size: 14px; line-height: 1.6 }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; font-size: 14px }
.prose blockquote { margin: 1.4em 0; padding: 2px 0 2px 20px; border-left: 3px solid var(--ink); color: var(--ink2); font-style: italic }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0 }
.prose figure { margin: 1.6em 0 }
.prose figure img, .prose p img { border-radius: 8px; height: auto }
.prose figcaption { font-family: var(--sans); font-size: 14px; color: var(--ink3); margin-top: 8px }
.prose mark { background: #fff3a3; padding: 0 .15em }
.prose kbd { font: 600 .8em var(--sans); border: 1px solid var(--line2); border-bottom-width: 2px; border-radius: 4px; padding: .05em .4em; background: #fff }
.table-wrap { overflow-x: auto; margin: 1.4em 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-family: var(--sans) }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5 }
.table-wrap th, .table-wrap td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap }
.table-wrap th { background: var(--bg2); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink2) }
.table-wrap tr:last-child td { border-bottom: 0 }
.callout { font-family: var(--sans); display: flex; flex-direction: column; gap: 2px; border-radius: 10px; padding: 14px 18px; margin: 1.4em 0; background: var(--bg2); border: 1px solid var(--line); font-size: 16px; line-height: 1.6 }
.callout strong { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink) }
.callout-warning { border-left: 3px solid var(--ink) }
.embed { position: relative; aspect-ratio: 16 / 9; margin: 1.6em 0; border-radius: 10px; overflow: hidden; background: #000 }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0 }
.faq { display: grid; margin-top: .6em; border-top: 1px solid var(--line); font-family: var(--sans) }
.faq details { border-bottom: 1px solid var(--line) }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 12px }
.faq summary::-webkit-details-marker { display: none }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; font-weight: 400 }
.faq details[open] summary::after { content: "\2212" }
.faq details p { margin: 0 0 16px; color: var(--ink2); font-size: 16px; line-height: 1.6 }

/* ── article ── */
.article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 56px; padding-top: 32px; padding-bottom: 20px; align-items: start }
@media (max-width: 1000px) { .article-wrap { grid-template-columns: minmax(0, 1fr) } .article-side { display: none } }
.article { max-width: 740px; min-width: 0 }
.article img, .article figure, .article .cover { max-width: 100% }
.article h1 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; margin: 10px 0 18px; letter-spacing: -.035em; line-height: 1.1 }
.byline { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line) }
.byline > span { display: flex; flex-direction: column; line-height: 1.35; font-size: 14px; color: var(--ink3) }
.by-name { font-weight: 700; color: var(--ink); font-size: 15px; text-decoration: none }
.by-name:hover { text-decoration: underline }
.avatar { border-radius: 50%; object-fit: cover; flex-shrink: 0 }
.avatar-ph { display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 700; border-radius: 50% }
.cover { margin: 0 0 24px }
.cover img { width: 100%; height: auto; border-radius: 10px; aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg2) }
.tool-cta { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line2); border-radius: 12px; padding: 14px 16px; margin: 0 0 24px; color: var(--ink); text-decoration: none; font-family: var(--sans) }
.tool-cta:hover { border-color: var(--ink) }
.tool-cta-text { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.35 }
.tool-cta-text strong { font-size: 16px }
.tool-cta-text span { color: var(--ink3); font-size: 14px }
.tool-cta-go { display: inline-flex; align-items: center; gap: 6px; background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; padding: 9px 14px; border-radius: 8px; white-space: nowrap }
@media (max-width: 540px) { .tool-cta { flex-wrap: wrap } .tool-cta-go { width: 100%; justify-content: center } }
.prose .tool-cta { margin: 1.6em 0 }
.end-cta { margin-top: 30px }
.toc { border: 1px solid var(--line); border-radius: 10px; padding: 14px 20px; margin: 0 0 28px; font-family: var(--sans) }
.toc summary { font-weight: 700; cursor: pointer }
.toc ol { margin: 10px 0 4px; padding-left: 20px; display: grid; gap: 5px; font-size: 15.5px }
.toc a { color: var(--ink2); text-decoration: none }
.toc a:hover { text-decoration: underline }
.toc a.on { color: var(--ink); font-weight: 700 }
.author-box { display: flex; gap: 16px; align-items: flex-start; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 24px 0; margin-top: 36px }
.ab-k { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink3) }
.ab-name { font-weight: 800; font-size: 19px; text-decoration: none; color: var(--ink) }
.ab-role { color: var(--ink3); font-size: 14.5px; font-weight: 500 }
.author-box p { margin: 6px 0 0; color: var(--ink2); font-family: var(--serif); font-size: 16px; line-height: 1.6 }
.author-head { display: flex; gap: 22px; align-items: flex-start }
.author-head h1 { margin-bottom: 4px }
.author-head .lead { margin: 10px 0 12px; font-family: var(--serif) }
.author-links { display: flex; gap: 16px; font-weight: 600 }
@media (max-width: 560px) { .author-head { flex-direction: column } }
.author-head .avatar { flex-shrink: 0; object-fit: cover }
.author-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px }
.author-card { display: flex; gap: 18px; align-items: flex-start; padding: 22px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; background: #fff }
.author-card:hover { border-color: var(--ink) }
.author-card .avatar { flex-shrink: 0; border-radius: 50%; object-fit: cover }
.ac-body { display: flex; flex-direction: column; gap: 4px; min-width: 0 }
.ac-name { font-weight: 700; font-size: 19px; letter-spacing: -.015em }
.ac-role { color: var(--ink3); font-size: 14px }
.ac-bio { color: var(--ink2); font-family: var(--serif); font-size: 15.5px; margin-top: 4px }
.ac-meta { color: var(--ink3); font-size: 13px; margin-top: 6px }
.article-side { position: sticky; top: 92px; display: grid; gap: 22px }
.side-h { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink3); margin-bottom: 8px }
.side-tools { display: grid; gap: 8px }
.side-tools .side-h { margin-bottom: 0 }

/* ── ads ── */
.ad { margin: 24px auto; text-align: center; min-height: 120px }
.ad-label { display: block; font-size: 11px; color: var(--ink4); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px }
.ad-side { min-height: 250px }

/* ── footer ── */
.foot { border-top: 1px solid var(--line); margin-top: 48px; padding: 48px 0 26px; background: var(--bg2) }
.f-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 28px }
@media (max-width: 900px) { .f-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) } .f-brand { grid-column: 1 / -1 } }
.f-brand p { color: var(--ink2); font-size: 14.5px; margin: 12px 0 }
.f-note { color: var(--ink3) !important; font-size: 13.5px !important }
.f-h { font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink3); margin-bottom: 10px }
.f-grid a { display: block; color: var(--ink2); font-size: 14.5px; padding: 3px 0; text-decoration: none }
.f-grid a:hover { color: var(--ink); text-decoration: underline }
.f-grid .logo { display: inline-flex }
.f-social { display: flex; gap: 14px }
.f-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--line2); margin-top: 32px; padding-top: 20px; color: var(--ink3); font-size: 14px }
.f-bottom nav { display: flex; gap: 16px; flex-wrap: wrap }
.f-bottom a { color: var(--ink3); text-decoration: none }
.contact-mail { margin-top: 18px }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 10px; font-weight: 600; z-index: 300; transition: opacity .4s; max-width: calc(100vw - 32px) }
.toast.out { opacity: 0 }

@media (max-width: 600px) {
  .wrap { padding: 0 18px }
  .section { padding: 30px 18px }
  .hero { padding-top: 28px }
  .tool { padding: 12px; border-radius: 14px }
  .drop { min-height: 210px }
  .ws-actions { width: 100% }
  .ws-actions .btn-primary { flex: 1 }
  .stage { min-height: 220px }
  .prose { font-size: 18px }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important } }
.legal-date { color: var(--ink3); font-size: 14px; font-family: var(--sans) }
.legal-toc { border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; margin: 26px 0 8px; font-family: var(--sans) }
.legal-toc-h { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink3); margin-bottom: 8px }
.legal-toc ol { columns: 2; column-gap: 28px; margin: 0; padding-left: 20px; font-size: 15px }
.legal-toc li { margin: 0 0 6px; break-inside: avoid }
@media (max-width: 560px) { .legal-toc ol { columns: 1 } }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 24px 0 10px }
.contact-box { border: 1px solid var(--line); border-radius: 12px; padding: 22px }
.contact-box h2 { margin: 0 0 6px !important; font-size: 20px !important }
.contact-box p { font-size: 15.5px; margin: 0 0 16px }
.contact-box .btn { word-break: break-all; text-decoration: none; font-family: var(--sans) }
.prose table.facts th { text-align: left; font-weight: 600; width: 38%; background: var(--bg2); text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--ink) }
.prose ol.steps li { margin: 8px 0 }
