@charset "UTF-8";
:root{--bg:#faf8f3;--surface:#fff;--text:#2d2d2d;--muted:#72736d;--border:#e7e3dc;--accent:#49675a;--accent-light:#e6f0e9;--blue:#3b82f6;--red:#ef6262;--gold:#e9b33f;font-family:-apple-system,BlinkMacSystemFont,"Hiragino Sans","Yu Gothic UI","Noto Sans JP",sans-serif;color:var(--text);background:#edece6;font-synthesis:none;font-size:14px;line-height:1.6}
*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{cursor:default}button{border:0;background:none}a{color:var(--accent)}button:focus-visible,a:focus-visible,input:focus-visible,[tabindex]:focus-visible{outline:3px solid #9c7030;outline-offset:3px}button:disabled{opacity:.4}button:active:not(:disabled){transform:translateY(1px)}svg{width:22px;height:22px;flex:none}h1,h2,p{margin:0}h1{font-size:22px;line-height:1.5;letter-spacing:.015em;overflow-wrap:anywhere}h2{font-size:16px;line-height:1.5}p{overflow-wrap:anywhere}.app-shell{max-width:430px;min-height:100dvh;margin:auto;background:var(--bg);box-shadow:0 0 55px #353e3010}.app-header{height:80px;display:grid;grid-template-columns:44px 1fr 44px;align-items:center;padding:0 16px;border-bottom:1px solid #e7e3dc80}.brand{text-align:center;color:var(--text);text-decoration:none;font-weight:700;font-size:24px;letter-spacing:.12em}.brand span{display:block;font-size:9px;letter-spacing:.12em;font-weight:400;margin-top:0}.brand-mark{font-size:30px;color:var(--accent);text-align:center}.icon-button{width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%}.icon-button:hover:not(:disabled){background:var(--accent-light)}main{padding:0 16px calc(100px + env(safe-area-inset-bottom));min-height:calc(100dvh - 80px)}main:focus{outline:none}.bottom-nav{position:fixed;z-index:10;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:430px;display:grid;grid-template-columns:repeat(4,1fr);padding:8px 10px calc(8px + env(safe-area-inset-bottom));background:#fefdfaef;backdrop-filter:blur(16px);border-top:1px solid var(--border)}.bottom-nav button{min-height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#777970;font-size:11px;border-radius:12px}.bottom-nav button[aria-current]{color:var(--accent);font-weight:700;background:#e6f0e970}.bottom-nav button[aria-current] svg{fill:#49675a15;stroke-width:2}.eyebrow{display:block;font-size:11px;color:var(--accent);letter-spacing:.1em;margin-bottom:8px}.subtle{font-size:12px;color:var(--muted)}.note{font-size:11px;color:var(--muted);margin-top:12px;line-height:1.8}.page-heading{padding:28px 0 24px}.page-heading h1{font-size:23px}.page-heading .subtle{margin-top:6px}.primary,.outline{min-height:48px;padding:12px 18px;border-radius:12px;display:flex;align-items:center;justify-content:center;gap:8px;font-weight:600}.primary{background:var(--accent);color:#fff;width:100%;box-shadow:0 3px 8px #49675a12}.primary:hover{background:#3d584b}.outline{border:1px solid var(--border);background:#fff}.outline:hover{border-color:var(--accent)}.text-button{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:6px;color:var(--accent);font-weight:600}.back{margin:8px 0 -8px;font-size:12px;justify-content:flex-start}.back svg{width:16px}.card{background:var(--surface);border:1px solid #eeeae3;border-radius:16px;box-shadow:0 3px 12px #2d2d2d04}.badge{display:inline-flex;align-items:center;min-height:24px;border-radius:99px;padding:2px 11px;background:var(--accent-light);color:var(--accent);font-size:11px}.project-hero{text-align:center;padding:18px 10px 0}.project-hero h1{font-size:22px;margin-bottom:9px}.project-hero .eyebrow{font-size:10px;margin-bottom:10px}.countdown{font-size:15px;line-height:1.2;margin-bottom:5px}.countdown strong{font-size:2.2rem;letter-spacing:-.035em;line-height:1.4;font-variant-numeric:tabular-nums;font-weight:700}
.deadline-number{position:relative;display:inline-block;isolation:isolate;margin-inline:.1em}
.deadline-number:before{content:"";position:absolute;left:-.12em;right:-.12em;bottom:.08em;height:.55em;background:#f6e98b;opacity:.95;border-radius:.18em .12em .22em .14em;transform:rotate(-1.5deg);z-index:-1}
.project-hero+.week-nav{margin:14px 0}
.sheet-count{display:block;color:var(--accent);font-size:10px;letter-spacing:.08em;margin-bottom:7px}.project-switch{display:inline-flex;align-items:center;justify-content:center;gap:10px;max-width:100%;min-height:42px;padding:7px 15px;border:1px solid #b7cbb9;border-radius:999px;background:#f5faf4;color:var(--text);font-size:17px;font-weight:600;line-height:1.25;letter-spacing:0;box-shadow:0 1px 2px #49675a0d;overflow-wrap:anywhere}.project-switch span{font-size:20px;color:var(--accent);line-height:1;transform:translateY(-1px)}.project-switch:hover{border-color:#8eaa94;background:#eef6ed;color:var(--accent)}
.archive-target,.start-note{font-size:11px;color:var(--muted);margin-top:6px}
.matrix-help strong{display:block;font-size:13px;color:var(--accent);margin-bottom:4px}
.matrix-help>span{display:block;font-size:11px}
.week-nav{display:grid;grid-template-columns:44px 1fr 44px;align-items:center;text-align:center;margin:26px 0 18px}.week-nav strong{font-size:18px;font-weight:600;font-variant-numeric:tabular-nums}.range-dash{color:#a5a69f;padding:0 6px;font-weight:400}.week-caption{display:flex;gap:8px;align-items:center;justify-content:center;color:var(--muted);font-size:11px;margin-top:5px;min-height:24px}.week-year{display:block;color:var(--muted);font-size:10px;margin-top:2px}.matrix-wrap{overflow-x:auto;border:1px solid var(--border);border-radius:12px;background:#fff;scrollbar-width:thin;touch-action:pan-x pan-y;isolation:isolate}.matrix{width:100%;min-width:326px;border-spacing:0;table-layout:fixed}.category-col{width:60px}.matrix th,.matrix td{padding:0;border-right:1px solid var(--border);border-bottom:1px solid var(--border);text-align:center}.matrix tr>:last-child{border-right:0}.matrix tbody tr:last-child>*{border-bottom:0}.matrix thead th{font-size:11px;font-weight:500;height:66px;background:#fdfcf9;vertical-align:middle;position:relative}.matrix thead th span{display:block;line-height:1.65}.matrix thead th em{font-size:8px;line-height:1.2;display:block;font-style:normal;position:absolute;bottom:3px;left:0;right:0}.matrix thead th.today{box-shadow:inset 0 3px var(--accent);background:#edf3eb;color:var(--accent);font-weight:700}.matrix thead th.saturday{background:#eff6ff;color:#2563eb}.matrix thead th.holiday{background:#fef2f2;color:#c93838}.matrix thead th.today.holiday{color:#c93838}.matrix tbody th{position:sticky;left:0;z-index:2;background:#fdfcf9;font-size:12px;font-weight:500;padding:0 6px;height:52px}.matrix tbody th span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.matrix thead .corner{position:sticky;left:0;z-index:3;color:var(--muted);font-size:10px}.cell{display:flex;align-items:center;justify-content:center;width:100%;height:51px;padding:0;touch-action:pan-x pan-y;user-select:none;-webkit-user-select:none}.cell:focus-visible{outline-offset:-4px;border-radius:4px}.cell:hover:not(:disabled){background:#f0f4ed}.cell:disabled{opacity:1}.matrix .outside{background:repeating-linear-gradient(135deg,#f4f2ed,#f4f2ed 3px,#f7f5f1 3px,#f7f5f1 6px)}.outside-dash{font-size:11px;color:#b9b7ae}.matrix .future{background:#fafaf8}.matrix .today-cell{background:#f8fbf6}/* Raised stickers: empty shapes, with soft light and a paper-contact shadow. */
.seal{width:26px;height:26px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;position:relative;border-radius:50%;box-shadow:inset 0 1px 1px #ffffffa6,inset 0 -2px 3px #0000001a,0 1px 3px #0000001f;isolation:isolate}
.seal.blue{background:radial-gradient(circle at 32% 28%,#7fc2ff 0%,#4da0f0 45%,#2f7fd0 100%);border:1px solid #2a64aa40}
.seal.red{background:radial-gradient(circle at 32% 28%,#ffb1b1 0%,#f47b7b 45%,#d95f5f 100%);border:1px solid #aa464640}
.seal.blue:before,.seal.red:before{content:"";position:absolute;left:19%;top:12%;width:53%;height:28%;border-radius:50%;background:linear-gradient(#ffffffa6,#ffffff00);transform:rotate(-22deg)}
.seal.gold{border-radius:0;box-shadow:none;filter:drop-shadow(0 1px 1px #00000025);background:none}
.seal.gold:before{content:"";position:absolute;inset:0;clip-path:polygon(50% 0%,63% 32%,98% 36%,72% 59%,80% 96%,50% 78%,20% 96%,28% 59%,2% 36%,37% 32%);background:radial-gradient(ellipse at 32% 22%,#fff3bc 0%,#f6d575 30%,#e9b33f 62%,#ca9227 100%);box-shadow:inset 0 1px 2px #fff9,inset 0 -2px 3px #98672033}
.seal.clear{background:#eef0f1;color:#6b7477;box-shadow:none;font-family:inherit;font-weight:400}
.seal.large{width:43px;height:43px;font-size:25px}
.seal.just-pasted{animation:seal-paste 170ms ease-out}
@keyframes seal-paste{from{transform:scale(.85)}to{transform:scale(1)}}
.legend{display:flex;justify-content:center;gap:21px;padding:19px 0 10px}.legend>span{display:flex;align-items:center;gap:6px;font-size:10px;color:var(--muted)}.legend .seal{width:13px;height:13px;font-size:8px}.legend .gold{font-size:10px}.matrix-help{text-align:center;font-size:11px;color:var(--muted);line-height:1.8}.holiday-list{font-size:10px;color:#a36660;text-align:center;margin-top:12px}.review-link{display:flex;align-items:center;gap:10px;border-top:1px solid var(--border);border-bottom:1px solid var(--border);margin:25px 0 0;width:100%;padding:16px 8px;color:var(--accent);font-size:12px}.review-link>svg:last-child{margin-left:auto;width:16px}.finished{background:var(--accent-light);border-radius:16px;padding:18px;margin-top:16px}.finished>svg{display:block;margin:0 auto 8px;color:#bd8f30;width:30px;height:30px}.finished strong{display:block;font-size:17px}.finished p{font-size:12px;margin-top:4px}.finished .text-button{margin-top:6px}.segmented{display:flex;background:#efeee8;padding:4px;border-radius:99px}.segmented button{flex:1;min-height:40px;border-radius:99px;font-size:13px}.segmented button[aria-pressed=true]{background:var(--accent);color:#fff;box-shadow:0 2px 5px #49675a20}.period-label{font-size:11px;color:var(--muted);text-align:center;margin:23px 0}.summary-cards{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0 28px}.summary-cards section{padding:16px}.summary-cards h2{font-weight:400;font-size:11px;color:var(--muted)}.summary-cards p{display:flex;align-items:center;gap:6px;margin-top:5px}.summary-cards strong{font-size:31px;font-weight:600;line-height:1.3}.summary-cards p>span:last-child{font-size:12px}.summary-cards .seal{width:22px;height:22px}.section-label{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;gap:8px}.section-label h2{font-size:14px}.section-label>span{font-size:10px;color:var(--muted)}.chart-row{display:grid;grid-template-columns:60px 1fr 42px;gap:10px;align-items:center;min-height:40px;font-size:12px}.chart-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bar-track{background:#eeede640;border-radius:4px;height:18px;overflow:hidden}.bar{height:100%;border-radius:4px;background:#80afc7}.color-1{background:#91baa0}.color-2{background:#e9a6a8}.color-3{background:#b2a4d4}.color-4{background:#dbbc73}.chart-row strong{text-align:right;font-weight:500;font-variant-numeric:tabular-nums}.reflection{margin-top:24px;padding:20px;position:relative}.reflection h2{font-size:14px;margin-bottom:12px}.reflection p{font-size:12px;line-height:1.9;margin-top:5px}.reflection-mark{position:absolute;right:17px;top:12px;color:#b2c1ad;font-size:26px}.top-category{font-size:11px;color:var(--muted);margin-top:16px}.field{border:0;margin:0 0 24px;padding:0;min-width:0}.field>label,.field>legend{display:block;font-size:13px;font-weight:600;margin-bottom:9px;padding:0}.required{font-weight:400;color:#838778;font-size:9px;background:#efeee8;padding:2px 5px;border-radius:3px;margin-left:4px}input{width:100%;min-width:0;min-height:47px;padding:10px 12px;border:1px solid var(--border);border-radius:9px;background:#fff;color:var(--text);font-size:14px}input::placeholder{color:#a0a199}input[type=date]{display:block;min-width:0;appearance:none;-webkit-appearance:none}input:focus{border-color:var(--accent)}.week-options{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.week-options button{background:white;border:1px solid var(--border);border-radius:9px;min-height:44px;font-size:13px}.week-options button[aria-pressed=true]{background:var(--accent);color:#fff;border-color:var(--accent)}#custom-weeks{margin-top:12px}#custom-weeks label{font-size:12px;display:block;margin-bottom:5px}.start-preview{display:flex;gap:12px;align-items:center;padding:16px;margin-bottom:24px;border-radius:12px;background:var(--accent-light);font-size:12px;color:var(--accent);min-height:76px}.start-preview svg{width:20px}.start-preview strong{font-weight:600}.preview-end{display:block;font-size:10px;margin-top:5px;color:#647366}.category-inputs{display:grid;grid-template-columns:1fr 1fr;gap:8px}.category-chip{display:flex;min-width:0;border:1px solid var(--border);border-radius:10px;background:#fff;overflow:hidden}.category-chip input{border:0;width:100%;min-height:44px;padding:8px 0 8px 12px;font-size:12px;border-radius:0}.category-chip input:focus-visible{outline-offset:-3px}.remove-category{flex:none;display:flex;align-items:center;justify-content:center;width:38px;min-height:44px}.remove-category svg{width:14px}.add-category{font-size:12px;min-height:44px;padding:8px 14px;margin-top:12px}.add-category svg{width:18px}.storage-note{font-size:10px;text-align:center;color:var(--muted);margin:15px 0 0;line-height:1.8}.inherit-button{display:block;text-align:left;width:100%;background:var(--accent-light);border:1px dashed #adc1ae;padding:12px 16px;border-radius:10px;color:var(--accent);font-size:12px;margin-bottom:24px;min-height:60px}.inherit-button span{display:block;font-size:10px;margin-top:3px}.error{font-size:12px;color:#b03939;line-height:1.8;margin-bottom:16px}.error:empty{display:none}.archive-list,.settings-list{display:grid;gap:12px}.archive-card{display:flex;align-items:center;gap:10px;text-align:left;width:100%;padding:17px 16px 17px 20px;border-left:4px solid #dbbc73}.archive-card>span{flex:1;min-width:0}.archive-card strong{font-size:15px;display:block;overflow-wrap:anywhere}.archive-meta{display:block;font-size:10px;color:var(--muted);line-height:1.9;margin-top:6px}.archive-card>svg{width:16px}.stripe-1{border-left-color:#e9a6a8}.stripe-2{border-left-color:#b2a4d4}.stripe-3{border-left-color:#80afc7}.stripe-4{border-left-color:#91baa0}.archive-list+.primary{margin-top:24px}.setting-card{display:grid;grid-template-columns:40px 1fr 16px;gap:12px;align-items:center;padding:18px 14px;text-align:left;min-height:85px}.setting-card strong{font-size:13px;font-weight:600}.setting-card small{display:block;font-size:10px;color:var(--muted);margin-top:4px;line-height:1.5}.setting-icon{background:#eff2ed;border-radius:50%;width:40px;height:40px;display:flex;align-items:center;justify-content:center;color:var(--accent)}.setting-card>svg{width:15px}.complete-section{border-top:1px solid var(--border);margin-top:28px;padding-top:24px;text-align:center}.complete-section .outline{width:100%;font-size:12px;margin-top:12px}.settings-footer{text-align:center;font-size:11px;color:var(--muted);line-height:2.2;margin-top:32px}.settings-footer span{font-size:10px;padding-left:5px}.settings-footer a{font-size:10px}.empty{text-align:center;padding:50px 8px}.empty-mark{display:block;font-size:50px;color:#b0beab;margin-bottom:15px}.empty-mark svg{width:48px;height:48px}.empty h1,.empty h2{font-size:19px}.empty p{font-size:12px;color:var(--muted);margin:14px 0 24px;line-height:1.9}.modal-open{overflow:hidden}dialog{color:var(--text);background:var(--bg);border:0;padding:26px;max-height:85dvh;overflow-y:auto;box-shadow:0 12px 60px #0002}dialog::backdrop{background:#1c261d55;backdrop-filter:blur(2px)}dialog.confirmation{width:calc(100% - 40px);max-width:380px;border-radius:22px}dialog h2{font-size:18px;margin-bottom:12px}dialog p{font-size:13px;margin-bottom:15px;line-height:1.8}dialog .primary{font-size:13px;margin-top:15px}dialog.sheet{width:100%;max-width:430px;max-height:85dvh;inset:auto 0 0;margin:0 auto;border-radius:24px 24px 0 0;padding:12px 20px calc(26px + env(safe-area-inset-bottom));text-align:center;animation:sheet-in .22s ease-out}.sheet-handle{width:38px;height:4px;background:#d3d6ce;border-radius:99px;margin:0 auto 22px}.sheet-close{position:absolute;right:10px;top:10px;width:40px;height:40px;color:var(--muted)}dialog.sheet .eyebrow{font-size:11px;margin:0 30px 5px}dialog.sheet h2{font-size:18px;margin-bottom:19px}.palette{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.palette button{display:flex;align-items:center;flex-direction:column;gap:12px;padding:12px 2px;border-radius:15px;min-height:97px;font-size:12px}.palette button[aria-pressed=true]{background:var(--accent-light);box-shadow:inset 0 0 0 1px #b3c7b8}.palette button:hover{background:#efeee6}.sheet .subtle{font-size:10px;color:var(--muted);margin:13px 0 0}.dialog-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:20px}.dialog-actions .primary{margin:0}.dialog-actions .outline{font-size:12px;padding:10px}.dialog-symbol{display:block;font-size:34px;color:#a6b49d;margin-bottom:15px}.dialog-symbol svg{width:32px;height:32px}.import-summary{background:var(--accent-light);border-radius:10px;padding:12px;font-size:12px;overflow-wrap:anywhere}.toast{position:fixed;z-index:100;left:50%;bottom:calc(90px + env(safe-area-inset-bottom));transform:translate(-50%,10px);background:#2f4439;color:#fff;padding:12px 18px;border-radius:12px;font-size:12px;max-width:390px;width:max-content;max-width:min(390px,calc(100% - 32px));opacity:0;pointer-events:none;transition:opacity .15s,transform .15s;box-shadow:0 3px 20px #0001}.toast.visible{opacity:1;transform:translate(-50%,0)}.sr-only{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.dialog-error{margin-top:15px}@keyframes sheet-in{from{transform:translateY(30px);opacity:0}to{transform:translateY(0);opacity:1}}@media(min-width:600px){.app-shell{border-inline:1px solid #e0dfd6}.bottom-nav{border-inline:1px solid #e0dfd6}}@media(max-width:350px){.legend{gap:15px}.palette{gap:2px}dialog.sheet{padding-inline:14px}.sheet h2{font-size:17px}.project-hero{padding-inline:0}.setting-card{gap:8px;padding-inline:10px}.setting-card strong{font-size:12px}.category-col{width:60px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media (pointer:coarse){input,.category-chip input{font-size:16px}}
.project-switch-list{display:grid;gap:8px;text-align:left;max-height:42dvh;overflow-y:auto}.project-choice{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:68px;padding:12px 14px;border:1px solid var(--border);border-radius:12px;background:#fff;text-align:left}.project-choice:hover{border-color:#adc1ae;background:#fbfdf9}.project-choice[aria-current=true]{border-color:#83a78b;background:var(--accent-light)}.project-choice>span:first-child{min-width:0}.project-choice strong,.project-choice small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-choice strong{font-size:13px}.project-choice small{font-size:11px;color:var(--muted);margin-top:3px}.choice-current{display:flex;align-items:center;gap:6px;flex:none;color:var(--accent)}.choice-current svg{width:19px;height:19px;stroke-width:2.4}.choice-current em{border-radius:99px;padding:2px 8px;background:#fff;color:var(--accent);font-size:10px;font-style:normal}.choice-next{display:flex;align-items:center;color:#94a096}.choice-next svg{width:18px;height:18px}.project-create{margin-top:20px;padding-top:18px;border-top:1px solid var(--border)}.new-project{width:100%;font-size:12px}.sheet-limit{margin:9px 4px 0!important;text-align:left;line-height:1.65!important}
