/* ===== 스크럼 보드 (/scrum/) ===== */
/* 칸반처럼 정보가 많아 사이트 본문보다 한 단계 작은 글자(14px)로 씁니다 */
.sc { --card: #1C332B; padding-block: clamp(1.5rem, 4vw, 2.5rem) clamp(3rem, 8vw, 5rem); font-size: 0.875rem; }
:root[data-theme="light"] .sc { --card: #FFFFFF; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .sc { --card: #FFFFFF; } }

/* 칸반 ↔ 스크럼 */
.board-switch { display: inline-flex; gap: 0.25rem; margin-bottom: 1.25rem; padding: 3px; border: 1px solid var(--rule); border-radius: 999px; font-size: 0.8125rem; font-weight: 700; }
.board-switch a { padding: 0.3rem 0.9rem; border-radius: 999px; color: var(--ink-soft); text-decoration: none; }
.board-switch a:hover { color: var(--ink); }
.board-switch a[aria-current="page"] { background: var(--ink); color: var(--paper); }

.sc-store { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin-bottom: 1.75rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--rule); }
.sc-seg { display: inline-flex; flex: none; padding: 3px; border: 1px solid var(--rule); border-radius: 10px; }
.sc-seg button { padding: 0.35rem 0.9rem; border: 0; border-radius: 7px; background: transparent; color: var(--ink-soft); font-size: 0.8125rem; font-weight: 600; cursor: pointer; }
.sc-seg button:hover { color: var(--ink); }
.sc-seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.sc-store__text { flex: 1 1 22rem; max-width: 46rem; color: var(--ink-soft); font-size: 0.8125rem; line-height: 1.6; }

.sc__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 1.5rem; margin-bottom: 1.25rem; }
.sc__title { font-size: clamp(1.375rem, 3vw, 1.875rem); font-weight: 800; letter-spacing: -0.03em; }
.is-editing .sc__title { cursor: text; }
.is-editing .sc__title:hover { text-decoration: underline dotted var(--ink-soft); text-underline-offset: 0.3em; }
.sc__title-input { width: min(28rem, 100%); padding: 0.1rem 0.4rem; border: 1px solid var(--field-line, var(--rule)); border-radius: 8px; background: var(--tile); color: inherit; font: inherit; }
.sc__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.75rem; margin-top: 0.4rem; color: var(--ink-soft); font-size: 0.8125rem; }
.sc__mode { padding: 0.05rem 0.55rem; border: 1px solid var(--rule); border-radius: 999px; font-size: 0.75rem; font-weight: 600; }
.is-editing .sc__mode { border-color: var(--seal); color: var(--seal); }
.sc__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.sc__notice { margin-bottom: 1rem; padding: 0.8rem 1rem; border: 1px solid var(--seal); border-radius: 10px; background: color-mix(in srgb, var(--seal) 10%, transparent); line-height: 1.6; }
.sc__notice[hidden] { display: none; }
.sc__notice-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.6rem; }
.sc__loading { padding: 2rem 0; color: var(--ink-soft); }

/* 단추 */
.sc-btn { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.38rem 0.8rem; border: 1px solid var(--rule); border-radius: 8px; background: transparent; color: inherit; font: inherit; font-size: 0.8125rem; font-weight: 600; cursor: pointer; }
.sc-btn[hidden] { display: none; }
.sc-btn:hover:not(:disabled) { border-color: var(--ink-soft); }
.sc-btn:disabled { opacity: 0.5; cursor: default; }
.sc-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.sc-btn--primary { border-color: var(--seal-btn, var(--seal)); background: var(--seal-btn, var(--seal)); color: #fff; }
.sc-btn--primary:hover:not(:disabled) { border-color: var(--seal); filter: brightness(.92); }
.sc-btn--danger { padding-inline: 0.5rem; border-color: transparent; color: var(--seal); }
.sc-btn--small { padding: 0.25rem 0.6rem; font-size: 0.75rem; }
.sc-link { padding: 0; border: 0; background: none; color: var(--seal); font: inherit; text-decoration: underline; cursor: pointer; }
.sc-icon { display: inline-grid; place-items: center; width: 2rem; height: 2rem; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--ink-soft); cursor: pointer; }
.sc-icon:hover:not(:disabled) { background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink); }
.sc-icon:disabled { opacity: 0.3; cursor: default; }
.sc-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sc-icon--small { width: 1.75rem; height: 1.75rem; }
.sc-icon--small svg { width: 15px; height: 15px; }
.sc-btn:focus-visible, .sc-icon:focus-visible, .sc-seg button:focus-visible, .sc-tabs [role="tab"]:focus-visible { outline: 2px solid var(--seal); outline-offset: 2px; }

/* 탭 */
.sc-tabs { display: flex; gap: 0.25rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--rule); overflow-x: auto; scrollbar-width: none; }
.sc-tabs::-webkit-scrollbar { display: none; }
.sc-tabs [role="tab"] { flex: none; display: inline-flex; align-items: center; gap: 0.4rem; margin-bottom: -1px; padding: 0.6rem 0.9rem; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--ink-soft); font: inherit; font-size: 0.9375rem; font-weight: 700; cursor: pointer; }
.sc-tabs [role="tab"]:hover { color: var(--ink); }
.sc-tabs [role="tab"][aria-selected="true"] { border-bottom-color: var(--seal); color: var(--ink); }
.sc-tabs__n:not(:empty) { padding: 0 0.45rem; border-radius: 999px; background: color-mix(in srgb, var(--ink) 10%, transparent); font-size: 0.75rem; }
.sc-panel[hidden] { display: none; }

.sc-empty { display: grid; justify-items: start; gap: 0.9rem; padding: 2rem 1.25rem; border: 1px dashed var(--rule); border-radius: 14px; color: var(--ink-soft); line-height: 1.7; }
.sc-empty__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* 상태 표시 */
.sc-state { display: inline-block; padding: 0.05rem 0.5rem; border-radius: 999px; font-size: 0.6875rem; font-weight: 700; }
.sc-state--active { background: var(--seal-btn, var(--seal)); color: #fff; }
.sc-state--planned { border: 1px solid var(--rule); color: var(--ink-soft); }
.sc-state--closed { background: color-mix(in srgb, var(--ink) 12%, transparent); color: var(--ink-soft); }

/* ----- 스프린트 요약 ----- */
.sc-sprint { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 2rem; align-items: start; margin-bottom: 1.25rem; padding: 1.25rem 1.4rem; border: 1px solid var(--rule); border-radius: 16px; background: var(--tile); }
.sc-sprint__kicker, .sc-group__kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; color: var(--ink-soft); font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.sc-sprint__name { margin-top: 0.4rem; font-size: 1.375rem; font-weight: 800; letter-spacing: -0.02em; }
.sc-sprint__goal, .sc-group__goal { margin-top: 0.4rem; max-width: 46rem; color: var(--ink-soft); line-height: 1.6; }
.sc-sprint__goal strong, .sc-group__goal strong { margin-right: 0.25rem; color: var(--ink); font-weight: 700; }
.sc-sprint__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.9rem; }
.sc-stats { display: grid; grid-template-columns: repeat(3, auto); gap: 0.25rem 1.5rem; margin: 0; }
.sc-stats div { display: grid; gap: 0.15rem; }
.sc-stats dt { color: var(--ink-soft); font-size: 0.75rem; font-weight: 600; }
.sc-stats dd { margin: 0; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.sc-stats b { color: var(--ink); font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.sc-stats b.is-over { color: var(--seal); }
.sc-progress { grid-column: 1 / -1; height: 6px; overflow: hidden; border-radius: 999px; background: color-mix(in srgb, var(--ink) 10%, transparent); }
.sc-progress span { display: block; height: 100%; border-radius: inherit; background: var(--seal); transition: width .3s; }

/* ----- 차트 (번다운·속도) ----- */
.sc-chart { margin: 0 0 1.25rem; padding: 1rem 1.25rem 0.75rem; border: 1px solid var(--rule); border-radius: 16px; background: var(--tile); }
.sc-chart__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.4rem 1rem; margin-bottom: 0.5rem; }
.sc-chart__title { font-size: 0.875rem; font-weight: 700; }
.sc-chart__empty { margin-top: 0.4rem; padding-bottom: 0.4rem; color: var(--ink-soft); }
.sc-legend { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; color: var(--ink-soft); font-size: 0.75rem; }
.sc-legend__item { display: inline-flex; align-items: center; gap: 0.4rem; }
.sc-legend__line { display: inline-block; width: 18px; height: 0; border-top: 2px solid var(--seal); }
.sc-legend__line--ideal, .sc-legend__line--avg { border-top: 2px dashed var(--ink-soft); }
.sc-legend__box { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--seal); }
.sc-legend__box--planned { background: color-mix(in srgb, var(--ink-soft) 30%, transparent); }
.sc-chart__plot { position: relative; }
.sc-chart__svg { display: block; max-width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.sc-chart__grid { stroke: var(--rule); stroke-width: 1; }
.sc-chart__tick { fill: var(--ink-soft); font-size: 11px; font-variant-numeric: tabular-nums; }
.sc-chart__today { stroke: var(--ink-soft); stroke-width: 1; stroke-dasharray: 2 3; opacity: 0.7; }
.sc-chart__ideal { fill: none; stroke: var(--ink-soft); stroke-width: 1.5; stroke-dasharray: 5 4; }
.sc-chart__actual { fill: none; stroke: var(--seal); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.sc-chart__dot { fill: var(--seal); stroke: var(--tile); stroke-width: 2; }
.sc-chart__cross { stroke: var(--ink-soft); stroke-width: 1; }
.sc-chart__done { fill: var(--seal); }
.sc-chart__planned { fill: color-mix(in srgb, var(--ink-soft) 30%, transparent); }
.sc-chart__avg { stroke: var(--ink-soft); stroke-width: 1.5; stroke-dasharray: 5 4; }
.sc-chart__avg-label { fill: var(--ink-soft); font-size: 11px; font-weight: 600; }
.sc-chart__hit { fill: transparent; }
.sc-vbar:hover .sc-chart__done { filter: brightness(1.12); }
.sc-chart__tip { position: absolute; top: 0; transform: translateX(-50%); display: grid; gap: 0.1rem; min-width: 8rem; padding: 0.45rem 0.65rem; border: 1px solid var(--rule); border-radius: 8px;
  background: var(--paper); box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .5); font-size: 0.75rem; font-variant-numeric: tabular-nums; pointer-events: none; }
.sc-chart__tip[hidden] { display: none; }
.sc-chart__tip-ideal { color: var(--ink-soft); }
.sc-chart__data { margin-top: 0.4rem; color: var(--ink-soft); font-size: 0.75rem; }
.sc-chart__data summary { width: fit-content; cursor: pointer; }
.sc-table { width: 100%; margin-top: 0.5rem; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.sc-table th, .sc-table td { padding: 0.3rem 0.5rem; border-bottom: 1px solid var(--rule); text-align: left; }
.sc-table th { color: var(--ink-soft); font-weight: 600; }

/* ----- 스프린트 보드 ----- */
.sc-board { display: grid; grid-template-columns: repeat(4, minmax(13rem, 1fr)); gap: 0.9rem; align-items: start; overflow-x: auto; padding-bottom: 0.5rem; }
.sc-col { display: flex; flex-direction: column; gap: 0.6rem; min-width: 0; padding: 0.75rem; border: 1px solid var(--rule); border-radius: 14px; background: var(--tile); }
.sc-col__head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; min-height: 1.75rem; }
.sc-col__head h3 { font-size: 0.875rem; font-weight: 700; }
.sc-col__n { color: var(--ink-soft); font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.sc-col--done .sc-col__head h3::before { content: "✓ "; color: var(--seal); }
.sc-col__empty { color: var(--ink-soft); font-size: 0.75rem; }
.sc-cards { display: flex; flex-direction: column; gap: 0.5rem; min-height: 0.5rem; margin: 0; padding: 0; list-style: none; border-radius: 10px; }
.sc-cards.is-over { outline: 2px dashed var(--seal); outline-offset: 3px; }
.sc-card { position: relative; border: 1px solid var(--rule); border-left: 3px solid var(--stripe, var(--rule)); border-radius: 10px; background: var(--card); }
.sc-card--story { --stripe: #5B8DEF; }
.sc-card--bug { --stripe: var(--seal); }
.sc-card--task { --stripe: #3FA37C; }
.sc-card:hover { border-color: var(--ink-soft); border-left-color: var(--stripe); }
.sc-card.is-dragging { opacity: 0.4; }
.is-editing .sc-card { cursor: grab; }
.sc-card__open { display: grid; gap: 0.4rem; width: 100%; padding: 0.65rem 0.75rem; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.is-editing .sc-card__open { padding-bottom: 2.1rem; }
.sc-card__top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.sc-card__title { font-weight: 650; line-height: 1.45; overflow-wrap: anywhere; }
.sc-card__move { position: absolute; right: 0.35rem; bottom: 0.3rem; display: flex; gap: 0.15rem; }
.sc-col--done .sc-card__title { color: var(--ink-soft); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--ink-soft) 60%, transparent); }

.sc-type { display: inline-block; padding: 0.05rem 0.45rem; border-radius: 5px; font-size: 0.6875rem; font-weight: 700; color: var(--ink); background: color-mix(in srgb, var(--stripe, var(--ink-soft)) 22%, transparent); }
.sc-type--story { --stripe: #5B8DEF; }
.sc-type--bug { --stripe: var(--seal); }
.sc-type--task { --stripe: #3FA37C; }
.sc-pts { display: inline-grid; place-items: center; min-width: 1.6rem; height: 1.35rem; padding: 0 0.35rem; border-radius: 999px; background: color-mix(in srgb, var(--ink) 12%, transparent); font-size: 0.75rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.sc-pts--none { color: var(--ink-soft); background: none; border: 1px dashed var(--rule); }
.sc-labels { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.sc-label { padding: 0.05rem 0.4rem; border-radius: 5px; background: color-mix(in srgb, var(--ink) 9%, transparent); color: var(--ink-soft); font-size: 0.6875rem; font-weight: 600; }

/* 항목 추가 */
.sc-add { display: grid; gap: 0.4rem; }
.sc-add__input { width: 100%; padding: 0.5rem 0.65rem; border: 1px dashed var(--field-line, var(--rule)); border-radius: 9px; background: transparent; color: inherit; font: inherit; }
.sc-add__input:focus { border-style: solid; border-color: var(--ink-soft); outline: none; }
.sc-add__row { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.sc-add__type, .sc-add__pts, .sc-row__send { padding: 0.25rem 0.4rem; border: 1px solid var(--rule); border-radius: 7px; background: var(--tile); color: inherit; font: inherit; font-size: 0.75rem; }
.sc-add__row .sc-btn { margin-left: auto; }

/* ----- 백로그 ----- */
.sc-group { margin-bottom: 1rem; padding: 1rem 1.15rem; border: 1px solid var(--rule); border-radius: 16px; background: var(--tile); }
.sc-group.is-active { border-color: color-mix(in srgb, var(--seal) 55%, var(--rule)); }
.sc-group--backlog { margin-top: 1.5rem; }
.sc-group__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 0.6rem 1rem; margin-bottom: 0.75rem; }
.sc-group__title { margin-top: 0.3rem; font-size: 1.0625rem; font-weight: 800; }
.sc-group--backlog .sc-group__title { margin-top: 0; }
.sc-group__meta { margin-top: 0.2rem; color: var(--ink-soft); font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.sc-group__actions { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.sc-group__hint { margin: -0.25rem 0 0.75rem; color: var(--ink-soft); font-size: 0.75rem; }
.sc-group__empty { padding: 0.5rem 0; color: var(--ink-soft); font-size: 0.8125rem; }
.sc-group--backlog .sc-add { margin-bottom: 0.75rem; }
.sc-newsprint { display: flex; align-items: center; justify-content: center; gap: 0.4rem; width: 100%; padding: 0.8rem; border: 1px dashed var(--rule); border-radius: 14px; background: none; color: var(--ink-soft); font: inherit; font-weight: 700; cursor: pointer; }
.sc-newsprint:hover { border-color: var(--ink-soft); color: var(--ink); }
.sc-newsprint svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

.sc-rows { display: grid; gap: 0.35rem; margin: 0; padding: 0; list-style: none; }
.sc-row { display: flex; align-items: center; gap: 0.5rem; padding: 0.25rem 0.35rem 0.25rem 0.25rem; border: 1px solid var(--rule); border-radius: 10px; background: var(--card); }
.sc-row__open { display: flex; flex: 1 1 auto; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.5rem; min-width: 0; padding: 0.4rem 0.45rem; border: 0; border-radius: 7px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.sc-row__open:hover .sc-row__title { text-decoration: underline; text-underline-offset: 0.2em; }
.sc-row__title { flex: 1 1 12rem; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.sc-row.is-done .sc-row__title { color: var(--ink-soft); text-decoration: line-through; }
.sc-row__status { padding: 0.05rem 0.45rem; border-radius: 999px; border: 1px solid var(--rule); color: var(--ink-soft); font-size: 0.6875rem; font-weight: 600; }
.sc-row__status--doing, .sc-row__status--review { border-color: var(--ink-soft); color: var(--ink); }
.sc-row__status--done { border-color: transparent; background: color-mix(in srgb, var(--ink) 10%, transparent); }
.sc-row__tools { display: flex; flex: none; align-items: center; gap: 0.15rem; }
.sc-row__send { max-width: 9rem; margin-left: 0.25rem; }

/* ----- 회고·기록 ----- */
.sc-retro { margin-bottom: 1rem; padding: 1.1rem 1.2rem; border: 1px solid var(--rule); border-radius: 16px; background: var(--tile); }
.sc-retro__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 0.5rem 1.5rem; }
.sc-retro__score { color: var(--ink-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sc-retro__score b { color: var(--ink); font-size: 1.5rem; font-weight: 800; }
.sc-retro__unit { font-size: 0.75rem; }
.sc-retro__notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0.6rem; margin-top: 0.9rem; }
.sc-note { padding: 0.7rem 0.85rem; border-radius: 10px; background: var(--card); border: 1px solid var(--rule); }
.sc-note h3 { margin-bottom: 0.3rem; color: var(--ink-soft); font-size: 0.75rem; font-weight: 700; }
.sc-note--good h3::before { content: "＋ "; }
.sc-note--bad h3::before { content: "－ "; }
.sc-note--next h3::before { content: "→ "; }
.sc-note p { line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.sc-retro__items { margin-top: 0.75rem; }
.sc-retro__items summary { width: fit-content; margin-bottom: 0.5rem; color: var(--ink-soft); font-size: 0.8125rem; font-weight: 600; cursor: pointer; }
.sc-retro__actions { margin-top: 0.75rem; }

/* ----- 대화상자 ----- */
.sc-dialog { width: min(36rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); padding: 1.5rem; border: 1px solid var(--rule); border-radius: 14px; background: var(--paper); color: var(--ink); font-size: 0.9375rem; }
.sc-dialog::backdrop { background: rgba(5, 12, 10, 0.6); }
.sc-dialog h2 { font-size: 1.0625rem; font-weight: 700; }
.sc-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.5rem; }
.sc-dialog__text { margin-top: 0.6rem; color: var(--ink-soft); line-height: 1.6; }
.sc-dialog__error { margin-top: 0.75rem; color: var(--seal); font-weight: 600; }
.sc-dialog__error[hidden] { display: none; }
.sc-dialog__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 1.5rem; }
.sc-spacer { flex: 1; }
.sc-field { display: grid; gap: 0.35rem; margin-top: 1rem; font-size: 0.8125rem; font-weight: 600; }
.sc-field input, .sc-field textarea, .sc-field select { width: 100%; padding: 0.55rem 0.75rem; border: 1px solid var(--field-line, var(--rule)); border-radius: 8px; background: var(--tile); color: inherit; font: inherit; font-weight: 400; }
.sc-field textarea { line-height: 1.6; resize: vertical; }
.sc-field__hint { color: var(--ink-soft); font-size: 0.75rem; font-weight: 400; }
.sc-edit__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 0.75rem; }
.sc-choice { margin: 1rem 0 0; padding: 0; border: 0; }
.sc-choice legend { margin-bottom: 0.35rem; }
.sc-choice label { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.35rem; font-weight: 400; cursor: pointer; }
.sc-choice input { width: auto; accent-color: var(--seal); }
.sc-close__sum { display: grid; gap: 0.2rem; margin-top: 0.5rem; padding: 0.75rem 0.9rem; border-radius: 10px; background: var(--tile); }
.sc-close__sum span { color: var(--ink-soft); font-size: 0.8125rem; }
.sc-close__hint { margin-top: 1.1rem; color: var(--ink-soft); font-size: 0.8125rem; line-height: 1.6; }
.sc-view { display: grid; gap: 0.6rem; }
.sc-view__top { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.sc-view__title { font-size: 1.125rem; font-weight: 800; line-height: 1.4; overflow-wrap: anywhere; }
.sc-view__body { line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.sc-view__meta { color: var(--ink-soft); font-size: 0.8125rem; }
.sc-history { display: grid; gap: 0.4rem; max-height: 50vh; margin: 1rem 0 0; padding: 0; overflow-y: auto; list-style: none; }
.sc-history__item { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.5rem 0.7rem; border: 1px solid var(--rule); border-radius: 9px; }
.sc-history__item > span:first-child { display: grid; gap: 0.1rem; }
.sc-history__item > span:first-child span { color: var(--ink-soft); font-size: 0.75rem; }
.sc-history__now { color: var(--seal); font-size: 0.75rem; font-weight: 700; }
.sc-history__empty { color: var(--ink-soft); }

@media (max-width: 760px) {
  .sc-sprint { grid-template-columns: 1fr; }
  .sc-board { grid-template-columns: repeat(4, minmax(min(78vw, 16rem), 1fr)); scroll-snap-type: x proximity; }
  .sc-col { scroll-snap-align: start; }
}
@media (max-width: 560px) {
  /* 좁은 화면: 집중 모드 단추는 아이콘만(이름은 화면 읽기용으로 남김) */
  body:not(.fm-on) .sc__actions { gap: 0.4rem; }
  body:not(.fm-on) .sc__actions > .sc-btn { padding-inline: 0.6rem; }
  body:not(.fm-on) .sc__actions > .fm-btn > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .sc-stats { grid-template-columns: repeat(3, 1fr); gap: 0.25rem 0.75rem; }
  .sc-stats b { font-size: 1.25rem; }
  .sc-row { flex-wrap: wrap; }
  .sc-row__tools { width: 100%; justify-content: flex-end; }
  .sc-edit__row { grid-template-columns: 1fr; }
  .sc-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; border-radius: 0; padding: calc(1rem + env(safe-area-inset-top, 0px)) 1.1rem calc(1.5rem + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) { .sc-progress span { transition: none; } }
/* 1000px 이하: 단추 줄은 제목 아래 한 줄, 넘치면 옆으로 넘김 → 불러온 뒤 단추·상태 글이 바뀌어도 보드가 밀리지 않음 (칸반과 같음) */
@media (max-width: 1000px) {
  body:not(.fm-on) .sc__actions { flex-wrap: nowrap; width: calc(100% + 6px); margin: -3px; padding: 3px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
  .sc__actions::-webkit-scrollbar { display: none; }
  body:not(.fm-on) .sc__actions > .sc-btn { flex: none; white-space: nowrap; }
}
@media print { .sc-store, .sc__actions, .sc-tabs, .board-switch { display: none !important; } }

/* 집중 모드 (shared/focus-mode.js): 머리글·바닥글·보드 종류·저장 위치를 숨기고 화면 폭을 다 씀 */
body.fm-on .sc { max-width: none; padding-top: clamp(0.75rem, 2vw, 1.25rem); }
body.fm-on .sc__head { margin-bottom: 0.75rem; padding-right: 13rem; }
body.fm-on .sc__title { font-size: 1.25rem; }
@media (max-width: 640px) {
  body.fm-on .sc__head { padding-right: 0; padding-top: 2.5rem; }
  body.fm-on .sc__actions > .sc-btn:not(.fm-btn):not(#edit) { display: none; }
}

/* 불러오는 중 뼈대 (scrum/index.html): 스프린트 머리 + 네 칸 */
.sc-sk-head { display: grid; gap: 0.7rem; margin: 0.5rem 0 1.25rem; }
.sc-sk-head__bar { --h: 8px; margin-top: 0.3rem; border-radius: 999px; }

/* 편집 로그인한 브라우저(html.guess-editor)는 서버 답 전에도 편집 단추 자리를 비워 둠 (칸반과 같음, scrum.js가 받은 뒤 지움) */
html.guess-editor .sc__actions > #import[hidden], html.guess-editor .sc__actions > #history[hidden] { display: inline-flex; visibility: hidden; }
html.guess-editor[lang="ko"] .sc__actions > #edit { min-width: 6.7em; justify-content: center; }
