:root{color-scheme:light;--ink:#172d47;--muted:#6a7887;--line:#e2e7ec;--bg:#f4f6f8;--accent:#315b78;font-family:"Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button,a,input,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}button,a{touch-action:manipulation}button{border:0;background:none;color:inherit}button:focus-visible,a:focus-visible{outline:3px solid #548eb6;outline-offset:3px}input:focus,textarea:focus{outline:2px solid #548eb6;outline-offset:1px}button:hover{filter:brightness(.96)}.site-header{height:82px;border-bottom:1px solid var(--line);background:#fff;display:flex;align-items:center;padding:0 5%;gap:24px}.brand{text-decoration:none;color:var(--ink);font-size:17px;letter-spacing:2px;display:flex;align-items:center;gap:7px}.brand strong{font-weight:400;color:#718091}.brand-icon{font-size:34px;margin-right:7px}.header-caption{font-size:11px;color:var(--muted);letter-spacing:1px}.quiet{margin-left:auto;font-size:12px;padding:12px}.primary,.secondary{display:inline-flex;justify-content:center;align-items:center;border-radius:6px;min-height:44px;padding:12px 20px;font-size:13px;font-weight:700;text-decoration:none}.primary{background:var(--ink);color:#fff}.secondary{border:1px solid var(--line);background:#fff}main{max-width:1376px;margin:auto;padding:38px 48px 0}.page-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:26px}.eyebrow{font-size:9px;font-weight:700;letter-spacing:2.2px;color:#7e8d9c}h1{font-size:24px;letter-spacing:1px;font-weight:600;margin:10px 0 0}.local-note{font-size:11px;color:var(--muted)}.local-note:before{content:"✓";margin-right:7px}.toolbar{display:flex;align-items:end;gap:22px;background:#fff;border:1px solid var(--line);border-radius:10px;padding:22px 24px;margin-bottom:28px}.toolbar label,.field-label{font-size:11px;font-weight:700;display:block}.toolbar input{width:100%;border:0;border-bottom:1px solid #ccd6df;border-radius:0;padding:10px 0 9px;font-size:14px;color:var(--ink);background:#fff;min-height:42px}.title-field{flex:1;min-width:0}.date-field{width:157px}.segmented{display:flex;background:#eef2f5;border-radius:6px;padding:3px;margin-top:7px}.segmented button{min-height:36px;min-width:62px;font-size:12px;border-radius:4px}.segmented [aria-pressed=true]{background:#fff;box-shadow:0 1px 5px #172d4714;font-weight:700}.toolbar .primary{margin-bottom:1px;min-width:145px}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 298px;gap:26px;align-items:start}.paper{padding:30px;background:#fff;border:1px solid var(--line);border-radius:9px;box-shadow:0 6px 24px #172d4704;min-width:0}.paper-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:25px}.paper-heading h2{font-size:18px;line-height:1.6;margin:0;overflow-wrap:anywhere;white-space:pre-wrap}.paper-heading p{font-size:11px;letter-spacing:1px;color:var(--muted);margin:6px 0 0}#progress{font-size:10px;white-space:nowrap;color:#7a8998}.chart{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;aspect-ratio:1}.block,.detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));gap:2px;min-width:0;min-height:0;background:#dce3e8;border:1px solid #dce3e8;border-radius:3px;overflow:hidden}.cell{display:flex;align-items:center;justify-content:center;padding:5px;background:var(--cell-bg,#fff);min-width:0;min-height:0;position:relative;overflow:hidden}.cell .cell-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.4;max-width:100%;font-size:clamp(8px, .85vw, 12px)}.cell.is-center{font-weight:700}.cell.goal{background:var(--ink);color:#fff}.cell.selected{box-shadow:inset 0 0 0 2px #355f7e;z-index:1}.cell.goal.selected{box-shadow:inset 0 0 0 2px #8cb5d3}.cell-placeholder{font-size:9px;color:#8a98a5;letter-spacing:.2px}.goal .cell-placeholder{color:#dbe6ee}.chart.nine .block{grid-column:1/-1;grid-row:1/-1}.chart.nine .cell-text{font-size:clamp(12px,1.4vw,20px)}.chart.nine .cell-placeholder{font-size:14px}.paper-footer{margin-top:21px;display:flex;justify-content:space-between;gap:10px;font-size:10px;color:#8a97a3}.paper-footer i{display:inline-block;width:7px;height:7px;background:var(--ink);margin-right:7px;border-radius:1px}.sidebar{display:grid;gap:20px}.editor{background:#fff;border:1px solid var(--line);border-radius:9px;padding:23px}.section-label{display:flex;align-items:center;justify-content:space-between;font-size:9px;letter-spacing:1.8px;color:#8191a0}.section-label #theme-dot{width:9px;height:9px;border-radius:50%;background:var(--ink)}.editor h2{font-size:18px;margin:16px 0 8px}.editor>p{font-size:11px;line-height:1.8;color:var(--muted);margin:0 0 16px}.block-nav{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;font-size:10px;color:var(--muted)}.block-nav button{height:32px;width:32px;border:1px solid var(--line);border-radius:4px}.detail-grid{aspect-ratio:1;margin-bottom:18px}.detail-grid .cell-text{font-size:10px}.editor textarea{resize:vertical;width:100%;min-height:104px;max-height:280px;border:1px solid #cbd6df;border-radius:5px;padding:12px;font-size:14px;line-height:1.8;color:var(--ink);background:#fbfcfd}.input-footer{display:flex;justify-content:space-between;gap:8px;font-size:9px;color:var(--muted);margin-top:6px}#back-overview{display:none}.history-section{padding:5px 5px 0}.history-heading{display:flex;justify-content:space-between;align-items:center}.history-heading h2{font-size:13px;font-weight:700;margin:0}.history-heading>span{font-size:10px;color:var(--muted)}.history-description{font-size:10px;color:var(--muted);margin:9px 0 15px}.empty-history{border:1px dashed #ccd5de;border-radius:6px;padding:22px 10px;text-align:center;font-size:11px;color:#7a8998;line-height:1.8}.history-card{border-top:1px solid var(--line);padding:13px 0}.history-card h3{font-size:12px;overflow-wrap:anywhere;margin:0 0 6px}.history-card p{font-size:10px;color:var(--muted);margin:4px 0}.history-actions{display:flex;gap:10px;margin-top:8px}.history-actions button{padding:6px 12px;min-height:34px;font-size:11px;border:1px solid #d5dee6;border-radius:4px}.history-actions .delete-history{color:#7e6b6b;border:0}.privacy-note{font-size:9px;line-height:1.9;color:#8a97a3;margin:0 5px}.site-footer{margin-top:36px;padding:22px 0;border-top:1px solid var(--line);display:flex;justify-content:space-between;color:#8a97a3;font-size:9px;letter-spacing:1px}.warning{padding:12px 16px;background:#fff1db;color:#784b15;border-radius:6px;font-size:12px;line-height:1.7}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:var(--ink);color:#fff;border-radius:7px;padding:13px 20px;font-size:12px;max-width:90vw;box-shadow:0 5px 20px #172d4730;z-index:20}#toast:empty{display:none}dialog{border:1px solid var(--line);border-radius:12px;width:min(460px,calc(100% - 32px));padding:25px;color:var(--ink);box-shadow:0 24px 80px #172d4740}dialog::backdrop{background:#172d4760}dialog h2{font-size:19px;margin-top:0}dialog p{font-size:13px;line-height:1.8}.dialog-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:22px;flex-wrap:wrap}#image-dialog{width:min(620px,calc(100% - 24px));max-height:90dvh;overflow:auto}#export-image{display:block;width:100%;height:auto} @media(min-width:1600px){.cell .cell-text{font-size:13px}}
@media(max-width:1000px){main{padding:28px 24px 0}.workspace{grid-template-columns:minmax(0,1fr) 260px;gap:18px}.paper{padding:20px}.toolbar{gap:14px;padding:18px}.toolbar .primary{min-width:128px;padding:12px}.date-field{width:142px}.header-caption{display:none}.cell{padding:3px}.chart{gap:5px}.editor{padding:18px}.paper-footer{font-size:9px}}
@media(max-width:760px){.site-header{height:64px;padding:0 20px}.brand{font-size:13px;letter-spacing:1.6px;gap:5px}.brand-icon{font-size:28px;margin-right:2px}.quiet{font-size:11px;padding:10px 0}main{padding:25px 16px 0}.page-heading{margin-bottom:22px;align-items:start;gap:10px}h1{font-size:20px;letter-spacing:0}.eyebrow{font-size:8px}.local-note{font-size:9px;max-width:82px;line-height:1.7;text-align:right;margin-top:17px}.toolbar{display:grid;grid-template-columns:1fr 1fr;gap:18px 16px;margin-bottom:20px;padding:18px}.title-field{grid-column:1/-1}.date-field{width:auto}.mode-field{justify-self:end}.toolbar .primary{grid-column:1/-1;width:100%;min-height:46px}.workspace{display:block}.paper{padding:20px 14px}.paper-heading{margin-bottom:20px}.paper-heading h2{font-size:16px}.chart{gap:5px}.cell .cell-text{font-size:8px}.cell-placeholder{font-size:7px;letter-spacing:0}.cell{padding:2px}.chart.nine .cell-text{font-size:13px}.paper-footer{font-size:8px}.sidebar{margin-top:20px;gap:24px}.editor{padding:22px;scroll-margin-top:16px}.editor h2{font-size:20px}.editor>p{font-size:12px}.detail-grid{max-width:360px;margin:0 auto 20px}.detail-grid .cell-text{font-size:14px}.detail-grid .cell-placeholder{font-size:11px}.detail-grid .cell{padding:8px}.block-nav{max-width:360px;margin:0 auto 12px;font-size:12px}.block-nav button{width:44px;height:40px}.editor textarea{font-size:16px;min-height:115px}.input-footer{font-size:10px}#back-overview{display:flex;width:100%;margin-top:20px}.history-section{padding:0 8px}.history-heading h2{font-size:15px}.history-description{font-size:11px}.history-card h3{font-size:14px}.history-actions button{min-height:44px}.privacy-note{margin:0 8px}.site-footer{font-size:8px;margin-top:30px}.paper-heading p{font-size:10px}.chart.nine .cell-placeholder{font-size:12px}}
@media(prefers-reduced-motion:no-preference){button{transition:background .15s,box-shadow .15s}html{scroll-behavior:smooth}}
