:root{--bg:#eeede6;--paper:#faf8ef;--ink:#343e34;--muted:#898b7d;--line:#d5d3c5;--red:#cb503d;--blue:#4d92b1;--green:#54774c;--tennis:#939c39;--running:#ca8a41;--gym:#8b7d9d;--yellow:#b89e55;--sans:-apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',sans-serif;--serif:'Songti SC','Noto Serif SC','STSong',Georgia,serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--sans);font-size:14px}body:before{content:'';position:fixed;inset:0;pointer-events:none;opacity:.18;z-index:20;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.22' filter='url(%23n)'/%3E%3C/svg%3E")}button,select{font:inherit;color:inherit}button,a,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:focus-visible,a:focus-visible,select:focus-visible{outline:2px solid var(--green);outline-offset:4px}.topbar{height:86px;margin:0 5%;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px;color:inherit;text-decoration:none;font-family:var(--serif);font-weight:600;font-size:20px;letter-spacing:2px}.brand-mark{display:grid;place-items:center;width:29px;height:32px;border:1px solid var(--ink);transform:rotate(-5deg);font-size:20px}.brand-en{font-family:var(--sans);letter-spacing:2px;font-size:9px;font-weight:400;color:var(--muted);margin-left:10px}.private{font-size:11px;color:#767d6f;display:flex;align-items:center;gap:7px}.private i{width:6px;height:6px;background:var(--green);border-radius:50%}main{max-width:1300px;padding:0 48px;margin:auto}.intro{display:flex;justify-content:space-between;align-items:center;padding:54px 0 48px}.eyebrow{font-size:10px;letter-spacing:2px;color:var(--muted);margin:0 0 20px}h1{font-family:var(--serif);font-size:45px;line-height:1.5;letter-spacing:3px;font-weight:500;margin:0}.period{color:var(--red)}.intro-copy{font-size:12px;line-height:2;color:#7c8174;margin:18px 0 0;letter-spacing:1px}.intro-note{width:294px;text-align:center;padding:24px 0 18px;transform:rotate(-4deg);margin-right:60px;color:#727b65}.tiny-stickers{display:flex;gap:13px;justify-content:center}.tiny-stickers i{width:27px;height:27px;background:var(--color);border-radius:50%;box-shadow:inset -2px -2px 3px #0001,0 1px 1px #0001}.intro-note p{font-family:var(--serif);font-size:19px;line-height:1.9;letter-spacing:2px}.note-sign{font:italic 13px Georgia,serif;color:#8f947f}.year-line{border-top:1px solid var(--ink);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:22px 0}.year-choice{display:flex;align-items:center;gap:16px}.year-choice select{font:28px Georgia,serif;background:none;border:0;padding-right:4px}.year-choice>span{color:#848879;letter-spacing:2px;font-size:12px}.year-stats{display:flex;gap:34px}.year-stats>span{font-size:11px;color:#7e8475}.year-stats b{font:24px Georgia,serif;color:var(--ink);padding-right:7px}.workspace{display:grid;grid-template-columns:152px minmax(0,1fr);gap:42px;padding-top:28px}.sidebar{padding-top:11px}.small-heading{font-size:11px;letter-spacing:1px;display:flex;justify-content:space-between;margin:0 0 18px}.small-heading span{font-size:8px;color:var(--muted);padding-top:2px}#months{display:flex;flex-direction:column;gap:3px}#months button{position:relative;display:flex;align-items:center;justify-content:space-between;width:100%;padding:11px 13px;border:0;background:none;color:#858a7b;font-size:11px;text-align:left}#months button strong{font:17px Georgia,serif;font-weight:400;padding-right:12px}#months button.selected{background:#dfe3d5;color:var(--ink)}#months button.selected:before{content:'';position:absolute;left:0;top:14px;bottom:14px;width:2px;background:var(--green)}#months button .month-count{font:10px Georgia,serif;color:#8c917e}.sidebar-note{border-top:1px solid var(--line);margin-top:30px;padding:26px 10px;color:#8e9381}.sidebar-note>span{font-size:24px;color:#8a967b}.sidebar-note p{font-family:var(--serif);font-size:13px;line-height:1.9}.sidebar-note small{font-size:9px}.calendar-toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.view-toggle{display:flex;border:1px solid #cccfc0;padding:3px;gap:2px;border-radius:3px}.view-toggle button{padding:7px 17px;border:0;background:none;font-size:11px;border-radius:1px;color:#808675}.view-toggle button.active{color:#f5f4eb;background:#4b5b45}.text-button{background:none;border:0;font-size:11px;color:#727e64;padding:10px 0 10px 10px}.text-button span{padding-left:12px}.legend{display:flex;gap:6px 14px;flex-wrap:wrap;margin-bottom:20px;align-items:center}.legend button{display:flex;align-items:center;gap:6px;background:none;border:0;padding:4px 0;font-size:10px;color:#727c69}.legend button[aria-pressed="true"]{color:var(--ink);box-shadow:0 1px var(--ink)}.legend .dot{width:10px;height:10px;flex:none}.legend .all-label{margin-right:5px}.dot{display:inline-block;border-radius:50%;background:var(--color);box-shadow:inset -1px -2px 2px #0001,0 1px 1px #0001}.sheet{position:relative;background:var(--paper);padding:0 26px 20px;box-shadow:0 3px 5px #3636280c,0 14px 24px -20px #36362844;margin:18px 0 30px;border:1px solid #d9d6c9;scroll-margin-top:24px}.sheet:before{content:'';position:absolute;top:-8px;left:calc(50% - 38px);width:76px;height:21px;transform:rotate(-3deg);background:#d8d7bd99;z-index:1}.sheet-header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:26px 0 20px}.month-title{display:flex;align-items:baseline;gap:12px}.month-number{font:44px Georgia,serif;line-height:1}.month-name{font-size:12px;letter-spacing:3px}.month-english{font:italic 12px Georgia,serif;color:#a2a08f}.sheet-year{font:13px Georgia,serif;letter-spacing:3px;color:#999985}.weekdays,.days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.weekdays{border:1px solid #c7c6b4;border-bottom:0}.weekdays span{text-align:center;padding:10px 0;font:9px Georgia,serif;letter-spacing:1px;color:#8a8b78}.weekdays span:nth-last-child(-n+2){color:#a38e7c}.days{border-left:1px solid #c7c6b4;border-top:1px solid #c7c6b4}.day{position:relative;min-height:108px;padding:9px 8px;border:0;border-bottom:1px solid #c7c6b4;border-right:1px solid #c7c6b4;background:transparent;text-align:left;display:flex;flex-direction:column;align-items:stretch;gap:6px}.day:nth-child(14n+8),.day:nth-child(14n+9),.day:nth-child(14n+10),.day:nth-child(14n+11),.day:nth-child(14n+12),.day:nth-child(14n+13),.day:nth-child(14n+14){background:linear-gradient(180deg,#b6b49a0d,transparent 13%,#fff2 70%,#97977a0b)}.day.has-record:hover,.day.has-record:focus-visible{background:#e9eadb;z-index:2;outline:1px solid #8e9b7d;outline-offset:-1px}.day.empty{color:#bcbbaa;cursor:default}.day-num{font:13px Georgia,serif;color:#737a67;display:flex;gap:7px;align-items:center}.empty .day-num{color:#c3c0b0}.day.today .date-digit{border-bottom:1px solid var(--red);color:var(--red)}.multi{font:7px var(--sans);color:#9a9c89}.sticker{display:flex;align-items:center;justify-content:flex-start;gap:7px;font-family:var(--serif);font-size:11px;color:#59614f;transform:rotate(var(--angle));transform-origin:left center;line-height:1.3;margin-top:3px}.sticker .dot{width:24px;height:24px;flex-shrink:0}.sticker .sticker-label{min-width:0;white-space:normal;overflow-wrap:anywhere}.sheet-summary{display:flex;justify-content:space-between;gap:12px;font-size:10px;color:#8c8d7b;padding:16px 0 0}.sheet-summary strong{font-family:Georgia,serif;color:#656f59;font-size:13px;font-weight:400}.calendar-hint{font-size:10px;text-align:center;color:#8c927f;margin:0 0 25px}.calendar-hint>span{margin-right:5px}.calendar-hint:empty{display:none}#filter-note{font-size:10px;color:#828b76;min-height:0;margin-bottom:8px}footer{margin-top:50px;border-top:1px solid var(--line);padding:25px 0 35px;display:flex;gap:15px;justify-content:space-between;font-size:9px;color:#909480;letter-spacing:.5px}.footer-dot{font-size:6px;color:var(--red);padding:0 8px}.tooltip{position:fixed;z-index:30;width:300px;padding:20px;background:#fdfcf5;border:1px solid #d5d6c4;box-shadow:0 10px 35px #313d3026;pointer-events:none;border-radius:2px}.tooltip[hidden]{display:none}.tooltip-date{font:20px Georgia,serif;margin-bottom:6px}.tooltip-sub{font-size:10px;color:#91967f;margin-bottom:14px}.tip-record{padding:11px 0;border-top:1px solid #e4e4d5}.tip-heading{display:flex;align-items:center;gap:8px;font-size:12px}.tip-heading .dot{width:12px;height:12px}.tip-meta{font-size:10px;color:#7d876e;padding:7px 0}.tip-feedback{font-family:var(--serif);font-size:12px;line-height:1.7;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;color:#66705d;white-space:pre-line}.tip-foot{font-size:9px;color:#a0a58e;padding-top:8px}dialog{position:fixed;inset:0 0 0 auto;margin:0;height:100dvh;max-height:100dvh;width:min(610px,100%);max-width:100%;padding:0;border:0;background:var(--paper);color:var(--ink);box-shadow:-10px 0 70px #26302122}dialog::backdrop{background:#343d3455;backdrop-filter:blur(3px)}.detail-top{display:flex;align-items:center;justify-content:space-between;padding:22px 30px;border-bottom:1px solid var(--line);position:sticky;top:0;background:var(--paper);z-index:2;font-size:10px;color:#818a73;letter-spacing:1px}.detail-top button{background:none;border:0;font-size:28px;line-height:1}.detail-date{font:36px Georgia,serif;margin:0 0 12px}.detail-week{font-size:12px;color:#8a927c;letter-spacing:2px}.detail-date-group{padding:32px 0 22px;border-bottom:1px solid var(--line)}#detail-body{padding:0 30px 30px}.record-card{padding:24px 0;border-bottom:1px dashed #cfcfbc}.record-title{display:flex;gap:10px;align-items:center;font-family:var(--serif);font-size:23px}.record-title .dot{width:23px;height:23px}.record-meta{display:flex;gap:25px;margin:18px 0 20px;color:#869074;font-size:10px}.record-meta b{font:25px Georgia,serif;color:var(--ink);padding-right:4px}.record-note{font-size:11px;line-height:1.8;color:#a0784f;background:#ece5d5;padding:12px}.feedback-label{font-size:10px;letter-spacing:2px;color:#949a82;margin:23px 0 10px}.feedback-text{font-family:var(--serif);font-size:14px;line-height:1.9;white-space:pre-line}.no-feedback{font-size:12px;color:#a0a68f}.source-content{font-size:11px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%;color:#67735d;font-family:var(--sans);margin:15px 0}.record-card summary{font-size:11px;cursor:pointer;color:#717f61;padding:14px 0}.record-source{font-size:9px;color:#a0a58f;word-break:break-all;margin-top:13px}.detail-bottom{padding:20px 30px;font-size:10px;color:#939b84}.empty-message{padding:30px;color:var(--muted);font-size:13px}.load-error{padding:60px;line-height:2;color:var(--red)}@media(min-width:1400px){.day{min-height:115px}}@media(prefers-reduced-motion:no-preference){button,.sheet{transition:background .18s ease}.dot{transition:transform .2s}.has-record:hover .dot{transform:rotate(-8deg) scale(1.08)}}@media(max-width:1000px){main{padding:0 28px}.workspace{grid-template-columns:112px minmax(0,1fr);gap:22px}.intro-note{margin-right:0}.day{min-height:95px;padding:7px 5px}.sticker .dot{width:20px;height:20px}.sticker{font-size:10px;gap:5px}.sheet{padding:0 17px 17px}.month-english{display:none}.brand-en{display:none}}@media(max-width:650px){main{padding:0 18px}.topbar{height:70px;margin:0 18px}.brand{font-size:17px}.private{font-size:9px}.intro{padding:32px 0;align-items:flex-end}.eyebrow{font-size:8px;letter-spacing:1px;margin-bottom:14px}h1{font-size:29px;letter-spacing:1px}.intro-copy{font-size:10px;margin-top:12px}.intro-note{width:100px;padding:0 0 24px}.intro-note p{font-size:12px;letter-spacing:0}.note-sign{display:none}.tiny-stickers{gap:6px}.tiny-stickers i{width:17px;height:17px}.year-line{align-items:flex-start;gap:16px;flex-direction:column;padding:18px 0}.year-choice select{font-size:25px}.year-stats{gap:22px}.year-stats b{font-size:21px}.year-stats>span{font-size:10px}.workspace{display:block;padding-top:12px}.sidebar{padding-top:0}.small-heading,.sidebar-note{display:none}#months{flex-direction:row;overflow:auto;margin-bottom:18px;gap:5px}#months button{flex:0 0 auto;width:auto;display:block;padding:10px 11px}#months button strong{font-size:14px;padding:0}#months button .month-label,#months .month-count{display:none}#months button.selected:before{display:none}.calendar-toolbar{margin-bottom:16px}.legend{gap:6px 12px;margin-bottom:16px}.legend button{font-size:10px}.sheet{padding:0 9px 13px;margin-top:15px;margin-bottom:23px}.sheet-header{padding:22px 5px 17px}.month-number{font-size:34px}.month-name{font-size:11px}.sheet-year{font-size:11px}.day{min-height:115px;padding:6px 3px;gap:5px}.day-num{font-size:11px;gap:3px}.multi{font-size:6px}.sticker{font-size:9px;gap:3px;justify-content:flex-start}.sticker .dot{width:18px;height:18px}.sticker-label{display:inline}.sheet-summary{font-size:8px;gap:5px;flex-wrap:wrap;padding:12px 4px 0}.sheet-summary strong{font-size:11px}.calendar-hint{font-size:9px}footer{margin-top:30px;font-size:8px;line-height:1.8;flex-direction:column;gap:8px}.tooltip{display:none}.detail-top{padding:20px}#detail-body{padding:0 20px 20px}.detail-bottom{padding:20px}.record-meta{gap:18px}}
.tip-training{font-size:11px;line-height:1.7;color:#4c5945;margin-bottom:7px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
/* Journal Markdown stays readable in the narrow detail drawer. */
.source-content.markdown{white-space:normal;font-size:13px;line-height:1.85;color:#56634e;overflow-wrap:anywhere}
.markdown h1,.markdown h2,.markdown h3,.markdown h4,.markdown h5,.markdown h6{font-family:var(--serif);font-weight:600;line-height:1.6;letter-spacing:0;color:var(--ink);margin:1.4em 0 .65em}
.markdown h1{font-size:23px}.markdown h2{font-size:19px;border-bottom:1px solid var(--line);padding-bottom:8px}.markdown h3{font-size:16px}.markdown h4,.markdown h5,.markdown h6{font-size:14px}
.markdown p{margin:.75em 0}.markdown strong{font-weight:650;color:#34442f}.markdown ul,.markdown ol{padding-left:1.6em;margin:.8em 0}.markdown li{padding-left:2px;margin:.25em 0}.markdown li>p{margin:.3em 0}.markdown li::marker{color:#89967c}
.markdown blockquote{margin:1em 0;padding:1px 15px;border-left:3px solid #a1ae8f;background:#e9ecdf77;color:#6f7d61}.markdown blockquote p{margin:.6em 0}
.markdown code{background:#e8e9dd;border-radius:3px;padding:2px 5px;font:11px ui-monospace,SFMono-Regular,Menlo,monospace;color:#5d674c}.markdown pre{background:#e8e9dd;padding:14px;border-radius:3px;overflow-x:auto;white-space:pre;line-height:1.65}.markdown pre code{padding:0;background:none;white-space:pre}
.markdown-table{max-width:100%;overflow-x:auto;margin:16px 0;border:1px solid var(--line);border-radius:2px}.markdown table{width:100%;border-collapse:collapse;font-size:11px;line-height:1.7}.markdown th,.markdown td{padding:9px 11px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);min-width:62px;vertical-align:top}.markdown th{text-align:left;background:#e8eadd;color:#4a5a40;font-weight:600}.markdown tr:last-child td{border-bottom:0}.markdown th:last-child,.markdown td:last-child{border-right:0}.markdown tbody tr:nth-child(even){background:#eef0e555}
.markdown hr{border:0;border-top:1px dashed #c7cbb8;margin:24px 0}.markdown a{color:#5a764e;text-decoration-color:#a8b39c;text-underline-offset:3px}.markdown input[type=checkbox]{accent-color:var(--green);margin-right:7px}.markdown .contains-task-list,.markdown .task-list-item{list-style:none}.markdown-image-label{font-size:11px;color:var(--muted)}

.record-time{font:11px Georgia,var(--sans);color:#8a947b;letter-spacing:.5px;margin:9px 0}.historical-note{line-height:1.9;border-top:1px dashed var(--line);padding-top:15px}

/* Start with the calendar controls after the compact title bar. */
.year-line{margin-top:28px}

/* Long Cang, SIL Open Font License: only handwritten sticker labels use this face. */
/* Calendar Marker Light is a lighter subset of LXGW Marker Gothic 1.011. */
@font-face{font-family:'Calendar Marker';font-style:normal;font-weight:300;font-display:swap;src:url('fonts/Calendar-Marker-Light.woff2') format('woff2')}
.sticker .sticker-label{font-family:'Calendar Marker',var(--sans);font-weight:300;font-synthesis:none}
.sticker .sticker-label{font-size:14px;line-height:1.25;letter-spacing:.02em;color:#3f4939}
@media(max-width:1000px){.sticker .sticker-label{font-size:12px}}
@media(max-width:650px){.sticker .sticker-label{font-size:10px}}
@media(max-width:650px){
  .sheet{overflow-x:auto;-webkit-overflow-scrolling:touch}
  .sheet .weekdays,.sheet .days{min-width:560px}
  .calendar-hint .hint-desktop{display:none}
  .calendar-hint .hint-mobile{display:inline}
}

@media(min-width:651px){.calendar-hint .hint-mobile{display:none}}
