/* 글꼴(/fonts/pretendard.css)은 index.html에서 같이 받음 (@import는 차례로 받아서 느림) */

/* ───────── 토큰 ───────── */
:root {
  --board: #1e3d33;      /* 칠판 */
  --board-2: #28503f;
  --board-ink: #e7efe9;
  --board-dim: #9bb4a8;
  --paper: #f5f6f2;      /* 배경 */
  --surface: #ffffff;
  --sunken: #eef0eb;
  --ink: #18211d;
  --ink-2: #3b4641;
  --muted: #6c7872;
  --line: #e1e5df;
  --line-2: #cfd6cf;
  --primary: #2b6a53;
  --primary-ink: #ffffff;
  --primary-soft: #e4efe9;
  --marker: #f3c73f;     /* 형광펜 */
  --marker-soft: #fdf3cf;
  --stamp: #cf3f35;      /* 빨간 도장 */
  --stamp-soft: #fbe7e5;
  --ok: #2b7d58;
  --ok-soft: #e3f2ea;
  --r-lg: 14px; --r: 10px; --r-sm: 7px;
  --shadow: 0 1px 2px rgba(24, 33, 29, .05), 0 4px 14px rgba(24, 33, 29, .05);
  --font: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  --c1: #3f7fbf; --c2: #d07a2d; --c3: #7a5bc0; --c4: #2f9a8a; --c5: #c4517a; --c6: #6f8f2f; --c7: #b8862b; --c8: #4c6fd1; --c9: #9a5a3c; --cx: #7c8781;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121815; --surface: #1a221e; --sunken: #141b17; --ink: #e8eeea; --ink-2: #c4cec8; --muted: #8f9c95;
    --line: #29332e; --line-2: #36423b; --primary: #58a886; --primary-soft: #1f3329; --marker-soft: #3a3214; --stamp-soft: #3b1f1c; --ok-soft: #183327;
    --board: #0f1f19; --board-2: #18302a; --shadow: none;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; }
.ic { flex: none; display: inline-block; vertical-align: -3px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); } .small { font-size: .86rem; } .tiny { font-size: .78rem; }
.hidden { display: none !important; }
.grow { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; gap: .5rem; } .row.wrap { flex-wrap: wrap; } .row.between { justify-content: space-between; } .row.end { justify-content: flex-end; }
.stack { display: flex; flex-direction: column; gap: .75rem; }
.error { color: var(--stamp); font-size: .88rem; margin: .4rem 0; } .error:empty { display: none; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ───────── 셸 ───────── */
.shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--board); color: var(--board-ink); padding: 18px 12px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px; }
.side-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 4px 4px 18px 10px; }
.side-top .brand { padding: 0; min-width: 0; flex: 1; }
.side-bell { position: relative; flex: none; width: 34px; height: 34px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); color: var(--board-ink); display: grid; place-items: center; cursor: pointer; transition: background .12s, color .12s, border-color .12s; }
.side-bell:hover { background: rgba(255, 255, 255, .15); color: #fff; border-color: rgba(255, 255, 255, .28); }
.side-bell .bell-dot { top: 6px; right: 6px; width: 8px; height: 8px; box-shadow: 0 0 0 2px var(--board); }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; color: #fff; font-weight: 800; font-size: 1.08rem; letter-spacing: -.02em; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--marker); color: var(--board); display: grid; place-items: center; font-weight: 900; font-size: .95rem; }
.nav-a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 9px; color: var(--board-ink); font-weight: 560; font-size: .95rem; }
.nav-a:hover { background: var(--board-2); text-decoration: none; }
.nav-a.on { background: rgba(255, 255, 255, .12); color: #fff; }
.nav-a .count { margin-left: auto; min-width: 22px; padding: 0 7px; height: 20px; border-radius: 99px; background: var(--marker); color: var(--board); font-size: .75rem; font-weight: 800; display: grid; place-items: center; }
.nav-sep { height: 1px; background: rgba(255, 255, 255, .1); margin: 10px 6px; }
.side-foot { margin-top: auto; padding: 10px 8px 6px 12px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; color: var(--board-dim); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.side-foot .side-me { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.side-foot b { color: #fff; display: block; font-weight: 650; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.side-logout { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 5px 9px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); color: var(--board-dim); font: inherit; font-size: .76rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .12s, color .12s, border-color .12s; }
.side-logout:hover { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .3); }
.main { padding: 28px 36px 64px; max-width: 1240px; width: 100%; }
.main.wide { max-width: 1720px; }
.mtop, .mnav { display: none; }

@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .main { padding: 16px 16px 96px; }
  .mtop { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--board); color: #fff; font-weight: 800; position: sticky; top: 0; z-index: 20; }
  .mtop .brand-mark { width: 26px; height: 26px; font-size: .85rem; }
  .mnav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .mnav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 6px; font-size: .72rem; color: var(--muted); position: relative; }
  .mnav a.on { color: var(--primary); font-weight: 700; }
  .mnav a:hover { text-decoration: none; }
  .mnav .dot { position: absolute; top: 5px; left: calc(50% + 8px); width: 8px; height: 8px; border-radius: 50%; background: var(--stamp); }
}

/* ───────── 페이지 헤더 ───────── */
.ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.ph h1 { font-size: 1.6rem; font-weight: 780; }
.ph .sub { color: var(--muted); margin-top: 4px; font-size: .93rem; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: .88rem; margin-bottom: 10px; }

.hello { margin: 4px 0 26px; }
.hello h1 { font-size: 2rem; font-weight: 800; line-height: 1.25; letter-spacing: -0.035em; }
.hello h1 .hl { background: linear-gradient(transparent 58%, var(--marker) 58%, var(--marker) 92%, transparent 92%); padding: 0 2px; }
.hello p { color: var(--muted); margin: 8px 0 0; }
@media (max-width: 900px) { .hello h1 { font-size: 1.5rem; } }

/* ───────── 면 ───────── */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.panel + .panel { margin-top: 16px; }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px 10px; }
.panel-h h2 { font-size: 1.02rem; font-weight: 720; display: flex; align-items: center; gap: 8px; }
.panel-b { padding: 6px 20px 20px; }
.panel-b.flush { padding: 0; }
.cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.cols > div { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.cols > div > div:empty { display: none; }
.cols > div > .panel + .panel { margin-top: 0; }
.cols-even { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.cols-aside { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
@media (max-width: 1100px) { .cols, .cols-aside { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .cols-even { grid-template-columns: minmax(0, 1fr); } }
.sticky { position: sticky; top: 20px; }

/* ───────── 버튼·입력 ───────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font-size: .9rem; font-weight: 620; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--sunken); text-decoration: none; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.btn.primary:hover { filter: brightness(1.07); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--sunken); }
.btn.danger { color: var(--stamp); }
.btn.danger.solid { background: var(--stamp); color: #fff; border-color: var(--stamp); }
.btn.sm { height: 30px; padding: 0 10px; font-size: .84rem; }
.btn.lg { height: 46px; padding: 0 20px; font-size: 1rem; }
.btn.block { width: 100%; }
.btn.icon { width: 34px; padding: 0; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > .lbl { font-size: .85rem; font-weight: 650; color: var(--ink-2); }
.field > .hint { font-size: .8rem; color: var(--muted); }
.input { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); font: inherit; font-size: .94rem; }
textarea.input { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.6; }
select.input { padding-right: 28px; }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.input.sm { height: 32px; font-size: .86rem; padding: 0 8px; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: .92rem; user-select: none; }
.check input { width: 17px; height: 17px; accent-color: var(--primary); }
.switch { position: relative; width: 38px; height: 22px; flex: none; display: inline-block; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; background: var(--line-2); border-radius: 99px; transition: .15s; cursor: pointer; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .15s; }
.switch input:checked + span { background: var(--primary); }
.switch input:checked + span::after { transform: translateX(16px); }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { padding: 10px 14px; border: 0; background: none; color: var(--muted); font-size: .94rem; font-weight: 620; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.tab.on { color: var(--ink); border-bottom-color: var(--ink); }
.tab .n { font-size: .78rem; color: var(--muted); font-weight: 700; }
.seg { display: inline-flex; background: var(--sunken); border-radius: 9px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 5px 12px; border-radius: 7px; font-size: .86rem; font-weight: 640; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }

/* ───────── 작은 표식 ───────── */
.pill { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 99px; font-size: .76rem; font-weight: 700; background: var(--sunken); color: var(--ink-2); white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--marker-soft); color: #8a6a00; }
.pill.bad { background: var(--stamp-soft); color: var(--stamp); }
.pill.lock { background: #ece6f7; color: #5a3fa0; }
.due { font-weight: 800; font-size: .82rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.due.soon { color: #9a7300; } .due.late { color: var(--stamp); } .due.far { color: var(--muted); }
.cdot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; background: var(--cx); }
.who { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; white-space: nowrap; }
.av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: .78rem; font-weight: 800; flex: none; background: var(--cx); }

/* ───────── 목록 줄 ───────── */
.lines { display: flex; flex-direction: column; }
.line { display: flex; align-items: center; gap: 14px; padding: 13px 20px; border-top: 1px solid var(--line); color: var(--ink); cursor: pointer; background: none; border-left: 0; border-right: 0; border-bottom: 0; width: 100%; text-align: left; font: inherit; }
.line:first-child { border-top: 0; }
.line:hover { background: var(--sunken); text-decoration: none; }
.line .t { font-weight: 640; display: block; }
.line .s { color: var(--muted); font-size: .84rem; display: block; margin-top: 1px; }
.line .kind { width: 36px; height: 36px; border-radius: 9px; background: var(--sunken); color: var(--ink-2); display: grid; place-items: center; flex: none; }
.line.unread .t::after { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--stamp); margin-left: 7px; vertical-align: 2px; }
.prog { display: flex; align-items: center; gap: 8px; min-width: 120px; }
.prog .bar { flex: 1; height: 6px; background: var(--sunken); border-radius: 9px; overflow: hidden; }
.prog .bar i { display: block; height: 100%; background: var(--ok); border-radius: 9px; }
.prog b { font-size: .82rem; font-variant-numeric: tabular-nums; min-width: 34px; text-align: right; }

.empty { text-align: center; padding: 36px 20px; color: var(--muted); }
.empty .ic { color: var(--line-2); margin-bottom: 8px; }
.empty p { margin: 6px 0 14px; }

/* ───────── 현황판 (출석부 명찰) ───────── */
.roll { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.tag { position: relative; border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px 11px 14px; background: var(--surface); overflow: hidden; min-height: 72px; }
.tag::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--tc, var(--cx)); }
.tag .nm { font-weight: 760; font-size: .96rem; letter-spacing: -.02em; }
.tag .tn { font-size: .78rem; color: var(--muted); margin-top: 1px; }
.tag .st { font-size: .76rem; margin-top: 6px; font-weight: 700; color: var(--ok); display: flex; align-items: center; gap: 4px; }
.tag.miss { background: repeating-linear-gradient(135deg, var(--surface), var(--surface) 8px, var(--sunken) 8px, var(--sunken) 9px); }
.tag.miss .st { color: var(--stamp); }
.tag .stamp { position: absolute; right: 8px; bottom: 8px; transform: rotate(-14deg); border: 2px solid var(--stamp); color: var(--stamp); border-radius: 6px; padding: 0 5px; font-size: .72rem; font-weight: 900; opacity: .9; background: var(--surface); }
.tag .fin { position: absolute; right: 8px; top: 8px; font-size: .7rem; font-weight: 800; color: var(--ok); }
.roll-sum { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.roll-sum .big { font-size: 2.1rem; font-weight: 820; letter-spacing: -.04em; font-variant-numeric: tabular-nums; line-height: 1; }
.roll-sum .of { color: var(--muted); font-weight: 650; }

/* ───────── 표 (시트 느낌) ───────── */
.tw { overflow: auto; border-top: 1px solid var(--line); -webkit-overflow-scrolling: touch; max-height: 75vh; }
.sheet { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .9rem; }
.sheet th { position: sticky; top: 0; z-index: 1; background: var(--sunken); color: var(--ink-2); text-align: left; font-weight: 700; font-size: .8rem; padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.sheet th.own { background: var(--marker-soft); }
.sheet td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.sheet tr.grp td { border-top: 2px solid var(--line-2); }
.sheet td.n, .sheet th.n { text-align: right; font-variant-numeric: tabular-nums; }
.sheet td.own { background: color-mix(in srgb, var(--marker-soft) 45%, transparent); }
.sheet tr.sub td { background: var(--sunken); font-weight: 720; }
.sheet tr.sub.over td { background: var(--stamp-soft); color: var(--stamp); }
.sheet tr.tot td { background: var(--primary-soft); font-weight: 800; border-bottom: 0; position: sticky; bottom: 0; }
.sheet a { word-break: break-all; }
.sheet .input { height: 32px; min-width: 70px; }
.sheet td.ed { padding: 3px 4px; }
.sheet .wrap { white-space: pre-wrap; min-width: 240px; line-height: 1.6; }

.gt { border-collapse: separate; border-spacing: 0; font-size: .84rem; }
.gt th, .gt td { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 0; min-width: 58px; height: 36px; text-align: center; }
.gt.claim td { min-width: 96px; height: 42px; }
.gt.claim td button { min-height: 42px; }
.gt thead th { background: var(--sunken); font-weight: 700; padding: 6px 8px; position: sticky; top: 0; z-index: 2; }
.gt tbody th { background: var(--sunken); font-weight: 650; padding: 0 10px; white-space: nowrap; text-align: left; position: sticky; left: 0; z-index: 1; }
.gt thead th:first-child { left: 0; z-index: 3; }
.gt td button { width: 100%; height: 100%; min-height: 36px; border: 0; background: none; font: inherit; color: var(--muted); cursor: pointer; }
.gt td.free button:hover { background: var(--primary-soft); color: var(--primary); }
.gt td.taken { background: var(--sunken); }
.gt td.taken button { color: var(--ink); font-weight: 650; }
.gt td.mine { background: var(--primary); }
.gt td.mine button { color: #fff; font-weight: 750; }
.gt td input { width: 100%; height: 36px; border: 0; background: transparent; text-align: center; font: inherit; color: var(--ink); padding: 0 4px; }
.gt td input:focus { outline: 2px solid var(--primary); outline-offset: -2px; background: var(--surface); }
.gt td.dirty { background: var(--marker-soft); }
.gt td.val { font-weight: 650; }
.gt-wrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--r); max-height: 72vh; }
.gt-wrap.tt2-wrap { max-height: none; overflow-x: auto; overflow-y: visible; }

/* ───────── 제출 폼 ───────── */
.itable { width: 100%; border-collapse: collapse; }
.itable th { text-align: left; font-size: .8rem; color: var(--muted); font-weight: 700; padding: 6px 4px; white-space: nowrap; }
.itable td { padding: 3px 4px; }
.itable td.rn { color: var(--muted); font-size: .8rem; text-align: center; width: 26px; }
.itable td.amt { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 650; padding-right: 8px; }
.itable td.mk { text-align: center; font-size: .8rem; white-space: nowrap; }
.hint-bar { display: flex; gap: 8px; align-items: center; padding: 9px 12px; border-radius: var(--r-sm); background: var(--marker-soft); color: #6d5600; font-size: .85rem; margin-bottom: 12px; }
@media (prefers-color-scheme: dark) { .hint-bar { color: #e7cf7a; } .pill.warn { color: #e7cf7a; } }
.budget { display: flex; align-items: center; gap: 14px; margin-top: 12px; padding: 12px 14px; border-radius: var(--r); background: var(--sunken); flex-wrap: wrap; }
.budget .bar { flex: 1; min-width: 120px; height: 8px; background: var(--line); border-radius: 9px; overflow: hidden; }
.budget .bar i { display: block; height: 100%; background: var(--ok); }
.budget.over .bar i { background: var(--stamp); }
.budget.over b { color: var(--stamp); }
.budget b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.rcard { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; margin-bottom: 10px; }
.file-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px dashed var(--line-2); border-radius: var(--r); flex-wrap: wrap; }
.roster { display: flex; flex-direction: column; }
.roster-row { display: grid; grid-template-columns: 36px 96px auto 1fr; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.roster-row .no { color: var(--muted); font-variant-numeric: tabular-nums; text-align: center; }
.roster-row .name { font-weight: 640; }
@media (max-width: 560px) { .roster-row { grid-template-columns: 30px 1fr auto; } .roster-row .input { grid-column: 1 / -1; } }
.matrix-in { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 8px 14px; align-items: center; max-width: 560px; }
.matrix-in label { font-weight: 600; }

.tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.tpl { display: flex; gap: 14px; text-align: left; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); cursor: pointer; font: inherit; color: var(--ink); }
.tpl:hover { border-color: var(--primary); background: var(--primary-soft); }
.tpl .ti { width: 40px; height: 40px; border-radius: 10px; background: var(--sunken); display: grid; place-items: center; color: var(--primary); flex: none; }
.tpl b { display: block; font-size: .98rem; }
.tpl span { color: var(--muted); font-size: .84rem; display: block; margin-top: 2px; line-height: 1.45; }
.tpl .eg { color: var(--ink-2); font-size: .78rem; margin-top: 6px; }
.fb-row { display: grid; grid-template-columns: minmax(0, 1fr) 130px auto; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.fb-row .opts, .fb-row .flags { grid-column: 1 / -1; }
.fb-row .flags { display: flex; gap: 18px; flex-wrap: wrap; font-size: .84rem; }
.fb-row .flags .check { font-size: .84rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); font-size: .86rem; cursor: pointer; user-select: none; }
.chip input { display: none; }
.chip.on { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); font-weight: 650; }

/* 공지 */
.nhead-acts { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.nsearch { width: 220px; height: 36px; font-size: .88rem; }
.nlist { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-lg); }
.nitem { display: block; padding: 18px 22px; border-top: 1px solid var(--line); color: var(--ink); transition: background .12s; }
.nitem:first-child { border-top: 0; }
.nitem:hover { background: color-mix(in srgb, var(--sunken) 65%, transparent); text-decoration: none; }
.nitem.pinned { background: color-mix(in srgb, var(--stamp-soft) 30%, transparent); }
.nitem.pinned:hover { background: color-mix(in srgb, var(--stamp-soft) 50%, transparent); }
.nitem.unread { box-shadow: inset 3px 0 0 var(--primary); }
.nitem.pinned.unread { box-shadow: inset 3px 0 0 var(--stamp); }
.nitem-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nitem-t { font-size: 1.04rem; font-weight: 620; line-height: 1.4; color: var(--ink); word-break: keep-all; }
.nitem.unread .nitem-t { font-weight: 760; }
.nitem-b { margin: 6px 0 0; font-size: .92rem; line-height: 1.6; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: keep-all; }
.nitem-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; font-size: .82rem; color: var(--muted); }
.nitem-who { color: var(--ink-2); font-weight: 560; }
.nitem-stat { display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.nview { padding: 24px 26px 28px; }
.nview-head { padding-bottom: 16px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.nview-t { font-size: 1.5rem; font-weight: 800; line-height: 1.38; word-break: keep-all; }
.nbody { white-space: pre-wrap; line-height: 1.88; font-size: 1.02rem; color: var(--ink); max-width: 68ch; word-break: keep-all; overflow-wrap: anywhere; }
.nmeta { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .88rem; flex-wrap: wrap; margin-top: 12px; }
.nfiles { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.nphotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-top: 20px; }
.nphoto { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r); border: 1px solid var(--line); background: var(--sunken); padding: 0; cursor: pointer; text-align: left; transition: border-color .12s, transform .1s; }
.nphoto:hover { border-color: var(--primary); transform: translateY(-1px); }
.nphoto img { width: 100%; height: 170px; object-fit: cover; display: block; background: var(--surface); }
.nphoto-cap { padding: 6px 9px; font-size: .76rem; color: var(--muted); background: var(--surface); border-top: 1px solid var(--line); width: 100%; }
.nlinks { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.nlink-card { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--sunken); }
.nlink-card > svg { color: var(--primary); flex: none; }
.nlink-card a { display: flex; flex-direction: column; min-width: 0; text-decoration: none; color: var(--ink); }
.nlink-card a b { font-size: .9rem; color: var(--primary); }
.nlink-card a:hover b { text-decoration: underline; }
.nlink-add { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nlinks-edit { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.nlinks-edit:empty { display: none; }
.nlink-item { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--sunken); }
.nlink-item > svg { color: var(--primary); flex: none; }
.natt-existing { margin-top: 10px; }
.natt-existing:empty { display: none; }
.nphoto-prevs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.nphoto-prevs:empty { display: none; }
.nphoto-prev { position: relative; width: 112px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--sunken); display: flex; flex-direction: column; }
.nphoto-prev img { width: 112px; height: 84px; object-fit: cover; display: block; }
.nphoto-prev span { padding: 4px 6px; background: var(--surface); color: var(--muted); }
.nphoto-prev-x { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .65); color: #fff; display: grid; place-items: center; cursor: pointer; }
.nphoto-prev-x:hover { background: var(--stamp); }
.nread-grp { margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.att { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); margin-top: 8px; }
.readers { display: flex; flex-wrap: wrap; gap: 6px; }
.readers .r { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border-radius: 99px; background: var(--sunken); font-size: .82rem; }
.readers .r.no { opacity: .6; }
.readers .r .av { width: 22px; height: 22px; font-size: .62rem; }
.cmt { display: flex; gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); }
.cmt:first-child { border-top: 0; }
.cmt .b { white-space: pre-wrap; margin-top: 4px; line-height: 1.65; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .nhead-acts { width: 100%; }
  .nsearch { flex: 1 1 auto; width: auto; min-width: 0; }
  .nitem { padding: 15px 16px; }
  .nview { padding: 18px 18px 22px; }
  .nview-t { font-size: 1.3rem; }
}

/* 드라이브 */
.drive-ph { margin-bottom: 18px; align-items: center; }
.drive-acts { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; flex-shrink: 0; }
.drive-search { width: 220px; height: 36px; font-size: .88rem; }
.drive { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; align-items: start; }
.drive-main { min-width: 0; }
.drive-results:not(:empty) { margin-bottom: 16px; }
.drive-panel { overflow: hidden; }
.drive-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 16px; border-bottom: 1px solid var(--line); min-height: 48px; }
.drive-bar-r { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.drive-sort { width: auto; height: 32px; padding: 0 26px 0 10px; font-size: .82rem; font-weight: 600; border-radius: 8px; }
.drive-th-sort { border: 0; background: none; padding: 0; font: inherit; font-weight: inherit; color: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.drive-th-sort:hover, .drive-th-sort.on { color: var(--primary); }
.drive-th-arr { font-size: .68rem; color: var(--primary); min-width: 10px; }
@media (max-width: 1000px) { .drive { grid-template-columns: minmax(0, 1fr); } .tree { display: none; } }
@media (max-width: 680px) {
  .drive-acts { width: 100%; flex-wrap: wrap; }
  .drive-search { flex: 1 1 100%; width: 100%; }
}
.tree { padding: 8px; max-height: calc(100vh - 140px); overflow: auto; position: sticky; top: 20px; }
.tree-i { display: flex; align-items: center; gap: 6px; width: 100%; padding: 6px 8px; border: 0; border-radius: 7px; background: none; color: var(--ink-2); font: inherit; font-size: .9rem; text-align: left; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tree-i:hover { background: var(--sunken); }
.tree-i.on { background: var(--primary-soft); color: var(--primary); font-weight: 700; }
.tree-i .tw { width: 14px; flex: none; color: var(--muted); display: grid; place-items: center; border: 0; background: none; padding: 0; cursor: pointer; }
.crumbs { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: .9rem; color: var(--muted); }
.crumbs a { color: var(--ink-2); }
.dz { min-height: 220px; position: relative; }
.dz.over::after { content: '여기에 놓으면 올라가요'; position: absolute; inset: 8px; border: 2px dashed var(--primary); border-radius: var(--r); background: color-mix(in srgb, var(--primary-soft) 85%, transparent); display: grid; place-items: center; font-weight: 700; color: var(--primary); }
.selbar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--ink); color: var(--paper); border-radius: var(--r); margin: 12px 16px; flex-wrap: wrap; }
.selbar .btn { background: transparent; color: var(--paper); border-color: rgba(255, 255, 255, .3); }
.drive-table th { padding: 10px 12px; }
.drive-table td { padding: 10px 12px; }
.drive-table tbody tr:hover td { background: color-mix(in srgb, var(--sunken) 55%, transparent); }
.drive-table tbody tr:last-child td { border-bottom: 0; }
.drive-table .col-chk { width: 42px; text-align: center; padding-left: 12px; padding-right: 4px; }
.drive-table .col-who { width: 130px; white-space: nowrap; }
.drive-table .col-size { width: 92px; white-space: nowrap; }
.drive-table .col-date { width: 120px; white-space: nowrap; }
.drive-table .col-act { width: 48px; text-align: right; padding-left: 4px; padding-right: 12px; }
.drive-table .col-act .btn.sm.icon { width: 30px; height: 30px; padding: 0; }
.drive-chk { display: block; margin: 0 auto; width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }
.fname { display: flex; align-items: center; gap: 10px; cursor: pointer; min-width: 0; }
.fname:hover .t { color: var(--primary); }
.fname .t { overflow-wrap: anywhere; }
.ficon { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; flex: none; background: var(--sunken); color: var(--ink-2); }
.ficon.pdf { background: #fde8e6; color: #c23b30; } .ficon.img { background: #e5f0fb; color: #2f6fb8; } .ficon.hwp { background: #e6eefc; color: #3359b8; }
.ficon.xls { background: #e3f3ea; color: #23794d; } .ficon.ppt { background: #fdeee2; color: #c2621a; } .ficon.dir { background: var(--marker-soft); color: #9a7300; } .ficon.lock { background: #ece6f7; color: #5a3fa0; }

/* 금고 */
.vrow { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 20px; border-top: 1px solid var(--line); }
.vrow:first-child { border-top: 0; }
.mask { font-variant-numeric: tabular-nums; letter-spacing: .06em; overflow-wrap: anywhere; }
@media (max-width: 760px) { .vrow { grid-template-columns: minmax(0, 1fr); } }

/* 인증 */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 480px); }
.auth-art {
  position: relative;
  background:
    radial-gradient(circle at 12% 10%, rgba(243, 199, 63, .12), transparent 42%),
    radial-gradient(circle at 88% 88%, rgba(88, 168, 134, .18), transparent 48%),
    linear-gradient(155deg, #214539 0%, #173229 55%, #11261f 100%);
  color: #fff;
  padding: 52px 56px;
  display: flex;
  overflow: hidden;
}
.auth-art::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 40% 45%, #000 35%, transparent 85%);
  pointer-events: none;
}
.auth-art-in { position: relative; z-index: 1; max-width: 580px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; justify-content: space-between; gap: 36px; }
.auth-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.auth-head .brand { padding: 0; }
.auth-badge { font-size: .78rem; font-weight: 650; color: var(--board-ink); padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .13); letter-spacing: -.01em; }
.auth-hero { display: flex; flex-direction: column; gap: 20px; }
.auth-art h1 { font-size: clamp(2rem, 3vw, 2.75rem); line-height: 1.24; font-weight: 820; letter-spacing: -.04em; margin: 0; }
.auth-hl { color: #fff; background: linear-gradient(transparent 68%, rgba(243, 199, 63, .38) 68%, rgba(243, 199, 63, .38) 95%, transparent 95%); padding: 0 3px; border-radius: 3px; }
.auth-desc { color: rgba(231, 239, 233, .76); max-width: 44ch; font-size: .98rem; line-height: 1.72; margin: 0; }
.auth-feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.auth-feat { display: flex; align-items: flex-start; gap: 12px; padding: 15px 16px; border-radius: 14px; background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .09); transition: background .15s, border-color .15s; }
.auth-feat:hover { background: rgba(255, 255, 255, .075); border-color: rgba(255, 255, 255, .16); }
.auth-fic { width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center; background: rgba(243, 199, 63, .14); color: var(--marker); border: 1px solid rgba(243, 199, 63, .22); }
.auth-ftxt { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.auth-ftxt b { font-size: .92rem; font-weight: 720; color: #fff; letter-spacing: -.015em; }
.auth-ftxt span { font-size: .8rem; line-height: 1.48; color: var(--board-dim); }
.auth-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .8rem; color: var(--board-dim); }
.auth-foot span { display: inline-flex; align-items: center; gap: 7px; }
.auth-foot span::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--marker); opacity: .85; }
.auth-form { padding: 56px 48px; display: flex; flex-direction: column; justify-content: center; background: var(--surface); }
.auth-form h2 { font-size: 1.5rem; font-weight: 780; margin-bottom: 6px; }
.auth-form .sub { color: var(--muted); margin-bottom: 26px; }
.auth-links { display: flex; justify-content: space-between; margin-top: 18px; font-size: .9rem; }
@media (max-width: 1120px) { .auth-art { padding: 40px 36px; } .auth-feats { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) { .auth { grid-template-columns: minmax(0, 1fr); } .auth-art { display: none; } .auth-form { padding: 36px 22px; justify-content: flex-start; } }

.notice { padding: 12px 14px; border-radius: var(--r); background: var(--primary-soft); font-size: .9rem; margin: 10px 0; line-height: 1.6; }
.notice.warn { background: var(--marker-soft); }
.notice.bad { background: var(--stamp-soft); }

.modal-back { position: fixed; inset: 0; background: rgba(18, 26, 22, .5); z-index: 60; display: grid; place-items: center; padding: 16px; }
.modal { background: var(--surface); border-radius: 16px; padding: 22px; width: 100%; max-width: 480px; max-height: 90vh; overflow: auto; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.modal.wide { max-width: min(1240px, 94vw); }
.modal h3 { font-size: 1.12rem; margin-bottom: 10px; }
.modal .msg { white-space: pre-wrap; margin: 0 0 6px; line-height: 1.6; }
.modal .acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.menu { display: flex; flex-direction: column; margin: 4px -8px 0; }
.menu button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 0; background: none; border-radius: 8px; font: inherit; color: var(--ink); cursor: pointer; text-align: left; }
.menu button:hover { background: var(--sunken); }
.menu button.danger { color: var(--stamp); }
#toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 16px); background: var(--ink); color: var(--paper); padding: 11px 18px; border-radius: 10px; opacity: 0; pointer-events: none; transition: .2s; z-index: 80; font-weight: 600; font-size: .92rem; max-width: 90vw; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.err { background: var(--stamp); color: #fff; }
@media (max-width: 900px) { #toast { bottom: 84px; } }
#watermark { position: fixed; inset: 0; z-index: 55; pointer-events: none; display: grid; place-items: center; opacity: .065; font-size: clamp(18px, 2.6vw, 32px); font-weight: 800; letter-spacing: .04em; color: var(--ink); user-select: none; overflow: hidden; }
#watermark span { white-space: nowrap; transform: rotate(-18deg); text-align: center; }
.lockbar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--r-sm); background: #ece6f7; color: #4b3390; font-size: .85rem; font-weight: 650; }
.loading { display: grid; place-items: center; min-height: 40vh; color: var(--muted); }
.preview img { max-width: 100%; max-height: 74vh; display: block; margin: 0 auto; border-radius: 8px; }
.preview iframe { width: 100%; height: 74vh; border: 0; border-radius: 8px; }
@media print { #watermark { opacity: .18; } .side, .mnav, .mtop { display: none; } .shell { display: block; } }

.rgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.rgrid > .field { grid-column: 1 / -1; margin-bottom: 10px; }
.rgrid > .field.half { grid-column: auto; }

/* ═════════ 2차: 학년 정보·수업자료·알람·시트형 입력 ═════════ */
.input.lg { height: 46px; font-size: 1.05rem; font-weight: 600; }
.stepn { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: .75rem; font-weight: 800; }
.stepn.ok { background: var(--ok); }
.kv { display: grid; grid-template-columns: 72px 1fr; gap: 6px 12px; font-size: .9rem; margin: 6px 0 10px; }
.kv > span { color: var(--muted); }

/* 할 일 알림 (맨 위) */
.alerts { display: flex; flex-direction: column; gap: 8px; margin: -8px 0 20px; }
.alert { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r); background: var(--stamp-soft); border: 1px solid color-mix(in srgb, var(--stamp) 25%, transparent); }
.alert .ai { width: 34px; height: 34px; border-radius: 9px; background: var(--stamp); color: #fff; display: grid; place-items: center; flex: none; }
.alert a { color: var(--ink); }
.alert a:hover { text-decoration: none; }
.alert b { display: block; font-size: .95rem; }
.alert a span { display: block; color: var(--muted); font-size: .84rem; }
.card-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); margin-bottom: 16px; flex-wrap: wrap; }
.card-row .kind { width: 34px; height: 34px; border-radius: 9px; background: var(--sunken); display: grid; place-items: center; }
.card-row.need { border-color: var(--stamp); background: var(--stamp-soft); }

/* 재적 카드 */
.tag .cnt { margin-top: 6px; font-size: .9rem; color: var(--ink-2); }
.tag .cnt b { font-size: 1.35rem; font-weight: 820; letter-spacing: -.03em; color: var(--ink); margin-right: 1px; }

/* 전담 시간표 공유판 */
.jdw { overflow: auto; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 18px; -webkit-overflow-scrolling: touch; }
.jd-h { font-size: .95rem; margin: 6px 0 8px; }
.jdt { border-collapse: separate; border-spacing: 0; font-size: .82rem; min-width: 100%; user-select: none; }
.jdt th, .jdt td { border-bottom: 1px solid var(--line); text-align: center; }
.jdt thead th { background: var(--sunken); font-weight: 700; position: sticky; top: 0; z-index: 1; }
.jdt .dh { padding: 6px 0 2px; border-left: 2px solid var(--line-2); }
.jdt .pc { font-size: .7rem; color: var(--muted); padding: 0 0 4px; width: 30px; min-width: 30px; }
.jdt .d0 { border-left: 2px solid var(--line-2); }
.jdt .rh { position: sticky; left: 0; z-index: 2; background: var(--surface); text-align: left; padding: 6px 10px; white-space: nowrap; min-width: 92px; font-weight: 750; border-right: 1px solid var(--line); }
.jdt thead .rh { background: var(--sunken); z-index: 3; }
.jdt .rh .tiny { display: block; font-weight: 500; }
.jdt td.c { height: 34px; width: 30px; min-width: 30px; font-weight: 750; color: var(--muted); border-left: 1px solid var(--line); }
.jdt td.c.d0 { border-left: 2px solid var(--line-2); }
.jdt td.c.on { background: var(--sc); color: #fff; }
.jdt td.c.clash { background: var(--stamp) !important; }
.jdt.paint td.c { cursor: pointer; touch-action: none; }
.jdt.paint td.c:hover { outline: 2px solid var(--sc); outline-offset: -2px; }
.jdt.paint td.c.other { background: repeating-linear-gradient(135deg, var(--surface), var(--surface) 5px, var(--sunken) 5px, var(--sunken) 7px); color: var(--ink-2); font-weight: 600; }
.jdt .sum { padding: 2px 8px; white-space: normal; min-width: 96px; font-size: .76rem; line-height: 1.35; font-weight: 750; font-variant-numeric: tabular-nums; border-left: 1px solid var(--line); }
.jdt td.sum.ok { color: var(--ok); background: var(--ok-soft); }
.jdt td.sum.bad { color: var(--stamp); background: var(--stamp-soft); }
.jdt td.c.off { background: var(--stamp-soft); color: var(--stamp); font-size: .74rem; letter-spacing: .08em; }
.jdt.hrs { min-width: 0; }
.jdt.hrs td.c { width: auto; min-width: 72px; color: var(--ink); font-size: .9rem; }
.jdt.hrs td.c.bad { color: var(--stamp); background: var(--stamp-soft); }
.jdt.hrs .dh { padding: 8px 10px; white-space: nowrap; }
.dayt { display: flex; gap: 2px; margin-top: 4px; }
.dayt button { border: 1px solid var(--line-2); background: var(--surface); border-radius: 5px; font: inherit; font-size: .68rem; padding: 0 4px; height: 20px; cursor: pointer; color: var(--ink-2); }
.dayt button:hover { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }

/* 주간 시간표 */
.wkt { border-collapse: separate; border-spacing: 0; width: 100%; font-size: .86rem; }
.wkt th, .wkt td { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.wkt thead th { background: var(--sunken); padding: 7px 4px; font-weight: 700; white-space: nowrap; }
.wkt thead th.today { background: var(--marker-soft); }
.wkt tbody th { background: var(--sunken); width: 34px; font-weight: 700; color: var(--muted); }
.wkt td.c { height: 50px; min-width: 64px; position: relative; }
.wkt td.c b { display: block; font-size: 1.05rem; font-weight: 800; }
.wkt td.c .fn { display: block; font-size: .7rem; color: var(--muted); }
.wkt td.c.jd { background: color-mix(in srgb, var(--sc) 14%, transparent); }
.wkt td.c.jd b { color: var(--sc); }
.wkt td.c .jdb { position: absolute; top: 3px; right: 4px; font-style: normal; font-size: .62rem; font-weight: 800; color: var(--sc); }
.wkt td.c.chg { box-shadow: inset 0 0 0 2px var(--marker); }
.wkt td.c.evc b { color: #1d4ed8; font-weight: 800; }
@media (prefers-color-scheme: dark) { .wkt td.c.evc b { color: #7aa2ff; } }
.wkt td.c.pickable { cursor: pointer; }
.wkt td.c.pickable:hover { background: var(--primary-soft); }
.wkt td.c.sel { background: var(--primary) !important; }
.wkt td.c.sel b, .wkt td.c.sel .fn { color: #fff; }
.wkt td.c.warn { background: var(--stamp-soft); }
.wkt td.off { background: repeating-linear-gradient(135deg, var(--stamp-soft), var(--stamp-soft) 8px, var(--surface) 8px, var(--surface) 14px); color: var(--stamp); font-weight: 750; writing-mode: vertical-rl; letter-spacing: .2em; }
.wkt td.off span { writing-mode: horizontal-tb; }
.wkt.mini td.c { height: 34px; min-width: 46px; font-weight: 750; font-size: .8rem; }
.wkt.mini td.c.jd { color: var(--sc); }
.today-tt { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.today-tt .tp { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 1px; }
.today-tt .tp .pn { font-size: .72rem; color: var(--muted); font-weight: 700; }
.today-tt .tp b { font-size: 1rem; }
.today-tt .tp.jd { border-color: var(--sc); background: color-mix(in srgb, var(--sc) 10%, transparent); }
.today-tt .tp.jd b, .today-tt .tp.jd .tiny { color: var(--sc); font-weight: 700; }
.today-tt .tp.chg { box-shadow: inset 0 0 0 2px var(--marker); }

/* 명렬표 */
.rosters { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); border-top: 1px solid var(--line); }
.rcol { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rhd { padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--sunken); border-top: 3px solid var(--tc); display: flex; flex-direction: column; }
.rcol ol { list-style: none; margin: 0; padding: 4px 0; font-size: .88rem; }
.rcol li { padding: 3px 12px; display: flex; gap: 8px; }
.rcol li .num { width: 20px; text-align: right; flex: none; }

/* 일정 */
.line.ev { padding: 10px 20px; gap: 14px; }
.evd { width: 46px; flex: none; text-align: center; border-radius: 9px; background: var(--sunken); padding: 4px 0; line-height: 1.2; }
.evd b { display: block; font-size: .95rem; }
.evd span { font-size: .72rem; color: var(--muted); }
.evd.today { background: var(--marker); }
.evi-row { display: flex; align-items: center; gap: 6px; }
.evi { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; border: 0; background: none; font: inherit; color: var(--ink); text-align: left; padding: 3px 4px; border-radius: 6px; cursor: pointer; flex-wrap: wrap; }
.evi:hover { background: var(--sunken); }
.evi .t { font-weight: 640; }
.evi .s { color: var(--muted); font-size: .82rem; }
.evi-del { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; border: 1px solid transparent; background: none; color: var(--muted); cursor: pointer; transition: background .12s, color .12s, border-color .12s; }
.evi-del:hover { background: var(--stamp-soft); color: var(--stamp); border-color: color-mix(in srgb, var(--stamp) 28%, transparent); }

/* 수업자료 */
.subj-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.stab { height: 34px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); font: inherit; font-size: .9rem; font-weight: 640; cursor: pointer; color: var(--ink-2); display: inline-flex; gap: 6px; align-items: center; }
.stab:hover { border-color: var(--primary); }
.stab.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.stab .n { font-size: .74rem; opacity: .7; }
.ficon.link { background: #e9eefc; color: #3b5bd6; }

/* 더보기 */
.more-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.more-i { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); color: var(--ink); }
.more-i:hover { text-decoration: none; border-color: var(--primary); }
.more-i .ti { width: 38px; height: 38px; border-radius: 10px; background: var(--sunken); display: grid; place-items: center; color: var(--primary); margin-bottom: 4px; }
.more-i span { font-size: .8rem; color: var(--muted); }

/* 명렬표 입력 (엔터로 다음 줄) */
.rtable { border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; max-height: 55vh; overflow-y: auto; }
.rt-h, .rt-r { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1fr) 34px; align-items: center; }
.rt-h { background: var(--sunken); font-size: .78rem; font-weight: 700; color: var(--muted); position: sticky; top: 0; z-index: 1; }
.rt-h span { padding: 7px 10px; }
.rt-r { border-top: 1px solid var(--line); }
.rt-r input { border: 0; border-right: 1px solid var(--line); background: transparent; height: 36px; padding: 0 10px; font: inherit; color: var(--ink); min-width: 0; }
.rt-r input:focus { outline: 2px solid var(--primary); outline-offset: -2px; background: var(--surface); }
.rt-r .rt-no { text-align: center; color: var(--muted); font-variant-numeric: tabular-nums; }

/* 알람 팝업 (오른쪽 아래, 카톡처럼) */
#kpops { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: flex; flex-direction: column; gap: 10px; width: 320px; max-width: calc(100vw - 36px); }
.kpop { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 40px rgba(0, 0, 0, .22); padding: 12px 14px; transform: translateY(20px); opacity: 0; transition: .25s; }
.kpop.show { transform: none; opacity: 1; }
.kp-h { display: flex; align-items: center; gap: 8px; font-size: .82rem; }
.kp-h .brand-mark { width: 22px; height: 22px; font-size: .7rem; border-radius: 6px; }
.kp-h b { flex: 1; }
.kp-t { font-weight: 780; font-size: 1.02rem; margin-top: 8px; }
.kp-b { color: var(--ink-2); font-size: .88rem; margin-top: 2px; }
.kp-a { display: flex; justify-content: flex-end; gap: 6px; margin-top: 10px; }
.kp-a button { border: 1px solid var(--line-2); background: var(--surface); border-radius: 8px; height: 30px; padding: 0 12px; font: inherit; font-size: .84rem; font-weight: 650; cursor: pointer; color: var(--ink); }
.kp-a button.ok { background: var(--marker); border-color: var(--marker); color: #18211d; }
@media (max-width: 900px) { #kpops { bottom: 84px; right: 10px; } }
.line.past { opacity: .55; }

/* ── 엑셀식 빌더 (새 수합) ── */
.builder { overflow-x: auto; border: 1px solid var(--line-2); border-radius: var(--r); }
.bsheet { border-collapse: separate; border-spacing: 0; font-size: .88rem; min-width: 100%; }
.bsheet th, .bsheet td { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bsheet thead th { background: var(--sunken); vertical-align: top; padding: 0; text-align: left; }
.bsheet .rn { width: 44px; min-width: 44px; text-align: center; color: var(--muted); font-size: .78rem; background: var(--sunken); }
.bsheet td { height: 34px; padding: 0 10px; background: repeating-linear-gradient(0deg, var(--surface), var(--surface)); }
.bsheet td.own, .bsheet th.own { background: var(--marker-soft); }
.bcol { min-width: 120px; position: relative; }
.bcol .hdr-in { width: 100%; }
.bctl { position: absolute; top: 2px; right: 2px; display: none; gap: 1px; z-index: 2; }
.bcol:hover .bctl, .bcol:focus-within .bctl { display: flex; }
.bctl button { width: 20px; height: 20px; border: 1px solid var(--line-2); background: var(--surface); border-radius: 4px; font: inherit; font-size: .75rem; line-height: 1; cursor: pointer; display: grid; place-items: center; color: var(--ink-2); padding: 0; }
.bctl button:hover { background: var(--stamp-soft); color: var(--stamp); }
.hdr-in { border: 0; background: transparent; font: inherit; font-weight: 720; color: var(--ink); height: 38px; padding: 0 10px; min-width: 0; }
.hdr-in:focus { outline: 2px solid var(--primary); outline-offset: -2px; background: var(--surface); }
.hdr-in::placeholder { color: var(--muted); font-weight: 500; }
.ty { display: flex; align-items: center; gap: 4px; width: 100%; border: 0; border-top: 1px dashed var(--line-2); background: none; font: inherit; font-size: .74rem; color: var(--muted); padding: 4px 10px; cursor: pointer; text-align: left; }
.ty:hover { color: var(--primary); background: var(--primary-soft); }
.ty i { font-style: normal; font-weight: 750; padding: 0 5px; border-radius: 4px; background: var(--stamp-soft); color: var(--stamp); }
.ty i.own { background: var(--marker); color: #6d5600; }
.addc { min-width: 90px; vertical-align: middle !important; }
.hdr-add { display: inline-flex; align-items: center; gap: 4px; border: 1px dashed var(--line-2); background: var(--surface); border-radius: 7px; height: 30px; padding: 0 10px; font: inherit; font-size: .82rem; font-weight: 650; color: var(--primary); cursor: pointer; margin: 4px 8px; white-space: nowrap; }
.hdr-add:hover { border-color: var(--primary); background: var(--primary-soft); }
.type-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.tg { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--surface); font: inherit; font-size: .8rem; cursor: pointer; color: var(--ink-2); }
.tg b { font-size: .95rem; color: var(--ink); }
.tg.on { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.hdrs { display: flex; flex-wrap: nowrap; align-items: stretch; }
.hdrs .hdr { position: relative; border-right: 1px solid var(--line); background: var(--sunken); }
.hdrs .hdr-x { position: absolute; top: 50%; transform: translateY(-50%); right: 4px; width: 20px; height: 20px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); display: none; place-items: center; cursor: pointer; padding: 0; }
.hdrs .hdr:hover .hdr-x, .hdrs .hdr:focus-within .hdr-x { display: grid; }
.hdrs .hdr-x:hover { background: var(--stamp-soft); color: var(--stamp); }
.hdrs:not(.v) { border: 1px solid var(--line-2); border-radius: var(--r-sm); overflow-x: auto; width: fit-content; max-width: 100%; }
.bsheet .hdrs:not(.v) { border: 0; border-radius: 0; }

/* 파일 제출: 개별 파일 칸 카드 */
.fslots { display: flex; flex-direction: column; align-items: stretch; gap: 8px; max-width: 460px; }
.fslot { display: flex; align-items: center; gap: 8px; width: 100%; height: 42px; padding: 0 8px 0 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); transition: border-color .12s, box-shadow .12s; }
.fslot:focus-within { border-color: var(--primary); box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 18%, transparent); }
.fslot-no { flex: none; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 6px; background: var(--sunken); color: var(--muted); font-size: .75rem; font-weight: 750; display: inline-grid; place-items: center; }
.fslot-ic { color: var(--muted); display: grid; place-items: center; flex: none; }
.fslot-in { flex: 1; border: 0; background: transparent; font: inherit; font-size: .9rem; font-weight: 620; color: var(--ink); width: 100%; min-width: 0; outline: none; }
.fslot-in::placeholder { color: var(--muted); font-weight: 450; }
.fslot-x { flex: none; width: 24px; height: 24px; border-radius: 6px; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; transition: background .12s, color .12s; }
.fslot-x:hover { background: var(--stamp-soft); color: var(--stamp); }
.fslot-add { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 40px; padding: 0 14px; border-radius: 10px; border: 1px dashed var(--line-2); background: var(--sunken); color: var(--primary); font: inherit; font-size: .86rem; font-weight: 650; cursor: pointer; transition: border-color .12s, background .12s; }
.fslot-add:hover { border-color: var(--primary); background: var(--primary-soft); }
.file-slot-card { padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); margin-bottom: 12px; }
.file-slot-card .lbl { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.mxh { padding: 0 !important; }
.hdrs.v { flex-direction: column; }
.hdrs.v .hdr { border-right: 0; border-bottom: 1px solid var(--line); }
.hdrs.v .hdr-in { width: 100%; height: 38px; }
.hdrs.v .hdr-add { margin: 4px; }
.gbuild { display: grid; grid-template-columns: 110px minmax(0, 1fr); grid-template-rows: auto auto; border: 1px solid var(--line-2); border-radius: var(--r); overflow: auto; max-height: 70vh; }
.gb-corner { background: var(--sunken); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .72rem; color: var(--muted); display: grid; place-items: center; }
.gb-top { border-bottom: 1px solid var(--line); overflow: visible; }
.gb-top .hdrs { border: 0; border-radius: 0; max-width: none; }
.gb-top .hdr-in { width: 96px !important; text-align: center; }
.gb-left { border-right: 1px solid var(--line); background: var(--sunken); }
.gt.preview td { width: 97px; min-width: 97px; height: 39px; }
.gt.preview { border-spacing: 0; }

/* ── 시트형 제출 ── */
.itable.sheetin { border-collapse: separate; border-spacing: 0; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.itable.sheetin th { background: var(--sunken); color: var(--ink-2); border-bottom: 1px solid var(--line-2); border-right: 1px solid var(--line); padding: 8px 10px; }
.itable.sheetin th.n { text-align: right; }
.itable.sheetin th.own { background: var(--marker-soft); text-align: center; }
.itable.sheetin .req { color: var(--stamp); margin-left: 2px; }
.itable.sheetin td { padding: 0; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.itable.sheetin td.rn { background: var(--sunken); width: 34px; }
.itable.sheetin .cell { border: 0; border-radius: 0; height: 38px; background: transparent; min-width: 90px; box-shadow: none; }
.itable.sheetin textarea.cell { min-height: 38px; height: 38px; padding-top: 8px; resize: vertical; }
.itable.sheetin td.n .cell { text-align: right; }
.itable.sheetin .cell:focus { outline: 2px solid var(--primary); outline-offset: -2px; background: var(--surface); }
.itable.sheetin .cell.auto { background: var(--marker-soft); transition: background .6s; }
.itable.sheetin td.amt { padding: 0 10px; }
.itable.sheetin td.del { width: 36px; text-align: center; }
.itable.sheetin input[type=checkbox].cell { min-width: 0; width: 18px; height: 18px; margin: 0 auto; display: block; }
.addrow { display: flex; align-items: center; gap: 6px; width: 100%; justify-content: center; height: 36px; margin-top: -1px; border: 1px dashed var(--line-2); border-radius: 0 0 var(--r) var(--r); background: var(--surface); color: var(--primary); font: inherit; font-weight: 650; font-size: .88rem; cursor: pointer; }
.addrow:hover { background: var(--primary-soft); }

/* 결과표: 복사·검수 */
.sheet td.cc { position: relative; padding-right: 26px; }
.cp { border: 1px solid var(--line-2); background: var(--surface); border-radius: 5px; cursor: pointer; color: var(--ink-2); padding: 0 4px; height: 20px; display: inline-flex; align-items: center; gap: 2px; font: inherit; font-size: .7rem; font-weight: 700; }
.sheet td.cc .cp { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); opacity: 0; }
.sheet tr:hover td.cc .cp, .sheet td.cc .cp:focus { opacity: 1; }
.cp:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.cp.row { margin-left: 6px; }
.sheet td.ins { width: 34px; text-align: center; }
.sheet td.ins input { width: 17px; height: 17px; accent-color: var(--ok); }
.sheet tr.inspected td:not(.ins):not(:first-child) { text-decoration: line-through; color: var(--muted); }
.sheet tr.inspected td { background: color-mix(in srgb, var(--ok-soft) 60%, transparent); }
@media (hover: none) { .sheet td.cc .cp { opacity: .8; } }

/* 예약 칸의 흐린 우리 반 과목 */
.gt td button .ghost { display: block; font-size: .68rem; color: var(--muted); opacity: .75; font-weight: 500; margin-top: -2px; }
.gt td.mine button .ghost { color: #fff; opacity: .8; }

/* 드라이브 트리 */
.tree-edit { border: 1px solid var(--primary); border-radius: 5px; font: inherit; font-size: .88rem; padding: 2px 6px; width: 100%; min-width: 0; background: var(--surface); color: var(--ink); }
.tree-i.dragging { opacity: .4; }
.tree-i.drop-a { box-shadow: inset 0 2px 0 var(--primary); }
.tree-i.drop-b { box-shadow: inset 0 -2px 0 var(--primary); }
.chip.used { opacity: .55; }
.roster-row:focus { outline: 2px solid var(--primary); outline-offset: -2px; border-radius: 6px; background: var(--primary-soft); }

/* 인쇄 */
@media print {
  body.print-jd .main > *:not(.panel), body.print-jd .tabs, body.print-jd .jd > .row, body.print-jd .jd > .tabs { display: none !important; }
  body.print-jd .panel { border: 0; box-shadow: none; }
  body.print-jd .jdt td.c.on { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.print-sheet .main > *:not(.panel):not(.ph), body.print-sheet .main > .panel:not(:last-child), body.print-sheet .ph .row, body.print-sheet .cp, body.print-sheet .back { display: none !important; }
  body.print-sheet .tw { max-height: none; overflow: visible; }
  body.print-sheet tr.inspected td { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.cntb { font-size: .74rem; font-weight: 800; padding: 1px 7px; border-radius: 99px; background: var(--sunken); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.cntb.ok { background: var(--ok-soft); color: var(--ok); }
.cntb.bad { background: var(--stamp); color: #fff; }
.jdt .rh .tiny { display: inline; margin-left: 4px; }
.dayt button { padding: 0 3px; font-size: .64rem; height: 18px; }
/* 간단 확인 */
.choice-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.cbtn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 18px; border-radius: 12px; border: 2px solid var(--line-2); background: var(--surface); font: inherit; font-weight: 750; color: var(--ink); }
.cbtn.lg { height: 64px; min-width: 140px; justify-content: center; font-size: 1.15rem; cursor: pointer; }
.cbtn.lg:hover:not(:disabled) { border-color: var(--primary); }
.cbtn.first.on { background: var(--ok); border-color: var(--ok); color: #fff; }
.cbtn.on:not(.first) { background: var(--stamp); border-color: var(--stamp); color: #fff; }
.choice-prev { margin-top: 16px; padding: 12px 14px; border-radius: var(--r); background: var(--sunken); }
.tag .st.ans { color: var(--ok); font-size: .82rem; }
.tag .st.ans.alt { color: var(--stamp); }
.sheet tr.alt td { background: color-mix(in srgb, var(--stamp-soft) 55%, transparent); }
@media (max-width: 560px) { .cbtn.lg { flex: 1; min-width: 0; } }
.wkt td.c.neisdiff { box-shadow: inset 0 0 0 2px var(--stamp); }
.wkt td.c .nd { position: absolute; left: 4px; top: 3px; font-style: normal; font-size: .6rem; font-weight: 800; color: var(--stamp); }
/* 수업자료 단원 카드 */
.units { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 16px; align-items: start; }
.units .panel + .panel { margin-top: 0; }
.panel.unit.over { outline: 2px dashed var(--primary); outline-offset: -4px; background: var(--primary-soft); }
.panel.unit .panel-h h2 { min-width: 0; }
.unit-empty { display: flex; align-items: center; justify-content: center; gap: 8px; width: calc(100% - 40px); margin: 4px 20px 20px; height: 72px; border: 1.5px dashed var(--line-2); border-radius: var(--r); background: none; color: var(--muted); font: inherit; font-size: .88rem; cursor: pointer; }
.unit-empty:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.stab.add { border-style: dashed; color: var(--primary); }
.lines.compact .line { padding: 9px 20px; gap: 12px; }
.lines.compact .ficon { width: 28px; height: 28px; }
@media (max-width: 560px) { .units { grid-template-columns: minmax(0, 1fr); } }
/* 홈: 중요한 것 먼저 */
.hello2 { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 4px 0 20px; }
.hello2-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.bell-btn { position: relative; width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; box-shadow: var(--shadow); transition: background .12s, border-color .12s; }
.bell-btn:hover { background: var(--sunken); border-color: var(--line-2); }
.bell-dot { position: absolute; top: 7px; right: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--stamp); box-shadow: 0 0 0 2px var(--surface); }
.alarm-modal .lines { margin: 0 -22px; }
.alarm-warns { padding: 0; }
.hello2 h1 { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.035em; line-height: 1.25; }
.hello2 h1 .hl { background: linear-gradient(transparent 58%, var(--marker) 58%, var(--marker) 92%, transparent 92%); padding: 0 2px; }
.hstats { display: flex; gap: 8px; flex-wrap: wrap; }
.hstat { display: flex; flex-direction: column; align-items: center; min-width: 84px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.hstat:hover { text-decoration: none; border-color: var(--ink); }
.hstat b { font-size: 1.5rem; font-weight: 820; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hstat span { font-size: .76rem; color: var(--muted); font-weight: 650; }
.hstat.bad { background: var(--stamp); border-color: var(--stamp); color: #fff; }
.hstat.bad span { color: #ffe3e0; }
.hstat.warn { background: var(--marker); border-color: var(--marker); color: #18211d; }
.hstat.warn span { color: #6d5600; }
.hstat.zero { opacity: .55; }
.line.urg-late { box-shadow: inset 4px 0 0 var(--stamp); background: color-mix(in srgb, var(--stamp-soft) 55%, transparent); }
.line.urg-late .t { color: var(--stamp); }
.line.urg-today { box-shadow: inset 4px 0 0 var(--marker); background: color-mix(in srgb, var(--marker-soft) 60%, transparent); }
.quick { display: flex; flex-direction: column; }
.qrow { display: flex; align-items: center; gap: 12px; padding: 10px 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.qrow:first-child { border-top: 0; }
.qrow .qt { color: var(--ink); min-width: 180px; }
.qrow .qt:hover { text-decoration: none; }
.qrow .qt b { font-size: 1rem; }
.qbtns { display: flex; gap: 8px; flex-wrap: wrap; }
.qbtns .cbtn { cursor: pointer; height: 42px; min-width: 88px; justify-content: center; }
.qbtns .cbtn.first:hover { background: var(--ok); border-color: var(--ok); color: #fff; }
.qbtns .cbtn:not(.first):hover { background: var(--stamp); border-color: var(--stamp); color: #fff; }
.qrow.done { opacity: .7; }
@media (max-width: 900px) { .hello2 h1 { font-size: 1.4rem; } .hstat { min-width: 70px; flex: 1; } .qbtns { width: 100%; } .qbtns .cbtn { flex: 1; } }
.panel + .cols, .alerts + .cols { margin-top: 16px; }
/* 빌더 입력 방식: 읽히는 이름 + 드롭다운 모양 */
.ty { margin: 0 6px 6px; width: calc(100% - 12px); border: 1px solid var(--line-2) !important; border-radius: 6px; background: var(--surface); color: var(--ink-2); font-size: .78rem; padding: 4px 8px; gap: 5px; flex-wrap: wrap; }
.ty .tyl { font-weight: 700; }
.ty .ic { margin-left: auto; color: var(--muted); }
.bsheet .rn.hint-col { font-size: .68rem; vertical-align: middle; line-height: 1.2; padding: 4px; }
.bsheet .rn.hint-col span { display: block; }
.bsheet .rn.hint-col span + span { margin-top: 14px; }
.bsheet tbody td { color: var(--muted); font-size: .8rem; }
.tg .tiny { margin-top: 2px; text-align: center; }
.type-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
/* 칸 삭제·이동 버튼: 항상 보이게 (터치에서도) */
.bctl { display: flex !important; opacity: .45; }
.bcol:hover .bctl, .bcol:focus-within .bctl { opacity: 1; }
.bcol .hdr-in { padding-right: 70px; }
.hdrs .hdr-x { display: grid !important; opacity: .45; }
.hdrs .hdr:hover .hdr-x, .hdrs .hdr:focus-within .hdr-x { opacity: 1; }
.hdrs:not(.v) .hdr-in { padding-right: 24px; }
@media (hover: none) { .bctl, .hdrs .hdr-x { opacity: 1; } }
/* 공연 순서판 */
.prog-list { display: flex; flex-direction: column; }
.prow { display: flex; align-items: center; gap: 10px; padding: 8px 16px; border-top: 1px solid var(--line); background: var(--surface); }
.prow:first-child { border-top: 0; }
.prow .grip { cursor: grab; color: var(--muted); font-weight: 900; letter-spacing: -2px; user-select: none; }
.prow .pno { width: 34px; text-align: center; font-weight: 820; font-variant-numeric: tabular-nums; }
.prow .part { width: 64px; }
.prow .grow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.prow .grow .input { max-width: 260px; }
.prow .pmin { width: 46px; text-align: right; font-size: .84rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.prow.info { background: var(--marker-soft); }
.prow.info .pno { font-size: .78rem; color: #6d5600; }
.prow.sub { padding-left: 40px; background: var(--sunken); }
.prow.sub .pno { color: var(--muted); }
.prow.dragging { opacity: .4; }
.prow.over { box-shadow: inset 0 2px 0 var(--primary); }
/* 파일 제출 */
.file-drop { border: 1.5px dashed var(--line-2); border-radius: var(--r); padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.file-drop.over { border-color: var(--primary); background: var(--primary-soft); }
.file-list { display: flex; flex-direction: column; gap: 6px; }
.file-list .file-row { border-style: solid; border-color: var(--line); background: var(--surface); }
.file-pick { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 16px; border: 0; background: var(--sunken); border-radius: var(--r-sm); font: inherit; color: var(--ink); cursor: pointer; }
.file-pick:hover { background: var(--primary-soft); color: var(--primary); }
/* 폴더 고르기 팝업 */
.fp { display: flex; flex-direction: column; gap: 10px; }
.fp-bar { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border: 1px solid var(--line-2); border-radius: var(--r-sm); }
.fp-crumbs { flex: 1; display: flex; align-items: center; gap: 2px; flex-wrap: wrap; font-size: .88rem; min-width: 0; }
.fp-crumbs button { border: 0; background: none; font: inherit; color: var(--ink-2); padding: 2px 6px; border-radius: 5px; cursor: pointer; }
.fp-crumbs button:hover { background: var(--sunken); }
.fp-crumbs button:last-child { font-weight: 750; color: var(--ink); }
.fp-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); border: 1px solid var(--line); border-radius: var(--r); height: 52vh; overflow: hidden; }
.fp-tree { border-right: 1px solid var(--line); overflow: auto; padding: 6px; background: var(--sunken); }
.fp-ti { display: flex; align-items: center; gap: 5px; width: 100%; padding: 5px 8px; border: 0; border-radius: 6px; background: none; font: inherit; font-size: .86rem; color: var(--ink-2); cursor: pointer; text-align: left; white-space: nowrap; overflow: hidden; }
.fp-ti:hover { background: var(--surface); }
.fp-ti.on { background: var(--primary-soft); color: var(--primary); font-weight: 700; }
.fp-tw { width: 12px; flex: none; display: grid; place-items: center; color: var(--muted); }
.fp-right { overflow: auto; padding: 10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; align-content: start; }
.fp-item { display: flex; align-items: center; gap: 8px; padding: 10px; border: 1px solid transparent; border-radius: 9px; background: none; font: inherit; font-size: .9rem; color: var(--ink); cursor: pointer; text-align: left; min-width: 0; user-select: none; }
.fp-item:hover { background: var(--sunken); }
.fp-item.on { background: var(--primary-soft); border-color: var(--primary); }
.fp-empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px 10px; }
.fp-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fp-target { font-size: .88rem; }
.fp-chosen { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--sunken); font-size: .9rem; }
@media (max-width: 700px) { .fp-body { grid-template-columns: minmax(0, 1fr); } .fp-tree { display: none; } }
.tpl .tpl-warn { color: var(--stamp); font-weight: 700; font-size: .8rem; margin-top: 8px; line-height: 1.45; }
/* 연간시간표 PDF (나이스 공문 양식) */
#print-root { display: none; }
@media print {
  @page { size: A4 portrait; margin: 13mm 11mm 11mm 11mm; }
  body.print-tt > *:not(#print-root) { display: none !important; }
  body.print-tt #print-root { display: block; color: #000; font-family: 'Batang', '바탕', '함초롬바탕', 'HCR Batang', 'NanumMyeongjo', 'AppleMyungjo', Georgia, serif; }
  body.print-tt { background: #fff; }
}
.ttp-page { page-break-after: always; break-after: page; color: #000; }
.ttp-page:last-child { page-break-after: auto; break-after: auto; }
.ttp-page h1 { font-family: 'Malgun Gothic', '맑은 고딕', 'Dotum', '돋움', sans-serif; text-align: center; font-size: 19pt; font-weight: 700; margin: 0 0 5mm; letter-spacing: .04em; color: #000; }
.ttp-sub { display: flex; justify-content: space-between; font-size: 10pt; margin-bottom: 1.5mm; color: #000; }
.ttp { width: 100%; border-collapse: collapse; font-size: 8pt; table-layout: fixed; border: 1.5pt solid #000; color: #000; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.ttp th, .ttp td { border: .5pt solid #000; padding: 0; text-align: center; vertical-align: middle; line-height: 1.15; font-weight: 400; color: #000; }
.ttp thead tr:last-child th, .ttp thead tr:first-child th[rowspan] { border-bottom: 1.4pt solid #000; }
.ttp th.pn { font-size: 7pt; height: 3.6mm; }
.ttp thead tr:first-child th { height: 4.5mm; }
.ttp .d0 { border-left: 1.1pt solid #000; }
.ttp tbody tr, .ttp tfoot tr { height: var(--row-h, 8.5mm); }
.ttp td.wk { width: 7.5mm; }
.ttp td.per { width: 22mm; white-space: pre; font-size: 7.8pt; }
.ttp td.nd { width: 8.5mm; }
.ttp td.jd { color: #008000; }
.ttp td.chg, .ttp td.ev { color: #0000ff; font-weight: 700; text-decoration: underline; text-underline-offset: 1px; }
.ttp td.off { color: #ff0000; font-weight: 700; font-family: 'Dotum', '돋움', 'Gulim', '굴림', 'Malgun Gothic', sans-serif; font-size: 8.2pt; }
.ttp td.note { width: 41mm; text-align: left; font-family: 'Dotum', '돋움', 'Gulim', '굴림', 'Malgun Gothic', sans-serif; font-size: 6.8pt; line-height: 1.2; padding: .4mm 1.2mm; word-break: keep-all; }
.ttp-sum { width: 100%; border-collapse: collapse; table-layout: fixed; border: 1.5pt solid #000; margin-top: 3.5mm; font-size: 7.5pt; line-height: 1.15; color: #000; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.ttp-sum th, .ttp-sum td { border: .5pt solid #000; padding: .35mm .2mm; text-align: center; vertical-align: middle; font-weight: 400; color: #000; }
.ttp-sum thead th { border-bottom: 1.2pt solid #000; height: 7.5mm; }
.ttp-sum tbody tr { height: 4.6mm; }
.ttp-sum tbody tr.two { height: 7.4mm; }
.ttp-sum .d0 { border-left: 1.2pt solid #000; }
.ttp-sum .ttp-diag { position: relative; padding: 0; height: 7.5mm; }
.ttp-diag-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.ttp-sum .diag-top { position: absolute; top: .6mm; right: 1.2mm; font-size: 6.8pt; line-height: 1; }
.ttp-sum .diag-bot { position: absolute; bottom: .6mm; left: 1.2mm; font-size: 6.8pt; line-height: 1; }
.gt td button .ghost.jd { color: #16a34a; opacity: 1; font-weight: 700; }
.gt td.mine button .ghost.jd { color: #bbf7d0; }
/* 새 탭 보기 */
body.tt-view { background: #e5e7eb; margin: 0; padding: 0 0 30px; }
body.tt-view #print-root { display: block; color: #000; font-family: 'Batang', '바탕', '함초롬바탕', 'HCR Batang', 'NanumMyeongjo', 'AppleMyungjo', Georgia, serif; }
body.tt-view .ttv-bar { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 20px; background: #fff; border-bottom: 1px solid #d1d5db; font-family: 'Pretendard Variable', 'Malgun Gothic', sans-serif; }
body.tt-view .ttp-page { background: #fff; width: 188mm; min-height: 273mm; margin: 18px auto; padding: 13mm 11mm 11mm; box-shadow: 0 2px 12px rgba(0,0,0,.15); box-sizing: content-box; }
@media print { body.tt-view { background: #fff; padding: 0; } body.tt-view .ttv-bar { display: none; } body.tt-view .ttp-page { margin: 0; padding: 0; box-shadow: none; width: auto; min-height: 0; } }
.wkt td.c b { font-size: .92rem; white-space: nowrap; }
.wkt td.c .fn.jdt { color: var(--sc, #16a34a); font-weight: 650; }
.alert.due { font-weight: 400; font-size: inherit; white-space: normal; border-color: color-mix(in srgb, var(--primary) 40%, transparent); background: color-mix(in srgb, var(--primary) 7%, var(--surface, #fff)); }
.alert.due .ai { background: var(--primary); color: #fff; }
.alert.due.col { flex-direction: column; align-items: stretch; gap: 8px; }
.alert.due .drows { display: flex; flex-direction: column; }
.alert.due .drow { display: flex; align-items: center; gap: 8px; padding: 7px 0 7px 48px; border-top: 1px solid color-mix(in srgb, var(--primary) 15%, transparent); }
.alert.due .drow a { color: inherit; text-decoration: none; }

/* 알림 모달 내부 리스트 */
.nm-sec { margin-top: 14px; }
.nm-sec:first-of-type { margin-top: 4px; }
.nm-sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.nm-sec-h b { font-size: .8rem; font-weight: 700; color: var(--muted); }
.nm-sec-h span { font-size: .75rem; color: var(--muted); font-weight: 400; }
.nm-list { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.nm-row { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-top: 1px solid var(--line); }
.nm-row:first-child { border-top: 0; }
.nm-ic { width: 30px; height: 30px; border-radius: 8px; flex: none; display: grid; place-items: center; background: var(--sunken); color: var(--ink-2); }
.nm-ic.bad { background: var(--stamp-soft); color: var(--stamp); }
.nm-ic.warn { background: var(--marker-soft); color: #9a7300; }
.nm-ic.info { background: var(--primary-soft); color: var(--primary); }
.nm-body { flex: 1; min-width: 0; color: inherit; text-decoration: none; display: flex; flex-direction: column; gap: 2px; }
.nm-body:hover .nm-t { color: var(--primary); }
.nm-t { font-size: .9rem; font-weight: 650; color: var(--ink); line-height: 1.35; }
.nm-s { font-size: .8rem; font-weight: 400; color: var(--muted); line-height: 1.45; }
.nm-s .late { color: var(--stamp); font-weight: 600; }
.nm-acts { display: flex; align-items: center; gap: 6px; flex: none; }
.nm-empty { margin: 16px 0 6px; padding: 24px 12px; text-align: center; font-size: .88rem; color: var(--muted); line-height: 1.6; border: 1px dashed var(--line); border-radius: 12px; }
/* 알림 카드 안의 경고 */
.inwarn { padding-top: 4px; padding-bottom: 6px; }
.inwarn .alerts { margin: 0 0 8px; }
.inwarn .alert { padding: 10px 12px; }
.inwarn .alert .ai { width: 30px; height: 30px; }
.inwarn .alert b { font-size: .9rem; }
/* 마이페이지 */
.mp-hero { display: flex; align-items: center; gap: 18px; padding: 22px 24px; margin-bottom: 16px; border-radius: var(--r-lg, 16px); background: linear-gradient(120deg, var(--primary), color-mix(in srgb, var(--primary) 70%, #0ea5e9)); color: #fff; }
.mp-hero h1 { margin: 0; font-size: 1.5rem; color: #fff; }
.mp-hero .muted { color: rgba(255,255,255,.8); }
.mp-av { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; font-weight: 800; color: #fff; border: 2px solid rgba(255,255,255,.6); flex: none; }
.mp-stats { display: flex; gap: 10px; }
.mp-stat { display: flex; flex-direction: column; align-items: center; min-width: 78px; padding: 8px 12px; border-radius: 12px; background: rgba(255,255,255,.15); color: #fff; text-decoration: none; }
.mp-stat:hover { background: rgba(255,255,255,.25); text-decoration: none; }
.mp-stat b { font-size: 1.4rem; line-height: 1.1; }
.mp-stat span { font-size: .75rem; opacity: .9; }
.mp-docs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin-bottom: 18px; }
.mp-doc { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r); background: var(--surface, #fff); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.mp-doc:hover { text-decoration: none; }
.mp-doc b { display: block; font-size: .92rem; }
.mp-doc span span, .mp-doc .grow span { display: block; font-size: .8rem; color: var(--muted); }
.mp-doc svg { color: var(--primary); flex: none; }
.mp-doc.need { background: var(--stamp-soft); border-color: color-mix(in srgb, var(--stamp) 35%, transparent); }
.mp-doc.need svg, .mp-doc.need .grow span { color: var(--stamp); }
@media (max-width: 760px) { .mp-hero { flex-wrap: wrap; } .mp-stats { width: 100%; } .mp-stat { flex: 1; } }
.must-up { position: sticky; top: 10px; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin-bottom: 16px; border-radius: var(--r); background: var(--stamp); color: #fff; box-shadow: 0 6px 20px color-mix(in srgb, var(--stamp) 35%, transparent); }
.must-up .ai { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.2); display: grid; place-items: center; flex: none; }
.must-up b { display: block; font-size: 1rem; }
.must-up span { display: block; font-size: .84rem; opacity: .9; }
.must-up .btn.primary { background: #fff; color: var(--stamp); border-color: #fff; }
.inwarn .alert.due .drow { padding-left: 4px; flex-wrap: wrap; }
.inwarn .alert.due .row { flex-wrap: wrap; row-gap: 2px; }
.inwarn .alert.due .row > .small { flex-basis: 100%; padding-left: 42px; }

/* ───────── 내 시간표 › 학기 보기 (ttterm.js) ───────── */
.tt2-terms { margin-bottom: 16px; }
.seg { display: inline-flex; padding: 3px; background: var(--sunken); border: 1px solid var(--line); border-radius: 10px; gap: 3px; }
.seg-b { border: 0; background: none; padding: 8px 16px; border-radius: 8px; font: inherit; font-weight: 650; color: var(--muted); cursor: pointer; }
.seg-b.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.seg-b.jd.on { background: var(--c1); color: #fff; }

/* ① 매주 시간표 */
.tt2-weekwrap { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 22px; align-items: start; }
@media (max-width: 900px) { .tt2-weekwrap { grid-template-columns: minmax(0, 1fr); } }
.tt2-week { border-collapse: separate; border-spacing: 6px; width: 100%; max-width: 980px; margin: -6px; }
.tt2-week th { font-size: .82rem; color: var(--muted); font-weight: 700; padding: 0 4px; }
.tt2-week thead th { padding-bottom: 2px; }
.tt2-week tbody th { width: 52px; text-align: right; white-space: nowrap; }
.tt2-week td { padding: 0; }
.tt2-slot { position: relative; width: 100%; min-height: 58px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font: inherit; cursor: pointer; color: var(--ink); transition: transform .08s, box-shadow .12s; }
.tt2-slot:not(:disabled):hover { box-shadow: 0 0 0 2px var(--primary); transform: translateY(-1px); }
.tt2-slot:disabled { cursor: default; }
.tt2-slot b { font-size: .98rem; font-weight: 720; }
.tt2-slot .who { font-size: .7rem; font-weight: 700; padding: 1px 8px; border-radius: 99px; background: var(--sunken); color: var(--muted); }
.tt2-slot.jd { background: color-mix(in srgb, var(--sc) 15%, var(--surface)); border-color: color-mix(in srgb, var(--sc) 45%, transparent); }
.tt2-slot.jd b { color: color-mix(in srgb, var(--sc) 80%, var(--ink)); }
.tt2-slot.jd .who { background: var(--sc); color: #fff; }
.tt2-slot.none { background: transparent; border-style: dashed; color: var(--muted); }
.tt2-slot i { position: absolute; top: 4px; right: 6px; font-style: normal; font-size: .66rem; color: var(--muted); font-weight: 700; }
.tt2-slot i.warn { left: 6px; right: auto; color: var(--stamp); }
.tt2-hours table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: .88rem; }
.tt2-hours th { font-size: .76rem; color: var(--muted); font-weight: 700; text-align: left; padding: 4px 6px; border-bottom: 1px solid var(--line); }
.tt2-hours td { padding: 6px; border-bottom: 1px solid var(--line); }
.tt2-hours td:nth-child(n+2), .tt2-hours th:nth-child(n+2) { text-align: center; width: 48px; }
.tt2-hours td .cdot { margin-right: 7px; }
.jdn { color: var(--c1); font-weight: 750; }

/* ② 학기 전체 */
.tt2-term { border-collapse: separate; border-spacing: 0; width: 100%; font-size: .84rem; }
.tt2-term th, .tt2-term td { border-bottom: 1px solid var(--line); text-align: center; padding: 3px 2px; }
.tt2-term thead th { background: var(--sunken); font-weight: 700; color: var(--ink-2); position: sticky; top: 0; z-index: 1; padding: 6px 2px; }
.tt2-term thead th.pn { font-size: .72rem; color: var(--muted); font-weight: 600; padding: 2px; }
.tt2-term .d0 { border-left: 2px solid var(--line-2); }
.tt2-term th.wk { width: 30px; color: var(--muted); font-weight: 700; }
.tt2-term th.per { width: 92px; font-weight: 600; font-size: .78rem; white-space: nowrap; color: var(--ink-2); }
.tt2-term td.nd { width: 34px; color: var(--muted); font-size: .78rem; }
.tt2-term td.note, .tt2-term th.note { width: 210px; text-align: left; font-size: .76rem; color: var(--ink-2); padding-left: 10px; line-height: 1.35; }
.tt2-term td.off { background: var(--stamp-soft); color: var(--stamp); font-weight: 750; letter-spacing: .12em; font-size: .8rem; }
.tt2-term tbody tr:hover td:not(.off), .tt2-term tbody tr:hover th { background: color-mix(in srgb, var(--primary) 4%, transparent); }
.tt2-c { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 26px; padding: 0 3px; border-radius: 6px; border: 1px solid transparent; background: none; font: inherit; font-size: .8rem; font-weight: 600; color: var(--ink); cursor: pointer; position: relative; }
.tt2-c:not(:disabled):not(.demo):hover { box-shadow: 0 0 0 2px var(--primary); }
.tt2-c:disabled, .tt2-c.demo { cursor: default; }
.tt2-c.demo { min-width: 40px; border-color: var(--line); }
.tt2-c.jd { background: color-mix(in srgb, var(--sc) 18%, var(--surface)); color: color-mix(in srgb, var(--sc) 85%, var(--ink)); font-weight: 750; border-color: color-mix(in srgb, var(--sc) 40%, transparent); }
/* 외부강의·수업 이동: 노란 형광펜 (점·밑줄 대신) */
.tt2-c.chg { background: var(--marker-soft); border-color: color-mix(in srgb, var(--marker) 70%, transparent); font-weight: 700; }
.tt2-c.empty { width: 30px; border: 1px dashed transparent; }
.tt2-c.empty:hover { border-color: var(--line-2); }
.tt2-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.tt2-sumi { display: inline-flex; align-items: center; gap: 5px; font-size: .86rem; }
/* 전담 설정 팝업 */
.tt2-termbar { gap: 10px; align-items: center; margin-bottom: 14px; }
.tt2-termbar .tt2-terms { margin-bottom: 0; }
.tt2-week.jdset .tt2-slot { min-height: 62px; }
.tt2-week.jdset .tt2-slot.hr { background: var(--surface); }
.tt2-week.jdset .tt2-slot.hr .who { background: var(--line); color: var(--muted); }
.tt2-slot.dirty { outline: 2px dashed var(--primary); outline-offset: 2px; }
.jdsum { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.jdsum-r { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, var(--sc) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--sc) 30%, transparent); font-size: .9rem; }
.jdstd { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.jdstd table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.jdstd th { text-align: left; font-size: .75rem; color: var(--muted); font-weight: 650; padding: 4px 2px; }
.jdstd td { padding: 4px 2px; border-top: 1px solid var(--line); }
.jdstd td.bad { color: var(--stamp); font-weight: 700; }
.jdstd td.ok { color: var(--ok, #16a34a); font-weight: 650; }
.jdstd .input.hrs { width: 58px; padding: 4px 6px; height: 30px; text-align: center; }
/* 옆에 뜨는 메뉴 */
.pop { position: fixed; z-index: 1000; min-width: 230px; max-width: 300px; background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.16), 0 2px 6px rgba(0,0,0,.08); padding: 6px; font-size: .88rem; animation: popin .1s ease-out; }
@keyframes popin { from { opacity: 0; transform: translateY(-3px) scale(.98); } }
.pop .pop-h { padding: 8px 10px 6px; font-weight: 750; }
.pop .pop-h span { display: block; font-weight: 500; font-size: .78rem; color: var(--muted); margin-top: 2px; }
.pop .pop-sep { height: 1px; background: var(--line); margin: 5px 4px; }
.pop .pop-i { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 10px; border: 0; background: none; border-radius: 8px; font: inherit; color: var(--ink); cursor: pointer; text-align: left; }
.pop .pop-i:hover { background: color-mix(in srgb, var(--primary) 9%, transparent); }
.pop .pop-i.jdon { color: #15803d; font-weight: 650; }
.pop .pop-i.jdoff { color: var(--stamp); font-weight: 650; }
.pop .pop-l { padding: 6px 10px 4px; font-size: .74rem; color: var(--muted); font-weight: 650; }
.pop .pop-scope { display: flex; gap: 4px; padding: 2px 4px 4px; }
.pop .pop-scope button { flex: 1; padding: 6px 4px; border-radius: 8px; border: 1px solid var(--line); background: none; font: inherit; font-size: .8rem; cursor: pointer; color: var(--muted); }
.pop .pop-scope button.on { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 650; }
.pop .pop-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 2px 4px 4px; }
.pop .pop-chips button { padding: 6px 2px; border-radius: 7px; border: 1px solid color-mix(in srgb, var(--sc, var(--line)) 40%, var(--line)); background: color-mix(in srgb, var(--sc, transparent) 8%, var(--surface, #fff)); font: inherit; font-size: .8rem; cursor: pointer; color: var(--ink); }
.pop .pop-chips button:hover { border-color: var(--sc, var(--primary)); }
.pop .pop-chips button.cur { background: var(--sc, var(--primary)); color: #fff; font-weight: 700; }
.tt2-c.popped { outline: 2px solid var(--primary); outline-offset: 1px; }
.savehint.on { color: var(--primary); font-weight: 650; }
/* 시수 확인 */
.hrs-cmp { margin-top: 16px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); overflow-x: auto; }
.hrs-cmp.bad { border-color: #fda4af; }
.hrs-cmp table { border-collapse: collapse; width: 100%; font-size: .86rem; min-width: 640px; }
.hrs-cmp th, .hrs-cmp td { padding: 6px 6px; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; }
.hrs-cmp thead th { font-size: .78rem; color: var(--muted); font-weight: 650; }
.hrs-cmp tbody th { text-align: left; font-size: .8rem; color: var(--muted); white-space: nowrap; }
.hrs-cmp td.x { color: var(--stamp); font-weight: 800; }
.hrs-cmp tr.diff td.m { color: var(--stamp); font-weight: 800; }
.hrs-cmp tr.diff td.p { color: #1d4ed8; font-weight: 800; }
.hrs-cmp tr.diff td { color: var(--muted); }
.hrs-bad { color: var(--stamp); font-weight: 700; }
.hrs-ok { color: #15803d; font-weight: 700; }
.hrs-in { width: 48px; height: 26px; padding: 0 4px; border: 1px solid var(--line-2); border-radius: 6px; font: inherit; font-size: .82rem; text-align: center; background: var(--surface); color: var(--ink); }
.hrs-in:focus { outline: none; border-color: var(--primary); }
.hrs-sub { display: inline; font-size: inherit; font-weight: inherit; color: var(--muted); white-space: nowrap; margin-left: 3px; }
.tt2-c .l3 { font-size: .68rem; letter-spacing: -.07em; white-space: nowrap; }
.tt2-c .l4 { font-size: .6rem; line-height: 1.05; letter-spacing: -.04em; }
.jd-print .pill.bad { border: 1px solid color-mix(in srgb, var(--stamp) 45%, transparent); font-weight: 700; }
/* 연간시간표 원본의 파란 굵은 글씨 = 학사일정(행사)과 연결된 수업 */
.tt2-c.ev { color: #1d4ed8; font-weight: 800; }
.tt2-c.ev.jd { color: #1d4ed8; }
@media (prefers-color-scheme: dark) { .tt2-c.ev, .tt2-c.ev.jd { color: #7aa2ff; } }
.pop .pop-i.ev { color: #1d4ed8; font-weight: 650; }
.pop-ev { margin: 2px 0 8px; padding: 7px 9px; border-radius: 7px; background: #eff6ff; border: 1px solid #bfdbfe; color: #1e3a8a; font-size: 12px; line-height: 1.45; }
.pop-ev-i + .pop-ev-i { margin-top: 4px; padding-top: 4px; border-top: 1px dashed #bfdbfe; }
.pop-ev-i strong { font-weight: 700; color: #1d4ed8; }
.pop-ev-s { color: #3b82f6; font-weight: 600; }
.pop-ev-d { margin-top: 2px; color: #334155; font-size: 11px; white-space: pre-wrap; word-break: keep-all; }
.pop-ev-empty { color: #64748b; font-size: 11.5px; }
@media (prefers-color-scheme: dark) {
  .pop-ev { background: rgba(37, 99, 235, 0.16); border-color: rgba(96, 165, 250, 0.35); color: #dbeafe; }
  .pop-ev-i + .pop-ev-i { border-top-color: rgba(96, 165, 250, 0.25); }
  .pop-ev-i strong { color: #93c5fd; }
  .pop-ev-s { color: #bfdbfe; }
  .pop-ev-d { color: #cbd5e1; }
  .pop-ev-empty { color: #94a3b8; }
}
.hrs-cmp.jdh table { min-width: 0; width: auto; }
.hrs-cmp.jdh th, .hrs-cmp.jdh td { padding: 6px 14px; }
.jdstd .input.hrs.t { width: 64px; }
.modal .tt2-weekwrap { grid-template-columns: minmax(0, 1fr) 380px; }
@media (max-width: 1100px) { .modal .tt2-weekwrap { grid-template-columns: minmax(0, 1fr); } }
.jdstd td:first-child { white-space: nowrap; }
.jdstd .input.hrs { width: 52px; }
.jdstd .input.hrs.t { width: 60px; }
.jdstd th, .jdstd td { padding: 4px 3px; }
.tt2-legrow { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.jdbox { margin-left: auto; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 5px 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: .82rem; }
.jdbox-t { font-weight: 750; color: var(--muted); margin-right: 2px; }
.jdbox-i { display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; border-radius: 8px; background: color-mix(in srgb, var(--ink) 4%, transparent); }
.jdbox-i.bad { background: var(--stamp-soft); color: var(--stamp); }
.jdbox-i.ok { background: color-mix(in srgb, #16a34a 10%, transparent); }
.jdbox-n { font-weight: 800; }
.jdbox-i i { font-style: normal; font-weight: 800; font-size: .78rem; }
.jdbox-i.ok i { color: #15803d; }
.jdbox-in { width: 46px; height: 24px; padding: 0 4px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: .8rem; text-align: center; background: #fff; }
.jdbox-in:focus { outline: 2px solid var(--primary); border-color: transparent; }
.tt2-legrow { flex-wrap: nowrap; align-items: flex-start; }
.tt2-legrow > .row { flex: 1 1 auto; min-width: 0; row-gap: 6px; }
.tt2-legrow > .jdbox { flex: none; }
@media (max-width: 900px) { .tt2-legrow { flex-wrap: wrap; } }
.gt td.busy button { background: repeating-linear-gradient(45deg, var(--stamp-soft), var(--stamp-soft) 6px, transparent 6px, transparent 12px); color: var(--stamp); cursor: not-allowed; }
.gt td button .ghost.busy { color: var(--stamp); opacity: 1; font-weight: 700; font-size: .7rem; }
.jdbox { gap: 6px; padding: 5px 6px 5px 10px; }
.jdbox-i { white-space: nowrap; }
.jdbox-s { color: var(--muted); font-weight: 500; }
.jdbox-i.bad .jdbox-s { color: inherit; opacity: .75; }
.jdbox-i i { margin-left: 3px; }
.jdbox-btn { border: 1px solid var(--line); background: var(--surface); border-radius: 7px; padding: 3px 10px; font: inherit; font-size: .78rem; font-weight: 650; cursor: pointer; color: var(--muted); margin-left: 2px; }
.jdbox-btn:hover { color: var(--ink); border-color: var(--ink); }
.jdbox-btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.jdbox-btn.ghost { border-color: transparent; }
.jdbox.edit .jdbox-i { background: color-mix(in srgb, var(--ink) 4%, transparent); gap: 6px; }
.brand .brand-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-mark svg { display: block; }
.jdt td.c.miss { color: #1d4ed8; background: repeating-linear-gradient(135deg, var(--surface), var(--surface) 4px, var(--sunken) 4px, var(--sunken) 6px); }
.jdt td.c.miss svg, .jd-legend .c.miss svg { display: block; margin: auto; }
.jd-misslg { margin-left: 12px; font-size: .78rem; font-weight: 500; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.jd-misslg .c.miss.demo { color: #1d4ed8; font-weight: 800; }
.jdt td.c.on.evc { background: #fff; color: #1d4ed8; font-weight: 900; box-shadow: inset 0 0 0 2px #1d4ed8; }


.pick-list { display: grid; gap: 6px; max-height: 320px; overflow: auto; margin-top: 10px; padding-right: 2px; }
.pick-i { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font: inherit; text-align: left; cursor: pointer; color: var(--ink); }
.pick-i:hover { border-color: var(--primary); }
.pick-i.on { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary) inset; background: var(--primary-soft); }
.pick-r { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; }
.pick-i.on .pick-r { border: 5px solid var(--primary); }
.pick-d { min-width: 110px; }
.pick-s { flex: 1; font-weight: 650; }


/* 전담 공유 과목 탭: 공통 학사일정 */
.jdt td.c.evs { color: #1d4ed8; background: #eff6ff; }
.jdt td.c.evs svg, .jd-legend .c.evs svg { display: block; margin: auto; }
.jdt td.c.on.evx { background: var(--stamp) !important; color: #fff; box-shadow: inset 0 0 0 2px #1d4ed8; }
.jd-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 10px; font-size: .8rem; color: var(--muted); }
.jd-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.jd-legend .c.demo { display: inline-grid; place-items: center; min-width: 30px; height: 22px; border-radius: 5px; font-size: .72rem; font-weight: 800; }
.jd-legend .c.on.demo { background: var(--sc); color: #fff; }
.jd-legend .c.evs.demo { color: #1d4ed8; background: #eff6ff; }
.jd-legend .c.miss.demo { color: #1d4ed8; background: repeating-linear-gradient(135deg, var(--surface), var(--surface) 4px, var(--sunken) 4px, var(--sunken) 6px); }
.jd-legend .c.evx.demo { background: var(--stamp); color: #fff; box-shadow: inset 0 0 0 2px #1d4ed8; }
.jd-legend .c.on.evc.demo { background: #fff; color: #1d4ed8; box-shadow: inset 0 0 0 2px #1d4ed8; }
.jd-evwarn { margin: 0 0 10px; padding: 8px 12px; border-radius: 8px; background: var(--stamp-soft); color: var(--stamp); font-weight: 650; font-size: .86rem; }
@media (prefers-color-scheme: dark) { .jdt td.c.evs, .jd-legend .c.evs.demo { background: #142033; color: #7aa2ff; } }

/* 전담 공유 과목 탭: 칸 누르면 뜨는 정보 (보기만) */
.jdt td[data-info] { cursor: pointer; }
.jdt td[data-info]:hover { outline: 2px solid var(--primary); outline-offset: -2px; }
.jd-info { padding: 12px 14px; max-width: 300px; font-size: .86rem; }
.jd-info b { display: block; font-size: .92rem; margin-bottom: 4px; }
.jd-info p { margin: 4px 0 0; color: var(--ink-2); line-height: 1.45; }
.pill.clk { cursor: pointer; }

/* ───────── 내 시간표 맨 위: 할 일 목록 (자세히는 접어둠) ───────── */
.td { margin: 0 0 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid #f59e0b; box-shadow: var(--shadow); padding: 14px 18px 12px; }
.td.info { border-left-color: #3b82f6; }
.td-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.td-h b { font-size: 1.05rem; font-weight: 780; }
.td-h span { font-size: .85rem; color: var(--muted); }
.td-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 2px; }
.td-list li { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-top: 1px solid var(--line); }
.td-list li:first-child { border-top: 0; }
.td-n { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #fef3c7; color: #b45309; font-weight: 800; font-size: .8rem; }
.td-t { flex: 1; min-width: 0; }
.td-t b { display: block; font-size: .95rem; font-weight: 700; }
.td-t span { display: block; font-size: .82rem; color: var(--muted); margin-top: 1px; }
.td-more { margin-top: 8px; border-top: 1px dashed var(--line); padding-top: 8px; }
.td-more summary { cursor: pointer; font-size: .84rem; color: var(--ink-2); font-weight: 600; list-style: none; }
.td-more summary::-webkit-details-marker { display: none; }
.td-more summary::before { content: '▸ '; color: var(--muted); }
.td-more[open] summary::before { content: '▾ '; }
.td-sec { margin-top: 10px; }
.td-sec-h { display: flex; align-items: center; justify-content: space-between; font-size: .8rem; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.td-line { display: flex; gap: 10px; align-items: baseline; font-size: .86rem; padding: 3px 0; flex-wrap: wrap; }
.td-when { min-width: 100px; color: var(--ink-2); }
.td-why { font-size: .8rem; color: var(--muted); }
.td-tag { font-size: .72rem; font-weight: 800; padding: 1px 6px; border-radius: 5px; color: #fff; background: #2563eb; }
.td-tag.edit { background: #d97706; } .td-tag.del { background: var(--stamp); }
.td-hours { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .84rem; }
.td-hours .m { color: var(--stamp); font-weight: 700; } .td-hours .p { color: var(--c1); font-weight: 700; }
@media (prefers-color-scheme: dark) { .td-n { background: #3a2c0d; color: #fbbf24; } }
.fx-src b { font-weight: 500; margin-left: 4px; }
/* 폰: 학기 표 위 범례·학기 전담 박스는 줄바꿈 */
@media (max-width: 700px) {
  .tt2-legrow { flex-wrap: wrap; }
  .tt2-legrow > .jdbox { flex: 1 1 100%; margin-left: 0; }
  .td { padding: 12px 12px 10px; }
  .td-list li { flex-wrap: wrap; }
  .td-list li > .btn { margin-left: 36px; }
}
/* 한국어는 낱말 중간에서 줄이 안 바뀌게 */
body { word-break: keep-all; overflow-wrap: break-word; }
.boot-err { max-width: 420px; margin: 80px auto; padding: 24px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.boot-err b { display: block; font-size: 1.1rem; margin-bottom: 6px; }
.boot-err p { color: var(--muted); font-size: .9rem; margin: 0 0 16px; }
.login-opts { display: flex; gap: 18px; margin: -2px 0 10px; font-size: .88rem; color: var(--ink-2); }
.login-opts label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.auth-links { flex-wrap: wrap; gap: 8px 14px; }
.auth-sep { display: flex; align-items: center; gap: 10px; margin: 14px 0 12px; color: var(--muted); font-size: .8rem; }
.auth-sep::before, .auth-sep::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.btn-google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 42px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; font-size: .92rem; font-weight: 650; cursor: pointer; transition: background .12s, border-color .12s, box-shadow .12s; }
.btn-google:hover { background: var(--sunken); border-color: var(--ink-2); }
.btn-google svg { flex: none; }
.hello2-title { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hello2-sub { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.portal-open-btn { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: inherit; font-size: .78rem; font-weight: 650; cursor: pointer; transition: background .12s, border-color .12s, color .12s; }
.portal-open-btn:hover { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }
.auth-legal { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); }
.auth-legal a { color: var(--muted); text-decoration: none; }
.auth-legal a:hover { color: var(--ink); text-decoration: underline; }
.legal { max-width: 780px; margin: 36px auto 56px; padding: 0 18px; }
.legal-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 32px 30px; line-height: 1.75; color: var(--ink-2); }
.legal-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.legal-brand { font-weight: 800; font-size: 1rem; color: var(--ink); text-decoration: none; }
.legal-card h1 { margin: 0 0 6px; font-size: 1.6rem; font-weight: 800; color: var(--ink); letter-spacing: -0.025em; }
.legal-meta { margin: 0 0 22px; font-size: .84rem; color: var(--muted); }
.legal-card h2 { margin: 24px 0 8px; font-size: 1.05rem; font-weight: 750; color: var(--ink); }
.legal-card p { margin: 8px 0; font-size: .94rem; }
.legal-card ul { margin: 8px 0; padding-left: 20px; font-size: .94rem; }
.legal-card li { margin: 5px 0; }
.legal-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .88rem; }
.legal-foot a { color: var(--primary); font-weight: 650; text-decoration: none; }
.legal-foot a:hover { text-decoration: underline; }
@media (max-width: 600px) { .legal { margin: 16px auto 36px; padding: 0 12px; } .legal-card { padding: 22px 18px; } }

/* 홈: 학년 공동 메모장 */
.memo-body { padding: 14px 16px; border-radius: 10px; background: color-mix(in srgb, var(--marker-soft) 55%, var(--surface)); border: 1px solid color-mix(in srgb, var(--marker) 32%, var(--line)); font-size: .92rem; line-height: 1.72; color: var(--ink); white-space: pre-wrap; word-break: break-word; }
.memo-body a { color: var(--primary); text-decoration: underline; word-break: break-all; }
.memo-empty { width: 100%; padding: 20px 14px; border-radius: 10px; border: 1px dashed var(--line-2); background: var(--sunken); color: var(--muted); font: inherit; font-size: .86rem; line-height: 1.6; text-align: left; cursor: pointer; transition: border-color .12s, color .12s, background .12s; }
.memo-empty:hover { border-color: var(--primary); color: var(--ink); background: var(--surface); }
.memo-ta { width: 100%; min-height: 150px; resize: vertical; line-height: 1.68; font-size: .92rem; }
.memo-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 8px; font-size: .76rem; color: var(--muted); }

/* ───────── 쉬운 품의 (pumui.js) ───────── */
.pm-priv-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 99px; background: var(--primary-soft); border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent); color: var(--primary); font-size: .76rem; font-weight: 700; line-height: 1.35; }
.pm-board-card { overflow: hidden; }
.pm-board { width: 100%; border-collapse: collapse; min-width: 780px; }
.pm-board thead th { background: var(--sunken); color: var(--muted); font-size: .79rem; font-weight: 700; text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.pm-board tbody td { padding: 12px; border-bottom: 1px solid var(--line); font-size: .92rem; vertical-align: middle; }
.pm-brow { cursor: pointer; transition: background .1s; }
.pm-brow:hover td { background: color-mix(in srgb, var(--primary) 5%, transparent); }
.pm-bno { width: 56px; text-align: center !important; color: var(--muted); font-size: .84rem; }
.pm-btitle { min-width: 220px; }
.pm-blink { font-weight: 720; color: var(--ink); text-decoration: none; margin-right: 8px; }
.pm-blink:hover { color: var(--primary); text-decoration: underline; }
.pm-stpill { display: inline-block; font-size: .72rem; font-weight: 750; padding: 2px 7px; border-radius: 99px; vertical-align: 1px; }
.pm-stpill.done { background: var(--ok-soft); color: var(--ok); }
.pm-stpill.draft { background: var(--marker-soft); color: #9a7300; }
.pm-bitem { max-width: 260px; color: var(--ink-2); }
.pm-bvend { white-space: nowrap; color: var(--ink-2); font-size: .86rem; }
.pm-bamt { text-align: right !important; font-weight: 750; white-space: nowrap; }
.pm-bquote { white-space: nowrap; }
.pm-qpill { display: inline-flex; align-items: center; gap: 4px; font-size: .76rem; font-weight: 650; padding: 2px 8px; border-radius: 99px; background: var(--primary-soft); color: var(--primary); }
.pm-bdate { white-space: nowrap; text-align: center !important; }
.pm-bacts { white-space: nowrap; width: 108px; }
.pm-bacts .btn { margin-right: 4px; }
.pm-empty-board { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 36px 16px; text-align: center; color: var(--muted); }
.pm-empty-board b { color: var(--ink); font-size: 1rem; }
.pm-empty-board p { margin: 0 0 8px; }

/* 작성 / 편집 화면 */
.pm-step + .pm-step { margin-top: 16px; }
.pm-titlerow { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.pm-title-big { font-size: 1.08rem; font-weight: 700; }
.pm-prevline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; padding: 8px 12px; border-radius: 8px; background: var(--sunken); font-size: .86rem; color: var(--ink-2); }
.pm-prevline b { color: var(--primary); }
.pm-prevbadge { font-size: .72rem; font-weight: 750; padding: 2px 7px; border-radius: 6px; background: var(--primary-soft); color: var(--primary); }
.pm-metafield { display: flex; flex-direction: column; gap: 4px; }
.pm-budget-in { width: 170px; height: 38px; font-size: .9rem; }
.pm-memo-in { height: 38px; font-size: .9rem; }
.pm-opt { margin-top: 10px; }
.pm-opt summary { cursor: pointer; display: inline-flex; align-items: center; gap: 4px; font-size: .82rem; font-weight: 620; color: var(--muted); list-style: none; user-select: none; }
.pm-opt summary::-webkit-details-marker { display: none; }
.pm-opt summary::before { content: '▸'; font-size: .78rem; }
.pm-opt[open] summary::before { content: '▾'; }
.pm-opt summary:hover { color: var(--primary); }
.pm-opt-body { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.pm-save { font-size: .8rem; color: var(--muted); padding: 0 6px; white-space: nowrap; }
.pm-save.saving, .pm-save.dirty { color: var(--primary); font-weight: 600; }
.pm-save.error { color: var(--stamp); font-weight: 650; }

.pm-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
@media (max-width: 820px) { .pm-modes { grid-template-columns: 1fr; } }
.pm-mode { display: flex; align-items: flex-start; gap: 11px; padding: 13px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: border-color .12s, background .12s, box-shadow .12s; }
.pm-mode:hover { border-color: var(--primary); }
.pm-mode.on { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 1px var(--primary) inset; }
.pm-mode-ic { width: 36px; height: 36px; border-radius: 9px; background: var(--sunken); color: var(--primary); display: grid; place-items: center; flex: none; }
.pm-mode.on .pm-mode-ic { background: var(--primary); color: #fff; }
.pm-mode-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pm-mode-tx b { font-size: .94rem; font-weight: 740; }
.pm-mode-tx span { font-size: .79rem; color: var(--muted); line-height: 1.4; }
.pm-mode-body { padding: 14px 16px; border-radius: 12px; background: var(--sunken); border: 1px solid var(--line); }

.pm-seg { padding: 2px; border-radius: 8px; background: var(--surface); }
.pm-seg .seg-b { padding: 4px 10px; font-size: .78rem; border-radius: 6px; }
.pm-bm-btn { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font: inherit; font-size: .78rem; font-weight: 650; cursor: pointer; }
.pm-bm-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.pm-bm-box { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 14px; margin: 12px 0; border-radius: 12px; border: 1.5px dashed var(--primary); background: var(--primary-soft); }
.pm-bm-inline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 11px 14px; border-radius: 10px; border: 1.5px dashed var(--primary); background: var(--primary-soft); }
.pm-bm-link { cursor: grab; text-decoration: none !important; }

.pm-drop { display: flex; align-items: center; gap: 12px; padding: 16px 16px; border-radius: 10px; border: 1.5px dashed var(--line-2); background: var(--surface); cursor: pointer; transition: border-color .12s, background .12s; }
.pm-drop:hover, .pm-drop.over { border-color: var(--primary); background: var(--primary-soft); }
.pm-drop b { display: block; font-size: .92rem; color: var(--ink); }
.pm-drop svg { color: var(--primary); flex: none; }

.pm-qchips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.pm-qchips:empty { display: none; }
.pm-qchip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px 4px 10px; border-radius: 99px; background: var(--surface); border: 1px solid var(--primary); color: var(--primary); font-size: .8rem; font-weight: 650; }
.pm-qchip-x { border: 0; background: none; color: var(--muted); cursor: pointer; display: inline-grid; place-items: center; padding: 2px; border-radius: 50%; }
.pm-qchip-x:hover { color: var(--stamp); background: var(--stamp-soft); }

.pm-ship, .pm-urlwarn { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 11px 14px; margin-top: 12px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--marker) 60%, var(--line)); background: var(--marker-soft); color: var(--ink); }
.pm-urlwarn { align-items: flex-start; }
.pm-urlwarn b { display: block; margin-bottom: 2px; font-size: .86rem; }
.pm-urlwarn p { margin: 0; color: var(--ink-2); line-height: 1.45; }

.pm-tablecard { overflow: hidden; }
.pm-thbar { flex-wrap: wrap; row-gap: 8px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.pm-bstat { font-size: .8rem; font-weight: 700; padding: 2px 9px; border-radius: 99px; }
.pm-bstat.ok { background: var(--ok-soft); color: var(--ok); }
.pm-bstat.over { background: var(--stamp-soft); color: var(--stamp); }

.pm-twrap { overflow-x: auto; }
.pm-tbl { width: 100%; border-collapse: collapse; min-width: 900px; }
.pm-tbl thead th { background: var(--sunken); color: var(--muted); font-size: .8rem; font-weight: 700; text-align: left; vertical-align: middle; padding: 10px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.pm-tbl thead th.pm-no, .pm-tbl thead th.pm-qty { text-align: center; }
.pm-tbl thead th.pm-price, .pm-tbl thead th.pm-amt { text-align: right; }
.pm-tbl thead th.pm-amt { padding-right: 16px; }
.pm-tbl thead th.pm-vend { padding-left: 14px; }
.pm-tbl tbody td { padding: 6px 5px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pm-tbl tbody tr:hover td { background: color-mix(in srgb, var(--primary) 3%, transparent); }
.pm-tbl .pm-no { width: 38px; }
.pm-tbl tbody td.pm-no { text-align: center; color: var(--muted); font-size: .82rem; padding-top: 13px; }
.pm-tbl .pm-name { min-width: 230px; }
.pm-tbl .pm-spec { width: 180px; }
.pm-tbl .pm-price { width: 112px; }
.pm-tbl .pm-qty { width: 72px; }
.pm-tbl .pm-amt { width: 124px; }
.pm-tbl tbody td.pm-amt { text-align: right; font-weight: 750; color: var(--ink); padding-top: 12px; padding-right: 16px; white-space: nowrap; }
.pm-tbl .pm-vend { width: 122px; }
.pm-tbl tbody td.pm-vend { padding-left: 10px; }
.pm-tbl .pm-note { width: 150px; }
.pm-tbl .pm-del { width: 38px; }
.pm-tbl tbody td.pm-del { text-align: center; padding-top: 9px; }

.pm-in { width: 100%; height: 34px; padding: 4px 8px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--ink); font: inherit; font-size: .9rem; transition: border-color .1s, background .1s; }
.pm-in:hover { border-color: var(--line); background: var(--surface); }
.pm-in:focus { outline: none; border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 16%, transparent); }
.pm-in.r { text-align: right; }
.pm-in.c { text-align: center; }

.pm-imeta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 2px 8px 0; }
.pm-vbadge { font-size: .7rem; font-weight: 750; padding: 1px 6px; border-radius: 5px; background: var(--sunken); color: var(--ink-2); }
.pm-vbadge.gm { background: #e8f5e9; color: #1b5e20; }
.pm-vbadge.ic { background: #fff3e0; color: #c65102; }
@media (prefers-color-scheme: dark) {
  .pm-vbadge.gm { background: #163320; color: #7ee29a; }
  .pm-vbadge.ic { background: #382311; color: #ffb26b; }
}
.pm-pnote { font-size: .72rem; color: var(--muted); }
.pm-ulink { display: inline-flex; align-items: center; gap: 3px; font-size: .74rem; color: var(--primary); font-weight: 600; white-space: nowrap; text-decoration: none; }
.pm-ulink:hover { text-decoration: underline; }

.pm-x { width: 28px; height: 28px; border-radius: 7px; border: 0; background: transparent; color: var(--muted); display: inline-grid; place-items: center; cursor: pointer; }
.pm-x:hover { background: var(--stamp-soft); color: var(--stamp); }

.pm-empty-row td { padding: 34px 16px !important; }
.pm-empty { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--muted); text-align: left; }
.pm-empty b { display: block; color: var(--ink); font-size: .95rem; margin-bottom: 2px; }
.pm-empty p { margin: 0; }

.pm-tfoot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 18px; background: var(--sunken); border-top: 1px solid var(--line); }
.pm-total { display: flex; align-items: baseline; gap: 10px; }
.pm-total b { font-size: 1.32rem; font-weight: 820; color: var(--primary); letter-spacing: -.02em; }

/* 완료 화면: 기안문 + 견적서 PDF + 엑셀 복사 표 */
.pm-draft-card { margin-bottom: 18px; }
.pm-toggle-lbl { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 650; color: var(--ink-2); }
.pm-draft-ta { width: 100%; min-height: 186px; font-family: 'Pretendard Variable', 'Malgun Gothic', monospace; font-size: .95rem; line-height: 1.78; padding: 16px 18px; background: color-mix(in srgb, var(--marker-soft) 38%, var(--surface)); border-color: color-mix(in srgb, var(--marker) 38%, var(--line)); resize: vertical; }

.pm-qpdf-bar { margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: var(--sunken); border: 1px solid var(--line); }
.pm-qpdf-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pm-qpdf-head b { display: inline-flex; align-items: center; gap: 6px; font-size: .92rem; }
.pm-qpdf-list { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.pm-qpdf-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; font-size: .82rem; font-weight: 650; cursor: pointer; transition: border-color .12s, color .12s, background .12s; }
.pm-qpdf-chip:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }

.pm-rtbl { width: 100%; border-collapse: collapse; min-width: 920px; }
.pm-rtbl th, .pm-rtbl td { border: 1px solid var(--line); }
.pm-rtbl thead th { background: var(--sunken); color: var(--ink-2); font-size: .8rem; font-weight: 720; padding: 8px 10px; white-space: nowrap; }
.pm-rtbl tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--sunken) 45%, var(--surface)); }
.pm-thc { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.pm-colcopy { width: 22px; height: 22px; border-radius: 5px; border: 1px solid transparent; background: transparent; color: var(--muted); display: inline-grid; place-items: center; cursor: pointer; }
.pm-colcopy:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.pm-rno { width: 46px; text-align: center; color: var(--muted); font-size: .84rem; padding: 8px 4px; }
.pm-rname { min-width: 240px; }
.pm-rspec { min-width: 160px; }
.pm-rqty { width: 78px; }
.pm-rprice { width: 112px; }
.pm-ramt { width: 122px; font-weight: 750; }
.pm-rvend { width: 110px; }
.pm-rnote { width: 150px; }
.pm-ract { width: 88px; text-align: center; padding: 4px 6px; }

.pm-rcell { padding: 0; }
.pm-rcell.empty { padding: 9px 10px; text-align: center; }
.pm-ccopy { width: 100%; min-height: 40px; padding: 8px 10px; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: .9rem; display: flex; align-items: center; justify-content: space-between; gap: 6px; text-align: left; cursor: pointer; transition: background .1s; }
.pm-rcell.r .pm-ccopy { justify-content: flex-end; }
.pm-rcell.c .pm-ccopy { justify-content: center; }
.pm-ccopy:hover { background: var(--primary-soft); }
.pm-ccopy-v { min-width: 0; word-break: break-word; }
.pm-ccopy-ic { flex: none; opacity: .38; color: var(--primary); transition: opacity .1s; }
.pm-ccopy:hover .pm-ccopy-ic { opacity: 1; }
.pm-ccopy.copied { background: var(--ok-soft) !important; }
.pm-ccopy.copied .pm-ccopy-ic { opacity: 1; color: var(--ok); }
.pm-rowcopy.copied { border-color: var(--ok); color: var(--ok); background: var(--ok-soft); }
.pm-extbtn { flex: none; width: 28px; height: 28px; border-radius: 6px; display: inline-grid; place-items: center; color: var(--muted); }
.pm-extbtn:hover { color: var(--primary); background: var(--primary-soft); }

.pm-rfoot td { background: var(--marker-soft) !important; font-weight: 780; }
.pm-rfoot-lbl { padding: 10px 12px; font-size: .92rem; }
.pm-rbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.pm-steps { display: flex; flex-direction: column; gap: 16px; }
.pm-steps > .panel + .panel, .pm-steps > .pm-step + .pm-step { margin-top: 0; }
.pm-steps > .pm-ship { margin-top: 0; }
.pm-dtitle-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; padding: 8px 12px; border-radius: 10px; background: var(--sunken); border: 1px solid var(--line); }
.pm-dtitle-lbl { font-size: .84rem; font-weight: 720; color: var(--muted); white-space: nowrap; }
.pm-dtitle-in { flex: 1; height: 34px; font-weight: 700; background: var(--surface); }
.pm-qpdf-item { display: inline-flex; align-items: center; gap: 4px; }
.pm-qpdf-xls { height: 31px; padding: 0 8px; border-radius: 7px; border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); font: inherit; font-size: .75rem; font-weight: 700; cursor: pointer; }
.pm-qpdf-xls:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.pm-merge-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 2px 8px 4px; line-height: 1.3; }
.pm-merge-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 99px; background: var(--ok-soft); color: var(--ok); font-size: .74rem; font-weight: 720; white-space: nowrap; }
.pm-src-badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 99px; background: var(--sunken); border: 1px solid var(--line); color: var(--muted); font-size: .74rem; font-weight: 620; white-space: nowrap; }
.pm-split-btn { border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); border-radius: 6px; padding: 2px 7px; font: inherit; font-size: .72rem; font-weight: 650; cursor: pointer; white-space: nowrap; }
.pm-split-btn:hover { border-color: var(--stamp); color: var(--stamp); background: var(--stamp-soft); }
.pm-merged-row td { background: color-mix(in srgb, var(--ok-soft) 32%, var(--surface)); }

.ev-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.ev-filters { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ev-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: inherit; font-size: .84rem; font-weight: 640; cursor: pointer; transition: border-color .12s, background .12s, color .12s; }
.ev-chip:hover { border-color: var(--primary); color: var(--primary); }
.ev-chip.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.ev-chip-n { font-size: .74rem; padding: 1px 6px; border-radius: 99px; background: var(--sunken); color: var(--muted); font-weight: 700; }
.ev-chip.on .ev-chip-n { background: rgba(255, 255, 255, .22); color: #fff; }
.ev-acts { display: inline-flex; align-items: center; gap: 4px; flex: none; margin-left: auto; }
.evi-edit { flex: none; width: 30px; height: 30px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; transition: background .12s, color .12s, border-color .12s; }
.evi-edit:hover { background: var(--primary-soft); color: var(--primary); border-color: color-mix(in srgb, var(--primary) 28%, transparent); }

/* 나이스 일괄 대조 모달 */
.neis-cmp-list { display: block; max-height: 55vh; overflow-y: auto; margin-bottom: 14px; padding: 2px 4px 2px 0; }
.neis-cmp-day { display: block; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.neis-cmp-day + .neis-cmp-day { margin-top: 10px; }
.neis-cmp-dh { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 14px; background: var(--sunken); border-bottom: 1px solid var(--line); font-weight: 750; font-size: .88rem; }
.neis-cmp-cnt { font-size: .74rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.neis-cmp-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-top: 1px solid var(--line); line-height: 1.4; }
.neis-cmp-row:first-of-type { border-top: 0; }
.neis-cmp-p { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 50px; padding: 3px 9px; border-radius: 8px; background: var(--primary-soft); color: var(--primary); font-size: .78rem; font-weight: 760; }
.neis-cmp-diff { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex: 1; min-width: 0; }
.neis-cmp-side { display: inline-flex; align-items: center; gap: 5px; }
.neis-cmp-lbl { font-size: .74rem; color: var(--muted); font-weight: 600; white-space: nowrap; }
.neis-cmp-val { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 7px; font-size: .84rem; font-weight: 720; white-space: nowrap; }
.neis-cmp-val.ours { background: var(--sunken); color: var(--ink); border: 1px solid var(--line); }
.neis-cmp-val.neis { background: var(--stamp-soft); color: var(--stamp); border: 1px solid color-mix(in srgb, var(--stamp) 28%, transparent); }
.neis-cmp-arr { color: var(--muted); font-weight: 700; font-size: .85rem; }
.neis-loading { padding: 4px 0; }
.neis-prog { height: 8px; border-radius: 99px; background: var(--sunken); border: 1px solid var(--line); overflow: hidden; }
.neis-prog-bar { height: 100%; background: var(--primary); border-radius: 99px; transition: width .22s ease; }
.neis-cmp-filter { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }

/* ───────── 회의 소집 (home.js) ───────── */
.mt-call-btn { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--primary); background: var(--primary); color: #fff; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; transition: opacity .12s, transform .08s; }
.mt-call-btn:hover { opacity: .92; transform: translateY(-1px); }
.mt-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.mt-card { background: var(--surface); border: 1px solid color-mix(in srgb, var(--primary) 35%, var(--line)); border-left: 4px solid var(--primary); border-radius: var(--r-lg); padding: 14px 18px; box-shadow: var(--shadow); }
.mt-card.unread { background: color-mix(in srgb, var(--marker-soft) 55%, var(--surface)); border-color: color-mix(in srgb, var(--marker) 70%, var(--line)); border-left-color: #d97706; }
.mt-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.mt-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; flex: none; }
.mt-card.unread .mt-ic { background: var(--marker); color: var(--board); }
.mt-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mt-when { font-size: .82rem; font-weight: 800; padding: 2px 8px; border-radius: 6px; background: var(--primary); color: #fff; }
.mt-card.unread .mt-when { background: #d97706; }
.mt-place { font-size: .82rem; font-weight: 750; padding: 2px 8px; border-radius: 6px; background: var(--sunken); color: var(--ink); }
.mt-title { font-size: 1.04rem; font-weight: 780; color: var(--ink); margin-top: 4px; }
.mt-memo { font-size: .86rem; color: var(--ink-2); margin-top: 2px; }
.mt-acks { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line); }
.mt-acks summary { cursor: pointer; font-size: .8rem; font-weight: 680; color: var(--muted); list-style: none; user-select: none; }
.mt-acks summary::-webkit-details-marker { display: none; }
.mt-acks summary::before { content: '▸ '; }
.mt-acks[open] summary::before { content: '▾ '; }
.mt-acklist { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mt-ack { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 99px; font-size: .76rem; font-weight: 600; background: var(--sunken); color: var(--muted); border: 1px solid var(--line); }
.mt-ack.ok { background: var(--ok-soft); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.mt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mt-chips .chip { padding: 4px 10px; font-size: .8rem; cursor: pointer; }




/* ───── ChubbyEdu 통합 계정 ───── */
.chubby-strip { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; color: var(--muted, #6b7280); font-size: 13px; font-weight: 600; text-decoration: none; }
.chubby-strip b { color: #211b2f; font-weight: 800; letter-spacing: -.02em; }
.chubby-strip b span { color: #5f46bf; }
.chubby-sep { color: #d6d0df; }
.btn-chubby-mail { margin-top: 10px; }
.pw-login { margin-top: 22px; border-top: 1px solid var(--line, #e5e7eb); padding-top: 14px; text-align: center; }
.pw-login summary { cursor: pointer; font-size: 13px; color: var(--muted, #6b7280); list-style: none; }
.pw-login summary::-webkit-details-marker { display: none; }
.pw-login[open] { text-align: left; }
.pw-login[open] summary { text-align: center; }
.pw-forgot { display: block; text-align: center; margin-top: 10px; font-size: 13px; color: var(--muted, #6b7280); }
.pw-login form { margin-top: 12px; }
.demo-entry { margin-top: 10px; }
.side-chubby { display: block; margin: 6px 0; font-size: 12px; color: #5f46bf; font-weight: 700; text-decoration: none; }
.side-chubby:hover { text-decoration: underline; }
.demo-banner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; padding: 10px 14px; border-radius: 12px; background: #fbf5d8; border: 1px solid #eadb9b; color: #5a4a12; font-size: 14px; }
.demo-actions { display: flex; gap: 8px; flex-wrap: wrap; }
