/* 일정 예측 화면 */
.fc { --c: var(--muted); }
.c-뽑기 { --c: var(--violet); } .c-클래스 { --c: var(--blue); } .c-서버 { --c: var(--green); }
.c-명절 { --c: var(--red); } .c-이벤트 { --c: var(--accent); } .c-패키지 { --c: var(--accent-strong); } .c-점검 { --c: var(--faint); }

/* 위쪽 요약 세 칸 */
.fc-top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-bottom: 8px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.fc-top > .fc-card { border: 0; border-radius: 0; box-shadow: none; }
.fc-card { padding: 16px 18px; min-width: 0; }
.fc-card .l { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.fc-card .l svg.lucide { width: 15px; height: 15px; color: var(--accent); }
.fc-card .v { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; margin-top: 4px; font-size: 22px; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.fc-card .v span { font-size: 13.5px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.fc-card .s { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 6px; font-size: 12.5px; color: var(--faint); line-height: 1.5; }
.fc-card .s a { display: inline-flex; align-items: center; gap: 4px; color: var(--accent-strong); font-weight: 650; }
.fc-card .s a svg.lucide { width: 13px; height: 13px; }
.fc-tag { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 650; padding: 0 8px; border-radius: 99px; line-height: 1.8; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.fc-tag.ok { background: color-mix(in srgb, var(--green) 13%, transparent); color: var(--green); }
.fc-tags { display: inline-flex; flex-wrap: wrap; gap: 4px; flex-shrink: 0; }

.fc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.fc-main { min-width: 0; }
.fc-grid.solo { grid-template-columns: minmax(0, 1fr); }
.fc-side { display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + 16px); min-width: 0; }

/* 주별 일정 */
.fc-week { margin-bottom: 18px; }
.fc-week-head { display: flex; align-items: center; gap: 10px; margin: 0 0 8px 2px; font-size: 14px; }
.fc-dday { font-size: 11.5px; font-weight: 700; color: var(--accent-strong); background: var(--accent-soft); border-radius: 99px; padding: 1px 8px; }
.fc-items { display: grid; gap: 8px; }
.fc-item { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); color: var(--text); transition: border-color .12s, box-shadow .12s; }
.fc-item > summary, a.fc-item, .fc-flat { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 11px 14px; cursor: pointer; list-style: none; }
.fc-item > summary::-webkit-details-marker { display: none; }
.fc-item:hover { border-color: var(--border-strong); color: var(--text); }
.fc-item[open] { border-color: var(--border-strong); box-shadow: 0 4px 14px rgba(24, 22, 16, .05); }
.fc-item > summary:focus-visible { outline: 0; box-shadow: var(--focus); border-radius: var(--radius); }
.fc-official { border-color: color-mix(in srgb, var(--green) 32%, var(--border)); background: color-mix(in srgb, var(--green) 4%, var(--surface)); }
.fc-flat { cursor: default; }
.fc-ico { width: 36px; height: 36px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px;
  color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); }
.fc-ico svg.lucide { width: 18px; height: 18px; }
.fc-ico.sm { width: 24px; height: 24px; border-radius: 7px; margin-right: 7px; vertical-align: middle; }
.fc-ico.sm svg.lucide { width: 14px; height: 14px; }
.fc-what { flex: 1; min-width: 0; display: grid; gap: 1px; }
.fc-what b { font-size: 14.5px; font-weight: 700; line-height: 1.45; }
.fc-when { font-size: 12.5px; color: var(--faint); }
.fc-conf { position: relative; flex-shrink: 0; width: 76px; height: 26px; border-radius: 99px; background: var(--surface-2); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.fc-conf i { position: absolute; inset: 0 auto 0 0; width: var(--p); background: color-mix(in srgb, var(--c) 26%, transparent); }
.fc-conf b { position: relative; font-size: 12.5px; font-weight: 750; font-variant-numeric: tabular-nums; }
.fc-basis { padding: 2px 16px 14px 62px; font-size: 13.5px; color: var(--muted); line-height: 1.65; }
.fc-basis p { margin: 0 0 4px; }
.fc-alts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fc-alts span { font-size: 12px; font-weight: 650; padding: 0 8px; border-radius: 99px; background: var(--surface-2); color: var(--text); }
.fc-later { margin: 6px 0 12px; }
.fc-later > summary { display: inline-flex; align-items: center; min-height: 36px; cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--muted); padding: 0 2px; }
.fc-later > summary:hover { color: var(--text); }
.fc-later .fc-items { margin-top: 6px; }

/* 성적표·표 */
.fc-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.fc-table th, .fc-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: center; white-space: nowrap; }
.fc-table th { font-size: 12px; color: var(--muted); font-weight: 600; background: var(--surface-2); }
.fc-table tbody tr:last-child td { border-bottom: 0; }
.fc-table tbody tr:hover td { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.fc-table .l { text-align: left; white-space: normal; min-width: 160px; }
.fc-table a { color: var(--accent-strong); font-weight: 600; }
.fc-result { display: inline-block; min-width: 56px; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 99px; text-align: center; white-space: nowrap; }
.fc-result.hit { background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--green); }
.fc-result.partial { background: var(--accent-soft); color: var(--accent-strong); }
.fc-result.miss { background: color-mix(in srgb, var(--red) 12%, transparent); color: var(--red); }
.fc-result.withdrawn { background: var(--surface-2); color: var(--faint); }

/* 근거 목록 */
.fc-ev { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 6px; }
.fc-ev li { display: flex; gap: 8px; align-items: baseline; line-height: 1.6; }
.fc-ev .k { flex-shrink: 0; min-width: 74px; text-align: center; font-size: 11.5px; font-weight: 700; padding: 0 7px; border-radius: 99px; background: var(--surface-2); color: var(--muted); }
.fc-ev a { color: var(--accent-strong); font-size: 12px; font-weight: 600; white-space: nowrap; }
.k-official .k, .fc-tag.k-official { background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--green); }
.k-roadmap .k, .fc-tag.k-roadmap { background: color-mix(in srgb, var(--blue) 13%, transparent); color: var(--blue); }
.k-link .k, .fc-tag.k-link { background: color-mix(in srgb, var(--violet) 13%, transparent); color: var(--violet); }
.k-against .k { background: color-mix(in srgb, var(--red) 11%, transparent); color: var(--red); }
.k-watch .k { background: var(--accent-soft); color: var(--accent-strong); }
.fc-period { margin: 2px 0 6px; font-size: 13px; }
.fc-period b { color: var(--text); }

/* 공식 로드맵 */
.fc-plans ul { list-style: none; margin: 0; padding: 2px 0; }
.fc-plans li { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--border); }
.fc-plans li:last-child { border-bottom: 0; }
.fc-plan-when { flex-shrink: 0; min-width: 84px; font-size: 13px; font-weight: 750; color: var(--blue); }
.fc-plans .n { flex: 1; min-width: 0; display: grid; }
.fc-plans .n b { font-size: 14px; }
.fc-plans .n span { font-size: 12px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-plans .n .fc-plan-actual { color: var(--green); }
.fc-plans .src { flex-shrink: 0; font-size: 12px; color: var(--faint); }
.fc-plans .src:hover { color: var(--accent-strong); }
.fc-plans > .fc-note { padding-top: 12px; border-top: 1px solid var(--border); }
.fc-record { padding: 0 16px 14px; }
.fc-record > summary { display: inline-flex; align-items: center; min-height: 32px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted); }
.fc-record > summary:hover { color: var(--text); }
.fc-record ul { margin-top: 6px; }
.fc-record li { padding: 7px 0; font-size: 13px; gap: 8px; }
.fc-record li > span:nth-child(2) { flex: 1; min-width: 0; }

/* 신상품 예상 */
.fc-note.top { padding: 13px 16px 11px; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--surface-2) 45%, var(--surface)); border-radius: var(--radius) var(--radius) 0 0; }
.fc-pkg { border-bottom: 1px solid var(--border); }
.fc-pkg:last-child { border-bottom: 0; }
.fc-pkg > summary { display: grid; grid-template-columns: minmax(0, 1fr) 90px 18px; gap: 12px; align-items: center; min-height: 52px; padding: 10px 16px; cursor: pointer; list-style: none; transition: background .1s; }
.fc-pkg > summary::-webkit-details-marker { display: none; }
.fc-pkg > summary:hover { background: var(--surface-2); }
.fc-pkg .n { min-width: 0; display: grid; }
.fc-pkg .n b { font-size: 14px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-pkg .n span { font-size: 12px; color: var(--faint); }
.fc-pkg .chev { width: 16px; height: 16px; color: var(--faint); transition: transform .15s; }
.fc-pkg[open] .chev { transform: rotate(180deg); }
.fc-pkg-body { padding: 4px 16px 16px; font-size: 13px; color: var(--muted); }
.fc-prod { margin: 8px 0; }
.fc-prod-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.fc-prod-meta span { font-size: 12px; font-weight: 650; padding: 1px 8px; border-radius: 6px; background: var(--surface-2); color: var(--text); }
.fc-steps { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.fc-steps th, .fc-steps td { padding: 6px 8px; border-top: 1px solid var(--border); text-align: left; vertical-align: top; }
.fc-steps th { width: 54px; color: var(--faint); font-weight: 650; white-space: nowrap; }
.fc-steps .pr { width: 96px; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--text); }
.fc-steps .free { font-weight: 700; color: var(--green); }
.fc-steps td div + div { margin-top: 2px; }
.fc-comp { margin: 0; padding-left: 18px; line-height: 1.7; color: var(--text); }
.fc-prod .unsure { text-decoration: underline dotted var(--red); text-underline-offset: 3px; }
.fc-unsure-note { margin: 6px 0 0; font-size: 12px; color: var(--faint); }
.fc-changes { margin: 10px 0 4px; padding: 9px 12px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: 12.5px; }
.fc-changes ul { margin: 4px 0 0; padding-left: 16px; }
.fc-hist { margin: 8px 0 0; font-size: 12px; color: var(--faint); line-height: 1.6; }
.fc-mini { border-top: 1px solid var(--border); }
.fc-mini > summary { display: flex; align-items: center; min-height: 36px; cursor: pointer; font-size: 13px; color: var(--text); }
.fc-mini > summary:hover { color: var(--accent-strong); }
.fc-mini .fc-prod { margin: 0 0 10px; }
.fc-bar { position: relative; height: 24px; border-radius: 7px; background: var(--surface-2); overflow: hidden; display: flex; align-items: center; justify-content: flex-end; padding-right: 8px; }
.fc-bar i { position: absolute; inset: 0 auto 0 0; width: var(--p); background: color-mix(in srgb, var(--accent) 28%, transparent); }
.fc-bar b { position: relative; font-size: 12px; font-weight: 750; font-variant-numeric: tabular-nums; }
.fc-note { margin: 0; padding: 0 16px 14px; font-size: 12.5px; color: var(--faint); line-height: 1.6; }
.fc-note b { color: var(--muted); }
.fc-week-list { padding: 8px 16px 14px; font-size: 13px; }
.fc-week-list h4 { margin: 8px 0 4px; font-size: 12px; font-weight: 650; color: var(--faint); }
.fc-week-list ul { margin: 0; padding-left: 16px; color: var(--muted); line-height: 1.65; }
.fc-week-list .fc-mini > summary { justify-content: space-between; gap: 8px; }
.fc-wk-score { margin: 4px 0 6px; font-size: 13px; color: var(--muted); }
.fc-wk-score b { color: var(--text); }
.fc-week-list .fc-marks { list-style: none; padding: 0; }
.fc-marks li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 3px 0; }
.fc-mark { flex-shrink: 0; font-size: 11px; font-weight: 700; padding: 0 7px; border-radius: 99px; line-height: 1.8; background: var(--surface-2); color: var(--muted); }
.fc-mark.ok { background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--green); }
.fc-mark.no { background: color-mix(in srgb, var(--red) 12%, transparent); color: var(--red); }

/* 수요일 업데이트 예상 */
.fc-wk-h { display: flex; align-items: center; gap: 7px; margin: 0; padding: 12px 16px 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.fc-wk-h svg.lucide { width: 15px; height: 15px; color: var(--accent); }
.fc-wk-h + .empty-note { margin: 0 16px 10px; }
.fc-wk-foot { padding-top: 12px; border-top: 1px solid var(--border); }

/* 종류별 이력 */
.fc-series { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 16px; }
.fc-s { min-width: 0; }
.fc-s .card-head h3 { display: flex; align-items: center; min-width: 0; }
.fc-s .card-head > span { font-size: 12.5px; white-space: nowrap; }
.fc-s-body { padding: 12px 16px 16px; display: grid; gap: 10px; }
.fc-s-next { margin: 0; font-size: 13.5px; color: var(--muted); }
.fc-s-next b { color: var(--text); }
.fc-s-next.ok b { color: var(--green); }
.fc-dates { display: flex; flex-wrap: wrap; gap: 5px; }
.fc-dates a { display: inline-flex; align-items: center; gap: 5px; min-height: 26px; font-size: 12px; padding: 0 8px; border-radius: 6px; background: var(--surface-2); color: var(--muted); }
.fc-dates a:hover { color: var(--text); background: var(--surface-3); }
.fc-dates b { font-weight: 650; color: var(--text); font-variant-numeric: tabular-nums; }
.fc-s-back { margin: 0; font-size: 12px; color: var(--faint); }
.fc-locked-more { margin: -4px 0 0; font-size: 13px; color: var(--faint); text-align: center; }
.fc-foot { margin: 28px 0 0; font-size: 12.5px; color: var(--faint); line-height: 1.65; }

/* 콘텐츠 폭(화면 − 왼쪽 메뉴 248px − 여백)에 맞춘다 */
@media (max-width: 1279px) {
  .fc-grid { grid-template-columns: minmax(0, 1fr); }
  .fc-side { position: static; }
}
@media (max-width: 767px) {
  .fc-top { grid-template-columns: minmax(0, 1fr); }
  .fc-card { padding: 13px 16px; }
  .fc-card .v { font-size: 20px; }
  /* 일정 한 줄: [아이콘 | 이름·날짜 | 확신] 아래에 꼬리표 */
  .fc-item > summary, a.fc-item, .fc-flat { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; grid-template-areas: "ico what conf" "ico tags tags"; gap: 4px 12px; align-items: center; }
  .fc-item .fc-ico { grid-area: ico; align-self: start; }
  .fc-item .fc-what { grid-area: what; }
  .fc-item .fc-conf { grid-area: conf; width: 58px; }
  .fc-item .fc-tags { grid-area: tags; justify-self: start; }
  a.fc-item > .fc-tag { grid-area: conf; }
  .fc-basis { padding: 2px 14px 14px; }
  .fc-ev li { flex-wrap: wrap; gap: 2px 8px; }
  .fc-plans li { flex-wrap: wrap; row-gap: 4px; }
  .fc-plans .n { flex-basis: calc(100% - 96px); }
  .fc-plans .n span { white-space: normal; }
  .fc-plan-when { min-width: 72px; }
  .fc-pkg > summary { grid-template-columns: minmax(0, 1fr) 64px 16px; gap: 10px; padding: 10px 14px; }
  .fc-pkg .n b { white-space: normal; }
  .fc-pkg-body { padding: 4px 14px 14px; }
  .fc-steps .pr { width: auto; }
}
