:root{--ink:#29485e;--muted:#697d90;--blue:#19799f;--line:#e0e7f0;--paper:#f7f8fc}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 0 18%,#f0e8f3 0,transparent 52%),linear-gradient(125deg,#fcfbfd,#edf6fa);color:var(--ink);font:15px/1.6 'Pretendard',system-ui,-apple-system,'Noto Sans KR',sans-serif;min-height:100vh}button,input{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #50a4c7;outline-offset:4px}button:disabled{opacity:.55;cursor:wait}[hidden]{display:none!important}header{padding:18px 24px}.top{max-width:1180px;margin:auto;padding:15px 20px;display:flex;align-items:center;gap:12px;background:#ffffffd9;border:1px solid white;border-radius:12px;box-shadow:0 5px 24px #7299b010}.brand{font-size:20px;font-weight:800;letter-spacing:0;margin-right:auto;display:flex;align-items:center;gap:7px;white-space:nowrap}.brand>span:last-child{color:#297da0}.brand-eyes{display:flex;gap:3px;margin-right:3px;padding:4px 5px;background:#eeedf4;border-radius:12px}.brand-eyes i,.detail-eyes i{display:block;width:12px;height:15px;border-radius:50%;background:radial-gradient(circle at 65% 26%,#e6faff 0 8%,transparent 11%),radial-gradient(ellipse at 50% 56%,#102b40 0 25%,#17688b 40%,#43a4ca 65%,#9ec6d8 79%,#6c7e8f 90%);box-shadow:inset 0 1px 3px #23445b66}.btn{border:1px solid #dce7f0;border-radius:12px;background:#fff;padding:10px 16px;color:var(--blue);font-size:13px;font-weight:650;white-space:nowrap;min-height:44px}.btn.primary{background:linear-gradient(160deg,#43a1c8,#19799f);color:white;border-color:transparent;box-shadow:0 3px 0 #126080}main{max-width:1180px;margin:auto;padding:30px 30px 65px}.intro{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:28px}.eyebrow{font-size:11px;font-weight:700;letter-spacing:0;color:#6e91ad}h1{font-size:38px;line-height:1.35;letter-spacing:-1.8px;margin:12px 0}.intro p{color:var(--muted);margin:0}.date{font-size:13px;color:var(--muted);padding-bottom:5px}.summary{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:22px}.stat{border:1px solid #ffffff;background:#ffffffb8;border-radius:12px;padding:19px 22px}.stat:first-child{background:linear-gradient(135deg,#3e99bc,#207a9e);color:white;box-shadow:0 5px 15px #2a80a21a}.stat label{font-size:12px}.stat strong{display:block;font-size:29px;margin:7px 0 0}.notice{background:#e5f1f9;border:1px solid #d6e8f3;border-radius:12px;padding:14px 18px;display:flex;align-items:center;gap:14px;margin-bottom:22px;color:#375f79;font-size:12px}.notice p{margin:0;flex:1}.notice .btn{font-size:12px}.notice.demo{background:#f1eef8;border-color:#e5dfee;color:#625575}.toolbar{display:flex;align-items:center;gap:10px;margin:18px 0}.toolbar input{border:1px solid #dfe7f0;border-radius:12px;padding:12px 18px;background:#ffffffc9;max-width:300px;width:100%;font-size:16px;color:var(--ink)}.chips{display:flex;gap:8px;overflow:auto;padding:4px 2px 12px;white-space:nowrap}.chip{border:1px solid #dfe8ef;border-radius:12px;background:#fff9;padding:10px 16px;color:#5a768d;font-size:12px;min-height:44px}.chip.selected{background:#dbeef8;color:#145b81;border-color:#b8daec;font-weight:700}.layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,1fr);gap:22px;margin-top:12px}.panel{background:linear-gradient(140deg,#fff,#faf9fd);border:1px solid white;box-shadow:0 4px 20px #677e9d09;border-radius:12px;padding:23px;margin-bottom:22px}.panel h2{font-size:17px;margin:0;display:flex;align-items:center;gap:8px}.badge{font-size:11px;background:#e8f2f8;border-radius:8px;padding:3px 8px;color:#4d7a95}.range{font-size:12px;color:var(--muted);margin:8px 0 12px}.card{padding:18px 0;border-bottom:1px solid #ebeff5;display:flex;gap:12px;align-items:start}.card:last-child{border-bottom:none}.card-body{min-width:0;flex:1}.tags{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:7px}.tag{border-radius:12px;padding:4px 10px;font-size:11px;background:#e3f1f8;color:#186a92}.title{border:0;padding:0;text-align:left;background:transparent;color:var(--ink);font-size:15px;font-weight:650;line-height:1.6;overflow-wrap:anywhere;min-height:30px}.title:hover{color:var(--blue)}.meta{display:flex;align-items:center;gap:10px;margin-top:8px;color:var(--muted);font-size:12px;flex-wrap:wrap}.deadline{color:#976570}.status{color:#6c749c}.done{width:28px;height:28px;border-radius:50%;border:1.5px solid #c9deeb;background:#fff;color:#5087a7;flex:none;margin-top:2px;font-size:13px}.done:hover{background:#dbeefa}.empty{padding:25px 4px;color:#7a8c9f;font-size:13px;line-height:1.8}.overdue{border-color:#e9dce8}.overdue h2{color:#926875}footer{display:flex;justify-content:space-between;gap:10px;margin-top:16px;color:#7c8fa1;font-size:11px}dialog{border:1px solid #e2e8f0;border-radius:12px;padding:26px;max-width:420px;width:calc(100% - 32px);color:var(--ink);background:#fcfbfd}dialog::backdrop{background:#58758b55;backdrop-filter:blur(4px)}dialog h2{margin-top:0}dialog input{width:100%;padding:12px;margin:12px 0 20px;border:1px solid #cdddea;border-radius:8px;font-size:16px}dialog p{color:var(--muted);font-size:13px}.actions{display:flex;justify-content:end;gap:10px}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#29485e;color:white;border-radius:8px;padding:14px 24px;z-index:5;max-width:90vw;font-size:13px}#toast:empty{display:none}
#detail{width:80vw;max-width:420px;height:50vh;height:50dvh;max-height:75dvh;border-radius:12px;padding:0;border:1px solid white;overflow:visible;background:linear-gradient(130deg,#fff,#faf7fb 60%,#f3f9fc);box-shadow:0 20px 60px #58768c40}#detail::backdrop{background:#687d9355}.detail-shell{height:100%;display:flex;flex-direction:column;position:relative}.detail-eyes{position:absolute;top:-37px;left:calc(50% - 43px);display:flex;gap:10px;background:linear-gradient(#fdfcff,#eae4ee);border:2px solid #fff;padding:10px 13px;border-radius:12px;box-shadow:0 5px 12px #5f73842b}.detail-eyes i{width:24px;height:29px}.detail-top{display:flex;align-items:center;justify-content:space-between;padding:17px 13px 0 20px;gap:8px}.detail-subject{background:#e3f1f8;color:#186a92;border:1px solid #d5e8f4;border-radius:12px;padding:6px 12px;font-size:12px;max-width:calc(100% - 44px);overflow-wrap:anywhere}.detail-close{width:44px;height:44px;background:transparent;border:0;color:#8596a6;font-size:26px;flex:none}.detail-body{padding:0 20px;flex:1;min-height:0;overflow:auto}.detail-body h2{font-size:23px;line-height:1.4;font-weight:650;letter-spacing:-.8px;margin:10px 0 17px;overflow-wrap:anywhere}.detail-body dl{display:grid;grid-template-columns:45px 1fr;gap:8px 10px;font-size:12px;line-height:1.5;margin:0}.detail-body dt{color:#657e92}.detail-body dd{margin:0;overflow-wrap:anywhere}#detail-due{color:#146e98;font-weight:650}.detail-reminder{background:#e7f2f8;color:#33627b;border-radius:8px;font-size:12px;line-height:1.65;padding:10px 12px;margin:15px 0 0}.detail-actions{padding:14px 18px 18px;display:flex;gap:8px}.detail-actions>*{min-height:44px;display:flex;align-items:center;justify-content:center;font:650 12px/1.4 'Pretendard',system-ui;border-radius:12px;padding:10px;flex:1}.detail-actions a{background:#ecedf3;color:#516278;border:1px solid #e1e3ed}.detail-actions button{border:0;background:linear-gradient(160deg,#43a1c8,#19799f);color:#fff;box-shadow:0 4px 0 #126080,inset 0 1px 2px #c8ecfb}#detail-error{padding:0 20px 12px;margin:0;color:#a04762;font-size:12px}#detail-task{font-size:12px;color:#627c92;margin-top:-8px}

/* Mobile: compact spacing, natural letter spacing, controls on shared rows. */
@media(min-width:0px){
 body{font-size:14px;line-height:1.4;letter-spacing:0}
 header{padding:6px 8px 0}
 .top{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:8px 10px;gap:6px;border-radius:8px}
 .brand{grid-column:1/-1;font-size:16px;line-height:1.2;letter-spacing:0;margin:0;gap:4px;padding:1px 0 3px}
 .brand-eyes{display:none}
 .top .btn{width:100%;min-width:0;min-height:36px;font-size:12px;line-height:1.2;padding:7px 8px;white-space:normal;text-align:center;display:flex;align-items:center;justify-content:center}
 main{padding:12px 10px 20px}
 .intro{display:block;margin-bottom:12px}
 .eyebrow{font-size:10px;line-height:1.2;letter-spacing:0}
 h1{font-size:25px;line-height:1.23;letter-spacing:-.5px;margin:5px 0}
 h1 br{display:none}
 .intro p{font-size:12px;line-height:1.4}
 .date{font-size:11px;line-height:1.3;margin-top:5px;padding:0}
 .summary{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-bottom:10px}
 .stat{padding:8px 6px;border-radius:8px;min-width:0}
 .stat label{display:block;font-size:10px;line-height:1.3;letter-spacing:0;white-space:nowrap}
 .stat strong{font-size:21px;line-height:1.15;margin:3px 0 0}
 .notice{padding:8px 10px;border-radius:8px;gap:7px;margin-bottom:10px;align-items:center;flex-wrap:nowrap;font-size:11px;line-height:1.4}
 .notice p{min-width:0;overflow-wrap:anywhere}
 .notice .btn{font-size:11px;line-height:1.2;min-height:34px;padding:6px 9px;flex:none}
 .toolbar{display:flex;flex-wrap:nowrap;gap:6px;margin:8px 0}
 .toolbar input{max-width:none;flex:1;min-width:0;width:0;padding:8px 10px;font-size:16px;line-height:1.2}
 .toolbar .btn{min-height:36px;padding:7px 9px;font-size:11px;line-height:1.2;flex:none}
 .chips{gap:6px;padding:2px 0 7px;max-width:100%}
 .chip{padding:6px 10px;min-height:34px;font-size:11px;line-height:1.2}
 .layout{grid-template-columns:minmax(0,1fr);gap:0;margin-top:3px}
 .layout>div{min-width:0}
 .panel{padding:11px 12px;margin-bottom:10px;border-radius:8px;min-width:0}
 .panel h2{font-size:15px;line-height:1.3;gap:6px}
 .badge{padding:2px 6px;font-size:10px;line-height:1.2}
 .range{font-size:11px;line-height:1.35;margin:4px 0 5px}
 .card{padding:9px 0;gap:8px}
 .done{width:32px;height:32px;min-width:32px;min-height:32px;margin-top:2px}
 .tags{gap:4px;margin-bottom:4px}
 .tag{font-size:10px;padding:3px 8px;line-height:1.25}
 .title{font-size:14px;line-height:1.35;min-height:0;letter-spacing:0}
 .meta{margin-top:4px;gap:5px 8px;font-size:11px;line-height:1.3}
 .empty{padding:12px 0;font-size:12px;line-height:1.4}
 footer{flex-direction:column;gap:3px;margin-top:8px;font-size:10px;line-height:1.35}
 #login{padding:16px;border-radius:12px}
 #login h2{font-size:19px;line-height:1.3;margin-bottom:8px}
 #login p{line-height:1.4;margin:6px 0}
 #login input{padding:8px 10px;margin:7px 0 12px}
 .actions{flex-wrap:nowrap;gap:6px}
 .actions .btn{padding:7px 14px;min-height:36px;line-height:1.2}
 #detail{max-width:420px;border-radius:12px}
 .detail-top{padding:8px 8px 0 12px;gap:5px}
 .detail-subject{font-size:11px;line-height:1.25;padding:4px 9px;max-width:calc(100% - 34px)}
 .detail-close{width:34px;height:34px;font-size:24px}
 .detail-body{padding:0 12px}
 .detail-body h2{font-size:20px;line-height:1.25;letter-spacing:-.3px;margin:5px 0 10px}
 .detail-body dl{grid-template-columns:40px minmax(0,1fr);font-size:12px;line-height:1.35;gap:5px 8px}
 .detail-reminder{font-size:12px;line-height:1.4;padding:7px 9px;margin-top:9px;border-radius:8px}
 .detail-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:8px 10px 10px;gap:6px;flex:none}
 .detail-actions>*{min-width:0;min-height:36px;padding:7px 6px;line-height:1.2;font-size:12px;white-space:nowrap;letter-spacing:0}
 #detail-task{font-size:11px;line-height:1.35;margin:0 0 8px}
 #detail-error{padding:0 12px 8px;line-height:1.35}
 .detail-eyes{top:-30px;padding:7px 10px;gap:7px;left:calc(50% - 34px)}
 .detail-eyes i{width:20px;height:24px}
}

/* Desktop: overview on the left, schedules start at the top right. */
.overview,.schedule-workspace{min-width:0}
@media(min-width:100000px){
 header{padding:12px 20px 0}
 .top{max-width:1400px;padding:11px 16px;border-radius:12px}
 main{max-width:1400px;display:grid;grid-template-columns:280px minmax(0,1fr);gap:18px;align-items:start;padding:18px 20px 30px}
 .overview{position:sticky;top:18px;background:linear-gradient(145deg,#ffffffeb,#f2eef8d9 65%,#eaf4fae6);border:1px solid #fff;border-radius:12px;padding:19px 16px}
 .overview .intro{display:block;margin-bottom:17px}
 .overview h1{font-size:30px;line-height:1.23;letter-spacing:-.6px;margin:9px 0}
 .overview .intro p{font-size:12px;line-height:1.4}
 .overview .date{margin-top:10px;padding:0;font-size:12px}
 .overview .summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:13px}
 .overview .stat{padding:11px 12px;border-radius:8px}
 .overview .stat strong{font-size:25px;line-height:1.2;margin-top:4px}
 .overview .stat label{font-size:11px}
 .overview .notice{padding:11px 12px;gap:9px;flex-direction:column;align-items:stretch;margin:0;border-radius:8px;line-height:1.4}
 .overview .notice .btn{min-height:36px;padding:7px 10px}
 .schedule-workspace .toolbar{margin:0 0 8px;gap:8px}
 .schedule-workspace .toolbar input{max-width:none;min-width:0;flex:1;padding:9px 14px}
 .schedule-workspace .toolbar .btn{padding:8px 13px;min-height:40px}
 .schedule-workspace .chips{padding:0 0 9px;gap:6px}
 .schedule-workspace .chip{padding:7px 12px;min-height:36px}
 .schedule-workspace .layout{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:14px;margin-top:0}
 .schedule-workspace .layout>div{min-width:0}
 .schedule-workspace .panel{padding:16px;margin-bottom:14px;border-radius:12px}
 .schedule-workspace .range{margin:5px 0 7px;line-height:1.4}
 .schedule-workspace .card{padding:12px 0;gap:9px}
 .schedule-workspace .title{line-height:1.4}
 .schedule-workspace .empty{padding:16px 0;line-height:1.4}
 main>footer{grid-column:1/-1;margin-top:0}
}
@media(min-width:100000px) and (max-width:1100px){
 main{grid-template-columns:250px minmax(0,1fr);gap:14px;padding-left:16px;padding-right:16px}
 .schedule-workspace .layout{grid-template-columns:minmax(0,1fr)}
}
@media(min-width:0px){
 .overview,.schedule-workspace{display:contents}
}

/* Simple header, no introductory hero/search, two-column task cards. */
.workspace-actions{display:flex;align-items:center;gap:6px;margin:0 0 8px}
.workspace-actions #message{flex:1;min-width:0;font-size:11px;line-height:1.35;color:#657e92}
.workspace-actions .btn{font-size:12px;min-height:34px;padding:6px 12px}
.task-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.task-grid .card{padding:7px 0;border:0;border-bottom:1px solid var(--subject-line,#dce9ed);border-radius:0;align-items:flex-start;gap:6px;min-width:0;background:transparent;box-shadow:none}
.task-grid .card:last-child{border:0}
.task-grid .done{width:25px;height:25px;min-width:25px;min-height:25px;margin-top:2px}
.task-grid .title{font-size:13px;line-height:1.35;letter-spacing:0;min-height:0}
.task-grid .meta{font-size:10px;line-height:1.35;gap:3px 6px;margin-top:5px}
.task-grid .tags{gap:3px;margin-bottom:4px}
.task-grid .tag{font-size:10px;padding:3px 6px}
.task-grid .card-body{overflow-wrap:anywhere}
@media(min-width:100000px){
 .overview{padding:12px}
 .overview .summary{margin:0}
 .schedule-workspace .layout{grid-template-columns:minmax(0,1fr)}
 .schedule-workspace .task-grid .card{padding:10px}
 .schedule-workspace .task-grid .title{font-size:14px}
 .schedule-workspace .task-grid .meta{font-size:11px}
 .workspace-actions{margin-bottom:9px}
}
@media(min-width:0px){
 .top{display:flex;flex-wrap:nowrap;gap:5px;padding:8px}
 .top .brand{font-size:15px;margin-right:auto;gap:3px;min-width:0;flex:none;padding:0;letter-spacing:0}
 .top .btn{width:auto;flex:none;min-height:30px;font-size:10px;line-height:1.2;padding:5px 8px;white-space:nowrap}
 main{padding-top:10px}
 .workspace-actions .btn{font-size:11px;padding:6px 9px}
 .task-grid{gap:6px}
 .task-grid .card{padding:7px 0;gap:5px}
 .task-grid .done{width:23px;height:23px;min-width:23px;min-height:23px;font-size:11px}
 .panel{padding:10px}
 .task-grid .tag{font-size:9px;padding:3px 5px}
}
.write-page{display:block;max-width:560px;padding-top:16px}
.write-panel{background:linear-gradient(130deg,#fff,#faf7fb 60%,#f3f9fc);border:1px solid white;border-radius:12px;padding:18px}
.write-panel h1{font-size:22px;line-height:1.25;letter-spacing:0;margin:0 0 14px}
.write-field{display:block;margin-bottom:12px}
.write-field span{display:block;font-size:12px;font-weight:650;margin-bottom:5px}
.write-field input,.write-field select{width:100%;min-width:0;min-height:40px;border:1px solid #d3e2ee;border-radius:8px;background:#fff;padding:8px 10px;font:16px/1.3 'Pretendard',system-ui;color:#29485e}
.write-panel .write-actions{display:flex;gap:7px}
.write-panel .write-actions>*{flex:1;text-align:center}
.write-note{font-size:12px;line-height:1.4;color:#647e93;margin:10px 0}
.write-result{font-size:12px;line-height:1.4;margin:10px 0 0;color:#146e98}
.write-result.error{color:#a04762}
@media(min-width:0px){.write-page{padding:10px}.write-panel{padding:13px}.write-field{margin-bottom:10px}.write-panel h1{font-size:20px;margin-bottom:12px}}

/* Denser controls and cards: no added title-to-metadata gap. */
.top{border-radius:12px}
.top .btn,.workspace-actions .btn,.schedule-workspace .chip,.chip{
 min-height:26px;padding-top:3px;padding-bottom:3px;line-height:1.2;border-radius:8px
}
.btn.primary{box-shadow:0 2px 0 #126080}
.workspace-actions{margin-bottom:5px}
.chips,.schedule-workspace .chips{padding-bottom:5px}
.stat,.overview .stat{padding-top:4px;padding-bottom:4px;border-radius:10px}
.stat label,.overview .stat label{line-height:1.2}
.stat strong,.overview .stat strong{margin-top:1px;line-height:1.05}
.panel,.schedule-workspace .panel{border-radius:12px;padding-top:9px;padding-bottom:9px}
.range,.schedule-workspace .range{margin-top:3px;margin-bottom:5px;line-height:1.25}
.empty,.schedule-workspace .empty{padding-top:7px;padding-bottom:7px;line-height:1.3}
.task-grid .card,.schedule-workspace .task-grid .card{padding:7px 0;border-radius:0}
.task-grid .tags{margin-bottom:3px}
.task-grid .title,.schedule-workspace .task-grid .title{display:block;width:100%;margin:0;padding:0;line-height:1.2}
.task-grid .meta,.schedule-workspace .task-grid .meta{margin-top:1px;line-height:1.2;row-gap:1px}
#detail{border-radius:16px}
.detail-reminder{border-radius:8px}
.detail-actions>*{border-radius:10px}
@media(min-width:0px){
 .top{padding-top:5px;padding-bottom:5px}
 .top .btn{min-height:26px;padding-top:3px;padding-bottom:3px}
 .summary{margin-bottom:7px}
 .stat{padding-top:4px;padding-bottom:4px}
 .stat strong{font-size:20px;margin-top:1px}
 .workspace-actions .btn{min-height:26px;padding-top:3px;padding-bottom:3px}
 .chip{min-height:26px;padding-top:3px;padding-bottom:3px}
 .chips{padding-top:0;padding-bottom:5px}
 .panel{margin-bottom:8px}
}

/* Single-column task list without duplicate summary sidebar. */
main:not(.write-page){display:block;max-width:1100px}
.task-grid{grid-template-columns:minmax(0,1fr)}
.pending-complete .title{text-decoration:line-through;color:#778996}
.pending-complete{background:#edf5f8!important}
.pending-complete .done{background:#19799f;color:white;border-color:#19799f}
.confirm-complete{margin-top:5px;min-height:28px;padding:4px 10px;font-size:12px}
.completion-hint{font-size:11px;margin-left:8px;color:#697d90}
.remember-option{display:flex;align-items:center;gap:7px;font-size:13px;margin:0 0 12px}
dialog .remember-option input{width:17px;height:17px;margin:0;padding:0;flex:none}

/* Phone-width layout on every device. Shared mobile layout. */
body{width:100%;max-width:480px;margin-inline:auto;min-height:100dvh}
header{width:100%;padding:6px 8px 0}
main:not(.write-page),main.write-page{width:100%;max-width:480px;display:block;padding:10px 10px 20px}
.top{max-width:100%;margin:0}
.layout{display:block}
.task-grid{grid-template-columns:minmax(0,1fr)}
#detail{width:min(80vw,384px)}


.section-tabs{display:flex;gap:6px;margin:5px 0 8px}.section-tabs a{flex:1;text-align:center;padding:6px 8px;border:1px solid #cde0eb;border-radius:8px;font-size:12px}.section-tabs .selected{background:#e0f1f9;color:#146e98;font-weight:700}
.academy-toolbar{display:flex;gap:6px;align-items:center}.academy-toolbar h1{margin:0 auto 0 0;font-size:19px;letter-spacing:0}.academy-toolbar .btn{padding:4px 8px;min-height:28px;font-size:11px}.academy-page #message{font-size:12px;line-height:1.4;overflow-wrap:anywhere}.academy-counts{display:grid;grid-template-columns:1fr 1fr;gap:8px}.academy-count{background:#fff;border:1px solid #dce7ee;border-radius:10px;padding:8px 10px;display:flex;flex-direction:column;line-height:1.4}.academy-count span{font-size:12px}.academy-count strong{font-size:21px}.academy-count small{font-size:10px;color:#697d90}.academy-caption{font-size:11px;line-height:1.4;color:#697d90;margin:5px 0}.academy-status{font-size:11px;float:right}.academy-lesson h2{margin-top:5px;font-size:16px}.academy-buttons{display:flex;gap:6px;margin-top:8px}.academy-buttons .btn{flex:1;min-height:32px;padding:4px 8px}.academy-undo{background:none;border:0;color:#19799f;font-size:11px;padding:6px 0}.academy-history{font-size:11px;margin-top:6px}.academy-history p{white-space:pre-wrap;overflow-wrap:anywhere}.academy-page .chips{margin-top:8px}#editor-error,#attendance-error{font-size:12px;color:#a04762}

/* Status sections use a distinct heading color from date-grouped sections. */
#right > .panel > h2{color:#7956A3}
#right > .panel > h2 > .badge{color:#7956A3;background:#EDE5F5}

/* Task dates share the subject line; the title stays on its own line. */
.task-grid .card-heading{display:flex;align-items:center;flex-wrap:wrap;gap:3px 7px;margin-bottom:3px}
.task-grid .card-heading .tags{margin:0;flex:0 1 auto}
.task-grid .card-heading .meta,.schedule-workspace .task-grid .card-heading .meta{margin:0;font-size:10px;line-height:1.3;gap:3px 6px}

/* Subject labels keep straight sides, with only slightly rounded corners. */
.tag,.detail-subject{border-radius:4px}

/* Classification and connection status share the existing top status row. */
.workspace-actions{flex-wrap:nowrap;gap:7px}
.workspace-actions .personal-filter{flex:0 0 auto;margin:0;max-width:100px;padding:2px 5px;font-size:11px;line-height:1.3}
.workspace-actions #message{flex:0 1 auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.workspace-actions #local-clock{margin-left:auto;white-space:nowrap;flex:0 0 auto}

/* Editing the existing school's due date uses the existing detail card. */
.school-date-trigger{border:0;background:transparent;padding:0;color:inherit;font:inherit;text-align:left;cursor:pointer;text-decoration:underline;text-decoration-color:transparent;text-underline-offset:3px}
.school-date-trigger:hover,.school-date-trigger:focus-visible{text-decoration-color:currentColor}
.school-date-edit-button{border:1px solid #c5d9e2;background:#edf3f6;color:#286780;border-radius:5px;padding:2px 6px;font:500 11px/1.3 'Pretendard',system-ui;box-shadow:none;white-space:nowrap}
.school-date-editor{margin:9px 0;padding:8px;border:1px solid #d3e2ea;border-radius:7px;background:#f5fafc}
.school-date-editor label{display:block;font-size:12px;margin-bottom:4px}
.school-date-editor input[type=date]{display:block;width:100%;min-width:0;min-height:34px;margin:0;padding:5px 7px;font:16px/1.3 'Pretendard',system-ui;box-sizing:border-box}
.school-date-actions{display:flex;justify-content:flex-end;gap:5px;margin-top:6px}
.school-date-actions button{border:1px solid #c5d9e2;border-radius:5px;padding:4px 12px;background:#e0f0f9;color:#17688c;font:600 12px/1.3 'Pretendard',system-ui;box-shadow:none}
.school-date-actions button:last-child{background:#edf0f5;color:#58687c}
.card.needs-attention .meta .school-date-trigger{color:var(--muted)!important;font-weight:700}

/* Compact school editor: keep final actions outside the scrolling body. */
#detail{height:auto;max-height:82dvh;width:calc(100vw - 28px)}
#detail .detail-shell{height:auto;max-height:82dvh}
#detail .detail-top,#detail .detail-actions{flex-shrink:0}
#detail .detail-body{flex:1 1 auto;padding-bottom:8px}
#detail .detail-body h2{font-size:19px;line-height:1.3;margin:6px 0 9px}
#detail .detail-body dl{grid-template-columns:40px minmax(0,1fr);align-items:center;gap:8px}
#detail .detail-status-buttons{justify-content:flex-start;gap:4px}
#detail .detail-status-buttons button{min-height:32px;padding:4px 6px!important;font-size:11px!important}
#detail .school-date-editor{display:grid;grid-template-columns:76px minmax(0,1fr);align-items:center;gap:6px;padding:7px;margin:9px 0 0}
#detail .school-date-editor label{margin:0;font-size:11px;white-space:nowrap}
#detail .school-date-editor input{width:100%;min-width:0;font-size:14px}
#detail .detail-shell .detail-actions{display:flex;gap:6px;padding:8px 12px 10px;border-top:1px solid #e0e7f0}
#detail .detail-actions button{min-height:36px;border:1px solid #c5d9e2;border-radius:6px;background:#e0f0f9;color:#17688c;box-shadow:none}
#detail #detail-date-cancel{background:#edf0f5;color:#58687c}
#detail .detail-reminder{font-size:11px;line-height:1.4;margin-top:9px;padding:7px 9px}

/* Fit all school statuses in one row and remove excess popup space. */
#detail{width:min(440px,calc(100vw - 20px));max-width:440px;max-height:calc(100dvh - 90px)}
#detail .detail-shell{max-height:calc(100dvh - 90px)}
#detail .detail-top{padding:7px 9px 0 12px}
#detail .detail-body{padding:0 12px 5px}
#detail .detail-body h2{font-size:18px;line-height:1.25;margin:4px 0 8px}
#detail .detail-body dl{grid-template-columns:32px minmax(0,1fr);gap:6px;font-size:11px}
#detail .detail-shell .detail-status-buttons{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:3px;width:100%}
#detail .detail-shell .detail-status-buttons button{padding:4px 1px!important;font-size:10px!important;min-height:28px;letter-spacing:-.5px}
#detail-second{background:#e2eff8;color:#246a8b;border-color:#c8dde9!important}
#detail-written{background:#eee8f6;color:#71518e;border-color:#dacde9!important}
#detail .detail-reminder{margin:7px 0 0;padding:5px 7px;font-size:10px;line-height:1.3}
#detail .detail-shell .detail-actions{padding:6px 12px 8px}
#detail .detail-actions button{min-height:32px;padding:5px}
#detail #detail-task{margin:0 0 6px;font-size:11px}
@media(max-height:600px){#detail .detail-body h2{font-size:16px;margin:3px 0 5px}#detail .detail-reminder{font-size:9px;padding:3px 5px;margin-top:4px}#detail .detail-top{padding-top:3px}}

/* Keep the modal at its content height rather than stretching between insets. */
dialog#detail{height:fit-content;min-height:0;block-size:fit-content;min-block-size:0;inset:0;margin:auto;max-height:calc(100dvh - 90px)}
dialog#detail .detail-shell{height:auto;min-height:0;flex:0 0 auto}
dialog#detail .detail-body{flex:0 1 auto}

@font-face{font-family:Pretendard;src:url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/packages/pretendard/dist/web/variable/woff2/PretendardVariable.woff2') format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
body,button,input,select,textarea{font-family:'Pretendard',system-ui,sans-serif}
#detail .detail-due-row #detail-date-open,#detail .detail-due-row #detail-notion{display:inline-flex;align-items:center;justify-content:center;min-height:26px;box-sizing:border-box;padding:3px 7px;font:500 11px/1.3 'Pretendard',sans-serif;border:1px solid #c5d9e2;border-radius:5px;background:#edf3f6;color:#286780;white-space:nowrap}
#detail .detail-shell .detail-actions{padding-bottom:16px}
#detail-submission{width:100%;min-width:0;max-width:230px;margin:0;padding:4px 6px;font-size:12px;line-height:1.3;color:var(--ink);border:1px solid #c5d9e2;border-radius:5px;background:#fff}
.completed-body .tags{margin:0 0 3px;gap:4px}.completed-body .tag{font-size:11px}.completed-body .completed-title{padding:0;text-align:left}

/* School entries share the completed-list treatment: plain rows and separators. */
#left .task-grid,#right .task-grid{gap:0}
#left .task-grid .card,#right .task-grid .card{background:transparent;border:0;border-bottom:1px solid var(--subject-line,#dce9ed);border-radius:0;box-shadow:none;padding:7px 0}
#left .task-grid .card:last-child,#right .task-grid .card:last-child{border-bottom:0}

#academy-current .academy-notion-link{display:inline-flex;align-items:center;justify-content:center;min-height:26px;margin-top:6px;padding:3px 7px;border:1px solid #c5d9e2;border-radius:5px;background:#edf3f6;color:#286780;font:500 11px/1.3 'Pretendard',sans-serif;white-space:nowrap;box-shadow:none}

/* Only the planned and active sections share a compact row. */
#right>.status-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:start;margin-bottom:10px}
#right>.status-columns>.panel{min-width:0;margin:0;padding:9px 8px;background:linear-gradient(140deg,#fff,#faf9fd);border:1px solid white;border-radius:12px;box-shadow:none}
#right>.status-columns>.panel+.panel{padding:9px 8px}
#right>.status-columns h2{font-size:13px;line-height:1.35;gap:5px;margin:0 0 4px;color:#7956A3}
#right>.status-columns h2>.badge{color:#7956A3;background:#EDE5F5}
#right>.status-columns .card-heading{gap:3px 5px}
#right>.status-columns .tags{min-width:0;flex-wrap:wrap}
#right>.status-columns .tag{max-width:100%;white-space:normal;overflow-wrap:anywhere}
#right>.status-columns .title{white-space:normal;overflow-wrap:anywhere}
#right>.status-columns .empty{padding:6px 0;font-size:11px;line-height:1.4}

/* A quiet divider below each school section's heading and optional date range. */
.schedule-workspace .panel>.range,
.schedule-workspace .panel>h2:not(:has(+.range)){border-bottom:1px dashed #d6e1e8;padding-bottom:6px;margin-bottom:6px}
