/* ===========================================================
   애니 콜라보 레이더 · 작은 취향 수첩
   기존 HTML / JavaScript에 그대로 사용하는 전체 교체용 스타일시트.
   크림 종이, 살구색 탭, 둥근 일정 카드. 외부 자산 추가 없음.
   --stamp 계열은 3일 내 마감 신호에만 사용한다.
   =========================================================== */

/* ---------- 1. 토큰: 라이트(기본) ---------- */
:root {
  color-scheme: light;
  --ground: #faf7f2;
  --ground-tint: #f3ede4;
  --surface: #fffefa;
  --surface-2: #f5f0e8;
  --surface-3: #eae1d5;
  --line: #e5dccf;
  --line-strong: #b7a38d;
  --text: #392f28;
  --text-2: #685b50;
  --text-3: #75675b;
  --stamp: #b9424c;
  --stamp-ink: #ffffff;
  --stamp-wash: #fff0f0;
  --live: #337053;
  --live-wash: #edf5e9;
  --soon: #8a641e;
  --soon-wash: #faf1d9;
  --done: #736a63;
  --done-wash: #f1ede8;
  --accent: #f1bc8f;
  --accent-ink: #563b28;
  --accent-wash: #fbead9;
  --accent-line: #d6a77e;
  --accent-strong: #986044;
  --danger: #9a4938;
  --danger-wash: #f9e9df;
  --weekend: #946142;
  --calendar-end: #956c53;
  --focus: #3a775d;
  --mascot-cheek: #dc8e76;
  --shadow-row: 0 3px 0 #eee6da;
  --shadow-pop: 0 8px 22px -14px #88705b55;
  --font-display: '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.9375rem;
  --step-1: 1rem;
  --step-2: 1.1875rem;
  --step-3: 1.75rem;
  --micro: 0.8125rem;
  --radius: 22px;
  --gutter: 24px;
}

/* ---------- 2. 토큰: 시스템 다크 ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --ground: #25231f;
    --ground-tint: #302d27;
    --surface: #302c26;
    --surface-2: #39342d;
    --surface-3: #494035;
    --line: #4b4338;
    --line-strong: #81705d;
    --text: #f5ecdf;
    --text-2: #d4c5b2;
    --text-3: #bcae9b;
    --stamp: #f49a9e;
    --stamp-ink: #382223;
    --stamp-wash: #4c2e30;
    --live: #a8d4ac;
    --live-wash: #2d3c2e;
    --soon: #e7cb85;
    --soon-wash: #403825;
    --done: #b6aea3;
    --done-wash: #37332e;
    --accent: #eac09a;
    --accent-ink: #3d2d22;
    --accent-wash: #493b2d;
    --accent-line: #967454;
    --accent-strong: #e7b08c;
    --danger: #edb197;
    --danger-wash: #46312a;
    --weekend: #d6ad89;
    --calendar-end: #cba387;
    --focus: #aed8b7;
    --mascot-cheek: #ba755c;
    --shadow-row: 0 3px 0 #1d1b18;
    --shadow-pop: 0 8px 24px -12px #00000066;
  }
}

/* ---------- 3. 토큰: 명시적 다크 선택 ---------- */
:root[data-theme='dark'] {
  color-scheme: dark;
  --ground: #25231f;
  --ground-tint: #302d27;
  --surface: #302c26;
  --surface-2: #39342d;
  --surface-3: #494035;
  --line: #4b4338;
  --line-strong: #81705d;
  --text: #f5ecdf;
  --text-2: #d4c5b2;
  --text-3: #bcae9b;
  --stamp: #f49a9e;
  --stamp-ink: #382223;
  --stamp-wash: #4c2e30;
  --live: #a8d4ac;
  --live-wash: #2d3c2e;
  --soon: #e7cb85;
  --soon-wash: #403825;
  --done: #b6aea3;
  --done-wash: #37332e;
  --accent: #eac09a;
  --accent-ink: #3d2d22;
  --accent-wash: #493b2d;
  --accent-line: #967454;
  --accent-strong: #e7b08c;
  --danger: #edb197;
  --danger-wash: #46312a;
  --weekend: #d6ad89;
  --calendar-end: #cba387;
  --focus: #aed8b7;
  --mascot-cheek: #ba755c;
  --shadow-row: 0 3px 0 #1d1b18;
  --shadow-pop: 0 8px 24px -12px #00000066;
}

/* ---------- 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.65;
  -webkit-text-size-adjust: 100%;
  overflow-wrap: anywhere;
}

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: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 8px;
}

.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: 1120px;
  margin: 0 auto;
  padding-inline: var(--gutter);
  padding-block: 25px 15px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  position: relative;
  padding-left: 60px;
  min-height: 46px;
}

.brand__mark {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.3vw, 1.75rem);
  letter-spacing: -0.065em;
  line-height: 1.35;
  color: var(--text);
  font-weight: 700;
}

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

.brand__sub {
  font-size: 0.6875rem;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: normal;
  max-width: 110px;
  line-height: 1.55;
}

.today {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

.theme-toggle {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 8px 13px;
  font-size: 0.75rem;
  letter-spacing: 0;
  color: var(--text-2);
  cursor: pointer;
  min-height: 40px;
}

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

/*
 * 탭 줄. 정적 목록 링크는 tablist 안이 아니라 형제로 두고 같은 높이로 맞춘다
 * (tablist 안에 탭이 아닌 요소를 넣으면 보조기기가 잘못 읽는다).
 */
.tabs-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
}

.tabs-row .tabs {
  flex: 1 1 auto;
  min-width: 0;
}

/* 탭과 같은 높이·모양이지만 강조색으로 '여기서 나간다'를 표시한다. */
.tab-link {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  min-height: 48px;
  border: 1px solid var(--accent-line);
  border-radius: 16px;
  background: var(--accent-wash);
  /*
   * accent-ink 는 accent(밝은 살구) 위에 올릴 글자색이다. accent-wash 위에
   * 쓰면 다크에서 둘 다 어두워 대비가 1.22:1 로 떨어진다.
   * text 는 라이트 11.09:1 / 다크 9.22:1 로 양쪽에서 통과한다.
   */
  color: var(--text);
  font-size: var(--step-0);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.tab-link::after {
  content: '→';
  font-weight: 600;
}

.tab-link:hover {
  /* 배경이 accent 로 밝아지므로 이때는 accent-ink 가 맞다(라이트 6.01 / 다크 7.83). */
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent-strong);
  box-shadow: 0 2px 0 var(--accent-line);
}

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

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

.tab {
  flex: 1 1 0;
  min-width: 0;
  background: none;
  border: 1px solid transparent;
  border-bottom: 1px solid transparent;
  padding: 10px 16px;
  font-size: var(--step-0);
  font-weight: 600;
  color: var(--text-3);
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  border-radius: 16px;
  min-height: 48px;
}

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

.tab[aria-selected='true'] {
  color: var(--accent-ink);
  border-bottom-color: var(--accent-line);
  font-weight: 700;
  background: var(--accent);
  border-color: var(--accent-line);
  box-shadow: 0 2px 0 var(--accent-line);
}

.tab__count {
  font-family: var(--font-body);
  font-size: 0.75rem;
  padding: 0 6px;
  border-radius: 99px;
  background: var(--surface);
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

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

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

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

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 0;
  padding-bottom: 0;
}

.section-head h2 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  color: var(--text);
}

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

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

.board__cell {
  padding: 17px 20px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
}

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

.board__value {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.055em;
}

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

.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: 18px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.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.02em;
  text-transform: uppercase;
  color: var(--text-2);
}

.timeline__legend {
  display: flex;
  gap: 14px;
  font-size: 0.75rem;
  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(--calendar-end);
}

.timeline__track {
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  gap: 5px;
  overflow-x: auto;
  padding: 3px 3px 7px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) var(--surface-2);
  min-width: 0;
}

.day {
  background: var(--surface-2);
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 10px 3px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  min-width: 0;
  min-height: 72px;
}

.day:hover {
  border-color: var(--accent-line);
  background: var(--accent-wash);
}

.day[data-today='true'] {
  background: var(--accent-wash);
  box-shadow: inset 0 -3px 0 var(--accent-line);
  border-color: var(--accent-line);
}

.day[aria-pressed='true'] {
  border-color: var(--accent-ink);
  background: var(--accent);
  box-shadow: inset 0 -3px 0 var(--accent-ink);
}

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

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

.day__num {
  font-family: var(--font-body);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--text);
  font-weight: 600;
}

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

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

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0 15px;
  border-color: var(--line-strong);
  box-shadow: var(--shadow-row);
}

.search:focus-within {
  border-color: var(--focus);
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.search input {
  flex: 1;
  border: 0;
  background: none;
  padding: 14px 0;
  outline: none;
  min-width: 0;
  font-size: 1rem;
  min-height: 54px;
}

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

.search__icon {
  color: var(--accent-strong);
  font-size: 1.5rem;
  line-height: 1;
}

.search__clear {
  border: 0;
  background: none;
  color: var(--text-3);
  cursor: pointer;
  padding: 10px;
  line-height: 1;
  min-height: 44px;
  min-width: 44px;
  border-radius: 50%;
}

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

.chips {
  display: flex;
  gap: 7px;
  overflow-x: visible;
  padding-bottom: 2px;
  scrollbar-width: thin;
  flex-wrap: wrap;
  padding: 3px 0;
  min-width: 0;
}

.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: 6px 13px;
  font-size: 0.875rem;
  color: var(--text-2);
  cursor: pointer;
  white-space: normal;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  max-width: 100%;
  text-align: left;
}

.chip:hover {
  border-color: var(--accent-line);
  color: var(--text);
  background: var(--accent-wash);
}

.chip[aria-pressed='true'] {
  background: var(--accent-wash);
  border-color: var(--accent-line);
  color: var(--text);
  font-weight: 600;
}

.chip__n {
  font-family: var(--font-body);
  font-size: 0.75rem;
  opacity: 1;
  font-variant-numeric: tabular-nums;
}

.filters__row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: space-between;
  padding-top: 7px;
}

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

.alert-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--stamp);
  line-height: 1.5;
}

.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: 0.8125rem;
  color: var(--text-3);
}

.sort select {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px 12px;
  cursor: pointer;
  min-height: 40px;
}

.active-filter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: var(--step-0);
  color: var(--text-2);
  background: var(--accent-wash);
  border: 1px solid var(--accent-line);
  border-radius: 12px;
  padding: 6px 12px;
  align-self: flex-start;
  flex-wrap: wrap;
}

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

/* ---------- 10. 발매 행 리스트 ---------- */
.list {
  display: flex;
  flex-direction: column;
  border: 0;
  border-radius: 0;
  background: none;
  overflow: visible;
  gap: 14px;
}

.row {
  --row-accent: var(--done);
  --row-wash: var(--done-wash);
  border-bottom: 1px solid var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-row);
  min-width: 0;
}

.row:last-child {
  border-bottom: 1px solid var(--line);
}

.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;
  padding: 12px;
  gap: 6px;
}

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

.row__main:hover {
  background: var(--surface-2);
}

.row__save {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  padding-inline: 0;
  border-left: 0;
}

/* 좌측 D-day 플레이트 */
.plate {
  border-left: 0;
  background: var(--row-wash);
  padding: 14px 7px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 17px;
  text-align: center;
  position: relative;
}

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

.plate__dday {
  font-family: var(--font-display);
  font-size: 1.875rem;
  line-height: 1.2;
  color: var(--row-accent);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: -0.06em;
}

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

/* 본문 */
.row__body {
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  justify-content: center;
}

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

.pill {
  font-size: 0.6875rem;
  letter-spacing: 0;
  padding: 1px 6px;
  border-radius: 7px;
  border: 1px solid var(--line);
  color: var(--text-2);
  background: var(--surface-2);
  white-space: nowrap;
  line-height: 1.7;
}

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

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

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

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

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

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

.row__where {
  font-size: 0.8125rem;
  color: var(--text-3);
  display: flex;
  gap: 5px;
  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: 0;
  color: var(--text-3);
}

.row__caret {
  font-size: 1rem;
  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-2);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--text-3);
  font-size: 1.25rem;
  line-height: 1;
  padding: 0;
}

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

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

/* 펼침 상세 */
.row__detail {
  padding: 20px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 18px 24px;
  border-top: 1px dashed var(--line);
  padding-top: 20px;
  background: var(--surface-2);
  margin: 0;
  border-radius: 0 0 var(--radius) var(--radius);
}

.detail-block {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  overflow-wrap: anywhere;
}

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

.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: 10px;
  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: 12px;
  padding: 8px 13px;
  font-size: 0.875rem;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  min-height: 42px;
  justify-content: center;
  text-align: center;
}

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

.btn[data-variant='primary'] {
  background: var(--accent);
  border-color: var(--accent-line);
  color: var(--accent-ink);
  font-weight: 600;
}

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

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

/* ---------- 11. 빈 상태 ---------- */
.empty {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 42px 22px;
  text-align: center;
  color: var(--text-2);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  background: var(--surface);
}

.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(min(100%, 290px), 1fr));
  gap: 18px;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

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

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

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

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

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

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

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

.field input,
.field select,
.field textarea {
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  width: 100%;
  /* 한 줄 입력칸 기준. 여러 줄인 textarea 는 아래에서 따로 키운다. */
  min-height: 46px;
  min-width: 0;
}

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

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 16px;
}

.form-note {
  font-size: 0.8125rem;
  color: var(--text-3);
  line-height: 1.75;
  margin: 0;
}

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

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

.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;
}

#request-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: 1px solid var(--line);
  border-radius: 18px;
  background: var(--soon-wash);
  padding: 14px 17px;
  font-size: 0.875rem;
  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;
  min-width: 36px;
  min-height: 36px;
  border-radius: 50%;
}

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

.sync-note {
  font-size: 0.75rem;
  color: var(--text-3);
  font-family: var(--font-body);
}

.footer {
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: var(--gutter);
  padding-block: 22px 38px;
  font-size: 0.75rem;
  color: var(--text-3);
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px dashed var(--line);
}

/* ---------- 14. 반응형 ---------- */
@media (max-width: 860px) {
  .brand__sub { display: none; }
  .board__cell { padding: 16px; }
  .board__label { font-size: 0.75rem; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .app-header__inner { padding-block: 16px 12px; gap: 14px; }
  .brand-row { gap: 10px; }
  .brand { padding-left: 49px; min-height: 40px; }
  .brand__mark { font-size: 1.375rem; }
  .brand__sub { display: none; }
  .today { width: 100%; justify-content: space-between; gap: 8px; }
  .theme-toggle { min-height: 36px; padding: 6px 11px; }
  .tabs-row { flex-direction: column; gap: 6px; }
  .tabs { gap: 5px; }
  .tab-link { width: 100%; min-height: 44px; padding: 9px 14px; font-size: 0.8125rem; }
  .tab { font-size: 0.8125rem; padding: 9px 4px; border-radius: 13px; gap: 4px; min-height: 46px; }
  .tab__count { font-size: 0.6875rem; padding-inline: 4px; }
  .wrap { padding-block: 20px 32px; gap: 24px; }
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .board__cell { padding: 12px 15px; border-radius: 18px; gap: 3px; }
  .board__label { font-size: 0.75rem; }
  .board__value { font-size: 1.75rem; }
  .timeline { padding: 14px 12px 10px; gap: 10px; }
  .timeline__title { font-size: 0.75rem; line-height: 1.7; }
  .timeline__head { gap: 6px; }
  .timeline__track { grid-template-columns: repeat(14, 42px); }
  .day { min-height: 68px; }
  .search { padding-inline: 10px; gap: 5px; }
  .search input { font-size: 1rem; }
  .search__clear { min-width: 36px; padding: 6px; }
  .chips { gap: 6px; }
  .chip { padding: 6px 11px; min-height: 40px; font-size: 0.8125rem; }
  .filters__row { align-items: flex-end; }
  .filters__left { flex: 1; min-width: 0; gap: 8px; }
  .alert-inline { flex-basis: 100%; font-size: 0.75rem; }
  .sort { flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
  .sort select { max-width: 130px; }
  .section-head h2 { font-size: 1.0625rem; }
  .section-head p { font-size: 0.75rem; }
  .row { border-radius: 19px; }
  .row__head { padding: 10px; gap: 4px; position: relative; }
  .row__main { grid-template-columns: 65px minmax(0, 1fr) 12px; gap: 10px; }
  .plate { padding: 13px 3px; border-radius: 13px; align-self: start; min-height: 88px; }
  .plate__label { font-size: 0.6875rem; }
  .plate__dday { font-size: 1.375rem; }
  .plate__range { display: none; }
  .row__body { padding: 2px 0 7px; gap: 7px; }
  .row__pair { font-size: 1rem; line-height: 1.6; gap: 2px 5px; }
  .row__pair span { font-size: 0.875rem; }
  .row__title { font-size: 0.8125rem; }
  .row__where { font-size: 0.75rem; }
  .row__aside { padding: 0; }
  .row__save { padding-inline: 0; }
  .save-btn { width: 42px; height: 42px; }
  .row__detail { padding: 18px 16px; padding-left: 16px; gap: 16px; }
  .pill { font-size: 0.6875rem; padding: 1px 5px; }
  .card { padding: 18px; }
  .sub-grid { gap: 14px; }
  .detail-actions .btn { flex: 1 1 auto; }
  .footer { font-size: 0.75rem; }
}

@media (max-width: 360px) {
  :root { --gutter: 12px; }
  .tab { font-size: 0.75rem; }
  .tab__count { font-size: 0.625rem; }
  .brand__mark { font-size: 1.25rem; }
  .row__main { grid-template-columns: 60px minmax(0, 1fr) 10px; gap: 8px; }
}

@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: 60px minmax(0, 1fr);
  gap: 0 18px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

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

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

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

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

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

.news__title {
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.65;
  color: var(--text);
  text-decoration: none;
  overflow-wrap: anywhere;
}

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

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

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

@media (max-width: 640px) {
  .news {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 0 12px;
    padding: 17px 14px;
  }

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

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

/* ---------- 16. 작은 표정과 선택 피드백 (기존 DOM 그대로) ---------- */
/* 장식은 빈 가상 요소로만 그려 스크린리더의 텍스트에 섞이지 않는다. */
.brand::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 43px;
  border: 1.5px solid var(--accent-ink);
  border-radius: 17px 18px 15px 17px;
  background:
    radial-gradient(ellipse 2px 3px at 15px 18px, var(--accent-ink) 95%, transparent),
    radial-gradient(ellipse 2px 3px at 29px 18px, var(--accent-ink) 95%, transparent),
    radial-gradient(ellipse 4px 2px at 9px 26px, var(--mascot-cheek) 95%, transparent),
    radial-gradient(ellipse 4px 2px at 35px 26px, var(--mascot-cheek) 95%, transparent),
    var(--accent);
  box-shadow: 2px 3px 0 var(--surface-3);
  transform: rotate(-6deg);
  pointer-events: none;
}
.brand::after {
  content: '';
  position: absolute;
  left: 19px;
  top: 25px;
  width: 8px;
  height: 5px;
  border: 1.5px solid var(--accent-ink);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  transform: rotate(-6deg);
  pointer-events: none;
}
.board__cell[data-tone='stamp'] { background: var(--stamp-wash); }
.board__cell[data-tone='live'] { background: var(--live-wash); }
.board__cell[data-tone='soon'] { background: var(--soon-wash); }
/* JavaScript가 새 소식에도 stamp tone을 주므로 이 셀은 브랜드색으로 분리한다. */
.board__cell:last-child { background: var(--accent-wash); }
.board__cell:last-child .board__value { color: var(--accent-strong); }
.board__cell:nth-child(2) { background: var(--surface-2); }
.board__cell[data-tone='stamp']:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 18px;
  bottom: 24px;
  width: 9px;
  height: 9px;
  background: var(--stamp);
  border-radius: 50%;
  box-shadow: 0 0 0 5px var(--surface);
}
#chips-status .chip[aria-pressed='true'] {
  background: var(--text);
  color: var(--surface);
  border-color: var(--text);
}
.day[aria-pressed='true'] .day__num,
.day[aria-pressed='true'] .day__dow { color: var(--accent-ink); }
.row[data-urgent='true'] .plate { border-color: var(--stamp); }
.row:focus-within { border-color: var(--line-strong); }
.row__main[aria-expanded='true'] .row__pair { color: var(--accent-strong); }
.row__pair, .row__title, .row__where, .news__title { word-break: normal; overflow-wrap: anywhere; }
.row__detail a { text-decoration-thickness: 1px; }
.news__title:focus-visible { text-decoration: underline; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, .btn { touch-action: manipulation; }
button:disabled { cursor: not-allowed; opacity: 0.55; }
::selection { background: var(--accent); color: var(--accent-ink); }
html { scroll-padding-top: 180px; }
button, .btn, .row { transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease; }
@media (hover: hover) {
  .row:hover { border-color: var(--line-strong); }
}
@media (min-width: 641px) {
  .filters { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; }
  .search { grid-column: 1 / -1; }
  #chips-status { grid-column: 1; grid-row: 2; }
  #chips-region { grid-column: 2; grid-row: 2; justify-content: flex-end; }
  #chips-category { grid-column: 1 / -1; grid-row: 3; }
  .filters__row, .active-filter { grid-column: 1 / -1; }
  .board__cell { padding-block: 13px; }
  .board__value { font-size: 1.75rem; }
  .timeline { padding-block: 14px 10px; gap: 10px; }
  .day { min-height: 64px; padding-block: 8px 6px; gap: 7px; }
}
@media (max-width: 640px) {
  .brand::before { width: 36px; height: 37px; background-size: 38px 38px; }
  .brand::after { left: 16px; top: 25px; width: 7px; }
}
@media (forced-colors: active) {
  .chip[aria-pressed='true'], .tab[aria-selected='true'], .day[aria-pressed='true'],
  .save-btn[aria-pressed='true'] { outline: 2px solid Highlight; }
}

/* ---------- 17. 첫 방문 가이드 ---------- */
/* 모달로 덮지 않는다. 첫 화면에서 콘텐츠를 가리면 그냥 닫고 나가기 때문이다. */
.guide {
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  background: var(--accent-wash);
  padding: 26px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.guide__title {
  margin: 0;
  font-size: clamp(1.25rem, 2.4vw, 1.625rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.4;
  color: var(--text);
}

.guide__title em {
  font-style: normal;
  color: var(--accent-strong);
}

.guide__lede {
  margin: 0;
  font-size: var(--step-1);
  line-height: 1.75;
  color: var(--text-2);
  max-width: 68ch;
}

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

.guide__lede code {
  font-family: var(--font-mono);
  font-size: 0.95em;
  background: var(--surface);
  border: 1px solid var(--accent-line);
  border-radius: 6px;
  padding: 1px 5px;
  color: var(--stamp);
}

/* 번호는 직접 그린다 — 기본 마커는 색과 굵기를 맞출 수 없다. */
.guide__steps {
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px 26px;
  counter-reset: guide;
}

.guide__steps li {
  counter-increment: guide;
  position: relative;
  padding-left: 34px;
  font-size: var(--step-0);
  line-height: 1.7;
  color: var(--text-2);
}

.guide__steps li::before {
  content: counter(guide);
  position: absolute;
  left: 0;
  top: 1px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  border: 1px solid var(--accent-line);
  color: var(--accent-ink);
  font-size: 0.8125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.guide__steps b {
  color: var(--text);
  font-weight: 600;
}

/* 4단계가 폭에 따라 3+1 로 갈라지지 않게 2열로 고정한다. */
@media (min-width: 720px) {
  .guide__steps {
    grid-template-columns: 1fr 1fr;
  }
}

.guide__foot {
  margin: 0;
  font-size: var(--micro);
  color: var(--text-3);
  border-top: 1px dashed var(--accent-line);
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.guide__foot .btn {
  flex: 0 0 auto;
  min-width: 128px;
}

@media (max-width: 640px) {
  .guide {
    padding: 20px 17px 18px;
    gap: 12px;
  }
  .guide__foot .btn {
    width: 100%;
  }
  .guide__steps {
    gap: 10px;
  }
  .guide__foot {
    padding-top: 10px;
  }
}

/* ---------- 18. 정적 문서 페이지 (/collab, /anime, /brand, /browse) ---------- */
/* 검색으로 들어오는 페이지들. 앱과 같은 토큰을 쓰되 읽기용 레이아웃이다. */
.doc {
  gap: 22px;
}

.doc a {
  color: var(--accent-strong);
  text-decoration-color: var(--accent-line);
}

/* 헤더 브랜드는 링크지만 밑줄을 그리지 않는다. */
a.brand {
  text-decoration: none;
  color: inherit;
}

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

.crumbs {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  font-size: var(--micro);
  color: var(--text-3);
}

.crumbs i {
  color: var(--line-strong);
  font-style: normal;
}

.crumbs [aria-current='page'] {
  color: var(--text-2);
}

.doc-main {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 28px 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.doc-main h1 {
  margin: 0;
  font-size: clamp(1.5rem, 3.4vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.32;
  color: var(--text);
}

.doc-main h1 span {
  color: var(--text-3);
  font-weight: 400;
}

.doc-main h2 {
  margin: 6px 0 0;
  font-size: var(--step-2);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.doc-lede {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: var(--step-1);
  color: var(--text-2);
}

.doc-lede b {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.doc-body {
  margin: 0;
  font-size: var(--step-1);
  line-height: 1.8;
  color: var(--text-2);
  max-width: 70ch;
}

.doc-facts {
  margin: 6px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 14px 24px;
  border-top: 1px dashed var(--line);
  padding-top: 18px;
}

.doc-facts dt {
  font-size: var(--micro);
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 600;
}

.doc-facts dd {
  margin: 4px 0 0;
  font-size: var(--step-0);
  color: var(--text-2);
  overflow-wrap: anywhere;
}

.doc-list {
  margin: 0;
  padding-left: 20px;
  font-size: var(--step-0);
  line-height: 1.8;
  color: var(--text-2);
}

.doc-actions {
  margin: 8px 0 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 1px dashed var(--line);
  padding-top: 18px;
}

.doc-note {
  margin: 0;
  font-size: var(--micro);
  line-height: 1.7;
  color: var(--text-3);
}

.doc-rel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.doc-rel h2 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.5;
}

.doc-count {
  margin-left: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.doc-cards {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 12px;
}

.doc-card {
  min-width: 0;
}

.doc-card__link {
  display: flex;
  flex-direction: column;
  gap: 5px;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-row);
  padding: 15px 17px;
  text-decoration: none;
  color: inherit;
}

.doc-card__link:hover {
  border-color: var(--accent-line);
  background: var(--accent-wash);
}

.doc-card__link .pill {
  align-self: flex-start;
}

.doc-card__link strong {
  font-size: var(--step-1);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.5;
  color: var(--text);
}

.doc-card__when {
  font-size: 0.8125rem;
  color: var(--text-2);
}

.doc-card__where {
  font-size: 0.8125rem;
  color: var(--text-3);
}

.doc-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 8px 20px;
}

.doc-links li {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-size: var(--step-0);
  border-bottom: 1px dashed var(--line);
  padding-bottom: 7px;
}

.doc-newslist {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.doc-news {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 0 16px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
}

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

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

.doc-news__date {
  font-size: 0.8125rem;
  color: var(--text-3);
  padding-top: 2px;
}

.doc-news__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  font-size: var(--step-0);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.doc-news__by {
  font-size: 0.75rem;
  color: var(--text-3);
}

@media (max-width: 640px) {
  .doc-main {
    padding: 20px 17px 18px;
    gap: 12px;
  }
  .doc-facts {
    gap: 12px 16px;
    padding-top: 14px;
  }
  .doc-actions {
    padding-top: 14px;
  }
  .doc-actions .btn {
    flex: 1 1 auto;
  }
  .doc-news {
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 0 12px;
    padding: 13px 14px;
  }
}
