@font-face{font-family:Pretendard;src:url("./assets/pretendard.woff2") format("woff2");font-weight:100 900;font-display:swap}

:root{
  --mast:52px;
  --viewport-height-unit:1vh;
  --ink:#121b2c;
  --blue:#275ae4;
  --deep:#101929;
  --line:#dce3ee;
  color-scheme:light;
  font-family:Pretendard,"Malgun Gothic",sans-serif;
  background:var(--deep);
  color:var(--ink);
  -webkit-font-smoothing:antialiased;
}
@supports (height:1svh){:root{--viewport-height-unit:1svh}}
*{box-sizing:border-box}
body{margin:0}
h1,h2,p,figure{margin:0}
.mast{height:var(--mast);position:fixed;inset:0 0 auto;z-index:5;background:#101929;color:#fff;border-bottom:1px solid #ffffff22}
.mast-inner{width:min(1360px,calc(100% - 76px));height:100%;margin:auto;display:flex;align-items:center;gap:17px}
.brand{display:inline-flex;align-items:center;gap:9px;font-size:17px;font-weight:820;letter-spacing:.14em}
.brand img{background:#fff;border-radius:8px}
.mast-label{border-left:1px solid #ffffff38;padding-left:16px;color:#c3cee2;font-size:13px;font-weight:560}
.steps{margin-left:auto;display:flex;gap:5px}
.steps i{width:14px;height:3px;border-radius:5px;background:#61718c}
.steps i.on{background:#c1d8ff}

main{padding-top:var(--mast)}
.scene{--accent:#a7c8ff;--muted:#bfcbdf;--rule:#ffffff22;--scene-bg:#101929;--travel:calc(125 * var(--viewport-height-unit));position:relative;background:var(--scene-bg);color:#f7f9fd;min-height:calc(calc(100 * var(--viewport-height-unit)) - var(--mast));}
.scene.chat{--accent:#244fca;--muted:#475b74;--rule:#14214025;--scene-bg:#e9effb;color:#14233d}
.scene.team{--accent:#b8d4ff;--muted:#bdccdf;--rule:#ffffff25;--scene-bg:#142133;}
.scene.delivery{--accent:#244fca;--muted:#465975;--rule:#14214025;--scene-bg:#eef3fb;--travel:calc(110 * var(--viewport-height-unit));color:#14233d;scroll-margin-top:var(--mast)}
.scene.ready{height:calc(var(--pin-height) + var(--travel))}
.sticky{
  position:relative;min-height:calc(calc(100 * var(--viewport-height-unit)) - var(--mast));
  width:min(1360px,calc(100% - 76px));margin:0 auto;
  display:grid;align-content:center;align-items:center;gap:22px 38px;
  grid-template-columns:minmax(237px,.345fr) minmax(0,1fr);
  padding:24px 0;
}
.scene.ready .sticky{position:-webkit-sticky;position:sticky;top:var(--pin-top,var(--mast))}
.copy{padding-right:6px}
.topic{font-size:14px;color:var(--accent);font-weight:720;margin-bottom:15px}
.copy h1,.copy h2{font-size:clamp(34px,3.65vw,57px);line-height:1.10;letter-spacing:-.059em;font-weight:770;word-break:keep-all}
.caption{font-size:16px;line-height:1.63;color:var(--muted);margin-top:19px;word-break:keep-all}
.figure{min-width:0}
.frame{background:#fcfdff;border:1px solid #dce5f4;border-radius:16px;color:#192338;overflow:hidden;box-shadow:0 15px 60px #07152c26;}
.window-bar,.window-foot{display:flex;align-items:center;justify-content:space-between;gap:10px}
.window-bar{height:47px;background:#fff;border-bottom:1px solid var(--line);padding:0 16px;font-size:14px}
.window-name{position:relative;display:flex;align-items:center;gap:8px;font-weight:740;min-width:0;white-space:nowrap;letter-spacing:-.02em}
.window-name i{width:15px;height:17px;border-radius:3px;display:grid;place-items:center;flex:none;font-style:normal}
.file-icon{background:#147a50;color:white}
.file-icon::after{content:"X";font:800 10px/1 sans-serif}
.after .file-icon{background:var(--blue)}
.after .file-icon::after{content:"▦"}
.chat-icon,.team-icon{background:#e0e9ff;color:#2856ce}
.chat-icon::after{content:"···";font-size:15px;line-height:1;letter-spacing:-.055em}
.team-icon::after{content:"▦";font-size:13px}
.window-chip{color:#3e526d;background:#f1f5fb;border:1px solid #e7edf6;border-radius:6px;padding:4px 8px;font-size:12px;white-space:nowrap;font-weight:680}
.week-name,.team-name,.after .file-name,.after .solo-name{display:none}
.after .week-name,.after .team-name{display:inline}
.window-foot{height:37px;padding:0 16px;color:#56677f;border-top:1px solid var(--line);font-size:12px;font-weight:610}
.scene-foot{grid-column:1/-1;display:flex;align-items:center;gap:12px;color:var(--muted);font-size:12px;font-weight:640}
.scene-foot i{height:1px;flex:1;background:var(--rule)}
.canvas{position:relative;isolation:isolate;height:clamp(305px,calc(52 * var(--viewport-height-unit)),448px);overflow:hidden;background:#f4f7fc;}
.layer,.actors{position:absolute;inset:0;pointer-events:none;}
.scene:not(.ready) .layer{transition:none}
.actors{z-index:3}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.no-script{background:white;padding:20px}
.outro{border-top:1px solid #ffffff24;padding:70px 38px 85px;color:#f4f7ff;display:flex;align-items:center;justify-content:center;gap:28px}
.outro p{color:#c4d0e1;font-size:18px;line-height:1.45}

/* Spreadsheet to week view */
.excel-source{display:flex;gap:12px;padding:12px 14px 14px;}
.spreadsheet{display:flex;flex:1;min-width:0;flex-direction:column;background:#fff;border:1px solid #c6ddd1;border-radius:5px;overflow:hidden}
.x-row,.x-head,.x-letters{
  display:grid;grid-template-columns:29px minmax(62px,1fr) minmax(48px,.78fr) minmax(48px,.68fr) minmax(42px,.65fr);
  align-items:stretch;
  font-size:13px;line-height:1;letter-spacing:-.02em;
}
.x-letters{height:20px;text-align:center;color:#4e685d;background:#e7f2eb;font-size:11px;flex:none}
.x-head{height:31px;color:#264e3d;font-weight:750;background:#ecf7f0;flex:none}
.x-row{flex:1;min-height:0;color:#253445;font-variant-numeric:tabular-nums}
.x-row:nth-child(even){background:#f8fbf9}
.x-row span,.x-head span,.x-letters span{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;align-content:center;border-right:1px solid #dbe9e0;border-bottom:1px solid #dbe9e0;padding:0 6px}
.x-row span:first-child,.x-head span:first-child{color:#557063;background:#eaf3ee;text-align:center;padding:0;font-size:11px}
.x-row span:nth-child(2){font-weight:710}
.x-head span:last-child,.x-row span:last-child,.x-letters span:last-child{border-right:0}
.sheet-fill{background:#ffffff40}
.week-grid{
  position:absolute;inset:11px 14px 13px;
  display:grid;grid-template-columns:52px repeat(6,minmax(0,1fr));grid-template-rows:29px repeat(4,minmax(0,1fr));
  gap:5px;
}
.week-day{align-self:center;text-align:center;color:#3b506e;font-size:13px;font-weight:730;white-space:nowrap}
.week-day:last-of-type{color:#234fce}
.week-time{align-self:start;padding-top:8px;color:#536780;font-size:12px;font-weight:660;font-variant-numeric:tabular-nums}
.week-slot{position:relative;display:flex;min-width:0;}
.week-slot::before{content:"";position:absolute;inset:0;border:1px solid #e3eaf6;border-radius:7px;background:#eaf0fa}
.week-card{position:relative;width:100%;border-radius:7px;border-left:3px solid var(--band);background:var(--tile);color:#1a3051;display:flex;flex-direction:column;justify-content:center;padding:3px 7px;gap:3px;font-size:13px;overflow:hidden;line-height:1.12;}
.week-card strong,.team-card strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px;font-weight:760}
.week-card small,.team-card small{font-size:12px;color:#435b77;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:580}

/* Same lessons, new times */
.chat .canvas{height:clamp(235px,calc(40 * var(--viewport-height-unit)),345px);background:#f8faff;}
.prompt{color:#fff;background:#2054d3;margin:14px 13px 11px auto;padding:12px 16px;border-radius:15px 15px 4px 15px;width:fit-content;max-width:calc(100% - 26px);font-size:16px;line-height:1.28;font-weight:720;letter-spacing:-.03em;transform-origin:right center;}
.chat-lanes,.chat-target{display:grid;grid-template-rows:repeat(4,minmax(0,1fr));gap:5px;padding:0 13px 12px}
.lane,.lane-overlay{position:relative;display:grid;grid-template-columns:64px repeat(4,minmax(0,1fr));align-items:center;gap:5px;min-width:0;}
.lane{border-block-start:1px solid #dfe8f8;background:repeating-linear-gradient(90deg,#fbfcff 0,#fbfcff calc(25% - 1px),#eaf0fb calc(25% - 1px),#eaf0fb 25%);}
.lane-id{grid-column:1;color:#3d5270;font-size:13px;font-weight:770;padding-left:7px;white-space:nowrap}
.lane-id,.lane .other-lesson,.lane .shift-card{grid-row:1}
.other-lesson{height:32px;align-content:center;justify-self:start;padding:0 8px;border-radius:5px;background:#edf1f8;color:#677993;font-size:12px;white-space:nowrap}
.shift-card{height:calc(100% - 12px);max-height:50px;min-height:32px;align-self:center;display:flex;flex-direction:column;justify-content:center;gap:2px;padding:3px 8px;min-width:0;z-index:1;border-radius:7px;border-left:3px solid #8c9bc4;background:#e8eefb;color:#233c69;line-height:1.1;font-size:13px;white-space:nowrap;font-variant-numeric:tabular-nums}
.shift-card strong{font-size:14px}
.shift-new{background:#d6e4ff;border-left-color:#2e63ec;color:#153f9f;grid-column:5}
.shift-date{font-weight:670;overflow:hidden;text-overflow:ellipsis;}
.chat-target .slot-highlight{grid-column:5;border-radius:7px;height:calc(100% - 12px);max-height:50px;grid-row:1;background:#e9effc;border:1px dashed #b1c5ea;}
.chat-target .shift-new{grid-row:1}
.chat-foot{color:#1a4ebc;}

/* One instructor to the whole team */
.team .canvas{background:#eef3fa;}
.team-source{inset:12px max(16px,13%) 13px}
.solo-box{height:100%;display:flex;flex-direction:column;border:1px solid #cedaeb;border-radius:8px;background:#fff;overflow:hidden}
.solo-head,.solo-row{display:grid;grid-template-columns:1.05fr .8fr .7fr .65fr;align-items:center;gap:6px;padding:0 15px;font-size:14px;}
.solo-head{background:#e7eefb;color:#344f78;font-weight:750;min-height:43px;}
.solo-row{flex:1;border-top:1px solid #e6edf7;min-height:0;color:#33475e;}
.solo-row strong{color:#182a47;font-size:16px;}
.solo-row small{font-size:13px}
.solo-private{color:#536782;background:#f1f4f9}
.team-target{inset:12px 13px 12px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.team-lane{min-width:0;display:flex;flex-direction:column;gap:5px;overflow:hidden}
.team-lane-head{min-height:47px;display:flex;flex-direction:column;justify-content:center;gap:3px;padding:4px 7px;border-radius:7px;background:#dae6fb;color:#1b3458;font-size:14px;line-height:1.07;font-weight:780;}
.team-lane-head small{font-size:12px;color:#486488;font-weight:650;}
.team-lane-head span,.team-lane-head small{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.team-lane:first-child .team-lane-head{background:#cadcff;color:#183e86;}
.team-lane-tail .team-lane-head{color:#745108;background:#ffedbc;}
.team-lane-tail .team-lane-head small{color:#755720}
.team-card{min-width:0;min-height:0;flex:1;display:flex;flex-direction:column;justify-content:center;gap:3px;padding:3px 7px;border-radius:7px;border-left:3px solid var(--band);background:var(--tile);color:#243b60;line-height:1.1;overflow:hidden}
.team-card.busy{background:#e3e9f2;border-color:#8d9bb1;color:#435976;}
.team-card.busy small{color:#546780}
.team-card.pending{background:#fff4d6;border-color:#d7a230;color:#79550e}
.team-card.pending small{color:#785b2c}
.solo-note{min-height:35px;display:grid;align-content:center;padding:0 15px;font-size:12px;color:#506584;}
.team .team-card small,.team-card strong{line-height:1.12}

/* Calendar follows the selected schedule; Sheets receives an export snapshot. */
.delivery .copy h2{font-size:clamp(32px,3.18vw,51px)}
.delivery .canvas{height:clamp(296px,calc(48 * var(--viewport-height-unit)),414px);padding:12px;display:flex;flex-direction:column;gap:11px}
.google-origin{position:relative;display:flex;align-items:center;gap:12px;padding:8px 10px;border:1px solid #ccd9ee;border-radius:8px;background:#fff}
.google-origin-meta{display:grid;gap:2px;min-width:100px;line-height:1.12}
.google-origin-meta strong{font-size:14px}
.google-origin-meta small{font-size:12px;color:#576f8c}
.google-origin-records{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;flex:1;min-width:0}
.google-record{min-width:0;min-height:37px;display:flex;align-items:center;justify-content:space-between;gap:4px;border-radius:5px;background:#edf2fa;padding:4px 8px}
.google-record strong,.google-record small{font-size:13px;white-space:nowrap}
.google-record small{color:#415a7e;font-variant-numeric:tabular-nums}
.google-record.time-change{background:#e0eaff;color:#183d87}
.time-after,.status-after,.time-updated .time-before,.calendar-updated .calendar-status .status-before,.sheets-exported .sheets-status .status-before{display:none}
.time-updated .time-after,.calendar-updated .calendar-status .status-after,.sheets-exported .sheets-status .status-after{display:inline}
.time-updated .time-change{background:#cfdeff}
.google-board{position:relative;flex:1;min-height:0;display:grid;grid-template-columns:1fr 1.13fr;gap:10px}
.google-pane{display:flex;flex-direction:column;min-width:0;min-height:0;border-radius:8px;overflow:hidden;background:#fff;border:1px solid #d5dfee}
.google-pane-head{display:flex;align-items:center;gap:7px;min-height:48px;padding:5px 8px;border-bottom:1px solid #e0e7f1}
.google-pane-head>div{display:flex;flex-direction:column;gap:2px;min-width:0}
.google-pane-head strong{font-size:14px;line-height:1.08;white-space:nowrap}
.google-pane-head small{font-size:11px;line-height:1.1;color:#546982}
.calendar-icon,.sheets-icon{width:23px;height:23px;border-radius:5px;display:grid;place-items:center;flex:none;font:750 11px/1 Pretendard,sans-serif;background:#2656ce;color:white}
.sheets-icon{background:#15835f}
.sheets-icon::before{content:"";width:11px;height:11px;border:1px solid #e3fff5;background:linear-gradient(#e3fff5,#e3fff5) center/1px 100% no-repeat,linear-gradient(#e3fff5,#e3fff5) center/100% 1px no-repeat}
.google-status{margin-left:auto;white-space:nowrap;font-size:11px;font-weight:720;padding:4px 6px;border-radius:5px;color:#30538d;background:#edf3ff}
.sheets-status{color:#236f56;background:#e6f3ec}
.calendar-grid{flex:1;min-height:0;display:grid;grid-template-columns:47px 1fr;grid-template-rows:repeat(2,minmax(0,1fr));gap:5px;padding:7px 8px 8px 5px}
.calendar-time{font-size:12px;font-weight:680;color:#486287;text-align:center;align-self:center;font-variant-numeric:tabular-nums}
.calendar-track{position:relative;min-width:0;border-radius:5px;background:#f2f6fe;border:1px solid #e1eafa;display:flex}
.calendar-event{width:100%;border-radius:4px;border-left:3px solid #5b86eb;background:#deebff;color:#214b98;display:flex;align-items:center;justify-content:space-between;padding:2px 9px;gap:4px;font-size:14px;font-variant-numeric:tabular-nums}
.calendar-event small{font-size:12px;font-weight:660}
.sheets-grid{flex:1;min-height:0;padding:7px 8px 8px;display:grid;grid-template-rows:28px repeat(3,minmax(0,1fr));font-variant-numeric:tabular-nums}
.sheet-grid-head,.sheet-grid-row{height:100%;display:grid;grid-template-columns:.73fr .72fr 1.02fr .63fr;align-items:stretch;font-size:13px;white-space:nowrap}
.sheet-grid-head{background:#e4f2ea;color:#285b47;font-weight:760;border:1px solid #d3e6db}
.sheet-grid-slot{min-height:0;border:1px solid #dce9e2;border-top:0;background:#f8fbf9;}
.sheet-grid-row{background:#f0f8f4;color:#233d42}
.sheet-grid-head>* ,.sheet-grid-row>*{min-width:0;align-content:center;border-right:1px solid #dbe9e0;text-overflow:ellipsis;overflow:hidden;padding:0 5px}
.sheet-grid-head>*:last-child,.sheet-grid-row>*:last-child{border:0}

/* Moving pieces preserve their record label in both layouts. */
.actor{position:absolute;left:0;top:0;transform-origin:0 0;opacity:0}
.actor > i{position:absolute;inset:0;transform-origin:0 0;border-radius:6px;background:var(--move-bg,#d3e2ff);border:1px solid var(--move-border,#91b4f4)}
.actor > b{position:absolute;left:7px;top:0;display:flex;align-items:center;white-space:nowrap;color:#1f3e7a;font-size:13px;font-weight:760;line-height:1;}

@media (max-width:1050px) and (min-width:761px){
  .mast-inner,.sticky{width:calc(100% - 50px)}
  .sticky{gap:19px 23px;grid-template-columns:minmax(209px,.37fr) minmax(0,1fr)}
  .copy h1,.copy h2{font-size:clamp(35px,4.2vw,45px)}
  .x-letters,.x-head,.x-row{grid-template-columns:22px minmax(49px,1fr) minmax(42px,.78fr) minmax(40px,.68fr) minmax(35px,.65fr)}
  .x-row span,.x-head span,.x-letters span{padding:0 3px}
  .week-grid{grid-template-columns:37px repeat(6,minmax(0,1fr))}
  .week-card{padding-inline:4px}
}
@media (max-width:760px){
  :root{--mast:46px}
  .mast-inner,.sticky{width:calc(100% - 30px)}
  .brand{font-size:15px;gap:7px}
  .brand img{width:25px;height:25px;border-radius:6px}
  .mast-inner{gap:12px}
  .mast-label{padding-left:11px;font-size:12px}
  .steps i{width:11px}
  .scene{--travel:calc(98 * var(--viewport-height-unit))}
  .sticky{display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:12px;padding:17px 0 15px}
  .copy{padding-right:0}
  .copy h1,.copy h2{font-size:clamp(34px,8.65vw,49px);line-height:1.06}
  .caption{margin-top:9px;font-size:14px;line-height:1.44;max-width:440px}
  .topic{font-size:12px;margin-bottom:7px}
  .desktop{display:none}
  .scene-foot{font-size:11px;gap:8px}
  .frame{border-radius:12px}
  .window-bar{height:39px;padding:0 9px;font-size:13px}
  .window-name{gap:6px}
  .window-chip{font-size:11px;padding:3px 5px}
  .window-foot{height:31px;padding:0 9px;font-size:11px;letter-spacing:-.025em}
  .canvas{height:clamp(290px,calc(44 * var(--viewport-height-unit)),390px)}
  .wide-only{display:none!important}
  .excel-source{padding:8px}
  .x-row,.x-head,.x-letters{grid-template-columns:26px minmax(61px,1fr) .82fr .77fr .72fr}
  .x-head{height:26px}
  .x-row span,.x-head span,.x-letters span{padding:0 5px}
  .x-letters{height:17px}
  .week-grid{inset:8px;gap:4px;grid-template-columns:40px repeat(3,minmax(0,1fr));grid-template-rows:23px repeat(4,minmax(0,1fr))}
  .week-card{padding:3px 5px}
  .chat .canvas{height:clamp(195px,calc(32 * var(--viewport-height-unit)),258px)}
  .prompt{font-size:14px;margin:9px 8px 7px auto;padding:9px 10px;max-width:calc(100% - 16px);line-height:1.26}
  .chat-lanes,.chat-target{padding:0 8px 8px;gap:4px}
  .lane,.lane-overlay{grid-template-columns:34px repeat(2,minmax(0,1fr));gap:4px}
  .lane-id{font-size:11px;padding-left:3px}
  .shift-card{grid-column:2!important;max-height:48px;padding:3px 5px;line-height:1.05}
  .chat-target .shift-new,.chat-target .slot-highlight{grid-column:3!important}
  .other-lesson{position:absolute;height:3px;width:13px;left:3px;bottom:5px;overflow:hidden;padding:0;border-radius:4px;background:#aabbd7;color:transparent}
  .shift-date{font-size:12px}
  .team-source{inset:8px}
  .solo-row,.solo-head{padding:0 8px;gap:5px;grid-template-columns:1fr .72fr .56fr .56fr;font-size:12px}
  .solo-row strong{font-size:14px}
  .solo-row small{font-size:12px}
  .solo-note{padding:0 8px}
  .team-target{inset:8px;gap:6px;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr))}
  .team-lane{gap:4px;}
  .team-lane-head{min-height:35px;gap:2px}
  .team-card{flex-direction:row;align-items:center;justify-content:space-between;gap:4px;padding:2px 6px;}
  .team-card strong{font-size:13px;}
  .team-card small{flex:none;font-size:11px}
  .scene.delivery{--travel:calc(102 * var(--viewport-height-unit))}
  .delivery .copy h2{font-size:clamp(30px,8.1vw,40px)}
  .delivery .canvas{height:clamp(322px,calc(47 * var(--viewport-height-unit)),393px);padding:7px;gap:6px}
  .google-origin{display:block;padding:5px 6px}
  .google-origin-meta{display:flex;align-items:center;justify-content:space-between;margin-bottom:4px}
  .google-record{min-height:28px;padding:3px 4px}
  .google-record strong,.google-record small{font-size:11px}
  .google-board{grid-template-columns:1fr;grid-template-rows:1fr 1.14fr;gap:6px}
  .google-pane-head{min-height:35px;padding:3px 6px;gap:5px}
  .google-pane-head strong{font-size:13px}
  .google-pane-head small,.google-status{font-size:10px}
  .calendar-icon,.sheets-icon{width:19px;height:19px}
  .calendar-grid{padding:4px 5px 5px 2px;grid-template-columns:41px 1fr;gap:3px}
  .calendar-event{font-size:13px}
  .sheets-grid{padding:4px 5px 5px;grid-template-rows:20px repeat(3,minmax(0,1fr))}
  .sheet-grid-head,.sheet-grid-row{font-size:12px}
  .outro{padding:45px 15px 52px;gap:16px}
  .outro p{font-size:15px}
}
@media (max-width:760px) and (max-height:680px){
  .sticky{gap:8px;padding:10px 0}
  .canvas{height:290px}
  .chat .canvas{height:195px}
  .copy h1,.copy h2{font-size:32px}
}
