:root{
  /* B안: 포레스트 그린(주색) · 금색(포인트). 변수 이름은 예전 그대로(navy)지만 값은 초록 */
  --navy:#54331d; --navy-deep:#34200f; --navy-soft:#f0e7e0; --gold:#d9c27c;
  --bg:#f6f3f0; --card:#fff; --line:#e4ddd6; --text:#241a13; --sub:#75685f;
  --red:#d64545; --red-bg:#fdecec;
  --blue:#2f6bda; --blue-bg:#eaf1fe;
  --yellow:#a86f00; --yellow-bg:#fbf0cf;
  --green:#2f7d57; --green-bg:#e1f0e7;
  --r:12px; --tab-h:60px;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--text);font:15px/1.55 'Pretendard Variable',Pretendard,-apple-system,'Apple SD Gothic Neo','Malgun Gothic','Noto Sans KR',sans-serif;letter-spacing:-.01em}
button,input,select,textarea{font:inherit;color:inherit}
a{color:var(--navy)}
h1,h2,h3{margin:0;line-height:1.3}
h1{font-size:20px} h2{font-size:17px} h3{font-size:15px}
.boot{padding:40px;text-align:center;color:var(--sub)}
:focus-visible{outline:3px solid #b99a7f;outline-offset:2px}
[hidden]{display:none!important}

/* ---------- 화면 틀 ---------- */
.shell{min-height:100vh}
.topbar{position:sticky;top:0;z-index:20;height:54px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 14px}
.brand{display:flex;align-items:center;gap:9px;font-weight:700;color:var(--navy);font-size:16px;white-space:nowrap}
@media(max-width:560px){#who{display:none}}
.brand-mark{width:36px;height:36px;border-radius:8px;display:block;object-fit:cover}
.iconbtn{position:relative;width:40px;height:40px;border:0;background:none;border-radius:50%;display:grid;place-items:center;cursor:pointer;color:var(--text)}
.iconbtn:hover{background:var(--bg)}
.badge{position:absolute;top:4px;right:2px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--red);color:#fff;font-size:11px;font-weight:700;display:grid;place-items:center}
.main{padding:14px 14px calc(var(--tab-h) + 28px);max-width:980px;margin:0 auto}
.tabbar{position:fixed;left:0;right:0;bottom:0;z-index:20;height:var(--tab-h);background:#fff;border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(5,1fr);padding-bottom:env(safe-area-inset-bottom)}
.tab{border:0;background:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:11px;color:var(--sub);cursor:pointer;text-decoration:none;position:relative}
.tab[aria-current=page]{color:var(--navy);font-weight:700}
.tab .badge{top:6px;right:calc(50% - 20px)}
.side{display:none}
svg.ic{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
svg.ic.sm{width:18px;height:18px}
@media(min-width:900px){
  .shell{display:grid;grid-template-columns:232px 1fr;grid-template-rows:54px 1fr}
  .topbar{grid-column:1 / 3}
  .side{display:flex;flex-direction:column;gap:2px;padding:14px 10px;background:#fff;border-right:1px solid var(--line);position:sticky;top:54px;height:calc(100vh - 54px);overflow:auto}
  .side a{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:10px;color:var(--text);text-decoration:none;font-weight:500}
  .side a:hover{background:var(--bg)}
  .side a[aria-current=page]{background:var(--navy-soft);color:var(--navy);font-weight:700}
  .side .badge{position:static;margin-left:auto}
  .tabbar{display:none}
  .main{padding:26px 32px 60px;width:100%}
}

/* ---------- 공통 부품 ---------- */
.page-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:2px 0 14px;flex-wrap:wrap}
.page-head .actions{display:flex;gap:8px;flex-wrap:wrap}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:14px 16px;margin-bottom:12px}
.card.flush{padding:0;overflow:hidden}
.card h3{margin-bottom:8px}
.muted{color:var(--sub)}
.small{font-size:13px}
.row{display:flex;align-items:center;gap:10px}
.row.wrap{flex-wrap:wrap}
.grow{flex:1;min-width:0}
.stack>*+*{margin-top:10px}
.empty{padding:28px 16px;text-align:center;color:var(--sub)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px;padding:0 16px;border-radius:10px;border:1px solid var(--line);background:#fff;font-weight:600;cursor:pointer;text-decoration:none;color:var(--text);white-space:nowrap}
.btn:hover{background:#f6f1ec}
.btn.primary{background:var(--navy);border-color:var(--navy);color:#fff}
.btn.primary:hover{background:var(--navy-deep)}
.btn.danger{color:var(--red);border-color:#f0c4c4}
.btn.sm{min-height:34px;padding:0 12px;font-size:13px}
.btn.block{width:100%}
.btn[disabled]{opacity:.45;cursor:not-allowed}
.btn.primary[disabled]{background:#c9bdb3;border-color:#c9bdb3;color:#fff;opacity:1}  /* 아직 누를 수 없는 주요 버튼은 회색 */
.tag{display:inline-flex;align-items:center;gap:5px;height:24px;padding:0 9px;border-radius:12px;font-size:12px;font-weight:700;white-space:nowrap}
.tag::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}
.tag.red{background:var(--red-bg);color:var(--red)}
.tag.blue{background:var(--blue-bg);color:var(--blue)}
.tag.yellow{background:var(--yellow-bg);color:var(--yellow)}
.tag.green{background:var(--green-bg);color:var(--green)}
.tag.gray{background:#eee8e2;color:var(--sub)}
.seg{display:inline-flex;background:#ebe4dd;border-radius:10px;padding:3px}
.seg button{border:0;background:none;padding:6px 14px;border-radius:8px;font-weight:600;color:var(--sub);cursor:pointer;min-height:34px}
.seg button[aria-pressed=true]{background:#fff;color:var(--navy);box-shadow:0 1px 2px rgba(0,0,0,.08)}

/* ---------- 입력 ---------- */
.field{display:block;margin-bottom:14px}
.field>span.lbl{display:block;font-weight:600;margin-bottom:5px;font-size:14px}
.field .req{color:var(--red);margin-left:3px}
.field .hint{display:block;font-size:12.5px;color:var(--sub);margin-top:4px}
input[type=text],input[type=email],input[type=password],input[type=number],input[type=date],input[type=time],input[type=tel],input[type=search],select,textarea{width:100%;min-height:44px;padding:9px 12px;border:1px solid #d6cdc5;border-radius:10px;background:#fff}
textarea{min-height:110px;resize:vertical;line-height:1.6}
input::placeholder,textarea::placeholder{color:#a0aba5}
input.err,select.err,textarea.err{border-color:var(--red);background:#fff8f8}
.err-text{color:var(--red);font-size:13px;margin-top:4px}
.inline{display:flex;gap:8px;align-items:center}
.inline>*{min-width:0}
.check{display:flex;align-items:center;gap:8px;min-height:36px;cursor:pointer}
.check input{width:18px;height:18px;accent-color:var(--navy)}

/* ---------- 로그인 ---------- */
.auth{min-height:100vh;display:grid;place-items:center;padding:20px}
.auth-box{width:100%;max-width:400px}
.auth-logo{text-align:center;margin-bottom:22px}
.auth-logo .brand-mark{width:88px;height:88px;border-radius:20px;margin:0 auto 12px}
.auth-logo h1{font-size:22px;color:var(--navy)}
.auth-box .card{padding:20px}
.notice{background:var(--navy-soft);color:var(--navy);border-radius:10px;padding:12px 14px;font-size:14px;margin-bottom:14px}
.notice.warn{background:var(--yellow-bg);color:#6f4b00}

/* ---------- 목록 ---------- */
.item{display:flex;gap:12px;align-items:flex-start;padding:13px 16px;border-bottom:1px solid var(--line);text-decoration:none;color:inherit;cursor:pointer;background:#fff}
.item:last-child{border-bottom:0}
.item:hover{background:#faf8f6}
.item .when{width:64px;flex:none;text-align:center;line-height:1.25}
.item .when b{display:block;font-size:20px}
.item .when span{font-size:12px;color:var(--sub)}
.item .title{font-weight:700}
.item.unread{background:#f7f0ea}
.group-title{margin:18px 2px 8px;font-size:13px;font-weight:700;color:var(--sub)}
.stat-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-bottom:12px}
@media(min-width:700px){.stat-grid{grid-template-columns:repeat(4,1fr)}}
.stat{background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:12px 14px;text-align:left;cursor:pointer;display:block;color:inherit;text-decoration:none}
.stat b{display:block;font-size:26px;line-height:1.2;margin-top:4px}
.stat.red b{color:var(--red)} .stat.blue b{color:var(--blue)} .stat.yellow b{color:var(--yellow)} .stat.green b{color:var(--green)}
.kv{display:grid;grid-template-columns:96px 1fr;gap:8px 10px;margin:0}
.kv dt{color:var(--sub);font-size:14px}
.kv dd{margin:0;word-break:break-word;min-width:0}

/* ---------- 달력 ---------- */
.cal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.cal-head h2{font-size:18px}
.cal{display:grid;grid-template-columns:repeat(7,1fr);background:#fff;border:1px solid var(--line);border-radius:var(--r);overflow:hidden}
.cal .dow{padding:7px 0;text-align:center;font-size:12px;font-weight:700;color:var(--sub);border-bottom:1px solid var(--line);background:#faf8f6}
.cal .dow:first-child,.cal .day:nth-child(7n+8) .num{color:var(--red)}
.cal .day{min-height:64px;padding:4px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);cursor:pointer;background:#fff;text-align:left;border-left:0;border-top:0;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;position:relative;width:100%;overflow:hidden}
.cal .day:nth-child(7n+7){border-right:0}
.cal .day.out{background:#faf8f6}
.cal .day.out .num{color:#b9bfcb}
.cal .day.sel{background:var(--navy-soft)}
.cal .num{font-size:12.5px;font-weight:600;display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;align-self:flex-start}
.cal .day.today .num{color:var(--navy);font-weight:800}
.cal .day.today::after{content:"";position:absolute;top:0;right:6px;width:12px;height:19px;background:var(--gold);clip-path:polygon(0 0,100% 0,100% 100%,50% 76%,0 100%)}
.chip{display:none;margin-top:2px;padding:1px 5px;border-radius:5px;font-size:11px;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:600}
.chip.red{background:var(--red-bg);color:var(--red)} .chip.blue{background:var(--blue-bg);color:var(--blue)}
.chip.yellow{background:var(--yellow-bg);color:var(--yellow)} .chip.green{background:var(--green-bg);color:var(--green)}
.dots{display:flex;gap:3px;flex-wrap:wrap;margin-top:3px}
.dots i{width:7px;height:7px;border-radius:50%;display:block}
.dots i.red{background:var(--red)} .dots i.blue{background:var(--blue)} .dots i.yellow{background:#e0a100} .dots i.green{background:var(--green)}
.more{font-size:11px;color:var(--sub);display:none}
@media(min-width:700px){
  .cal .day{min-height:104px}
  .chip{display:block}
  .dots{display:none}
  .more{display:block}
}
.legend{display:flex;gap:12px;flex-wrap:wrap;margin:10px 2px;font-size:12.5px;color:var(--sub)}

/* ---------- 표 ---------- */
.tablewrap{overflow:auto;background:#fff;border:1px solid var(--line);border-radius:var(--r)}
table.t{border-collapse:collapse;width:100%;font-size:13.5px}
table.t th,table.t td{padding:9px 10px;border-bottom:1px solid var(--line);text-align:left;white-space:nowrap;vertical-align:middle}
table.t th{background:#faf8f6;font-size:12.5px;color:var(--sub);position:sticky;top:0;text-align:center}  /* 항목명은 가운데, 내용은 왼쪽 */
table.t tr:last-child td{border-bottom:0}
.req{color:var(--red)}
table.t td.wrapcell{white-space:normal;min-width:160px}
table.grid input,table.grid select{min-height:36px;padding:4px 8px;border-radius:7px;font-size:13.5px}
table.grid td{padding:4px}
table.stat td:not(:first-child){text-align:center;white-space:nowrap}
table.stat td:first-child{font-weight:600}
.dotline{display:flex;align-items:center;gap:6px;min-width:150px}
.dotline b{font-size:13.5px}
.dotline .track{position:relative;flex:1;min-width:84px;height:2px;background:var(--line);border-radius:2px}
.dotline .track i{position:absolute;top:50%;width:12px;height:12px;margin:-6px 0 0 -6px;border-radius:50%;background:var(--navy)}
.chart{margin-top:6px}
table.grid td.n{color:var(--sub);text-align:center;width:36px}

/* ---------- 모달·토스트 ---------- */
.overlay{position:fixed;inset:0;background:rgba(30,18,10,.5);z-index:50;display:grid;place-items:center;padding:16px}
.modal{background:#fff;border-radius:16px;width:100%;max-width:480px;max-height:90vh;overflow:auto;padding:20px}
.modal.wide{max-width:640px}
.modal h2{margin-bottom:12px}
.modal .actions{display:flex;gap:8px;justify-content:flex-end;margin-top:16px}
#toasts{position:fixed;left:0;right:0;bottom:calc(var(--tab-h) + 14px);display:flex;flex-direction:column;align-items:center;gap:8px;z-index:60;pointer-events:none;padding:0 14px}
.toast{background:#1f2a25;color:#fff;padding:11px 16px;border-radius:10px;font-size:14px;max-width:420px;box-shadow:0 6px 20px rgba(0,0,0,.2)}
.toast.err{background:#a52c2c}
@media(min-width:900px){#toasts{bottom:24px}}

.qa-row{border:1px solid var(--line);border-radius:10px;padding:10px;margin-bottom:8px;background:#faf8f6}
.qa-row>*+*{margin-top:6px}
.pre{white-space:pre-wrap;word-break:break-word}
.att{margin-top:10px;display:flex;flex-direction:column;gap:8px}
.att-photo{display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.att-img{max-width:100%;max-height:420px;border-radius:10px;border:1px solid var(--line);display:block}
.photo-edit{display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:8px;margin:8px 0}
.photo-edit .thumb{display:flex;flex-direction:column;gap:4px}
.photo-edit .thumb img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:10px;border:1px solid var(--line);background:#eee8e2;display:block}
.photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px}
.att-file{display:flex;align-items:center;gap:8px;width:100%;min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:10px;background:#faf8f6;text-align:left;cursor:pointer;color:var(--text)}
.att-file span:first-of-type{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.section-note{font-size:12px;font-weight:600;color:var(--navy);background:var(--navy-soft);padding:2px 8px;border-radius:10px;margin-left:8px;vertical-align:middle}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* ---------- 일지 사진 슬라이드 · 크게 보기 ---------- */
.slider{max-width:560px}
.slider-stage{position:relative}
.slider-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;border-radius:12px;background:#eaf0ec;-webkit-overflow-scrolling:touch}
.slider-track::-webkit-scrollbar{display:none}
.slide{flex:0 0 100%;scroll-snap-align:center;display:grid;place-items:center;min-height:220px}
.slide-img{max-width:100%;max-height:420px;object-fit:contain;cursor:zoom-in;display:block}
.slider-btn{position:absolute;top:50%;transform:translateY(-50%);width:36px;height:36px;border-radius:50%;border:0;background:rgba(20,43,35,.62);color:#fff;display:grid;place-items:center;cursor:pointer}
.slider-btn.prev{left:8px}.slider-btn.next{right:8px}
.slider-count{font-size:13px;font-weight:600;color:var(--sub);white-space:nowrap}
.lightbox{position:fixed;inset:0;z-index:80;background:rgba(10,18,14,.93);display:grid;place-items:center;padding:16px}
.lb-img{max-width:100%;max-height:calc(100vh - 110px);object-fit:contain;border-radius:6px}
.lb-cap{position:absolute;bottom:18px;left:0;right:0;text-align:center;color:#fff;font-size:14px}
.lb-close,.lb-nav{position:absolute;border:0;border-radius:50%;background:rgba(255,255,255,.16);color:#fff;display:grid;place-items:center;cursor:pointer}
.lb-close{top:12px;right:12px;width:44px;height:44px}
.lb-nav{top:50%;transform:translateY(-50%);width:48px;height:48px}
.lb-nav.prev{left:10px}.lb-nav.next{right:10px}

/* ---------- 일지 첨부 파일 ---------- */
.file-list{display:flex;flex-direction:column;gap:8px;margin-top:8px}
.file-row{display:flex;align-items:center;gap:10px;padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:#faf8f6}
.file-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* ---------- 3차 수정: 이름 눌러서 보기 · 강사별 표 구분 · 강사 현황 ---------- */
.linkbtn,.name-link{font-weight:700;color:var(--navy);text-decoration:underline;text-decoration-color:#9db7aa;text-underline-offset:3px}
.linkbtn:hover,.name-link:hover{text-decoration-color:var(--navy)}
.linkbtn{border:0;background:none;padding:0;font:inherit;font-weight:700;cursor:pointer;text-align:left;min-height:30px}
.name-link{display:inline-block;padding:6px 0}
.sdot{display:inline-block;width:10px;height:10px;border-radius:50%;flex:none}
.sdot.red{background:var(--red)} .sdot.blue{background:var(--blue)} .sdot.yellow{background:#e0a100} .sdot.green{background:var(--green)}
.legend .sdot{margin-right:5px;vertical-align:middle}
.mblock{margin-bottom:10px}
.mhead{display:flex;align-items:center;gap:10px;width:100%;min-height:48px;padding:8px 14px;border:1px solid var(--line);border-radius:var(--r);background:#fff;cursor:pointer;text-align:left}
.mhead[aria-expanded=true]{border-bottom-left-radius:0;border-bottom-right-radius:0}
.mlist{border-top:0;border-top-left-radius:0;border-top-right-radius:0;margin-bottom:0}
.drow{display:flex;align-items:center;gap:12px;padding:11px 14px;border-bottom:1px solid var(--line);text-decoration:none;color:inherit;background:#fff}
.drow:last-child{border-bottom:0}
.drow:hover{background:#faf8f6}
.dday{width:76px;flex:none;font-weight:700;font-size:14px}
table.stat.inst th.grp{text-align:center;font-size:12.5px;font-weight:700;border-bottom:1px solid var(--line);background:#f1f3f2;color:var(--sub)}
table.stat.inst th.grp.b{background:var(--navy-soft);color:var(--navy)}
table.stat.inst th.b{background:#e9f2ed}
table.stat.inst td.b{background:#f4f9f6}
table.stat.inst th:nth-child(6),table.stat.inst td:nth-child(6){border-left:2px solid #c3d8cc}
table.stat.inst th.grp.b{border-left:2px solid #c3d8cc}

/* ---------- 홈 개편: 연간 현황(작게) · 오늘 강의 카드 · 이번 주 길 · 이달의 강사 현황 ---------- */
.ystrip{margin:0 0 12px}
.ytitle{font-size:12.5px;font-weight:700;color:var(--sub);margin:0 2px 6px}
.yrow{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));background:#fff;border:1px solid var(--line);border-radius:var(--r)}
.ycell{padding:8px 4px;border-left:1px solid var(--line);text-align:center;text-decoration:none;color:inherit;display:block}
.ycell:first-child{border-left:0}
.ylab{display:block;font-size:11px;color:var(--sub);line-height:1.25}
.ycell b{font-size:17px;line-height:1.35}
.ycell.red b{color:var(--red)} .ycell.blue b{color:var(--blue)} .ycell.yellow b{color:var(--yellow)} .ycell.green b{color:var(--green)}
@media(min-width:700px){.ycell{display:flex;justify-content:space-between;align-items:baseline;padding:10px 16px;text-align:left}.ylab{font-size:13px}.ycell b{font-size:18px}}
.hero{background:var(--navy);color:#fff;border-radius:18px;padding:20px 20px 18px;position:relative;overflow:hidden;margin-bottom:12px}
.ribbon{position:absolute;top:0;right:22px;width:38px;height:54px;background:var(--gold);color:var(--navy-deep);font-size:11px;font-weight:800;text-align:center;padding-top:9px;line-height:1.25;clip-path:polygon(0 0,100% 0,100% 100%,50% 82%,0 100%)}
.hero .hd{display:flex;align-items:baseline;gap:8px;padding-right:46px}
.hero .hd b{font-size:52px;line-height:1;font-weight:800}
.hero .hd span{font-size:15px;opacity:.88}
.hero h2{font-size:19px;margin:12px 0 4px;color:#fff}
.hero p{margin:0;font-size:14px;opacity:.88;line-height:1.55}
.hact{display:flex;gap:8px;margin-top:16px}
.hact .btn{flex:1}
.btn.w{background:#fff;color:var(--navy-deep);border-color:#fff}
.btn.g{background:transparent;color:#fff;border-color:rgba(255,255,255,.45)}
@media(min-width:900px){.hero{max-width:600px}}
.road{display:flex;justify-content:space-between;position:relative;padding:2px 0 0;margin-bottom:6px}
.road::before{content:"";position:absolute;left:6%;right:6%;top:15px;height:2px;background:var(--line)}
.stop{position:relative;flex:1;text-align:center;font-size:12px;color:var(--sub);text-decoration:none;display:block;min-height:66px}
.stop .dot{display:block;width:14px;height:14px;border-radius:50%;background:var(--bg);border:2px solid #b8c4be;margin:9px auto 8px}
.stop.has .dot{background:var(--navy);border-color:var(--navy)}
.stop.today .dot{width:20px;height:20px;margin:6px auto 5px;background:var(--gold);border-color:var(--navy-deep)}
.stop b{display:block;font-size:15px;color:var(--text);margin-top:1px}
.stop em{display:block;font-style:normal;font-size:11px;font-weight:700;color:var(--navy)}
.todo{display:flex;align-items:center;gap:12px;background:#fff7e0;border:1px solid #f1dca0;border-radius:14px;padding:12px 14px;margin:12px 0;text-decoration:none;color:inherit}
.todo b{font-size:14px;display:block}
.todo span:not(.btn){font-size:12.5px;color:#7a5a00}
.sumrow{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));background:#fff;border:1px solid var(--line);border-radius:var(--r);margin-bottom:12px}
.sumrow>div{padding:12px 14px;border-left:1px solid var(--line)}
.sumrow>div:first-child{border-left:0}
.sumrow small{display:block;font-size:12px;color:var(--sub)}
.sumrow b{font-size:26px;line-height:1.25}
.sumrow b i{font-style:normal;font-size:13px;font-weight:500;color:var(--sub);margin-left:2px}
.pc-only{display:none}
@media(min-width:900px){.sumrow{grid-template-columns:repeat(4,minmax(0,1fr))}.pc-only{display:block}.sumrow b{font-size:30px}}
.dash2{display:grid;grid-template-columns:minmax(0,1fr);gap:4px}.dash2>*{min-width:0}
@media(min-width:900px){.dash2{grid-template-columns:minmax(0,.9fr) minmax(0,1.6fr);gap:18px;align-items:start}}
.trow{display:flex;align-items:center;gap:12px;padding:12px 14px;border-bottom:1px solid var(--line);min-height:60px;text-decoration:none;color:inherit;background:#fff}
.trow:last-child{border-bottom:0}
.trow .time{width:48px;font-weight:800;flex:none}
.trow.now{box-shadow:inset 4px 0 0 var(--gold)}
.st{font-size:12px;font-weight:700;display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.st::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}
.st.ok{color:var(--green)} .st.warn{color:var(--yellow)} .st.mu{color:var(--sub)}
.avatar{width:40px;height:40px;border-radius:50%;background:var(--navy-soft);color:var(--navy);display:grid;place-items:center;font-weight:800;flex:none}
.irow{display:flex;align-items:center;gap:12px;padding:10px 14px;border-bottom:1px solid var(--line);min-height:62px;text-decoration:none;color:inherit;background:#fff}
.irow:last-child{border-bottom:0}
.irow:hover,.trow:hover{background:#faf8f6}
.irow .grow strong{display:block;font-size:15px}
.irow .grow span{display:block;font-size:12.5px;color:var(--sub);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.irow .grow span.today{color:var(--navy);font-weight:700}
.nm{display:flex;gap:14px;text-align:center}
.nm div{width:34px}
.nm b{display:block;font-size:18px;line-height:1.2}
.nm small{font-size:11px;color:var(--sub)}
.nm.z b{color:#a3aca8;font-weight:600}
.m-only{display:block}
.d-only{display:none}
@media(min-width:900px){.m-only{display:none}.d-only{display:block}}
/* 통계 표가 숫자 카드(.stat) 모양을 같이 입어 생기던 안쪽 테두리·세로선 제거 */
table.stat{display:table;border:0;border-radius:0;padding:0;background:transparent;cursor:auto;width:100%}


/* ---------- 스케줄러 추가: 기록(사진·메모), 아래에서 올라오는 창, 월별 막대 ---------- */
.item .side{display:flex;flex-direction:column;align-items:flex-end;gap:4px}
.recmk{display:inline-flex;align-items:center;gap:3px;font-size:11.5px;color:var(--sub)}
.recmk svg.ic{width:14px;height:14px}
.photos{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.ph1{aspect-ratio:1;border-radius:8px;border:0;padding:0;background:#c9b8a6 center/cover no-repeat;display:block;width:100%;cursor:zoom-in;color:#fff}
.item>.ph1{width:56px;height:56px;flex:none;aspect-ratio:auto}
.thumbwrap{position:relative}
.thumbx{position:absolute;top:3px;right:3px;width:26px;height:26px;border:0;border-radius:50%;background:rgba(36,26,19,.7);color:#fff;display:grid;place-items:center;cursor:pointer;padding:0}
.thumbx svg.ic{width:14px;height:14px}
.tags{display:flex;gap:6px;flex-wrap:wrap}
.tg{font-size:12.5px;padding:5px 12px;border-radius:99px;border:1px solid var(--line);background:#fff;color:var(--text);cursor:pointer;font-weight:500}
.tg.on{background:var(--navy);border-color:var(--navy);color:#fff}
span.tg{cursor:default}
.clamp{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.sheet-wrap{position:fixed;inset:0;z-index:55}
.sheet-wrap .dim{position:absolute;inset:0;background:rgba(30,18,10,.5)}
.sheet{position:absolute;left:0;right:0;bottom:0;max-height:92vh;overflow:auto;background:var(--bg);border-radius:20px 20px 0 0;padding:10px 16px calc(18px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:10px;max-width:560px;margin:0 auto}
.sheet h2{font-size:17px}
.grab{width:38px;height:4px;border-radius:2px;background:#d3c9bf;margin:0 auto}
.cap{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.capbtn{background:#fff;border:1px solid var(--line);border-radius:10px;padding:12px 6px;text-align:center;font-size:13px;font-weight:700;color:var(--navy);display:flex;flex-direction:column;align-items:center;gap:3px;cursor:pointer}
.saved{font-size:12px;color:var(--green);text-align:center}
.saved.bad{color:var(--red)}
.sumrow.four{grid-template-columns:repeat(2,minmax(0,1fr))}
.sumrow.four>div:nth-child(3){border-left:0}
.sumrow b.sm{font-size:20px}
@media(min-width:700px){.sumrow.four{grid-template-columns:repeat(4,minmax(0,1fr))}.sumrow.four>div:nth-child(3){border-left:1px solid var(--line)}}
.bars{display:flex;gap:4px;align-items:flex-end;height:120px}
.bar{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;gap:3px;font-size:11px;color:var(--sub);min-width:0}
.bar i{display:block;width:100%;max-width:26px;background:var(--navy);border-radius:4px 4px 0 0;min-height:2px}
.bar em{font-style:normal;font-size:10.5px}
