:root {
  --romanticism-font: "Noto Serif SC", "Songti SC", STSong, "Source Han Serif SC", serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: seashell; color: #252525; font-family: var(--romanticism-font); }
button, input, textarea, select { font: inherit; }
button { color: inherit; }

.romanticism-site {
  --surface: seashell;
  --surface-raised: #fff;
  --ink: #252525;
  --ink-muted: #6e6e6e;
  --glass: rgb(255 255 255 / 52%);
  --glass-strong: rgb(255 255 255 / 76%);
  --border: rgb(128 128 128 / 24%);
  --accent: cornflowerblue;
  --pointer-x: 50vw;
  --pointer-y: 50vh;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--surface);
  color: var(--ink);
  transition: background-color .3s ease, color .3s ease;
}

.romanticism-site.is-dark {
  --surface: #303030;
  --surface-raised: #3c3c3c;
  --ink: #f0f0f0;
  --ink-muted: #bdbdbd;
  --glass: rgb(58 58 58 / 58%);
  --glass-strong: rgb(58 58 58 / 78%);
  --border: rgb(180 180 180 / 26%);
}

.glass {
  border: 1px solid var(--border);
  background: var(--glass);
  backdrop-filter: saturate(150%) blur(7px);
  -webkit-backdrop-filter: saturate(150%) blur(7px);
}

.scroll-progress {
  position: fixed;
  z-index: 210;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #8ad8ff, #8ba8ff 42%, #ef9fd6 72%, #ffe6a2);
  box-shadow: 0 0 14px rgb(121 192 255 / 75%);
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: left center;
}
.pointer-aurora {
  position: fixed;
  z-index: 45;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(280px circle at var(--pointer-x) var(--pointer-y), rgb(130 194 255 / 12%), transparent 72%);
  mix-blend-mode: screen;
}
.back-to-top {
  position: fixed;
  z-index: 45;
  right: 28px;
  bottom: 28px;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(.9);
  transition: opacity .25s ease, transform .25s ease, border-color .25s ease, color .25s ease;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
.back-to-top:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px) scale(1.04); }
.back-to-top svg { width: 21px; height: 21px; }
.back-to-top span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

.romanticism-appbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  min-height: 62px;
  padding: 0 clamp(18px, 3vw, 54px);
  border-width: 0 0 1px;
  transition: min-height .3s ease, background-color .3s ease, box-shadow .3s ease;
}
.romanticism-appbar.is-scrolled { min-height: 56px; background: var(--glass-strong); box-shadow: 0 8px 30px rgb(22 34 45 / 12%); }

.appbar-icon,
.site-title {
  border: 0;
  background: transparent;
  cursor: pointer;
}
.appbar-icon { color: inherit; text-decoration: none; }

.appbar-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  transition: background-color .2s ease, color .2s ease;
}

.appbar-icon:hover { background: rgb(128 128 128 / 16%); color: var(--accent); }
.appbar-icon svg { width: 21px; height: 21px; stroke-width: 2; }
.site-title { margin-left: 14px; color: inherit; font-size: 20px; font-weight: 900; letter-spacing: .04em; text-decoration: none; }
.site-title:hover { color: var(--accent); }
.appbar-spacer { flex: 1; }
.appbar-write-button { display: inline-flex; min-height: 38px; align-items: center; gap: 8px; margin-right: 12px; padding: 7px 12px; border: 2px solid var(--border); border-radius: 8px; background: transparent; cursor: pointer; font-size: 13px; font-weight: 900; }
.appbar-write-button:hover { border-color: var(--accent); color: var(--accent); }
.appbar-write-button svg { width: 17px; }
.owner-badge { display: inline-flex; align-items: center; gap: 7px; margin-right: 12px; color: var(--ink-muted); font-size: 12px; }
.owner-badge svg { width: 15px; }
.theme-sun { display: none; }
.is-dark [data-theme-toggle] > svg { display: none; }
.is-dark [data-theme-toggle] .theme-sun,
.is-dark [data-theme-toggle] .theme-sun svg { display: block; }

.index-hero,
.post-hero {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  color: white;
  background-position: calc(50% + var(--hero-pan-x, 0px)) calc(50% + var(--hero-pan-y, 0px));
  background-repeat: no-repeat;
  background-size: cover;
  isolation: isolate;
  transition: background-position .45s cubic-bezier(.2, .8, .2, 1);
}

.index-hero {
  min-height: 420px;
  height: 85vh;
  background-image: var(--index-hero);
}

.post-hero { min-height: 600px; height: 78vh; }
.image-shade { position: absolute; z-index: -2; inset: 0; background: linear-gradient(180deg, rgb(14 24 38 / 20%), rgb(8 19 35 / 38%)); }
.index-hero .image-shade { background: linear-gradient(180deg, rgb(12 40 55 / 6%), rgb(8 25 47 / 28%)); }
.hero-atmosphere { position: absolute; z-index: -1; inset: 0; overflow: hidden; pointer-events: none; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(3px); mix-blend-mode: screen; opacity: .72; }
.hero-orb-one { top: 14%; left: 11%; width: clamp(90px, 14vw, 210px); aspect-ratio: 1; background: radial-gradient(circle at 35% 35%, rgb(151 227 255 / 58%), rgb(93 139 255 / 9%) 64%, transparent 72%); animation: ocean-orb-one 11s ease-in-out infinite alternate; }
.hero-orb-two { right: 8%; bottom: 10%; width: clamp(120px, 19vw, 280px); aspect-ratio: 1; background: radial-gradient(circle at 45% 45%, rgb(238 160 226 / 40%), rgb(97 187 255 / 8%) 66%, transparent 73%); animation: ocean-orb-two 14s ease-in-out infinite alternate; }
.hero-orb-three { top: 33%; right: 31%; width: clamp(54px, 7vw, 100px); aspect-ratio: 1; background: radial-gradient(circle, rgb(255 239 173 / 40%), transparent 68%); animation: ocean-orb-three 8s ease-in-out infinite alternate; }
.hero-stars { position: absolute; inset: 0; background-image: radial-gradient(circle, rgb(255 255 255 / 72%) 0 1px, transparent 1.5px), radial-gradient(circle, rgb(164 220 255 / 55%) 0 1px, transparent 1.5px); background-position: 0 0, 53px 79px; background-size: 170px 170px, 230px 230px; opacity: .34; animation: star-drift 28s linear infinite; mask-image: linear-gradient(to bottom, black, transparent 88%); }
.index-hero-copy,
.post-hero-copy { position: relative; z-index: 1; width: min(850px, calc(100% - 40px)); text-align: center; text-shadow: 0 1px 4px black; transform: translate3d(var(--hero-copy-x, 0), var(--hero-copy-y, 0), 0); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 18px; padding: 6px 10px; border: 1px solid rgb(255 255 255 / 38%); border-radius: 999px; background: rgb(15 35 56 / 22%); font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 10px; font-weight: 800; letter-spacing: .18em; text-shadow: none; backdrop-filter: blur(8px); }
.hero-eyebrow::before { width: 6px; height: 6px; border-radius: 50%; background: #aee7ff; box-shadow: 0 0 12px #8bd9ff; content: ''; animation: hero-dot-pulse 2.4s ease-in-out infinite; }
.index-hero-copy p { margin: 0 0 16px; font-size: 15px; letter-spacing: .16em; }
.index-hero-copy h1 { margin: 0; font-size: clamp(31px, 4vw, 54px); font-weight: 900; letter-spacing: .1em; }
.hero-title-character { display: inline-block; opacity: 0; transform: translateY(22px) rotateX(-36deg); animation: character-rise .72s cubic-bezier(.16, 1, .3, 1) forwards; animation-delay: calc(.18s + var(--character-index) * 55ms); }
.post-hero-copy h1 { margin: 0 0 18px; font-size: clamp(36px, 5vw, 68px); font-weight: 900; }
.post-hero-copy p { margin: 0; font-size: clamp(14px, 1.5vw, 18px); font-weight: 700; }
.hero-scroll-cue { position: absolute; z-index: 2; bottom: 202px; left: 50%; display: grid; justify-items: center; gap: 9px; color: white; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 9px; font-weight: 800; letter-spacing: .18em; text-decoration: none; text-shadow: 0 1px 3px rgb(0 0 0 / 70%); transform: translateX(-50%); }
.hero-scroll-cue i { display: block; width: 19px; height: 30px; border: 1px solid rgb(255 255 255 / 58%); border-radius: 12px; background: rgb(20 38 56 / 15%); backdrop-filter: blur(6px); }
.hero-scroll-cue i::after { display: block; width: 3px; height: 7px; margin: 6px auto 0; border-radius: 3px; background: white; box-shadow: 0 0 8px white; content: ''; animation: scroll-drop 1.8s ease-in-out infinite; }

.theme-surface { position: relative; background: var(--surface); transition: background-color .3s ease; }
.home-surface { min-height: 0; padding: 0 20px 92px; }
.post-surface { min-height: 520px; padding: 82px 20px 100px; }
.post-feed { position: relative; z-index: 2; display: grid; gap: 20px; width: min(820px, 100%); margin: -180px auto 0; }

.romanticism-post-card {
  --card-rotate-x: 0deg;
  --card-rotate-y: 0deg;
  --card-light-x: 50%;
  --card-light-y: 50%;
  position: relative;
  display: grid;
  width: 100%;
  min-height: 270px;
  overflow: hidden;
  place-items: center;
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background-position: center;
  background-size: cover;
  color: white;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  box-shadow: none;
  transform: perspective(1100px) rotateX(var(--card-rotate-x)) rotateY(var(--card-rotate-y)) translateY(0) scale(1);
  transform-style: preserve-3d;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), border-radius .45s ease, box-shadow .35s ease;
}

.romanticism-post-card::before { position: absolute; z-index: 2; inset: 0; background: radial-gradient(420px circle at var(--card-light-x) var(--card-light-y), rgb(183 230 255 / 25%), transparent 48%); content: ''; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.romanticism-post-card::after { position: absolute; z-index: 2; top: -20%; bottom: -20%; left: -45%; width: 28%; background: linear-gradient(90deg, transparent, rgb(255 255 255 / 24%), transparent); content: ''; opacity: 0; pointer-events: none; transform: skewX(-18deg); }
.romanticism-post-card:hover { z-index: 3; border-radius: 24px; box-shadow: 0 28px 60px rgb(17 36 58 / 30%); transform: perspective(1100px) rotateX(var(--card-rotate-x)) rotateY(var(--card-rotate-y)) translateY(-7px) scale(1.018); }
.romanticism-post-card:hover::before { opacity: 1; }
.romanticism-post-card:hover::after { opacity: 1; animation: card-sheen .9s ease both; }
.post-card-shade { position: absolute; inset: 0; background: rgb(20 20 20 / 35%); transition: background-color .3s ease; }
.romanticism-post-card:hover .post-card-shade { background: rgb(20 20 20 / 48%); }
.post-card-copy { position: relative; z-index: 1; display: grid; justify-items: center; max-width: 660px; text-shadow: 0 1px 3px black; }
.draft-badge { margin-bottom: 10px; padding: 4px 9px; border: 1px solid rgb(255 255 255 / 72%); border-radius: 8px; background: rgb(0 0 0 / 24%); font-size: 12px; font-weight: 900; letter-spacing: .12em; }
.post-card-copy strong { border-bottom: 2px solid transparent; font-size: clamp(25px, 3vw, 34px); font-weight: 900; line-height: 1.45; transition: border-color .3s ease; }
.romanticism-post-card:hover strong { border-color: currentColor; }
.post-card-copy small { margin-top: 12px; font-size: 14px; font-weight: 700; }
.post-card-copy em { max-width: 560px; margin-top: 22px; font-size: 14px; font-style: normal; line-height: 1.8; opacity: .92; }

.motion-ready .reveal-on-scroll { opacity: 0; filter: blur(10px); translate: 0 30px; }
.motion-ready .reveal-on-scroll.is-revealed { opacity: 1; filter: blur(0); translate: 0 0; transition: opacity .7s ease, filter .7s ease, translate .7s cubic-bezier(.2, .8, .2, 1); }

@keyframes ocean-orb-one { to { opacity: .45; transform: translate3d(42px, 22px, 0) scale(1.14); } }
@keyframes ocean-orb-two { to { opacity: .56; transform: translate3d(-38px, -24px, 0) scale(.9); } }
@keyframes ocean-orb-three { to { opacity: .26; transform: translate3d(20px, -34px, 0) scale(1.25); } }
@keyframes star-drift { to { background-position: 170px 86px, -177px 194px; } }
@keyframes hero-dot-pulse { 50% { opacity: .45; transform: scale(.7); } }
@keyframes character-rise { to { opacity: 1; transform: translateY(0) rotateX(0); } }
@keyframes scroll-drop { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(10px); } }
@keyframes card-sheen { from { left: -45%; } to { left: 125%; } }

.filter-notice,
.empty-card {
  border-radius: 14px;
}

.filter-notice { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; font-size: 14px; }
.sync-notice { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border-radius: 14px; color: var(--ink-muted); font-size: 13px; }
.sync-notice.is-error { color: #a23b31; }
.is-dark .sync-notice.is-error { color: #ffaaa1; }
.sync-notice button { padding: 6px 9px; border: 1px solid currentColor; border-radius: 6px; background: transparent; cursor: pointer; }
.filter-notice button,
.empty-card button,
.reading-tools button,
.search-row button { border: 2px solid var(--border); border-radius: 8px; background: transparent; cursor: pointer; font-weight: 700; }
.filter-notice button { padding: 7px 10px; }
.filter-notice button:hover,
.empty-card button:hover,
.reading-tools button:hover,
.search-row button:hover { border-color: var(--accent); color: var(--accent); }

.empty-card { display: grid; min-height: 280px; place-content: center; justify-items: center; padding: 40px; text-align: center; }
.empty-card svg { width: 28px; }
.empty-card h2 { margin: 18px 0 8px; font-size: 26px; }
.empty-card p { margin: 0; color: var(--ink-muted); }
.empty-card button { margin-top: 22px; padding: 8px 14px; }

.reading-tools {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px;
  border-radius: 20px;
}
.reading-tools button { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; }
.reading-tools a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 2px solid var(--border); border-radius: 8px; color: inherit; font-weight: 700; text-decoration: none; }
.reading-tools a:hover { border-color: var(--accent); color: var(--accent); }
.reading-tools span { display: inline-flex; align-items: center; gap: 7px; padding-right: 8px; font-size: 13px; font-weight: 700; }
.reading-tools svg { width: 16px; }

.romanticism-article { width: min(820px, 100%); margin: 0 auto; }
.romanticism-article > p { margin: 0 0 1.5em; font-size: clamp(17px, 1.8vw, 20px); line-height: 2; text-align: justify; }
.romanticism-article .post-summary { position: relative; margin-bottom: 42px; font-size: 22px; font-weight: 900; }
.romanticism-article .post-summary::before { position: absolute; z-index: -1; bottom: 2px; left: 0; width: 66px; height: 13px; border-radius: 3px 8px 10px 6px; background: lightblue; content: ''; opacity: .5; transform: skew(-35deg); }
.romanticism-article > hr { width: 66%; margin: 0 auto 50px; border: 0; border-top: 6px dashed rgb(158 158 158 / 20%); }
.markdown-body { font-size: clamp(17px, 1.8vw, 20px); line-height: 2; }
.markdown-body p { margin: 0 0 1.5em; text-align: justify; }
.markdown-body h2,
.markdown-body h3,
.markdown-body h4 { margin: 2em 0 .8em; line-height: 1.5; }
.markdown-body blockquote { margin: 1.8em 0; padding: 2px 0 2px 20px; border-left: 4px solid var(--accent); color: var(--ink-muted); }
.markdown-body pre { max-width: 100%; overflow-x: auto; margin: 1.8em 0; padding: 22px; border: 1px solid rgb(255 255 255 / 8%); border-radius: 14px; background: #22272e; color: #adbac7; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 14px; line-height: 1.75; tab-size: 2; box-shadow: 0 16px 38px rgb(17 22 27 / 18%); scrollbar-color: #59636e #22272e; }
.markdown-body code { padding: .12em .32em; border-radius: 4px; background: rgb(128 128 128 / 12%); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; }
.markdown-body pre code { display: block; min-width: max-content; padding: 0 !important; background: transparent !important; color: inherit; font-size: inherit; }
.code-block { max-width: 100%; overflow: hidden; margin: 1.8em 0; border: 1px solid rgb(255 255 255 / 8%); border-radius: 14px; background: #22272e; box-shadow: 0 16px 38px rgb(17 22 27 / 18%); }
.code-block-toolbar { display: flex; min-height: 46px; align-items: center; justify-content: space-between; gap: 16px; padding: 7px 9px 7px 18px; border-bottom: 1px solid rgb(255 255 255 / 8%); background: #2d333b; color: #9da7b3; }
.code-block-language { overflow: hidden; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.code-copy-button { display: inline-flex; min-height: 34px; align-items: center; gap: 7px; padding: 6px 10px; border: 1px solid rgb(255 255 255 / 12%); border-radius: 8px; background: #373e47; color: #cdd9e5; cursor: pointer; font-family: var(--romanticism-font); font-size: 12px; font-weight: 800; transition: border-color .2s ease, background-color .2s ease, color .2s ease; }
.code-copy-button:hover { border-color: #6cb6ff; background: #444c56; color: white; }
.code-copy-button:disabled { cursor: default; }
.code-copy-button[data-state='copied'] { border-color: #57ab5a; color: #8ddb8c; }
.code-copy-button[data-state='failed'] { border-color: #e5534b; color: #f47067; }
.code-copy-button svg { width: 16px; height: 16px; }
.markdown-body .code-block pre { margin: 0; padding: 22px; border: 0; border-radius: 0; box-shadow: none; }
.markdown-body .code-block pre:focus-visible { outline: 2px solid #6cb6ff; outline-offset: -2px; }
.markdown-body a { color: var(--accent); text-underline-offset: 4px; }
.markdown-body table { width: 100%; margin: 1.5em 0; border-collapse: collapse; font-size: 15px; }
.markdown-body th,
.markdown-body td { padding: 9px 12px; border: 1px solid var(--border); text-align: left; }
.copyright-panel { position: relative; margin-top: 72px; padding: 34px 28px 28px; border-radius: 14px; text-align: center; }
.copyright-panel > span { position: absolute; bottom: 12px; left: 18px; font-size: 54px; opacity: .08; }
.copyright-panel p { margin: 0; color: var(--ink-muted); font-size: 14px; line-height: 1.8; }

.romanticism-footer { display: grid; justify-items: center; gap: 18px; padding: 42px 20px 48px; background: var(--surface); color: var(--ink); text-align: center; }
.romanticism-footer strong { font-size: 16px; }

/* Full-page anime wallpaper with framed glass content. */
.romanticism-site {
  --page-tint: rgb(255 239 246 / 30%);
  --panel-bg: rgb(255 255 255 / 58%);
  --panel-strong: rgb(255 255 255 / 72%);
  --panel-border: rgb(255 255 255 / 62%);
  --panel-shadow: 0 24px 70px rgb(50 39 62 / 18%);
  background: linear-gradient(var(--page-tint), var(--page-tint)), var(--site-wallpaper) center / cover fixed no-repeat;
}
.romanticism-site.is-dark {
  --page-tint: rgb(8 12 22 / 48%);
  --panel-bg: rgb(18 22 31 / 66%);
  --panel-strong: rgb(20 24 34 / 78%);
  --panel-border: rgb(255 255 255 / 16%);
  --panel-shadow: 0 26px 80px rgb(0 0 0 / 38%);
}
.romanticism-site > main { position: relative; z-index: 1; padding-top: 96px; }
.romanticism-appbar {
  inset: 16px clamp(16px, 3vw, 52px) auto;
  min-height: 64px;
  border-width: 1px;
  border-color: var(--panel-border);
  border-radius: 18px;
  background: var(--panel-strong);
  box-shadow: 0 16px 48px rgb(35 38 54 / 18%);
  backdrop-filter: saturate(145%) blur(18px);
  -webkit-backdrop-filter: saturate(145%) blur(18px);
}
.romanticism-appbar.is-scrolled { min-height: 58px; background: var(--panel-strong); box-shadow: 0 18px 50px rgb(22 27 42 / 24%); }
.glass-frame {
  width: min(1180px, calc(100% - 48px));
  overflow: hidden;
  margin: 0 auto;
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  box-shadow: var(--panel-shadow);
}
.index-hero { min-height: 440px; height: clamp(470px, 66vh, 650px); }
.post-hero { min-height: 340px; height: clamp(360px, 50vh, 500px); }
.hero-scroll-cue { bottom: 28px; }
.theme-surface { background: transparent; }
.home-surface,
.post-surface { min-height: 0; padding: 28px 24px 72px; }
.glass-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 20px;
  width: min(1180px, 100%);
  margin: 0 auto;
  align-items: start;
}
.post-feed { width: 100%; margin: 0; }
.glass-panel,
.glass-content-panel {
  border: 1px solid var(--panel-border);
  background: var(--panel-bg);
  box-shadow: var(--panel-shadow);
  backdrop-filter: saturate(135%) blur(19px);
  -webkit-backdrop-filter: saturate(135%) blur(19px);
}
.filter-notice,
.empty-card { border-radius: 20px; }
.romanticism-post-card {
  min-height: 250px;
  border-color: var(--panel-border);
  box-shadow: 0 18px 48px rgb(34 40 57 / 20%);
}
.post-card-copy { z-index: 3; }
.glass-sidebar { display: grid; gap: 18px; }
.glass-sidebar > section { border-radius: 22px; }
.sidebar-profile { display: grid; justify-items: center; padding: 24px 20px 22px; text-align: center; }
.sidebar-profile-avatar { display: block; width: 112px; height: 112px; border: 4px solid rgb(255 255 255 / 82%); border-radius: 22px; background: var(--profile-avatar) center / cover; box-shadow: 0 14px 32px rgb(23 26 43 / 24%); }
.sidebar-profile-kicker { margin-top: 18px; color: var(--accent); font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 9px; font-weight: 900; letter-spacing: .15em; }
.sidebar-profile h2 { margin: 7px 0 4px; font-size: 25px; }
.sidebar-profile > p { margin: 0; color: var(--ink-muted); font-size: 13px; line-height: 1.7; }
.sidebar-stats { display: grid; width: 100%; grid-template-columns: repeat(3, 1fr); margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--border); }
.sidebar-stats span { display: grid; gap: 3px; color: var(--ink-muted); font-size: 10px; }
.sidebar-stats strong { color: var(--ink); font-size: 18px; }
.sidebar-taxonomy { padding: 19px 18px 17px; }
.sidebar-taxonomy h2 { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; font-size: 17px; }
.sidebar-taxonomy h2::before { width: 4px; height: 20px; border-radius: 4px; background: linear-gradient(#80ccff, #e999cf); content: ''; }
.sidebar-taxonomy h2 svg { width: 17px; height: 17px; color: var(--accent); }
.sidebar-link-list { display: grid; gap: 5px; }
.sidebar-link-list a { display: flex; min-height: 38px; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 9px; border-radius: 10px; color: inherit; font-size: 13px; text-decoration: none; transition: background-color .2s ease, color .2s ease, transform .2s ease; }
.sidebar-link-list a:hover { background: rgb(128 128 128 / 14%); color: var(--accent); transform: translateX(3px); }
.sidebar-link-list b { display: grid; min-width: 24px; height: 24px; place-items: center; border-radius: 9px; background: color-mix(in srgb, var(--accent) 20%, transparent); font-size: 11px; }
.sidebar-empty { padding: 8px; color: var(--ink-muted); font-size: 12px; }
.post-page-grid { grid-template-columns: minmax(0, 1fr) 290px; }
.romanticism-article.glass-content-panel { width: 100%; margin: 0; padding: clamp(30px, 5vw, 58px); border-radius: 24px; }
.copyright-panel { background: color-mix(in srgb, var(--panel-strong) 74%, transparent); }
.reading-tools,
.floating-filter,
.back-to-top { background: var(--panel-strong); backdrop-filter: saturate(145%) blur(16px); -webkit-backdrop-filter: saturate(145%) blur(16px); }
.reading-tools { position: relative; bottom: auto; left: auto; width: min(1180px, 100%); margin: 0 auto 18px; }
.romanticism-footer {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto 24px;
  padding: 30px 20px;
  border: 1px solid var(--panel-border);
  border-radius: 22px;
  background: var(--panel-bg);
  box-shadow: var(--panel-shadow);
  backdrop-filter: saturate(135%) blur(18px);
  -webkit-backdrop-filter: saturate(135%) blur(18px);
}

.drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: 70;
  border: 0;
  background: rgb(0 0 0 / 38%);
  cursor: default;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(14px);
  transition: opacity .3s ease;
}
.drawer-scrim.is-open { opacity: 1; pointer-events: auto; }
.romanticism-drawer {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 80;
  width: min(320px, 88vw);
  overflow-y: auto;
  background: var(--surface-raised);
  box-shadow: 8px 0 34px rgb(0 0 0 / 22%);
  transform: translateX(-105%);
  transition: transform .32s ease;
}
.romanticism-drawer.is-open { transform: translateX(0); }
.drawer-cover { position: relative; display: flex; height: 190px; flex-direction: column; justify-content: flex-end; padding: 24px; overflow: hidden; color: white; background: var(--drawer-cover) center / cover; text-shadow: 0 1px 3px black; }
.drawer-cover::after { position: absolute; inset: 0; background: rgb(0 0 0 / 26%); content: ''; }
.drawer-avatar { position: relative; z-index: 1; display: block; width: 64px; height: 64px; margin-bottom: 13px; border: 3px solid white; border-radius: 50%; background: var(--drawer-avatar) center / cover; box-shadow: 0 5px 10px rgb(0 0 0 / 53%); }
.drawer-cover strong,
.drawer-cover span { position: relative; z-index: 1; }
.drawer-cover strong { font-size: 18px; }
.drawer-cover span { margin-top: 3px; font-size: 12px; opacity: .9; }
.drawer-cover > button { position: absolute; z-index: 2; top: 12px; right: 12px; display: grid; width: 40px; height: 40px; place-items: center; border: 0; border-radius: 50%; background: rgb(0 0 0 / 22%); color: white; cursor: pointer; }
.drawer-cover > button svg { width: 19px; }
.drawer-nav { display: grid; gap: 6px; padding: 18px 14px 34px; }
.drawer-nav button,
.drawer-nav a { display: flex; width: 100%; min-height: 46px; align-items: center; gap: 16px; padding: 10px 14px; border: 0; border-radius: 8px; background: transparent; color: inherit; cursor: pointer; text-align: left; text-decoration: none; }
.drawer-nav button:hover,
.drawer-nav button.is-active,
.drawer-nav a:hover { background: rgb(128 128 128 / 16%); color: var(--accent); }
.drawer-nav button svg,
.drawer-nav a svg { width: 19px; }
.drawer-nav button b,
.drawer-nav a b { margin-left: auto; font-size: 12px; }
.drawer-section { display: grid; gap: 4px; padding-top: 8px; }
.drawer-section + .drawer-section { margin-top: 8px; border-top: 1px solid var(--border); }
.drawer-section-title { display: flex; align-items: center; gap: 16px; min-height: 44px; padding: 10px 14px; color: var(--ink-muted); font-size: 13px; font-weight: 900; }
.drawer-section-title svg { width: 19px; }
.drawer-section button,
.drawer-section a { padding-left: 49px; }

.floating-filter {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 40;
  display: flex;
  width: 42px;
  height: 42px;
  align-items: center;
  overflow: hidden;
  border-radius: 22px;
  transition: width .35s ease;
}
.floating-filter:hover,
.floating-filter.is-open { width: min(360px, calc(100vw - 60px)); }
.floating-filter-trigger { display: grid; width: 40px; min-width: 40px; height: 40px; place-items: center; border: 0; background: transparent; cursor: pointer; }
.floating-filter-trigger svg { width: 21px; }
.floating-filter-options { display: flex; align-items: center; gap: 3px; white-space: nowrap; opacity: 0; transform: translateX(-35%); transition: opacity .35s ease, transform .35s ease; }
.floating-filter:hover .floating-filter-options,
.floating-filter.is-open .floating-filter-options { opacity: 1; transform: translateX(0); }
.floating-filter-options button { padding: 6px 8px; border: 0; border-radius: 6px; background: transparent; cursor: pointer; }
.floating-filter-options button:hover { background: rgb(128 128 128 / 18%); }
.floating-filter-options button.is-active { color: var(--accent); font-weight: 900; }

.search-overlay { position: fixed; inset: 0; z-index: 100; display: grid; width: 100%; max-width: none; height: 100%; max-height: none; place-items: center; margin: 0; padding: 20px; border: 0; background: rgb(0 0 0 / 42%); color: var(--ink); backdrop-filter: blur(18px); }
.search-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; cursor: default; }
.search-dialog { position: relative; z-index: 1; width: min(720px, 100%); padding: clamp(26px, 5vw, 52px); border-radius: 14px; background: var(--glass-strong); box-shadow: 0 24px 70px rgb(0 0 0 / 24%); }
.search-close { position: absolute; top: 14px; right: 14px; display: grid; width: 40px; height: 40px; place-items: center; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.search-close:hover { background: rgb(128 128 128 / 16%); }
.search-close svg { width: 20px; }
.search-dialog h2,
.search-tags h3 { display: flex; align-items: center; gap: 10px; }
.search-dialog h2 { margin: 0 0 28px; font-size: 26px; }
.search-dialog h2 svg,
.search-tags h3 svg { width: 22px; }
.search-dialog label { display: block; margin-bottom: 10px; color: var(--ink-muted); font-size: 13px; }
.search-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.search-row input { min-width: 0; height: 48px; padding: 0 14px; border: 0; border-bottom: 1px solid var(--border); outline: 0; background: transparent; color: var(--ink); }
.search-row input:focus { border-color: var(--accent); }
.search-row button { padding: 0 20px; }
.search-tags { margin-top: 34px; }
.search-tags h3 { font-size: 17px; }
.search-tags > button { margin: 0 7px 7px 0; padding: 8px 11px; border: 3px solid rgb(128 128 128 / 28%); border-radius: 10px; background: transparent; cursor: pointer; }
.search-tags > button:hover { border-color: var(--accent); color: var(--accent); }
.search-tags > button span { color: var(--ink-muted); }
.search-count { display: flex; align-items: center; gap: 8px; margin: 24px 0 0; color: var(--ink-muted); font-size: 13px; }
.search-count svg { width: 16px; }

.editor-overlay { position: fixed; inset: 0; z-index: 120; display: grid; width: 100%; max-width: none; height: 100%; max-height: none; place-items: center; margin: 0; padding: 20px; border: 0; background: rgb(0 0 0 / 46%); color: var(--ink); backdrop-filter: blur(18px); }
.editor-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; cursor: default; }
.diary-editor { position: relative; z-index: 1; width: min(980px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; border-radius: 14px; background: var(--glass-strong); box-shadow: 0 24px 80px rgb(0 0 0 / 34%); }
.editor-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 30px 34px 22px; border-bottom: 1px solid var(--border); }
.editor-header span { color: var(--accent); font-size: 11px; font-weight: 900; letter-spacing: .18em; }
.editor-header h2 { margin: 7px 0 0; font-size: clamp(25px, 3vw, 38px); font-weight: 900; }
.editor-header > button { display: grid; width: 42px; height: 42px; place-items: center; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.editor-header > button:hover { background: rgb(128 128 128 / 16%); }
.editor-header svg { width: 21px; }
.diary-editor form { padding: 28px 34px 32px; }
.editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(160px, .42fr); gap: 22px; }
.editor-title-field { grid-column: 1; }
.editor-wide-field { grid-column: 1 / -1; }
.editor-field { display: grid; align-content: start; gap: 9px; }
.editor-field > span { display: flex; align-items: center; gap: 7px; color: var(--ink-muted); font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.editor-field > span svg { width: 16px; }
.editor-field input,
.editor-field textarea,
.editor-field select { width: 100%; border: 1px solid var(--border); border-radius: 8px; outline: 0; background: color-mix(in srgb, var(--surface-raised) 72%, transparent); color: var(--ink); transition: border-color .2s ease, box-shadow .2s ease; }
.editor-field input,
.editor-field select { min-height: 46px; padding: 0 13px; }
.editor-field textarea { min-height: 300px; resize: vertical; padding: 16px; font-size: 17px; line-height: 1.9; }
.editor-field input:focus,
.editor-field textarea:focus,
.editor-field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.cover-picker { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 14px; align-items: center; }
.cover-preview { display: block; width: 180px; height: 84px; border: 1px solid var(--border); border-radius: 8px; background-position: center; background-size: cover; }
.editor-error { margin: 22px 0 0; padding: 12px 14px; border: 1px solid rgb(176 65 52 / 42%); border-radius: 8px; background: rgb(176 65 52 / 10%); color: #9c3027; font-size: 13px; }
.is-dark .editor-error { color: #ffaaa1; }
.editor-actions { display: flex; align-items: center; gap: 10px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border); }
.editor-actions button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 8px; padding: 8px 15px; border: 2px solid var(--border); border-radius: 8px; background: transparent; cursor: pointer; font-weight: 900; }
.editor-actions button:disabled { cursor: wait; opacity: .55; }
.editor-actions svg { width: 17px; }
.editor-spacer { flex: 1; }
.editor-actions .delete-entry-button { border-color: rgb(176 65 52 / 42%); color: #a33a31; }
.is-dark .editor-actions .delete-entry-button { color: #ffaaa1; }
.editor-actions .save-entry-button { border-color: var(--accent); background: var(--accent); color: white; }
.editor-actions .save-entry-button:hover { filter: brightness(.94); }
.save-notice { position: fixed; right: 24px; bottom: 24px; z-index: 140; display: flex; align-items: center; gap: 20px; padding: 13px 14px 13px 18px; border-radius: 10px; background: var(--glass-strong); box-shadow: 0 12px 36px rgb(0 0 0 / 18%); font-size: 13px; font-weight: 900; }
.save-notice button { display: grid; width: 30px; height: 30px; place-items: center; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.save-notice button:hover { background: rgb(128 128 128 / 16%); }
.save-notice svg { width: 16px; }

.clear-in { animation: clear-in .5s ease; }
@keyframes clear-in { from { filter: blur(20px); opacity: .7; } to { filter: blur(0); opacity: 1; } }

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 3px; }
::selection { background: #ecf0f1; color: cornflowerblue; }
.hero-home-link { display: inline-block; margin-top: 18px; padding: 9px 14px; border: 1px solid rgb(255 255 255 / 62%); border-radius: 8px; color: white; font-weight: 900; text-decoration: none; }

/* Daily check-in: mobile-first local study log */
.appbar-write-button { color: inherit; text-decoration: none; }
.appbar-write-button.is-active { border-color: color-mix(in srgb, var(--accent) 62%, var(--panel-border)); background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.checkin-hero {
  position: relative;
  display: grid;
  min-height: 300px;
  height: clamp(320px, 42vh, 440px);
  place-items: center;
  color: white;
  background-image: var(--index-hero);
  background-position: center 34%;
  background-size: cover;
  isolation: isolate;
}
.checkin-hero .image-shade { background: linear-gradient(135deg, rgb(7 26 48 / 34%), rgb(25 30 77 / 36%) 50%, rgb(78 41 93 / 30%)); }
.checkin-hero-copy { position: relative; z-index: 1; width: min(760px, calc(100% - 40px)); text-align: center; text-shadow: 0 2px 12px rgb(0 0 0 / 65%); }
.checkin-hero-copy > p { margin: 0 0 8px; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 12px; font-weight: 800; letter-spacing: .22em; }
.checkin-hero-copy h1 { margin: 0; font-size: clamp(44px, 7vw, 78px); line-height: 1.2; letter-spacing: .12em; }
.checkin-hero-copy > strong { display: block; margin-top: 14px; font-size: clamp(14px, 2vw, 19px); letter-spacing: .06em; }
.checkin-surface { position: relative; padding: 22px 24px 72px; }
.checkin-page { width: min(1180px, 100%); margin: 0 auto; }
.checkin-loading,
.checkin-noscript { width: min(700px, calc(100% - 20px)); margin: 30px auto; padding: 22px; border-radius: 20px; text-align: center; }
.checkin-focus-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(310px, .8fr); gap: 18px; margin-bottom: 18px; align-items: stretch; }
.today-progress-card,
.month-calendar-card,
.key-dates-card { min-width: 0; padding: 22px; border-radius: 24px; }
.month-calendar-card { grid-column: 1; grid-row: 1; }
.today-progress-card { grid-column: 2; grid-row: 1; }
.key-dates-card { margin-bottom: 18px; }
.focus-card-heading { display: flex; min-width: 0; align-items: flex-start; justify-content: space-between; gap: 14px; }
.focus-card-heading h2 { margin: 6px 0 0; font-size: clamp(20px, 2.5vw, 27px); }
.focus-card-heading > small { max-width: 250px; color: var(--ink-muted); font-family: ui-sans-serif, system-ui, sans-serif; font-size: 10px; line-height: 1.5; text-align: right; }
.today-progress-list { display: grid; gap: 8px; margin-top: 17px; }
.today-progress-line { display: grid; grid-template-columns: minmax(90px, .9fr) minmax(0, 1.6fr) auto; gap: 9px; align-items: center; padding: 10px 11px; border: 1px solid var(--border); border-radius: 13px; background: color-mix(in srgb, var(--panel-strong) 52%, transparent); font-family: ui-sans-serif, system-ui, sans-serif; }
.today-progress-line > span { color: var(--ink); font-size: 11px; font-weight: 900; }
.today-progress-line p { min-width: 0; margin: 0; color: var(--ink-muted); font-size: 9px; line-height: 1.45; }
.today-progress-line p b { color: var(--ink); }
.today-progress-line > strong { padding: 4px 7px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 13%, transparent); color: var(--accent); font-size: 9px; white-space: nowrap; }
.today-progress-line.is-complete { border-color: color-mix(in srgb, #58b990 42%, var(--border)); background: color-mix(in srgb, #72cba5 10%, var(--panel-strong)); }
.today-progress-line.is-complete > strong { background: rgb(72 172 130 / 14%); color: #318963; }
.is-dark .today-progress-line.is-complete > strong { color: #7cdbb5; }
.focus-boundary { margin: 15px 0 0; padding-top: 12px; border-top: 1px dashed var(--border); color: var(--ink-muted); font-family: ui-sans-serif, system-ui, sans-serif; font-size: 9px; line-height: 1.65; }
.calendar-heading { align-items: center; }
.calendar-actions { display: inline-flex; flex: none; overflow: hidden; border: 1px solid var(--border); border-radius: 11px; }
.calendar-actions button { min-width: 36px; min-height: 34px; padding: 6px 9px; border: 0; border-left: 1px solid var(--border); background: transparent; color: var(--ink); cursor: pointer; font-size: 10px; font-weight: 900; }
.calendar-actions button:first-child { border-left: 0; }
.calendar-actions button:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.calendar-weekdays,
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.calendar-weekdays { margin-top: 15px; color: var(--ink-muted); font-family: ui-sans-serif, system-ui, sans-serif; font-size: 9px; font-weight: 900; text-align: center; }
.calendar-grid { margin-top: 7px; }
.calendar-day { position: relative; display: grid; min-width: 0; min-height: 51px; align-content: center; justify-items: center; gap: 2px; padding: 6px 3px; border: 1px solid var(--border); border-radius: 11px; background: color-mix(in srgb, var(--panel-strong) 47%, transparent); color: var(--ink); cursor: pointer; font-family: ui-sans-serif, system-ui, sans-serif; }
.calendar-day:hover { border-color: var(--accent); transform: translateY(-1px); }
.calendar-day span { font-size: 13px; font-weight: 900; }
.calendar-day i { max-width: 100%; overflow: hidden; color: var(--ink-muted); font-size: 7px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.calendar-day.is-outside { opacity: .42; }
.calendar-day.is-selected { outline: 2px solid color-mix(in srgb, var(--accent) 65%, transparent); outline-offset: 1px; }
.calendar-day.is-today span::after { position: absolute; top: 5px; right: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); content: ''; }
.calendar-day.is-complete { border-color: rgb(77 177 134 / 46%); background: rgb(81 190 143 / 13%); }
.calendar-day.is-partial { border-color: rgb(226 166 71 / 48%); background: rgb(230 169 70 / 13%); }
.calendar-day.is-missed { border-color: rgb(203 92 111 / 38%); background: rgb(203 92 111 / 9%); }
.calendar-day.is-future { background: color-mix(in srgb, #8aa0bd 8%, transparent); }
.calendar-day.is-empty { border-style: dashed; }
.calendar-legend { display: flex; flex-wrap: wrap; gap: 7px 12px; margin-top: 12px; color: var(--ink-muted); font-family: ui-sans-serif, system-ui, sans-serif; font-size: 8px; }
.calendar-legend span::before { display: inline-block; width: 7px; height: 7px; margin-right: 4px; border-radius: 50%; background: #9aa7b8; content: ''; }
.calendar-legend .is-complete::before { background: #50b184; }
.calendar-legend .is-partial::before { background: #dfa243; }
.calendar-legend .is-missed::before { background: #c96578; }
.calendar-legend .is-empty::before { border: 1px solid #8d97a5; background: transparent; }
.countdown-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 17px; }
.countdown-event { min-width: 0; padding: 13px; border: 1px solid var(--border); border-radius: 15px; background: color-mix(in srgb, var(--panel-strong) 52%, transparent); }
.countdown-event > header { display: flex; min-width: 0; align-items: flex-start; justify-content: space-between; gap: 8px; }
.countdown-event > header > div { display: grid; min-width: 0; gap: 2px; }
.countdown-event > header strong { font-family: ui-sans-serif, system-ui, sans-serif; font-size: 13px; }
.countdown-event > header small { overflow: hidden; color: var(--ink-muted); font-family: ui-sans-serif, system-ui, sans-serif; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.countdown-event > header a,
.countdown-event > header > span { flex: none; color: var(--accent); font-family: ui-sans-serif, system-ui, sans-serif; font-size: 8px; font-weight: 900; text-decoration: none; }
.countdown-milestones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin-top: 10px; }
.countdown-milestone { display: grid; min-width: 0; gap: 2px; padding: 7px 6px; border-radius: 9px; background: rgb(128 128 128 / 7%); font-family: ui-sans-serif, system-ui, sans-serif; }
.countdown-milestone > span { color: var(--ink-muted); font-size: 7px; font-weight: 900; }
.countdown-milestone > b { overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.countdown-milestone > strong { color: var(--ink-muted); font-size: 8px; line-height: 1.35; }
.countdown-milestone > small { color: var(--ink-muted); font-size: 7px; line-height: 1.3; }
.countdown-milestone.is-soon { background: rgb(75 150 218 / 13%); }
.countdown-milestone.is-soon > strong { color: #3479b8; }
.countdown-milestone.is-urgent { background: rgb(224 153 57 / 15%); }
.countdown-milestone.is-urgent > strong { color: #b77419; }
.countdown-milestone.is-critical { background: rgb(211 78 101 / 15%); }
.countdown-milestone.is-critical > strong { color: #b83f58; }
.countdown-milestone.is-ongoing { background: rgb(74 179 130 / 15%); }
.countdown-milestone.is-ongoing > strong { color: #318963; }
.is-dark .countdown-milestone.is-soon > strong { color: #85c7ff; }
.is-dark .countdown-milestone.is-urgent > strong { color: #ffd08a; }
.is-dark .countdown-milestone.is-critical > strong { color: #ff9caf; }
.is-dark .countdown-milestone.is-ongoing > strong { color: #7cdbb5; }
.checkin-summary-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.checkin-stat { position: relative; min-width: 0; overflow: hidden; padding: 18px 17px 19px; border-radius: 20px; }
.checkin-stat::before { position: absolute; top: -34px; right: -28px; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%); content: ''; }
.checkin-stat > span { display: block; color: var(--ink-muted); font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.checkin-stat > strong { position: relative; display: block; overflow: hidden; margin-top: 8px; font-family: ui-sans-serif, system-ui, sans-serif; font-size: clamp(19px, 2.2vw, 28px); line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.checkin-stat > small { display: block; min-height: 30px; margin-top: 6px; color: var(--ink-muted); font-family: ui-sans-serif, system-ui, sans-serif; font-size: 11px; line-height: 1.35; }
.checkin-stat > i { position: absolute; right: 16px; bottom: 12px; left: 16px; height: 3px; overflow: hidden; border-radius: 999px; background: rgb(128 128 128 / 18%); }
.checkin-stat > i::after { display: block; width: var(--value, 0%); height: 100%; border-radius: inherit; background: linear-gradient(90deg, #6fc7ff, #8d9eff 52%, #f0a3d7); content: ''; transition: width .35s ease; }
.checkin-board { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.checkin-main-column,
.checkin-side-column { display: grid; min-width: 0; gap: 18px; }
.checkin-day-panel,
.checkin-rules,
.checkin-side-card { border-radius: 24px; }
.checkin-day-panel { padding: clamp(18px, 3vw, 30px); }
.checkin-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.date-stepper { display: inline-flex; min-width: 0; align-items: stretch; overflow: hidden; border: 1px solid var(--border); border-radius: 13px; background: color-mix(in srgb, var(--panel-strong) 65%, transparent); }
.date-stepper > button { width: 42px; border: 0; background: transparent; cursor: pointer; font-family: ui-sans-serif, system-ui, sans-serif; font-weight: 800; }
.date-stepper > button:hover { background: color-mix(in srgb, var(--accent) 13%, transparent); color: var(--accent); }
.date-stepper label { display: grid; min-width: 0; padding: 5px 9px; border-right: 1px solid var(--border); border-left: 1px solid var(--border); }
.date-stepper label span { color: var(--ink-muted); font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.date-stepper input { min-width: 126px; border: 0; outline: 0; background: transparent; color: var(--ink); font-family: ui-sans-serif, system-ui, sans-serif; font-size: 13px; }
.checkin-primary-button,
.checkin-secondary-button { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; padding: 8px 13px; border-radius: 12px; cursor: pointer; font-size: 12px; font-weight: 900; text-decoration: none; }
.checkin-primary-button { border: 1px solid color-mix(in srgb, var(--accent) 80%, white); background: linear-gradient(135deg, #5f9ee9, #7e83de); color: white; box-shadow: 0 9px 20px rgb(72 113 184 / 20%); }
.checkin-primary-button:hover { filter: brightness(1.06); transform: translateY(-1px); }
.checkin-secondary-button { border: 1px solid var(--border); background: transparent; color: inherit; }
.checkin-secondary-button:hover { border-color: var(--accent); color: var(--accent); }
.checkin-day-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding: 24px 0 18px; }
.checkin-kicker { color: var(--accent); font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 9px; font-weight: 900; letter-spacing: .16em; }
.checkin-day-heading h2,
.checkin-side-card h2,
.checkin-rules h2 { margin: 7px 0 5px; }
.checkin-day-heading h2 { font-size: clamp(22px, 3vw, 31px); }
.checkin-day-heading p { margin: 0; color: var(--ink-muted); font-size: 12px; }
.checkin-task-list { display: grid; gap: 12px; }
.checkin-task { display: grid; grid-template-columns: 72px minmax(0, 1fr); overflow: hidden; border: 1px solid var(--border); border-radius: 19px; background: color-mix(in srgb, var(--panel-strong) 55%, transparent); transition: border-color .2s ease, background-color .2s ease, transform .2s ease; }
.checkin-task:hover { border-color: color-mix(in srgb, var(--accent) 48%, var(--border)); transform: translateY(-1px); }
.checkin-task.is-checked { border-color: color-mix(in srgb, #72bfa0 46%, var(--border)); background: color-mix(in srgb, #8be0bd 9%, var(--panel-strong)); }
.task-check-column { display: grid; place-items: stretch; border-right: 1px solid var(--border); background: linear-gradient(180deg, rgb(110 176 230 / 10%), rgb(129 120 218 / 8%)); }
.task-main-check { display: grid; place-content: center; justify-items: center; gap: 7px; padding: 14px 7px; cursor: pointer; color: var(--ink-muted); font-family: ui-sans-serif, system-ui, sans-serif; font-size: 10px; }
.task-main-check input { position: absolute; opacity: 0; pointer-events: none; }
.task-main-check span { display: grid; width: 28px; height: 28px; place-items: center; border: 2px solid color-mix(in srgb, var(--ink-muted) 55%, transparent); border-radius: 10px; background: color-mix(in srgb, var(--panel-strong) 80%, transparent); }
.task-main-check input:checked + span { border-color: #5db491; background: #5db491; box-shadow: 0 0 0 5px rgb(93 180 145 / 12%); }
.task-main-check input:checked + span::after { width: 10px; height: 5px; border-bottom: 2px solid white; border-left: 2px solid white; content: ''; transform: translateY(-1px) rotate(-45deg); }
.task-main-check input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 3px; }
.task-body { min-width: 0; padding: 16px; }
.task-heading { display: flex; min-width: 0; align-items: center; gap: 8px; }
.task-kind { flex: none; padding: 5px 7px; border-radius: 8px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); font-family: ui-sans-serif, system-ui, sans-serif; font-size: 9px; font-weight: 900; letter-spacing: .05em; }
.task-kind.kind-cmc { background: rgb(105 195 206 / 15%); color: #278a98; }
.task-kind.kind-algorithm { background: rgb(129 111 218 / 15%); color: #6c55c7; }
.task-kind.kind-cet6 { background: rgb(229 140 186 / 16%); color: #bc5f8f; }
.task-kind-select { max-width: 82px; border: 1px solid transparent; outline: 0; cursor: pointer; }
.task-kind-select:focus { border-color: var(--accent); }
.is-dark .task-kind.kind-cmc { color: #72d5df; }
.is-dark .task-kind.kind-algorithm { color: #b6a7ff; }
.is-dark .task-kind.kind-cet6 { color: #f3a7cd; }
.task-time,
.task-title-input { min-width: 0; border: 0; border-bottom: 1px solid transparent; outline: 0; background: transparent; color: var(--ink); }
.task-time { width: 75px; flex: none; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 11px; }
.task-title-input { width: 100%; padding: 4px 2px; font-size: 15px; font-weight: 900; }
.task-time:focus,
.task-title-input:focus { border-bottom-color: var(--accent); }
.task-remove { flex: none; border: 0; background: transparent; color: #b05555; cursor: pointer; font-size: 10px; }
.algorithm-trail { display: flex; min-width: 0; align-items: center; gap: 6px; margin-top: 10px; overflow-x: auto; color: var(--ink-muted); font-family: ui-sans-serif, system-ui, sans-serif; font-size: 10px; white-space: nowrap; scrollbar-width: thin; }
.algorithm-trail i { color: var(--accent); font-style: normal; }
.algorithm-trail strong { color: var(--ink); }
.task-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.task-badges span { padding: 4px 7px; border: 1px solid var(--border); border-radius: 999px; color: var(--ink-muted); font-family: ui-sans-serif, system-ui, sans-serif; font-size: 9px; }
.task-details { margin-top: 12px; border-top: 1px dashed var(--border); }
.task-details summary { padding: 12px 0 5px; color: var(--accent); cursor: pointer; font-size: 11px; font-weight: 900; }
.checkin-fields { display: grid; gap: 10px; margin-top: 10px; }
.checkin-fields.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.checkin-fields .span-two { grid-column: 1 / -1; }
.checkin-field { display: grid; min-width: 0; gap: 5px; color: var(--ink-muted); font-family: ui-sans-serif, system-ui, sans-serif; font-size: 10px; font-weight: 800; }
.checkin-field input,
.checkin-field textarea,
.checkin-field select { width: 100%; min-width: 0; border: 1px solid var(--border); border-radius: 10px; outline: 0; background: color-mix(in srgb, var(--panel-strong) 65%, transparent); color: var(--ink); font-family: ui-sans-serif, system-ui, sans-serif; font-size: 12px; font-weight: 500; }
.checkin-field input,
.checkin-field select { min-height: 37px; padding: 7px 9px; }
.checkin-field textarea { resize: vertical; padding: 9px; line-height: 1.55; }
.checkin-field input:focus,
.checkin-field textarea:focus,
.checkin-field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent); }
.checkin-toggle-row { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0; }
.checkin-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 7px 8px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; font-family: ui-sans-serif, system-ui, sans-serif; font-size: 10px; }
.checkin-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.checkin-toggle span { width: 14px; height: 14px; border: 1px solid var(--ink-muted); border-radius: 4px; }
.checkin-toggle input:checked + span { border-color: #5db491; background: #5db491; box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--panel-strong) 70%, transparent); }
.checkin-toggle.is-emphasis { border-color: color-mix(in srgb, #5db491 60%, var(--border)); }
.task-external-link,
.checkin-source-link { display: inline-flex; margin-top: 10px; color: var(--accent); font-family: ui-sans-serif, system-ui, sans-serif; font-size: 11px; font-weight: 900; text-decoration: none; }
.task-external-link:hover,
.checkin-source-link:hover { text-decoration: underline; }
.task-record-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px; margin-top: 12px; }
.checkin-empty { padding: 42px 20px; border: 1px dashed var(--border); border-radius: 18px; color: var(--ink-muted); text-align: center; }
.checkin-empty strong { color: var(--ink); }
.checkin-empty p { margin: 8px 0 0; font-size: 12px; }
.checkin-status { margin: 18px 0 0; color: var(--ink-muted); font-family: ui-sans-serif, system-ui, sans-serif; font-size: 10px; text-align: right; }
.checkin-status[data-tone='error'] { color: #b34949; }
.checkin-rules,
.checkin-side-card { padding: 22px; }
.rules-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.rules-grid p { margin: 0; padding: 14px; border: 1px solid var(--border); border-radius: 14px; color: var(--ink-muted); font-family: ui-sans-serif, system-ui, sans-serif; font-size: 11px; line-height: 1.7; }
.rules-grid b { display: block; margin-bottom: 3px; color: var(--ink); font-size: 13px; }
.checkin-side-card h2 { font-size: 20px; }
.checkin-side-card > p { color: var(--ink-muted); font-family: ui-sans-serif, system-ui, sans-serif; font-size: 11px; line-height: 1.7; }
.algorithm-route { display: grid; gap: 7px; margin: 17px 0 0; padding: 0; list-style: none; }
.algorithm-route li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 9px; align-items: start; }
.algorithm-route li > b { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 8px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); font-family: ui-sans-serif, system-ui, sans-serif; font-size: 10px; }
.algorithm-route li > span { display: grid; gap: 2px; font-family: ui-sans-serif, system-ui, sans-serif; }
.algorithm-route strong { font-size: 11px; }
.algorithm-route small { color: var(--ink-muted); font-size: 9px; line-height: 1.45; }
.source-boundary { padding-top: 12px; border-top: 1px dashed var(--border); }
.backup-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.syntax-suggestion { border-color: color-mix(in srgb, #e29bcb 32%, var(--panel-border)); }
.cmc-guidance { margin: 10px 0 0; padding: 9px 11px; border-left: 3px solid #53a8b4; border-radius: 0 9px 9px 0; background: rgb(83 168 180 / 9%); color: var(--ink-muted); font-family: ui-sans-serif, system-ui, sans-serif; font-size: 10px; line-height: 1.6; }
.cmc-lesson-list { display: grid; gap: 9px; padding-top: 7px; }
.cmc-lesson { padding: 12px; border: 1px solid var(--border); border-radius: 13px; background: color-mix(in srgb, var(--panel-strong) 62%, transparent); }
.cmc-lesson.is-reproduced { border-color: color-mix(in srgb, #5db491 45%, var(--border)); }
.cmc-lesson-heading { display: flex; min-width: 0; align-items: baseline; gap: 7px; font-family: ui-sans-serif, system-ui, sans-serif; }
.cmc-lesson-heading b { flex: none; color: #278a98; font-size: 10px; }
.is-dark .cmc-lesson-heading b { color: #72d5df; }
.cmc-lesson-heading span { min-width: 0; overflow: hidden; font-size: 11px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.cmc-lesson-heading small { flex: none; color: var(--ink-muted); font-size: 9px; }
.cmc-lesson > p { margin: 4px 0 0; color: var(--ink-muted); font-family: ui-sans-serif, system-ui, sans-serif; font-size: 9px; }
.course-outline { margin-top: 12px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.course-outline summary { padding: 10px 0; color: var(--accent); cursor: pointer; font-family: ui-sans-serif, system-ui, sans-serif; font-size: 11px; font-weight: 900; }
.course-outline > div { display: grid; gap: 4px; padding: 0 0 10px; }
.course-outline p { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 2px 7px; margin: 0; padding: 6px 7px; border-radius: 8px; background: rgb(128 128 128 / 7%); font-family: ui-sans-serif, system-ui, sans-serif; }
.course-outline b { grid-row: 1 / 3; color: var(--accent); font-size: 9px; }
.course-outline span { font-size: 10px; font-weight: 800; }
.course-outline small { color: var(--ink-muted); font-size: 8px; }

@media (max-width: 700px) {
  .romanticism-appbar { min-height: 58px; padding: 0 10px; }
  .site-title { margin-left: 6px; font-size: 17px; }
  .appbar-write-button { width: 42px; height: 42px; justify-content: center; margin-right: 2px; padding: 0; border: 0; border-radius: 50%; }
  .appbar-write-button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .owner-badge { display: none; }
  .pointer-aurora { display: none; }
  .back-to-top { right: 15px; bottom: 15px; width: 43px; height: 43px; }
  .index-hero { height: 78vh; }
  .hero-eyebrow { margin-bottom: 14px; font-size: 8px; }
  .hero-scroll-cue { bottom: 150px; }
  .index-hero-copy p { font-size: 12px; }
  .index-hero-copy h1 { font-size: 31px; line-height: 1.5; letter-spacing: .06em; }
  .post-hero { min-height: 430px; height: 58vh; }
  .home-surface { padding-right: 14px; padding-left: 14px; }
  .post-feed { margin-top: -130px; }
  .romanticism-post-card { min-height: 240px; padding: 24px 18px; }
  .post-card-copy em { display: none; }
  .post-surface { padding: 66px 22px 96px; }
  .romanticism-article > p { font-size: 17px; line-height: 1.9; }
  .romanticism-article .post-summary { font-size: 20px; }
  .markdown-body pre,
  .markdown-body .code-block pre { padding: 18px; font-size: 13px; }
  .code-block-toolbar { padding-left: 14px; }
  .reading-tools,
  .floating-filter { bottom: 15px; left: 15px; }
  .floating-filter:hover,
  .floating-filter.is-open { width: calc(100vw - 30px); }
  .filter-notice { align-items: flex-start; flex-direction: column; }
  .search-row { grid-template-columns: 1fr; }
  .search-row button { min-height: 44px; }
  .editor-overlay { padding: 0; }
  .diary-editor { width: 100%; max-height: 100vh; min-height: 100vh; border-radius: 0; }
  .editor-header { padding: 22px 20px 18px; }
  .diary-editor form { padding: 22px 20px 30px; }
  .editor-grid { grid-template-columns: 1fr; gap: 18px; }
  .editor-title-field,
  .editor-wide-field { grid-column: 1; }
  .cover-picker { grid-template-columns: 120px minmax(0, 1fr); }
  .cover-preview { width: 120px; height: 74px; }
  .editor-actions { flex-wrap: wrap; }
  .editor-spacer { display: none; }
  .editor-actions .save-entry-button { flex: 1; }
  .save-notice { right: 14px; bottom: 14px; left: 14px; justify-content: space-between; }
}

@media (max-width: 960px) {
  .glass-page-grid,
  .post-page-grid { grid-template-columns: minmax(0, 1fr); }
  .glass-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sidebar-profile { grid-column: 1 / -1; }
  .checkin-focus-grid { grid-template-columns: minmax(0, 1fr); }
  .month-calendar-card,
  .today-progress-card { grid-column: 1; grid-row: auto; }
  .today-progress-card { order: -1; }
  .countdown-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checkin-summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .checkin-board { grid-template-columns: minmax(0, 1fr); }
  .checkin-side-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .romanticism-site { background-attachment: scroll; }
  .romanticism-site > main { padding-top: 78px; }
  .romanticism-appbar { inset: 9px 10px auto; min-height: 56px; padding: 0 10px; border-radius: 16px; }
  .romanticism-appbar.is-scrolled { min-height: 52px; }
  .glass-frame { width: calc(100% - 20px); border-radius: 21px; }
  .index-hero { min-height: 470px; height: 67vh; }
  .post-hero { min-height: 320px; height: 44vh; }
  .hero-scroll-cue { bottom: 18px; }
  .home-surface,
  .post-surface { padding: 14px 10px 44px; }
  .reading-tools { bottom: auto; left: auto; margin-bottom: 14px; }
  .glass-page-grid { gap: 14px; }
  .romanticism-post-card { min-height: 225px; border-radius: 20px; }
  .romanticism-article.glass-content-panel { padding: 28px 20px; border-radius: 20px; }
  .glass-sidebar { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .sidebar-profile { grid-column: auto; }
  .sidebar-profile-avatar { width: 96px; height: 96px; border-radius: 20px; }
  .romanticism-footer { width: calc(100% - 20px); margin-bottom: 10px; padding: 26px 16px; border-radius: 20px; }
  .checkin-hero { width: calc(100% - 20px); min-height: 190px; height: 27vh; }
  .checkin-hero-copy h1 { font-size: 33px; }
  .checkin-hero-copy > p { font-size: 9px; }
  .checkin-hero-copy > strong { font-size: 12px; }
  .checkin-surface { padding: 14px 10px 44px; }
  .checkin-focus-grid { gap: 10px; margin-bottom: 10px; }
  .today-progress-card,
  .month-calendar-card,
  .key-dates-card { padding: 16px 12px; border-radius: 19px; }
  .key-dates-card { margin-bottom: 10px; }
  .focus-card-heading { align-items: flex-start; }
  .focus-card-heading > small { max-width: 145px; font-size: 8px; }
  .today-progress-line { grid-template-columns: minmax(82px, .9fr) minmax(0, 1.35fr) auto; gap: 6px; padding: 9px 8px; }
  .today-progress-line p { font-size: 8px; }
  .today-progress-line > strong { padding: 3px 5px; font-size: 8px; }
  .calendar-weekdays,
  .calendar-grid { gap: 3px; }
  .calendar-day { min-height: 42px; padding: 5px 2px; border-radius: 9px; }
  .calendar-day i { display: none; }
  .calendar-day span { font-size: 12px; }
  .calendar-legend { gap: 6px 9px; }
  .countdown-list { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .countdown-event { padding: 11px 9px; }
  .countdown-milestone { padding: 6px 4px; }
  .checkin-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .checkin-stat { padding: 15px 13px 17px; border-radius: 17px; }
  .checkin-stat:last-child { grid-column: 1 / -1; }
  .checkin-stat > strong { font-size: 20px; }
  .checkin-board,
  .checkin-main-column,
  .checkin-side-column { gap: 12px; }
  .checkin-side-column { grid-template-columns: minmax(0, 1fr); }
  .checkin-day-panel,
  .checkin-rules,
  .checkin-side-card { border-radius: 19px; }
  .checkin-day-panel { padding: 15px 12px; }
  .checkin-toolbar { align-items: stretch; flex-direction: column; }
  .date-stepper { width: 100%; }
  .date-stepper label { flex: 1; }
  .date-stepper input { width: 100%; min-width: 0; }
  .checkin-day-heading { align-items: stretch; flex-direction: column; padding-top: 20px; }
  .checkin-day-heading .checkin-primary-button { align-self: flex-start; }
  .checkin-task { grid-template-columns: 54px minmax(0, 1fr); border-radius: 16px; }
  .task-main-check span { width: 25px; height: 25px; }
  .task-body { padding: 13px 10px; }
  .task-heading { align-items: flex-start; flex-wrap: wrap; }
  .task-title-input { order: 4; width: 100%; font-size: 14px; }
  .task-remove { margin-left: auto; }
  .checkin-fields.two-columns,
  .task-record-row,
  .rules-grid { grid-template-columns: minmax(0, 1fr); }
  .checkin-fields .span-two { grid-column: auto; }
  .task-record-row .task-note { min-width: 0; }
  .algorithm-trail { padding-bottom: 3px; }
  .checkin-side-card,
  .checkin-rules { padding: 19px 17px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .pointer-aurora { display: none; }
  .hero-title-character { opacity: 1; transform: none; }
  .reveal-on-scroll { opacity: 1; filter: none; translate: none; }
}
