@charset "UTF-8";
:root{color-scheme:dark;--bg:#0b1320;--panel:#101e2c;--panel-soft:#0e1a27;--ink:#e1eaee;--muted:#9bb7c7;--line:#243747;--cyan:#05a1bd;--cyan-light:#a5f3fc;--accent:#5dd9df;--radius:16px;font-family:system-ui,-apple-system,"Segoe UI","Hiragino Sans","Yu Gothic UI",Meiryo,sans-serif}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;background:var(--bg);color:var(--ink);font-size:15px;line-height:1.7;letter-spacing:.015em}
button,input,textarea,select{font:inherit}
button,a,input,textarea,select,summary{-webkit-tap-highlight-color:transparent}
button{cursor:pointer;color:inherit}
button:disabled{opacity:.45;cursor:default}
a{color:var(--cyan-light);text-decoration:none}
a:hover{color:#fff}
:focus-visible{outline:2px solid var(--cyan-light);outline-offset:4px}
h1,h2,h3,p{margin:0}
svg.icon{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.icon-library{position:absolute;width:0;height:0;overflow:hidden}
.shell{width:min(1040px,calc(100% - 64px));margin-inline:auto}
.site-header{border-bottom:1px solid #1a2b3a}
.header-inner{display:flex;justify-content:space-between;align-items:center;min-height:78px;gap:16px}
.brand{display:flex;align-items:center;font-size:27px;letter-spacing:-.04em;color:var(--ink);font-weight:750}
.brand>span:first-child{color:var(--accent)}
.brand-divider{height:20px;width:1px;background:#385064;margin:0 18px}
.brand .brand-label{font-size:12px;letter-spacing:.09em;font-weight:400;color:var(--muted)}
.back-link{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted)}
.back-link .icon{width:16px}
main.shell{padding-top:46px;padding-bottom:30px}
.intro{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:32px}
.eyebrow{display:flex;align-items:center;gap:8px;font-size:10px;letter-spacing:.22em;color:var(--accent);font-weight:650;margin-bottom:12px}
.eyebrow>span{width:6px;height:6px;background:var(--accent);border-radius:2px}
h1{font-size:clamp(25px,3.4vw,36px);font-weight:700;line-height:1.5;letter-spacing:.045em}
h1>span{color:var(--cyan-light)}
.intro-copy{color:var(--muted);font-size:13px;margin-top:10px;letter-spacing:.06em}
.intro-meta{display:flex;flex-direction:column;align-items:flex-end;gap:12px;flex-shrink:0}
.local-badge{display:flex;align-items:center;gap:7px;border:1px solid #23444e;background:#11282f;padding:5px 11px;border-radius:30px;font-size:10px;color:#b6dedf}
.local-badge>span{width:5px;height:5px;background:var(--accent);border-radius:50%}
#today-label{font-size:11px;color:var(--muted)}
.overview{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:28px}
.stat{display:flex;align-items:center;position:relative;gap:15px;background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:21px 23px 26px;min-width:0}
.stat-icon{display:flex;justify-content:center;align-items:center;background:#15303d;color:var(--accent);width:42px;height:42px;border-radius:12px;flex-shrink:0}
.stat p{font-size:11px;color:var(--muted);margin-bottom:1px;white-space:nowrap}
.stat strong{font-size:33px;font-weight:600;line-height:1.3;font-variant-numeric:tabular-nums;letter-spacing:-.03em}
.stat .unit{font-size:11px;color:var(--muted);margin-left:9px}
.stat-note{position:absolute;right:17px;bottom:10px;color:#829cab;font-size:9px;letter-spacing:.04em}
.add-panel{padding:24px 26px 18px;border:1px solid #2c4b5c;border-radius:var(--radius);background:#10222f;margin-bottom:28px}
.section-label{display:flex;align-items:center;gap:13px;margin-bottom:12px}
.section-label h2{font-size:14px;font-weight:650}
.section-label>span{color:var(--muted);font-size:11px}
#add-form{display:flex;gap:10px}
input,textarea{min-width:0;color:var(--ink);background:#0b1723;border:1px solid #345063;border-radius:9px;transition:border-color .15s}
input::placeholder,textarea::placeholder{color:#8ca5b5}
input:focus,textarea:focus{outline:2px solid #65c7d0;outline-offset:2px}
#task-input{flex:1;width:100%;padding:13px 16px;font-size:15px}
.button{display:inline-flex;justify-content:center;align-items:center;gap:8px;border:1px solid transparent;border-radius:9px;min-height:44px;padding:10px 18px;font-size:13px;font-weight:650;white-space:nowrap}
.primary{color:#05232b;background:var(--accent)}
.primary:hover:not(:disabled){background:#8ceaf0}
.secondary{background:#172b3b;border-color:#345063;color:var(--ink)}
.secondary:hover:not(:disabled){background:#203c4d}
.danger{background:#542b36;border-color:#8d4c5b;color:#ffd7dc}
.danger:hover:not(:disabled){background:#6a3342}
.input-hint{color:#91acbc;font-size:10px;margin-top:10px}
.input-hint>span{margin:0 8px;color:#426172}
.workspace{border:1px solid var(--line);border-radius:var(--radius);background:var(--panel-soft);overflow:hidden}
.tabs{display:flex;gap:18px;padding:0 25px;border-bottom:1px solid var(--line)}
.tabs button{position:relative;display:flex;align-items:center;justify-content:center;gap:9px;padding:19px 9px 17px;background:none;border:0;color:var(--muted);font-size:13px;white-space:nowrap}
.tabs button .icon{width:18px;height:18px}
.tabs button[aria-selected="true"]{color:var(--accent)}
.tabs button[aria-selected="true"]::after{content:"";position:absolute;bottom:-1px;left:0;right:0;height:2px;background:var(--accent)}
.tabs button:hover{color:var(--cyan-light)}
.tabs button:focus-visible{outline-offset:-5px}
.count-badge{min-width:22px;border-radius:5px;background:#193d48;padding:0 5px;font-size:10px;line-height:20px}
.filters{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:22px 26px 0}
.search-box{display:flex;align-items:center;gap:10px;padding-left:12px;background:var(--bg);border:1px solid #2b4152;border-radius:8px;max-width:390px;flex:1}
.search-box>.icon{width:17px;height:17px;color:var(--muted)}
.search-box input{width:100%;background:none;border:0;padding:10px 10px 10px 0;min-height:43px;font-size:12px}
.search-box:focus-within{outline:2px solid var(--cyan-light);outline-offset:2px}
.search-box input:focus{outline:none}
.sort-control{flex-shrink:0;margin-left:auto}
.sort-control select{min-height:44px;max-width:100%;padding:10px 12px;border:1px solid #2b4152;border-radius:8px;background:var(--bg);color:var(--ink);font-size:12px;cursor:pointer}
.sort-control select:disabled{opacity:.45;cursor:default}
.period-filter{display:flex;gap:3px;background:var(--bg);border:1px solid #2b4152;border-radius:9px;padding:3px}
.period-filter button{background:transparent;border:1px solid transparent;border-radius:6px;color:var(--muted);min-height:36px;min-width:61px;padding:6px 9px;font-size:11px;white-space:nowrap}
.period-filter button[aria-pressed="true"]{background:#1b3948;border-color:#315666;color:var(--cyan-light)}
.period-filter button:hover{color:var(--cyan-light)}
.results-info{display:flex;justify-content:space-between;flex-wrap:wrap;gap:5px;color:var(--muted);font-size:10px;padding:15px 27px 13px}
.tab-panel{padding:0 26px}
.task-list{display:flex;flex-direction:column}
.task-row{display:flex;gap:14px;align-items:flex-start;padding:18px 2px;border-top:1px solid var(--line)}
.complete-button{display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:0;background:none;border:0;border-radius:8px;flex-shrink:0;margin:-1px -4px 0 -8px;color:var(--accent)}
.check-square{display:flex;align-items:center;justify-content:center;width:22px;height:22px;border:1px solid #507182;border-radius:6px;background:#0b1723}
.check-square .icon{width:15px;height:15px;opacity:0}
.complete-button:hover .check-square{background:#173b45;border-color:var(--accent)}
.complete-button:hover .icon{opacity:1}
.completed .check-square{background:#143b40;border-color:#326461}
.completed .check-square .icon{opacity:1}
.task-content{flex:1;min-width:0;padding-top:5px}
.task-title{font-size:14px;font-weight:500;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}
.task-dates{display:flex;flex-wrap:wrap;gap:4px 18px;margin-top:7px;color:#90aab9;font-size:10px;font-variant-numeric:tabular-nums}
.date-label{margin-right:7px;color:#7793a4}
.completed .completed-date{color:#91d9d0}
.task-duration{color:var(--cyan-light)}
.task-actions{display:flex;gap:2px;flex-shrink:0}
.icon-button{display:inline-flex;align-items:center;justify-content:center;width:38px;min-height:44px;padding:0;border:0;border-radius:8px;color:#8ba6b7;background:none}
.icon-button .icon{width:16px;height:16px}
.icon-button:hover{background:#1b3141;color:var(--cyan-light)}
.icon-button[data-action="delete"]:hover{background:#3b2834;color:#ffb9c5}
.empty-state{text-align:center;padding:32px 12px 40px;border-top:1px solid var(--line)}
.empty-illustration{position:relative;margin:0 auto 22px;display:flex;align-items:center;justify-content:center;width:63px;height:68px;border:1px solid #345164;border-radius:12px;background:#102632;transform:rotate(-5deg);color:#6bced7}
.empty-illustration>.icon{width:27px;height:27px;margin-top:-15px}
.empty-illustration>span{position:absolute;bottom:18px;height:2px;width:25px;border-radius:2px;background:#375767}
.empty-illustration>span:last-child{bottom:11px;width:15px}
.empty-state h3{font-size:16px;font-weight:550;margin-bottom:9px;letter-spacing:.04em}
.empty-state p{font-size:12px;color:var(--muted);line-height:1.9}
.text-button{background:none;border:0;color:var(--accent);font-size:12px;padding:12px;min-height:44px;margin-top:7px;border-radius:7px}
.text-button:hover{background:#16303c}
.more-wrap{text-align:center;padding:0 26px 20px}
.more-wrap:has(button[hidden]){padding-bottom:0}
.more-wrap .button{margin-top:10px;min-width:190px}
.chart-summary{display:flex;align-items:center;gap:45px;padding:13px 0 27px;border-bottom:1px solid var(--line)}
.chart-summary>div:first-child{margin-right:auto}
.chart-summary p{font-size:12px;color:var(--muted);margin-bottom:5px}
.chart-summary>div>strong{font-size:37px;font-weight:550;line-height:1.3;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.chart-summary>div>span{font-size:11px;color:var(--muted);margin-left:8px}
.chart-summary .chart-metric{display:flex;flex-direction:column;gap:8px}
.chart-summary .chart-metric>span{font-size:10px;margin:0}
.chart-summary .chart-metric>strong{font-size:23px}
.chart-metric strong span{font-size:10px;margin-left:7px;color:var(--muted)}
.chart-heading{display:flex;justify-content:space-between;align-items:center;margin:23px 0 3px}
.chart-heading h2{font-size:14px;font-weight:550}
#chart-unit{font-size:10px;color:var(--muted)}
.chart-hint{font-size:10px;color:var(--muted);margin-bottom:12px;min-height:18px}
.chart-plot{position:relative;height:232px;isolation:isolate;margin:0 0 20px;padding:0 2px 0 36px}
.chart-grid{position:absolute;inset:0 0 27px 36px;display:flex;flex-direction:column;justify-content:space-between;z-index:-1}
.grid-line{position:relative;border-top:1px dashed #2a3a48}
.grid-line span{position:absolute;right:calc(100% + 10px);top:-10px;font-size:10px;color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}
.chart-bars{display:flex;align-items:stretch;height:100%;gap:5px}
.bar-column{display:flex;flex:1;min-width:0;flex-direction:column;align-items:center;justify-content:flex-end;position:relative;padding-bottom:27px}
.bar-button{display:flex;align-items:flex-end;justify-content:center;width:100%;max-width:52px;height:100%;padding:0;border:0;background:none;border-radius:4px;color:var(--ink)}
.bar-fill{display:block;width:100%;min-height:2px;border-radius:4px 4px 0 0;background:#47bfc9;opacity:.9;transition:height .2s ease}
.bar-button[data-count="0"] .bar-fill{background:#325062;min-height:2px}
.bar-button:hover .bar-fill,.bar-button:focus .bar-fill{background:#a5f3fc;opacity:1}
.bar-label{position:absolute;bottom:0;font-size:9px;color:var(--muted);white-space:nowrap;left:50%;transform:translateX(-50%)}
.chart-empty{text-align:center;color:var(--muted);font-size:12px;margin-top:-7px;margin-bottom:20px}
.chart-table{border-top:1px solid var(--line);margin-bottom:20px;font-size:11px;color:var(--muted)}
.chart-table summary{padding:13px 0;cursor:pointer}
.table-scroll{max-height:300px;overflow:auto}
table{width:100%;border-collapse:collapse;font-size:12px}
th,td{text-align:left;padding:10px;border-bottom:1px solid var(--line)}
th:last-child,td:last-child{text-align:right}
th{font-weight:550;color:var(--ink)}
.data-panel{margin-top:24px;border:1px solid var(--line);border-radius:12px}
.data-panel>summary{display:flex;align-items:center;gap:10px;cursor:pointer;padding:15px 19px;font-size:11px;color:var(--muted);list-style:none}
.data-panel>summary::-webkit-details-marker{display:none}
.data-panel>summary::after{content:"＋";margin-left:6px;font-size:16px}
.data-panel[open]>summary::after{content:"−"}
.data-panel>summary>.icon{width:15px;height:15px}
.summary-note{margin-left:auto;font-size:10px;color:#8fa9b8}
.data-body{padding:0 20px 20px}
.data-body>p{color:var(--muted);font-size:12px}
.data-actions{display:flex;gap:10px;margin:15px 0}
.fine-print,.data-body>.fine-print{font-size:11px;line-height:1.9;color:var(--muted)}
.storage-note{display:flex;justify-content:center;align-items:center;gap:8px;color:#8fa9b8;font-size:10px;margin-top:19px;text-align:center}
.storage-note>.icon{width:12px;height:12px}
.note-dot{margin:0 4px;color:#4b687a}
.site-footer{display:flex;justify-content:space-between;gap:16px;padding:22px 0 30px;border-top:1px solid #1d3040;font-size:11px;color:#8fa9b8}
.site-footer>a{color:var(--muted)}
.site-footer>span>span{margin:0 7px;color:#4a6375}
.error-notice{padding:15px 18px;background:#36222e;border:1px solid #80505e;border-radius:10px;color:#ffced9;font-size:13px;white-space:pre-line;overflow-wrap:anywhere;margin-bottom:20px}
.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:11px;z-index:10;width:max-content;max-width:calc(100% - 30px);padding:10px 12px 10px 17px;background:#203c49;border:1px solid #426977;border-radius:12px;box-shadow:0 10px 36px #0006;font-size:12px}
.toast>.icon{color:var(--accent);width:18px}
.toast>span{overflow-wrap:anywhere}
.toast button{background:none;border:0;min-height:36px;padding:5px 7px;color:var(--cyan-light);font-size:12px;white-space:nowrap}
.toast #dismiss-toast{color:var(--muted);font-size:21px}
dialog{background:var(--panel);color:var(--ink);border:1px solid #3b5868;border-radius:18px;padding:26px;width:min(480px,calc(100% - 28px));max-height:calc(100dvh - 36px);overflow:auto;box-shadow:0 20px 70px #0008}
dialog::backdrop{background:#030a12c9}
dialog h2{font-size:20px;margin-bottom:20px}
dialog label{font-size:12px;color:var(--muted)}
dialog textarea{display:block;width:100%;font-size:16px;padding:12px;resize:vertical;margin:8px 0 12px}
dialog p{font-size:13px;margin-bottom:14px}
.dialog-task-title{overflow-wrap:anywhere;white-space:pre-wrap;padding:12px;background:var(--bg);border-radius:8px}
.dialog-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;margin-top:24px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip-link{position:fixed;top:-100px;left:10px;z-index:20;background:var(--cyan-light);color:var(--bg);padding:10px}
.skip-link:focus{top:10px}
@media(min-width:1200px){main.shell{padding-top:52px}.intro{margin-bottom:36px}.overview{margin-bottom:30px}.add-panel{margin-bottom:32px}}
@media(max-width:760px){.shell{width:calc(100% - 36px)}.intro-meta{display:none}main.shell{padding-top:30px}.intro{margin-bottom:25px}.overview{gap:9px}.stat{padding:17px 13px 23px;gap:9px}.stat-icon{display:none}.stat p{font-size:10px}.stat strong{font-size:29px}.stat-note{right:10px;font-size:8px}.add-panel{padding:20px}.filters{flex-wrap:wrap;gap:12px;padding-inline:20px}.search-box{max-width:none}.period-filter{flex-shrink:0}.tabs{padding-inline:17px;gap:15px}.tab-panel{padding:0 20px}.results-info{padding-inline:21px}.chart-summary{gap:26px}}
@media(max-width:500px){.header-inner{min-height:65px}.brand{font-size:24px}.brand-divider{margin:0 12px}.brand .brand-label{font-size:10px}.back-link{font-size:10px;gap:4px}.back-link .icon{width:14px}h1{font-size:25px;letter-spacing:.01em}h1>span{display:block}.intro-copy{font-size:12px}.eyebrow{font-size:9px}.overview{gap:7px}.stat{padding:14px 10px 25px;border-radius:11px}.stat p{font-size:9px;letter-spacing:0}.stat strong{font-size:28px}.stat .unit{margin-left:5px}.stat-note{font-size:8px;letter-spacing:0}.add-panel{padding:18px 15px 14px}#add-form{gap:8px}#task-input{padding:12px 10px;font-size:16px}.button{padding:10px 13px}.primary .icon{width:17px}.section-label>span{font-size:10px}.input-hint{font-size:9px}.input-hint>span{margin:0 4px}.tabs{gap:5px;padding:0 10px;justify-content:space-between}.tabs button{gap:6px;font-size:12px;padding-inline:7px}.tabs button .icon{width:16px}.filters{padding:17px 15px 0;gap:11px}.search-box{flex-basis:100%}.search-box input{font-size:16px}.sort-control select{font-size:16px}.period-filter{width:100%}.period-filter button{flex:1;min-height:40px}.results-info{padding-inline:16px;gap:7px;font-size:9px}.tab-panel{padding:0 15px}.task-row{gap:9px;flex-wrap:wrap;padding:14px 0}.task-content{flex-basis:calc(100% - 45px)}.task-title{font-size:14px}.task-actions{margin:-4px 0 -5px auto}.task-dates{font-size:10px;gap:4px}.task-dates>span{display:block;width:100%}.icon-button{width:38px;min-height:36px}.empty-state{padding:27px 6px 29px}.empty-state h3{font-size:14px}.empty-state p{font-size:11px}.chart-summary{gap:19px;flex-wrap:wrap}.chart-summary>div:first-child{width:100%}.chart-summary p{font-size:11px}.chart-summary>div>strong{font-size:32px}.chart-summary .chart-metric{gap:5px;flex:1}.chart-summary .chart-metric>strong{font-size:22px}.chart-bars{gap:3px}.bar-label{font-size:8px}.chart-plot{height:216px}.chart-hint{font-size:9px;min-height:30px}.summary-note{display:none}.data-panel>summary::after{margin-left:auto}.data-actions .button{flex:1}.storage-note{flex-wrap:wrap;font-size:9px;gap:5px}.site-footer{font-size:10px;gap:12px}.site-footer>span>span{margin:0 3px}.toast{bottom:15px;gap:7px;padding-left:12px;font-size:11px}.toast>.icon{display:none}dialog{padding:22px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}}
