/* ===========================================================
   애니 콜라보 레이더 — 스타일
   콘셉트: 굿즈 발매 "출발안내판". 좌측 D-day 플레이트 + 우측 정보.
   색은 전부 토큰으로만 쓰고, 라이트/다크/시스템 3가지 상태를 모두 정의한다.
   =========================================================== */

/* ---------- 1. 토큰: 라이트(기본). 모든 색은 여기서 먼저 선언된다 ---------- */
:root {
  color-scheme: light dark;

  --ground: #eff1f6;
  --ground-tint: #e4e8f2;
  --surface: #ffffff;
  --surface-2: #e8ebf3;
  --surface-3: #dde2ee;
  --line: #d2d8e7;
  --line-strong: #b4bcd3;

  --text: #171c2b;
  --text-2: #4c556e;
  --text-3: #767f99;

  /* 긴급 전용 액센트: 굿즈 패키지의 "한정" 도장 빨강 */
  --stamp: #d81e45;
  --stamp-ink: #ffffff;
  --stamp-wash: #fdecef;

  /* 상태색(액센트와 별개의 의미색) */
  --live: #0b8a73;
  --live-wash: #e2f4f0;
  --soon: #a86a00;
  --soon-wash: #fbf0dc;
  --done: #6f7891;
  --done-wash: #e8eaf1;

  --focus: #2f5bd8;

  --shadow-row: 0 1px 0 var(--line);
  --shadow-pop: 0 12px 28px -14px rgba(23, 28, 43, 0.35);

  --font-display: 'Black Han Sans', 'IBM Plex Sans KR', 'Apple SD Gothic Neo',
    'Malgun Gothic', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic',
    system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --step-0: 0.875rem;
  --step-1: 1rem;
  --step-2: 1.1875rem;
  --step-3: 1.5rem;
  --micro: 0.6875rem;

  --radius: 6px;
  --gutter: 18px;
}

/* ---------- 2. 토큰: 시스템 다크(명시적 라이트 선택은 이기지 못하게) ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --ground: #0e1220;
    --ground-tint: #131828;
    --surface: #161b2d;
    --surface-2: #1e2438;
    --surface-3: #262d45;
    --line: #2a3150;
    --line-strong: #3b4467;

    --text: #eef1f8;
    --text-2: #aeb6ce;
    --text-3: #7d86a2;

    --stamp: #ff3b5c;
    --stamp-ink: #23000a;
    --stamp-wash: #3a1622;

    --live: #17c3a2;
    --live-wash: #10302d;
    --soon: #ffb020;
    --soon-wash: #33270f;
    --done: #7a839b;
    --done-wash: #212739;

    --focus: #7fa4ff;

    --shadow-row: 0 1px 0 var(--line);
    --shadow-pop: 0 14px 32px -16px rgba(0, 0, 0, 0.8);
  }
}

/* ---------- 3. 토큰: 명시적 다크 선택 ---------- */
:root[data-theme='dark'] {
  --ground: #0e1220;
  --ground-tint: #131828;
  --surface: #161b2d;
  --surface-2: #1e2438;
  --surface-3: #262d45;
  --line: #2a3150;
  --line-strong: #3b4467;

  --text: #eef1f8;
  --text-2: #aeb6ce;
  --text-3: #7d86a2;

  --stamp: #ff3b5c;
  --stamp-ink: #23000a;
  --stamp-wash: #3a1622;

  --live: #17c3a2;
  --live-wash: #10302d;
  --soon: #ffb020;
  --soon-wash: #33270f;
  --done: #7a839b;
  --done-wash: #212739;

  --focus: #7fa4ff;

  --shadow-row: 0 1px 0 var(--line);
  --shadow-pop: 0 14px 32px -16px rgba(0, 0, 0, 0.8);
}

/* ---------- 4. 기본 ---------- */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-1);
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

img {
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

a {
  color: var(--text);
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: currentColor;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 3px;
}

.u-mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.u-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- 5. 헤더 ---------- */
.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--ground);
  border-bottom: 1px solid var(--line);
}

.app-header__inner {
  max-width: 1000px;
  margin: 0 auto;
  padding-inline: var(--gutter);
  padding-block: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.brand-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 9px;
  min-width: 0;
}

.brand__mark {
  font-family: var(--font-display);
  font-size: var(--step-3);
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--text);
}

.brand__mark em {
  font-style: normal;
  color: var(--stamp);
}

.brand__sub {
  font-size: var(--micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
}

.today {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--step-0);
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

.theme-toggle {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 3px 9px;
  font-size: var(--micro);
  letter-spacing: 0.08em;
  color: var(--text-2);
  cursor: pointer;
}

.theme-toggle:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

/* 탭: 세그먼트 컨트롤 */
.tabs {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  flex: 1 1 auto;
  min-width: max-content;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 9px 13px 11px;
  font-size: var(--step-0);
  font-weight: 500;
  color: var(--text-3);
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}

.tab:hover {
  color: var(--text-2);
}

.tab[aria-selected='true'] {
  color: var(--text);
  border-bottom-color: var(--stamp);
  font-weight: 600;
}

.tab__count {
  font-family: var(--font-mono);
  font-size: var(--micro);
  padding: 1px 5px;
  border-radius: 99px;
  background: var(--surface-2);
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

.tab__count[data-alert='true'] {
  background: var(--stamp);
  color: var(--stamp-ink);
}

/* ---------- 6. 레이아웃 ---------- */
.wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding-inline: var(--gutter);
  padding-block: 18px 48px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 7px;
}

.section-head h2 {
  margin: 0;
  font-size: var(--step-0);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

.section-head p {
  margin: 0;
  font-size: var(--step-0);
  color: var(--text-3);
}

/* ---------- 7. 상황판 스트립 ---------- */
/* 셀 사이 1px 간격을 배경색으로 만들어, 몇 줄로 접혀도 구분선이 깔끔하게 남는다. */
.board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}

.board__cell {
  padding: 11px 14px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.board__label {
  font-size: var(--micro);
  letter-spacing: 0.1em;
  color: var(--text-3);
  white-space: nowrap;
}

.board__value {
  font-family: var(--font-display);
  font-size: 1.625rem;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.board__value small {
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 500;
  color: var(--text-3);
  margin-left: 3px;
}

.board__cell[data-tone='stamp'] .board__value {
  color: var(--stamp);
}

.board__cell[data-tone='live'] .board__value {
  color: var(--live);
}

.board__cell[data-tone='soon'] .board__value {
  color: var(--soon);
}

/* ---------- 8. 14일 타임라인 ---------- */
.timeline {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timeline__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.timeline__title {
  font-size: var(--micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

.timeline__legend {
  display: flex;
  gap: 12px;
  font-size: var(--micro);
  color: var(--text-3);
}

.timeline__legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  display: inline-block;
}

.dot[data-kind='start'] {
  background: var(--live);
}

.dot[data-kind='end'] {
  background: var(--stamp);
}

.timeline__track {
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  gap: 3px;
  overflow-x: auto;
}

.day {
  background: var(--surface-2);
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 5px 2px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  min-width: 0;
}

.day:hover {
  border-color: var(--line-strong);
}

.day[data-today='true'] {
  background: var(--surface-3);
  box-shadow: inset 0 -2px 0 var(--text-3);
}

.day[aria-pressed='true'] {
  border-color: var(--stamp);
  background: var(--stamp-wash);
}

.day[data-weekend='true'] .day__dow {
  color: var(--stamp);
}

.day__dow {
  font-size: var(--micro);
  color: var(--text-3);
  line-height: 1;
}

.day__num {
  font-family: var(--font-mono);
  font-size: var(--step-0);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--text);
}

.day__marks {
  display: flex;
  gap: 2px;
  min-height: 7px;
  align-items: center;
}

/* ---------- 9. 필터 ---------- */
.filters {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 10px;
}

.search:focus-within {
  border-color: var(--line-strong);
}

.search input {
  flex: 1;
  border: 0;
  background: none;
  padding: 10px 0;
  outline: none;
  min-width: 0;
}

.search input::placeholder {
  color: var(--text-3);
}

.search__icon {
  color: var(--text-3);
  font-size: var(--step-0);
  line-height: 1;
}

.search__clear {
  border: 0;
  background: none;
  color: var(--text-3);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.search__clear:hover {
  color: var(--text);
}

.chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.chips[data-wrap='true'] {
  flex-wrap: wrap;
  overflow: visible;
}

.chip {
  flex: 0 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 5px 11px;
  font-size: var(--step-0);
  color: var(--text-2);
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.chip:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.chip[aria-pressed='true'] {
  background: var(--text);
  border-color: var(--text);
  color: var(--ground);
  font-weight: 500;
}

.chip__n {
  font-family: var(--font-mono);
  font-size: var(--micro);
  opacity: 0.7;
  font-variant-numeric: tabular-nums;
}

.filters__row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.filters__left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.alert-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--step-0);
  font-weight: 500;
  color: var(--stamp);
}

.alert-inline::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--stamp);
  flex: 0 0 auto;
}

.sort {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--step-0);
  color: var(--text-3);
}

.sort select {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 5px 8px;
  cursor: pointer;
}

.active-filter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: var(--step-0);
  color: var(--text-2);
  background: var(--stamp-wash);
  border: 1px solid var(--stamp);
  border-radius: var(--radius);
  padding: 4px 8px;
}

.active-filter button {
  border: 0;
  background: none;
  color: var(--stamp);
  cursor: pointer;
  font-weight: 600;
  padding: 0 2px;
  line-height: 1;
}

/* ---------- 10. 발매 행 리스트 ---------- */
.list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.row {
  --row-accent: var(--done);
  --row-wash: var(--done-wash);
  border-bottom: 1px solid var(--line);
}

.row:last-child {
  border-bottom: 0;
}

.row[data-status='live'] {
  --row-accent: var(--live);
  --row-wash: var(--live-wash);
}

.row[data-status='soon'] {
  --row-accent: var(--soon);
  --row-wash: var(--soon-wash);
}

.row[data-urgent='true'] {
  --row-accent: var(--stamp);
  --row-wash: var(--stamp-wash);
}

.row__head {
  display: flex;
  align-items: stretch;
}

.row__main {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: stretch;
  min-width: 0;
  background: none;
  border: 0;
  text-align: left;
  padding: 0;
  cursor: pointer;
  color: inherit;
  font: inherit;
}

.row__main:hover {
  background: var(--ground-tint);
}

.row__save {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  padding-inline: 10px;
  border-left: 1px solid var(--line);
}

/* 좌측 D-day 플레이트 */
.plate {
  border-left: 4px solid var(--row-accent);
  background: var(--row-wash);
  padding: 11px 8px 11px 10px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  justify-content: center;
  align-items: flex-start;
}

.plate__label {
  font-size: var(--micro);
  color: var(--text-2);
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.plate__dday {
  font-family: var(--font-display);
  font-size: 1.375rem;
  line-height: 1.05;
  color: var(--row-accent);
  font-variant-numeric: tabular-nums;
}

.plate__range {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--text-3);
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}

/* 본문 */
.row__body {
  padding: 11px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.row__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pill {
  font-size: var(--micro);
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 3px;
  border: 1px solid var(--line);
  color: var(--text-2);
  background: var(--surface-2);
  white-space: nowrap;
}

.pill[data-role='status'] {
  border-color: var(--row-accent);
  color: var(--row-accent);
  background: var(--row-wash);
  font-weight: 600;
}

.pill[data-role='new'] {
  background: var(--stamp);
  border-color: var(--stamp);
  color: var(--stamp-ink);
  font-weight: 700;
}

.pill[data-role='mine'] {
  border-style: dashed;
  color: var(--text-3);
}

.row__pair {
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap;
  font-weight: 600;
  font-size: var(--step-2);
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.3;
}

.row__pair span {
  color: var(--text-3);
  font-weight: 400;
  font-size: var(--step-1);
}

/* 요약이 길어도 행 높이가 들쭉날쭉해지지 않게 두 줄로 자른다. */
.row__title {
  font-size: var(--step-0);
  color: var(--text-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.row__where {
  font-size: var(--step-0);
  color: var(--text-3);
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.row__where b {
  font-weight: 500;
  color: var(--text-2);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* 우측 액션 */
.row__aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px 10px;
  color: var(--text-3);
}

.row__caret {
  font-size: var(--step-0);
  transition: transform 0.18s ease;
}

.row__main[aria-expanded='true'] .row__caret {
  transform: rotate(180deg);
}

.save-btn {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--text-3);
  font-size: 0.9rem;
  line-height: 1;
  padding: 0;
}

.save-btn:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.save-btn[aria-pressed='true'] {
  color: var(--stamp);
  border-color: var(--stamp);
  background: var(--stamp-wash);
}

/* 펼침 상세 */
.row__detail {
  padding: 0 12px 14px 106px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px 18px;
  border-top: 1px dashed var(--line);
  padding-top: 12px;
  background: var(--ground-tint);
}

.detail-block {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.detail-block dt {
  font-size: var(--micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

.detail-block dd {
  margin: 0;
  font-size: var(--step-0);
  color: var(--text-2);
}

.detail-block ul {
  margin: 0;
  padding-left: 16px;
  font-size: var(--step-0);
  color: var(--text-2);
}

.detail-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px 11px;
  font-size: var(--step-0);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.btn[data-variant='primary'] {
  background: var(--text);
  border-color: var(--text);
  color: var(--ground);
  font-weight: 500;
}

.btn[data-variant='primary']:hover {
  background: var(--text-2);
  border-color: var(--text-2);
}

.btn[data-variant='danger'] {
  color: var(--stamp);
  border-color: var(--stamp);
  background: var(--stamp-wash);
}

/* ---------- 11. 빈 상태 ---------- */
.empty {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 30px 20px;
  text-align: center;
  color: var(--text-3);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.empty strong {
  color: var(--text-2);
  font-weight: 600;
  font-size: var(--step-1);
}

/* ---------- 12. 구독 관리 ---------- */
.sub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.card__head h3 {
  margin: 0;
  font-size: var(--step-1);
  font-weight: 600;
}

.card__head p {
  margin: 0;
  font-size: var(--micro);
  color: var(--text-3);
}

.keyword-form {
  display: flex;
  gap: 6px;
}

.keyword-form input {
  flex: 1;
  min-width: 0;
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 7px 9px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.field > label {
  font-size: var(--micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.field input,
.field select,
.field textarea {
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 7px 9px;
  width: 100%;
}

.field textarea {
  resize: vertical;
  min-height: 60px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.form-note {
  font-size: var(--micro);
  color: var(--text-3);
}

.form-note[data-state='ok'] {
  color: var(--live);
}

.form-note[data-state='error'] {
  color: var(--stamp);
}

.form-note code {
  font-family: var(--font-mono);
  font-size: 0.95em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0 4px;
}

.mine-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  border-top: 1px dashed var(--line);
  padding-top: 10px;
}

.mine-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: var(--step-0);
  color: var(--text-2);
}

.mine-list b {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

#add-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ---------- 13. 안내 배너 / 푸터 ---------- */
.notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-left: 4px solid var(--soon);
  border-radius: var(--radius);
  background: var(--soon-wash);
  padding: 10px 12px;
  font-size: var(--step-0);
  color: var(--text-2);
}

.notice strong {
  color: var(--text);
  font-weight: 600;
}

.notice button {
  margin-left: auto;
  border: 0;
  background: none;
  color: var(--text-3);
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  flex: 0 0 auto;
}

.notice button:hover {
  color: var(--text);
}

.sync-note {
  font-size: var(--micro);
  color: var(--text-3);
  font-family: var(--font-mono);
}

.footer {
  max-width: 1000px;
  margin: 0 auto;
  padding-inline: var(--gutter);
  padding-block: 0 34px;
  font-size: var(--micro);
  color: var(--text-3);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ---------- 14. 반응형 ---------- */
@media (max-width: 640px) {
  :root {
    --gutter: 14px;
  }

  .brand__sub {
    display: none;
  }

  .row__main {
    grid-template-columns: 74px minmax(0, 1fr) auto;
  }

  .plate {
    padding: 10px 6px 10px 8px;
  }

  .plate__dday {
    font-size: 1.1875rem;
  }

  .plate__range {
    display: none;
  }

  /* 좁은 화면에서는 우측 여백을 줄여 본문 폭을 확보한다. */
  .row__aside {
    padding: 8px 3px;
  }

  .row__save {
    padding-inline: 7px;
  }

  .row__detail {
    padding-left: 14px;
  }

  .row__pair {
    font-size: var(--step-1);
  }

  .board__value {
    font-size: 1.375rem;
  }

  .timeline__track {
    grid-template-columns: repeat(14, 34px);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}

/* ---------- 15. 발표 소식 (일정 미확정) ---------- */
.news-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.news-list > .form-note {
  margin: 0;
  padding: 18px 14px;
}

.news {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 0 12px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
}

.news:last-child {
  border-bottom: 0;
}

.news:hover {
  background: var(--ground-tint);
}

.news__date {
  font-size: var(--step-0);
  color: var(--text-3);
  padding-top: 1px;
  font-variant-numeric: tabular-nums;
}

.news__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.news__meta {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.news__title {
  font-size: var(--step-1);
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
  text-decoration: none;
}

.news__title:hover {
  text-decoration: underline;
  text-decoration-color: var(--stamp);
  text-underline-offset: 3px;
}

.news__title span {
  color: var(--text-3);
  font-size: var(--step-0);
}

.news__by {
  margin: 0;
  font-size: var(--micro);
  color: var(--text-3);
}

@media (max-width: 640px) {
  .news {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 0 9px;
    padding: 10px;
  }

  .news__date {
    font-size: var(--micro);
  }

  .news__title {
    font-size: var(--step-0);
  }
}
