.study-timetable {--tt-mint:var(--point-main,#7bc5ae);--tt-bg:var(--bg-card,#fff);--tt-border:#e4eae7;--tt-line:#edf1ef;--tt-ink:var(--text-main,#203831);--tt-muted:#5d7068;--tt-soft:#edf6f1;--tt-hour:54px;--tt-heading:65px;max-width:900px;margin:18px auto 28px;color:var(--tt-ink);font-family:Pretendard,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.study-timetable [hidden],#study-timetable-review[hidden] {display:none!important}
.study-timetable :is(h2,h3,p) {margin:0}
.timetable-head,.timetable-toolbar,.timetable-day-head,.timetable-editor-head,.timetable-controls {display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.timetable-head {padding:15px 19px}
.timetable-head h2 {font-size:20px;font-weight:740;letter-spacing:-.035em;font-variant-numeric:tabular-nums}
.study-timetable .timetable-status {padding:0 19px 12px;color:var(--tt-muted);font-size:13px}
.timetable-toolbar {justify-content:flex-end}
.timetable-card {border:1px solid var(--tt-border);border-radius:18px;overflow:hidden;background:var(--tt-bg);box-shadow:0 6px 24px #2c493809}
.timetable-profile-bar {display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}
.timetable-profile-tools {display:flex;justify-content:flex-end;align-items:center;gap:6px;flex-shrink:0}
.study-timetable .timetable-profile-tools button {font-size:12px;white-space:nowrap}
.timetable-profile-menu {position:relative;min-width:0}
.timetable-profile-menu summary {display:flex;align-items:center;gap:9px;padding:8px 12px;border:1px solid var(--tt-border);border-radius:9px;background:var(--tt-bg);font-size:14px;font-weight:680;cursor:pointer;overflow-wrap:anywhere}
.timetable-profile-menu summary::after {content:'▾';color:var(--tt-muted);font-size:12px}
.timetable-profile-list {position:absolute;top:calc(100% + 6px);left:0;z-index:5;display:grid;gap:3px;width:min(250px,calc(100vw - 48px));max-height:60vh;overflow:auto;padding:6px;border:1px solid var(--tt-border);border-radius:12px;background:var(--tt-bg);box-shadow:0 8px 25px #2c49381a}
.study-timetable .timetable-profile-option {display:flex;align-items:center;justify-content:space-between;gap:8px;text-align:left;border-color:transparent;font-size:13px;overflow-wrap:anywhere}
.timetable-profile-option[aria-pressed=true] {background:var(--tt-soft)}
.timetable-profile-option small {color:#226450;white-space:nowrap}
.timetable-profile-actions {display:flex;flex-wrap:wrap;gap:5px;padding:5px 3px 2px;border-top:1px solid var(--tt-line)}
.study-timetable .timetable-profile-actions button {font-size:12px}
.timetable-arrows {display:inline-flex;align-items:center;gap:2px}
.timetable-toolbar .timetable-arrows button {border:0;min-width:34px;padding:0;font-size:21px;line-height:1}
.study-timetable button,.timetable-editor :is(input:not([type=checkbox]),select) {font:inherit;color:var(--tt-ink);background:var(--tt-bg);border:1px solid var(--tt-border);border-radius:8px;padding:7px 10px;min-height:34px}
.study-timetable .timetable-current-week {font-size:13px;font-weight:650;line-height:1.25;letter-spacing:-.015em;padding-inline:11px;white-space:nowrap}
.study-timetable button:not(:disabled) {cursor:pointer}
.study-timetable button:hover:not(:disabled) {border-color:var(--tt-mint);background:var(--tt-soft)}
.study-timetable :is(button,input,select):focus-visible {outline:2px solid var(--tt-mint);outline-offset:2px}
.timetable-mobile-days {display:none}
.timetable-scroll {max-height:min(66vh,660px);overflow:auto;border-top:1px solid var(--tt-border);background:var(--tt-bg);overscroll-behavior:contain}
.timetable-grid {display:grid;grid-template-columns:58px repeat(7,minmax(0,1fr))}
.timetable-day,.timetable-ruler {min-width:0;background:var(--tt-bg);border-right:1px solid var(--tt-line)}
.timetable-day:last-child {border-right:0}
.timetable-day-head {position:sticky;top:0;z-index:2;box-sizing:border-box;block-size:var(--tt-heading);display:grid;grid-template-columns:minmax(0,1fr);place-items:center;border-bottom:1px solid var(--tt-border);background:var(--tt-bg);line-height:1.2}
.timetable-day-head span {font-size:11px;color:var(--tt-muted)}
.timetable-day-label {display:grid;justify-items:center;gap:3px}
.timetable-day-label strong {display:grid;place-items:center;width:29px;height:29px;font-size:17px;font-weight:690;font-variant-numeric:tabular-nums}
.timetable-day-head.is-current strong {background:var(--tt-soft);border-radius:50%;color:#226450}
.timetable-day-head.is-current + .timetable-lane {background-color:#fbfdfc}
.study-timetable .timetable-add {position:absolute;right:5px;top:6px;min-height:26px;min-width:26px;padding:0;border:0;color:var(--tt-muted);font-size:17px;line-height:1}
.timetable-lane,.timetable-ruler-hours {height:calc(24 * var(--tt-hour));position:relative}
.timetable-ruler-hours span {height:var(--tt-hour);display:block;text-align:right;padding:5px 9px 0 2px;box-sizing:border-box;font-variant-numeric:tabular-nums;font-size:11px;color:var(--tt-muted)}
.timetable-lane {isolation:isolate;background:repeating-linear-gradient(to bottom,var(--tt-line) 0 1px,transparent 1px var(--tt-hour));touch-action:pan-y}
.timetable-lane.is-editable {cursor:crosshair;user-select:none}
.timetable-selection {position:absolute;inset-inline:3px;z-index:1;border:1px dashed #5eaa8f;background:#d8efe6cf;border-radius:6px;pointer-events:none}
.study-timetable .timetable-slot {position:absolute;inset-inline:4px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;text-align:left;gap:2px;overflow:hidden;min-height:0;padding:0 7px;background:var(--slot-bg,var(--tt-soft));border:0;border-inline-start:2px solid var(--slot-edge,#80bca5);border-radius:7px;line-height:1.18;font-size:12px}
.study-timetable .timetable-slot.is-wake {background:#f2eff7;border-inline-start-color:#b0a3c4;color:#4f4863}
.timetable-slot.is-travel {--slot-bg:#ebf2f8;--slot-edge:#8dadc6}
.timetable-slot.is-meal {--slot-bg:#fbf1e4;--slot-edge:#c79d69}
.timetable-slot.is-rest {--slot-bg:#eaf4f3;--slot-edge:#86b5b2}
.timetable-slot.is-other {--slot-bg:#f1f2ef;--slot-edge:#a5b0a6}
.timetable-slot strong,.timetable-slot span {max-width:100%;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}
.timetable-slot span {font-size:10px;color:#4f635a;font-variant-numeric:tabular-nums}
.study-timetable .timetable-slot:hover:not(:disabled) {background:color-mix(in srgb,var(--slot-bg,#e3f1e9) 85%,var(--slot-edge,#e3f1e9))}
.study-timetable .timetable-slot.is-wake:hover:not(:disabled) {background:#ebe5f3}
.timetable-slot.is-wake span {color:#675d79}
.timetable-slot.is-compact span {display:none}
.timetable-editor {--tt-input:#fff;--tt-input-text:#243a30;--tt-input-line:#dce7e0;position:fixed;inset:0;margin:auto;box-sizing:border-box;width:min(364px,calc(100% - 24px));max-height:calc(100dvh - 24px);overflow:auto;border:1px solid var(--tt-border);border-radius:18px;padding:clamp(16px,4vw,24px);background:var(--tt-bg);color:var(--tt-ink);font:inherit;box-shadow:0 16px 52px #18342824}
.timetable-editor::backdrop {background:#23342d58}
.timetable-editor form,.timetable-editor label {display:grid;gap:6px;min-width:0}
.timetable-editor form {gap:11px}
.timetable-editor .timetable-entry-form {gap:15px}
.timetable-editor label,.timetable-date-hint {font-size:13px;color:#3e574b;font-weight:600}
.timetable-editor-head {min-height:34px;gap:4px;flex-wrap:nowrap}
.timetable-editor-head p {color:var(--tt-muted);font-size:12px;margin-top:4px}
.timetable-editor-head h3 {font-size:21px;font-weight:740;letter-spacing:-.55px;line-height:1.25}
.timetable-editor-head h3:focus {outline:0}
.timetable-editor :is(input:not([type=radio]):not([type=checkbox]),select) {width:100%;min-width:0;min-height:42px;font-size:16px;font-weight:450;padding:8px 11px;box-sizing:border-box;background:var(--tt-input);color:var(--tt-input-text);border:1px solid var(--tt-input-line);color-scheme:light;scroll-margin-block:12px}
.timetable-editor input::placeholder {color:#697a71;font-size:13px;font-weight:400}
.timetable-editor .timetable-close {flex:0 0 auto;align-self:flex-start;min-width:36px;min-height:36px;padding:0;border:0;background:transparent;border-radius:50%;font-size:22px;line-height:1;color:var(--tt-muted)}
.timetable-time-range {display:grid;grid-template-columns:minmax(0,1fr) 18px minmax(0,1fr);align-items:center;gap:7px;padding:9px 12px;border:1px solid var(--tt-input-line);border-radius:10px;background:#fafcfb}
.timetable-time-range.is-single {grid-template-columns:minmax(0,1fr)}
.timetable-time-range label {gap:2px}
.timetable-editor .timetable-entry-form .timetable-time-range input {min-height:31px;padding:2px 0 1px;border:0;border-bottom:1px solid transparent;border-radius:0;background:transparent;font-size:20px;font-weight:650;letter-spacing:-.4px;font-variant-numeric:tabular-nums}
.timetable-editor .timetable-entry-form .timetable-time-range input:focus {outline:0;border-bottom-color:#589f86}
.timetable-time-divider {align-self:end;padding-bottom:5px;color:#71867b;font-size:17px;text-align:center}
.timetable-entry-form .timetable-date-hint {line-height:1.5;margin-top:-6px}
.timetable-editor fieldset {min-width:0;margin:0;border:0;padding:0}
.timetable-editor legend {margin-bottom:6px;font-size:13px;font-weight:600;color:#3e574b}
.timetable-editor .timetable-segments {display:grid;grid-template-columns:1fr 1fr;gap:3px;padding:3px;border-radius:10px;background:#f0f4f2}
.timetable-editor .timetable-kind-options {grid-template-columns:repeat(3,minmax(0,1fr))}
.timetable-segments legend {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.timetable-editor fieldset label {display:block;position:relative;margin:0}
.timetable-editor fieldset input {position:absolute;opacity:0;width:1px;height:1px}
.timetable-editor fieldset span {min-height:33px;display:grid;place-items:center;border-radius:8px;text-align:center;cursor:pointer}
.timetable-editor .timetable-segments input:checked + span {background:#fff;color:#244c3d;font-weight:700;box-shadow:0 1px 3px #25423615}
.timetable-editor fieldset input:focus-visible + span {outline:2px solid var(--tt-mint);outline-offset:1px}
.timetable-frequency {display:grid;gap:11px}
.timetable-scope-row {display:flex;align-items:center;justify-content:space-between;gap:5px 12px;flex-wrap:wrap}
.timetable-scope-row > span {font-size:13px;font-weight:600;color:#3e574b}
.timetable-editor .timetable-scope-row .timetable-segments {padding:2px;grid-template-columns:auto auto;border-radius:8px}
.timetable-editor .timetable-scope-row .timetable-segments span {min-height:28px;padding-inline:9px;border-radius:5px;white-space:nowrap}
.timetable-weekdays {display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.timetable-weekdays span {background:#f4f7f5;color:#52665b}
.timetable-weekdays input:checked + span {background:#dbede4;color:#22513f;font-weight:740}
.timetable-controls {justify-content:flex-end;padding-top:10px;border-top:1px solid var(--tt-border)}
.study-timetable .timetable-primary {padding-inline:18px;background:#e1f1e8;border-color:#b9d8cb;color:#194b3b;font-weight:700}
.timetable-entry-form .timetable-controls {gap:6px}
.timetable-entry-form .timetable-controls button {font-size:13px;min-height:38px}
.timetable-entry-form .timetable-controls button:not(.timetable-primary) {border-color:transparent}
.study-timetable .timetable-entry-form .timetable-primary {min-width:76px;background:#d5ebdf;border-color:#d5ebdf;color:#174938}
.timetable-controls .timetable-danger {margin-right:auto;background:transparent;border-color:transparent}
.timetable-error,.study-timetable .timetable-danger {color:#b04f47;font-size:13px}
.timetable-delete-choices {display:flex;flex-wrap:wrap;gap:8px;padding:10px;border:1px solid var(--tt-border);border-radius:10px}
.timetable-delete-choices p {flex-basis:100%;font-size:12px;color:var(--tt-muted)}
.timetable-error:empty,.timetable-status:empty {display:none}
.timetable-rule-manager {display:grid;gap:9px}
.study-timetable .timetable-rule-entry {display:grid;justify-items:start;gap:4px;text-align:left;overflow-wrap:anywhere}
.timetable-rule-entry small {font-size:12px;color:var(--tt-muted)}
.timetable-pledges[hidden],.timetable-alarm[hidden] {display:none!important}
.timetable-pledges {margin:0 0 16px;padding:12px 16px;border:1px solid var(--border-light,#dce8e2);border-radius:12px;background:var(--bg-card,#fff);color:var(--text-main,#203831)}
.timetable-pledges h2 {font-size:15px;margin:0 0 4px}
.timetable-pledges ul {list-style:none;margin:0;padding:0}
.timetable-pledge-row {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:7px 12px;padding:7px 0}
.timetable-pledge-row + .timetable-pledge-row {border-top:1px solid var(--border-light,#dce8e2)}
.timetable-pledge-label {display:flex;align-items:baseline;flex-wrap:wrap;gap:3px 8px;font-size:13px;overflow-wrap:anywhere;min-width:0}
.timetable-pledge-label small {color:#5d7068;font-size:12px}
.timetable-pledge-checks {display:flex;gap:4px}
.timetable-pledge-checks button {border:1px solid var(--border-light,#dce8e2);border-radius:8px;background:var(--bg-card,#fff);color:#465d53;padding:5px 8px;min-height:32px;font:inherit;font-size:11px;cursor:pointer}
.timetable-pledge-checks button[aria-pressed=true] {background:#e1f1e8;border-color:#b9d8cb;color:#194b3b}
.timetable-alarm-settings {color:var(--text-main,#203831);border:1px solid var(--border-light,#dce8e2);border-radius:10px;padding:7px 12px;margin:0 0 16px;font-size:13px}
.timetable-alarm-settings legend {font-weight:650;padding-inline:4px}
.timetable-alarm-settings label {display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:35px;cursor:pointer}
.timetable-alarm-settings input {width:17px;height:17px;accent-color:var(--point-main,#7bc5ae)}
.timetable-alarm-settings p {color:#5d7068;font-size:12px;margin:5px 0 2px}
.timetable-alarm {position:fixed;top:max(82px,calc(env(safe-area-inset-top) + 48px));right:max(16px,env(safe-area-inset-right));z-index:10005;box-sizing:border-box;width:min(360px,calc(100vw - 32px));display:flex;align-items:start;justify-content:space-between;gap:8px;padding:12px 12px 12px 15px;border:1px solid #c3ddd1;border-radius:13px;background:#fbfefd;color:#203831;box-shadow:0 10px 35px #142f2836;font-family:Pretendard,sans-serif}
.timetable-alarm strong {font-size:15px}
.timetable-alarm p {margin:4px 0 0;color:#476156;font-size:13px;line-height:1.4;overflow-wrap:anywhere}
.timetable-alarm button {flex:0 0 auto;min-width:34px;min-height:34px;border:0;border-radius:8px;background:transparent;color:#476156;font:inherit;font-size:20px;cursor:pointer}
.timetable-alarm button:hover {background:#edf6f1}
#study-timetable-review {padding:clamp(14px,3vw,20px);margin:12px 0;border:1px solid var(--border-light,#dce8e2);border-radius:12px;background:var(--bg-card,#fff)}
#study-timetable-review h2 {margin:0;font-size:17px;line-height:1.35}
.timetable-review-content {display:grid;gap:12px;margin-top:12px}
.timetable-review-content p {margin:0;font-size:13px;line-height:1.5}
.timetable-review-metrics {display:flex;flex-wrap:wrap;gap:12px 28px;margin:0}
.timetable-review-metrics > div {flex:0 1 auto;max-width:100%}
.timetable-review-metrics dt {font-size:13px;font-weight:600}
.timetable-review-metrics dd {margin:3px 0 0;font-size:20px;line-height:1.25;font-weight:700;font-variant-numeric:tabular-nums}
.timetable-review-note,.timetable-review-metrics dd.timetable-review-note {color:var(--text-sub,#4b6257);font-size:12px;font-weight:400;line-height:1.45}
.timetable-review-feedback {padding:9px 12px;border-radius:8px;background:color-mix(in srgb,var(--point-main,#7bc5ae) 15%,var(--bg-card,#fff))}
.timetable-review-content summary {padding:8px 0;cursor:pointer;font-size:13px;font-weight:650;line-height:1.4}
.timetable-review-evidence summary {padding-bottom:0;font-size:12px}
.timetable-review-evidence[open] summary {padding-bottom:6px}
.timetable-review-dates,.timetable-review-day {border-top:1px solid var(--border-light,#dce8e2)}
.timetable-review-day {padding-inline-start:10px}
.timetable-review-table {width:100%;margin:1px 0 10px;border-collapse:collapse;table-layout:fixed;color:inherit;font-size:13px;font-variant-numeric:tabular-nums}
.timetable-review-table :is(td,th) {padding:6px 6px 6px 0;vertical-align:top;text-align:left;overflow-wrap:anywhere}
.timetable-review-table thead th:first-child {width:27%}
.timetable-review-table thead th {color:var(--text-sub,#4b6257);font-size:12px}
.timetable-review-table tbody tr {border-top:1px solid var(--border-light,#dce8e2)}
.timetable-review-table small {display:block;margin-top:2px}
.timetable-compare {max-width:720px;display:grid;gap:9px}
.timetable-compare-tools {display:flex;align-items:center;gap:5px}
.timetable-compare-tools :is(button,select) {min-height:36px;padding:4px 10px;border:1px solid var(--border-light,#dce8e2);border-radius:8px;background:var(--bg-card,#fff);color:inherit;font:inherit;font-size:13px}
.timetable-compare-tools button {width:36px;padding:0;font-size:20px;line-height:1;cursor:pointer}
.timetable-compare-tools button:disabled {opacity:.45;cursor:default}
.timetable-compare-grid {--compare-height:576px;display:grid;grid-template-columns:38px repeat(2,minmax(0,1fr));gap:0 5px;align-items:stretch}
.timetable-compare-grid > strong {min-width:0;padding:7px 2px;text-align:center;font-size:13px}
.timetable-compare-ruler,.timetable-compare-lane {position:relative;height:var(--compare-height);font-variant-numeric:tabular-nums}
.timetable-compare-ruler span {position:absolute;inset-inline-end:2px;font-size:11px;color:var(--text-sub,#4b6257)}
.timetable-compare-lane {border:1px solid var(--border-light,#dce8e2);border-radius:7px;overflow:hidden;background:repeating-linear-gradient(to bottom,transparent 0 calc(var(--compare-height) / 24 - 1px),#e8efeb calc(var(--compare-height) / 24 - 1px) calc(var(--compare-height) / 24)),#fbfdfc}
.timetable-compare-block {position:absolute;z-index:1;box-sizing:border-box;display:flex;align-items:center;min-height:3px;padding:0 4px;overflow:hidden;background:var(--compare-color,#edeff0);color:#263c34;border:1px solid var(--compare-edge,#a9b4b1);border-radius:4px;text-align:left;cursor:pointer}
.timetable-compare-block span {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:inherit;font-size:11px}
.timetable-compare-lane.is-planned .timetable-compare-block {border-style:dashed;background:color-mix(in srgb,var(--compare-color,#edeff0) 60%,#fff)}
.timetable-compare-block.is-point {min-height:7px;border-radius:0}
.timetable-compare-block.is-study {--compare-color:#cfeadf;--compare-edge:#7aae99}
.timetable-compare-block.is-sleep {--compare-color:#e3def2;--compare-edge:#a79bc3}
.timetable-compare-block.is-meal {--compare-color:#f8e5ca;--compare-edge:#c09b69}
.timetable-compare-block.is-travel {--compare-color:#dce9f2;--compare-edge:#88a7c0}
.timetable-compare-block.is-rest {--compare-color:#d7eeec;--compare-edge:#85b3b0}
.timetable-compare-block.is-ent {--compare-color:#f8ddc3;--compare-edge:#c59264}
.timetable-compare-block:focus-visible {z-index:2;outline:2px solid #2d715b;outline-offset:-2px}
.timetable-review-content .timetable-compare-empty {padding:10px 6px;text-align:center;color:var(--text-sub,#4b6257);font-size:12px}
.timetable-compare-status {color:var(--text-sub,#4b6257);overflow-wrap:anywhere}
@media (max-width:760px) {
  .timetable-compare-grid {grid-template-columns:33px repeat(2,minmax(0,1fr));gap:0 4px}
  .timetable-compare-tools :is(button,select) {min-height:44px}
  .study-timetable {--tt-heading:48px;margin-block:12px 20px}
  .timetable-head {padding:10px 12px;gap:4px 8px}
  .timetable-head h2 {font-size:17px}
  .timetable-toolbar {flex-wrap:nowrap;gap:4px}
  .timetable-toolbar .timetable-arrows button {min-height:40px;min-width:32px}
  .timetable-mobile-days {display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;padding:0 7px 7px}
  .study-timetable .timetable-mobile-days button {display:grid;place-items:center;gap:2px;min-height:44px;padding:3px 2px;border:0;color:var(--tt-muted);font-size:11px}
  .timetable-mobile-days strong {font-size:14px;color:var(--tt-ink)}
  .timetable-mobile-days button:has(span:only-child) span {font-size:14px}
  .study-timetable .timetable-mobile-days button[aria-pressed=true] {background:var(--tt-soft)}
  .timetable-mobile-days button[aria-pressed=true] strong {color:#226450}
  .timetable-day-label {display:flex;align-items:center;gap:5px}
  .timetable-day-label strong {font-size:14px}
  .study-timetable .timetable-add {top:3px;right:6px;min-height:42px;min-width:42px}
  .timetable-grid {grid-template-columns:49px minmax(0,1fr)}
  .timetable-day:not(.is-mobile-day) {display:none}
  .timetable-day.is-mobile-day {border-right:0}
  .study-timetable .timetable-slot {inset-inline:5px;padding-inline:8px}
  .timetable-editor button,.timetable-editor fieldset span,.timetable-entry-form .timetable-controls button {min-height:41px}
}
