/* 발행 일정 (src/schedule.js): calendar left + selected-day list right on wide screens, stacked below 1100px. */
.schedule{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,360px);gap:var(--layout-gap);
 /* page head = top padding + 32px title + gap; keep the bottom gutter */
 height:calc(100dvh - var(--page-header-top) - 32px - var(--page-header-gap) - var(--page-gutter));min-height:560px}
.schedule-main{display:flex;flex-direction:column;gap:14px;min-width:0;min-height:0}
.schedule-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none}
.schedule .schedule-toolbar{margin-bottom:0}   /* '2026년 10월' 줄과 달력 사이는 아래 칸 간격(14px)만 — 공용 화면 머리 여백이 더해져 30px 이 비던 것(2026-10-19 사용자) */
.schedule-title{margin:0;font-size:20px;font-weight:700;letter-spacing:-.6px}
.schedule-nav{display:flex;align-items:center;gap:6px}
.schedule-nav button{border:0;border-radius:8px;background:var(--surface);color:var(--secondary);height:34px;min-width:34px;padding:0 12px;font-size:12px;display:grid;place-items:center}
.schedule-nav button:hover:not(:disabled){background:var(--hover);color:var(--ink)}
.schedule-nav button:disabled{opacity:.45;cursor:default}
.schedule-step{padding:0!important}
.schedule-step svg{width:12.86px;height:12.86px;color:var(--secondary);stroke-width:2.61}   /* 넘기기 화살표 규칙(10/27): 쪽 넘기기와 같은 3.75×7.5 · 1.4px · 중간 회색 */
.schedule-step[data-step="-1"] svg{transform:scaleX(-1)}
.schedule-calendar{flex:1;min-height:0;display:flex;flex-direction:column;background:var(--surface);border-radius:var(--layout-panel-radius);overflow:hidden}
.schedule-weekdays,.schedule-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
.schedule-weekdays{flex:none;border-bottom:1px solid var(--hover)}
.schedule-weekdays span{padding:12px 14px;font-size:11px;font-weight:600;color:var(--muted)}
.schedule-days{flex:1;min-height:0;display:grid;grid-template-rows:repeat(6,minmax(84px,1fr));overflow-y:auto;scrollbar-width:none}.schedule-days::-webkit-scrollbar{display:none}   /* 줄마다 날짜와 점 · 숫자가 다 들어가는 높이 — 화면이 낮으면 줄이 잘리던 것(2026-10-19 사용자), 모자라면 달력 안에서 스크롤 */
.schedule-week+.schedule-week{border-top:1px solid var(--hover)}
.schedule-day{position:relative;min-width:0;min-height:0;padding:10px 12px;display:flex;flex-direction:column;gap:6px;overflow:hidden;cursor:pointer;outline:none}
.schedule-day+.schedule-day{border-left:1px solid var(--hover)}
.schedule-day:hover{background:var(--hover)}
.schedule-day.is-selected{background:var(--filter-selected,var(--hover))}
.schedule-day:focus-visible{box-shadow:inset 0 0 0 2px var(--focus)}
.schedule-date{align-self:flex-start;min-width:26px;height:26px;padding:0 6px;border-radius:13px;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;font-size:13px;font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums}
.schedule-month{font-size:inherit;font-weight:inherit;margin-right:2px}
.schedule-marks{flex:1;min-height:0;overflow:hidden}
/* weekends: Sunday red, Saturday blue */
.schedule-weekdays [data-dow="0"],.schedule-day[data-dow="0"] .schedule-date{color:var(--weekend-sun)}
.schedule-weekdays [data-dow="6"],.schedule-day[data-dow="6"] .schedule-date{color:var(--weekend-sat)}
.schedule-day.is-outside:not(.is-selected){background:var(--inset)}
.schedule-day.is-outside .schedule-date{opacity:.4;font-weight:500}
.schedule-day.is-today .schedule-date{background:var(--solid);color:var(--on-solid)!important;opacity:1}
/* list panel */
.schedule-panel{display:flex;flex-direction:column;min-width:0;min-height:0;background:var(--surface);border-radius:var(--layout-panel-radius);overflow:hidden}
.schedule-panel-head{flex:none;padding:20px 20px 14px;border-bottom:1px solid var(--hover)}
.schedule-panel-kicker{margin:0 0 4px;font-size:11px;color:var(--muted)}
.schedule-panel-title{margin:0;font-size:17px;font-weight:700;letter-spacing:-.4px}
.schedule-list{flex:1;min-height:0;overflow:auto;padding:12px}
.schedule-empty{height:100%;min-height:180px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center;color:var(--muted);padding:24px}
.schedule-empty svg{width:22px;height:22px;margin-bottom:6px}
.schedule-empty p{margin:0;font-size:13px;color:var(--secondary)}
.schedule-empty small{font-size:11px}
/* narrow: calendar on top, list below; the page scrolls */
@media(max-width:1100px){
 .schedule{grid-template-columns:minmax(0,1fr);height:auto;min-height:0}
 .schedule-calendar{flex:none}
 .schedule-days{grid-template-rows:repeat(6,minmax(76px,auto))}
 .schedule-panel{min-height:240px}
}
@media(max-width:760px){
 .schedule-title{font-size:17px}
 .schedule-weekdays span{padding:10px 4px;text-align:center}
 .schedule-days{grid-template-rows:repeat(6,minmax(56px,auto))}
 .schedule-day{padding:6px 4px;align-items:center}
 .schedule-date{font-size:12px;min-width:24px;height:24px}
 .schedule-month{display:none}
 .schedule-panel-head{padding:16px 16px 12px}
}
/* ── 작품(원작) 공개 일정 ── */
.schedule-add{gap:6px}  /* 모양·색은 roles.css 버튼 층(primary) */
.schedule-add svg{width:14px;height:14px}
.schedule-panel-sub{margin:6px 0 0;font-size:11px;color:var(--muted)}
/* 표시 두 가지(작품 공개 · 우리 영상)는 옆으로 나란히 — 세로로 쌓으면 창이 낮을 때 둘째 줄이 칸 아래로 잘렸다(2026-10-12) */
.schedule-marks{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;align-content:flex-start;gap:5px 10px;padding-left:2px}
.mk-work,.mk-video{display:flex;align-items:center;gap:5px}
.mk-work small,.mk-video small{font-size:11px;font-weight:600;line-height:1;color:var(--secondary);font-variant-numeric:tabular-nums}
/* 작품 공개 = round dots (status color) · 우리 영상 = small squares (ink) */
.mk-video b,.lg-video{display:inline-block;width:8px;height:8px;border-radius:2px;background:var(--ink)}
.lg-work{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--status-info)}
.schedule-heading{display:flex;align-items:baseline;gap:16px;flex-wrap:wrap;min-width:0}
.schedule-legend{display:flex;gap:12px;font-size:11px;color:var(--muted)}
.schedule-legend span{display:inline-flex;align-items:center;gap:5px}
.schedule-marks i{width:7px;height:7px;border-radius:50%;background:var(--status-info)}
[data-status="released"]{--rs:var(--status-ok)}[data-status="scheduled"]{--rs:var(--status-info)}[data-status="delayed"]{--rs:var(--status-warn)}[data-status="cancelled"]{--rs:var(--status-neutral)}[data-status="overdue"]{--rs:var(--status-error)}
.schedule-marks i[data-status]{background:var(--rs)}
.rs-item{display:flex;flex-direction:column;gap:6px;padding:4px 0}
.rs-item+.rs-item{border-top:1px solid var(--hover)}
.rs-open{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:10px;align-items:start;width:100%;border:0;background:transparent;color:inherit;text-align:left;padding:10px 8px;border-radius:10px}
.rs-open:not(:disabled):hover{background:var(--hover)}
.rs-open:disabled{cursor:default;opacity:1}
.rs-time{font-size:13px;font-weight:650;font-variant-numeric:tabular-nums;padding-top:1px}
.rs-copy{min-width:0}
.rs-copy strong{display:block;font-size:13px;font-weight:620;line-height:1.5;overflow-wrap:anywhere}
.rs-copy em{font-style:normal;font-weight:500;color:var(--secondary);margin-left:4px}
.rs-copy small{display:block;margin-top:2px;font-size:11px;color:var(--muted);overflow-wrap:anywhere}
.rs-status{font-size:10px;line-height:1;padding:5px 7px;border-radius:999px;white-space:nowrap;color:var(--rs,var(--status-info));background:color-mix(in srgb,var(--rs,var(--status-info)) 13%,transparent)}
.rs-status.overdue{--rs:var(--status-error)}
.rs-mark{align-self:flex-end;margin:0 8px 6px;border:0;border-radius:7px;padding:7px 10px;font-size:11px;background:var(--inset);color:var(--secondary)}
.rs-mark:hover{color:var(--ink)}
/* dialog */
.schedule-dialog{width:min(520px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0;overflow:auto}
.rs-form{display:flex;flex-direction:column;gap:14px;padding:24px}
.rs-head{display:flex;align-items:center;justify-content:space-between}
.rs-head h2{margin:0;font-size:18px}
.rs-close{border:0;background:transparent;color:var(--muted);font-size:22px;width:32px;height:32px}
.rs-field{display:flex;flex-direction:column;gap:6px;font-size:12px;color:var(--secondary);min-width:0;margin:0}
.rs-field>span,.rs-days legend{font-size:12px;color:var(--secondary)}
.rs-form input:not([type=checkbox]),.rs-form select,.rs-form textarea{border:0;border-radius:8px;height:40px;padding:0 12px;background:var(--inset);color:var(--ink);font:inherit;font-size:13px;min-width:0;width:100%}
.rs-form textarea{height:auto;padding:10px 12px;resize:vertical}
.rs-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.rs-row-3{grid-template-columns:1fr 1fr 1fr}
.rs-row-4{grid-template-columns:1fr 1fr 1fr 1fr}
.rs-row:has(> :only-child){grid-template-columns:1fr}
.rs-single,.rs-weekly{display:flex;flex-direction:column;gap:14px}
.rs-single[hidden],.rs-weekly[hidden]{display:none}
.rs-modes{display:flex;gap:3px;background:var(--inset);padding:4px;border-radius:9px}
.rs-modes button{flex:1;border:0;border-radius:6px;padding:8px;font-size:12px;background:transparent;color:var(--muted)}
.rs-modes button[aria-checked="true"]{background:var(--surface);color:var(--ink);font-weight:600}
.rs-days{border:0;padding:0;flex-direction:row;flex-wrap:wrap;gap:5px}
.rs-days legend{margin-bottom:6px;padding:0}
.rs-days label{display:inline-flex}
.rs-days input{position:absolute;opacity:0;pointer-events:none}
.rs-days span{display:grid;place-items:center;width:36px;height:34px;border-radius:8px;background:var(--inset);color:var(--secondary);font-size:12px;cursor:pointer}
.rs-days input:checked+span{background:var(--solid);color:var(--on-solid);font-weight:600}
.rs-days input:focus-visible+span{outline:2px solid var(--focus);outline-offset:2px}
.rs-preview,.rs-hint{margin:0;font-size:12px;color:var(--muted);line-height:1.6}
.rs-work-slot{position:relative}
/* autocomplete: floats over the fields below instead of pushing them down */
.rs-work-results{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:5;display:flex;flex-direction:column;gap:2px;max-height:280px;overflow:auto;padding:6px;border-radius:10px;background:var(--surface);box-shadow:var(--shadow-pop),0 0 0 1px color-mix(in srgb,var(--ink) 6%,transparent)}
.rs-work-results[hidden]{display:none}
.rs-work-results .rs-hint{padding:8px 10px}
.rs-work{border:0;background:transparent;text-align:left;padding:8px 10px;border-radius:8px;color:var(--ink)}
.rs-work:hover,.rs-work.is-active{background:var(--hover)}
.rs-work strong,.rs-picked strong{display:block;font-size:13px;font-weight:600}
.rs-work small,.rs-picked small{display:block;font-size:11px;color:var(--muted);margin-top:2px}
.rs-picked{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border-radius:8px;background:var(--inset);color:var(--ink)}
.rs-unpick{border:0;background:transparent;color:var(--secondary);font-size:12px;text-decoration:underline}
.rs-check{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--secondary)}
.rs-error{margin:0;min-height:18px;font-size:12px;color:var(--danger)}
.rs-actions{display:flex;align-items:center;gap:8px}
.rs-actions span{flex:1}
.rs-actions button{border:0;border-radius:8px;padding:10px 14px;font-size:12px;background:var(--inset);color:var(--secondary)}
.rs-actions .primary{width:auto;background:var(--solid);color:var(--on-solid);font-weight:600}
.rs-delete,.rs-delete-following{color:var(--danger)!important}
@media(max-width:560px){.rs-row,.rs-row-3{grid-template-columns:1fr}.rs-row-4{grid-template-columns:1fr 1fr}.rs-actions{flex-wrap:wrap}.rs-actions span{display:none}}
.rs-form :is(input,select,textarea):focus-visible{outline:2px solid var(--focus);outline-offset:1px}

/* list: two sections that never mix */
.rs-section+.rs-section{margin-top:14px;padding-top:12px;border-top:1px solid var(--hover)}
.rs-section h3{display:flex;align-items:center;gap:6px;margin:4px 8px 6px;font-size:12px;font-weight:650;color:var(--secondary)}
.rs-section h3 small{font-weight:500;color:var(--muted)}
.rs-section-note{margin:4px 8px 8px;font-size:12px;color:var(--muted);line-height:1.6}
.rs-sync-note{margin:8px 8px 2px;font-size:10px;color:var(--muted)}
.rs-video-link{display:grid;grid-template-columns:44px 40px minmax(0,1fr);gap:10px;align-items:center;padding:8px;border-radius:10px;color:inherit;text-decoration:none}
.rs-video-link:hover{background:var(--hover)}
.rs-thumb{width:40px;aspect-ratio:9/16;object-fit:cover;border-radius:6px;background:var(--inset);display:block}
.rs-channel{display:block;margin-bottom:2px;font-size:11px;font-weight:700;color:var(--secondary)}

/* 공개 종류·소스 위치(0109) — 테두리 없는 칩, 고르면 검은 칸 */
.rs-field>span small{color:var(--muted);margin-left:4px}
.rs-chips{display:flex;flex-wrap:wrap;gap:6px}
.rs-chip{display:inline-flex;align-items:center;gap:6px;border:0;border-radius:var(--radius-pill);padding:8px 13px;font:inherit;font-size:12px;background:var(--inset);color:var(--secondary);cursor:pointer}
.rs-chip:hover{background:var(--hover);color:var(--ink)}
.rs-chip[aria-checked="true"]{background:var(--solid);color:var(--on-solid);font-weight:600}
.rs-chip svg{width:15px;height:15px}
/* 원본 채널 고르기 */
.rs-src-yt{display:flex;flex-direction:column;gap:8px;margin-top:4px}
.rs-src-yt[hidden]{display:none}
.rs-chans{display:flex;flex-direction:column;gap:4px}
.rs-chan{display:flex;align-items:center;gap:10px;border:0;border-radius:10px;padding:8px 10px;background:var(--inset);color:var(--ink);text-align:left;font:inherit;cursor:pointer}
.rs-chan:hover{background:var(--hover)}
.rs-chan[aria-pressed="true"]{background:var(--solid);color:var(--on-solid)}
.rs-chan[aria-pressed="true"] small{color:color-mix(in srgb,var(--on-solid) 65%,transparent)}
.rs-chan strong{display:block;font-size:13px;font-weight:600}
.rs-chan small{display:block;font-size:11px;color:var(--muted);margin-top:1px}
.rs-chan>svg{margin-left:auto;width:16px;height:16px}
.rs-chan-add{justify-content:center;gap:6px;color:var(--secondary);font-size:12px}
.rs-chan-add svg{width:15px;height:15px}
.rs-chan-av{width:28px;height:28px;border-radius:50%;object-fit:cover;flex:none;background:var(--hover);display:inline-grid;place-items:center;font-size:12px;color:var(--secondary)}
.rs-link{margin:0;font-size:12px;color:var(--secondary)}
.rs-link code{font-family:var(--font-mono);font-size:11px;background:var(--inset);padding:3px 7px;border-radius:6px;color:var(--ink);margin-left:4px}
.rs-link-work .rs-check{align-items:flex-start;color:var(--ink);line-height:1.55}
.rs-link-work .rs-check small{display:block;color:var(--secondary)}
/* 목록 — 본편만 포인트 색, 선공개·몰아보기·예고편은 회색 */
.rs-kind{display:inline-block;margin-left:6px;padding:1px 7px;border-radius:var(--radius-pill);font-size:11px;font-weight:600;background:var(--hover);color:var(--secondary);vertical-align:1px}
.rs-kind.is-main{background:var(--accent-soft);color:var(--accent)}
.rs-src{display:inline-flex;align-items:center;gap:3px}
.rs-src svg{width:12px;height:12px}
/* 원본 채널 관리 창 */
.rs-chan-dialog{width:min(480px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0;overflow:auto}
.rs-chan-body{display:flex;flex-direction:column;gap:12px;padding:24px}
.rs-chan-list{display:flex;flex-direction:column;gap:4px}
.rs-chan-row{display:flex;align-items:center;gap:10px;padding:10px;border-radius:10px;background:var(--inset)}
.rs-chan-copy{flex:1;min-width:0}
.rs-chan-copy strong{display:block;font-size:13px}
.rs-chan-copy>small{display:block;font-size:11px;color:var(--muted)}
.rs-chan-works{display:flex;flex-wrap:wrap;gap:4px;margin-top:6px}
.rs-chan-works em{font-style:normal;font-size:11px;padding:2px 7px;border-radius:var(--radius-pill);background:var(--surface);color:var(--secondary)}
.rs-chan-works small{font-size:11px;color:var(--muted)}
.rs-chan-del{border:0;background:transparent;color:var(--muted);font:inherit;font-size:12px;padding:6px 8px;border-radius:7px;cursor:pointer}
.rs-chan-del:hover{background:var(--hover);color:var(--danger)}
.rs-chan-input{display:flex;gap:6px}
.rs-chan-input input{flex:1;min-width:0}
.rs-chan-find,.rs-chan-save{border:0;border-radius:8px;padding:0 14px;font:inherit;font-size:12px;background:var(--inset);color:var(--ink);cursor:pointer;white-space:nowrap}
.rs-chan-save{background:var(--solid);color:var(--on-solid);font-weight:600;padding:8px 14px}
.rs-chan-row.is-preview{background:var(--accent-soft)}
.rs-link-work .rs-check input{width:16px;height:16px;min-width:16px;flex:none;margin:2px 0 0;padding:0;accent-color:var(--solid)}
.rs-chan-input input{height:40px;border:1px solid var(--input-border);border-radius:8px;background:var(--inset);color:var(--ink);padding:0 12px;font:inherit;font-size:13px}.rs-chan-input input:focus{outline:2px solid var(--focus);outline-offset:1px}
.rs-chan-row .rs-chan-save{width:auto;flex:none;margin:0}
.rs-chan-new{display:flex;flex-direction:column;gap:10px}.rs-chan-new .rs-error{margin:0}.rs-chan-new .rs-error:empty{display:none}
.rs-link code+code{margin-left:6px}
.rs-link{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.rs-link code,.rs-link code+code{margin-left:0}
/* 체크 상자 줄(이후 회차에도 같은 시간 · 작품 원본으로 저장) — 회색 칸 안에 체크 + 글, 입력칸 기본 모양(높이 42·테두리)을 받지 않게 */
.rs-form .rs-check{display:flex;flex-direction:row;align-items:flex-start;gap:10px;margin:0;padding:11px 12px;border-radius:10px;background:var(--inset);font-size:13px;color:var(--ink);line-height:1.5;cursor:pointer}
.rs-form .rs-check input[type=checkbox]{width:16px;height:16px;min-width:16px;flex:none;margin:2px 0 0;padding:0;border:0;border-radius:4px;box-shadow:none;accent-color:var(--solid);cursor:pointer}
.rs-form .rs-check>span{flex:1;min-width:0}
.rs-form .rs-check small{display:block;font-size:11px;color:var(--secondary);margin-top:2px}
/* 체크 상자 — 테두리 없이: 회색 칸 위 흰 네모, 켜면 검은 네모 + 흰 체크 */
.rs-form .rs-check input[type=checkbox]{appearance:none;-webkit-appearance:none;width:18px;height:18px;min-width:18px;margin:1px 0 0;border:0;border-radius:5px;background:var(--surface);display:grid;place-items:center;transition:background .12s}
.rs-form .rs-check input[type=checkbox]:checked{background:var(--solid) no-repeat center/12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E")}
:root[data-theme="dark"] .rs-form .rs-check input[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23181818' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E")}
.rs-form .rs-check input[type=checkbox]:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.rs-actions{justify-content:flex-end}   /* 좁은 화면에서 가운데 빈칸(span)이 빠져도 버튼은 오른쪽에 모인다 */
.rs-series[hidden]{display:none}
.rs-series-tags{display:flex;flex-wrap:wrap;gap:4px;margin-top:6px}.rs-series-tags em{font-style:normal;font-size:11px;padding:2px 8px;border-radius:var(--radius-pill);background:var(--surface);color:var(--secondary)}
/* 작품 공개 목록 — 제목 줄(작품·회차·공개 종류 꼬리표)과 아랫줄(플랫폼·원본 아이콘)을 가운데로 맞춘다 */
.rs-item .rs-copy strong{display:flex;align-items:center;flex-wrap:wrap;column-gap:6px}
.rs-item .rs-copy strong em{margin-left:0}
.rs-item .rs-copy strong .rs-kind{margin-left:0;vertical-align:0;line-height:1.5}
.rs-item .rs-copy small{display:flex;align-items:center;flex-wrap:wrap;column-gap:4px}
.rs-src{line-height:1}
.rs-src svg{display:block}

/* 발행 일정 고치기(0140) — 검수 카드로 예약한 영상만 */
.rs-video{position:relative}.rs-video:has(.rs-fix) .rs-video-link{padding-right:76px}
.rs-fix{position:absolute;right:10px;top:50%;transform:translateY(-50%);border:0;border-radius:999px;background:var(--inset);color:var(--ink);font:inherit;font-size:12px;font-weight:600;padding:6px 12px;cursor:pointer}
.rs-fix:hover{background:var(--hover)}
.rs-fix-dlg{border:0;border-radius:18px;padding:22px;width:min(380px,calc(100vw - 32px));background:var(--surface);color:var(--ink)}
.rs-fix-dlg::backdrop{background:rgba(0,0,0,.35)}
.rs-fix-dlg h3{margin:0 0 4px;font-size:16px}.rs-fix-who{margin:0 0 16px;font-size:12px;color:var(--secondary)}
.rs-fix-row{display:flex;gap:12px;align-items:center;margin-bottom:16px;font-size:14px}.rs-fix-row img{width:54px;aspect-ratio:9/16;border-radius:8px;object-fit:cover;flex:none}
.rs-fix-label{display:block;font-size:12px;font-weight:600;margin-bottom:6px}
.rs-fix-time{display:flex;gap:8px}.rs-fix-time input{flex:1;min-width:0;border:0;border-radius:10px;background:var(--inset);padding:10px 12px;font:inherit;font-size:14px;color:var(--ink)}
.rs-fix-note{margin:8px 0 18px;font-size:12px;line-height:1.5}
.rs-fix-acts{display:flex;align-items:center;gap:8px}.rs-fix-acts>span{flex:1}
.rs-fix-acts button,.rs-fix-acts a{border:0;border-radius:10px;padding:9px 14px;font:inherit;font-size:13px;font-weight:600;cursor:pointer;text-decoration:none}
.rs-fix-down{background:none;color:var(--danger);padding-left:0!important}
.rs-fix-studio{background:var(--inset);color:var(--ink)}.rs-fix-save{background:var(--solid);color:var(--on-solid)}
.rs-fix-x{position:absolute;right:14px;top:12px;border:0;background:none;font-size:20px;color:var(--secondary);cursor:pointer}
/* 소스 받는 날(0156) — 분홍 마름모. 파일로 받는 작품(드라이브 · 기타)만 */
.mk-due{display:flex;align-items:center;gap:5px}
.mk-due small{font-size:11px;font-weight:600;line-height:1;color:var(--secondary);font-variant-numeric:tabular-nums}
.mk-due i,.lg-due{display:inline-block;width:7px;height:7px;border-radius:1.5px;transform:rotate(45deg);background:var(--source-due-dot);flex:none}
.rs-due-box{display:flex;flex-direction:column;gap:10px;padding:16px;border-radius:14px;background:var(--inset)}
.rs-due-box[hidden]{display:none}
.rs-due-box h4{display:flex;align-items:center;gap:8px;margin:0;font-size:13px}
.rs-due-modes{display:inline-flex;gap:4px;padding:4px;border-radius:12px;background:var(--surface);width:max-content;max-width:100%;flex-wrap:wrap}
.rs-due-modes button{border:0;border-radius:9px;padding:7px 12px;background:transparent;font:inherit;font-size:12px;color:var(--secondary)}
.rs-due-modes button[aria-checked=true]{background:var(--inset);color:var(--ink);font-weight:600}
.rs-due-rule{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:13px;color:var(--ink)}
.rs-due-rule input{height:38px;border:0;border-radius:10px;background:var(--surface);color:var(--ink);font:inherit;font-size:13px;padding:0 10px}
.rs-due-rule input[type=number]{width:64px;text-align:center}
.rs-due-calc{margin:0;font-size:12px;color:var(--secondary)}.rs-due-calc b{color:var(--ink)}
.rs-due-calc:empty{display:none}
.rs-due-late{color:var(--status-error)}
.rs-due-tag{flex:none;font-size:11px;font-weight:700;padding:3px 9px;border-radius:var(--radius-pill);background:var(--source-due-bg);color:var(--source-due)}
.rs-form .rs-due-rule input{width:auto;flex:none;min-width:0;height:38px;border:0;border-radius:10px;background:var(--surface);padding:0 10px}
.rs-form .rs-due-rule input[type=number]{width:64px;text-align:center}
.rs-form .rs-due-rule input[type=time]{width:132px}
.rs-form .rs-due-rule input[type=date]{width:156px}
/* 반복 묶음 회차 늘리기 */
.rs-extend .rs-field{gap:8px}
.rs-extend-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:13px}
.rs-extend-in{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
.rs-extend .rs-extend-in input{width:76px;flex:none}
.rs-extend-go{border:0;border-radius:999px;padding:8px 14px;background:var(--solid);color:var(--on-solid);font:inherit;font-size:12px;font-weight:600;cursor:pointer}
.rs-extend-go:disabled{background:var(--inset);color:var(--muted);cursor:default}
/* ── 보기 전환 [달력 | 작품별](0164) ── */
.schedule-views{display:inline-flex;gap:3px;padding:3px;border-radius:10px;background:var(--surface);margin-right:4px}
.schedule-nav .schedule-views button{height:28px;border-radius:8px;background:none;padding:0 12px;font-weight:600}
.schedule-nav .schedule-views button[aria-selected="true"]{background:var(--inset);color:var(--ink)}
.schedule[data-view="works"]{grid-template-columns:minmax(0,1fr);height:auto;min-height:0}
.schedule[data-view="works"] :is(.schedule-calendar,.schedule-todos,.schedule-panel,.schedule-legend,.schedule-step,.schedule-today){display:none!important}
.schedule-calendar{min-height:380px}
.rs-up{color:var(--secondary)!important}.rs-up b{color:var(--ink);font-weight:650}

/* ── 이번 주 할 일(0164) — 달력 바로 아래, 짧은 체크 목록 ── */
.schedule-todos{flex:none;max-height:42%;overflow:auto;background:var(--surface);border-radius:var(--layout-panel-radius)}
.st-h{display:flex;align-items:center;gap:10px;padding:14px 18px 8px;position:sticky;top:0;background:var(--surface);z-index:1}
.st-h h3{margin:0;font-size:15px;font-weight:700}
.st-range{font-size:12px;color:var(--muted)}
.st-nav{margin-left:auto;display:flex;gap:4px}
.st-nav button{border:0;background:var(--inset);color:var(--secondary);border-radius:8px;min-width:28px;height:28px;padding:0 8px;font:inherit;font-size:13px;cursor:pointer}
.st-nav button:hover{background:var(--hover);color:var(--ink)}
.st-nav .st-now{font-size:12px}
.st-list{list-style:none;margin:0;padding:0 0 8px}
.st-td{display:flex;align-items:center;gap:10px;padding:9px 18px;font-size:13px}
.st-td+.st-td,.st-src{box-shadow:inset 0 1px 0 var(--inset)}
.st-ck{width:18px;height:18px;flex:none;border:0;border-radius:5px;background:var(--inset);padding:0;display:grid;place-items:center;cursor:pointer}
.st-ck:hover:not(:disabled){background:var(--hover)}
.st-ck[aria-pressed="true"]{background:var(--solid)}
.st-ck[aria-pressed="true"]::after{content:"";width:9px;height:5px;border-left:2px solid var(--on-solid);border-bottom:2px solid var(--on-solid);transform:translateY(-1px) rotate(-45deg)}
.st-tt{border:0;background:none;padding:0;font:inherit;color:var(--ink);text-align:left;cursor:pointer;min-width:0}
.st-tt:disabled{cursor:default}
.st-td.done .st-tt{color:var(--muted);text-decoration:line-through}
.st-chip{font-size:11px;padding:3px 8px;border-radius:999px;background:var(--inset);color:var(--secondary);font-weight:600;white-space:nowrap}
.st-rep{font-size:11px;color:var(--muted);white-space:nowrap}
.st-prog{margin-left:auto;display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:700;color:var(--secondary);white-space:nowrap}
.st-prog img{width:18px;height:18px;border-radius:50%}
.st-prog.ok{color:var(--status-ok)}
.st-empty{padding:6px 18px 4px;font-size:12px;color:var(--muted)}
.st-add{border:0;background:none;padding:8px 18px;font:inherit;font-size:13px;color:var(--muted);cursor:pointer}
.st-add:hover{color:var(--ink)}
.st-src{display:flex;align-items:center;gap:8px;padding:10px 18px;font-size:12px;color:var(--secondary)}
.st-src i{width:8px;height:8px;margin:0 5px;transform:rotate(45deg);border-radius:2px;background:var(--source-due)}
.st-src b{color:var(--status-warn);font-weight:650}
.st-go{margin-left:auto;border:0;background:none;padding:0;font:inherit;font-size:12px;font-weight:650;color:var(--accent);cursor:pointer}
.st-err{margin:0 18px 6px;font-size:12px;color:var(--status-error)}
.st-form{padding:8px 18px 10px}
.st-form form{display:flex;flex-direction:column;gap:8px;padding:12px;border-radius:12px;background:var(--inset)}
/* 전역 form label · input 규칙(세로 쌓기 · 테두리)을 이 칸에서는 끈다 */
.st-form form input:not([type=checkbox]),.st-form form select{height:34px;border:0;border-radius:8px;background:var(--surface);padding:0 10px;font:inherit;font-size:13px;color:var(--ink);margin:0}
.st-form form [name=body]{width:100%}
.st-opts{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.st-opts [name=work]{flex:1;min-width:180px}
.st-form form label.st-opt{display:inline-flex;flex-direction:row;align-items:center;gap:6px;margin:0;font-size:12px;color:var(--secondary);white-space:nowrap}
.st-form .dropdown{min-width:150px!important}
.st-form .dropdown-trigger{min-height:34px;height:34px;padding:0 12px;border-radius:8px;background:var(--surface);font-size:13px}
/* 매주 — 체크 칸 대신 켜고 끄는 알약 */
.st-form form label.st-tg{position:relative;cursor:pointer}
.st-tg input{position:absolute;opacity:0;width:1px;height:1px}
.st-tg span{display:inline-flex;align-items:center;height:34px;padding:0 14px;border-radius:999px;background:var(--surface);color:var(--secondary);font-weight:600}
.st-tg input:checked+span{background:var(--solid);color:var(--on-solid)}
.st-tg input:focus-visible+span{outline:2px solid var(--focus);outline-offset:2px}
.st-form form .st-goal input{width:60px;text-align:center;padding:0 6px}
.st-acts{display:flex;gap:6px;align-items:center}.st-acts span{flex:1}
.st-acts button{border:0;border-radius:999px;padding:7px 14px;background:var(--surface);font:inherit;font-size:12px;font-weight:600;color:var(--ink);cursor:pointer}
.st-acts .st-save{background:var(--solid);color:var(--on-solid)}
.st-acts .st-del{color:var(--status-error)}
@media(max-width:1100px){.schedule-todos{max-height:none}.schedule-calendar{min-height:0}}

/* ── 작품별 일정(0164) ── */
.schedule-works{min-width:0;background:var(--surface);border-radius:var(--layout-panel-radius);overflow:hidden}
.ws-h{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:16px 20px}
.ws-h .dropdown{min-width:220px!important}
.ws-meta{font-size:12px;color:var(--muted)}
.ws-err{margin:0 20px 8px;font-size:12px;color:var(--status-error)}
.ws-empty{padding:30px 20px;color:var(--muted);font-size:13px;margin:0}
.ws-rules{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:0 20px 16px}
.ws-rule{display:flex;flex-direction:column;gap:3px;background:var(--inset);border-radius:12px;padding:12px 14px;min-width:0}
.ws-rule b{font-size:14px;font-weight:650}
.ws-rule small{font-size:12px;color:var(--secondary)}
.ws-rk{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--muted)}
.ws-rk i{width:8px;height:8px;flex:none}
.ws-rk .k-air{border-radius:50%;background:var(--accent)}
.ws-rk .k-src{transform:rotate(45deg);border-radius:2px;background:var(--source-due)}
.ws-rk .k-up{width:10px;height:10px;border-radius:50%;border:2px solid var(--status-ok)}
.ws-edit{margin-left:auto;border:0;background:none;padding:0;font:inherit;font-size:12px;font-weight:650;color:var(--accent);cursor:pointer}
.ws-ed{gap:8px}
.ws-ed label{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:13px}
.ws-ed input[type=number]{width:56px}
.ws-ed input[type=number],.ws-ed input[type=time],.ws-ed select{height:30px;border:0;border-radius:8px;background:var(--surface);padding:0 8px;font:inherit;font-size:13px;color:var(--ink)}
.ws-ed-acts{display:flex;gap:6px;justify-content:flex-end;margin-top:4px}
.ws-ed-acts button{border:0;border-radius:999px;padding:7px 12px;background:var(--surface);font:inherit;font-size:12px;font-weight:600;color:var(--ink);cursor:pointer}
.ws-ed-acts .ws-save{background:var(--solid);color:var(--on-solid)}
.ws-row{display:grid;grid-template-columns:76px minmax(180px,1fr) 150px 170px;gap:16px;align-items:center;padding:12px 20px;width:100%;border:0;background:none;font:inherit;color:inherit;text-align:left}
.ws-hd{padding-top:9px;padding-bottom:9px;background:var(--inset);font-size:12px;color:var(--muted)}
.ws-days{display:grid;grid-template-columns:repeat(7,1fr);text-align:center}
.ws-tr{cursor:pointer;box-shadow:inset 0 1px 0 var(--inset)}
.ws-hd+.ws-tr{box-shadow:none}
.ws-tr:hover:not(:disabled){background:color-mix(in srgb,var(--inset) 60%,var(--surface))}
.ws-tr:disabled{cursor:default}
.ws-tr.past{opacity:.55}
.ws-ep b{display:block;font-size:15px;font-weight:650}
.ws-ep small,.ws-when small{display:block;font-size:11px;color:var(--muted);margin-top:2px}
.ws-when b{font-size:13px;font-weight:600}
.ws-strip{position:relative;display:grid;grid-template-columns:repeat(7,1fr);height:32px;border-radius:8px;background:var(--inset);overflow:hidden}
.ws-strip>span+span{box-shadow:inset 1px 0 0 var(--surface)}
.ws-band{position:absolute;top:7px;height:18px;border-radius:5px;background:color-mix(in srgb,var(--source-due) 20%,transparent);color:var(--source-due);font-size:10px;font-weight:700;font-style:normal;display:flex;align-items:center;padding-left:6px;white-space:nowrap;overflow:hidden}
.ws-band.got{background:color-mix(in srgb,var(--status-ok) 16%,transparent);color:var(--status-ok)}
.ws-air{position:absolute;top:8px;width:16px;height:16px;margin-left:-8px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 2px var(--inset)}
.ws-st{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:12px;color:var(--secondary)}
.ws-st i{width:8px;height:8px;border-radius:50%;background:var(--hover);flex:none}
.ws-st small{flex-basis:100%;padding-left:14px;color:var(--muted);font-size:11px}
.ws-st.ok{color:var(--status-ok)}.ws-st.ok i{background:var(--status-ok)}
.ws-st.late{color:var(--status-warn);font-weight:600}.ws-st.late i{background:var(--status-warn)}
.ws-st.mute{color:var(--muted)}
.ws-more{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:14px 20px;box-shadow:inset 0 1px 0 var(--inset);font-size:13px}
.ws-more input{width:70px;height:32px;border:0;border-radius:8px;background:var(--inset);padding:0 8px;font:inherit}
.ws-extend{border:0;border-radius:999px;padding:8px 14px;background:var(--solid);color:var(--on-solid);font:inherit;font-size:12px;font-weight:600;cursor:pointer}
.ws-extend:disabled{background:var(--inset);color:var(--muted);cursor:default}
.ws-ext-note{font-size:12px;color:var(--secondary)}
.ws-help{margin:0;padding:10px 20px 16px;font-size:12px;color:var(--muted)}
@media(max-width:900px){
 .ws-rules{grid-template-columns:minmax(0,1fr)}
 .ws-row{grid-template-columns:60px minmax(0,1fr);gap:8px 12px}
 .ws-hd{display:none}
 .ws-when,.ws-st{grid-column:2}
}
/* 할 일 작품 여러 개(0165) */
.st-chip.none{background:none;color:var(--muted);font-weight:500}
.st-wrow{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:4px;border-radius:8px;background:var(--surface)}
.st-wchips{display:contents}
.st-wrow .st-chip{display:inline-flex;align-items:center;gap:4px;padding:4px 4px 4px 10px;background:var(--inset);font-size:12px}
.st-wrow .st-chip button{border:0;background:none;padding:0 4px;font-size:14px;line-height:1;color:var(--muted);cursor:pointer}
.st-wrow .st-chip button:hover{color:var(--ink)}
.st-form form .st-wrow input[name=work]{flex:1;min-width:180px;height:28px;padding:0 6px}

/* 주 넘기기 ‹ › — 글자 대신 쪽 넘기기와 같은 그림(10/27) */
.st-nav button svg{width:15px;height:15px;fill:none;stroke:var(--secondary);stroke-width:1.867;stroke-linecap:round;stroke-linejoin:round;display:block}.st-nav button[data-w]:not(.st-now){display:inline-grid;place-items:center;padding:0}
