.home { --sage: #35634c; --sage-soft: #e8eee4; --sidebar-width: 248px; font-size: 17px; }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 10; padding: 8px 16px; background: var(--card); }
.skip-link:focus { top: 12px; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-width); padding: 36px 22px 22px; background: var(--card); border-right: 1px solid var(--rule); display: flex; flex-direction: column; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-size: 22px; font-weight: 600; letter-spacing: .04em; }
.brand-mark { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 42px; height: 46px; border-radius: 11px 11px 11px 3px; color: #f5f3e9; background: #355b45; font-family: Georgia, "STKaiti", "KaiTi", serif; font-size: 25px; font-weight: 400; }
.brand small { display: block; font-size: 10px; letter-spacing: .04em; font-weight: 500; color: var(--ink-3); margin-top: 2px; }
.sidebar-label { font-size: 14px; color: var(--ink-3); letter-spacing: .05em; }
.sidebar > .sidebar-label { margin: 42px 14px 15px; }
.side-nav { display: grid; gap: 8px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; font-size: 17px; color: var(--ink-2); text-decoration: none; border-radius: 7px; }
.side-nav a > span:first-child { font-size: 20px; line-height: 1; }
.side-nav a:hover { background: var(--sunk); }
.side-nav a.active { background: var(--sage-soft); color: var(--sage); font-weight: 600; }
.nav-dot { display: none; }
.private-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sage); }
.sidebar-note { margin: auto 14px 40px; padding-top: 50px; }
.sidebar-note p { color: var(--ink-2); font-family: Georgia, "Songti SC", "SimSun", serif; font-size: 18px; line-height: 2; margin: 15px 0; }
.note-line { display: block; width: 26px; height: 1px; background: var(--rule-2); margin: 18px 0; }
.sidebar-note small { color: var(--ink-3); font-size: 14px; letter-spacing: .08em; }
.sidebar-bottom { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--rule); padding: 20px 0 0; color: var(--ink-3); font-size: 13px; }
.sidebar-bottom button { margin-left: auto; border: 0; background: none; color: var(--ink-2); font: inherit; padding: 4px; cursor: pointer; }
.workspace { margin-left: var(--sidebar-width); max-width: 1530px; min-height: 100vh; padding: 0 clamp(28px, 4vw, 72px) 28px; }
.topbar { min-height: 84px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 15px; border-bottom: 1px solid var(--rule); font-size: 15px; color: var(--ink-3); padding: 14px 0; }
.topbar strong { color: var(--ink-2); font-weight: 500; }
.breadcrumb-sep { margin: 0 12px; color: var(--rule-2); }
#header-date { font-size: 14px; font-variant-numeric: tabular-nums; }
.welcome { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 38px 0 30px; }
.welcome .eyebrow { font-size: 12px; letter-spacing: .14em; color: var(--sage); margin-bottom: 12px; }
.welcome h1 { font-family: Georgia, "Songti SC", "SimSun", serif; font-size: clamp(32px, 2.8vw, 42px); font-weight: 500; letter-spacing: .025em; margin-bottom: 16px; }
.welcome h1 > span { color: var(--sage); }
.welcome p:last-child { color: var(--ink-2); font-size: 17px; margin: 0; }
.plan-edition { display: grid; border-left: 1px solid var(--rule); padding-left: 26px; flex-shrink: 0; gap: 4px; }
.plan-edition > span { font-size: 14px; color: var(--ink-3); }
.plan-edition strong { font-family: Georgia, serif; font-size: 36px; font-weight: 400; line-height: 1.6; color: var(--sage); }
.plan-edition small { font-family: system-ui, sans-serif; font-size: 16px; color: var(--ink-2); }
.home .today { position: relative; isolation: isolate; overflow: hidden; border: 0; border-radius: 12px; padding: 32px 36px; min-height: 300px; background: #294d3c; color: #f5f4e9; box-shadow: 0 6px 18px #20372d0d; }
.today-content { position: relative; z-index: 1; }
.home .today-date { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; color: #c9d7c9; font-family: inherit; font-size: 15px; margin-bottom: 22px; }
.today-pill { background: #ffffff12; border: 1px solid #ffffff24; padding: 3px 10px; border-radius: 4px; color: #e3eadc; }
.today-week { color: #bdcdbd; font-size: 15px; margin: 0 0 8px; max-width: 72%; }
.home .today-task { font-family: inherit; font-size: 30px; font-weight: 500; line-height: 1.5; max-width: 74%; margin: 0 0 10px; }
.home .today-meta { color: #cad6c8; font-size: 17px; max-width: 74%; margin: 0 0 24px; }
.today-action { display: inline-flex; align-items: center; gap: 28px; padding: 10px 16px; border-radius: 5px; background: #eef0e2; color: #294d3c; font-size: 17px; font-weight: 600; text-decoration: none; }
.today-action:hover { background: #fff; }
.today-art { position: absolute; color: #9bb893; width: 260px; right: 24px; bottom: 24px; opacity: .8; z-index: 0; pointer-events: none; }
.section-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px 20px; margin-bottom: 22px; }
.section-heading h2 { font-family: inherit; font-size: 25px; font-weight: 600; margin: 0; }
.section-heading p { font-size: 16px; color: var(--ink-2); margin: 8px 0 0; }
.home .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; font-size: 16px; padding: 8px 14px; text-decoration: none; }
.recent-section { margin-top: 36px; }
.recent-chapters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.recent-card { display: flex; flex-direction: column; padding: 24px; background: var(--card); border: 1px solid var(--rule); border-radius: 10px; text-decoration: none; color: var(--ink); }
.recent-card:hover { border-color: var(--sage); background: var(--sunk); }
.recent-date { color: var(--ink-3); font-size: 14px; }
.recent-card h3 { font-size: 19px; line-height: 1.7; margin: 12px 0 28px; font-weight: 500; }
.recent-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: auto; color: var(--sage); font-size: 14px; }
#chapter-count { font-size: 16px; color: var(--ink-2); }
#current-week { white-space: nowrap; }
.home .weeks { gap: 14px; }
.home .week { border-radius: 10px; scroll-margin-top: 24px; }
.home .week.is-current { border-color: #a8bba6; }
.home .week > summary { align-items: center; gap: 18px; padding: 20px 24px; }
.home .week > summary:hover { background: var(--sunk); }
.home .week-n { display: grid; place-items: center; width: 46px; height: 46px; min-width: 46px; border-radius: 7px; color: var(--ink-2); background: var(--sunk); font-size: 16px; }
.home .is-current .week-n { color: var(--sage); background: var(--sage-soft); }
.week-title-block { flex: 1; min-width: 0; display: grid; gap: 5px; }
.home .week-t { font-size: 18px; font-weight: 500; }
.week-sub { font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.week-sub > span { margin: 0 6px; }
.week-current-label { padding: 2px 9px; color: var(--sage); background: var(--sage-soft); font-size: 14px; border-radius: 4px; flex-shrink: 0; }
.week-chevron { color: var(--ink-3); font-size: 20px; transition: transform 150ms; }
.week[open] .week-chevron { transform: rotate(180deg); }
.home .day { display: grid; grid-template-columns: 55px 20px minmax(0,1fr) auto 18px; align-items: center; gap: 14px; padding: 17px 24px; font-size: 17px; border-color: var(--rule); }
.home .day-d { min-width: 0; font-size: 14px; }
.day-icon { color: var(--ink-3); font-size: 18px; }
.home .day.today-row { background: var(--sage-soft); box-shadow: inset 3px 0 var(--sage); }
.home .day.today-row .day-t { color: var(--sage); }
.home .tag { font-family: inherit; font-size: 14px; padding: 2px 8px; }
.home .tag.done { color: var(--sage); background: var(--sage-soft); }
.home .tag.open { color: var(--brick); background: var(--brick-soft); }
.tag.current { color: var(--sage); border: 1px solid #90aa8f; }
.tag.planned { color: var(--ink-3); }
.day-arrow { text-align: center; color: var(--ink-3); }
.calendar-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); gap: 32px; align-items: start; }
.calendar-card { border: 1px solid var(--rule); border-radius: 12px; padding: 32px; background: var(--card); }
.calendar-icon { display: grid; place-items: center; height: 48px; width: 48px; background: var(--sage-soft); color: var(--sage); border-radius: 10px; font-size: 30px; margin-bottom: 24px; }
.calendar-card h2, .calendar-guide h2 { font-family: inherit; font-size: 24px; font-weight: 500; margin-bottom: 16px; }
.calendar-card p, .calendar-guide p { color: var(--ink-2); font-size: 17px; line-height: 1.9; margin: 0 0 24px; }
.home .calendar-sub { width: 100%; justify-content: space-between; background: var(--sage-soft); color: var(--sage); border-color: var(--rule); font-size: 18px; padding: 12px 18px; }
.calendar-card .calendar-foot { color: var(--ink-3); font-size: 15px; margin: 22px 0 0; }
.calendar-guide { padding: 8px 0; }
.calendar-guide ol { margin: 0; padding-left: 26px; }
.calendar-guide li { padding-left: 8px; margin: 24px 0 32px; }
.calendar-guide li::marker { color: var(--sage); }
.calendar-guide h3 { font-size: 18px; font-weight: 500; margin-bottom: 10px; }
.home-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-size: 14px; margin-top: 42px; padding-top: 22px; }
.footer-divider { padding: 0 10px; }
#mobile-logout { display: none; border: 0; padding: 6px 0; color: var(--ink-2); background: none; font: inherit; cursor: pointer; }
.home .gate { max-width: 460px; margin: 12vh auto; padding: 36px; }
.gate .brand-mark { margin-bottom: 25px; }
.home .gate .eyebrow { font-size: 12px; }
.home .gate h1 { font-size: 30px; }
.home .gate .lede { font-size: 17px; margin-bottom: 16px; }
.home .gate .btn-primary { width: 100%; font-size: 18px; }
@media (prefers-color-scheme: dark) { .home { --sage: #b1cda9; --sage-soft: #29382e; } .home .week.is-current { border-color: #526d54; } }
@media (min-width: 1810px) { .workspace { margin-right: auto; margin-left: max(var(--sidebar-width), calc((100vw - 1330px) / 2)); max-width: 1330px; } }
@media (max-width: 1150px) {
  .home { --sidebar-width: 220px; }
  .sidebar { padding-left: 16px; padding-right: 16px; }
  .brand { font-size: 20px; gap: 9px; }
  .brand small { font-size: 9px; }
  .workspace { padding-left: 28px; padding-right: 28px; }
  .plan-edition { display: none; }
  .recent-chapters { grid-template-columns: 1fr; gap: 14px; }
  .recent-card h3 { margin-bottom: 16px; }
  .calendar-layout { grid-template-columns: 1fr; }
  .today-art { width: 210px; right: 0; opacity: .55; }
}
@media (max-width: 760px) {
  .sidebar { position: static; width: auto; padding: 20px 20px 0; border-right: 0; border-bottom: 1px solid var(--rule); display: block; }
  .brand { font-size: 22px; }
  .brand small { font-size: 10px; }
  .sidebar > .sidebar-label, .sidebar-note, .sidebar-bottom { display: none; }
  .side-nav { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-top: 20px; }
  .side-nav a { justify-content: center; padding: 12px 0; font-size: 16px; gap: 6px; border-radius: 0; }
  .side-nav a.active { background: none; box-shadow: inset 0 -2px var(--sage); }
  .side-nav a > span:first-child { display: none; }
  .workspace { margin: 0; padding: 0 20px 25px; }
  .topbar { min-height: 64px; font-size: 14px; }
  #header-date { font-size: 14px; }
  .breadcrumb-sep { margin: 0 6px; }
  .welcome { padding: 28px 0 24px; }
  .welcome h1 { font-size: 32px; }
  .welcome p:last-child { font-size: 17px; }
  .welcome .eyebrow { font-size: 12px; letter-spacing: .08em; }
  .home .today { padding: 24px; min-height: 320px; }
  .home .today-task { font-size: 28px; max-width: 100%; }
  .today-art { width: 140px; right: -30px; bottom: -10px; opacity: .2; }
  .home .today-meta, .today-week { max-width: 100%; }
  .home .today-date { gap: 10px; margin-bottom: 22px; }
  .home .week > summary { padding: 18px 14px; gap: 12px; flex-wrap: wrap; }
  .home .week-n { min-width: 40px; width: 40px; height: 42px; font-size: 15px; }
  .home .week-t { font-size: 17px; }
  .week-title-block { flex-basis: calc(100% - 80px); }
  .week-sub { font-size: 14px; }
  .week-current-label { margin-left: 52px; }
  .week-chevron { margin-left: auto; }
  .home .day { grid-template-columns: 48px minmax(0,1fr); align-items: start; padding: 16px 14px; gap: 7px 12px; }
  .home .day-d { font-size: 14px; padding-top: 2px; }
  .day-icon, .day-arrow { display: none; }
  .home .day-t { font-size: 17px; }
  .home .tag { font-size: 14px; grid-column: 2; justify-self: start; }
  .home .tag.planned { padding-left: 0; }
  .calendar-card { padding: 24px; }
  .calendar-card h2, .calendar-guide h2, .section-heading h2 { font-size: 24px; }
  .calendar-guide { padding-top: 0; }
  .home-footer { display: block; font-size: 14px; line-height: 2; }
  .home-footer > span { display: block; }
  #mobile-logout { display: block; min-height: 44px; }
  .home .gate { margin: 8vh 18px; max-width: none; padding: 28px 18px; }
}
