:root {
  --paper: #f4ead8;
  --paper-2: #fffaf0;
  --ink: #241f19;
  --ink-2: #4c4238;
  --muted: #8b7b69;
  --line: rgba(71, 52, 33, .14);
  --line-2: rgba(71, 52, 33, .24);
  --red: #b23a2b;
  --red-deep: #8e271b;
  --red-soft: #f3ddd3;
  --gold: #a87c3f;
  --green: #3f6b56;
  --green-soft: #e7efe7;
  --serif: "STKaiti", "KaiTi", "Kaiti SC", "Songti SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --shadow: 0 22px 60px rgba(56, 36, 20, .14);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  background:
    radial-gradient(1000px 720px at 10% 0%, #fff8e8 0%, transparent 58%),
    radial-gradient(900px 700px at 100% 30%, #e9d7bd 0%, transparent 60%),
    linear-gradient(135deg, #f0e4d1, #e6d5be);
}
button, input, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
.site-shell {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(255,250,240,.46), transparent 25%, transparent 75%, rgba(255,250,240,.23)),
    radial-gradient(70% 55% at 50% 0%, rgba(255,250,240,.7), transparent 80%);
}
.site-header {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(71,52,33,.12);
}
.brand { display: flex; align-items: center; gap: 14px; }
.seal {
  width: 46px; height: 46px; border-radius: 5px; background: var(--red);
  color: #fff0db; display: grid; place-items: center; font-family: var(--serif);
  font-size: 28px; transform: rotate(-4deg);
  box-shadow: inset 0 0 0 3px rgba(255,244,228,.34), 0 8px 18px rgba(142,39,27,.2);
}
.seal.tiny { width: 30px; height: 30px; font-size: 17px; border-radius: 4px; }
.brand-copy strong {
  display: block; font-family: var(--serif); font-size: 25px;
  letter-spacing: .14em; line-height: 1.2;
}
.brand-copy small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; letter-spacing: .14em; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .user-name { color: var(--ink-2); font-size: 12px; margin-right: 4px; }
.primary-btn, .secondary-btn, .ghost-btn {
  border: 1px solid transparent; border-radius: 8px; padding: 10px 16px;
  font-size: 12px; transition: .18s;
}
.primary-btn { background: var(--ink); color: #fff3e2; }
.primary-btn:hover { background: #352b22; }
.primary-btn span { margin-left: 8px; color: #d8b98f; }
.secondary-btn { background: var(--red); color: #fff1df; border-color: var(--red); }
.secondary-btn:hover { background: var(--red-deep); }
.ghost-btn { background: transparent; color: var(--ink-2); border-color: var(--line); }
.ghost-btn:hover { border-color: var(--line-2); background: rgba(255,250,241,.65); }

/* hero */
.hero { width: min(1160px, calc(100% - 48px)); margin: 0 auto; padding: 62px 0 42px; position: relative; }
.hero-mark { color: var(--red-deep); font-size: 11px; font-weight: 700; letter-spacing: .28em; }
.hero h1 {
  margin: 18px 0 0; max-width: 760px; font-family: var(--serif); font-weight: 700;
  font-size: clamp(44px, 6vw, 74px); line-height: 1.28; letter-spacing: .06em;
}
.hero h1 em { color: var(--red-deep); font-style: normal; }
.hero-desc { margin: 20px 0 0; max-width: 520px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.hero-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; margin-top: 26px; }
.hero-note { color: var(--muted); font-size: 11px; letter-spacing: .08em; }
.app-download-link {
  min-height: 39px; padding: 4px 12px 4px 5px; display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid rgba(178,58,43,.23); border-radius: 9px;
  background: rgba(255,250,240,.62); color: var(--ink-2); transition: .18s;
}
.app-download-link:hover {
  border-color: rgba(178,58,43,.42); background: rgba(255,250,240,.92);
  box-shadow: 0 7px 18px rgba(56,36,20,.08);
}
.download-glyph {
  flex: none; width: 29px; height: 29px; display: grid; place-items: center;
  border-radius: 7px; background: var(--red-soft); color: var(--red-deep);
  font-family: var(--serif); font-size: 18px;
}
.app-download-link strong, .app-download-link small { display: block; }
.app-download-link strong { font-size: 11px; font-weight: 600; line-height: 1.35; letter-spacing: .03em; }
.app-download-link small { margin-top: 1px; color: var(--muted); font-size: 8px; line-height: 1.3; }

/* layout */
.content-layout { width: min(1160px, calc(100% - 48px)); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 294px; gap: 24px; align-items: start; }
.feed-column { min-width: 0; }
.feed-toolbar {
  position: sticky; top: 0; z-index: 15; padding: 10px 0 14px;
  background: linear-gradient(180deg, rgba(240,228,209,.98) 70%, rgba(240,228,209,.9) 92%, transparent);
}
.feed-tabs { display: flex; align-items: center; gap: 24px; min-height: 40px; }
.feed-tab {
  position: relative; border: 0; background: transparent; color: var(--muted);
  font-family: var(--serif); font-size: 19px; padding: 5px 0 9px;
}
.feed-tab.active { color: var(--ink); font-weight: 700; }
.feed-tab.active::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 18px; height: 2px;
  transform: translateX(-50%); border-radius: 2px; background: var(--red);
}
.spacer { flex: 1; }
.search-toggle {
  display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 99px; background: rgba(255,250,240,.55);
  color: var(--ink-2); font-size: 11px;
}
.search-icon { position: relative; width: 13px; height: 13px; border: 1.5px solid currentColor; border-radius: 50%; display: inline-block; }
.search-icon::after { content: ""; position: absolute; width: 6px; height: 1.5px; background: currentColor; right: -4px; bottom: 1px; transform: rotate(45deg); }
.search-row { display: none; align-items: center; gap: 9px; padding: 4px 0 10px; }
.search-row.open { display: flex; }
.search-field {
  flex: 1; height: 40px; display: flex; align-items: center; gap: 9px; padding: 0 13px;
  border: 1px solid var(--line); border-radius: 10px; background: rgba(255,250,241,.85); color: var(--muted);
}
.search-field input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 13px; color: var(--ink); }
.search-cancel { border: 0; background: transparent; color: var(--red); font-size: 12px; padding: 8px 2px; }
.tag-row { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 2px; scrollbar-width: none; }
.tag-row::-webkit-scrollbar { display: none; }
.tag-chip {
  flex: none; height: 30px; padding: 0 13px; border: 1px solid var(--line); border-radius: 99px;
  background: rgba(255,250,240,.46); color: var(--ink-2); font-size: 11px; transition: .18s;
}
.tag-chip.active { background: var(--ink); border-color: var(--ink); color: #f9efdf; }
.tag-chip:hover { border-color: var(--line-2); }

/* cards */
.feed-list { display: flex; flex-direction: column; gap: 13px; padding-top: 2px; }
.story-card {
  position: relative; padding: 21px 22px 15px; border: 1px solid var(--line);
  border-radius: 17px; background: rgba(255,251,243,.88);
  box-shadow: 0 7px 20px rgba(62,40,22,.055);
  transition: transform .18s, box-shadow .18s;
}
.story-card:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(62,40,22,.09); }
.story-card.mine::before {
  content: ""; position: absolute; left: 0; top: 24px; bottom: 24px; width: 2px;
  background: linear-gradient(transparent, rgba(178,58,43,.5), transparent);
}
.card-top { display: flex; align-items: center; gap: 12px; }
.avatar {
  flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  color: #3b2d20; font-family: var(--serif); font-size: 17px; font-weight: 700;
  background: linear-gradient(145deg, hsl(var(--h, 42) 55% 82%), hsl(calc(var(--h, 42) + 28) 45% 67%));
}
.avatar.anon { color: #e7d8bf; background: linear-gradient(145deg,#3b342d,#211d19); }
.card-who { flex: 1; min-width: 0; }
.card-who strong { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink); }
.mine-tag { color: var(--red-deep); font-size: 9px; font-weight: 600; background: var(--red-soft); border-radius: 3px; padding: 2px 5px; }
.card-meta { display: flex; align-items: center; gap: 7px; margin-top: 4px; color: var(--muted); font-size: 10px; }
.dot { width: 2px; height: 2px; border-radius: 50%; background: currentColor; opacity: .5; }
.edited { color: var(--gold); }
.card-tag { flex: none; height: 25px; padding: 0 9px; border: 1px solid rgba(178,58,43,.24); border-radius: 6px; background: var(--red-soft); color: var(--red-deep); font-size: 10px; }
.story-title { margin: 15px 0 7px; font-family: var(--serif); font-size: 19px; line-height: 1.55; letter-spacing: .01em; }
.story-body { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 4; margin: 0; color: var(--ink-2); font-size: 13.5px; line-height: 1.86; white-space: pre-wrap; word-break: break-word; }
.read-full { display: inline-block; margin-top: 7px; border: 0; background: transparent; padding: 0; color: var(--red); font-size: 11px; }
.card-actions { display: flex; align-items: center; gap: 2px; margin-top: 15px; padding-top: 11px; border-top: 1px dashed var(--line); }
.action-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 8px;
  border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 11px;
}
.action-btn:hover { background: rgba(71,52,33,.055); color: var(--ink-2); }
.action-btn.liked { color: var(--red); }
.action-ico { width: 17px; height: 17px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-family: var(--serif); font-size: 10px; }
.card-actions .spacer { flex: 1; }
.mini-action { border: 0; background: transparent; color: var(--muted); font-size: 10px; padding: 7px; }
.mini-action.danger { color: rgba(178,58,43,.8); }
.load-more-wrap { display: flex; justify-content: center; padding: 20px 0 26px; }
.load-more { height: 38px; padding: 0 18px; border: 1px solid var(--line); border-radius: 99px; background: rgba(255,250,241,.6); color: var(--ink-2); font-size: 11px; }
.load-more span { color: var(--red); margin-left: 5px; }
.feed-end { padding: 24px 0 32px; text-align: center; color: rgba(71,52,33,.45); font-size: 11px; letter-spacing: .08em; }
.empty-feed { padding: 80px 20px; text-align: center; color: var(--muted); }
.empty-feed .empty-mark { width: 70px; height: 70px; margin: 0 auto 18px; border: 1px solid rgba(71,52,33,.22); border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 28px; color: rgba(71,52,33,.4); transform: rotate(-6deg); }
.empty-feed h3 { margin: 0 0 7px; font-family: var(--serif); font-size: 19px; color: var(--ink-2); }
.empty-feed p { margin: 0; font-size: 12px; }

/* sidebar */
.sidebar { display: flex; flex-direction: column; gap: 14px; padding-top: 9px; }
.side-card { padding: 19px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,251,243,.74); }
.side-kicker { color: var(--red-deep); font-size: 9px; font-weight: 700; letter-spacing: .22em; }
.side-card h3 { margin: 9px 0 7px; font-family: var(--serif); font-size: 18px; letter-spacing: .04em; }
.side-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
.rule-line { height: 1px; background: var(--line); margin: 15px 0; }
.side-small { font-size: 10px !important; color: rgba(71,52,33,.43) !important; }
.profile-card .profile-line { display: flex; align-items: center; gap: 12px; }
.profile-card .avatar { width: 48px; height: 48px; border-radius: 14px; font-size: 22px; }
.profile-card .profile-name { font-family: var(--serif); font-size: 19px; font-weight: 700; }
.profile-card .profile-sub { margin-top: 4px; color: var(--muted); font-size: 10px; }
.profile-card .profile-actions { display: flex; gap: 7px; margin-top: 15px; }
.profile-card .profile-actions button { flex: 1; }
.profile-card .mini-stats { display: flex; gap: 0; margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--line); }
.profile-card .mini-stat { flex: 1; text-align: center; border-left: 1px solid var(--line); }
.profile-card .mini-stat:first-child { border-left: 0; }
.profile-card .mini-stat b { display: block; font-family: var(--serif); font-size: 21px; }
.profile-card .mini-stat span { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }
.hot-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); cursor: pointer; }
.hot-item:last-child { border-bottom: 0; padding-bottom: 0; }
.hot-rank { color: var(--red); font-family: var(--serif); font-size: 20px; line-height: 1.2; min-width: 16px; }
.hot-item strong { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: var(--ink-2); font-size: 11px; font-weight: 500; line-height: 1.6; }
.hot-item span { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.site-footer { width: min(1160px, calc(100% - 48px)); margin: 30px auto 0; padding: 22px 0 30px; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 10px; letter-spacing: .04em; flex-wrap: wrap; }
.footer-meta { margin-left: auto; display: flex; align-items: center; gap: 15px; }
.footer-meta a { color: rgba(71,52,33,.5); }
.footer-meta .icp-link:hover, .footer-meta .admin-link:hover { color: var(--red-deep); }

/* modal & auth */
.modal-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(30,22,15,.42); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 20px; overflow-y: auto; }
.modal-card { width: min(520px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; padding: 30px; border-radius: 18px; background: var(--paper-2); box-shadow: var(--shadow); }
.modal-card.wide { width: min(700px, 100%); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.modal-head h2 { margin: 0; font-family: var(--serif); font-size: 27px; line-height: 1.4; }
.modal-head p { margin: 7px 0 0; color: var(--muted); font-size: 11px; }
.modal-close { border: 1px solid var(--line); background: transparent; color: var(--muted); width: 30px; height: 30px; border-radius: 50%; font-size: 18px; line-height: 1; }
.auth-tabs { display: flex; gap: 20px; margin: 24px 0 18px; border-bottom: 1px solid var(--line); }
.auth-tab { border: 0; background: transparent; padding: 0 0 10px; color: var(--muted); font-family: var(--serif); font-size: 18px; position: relative; }
.auth-tab.active { color: var(--ink); font-weight: 700; }
.auth-tab.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--red); }
.auth-form label, .compose-form label { display: block; margin-bottom: 13px; color: var(--ink-2); font-size: 11px; }
.auth-form input, .auth-form textarea, .compose-form input, .compose-form textarea {
  width: 100%; margin-top: 7px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px;
  outline: 0; background: #fffdf8; color: var(--ink); font-size: 13px;
}
.auth-form input { height: 41px; }
.compose-form input { height: 43px; }
.compose-form textarea { min-height: 170px; padding: 12px; resize: vertical; line-height: 1.8; }
.auth-form input:focus, .auth-form textarea:focus, .compose-form input:focus, .compose-form textarea:focus { border-color: rgba(178,58,43,.55); }
.auth-submit { width: 100%; height: 43px; margin-top: 5px; border: 0; border-radius: 8px; background: var(--ink); color: #fff2df; font-size: 12px; letter-spacing: .15em; }
.auth-error { min-height: 17px; margin: 0 0 8px; color: var(--red); font-size: 11px; }
.auth-foot { margin: 16px 0 0; text-align: center; color: var(--muted); font-size: 10px; }
.compose-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.compose-count { color: var(--muted); font-size: 10px; }
.compose-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 2px 0 17px; }
.compose-tags button { height: 29px; padding: 0 11px; border: 1px solid var(--line); border-radius: 99px; background: transparent; color: var(--ink-2); font-size: 11px; }
.compose-tags button.active { background: var(--ink); border-color: var(--ink); color: #faefdf; }
.anon-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.3); }
.anon-row strong { display: block; font-size: 12px; }
.anon-row small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.switch { width: 40px; height: 23px; padding: 3px; border-radius: 99px; background: rgba(71,52,33,.2); display: flex; justify-content: flex-start; transition: .2s; }
.switch::after { content: ""; width: 17px; height: 17px; border-radius: 50%; background: #fffdf8; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: .2s; }
.switch.on { background: var(--red); justify-content: flex-end; }
.detail-body { margin: 20px 0; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 14px; line-height: 1.95; white-space: pre-wrap; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin-top: 15px; color: var(--muted); font-size: 10px; }
.detail-actions { display: flex; gap: 7px; align-items: center; }
.detail-actions .spacer { flex: 1; }
.comment-section { margin-top: 24px; }
.comment-section h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 17px; }
.comment-row { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.comment-row .avatar { width: 29px; height: 29px; border-radius: 8px; font-size: 13px; }
.comment-main { flex: 1; min-width: 0; }
.comment-who { display: flex; align-items: center; gap: 7px; color: var(--ink-2); font-size: 10px; }
.comment-who time { color: var(--muted); font-size: 9px; }
.comment-main p { margin: 4px 0 0; color: var(--ink-2); font-size: 12px; line-height: 1.7; white-space: pre-wrap; }
.comment-del { margin-left: auto; border: 0; background: transparent; color: var(--muted); font-size: 9px; }
.comment-form { display: flex; gap: 8px; margin-top: 16px; }
.comment-form input { flex: 1; height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: #fffdf8; outline: 0; font-size: 12px; }
.comment-form button { height: 38px; padding: 0 15px; border: 0; border-radius: 8px; background: var(--ink); color: #fff2df; font-size: 11px; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 100; transform: translate(-50%, 10px); padding: 10px 15px; border-radius: 8px; background: rgba(36,31,25,.94); color: #fff2df; font-size: 12px; opacity: 0; pointer-events: none; transition: .22s; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.loading-row { padding: 60px 20px; text-align: center; color: var(--muted); font-size: 12px; }
.offline-note {
  display: flex; gap: 11px; align-items: center; padding: 13px 14px;
  border: 1px solid rgba(168,124,63,.22); border-radius: 10px;
  background: rgba(168,124,63,.075); color: var(--ink-2);
}
.offline-note span {
  flex: none; width: 28px; height: 28px; display: grid; place-items: center;
  border: 1px solid rgba(168,124,63,.35); border-radius: 50%;
  color: var(--gold); font-family: var(--serif); font-size: 14px;
}
.offline-note p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.native-app .app-download-link,
.native-app .apk-link { display: none !important; }
.connection-banner {
  position: fixed; left: 50%; top: calc(10px + env(safe-area-inset-top)); z-index: 70;
  transform: translateX(-50%); width: max-content; max-width: calc(100% - 28px);
  padding: 9px 14px; border: 1px solid rgba(168,124,63,.3); border-radius: 99px;
  background: rgba(255,250,240,.96); color: var(--ink-2); font-size: 11px;
  box-shadow: 0 8px 24px rgba(56,36,20,.14); backdrop-filter: blur(10px);
}
.app-nav { display: none; }
@media (display-mode: standalone) {
  .site-header { padding-top: env(safe-area-inset-top); }
  .site-footer { padding-bottom: calc(30px + env(safe-area-inset-bottom)); }
  .app-download-link, .apk-link { display: none !important; }
}

@media (max-width: 900px) {
  .site-header, .hero, .content-layout, .site-footer { width: min(100% - 32px, 720px); }
  .site-header { min-height: 76px; }
  .hero { padding: 44px 0 30px; }
  .hero h1 { font-size: 44px; }
  .hero-desc { font-size: 13px; }
  .content-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .feed-toolbar { top: 0; }
}
@media (max-width: 700px) {
  .site-shell { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
  .app-nav {
    position: fixed; left: 50%; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 35;
    width: min(360px, calc(100% - 24px)); height: 58px; padding: 5px;
    display: grid; grid-template-columns: repeat(3, 1fr); align-items: stretch;
    transform: translateX(-50%); border: 1px solid rgba(71,52,33,.16); border-radius: 18px;
    background: rgba(255,250,240,.94); box-shadow: 0 14px 36px rgba(56,36,20,.18);
    backdrop-filter: blur(16px) saturate(1.15);
  }
  .app-nav button {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    border: 0; border-radius: 13px; background: transparent; color: var(--muted);
  }
  .app-nav button:active { background: rgba(71,52,33,.06); }
  .app-nav small { font-size: 9px; line-height: 1; letter-spacing: .04em; }
  .nav-glyph {
    width: 25px; height: 25px; display: grid; place-items: center;
    border: 1px solid rgba(71,52,33,.19); border-radius: 50%;
    font-family: var(--serif); font-size: 13px; color: var(--ink-2);
  }
  .nav-glyph.primary {
    width: 31px; height: 31px; margin-top: -10px; border: 0;
    background: var(--red); color: #fff0db; font-size: 17px;
    box-shadow: 0 7px 16px rgba(142,39,27,.25), inset 0 0 0 2px rgba(255,244,228,.28);
  }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); max-width: calc(100% - 28px); text-align: center; }
}
@media (max-width: 520px) {
  .site-header, .hero, .content-layout, .site-footer { width: calc(100% - 28px); }
  .site-header { align-items: flex-start; padding: 16px 0 13px; min-height: 0; flex-wrap: wrap; }
  .brand-copy strong { font-size: 22px; }
  .brand-copy small { font-size: 9px; }
  .header-actions { width: 100%; padding-top: 10px; border-top: 1px solid var(--line); justify-content: flex-end; }
  .header-actions .primary-btn { padding: 8px 12px; }
  .hero { padding: 32px 0 24px; }
  .hero-mark { font-size: 9px; }
  .hero h1 { margin-top: 12px; font-size: 38px; line-height: 1.32; }
  .hero-desc { margin-top: 14px; line-height: 1.75; }
  .hero-row { margin-top: 20px; }
  .hero-note { font-size: 9px; }
  .feed-tabs { gap: 18px; }
  .feed-tab { font-size: 18px; }
  .search-toggle span:last-child { display: none; }
  .story-card { padding: 17px 15px 12px; border-radius: 14px; }
  .story-title { font-size: 18px; }
  .story-body { font-size: 13px; line-height: 1.8; }
  .modal-backdrop { padding: 0; align-items: flex-end; }
  .modal-card, .modal-card.wide { width: 100%; max-height: 92vh; padding: 23px 18px 24px; border-radius: 18px 18px 0 0; }
  .modal-head h2 { font-size: 23px; }
  .site-footer { padding-bottom: 20px; }
  .site-footer { gap: 7px; }
  .footer-meta { width: 100%; margin-left: 0; justify-content: flex-start; padding-left: 40px; }
  .footer-meta .admin-link { display: none; }
}
