/* neiromant.com platform — reading-first layout: sans UI, serif story body, black/white with a green accent */
:root {
  --ink: #242424; --ink2: #6b6b6b; --ink3: #8f8f8f; --line: #f2f2f2; --line2: #e6e6e6; --bg: #fff; --soft: #f9f9f9;
  --green: #1a8917; --green-d: #156d12; --red: #c94a4a;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --serif: "Source Serif 4", Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.5 var(--sans); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.muted { color: var(--ink2); } .small { font-size: 13px; }
hr { border: 0; border-top: 1px solid var(--line2); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 99px; padding: 9px 18px; font-size: 14px; line-height: 20px;
  border: 1px solid transparent; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn-sm { padding: 7px 16px; } .btn-xs { padding: 4px 12px; font-size: 13px; } .btn-lg { padding: 10px 24px; font-size: 20px; line-height: 26px; }
.btn-wide { width: 100%; padding: 10px 18px; }
.btn-dark { background: var(--ink); color: #fff; } .btn-dark:hover { background: #000; }
.btn-green { background: var(--green); color: #fff; } .btn-green:hover { background: var(--green-d); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: #fff; } .btn-outline:hover { background: var(--soft); }
.btn-text { padding: 0; border: 0; background: none; color: var(--ink); font-size: 15px; }
.btn-text[aria-pressed="false"] { color: var(--green); } .btn-text:hover { text-decoration: underline; background: none; }
.btn[disabled] { opacity: .45; cursor: default; }
.ic-btn { display: inline-flex; align-items: center; justify-content: center; color: var(--ink2); padding: 2px; }
.ic-btn:hover { color: var(--ink); }
.ic-btn[aria-pressed="true"] { color: var(--ink); }
.link-green { color: var(--green); font-size: 14px; cursor: pointer; } .link-green:hover { color: var(--green-d); }
.link-muted { color: var(--ink2); font-size: 14px; } .link-muted:hover { color: var(--ink); }

/* header */
.hd { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; height: 57px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; background: #fff; border-bottom: 1px solid var(--line); }
.hd-l, .hd-r { display: flex; align-items: center; gap: 16px; }
.hd-r { gap: 28px; }
.logo { font: 700 27px/1 var(--serif); letter-spacing: -0.04em; color: #000; }
.hd-search { display: flex; align-items: center; gap: 10px; background: var(--soft); border-radius: 99px; padding: 0 16px 0 12px; height: 40px; color: var(--ink2); }
.hd-search input { border: 0; outline: 0; background: none; width: 200px; font-size: 14px; color: var(--ink); }
.hd-write { display: flex; align-items: center; gap: 8px; color: var(--ink2); font-size: 14px; } .hd-write:hover { color: var(--ink); }
.hd-ic { color: var(--ink2); display: flex; position: relative; } .hd-ic:hover { color: var(--ink); }
.hd-ic.dot::after { content: ""; position: absolute; top: 1px; right: 2px; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.hd-link { font-size: 14px; color: var(--ink2); } .hd-link:hover { color: var(--ink); }
.av { border-radius: 50%; object-fit: cover; display: inline-block; flex: none; vertical-align: middle; background: var(--line); }
.av-txt { display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 600; }

/* dropdown menu */
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; display: flex; } .menu > summary::-webkit-details-marker { display: none; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 10px); background: #fff; min-width: 220px; padding: 12px 0; border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,.15); z-index: 40; }
.menu.up .menu-pop { right: -8px; }
.menu-pop a, .menu-pop button { display: block; width: 100%; text-align: left; padding: 8px 24px; font-size: 14px; color: var(--ink2); }
.menu-pop a:hover, .menu-pop button:hover { color: var(--ink); }
.menu-pop hr { margin: 10px 0; border-color: var(--line); }
.menu-pop form { margin: 0; }
.menu-mail { margin: 0; padding: 0 24px; font-size: 13px; color: var(--ink3); overflow: hidden; text-overflow: ellipsis; }

/* home */
.hero { border-bottom: 1px solid var(--ink); background: #fff; }
.hero > div { max-width: 1192px; margin: 0 auto; padding: 64px 24px 72px; }
.hero h1 { font: 400 clamp(48px, 9vw, 96px)/.95 var(--serif); letter-spacing: -0.05em; margin: 0 0 28px; max-width: 960px; }
.hero p { font-size: 22px; line-height: 1.3; margin: 0 0 40px; max-width: 520px; }
.layout { max-width: 1336px; margin: 0 auto; display: flex; justify-content: space-evenly; gap: 40px; padding: 0 24px; }
.feed { flex: 1 1 728px; max-width: 728px; min-width: 0; padding-top: 24px; }
.side { flex: 0 0 368px; border-left: 1px solid var(--line); padding: 40px 0 40px 40px; min-height: calc(100vh - 57px); }
.side h4 { font-size: 16px; font-weight: 600; margin: 0 0 16px; }
.side h4 + * { margin-top: 0; }
.side > h4:not(:first-child) { margin-top: 36px; }
.pick { display: block; margin-bottom: 20px; }
.pick b { display: block; font-size: 16px; line-height: 20px; font-weight: 700; margin: 6px 0; letter-spacing: -0.01em; }
.pick-m { color: var(--ink2); font-size: 13px; display: flex; align-items: center; gap: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--line); border-radius: 99px; padding: 8px 16px; font-size: 14px; line-height: 20px; }
.chip:hover { background: var(--line2); }
.chip small { color: var(--ink2); }
.chips.big .chip { font-size: 16px; padding: 10px 20px; }
.wtf { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.wtf > a { flex: 1; min-width: 0; }
.wtf b { display: block; font-size: 16px; line-height: 20px; }
.wtf span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; line-height: 20px; color: var(--ink2); margin-top: 2px; }
.wtf.big { padding: 12px 0; border-bottom: 1px solid var(--line); }
.side-foot { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 36px; font-size: 13px; color: var(--ink2); }
.side-foot a:hover { color: var(--ink); }

.tabs { display: flex; gap: 32px; border-bottom: 1px solid var(--line2); overflow-x: auto; scrollbar-width: none; margin-bottom: 8px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; font-size: 14px; color: var(--ink2); padding: 0 0 16px; border-bottom: 1px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.tab-plus { font-size: 20px !important; line-height: 20px; padding-top: 0 !important; }

/* story cards */
.card { padding: 24px 0 18px; border-bottom: 1px solid var(--line); }
.card-by { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; line-height: 20px; margin-bottom: 10px; }
.card-by:hover span { text-decoration: underline; }
.card-row { display: flex; gap: 56px; align-items: flex-start; justify-content: space-between; }
.card-text { flex: 1; min-width: 0; }
.card h2 { font-size: 22px; line-height: 28px; font-weight: 700; letter-spacing: -0.016em; margin: 0 0 6px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card h3 { font-size: 16px; line-height: 22px; font-weight: 400; color: var(--ink2); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; align-items: center; gap: 16px; margin-top: 18px; font-size: 13px; color: var(--ink2); }
.card-meta .m-ic { display: inline-flex; align-items: center; gap: 4px; }
.card-meta .grow { flex: 1; }
.card-thumb { flex: none; }
.card-thumb img { width: 160px; height: 107px; object-fit: cover; display: block; }
.pager { display: flex; justify-content: space-between; padding: 32px 0 64px; }
.empty { padding: 48px 0; color: var(--ink2); text-align: center; }
.empty a { color: var(--green); }

/* topic & page headers */
.tag-head { text-align: center; padding: 56px 24px 40px; border-bottom: 1px solid var(--line); }
.tag-head h1 { font-size: 42px; line-height: 52px; letter-spacing: -0.02em; margin: 0 0 12px; }
.tag-head p { color: var(--ink2); margin: 0; }
.narrow { max-width: 728px; margin: 0 auto; padding: 40px 24px 80px; }
.narrow.wide { max-width: 1000px; }
.pg-title { font-size: 42px; line-height: 52px; letter-spacing: -0.02em; margin: 0 0 32px; }
.pg-title.light { font-size: 32px; font-weight: 400; color: var(--ink2); margin: 32px 0 24px; } .pg-title.light b { color: var(--ink); }
.pg-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; } .pg-head .pg-title { margin-bottom: 32px; }
.sec-h { font-size: 20px; margin: 40px 0 12px; }
.big-search { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line2); padding: 8px 0; color: var(--ink2); }
.big-search input { flex: 1; border: 0; outline: 0; font-size: 22px; padding: 8px 0; background: none; }

/* profile */
.pf-name { font-size: 42px; line-height: 52px; letter-spacing: -0.02em; margin: 28px 0 40px; }
.pf-side h2 { font-size: 16px; margin: 16px 0 4px; }
.pf-side .muted { margin: 0 0 12px; font-size: 15px; }
.pf-bio { font-size: 14px; color: var(--ink2); margin: 0 0 24px; }
.about-tab { padding: 24px 0; font-size: 16px; } .about-tab p { margin: 0 0 18px; }
.follow-stats { color: var(--green); }

/* story */
.story { padding: 0 24px; }
.st-in { max-width: 680px; margin: 0 auto; }
.story article { padding: 52px 0 32px; }
.banner { max-width: 680px; margin: 24px auto 0; background: #fff4e5; padding: 12px 16px; border-radius: 4px; font-size: 14px; }
.st-title { font-size: 42px; line-height: 52px; font-weight: 700; letter-spacing: -0.016em; margin: 0 0 12px; word-wrap: break-word; }
.st-sub { font-size: 22px; line-height: 30px; color: var(--ink2); margin: 0 0 32px; }
.st-title + .st-author { margin-top: 32px; }
.st-author { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; }
.st-au-l1 { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.st-au-l1 b { font-weight: 500; } .st-au-l1 a:hover { text-decoration: underline; }
.st-au-l2 { font-size: 14px; color: var(--ink2); display: flex; gap: 8px; margin-top: 2px; }
.st-actions { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 10px 8px; margin-bottom: 40px; color: var(--ink2); }
.st-actions.bottom { border: 0; padding: 32px 0 0; margin: 0; }
.st-act-l, .st-act-r { display: flex; align-items: center; gap: 24px; }
.st-resp { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: var(--ink2); } .st-resp:hover { color: var(--ink); }
.clap { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: var(--ink2); position: relative; }
.clap:hover, .clap.on { color: var(--ink); }
.clap.on svg path { fill: rgba(0,0,0,.06); }
.clap.pop svg { animation: clap .3s ease-out; }
@keyframes clap { 50% { transform: scale(1.22) rotate(-8deg); } }
.clap-bubble { position: absolute; left: -6px; bottom: 32px; min-width: 38px; height: 38px; padding: 0 6px; border-radius: 99px; background: var(--ink); color: #fff;
  font-size: 14px; font-weight: 500; display: flex; align-items: center; justify-content: center; pointer-events: none; animation: bubble .7s ease-out forwards; }
@keyframes bubble { 0% { opacity: 0; transform: translateY(8px) scale(.7); } 25% { opacity: 1; transform: none; } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(-14px); } }
@media (prefers-reduced-motion: reduce) { .clap.pop svg, .clap-bubble { animation: none; } }
.st-tags { margin: 40px 0 0; }

.st-body { font-family: var(--serif); font-size: 20px; line-height: 32px; letter-spacing: -0.003em; word-wrap: break-word; }
.st-body > :first-child { margin-top: 0; }
.st-body p { margin: 0 0 30px; }
.st-body h2 { font: 700 24px/30px var(--sans); letter-spacing: -0.016em; margin: 56px 0 12px; }
.st-body h3 { font: 700 20px/24px var(--sans); letter-spacing: -0.012em; margin: 40px 0 10px; }
.st-body h4 { font: 700 17px/24px var(--sans); margin: 32px 0 8px; }
.st-body h2 + p, .st-body h3 + p { margin-top: 0; }
.st-body a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.st-body blockquote { margin: 0 0 30px -20px; padding-left: 23px; border-left: 3px solid var(--ink); font-style: italic; }
.st-body blockquote p { margin: 0 0 14px; } .st-body blockquote p:last-child { margin: 0; }
.st-body blockquote cite { display: block; font-style: normal; font-size: 16px; color: var(--ink2); margin-top: 8px; }
.st-body ul, .st-body ol { margin: 0 0 30px; padding-left: 30px; } .st-body li { margin-bottom: 14px; padding-left: 4px; }
.st-body figure { margin: 48px 0 52px; }
.st-body figure img, .st-body figure video { display: block; width: 100%; height: auto; margin: 0 auto; }
.st-body figcaption { font: 14px/20px var(--sans); color: var(--ink2); text-align: center; margin-top: 10px; }
.st-body img { height: auto; }
.st-body pre { font: 14px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--soft); padding: 20px; overflow-x: auto; margin: 0 0 30px; border-radius: 4px; }
.st-body code { font: 15px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--line); padding: 2px 4px; border-radius: 3px; }
.st-body pre code { background: none; padding: 0; font-size: inherit; }
.st-body hr { border: 0; text-align: center; margin: 44px 0; height: 30px; }
.st-body hr::before { content: "...";  letter-spacing: .6em; font-size: 30px; color: var(--ink); }
.st-body .card { display: block; border: 1px solid var(--line2); padding: 16px 20px; margin: 0 0 30px; font: 600 16px/1.4 var(--sans); text-decoration: none; }
.st-body .card small { display: block; color: var(--ink2); font-weight: 400; margin-top: 4px; }
.st-body .yt { position: relative; padding-top: 56.25%; margin: 40px 0; } .st-body .yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.st-body .listen { font: 14px var(--sans); color: var(--ink2); margin: 0 0 30px; } .st-body .listen p { margin: 0 0 6px; } .st-body .listen audio { width: 100%; }
.st-body .note { font: italic 16px/1.5 var(--serif); color: var(--ink2); }

.st-after { background: var(--soft); padding: 56px 24px 80px; margin-top: 48px; }
.written > .av { margin-bottom: 16px; }
.written-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding-bottom: 32px; border-bottom: 1px solid var(--line2); }
.written h2 { font-size: 24px; line-height: 30px; margin: 0 0 8px; letter-spacing: -0.016em; }
.written p { margin: 0 0 8px; font-size: 14px; }
.more-h { font-size: 20px; margin: 48px 0 24px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.gcard { display: flex; flex-direction: column; gap: 8px; }
.gcard img, .gcard-ph { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; margin-bottom: 8px; background: var(--line2); }
.gcard b { font-size: 20px; line-height: 24px; letter-spacing: -0.016em; }
.gcard-sub { color: var(--ink2); font-size: 16px; line-height: 20px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gcard .card-by { margin: 0; } .gcard .card-meta { margin-top: 4px; gap: 12px; }

/* responses drawer */
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 414px; max-width: 100%; background: #fff; z-index: 60; box-shadow: rgba(0,0,0,.15) 0 4px 12px;
  overflow-y: auto; transform: translateX(105%); transition: transform .25s ease; padding-bottom: env(safe-area-inset-bottom, 0px); }
.drawer:target, .drawer.open { transform: none; }
.drawer-bg { position: fixed; inset: 0; background: transparent; z-index: 59; display: none; }
.drawer:target ~ .drawer-bg, .drawer-bg.open { display: block; }
.drawer-hd { display: flex; justify-content: space-between; align-items: center; padding: 24px 24px 12px; position: sticky; top: 0; background: #fff; z-index: 1; }
.drawer-hd h2 { font-size: 20px; margin: 0; }
.resp-form { margin: 8px 24px 24px; padding: 14px; box-shadow: rgba(0,0,0,.12) 0 2px 8px; border-radius: 4px; }
.resp-form .resp-by { margin-bottom: 8px; }
.resp-form textarea { width: 100%; border: 0; outline: 0; resize: vertical; min-height: 90px; font-size: 14px; line-height: 20px; }
.resp-form-act { display: flex; justify-content: flex-end; }
.resp-form.reply { margin: 12px 0 0 0; box-shadow: none; border-left: 3px solid var(--line2); border-radius: 0; padding: 0 0 0 14px; }
.resp-login { margin: 8px 24px 24px; padding: 20px; background: var(--soft); text-align: center; } .resp-login p { margin: 0 0 12px; }
.resp-list { border-top: 1px solid var(--line); }
.resp { padding: 24px; border-bottom: 1px solid var(--line); }
.replies .resp { padding: 16px 0 0 18px; border: 0; border-left: 3px solid var(--line2); margin-top: 16px; }
.resp-by { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.resp-by > div { flex: 1; } .resp-by span { display: block; color: var(--ink2); font-size: 13px; }
.resp-del { margin: 0; }
.resp-body { font-size: 14px; line-height: 20px; margin: 12px 0; word-wrap: break-word; } .resp-body p { margin: 0 0 10px; } .resp-body a { text-decoration: underline; }
.resp-act { display: flex; align-items: center; gap: 20px; }
.clap.sm { font-size: 13px; }
.pad { padding: 24px; }

/* auth */
.auth { display: flex; justify-content: center; padding: 56px 16px 80px; background: #fff; }
.auth-box { width: 100%; max-width: 400px; text-align: center; }
.auth h1 { font: 400 32px/40px var(--serif); margin: 0 0 32px; }
.auth form { text-align: left; display: grid; gap: 16px; margin-top: 8px; }
.auth label, .settings label { display: grid; gap: 6px; font-size: 13px; color: var(--ink2); }
.auth input, .settings input, .settings textarea { border: 0; border-bottom: 1px solid var(--ink3); padding: 6px 0; font-size: 16px; outline: 0; color: var(--ink); background: none; border-radius: 0; }
.auth input:focus, .settings input:focus, .settings textarea:focus { border-bottom-color: var(--ink); }
.auth .btn { margin-top: 8px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--ink3); font-size: 13px; margin: 20px 0 8px; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line2); }
.auth-alt { margin: 28px 0 0; font-size: 15px; } .auth-alt a { color: var(--green); font-weight: 600; }
.auth-fine { font-size: 13px; color: var(--ink2); margin: 28px 0 0; }
.err { color: var(--red); font-size: 14px; } .ok { color: var(--green); font-size: 14px; }
.settings { display: grid; gap: 22px; max-width: 520px; }
.settings .btn { justify-self: start; }
.settings small { font-size: 13px; }
.set-av { display: flex; align-items: center; gap: 20px; }

/* member pages */
.mine { padding: 20px 0; border-bottom: 1px solid var(--line); }
.mine a b { display: block; font-size: 20px; line-height: 26px; margin-bottom: 4px; } .mine a span { color: var(--ink2); font-size: 15px; }
.mine p { margin: 10px 0 0; } .mine p a { color: var(--ink2); text-decoration: underline; }
.note { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.note p { margin: 4px 0 0; font-size: 15px; } .note p a:not(:first-child) { text-decoration: underline; }
.note.new { background: linear-gradient(90deg, #f1f8f1, transparent); }
.note .small { display: block; margin-top: 2px; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.stat-row div { border-bottom: 1px solid var(--line2); padding-bottom: 16px; } .stat-row b { display: block; font-size: 32px; line-height: 40px; } .stat-row span { color: var(--ink2); font-size: 14px; }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-weight: 500; color: var(--ink2); padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line2); }
.tbl td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl td .small { display: block; margin-top: 2px; } .tbl td a { font-weight: 500; }
.tbl .acts { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; } .tbl .acts form { margin: 0; }

/* editor */
.ed-hd { position: sticky; }
.ed-state { font-size: 14px; color: var(--ink); } .ed-saved { font-size: 14px; color: var(--ink3); }
.editor { max-width: 740px; margin: 0 auto; padding: 48px 24px 160px; position: relative; }
.ed-title { font: 400 42px/1.25 var(--serif); letter-spacing: -0.016em; margin: 0 0 14px; outline: 0; }
.ed-body { outline: 0; min-height: 50vh; }
[contenteditable][data-placeholder].is-empty::before { content: attr(data-placeholder); color: #b3b3b1; position: absolute; pointer-events: none; }
.ed-body.is-empty::before { font-style: normal; }
.ed-body figure img { outline-offset: 2px; } .ed-body figure.sel img { outline: 2px solid var(--green); }
.ed-body figcaption:empty::before { content: "Type caption for image (optional)"; color: #b3b3b1; }
.ed-plus { position: absolute; left: -32px; } .ed-plus-btn { color: var(--ink3); display: flex; } .ed-plus-btn:hover { color: var(--ink); }
.ed-plus-menu { position: absolute; left: 44px; top: 0; display: flex; gap: 6px; background: #fff; }
.ed-plus-menu button { border: 1px solid var(--green); color: var(--green); border-radius: 99px; padding: 4px 12px; font-size: 13px; white-space: nowrap; }
.ed-tools { position: absolute; z-index: 30; display: flex; align-items: center; background: #262626; border-radius: 5px; padding: 0 6px; height: 44px;
  box-shadow: 0 2px 8px rgba(0,0,0,.2); transform: translateX(-50%); }
.ed-tools button { color: #fff; width: 36px; height: 44px; font: 18px var(--serif); display: flex; align-items: center; justify-content: center; }
.ed-tools button.on, .ed-tools button:hover { color: #6fcf6b; }
.ed-tools .sep { width: 1px; height: 22px; background: rgba(255,255,255,.25); margin: 0 4px; }
.ed-tools::after { content: ""; position: absolute; bottom: -6px; left: 50%; margin-left: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: #262626; }
.modal { position: fixed; inset: 0; z-index: 70; background: #fff; overflow-y: auto; }
.modal-in { max-width: 1040px; margin: 0 auto; padding: 96px 24px 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; position: relative; }
.modal-x { position: absolute; right: 24px; top: 40px; font-size: 22px; color: var(--ink2); }
.pub-l h3 { font-size: 19px; margin: 0 0 16px; }
.pub-cover { background: var(--soft); aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; color: var(--ink2); font-size: 14px; margin-bottom: 16px; overflow: hidden; }
.pub-cover img { width: 100%; height: 100%; object-fit: cover; margin: -24px; max-width: none; width: calc(100% + 48px); height: calc(100% + 48px); }
.pub-title, .pub-sub { width: 100%; border: 0; border-bottom: 1px solid var(--line2); padding: 10px 0; outline: 0; }
.pub-title { font-size: 20px; font-weight: 700; } .pub-sub { font-size: 15px; margin-bottom: 14px; }
.pub-r p { margin: 0 0 16px; font-size: 16px; } .pub-r .small { color: var(--ink2); }
.tag-input { display: flex; flex-wrap: wrap; gap: 6px; background: var(--soft); padding: 8px; min-height: 52px; border: 1px solid var(--line2); border-radius: 4px; margin-bottom: 24px; }
.tag-input input { flex: 1; min-width: 120px; border: 0; outline: 0; background: none; font-size: 14px; padding: 6px; }
.tag-pill { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line2); border-radius: 3px; padding: 4px 8px; font-size: 14px; }
.tag-pill button { color: var(--ink2); font-size: 15px; line-height: 1; }
.pub-act { display: flex; align-items: center; gap: 24px; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 4px; font-size: 14px; z-index: 90; }

/* responsive */
@media (max-width: 1080px) { .side { display: none; } .layout { justify-content: center; } }
@media (max-width: 728px) {
  .hd { padding: 0 16px; } .hd-r { gap: 18px; } .hd-search { display: none; } .hd-write span { display: none; } .hd-join { display: none; }
  .layout { padding: 0 16px; } .story { padding: 0 16px; }
  .hero > div { padding: 48px 16px 56px; } .hero p { font-size: 18px; }
  .card-row { gap: 20px; } .card h2 { font-size: 16px; line-height: 20px; } .card h3 { font-size: 14px; line-height: 20px; }
  .card-thumb img { width: 80px; height: 53px; }
  .st-title { font-size: 32px; line-height: 40px; } .st-sub { font-size: 20px; line-height: 28px; }
  .st-body { font-size: 18px; line-height: 28px; } .st-body p { margin-bottom: 24px; } .st-body figure { margin: 32px 0; }
  .st-body blockquote { margin-left: 0; padding-left: 18px; }
  .grid { grid-template-columns: 1fr; } .written-row { flex-direction: column; }
  .pg-title, .pf-name, .tag-head h1 { font-size: 32px; line-height: 40px; }
  .narrow { padding: 28px 16px 64px; } .st-after { padding: 40px 16px 64px; }
  .modal-in { grid-template-columns: 1fr; gap: 32px; padding: 72px 16px 32px; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .ed-plus { left: -8px; } .editor { padding: 32px 24px 120px; } .ed-title { font-size: 32px; }
  .ed-state { display: none; }
}
[data-bookmark][aria-pressed="true"] svg path:first-child { fill: currentColor; }
[data-bookmark][aria-pressed="true"] svg path + path { display: none; }
[data-bookmark][aria-pressed="false"] svg path:only-child { fill: none; }
.pub-lang { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink2); margin: 0 0 16px; }
.pub-lang select { font: inherit; color: var(--ink); border: 1px solid var(--line2); border-radius: 4px; padding: 4px 8px; background: #fff; }
.hd-lang { font-size: 14px; }
