@font-face{font-family:PlexJP;src:url('./assets/plex-jp.ttf') format('truetype');font-display:swap}
@font-face{font-family:PlexMono;src:url('./assets/plex-mono.ttf') format('truetype');font-display:swap}
@font-face{font-family:FieldMincho;src:url('./assets/mincho.ttf') format('truetype');font-display:swap}
@font-face{font-family:FieldHand;src:url('./assets/yuji.ttf') format('truetype');font-display:swap}
:root{--sheet:#dedfd2;--sheet-ink:#29382e;--sheet-muted:#5c695b;--sheet-rule:#9fa799;--sheet-window:#403642;--sheet-tab:#c3cab8}
@media(min-width:701px){.composer .form-message{position:absolute;top:100%;left:0;right:0;padding-top:14px;margin:0;color:#f1d0c0}.composer .form-message:not(:empty){margin-top:0}}
.composer,.history-panel,.memory{font-family:PlexJP,sans-serif;color:var(--sheet-ink);background:var(--sheet);border-radius:0;box-shadow:0 14px 38px #141d1c35}
.composer{padding:17px 21px 16px;border:1px solid var(--sheet-ink);border-bottom-right-radius:0;outline:1px solid #c8ceb555;outline-offset:5px}
.sheet-tab{position:absolute;top:-28px;left:-1px;height:28px;width:128px;padding:5px 15px 0;background:var(--sheet);border:1px solid var(--sheet-ink);border-bottom:0;clip-path:polygon(0 0,85% 0,100% 100%,0 100%);font-size:12px;letter-spacing:.18em}
.sheet-register{display:flex;justify-content:space-between;align-items:center;gap:10px;border-bottom:1px solid var(--sheet-rule);padding-bottom:10px;margin-bottom:12px;font-family:PlexMono,PlexJP,monospace;font-size:11px;color:var(--sheet-muted);font-variant-numeric:tabular-nums}
.composer-heading{display:block}.composer h2{font-family:FieldMincho,serif;font-size:20px;font-weight:400;letter-spacing:.06em;line-height:1.6}.composer time{font-family:PlexMono,PlexJP,monospace;font-size:11px;color:var(--sheet-muted)}
.composer textarea{font-family:PlexJP,sans-serif;color:var(--sheet-ink);caret-color:var(--sheet-ink);border:0;min-height:87px;max-height:145px;resize:vertical;margin:8px 0 12px;padding:0;background:repeating-linear-gradient(to bottom,transparent 0,transparent calc(2em - 1px),var(--sheet-rule) calc(2em - 1px),var(--sheet-rule) 2em);font-size:16px;line-height:2}
.composer textarea::placeholder{font-size:14px;color:var(--sheet-muted);opacity:.9}.mood-row{display:grid;grid-template-columns:30px minmax(0,1fr);gap:8px;align-items:center;font-size:12px}.mood-row>span{color:var(--sheet-muted);font-size:11px}.moods{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}.mood{display:flex;justify-content:center;align-items:center;gap:5px;min-height:36px;padding:4px;border:1px solid transparent;border-radius:0;background:none;color:var(--sheet-ink);font-size:12px}.mood:hover{background:var(--sheet-tab)}.mood[aria-pressed=true]{background:var(--sheet-tab);border-color:var(--sheet-ink)}.mood-color{width:9px;height:9px;flex-shrink:0;border:1px solid currentColor;border-radius:0;background:none}.mood[aria-pressed=true] .mood-color{background:var(--sheet-ink);box-shadow:inset 0 0 0 2px var(--sheet-tab)}
.composer-bottom{display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:8px;margin-top:15px;padding-top:12px;border-top:1px solid var(--sheet-rule)}.save-note{font-size:10px;color:var(--sheet-muted);white-space:nowrap}.plant-button{position:relative;min-height:42px;min-width:134px;padding:10px 15px;color:var(--sheet);background:var(--sheet-ink);border-radius:0;clip-path:polygon(0 0,calc(100% - 11px) 0,100% 11px,100% 100%,0 100%);font-family:PlexJP,sans-serif;font-size:13px;letter-spacing:.02em}.plant-button:hover{background:#4c6351}.plant-button:focus-visible{outline:0;box-shadow:inset 0 0 0 3px var(--sheet),inset 0 0 0 4px var(--sheet-ink)}.pencil-line{display:none;position:absolute;top:34px;left:10%;width:80%;height:35px;stroke:var(--sheet-ink);stroke-width:.8;opacity:.6;pointer-events:none}
.specimen-caption h2{font-family:FieldMincho,serif;font-size:23px;letter-spacing:.12em}.specimen-caption p,.specimen-caption time{font-family:PlexJP,sans-serif}.specimen-caption button{font-family:PlexJP,sans-serif;border-bottom:1px solid #c3bda378}
.history-panel{top:26px;right:26px;bottom:26px;height:auto;width:min(880px,calc(100vw - 52px));max-width:calc(100vw - 52px);border:1px solid var(--sheet-ink);outline:1px solid #c8ceb566;outline-offset:6px;clip-path:polygon(0 0,calc(100% - 22px) 0,100% 22px,100% 100%,0 100%)}
.panel-header{padding:25px 24px 20px;border:0;flex-shrink:0}.panel-header h2{font-family:FieldMincho,serif;font-size:29px;line-height:1.5;letter-spacing:.13em;font-weight:400;margin:0 0 6px}.panel-header p{font-family:PlexMono,PlexJP,monospace;font-size:11px;color:var(--sheet-muted);letter-spacing:.06em}.icon-button{border:1px solid var(--sheet-rule);border-radius:0;color:var(--sheet-ink);width:40px;height:40px;background:none}.icon-button:hover{background:var(--sheet-tab)}
.folder-tabs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));margin:0 24px;border-bottom:1px solid var(--sheet-ink);flex-shrink:0;gap:2px}.folder-tabs button{display:flex;gap:7px;align-items:center;justify-content:center;min-height:42px;padding:8px 6px;background:var(--sheet-tab);color:var(--sheet-ink);border:0;clip-path:polygon(0 11px,10px 0,calc(100% - 10px) 0,100% 11px,100% 100%,0 100%);font-size:13px;white-space:nowrap}.folder-tabs button span{font-family:PlexMono,monospace;font-size:11px;opacity:.75}.folder-tabs button[aria-selected=true]{background:var(--sheet-ink);color:var(--sheet)}.folder-tabs button:hover{filter:brightness(.95)}.folder-tabs button:focus-visible{outline:0;box-shadow:inset 0 0 0 3px var(--sheet-ink),inset 0 0 0 4px var(--sheet)}
.history-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-content:start;gap:14px;min-height:0;flex:1;padding:20px 24px 24px;scrollbar-width:thin;scrollbar-color:var(--sheet-muted) var(--sheet)}
.history-item{position:relative;isolation:isolate;display:flex;align-items:stretch;flex-direction:column;gap:0;padding:26px 12px 12px;border:0;background:var(--sheet-ink);color:var(--sheet-ink);text-align:left;clip-path:polygon(0 0,48% 0,calc(48% + 12px) 10px,100% 10px,100% 100%,0 100%);width:100%;min-width:0;transition:transform .2s cubic-bezier(.16,1,.3,1)}
.history-item::before{content:'';position:absolute;inset:1px;z-index:-1;background:var(--sheet);clip-path:polygon(0 0,48% 0,calc(48% + 12px) 10px,100% 10px,100% 100%,0 100%)}.history-item:hover{background:var(--sheet-ink);transform:translateY(-3px)}.history-item:hover::before{background:var(--sheet-tab)}.history-item:focus-visible{outline:0;box-shadow:inset 0 0 0 3px var(--sheet-ink)}.specimen-tag{position:absolute;top:5px;left:11px;font-family:PlexMono,PlexJP,monospace;font-size:10px;letter-spacing:.06em;color:var(--sheet-muted)}
.history-item>img{width:100%;height:155px;display:block;object-fit:contain;flex-shrink:0;background:var(--sheet-window);border-radius:0;margin:0 0 13px}.history-item strong{font-family:FieldMincho,serif;font-size:18px;font-weight:400;line-height:1.8;letter-spacing:.02em;overflow-wrap:anywhere}.card-meta{display:flex;justify-content:space-between;gap:8px;margin-top:8px;padding-top:8px;border-top:1px solid var(--sheet-rule);font-family:PlexMono,PlexJP,monospace;font-size:10px;color:var(--sheet-muted);line-height:1.8}.history-item time{font-family:inherit;font-size:10px;color:inherit}.empty-history{grid-column:1/-1;line-height:2;font-size:14px;padding:20px 6px;color:var(--sheet-muted)}
.panel-foot{position:relative;display:flex;justify-content:space-between;gap:12px;align-items:flex-start;padding:11px 24px 14px;border-top:1px solid var(--sheet-rule);font-size:11px;color:var(--sheet-muted);flex-shrink:0}.panel-foot details{max-width:70%;font-size:11px}.panel-foot summary{cursor:pointer;min-height:36px;display:flex;align-items:center;color:var(--sheet-ink)}.panel-foot details p{font-size:11px;line-height:1.9;margin:4px 0 8px}.panel-foot button{min-height:36px;margin:0;padding:3px 0;align-self:flex-start;color:var(--sheet-ink);border-color:var(--sheet-rule);white-space:nowrap;font-size:11px}
.memory{width:720px;max-width:calc(100vw - 40px);max-height:calc(100svh - 44px);left:50%;padding:0;border:1px solid var(--sheet-ink);clip-path:polygon(0 0,calc(100% - 18px) 0,100% 18px,100% 100%,0 100%);scrollbar-color:var(--sheet-muted) var(--sheet)}.memory-top{position:sticky;top:0;z-index:2;display:flex;justify-content:space-between;align-items:center;padding:12px 20px;background:var(--sheet);border-bottom:1px solid var(--sheet-rule);font-family:PlexMono,PlexJP,monospace;font-size:12px}.memory-close{position:static}.specimen-file{display:grid;grid-template-columns:40% minmax(0,1fr);gap:24px;padding:25px 24px 22px}.specimen-file figure{margin:0;min-width:0}.specimen-file figure img{display:block;width:100%;height:300px;object-fit:contain;background:var(--sheet-window);margin:0;border:1px solid var(--sheet-ink)}.specimen-file figcaption{font-size:11px;line-height:1.9;color:var(--sheet-muted);margin-top:8px;padding-top:8px;border-top:1px solid var(--sheet-rule);font-family:PlexMono,PlexJP,monospace}.specimen-writing{min-width:0}.memory h2{font-family:FieldMincho,serif;font-size:23px;line-height:1.8;letter-spacing:.04em;margin:0 0 13px;overflow-wrap:anywhere}.memory .memory-description{font-size:13px;color:var(--sheet-muted);line-height:1.95;margin:0 0 18px}.file-date{display:grid;grid-template-columns:54px 1fr;gap:10px;border-top:1px solid var(--sheet-rule);border-bottom:1px solid var(--sheet-rule);padding:9px 0;font-size:11px;line-height:1.8;color:var(--sheet-muted)}.memory time{font-family:PlexMono,PlexJP,monospace;font-size:11px;color:var(--sheet-ink);letter-spacing:0}.diary-label{font-size:11px;letter-spacing:.08em;margin-top:20px;color:var(--sheet-muted)}.memory #memoryText{font-family:PlexJP,sans-serif;font-size:15px;line-height:2;white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0 15px}.memory .memory-reason{font-size:11px;margin:0;color:var(--sheet-muted);line-height:1.8}.memory-bottom{margin-top:15px;padding-top:10px;border-top:1px solid var(--sheet-rule);font-size:11px;color:var(--sheet-muted)}.memory-bottom button{color:var(--sheet-ink);border-color:var(--sheet-rule);font-family:PlexJP,sans-serif;font-size:12px}
:root[data-ui=notebook]{--sheet:#e2dece;--sheet-ink:#3b443a;--sheet-muted:#6a725f;--sheet-rule:#a7ad98;--sheet-tab:#d0d2bb}.pencil-line{display:none}:root[data-ui=notebook] .pencil-line{display:block}:root[data-ui=notebook] .composer{outline-style:dashed;outline-offset:4px}:root[data-ui=notebook] .sheet-tab{font-family:FieldHand,serif;font-size:17px;letter-spacing:.08em;padding-top:0}:root[data-ui=notebook] .composer h2{font-family:FieldHand,serif;font-size:24px;letter-spacing:.02em}:root[data-ui=notebook] .panel-header h2{font-family:FieldHand,serif;font-size:31px}:root[data-ui=notebook] .memory h2{font-family:FieldMincho,serif}:root[data-ui=notebook] .history-item:nth-child(3n+1){transform:rotate(-.35deg)}:root[data-ui=notebook] .history-item:hover{transform:translateY(-3px) rotate(0)}
:root[data-ui=case]{--sheet:#303d37;--sheet-ink:#e2e1ca;--sheet-muted:#b6c0ab;--sheet-rule:#657b6a;--sheet-tab:#475b49;--sheet-window:#2a302e}:root[data-ui=case] .composer,:root[data-ui=case] .history-panel,:root[data-ui=case] .memory{outline-color:#e2e1ca44}:root[data-ui=case] .plant-button:hover{background:#d1d6b6;color:#26352e}:root[data-ui=case] .history-item:hover::before{background:#3d5041}
@media(max-width:1050px) and (min-width:701px){.composer{width:320px;padding:17px}.mood-row{grid-template-columns:24px 1fr;gap:6px}.mood{font-size:11px}.save-note{font-size:10px}.plant-button{min-width:125px;font-size:12px}.history-panel{width:calc(100vw - 52px)}}
@media(max-width:700px){.composer{width:100%;margin-top:36px;padding:17px 18px 15px;max-width:420px}.sheet-register{font-size:10px}.composer h2{font-size:20px}.composer textarea{min-height:83px;font-size:16px;resize:none}.mood-row{display:grid;grid-template-columns:25px 1fr;gap:6px}.mood{font-size:11px;min-height:36px;gap:4px}.composer-bottom{display:flex;flex-direction:row;align-items:center;gap:6px}.plant-button{font-size:12px;min-width:126px;padding:10px 12px}.save-note{font-size:10px}.history-panel{top:12px;right:12px;bottom:12px;width:calc(100vw - 24px);max-width:calc(100vw - 24px);outline-offset:3px}.panel-header{padding:22px 17px 17px}.panel-header h2{font-size:26px}.panel-header p{font-size:11px}.folder-tabs{grid-template-columns:repeat(3,minmax(0,1fr));margin:0 16px;gap:3px 2px}.folder-tabs button{min-height:40px;font-size:12px}.history-list{grid-template-columns:repeat(2,minmax(0,1fr));padding:16px;gap:12px}.history-item{padding:25px 10px 10px}.history-item>img{height:135px;margin-bottom:9px}.history-item strong{font-size:16px;line-height:1.8}.card-meta{display:block;font-size:10px;margin-top:6px;padding-top:6px}.card-meta>span{display:block}.history-item time{font-size:10px}.panel-foot{padding:10px 16px 12px;gap:8px}.panel-foot details{max-width:60%}.panel-foot button{font-size:11px}.specimen-caption h2{font-size:21px}.memory{max-width:calc(100vw - 24px);max-height:calc(100svh - 28px)}.memory-top{padding:9px 14px}.specimen-file{grid-template-columns:1fr;gap:20px;padding:18px}.specimen-file figure img{height:190px}.specimen-file figcaption{font-size:11px}.memory h2{font-size:23px}.memory .memory-description{font-size:13px}.memory #memoryText{font-size:15px}}
@media(max-width:350px){.composer{padding:16px}.mood-row{display:block}.mood-row>span{display:block;margin-bottom:4px}.mood{font-size:11px}.moods{gap:3px}.composer-bottom{flex-direction:row;align-items:center}.save-note{font-size:9px}.plant-button{font-size:11px;min-width:119px}.sheet-register{font-size:10px}.composer time{font-size:10px}.history-list{gap:9px;padding:12px}.history-item{padding:24px 8px 9px}.history-item>img{height:118px}.history-item strong{font-size:15px}.folder-tabs{margin:0 12px}.panel-header{padding:20px 13px 15px}.panel-foot{padding:10px 12px}.panel-foot details{max-width:55%}}
