:root{color-scheme:light;--ink:#202638;--sub:#616c81;--blue:#4059ce;--indigo:#344bb8;--edge:#dce1eb;--bg:#f5f6fa;--num:"Aptos","Segoe UI",Arial,sans-serif;font-family:"Yu Gothic UI","Hiragino Sans","Noto Sans JP",Meiryo,sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;min-width:290px}button,input,select,textarea{font:inherit}button,a,select{touch-action:manipulation}button,a{color:inherit}button{cursor:pointer}a{text-decoration:none}button{border:0;background:none}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #7890ff;outline-offset:3px}[hidden]{display:none!important}
.site-header{background:#fff;border-bottom:1px solid var(--edge)}.header-inner,.shell{width:min(1136px,calc(100% - 80px));margin:auto}.header-inner{height:72px;display:flex;align-items:center;gap:clamp(25px,6vw,85px)}.brand{display:inline-flex;align-items:center;gap:10px;font-weight:800;letter-spacing:.03em;white-space:nowrap;font-size:1.32rem}.brand-icon{display:grid;place-items:center;width:37px;height:37px;border-radius:10px;color:white;background:#3c53c6;box-shadow:inset 0 -3px 0 #0002}.brand-icon svg{width:24px;height:24px}.nav{height:100%;display:flex;align-items:stretch;gap:26px}.nav a{display:flex;align-items:center;gap:8px;font-weight:650;font-size:.93rem;color:var(--sub);position:relative}.nav a[aria-current]{color:var(--indigo)}.nav a[aria-current]:after{content:"";height:3px;background:var(--blue);border-radius:2px 2px 0 0;position:absolute;bottom:0;left:0;right:0}
i[data-icon],span[data-icon]{font-style:normal;flex-shrink:0}i[data-icon]{display:inline-flex;align-items:center;justify-content:center}svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.icon-btn,.small-btn{display:inline-grid;place-items:center;color:#536078;border:1px solid var(--edge);border-radius:10px;width:38px;height:38px;background:white}.settings{margin-left:auto}.icon-btn:hover,.small-btn:not(:disabled):hover,.secondary:hover{background:#f0f3ff}.shell{padding:32px 0 52px}.page-heading,.card-heading,.modal-heading,.week-summary,.modal-actions{display:flex;justify-content:space-between;align-items:center;gap:12px}.page-heading{margin-bottom:23px}.dateline{display:flex;gap:7px;align-items:center;color:var(--sub);font-size:.89rem;margin:0 0 7px;font-weight:600}.dateline svg{height:16px;width:16px}h1,h2,h3,p{margin:0}h1{font-size:clamp(1.7rem,3.2vw,2.18rem);line-height:1.4;letter-spacing:.035em}h2{font-size:1.13rem;line-height:1.45;letter-spacing:.015em}h3{font-size:1rem}.primary,.secondary,.danger{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:9px;font-weight:700;font-size:.94rem;min-height:43px;padding:9px 17px}.primary{color:white;background:var(--blue);box-shadow:0 2px 4px #28388718}.primary:hover{background:#334ab8}.secondary{border:1px solid #cbd2e2;color:#384ca5;background:#fff}.danger{color:#a52f3c;background:#fff2f2}.add-record{padding:10px 18px}.grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:20px}.card{border:1px solid var(--edge);background:#fff;border-radius:17px;padding:23px 25px;box-shadow:0 2px 5px #1f294605}.card-heading h2,.hero h2,.device-note{display:flex;align-items:center;gap:10px}.card-heading h2 i{color:var(--blue)}.card-heading h2 svg{width:21px;height:21px}.muted,.week-dates{font-size:.875rem;color:var(--sub)}
.hero{min-height:263px;position:relative;isolation:isolate;overflow:hidden;background:radial-gradient(ellipse at 86% 66%,#3b51c3 0,transparent 52%),linear-gradient(112deg,#27337d 0%,#33459a 57%,#3c51aa 100%);color:#fff;border-radius:17px}.hero:before{content:"";position:absolute;inset:0 0 0 42%;z-index:-2;background-image:radial-gradient(#c7d1ff44 .75px,transparent .9px);background-size:12px 12px;mask-image:linear-gradient(90deg,transparent,#000)}.hero-art{position:absolute;z-index:-1;inset:4% -2% 0 44%;display:flex;align-items:center;justify-content:center;pointer-events:none}.hero-art canvas{width:100%;height:auto;display:block}.hero-content{position:relative;padding:24px 27px;width:59%;min-width:235px;height:100%;display:flex;flex-direction:column;align-items:start}.hero h2{color:#f0f3ff}.hero h2 i{color:#d5ed9a}.hero-total{font-family:var(--num);font-variant-numeric:tabular-nums;display:flex;gap:7px;align-items:baseline;margin:13px 0 0;line-height:1.1;font-size:clamp(2.75rem,4.7vw,4rem);letter-spacing:-.045em;font-weight:650}.hero-total small{font-family:inherit;font-weight:600;letter-spacing:0;font-size:1.13rem}.hero-total.long{font-size:2.7rem}.goal-edit{color:#e1e6ff;display:flex;align-items:center;gap:7px;padding:6px 0;font-size:.875rem;text-align:left}.goal-edit svg{width:14px;height:14px}.hero-progress{display:flex;gap:10px;align-items:center;width:100%;margin:4px 0 15px}.progress-rail{height:7px;border-radius:5px;background:#ffffff36;flex:1;overflow:hidden}.progress-rail span{display:block;background:#d8efaa;height:100%;border-radius:inherit}.hero-progress b{font:650 .85rem var(--num);color:#eef1ff}.streak{margin-top:auto;display:inline-flex;align-items:center;gap:6px;font-size:.85rem;font-weight:650;color:#e0f5b7;background:#19266065;border:1px solid #a6b6ee50;border-radius:99px;padding:4px 11px}.streak svg{width:15px;height:15px}
.timer-card{display:flex;flex-direction:column}.timer-status{padding:4px 9px;background:#eff1f6;color:#5f687a;border-radius:20px;font-size:.79rem;white-space:nowrap}.timer-status.active{color:#2d6849;background:#e7f3e9}.timer-digits{font:620 clamp(2.8rem,4vw,3.5rem)/1.12 var(--num);letter-spacing:.015em;font-variant-numeric:tabular-nums;margin:16px auto 14px;color:#262d41}.select-line{display:flex;align-items:center;background:#f8f9fc;border:1px solid var(--edge);border-radius:8px;position:relative;color:#5f6b81}.select-line>i:first-child{position:absolute;left:13px;pointer-events:none}.select-line>i svg{width:16px;height:16px}.select-line select{background:transparent;border:0;appearance:none;width:100%;padding:9px 32px 9px 37px;min-height:39px;color:var(--ink);font-size:.94rem}.select-line .chevron{position:absolute;right:12px;pointer-events:none}.timer-actions{display:flex;gap:10px;margin-top:10px}.timer-actions button{flex:1}.timer-actions .primary svg{width:16px;height:16px}.arrows{display:flex;gap:6px}.small-btn{width:29px;height:29px;border-radius:7px}.small-btn svg{width:16px;height:16px}.week-summary{margin:13px 0 10px}.week-summary>div{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}.week-total{font-weight:750;font-size:1.55rem;font-variant-numeric:tabular-nums}.legend{display:flex;align-items:center;gap:6px;white-space:nowrap;color:var(--sub);font-size:.8rem}.legend b{width:9px;height:9px;border-radius:3px;background:#6379d8}.chart-plot{display:grid;grid-template-columns:38px 1fr;column-gap:8px;height:139px;margin-top:14px}.y-axis{height:109px;display:flex;flex-direction:column;justify-content:space-between;color:#687183;text-align:right;font:500 .76rem var(--num);transform:translateY(-5px)}.plot{min-width:0}.bar-zone{height:104px;display:flex;align-items:flex-end;justify-content:space-around;background:repeating-linear-gradient(to top,#e3e6ef 0,#e3e6ef 1px,transparent 1px,transparent calc(100% / 3));border-top:1px solid #e3e6ef}.bar-slot{height:100%;display:flex;align-items:flex-end;justify-content:center;flex:1;min-width:0}.bar,.empty-bar{width:45%;max-width:29px;border-radius:4px 4px 0 0;background:#7085db}.bar.today{background:var(--blue)}.empty-bar{height:3px;background:#c7d0eb}.x-axis{display:flex;justify-content:space-around;margin-top:5px}.x-axis span{font-size:.8rem;color:#586278;display:grid;place-items:center;width:25px;height:23px}.x-axis .today{background:#e9edff;color:#3349b0;border-radius:5px;font-weight:750}.subject-list{display:grid;gap:13px;margin-top:20px}.subject-row{display:grid;grid-template-columns:32px 1fr auto;grid-template-rows:auto 4px;column-gap:10px;row-gap:3px;align-items:center}.subject-icon{grid-row:1/3;width:32px;height:32px;border-radius:9px;display:grid;place-items:center;background:var(--tint);color:var(--accent)}.subject-icon svg{width:17px;height:17px}.subject-name{overflow-wrap:anywhere;font-size:.94rem;font-weight:600}.subject-time{font-size:.86rem;color:#596579}.subject-track{background:#eff1f6;height:4px;border-radius:4px;grid-column:2/4;overflow:hidden}.subject-track span{display:block;height:100%;background:var(--accent);border-radius:4px}.recent-card,.report-summary{grid-column:1/-1}.text-link{color:var(--indigo);font-size:.88rem;font-weight:650}.text-link:hover{text-decoration:underline}.empty{padding:24px 4px 5px;display:flex;align-items:center;gap:12px;color:var(--sub);font-size:.94rem}.empty-icon{color:#7380b5;padding:9px;border-radius:10px;background:#f0f2fa}.entry{display:flex;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid #e9ecf3}.entry:last-child{border:0;padding-bottom:0}.entry .subject-icon{flex:none}.entry-text{flex:1;min-width:0}.entry-text strong,.entry-text small{display:block;overflow-wrap:anywhere}.entry-text small{color:var(--sub);font-size:.84rem;margin-top:2px;white-space:pre-wrap}.entry-time{font-weight:700;white-space:nowrap}.entry button{width:33px;height:33px}.entry svg{width:16px;height:16px}.filter{max-width:56%}.filter select{padding-left:12px}.summary-metrics{display:grid;grid-template-columns:repeat(3,1fr);margin-top:20px;gap:10px}.summary-metrics>div{padding-left:20px;border-left:3px solid #c9d1f3}.summary-metrics span{display:block;font-size:.9rem;color:var(--sub)}.summary-metrics strong{display:block;margin-top:4px;font-size:1.45rem}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
dialog{width:min(440px,calc(100% - 28px));max-height:88dvh;padding:0;border:1px solid var(--edge);border-radius:17px;color:var(--ink);box-shadow:0 22px 80px #18213e36}dialog::backdrop{background:#1c254857}.modal{padding:24px;display:grid;gap:18px}.modal-heading h2,.modal>h2{font-size:1.3rem}.modal label,.setting-form{display:grid;gap:7px;font-size:.94rem;font-weight:650}.modal label small{display:contents;color:var(--sub);font-weight:400}.modal input,.modal select,.modal textarea{width:100%;min-width:0;border:1px solid #cdd4df;background:#fff;border-radius:8px;padding:10px 12px;color:var(--ink);font-weight:400;font-size:1rem}.modal textarea{resize:vertical}.modal-actions{justify-content:flex-end}.modal-actions .danger:first-child{margin-right:auto}.input-action{display:flex;gap:8px}.input-action button{white-space:nowrap}.setting-form+.setting-form{border-top:1px solid var(--edge);padding-top:17px}#subject-tags{display:flex;flex-wrap:wrap;gap:6px;margin:3px 0 6px}#subject-tags span{padding:3px 9px;border-radius:5px;background:#edf0fa;color:#475789;font-size:.84rem;overflow-wrap:anywhere;max-width:100%}.device-note{font-size:.85rem;color:var(--sub);align-items:flex-start}.device-note svg{width:17px;height:17px}#toast{position:fixed;z-index:5;bottom:21px;left:50%;transform:translateX(-50%);padding:0;border-radius:10px;background:#283256;color:#fff;font-size:.94rem;width:max-content;max-width:90vw;text-align:center;pointer-events:none}#toast:not(:empty){padding:10px 16px;box-shadow:0 4px 20px #2223}
@media(min-width:1250px){.shell{padding-top:39px}.hero{min-height:280px}.timer-digits{margin-top:19px;margin-bottom:18px}.hero-content{padding:27px 31px}}
@media(max-width:850px){.header-inner,.shell{width:calc(100% - 40px)}.header-inner{gap:24px}.nav{gap:18px}.grid{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:14px}.card{padding:19px}.hero-content{padding:22px}.hero-art{left:41%;right:-8%}.hero-content{min-width:205px}.week-summary>div{gap:5px 10px}.timer-digits{font-size:2.8rem}.hero{min-height:245px}}
@media(max-width:670px){.header-inner,.shell{width:calc(100% - 32px)}.header-inner{height:58px}.brand{font-size:1.17rem}.brand-icon{width:33px;height:33px}.settings{width:35px;height:35px}.nav{position:fixed;bottom:0;left:0;right:0;height:auto;min-height:58px;padding:3px 5px max(4px,env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--edge);z-index:3;justify-content:space-around;gap:0}.nav a{justify-content:center;flex-direction:column;gap:3px;font-size:.76rem;flex:1;padding:4px}.nav a[aria-current]:after{display:none}.nav a[aria-current]{background:#f1f3ff;border-radius:8px}.nav svg{width:19px;height:19px}.shell{padding:22px 0 95px}.page-heading{margin-bottom:17px;gap:7px}.dateline{font-size:.79rem;margin-bottom:4px}h1{font-size:clamp(1.33rem,5.4vw,1.8rem)}.add-record{padding:7px 10px;min-height:39px;font-size:.84rem;gap:4px}.add-record svg{width:16px;height:16px}.grid{grid-template-columns:minmax(0,1fr)}.hero{min-height:217px}.hero-content{padding:20px;min-width:190px;width:57%}.hero-total{margin-top:11px;font-size:3.1rem}.hero-art{left:45%;right:-5%}.hero-progress{margin-bottom:11px}.timer-digits{font-size:3rem;margin:12px auto}.card{padding:19px}.timer-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 8px}.timer-card .card-heading,.timer-digits{grid-column:1/-1}.timer-actions{margin-top:0}.timer-card:has(#timer-save:not([hidden])) .select-line,.timer-card:has(#timer-save:not([hidden])) .timer-actions{grid-column:1/-1}.timer-card:has(#timer-save:not([hidden])) .timer-actions{margin-top:8px}.subject-list{gap:11px}.recent-card,.report-summary{grid-column:auto}.summary-metrics>div{padding-left:8px}.summary-metrics strong{font-size:1.15rem}.summary-metrics span{font-size:.8rem}#toast{bottom:80px}}
@media(max-width:360px){.header-inner,.shell{width:calc(100% - 24px)}.hero-content{min-width:166px;padding:16px}.hero-art{left:47%;right:-10%}.card{padding:16px}h2{font-size:1rem}.nav a{font-size:.72rem}.legend{display:none}}
.add-subject{display:inline-flex;align-items:center;min-height:40px;margin-top:10px;padding:3px 0}
