/* Forest OS · Time journal V1 · appearance only */
@import url('https://fonts.googleapis.com/css2?family=LXGW+WenKai+TC:wght@300;400;700&display=swap');
body.forest-time-journal-active {--tj-bg:#F5F9FB;--tj-dot:#DAE4EB;--tj-paper:#FFF;--tj-ink:#2E3A45;--tj-muted:#5B6976;--tj-title:#44586B;--tj-line:#C3D0DA;--tj-tint:#E1E9EF;--tj-btn:#536B80;background-color:var(--tj-bg)!important;background-image:radial-gradient(var(--tj-dot) 1px,transparent 1px)!important;background-size:22px 22px!important;}
body.forest-time-journal-active #app {background:transparent!important;}
body.forest-time-journal-active #forestGlobalTopbar {background:#EDF2F6!important;}
body.forest-time-journal-active #timeForestView {position:relative;inset:auto;transform:none;width:100%;max-width:960px;min-width:0;margin:0 auto;padding:36px 26px 60px;background:transparent;color:var(--tj-ink);--time-ink:var(--tj-ink);--time-muted:var(--tj-muted);--time-blue:var(--tj-btn);--time-blue-deep:var(--tj-title);--time-blue-soft:var(--tj-tint);--time-line:var(--tj-line);}
body.forest-time-journal-active #timeForestView .time-forest-page {position:relative;inset:auto;transform:none;width:100%;min-width:0;max-width:none;margin:0;padding:0;background:none;}
body.forest-time-journal-active #timeForestView .time-forest-header {display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:20px;padding:0;margin:0;border:0;}
body.forest-time-journal-active #timeForestView .time-forest-identity {display:flex;align-items:center;gap:18px;min-width:0;}
body.forest-time-journal-active #timeForestView .time-forest-emblem {display:flex;align-items:center;justify-content:center;flex:0 0 64px;width:64px;height:64px;transform:rotate(-3deg);border:1px solid var(--tj-line);border-radius:18px;background:var(--tj-paper);box-shadow:0 6px 14px #44586b20;}
body.forest-time-journal-active #timeForestView .time-forest-emblem img {width:34px;height:34px;}
body.forest-time-journal-active #timeForestView .time-forest-title {font:400 46px/1.2 'LXGW WenKai TC',serif;text-align:left;letter-spacing:0;color:var(--tj-title);margin:0;}
body.forest-time-journal-active #timeForestView .time-forest-subtitle {font:17px/1.6 'LXGW WenKai TC',serif;color:var(--tj-muted);margin:4px 0 0;}
body.forest-time-journal-active #timeForestView .time-section-nav {display:flex;align-self:auto;gap:4px;border:1px solid var(--tj-line);border-radius:999px;background:var(--tj-paper);padding:4px;margin:0;}
body.forest-time-journal-active #timeForestView .time-section-nav button {width:auto;min-height:40px;padding:0 22px;margin:0;border:0;border-radius:999px;background:transparent;color:var(--tj-muted);}
body.forest-time-journal-active #timeForestView .time-section-nav button.is-active,
body.forest-time-journal-active #timeForestView .time-section-nav button[aria-current="page"] {background:var(--tj-tint);color:var(--tj-ink);}
body.forest-time-journal-active #timeForestView .time-countdown-section {border-top:1.5px dashed var(--tj-line);margin-top:28px;padding-top:20px;}
body.forest-time-journal-active #timeForestView .time-forest-home-actions {display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;margin-bottom:28px;}
body.forest-time-journal-active #timeForestView #timeForestSyncButton,
body.forest-time-journal-active #timeForestView .time-tree-primary-button,
body.forest-time-journal-active #timeForestView .time-tree-edit-button,
body.forest-time-journal-active #timeForestView .time-forest-upcoming-heading button,
body.forest-time-journal-active #timeForestView .time-tree-add-button {flex:0 1 auto;width:auto;min-height:44px;padding:0 22px;border:1px solid var(--tj-line);border-radius:999px;background:var(--tj-paper);color:var(--tj-title);margin:0;}
body.forest-time-journal-active #timeForestView .time-tree-primary-button,
body.forest-time-journal-active #timeForestView .time-tree-add-button {background:var(--tj-btn);border-color:var(--tj-btn);color:#FFF;}
body.forest-time-journal-active #timeForestView .time-countdown-card {position:relative;inset:auto;display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.25fr);gap:0;width:100%;max-width:none;min-width:0;min-height:280px;height:auto;padding:0;margin:0;border:0;border-radius:24px;overflow:visible;background:var(--tj-paper);box-shadow:0 14px 32px #44586b24;transform:rotate(-.6deg);}
body.forest-time-journal-active #timeForestView .time-countdown-card::before {content:'';position:absolute;top:-14px;left:48px;width:104px;height:28px;z-index:2;background:#536b8052;transform:rotate(-4deg);pointer-events:none;}
body.forest-time-journal-active #timeForestView .time-countdown-main {position:relative;display:flex;flex-direction:column;justify-content:space-between;min-width:0;padding:28px 30px;border-right:2px dashed #B3C3D0;border-radius:24px 0 0 24px;background:linear-gradient(135deg,#EEF3F7,#D9E2EA);}
body.forest-time-journal-active #timeForestView .time-countdown-main::before,
body.forest-time-journal-active #timeForestView .time-countdown-main::after {content:'';position:absolute;right:-13px;width:24px;height:24px;border-radius:50%;background:var(--tj-bg);z-index:1;pointer-events:none;}
body.forest-time-journal-active #timeForestView .time-countdown-main::before {top:-12px;}
body.forest-time-journal-active #timeForestView .time-countdown-main::after {bottom:-12px;}
body.forest-time-journal-active #timeForestView .time-countdown-label {font-size:14px;letter-spacing:0;color:var(--tj-title);}
body.forest-time-journal-active #timeForestView .time-countdown-value-row {display:flex;align-items:baseline;gap:8px;min-width:0;margin:22px 0 0;}
body.forest-time-journal-active #timeForestView .time-countdown-number {font:400 clamp(72px,8vw,120px)/1 'LXGW WenKai TC',serif;letter-spacing:0;color:var(--tj-title);overflow-wrap:anywhere;min-width:0;}
body.forest-time-journal-active #timeForestView .time-countdown-unit {font:24px 'LXGW WenKai TC',serif;color:var(--tj-muted);}
body.forest-time-journal-active #timeForestView .time-countdown-details {min-width:0;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:32px 36px;gap:10px;}
body.forest-time-journal-active #timeForestView .time-countdown-category {align-self:flex-start;margin:0;padding:3px 12px;border-radius:999px;background:var(--tj-tint);color:var(--tj-title);font-size:13px;}
body.forest-time-journal-active #timeForestView .time-countdown-title {font:400 48px/1.2 'LXGW WenKai TC',serif;color:var(--tj-title);margin:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;}
body.forest-time-journal-active #timeForestView .time-countdown-date {color:var(--tj-muted);font-size:14px;margin:0;}
body.forest-time-journal-active #timeForestView .time-countdown-progress-block {width:100%;margin-top:14px;}
body.forest-time-journal-active #timeForestView .time-countdown-progress-copy {display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;color:var(--tj-muted);font-size:13px;}
body.forest-time-journal-active #timeForestView .time-countdown-progress-track {height:10px;border-radius:999px;background:var(--tj-tint);overflow:hidden;}
body.forest-time-journal-active #timeForestView #timeCountdownProgressFill {height:100%;border-radius:999px;background:var(--tj-btn);}
body.forest-time-journal-active #timeForestView .time-tree-edit-button {align-self:flex-start;margin-top:12px;}
body.forest-time-journal-active #timeForestView .time-forest-upcoming {background:transparent;border:0;padding:0;margin:52px 0 0;}
body.forest-time-journal-active #timeForestView .time-forest-upcoming-title,
body.forest-time-journal-active #timeForestView .time-forest-list-title {font:32px/1.4 'LXGW WenKai TC',serif;color:var(--tj-title);margin:0;}
body.forest-time-journal-active #timeForestView .time-forest-section-kicker {color:var(--tj-muted);font-size:12px;}
body.forest-time-journal-active #timeForestView .time-forest-upcoming-list {position:relative;display:block;margin-top:24px;border-radius:8px;background:var(--tj-paper);box-shadow:0 8px 20px #44586b18;}
body.forest-time-journal-active #timeForestView .time-forest-upcoming-list::before {content:'';position:absolute;top:-12px;right:56px;width:96px;height:26px;background:#5e7a5552;transform:rotate(3deg);pointer-events:none;}
body.forest-time-journal-active #timeForestView .time-forest-upcoming-row {display:flex;align-items:center;gap:20px;padding:20px 24px;border-top:1.5px dashed var(--tj-line);}
body.forest-time-journal-active #timeForestView .time-forest-upcoming-row:first-child {border-top:0;}
body.forest-time-journal-active #timeForestView .time-forest-upcoming-order {font:18px 'LXGW WenKai TC',serif;color:var(--tj-muted);flex:0 0 30px;}
body.forest-time-journal-active #timeForestView .time-forest-upcoming-copy {flex:1;min-width:0;}
body.forest-time-journal-active #timeForestView .time-forest-upcoming-copy strong {font:24px/1.4 'LXGW WenKai TC',serif;color:var(--tj-title);white-space:normal;overflow-wrap:anywhere;}
body.forest-time-journal-active #timeForestView .time-forest-upcoming-copy small {color:var(--tj-muted);}
body.forest-time-journal-active #timeForestView .time-forest-upcoming-days {font:26px 'LXGW WenKai TC',serif;color:var(--tj-title);white-space:nowrap;}
body.forest-time-journal-active #timeForestView .time-forest-list-section {border-top:1.5px dashed var(--tj-line);margin-top:28px;padding-top:24px;}
body.forest-time-journal-active #timeForestView .time-tree-search input {width:100%;min-height:48px;padding:0 20px;border:1px solid var(--tj-line);border-radius:999px;background:var(--tj-paper);color:var(--tj-ink);}
body.forest-time-journal-active #timeForestView .time-forest-category-filters {display:flex;flex-wrap:wrap;gap:12px;margin:20px 0 28px;}
body.forest-time-journal-active #timeForestView .time-forest-filter-button {min-height:44px;padding:0 18px;border:1px solid var(--tj-line);border-radius:999px;background:var(--tj-paper);color:var(--tj-title);margin:0;}
body.forest-time-journal-active #timeForestView .time-forest-filter-button.active {background:var(--tj-tint);}
body.forest-time-journal-active #timeForestView .time-forest-month-group {position:relative;overflow:visible;border:1px solid var(--tj-line);border-radius:8px;background:var(--tj-paper);box-shadow:0 8px 20px #44586b18;}
body.forest-time-journal-active #timeForestView .time-forest-month-heading {background:var(--tj-tint);border-bottom:1.5px dashed var(--tj-line);border-radius:8px 8px 0 0;padding:16px 24px;}
body.forest-time-journal-active #timeForestView .time-forest-month-title {font:24px 'LXGW WenKai TC',serif;color:var(--tj-title);}
body.forest-time-journal-active #timeForestView .time-forest-month-events {padding:0 22px;}
body.forest-time-journal-active #timeForestView .time-forest-event-item {min-width:0;background:transparent;border:0;border-bottom:1.5px dashed var(--tj-line);border-radius:0;padding:18px 0;}
body.forest-time-journal-active #timeForestView .time-forest-event-item.is-pinned {background:var(--tj-tint);border-radius:8px;padding:18px 12px;}
body.forest-time-journal-active #timeForestView .time-forest-event-title {font:23px/1.4 'LXGW WenKai TC',serif;color:var(--tj-title);white-space:normal;overflow-wrap:anywhere;}
body.forest-time-journal-active #timeForestView .time-forest-event-main {min-width:0;flex:1;}
body.forest-time-journal-active #timeForestView .time-forest-event-date {color:var(--tj-muted);}
body.forest-time-journal-active #timeForestView .time-forest-event-days {font:26px 'LXGW WenKai TC',serif;color:var(--tj-title);}
body.forest-time-journal-active #timeForestView .time-tree-edit-panel {max-width:100%;min-width:0;padding:28px;border:1px solid var(--tj-line);border-radius:12px;background:var(--tj-paper);box-shadow:0 8px 20px #44586b18;color:var(--tj-ink);}
body.forest-time-journal-active #timeForestView .time-tree-edit-panel input:not([type="checkbox"]),
body.forest-time-journal-active #timeForestView .time-tree-edit-panel select {min-width:0;box-sizing:border-box;width:100%;min-height:44px;padding:8px 12px;border:1px solid var(--tj-line);border-radius:10px;background:var(--tj-paper);color:var(--tj-ink);}
body.forest-time-journal-active #timeForestView .time-tree-edit-actions {display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;}
body.forest-time-journal-active #timeForestView .time-tree-edit-actions button {min-height:44px;border:1px solid var(--tj-line);border-radius:999px;background:var(--tj-tint);color:var(--tj-title);margin:0;}
body.forest-time-journal-active #timeForestView #deleteTimeTreeEditButton {color:#A34848;}
body.forest-time-journal-active #timeForestView button:focus-visible {outline:2px solid var(--tj-btn);outline-offset:3px;}
body.night-mode.forest-time-journal-active {--tj-bg:#202932;--tj-dot:#384956;--tj-paper:#293640;--tj-ink:#E3EBF0;--tj-muted:#B9C9D4;--tj-title:#D5E3EC;--tj-line:#566B7B;--tj-tint:#394D5D;--tj-btn:#8AA6BA;}
body.night-mode.forest-time-journal-active #forestGlobalTopbar {background:#263540!important;}
body.night-mode.forest-time-journal-active #timeForestView .time-countdown-main {background:linear-gradient(135deg,#394D5C,#304351);}
@media(max-width:700px){
 body.forest-time-journal-active #timeForestView {padding:26px 18px 50px;}
 body.forest-time-journal-active #timeForestView .time-forest-title {font-size:36px;}
 body.forest-time-journal-active #timeForestView .time-forest-emblem {flex-basis:52px;width:52px;height:52px;}
 body.forest-time-journal-active #timeForestView .time-countdown-card {grid-template-columns:minmax(0,1fr);transform:none;}
 body.forest-time-journal-active #timeForestView .time-countdown-main {padding:26px;border:0;border-bottom:2px dashed var(--tj-line);border-radius:24px 24px 0 0;gap:20px;}
 body.forest-time-journal-active #timeForestView .time-countdown-main::before {top:auto;bottom:-13px;left:-12px;right:auto;}
 body.forest-time-journal-active #timeForestView .time-countdown-main::after {bottom:-13px;right:-12px;}
 body.forest-time-journal-active #timeForestView .time-countdown-value-row {margin:0;}
 body.forest-time-journal-active #timeForestView .time-countdown-details {padding:26px;}
 body.forest-time-journal-active #timeForestView .time-countdown-title {font-size:36px;}
 body.forest-time-journal-active #timeForestView .time-forest-upcoming-row {gap:12px;padding:18px 16px;}
 body.forest-time-journal-active #timeForestView .time-forest-upcoming-copy strong {font-size:21px;}
 body.forest-time-journal-active #timeForestView .time-forest-month-events {padding:0 14px;}
 body.forest-time-journal-active #timeForestView .time-forest-event-item {flex-wrap:wrap;gap:12px;}
 body.forest-time-journal-active #timeForestView .time-forest-event-main {flex-basis:160px;}
 body.forest-time-journal-active #timeForestView .time-tree-edit-panel {padding:20px;}
}
@media(prefers-reduced-motion:reduce){body.forest-time-journal-active #timeForestView .time-countdown-card{transform:none;}}

/* V1.1 · taped paper forms and matching category stamps */
body.forest-time-journal-active #timeForestView .time-tree-edit-panel {position:relative;margin-top:32px;padding:30px 28px 22px;border-radius:5px 11px 8px 5px;box-shadow:3px 4px 0 var(--tj-tint);}
body.forest-time-journal-active #timeForestView .time-tree-edit-panel::before {content:'';position:absolute;top:-13px;left:calc(50% - 52px);width:104px;height:25px;background:repeating-linear-gradient(90deg,#cbdce5bb 0 7px,#e4edf2cc 7px 9px);transform:rotate(-3deg);pointer-events:none;border-left:2px dotted var(--tj-line);border-right:2px dotted var(--tj-line);}
#timeForestView .tj-line-icon {display:inline-flex;flex:none;width:22px;height:22px;vertical-align:middle;color:inherit;}
#timeForestView .tj-line-icon svg {display:block;width:100%;height:100%;}
body.forest-time-journal-active #timeForestView .tj-form-heading {display:flex;align-items:center;gap:10px;margin:0 0 20px;padding:0 0 17px;border-bottom:1px dashed var(--tj-line);font:400 28px/1.4 'LXGW WenKai TC',serif;color:var(--tj-title);}
body.forest-time-journal-active #timeForestView .tj-form-heading .tj-line-icon {width:25px;height:25px;}
body.forest-time-journal-active #timeForestView .time-tree-edit-panel label {margin-bottom:20px;color:var(--tj-muted);font-size:14px;font-weight:500;min-width:0;}
body.forest-time-journal-active #timeForestView .time-tree-edit-panel input:not([type="checkbox"]) {min-height:46px;padding:10px 12px;border:0;border-bottom:1px solid var(--tj-line);border-radius:4px 4px 0 0;background:var(--tj-bg);color:var(--tj-ink);font-size:16px;}
body.forest-time-journal-active #timeForestView .tj-form-dates {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;}
#timeForestView .tj-native-category {display:none!important;}
body.forest-time-journal-active #timeForestView .tj-category-field {margin-bottom:20px;}
body.forest-time-journal-active #timeForestView .tj-category-caption {display:block;margin-bottom:10px;color:var(--tj-muted);font-size:14px;font-weight:500;}
body.forest-time-journal-active #timeForestView .tj-category-stamps {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;}
body.forest-time-journal-active #timeForestView .tj-category-stamp {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-height:82px;width:100%;margin:0;padding:10px 4px;border:1px dashed var(--tj-line);border-radius:5px;background:var(--tj-paper);color:var(--tj-title);font-size:14px;}
body.forest-time-journal-active #timeForestView .tj-category-stamp .tj-line-icon {width:26px;height:26px;}
body.forest-time-journal-active #timeForestView .tj-category-stamp[aria-pressed="true"] {background:var(--tj-tint);border:1px solid var(--tj-btn);box-shadow:inset 0 0 0 3px var(--tj-paper);}
body.forest-time-journal-active #timeForestView .time-tree-pin-control {display:flex;align-items:flex-start;gap:11px;padding:14px 13px;background:#F7F1DE;border:0;border-left:3px solid #D7C99E;border-radius:3px 8px 5px 3px;color:var(--tj-ink);}
body.forest-time-journal-active #timeForestView .time-tree-pin-control input {flex:none;width:18px;height:18px;margin:3px 0 0;accent-color:var(--tj-btn);}
body.forest-time-journal-active #timeForestView .time-tree-pin-control strong {font-size:14px;font-weight:500;}
body.forest-time-journal-active #timeForestView .time-tree-pin-control small {display:block;margin-top:4px;color:#746B51;font-size:12px;line-height:1.7;}
body.forest-time-journal-active #timeForestView .time-tree-edit-actions {padding-top:16px;border-top:1px dashed var(--tj-line);}
body.forest-time-journal-active #timeForestView .time-tree-edit-actions button {padding:9px 17px;min-height:44px;border-radius:7px;background:var(--tj-paper);}
body.forest-time-journal-active #timeForestView #saveTimeTreeEditButton,
body.forest-time-journal-active #timeForestView #saveTimeTreeAddButton {background:var(--tj-btn);border-color:var(--tj-btn);color:#FFF;}
body.forest-time-journal-active #timeForestView #deleteTimeTreeEditButton {margin-right:auto;padding-left:0;background:transparent;border-color:transparent;color:#986663;}
body.forest-time-journal-active #timeForestView .time-forest-filter-button {display:inline-flex;align-items:center;justify-content:center;gap:6px;}
body.forest-time-journal-active #timeForestView .time-forest-filter-button .tj-line-icon {display:inline-flex;width:18px;height:18px;min-width:18px;padding:0;margin:0;background:transparent;border-radius:0;color:inherit;}
body.forest-time-journal-active #timeForestView .time-forest-event-icon {display:inline-flex;align-items:center;color:var(--tj-title);}
body.night-mode.forest-time-journal-active #timeForestView .time-tree-pin-control {background:#443F30;border-left-color:#8E8058;}
body.night-mode.forest-time-journal-active #timeForestView .time-tree-pin-control small {color:#D9CBA7;}
body.night-mode.forest-time-journal-active #timeForestView #deleteTimeTreeEditButton {color:#E3A5A0;}
@media(max-width:480px){
 body.forest-time-journal-active #timeForestView .time-tree-edit-panel {padding:27px 17px 19px;}
 body.forest-time-journal-active #timeForestView .tj-form-heading {font-size:25px;}
 body.forest-time-journal-active #timeForestView .tj-form-dates {grid-template-columns:minmax(0,1fr);gap:0;}
 body.forest-time-journal-active #timeForestView .tj-category-stamps {grid-template-columns:repeat(2,minmax(0,1fr));}
 body.forest-time-journal-active #timeForestView .tj-category-stamp {flex-direction:row;min-height:58px;}
 body.forest-time-journal-active #timeForestView .time-tree-edit-actions button {padding:9px 12px;}
}
