/* 10/15 가로 큰 화면(아이패드 가로 · 폴드 가로 · PC) — 날짜 · 이번 주 · 보기 단추를 오른쪽 세로 막대 하나로
   (사용자 "날짜를 위보다 옆이 나을까 → 그렇게 바꿔 줘 · PC도 같이"). 폭은 남고 높이가 모자라니 위 줄을 빼서 종이가 위아래를 다 쓰게.
   세로 화면은 그대로 위. 막대: 위 = 연도·날짜·오늘(로고)·설정 · 가운데 = 이번 주 7일(세로) · 아래 = 일간·주간·월간·홈 + 새로 적기 */
html body.app-frame.af-side{--rail-w:104px}
html body.app-frame.af-side #tabbar{
  inset:0 0 0 auto;width:var(--rail-w);height:100%;box-sizing:border-box;
  padding:calc(14px + env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) 330px 8px;
  border-left:1px solid var(--shell-line,#e8e8e5);overflow-y:auto;scrollbar-width:none;
}
html body.app-frame.af-side #tabbar::-webkit-scrollbar{display:none}
html body.app-frame.af-side #tabbar .af-header-main{display:flex;flex-direction:column;gap:12px;max-width:none;margin:0}
/* 위: 연도(작게) · 날짜(두 줄) · 그 밑에 오늘(로고) · 설정 */
html body.app-frame.af-side #tabbar .af-title-row{display:grid;grid-template-columns:1fr 1fr;grid-template-areas:"date date" "logo today" "share set";align-items:center;justify-items:center;gap:8px 0;min-height:0}
html body.app-frame.af-side #tabbar .af-date-heading{grid-area:date;align-items:center!important;text-align:center;width:100%}
html body.app-frame.af-side #tabbar .af-stack .af-kicker{margin:0}
html body.app-frame.af-side #tabbar .af-title{font-size:23px;line-height:1.12;white-space:normal;word-break:keep-all;text-align:center}
html body.app-frame.af-side #tabbar .af-title-month{font-size:30px;line-height:1}
html body.app-frame.af-side #tabbar .af-title::after{bottom:2px;height:7px}
html body.app-frame.af-side #tabbar .af-logo{grid-area:logo;position:static;transform:none;width:38px;height:34px;border-radius:10px;background:var(--shell-soft,#f1f1ef)}
html body.app-frame.af-side #tabbar .af-header-actions{display:contents}   /* 10/18 오늘·공유·설정이 로고와 같은 판에 하나씩 */
html body.app-frame.af-side #tabbar .af-today{grid-area:today}
html body.app-frame.af-side #tabbar .af-share{grid-area:share}
html body.app-frame.af-side #tabbar .af-settings{grid-area:set}
html body.app-frame.af-side #tabbar :is(.af-today,.af-share,.af-settings){width:38px;height:34px;border-radius:10px;background:var(--shell-soft,#f1f1ef)}
/* 가운데: 이번 주 7일을 세로로 (요일 · 날짜 한 줄) */
html body.app-frame.af-side #tabbar .af-week-strip{grid-template-columns:1fr;gap:2px;margin:0;padding-top:10px;border-top:1px solid var(--shell-line,#e8e8e5)}
html body.app-frame.af-side #tabbar .af-week-strip button{flex-direction:row;justify-content:space-between;align-items:center;height:36px;padding:0 8px 0 10px;border-radius:10px}
html body.app-frame.af-side #tabbar .af-week-strip button span{font-size:11.5px}
html body.app-frame.af-side #tabbar .af-week-strip b{width:28px;height:28px;font-size:14px}
html body.app-frame.af-side #tabbar .af-zoom-controls{flex-direction:column;align-items:stretch}
html body.app-frame.af-side #tabbar .af-zoom-controls .tb-seg{margin:0;flex-direction:column}
/* 아래: 일간 · 주간 · 월간 · 홈 (세로) + 새로 적기 */
html body.app-frame.af-side #appFrameDock{
  left:auto;right:0;bottom:0;transform:none;width:var(--rail-w);height:auto;box-sizing:border-box;
  flex-direction:column;gap:10px;padding:0 max(8px,env(safe-area-inset-right)) calc(14px + env(safe-area-inset-bottom)) 8px;
}
html body.app-frame.af-side #appFrameDock .af-nav-slot{flex:none;width:100%;box-sizing:border-box;padding:5px;border-radius:18px}
html body.app-frame.af-side #appFrameDock .tb-seg{flex-direction:column;gap:2px}
html body.app-frame.af-side #appFrameDock .tb-seg button{flex:none;width:100%;height:52px}
html body.app-frame.af-side #appFrameDock .af-create{width:52px;height:52px;min-width:52px}
/* 종이 자리: 위를 비우지 않고, 오른쪽은 막대만큼 비운다 */
html body.app-frame.af-side .app{padding:14px calc(var(--rail-w) + 14px) calc(84px + env(safe-area-inset-bottom)) 14px}
/* 새로 적기 칸·알림은 종이 쪽 가운데로 */
html body.app-frame.af-side .app>.board>.quick{left:calc((100% - var(--rail-w)) / 2);width:min(760px,calc(100% - var(--rail-w) - 40px))}
html body.app-frame.af-side #toast{left:calc((100% - var(--rail-w)) / 2)}
/* 10/17 스티커 칸은 오른쪽 막대 앞에서 멈춘다 (전엔 옛 84px 막대 기준이라 지금 막대를 16px 덮고 분류 칩이 잘렸다) */
html body.app-frame.af-side .stk-tray{right:calc(var(--rail-x) + 14px)}
/* 10/17 키보드 위에 붙은 적기 칸도 오른쪽 막대 앞까지 (전엔 화면 끝까지 넓어져 오른쪽 끝 ✓ 단추가 막대 밑에 들어갔다) */
html body.app-frame.af-side:is(.kb-up,.kb-q) .app>.board>.quick{right:var(--rail-x)!important;width:auto}
/* 10/17 막대의 오늘로·설정 단추는 보이는 크기(30~38px)는 그대로, 누르는 곳만 44px 쯤으로 */
html body.app-frame.af-side #tabbar :is(.af-logo,.af-today,.af-share,.af-settings){position:relative;inset:auto}   /* inset: 원래 left:50%·bottom:4px 가 relative 에서 다시 먹어 로고가 오른쪽으로 밀려 잘렸다 */
html body.app-frame.af-side #tabbar :is(.af-logo,.af-today,.af-share,.af-settings)::after{content:"";position:absolute;inset:-4px -3px}
/* 10/17 손가락 기기에선 할 일 순서 바꾸기 손잡이를 늘 옅게 (마우스를 올려야만 보여서 손가락으론 안 보이는 칸을 끌었다) */
@media (hover:none){html body.dev-pad .tk-row .handle[data-handle]{opacity:.35}}
/* 높이가 낮은 가로(아이폰 가로 등): 이번 주 줄은 빼고 막대를 압축 */
@media (max-height:620px){
  html body.app-frame.af-side #tabbar{padding-bottom:250px}
  html body.app-frame.af-side #tabbar .af-week-strip{display:none}
  html body.app-frame.af-side #appFrameDock .tb-seg button{height:42px}
  html body.app-frame.af-side #appFrameDock .af-create{width:44px;height:44px;min-width:44px}
}
/* 10/15 막대 날씬하게 (사용자 "조금 뚱뚱해") · 오늘 요일 글자가 흰색으로 사라지던 것 · 1px 넘쳐 PC 에 세로 스크롤바가 생기던 것 */
html body.app-frame.af-side{--rail-w:80px}
html body.app-frame.af-side #tabbar{padding-left:7px;padding-right:max(7px,env(safe-area-inset-right))}
html body.app-frame.af-side #tabbar .af-title{font-size:20px;line-height:1.1}
html body.app-frame.af-side #tabbar .af-title-month{font-size:26px}
html body.app-frame.af-side #tabbar :is(.af-logo,.af-today,.af-share,.af-settings){width:30px;height:30px;min-width:30px;border-radius:9px}
html body.app-frame.af-side #tabbar :is(.af-logo,.af-today,.af-share,.af-settings) svg{width:17px;height:17px}
html body.app-frame.af-side #tabbar .af-week-strip button{height:32px;padding:0 4px 0 7px}
html body.app-frame.af-side #tabbar .af-week-strip button span{font-size:10.5px}
html body.app-frame.af-side #tabbar .af-week-strip button.on span{color:var(--af-pen)}
html body.app-frame.af-side #tabbar .af-week-strip b{width:25px;height:25px;font-size:13px}
html body.app-frame.af-side #appFrameDock{padding-left:7px;padding-right:max(7px,env(safe-area-inset-right))}
html body.app-frame.af-side #appFrameDock .af-nav-slot{padding:4px;border-radius:16px}
html body.app-frame.af-side #appFrameDock .tb-seg button{height:48px;font-size:10.5px}
html body.app-frame.af-side #appFrameDock .af-create{width:46px;height:46px;min-width:46px}
html:has(body.app-frame.af-side:is(.view-day,.view-week)){overflow:hidden}
/* 낮은 가로(아이폰 가로)는 막대 아래 단추를 더 낮게 — 위 날짜와 겹치지 않게 */
@media (max-height:620px){
  html body.app-frame.af-side #appFrameDock{gap:8px}
  html body.app-frame.af-side #appFrameDock .tb-seg button{height:38px;gap:2px;font-size:10px}
  html body.app-frame.af-side #appFrameDock .tb-seg svg{width:17px;height:17px}
  html body.app-frame.af-side #appFrameDock .af-create{width:40px;height:40px;min-width:40px}
}
/* 날짜 칸 높이 고정(48px)을 풀어 아래 오늘·설정 단추가 이번 주 줄과 겹치지 않게 · 밑줄 형광펜은 글자 폭만 */
html body.app-frame.af-side #tabbar .af-title-row{height:auto;min-height:0}
html body.app-frame.af-side #tabbar .af-title{display:inline-block}
/* 10/15 요일 목록은 빼고(사용자 "요일 같이 있는 거 별로") 날짜 밑에 ‹ › 넘기기 — 세로 화면(위 줄)에선 안 보임 */
html body.app-frame #tabbar .af-side-nav{display:none}
html body.app-frame.af-side #tabbar .af-week-strip{display:none}
html body.app-frame.af-side #tabbar .af-title-row{grid-template-areas:"date date" "logo today" "share set" "nav nav"}
html body.app-frame.af-side #tabbar .af-side-nav{grid-area:nav;display:flex;gap:4px;width:100%}
html body.app-frame.af-side #tabbar .af-side-nav button{flex:1;display:grid;place-items:center;height:30px;min-width:0;padding:0;margin:0;border:0;border-radius:9px;background:var(--shell-soft,#f1f1ef);color:var(--shell-text,#27292c)}
html body.app-frame.af-side #tabbar .af-side-nav svg{width:16px;height:16px}
/* 10/15 이번 주 7일 다시 (사용자 "요일을 글자 밑에 작게 · 틈을 조금 벌려서"): 숫자 위 · 요일은 그 밑에 작게, 날짜 사이 틈 넓게 */
html body.app-frame.af-side #tabbar .af-week-strip{display:grid;grid-template-columns:1fr;gap:9px;margin:0;padding-top:12px}
html body.app-frame.af-side #tabbar .af-week-strip button{flex-direction:column-reverse;justify-content:center;align-items:center;gap:2px;height:auto;padding:2px 0;border-radius:10px}
html body.app-frame.af-side #tabbar .af-week-strip button span{font-size:9.5px;line-height:1;color:var(--shell-muted)}
html body.app-frame.af-side #tabbar .af-week-strip button.on span{color:var(--af-pen);font-weight:600}
html body.app-frame.af-side #tabbar .af-week-strip b{width:28px;height:28px;font-size:14px}
@media (max-height:620px){html body.app-frame.af-side #tabbar .af-week-strip{display:none}}
/* 화면 높이에 맞춰 이번 주 간격·아래 단추 높이를 줄인다 (아이패드 미니 가로 744 · 아이패드 가로 776 에서도 겹치지 않게) */
html body.app-frame.af-side #tabbar .af-week-strip{gap:clamp(2px,calc(100vh * .011 - 2px),9px)}
html body.app-frame.af-side #tabbar .af-week-strip b{width:clamp(24px,3.4vh,28px);height:clamp(24px,3.4vh,28px);font-size:clamp(12.5px,1.8vh,14px)}
html body.app-frame.af-side #appFrameDock .tb-seg button{height:clamp(40px,5.8vh,48px)}
html body.app-frame.af-side #appFrameDock .af-create{width:clamp(40px,5.6vh,46px);height:clamp(40px,5.6vh,46px);min-width:clamp(40px,5.6vh,46px)}
@media (max-height:740px){html body.app-frame.af-side #tabbar .af-week-strip{display:none}}   /* 낮은 가로(노트북 · 아이패드 미니)는 이번 주 줄 없이 ‹ › 로 */
/* 날짜 밑 형광펜이 막대 폭만큼 길게 삐져나오던 것: 줄마다 글자 폭만큼만 칠한다 (10월 / 15일 따로) */
html body.app-frame.af-side #tabbar .af-title{display:inline;padding:0 2px;background:linear-gradient(transparent 60%,var(--af-fill) 60%,var(--af-fill) 92%,transparent 92%);-webkit-box-decoration-break:clone;box-decoration-break:clone}
html body.app-frame.af-side #tabbar .af-title::after{content:none}
html body.app-frame.af-side #tabbar .af-date-heading{display:block!important}
html body.app-frame.af-side #tabbar .af-stack .af-kicker{display:block;margin:0 0 3px}
/* 10/15 날짜 한 줄로 작게 (사용자 "못생겼어 · 1줄로 작게 · 2026은 위에") — 2026 위, '10월 15일' 한 줄, 밑줄 형광펜은 글자 폭만큼 얇게 */
html body.app-frame.af-side #tabbar .af-title{display:inline-block;padding:0;background:none;white-space:nowrap;font-size:14.5px;line-height:1.2;font-weight:600;letter-spacing:-.04em}
html body.app-frame.af-side #tabbar .af-title::after{content:"";left:-2px;right:-2px;bottom:0;height:5px;border-radius:4px}
html body.app-frame.af-side #tabbar .af-title-month{font-size:19px}
html body.app-frame.af-side #tabbar .af-date-heading{display:flex!important;flex-direction:column;align-items:center!important;gap:2px}   /* 2026 은 위 (order:-1 이 먹게) */
/* 10/15 종이가 아래까지 (적기 칸 자리를 비워 두지 않음 — 적을 때만 종이 위에 뜬다) */
html body.app-frame.af-side .app{padding-bottom:calc(14px + env(safe-area-inset-bottom))}

/* ── 10/15 가로 큰 화면 설정 = 가운데 큰 창 두 칸 (사용자 "가로 설정창도 · 아이폰 가로도 똑같이") ──
   왼쪽 = 설정 목록 · 오른쪽 = 고른 쪽. 열 때는 살짝 커지며 나타난다 (오른쪽에서 밀려 나오지 않음) */
html body.drawer.af-side #side,html body.drawer.af-side #side:has(.settings-menu){
  top:50%!important;bottom:auto!important;left:calc((100% - var(--rail-w)) / 2)!important;right:auto!important;
  width:min(900px,calc(100% - var(--rail-w) - 36px))!important;height:min(700px,calc(100% - 28px))!important;max-height:none!important;
  padding:16px 18px 16px 16px!important;border-radius:24px!important;box-shadow:0 24px 70px rgb(20 22 26 / 22%)!important;
  transform:translate(-50%,-50%) scale(.97);opacity:0;pointer-events:none;overflow:hidden!important;
  transition:opacity .2s ease,transform .2s ease!important;
}
html body.drawer.af-side #side.open{transform:translate(-50%,-50%);opacity:1;pointer-events:auto}
html body.drawer.af-side #sideSet{height:100%}
html body.drawer.af-side #sideSet .sp-split{display:grid;grid-template-columns:minmax(220px,32%) minmax(0,1fr);height:100%;min-height:0}
html body.drawer.af-side #sideSet .sp-left{min-height:0;overflow-y:auto;padding:2px 14px 12px 2px;border-right:1px solid var(--shell-line,#e8e8e5);scrollbar-width:none}
html body.drawer.af-side #sideSet .sp-right{min-height:0;overflow-y:auto;padding:2px 2px 16px 18px;scrollbar-width:thin}
html body.drawer.af-side #sideSet :is(.sp-left,.sp-right)::-webkit-scrollbar{width:0}
/* 왼쪽: 제목 '설정' 은 닫기·✓ 와 겹치지 않게, 고른 갈래는 옅은 칠 */
html body.drawer.af-side #sideSet .sp-left .sm-head{margin:0 0 12px 2px}
html body.drawer.af-side #sideSet .sp-left .sr.on,html body.drawer.af-side #sideSet .sp-left .settings-profile.on{background:var(--shell-soft,#f1f1ef)}
html body.drawer.af-side #sideSet .sp-left .sm-logo{margin-top:16px}
/* 오른쪽: 맨 위 갈래(꾸미기 · 플래너 관리 · 계정·데이터)는 뒤로 단추가 필요 없다 · 제목은 ✕ ✓ 왼쪽까지 */
html body.drawer.af-side #sideSet .sp-right .sp-back[data-setpg=""]{display:none}
html body.drawer.af-side #sideSet .sp-right .sp-head{margin-right:96px}
html body.drawer.af-side.side-can-reset #sideSet .sp-right .sp-head{margin-right:186px}
html body.drawer.af-side #sideSet .sp-left .sm-head{margin-right:0}

/* ── 10/15 가로 큰 화면 홈 = 넓은 판 (사용자 그림 "이런 느낌으로 · 우리가 가진 걸 볼 수 있게") ──
   위: 학교 줄 · 리뷰 요약(이번 주 · 이번 달 실행 · 완료 · 연속) 한 줄
   가운데: 리뷰 펼침 [이번 주 · 지난 12주 · 요일·시간대 | 이번 달 달력 · 형광펜·할 일]
   아래: 시즌(넓게) · [루틴 | 다가오는 일정] */
html body.af-side #calView>.st:not(.st-big){display:grid;grid-template-columns:minmax(0,1fr);gap:14px;max-width:1500px;width:100%;margin:0 auto;align-items:start}
html body.af-side #calView>.st:not(.st-big)>.home-board{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:14px;align-items:start}
html body.af-side #calView>.st:not(.st-big)>.home-board>.hb-projects{grid-column:1 / -1}
html body.af-side #calView>.st:not(.st-big)>.home-board>.hb-routines{grid-column:1}
html body.af-side #calView>.st:not(.st-big)>.home-board>.hb-upcoming{grid-column:2;grid-row:2}
html body.af-side #calView>.st:not(.st-big)>.home-board>.hb-status{grid-column:1 / -1}
html body.af-side .home-review.hrv-wide>summary{pointer-events:none;cursor:default}
html body.af-side .home-review.hrv-wide .hrv-disclosure{display:none}
html body.af-side .home-review.hrv-wide .hrv-dash{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:14px 22px;align-items:start;margin-top:14px}
html body.af-side .home-review.hrv-wide .hrv-card{min-width:0}
html body.af-side .home-review.hrv-wide .hrv-c-week{padding-right:22px;border-right:1px solid var(--shell-line,#e8e8e5)}
html body.af-side .home-review.hrv-wide .hrv-fold>summary{pointer-events:none;list-style:none}
html body.af-side .home-review.hrv-wide .hrv-fold>summary svg{display:none}
html body.af-side .home-review.hrv-wide .hrv-fold>summary::-webkit-details-marker{display:none}

/* ── 10/16 가로 큰 화면 홈 = 한 화면 판 (사용자 그림) ──
   [숫자 한 줄]
   [리뷰(세로)] [시즌(넓게)        ]
   [          ] [루틴      ] [일정  ]
   화면 높이에 꽉 맞추고, 넘치면 그 칸 안에서만 넘긴다 */
html body.af-side #calView>.st:not(.st-big){
  display:grid;max-width:none;width:100%;margin:0;padding:0;
  grid-template-columns:minmax(0,.92fr) minmax(0,1fr) minmax(0,.82fr);
  grid-template-rows:auto auto minmax(0,1.05fr) minmax(0,1fr);
  grid-template-areas:"school school school" "stats stats stats" "review season season" "review routine agenda";
  gap:12px;height:calc(100dvh - 28px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
}
html body.af-side #calView>.st:not(.st-big)>.hb-school{grid-area:school;margin:0}
html body.af-side #calView>.st:not(.st-big) .home-review.hrv-wide{display:contents}
html body.af-side #calView>.st:not(.st-big)>.home-board{display:contents}
html body.af-side #calView>.st:not(.st-big) :is(.hrv-statbar,.hrv-col,.hb-projects,.hb-routines,.hb-upcoming){
  min-width:0;min-height:0;margin:0;box-sizing:border-box;padding:14px 16px;border:1px solid var(--shell-line,#e8e8e5);border-radius:18px;background:var(--shell-surface,#fff);overflow:auto;scrollbar-width:thin;
}
html body.af-side #calView>.st:not(.st-big) .hb-projects{grid-area:season}
html body.af-side #calView>.st:not(.st-big) .hb-routines{grid-area:routine}
html body.af-side #calView>.st:not(.st-big) .hb-upcoming{grid-area:agenda}
html body.af-side #calView>.st:not(.st-big) .hb-status:empty{display:none}
/* 숫자 한 줄 */
html body.af-side .hrv-statbar{grid-area:stats;display:flex;flex-wrap:wrap;gap:8px;padding:10px 12px!important;overflow:visible!important}
html body.af-side .hrv-chip{display:flex;flex-direction:column;gap:3px;min-width:92px;padding:7px 12px;border-radius:12px;background:var(--shell-soft,#f4f3f1);font:400 11px/1.2 Pretendard,sans-serif;color:var(--shell-muted,#737a87)}
html body.af-side .hrv-chip strong{font:700 19px/1 Pretendard,sans-serif;letter-spacing:-.02em;color:var(--shell-text,#303644)}
html body.af-side .hrv-chip strong small{font-size:11px;font-weight:600;margin-left:1px}
html body.af-side .hrv-chip.is-dday strong{color:var(--hrv-ink,var(--accent,#de7786))}
/* 리뷰 세로 칸: 이번 주 → 지난 12주 → 이번 달 (높이 나눔) */
html body.af-side .hrv-col{grid-area:review;display:flex;flex-direction:column;gap:10px}
html body.af-side .hrv-col-title{margin:0;font:700 16px/1.2 Pretendard,sans-serif;color:var(--shell-text,#303644)}
html body.af-side .hrv-col .hrv-panel-heading{display:flex;justify-content:space-between;align-items:center;margin:0;font-size:12px;color:var(--shell-muted)}
html body.af-side .hrv-col .hrv-week-chart{flex:1 1 120px;min-height:90px}
html body.af-side .hrv-col .hrv-trends{flex:0 0 auto}
html body.af-side .hrv-col .hrv-trend-chart{height:44px}
html body.af-side .hrv-col .hrv-month-calendar{gap:3px}
html body.af-side .hrv-col .hrv-calendar-day{min-height:0;aspect-ratio:auto;height:clamp(18px,3.1vh,30px);padding:2px 4px}
html body.af-side .hrv-col .hrv-calendar-day span{font-size:10.5px}
html body.af-side .hrv-col .hrv-calendar-weekday{font-size:10px}
html body.af-side .hrv-cal-sum{font-size:11px}
/* 시즌 · 루틴 · 일정 칸 안 여백 줄이기 */
html body.af-side #calView>.st:not(.st-big) :is(.hb-projects,.hb-routines,.hb-upcoming) .hb-section-heading{margin-bottom:10px}
/* 앞서 쓴 홈 두 칸 규칙(.st>.home-board>…)이 더 세서 자리를 덮어썼다 — 같은 세기로 다시 정한다 */
html body.af-side #calView>.st:not(.st-big)>.home-board>.hb-projects{grid-area:season}
html body.af-side #calView>.st:not(.st-big)>.home-board>.hb-routines{grid-area:routine}
html body.af-side #calView>.st:not(.st-big)>.home-board>.hb-upcoming{grid-area:agenda}
html body.af-side #calView>.st:not(.st-big)>.home-board>.hb-status{grid-area:auto;display:none}
html body.af-side #calView>.st:not(.st-big)>.home-review.hrv-wide>.hrv-statbar{grid-area:stats}
html body.af-side #calView>.st:not(.st-big)>.home-review.hrv-wide>.hrv-col{grid-area:review}
/* 칸이 줄 높이를 다 채우게 (위에 붙어 아래가 비던 것) · 지난 12주 날짜 글자가 다음 제목과 겹치지 않게 */
html body.af-side #calView>.st:not(.st-big){align-items:stretch;align-content:stretch}
html body.af-side .hrv-col .hrv-trends{padding-bottom:18px}
html body.af-side .hrv-col .hrv-month-calendar{flex:0 0 auto}
/* 아이폰 가로처럼 낮은 화면(높이 520 아래): 한 화면에 억지로 넣으면 칸이 납작해진다 → 칸 높이를 정해 두고 위아래로 넘겨 본다 */
@media (max-height:520px){
  html body.af-side #calView>.st:not(.st-big){height:auto;grid-template-rows:auto auto 300px 230px}
  html body.af-side .hrv-chip{min-width:72px;padding:5px 9px}
  html body.af-side .hrv-chip strong{font-size:15px}
  html body.af-side .hrv-statbar{gap:6px;padding:8px 10px!important}
}
/* 10/16 숫자 칸은 가로에선 늘 한 줄 (사용자 "가로에선 이걸 줄여야지") — 칸은 같은 폭으로 나눠 갖고, 좁으면 글씨도 작아진다 */
html body.af-side .hrv-statbar{display:grid!important;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:6px;padding:8px!important}
html body.af-side .hrv-chip{min-width:0;padding:6px 10px;gap:2px}
html body.af-side .hrv-chip>span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:clamp(9.5px,.9vw,11px)}
html body.af-side .hrv-chip strong{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:clamp(13px,1.45vw,19px)}

/* ── 10/16 아이패드 세로(tab-port: 휴대폰 모양 · 폭 600 넘음) — 사용자 "문제는 아이패드 세로" ──
   주간: 7일이 한 화면에 (폰처럼 4일만 보이고 옆으로 넘기지 않게) */
/* (10/16 7일 한 화면은 사용자 "별로다 · 원래대로" 로 되돌림 — 아이패드 세로 주간은 폰처럼 넘기기) */
/* 아이패드 세로 홈 = 가로 판을 세로로: [숫자 한 줄] / [시즌 넓게] / [리뷰(세로) | 루틴] / [ | 일정] — 위 날짜 줄과 아래 단추 사이에 꽉 */
html body.tab-port #calView>.st:not(.st-big){
  display:grid;max-width:none;width:100%;margin:0;padding:0;align-items:stretch;align-content:stretch;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  grid-template-rows:auto auto auto minmax(0,1fr) minmax(0,1fr);
  grid-template-areas:"school school" "stats stats" "season season" "review routine" "review agenda";
  gap:12px;height:calc(100dvh - var(--app-frame-top,102px) - 12px - 90px - env(safe-area-inset-bottom));
}
html body.tab-port #calView>.st:not(.st-big)>.hb-school{grid-area:school;margin:0}
html body.tab-port #calView>.st:not(.st-big)>.home-review.hrv-wide,html body.tab-port #calView>.st:not(.st-big)>.home-board{display:contents}
html body.tab-port #calView>.st:not(.st-big) :is(.hrv-statbar,.hrv-col,.hb-projects,.hb-routines,.hb-upcoming){min-width:0;min-height:0;margin:0;box-sizing:border-box;padding:14px 16px;border:1px solid var(--shell-line,#e8e8e5);border-radius:18px;background:var(--shell-surface,#fff);overflow:auto;scrollbar-width:thin}
html body.tab-port #calView>.st:not(.st-big)>.home-board>.hb-projects{grid-area:season}
html body.tab-port #calView>.st:not(.st-big)>.home-board>.hb-routines{grid-area:routine}
html body.tab-port #calView>.st:not(.st-big)>.home-board>.hb-upcoming{grid-area:agenda}
html body.tab-port #calView>.st:not(.st-big)>.home-board>.hb-status{display:none}
html body.tab-port #calView>.st:not(.st-big)>.home-review.hrv-wide>.hrv-statbar{grid-area:stats;display:grid!important;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:6px;padding:8px!important;overflow:visible}
html body.tab-port #calView>.st:not(.st-big)>.home-review.hrv-wide>.hrv-col{grid-area:review;display:flex;flex-direction:column;gap:10px}
html body.tab-port .hrv-chip{display:flex;flex-direction:column;gap:2px;min-width:0;padding:6px 10px;border-radius:12px;background:var(--shell-soft,#f4f3f1);color:var(--shell-muted,#737a87)}
html body.tab-port .hrv-chip>span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:11px}
html body.tab-port .hrv-chip strong{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font:700 17px/1 Pretendard,sans-serif;color:var(--shell-text,#303644)}
html body.tab-port .hrv-chip strong small{font-size:10px;margin-left:1px}
html body.tab-port .hrv-chip.is-dday strong{color:var(--hrv-ink,var(--accent,#de7786))}
html body.tab-port .hrv-col-title{margin:0;font:700 16px/1.2 Pretendard,sans-serif;color:var(--shell-text,#303644)}
html body.tab-port .hrv-col .hrv-panel-heading{display:flex;justify-content:space-between;align-items:center;margin:0;font-size:12px;color:var(--shell-muted)}
html body.tab-port .hrv-col .hrv-week-chart{flex:1 1 110px;min-height:80px}
html body.tab-port .hrv-col .hrv-trends{padding-bottom:18px}
html body.tab-port .hrv-col .hrv-trend-chart{height:40px}
html body.tab-port .hrv-col .hrv-month-calendar{gap:3px;flex:0 0 auto}
html body.tab-port .hrv-col .hrv-calendar-day{min-height:0;aspect-ratio:auto;height:clamp(18px,2.4vh,28px);padding:2px 4px}
html body.tab-port .hrv-col .hrv-calendar-day span{font-size:10.5px}
html body.tab-port :is(.hrv-cal-sum,.hrv-col .hrv-calendar-weekday){font-size:10.5px}
/* 아이패드 세로 설정 = 가운데 두 칸 창 (가로와 같음, 막대가 없으니 화면 가운데) */
html body.drawer.tab-port #side,html body.drawer.tab-port #side:has(.settings-menu){
  top:50%!important;bottom:auto!important;left:50%!important;right:auto!important;
  width:min(780px,calc(100% - 32px))!important;height:min(900px,calc(100% - 140px))!important;max-height:none!important;
  padding:16px 18px 16px 16px!important;border-radius:24px!important;box-shadow:0 24px 70px rgb(20 22 26 / 22%)!important;
  transform:translate(-50%,-50%) scale(.97);opacity:0;pointer-events:none;overflow:hidden!important;transition:opacity .2s ease,transform .2s ease!important;
}
html body.drawer.tab-port #side.open{transform:translate(-50%,-50%);opacity:1;pointer-events:auto}
html body.drawer.tab-port #sideSet{height:100%}
html body.drawer.tab-port #sideSet .sp-split{display:grid;grid-template-columns:minmax(210px,34%) minmax(0,1fr);height:100%;min-height:0}
html body.drawer.tab-port #sideSet .sp-left{min-height:0;overflow-y:auto;padding:2px 12px 12px 2px;border-right:1px solid var(--shell-line,#e8e8e5);scrollbar-width:none}
html body.drawer.tab-port #sideSet .sp-right{min-height:0;overflow-y:auto;padding:2px 2px 16px 16px;scrollbar-width:thin}
html body.drawer.tab-port #sideSet .sp-left .sr.on,html body.drawer.tab-port #sideSet .sp-left .settings-profile.on{background:var(--shell-soft,#f1f1ef)}
html body.drawer.tab-port #sideSet .sp-right .sp-back[data-setpg=""]{display:none}
html body.drawer.tab-port #sideSet .sp-right .sp-head{margin-right:96px}
html body.drawer.tab-port.side-can-reset #sideSet .sp-right .sp-head{margin-right:186px}
html body.drawer.tab-port #sideSet .sp-left .sm-head{margin:0 0 12px 2px}
/* 10/16 세로 큰 화면(아이패드 세로 · 폴드 펼침 세로): 이번 주 날짜 줄만 가운데 — 큰 날짜는 왼쪽 · 로고는 위 가운데 그대로
   (사용자 "날짜만 가운데 정렬 · 패드 세로도 · 로고 그냥 위에 · 이건(10월 16일) 왼쪽에") */
html body.app-frame:is(.tab-port,.dev-pad:not(.af-side)) #tabbar .af-week-strip{margin-left:auto;margin-right:auto}
/* 고른 날 요일 글자가 흰색으로 사라지던 것(모든 화면) */
html body.app-frame #tabbar .af-week-strip button.on span{color:var(--af-pen)}
/* ── 10/16 아이폰 가로 안전 영역 (사용자 "월간·주간 흰색 띠가 버그로 잘 안 보여") ──
   카메라 쪽 여백(양옆 59px)을 막대 '안'에서 빼서 흰 단추 띠(일간·주간·월간·홈)가 14px 로 찌그러졌다.
   막대 = 제 폭 + 오른쪽 안전 영역, 종이 쪽은 왼쪽 안전 영역만큼 띄운다 (아이패드·PC 는 안전 영역 0 이라 그대로) */
html body.app-frame.af-side{--rail-x:calc(var(--rail-w) + env(safe-area-inset-right,0px));--sal-x:max(14px,env(safe-area-inset-left,0px))}
html body.app-frame.af-side #tabbar,html body.app-frame.af-side #appFrameDock{width:var(--rail-x);padding-right:calc(7px + env(safe-area-inset-right,0px))}
html body.app-frame.af-side .app{padding-left:var(--sal-x);padding-right:calc(var(--rail-x) + 14px)}
html body.app-frame.af-side .app>.board>.quick{left:calc((100% - var(--rail-x) + var(--sal-x) - 14px) / 2);width:min(760px,calc(100% - var(--rail-x) - var(--sal-x) - 26px))}
html body.app-frame.af-side #toast{left:calc((100% - var(--rail-x) + var(--sal-x) - 14px) / 2)}
html body.drawer.af-side #side,html body.drawer.af-side #side:has(.settings-menu){left:calc((100% - var(--rail-x) + var(--sal-x) - 14px) / 2)!important;width:min(900px,calc(100% - var(--rail-x) - var(--sal-x) - 22px))!important}
/* 가로 큰 화면은 스크롤 막대 자리를 비우지 않는다 (막대 오른쪽에 흰 띠가 남던 것) · 낮은 가로(아이폰)의 주간은 아래가 잘리지 않게 위아래로 내려 본다 */
html:has(> body.app-frame.af-side){scrollbar-gutter:auto;scrollbar-width:none}
html:has(> body.app-frame.af-side)::-webkit-scrollbar{display:none}
@media (max-height:520px){html:has(body.app-frame.af-side.view-week){overflow:visible}}
/* 10/16 가로 화면 일간·주간 확대(두 손가락): 브라우저 확대 대신 앱이 받는다 (폰 세로와 같게) · 확대 중 시간표 칸은 꾹 눌러야 칠하기, 바로 끌면 옮겨 보기 */
html body.app-frame.af-side:is(.view-day,.view-week) :is(#dayView,#calView){touch-action:pan-x pan-y}
html body.app-frame.af-side:is(.view-day,.view-week){touch-action:pan-x pan-y}
html body.app-frame.af-side :is(#dayView,#calView)[style*="overflow"]{overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
/* 10/16 아이패드 앱: 상태 막대 높이(24px)만큼 위 날짜 줄 · 가로 막대 · 종이를 내린다 (위쪽 안전 영역이 0 으로 오는 iPadOS) */
html.ipad-app{--sat:max(24px,env(safe-area-inset-top,0px))}
html.ipad-app body.app-frame #tabbar{padding-top:calc(10px + var(--sat))}
html.ipad-app body.app-frame.af-side #tabbar{padding-top:calc(14px + var(--sat))}
html.ipad-app body.app-frame.af-side .app{padding-top:calc(14px + var(--sat))}
/* 10/16 아이패드는 막대를 조금 더 넓게 (사용자 "옆에 막대는 조금 더 뚱뚱해도 괜찮을 것 같아 · 아이패드") — 아이폰 가로 80px 그대로, 큰 아이패드(높이 1200)는 100px 쯤 */
html body.app-frame.af-side{--rail-w:clamp(80px,calc(40px + 5vh),104px)}
html body.app-frame.af-side #tabbar .af-title{font-size:clamp(15.5px,calc(6.5px + 1vh),19px)}   /* 10/17 조금 크게 (사용자 "날짜 조금 키워도") — 큰 아이패드 16.8 → 18.5px */
html body.app-frame.af-side #tabbar .af-title-month{font-size:clamp(19px,calc(9px + 1vh),23px)}
html body.app-frame.af-side #tabbar :is(.af-logo,.af-today,.af-share,.af-settings){width:clamp(30px,calc(12px + 2vh),38px);height:clamp(30px,calc(12px + 2vh),38px);min-width:clamp(30px,calc(12px + 2vh),38px)}
html body.app-frame.af-side #tabbar :is(.af-logo,.af-today,.af-share,.af-settings) svg{width:clamp(17px,calc(7px + 1.1vh),21px);height:clamp(17px,calc(7px + 1.1vh),21px)}
html body.app-frame.af-side #tabbar .af-side-nav button{height:clamp(30px,calc(12px + 2vh),38px)}
html body.app-frame.af-side #appFrameDock .tb-seg button{font-size:clamp(10.5px,calc(6px + .55vh),12.5px)}
html body.app-frame.af-side #appFrameDock .tb-seg svg{width:clamp(17px,calc(8px + 1.1vh),22px);height:clamp(17px,calc(8px + 1.1vh),22px)}
/* 10/16 아이폰 가로 월간 = 달력 | 하루 (사용자 "아이폰 가로에선 월간을 세로로 · 달력 ㅣ 하루 이렇게 · 아이패드는 굳이") — 높이가 낮은 가로만.
   위아래로 끌어 나누는 손잡이는 없애고, 달력은 왼쪽 높이 전부 · 고른 날의 하루 칸은 오른쪽에서 위아래로 */
@media (max-height:520px){
  html body.app-frame.af-side.view-month #calView > .wk-page.mo-page{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);column-gap:14px;padding:12px 14px 10px}
  html body.app-frame.af-side.view-month #calView > .mo-page > .mo-h{grid-column:1;grid-row:1}
  html body.app-frame.af-side.view-month #calView > .mo-page > .mo{grid-column:1;grid-row:2;height:auto!important;min-height:0;align-self:stretch}
  html body.app-frame.af-side.view-month #calView > .mo-page > .mo-sheet{grid-column:2;grid-row:1 / 3;margin-top:0;border-top:0;border-left:1px solid var(--line2);padding-left:12px;overflow-y:auto;overscroll-behavior:contain;min-height:0}
  html body.app-frame.af-side.view-month #calView > .mo-page .mo-grab{display:none}
  html body.app-frame.af-side.view-month #calView > .mo-page .ms-head{padding-top:0}
  html body.app-frame.af-side.view-month #calView > .mo-page .ms-project-list{overflow-x:auto;scrollbar-width:none}
}

/* ── 10/16 아이패드 홈 = 운영 + 리뷰 조각 (사용자 "홈이 휑해 · 리뷰를 더 · 이거 참고해서 · 그렇게 진행하자") ──
   가로(.af-side 높이 520 넘음): [숫자 한 줄] / 왼쪽 운영 55(시즌·루틴·일정) | 오른쪽 리뷰 45(조각 카드) — 칸은 내용만큼, 넘치면 화면이 내려간다
   세로(.tab-port): [숫자] / [시즌] / [루틴 | 일정] / 리뷰 2열 (이번 주 | 형광펜별 · 12주 | 요일 · 시간대 · 할 일 표시 | 35일) */
html body:is(.af-side,.tab-port) #calView>.st.st-big-off{height:auto;grid-template-rows:none;grid-template-areas:none;align-content:start;gap:12px}
html body:is(.af-side,.tab-port) #calView>.st.st-big-off>*,html body:is(.af-side,.tab-port) #calView>.st.st-big-off .home-board>section,html body:is(.af-side,.tab-port) #calView>.st.st-big-off .hrv-big>*{grid-area:auto}
html body:is(.af-side,.tab-port) #calView>.st.st-big-off>.hb-school{grid-column:1/-1;order:0}
html body:is(.af-side,.tab-port) #calView>.st.st-big-off>.home-review.hrv-big{display:contents}
html body:is(.af-side,.tab-port) #calView>.st.st-big-off>.home-review.hrv-big>.hrv-statbar{grid-column:1/-1;order:1}
html body:is(.af-side,.tab-port) #calView>.st.st-big-off .hrv-card{min-width:0;margin:0;box-sizing:border-box;padding:14px 16px;border:1px solid var(--shell-line,#e8e8e5);border-radius:18px;background:var(--shell-surface,#fff);color:var(--hrv-text)}
html body:is(.af-side,.tab-port) #calView>.st.st-big-off :is(.hb-projects,.hb-routines,.hb-upcoming){overflow:visible;min-height:0;height:auto}
/* 가로: 두 기둥 */
html body.af-side #calView>.st.st-big-off{grid-template-columns:minmax(0,55fr) minmax(0,45fr);align-items:start}
html body.af-side #calView>.st.st-big-off>.home-board{display:flex;flex-direction:column;gap:12px;grid-column:1;order:2;min-width:0}
html body.af-side #calView>.st.st-big-off>.home-review.hrv-big>.hrv-cards{display:flex;flex-direction:column;gap:12px;grid-column:2;order:3;min-width:0;padding:0;border:0;background:none;overflow:visible}
/* 세로: 위 운영 · 아래 리뷰 2열 (짝끼리 높이 맞춤) */
html body.tab-port #calView>.st.st-big-off{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch}
html body.tab-port #calView>.st.st-big-off>.home-board,html body.tab-port #calView>.st.st-big-off>.home-review.hrv-big>.hrv-cards{display:contents}
html body.tab-port #calView>.st.st-big-off .home-board>.hb-projects{grid-column:1/-1;order:2}
html body.tab-port #calView>.st.st-big-off .home-board>.hb-routines{order:3}
html body.tab-port #calView>.st.st-big-off .home-board>.hb-upcoming{order:4}
html body.tab-port #calView>.st.st-big-off .hrv-c-week{order:10}
html body.tab-port #calView>.st.st-big-off .hrv-c-pens{order:11}
html body.tab-port #calView>.st.st-big-off .hrv-c-cal{order:12;grid-column:1;grid-row:span 2}   /* 35일 달력 옆에 요일별 · 12주를 쌓아 높이를 맞춘다 */
html body.tab-port #calView>.st.st-big-off .hrv-c-wdays{order:13;grid-column:2}
html body.tab-port #calView>.st.st-big-off .hrv-c-trend{order:14;grid-column:2}
html body.tab-port #calView>.st.st-big-off .hrv-c-hours{order:15;grid-column:1/-1}
html body.tab-port #calView>.st.st-big-off .hrv-c-marks{order:16;grid-column:1/-1}
html body.tab-port #calView>.st.st-big-off :is(.hrv-load-status,.hrv-load-retry){order:9;grid-column:1/-1}
/* 카드 안 */
.st-big .hrv-card-head{display:flex;align-items:baseline;gap:8px;margin:0 0 10px}
.st-big .hrv-card-head h3{margin:0;font:700 15px/1.2 Pretendard,sans-serif;color:var(--shell-text,#303644)}
.st-big .hrv-card-head small{font-size:11.5px;color:var(--shell-muted,#84888d)}
.st-big .hrv-c-week .hrv-chart-key{display:flex;justify-content:flex-end;gap:4px;align-items:center;margin:-28px 0 8px;font-size:11px;color:var(--shell-muted)}
.st-big .hrv-c-week .hrv-bars{height:86px}
.st-big .hrv-pens{display:grid;gap:7px}
.st-big .hrv-pen{display:grid;grid-template-columns:minmax(64px,30%) minmax(0,1fr) auto;align-items:center;gap:10px;font-size:13px;color:var(--shell-text,#303644)}
.st-big .hrv-pen.is-zero{color:var(--shell-muted,#a2a6ad)}
.st-big .hrv-pen-name{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.st-big .hrv-pen-name i{font-style:normal;color:var(--shell-muted)}
.st-big .hrv-pen-track{height:9px;border-bottom:1px dotted var(--shell-line,#dcdcd8)}
.st-big .hrv-pen-track i{display:block;height:100%;border-radius:5px;min-width:0;opacity:.85}
.st-big .hrv-pen b{font:700 12.5px/1 Pretendard,sans-serif;min-width:44px;text-align:right}
.st-big .hrv-pen.is-zero b{font-weight:500}
.st-big .hrv-hours{display:grid;grid-template-columns:repeat(24,minmax(0,1fr));gap:2px}
.st-big .hrv-hour-cell{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0}
.st-big .hrv-hour-cell i{display:block;width:100%;height:22px;border-radius:4px;background:var(--shell-soft,#f2f1ef)}
.st-big .hrv-hour-cell.level-1 i{background:color-mix(in srgb,var(--hrv-ink) 25%,var(--shell-surface,#fff))}
.st-big .hrv-hour-cell.level-2 i{background:color-mix(in srgb,var(--hrv-ink) 45%,var(--shell-surface,#fff))}
.st-big .hrv-hour-cell.level-3 i{background:color-mix(in srgb,var(--hrv-ink) 70%,var(--shell-surface,#fff))}
.st-big .hrv-hour-cell.level-4 i{background:var(--hrv-ink)}
.st-big .hrv-hour-cell b{font:500 10px/1 Pretendard,sans-serif;color:var(--shell-muted,#84888d)}
.st-big .hrv-hours-top{margin:10px 0 0;font-size:12.5px;color:var(--shell-muted,#737a87)}
.st-big .hrv-hours-top b{margin-left:4px;color:var(--hrv-ink);font-weight:700}
.st-big .hrv-markrow{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
.st-big .hrv-mark{display:flex;flex-direction:column;align-items:center;gap:3px;padding:2px 0;color:var(--shell-text,#303644)}
.st-big .hrv-mark+.hrv-mark{border-left:1px dotted var(--shell-line,#dcdcd8)}
.st-big .hrv-mark svg{width:26px;height:26px;color:var(--hrv-ink)}
.st-big .hrv-mark b{font:700 22px/1 Pretendard,sans-serif}
.st-big .hrv-mark small{font-size:11.5px;color:var(--shell-muted,#84888d)}
.st-big .hrv-cal35{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.st-big .hrv-cal35-w{text-align:center;font-size:10.5px;color:var(--shell-muted,#84888d)}
.st-big .hrv-cal35-w.is-sat{color:#5b7fd6}
.st-big .hrv-cal35-w.is-sun{color:#d65b6b}
.st-big .hrv-cal35-day{display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;min-width:0;height:clamp(34px,4.2vh,48px);padding:4px 5px;border:1px solid var(--shell-line,#ebeae7);border-radius:7px;background:var(--shell-surface,#fff);font:500 11px/1 Pretendard,sans-serif;color:var(--shell-text,#303644);text-align:left}
.st-big .hrv-cal35-day.is-future{color:var(--shell-muted,#b3b6bb);border-style:dashed}
.st-big .hrv-cal35-day.level-1{background:color-mix(in srgb,var(--hrv-ink) 14%,var(--shell-surface,#fff))}
.st-big .hrv-cal35-day.level-2{background:color-mix(in srgb,var(--hrv-ink) 28%,var(--shell-surface,#fff))}
.st-big .hrv-cal35-day.level-3{background:color-mix(in srgb,var(--hrv-ink) 45%,var(--shell-surface,#fff))}
.st-big .hrv-cal35-day.level-4{background:color-mix(in srgb,var(--hrv-ink) 65%,var(--shell-surface,#fff))}
.st-big .hrv-cal35-day.is-today{outline:2px solid var(--hrv-ink);outline-offset:-1px}
.st-big .hrv-cal35-day small{font:600 9.5px/1 Pretendard,sans-serif;color:var(--shell-text,#303644)}
.st-big .hrv-c-trend .hrv-trend-chart{height:64px}
.st-big .hrv-wdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;height:110px;align-items:end}
.st-big .hrv-wday{display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:4px;height:100%;min-width:0}
.st-big .hrv-wday i{display:block;width:60%;max-width:22px;min-height:2px;border-radius:4px 4px 0 0;background:color-mix(in srgb,var(--hrv-ink) 70%,var(--shell-surface,#fff))}
.st-big .hrv-wday em{font:600 9.5px/1 Pretendard,sans-serif;font-style:normal;color:var(--shell-muted,#84888d)}
.st-big .hrv-wday b{font:500 11px/1 Pretendard,sans-serif;color:var(--shell-muted,#84888d)}
.st-big .hrv-wday b.is-sat{color:#5b7fd6}
.st-big .hrv-wday b.is-sun{color:#d65b6b}
/* 펼치기 단추가 루틴 표 규칙에 밀리던 것 — 한 단계 세게 */
html body #calView>.st:not(.st-big) :is(.htb-week .htb-row-fold,.hb-project-fold-wrap .hb-project-fold){display:flex;width:fit-content;align-items:center;gap:6px;min-height:32px;margin:8px auto 2px;padding:5px 14px;border:1px solid var(--shell-line,#e2e4e7);border-radius:999px;background:var(--shell-surface,#fff);color:var(--shell-text,#3a3f47);font-size:12px;font-weight:600;cursor:pointer}

/* 예전 한 화면 판의 칸 이름(grid-area: stats·review·season…)이 더 세게 남아 자리가 꼬이던 것 — 큰 판에선 줄 자리를 모두 비운다 */
html body:is(.af-side,.tab-port) #calView>.st.st-big-off :is(.hb-school,.hrv-statbar,.hrv-cards,.home-board,.hb-projects,.hb-routines,.hb-upcoming,.hb-status,.hrv-card){grid-row:auto!important}
html body.af-side #calView>.st.st-big-off>.home-board>section{align-self:stretch;width:auto;max-width:none}
html body.tab-port #calView>.st.st-big-off .hrv-c-cal{grid-row:span 2!important}

/* 10/16 아이패드 막대: 칸을 한 줄에 하나씩 (날짜 → 오늘 → 설정 → 이번 주 7일) · ‹ › 는 빼고 이번 주 날짜로 옮긴다 (사용자 "옆에 있는 칸들 하나씩 배열 · < > 빼고")
   이번 주 줄이 숨는 낮은 가로(아이폰 가로 · 노트북)는 ‹ › 그대로 */
@media (min-height:741px){
  html body.app-frame.af-side #tabbar .af-title-row{grid-template-areas:"date date" "logo today" "share set"}
  html body.app-frame.af-side #tabbar .af-side-nav{display:none}
  html body.app-frame.af-side #tabbar :is(.af-logo,.af-today,.af-share,.af-settings){width:100%;max-width:56px}
}

/* ── 10/16 아이패드 홈: 리뷰를 위로 (사용자 "아이패드도 위에 리뷰가 있으면 좋겠어") ──
   가로 3열: [이번 주|형광펜별|할 일 표시] [하루 시간대(2칸)|지난 35일(2줄)] [12주|요일별] / 시즌(전체) / 루틴(2칸)|일정
   세로 2열: 리뷰 2열을 시즌 위로 */
html body.af-side #calView>.st.st-big-off{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;grid-auto-flow:row dense}
html body.af-side #calView>.st.st-big-off>.home-board,html body.af-side #calView>.st.st-big-off>.home-review.hrv-big>.hrv-cards{display:contents}
html body.af-side #calView>.st.st-big-off .hrv-c-week{order:10}
html body.af-side #calView>.st.st-big-off .hrv-c-pens{order:11}
html body.af-side #calView>.st.st-big-off .hrv-c-marks{order:12}
html body.af-side #calView>.st.st-big-off .hrv-c-hours{order:13;grid-column:span 2}
html body.af-side #calView>.st.st-big-off .hrv-c-cal{order:14;grid-row:span 2!important}
html body.af-side #calView>.st.st-big-off .hrv-c-trend{order:15}
html body.af-side #calView>.st.st-big-off .hrv-c-wdays{order:16}
html body.af-side #calView>.st.st-big-off .home-board>.hb-projects{order:20;grid-column:1/-1}
html body.af-side #calView>.st.st-big-off .home-board>.hb-routines{order:21;grid-column:span 2}
html body.af-side #calView>.st.st-big-off .home-board>.hb-upcoming{order:22}
html body.af-side #calView>.st.st-big-off :is(.hrv-load-status,.hrv-load-retry){order:9;grid-column:1/-1}
html body.tab-port #calView>.st.st-big-off .home-board>.hb-projects{order:20}
html body.tab-port #calView>.st.st-big-off .home-board>.hb-routines{order:21}
html body.tab-port #calView>.st.st-big-off .home-board>.hb-upcoming{order:22}

/* 10/16 가로 막대의 일간·주간·월간·홈 간격 넓게 (사용자 "가로에서 옆에 일간 주간 너무 빽빽해 더 띄워 줘") — 높이가 넉넉한 화면(아이패드)만 */
@media (min-height:1000px){
  html body.app-frame.af-side #appFrameDock .tb-seg{gap:10px}
  html body.app-frame.af-side #appFrameDock .tb-seg button{height:clamp(54px,6.8vh,66px);gap:5px}
  html body.app-frame.af-side #appFrameDock .af-nav-slot{padding:10px 6px}
  html body.app-frame.af-side #appFrameDock{gap:16px}
}
@media (min-height:741px) and (max-height:999px){html body.app-frame.af-side #appFrameDock .tb-seg{gap:6px}}

/* ── 10/16 아이폰 가로 월간: 달력 | 하루 사이 손잡이 (좌우로 끌어 폭 조절) ── */
@media (max-height:520px){
  html body.app-frame.af-side.view-month #calView > .wk-page.mo-page{grid-template-columns:minmax(0,var(--mo-cal-w,56%)) minmax(0,1fr)}
  html body.app-frame.af-side.view-month #calView > .mo-page > .mo-sheet{position:relative;overflow:visible}
  html body.app-frame.af-side.view-month #calView > .mo-page .mo-grab{display:flex;position:absolute;left:-13px;top:0;bottom:0;width:24px;height:auto;margin:0;padding:0;align-items:center;justify-content:center;border:0;background:none;cursor:col-resize;touch-action:none;z-index:3}
  html body.app-frame.af-side.view-month #calView > .mo-page .mo-grab i{display:block;width:5px;height:44px;border-radius:3px;background:var(--shell-muted,#9aa0a6);opacity:.55}
  html body.app-frame.af-side.view-month #calView > .mo-page .mo-grab:active i{opacity:.9}
  html body.app-frame.af-side.view-month #calView > .mo-page > .mo-sheet > :is(.ms-head,.ms-project-strip,.ms-body){overflow-y:auto}
}
/* ── 10/16 시즌·루틴 펼치기: 알약 대신 칸 맨 아래 전체 폭 줄 (사용자 "펼치기 더 직관적으로 · 알약 말고") ── */
html body #calView>.st:is(.st,.st-big) :is(.htb-week .htb-row-fold,.hb-project-fold-wrap .hb-project-fold){display:flex;width:100%;justify-content:center;align-items:center;gap:6px;min-height:40px;margin:8px 0 0;padding:10px 0 2px;border:0;border-top:1px solid var(--shell-line,#e8e8e5);border-radius:0;background:none;color:var(--shell-muted,#6f747c);font-size:12.5px;font-weight:600;cursor:pointer}
html body #calView>.st:is(.st,.st-big) :is(.htb-week .htb-row-fold,.hb-project-fold-wrap .hb-project-fold):active{color:var(--shell-text,#3a3f47)}
html body #calView>.st:is(.st,.st-big) .hb-project-fold-wrap{display:block;margin:0}

/* ── 10/16 가로·아이패드 홈 = 한 판 (사용자 "홈 가로 배치는 똑같아야 해 · 크기에 따라 정리되는 것들만 · 일단 한눈에") ──
   가로(아이패드·아이폰 같은 판): [학교] [리뷰 머리: 숫자 6개 · 펼쳐 보기]
       [이번 주 | 요일별 | 지난 35일] [하루 시간대(2칸) | ↑]   ← 아이폰 가로(낮음)는 하루 시간대를 펼치기 쪽으로
       [시즌(전체)] [다가오는 일정 | 루틴(2칸)]                  ← 리뷰를 펼치면 그 아래에 [형광펜별 | 할 일 표시 | 지난 12주]
   세로(아이패드): [이번 주 | 지난 35일] [하루 시간대] [시즌] [일정 | 루틴] ← 펼치면 [형광펜별 | 할 일 표시] [지난 12주 | 요일별]
   접혀 있으면 한 화면(칸 안에서만 내려 봄) · 무엇이든 펼치면 위 줄 높이는 그대로(--r1… = JS 가 잰 한 화면 줄 높이), 펼친 줄만 늘어난다 */
html body:is(.af-side,.tab-port) #calView>.st.st-big{--bh-gap:12px;display:grid;max-width:none;width:100%;margin:0;padding:0;gap:var(--bh-gap);align-items:stretch;align-content:start;grid-auto-flow:row;height:auto}
html body.af-side #calView>.st.st-big{grid-template-columns:repeat(12,minmax(0,1fr))}
html body.tab-port #calView>.st.st-big{grid-template-columns:repeat(2,minmax(0,1fr))}
html body:is(.af-side,.tab-port) #calView>.st.st-big>*{min-width:0;margin:0}
html body:is(.af-side,.tab-port) #calView>.st.st-big>:is(.home-review.hrv-big,.home-board),html body:is(.af-side,.tab-port) #calView>.st.st-big>.home-review.hrv-big>.hrv-cards{display:contents}
html body:is(.af-side,.tab-port) #calView>.st.st-big :is(.hrv-big-head,.hrv-card){min-width:0;margin:0;box-sizing:border-box;padding:14px 16px;border:1px solid var(--shell-line,#e8e8e5);border-radius:18px;background:var(--shell-surface,#fff);color:var(--hrv-text)}
html body:is(.af-side,.tab-port) #calView>.st.st-big :is(.hrv-card,.home-board>section){min-width:0;min-height:0;overflow:auto;scrollbar-width:none;overscroll-behavior:contain}
html body:is(.af-side,.tab-port) #calView>.st.st-big :is(.hrv-card,.home-board>section)::-webkit-scrollbar{display:none}
/* 리뷰 머리 */
html body:is(.af-side,.tab-port) #calView>.st.st-big .hrv-big-head{display:flex;flex-direction:column;gap:12px;padding:14px 18px}
html body:is(.af-side,.tab-port) #calView>.st.st-big .hrv-big-fold{margin:0;padding:4px 2px;border:0;background:none;font:inherit;cursor:pointer;color:var(--hrv-muted)}
html body:is(.af-side,.tab-port) #calView>.st.st-big .hrv-big .hrv-open-label{display:none}
html body:is(.af-side,.tab-port) #calView>.st.st-big .hrv-big .hrv-closed-label{display:inline}
html body:is(.af-side,.tab-port) #calView>.st.st-big .hrv-big.is-open .hrv-open-label{display:inline}
html body:is(.af-side,.tab-port) #calView>.st.st-big .hrv-big.is-open .hrv-closed-label{display:none}
html body:is(.af-side,.tab-port) #calView>.st.st-big .hrv-big .hrv-big-fold svg{transition:transform .2s}
html body:is(.af-side,.tab-port) #calView>.st.st-big .hrv-big.is-open .hrv-big-fold svg{transform:rotate(180deg)}
html body:is(.af-side,.tab-port) #calView>.st.st-big .hrv-big-stats{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:0}
html body:is(.af-side,.tab-port) #calView>.st.st-big .hrv-big-stats .hrv-execution{padding:0 14px;min-width:0}
html body:is(.af-side,.tab-port) #calView>.st.st-big .hrv-big-stats .hrv-execution:first-child{padding-left:0}
html body:is(.af-side,.tab-port) #calView>.st.st-big .hrv-big-stats .hrv-execution+.hrv-execution{border-left:1px solid var(--hrv-line)}
html body:is(.af-side,.tab-port) #calView>.st.st-big .hrv-big-stats .hrv-execution>span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
html body:is(.af-side,.tab-port) #calView>.st.st-big .hrv-big-stats .hrv-execution>strong{font-size:clamp(22px,2.2vw,32px);overflow:hidden}
html body:is(.af-side,.tab-port) #calView>.st.st-big .hrv-big-stats .hrv-execution.is-dday>strong{color:var(--hrv-ink)}
html body:is(.af-side,.tab-port) #calView>.st.st-big :is(.hrv-load-status,.hrv-load-retry){grid-column:1/-1;margin:0}
html body:is(.af-side,.tab-port) #calView>.st.st-big:not(:has(.hrv-big.is-open)) :is(.hrv-load-status,.hrv-load-retry){display:none}
html body:is(.af-side,.tab-port) #calView>.st.st-big .home-board>.hb-status{grid-column:1/-1}
html body:is(.af-side,.tab-port) #calView>.st.st-big .home-board>.hb-status:empty{display:none}
/* 카드 안: 칸 높이를 채우는 그림 */
html body:is(.af-side,.tab-port) #calView>.st.st-big .hrv-big :is(.hrv-c-week,.hrv-c-wdays,.hrv-c-cal,.hrv-c-hours,.hrv-c-pens,.hrv-c-marks,.hrv-c-trend){display:flex;flex-direction:column}
html body:is(.af-side,.tab-port) #calView>.st.st-big .hrv-c-week .hrv-week-chart{flex:1 1 auto;min-height:0}
html body:is(.af-side,.tab-port) #calView>.st.st-big .hrv-c-week .hrv-week-day{display:flex;flex-direction:column;min-height:0}
html body:is(.af-side,.tab-port) #calView>.st.st-big .hrv-c-week .hrv-bars{flex:1 1 auto;height:auto;min-height:24px}
html body:is(.af-side,.tab-port) #calView>.st.st-big .hrv-c-wdays .hrv-wdays{flex:1 1 auto;height:auto;min-height:36px}
html body:is(.af-side,.tab-port) #calView>.st.st-big .hrv-c-cal .hrv-cal35{flex:1 1 auto;min-height:0;grid-template-rows:auto repeat(5,minmax(0,1fr))}
html body:is(.af-side,.tab-port) #calView>.st.st-big .hrv-c-cal .hrv-cal35-day{height:auto;min-height:0}
html body:is(.af-side,.tab-port) #calView>.st.st-big .hrv-c-trend .hrv-trend-chart{flex:1 1 auto;height:auto;min-height:64px;align-items:stretch}
html body:is(.af-side,.tab-port) #calView>.st.st-big .hrv-c-trend .hrv-small-day{height:100%}
html body:is(.af-side,.tab-port) #calView>.st.st-big .hrv-c-trend .hrv-small-track{flex:1 1 auto;height:auto;min-height:54px}
/* 펼치기 전엔 형광펜별·할 일 표시·12주(세로는 요일별도) 숨김 */
html body:is(.af-side,.tab-port) #calView>.st.st-big .hrv-big:not(.is-open) :is(.hrv-c-pens,.hrv-c-marks,.hrv-c-trend){display:none}
html body:is(.af-side,.tab-port) #calView>.st.st-big.st-measure :is(.hrv-c-pens,.hrv-c-marks,.hrv-c-trend,.hrv-load-status,.hrv-load-retry){display:none!important}
/* 자리 — 가로 */
html body:is(.af-side,.tab-port) #calView>.st.st-big>.hb-school{grid-area:1/1/2/-1}
html body:is(.af-side,.tab-port) #calView>.st.st-big .hrv-big-head{grid-area:2/1/3/-1}
html body.af-side #calView>.st.st-big .hrv-c-week{grid-area:3/1/4/9}
html body.af-side #calView>.st.st-big .hrv-c-wdays{grid-area:7/7/8/10}
html body.af-side #calView>.st.st-big .hrv-c-cal{grid-area:3/9/5/13}
html body.af-side #calView>.st.st-big .hrv-c-hours{grid-area:4/1/5/9}
html body.af-side #calView>.st.st-big .home-board>.hb-projects{grid-area:5/1/6/-1}
html body.af-side #calView>.st.st-big .home-board>.hb-upcoming{grid-area:6/1/7/5}
html body.af-side #calView>.st.st-big .home-board>.hb-routines{grid-area:6/5/7/13}
html body.af-side #calView>.st.st-big .hrv-c-pens{grid-area:7/1/8/4}
html body.af-side #calView>.st.st-big .hrv-c-marks{grid-area:7/4/8/7}
html body.af-side #calView>.st.st-big .hrv-c-trend{grid-area:7/10/8/13}
/* 자리 — 세로 */
html body.tab-port #calView>.st.st-big .hrv-c-week{grid-area:3/1/4/2}
html body.tab-port #calView>.st.st-big .hrv-c-cal{grid-area:3/2/5/3}
html body.tab-port #calView>.st.st-big .hrv-c-hours{grid-area:4/1/5/2}
html body.tab-port #calView>.st.st-big .home-board>.hb-projects{grid-area:5/1/6/-1}
html body.tab-port #calView>.st.st-big .home-board>.hb-upcoming{grid-area:6/1/7/2}
html body.tab-port #calView>.st.st-big .home-board>.hb-routines{grid-area:6/2/7/3}
html body.tab-port #calView>.st.st-big .hrv-c-pens{grid-area:7/1/8/2}
html body.tab-port #calView>.st.st-big .hrv-c-marks{grid-area:7/2/8/3}
html body.tab-port #calView>.st.st-big .hrv-c-trend{grid-area:8/1/9/2}
html body.tab-port #calView>.st.st-big .hrv-c-wdays{grid-area:8/2/9/3}
/* 10/17 '이번 달' 카드(아이폰 리뷰에만 있던 이번 달 달력·기록일·범례·D-day): 펼쳤을 때만, 맨 아래 한 줄 전체 */
html body.af-side #calView>.st.st-big .hrv-c-month{grid-area:8/1/9/-1}
html body.tab-port #calView>.st.st-big .hrv-c-month{grid-area:9/1/10/-1}
html body:is(.af-side,.tab-port) #calView>.st.st-big .hrv-big:not(.is-open) .hrv-c-month,html body:is(.af-side,.tab-port) #calView>.st.st-big.st-measure .hrv-c-month{display:none!important}
html body:is(.af-side,.tab-port) #calView>.st.st-big .hrv-c-month .hrv-month-wrap{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:22px;align-items:start}
html body:is(.af-side,.tab-port) #calView>.st.st-big .hrv-c-month .hrv-month-totals{grid-template-columns:repeat(2,minmax(0,1fr));margin:0}
html body:is(.af-side,.tab-port) #calView>.st.st-big .hrv-c-month .hrv-legend{margin-top:10px}
/* 접힘 = 한 화면 */
html body.af-side #calView>.st.st-big:is(.st-measure,:not(:has(.hrv-big.is-open,.htb-row-fold[aria-expanded="true"]))){height:auto;min-height:calc(100dvh - 28px - var(--sat,0px) - env(safe-area-inset-bottom,0px));grid-template-rows:auto auto clamp(144px,18vh,200px) clamp(104px,11vh,126px) auto minmax(auto,1fr);overflow:visible}
html body.tab-port #calView>.st.st-big:is(.st-measure,:not(:has(.hrv-big.is-open,.htb-row-fold[aria-expanded="true"]))){height:auto;min-height:calc(100dvh - var(--app-frame-top,102px) - 12px - 90px - env(safe-area-inset-bottom,0px));grid-template-rows:auto auto clamp(160px,15vh,230px) clamp(104px,9vh,132px) auto minmax(auto,1fr);overflow:visible}
/* 무엇이든 펼침 = 위 줄은 잰 높이 그대로, 펼친 줄만 늘어나고 화면이 아래로 길어진다 */
html body:is(.af-side,.tab-port) #calView>.st.st-big:has(.hrv-big.is-open,.htb-row-fold[aria-expanded="true"]):not(.st-measure){height:auto;overflow:visible;--rs:var(--r5,0px);--rb:var(--r6,0px)}
html body.af-side #calView>.st.st-big:has(.hrv-big.is-open,.htb-row-fold[aria-expanded="true"]):not(.st-measure){--rs:var(--r5,0px);--rb:var(--r6,0px);grid-template-rows:var(--r1,auto) var(--r2,auto) var(--r3,auto) var(--r4,auto) var(--ts,var(--r5,auto)) var(--tb,var(--r6,auto)) auto}
html body.tab-port #calView>.st.st-big:has(.hrv-big.is-open,.htb-row-fold[aria-expanded="true"]):not(.st-measure){grid-template-rows:var(--r1,auto) var(--r2,auto) var(--r3,auto) var(--r4,auto) var(--ts,var(--r5,auto)) var(--tb,var(--r6,auto)) auto auto}
html body:is(.af-side,.tab-port) #calView>.st.st-big:has(.hb-projects .htb-row-fold[aria-expanded="true"]):not(.st-measure){--ts:minmax(var(--rs),auto)}
html body:is(.af-side,.tab-port) #calView>.st.st-big:has(:is(.hb-upcoming,.hb-routines) .htb-row-fold[aria-expanded="true"]):not(.st-measure){--tb:minmax(var(--rb),auto)}
html body:is(.af-side,.tab-port) #calView>.st.st-big .home-board>section:has(.htb-row-fold[aria-expanded="true"]){overflow:visible}
html body:is(.af-side,.tab-port) #calView>.st.st-big.st-measure .home-board>section{overflow:hidden}

/* ── 펼치기 줄·리뷰 머리 얇게 (한 화면에 시즌·일정·루틴이 다 들어가게) ── */
html body:is(.af-side,.tab-port) #calView>.st.st-big :is(.htb-week .htb-row-fold,.hb-project-fold-wrap .hb-project-fold){min-height:30px;margin:4px 0 0;padding:6px 0 0}
html body:is(.af-side,.tab-port) #calView>.st.st-big .hrv-big-head{gap:8px;padding:12px 18px}
html body:is(.af-side,.tab-port) #calView>.st.st-big .hrv-big-stats .hrv-execution>strong{font-size:clamp(20px,1.9vw,28px)}
@media (min-height:521px) and (max-height:899px){
  /* 아이패드 11·mini 가로: 리뷰 머리를 한 줄로(제목 · 숫자 6개) — 그만큼 리뷰 그림 칸이 커진다 */
  html body.af-side #calView>.st.st-big{--bh-gap:10px}
  html body.af-side #calView>.st.st-big .hrv-big-head{flex-direction:row;align-items:center;gap:18px;padding:10px 18px}
  html body.af-side #calView>.st.st-big .hrv-big-head .hrv-heading{flex:none;display:flex;align-items:center;gap:8px}
  html body.af-side #calView>.st.st-big .hrv-big-head .hrv-heading-rule{display:none}
  html body.af-side #calView>.st.st-big .hrv-big-stats{flex:1 1 auto;min-width:0}
  html body.af-side #calView>.st.st-big .hrv-big-stats .hrv-execution>strong{font-size:clamp(18px,1.7vw,24px)}
  html body.af-side #calView>.st.st-big .hrv-c-hours{padding-top:11px;padding-bottom:10px}
  html body.af-side #calView>.st.st-big .hrv-c-hours .hrv-card-head{margin-bottom:6px}
  html body.af-side #calView>.st.st-big .hrv-hour-cell i{height:16px}
  html body.af-side #calView>.st.st-big .hrv-hours-top{margin-top:5px}
}

/* ── 아이폰 가로(높이 520 이하): 같은 판, 작게 · 리뷰 카드(이번 주·요일별·35일·시간대·형광펜별·할 일 표시·12주)는 모두 '펼쳐 보기' 쪽으로
   (사용자 "아이폰 가로는 이거 빼자 · 펼치기에 들어가게") → 접힘: [학교] [리뷰 숫자] [시즌] [일정 | 루틴] · 펼침: 그 아래에 리뷰 카드 ── */
@media (max-height:520px){
  html body.af-side #calView>.st.st-big{--bh-gap:5px}
  html body.af-side #calView>.st.st-big .home-board>.hb-projects{grid-area:3/1/4/-1}
  html body.af-side #calView>.st.st-big .home-board>.hb-upcoming{grid-area:4/1/5/5}
  html body.af-side #calView>.st.st-big .home-board>.hb-routines{grid-area:4/5/5/13}
  html body.af-side #calView>.st.st-big .hrv-c-week{grid-area:5/1/6/5}
  html body.af-side #calView>.st.st-big .hrv-c-wdays{grid-area:5/5/6/9}
  html body.af-side #calView>.st.st-big .hrv-c-cal{grid-area:5/9/6/13}
  html body.af-side #calView>.st.st-big .hrv-c-pens{grid-area:6/1/7/5}
  html body.af-side #calView>.st.st-big .hrv-c-marks{grid-area:6/5/7/9}
  html body.af-side #calView>.st.st-big .hrv-c-trend{grid-area:6/9/7/13}
  html body.af-side #calView>.st.st-big .hrv-c-hours{grid-area:7/1/8/-1}
  html body.af-side #calView>.st.st-big .hrv-big:not(.is-open) :is(.hrv-c-week,.hrv-c-wdays,.hrv-c-cal,.hrv-c-hours){display:none}
  html body.af-side #calView>.st.st-big.st-measure :is(.hrv-c-week,.hrv-c-wdays,.hrv-c-cal,.hrv-c-hours){display:none!important}
  html body.af-side #calView>.st.st-big .hrv-big :is(.hrv-c-week,.hrv-c-wdays,.hrv-c-cal){height:168px}
  html body.af-side #calView>.st.st-big:is(.st-measure,:not(:has(.hrv-big.is-open,.htb-row-fold[aria-expanded="true"]))){height:auto;min-height:0;grid-template-rows:auto auto auto auto;overflow:visible}
  html body.af-side #calView>.st.st-big:has(.hrv-big.is-open,.htb-row-fold[aria-expanded="true"]):not(.st-measure){--rs:var(--r3,0px);--rb:var(--r4,0px);grid-template-rows:var(--r1,auto) var(--r2,auto) var(--ts,var(--r3,auto)) var(--tb,var(--r4,auto)) auto auto auto}
  /* 작게 */
  html body.af-side #calView>.st.st-big>.hb-school .wk-infobar{margin-bottom:0;padding-top:5px;padding-bottom:5px}
  html body.af-side #calView>.st.st-big :is(.hrv-big-head,.hrv-card){padding:8px 11px;border-radius:14px}
  html body.af-side #calView>.st.st-big .hrv-big-head{flex-direction:row;align-items:center;gap:12px;padding:4px 12px}
  html body.af-side #calView>.st.st-big .hrv-big-head .hrv-heading{flex:none;display:flex;align-items:center;gap:6px}
  html body.af-side #calView>.st.st-big .hrv-big-head .hrv-heading-rule{display:none}
  html body.af-side #calView>.st.st-big .hrv-big-head .hrv-title{font-size:15px}
  html body.af-side #calView>.st.st-big .hrv-big-fold{font-size:11.5px;padding:2px 0}
  html body.af-side #calView>.st.st-big .hrv-big-stats{flex:1 1 auto;min-width:0}
  html body.af-side #calView>.st.st-big .hrv-big-stats .hrv-execution{padding:0 9px}
  html body.af-side #calView>.st.st-big .hrv-big-stats .hrv-execution>span{font-size:9px}
  html body.af-side #calView>.st.st-big .hrv-big-stats .hrv-execution>strong{font-size:14.5px;line-height:1.1}
  html body.af-side #calView>.st.st-big .hrv-card-head{margin:0 0 4px}
  html body.af-side #calView>.st.st-big .hrv-card-head h3{font-size:12.5px}
  html body.af-side #calView>.st.st-big .hrv-card-head small{font-size:10px}
  html body.af-side #calView>.st.st-big .hrv-c-week .hrv-chart-key{margin:-20px 0 4px;font-size:9.5px}
  html body.af-side #calView>.st.st-big .hrv-cal35{gap:2px}
  html body.af-side #calView>.st.st-big .hrv-cal35-w{font-size:8.5px}
  html body.af-side #calView>.st.st-big .hrv-cal35-day{padding:1px 3px;border-radius:4px}
  html body.af-side #calView>.st.st-big .hrv-cal35-day small{font-size:8px}
  html body.af-side #calView>.st.st-big .home-board>section{padding:7px 11px}
  html body.af-side #calView>.st.st-big .home-board .hb-section-heading{margin-bottom:4px}
  html body.af-side #calView>.st.st-big .home-board .hb-section-heading h2{font-size:13.5px}
  html body.af-side #calView>.st.st-big .home-board .hb-heading-actions :is(button,.hb-tool){min-height:26px;height:26px;padding:2px 6px}
  html body.af-side #calView>.st.st-big .home-board :is(.hb-project-row,.hb-project-cells,.hb-project-cell,.hb-create-cell,.hb-project-gutter-row){height:32px;min-height:32px}
  html body.af-side #calView>.st.st-big .home-board .hb-agenda-row{min-height:32px;padding:2px 0}
  html body.af-side #calView>.st.st-big :is(.htb-week .htb-row-fold,.hb-project-fold-wrap .hb-project-fold){min-height:24px;margin:2px 0 0;padding:4px 0 0;font-size:11px}
}

/* ── 10/16 다가오는 일정 체크 (루틴 칸처럼 칠해지고 ○) ── */
.home-board .hb-agenda-line{display:flex;align-items:center;gap:6px;border-bottom:1px solid var(--shell-line,#e5e5e5)}
.home-board .hb-agenda-line>.hb-agenda-row{flex:1 1 auto;min-width:0;border-bottom:0}
.home-board .hb-agenda-check{flex:none;display:grid;place-items:center;width:30px;height:30px;margin:0 0 0 -4px;padding:0;border:0;background:none;cursor:pointer;color:#c9cac4;-webkit-tap-highlight-color:transparent}
.home-board .hb-agenda-check:disabled{cursor:default}
.home-board .hb-agenda-mark{position:relative;display:grid;place-items:center;width:22px;height:22px;overflow:hidden;isolation:isolate}
.home-board .hb-agenda-mark>span{position:relative;z-index:1;display:block;width:15px;height:15px;box-sizing:border-box;border:1.6px solid currentColor;border-radius:50%}
.home-board .hb-agenda-mark:before{content:"";position:absolute;inset:2px 0;border-radius:2px;opacity:.25;background:var(--hb-routine-ink,#858780);transform:scaleX(0);transform-origin:left center}
.home-board .hb-agenda-check.is-done{color:var(--accent,#de7786)}
.home-board .hb-agenda-check.is-done .hb-agenda-mark:before{transform:scaleX(1)}
.home-board .hb-agenda-mark.is-filling:before{animation:hb-agenda-fill var(--hb-hold-ms,320ms) linear both;animation-delay:var(--hb-motion-delay,0ms)}
.home-board .hb-agenda-mark.is-unfilling:before{animation:hb-agenda-fill var(--hb-hold-ms,320ms) linear reverse both;animation-delay:var(--hb-motion-delay,0ms)}
.home-board .hb-agenda-line.is-done .hb-agenda-title{color:var(--shell-muted,#9a9ea4)}
@keyframes hb-agenda-fill{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@media(prefers-reduced-motion:reduce){.home-board .hb-agenda-mark:before{animation:none!important}}

/* 10/17 아이패드 하루 시간대 = 한 칸 폭 (사용자 "너무 길어 · 쫙 좁혀 줘") — 시각 숫자는 3시간마다 */
@media (min-height:521px){
  html body:is(.af-side,.tab-port) #calView>.st.st-big .hrv-hours{gap:2px}
  html body.tab-port #calView>.st.st-big .hrv-hour-cell:not(:nth-child(3n+1)) b{visibility:hidden}
  html body:is(.af-side,.tab-port) #calView>.st.st-big .hrv-hour-cell b{overflow:visible;white-space:nowrap}
}


/* 10/17 접힌 동안: 요일별 평균도 펼치기 쪽 (사용자 "가운데 없애고") */
html body:is(.af-side,.tab-port) #calView>.st.st-big .hrv-big:not(.is-open) .hrv-c-wdays{display:none}
html body:is(.af-side,.tab-port) #calView>.st.st-big.st-measure .hrv-c-wdays{display:none!important}
/* 하루 시간대 띠·이번 주 막대가 낮아진 칸에 맞게 */
@media (min-height:521px){
  html body:is(.af-side,.tab-port) #calView>.st.st-big .hrv-c-hours{padding-top:12px;padding-bottom:10px}
  html body:is(.af-side,.tab-port) #calView>.st.st-big .hrv-c-hours .hrv-card-head{margin-bottom:8px}
  html body:is(.af-side,.tab-port) #calView>.st.st-big .hrv-hour-cell i{height:18px}
  html body:is(.af-side,.tab-port) #calView>.st.st-big .hrv-hours-top{margin-top:6px}
}
/* 10/17 과목 고르기 목록: 3개(104px)에서 자르지 않고 자리 있는 만큼 다 · 넘치면 손가락으로 위아래 (사용자 "과목 3개밖에 안 뜨는데 · 밑에 드래그도 안 되고") */
html body #modeSubjRow .msr-list{max-height:none;-webkit-overflow-scrolling:touch}

/* 10/17 다가오는 일정 체크 = 오른쪽 끝 네모칸 (일간 TASKS 칸처럼 · 끝내면 ○ + 루틴처럼 칠함) (사용자 "네모칸으로 · 오른쪽 끝으로 통일감 있게 · 루틴이랑 같이") */
.home-board .hb-agenda-line>.hb-agenda-check{order:3;margin:0 -3px 0 6px}
.home-board .hb-agenda-mark{width:20px;height:20px;box-sizing:border-box;border:1.5px dotted var(--faint2,#c9cac4);border-radius:3px}
.home-board .hb-agenda-mark>span{width:11px;height:11px;opacity:0}
.home-board .hb-agenda-check.is-done .hb-agenda-mark{border-style:solid;border-color:color-mix(in srgb,var(--accent,#de7786) 40%,transparent)}
.home-board .hb-agenda-check.is-done .hb-agenda-mark>span{opacity:1}
.home-board .hb-agenda-mark:before{inset:1px;border-radius:1px}

/* 10/17 아이패드 11 가로: 하루 시간대 칸을 조금 낮게 (한 화면에 들어가게) */
@media (min-height:521px) and (max-height:899px){html body.af-side #calView>.st.st-big .hrv-hour-cell i{height:15px}}
/* 10/17 홈 다가오는 일정·루틴: 다 들어가고도 칸이 남으면 줄을 키워 칸을 채운다 (planner.js fitHomeLists 가 --hb-fill-h 를 정한다 · 일정 최대 56 · 루틴 84px) */
html body .home-board .hb-upcoming .hb-agenda-line{min-height:var(--hb-fill-h,auto)}
html body .home-board .hb-routines .htb-week tbody tr{height:var(--hb-fill-h,auto)}
/* 10/17 가로 큰 화면 오른쪽 막대: 날짜 목록(일)은 위 머리와 아래 단추 묶음 사이 세로 가운데 · 위 머리 간격 조금 넓게 (사용자 "옆 메뉴가 답답 · 날짜는 항상 가운데")
   아래 여백은 단추 묶음 높이만큼 (planner.js fitRail 이 --af-dock-h · 전엔 330px 고정이라 묶음 410px 과 어긋났다) */
html body.app-frame.af-side #tabbar{padding-bottom:calc(var(--af-dock-h,318px) + 12px)}
html body.app-frame.af-side #tabbar .af-header-main{height:100%;box-sizing:border-box}
html body.app-frame.af-side #tabbar .af-week-strip{margin-top:auto;margin-bottom:auto}
html body.app-frame.af-side #tabbar .af-title-row{gap:14px 0}

/* 10/18 막대 위 기호 단추 4개(로고=비전보드 · 오늘 · 공유 · 설정)는 가로 막대에서 2×2 판으로.
   한 줄씩 쌓으면 아이패드 가로(높이 820)에서 이번 주 날짜와 겹치고, 아이폰 가로는 아래 단추 묶음까지 내려갔다 */
html body.app-frame.af-side #tabbar .af-title-row{flex:none;column-gap:6px}
@media (min-height:741px){
  html body.app-frame.af-side #tabbar .af-title-row{row-gap:10px}
}
@media (max-height:620px){
  html body.app-frame.af-side #tabbar{padding-bottom:calc(var(--af-dock-h,236px) + 6px)}
  html body.app-frame.af-side #tabbar .af-title-row{row-gap:6px}
  html body.app-frame.af-side #tabbar :is(.af-logo,.af-today,.af-share,.af-settings){width:28px;height:28px;min-width:28px;border-radius:8px}
  html body.app-frame.af-side #tabbar :is(.af-logo,.af-today,.af-share,.af-settings) svg{width:16px;height:16px}
  html body.app-frame.af-side #tabbar .af-side-nav button{height:26px}
}
