@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Noto+Sans+TC:wght@400;500;700;900&display=swap");

@font-face {
  font-family: "Line";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("https://cwyworship.space/wp-content/uploads/2025/09/LINESeedTW_TTF_Th.ttf") format("truetype");
}

@font-face {
  font-family: "Line";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("https://cwyworship.space/wp-content/uploads/2025/09/LINESeedTW_TTF_Rg.ttf") format("truetype");
}

@font-face {
  font-family: "Line";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("https://cwyworship.space/wp-content/uploads/2025/09/LINESeedTW_TTF_Eb.ttf") format("truetype");
}

:root {
  --cwy-asr-black: #22252b;
  --cwy-asr-red: #ac1f24;
  --cwy-asr-white: #ffffff;
  --cwy-asr-ink: var(--cwy-asr-black);
  --cwy-asr-accent: var(--cwy-asr-red);
  --cwy-asr-surface: var(--cwy-asr-white);
  --cwy-asr-paper: #f6f1e8;
  --cwy-asr-paper-deep: #ece2d3;
  --cwy-asr-soft: #fbf7ef;
  --cwy-asr-soft-accent: rgba(172, 31, 36, 0.08);
  --cwy-asr-line: rgba(34, 37, 43, 0.12);
  --cwy-asr-line-strong: rgba(34, 37, 43, 0.2);
  --cwy-asr-muted: #6c6470;
  --cwy-asr-shadow: 0 24px 60px rgba(34, 25, 16, 0.08);
  --cwy-asr-shadow-soft: 0 14px 30px rgba(34, 25, 16, 0.06);
  --cwy-asr-shadow-strong: 0 22px 44px rgba(34, 25, 16, 0.12);
  --cwy-asr-radius-xxl: 32px;
  --cwy-asr-radius-xl: 26px;
  --cwy-asr-radius-lg: 22px;
  --cwy-asr-radius-md: 18px;
  --cwy-asr-radius-sm: 12px;
  --cwy-asr-focus: 0 0 0 3px rgba(172, 31, 36, 0.18);
}

.cwy-asr-shell,
.cwy-asr-dashboard,
.cwy-asr-inline-share {
  color: var(--cwy-asr-ink);
  font-family: "Line", "Noto Sans TC", "Manrope", "Segoe UI", sans-serif;
}

.cwy-asr-shell *,
.cwy-asr-dashboard *,
.cwy-asr-inline-share * {
  box-sizing: border-box;
}

.cwy-asr-hidden {
  display: none !important;
}

.cwy-asr-shell {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: min(100%, 1280px);
  margin: var(--cwy-asr-header-offset, 24px) auto 34px;
  scroll-margin-top: var(--cwy-asr-header-offset, 24px);
  padding: clamp(24px, 3.2vw, 42px) 16px 34px;
}

.cwy-asr-shell::before,
.cwy-asr-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.cwy-asr-shell::before {
  background:
    radial-gradient(circle at top right, rgba(172, 31, 36, 0.06), rgba(172, 31, 36, 0) 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 249, 250, 0.95));
}

.cwy-asr-shell::after {
  z-index: -1;
  opacity: 0;
  background: none;
  mask-image: none;
}

.cwy-asr-shell--embedded {
  width: 100%;
  margin: 0;
  padding: 0;
  scroll-margin-top: 0;
}

.cwy-asr-shell--embedded::before,
.cwy-asr-shell--embedded::after,
.cwy-asr-shell--embedded .cwy-asr-bg-orb {
  display: none;
}

.cwy-asr-shell--embedded .cwy-asr-panel {
  margin-top: 0;
}

.cwy-asr-bg-orb {
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0.44;
  animation: cwyAsrFloat 7s ease-in-out infinite;
}

.cwy-asr-bg-orb--a {
  top: -72px;
  right: -68px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(172, 31, 36, 0.12) 0, rgba(172, 31, 36, 0) 70%);
}

.cwy-asr-bg-orb--b {
  left: -64px;
  bottom: -58px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(34, 37, 43, 0.06) 0, rgba(34, 37, 43, 0) 72%);
  animation-delay: 0.9s;
}

.cwy-asr-hero,
.cwy-asr-panel,
.cwy-asr-dash-hero,
.cwy-asr-dash-list,
.cwy-asr-inline-share {
  position: relative;
  border: 1px solid var(--cwy-asr-line);
  border-radius: var(--cwy-asr-radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(250, 251, 252, 0.97));
  box-shadow: var(--cwy-asr-shadow-soft);
}

.cwy-asr-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 24px;
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--cwy-asr-shadow);
}

.cwy-asr-hero::before {
  content: "";
  position: absolute;
  right: -56px;
  bottom: -60px;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(172, 31, 36, 0.1) 0, rgba(172, 31, 36, 0) 72%);
}

.cwy-asr-hero__copy,
.cwy-asr-hero-stats {
  position: relative;
  z-index: 1;
}

.cwy-asr-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cwy-asr-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.cwy-asr-kicker::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.cwy-asr-hero h2 {
  margin: 16px 0 18px;
  color: var(--cwy-asr-ink);
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.cwy-asr-hero p {
  margin: 0;
  max-width: 58ch;
  color: var(--cwy-asr-muted);
  font-size: 15px;
  line-height: 1.85;
}

.cwy-asr-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.cwy-asr-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-content: end;
}

.cwy-asr-stat {
  padding: 18px 16px;
  border: 1px solid var(--cwy-asr-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--cwy-asr-shadow-soft);
}

.cwy-asr-stat__label {
  display: block;
  color: var(--cwy-asr-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cwy-asr-stat__value {
  display: block;
  margin-top: 10px;
  color: var(--cwy-asr-ink);
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.05;
  font-weight: 700;
}

.cwy-asr-stat__value--text {
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.45;
}

.cwy-asr-panel {
  margin-top: 18px;
  padding: clamp(18px, 2.4vw, 26px);
}

.cwy-asr-panel--compact {
  padding: 16px 18px;
}

.cwy-asr-panel__head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--cwy-asr-line);
}

.cwy-asr-panel__head h3 {
  margin: 0;
  color: var(--cwy-asr-ink);
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.16;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.cwy-asr-panel__head p {
  margin: 0;
  max-width: 64ch;
  color: var(--cwy-asr-muted);
  font-size: 14px;
  line-height: 1.75;
}

.cwy-asr-quick-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.cwy-asr-quick-actions__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cwy-asr-quick-actions__text strong {
  color: var(--cwy-asr-ink);
  font-size: 16px;
  line-height: 1.4;
  font-weight: 700;
}

.cwy-asr-quick-actions__text span {
  color: var(--cwy-asr-muted);
  font-size: 13px;
  line-height: 1.7;
}

.cwy-asr-dashboard {
  display: grid;
  gap: 14px;
}

.cwy-asr-dash-hero,
.cwy-asr-dash-list {
  padding: 18px;
}

.cwy-asr-dash-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

.cwy-asr-dash-hero h2 {
  margin: 0;
  color: var(--cwy-asr-ink);
  font-size: 28px;
  line-height: 1.16;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.cwy-asr-dash-hero p {
  margin: 8px 0 0;
  color: var(--cwy-asr-muted);
  font-size: 14px;
  line-height: 1.7;
}

.cwy-asr-dash-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.cwy-asr-dash-stat-pill,
.cwy-asr-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--cwy-asr-line);
  border-radius: 999px;
  background: var(--cwy-asr-soft);
  color: var(--cwy-asr-ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 8px 12px;
}

.cwy-asr-chip--accent {
  border-color: rgba(172, 31, 36, 0.22);
  background: var(--cwy-asr-soft-accent);
  color: var(--cwy-asr-accent);
}

.cwy-asr-dash-list {
  display: grid;
  gap: 14px;
}

.cwy-asr-dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.cwy-asr-dash-head h3 {
  margin: 0;
  color: var(--cwy-asr-ink);
  font-size: 22px;
  font-weight: 700;
}

.cwy-asr-dash-head span {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--cwy-asr-line);
  border-radius: 999px;
  background: var(--cwy-asr-soft);
  color: var(--cwy-asr-muted);
  font-size: 12px;
  font-weight: 700;
}

.cwy-asr-dash-filters,
.cwy-asr-board-toolbar {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--cwy-asr-line);
  border-radius: var(--cwy-asr-radius-md);
  background: linear-gradient(120deg, rgba(172, 31, 36, 0.05), rgba(255, 255, 255, 0.94));
}

.cwy-asr-dash-filter,
.cwy-asr-board-filter {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cwy-asr-dash-filter {
  grid-column: span 3;
}

.cwy-asr-dash-filter--grow {
  grid-column: span 4;
}

.cwy-asr-board-filter {
  grid-column: span 3;
}

.cwy-asr-board-filter--search {
  grid-column: span 6;
}

.cwy-asr-dash-filter label,
.cwy-asr-board-filter label {
  color: var(--cwy-asr-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cwy-asr-dash-filter input,
.cwy-asr-dash-filter select,
.cwy-asr-board-filter input,
.cwy-asr-board-filter select {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--cwy-asr-line-strong);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--cwy-asr-ink);
  padding: 0 16px;
  font-size: 14px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.cwy-asr-dash-filter input:focus,
.cwy-asr-dash-filter select:focus,
.cwy-asr-board-filter input:focus,
.cwy-asr-board-filter select:focus {
  outline: none;
  border-color: var(--cwy-asr-accent);
  box-shadow: var(--cwy-asr-focus);
}

.cwy-asr-dash-filter-result,
.cwy-asr-board-result {
  display: inline-flex;
  align-items: flex-end;
  justify-content: flex-end;
  color: var(--cwy-asr-muted);
  font-size: 12px;
  font-weight: 700;
}

.cwy-asr-dash-filter-result {
  grid-column: span 2;
}

.cwy-asr-board-result {
  grid-column: span 3;
}

.cwy-asr-course-groups,
.cwy-asr-my-list {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.cwy-asr-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.cwy-asr-course-group,
.cwy-asr-card,
.cwy-asr-my-item {
  border: 1px solid var(--cwy-asr-line);
  border-radius: var(--cwy-asr-radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(249, 250, 251, 0.96));
  box-shadow: var(--cwy-asr-shadow-soft);
}

.cwy-asr-course-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.7);
}

.cwy-asr-course-summary::-webkit-details-marker {
  display: none;
}

.cwy-asr-course-summary::after {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border: 1px solid var(--cwy-asr-line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--cwy-asr-ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.cwy-asr-course-group[open] .cwy-asr-course-summary::after {
  content: "-";
  border-color: var(--cwy-asr-accent);
  background: var(--cwy-asr-accent);
  color: #ffffff;
}

.cwy-asr-course-title {
  color: var(--cwy-asr-ink);
  font-size: 15px;
  font-weight: 700;
}

.cwy-asr-course-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cwy-asr-course-meta em {
  font-style: normal;
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border: 1px solid var(--cwy-asr-line);
  border-radius: 999px;
  background: var(--cwy-asr-soft);
  color: var(--cwy-asr-muted);
  font-size: 12px;
  font-weight: 700;
}

.cwy-asr-course-group .cwy-asr-my-list {
  margin-top: 0;
  padding: 0 14px 14px;
}

.cwy-asr-my-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.cwy-asr-my-item:hover,
.cwy-asr-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--cwy-asr-shadow);
}

.cwy-asr-dash-item[data-share-state="shared"] {
  border-color: rgba(172, 31, 36, 0.2);
  background: linear-gradient(120deg, rgba(172, 31, 36, 0.08), rgba(255, 255, 255, 0.96));
}

.cwy-asr-my-item__content {
  min-width: 0;
  flex: 1 1 auto;
}

.cwy-asr-my-item__meta {
  margin-top: 8px;
  color: var(--cwy-asr-muted);
  font-size: 13px;
  line-height: 1.7;
}

.cwy-asr-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cwy-asr-switch input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cwy-asr-switch-track {
  width: 56px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--cwy-asr-line-strong);
  background: var(--cwy-asr-soft);
  display: inline-flex;
  align-items: center;
  padding: 2px;
  transition: all 220ms ease;
  cursor: pointer;
}

.cwy-asr-switch-thumb {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--cwy-asr-surface);
  border: 1px solid var(--cwy-asr-line-strong);
  transition: transform 220ms ease;
}

.cwy-asr-switch input[type="checkbox"]:checked + .cwy-asr-switch-track {
  background: var(--cwy-asr-accent);
  border-color: var(--cwy-asr-accent);
}

.cwy-asr-switch input[type="checkbox"]:checked + .cwy-asr-switch-track .cwy-asr-switch-thumb {
  transform: translateX(24px);
}

.cwy-asr-switch input[type="checkbox"]:focus + .cwy-asr-switch-track {
  box-shadow: var(--cwy-asr-focus);
}

.cwy-asr-switch-label {
  color: var(--cwy-asr-ink);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.cwy-asr-card {
  position: relative;
  overflow: hidden;
  transition: border-color 180ms ease, box-shadow 220ms ease, transform 180ms ease;
}

.cwy-asr-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, var(--cwy-asr-accent), rgba(172, 31, 36, 0.4));
}

.cwy-asr-card[open] {
  border-color: rgba(172, 31, 36, 0.2);
  box-shadow: var(--cwy-asr-shadow);
}

.cwy-asr-thread-summary {
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  cursor: pointer;
}

.cwy-asr-thread-summary::-webkit-details-marker {
  display: none;
}

.cwy-asr-thread-avatar {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 999px;
  border: 1px solid var(--cwy-asr-line);
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.8);
}

.cwy-asr-thread-avatar .avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
}

.cwy-asr-thread-main {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cwy-asr-thread-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cwy-asr-thread-title {
  color: var(--cwy-asr-ink);
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.24;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.cwy-asr-thread-meta {
  color: var(--cwy-asr-muted);
  font-size: 12px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.cwy-asr-thread-excerpt,
.cwy-asr-card__content {
  color: rgba(34, 37, 43, 0.84);
  font-size: 14px;
  line-height: 1.82;
  overflow-wrap: anywhere;
}

.cwy-asr-card__content {
  margin: 0;
}

.cwy-asr-thread-cta {
  flex-shrink: 0;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--cwy-asr-line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--cwy-asr-ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.cwy-asr-card[open] .cwy-asr-thread-cta {
  border-color: var(--cwy-asr-accent);
  background: var(--cwy-asr-accent);
  color: #ffffff;
}

.cwy-asr-thread-detail {
  padding: 0 18px 18px;
}

.cwy-asr-thread-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--cwy-asr-line);
}

.cwy-asr-thread-grid.is-text-only {
  grid-template-columns: 1fr;
}

.cwy-asr-thread-copy {
  display: flex;
  flex-direction: column;
}

.cwy-asr-thread-media {
  min-width: 0;
}

.cwy-asr-preview {
  border: 1px solid var(--cwy-asr-line);
  border-radius: var(--cwy-asr-radius-md);
  background: rgba(255, 255, 255, 0.92);
  overflow: hidden;
  box-shadow: var(--cwy-asr-shadow-soft);
}

.cwy-asr-preview__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--cwy-asr-line);
  background: linear-gradient(120deg, rgba(172, 31, 36, 0.08), rgba(255, 255, 255, 0.98));
}

.cwy-asr-preview__head strong {
  color: var(--cwy-asr-ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cwy-asr-preview__head span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid var(--cwy-asr-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--cwy-asr-muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.cwy-asr-preview__frame {
  min-height: 220px;
  background: linear-gradient(180deg, rgba(250, 251, 252, 0.98), rgba(246, 247, 248, 0.95));
}

.cwy-asr-preview__frame iframe,
.cwy-asr-preview__frame img,
.cwy-asr-preview__frame video {
  display: block;
  width: 100%;
  border: 0;
}

.cwy-asr-preview__frame iframe {
  min-height: 320px;
  background: var(--cwy-asr-surface);
}

.cwy-asr-preview__frame img,
.cwy-asr-preview__frame video {
  max-height: 400px;
  object-fit: contain;
  background: var(--cwy-asr-surface);
}

.cwy-asr-preview__frame audio {
  width: calc(100% - 24px);
  margin: 14px 12px;
}

.cwy-asr-preview__fallback {
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--cwy-asr-muted);
  padding: 16px;
  font-size: 13px;
  line-height: 1.7;
}

.cwy-asr-preview__actions {
  display: flex;
  justify-content: flex-end;
  padding: 14px;
  border-top: 1px solid rgba(160, 146, 126, 0.2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.94));
}

.cwy-asr-file-link--preview {
  margin-top: 2px;
}

.cwy-asr-file-link,
.cwy-asr-dash-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  max-width: 100%;
  padding: 0 18px;
  border: 1px solid var(--cwy-asr-accent);
  border-radius: 12px;
  background: var(--cwy-asr-accent);
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 12px 24px rgba(172, 31, 36, 0.14);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease, color 180ms ease;
  cursor: pointer;
  white-space: nowrap;
}

.cwy-asr-file-link:hover,
.cwy-asr-dash-link:hover {
  background: var(--cwy-asr-ink);
  border-color: var(--cwy-asr-ink);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(34, 37, 43, 0.12);
}

.cwy-asr-file-link--ghost {
  border-color: var(--cwy-asr-line-strong);
  background: rgba(255, 255, 255, 0.86);
  color: var(--cwy-asr-ink);
  box-shadow: none;
}

.cwy-asr-file-link--ghost:hover {
  color: var(--cwy-asr-accent);
  border-color: var(--cwy-asr-accent);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: none;
}

.cwy-asr-file-link svg,
.cwy-asr-dash-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex: 0 0 auto;
}

.cwy-asr-file-link span,
.cwy-asr-dash-link span {
  overflow-wrap: anywhere;
}

.cwy-asr-rating-summary {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border: 1px solid var(--cwy-asr-line);
  border-radius: var(--cwy-asr-radius-md);
  background: rgba(255, 255, 255, 0.84);
}

.cwy-asr-stars-static,
.cwy-asr-rating-stars {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.cwy-asr-star-static svg,
.cwy-asr-star-btn svg {
  width: 18px;
  height: 18px;
  fill: var(--cwy-asr-line-strong);
  transition: fill 140ms ease;
}

.cwy-asr-star-static.is-filled svg,
.cwy-asr-star-btn.is-active svg {
  fill: var(--cwy-asr-accent);
}

.cwy-asr-rating-text {
  color: var(--cwy-asr-muted);
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.cwy-asr-rating-box {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--cwy-asr-line);
}

.cwy-asr-star-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--cwy-asr-line-strong);
  border-radius: 10px;
  background: var(--cwy-asr-soft);
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.cwy-asr-star-btn:hover {
  border-color: var(--cwy-asr-accent);
  background: var(--cwy-asr-soft-accent);
  transform: translateY(-1px);
}

.cwy-asr-star-btn:focus {
  outline: none;
  box-shadow: var(--cwy-asr-focus);
}

.cwy-asr-rating-hint {
  margin: 10px 0 0;
  color: var(--cwy-asr-ink);
  font-size: 13px;
  font-weight: 700;
}

.cwy-asr-note,
.cwy-asr-empty {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px dashed var(--cwy-asr-line-strong);
  border-radius: var(--cwy-asr-radius-md);
  background: var(--cwy-asr-soft);
  color: var(--cwy-asr-muted);
  font-size: 14px;
  line-height: 1.75;
}

.cwy-asr-note {
  margin-top: 12px;
}

.cwy-asr-pagination {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cwy-asr-page-link .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--cwy-asr-line-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--cwy-asr-ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: all 180ms ease;
  cursor: pointer;
}

.cwy-asr-page-link .page-numbers.current {
  border-color: var(--cwy-asr-accent);
  background: var(--cwy-asr-accent);
  color: #ffffff;
}

.cwy-asr-page-link .page-numbers:hover {
  border-color: var(--cwy-asr-accent);
  color: var(--cwy-asr-accent);
  background: rgba(255, 255, 255, 0.96);
}

.cwy-asr-inline-share {
  margin-top: 20px;
  padding: 18px;
}

.cwy-asr-inline-share__title {
  display: block;
  margin: 0;
  color: var(--cwy-asr-ink);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.cwy-asr-inline-share__desc {
  margin: 8px 0 0;
  color: var(--cwy-asr-muted);
  font-size: 14px;
  line-height: 1.7;
}

.cwy-asr-inline-share__control {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.cwy-asr-shell :where(a, button, summary, .cwy-asr-star-btn),
.cwy-asr-dashboard :where(a, button, summary, .cwy-asr-star-btn),
.cwy-asr-inline-share :where(a, button, summary, .cwy-asr-star-btn) {
  cursor: pointer;
}

.cwy-asr-shell :where(a, button, input, select, summary, textarea):focus-visible,
.cwy-asr-dashboard :where(a, button, input, select, summary, textarea):focus-visible,
.cwy-asr-inline-share :where(a, button, input, select, summary, textarea):focus-visible {
  outline: none;
  box-shadow: var(--cwy-asr-focus);
}

@keyframes cwyAsrFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 1100px) {
  .cwy-asr-hero {
    grid-template-columns: 1fr;
  }

  .cwy-asr-hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cwy-asr-grid {
    grid-template-columns: 1fr;
  }

  .cwy-asr-thread-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .cwy-asr-dash-filters,
  .cwy-asr-board-toolbar {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .cwy-asr-dash-filter,
  .cwy-asr-board-filter {
    grid-column: span 3;
  }

  .cwy-asr-dash-filter--grow,
  .cwy-asr-board-filter--search {
    grid-column: span 6;
  }

  .cwy-asr-dash-filter-result,
  .cwy-asr-board-result {
    grid-column: span 6;
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .cwy-asr-shell {
    margin: 14px auto 22px;
    padding: 16px 10px 20px;
  }

  .cwy-asr-hero,
  .cwy-asr-panel,
  .cwy-asr-dash-hero,
  .cwy-asr-dash-list,
  .cwy-asr-inline-share {
    border-radius: 22px;
  }

  .cwy-asr-hero {
    padding: 22px 18px;
  }

  .cwy-asr-hero h2 {
    font-size: 34px;
  }

  .cwy-asr-hero-actions,
  .cwy-asr-quick-actions,
  .cwy-asr-dash-hero,
  .cwy-asr-course-summary,
  .cwy-asr-my-item,
  .cwy-asr-thread-summary {
    flex-direction: column;
    align-items: flex-start;
  }

  .cwy-asr-hero-stats {
    grid-template-columns: 1fr;
  }

  .cwy-asr-dash-link,
  .cwy-asr-file-link {
    width: 100%;
  }

  .cwy-asr-dash-filters,
  .cwy-asr-board-toolbar {
    grid-template-columns: 1fr;
  }

  .cwy-asr-dash-filter,
  .cwy-asr-dash-filter--grow,
  .cwy-asr-dash-filter-result,
  .cwy-asr-board-filter,
  .cwy-asr-board-filter--search,
  .cwy-asr-board-result {
    grid-column: span 1;
  }

  .cwy-asr-thread-cta {
    align-self: flex-start;
  }

  .cwy-asr-preview__frame {
    min-height: 170px;
  }

  .cwy-asr-preview__frame iframe {
    min-height: 220px;
  }

  .cwy-asr-switch-label {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .cwy-asr-panel,
  .cwy-asr-dash-hero,
  .cwy-asr-dash-list,
  .cwy-asr-inline-share {
    padding: 16px;
  }

  .cwy-asr-thread-detail,
  .cwy-asr-thread-summary {
    padding-left: 16px;
    padding-right: 16px;
  }

  .cwy-asr-thread-grid {
    padding-top: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cwy-asr-bg-orb,
  .cwy-asr-card,
  .cwy-asr-star-btn,
  .cwy-asr-switch-track,
  .cwy-asr-switch-thumb,
  .cwy-asr-file-link,
  .cwy-asr-page-link .page-numbers,
  .cwy-asr-dash-link,
  .cwy-asr-my-item {
    animation: none !important;
    transition: none !important;
  }
}
