/* Homepage refinements. Editor and reader layouts remain in styles.css. */
:root {
  --bg: #090d12;
  --panel: #10161f;
  --panel-light: #18212b;
  --line: #26313e;
  --ink: #eaf0f5;
  --muted: #97a5b5;
  --lime: #c1e986;
  --blue: #85d4d7;
  --sans: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  --mono: "Cascadia Code", "Consolas", "Microsoft YaHei", monospace;
  color-scheme: dark;
}
body {
  background-image: radial-gradient(ellipse 720px 500px at 78% 8%, #20454933, transparent 76%),
    radial-gradient(ellipse 620px 500px at 10% 28%, #29344b26, transparent 80%);
  background-size: auto;
  background-attachment: scroll;
}
body::before { display: none; }
.noise { opacity: .018; }
.shell { width: min(1180px, calc(100% - 80px)); }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 5px;
}
#home, #archive, #about { scroll-margin-top: 120px; }
.site-header {
  width: min(1180px, calc(100% - 80px));
  height: 82px;
  gap: 16px;
  background: color-mix(in srgb, var(--bg) 91%, transparent);
  border-color: #9baec01a;
}
.brand { gap: 10px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px;
  color: var(--lime); border-color: #c1e98640;
  background: #b6e28a0a; box-shadow: none;
}
.brand strong { font-size: 14px; color: var(--ink); letter-spacing: .03em; }
.brand small { font-size: 8px; letter-spacing: .16em; color: var(--muted); margin-top: 5px; }
.header-search {
  width: auto; max-width: 270px; flex: 1 1 160px;
  border-color: var(--line); border-radius: 10px;
  background: var(--panel); box-shadow: none;
}
.header-search input { font-size: 12px; }
.main-nav { gap: 20px; font-family: var(--sans); font-size: 12px; }
.main-nav a:hover { color: var(--lime); }
.admin-trigger, .game-trigger, .random-trigger, .theme-trigger {
  height: 36px; border-radius: 9px; padding: 0 12px; font-family: var(--sans);
  border-color: var(--line); background: transparent; color: var(--muted); font-size: 11px;
}
.random-trigger { background: #85d4d708; }
.random-trigger span { color: var(--blue); }
.theme-trigger { width: 36px; flex: 0 0 36px; padding: 0; font-size: 17px; }
.status-dot { width: 5px; height: 5px; box-shadow: none; margin-right: 5px; }
.arrow { margin-left: 3px; }
.hero {
  grid-template-columns: minmax(0, 1fr) 334px;
  align-items: center; gap: 76px;
  padding: 86px 0 74px; border-bottom: 0;
}
.hero::after { display: none; }
.eyebrow { font: 10px var(--mono); letter-spacing: .14em; color: var(--blue); margin-bottom: 26px; }
.eyebrow > span { width: 22px; background: var(--blue); }
.hero h1 {
  font-family: var(--sans); font-size: clamp(37px, 4.3vw, 57px); line-height: 1.35;
  letter-spacing: -.045em; font-weight: 700; margin-bottom: 24px;
}
.hero h1 em {
  color: var(--lime); font-family: inherit; font-style: normal; font-weight: 700;
  letter-spacing: inherit; text-decoration: none;
}
.hero-intro { font-size: 14px; line-height: 2; max-width: 490px; margin-bottom: 28px; color: var(--muted); }
.hero-actions { display: flex; align-items: center; gap: 26px; }
.primary-link {
  gap: 26px; border: 1px solid #c1e98675; background: var(--lime);
  color: #172311; border-radius: 10px; padding: 10px 18px;
  font: 600 12px var(--sans); transition: transform .2s, box-shadow .2s;
}
.primary-link:hover { transform: translateY(-2px); box-shadow: 0 6px 24px #c1e98618; }
.hero-about-link { color: var(--muted); font-size: 12px; }
.hero-about-link span { color: var(--blue); margin-left: 8px; }
.hero-about-link:hover { color: var(--ink); }
.topic-tags { display: flex; flex-wrap: wrap; gap: 19px; margin-top: 32px; }
.topic-tags span { color: #8191a3; font-size: 10px; }
.topic-tags span::before { content: '#'; margin-right: 5px; color: #85d4d76b; }
.profile-card {
  width: 100%; padding: 0 25px 25px; border: 1px solid #85d4d72c; border-radius: 16px;
  background: linear-gradient(150deg, #17252ded, #10171ff5 75%);
  box-shadow: 0 25px 70px #00000026;
}
.profile-window-bar {
  display: flex; justify-content: space-between; align-items: center;
  margin: 0 -25px 24px; padding: 13px 18px; border-bottom: 1px solid #85d4d71c;
}
.profile-window-bar > span { display: flex; gap: 5px; }
.profile-window-bar i { width: 6px; height: 6px; background: #657c89; border-radius: 50%; }
.profile-window-bar i:first-child { background: #b27b77; }
.profile-window-bar i:nth-child(2) { background: #b6a471; }
.profile-window-bar i:last-child { background: #89a782; }
.profile-window-bar small { color: #768c9b; font: 9px var(--mono); }
.avatar { background: #263c3d; box-shadow: none; color: var(--lime); width: 49px; height: 49px; border-radius: 14px; }
.online-label { font: 9px var(--sans); color: #a4baaa; }
.online-label i { box-shadow: none; width: 5px; height: 5px; margin-right: 6px; }
.profile-card h2 { font: 600 24px var(--sans); letter-spacing: -.03em; margin: 23px 0 15px; }
.profile-role { display: block; font: 9px var(--mono); letter-spacing: .03em; color: var(--muted); margin-top: 8px; }
.profile-card p { font-size: 12px; color: #95a7b5; line-height: 1.9; }
.profile-rule { margin: 23px 0 18px; background: #85d4d71c; }
.profile-stats strong { font: 500 22px var(--mono); }
.profile-stats small { color: #8e9fae; margin-top: 5px; font-size: 9px; }
.section-label { font: 10px var(--mono); letter-spacing: .08em; color: var(--muted); }
.section-label .line { width: 26px; background: #c1e98650; }
.featured { padding: 0 0 64px; }
.featured-card {
  grid-template-columns: 32% minmax(0, 1fr); min-height: 248px; margin-top: 19px;
  border-color: var(--line); border-radius: 16px; background: var(--panel); box-shadow: none;
}
.featured-art {
  min-height: 248px; background: radial-gradient(ellipse at 46% 40%, #85d4d71c, transparent 65%), #101f28;
}
.featured-art::before { background: linear-gradient(145deg, transparent 49.5%, #85d4d70d 50%, transparent 50.5%); }
.featured-art::after { content: 'FIELD NOTES / 01'; font: 8px var(--mono); letter-spacing: .12em; top: 22px; left: 24px; color: #85d4d780; }
.orbit-one { width: 205px; height: 108px; border-color: #85d4d742; }
.orbit-two { width: 255px; height: 160px; border-color: #c1e9862e; }
.orbit-dot { width: 7px; height: 7px; background: var(--lime); box-shadow: 0 0 24px #c1e98680; left: calc(50% + 84px); top: calc(50% - 43px); }
.art-caption { left: 24px; bottom: 22px; color: #85d4d780; font-size: 8px; }
.featured-art-symbol { display: block; color: var(--blue); font: 32px var(--mono); letter-spacing: -.12em; margin-bottom: 10px; }
.featured-body { padding: 29px 34px; }
.featured-body h2 { font: 600 clamp(20px, 2.1vw, 27px)/1.5 var(--sans); letter-spacing: -.035em; margin: 16px 0 12px; max-width: none; }
.post-kicker { color: var(--blue); font-size: 9px; letter-spacing: .06em; }
.featured-body > p:not(.post-kicker) { font-size: 12px; line-height: 1.9; max-width: 610px; }
.post-footer { padding-top: 18px; margin-top: 22px; font-size: 10px; border-top: 0; }
.text-button { font: 12px var(--sans); color: var(--lime); }
.text-button span { color: inherit; }
.archive { padding: 0 0 76px; }
.archive-heading { gap: 24px; }
.archive-heading h2 { font: 600 29px/1.4 var(--sans); letter-spacing: -.045em; margin-top: 15px; }
.archive-heading > p { font: 12px/1.8 var(--sans); max-width: none; color: var(--muted); }
.archive-tools {
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-top: 24px;
  background: color-mix(in srgb, var(--panel) 76%, transparent); gap: 18px;
}
.search-box { min-width: 180px; flex: 1 1 200px; gap: 12px; }
.search-box input { font: 12px var(--sans); min-width: 0; }
.search-box input::placeholder { color: #77899b; }
.search-box > span { color: var(--blue); }
.filter-list { flex: 0 1 auto; gap: 6px; justify-content: flex-end; }
.filter { border-color: transparent; background: transparent; font: 11px var(--sans); border-radius: 8px; padding: 8px 11px; white-space: nowrap; }
.filter.active, .filter:hover { background: #85d4d712; border-color: #85d4d738; color: var(--blue); }
.filter b { font-size: 9px; color: #8494a7; }
.filter.active b { color: var(--blue); }
.archive-summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 19px 2px 16px; }
.archive-summary > p { margin: 0; font-size: 10px; color: #8899aa; }
.sort-control { display: flex; align-items: center; gap: 9px; color: #8899aa; font-size: 10px; }
.sort-control select { color: #acb9c6; background: var(--bg); border: 1px solid var(--line); border-radius: 7px; font-size: 10px; padding: 6px 8px; }
.post-grid { gap: 20px; margin-top: 0; align-items: stretch; }
.post-card {
  min-height: 0; background: var(--panel); border-color: var(--line); border-radius: 14px; box-shadow: none;
  transition: transform .22s, border-color .22s, box-shadow .22s; cursor: pointer;
}
.post-card:hover { background: var(--panel); border-color: #85d4d76e; transform: translateY(-4px); box-shadow: 0 12px 30px #00000024; }
.post-card-cover { height: 138px; border-color: #ffffff0a; filter: saturate(.65); }
.post-card-cover::before { opacity: .18; background-size: 26px 26px; }
.post-card-cover::after { opacity: .4; }
.cover-cyan { background: radial-gradient(ellipse at 23% 25%, #60b9c33b, transparent 55%), #162c3b; }
.cover-purple { background: radial-gradient(ellipse at 75% 24%, #a491db45, transparent 60%), #24243c; }
.cover-amber { background: radial-gradient(ellipse at 30% 25%, #d1ac6345, transparent 60%), #343025; }
.cover-rose { background: radial-gradient(ellipse at 70% 25%, #d58b9d40, transparent 60%), #332630; }
.cover-lime { background: radial-gradient(ellipse at 60% 30%, #a0bf6c40, transparent 60%), #26332b; }
.cover-index { color: #ffffff80; font-size: 10px; }
.cover-mark { font-family: var(--sans); color: #ffffff90; font-size: 9px; }
.cover-caption { font-size: 8px; color: #ffffff60; }
.cover-lines { width: 170px; height: 100px; right: 26px; bottom: -28px; border-color: #ffffff24; }
.cover-lines::after { font-size: 22px; color: #ffffff60; top: 22px; right: 24px; }
.post-card-body { flex: 1; padding: 20px 21px 19px; min-height: 242px; }
.post-card .post-kicker { color: var(--blue); font-size: 9px; }
.bookmark { color: #8497a8; padding: 3px 0 3px 8px; }
.bookmark.saved { color: var(--lime); }
.post-card h3 { font: 600 16px/1.65 var(--sans); letter-spacing: -.02em; margin: 14px 0 10px; }
.post-title-button { color: inherit; font: inherit; padding: 0; border: 0; background: none; text-align: left; width: 100%; }
.post-card p { font-size: 12px; line-height: 1.9; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card-footer { border-top: 1px solid #a1b0c015; padding-top: 15px; margin-top: 22px; font: 9px var(--mono); color: #8193a5; }
.post-card-body > .post-card-footer { margin-top: auto; }
.post-card-body > p { margin-bottom: 22px; }
.read-more { color: #b8c8d6; font: 10px var(--sans); }
.empty-state { padding: 48px 20px; border: 1px dashed var(--line); border-radius: 14px; margin: 0; background: var(--panel); }
.empty-state > span { color: var(--blue); font-size: 36px; line-height: 1; }
.empty-state h3 { color: var(--ink); font-size: 16px; font-weight: 500; margin: 14px 0 8px; }
.empty-state p { font-size: 12px; color: var(--muted); margin: 0 0 20px; }
.empty-state .ghost-button { font: 11px var(--sans); padding: 8px 14px; border-radius: 8px; }
.post-grid:empty { display: none; }
.about { padding: 29px 0 60px; border-top: 1px solid var(--line); }
.about-layout { grid-template-columns: 1fr 1fr; gap: 80px; padding-top: 29px; }
.about h2 { font: 600 31px/1.6 var(--sans); letter-spacing: -.04em; }
.about h2 em { font: inherit; color: var(--lime); letter-spacing: inherit; }
.about-layout > div { max-width: 480px; padding-top: 2px; }
.about-layout p { font: 12px/1.95 var(--sans); color: var(--muted); margin-bottom: 8px; }
.about-link { font: 11px var(--sans); color: var(--blue); border-color: #85d4d74d; margin-top: 18px; }
.site-footer { font: 9px/1.8 var(--mono); color: #8192a3; padding: 22px 0 30px; gap: 20px; flex-wrap: wrap; border-color: var(--line); }
.soft-theme { --bg: #151c24; --panel: #1c2631; --panel-light: #263440; --line: #354555; --muted: #b0becd; }
.soft-theme .profile-card { background: linear-gradient(150deg, #263943, #1c2631); }
.soft-theme .featured-art { background-color: #21343e; }
.editor-form, .markdown-editor, .admin-layout, .editor-preview { min-width: 0; }
.markdown-source-label { text-align: left; }
.admin-window-dock {
  inset: auto 12px auto auto; top: 50%; margin: 0; padding: 0;
  border: 0; background: transparent; color: var(--ink); overflow: visible;
}
.admin-window-dock:popover-open { display: flex; }
.admin-window-dock::backdrop { background: transparent; pointer-events: none; }
@media (max-width: 1080px) {
  .site-header { gap: 12px; }
  .main-nav { display: flex; }
  .game-trigger { display: none; }
  .hero { gap: 36px; grid-template-columns: minmax(0, 1fr) 300px; }
  .hero h1 { font-size: 43px; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .admin-window-dock { right: 0; }
  .admin-layout, .admin-dialog.maximized .admin-layout { grid-template-columns: minmax(0, 1fr); }
  .admin-scroll { padding: 40px 20px 24px; }
  .admin-dialog .form-row { grid-template-columns: minmax(0, 1fr) 90px; }
  .admin-dialog .form-row > label { min-width: 0; }
  .admin-heading h2 { font-size: 29px; }
  .shell, .site-header { width: calc(100% - 40px); }
  .site-header { flex-wrap: wrap; height: auto; min-height: 72px; padding: 14px 0; gap: 12px; }
  .main-nav { display: none; }
  .header-search { display: none; }
  .random-trigger { margin-left: auto; }
  .hero { padding: 52px 0 48px; grid-template-columns: 1fr 280px; gap: 28px; }
  .hero h1 { font-size: 34px; }
  .hero-intro { font-size: 12px; }
  .hero-actions { gap: 17px; }
  .hero-about-link { font-size: 10px; }
  .primary-link { font-size: 11px; padding: 10px 14px; gap: 14px; }
  .profile-card { transform: none; }
  .topic-tags { gap: 12px; }
  .featured-card { grid-template-columns: 29% 1fr; }
  .featured-body { padding: 24px; }
  .featured-body h2 { font-size: 21px; }
  .archive-heading > p { display: none; }
  .archive-tools { align-items: flex-start; flex-direction: column; gap: 13px; }
  .search-box { flex: 0 0 auto; width: 100%; }
  .filter-list { margin: 0; justify-content: flex-start; }
  .about-layout { gap: 30px; }
  .about h2 { font-size: 27px; }
}
@media (max-width: 620px) {
  #archive, #about { scroll-margin-top: 92px; }
  .brand small { display: none; }
  .brand strong { font-size: 12px; }
  .brand-mark { width: 32px; height: 32px; border-radius: 10px; }
  .brand { gap: 8px; }
  .site-header { gap: 8px; min-height: 68px; }
  .random-trigger { padding: 0 9px; font-size: 10px; }
  .random-trigger span { display: none; }
  .theme-trigger { width: 31px; flex-basis: 31px; }
  .admin-trigger { padding: 0 9px; font-size: 10px; }
  .admin-trigger .status-dot, .admin-trigger .arrow { display: none; }
  .hero { grid-template-columns: 1fr; padding: 40px 0 44px; gap: 32px; }
  .eyebrow { font-size: 8px; margin-bottom: 18px; }
  .hero h1 { font-size: clamp(31px, 8.7vw, 46px); line-height: 1.4; margin-bottom: 18px; }
  .hero-intro { font-size: 13px; max-width: 400px; line-height: 1.95; }
  .hero-about-link { font-size: 11px; }
  .topic-tags { margin-top: 24px; gap: 20px; }
  .profile-card { max-width: none; padding: 0 21px 21px; }
  .profile-window-bar { margin: 0 -21px 18px; }
  .profile-card h2 { margin-top: 17px; font-size: 22px; }
  .profile-role { display: inline-block; margin-left: 12px; }
  .profile-rule { margin-top: 17px; }
  .profile-card p { max-width: none; }
  .profile-stats strong { font-size: 23px; }
  .featured { padding: 0 0 45px; }
  .featured-card { grid-template-columns: 1fr; margin-top: 16px; }
  .featured-art { min-height: 138px; }
  .featured-art-symbol { font-size: 25px; margin-bottom: 4px; }
  .featured-art .art-caption { bottom: 15px; left: 21px; font-size: 7px; }
  .featured-art::after { top: 16px; left: 21px; }
  .featured-body { padding: 23px 21px; min-height: 0; }
  .featured-body h2 { font-size: 20px; line-height: 1.6; margin-top: 12px; }
  .post-footer { margin-top: 19px; padding-top: 0; }
  .archive-heading h2 { font-size: 27px; margin-top: 12px; }
  .archive-tools { padding: 13px 12px; margin-top: 20px; gap: 12px; }
  .filter-list { gap: 4px; }
  .filter { padding: 7px 9px; font-size: 10px; }
  .filter b { margin-left: 2px; }
  .archive-summary { padding: 16px 0; }
  .sort-control { gap: 6px; font-size: 9px; }
  .archive-summary > p { font-size: 9px; }
  .sort-control select { font-size: 9px; }
  .post-grid { grid-template-columns: 1fr; gap: 16px; }
  .post-card-cover { height: 142px; }
  .post-card-body { min-height: 210px; padding: 18px 20px; }
  .post-card h3 { font-size: 17px; }
  .post-card p { font-size: 12px; }
  .archive { padding-bottom: 46px; }
  .about { padding: 26px 0 40px; }
  .about-layout { grid-template-columns: 1fr; gap: 20px; padding-top: 24px; }
  .about h2 { font-size: 28px; }
  .site-footer { padding-block: 20px; font-size: 8px; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .post-card:hover, .primary-link:hover { transform: none; }
}

/* The theme toggle applies .soft-theme to body; keep this palette genuinely light. */
body.soft-theme {
  color-scheme: light;
  --bg: #f4f7fb;
  --panel: #ffffff;
  --panel-light: #edf2f7;
  --line: #d7e0e9;
  --ink: #1c2733;
  --muted: #586a7b;
  --lime: #527b13;
  --blue: #087b88;
  --body-copy: #35485a;
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 460px at 76% -120px, rgba(8, 123, 136, .10), transparent 70%),
    radial-gradient(650px 430px at 8% 18%, rgba(82, 123, 19, .055), transparent 72%);
  background-attachment: scroll;
}
body.soft-theme::before {
  background: radial-gradient(circle at 50% 38%, transparent 25%, rgba(31, 48, 65, .035) 100%);
}
body.soft-theme .noise { opacity: .012; }
body.soft-theme .site-header {
  background: rgba(255, 255, 255, .88);
  border-color: var(--line);
}
body.soft-theme .brand-mark {
  color: var(--lime);
  border-color: #527b1355;
  background: #edf5e4;
  box-shadow: none;
}
body.soft-theme .brand strong,
body.soft-theme .hero h1,
body.soft-theme .featured-body h2,
body.soft-theme .archive-heading h2,
body.soft-theme .about h2 { color: var(--ink); }
body.soft-theme .brand small,
body.soft-theme .main-nav,
body.soft-theme .hero-intro,
body.soft-theme .hero-about-link,
body.soft-theme .topic-tags span,
body.soft-theme .profile-role,
body.soft-theme .profile-card p,
body.soft-theme .profile-stats small,
body.soft-theme .archive-heading > p,
body.soft-theme .archive-summary > p,
body.soft-theme .sort-control,
body.soft-theme .post-card p,
body.soft-theme .post-card-footer,
body.soft-theme .about-layout p,
body.soft-theme .site-footer { color: var(--muted); }
body.soft-theme .main-nav a:hover { color: var(--lime); }
body.soft-theme .header-search {
  background: #f8fafc;
  border-color: var(--line);
  box-shadow: inset 0 1px 2px rgba(31, 48, 65, .04);
}
body.soft-theme .header-search span,
body.soft-theme .header-search input,
body.soft-theme .search-box input { color: var(--ink); }
body.soft-theme .header-search input::placeholder,
body.soft-theme .search-box input::placeholder { color: #718092; }
body.soft-theme .random-trigger,
body.soft-theme .theme-trigger,
body.soft-theme .game-trigger,
body.soft-theme .admin-trigger,
body.soft-theme .ghost-button {
  border-color: var(--line);
  background: #fff;
  color: #405163;
}
body.soft-theme .random-trigger { border-color: #c6d8e2; }
body.soft-theme .random-trigger span,
body.soft-theme .theme-trigger { color: var(--blue); }
body.soft-theme .random-trigger:hover,
body.soft-theme .theme-trigger:hover,
body.soft-theme .game-trigger:hover,
body.soft-theme .admin-trigger:hover,
body.soft-theme .ghost-button:hover { border-color: var(--blue); color: var(--blue); }
body.soft-theme .hero h1 em,
body.soft-theme .about h2 em { color: var(--lime); }
body.soft-theme .primary-link {
  color: #263719;
  border-color: #a5c778;
  background: #d9edbd;
}
body.soft-theme .primary-link:hover { box-shadow: 0 6px 24px rgba(82, 123, 19, .14); }
body.soft-theme .hero-about-link:hover { color: var(--ink); }
body.soft-theme .topic-tags span::before { color: #6b8f3d; }
body.soft-theme .profile-card {
  border-color: #d1dfe6;
  background: linear-gradient(150deg, #ffffff, #eef4f7);
  box-shadow: 0 18px 45px rgba(38, 60, 79, .08);
}
body.soft-theme .profile-window-bar { border-color: #d7e2e9; }
body.soft-theme .profile-window-bar small { color: #687a8a; }
body.soft-theme .avatar { background: #e7f0e1; color: var(--lime); }
body.soft-theme .online-label { color: #536a5d; }
body.soft-theme .profile-rule { background: var(--line); }
body.soft-theme .profile-stats strong { color: var(--ink); }
body.soft-theme .section-label { color: var(--muted); }
body.soft-theme .section-label .line { background: #527b1355; }
body.soft-theme .featured-card {
  border-color: var(--line);
  background: var(--panel);
  box-shadow: 0 16px 38px rgba(38, 60, 79, .07);
}
body.soft-theme .featured-art {
  background: radial-gradient(ellipse at 46% 40%, rgba(8, 123, 136, .13), transparent 66%), #e8f0f3;
}
body.soft-theme .featured-art::before { background: linear-gradient(145deg, transparent 49.5%, rgba(8, 123, 136, .09) 50%, transparent 50.5%); }
body.soft-theme .featured-art::after,
body.soft-theme .art-caption { color: #456b77; }
body.soft-theme .orbit-one { border-color: rgba(8, 123, 136, .35); }
body.soft-theme .orbit-two { border-color: rgba(82, 123, 19, .28); }
body.soft-theme .orbit-dot { box-shadow: 0 0 18px rgba(82, 123, 19, .28); }
body.soft-theme .archive-tools { background: rgba(255, 255, 255, .78); }
body.soft-theme .filter {
  border-color: var(--line);
  background: #fff;
  color: #4c5e70;
}
body.soft-theme .filter b { color: #6d7d8d; }
body.soft-theme .filter.active,
body.soft-theme .filter:hover {
  border-color: var(--lime);
  background: var(--lime);
  color: #fff;
}
body.soft-theme .filter.active b { color: #fff; }
body.soft-theme .sort-control select {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}
body.soft-theme .post-card {
  border-color: var(--line);
  background: #fff;
  box-shadow: 0 12px 32px rgba(38, 60, 79, .06);
}
body.soft-theme .post-card:hover {
  border-color: #9bb8c3;
  background: #fff;
  box-shadow: 0 18px 42px rgba(38, 60, 79, .12);
}
body.soft-theme .post-card h3,
body.soft-theme .post-title-button { color: var(--ink); }
body.soft-theme .post-card .post-kicker { color: var(--blue); }
body.soft-theme .bookmark { color: #647789; }
body.soft-theme .bookmark.saved { color: var(--lime); }
body.soft-theme .post-card-footer { border-color: var(--line); }
body.soft-theme .read-more { color: #405366; }
body.soft-theme .post-card:hover .read-more { color: var(--blue); }
body.soft-theme .empty-state { background: var(--panel); }
body.soft-theme .about { border-color: var(--line); }
body.soft-theme .about-link { color: var(--blue); border-color: #087b884d; }
body.soft-theme .site-footer { border-color: var(--line); }

/* Keep article, contact, and editor dialogs readable in light mode too. */
body.soft-theme .article-dialog,
body.soft-theme .admin-dialog,
body.soft-theme .contact-dialog,
body.soft-theme .game-dialog {
  border-color: var(--line);
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(31, 48, 65, .2);
}
body.soft-theme .article-dialog::backdrop,
body.soft-theme .admin-dialog::backdrop,
body.soft-theme .contact-dialog::backdrop,
body.soft-theme .game-dialog::backdrop { background: rgba(31, 48, 65, .32); }
body.soft-theme .article-header,
body.soft-theme .admin-heading,
body.soft-theme .game-dialog-head { border-color: var(--line); }
body.soft-theme .article-header-mark { color: #7f8e9b; }
body.soft-theme .article-dialog .dialog-close,
body.soft-theme .game-dialog .dialog-close { background: rgba(255, 255, 255, .8); color: #506174; }
body.soft-theme .dialog-excerpt,
body.soft-theme .dialog-content > p,
body.soft-theme .article-section-body p,
body.soft-theme .preview-content,
body.soft-theme .preview-content p,
body.soft-theme .preview-content ul,
body.soft-theme .preview-content ol,
body.soft-theme .dialog-content ul,
body.soft-theme .dialog-content ol,
body.soft-theme .dialog-content blockquote,
body.soft-theme .article-outline nav button,
body.soft-theme .article-footer,
body.soft-theme .admin-note,
body.soft-theme .admin-dialog label { color: var(--body-copy); }
body.soft-theme .article-section-body h3,
body.soft-theme .article-dialog h2,
body.soft-theme .admin-dialog h2,
body.soft-theme .contact-dialog h2,
body.soft-theme .game-dialog h2 { color: var(--ink); }
body.soft-theme .outline-tip { color: #718092; }
body.soft-theme .admin-dialog input,
body.soft-theme .admin-dialog textarea,
body.soft-theme .admin-dialog select,
body.soft-theme .editor-preview {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}
body.soft-theme .admin-dialog input::placeholder,
body.soft-theme .admin-dialog textarea::placeholder { color: #718092; }
body.soft-theme .admin-dialog .primary-button {
  border-color: #527b13;
  background: #527b13;
  color: #fff;
}
body.soft-theme .admin-dialog .primary-button:hover { background: #41620e; }
body.soft-theme .admin-post-row { border-color: var(--line); }
body.soft-theme .admin-post-row small,
body.soft-theme .list-heading { color: var(--muted); }
body.soft-theme .markdown-editor { border-color: var(--line); background: #fff; }
body.soft-theme .markdown-menubar,
body.soft-theme .markdown-toolbar,
body.soft-theme .markdown-asset-tools { border-color: var(--line); background: #f2f5f8; }
body.soft-theme .markdown-brand,
body.soft-theme .markdown-menu,
body.soft-theme .markdown-tool-group button,
body.soft-theme .markdown-source-label { color: #405366 !important; }
body.soft-theme .markdown-menu[open] summary,
body.soft-theme .markdown-menu summary:hover,
body.soft-theme .markdown-tool-group button:hover { background: #e4edf2; color: var(--blue); }
body.soft-theme .markdown-menu-items { border-color: var(--line); background: #fff; box-shadow: 0 12px 30px rgba(31, 48, 65, .14); }
body.soft-theme .markdown-menu-items button { color: var(--ink); }
body.soft-theme .markdown-menu-items button:hover { background: #edf4f5; color: var(--blue); }
body.soft-theme .markdown-menu-items kbd,
body.soft-theme .markdown-mode,
body.soft-theme .markdown-shortcut-hint,
body.soft-theme .markdown-source-label small { color: #718092; }
body.soft-theme .markdown-tool-group button,
body.soft-theme .markdown-asset-tools button { border-color: #d1dce5; background: #fff; color: #405366; }
body.soft-theme .markdown-editor textarea#post-content { background: #fff; color: #263748; }
body.soft-theme .markdown-editor textarea#post-content::placeholder { color: #718092; }
body.soft-theme .markdown-code { border-color: var(--line); background: #f0f3f6; color: #263748; }
body.soft-theme .preview-content :not(pre) > code,
body.soft-theme .dialog-content :not(pre) > code { border-color: var(--line); background: #edf2f5; color: #496c12; }
body.soft-theme .markdown-table-wrap table { color: var(--body-copy); }
body.soft-theme .markdown-table-wrap th { background: #edf3f5; color: #496c12; }
body.soft-theme .markdown-table-wrap td,
body.soft-theme .markdown-table-wrap th { border-color: var(--line); }
body.soft-theme .admin-window-chip {
  border-color: #c7d7df;
  background: linear-gradient(110deg, rgba(255, 255, 255, .98), rgba(239, 245, 248, .98));
  color: var(--ink);
}
body.soft-theme .admin-window-chip-title { color: var(--ink); }
body.soft-theme .admin-window-chip-icon { border-color: #527b1355; background: #edf5e4; color: var(--lime); }

.media-center-publish-control{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 18px;padding:14px 17px;border:1px solid rgba(145,87,194,.42);border-radius:12px;background:linear-gradient(115deg,rgba(111,62,153,.15),rgba(31,31,43,.82))}.media-center-publish-copy{display:grid;gap:5px}.media-center-publish-control label{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:9px;width:max-content;max-width:100%;text-align:left;font-weight:650;color:var(--body-copy,#eeeaf5);cursor:pointer}.media-center-publish-control input{width:16px;height:16px;flex:0 0 16px;margin:0;accent-color:#a855f7}.media-center-publish-control small{padding-left:25px;color:var(--muted,#9c98aa);font-size:12px}.media-center-publish-control small[data-visibility="public"]{color:#46b99a}.media-center-publish-control>a{color:#d3a7ff;white-space:nowrap;font-size:13px;text-decoration:none}.media-center-publish-control>a:hover{text-decoration:underline}
@media(max-width:640px){.media-center-publish-control{align-items:flex-start;flex-direction:column}.media-center-publish-control small{line-height:1.5}}
.preview-content a{color:#67e6ed;text-decoration:underline;text-underline-offset:2px}.preview-content a:hover{color:#a6f2f4}body.soft-theme .preview-content a{color:#087e8b}

