.time-budget .intro{justify-content:space-between;align-items:center;gap:20px;margin-bottom:26px;display:flex}.time-budget h1{letter-spacing:-1.3px;margin:0;font-size:clamp(34px,5vw,46px);font-weight:600;line-height:1.15}.time-budget .intro p{color:var(--muted);margin:10px 0 0;font-size:20px}.time-budget .focus{white-space:nowrap;align-items:center;gap:10px;font-size:20px;display:flex}.time-budget .focus-dot{background:var(--line);border-radius:50%;width:9px;height:9px}.time-budget .focus[data-running=true] .focus-dot{background:var(--focus-color);animation:2.6s ease-in-out infinite mlsb-timer-breathe}.time-budget .notice{color:var(--warning);margin:0 0 20px;padding:12px 0;font-size:20px}.time-budget .notice button{background:0 0;border:0;border-bottom:1px solid;margin-left:8px;padding:5px 0}.time-budget .timers{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;display:grid}.time-budget .timer{--color:var(--light-color);border:1px solid var(--line);background:var(--surface);border-radius:22px;min-width:0;padding:24px;transition:border-color .3s,box-shadow .3s,background .3s;position:relative;overflow:hidden}:root[data-theme=dark] .time-budget .timer{--color:var(--dark-color)}.time-budget .timer:before{content:"";pointer-events:none;background:linear-gradient(135deg,color-mix(in srgb,var(--color) 8%,transparent),transparent 70%);opacity:0;transition:opacity .4s;position:absolute;inset:0}.time-budget .timer.running{border-color:var(--color);box-shadow:0 0 0 1px color-mix(in srgb,var(--color) 25%,transparent),0 8px 30px color-mix(in srgb,var(--color) 8%,transparent)}.time-budget .timer.running:before{opacity:1}.time-budget .timer>*{position:relative}.time-budget .card-head{justify-content:space-between;align-items:center;gap:12px;display:flex}.time-budget h2{letter-spacing:-.5px;align-items:center;gap:10px;margin:0;font-size:24px;font-weight:600;display:flex}.time-budget h3{font:inherit;margin:0}.time-budget .card-head h3{letter-spacing:-.5px;align-items:center;gap:10px;font-size:24px;font-weight:600;display:flex}.time-budget .section-head{justify-content:space-between;align-items:center;gap:16px;margin:0 0 18px;display:flex}.time-budget .section-head h2{font-size:28px}.time-budget .color-dot{background:var(--color);border-radius:50%;flex-shrink:0;width:11px;height:11px}.time-budget .budget{color:var(--muted);white-space:nowrap;font-size:20px}.time-budget .countdown{align-items:baseline;gap:10px;margin-top:19px;display:flex}.time-budget .clock{letter-spacing:-2px;font-variant-numeric:tabular-nums;font-size:clamp(39px,4.4vw,54px);font-weight:500;line-height:1.18}.time-budget .clock-label{color:var(--muted);font-size:18px}.time-budget .used{color:var(--muted);font-variant-numeric:tabular-nums;justify-content:space-between;align-items:center;gap:12px;margin:10px 0 13px;font-size:18px;display:flex}.time-budget .timer-status{color:var(--color)}.time-budget .track{background:color-mix(in srgb,var(--color) 13%,var(--surface));border-radius:6px;height:7px;overflow:hidden}.time-budget .fill{transform-origin:0;background:var(--color);border-radius:6px;width:100%;height:100%;transition:transform .6s linear;position:relative;transform:scaleX(0)}.time-budget .running .fill:after{content:"";background:linear-gradient(90deg,#0000,#fff5,#0000);animation:3s ease-in-out infinite mlsb-timer-flow;position:absolute;inset:0;transform:translate(-100%)}.time-budget .actions{justify-content:space-between;align-items:center;gap:12px;margin-top:23px;display:flex}.time-budget .toggle{background:color-mix(in srgb,var(--color) 11%,var(--surface));min-width:118px;min-height:48px;color:var(--color);border:0;border-radius:12px;justify-content:center;align-items:center;gap:10px;padding:8px 19px;font-size:21px;font-weight:600;transition:background .2s,transform .2s;display:inline-flex}.time-budget .toggle:hover{background:color-mix(in srgb,var(--color) 20%,var(--surface))}.time-budget .toggle:active{transform:scale(.96)}.time-budget .running .toggle{background:var(--color);color:var(--surface)}.time-budget .toggle svg{width:20px;height:20px}.time-budget .reset{min-height:48px;color:var(--muted);background:0 0;border:0;border-radius:8px;justify-content:center;align-items:center;gap:7px;padding:8px 0 8px 10px;font-size:18px;display:inline-flex}.time-budget .reset:hover{color:var(--ink)}.time-budget .reset svg{width:18px;height:18px}.time-budget .timer.over .clock,.time-budget .timer.over .clock-label,.time-budget .timer.over .timer-status{color:var(--warning)}.time-budget .timer.blocked .timer-status{color:var(--muted)}.time-budget .timer.blocked .toggle{color:var(--muted);background:var(--bg);opacity:1}.time-budget .guidance{color:var(--muted);margin:22px 0 30px;font-size:18px}.time-budget .history{border-top:1px solid var(--line);padding-top:28px}.time-budget .history-head,.time-budget .chart-labels{justify-content:space-between;align-items:center;gap:16px;display:flex}.time-budget .history-head h3{font-size:26px;font-weight:500}.time-budget .history-head>span{color:var(--muted);font-size:18px}.time-budget .chart-labels{color:var(--muted);margin:20px 0 10px;font-size:18px}.time-budget .chart-shell{width:100%}.time-budget #history-chart{touch-action:pan-y;outline-offset:4px;width:100%;height:300px;display:block;overflow:visible}.time-budget .chart-grid{stroke:var(--line);stroke-width:1px}.time-budget .chart-tick{fill:var(--muted);stroke:none;font-variant-numeric:tabular-nums;font-size:16px}.time-budget .history-line,.time-budget .history-point,.time-budget .line-sample{--color:var(--light-color);stroke:var(--color);stroke-width:2.5px}:root[data-theme=dark] .time-budget .history-line,:root[data-theme=dark] .time-budget .history-point,:root[data-theme=dark] .time-budget .line-sample{--color:var(--dark-color)}.time-budget .history-point{fill:var(--surface);stroke-width:2px}.time-budget .chart-cursor{stroke:var(--muted);stroke-width:1px;stroke-dasharray:3 5;opacity:.6}.time-budget .history-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px 28px;margin:10px 0 0;display:grid}.time-budget .history-item{flex-direction:column;align-items:flex-start;gap:2px;min-width:0;display:flex}.time-budget .history-name{color:var(--muted);align-items:center;gap:8px;font-size:18px;display:flex}.time-budget .line-sample{width:24px;height:16px}.time-budget .history-item output{font-variant-numeric:tabular-nums;white-space:nowrap;padding-left:32px;font-size:24px;font-weight:500}.time-budget .history-note{color:var(--muted);margin:14px 0 0;font-size:18px}:root[data-theme=paper] .time-budget .history-line,:root[data-theme=paper] .time-budget .line-sample{stroke:#000;stroke-dasharray:var(--dash)}:root[data-theme=paper] .time-budget .history-point{stroke:#000}.time-budget .rules{border-top:1px solid var(--line);margin-top:38px;padding-top:28px}.time-budget .quiet-button{min-height:48px;color:var(--muted);background:0 0;border:0;border-radius:10px;justify-content:center;align-items:center;padding:8px 12px;font-size:20px;display:inline-flex}.time-budget .quiet-button:hover{background:var(--soft);color:var(--ink)}.time-budget .rule{border-top:1px solid var(--line);padding:22px 0}.time-budget .rule:first-child{border-top:0;padding-top:6px}.time-budget .rule-summary{justify-content:space-between;align-items:center;gap:20px;display:flex}.time-budget .rule-title{font-size:24px;font-weight:500;line-height:1.4}.time-budget .rule-time{white-space:nowrap}.time-budget .rule-meta{color:var(--muted);margin:5px 0 0;font-size:18px}.time-budget .rule-controls{flex-shrink:0;align-items:center;gap:8px;display:flex}.time-budget .rule-switch{background:0 0;border:0;border-radius:10px;justify-content:center;align-items:center;width:60px;height:48px;padding:10px 4px;display:flex}.time-budget .rule-switch-track{background:var(--line);border-radius:20px;width:46px;height:28px;padding:3px;transition:background .2s;display:block}.time-budget .rule-switch-track:after{content:"";background:var(--surface);border-radius:50%;width:22px;height:22px;transition:transform .2s;display:block;box-shadow:0 1px 3px #0002}.time-budget .rule-switch[aria-checked=true] .rule-switch-track{background:var(--accent)}.time-budget .rule-switch[aria-checked=true] .rule-switch-track:after{transform:translate(18px)}.time-budget .rule.disabled .rule-title{color:var(--muted)}.time-budget .rule-editor{margin-top:20px}.time-budget .rule-fields{grid-template-columns:1.5fr 1fr 1fr;gap:18px;display:grid}.time-budget .rule-fields label{min-width:0;color:var(--muted);flex-direction:column;gap:8px;font-size:18px;display:flex}.time-budget .rule-fields input,.time-budget .rule-fields select{border:1px solid var(--line);background:var(--surface);width:100%;min-width:0;height:52px;color:var(--ink);border-radius:10px;padding:8px 12px;font-size:22px}.time-budget .rule-editor-actions{flex-wrap:wrap;align-items:center;gap:8px;margin-top:18px;display:flex}.time-budget .save-rule{background:var(--accent);min-height:48px;color:var(--surface);border:0;border-radius:10px;padding:8px 18px;font-size:20px;font-weight:600}.time-budget .delete-rule{margin-left:auto}.time-budget .rule-error{color:var(--warning);margin:12px 0 0;font-size:18px}.time-budget .rules-note{color:var(--muted);margin:14px 0 0;font-size:18px}.time-budget .empty-rules{color:var(--muted);font-size:22px}@media (width>=1001px){.time-budget #timer-coding{grid-column:1/-1;grid-template-columns:1fr 1fr 1fr;align-items:center;column-gap:32px;display:grid}.time-budget #timer-coding .card-head{grid-area:1/1}.time-budget #timer-coding .used{grid-area:2/1;margin:12px 0}.time-budget #timer-coding .track{grid-area:3/1}.time-budget #timer-coding .countdown{grid-area:1/2/4;justify-content:center;margin:0}.time-budget #timer-coding .actions{grid-area:1/3/4;justify-content:flex-end;margin:0}}@media (width>=621px) and (width<=1000px){.time-budget #timer-coding{grid-column:1/-1;grid-template-columns:1fr 1fr;align-items:center;gap:0 32px;display:grid}.time-budget #timer-coding .card-head{grid-area:1/1}.time-budget #timer-coding .used{grid-area:2/1}.time-budget #timer-coding .track{grid-area:3/1}.time-budget #timer-coding .countdown{grid-area:1/2;justify-content:flex-end;margin:0}.time-budget #timer-coding .actions{grid-area:2/2/4;justify-content:flex-end;margin:14px 0 0}}.time-budget .sr-only{clip:rect(0,0,0,0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}:root[data-theme=paper] .time-budget .timer{--color:#000;border-radius:4px}:root[data-theme=paper] .time-budget .timer:before{display:none}:root[data-theme=paper] .time-budget .timer.running{box-shadow:none;outline:2px solid #000}:root[data-theme=paper] .time-budget .track{background:#fff;border:1px solid #000}:root[data-theme=paper] .time-budget .toggle{border:1px solid #000}:root[data-theme=paper] .time-budget .color-dot,:root[data-theme=paper] .time-budget .focus[data-running=true] .focus-dot{background:#000}:root[data-theme=paper] .time-budget *,:root[data-theme=paper] .time-budget :after{transition:none!important;animation:none!important}@media (prefers-reduced-motion:reduce){.time-budget *,.time-budget :before,.time-budget :after{transition:none!important;animation:none!important}}@media (width<=1000px){.time-budget .timers{grid-template-columns:repeat(2,minmax(0,1fr))}.time-budget .clock{font-size:52px}.time-budget .intro{align-items:flex-start}.time-budget .focus{padding-top:8px}.time-budget .history-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=620px){.time-budget body{padding:0 20px 32px}.time-budget nav{min-height:64px;margin-bottom:26px}.time-budget .intro{margin-bottom:26px;display:block}.time-budget .intro p{font-size:19px}.time-budget .focus{padding:0;font-size:18px}.time-budget .timers{grid-template-columns:1fr;gap:14px}.time-budget .timer{padding:22px}.time-budget .clock{font-size:54px}.time-budget .countdown{margin-top:14px}.time-budget .actions{margin-top:20px}.time-budget .history-grid{grid-template-columns:1fr 1fr;gap:14px}.time-budget .history-head h3{font-size:24px}.time-budget .chart-tick{font-size:14px}.time-budget .chart-labels{gap:8px;font-size:16px}.time-budget .rule-summary{flex-wrap:wrap;align-items:flex-start;gap:8px}.time-budget .rule-controls{margin-left:auto}.time-budget .rule-fields{grid-template-columns:1fr 1fr;gap:14px}.time-budget .rule-fields label:first-child{grid-column:1/-1}.time-budget .rule-fields input,.time-budget .rule-fields select{padding:8px;font-size:20px}.time-budget .rule-title{font-size:24px}.time-budget .delete-rule{margin-left:0}}@media (width<=350px){.time-budget body{padding-left:16px;padding-right:16px}.time-budget .timer{padding:18px}.time-budget .clock{font-size:47px}.time-budget h2{font-size:23px}.time-budget .budget{font-size:18px}}@media (width<=700px){.time-budget h1{letter-spacing:-.6px;font-size:28px}.time-budget .intro{margin-bottom:18px}.time-budget .intro p{margin-top:6px;font-size:16px}.time-budget .section-head{margin-bottom:12px}.time-budget .section-head h2{font-size:22px}.time-budget .focus,.time-budget .budget{font-size:16px}.time-budget .timer{border-radius:12px;padding:16px}.time-budget .card-head h3{font-size:20px}.time-budget .countdown{margin-top:10px}.time-budget .clock{letter-spacing:-1px;font-size:38px}.time-budget .used{margin:6px 0 10px;font-size:15px}.time-budget .actions{margin-top:12px}.time-budget .toggle,.time-budget .reset{min-height:44px;font-size:17px}.time-budget .timers,.time-budget .history-grid{gap:12px}.time-budget .rule-title{font-size:20px}.time-budget .rules-note,.time-budget .history-note,.time-budget .rule-meta{font-size:16px}}@keyframes mlsb-timer-breathe{50%{box-shadow:0 0 0 5px color-mix(in srgb,var(--focus-color) 12%,transparent)}}@keyframes mlsb-timer-flow{to{transform:translate(100%)}}
