/* Dr.Star — 인스타그램 관리 도구. 남색 옆 메뉴 + 흰 작업면, 강조는 닥터원 코랄 하나 */
:root {
  --ink: #142139; --ink2: #34425c; --mute: #5f6b82; --faint: #98a2b5;
  --line: #e3e7ef; --line2: #d3d9e4; --bg: #f4f6f9; --card: #fff; --hover: #f1f4f9;
  --side: #13203a; --side2: #1c2b48; --side-ink: #c9d2e3;
  --a: #df3d68; --a-ink: #b7254d; --a-soft: #fdeef2;
  --ok: #17845f; --ok-soft: #e4f4ed; --warn: #a96708; --warn-soft: #fdf2df; --bad: #c23a2c; --bad-soft: #fcebe8;
  --blue: #2c5cb0; --blue-soft: #e8effb; --violet: #7140b8; --violet-soft: #f1eafb;
  --r: 12px; --r-sm: 8px;
  --shadow: 0 1px 2px rgba(20,33,57,.05), 0 6px 20px rgba(20,33,57,.06);
  --font: 'Pretendard Variable', Pretendard, -apple-system, 'Malgun Gothic', sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
::selection { background: #f7c6d3; color: var(--ink); }
:focus-visible { outline: 2px solid var(--a); outline-offset: 2px; border-radius: 6px; }
* { scrollbar-width: thin; scrollbar-color: #c3cad7 transparent; }
a { color: inherit; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.num { font-variant-numeric: tabular-nums; }
.note { color: var(--mute); font-size: 13.5px; }
.pad { padding: 28px; }

/* ── 뼈대: 옆 메뉴 + 작업면 ── */
.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; background: var(--side); color: var(--side-ink); display: flex; flex-direction: column; padding: 18px 12px; gap: 6px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-weight: 800; font-size: 18px; letter-spacing: -.02em; padding: 4px 10px 18px; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand small { display: block; font-size: 11.5px; font-weight: 500; color: var(--side-ink); letter-spacing: 0; margin-top: 1px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 9px; text-decoration: none; font-weight: 600; font-size: 14.5px; color: var(--side-ink); transition: background .15s, color .15s; }
.nav a:hover { background: var(--side2); color: #fff; }
.nav a[aria-current] { background: #fff; color: var(--ink); }
.nav a[aria-current] svg { color: var(--a); }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 14px; }
.side-foot select { width: 100%; background: var(--side2); border: 1px solid rgba(255,255,255,.12); color: #fff; border-radius: 9px; padding: 8px 10px; font-weight: 600; }
.side-foot select option { color: var(--ink); }
.side-foot .me { display: flex; align-items: center; gap: 10px; padding: 4px 4px; font-size: 13.5px; }
.side-foot .me b { color: #fff; display: block; font-size: 14px; }
.side-foot .me small { color: var(--side-ink); }
.av { width: 32px; height: 32px; border-radius: 50%; background: var(--a); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
.sbtn { display: flex; align-items: center; gap: 9px; background: none; border: 0; color: var(--side-ink); padding: 8px 10px; border-radius: 9px; cursor: pointer; font-size: 13.5px; font-weight: 600; text-align: left; width: 100%; }
.sbtn:hover { background: var(--side2); color: #fff; }
.sbtn.on { color: #fff; } .sbtn.on svg { color: #6fd3a8; }
.mtop, .btab { display: none; }
main { max-width: 1240px; width: 100%; margin: 0 auto; padding: 28px 32px 60px; }

/* ── 머리·글자 ── */
.ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
h1 { font-size: 24px; line-height: 1.25; margin: 0; letter-spacing: -.025em; font-weight: 800; }
h2 { font-size: 16px; margin: 0 0 12px; letter-spacing: -.01em; font-weight: 700; }
.sub { color: var(--mute); margin: 4px 0 0; font-size: 14px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .sp { justify-content: space-between; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin-bottom: 16px; }
.panel > h2:first-child { margin-top: -2px; }

/* ── 버튼·입력 ── */
.btn { border: 1px solid var(--line2); background: #fff; border-radius: 9px; padding: 8px 14px; font-weight: 650; font-size: 14px; cursor: pointer; white-space: nowrap; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; transition: background .15s, border-color .15s, color .15s; line-height: 1.3; }
.btn svg.i { width: 16px; height: 16px; }
.btn:hover { background: var(--hover); border-color: #c2cad8; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.pri { background: var(--a); border-color: var(--a); color: #fff; }
.btn.pri:hover { background: var(--a-ink); border-color: var(--a-ink); }
.btn.ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.ink:hover { background: #22324f; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--hover); }
.btn.sm { padding: 5px 10px; font-size: 13px; border-radius: 8px; }
.btn.icon { padding: 7px; } .btn.sm.icon { padding: 5px; }
.btn.danger { color: var(--bad); } .btn.danger:hover { background: var(--bad-soft); border-color: #efc4bd; }
.in { width: 100%; border: 1px solid var(--line2); border-radius: 9px; padding: 9px 12px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.in:hover { border-color: #bfc7d5; }
.in:focus { outline: none; border-color: var(--a); box-shadow: 0 0 0 3px #f9d3dd; }
.in::placeholder { color: var(--faint); }
textarea.in { resize: vertical; line-height: 1.55; }
label.f { display: flex; flex-direction: column; gap: 6px; font-weight: 650; font-size: 13.5px; margin-bottom: 14px; color: var(--ink2); }
label.f small { font-weight: 500; color: var(--mute); }
.chk { display: flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 600; cursor: pointer; }
.chk input { accent-color: var(--a); width: 16px; height: 16px; }
.seg { display: inline-flex; background: var(--hover); border-radius: 9px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; padding: 6px 12px; border-radius: 7px; font-weight: 650; font-size: 13.5px; cursor: pointer; color: var(--mute); }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(20,33,57,.12); }

/* 상태 표지: 점 + 글자 */
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 650; padding: 3px 9px 3px 8px; border-radius: 99px; background: #eef1f6; color: var(--ink2); white-space: nowrap; }
.tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.tag.plain::before { display: none; }
.st-draft { background: #eef1f6; color: #55617a; } .st-review { background: var(--warn-soft); color: var(--warn); } .st-scheduled { background: var(--blue-soft); color: var(--blue); }
.st-publishing { background: var(--violet-soft); color: var(--violet); } .st-published { background: var(--ok-soft); color: var(--ok); } .st-failed { background: var(--bad-soft); color: var(--bad); }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(16px); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 10px; font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s cubic-bezier(.2,.8,.2,1); z-index: 60; box-shadow: 0 6px 18px rgba(0,0,0,.18); max-width: calc(100vw - 32px); }
.toast.on { opacity: 1; transform: translateX(-50%); }
.banner { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--r); background: var(--a-soft); color: var(--a-ink); font-size: 14px; margin-bottom: 16px; }
.banner b { color: var(--ink); } .banner a { font-weight: 700; }
.banner.bad { background: var(--bad-soft); color: var(--bad); }

/* ── 로그인 ── */
.login { min-height: 100vh; display: grid; place-items: center; background: var(--side); padding: 20px; }
.login .box { width: min(380px, 100%); background: #fff; border-radius: 16px; padding: 32px 28px 26px; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.login .box img { width: 44px; height: 44px; border-radius: 11px; }
.login h1 { margin: 14px 0 4px; }
.err { color: var(--bad); font-weight: 650; min-height: 1.3em; font-size: 13.5px; margin: 0 0 10px; }

/* ── 달력 ── */
.cal-nav { display: flex; align-items: center; gap: 6px; }
.cal-nav h1 { min-width: 150px; text-align: center; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.cal .dow { font-size: 12px; font-weight: 700; color: var(--mute); text-align: center; padding: 10px 0 8px; border-bottom: 1px solid var(--line); background: #fafbfd; }
.cal .dow:first-child { color: var(--bad); } .cal .dow:nth-child(7) { color: var(--blue); }
.day { min-height: 124px; padding: 6px; display: flex; flex-direction: column; gap: 4px; cursor: pointer; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .12s; min-width: 0; }
.day:nth-child(7n+7) { border-right: 0; }
.day:hover { background: #fbfcfe; } .day.out { background: #fafbfc; } .day.out .n span:first-child { color: var(--faint); }
.day .n { font-size: 12.5px; font-weight: 700; color: var(--ink2); display: flex; justify-content: space-between; align-items: center; padding: 2px 4px; }
.day.today .n span:first-child { background: var(--a); color: #fff; border-radius: 99px; min-width: 24px; height: 24px; display: inline-grid; place-items: center; padding: 0 6px; }
.day .add { opacity: 0; color: var(--a); display: grid; transition: opacity .12s; } .day:hover .add { opacity: 1; }
.pc { display: flex; gap: 6px; align-items: center; border-radius: 7px; padding: 3px; padding-right: 6px; font-size: 12px; font-weight: 600; text-decoration: none; min-width: 0; background: #f4f6fa; border: 1px solid transparent; }
.pc:hover { border-color: var(--line2); background: #fff; }
.pc img, .pc .ph0 { width: 26px; height: 26px; border-radius: 5px; object-fit: cover; flex: none; background: #e6eaf1; }
.pc span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pc i { width: 6px; height: 6px; border-radius: 50%; flex: none; background: currentColor; }
.pc.st-draft, .pc.st-review, .pc.st-scheduled, .pc.st-publishing, .pc.st-published, .pc.st-failed { background: #f4f6fa; }
.pc.st-draft i { color: #8a95a8; } .pc.st-review i { color: var(--warn); } .pc.st-scheduled i { color: var(--blue); } .pc.st-publishing i { color: var(--violet); } .pc.st-published i { color: var(--ok); } .pc.st-failed i { color: var(--bad); }
.pc { color: var(--ink2); }
.legend { display: flex; gap: 6px; flex-wrap: wrap; }
.drafts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.drafts .pc { padding: 6px; padding-right: 10px; font-size: 13px; }
.drafts .pc img, .drafts .pc .ph0 { width: 34px; height: 34px; }

/* ── 표 ── */
table.t { width: 100%; border-collapse: collapse; }
table.t th, table.t td { text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
table.t th { color: var(--mute); font-size: 12.5px; font-weight: 650; background: #fafbfd; }
table.t tr:last-child td { border-bottom: 0; }
table.t tbody tr:hover td { background: #fafbfe; }
table.t a { text-decoration: none; } table.t a:hover b { color: var(--a-ink); }
.panel.flush { padding: 0; overflow: hidden; }
.thumb-s { width: 42px; height: 42px; object-fit: cover; border-radius: 7px; display: block; background: #e6eaf1; }

/* ── 게시물 편집 ── */
.ed { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.drop { border: 1.5px dashed var(--line2); border-radius: var(--r); padding: 22px; text-align: center; color: var(--mute); cursor: pointer; background: #fafbfd; transition: border-color .15s, background .15s; display: grid; justify-items: center; gap: 6px; }
.drop svg.i { width: 24px; height: 24px; color: var(--faint); }
.drop:hover { border-color: #b9c2d2; } .drop.over { border-color: var(--a); background: var(--a-soft); }
.drop b { color: var(--ink); } .drop small { font-size: 12.5px; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.thumb { position: relative; width: 92px; height: 92px; border-radius: 9px; overflow: hidden; background: #0d1424; }
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .x, .thumb .mv { position: absolute; top: 4px; width: 24px; height: 24px; border-radius: 7px; border: 0; background: rgba(13,20,36,.68); color: #fff; cursor: pointer; display: grid; place-items: center; padding: 0; }
.thumb .x { right: 4px; } .thumb .mv { left: 4px; }
.thumb .x svg.i, .thumb .mv svg.i { width: 14px; height: 14px; }
.thumb .no { position: absolute; left: 6px; bottom: 4px; color: #fff; font-size: 11px; font-weight: 800; text-shadow: 0 1px 3px rgba(0,0,0,.7); }
.count { font-size: 12.5px; color: var(--mute); text-align: right; margin-top: -6px; } .count.over { color: var(--bad); font-weight: 750; }
.ai { background: #fbf7f9; border: 1px solid #f1dbe2; border-radius: var(--r); padding: 14px; margin-bottom: 14px; }
.ai .hd { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.ai .hd b { display: flex; align-items: center; gap: 7px; font-size: 14px; } .ai .hd svg { color: var(--a); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.when { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding-top: 4px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px 4px 10px; border-radius: 99px; background: #eef1f6; font-size: 13px; font-weight: 600; }
.chip button { border: 0; background: none; padding: 2px; border-radius: 50%; cursor: pointer; display: grid; color: var(--mute); }
.chip button:hover { background: #dde2ea; color: var(--ink); }
.chip.add { background: #fff; border: 1px dashed var(--line2); cursor: pointer; padding: 4px 10px; color: var(--ink2); }
.chip.add:hover { border-color: var(--a); color: var(--a-ink); }

/* 인스타 미리보기 */
.phone { position: sticky; top: 24px; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 10px 0 14px; box-shadow: var(--shadow); overflow: hidden; }
.phone .cap0 { font-size: 11.5px; font-weight: 700; color: var(--faint); text-align: center; padding: 0 0 8px; }
.ig-head { display: flex; align-items: center; gap: 9px; padding: 4px 12px 10px; font-weight: 700; font-size: 13.5px; }
.ig-head i { width: 32px; height: 32px; border-radius: 50%; background: conic-gradient(from 200deg, #f9a03f, #df3d68, #8a3ab9, #f9a03f); padding: 2px; display: grid; place-items: center; }
.ig-head i img, .ig-head i b { width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 2px solid #fff; object-fit: cover; display: grid; place-items: center; font-size: 11px; font-style: normal; color: var(--ink); }
.ig-head .dots3 { margin-left: auto; color: var(--ink); }
.ig-media { aspect-ratio: 4 / 5; background: #eef1f6; overflow: hidden; display: grid; place-items: center; color: var(--mute); font-size: 13px; position: relative; }
.ig-media img, .ig-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ig-media .cnt { position: absolute; top: 10px; right: 10px; background: rgba(13,20,36,.62); color: #fff; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 99px; }
.ig-bar { display: flex; gap: 14px; padding: 10px 12px 4px; color: var(--ink); } .ig-bar .bm { margin-left: auto; } .ig-bar svg.i { width: 22px; height: 22px; }
.ig-cap { font-size: 13.5px; line-height: 1.5; padding: 4px 12px 0; white-space: pre-wrap; word-break: break-word; max-height: 300px; overflow: auto; }
.ig-cap b { margin-right: 4px; } .ig-cap .h { color: #00376b; }

/* ── 계정·고객·연재 목록 ── */
.list > .it { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.list > .it:first-child { border-top: 0; padding-top: 4px; }
.it .pic { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: #eef1f6; flex: none; display: grid; place-items: center; color: var(--mute); }
.it .m { flex: 1; min-width: 0; } .it .m b { display: block; font-size: 15px; } .it .m small { color: var(--mute); font-size: 13px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.steps li { counter-increment: s; position: relative; padding: 12px 0 12px 40px; line-height: 1.6; font-size: 14px; border-top: 1px solid var(--line); }
.steps li:first-child { border-top: 0; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 12px; width: 26px; height: 26px; border-radius: 50%; background: var(--hover); color: var(--ink); font-weight: 800; font-size: 12.5px; display: grid; place-items: center; }
code { background: #eef1f6; padding: 1px 6px; border-radius: 6px; font-size: 13px; word-break: break-all; font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; }
.days { display: flex; gap: 4px; }
.days button { width: 36px; height: 34px; border-radius: 8px; border: 1px solid var(--line2); background: #fff; font-weight: 700; cursor: pointer; font-size: 13.5px; }
.days button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.sw { position: relative; width: 38px; height: 22px; flex: none; }
.sw input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.sw span { position: absolute; inset: 0; border-radius: 99px; background: #cfd6e1; transition: background .15s; pointer-events: none; }
.sw span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .18s cubic-bezier(.2,.8,.2,1); box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.sw input:checked + span { background: var(--ok); } .sw input:checked + span::after { transform: translateX(16px); }
.sw input:focus-visible + span { outline: 2px solid var(--a); outline-offset: 2px; }
.brand-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.empty { text-align: center; padding: 34px 20px; color: var(--mute); }
.empty b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }

/* ── 카드뉴스 ── */
.cn-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 24px; }
.cn-opt { display: grid; grid-template-columns: 84px 1fr 1fr 1fr; gap: 8px; }
.cn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.cn-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; position: relative; }
.cn-card canvas { display: block; width: 100%; aspect-ratio: 4 / 5; background: #e9edf3; }
.cn-card.loading::after { content: '그림 그리는 중…'; position: absolute; top: 0; left: 0; right: 0; aspect-ratio: 4 / 5; display: grid; place-items: center; background: rgba(19,32,58,.55); color: #fff; font-weight: 750; font-size: 14px; }
.cn-f { padding: 12px; display: grid; gap: 6px; }
.cn-f .hd { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 13.5px; }
.cn-f .in { padding: 7px 10px; font-size: 14px; }
.cn-f .art { font-size: 12.5px; color: var(--ink2); }
.bar-sticky { position: sticky; bottom: 0; z-index: 5; background: rgba(244,246,249,.92); backdrop-filter: blur(8px); border-top: 1px solid var(--line); margin: 16px -32px -60px; padding: 12px 32px; display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.bar-sticky .note { margin-right: auto; }

/* ── 좁은 화면 ── */
@media (max-width: 1100px) { .ed { grid-template-columns: minmax(0, 1fr) 320px; } }
@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .mtop { display: flex; position: sticky; top: 0; z-index: 20; align-items: center; gap: 10px; padding: 10px 16px; background: var(--side); color: #fff; padding-top: max(10px, env(safe-area-inset-top)); }
  .mtop .brand { padding: 0; font-size: 17px; } .mtop .brand img { width: 28px; height: 28px; }
  .mtop select { margin-left: auto; max-width: 46vw; background: var(--side2); border: 1px solid rgba(255,255,255,.14); color: #fff; border-radius: 8px; padding: 6px 8px; font-weight: 600; font-size: 13.5px; }
  .mtop select option { color: var(--ink); }
  .mtop .btn { background: transparent; color: #fff; border-color: rgba(255,255,255,.2); }
  .btab { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: #fff; border-top: 1px solid var(--line); padding: 6px 4px max(6px, env(safe-area-inset-bottom)); }
  .btab a { display: grid; justify-items: center; gap: 2px; text-decoration: none; font-size: 11px; font-weight: 650; color: var(--mute); padding: 4px 0; }
  .btab a svg.i { width: 22px; height: 22px; }
  .btab a[aria-current] { color: var(--a); }
  main { padding: 18px 16px 96px; }
  .ed { grid-template-columns: 1fr; } .phone { position: static; max-width: 400px; width: 100%; margin: 0 auto 4px; order: -1; }
  .day { min-height: 82px; } .day .pc span { display: none; } .day .pc { padding: 2px; justify-content: center; }
  .cn-in { grid-template-columns: 1fr; }
  .bar-sticky { margin: 16px -16px -96px; padding: 10px 16px; bottom: 62px; }
}
@media (max-width: 640px) {
  h1 { font-size: 21px; }
  .panel { padding: 16px; }
  .cal-nav h1 { min-width: 0; font-size: 18px; }
  .cal .dow { padding: 8px 0 6px; } .day { min-height: 64px; padding: 3px; } .day .pc img, .day .pc .ph0 { width: 18px; height: 18px; } .day .pc i { display: none; }
  .legend { display: none; }
  .grid2, .when { grid-template-columns: 1fr; }
  .cn-opt { grid-template-columns: 1fr 1fr; }
  table.t .hide-m { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
