@charset "UTF-8";
:root {
  --night: #172b33;
  --paper: #fff8e9;
  --ink: #344b40;
  --muted: #697969;
  --gold: #edc98c;
  --sage: #708974;
  --line: #d5c9ab;
  --font: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-padding-bottom: 112px; }
body { margin: 0; background: var(--night); color: var(--paper); font: 14px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
.room-background { position: fixed; inset: 0; z-index: -2; background: url(assets/night-room.webp) center / cover no-repeat; }
.room-shade { position: fixed; inset: 0; z-index: -1; background: linear-gradient(90deg, #112833ed, #15313cca 58%, #1b333ab0), linear-gradient(0deg, #142832ec, transparent 70%); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; touch-action: manipulation; }
button:disabled { opacity: .46; cursor: default; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #f0cb82; outline-offset: 3px; }
a { color: inherit; text-underline-offset: 4px; }
svg { width: 24px; height: 24px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
.site-header { max-width: 1120px; margin: auto; padding: 12px 28px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #dce2d5; }
.toolbox-link { font-size: 12px; text-decoration: none; white-space: nowrap; }
.brand-mini { color: #ceb889; font-size: 11px; letter-spacing: .13em; }
.header-actions { display: flex; gap: 6px; align-items: center; }
.quiet-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; min-height: 44px; padding: 8px 12px; border: 1px solid #d1c0935c; border-radius: 7px; color: #efe7d3; background: #17333aa8; font-size: 12px; white-space: nowrap; }
.quiet-button svg { width: 18px; height: 18px; }
.quiet-button[aria-pressed=true] { color: #ffe4ab; background: #415445c9; border-color: #d5bd8478; }
.app { max-width: 1120px; margin: auto; padding: 0 28px 118px; }
.hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 14px 0 19px; }
.hero h1 { display: flex; align-items: center; gap: 10px; margin: 0; color: #fff1d6; font: 600 31px/1.4 var(--serif); letter-spacing: .025em; text-shadow: 0 2px 18px #071c29; }
.title-moon { color: #edca8d; font: 38px/1 Georgia, serif; }
.eyebrow { color: var(--gold); font-size: 11px; letter-spacing: .06em; font-weight: 700; margin: 0 0 4px; }
.mode-tabs { display: flex; flex-shrink: 0; gap: 4px; padding: 4px; background: #102833b0; border: 1px solid #bbae8752; border-radius: 9px; }
.mode-tabs button { min-height: 44px; padding: 8px 15px; background: transparent; border: 0; border-radius: 6px; color: #c8d3c7; font-size: 12px; white-space: nowrap; }
.mode-tabs button[aria-selected=true] { color: #4c5a43; background: #f3e7c7; box-shadow: 0 2px 4px #07172333; font-weight: 700; }
.stage-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.stage-head > div { min-width: 0; }
.stage-head .eyebrow { color: #ddc79d; font-size: 11px; line-height: 1.4; margin: 0 0 2px; }
.stage-head h2 { margin: 0; color: #fff2d9; font: 600 25px/1.4 var(--serif); letter-spacing: .03em; }
.stage-picker-button { display: flex; align-items: center; gap: 8px; flex-shrink: 0; min-height: 44px; padding: 8px 12px; border: 1px solid #d4c39672; border-radius: 7px; background: #1c39429c; color: #ede2cc; font-size: 12px; }
.stage-picker-button span { color: #dfc184; font-size: 11px; }
.mission-text { max-width: 880px; margin: 8px 0 6px; color: #fff0d1; font-size: 15px; line-height: 1.6; font-weight: 600; }
.stage-dots { display: flex; align-items: center; gap: 8px; min-height: 14px; margin: 0 0 8px; }
.stage-dot { display: block; flex-shrink: 0; width: 6px; height: 6px; padding: 0; border: 0; border-radius: 50%; background: #c3b69060; color: #dcc592; font-size: 0; line-height: 0; }
.stage-dot[data-current=true] { background: #f3d196; box-shadow: 0 0 0 3px #d9b97922; }
.stage-dot[data-done=true] { background: #b6cda7; }
.time-settings { display: flex; gap: 13px; align-items: center; flex-wrap: wrap; padding: 14px 16px; margin: 12px 0; background: #17333cbf; border: 1px solid #bba67555; border-radius: 8px; }
body[data-mode=practice] .time-settings { display: none; }
.time-settings label { display: flex; flex-direction: column; gap: 5px; color: #e7e5d4; font-size: 12px; }
.time-settings input { max-width: 170px; min-height: 46px; padding: 6px 9px; background: #fcf4e4; color: #3b5146; border: 1px solid #d5c7a7; border-radius: 5px; font-size: 22px; font-variant-numeric: tabular-nums; color-scheme: light; }
.time-arrow { color: #e0c38e; margin-top: 20px; font-size: 22px; }
.reserve-setting > div { display: flex; align-items: center; gap: 7px; }
.reserve-setting input { width: 78px; text-align: center; }
.reserve-setting span { color: #e4d5b2; font-size: 13px; }
.time-settings > p { max-width: 320px; color: #c6d1c1; font-size: 12px; margin: 15px 0 0; line-height: 1.7; }
.budget { position: sticky; top: 8px; z-index: 20; padding: 12px 18px 5px; color: var(--ink); margin-bottom: 12px; background: linear-gradient(120deg, #fff7e8, #eee5cf); border: 1px solid #e2d3b0; border-radius: 10px; box-shadow: 0 4px 0 #ae94613d, 0 8px 24px #07192545; }
.budget-main { display: flex; align-items: center; gap: 14px; }
.clock-face { width: 50px; height: 50px; flex-shrink: 0; color: #87997d; }
.clock-face svg { width: 100%; height: 100%; }
.clock-track { stroke: #c7c9b1; stroke-width: 2; }
#clock-arc { color: #98764c; stroke-width: 3; transition: stroke-dashoffset .3s ease; }
#clock-reserve { stroke: #b49661; stroke-width: 1.5; stroke-dasharray: 2 2; opacity: .8; }
#clock-hand { color: #6c654a; transition: transform .3s ease; }
.clock-pin { stroke: #6b755b; fill: #6b755b; }
.free-time { display: flex; align-items: baseline; gap: 15px; min-width: 0; }
.free-time > span { color: #626f5a; font-size: 12px; line-height: 1.5; }
.free-time strong { color: #527859; font: 500 43px/1.1 Georgia, "Times New Roman", serif; font-variant-numeric: tabular-nums; letter-spacing: -.035em; white-space: nowrap; }
.free-time strong span { color: #53664e; font: 13px var(--font); margin-left: 5px; letter-spacing: 0; }
.rest-goal { display: flex; flex-direction: column; gap: 2px; border-left: 1px solid #cbbf9e; padding-left: 15px; margin-left: 6px; }
.rest-goal > span { color: #758069; font-size: 11px; }
.rest-goal b { color: #617957; font-size: 18px; font-weight: 700; }
.budget-status { margin-left: auto; color: #557550; font-size: 13px; font-weight: 700; text-align: right; line-height: 1.5; }
.budget[data-state=over] .free-time strong, .budget[data-state=over] .budget-status, .budget[data-state=issue] .budget-status { color: #a07149; }
.rest-progress { display: block; appearance: none; -webkit-appearance: none; width: 100%; height: 8px; margin: 9px 0 0; border: 0; border-radius: 10px; overflow: hidden; background: #d8d9be; color: #73966c; accent-color: #73966c; }
.rest-progress::-webkit-progress-bar { background: #d8d9be; border-radius: 10px; }
.rest-progress::-webkit-progress-value { background: linear-gradient(90deg, #a6b886, #719967); border-radius: 10px; transition: width .3s ease; }
.rest-progress::-moz-progress-bar { background: #7d9a70; border-radius: 10px; }
.budget-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.carry-limit { display: flex; align-items: center; gap: 8px; color: #738064; font-size: 11px; }
.carry-limit b { color: #536d51; font-size: 12px; }
#carry-summary { color: #7d866d; font-size: 11px; }
.budget-details { position: relative; color: #717964; font-size: 11px; }
.budget-details summary { display: flex; align-items: center; min-height: 36px; gap: 4px; cursor: pointer; white-space: nowrap; list-style: none; }
.budget-details summary::after { content: "+"; font-size: 14px; color: #7f896e; }
.budget-details[open] summary::after { content: "−"; }
.budget-details > div { position: absolute; right: 0; top: 34px; z-index: 3; display: grid; gap: 8px; width: 182px; padding: 12px 14px; background: #fff7e7; border: 1px solid #cbbf9f; border-radius: 6px; box-shadow: 0 6px 15px #263d3626; }
.budget-details span { display: flex; justify-content: space-between; gap: 12px; }
.budget-details b { color: #536b50; font-size: 12px; }
.bundle-rules { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; color: #e8d9b8; font-size: 12px; }
.bundle-rules:empty { display: none; }
.bundle-rules > * { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border: 1px solid #c8bb8a69; border-radius: 20px; background: #2b45429c; }
.workspace, .planning-area { min-width: 0; }
.first-guide { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 15px; margin: 0 0 13px; color: #fff0cb; background: #65583f70; border: 1px solid #d9bf825e; border-left: 3px solid #e6c380; border-radius: 8px; }
.coach-copy { min-width: 0; }
.coach-label { display: block; color: #e5c895; font-size: 10px; letter-spacing: .07em; }
#coach-text { font-size: 14px; line-height: 1.55; margin: 3px 0 0; }
.coach-action { display: flex; align-items: center; justify-content: center; gap: 8px; flex-shrink: 0; min-height: 44px; padding: 9px 16px; border: 1px solid #d5b572; border-radius: 6px; color: #514d36; background: #eed39e; font-size: 13px; font-weight: 700; box-shadow: 0 2px 0 #382f2944; }
.coach-action:hover { background: #f8e1b3; }
.boards { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(270px, 1fr); gap: 18px; align-items: start; }
.lane { min-width: 0; position: relative; padding: 16px; background: linear-gradient(120deg, #e8dfcbea, #e3d8bffc); border: 1px solid #cdb990; border-radius: 10px; box-shadow: 0 5px 0 #10263070, 0 12px 25px #071d2a33; transition: border-color .2s, box-shadow .2s; }
.lane > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #586d52; }
.lane h3 { display: flex; align-items: center; gap: 7px; color: #465f4a; font: 600 21px/1.4 var(--serif); margin: 0; letter-spacing: .025em; }
.lane h3 svg { width: 23px; height: 23px; color: #9d804c; }
.lane > header > span { color: #667257; font: 500 19px/1.4 Georgia, serif; white-space: nowrap; }
.lane-caption { color: #707e65; font-size: 11px; line-height: 1.55; margin: 5px 0 12px; }
.tomorrow-lane { background: linear-gradient(120deg, #dfe8d7ec, #d0dfd4f5); border-color: #9eafa0; }
.tomorrow-lane h3 { color: #526d54; }
.tomorrow-lane h3 svg { color: #869567; }
.lane.drop-hover { border-color: #e9bf7a; box-shadow: 0 0 0 3px #f0c37766, 0 10px 25px #06132166; }
.task-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-height: 64px; align-items: start; }
.task-card { min-width: 0; position: relative; padding: 13px 14px 11px; background: linear-gradient(115deg, #fffaf0, #fbf4e4); border: 1px solid #d2c29e; color: var(--ink); border-radius: 7px; box-shadow: 0 3px 0 #af96723b, 0 4px 9px #3a514516; transition: box-shadow .2s, border-color .2s; }
.task-card:focus-within { border-color: #9ca67b; box-shadow: 0 0 0 2px #b4bd8c70, 0 4px 12px #3a51451f; }
.task-card.task-warning { border-color: #b58659; background: linear-gradient(115deg, #fff7e8, #f6e8d4); }
.task-card.card-coached { border-color: #b28d4d; box-shadow: 0 0 0 2px #e6c27d75, 0 5px 15px #3d51412e; }
.task-card.arrived { animation: paper-arrive .3s ease both; }
@keyframes paper-arrive { from { transform: translateY(-5px); opacity: .4; } to { transform: translateY(0); opacity: 1; } }
.task-top { position: relative; display: flex; align-items: center; gap: 13px; min-height: 64px; }
.drag-handle { display: flex; position: relative; flex-shrink: 0; align-items: center; justify-content: center; width: 68px; height: 68px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: #a99c7b; cursor: grab; touch-action: none; }
.drag-handle:active { cursor: grabbing; }
.drag-handle .grip-indicator { display: none; }
.task-art, .stage-illustration .task-art { display: block; background-image: url(assets/task-atlas.webp); background-size: 550% 412.5%; background-repeat: no-repeat; filter: drop-shadow(0 3px 2px #84674824); }
.task-art { width: 65px; height: 65px; pointer-events: none; transform: scale(1.13); transform-origin: center; }
.task-art[data-art="0"] { background-position: 6.6% 14.2%; }
.task-art[data-art="1"] { background-position: 36.2% 14.2%; }
.task-art[data-art="2"] { background-position: 66.3% 14.2%; }
.task-art[data-art="3"] { background-position: 95.3% 14.2%; }
.task-art[data-art="4"] { background-position: 6.6% 52.7%; }
.task-art[data-art="5"] { background-position: 36.2% 52.7%; }
.task-art[data-art="6"] { background-position: 66.3% 52.7%; }
.task-art[data-art="7"] { background-position: 95.3% 52.7%; }
.task-art[data-art="8"] { background-position: 6.6% 89.3%; }
.task-art[data-art="9"] { background-position: 36.2% 89.3%; }
.task-art[data-art="10"] { background-position: 66.3% 89.3%; }
.task-art[data-art="11"] { background-position: 95.3% 89.3%; }
.task-order { position: absolute; right: 0; top: -4px; color: #a49677; font: 500 12px/1.5 Georgia, serif; }
.task-content { flex: 1; min-width: 0; }
.task-title { color: #3d5645; font-size: 16px; line-height: 1.5; font-weight: 700; overflow-wrap: anywhere; padding-right: 20px; }
.task-info { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 4px; }
.task-minutes { color: #667b54; font: 600 25px/1.1 Georgia, serif; font-variant-numeric: tabular-nums; }
.task-minutes small { color: #768766; font: 11px var(--font); margin-left: 4px; }
.required-mark { color: #987449; font-size: 11px; white-space: nowrap; }
.required-mark::before { content: "•"; margin-right: 3px; }
.task-after { color: #917346; font-size: 11px; line-height: 1.5; margin-top: 4px; overflow-wrap: anywhere; }
.task-time { color: #7c896f; font-size: 11px; margin-top: 4px; }
.method-options { display: flex; gap: 6px; margin-top: 11px; }
.method-button { flex: 1; min-width: 0; min-height: 50px; padding: 7px 8px; border: 1px solid #c6c8ad; border-radius: 5px; color: #68775b; background: #f2f0e3; font-size: 12px; line-height: 1.5; text-align: center; }
.method-button span, .method-button small { display: block; font-size: 11px; color: inherit; }
.method-button strong { display: block; color: inherit; font: 600 19px/1.2 Georgia, serif; }
.method-button strong small { display: inline; font: 10px var(--font); margin-left: 3px; }
.method-button .method-carry { display: block; font-size: 10px; line-height: 1.2; margin-top: 2px; }
.method-button[aria-pressed=true] { color: #3d5e40; background: #e2ead0; border-color: #91a378; box-shadow: inset 0 0 0 1px #99ac7c55; font-weight: 700; }
.method-button { position: relative; }
.method-button[aria-pressed=true]::before { content: "✓"; position: absolute; top: 4px; right: 5px; color: #6b8a57; font-size: 10px; }
.method-button:hover:not(:disabled) { border-color: #8c9d74; background: #e7ecd8; }
.method-consequence { color: #7c8269; font-size: 11px; line-height: 1.55; margin: 6px 0 0; }
.combo-tag { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 3px 8px; margin: 7px 0 0; border-radius: 4px; color: #627645; background: #e8ebcf; font-size: 10px; line-height: 1.6; }
.task-actions { display: flex; align-items: center; gap: 7px; padding-top: 9px; margin-top: 9px; border-top: 1px solid #d5ccaf88; }
.task-actions button { min-width: 44px; min-height: 44px; padding: 6px 11px; border: 1px solid #c8c6ac; border-radius: 5px; color: #69795c; background: #f1efdf; font-size: 13px; }
.task-actions button:hover:not(:disabled) { border-color: #9ba886; background: #e8edd9; }
.order-buttons { display: flex; gap: 5px; }
.order-buttons button { min-width: 44px; }
.task-actions .transfer-button { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: #557148; background: #e9eddc; border-color: #b5c39d; font-size: 12px; white-space: nowrap; }
.task-actions .edit-button { font-size: 12px; padding: 6px 9px; }
.task-secondary { display: contents; }
.task-actions .more-button { display: none; }
.tomorrow-lane .task-card { padding: 10px 12px; }
.tomorrow-lane .task-top { min-height: 53px; gap: 9px; }
.tomorrow-lane .drag-handle { width: 52px; height: 52px; }
.tomorrow-lane .task-art { width: 51px; height: 51px; }
.tomorrow-lane .task-title { font-size: 14px; }
.tomorrow-lane .task-minutes { font-size: 22px; }
.tomorrow-lane .method-options, .tomorrow-lane .method-consequence { display: none; }
.carry-card { padding: 12px; color: var(--ink); background: #edf2e5; border: 1px solid #a9baa0; border-radius: 6px; }
.carry-card-top { display: flex; align-items: center; gap: 10px; }
.carry-card-top .task-art { width: 48px; height: 48px; flex-shrink: 0; }
.carry-card-top strong, .carry-card-top span:not(.task-art) { display: block; overflow-wrap: anywhere; }
.carry-card-top strong { font-size: 13px; }
.carry-card-top span:not(.task-art) { font-size: 11px; color: #65775d; margin-top: 3px; }
.carry-card > button { display: block; width: 100%; margin-top: 10px; min-height: 44px; padding: 8px 11px; border: 1px solid #9fb18c; border-radius: 5px; color: #4f6946; background: #e2ead6; font-size: 12px; }
.carry-card > button:hover { color: #385434; background: #d5e2c6; border-color: #7e9870; }
.tomorrow-lane .task-actions { margin-top: 6px; padding-top: 7px; }
.tomorrow-lane .transfer-button { flex: 1; }
.task-card.is-dragging { opacity: .25; }
.task-ghost { position: fixed; z-index: 1000; pointer-events: none; opacity: .97; transform: rotate(-2deg); box-shadow: 0 15px 35px #05132388; border-color: #c49d61; }
.task-ghost .task-actions { opacity: .35; }
.drop-tip { text-align: center; color: #7b866b; font-size: 11px; line-height: 1.6; min-height: 38px; padding: 8px 5px; margin-top: 12px; border: 1px dashed #b1ae88; border-radius: 5px; }
.empty-label { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 126px; padding: 10px 7px; margin: 0; color: #829178; text-align: center; }
.empty-label strong { color: #6d8367; font: 600 15px/1.6 var(--serif); }
.empty-label > span:last-child { font-size: 11px; color: #7e8b73; }
.empty-picture { display: flex; align-items: center; justify-content: center; width: 52px; height: 44px; }
.empty-picture svg { width: 35px; height: 35px; color: #a1ad86; stroke-width: 1.25; }
.plan-tools { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.secondary-button { min-height: 44px; padding: 8px 14px; color: #e7e3d0; background: #24424a99; border: 1px solid #bfb79370; border-radius: 6px; font-size: 12px; }
.secondary-button:hover:not(:disabled) { background: #40554dc7; border-color: #d7cba5; }
.plan-details { border-top: 1px solid #bdb78b4d; border-bottom: 1px solid #bdb78b4d; margin: 6px 0 12px; color: #d5ddc8; }
.plan-details > summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; cursor: pointer; font-size: 12px; color: #d8dfc9; list-style: none; }
.plan-details > summary::after { content: "+"; color: #ddc693; font-size: 20px; }
.plan-details[open] > summary::after { content: "−"; }
.details-content { padding-bottom: 14px; }
.story-details { color: #c7d3c3; font-size: 12px; padding: 0 1px 12px; }
.story-details p { margin: 0 0 7px; }
.practice-times { display: flex; flex-wrap: wrap; gap: 10px; color: #dfc596; font-size: 12px; }
.guide-area { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.goal-card { padding: 15px 17px; color: #68745c; background: #f3ebd8; border: 1px solid #c7b993; border-radius: 7px; }
.goal-card .eyebrow { color: #927348; font-size: 12px; margin-bottom: 9px; }
.goal-card ul { padding-left: 17px; margin: 0; }
.goal-card li { list-style: none; position: relative; font-size: 12px; line-height: 1.7; margin-bottom: 7px; }
.goal-card li::before { content: "○"; position: absolute; left: -18px; top: 0; color: #a28c65; font-size: 12px; }
.goal-card li[data-met=true]::before { content: "✓"; color: #708d60; font-weight: 700; }
.goal-card li[data-met=true] { color: #5b7b4e; }
.text-button { color: inherit; border: 0; background: transparent; min-height: 44px; padding: 8px 0; text-decoration: underline; text-underline-offset: 5px; font-size: 12px; }
.goal-card .text-button { color: #8c7049; margin-top: 2px; }
#hint-text { color: #837149; font-size: 12px; line-height: 1.8; border-top: 1px dashed #c2b58d; padding-top: 10px; margin: 4px 0 0; }
.issues-card { padding: 15px 16px; color: #cbd9c7; background: #1a363dc0; border: 1px solid #a2b18b61; border-radius: 7px; }
.issues-card strong { color: #e5d5b0; font-size: 12px; font-weight: 600; }
.issues-card ul { padding-left: 17px; margin: 7px 0 0; }
.issues-card li { font-size: 12px; line-height: 1.8; margin-bottom: 5px; }
.issues-card[data-ok=true] { background: #2c493acc; border-color: #98b28477; }
.issues-card[data-ok=true] strong { color: #d2e2be; }
.timeline-card { padding: 12px 1px 0; margin-top: 10px; }
.timeline-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #d5dfca; font-size: 12px; margin-bottom: 8px; }
.timeline-heading strong { font-weight: 500; }
.timeline-heading > span { color: #dfc597; font-size: 11px; }
.timeline { display: flex; position: relative; height: 12px; background: #102934c2; border: 1px solid #c8b58461; border-radius: 3px; gap: 2px; overflow: hidden; }
.timeline-segment { height: 100%; background: #c0aa84; min-width: 2px; border-radius: 1px; transition: width .3s ease; }
.timeline-segment:nth-child(3n+2) { background: #a2b18b; }
.timeline-segment:nth-child(3n+3) { background: #90a8ac; }
.timeline-reserve { height: 100%; background: repeating-linear-gradient(135deg, #d5c69180 0 3px, #d5c69120 3px 7px); }
.timeline-deadline { position: absolute; top: 0; bottom: 0; border-left: 2px solid #e8c488; pointer-events: none; }
.timeline-labels { display: flex; justify-content: space-between; color: #c1cfbd; font-size: 11px; margin-top: 4px; }
.small-note { color: #b6c7b6; font-size: 11px; line-height: 1.7; margin: 11px 1px 0; }
.action-bar { position: fixed; bottom: 0; left: 50%; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 16px; width: min(1120px, 100%); padding: 13px 28px calc(13px + env(safe-area-inset-bottom)); color: #fff1d1; background: #142f35fa; border: 1px solid #bfaf8269; border-bottom: 0; border-radius: 12px 12px 0 0; box-shadow: 0 -8px 26px #081d293b; transform: translateX(-50%); }
.action-bar > span { color: #ece8cc; font-size: 12px; line-height: 1.65; }
.primary-button { min-height: 48px; padding: 11px 24px; border: 1px solid #bda065; border-radius: 6px; color: #4f5036; background: linear-gradient(180deg, #f2d69b, #d4b276); box-shadow: 0 3px 0 #604c2e66, inset 0 1px 0 #ffebbc; font-size: 13px; font-weight: 700; white-space: nowrap; }
.primary-button:hover:not(:disabled) { background: linear-gradient(180deg, #f8e2b5, #dec18b); }
.primary-button:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 #604c2e66; }
.action-bar .primary-button:disabled { opacity: .65; }
.status-line { color: #efd5a4; font-size: 12px; margin: 10px 0; }
.status-line:empty { display: none; }
footer { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; color: #b9cbbd; font-size: 11px; margin-top: 18px; padding-top: 10px; }
footer a { text-decoration: none; }
footer .text-button { font-size: 11px; }
dialog { width: min(590px, calc(100vw - 28px)); max-height: calc(100svh - 28px); overflow: auto; padding: 32px; color: #52634e; background: linear-gradient(120deg, #fff8e9, #efe7d1); border: 1px solid #c9b78e; border-radius: 10px; box-shadow: 0 6px 0 #91805b66, 0 25px 80px #04101e9c; }
dialog::backdrop { background: #071d2acc; backdrop-filter: blur(6px); }
dialog h2 { color: #435d45; font: 600 27px/1.6 var(--serif); letter-spacing: .025em; margin: 0 0 14px; }
dialog .eyebrow { color: #9b7d4d; }
dialog p, dialog li { font-size: 13px; line-height: 1.8; }
dialog ol { padding-left: 20px; }
dialog li { margin-bottom: 12px; }
.dialog-close { position: absolute; right: 7px; top: 6px; width: 44px; height: 44px; border: 0; background: transparent; color: #938c72; font-size: 28px; }
.dialog-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; margin-top: 21px; }
dialog .secondary-button { color: #63765c; border-color: #b5bea5; background: #e7e8d7; }
.stage-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stage-choice { position: relative; min-height: 155px; text-align: left; padding: 15px; background: linear-gradient(150deg, #e3eadb, #f8efda); border: 1px solid #bac4a9; border-radius: 7px; color: #62725a; overflow: hidden; }
.stage-choice:nth-child(3n+2) { background: linear-gradient(150deg, #dce5e3, #f5eddc); }
.stage-choice:nth-child(3n+3) { background: linear-gradient(150deg, #e8e0d7, #f6edd9); }
.stage-choice:hover { border-color: #9a9068; box-shadow: 0 4px 12px #a4a88736; }
.stage-choice[aria-current=true] { outline: 2px solid #a4915d; outline-offset: -4px; }
.stage-illustration { position: absolute; right: 5px; top: 4px; display: block; width: 74px; height: 74px; opacity: .9; }
.stage-illustration .task-art { width: 100%; height: 100%; }
.stage-choice .stage-no, .stage-choice > span:first-child { color: #8f936f; font-size: 10px; }
.stage-choice strong { position: relative; display: block; max-width: calc(100% - 58px); color: #52664f; font: 600 16px/1.55 var(--serif); margin: 6px 0 9px; }
.stage-time, .stage-choice em { display: block; color: #7d8b6d; font-size: 11px; font-style: normal; }
.stage-description { display: block; color: #748069; font-size: 11px; line-height: 1.65; margin-top: 4px; }
.completion-stamp { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 35px; padding: 6px 15px; margin: 2px 0 12px; color: #8e713f; background: #f0e4c4; border: 1px solid #c3ac75; border-radius: 30px; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.completion-stamp:empty { display: none; }
.completion-art { display: flex; justify-content: center; color: #b6a36d; margin: 0 auto 12px; }
.completion-art svg { width: 100px; height: 75px; stroke-width: 1.4; }
#complete-dialog { text-align: center; }
#complete-dialog .dialog-actions { justify-content: center; }
#complete-message { color: #748063; margin-top: 0; }
.result-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 390px; margin: 18px auto; }
.result-metric { padding: 11px 4px; border-top: 1px solid #c3b695; border-bottom: 1px solid #c3b695; }
.result-metric > span { display: block; font-size: 11px; color: #838269; }
.result-metric strong { display: block; color: #69815b; font: 500 30px/1.6 Georgia, serif; }
.result-metric small { margin-left: 3px; font: 11px var(--font); }
.completed-plan { text-align: left; position: relative; padding: 17px 21px; max-height: 35svh; overflow: auto; margin: 18px 0; background: #fffbf1; border: 1px solid #d4c9af; border-bottom: 2px dashed #c8bda1; border-radius: 5px; }
.completed-plan h3 { font-size: 12px; margin: 8px 0; color: #977a48; }
.completed-plan p { overflow-wrap: anywhere; font-size: 12px; line-height: 1.8; margin: 5px 0; padding-bottom: 5px; border-bottom: 1px dotted #d5cfbb; }
.completed-plan .receipt-entry { display: grid; grid-template-columns: 132px minmax(0, 1fr) 32px; align-items: baseline; gap: 9px; padding: 7px 0; }
.receipt-time { color: #7f8c6f; font-size: 11px; font-variant-numeric: tabular-nums; white-space: normal; }
.receipt-name { color: #586e50; min-width: 0; overflow-wrap: anywhere; }
.completed-plan .receipt-entry > small { color: #958568; font-size: 11px; white-space: nowrap; text-align: right; }
.export-actions { display: flex; justify-content: center; gap: 24px; margin-top: 11px; color: #957b4d; }
#copy-fallback textarea { width: 100%; min-height: 170px; background: #fffbf0; border: 1px solid #c8c8b0; color: #55674e; padding: 12px; font: 12px/1.75 var(--font); }
#task-form > label { display: flex; flex-direction: column; gap: 7px; font-size: 13px; color: #66755d; margin: 17px 0; }
#task-form input[type=text], #task-form input[type=number], #task-form select { min-height: 46px; max-width: 100%; padding: 9px 12px; border: 1px solid #c7c5af; border-radius: 5px; color: #52644c; background: #fffbf0; font-size: 16px; }
.minutes-input { display: flex; align-items: center; gap: 9px; }
.minutes-input input { max-width: 125px; }
.check-label { flex-direction: row !important; align-items: center; gap: 10px !important; min-height: 44px; }
.check-label input { width: 20px; height: 20px; accent-color: #748760; }
#task-error { color: #a06e45; background: #f5e4cc; padding: 8px 11px; font-size: 12px; }
.audio-control-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 18px 0 10px; }
.audio-control-row strong { font-size: 15px; }
.audio-control-row p { font-size: 12px; color: #7c846f; margin: 3px 0 0; }
.audio-control-row .secondary-button { min-height: 44px; flex-shrink: 0; }
.audio-control-row svg { width: 18px; height: 18px; }
.audio-volume { display: block; margin: 14px 0 18px; }
.audio-volume > span { display: flex; justify-content: space-between; font-size: 12px; color: #697360; }
.audio-volume output { font-variant-numeric: tabular-nums; color: #927545; }
.audio-volume input { display: block; width: 100%; height: 44px; accent-color: #6d8068; cursor: pointer; }
.audio-status { font-size: 11px; color: #7c846f; min-height: 20px; }
.effects-row { border-top: 1px solid #d9cfb4; padding-top: 17px; margin-top: 23px; }
.audio-note { font-size: 11px; color: #7c846f; margin: 18px 0; }
.audio-settings-label { white-space: nowrap; }
#sound-button { display: inline-flex; gap: 6px; align-items: center; justify-content: center; }
#effect-layer { position: fixed; inset: 0; z-index: 1100; pointer-events: none; overflow: hidden; }
.time-reward { position: fixed; display: block; width: 76px; padding: 6px 3px; color: #fbf3d5; background: #658760ed; border: 1px solid #b6cc9a; border-radius: 6px; text-align: center; font: 500 23px Georgia, serif; box-shadow: 0 3px 16px #13253d44; pointer-events: none; }
.time-reward[data-positive=false] { background: #9b8259e8; border-color: #d9c196; }
.move-feedback { position: fixed; bottom: calc(92px + env(safe-area-inset-bottom)); left: 50%; z-index: 1150; pointer-events: none; transform: translate(-50%, 10px); opacity: 0; transition: opacity .2s, transform .2s; max-width: calc(100vw - 24px); padding: 10px 18px; background: #fbefd3; border: 1px solid #cfb985; border-radius: 7px; color: #617a4e; box-shadow: 0 7px 20px #07192d66; font-size: 13px; line-height: 1.6; white-space: nowrap; }
.move-feedback.shown { opacity: 1; transform: translate(-50%, 0); }
.move-feedback[data-positive=false] { color: #98744e; }
.drop-indicator { position: fixed; z-index: 1101; pointer-events: none; background: #e6bd76; box-shadow: 0 0 0 2px #f7e2b544, 0 3px 10px #07142666; border-radius: 2px; }
@media (max-width: 900px) {
  .brand-mini { display: none; }
  .hero { align-items: flex-start; flex-direction: column; gap: 10px; }
  .mode-tabs { width: 100%; }
  .mode-tabs button { flex: 1; }
  .boards { grid-template-columns: minmax(0, 1.5fr) minmax(230px, 1fr); gap: 12px; }
  .lane { padding: 13px; }
  .free-time { gap: 10px; }
  .first-guide { gap: 12px; }
}
@media (max-width: 650px) {
  .site-header { padding: 7px 12px 0; gap: 5px; }
  .toolbox-link { font-size: 10px; }
  .header-actions { gap: 4px; }
  .quiet-button { padding: 6px 8px; font-size: 10px; }
  #bgm-button { gap: 4px; }
  #bgm-button svg { width: 15px; height: 15px; }
  .audio-settings-label { display: none; }
  #audio-settings-button { width: 44px; padding: 6px; }
  .app { padding: 0 12px 116px; }
  .hero { margin: 9px 0 13px; gap: 8px; }
  .hero h1 { font-size: 25px; gap: 7px; }
  .title-moon { font-size: 30px; }
  .mode-tabs { padding: 3px; border-radius: 7px; gap: 3px; }
  .mode-tabs button { padding: 7px 5px; min-height: 44px; font-size: 12px; }
  .stage-head { gap: 10px; }
  .stage-head h2 { font-size: 21px; }
  .stage-head .eyebrow { font-size: 10px; }
  .stage-picker-button { font-size: 11px; padding: 6px 10px; gap: 5px; }
  .stage-picker-button span { font-size: 10px; }
  .mission-text { font-size: 13px; line-height: 1.6; margin: 6px 0 4px; }
  .stage-dots { min-height: 11px; margin-bottom: 7px; }
  .stage-dot { width: 5px; height: 5px; }
  .time-settings { gap: 7px; padding: 11px 10px; margin: 10px 0; align-items: flex-end; }
  .time-settings label { min-width: 0; flex: 1; font-size: 10px; }
  .time-settings input { width: 100%; max-width: none; min-height: 44px; padding: 6px 4px; font-size: 17px; }
  .time-arrow { margin: 0 0 9px; font-size: 16px; }
  .reserve-setting { max-width: 74px; }
  .reserve-setting input { width: 51px; }
  .reserve-setting > div { gap: 4px; }
  .reserve-setting span { font-size: 11px; }
  .time-settings > p { flex-basis: 100%; max-width: none; margin: 2px 0 0; font-size: 11px; }
  .budget { top: 5px; padding: 10px 12px 2px; margin-bottom: 10px; border-radius: 8px; }
  .budget-main { gap: 8px; }
  .clock-face { width: 37px; height: 37px; }
  .free-time { display: block; flex: 1; }
  .free-time > span { display: block; font-size: 10px; line-height: 1.2; }
  .free-time strong { font-size: 35px; }
  .free-time strong span { margin-left: 3px; font-size: 11px; }
  .rest-goal { padding-left: 9px; margin-left: 0; gap: 2px; }
  .rest-goal > span { font-size: 10px; white-space: nowrap; }
  .rest-goal b { font-size: 16px; }
  .budget-status { max-width: 78px; font-size: 11px; }
  .rest-progress { height: 7px; margin-top: 8px; }
  .budget-bottom { gap: 6px; }
  .carry-limit { gap: 5px; font-size: 10px; flex-wrap: wrap; }
  .carry-limit b { font-size: 11px; }
  #carry-summary { font-size: 10px; }
  .budget-details { font-size: 10px; }
  .budget-details summary { min-height: 36px; }
  .bundle-rules { gap: 5px; font-size: 11px; margin-bottom: 8px; }
  .bundle-rules > * { padding: 4px 8px; }
  .first-guide { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 12px; margin-bottom: 11px; }
  .coach-label { font-size: 10px; }
  #coach-text { font-size: 12px; line-height: 1.5; margin-top: 2px; }
  .coach-action { min-height: 44px; padding: 8px 11px; font-size: 12px; }
  .boards { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .lane { padding: 12px; border-radius: 8px; }
  .lane h3 { font-size: 19px; gap: 6px; }
  .lane h3 svg { width: 21px; height: 21px; }
  .lane > header > span { font-size: 17px; }
  .lane-caption { font-size: 10px; margin: 4px 0 10px; }
  .task-list { gap: 11px; }
  .task-card { padding: 11px 12px 10px; }
  .task-top { gap: 10px; min-height: 58px; }
  .drag-handle { width: 58px; height: 58px; }
  .task-art { width: 57px; height: 57px; }
  .task-title { font-size: 15px; padding-right: 15px; }
  .task-info { gap: 7px; margin-top: 4px; }
  .task-minutes { font-size: 23px; }
  .task-minutes small { font-size: 10px; }
  .required-mark { font-size: 10px; }
  .task-after, .task-time { font-size: 10px; }
  .task-order { top: -4px; font-size: 11px; }
  .method-options { gap: 5px; margin-top: 9px; }
  .method-button { min-height: 48px; font-size: 12px; padding: 6px 5px; }
  .method-button span, .method-button small { font-size: 10px; }
  .method-consequence { font-size: 10px; line-height: 1.6; margin-top: 5px; }
  .task-actions { gap: 6px; margin-top: 7px; padding-top: 7px; }
  .task-actions button { padding: 6px 9px; }
  .task-actions .transfer-button { padding: 6px 10px; font-size: 11px; }
  .order-buttons { gap: 4px; }
  .task-actions .edit-button { font-size: 11px; padding: 6px 7px; }
  .tomorrow-lane { padding: 11px 12px; }
  .tomorrow-lane .task-card { padding: 9px 11px; }
  .tomorrow-lane .task-top { min-height: 48px; gap: 9px; }
  .tomorrow-lane .drag-handle, .tomorrow-lane .task-art { width: 46px; height: 46px; }
  .tomorrow-lane .task-title { font-size: 14px; }
  .tomorrow-lane .task-minutes { font-size: 21px; }
  .empty-label { min-height: 103px; gap: 4px; }
  .empty-label strong { font-size: 13px; }
  .empty-label > span:last-child { font-size: 10px; }
  .empty-picture { width: 42px; height: 34px; }
  .empty-picture svg { width: 30px; height: 30px; }
  .drop-tip { font-size: 10px; padding: 7px 5px; margin-top: 10px; min-height: 32px; }
  .plan-tools { gap: 7px; margin: 13px 0; }
  .secondary-button { padding: 8px 11px; font-size: 12px; }
  .guide-area { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .goal-card { padding: 14px 16px; }
  .issues-card { padding: 14px 15px; }
  .plan-details > summary { font-size: 11px; }
  .story-details { font-size: 11px; }
  .practice-times { font-size: 11px; gap: 8px; }
  .timeline-heading { font-size: 11px; gap: 7px; }
  .timeline-heading > span, .timeline-labels { font-size: 10px; }
  .small-note { font-size: 10px; }
  .action-bar { gap: 12px; padding: 11px 14px calc(11px + env(safe-area-inset-bottom)); border-radius: 9px 9px 0 0; }
  .action-bar > span { font-size: 11px; line-height: 1.55; }
  .action-bar .primary-button { flex-shrink: 0; min-height: 48px; padding: 10px 16px; font-size: 12px; }
  .status-line { font-size: 11px; }
  footer { gap: 6px 15px; margin-top: 15px; font-size: 10px; }
  footer .text-button { font-size: 10px; }
  dialog { padding: 31px 21px 24px; border-radius: 8px; }
  dialog h2 { font-size: 23px; }
  dialog p, dialog li { font-size: 12px; }
  .stage-grid { gap: 9px; }
  .stage-choice { padding: 12px 11px; min-height: 155px; }
  .stage-choice strong { font-size: 14px; max-width: calc(100% - 36px); margin-top: 10px; }
  .stage-illustration { width: 57px; height: 57px; opacity: .75; }
  .stage-time, .stage-description { font-size: 10px; }
  .result-metrics { gap: 8px; }
  .result-metric strong { font-size: 27px; }
  .result-metric > span { font-size: 10px; }
  .completed-plan { padding: 13px 15px; }
  .completed-plan .receipt-entry { grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 2px; }
  .receipt-time { grid-column: 1 / -1; font-size: 10px; }
  .export-actions { gap: 18px; }
  .audio-control-row { gap: 10px; }
  .audio-control-row p { font-size: 11px; }
  .audio-control-row .secondary-button { font-size: 12px; padding: 8px; }
  .move-feedback { bottom: calc(85px + env(safe-area-inset-bottom)); font-size: 12px; padding: 9px 13px; white-space: normal; width: max-content; }
}
@media (max-width: 350px) {
  .site-header { padding-left: 9px; padding-right: 9px; }
  .app { padding-left: 9px; padding-right: 9px; }
  .quiet-button { padding-left: 6px; padding-right: 6px; }
  .header-actions { gap: 3px; }
  .toolbox-link { font-size: 9px; }
  .hero h1 { font-size: 23px; }
  .stage-head h2 { font-size: 20px; }
  .stage-picker-button { padding-left: 8px; padding-right: 8px; }
  .stage-picker-button span { font-size: 9px; }
  .budget { padding-left: 10px; padding-right: 10px; }
  .budget-main { gap: 6px; }
  .clock-face { width: 32px; height: 32px; }
  .free-time strong { font-size: 32px; }
  .rest-goal { padding-left: 7px; }
  .rest-goal > span { font-size: 9px; }
  .budget-status { font-size: 10px; max-width: 64px; }
  .carry-limit { gap: 4px; }
  .lane { padding: 10px; }
  .task-card { padding: 10px; }
  .drag-handle, .task-art { width: 53px; height: 53px; }
  .task-top { gap: 8px; }
  .task-title { font-size: 14px; }
  .method-button { font-size: 11px; padding: 6px 4px; }
  .task-actions { gap: 5px; }
  .task-actions .transfer-button { padding: 6px 8px; }
  .action-bar { padding-left: 12px; padding-right: 12px; gap: 9px; }
  .action-bar .primary-button { padding-left: 13px; padding-right: 13px; }
}
/* Keep the first choice above the answer bar on a small phone. */
@media (max-width: 650px) {
  .hero { margin-top: 7px; margin-bottom: 9px; gap: 5px; }
  .hero h1 { font-size: 24px; line-height: 1.25; }
  .title-moon { font-size: 28px; }
  .mode-tabs { padding: 0; }
  .mode-tabs button { min-height: 44px; }
  .stage-head h2 { font-size: 20px; line-height: 1.3; }
  .stage-head .eyebrow { margin-bottom: 1px; }
  .stage-dots { min-height: 7px; margin-bottom: 4px; }
  .budget { padding-top: 8px; padding-bottom: 0; }
  .budget-main { min-height: 40px; }
  .clock-face { display: none; }
  .free-time { display: flex; align-items: center; gap: 7px; }
  .free-time > span { max-width: 42px; font-size: 10px; line-height: 1.4; }
  .free-time strong { font-size: 33px; }
  .rest-goal { padding-left: 8px; }
  .rest-goal > span { font-size: 9px; }
  .budget-status { font-size: 10px; max-width: 72px; }
  .rest-progress { margin-top: 5px; height: 6px; }
  .budget-details summary { min-height: 28px; }
  .budget-details > div { top: 27px; }
  .first-guide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, .9fr); align-items: center; gap: 8px; padding: 8px 10px; }
  .coach-label { display: none; }
  #coach-text { font-size: 11px; line-height: 1.45; margin: 0; }
  .coach-action { font-size: 11px; line-height: 1.5; padding: 7px 8px; min-height: 48px; white-space: normal; }
  .method-button { min-height: 54px; padding: 5px; }
  .method-button > span { font-size: 11px; line-height: 1.3; }
  .method-button strong { font-size: 18px; line-height: 1.1; }
  .method-button strong small { font-size: 10px; }
  .method-button .method-carry { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
