:root {
  --bg: #eef2f6;
  --card: #ffffff;
  --card-2: #f8fafc;
  --tag-bg: #f1f5f9;
  --text: #0f172a;
  --muted: #64748b;
  --line: #dde4ee;
  --accent: #4f46e5;
  --accent-text: #4338ca;
  --accent-soft: #edeaff;
  --today: #059669;
  --today-soft: #dcfce7;
  --now: #d97706;
  --now-bright: #f59e0b;
  --now-bg: #fffbeb;
  /* Дистант — зелёный, как в 1-м варианте */
  --remote: #0d9488;
  --remote-soft: #e0f5f2;
  --remote-bg: #f3fbfa;
  --warn-bg: #fffbeb;
  --warn-border: #fcd34d;
  --warn-text: #92400e;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .04);
}

html[data-theme="dark"] {
  --bg: #0c0f16;
  --card: #151a24;
  --card-2: #1b2230;
  --tag-bg: #232b3b;
  --text: #edf1f7;
  --muted: #94a0b8;
  --line: #273042;
  --accent: #5b54f0;
  --accent-text: #a5b4fc;
  --accent-soft: rgba(99, 102, 241, .16);
  --today: #34d399;
  --today-soft: rgba(52, 211, 153, .14);
  --now: #fbbf24;
  --now-bright: #f59e0b;
  --now-bg: rgba(245, 158, 11, .09);
  /* Дистант в тёмной теме — мягкий изумрудно-зелёный */
  --remote: #2dd4bf;
  --remote-soft: rgba(45, 212, 191, .14);
  --remote-bg: #112224;
  --warn-bg: #281f0a;
  --warn-border: #785513;
  --warn-text: #fde68a;
  --shadow: 0 2px 12px rgba(0, 0, 0, .32);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15.5px/1.48 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-text-size-adjust: 100%;
}

.app-shell {
  max-width: 90rem;
  margin: 0 auto;
  padding: 0 1.75rem 3rem;
}

.mobile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 0 .75rem;
  margin-bottom: .35rem;
}

@media (min-width: 58rem) {
  .mobile-top {
    position: sticky;
    top: 0;
    z-index: 30;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}

.brand-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: .8rem;
}

.brand-titles {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem .75rem;
}
h1 { margin: 0; font-size: 1.22rem; font-weight: 750; letter-spacing: -.015em; }
.subtitle { font-size: .82rem; color: var(--muted); }

.icon-btn {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  flex: none;
}
.icon-btn:hover { border-color: var(--accent); }

.layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
}

@media (min-width: 58rem) {
  .layout {
    grid-template-columns: 21.5rem minmax(0, 1fr);
    gap: 1.5rem;
  }
  .sidebar {
    position: sticky;
    top: 4rem;
  }
  .main-toolbar {
    position: sticky;
    top: 3.65rem;
    z-index: 20;
    padding: .35rem 0 .65rem;
    margin-bottom: .45rem;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: .95rem;
}

/* Геройская карточка текущей недели */
.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  color: #fff;
  background: linear-gradient(135deg, #0d9488 0%, #2563eb 100%);
  box-shadow: 0 10px 26px rgba(13, 148, 136, .22);
}
.hero-card.is-zn {
  background: linear-gradient(135deg, #4338ca 0%, #7c3aed 100%);
  box-shadow: 0 10px 26px rgba(67, 56, 202, .22);
}
.hero-card.is-holiday {
  background: linear-gradient(135deg, #047857 0%, #0d9488 100%);
}
html[data-theme="dark"] .hero-card {
  background: linear-gradient(135deg, #0f5450 0%, #1d3c7a 100%);
  border: 1px solid rgba(45, 212, 191, .24);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}
html[data-theme="dark"] .hero-card.is-zn {
  background: linear-gradient(135deg, #2d2675 0%, #4c2387 100%);
  border: 1px solid rgba(165, 180, 252, .22);
}

.hero-top {
  display: flex;
  flex-direction: column;
}
.hero-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  opacity: .88;
  font-weight: 700;
}
.hero-iso {
  padding: .12rem .48rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  font-size: .68rem;
  white-space: nowrap;
}
.hero-main-line {
  display: flex;
  flex-direction: column;
}
.hero-week-big {
  margin: .3rem 0 .18rem;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.12;
}
.hero-date {
  font-size: .85rem;
  opacity: .92;
}

.hero-live {
  margin-top: .85rem;
  padding: .68rem .8rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, .13);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .16);
}
html[data-theme="dark"] .hero-live {
  background: rgba(12, 15, 22, .32);
  border-color: rgba(255, 255, 255, .12);
}
.hero-live-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .4rem;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 700;
  opacity: .92;
}
.hero-live-title {
  margin-top: .24rem;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.25;
}
.hero-live-sub {
  margin-top: .18rem;
  font-size: .77rem;
  opacity: .88;
}
.hero-progress {
  margin-top: .48rem;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .22);
  overflow: hidden;
}
.hero-progress > span {
  display: block;
  height: 100%;
  background: #fbbf24;
  border-radius: 999px;
}

.panel-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: .82rem;
}

.cg-grid {
  display: flex;
  flex-direction: column;
  gap: .82rem;
}

.field { display: flex; flex-direction: column; gap: .28rem; min-width: 0; }
.field-label {
  font-size: .69rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  font-weight: 700;
}

select {
  font: inherit;
  font-size: .9rem;
  padding: .5rem .65rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card-2);
  color: var(--text);
  width: 100%;
  text-overflow: ellipsis;
}

.segmented {
  display: flex;
  padding: 3px;
  gap: 3px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--card-2);
}
.segmented button {
  flex: 1 1 0;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  border: 0;
  border-radius: 8px;
  padding: .48rem .4rem;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
}
.segmented button[aria-pressed="true"] {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 1px 4px rgba(79, 70, 229, .28);
}
.seg-dot {
  font-size: .62rem;
  padding: .08rem .36rem;
  border-radius: 999px;
  background: var(--today-soft);
  color: var(--today);
  font-weight: 700;
}
.segmented button[aria-pressed="true"] .seg-dot {
  background: rgba(255, 255, 255, .2);
  color: #ffffff;
}

.week-warn {
  padding: .58rem .72rem;
  border-radius: 10px;
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  color: var(--warn-text);
  font-size: .79rem;
  display: flex;
  flex-direction: column;
  gap: .42rem;
}
.week-warn[hidden] { display: none; }
.week-warn button {
  align-self: flex-start;
  border: 1px solid color-mix(in srgb, var(--now) 45%, transparent);
  background: var(--card);
  color: var(--text);
  font: inherit;
  font-size: .75rem;
  font-weight: 650;
  padding: .25rem .62rem;
  border-radius: 999px;
  cursor: pointer;
}

/* Переключатель «Сетка / Список» только на широком экране (>= 72rem), где сетка 2-колоночная */
@media (max-width: 71.99rem) {
  .layout-field { display: none; }
}

.mini-seg {
  display: flex;
  padding: 3px;
  gap: 3px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card-2);
}
.mini-seg button {
  flex: 1 1 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: .78rem;
  font-weight: 600;
  padding: .38rem .4rem;
  cursor: pointer;
  white-space: nowrap;
}
.mini-seg button[aria-pressed="true"] {
  background: var(--card);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .14);
}
html[data-theme="dark"] .mini-seg button[aria-pressed="true"] {
  background: var(--tag-bg);
}

.week-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .48rem;
  padding-top: .6rem;
  border-top: 1px solid var(--line);
}
.stat-box {
  background: var(--card-2);
  border-radius: 10px;
  padding: .48rem .5rem;
  text-align: center;
}
.stat-val { display: block; font-size: 1.04rem; font-weight: 750; line-height: 1.1; }
.stat-lbl { display: block; font-size: .68rem; color: var(--muted); margin-top: .14rem; }

.site-footer {
  display: flex;
  justify-content: flex-start;
  margin-top: 1.25rem;
  padding-top: .8rem;
  border-top: 1px solid var(--line);
}

.site-contact { max-width: 100%; }
.site-contact summary,
.contact-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: .4rem .8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
}

.site-contact summary {
  gap: .55rem;
  list-style: none;
  cursor: pointer;
}
.site-contact summary::-webkit-details-marker { display: none; }
.site-contact summary::after {
  content: "";
  width: .38rem;
  height: .38rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-.1rem) rotate(45deg);
}
.site-contact[open] summary::after { transform: translateY(.1rem) rotate(225deg); }

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .45rem;
}
.contact-actions a { background: var(--card); }
.site-contact summary:hover,
.site-contact[open] summary,
.contact-actions a:hover {
  background: var(--accent-soft);
  color: var(--accent-text);
}
.site-contact summary:focus-visible,
.contact-actions a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.side-footer {
  display: flex;
  justify-content: space-between;
  font-size: .74rem;
  color: var(--muted);
  padding: 0 .25rem;
}
.offline-badge { color: var(--now); font-weight: 700; }

.mobile-footer {
  display: none;
  margin-top: 1.1rem;
  padding: .65rem .25rem;
  border-top: 1px solid var(--line);
  font-size: .74rem;
  color: var(--muted);
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .4rem;
}

.main-area { min-width: 0; }
.main-toolbar {
  margin-bottom: .95rem;
}
.toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
.mobile-week-chip { display: none; }

.day-nav {
  display: flex;
  gap: .4rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.day-nav::-webkit-scrollbar { display: none; }

.day-pill {
  flex: none;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  font: inherit;
  font-size: .8rem;
  font-weight: 650;
  padding: .38rem .78rem;
  border-radius: 999px;
  cursor: pointer;
}
.day-pill:hover { color: var(--text); border-color: var(--accent); }
.day-pill.is-today {
  background: var(--today-soft);
  color: var(--today);
  border-color: color-mix(in srgb, var(--today) 42%, var(--line));
}
.day-pill.is-empty { opacity: .5; }

.today-toggle-btn { display: none; }

.jump-btn {
  flex: none;
  border: 1px solid color-mix(in srgb, var(--today) 42%, transparent);
  background: var(--today-soft);
  color: var(--today);
  font: inherit;
  font-size: .78rem;
  font-weight: 700;
  padding: .38rem .8rem;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}
.jump-btn[hidden] { display: none; }

/* Просторная раскладка на десктопе: список и бенто-сетка */
.days-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}
@media (min-width: 72rem) {
  .days-wrap.is-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

.day-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
  scroll-margin-top: 1rem;
}
.day-card.is-today {
  border-color: color-mix(in srgb, var(--today) 58%, var(--line));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--today) 16%, transparent), var(--shadow);
}
.day-card.is-past { opacity: .86; }
.day-card.is-past:hover { opacity: 1; }

.day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding-bottom: .62rem;
  margin-bottom: .75rem;
  border-bottom: 1px solid var(--line);
}
.day-head-title {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.day-name {
  font-size: .96rem;
  font-weight: 750;
}
.day-card.is-today .day-name { color: var(--today); }
.day-date { font-size: .8rem; color: var(--muted); }
.badge-today {
  font-size: .64rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .14rem .5rem;
  border-radius: 999px;
  background: var(--today);
  color: #fff;
}
.day-cnt { font-size: .76rem; color: var(--muted); font-weight: 600; }

.lesson-list { display: flex; flex-direction: column; gap: .6rem; }

.lesson-row {
  position: relative;
  overflow: hidden;
  display: flex;
  gap: .85rem;
  padding: .72rem .85rem;
  border-radius: 12px;
  background: var(--card-2);
  border: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
}
/* Дистант (ДО) — зелёное выделение, как в 1-м варианте */
.lesson-row.is-remote {
  background: var(--remote-bg);
  border-color: color-mix(in srgb, var(--remote) 32%, var(--line));
  border-left: 4px solid var(--remote);
  padding-left: calc(.85rem - 3px);
}
.lesson-row.is-now {
  border-color: var(--now-bright);
  background: var(--now-bg);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--now-bright) 30%, transparent);
}
.lesson-row.is-remote.is-now {
  border-left-color: var(--now-bright);
}
.lesson-row.is-window {
  background: transparent;
  border-style: dashed;
  padding: .52rem .85rem;
  color: var(--muted);
}

.row-time {
  flex: none;
  width: 5.2rem;
  display: flex;
  flex-direction: column;
  gap: .08rem;
  font-variant-numeric: tabular-nums;
}
.row-time strong { font-size: .82rem; color: var(--accent-text); font-weight: 700; white-space: nowrap; }
.lesson-row.is-remote .row-time strong { color: var(--remote); }
.lesson-row.is-now .row-time strong { color: var(--now); }
.lesson-row.is-window .row-time strong { color: var(--muted); font-weight: 600; }
.row-time span { font-size: .68rem; color: var(--muted); }

.row-body { min-width: 0; flex: 1; }
.row-subj { font-weight: 650; font-size: .92rem; line-height: 1.32; overflow-wrap: anywhere; }
.lesson-row.is-window .row-subj { font-size: .83rem; font-weight: 600; }
.row-meta { font-size: .8rem; color: var(--muted); margin-top: .18rem; overflow-wrap: anywhere; }
.row-tags { display: flex; flex-wrap: wrap; gap: .32rem; margin-top: .4rem; }
.tag {
  font-size: .67rem;
  font-weight: 650;
  padding: .11rem .48rem;
  border-radius: 999px;
  background: var(--tag-bg);
  color: var(--muted);
}
.tag.remote { background: var(--remote-soft); color: var(--remote); }
.tag.now { background: var(--now-bright); color: #241900; font-weight: 750; }
.tag.wk { background: var(--accent-soft); color: var(--accent-text); }

.day-empty { margin: 0; font-size: .85rem; color: var(--muted); padding: .35rem 0; }
.holiday {
  grid-column: 1 / -1;
  display: flex;
  gap: .85rem;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--today);
  border-radius: var(--radius);
  padding: 1.15rem;
}
.holiday-emoji { font-size: 1.8rem; }
.loading, .empty-all { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 2rem 0; }

/* =====================================================================
   МОБИЛЬНАЯ ВЕРСИЯ (< 58rem)
   ===================================================================== */
@media (max-width: 57.99rem) {
  .app-shell {
    padding: .55rem .75rem 1.8rem;
    padding-top: max(.55rem, env(safe-area-inset-top));
  }
  .mobile-top { margin-bottom: .5rem; }
  .brand-row { gap: .5rem; }
  .brand-titles { flex-wrap: nowrap; align-items: baseline; overflow: hidden; }
  h1 {
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .subtitle { display: none; }
  .icon-btn { width: 2rem; height: 2rem; font-size: .9rem; }

  .sidebar { gap: .5rem; }

  .hero-card {
    padding: .68rem .85rem;
    border-radius: 13px;
  }
  .hero-top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
  }
  .hero-kicker { font-size: .62rem; gap: .35rem; }
  .hero-main-line {
    flex-direction: column;
    align-items: flex-start;
    gap: .05rem;
  }
  .hero-week-big { margin: 0; font-size: 1.22rem; }
  .hero-date { font-size: .76rem; text-align: right; white-space: nowrap; }
  .hero-live { margin-top: .5rem; padding: .46rem .62rem; border-radius: 10px; }
  .hero-live-label { font-size: .64rem; }
  .hero-live-title { font-size: .82rem; margin-top: .12rem; }
  .hero-live-sub { font-size: .72rem; margin-top: .1rem; }
  .hero-progress { margin-top: .32rem; height: 3px; }

  .panel-card {
    padding: .62rem .72rem;
    gap: .48rem;
    border-radius: 13px;
  }
  .cg-grid {
    display: grid;
    grid-template-columns: .62fr 1.38fr;
    gap: .45rem;
  }
  .field { gap: .16rem; }
  .field-label { font-size: .61rem; }
  select { font-size: .84rem; padding: .38rem .48rem; border-radius: 8px; }
  .segmented button { padding: .38rem .3rem; font-size: .8rem; }

  .week-stats, .side-footer { display: none; }
  .mobile-footer { display: flex; }

  .main-toolbar {
    position: sticky;
    top: 0;
    z-index: 25;
    margin: 0 -.75rem .65rem;
    padding: .42rem .75rem;
    background: color-mix(in srgb, var(--bg) 90%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  }
  .toolbar-row { gap: .35rem; flex-wrap: nowrap; }
  .mobile-week-chip {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: .28rem;
    padding: .28rem .5rem;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--today) 40%, var(--line));
    background: var(--today-soft);
    color: var(--today);
    font: inherit;
    font-size: .7rem;
    font-weight: 750;
    cursor: pointer;
    white-space: nowrap;
  }
  .mobile-week-chip.is-warn {
    background: var(--warn-bg);
    border-color: var(--warn-border);
    color: var(--warn-text);
  }
  .mobile-week-chip .mwc-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
  }
  .day-nav { flex: 1; gap: .18rem; }
  .day-pill { padding: .25rem .42rem; font-size: .71rem; }
  .day-pill .dp-num { display: none; }
  .today-toggle-btn {
    flex: none;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--muted);
    font: inherit;
    font-size: .71rem;
    font-weight: 650;
    padding: .26rem .5rem;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
  }
  .today-toggle-btn[aria-pressed="true"] {
    background: var(--today);
    border-color: var(--today);
    color: #fff;
  }
  .today-toggle-btn[hidden] { display: none; }
  .jump-btn { display: none !important; }

  .days-wrap { gap: .72rem; }
  .day-card { padding: .75rem .78rem; border-radius: 13px; }
  .day-head { padding-bottom: .45rem; margin-bottom: .52rem; }
  .lesson-list { gap: .46rem; }
  .lesson-row { padding: .56rem .64rem; gap: .58rem; border-radius: 10px; }
  .lesson-row.is-remote { padding-left: calc(.64rem - 3px); }
  .row-time { width: 4.75rem; }
  .row-time strong { font-size: .73rem; }
  .row-subj { font-size: .86rem; }
  .row-meta { font-size: .74rem; }
}

.claude-ad {
  --ad-surface: #fbf2e8;
  --ad-border: #e8cdb5;
  --ad-ink: #322018;
  --ad-muted: #694939;
  --ad-accent: #9c3d21;
  --ad-mark: #a64629;
  display: grid;
  gap: .65rem;
  padding: .8rem .85rem;
  border: 1px solid var(--ad-border);
  border-radius: .9rem;
  background: var(--ad-surface);
  color: var(--ad-ink);
}
html[data-theme="dark"] .claude-ad {
  --ad-surface: #2a201e;
  --ad-border: #604137;
  --ad-ink: #fff1e5;
  --ad-muted: #dec3b2;
  --ad-accent: #ffc19c;
}
.claude-ad-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .45rem;
}
.claude-ad-copy { display: grid; gap: .24rem; }
.claude-ad-label { color: var(--ad-muted); font-size: .68rem; }
.claude-ad-title {
  font: 700 clamp(1.05rem, 3.8vw, 1.24rem)/1.15 Georgia, serif;
  overflow-wrap: anywhere;
}
.claude-ad-title span { color: var(--ad-accent); }
.claude-ad-description {
  color: var(--ad-muted);
  font-size: .77rem;
  line-height: 1.35;
}
.claude-ad-mark {
  display: grid;
  place-items: center;
  width: 2.45rem;
  aspect-ratio: 1;
  background: var(--ad-mark);
  border-radius: .68rem;
  color: #fff3e7;
  font: 1.85rem/1 system-ui, sans-serif;
  transform: rotate(7deg);
}
.claude-ad-link {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  gap: .38rem;
  min-height: 2.2rem;
  padding: .25rem .58rem;
  border: 1px solid var(--ad-border);
  border-radius: .55rem;
  color: var(--ad-accent);
  font-size: .76rem;
  font-weight: 700;
  text-decoration: none;
}
.claude-ad-link:hover { text-decoration: underline; }
.claude-ad-link:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .claude-ad-mark { animation: claude-mark-arrive 650ms cubic-bezier(.2, .75, .3, 1) both; }
}
@keyframes claude-mark-arrive {
  from { opacity: .6; transform: translateY(3px) rotate(-8deg) scale(.93); }
  to { opacity: 1; transform: rotate(7deg); }
}
