/* v07: a readable viewing journal. Tokens preserve the SENCE23 ink/pink identity. */
:root {
  --canvas: #eef1f3;
  --paper: #fcfdfd;
  --ink: #202c33;
  --muted: #596a76;
  --line: #d8e0e4;
  --signal: #a34262;
  --rail-w: 236px;
  --max: 1440px;
  --sans: "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --space-section: 32px;
  --space-content: 24px;
}
body { background: var(--canvas); font-weight: 400; font-size: 15px; }
button { cursor: pointer; }
input, textarea { caret-color: var(--signal); }
::selection { background: #f6dbe4; color: #442234; }
.skip-link { position: fixed; top: 8px; left: 12px; z-index: 100; padding: 12px; background: #fff; color: var(--ink); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.rail { width: var(--rail-w); padding: 28px 18px 20px; box-shadow: none; background: #172129; }
.brand-kicker { display: none !important; }
.brand-name { font-size: 32px; letter-spacing: -.04em; }
.brand-lockup { font-size: 9px; letter-spacing: .06em; color: #bcc9d1; }
.brand-rule { background: #e7a5ba; width: 32px; margin-top: 16px; }
.home-shortcut { top: 0; width: 36px; height: 36px; }
.search-box { margin: 8px 0 20px; height: 44px; border-color: #53616b; border-radius: 6px; background: #202c35; grid-template-columns: 30px 1fr 24px; }
.search-box input { font-size: 12px; font-weight: 400; }
.search-box input::placeholder { color: #aebbc5; }
.search-box kbd { padding: 5px; color: #b5c1ca; border: 0; }
.search-prefix { color: #bcc9d1; }
.rail-primary { display: grid; gap: 4px; margin-bottom: 16px; }
.rail-primary button { display: flex; align-items: center; justify-content: space-between; min-height: 42px; padding: 8px 12px; border: 0; border-radius: 5px; background: transparent; color: #e7edf1; text-align: left; font-size: 15px; font-weight: 600; }
.rail-primary button span { color: #eab1c5; font: 10px var(--mono); }
.rail-primary .active { background: #2b3c48; }
.nav-root { border-top-color: #3b4b57; }
.nav-root-toggle { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 10px 10px; }
.nav-root-toggle > span, .nav-root-toggle small { display: none; }
.nav-root-toggle strong { color: #b9c6ce; font-size: 12px; font-weight: 500; }
.nav-root-toggle:after { transform: none; color: #b9c6ce; }
.rail-tabs { border: 0; gap: 4px; }
.tab { display: flex; align-items: center; justify-content: space-between; min-height: 42px; padding: 9px 12px; border: 0; border-radius: 5px; font-size: 14px; font-weight: 500; color: #e0e7ec; }
.tab b { position: relative; z-index: 1; font: 12px var(--mono); color: inherit; }
.tab.active, .tab.active:hover { padding-left: 12px; background: linear-gradient(110deg,#f5d9e4,#fff8fa); color: #68344c; text-shadow: none; }
.tab:before { display: none; }
.category-link { padding: 10px 6px; background: #172129; }
.category-link strong { font-size: 12px; font-weight: 500; }
.category-link small { font-size: 11px; color: #aebbc5; }
.timeline-note { display: none; }
.season-link { min-height: 37px; padding: 8px; grid-template-columns: 30px 1fr 12px; font-size: 12px; font-weight: 400; color: #c2ced6; }
.season-code { font-size: 9px; color: #a2b3be; }
.season-link.active { border-left-width: 1px; background: #31424e; padding-left: 8px; text-shadow: none; }
.season-link.active .season-code { color: #f1c6d4; }
.rail-footer { color: #b5c2cc; font-size: 10px; font-weight: 400; line-height: 1.8; border-color: #3b4b57; }
.stage { padding: 0 24px 24px; background: var(--canvas); }
.masthead { min-height: 86px; padding: 16px 0; border: 0; border-bottom: 1px solid var(--line); box-shadow: none; background: var(--canvas); backdrop-filter: none; }
.masthead-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; }
.masthead h1 { font-size: 24px; font-weight: 750; line-height: 1.35; letter-spacing: -.02em; }
.archive-back { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 10px 0 0; background: transparent; border: 0; color: var(--muted); font-size: 12px; }
.archive-back svg, .latest-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.masthead-actions { gap: 20px; }
.masthead-meta { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.masthead-count { font: 500 18px/1 var(--mono); letter-spacing: 0; }
.masthead-caption { font: 12px/1.4 var(--sans); letter-spacing: 0; margin: 0; color: var(--muted); }
.user-menu { padding: 2px 0 2px 20px; }
.user-avatar { width: 38px; height: 38px; }
.user-copy strong { font-size: 13px; font-weight: 600; }
.user-copy small { color: #596a76; font-size: 9px; }
.admin-actions { display: flex; border-radius: 6px; overflow: hidden; }
.admin-actions button { min-height: 40px; font-size: 12px; }
.page-body { padding: 28px 0 48px; }
.archive-intro { grid-template-columns: minmax(0,1fr) 250px; padding: 8px 0 30px; gap: 28px; margin: 0; border: 0; }
.archive-intro h2 { font-size: clamp(26px,2.65vw,40px); line-height: 1.3; font-weight: 750; letter-spacing: -.03em; text-wrap: balance; }
.archive-intro p { font-size: 14px; font-weight: 400; margin-top: 16px; color: var(--muted); }
.archive-notice { padding: 4px 0 4px 28px; border: 0; border-left: 1px solid #cbd6dc; align-self: center; }
.archive-notice > span { font-size: 12px; color: var(--muted); }
.archive-notice strong { margin: 7px 0 12px; font: 650 21px/1.4 var(--sans); letter-spacing: -.02em; }
.latest-link { display: inline-flex; align-items: center; gap: 12px; padding: 10px 0; border: 0; background: transparent; color: #883c59; font-size: 13px; font-weight: 600; }
.archive-summary { display: flex; gap: 8px 28px; flex-wrap: wrap; padding: 16px 0; margin-bottom: 32px; border-block: 1px solid var(--line); }
.archive-summary button { display: flex; gap: 12px; align-items: center; padding: 6px 0; min-height: 36px; border: 0; background: none; color: var(--muted); font-size: 13px; }
.archive-summary b { font: 500 16px var(--mono); color: var(--ink); }
.year-stack { gap: 32px; }
.year-row { grid-template-columns: 76px minmax(0,1fr); gap: 16px; padding-top: 0; border: 0; }
.year-stamp { padding: 10px 0; gap: 8px; justify-content: flex-start; }
.year-stamp strong { font: 500 24px/1.2 var(--mono); letter-spacing: -.03em; }
.year-stamp span { writing-mode: horizontal-tb; align-self: flex-start; font: 11px/1.5 var(--sans); letter-spacing: 0; color: var(--muted); }
.season-strip { gap: 16px; grid-template-columns: repeat(4,minmax(0,1fr)); }
.season-tile { min-height: 0; border: 0; border-radius: 8px; background: transparent; box-shadow: none; overflow: visible; }
.season-tile:after { display: none; }
.season-poster { height: auto; aspect-ratio: 1.6; border-radius: 8px; background: #d9e1e6; }
.season-poster:after { display: none; }
.season-poster img { filter: none; object-position: 50% 30%; }
.season-label { position: static; display: flex; gap: 10px; align-items: center; padding: 10px 0 0; height: auto; color: var(--ink); }
.season-glyph { font: 600 20px/1 var(--sans); color: var(--ink); text-shadow: none; }
.season-copy strong { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13px; font-weight: 600; }
.season-copy small { margin-top: 4px; color: var(--muted); font: 11px/1.4 var(--sans); letter-spacing: 0; }
.latest-badge { color: #873b57; background: #f6e3eb; padding: 2px 5px; font-size: 10px; font-weight: 500; }
.season-banner { grid-template-columns: 62px minmax(0,1fr) auto; gap: 18px; margin: 0 0 28px; padding: 0 0 24px; border: 0; border-bottom: 1px solid var(--line); background: none; }
.season-monogram { display: grid; place-items: center; width: 62px; height: 68px; padding: 0; border: 0; border-radius: 8px; font-size: 38px; background: #f5e4ec; color: #663d50; }
.season-monogram { text-shadow: none; }
.season-banner-main { padding: 0; }
.season-banner-main h2 { font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.season-banner-main p { font-size: 13px; font-weight: 400; color: var(--muted); line-height: 1.65; }
.season-banner-count { display: flex; align-items: baseline; gap: 8px; min-width: 0; border: 0; padding: 0; }
.season-banner-count strong { font-size: 24px; font-weight: 500; }
.season-banner-count span { font: 12px var(--sans); color: var(--muted); }
.anime-list { gap: 28px; }
.anime-entry { grid-template-columns: 210px minmax(0,1fr); grid-template-areas: "cover main" "comments comments"; padding: 22px; gap: 0 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); box-shadow: none; animation: none; scroll-margin-top: 100px; contain-intrinsic-size: auto 420px; }
.anime-entry:before { display: none; }
.anime-cover-wrap { align-self: start; min-height: 0; height: auto; aspect-ratio: 3/4; border: 0; border-radius: 7px; background: #e5eaed; }
.anime-poster { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: center; filter: none; }
.anime-titlebar { min-height: 0; grid-template-columns: minmax(0,1fr) auto; align-items: start; gap: 12px; padding-bottom: 18px; border: 0; background: transparent; color: var(--ink); }
.anime-titlewrap { padding: 0; }
.anime-title { margin: 0; white-space: normal; overflow-wrap: anywhere; font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.35; }
.anime-title-ja { margin-top: 7px; white-space: normal; overflow-wrap: anywhere; font-size: 13px; font-weight: 400; line-height: 1.6; color: var(--muted); letter-spacing: 0; }
.tag-line { gap: 6px 14px; margin-top: 12px; }
.work-tag { font-size: 12px; color: #4e6370; font-weight: 400; letter-spacing: 0; }
.work-tag i { width: 4px; height: 4px; border-radius: 50%; }
.status-tag { padding: 6px 10px; min-width: 0; border-radius: 5px; background: #f6e4ed; color: #713b53; text-shadow: none; }
.status-tag span { font-size: 12px; font-weight: 600; white-space: nowrap; }
[data-status="completed"] .status-tag { background: #e3f0eb; color: #28644f; }
[data-status="unwatched"] .status-tag { background: #e9eef3; color: #475d71; }
.anime-content { display: flex; flex-direction: column; }
.content-main { padding: 0; }
.metadata { display: flex; gap: 22px; padding-bottom: 14px; margin: 0 0 18px; border-bottom: 1px solid var(--line); }
.meta { display: flex; gap: 8px; padding: 0 !important; border: 0 !important; align-items: baseline; }
.meta dt { margin: 0; font: 11px/1.5 var(--sans); color: var(--muted); letter-spacing: 0; }
.meta dd { font-size: 12px; font-weight: 500; }
.review-box { border: 0; padding: 0; background: none; }
.review-box:before { display: none; }
.review-head { margin: 0 0 10px; }
.review-label { margin: 0; font: 600 13px/1.5 var(--sans); color: #624151; letter-spacing: 0; }
.review-head button { min-height: 32px; padding: 4px 10px; border: 1px solid #e2c6d0; border-radius: 5px; color: #803c56; font-size: 12px; }
.review-text { max-width: 70ch; font-family: var(--sans); font-size: 16px; line-height: 1.85; font-weight: 400; color: #283b45; letter-spacing: 0; overflow-wrap: anywhere; }
.no-review { display: block; color: #65727b; font-size: 14px; font-weight: 400; font-style: normal; }
.editorial-document { margin-top: 18px; border-top: 1px solid var(--line); }
.editorial-document summary { padding: 12px 0; gap: 8px; justify-content: flex-start; min-height: 44px; }
.editorial-document summary span { font-size: 12px; font-weight: 500; }
.editorial-document summary strong { margin-left: auto; font: 11px var(--sans); letter-spacing: 0; color: var(--muted); }
.editorial-document article { padding: 12px 0 18px; border: 0; background: none; }
.editorial-document article p { max-width: 70ch; font-size: 14px; font-weight: 400; line-height: 1.85; }
.source-links a { font: 12px/1.7 var(--sans); color: #315a74; }
.entry-side { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 9px 12px; margin-top: 20px; padding: 16px 0 0; border: 0; border-top: 1px solid var(--line); background: transparent; }
.side-label { font: 500 12px var(--sans); color: var(--muted); letter-spacing: 0; }
.progress-number { font: 500 18px/1.2 var(--mono); letter-spacing: -.02em; }
.progress-rail { grid-column: 1/-1; height: 5px; border-radius: 3px; background: #e6ebee; }
.progress-fill { background: #a1647c; }
.progress-slider { grid-column: 1/-1; height: 28px; margin: 0; background: transparent; }
.progress-slider::-webkit-slider-runnable-track { height: 5px; border-radius: 3px; background: linear-gradient(to right,#a1647c var(--progress),#e6ebee var(--progress)); }
.progress-slider::-webkit-slider-thumb { margin-top: -5px; width: 15px; height: 15px; border-radius: 50%; background: #8b4c66; box-shadow: 0 0 0 1px #8b4c66; }
.progress-slider::-moz-range-track { height: 5px; background: #e6ebee; }
.progress-slider::-moz-range-thumb { width: 15px; height: 15px; border-radius: 50%; background: #8b4c66; }
.progress-help { grid-column: 1/-1; font: 11px/1.6 var(--sans); color: var(--muted); }
.entry-side:has(.progress-slider) .progress-rail { display: none; }
.discussion { grid-area: comments; min-width: 0; margin-top: 22px; border-top: 1px solid var(--line); }
.discussion > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; padding: 16px 0 0; cursor: pointer; color: #405968; list-style: none; font-size: 13px; }
.discussion > summary::-webkit-details-marker { display: none; }
.discussion > summary > span:first-child { font-weight: 600; }
.discussion > summary b { margin-left: 8px; font: 12px var(--mono); }
.discussion > summary > span:last-child { font-size: 12px; color: var(--muted); }
.discussion[open] > summary { padding-bottom: 12px; }
.comments { padding: 14px 0 0; border: 0; background: transparent; }
.comments:before { display: none; }
.comments-heading h3 { font-size: 15px; font-weight: 600; margin: 0; }
.comment-count, .comment-empty { color: var(--muted); font-size: 12px; }
.comment-meta strong { font-size: 13px; font-weight: 600; }
.comment-meta time { font-size: 10px; color: var(--muted); }
.comment-body p { font-size: 14px; line-height: 1.8; font-weight: 400; overflow-wrap: anywhere; color: #324550; }
.reply-label, .reply-target { font-size: 12px; }
.like-button, .reply-button { min-height: 36px; min-width: 36px; font-size: 12px; }
.comment-input-wrap textarea { min-height: 88px; font-size: 14px; font-weight: 400; border-radius: 6px; padding: 12px; }
.comment-submit { font-size: 13px; min-height: 42px; }
.attachment-action { font-size: 12px; min-height: 36px; display: inline-flex; align-items: center; }
.comments-foot { font-size: 11px; color: var(--muted); line-height: 1.7; }
.library-grid { grid-template-columns: repeat(auto-fill,minmax(175px,1fr)); gap: 28px 20px; }
.all-works-intro { display: block; padding: 0; margin-bottom: 24px; border: 0; }
.all-works-intro p { color: var(--muted); font-size: 14px; font-weight: 400; }
.library-card { animation: none; }
.library-card-media { height: auto; aspect-ratio: 3/4; border-radius: 8px; box-shadow: none; }
.library-card-caption { padding-top: 12px; }
.library-card-caption strong { white-space: normal; font-size: 14px; font-weight: 600; line-height: 1.6; }
.library-card-caption small { font-size: 11px; font-weight: 400; color: var(--muted); }
.library-card-caption em { font-size: 11px; color: var(--muted); }
.library-card-state { font-size: 11px; border-radius: 4px; background: #283946; color: #fff; box-shadow: none; }
.filter-note, .tag-filter-head p, .editorial-row p { font-size: 14px; line-height: 1.75; font-weight: 400; }
.editorial-row strong { font-size: 18px; font-weight: 600; }
.editorial-row small { font-size: 12px; font-weight: 400; }
.profile-modal p { font-size: 14px; line-height: 1.65; }
.profile-modal form label { font-size: 14px; }
.profile-modal .auth-switcher button { min-height: 44px; font-size: 15px; }
.profile-modal input { font-size: 16px; }
.intro-stats { font-size: 12px; letter-spacing: .02em; }
@media (hover:hover) and (pointer:fine) {
  .rail-primary button:hover { background: #2b3c48; }
  .tab:hover { padding-left: 12px; background: #293d4b; }
  .season-link:hover { transform: none; padding-left: 8px; background: #31424e; text-shadow: none; }
  .season-tile:hover .season-poster img { transform: scale(1.025); filter: none; }
  .anime-entry:hover .anime-poster { transform: none; filter: none; }
  .archive-summary button:hover, .archive-back:hover, .latest-link:hover { color: #a34262; }
}
@media (max-width:1200px) {
  :root { --rail-w: 214px; }
  .stage { padding-inline: 20px; }
  .rail { padding-inline: 14px; }
  .season-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .anime-entry { grid-template-columns: 170px minmax(0,1fr); padding: 20px; gap: 0 20px; }
  .anime-title { font-size: 21px; }
  .archive-intro { grid-template-columns: minmax(0,1fr) 200px; }
  .user-copy { display: none; }
  .masthead-actions { gap: 12px; }
}
@media (max-width:960px) and (min-width:761px) {
  .archive-intro { grid-template-columns: 1fr; gap: 18px; }
  .archive-notice { border-left: 0; padding: 0; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
  .archive-notice strong { margin: 0; }
  .masthead-actions { flex-wrap: wrap; }
  .anime-entry { grid-template-columns: 135px minmax(0,1fr); gap: 0 16px; padding: 18px; }
  .anime-titlebar { grid-template-columns: 1fr; }
  .status-tag { justify-self: start; }
}
@media (max-width:760px) {
  :root { --rail-w: 260px; }
  .stage { padding: 54px 16px 20px; }
  .masthead { top: 0; min-height: 76px; padding: 12px 0; }
  .masthead h1 { font-size: 20px; }
  .masthead-title { gap: 3px 12px; }
  .masthead-actions { gap: 10px; }
  .masthead-meta { display: none; }
  .admin-actions { display: flex; }
  .admin-actions button { font-size: 11px; padding: 8px; }
  .archive-back { font-size: 11px; }
  .mobile-logo { font-size: 11px; }
  .icon-btn, .mobile-profile { min-width: 44px; min-height: 44px; }
  .page-body { padding: 24px 0 36px; }
  .archive-intro { grid-template-columns: 1fr; gap: 24px; padding: 0 0 24px; }
  .archive-intro h2 { font-size: 28px; }
  .archive-intro p { font-size: 13px; }
  .archive-notice { border: 0; padding: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; }
  .archive-notice strong { font-size: 18px; margin: 0; }
  .latest-link { font-size: 12px; }
  .archive-summary { gap: 4px 20px; margin-bottom: 24px; }
  .archive-summary button { gap: 8px; font-size: 12px; }
  .year-row { display: block; }
  .year-stamp { flex-direction: row; align-items: center; gap: 12px; padding: 0 0 14px; border: 0; }
  .year-stamp span { align-self: auto; }
  .season-strip { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 14px; }
  .season-poster { height: auto; aspect-ratio: 1.45; }
  .season-tile { border: 0; }
  .season-copy strong { font-size: 12px; }
  .season-banner { gap: 14px; grid-template-columns: 48px minmax(0,1fr); }
  .season-monogram { width: 48px; height: 60px; font-size: 30px; }
  .season-banner-main h2 { font-size: 19px; }
  .season-banner-main p { font-size: 12px; margin-bottom: 0; }
  .season-banner-count { display: none; }
  .anime-entry { grid-template-columns: 100px minmax(0,1fr); grid-template-areas: "cover title" "body body" "comments comments"; gap: 0 16px; padding: 16px; border-radius: 10px; scroll-margin-top: 85px; }
  .anime-main { display: contents; }
  .anime-cover-wrap { height: auto; min-height: 0; aspect-ratio: 3/4; }
  .anime-poster { height: 100%; min-height: 0; }
  .anime-titlebar { grid-area: title; display: flex; flex-direction: column; gap: 10px; padding-bottom: 0; }
  .anime-title { font-size: 18px; line-height: 1.45; }
  .anime-title-ja { font-size: 11px; margin-top: 6px; }
  .tag-line { gap: 5px 10px; margin-top: 9px; }
  .work-tag { font-size: 11px; }
  .status-tag { padding: 4px 8px; }
  .status-tag span { font-size: 11px; }
  .anime-content { grid-area: body; margin-top: 20px; }
  .metadata { display: flex; padding-bottom: 12px; margin-bottom: 16px; }
  .review-text { font-size: 15px; line-height: 1.8; }
  .review-box { padding: 0; }
  .no-review { font-size: 13px; }
  .entry-side { grid-template-columns: 1fr auto; }
  .progress-number { grid-column: auto; }
  .discussion { margin-top: 18px; }
  .discussion > summary { font-size: 12px; gap: 8px; }
  .discussion > summary > span:last-child { font-size: 11px; }
  .comments { padding: 10px 0 0; }
  .comment-input-wrap { grid-template-columns: 28px minmax(0,1fr); gap: 8px; }
  .comment-user { width: 28px; height: 28px; }
  .comment-tools { margin-left: 36px; grid-template-columns: 1fr auto; }
  .comment-submit { width: auto; }
  .comments-foot { margin-left: 0; }
  .library-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 14px; }
  .library-card-media, .search-grid .library-card-media { height: auto; aspect-ratio: 3/4; }
  .library-card-caption strong { font-size: 13px; }
  .library-card-tags { display: none; }
  .library-card-overlay { background: none; }
  .profile-modal h2 { font-size: 26px; }
  .profile-modal p { font-size: 13px; }
}
@media (prefers-reduced-motion:reduce) {
  .season-poster img, .library-card img { transform: none !important; }
}
@media (max-width:760px) and (prefers-reduced-motion:reduce) {
  .rail:not(.open) { transform: translateX(-103%) !important; }
  .rail.open { transform: none !important; }
}
