:root {
  --bg: #0f172a;
  --panel: rgba(255, 255, 255, 0.94);
  --panel-dark: rgba(15, 23, 42, 0.86);
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --danger: #dc2626;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 14%, rgba(59, 130, 246, 0.50), transparent 34%),
    radial-gradient(circle at 82% 8%, rgba(14, 165, 233, 0.34), transparent 32%),
    linear-gradient(135deg, #0f172a 0%, #111827 52%, #172554 100%);
}

.app-shell {
  width: min(1120px, 100%);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 28px 20px 40px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  color: white;
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-dialog .eyebrow,
.today-card .eyebrow {
  color: var(--brand);
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(34px, 7vw, 70px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.subtitle {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(15px, 2.5vw, 20px);
}

.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
  gap: 18px;
  align-items: stretch;
}

.video-card,
.today-card {
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow);
}

.video-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #020617;
}

.video-ratio {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 280px;
  overflow: hidden;
  background: #020617;
}

.video-ratio iframe,
.video-ratio video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #020617;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 16px;
  padding: 28px;
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
}

.video-placeholder p {
  max-width: 460px;
  margin: 0;
  line-height: 1.6;
}

.spinner {
  width: 38px;
  height: 38px;
  border: 3px solid rgba(255, 255, 255, 0.22);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.today-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  padding: 30px;
  border-radius: var(--radius-lg);
  background: var(--panel);
  backdrop-filter: blur(12px);
}

.date-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.date-line span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1e40af;
  font-size: 13px;
  font-weight: 800;
}

#rotationInfo {
  background: #f3f4f6;
  color: #4b5563;
}

.today-card h2 {
  margin-bottom: 14px;
  font-size: clamp(25px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.today-card p {
  color: #374151;
  font-size: 16px;
  line-height: 1.72;
  white-space: pre-line;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.icon-btn,
.danger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 0;
  border-radius: 14px;
  padding: 0 18px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, opacity 0.16s ease, background 0.16s ease;
}

.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover,
.icon-btn:hover,
.danger-btn:hover {
  transform: translateY(-1px);
}

.primary-btn {
  background: var(--brand);
  color: white;
}

.primary-btn:hover {
  background: var(--brand-dark);
}

.secondary-btn {
  background: #f3f4f6;
  color: #111827;
}

.ghost-btn {
  background: rgba(255, 255, 255, 0.13);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

.today-card .secondary-btn,
.admin-dialog .secondary-btn {
  background: #eef2ff;
  color: #1e3a8a;
}

.icon-btn {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  background: #f3f4f6;
  color: #111827;
  font-size: 24px;
}

.danger-btn {
  background: #fef2f2;
  color: var(--danger);
}


.small-note,
.muted {
  color: var(--muted) !important;
  font-size: 14px !important;
}

.small-note {
  margin: 18px 0 0;
}

.admin-dialog {
  width: min(980px, calc(100% - 24px));
  max-height: min(88dvh, 900px);
  padding: 0;
  border: 0;
  border-radius: 26px;
  box-shadow: var(--shadow);
  color: var(--text);
}

.admin-dialog::backdrop {
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(6px);
}

.dialog-close-form {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  justify-content: flex-end;
  margin: 0;
  padding: 16px 16px 0;
  background: linear-gradient(to bottom, white 70%, rgba(255, 255, 255, 0));
}

.admin-section {
  padding: 10px 26px 28px;
}

.admin-section h2 {
  margin-bottom: 10px;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.hidden {
  display: none !important;
}

.field-label,
.settings-grid span,
.admin-row label span {
  display: block;
  margin-bottom: 8px;
  color: #374151;
  font-size: 13px;
  font-weight: 800;
}

.text-input,
.json-textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  color: var(--text);
  outline: none;
}

.text-input {
  height: 46px;
  padding: 0 14px;
}

.text-input:focus,
.json-textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.full {
  width: 100%;
  margin-top: 14px;
}

.admin-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 180px;
  gap: 12px;
  margin: 20px 0;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.admin-rows {
  display: grid;
  gap: 12px;
}

.admin-row {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 1.5fr 80px 92px;
  gap: 10px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fafafa;
}

.admin-row textarea {
  min-height: 46px;
  resize: vertical;
  padding: 12px 14px;
}

.switch-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  color: #374151;
  font-weight: 800;
}

.switch-wrap input {
  width: 18px;
  height: 18px;
}

.row-actions {
  display: grid;
  gap: 6px;
}

.row-actions button {
  min-height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 13px;
}

.json-box {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
}

.json-box summary {
  font-weight: 900;
  cursor: pointer;
}

.json-textarea {
  min-height: 180px;
  margin-top: 12px;
  padding: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  resize: vertical;
}

.sticky-save {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px -26px -28px;
  padding: 16px 26px 22px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
}

.save-help {
  color: var(--muted);
  font-size: 13px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 50;
  max-width: min(520px, calc(100% - 32px));
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.94);
  color: white;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

code {
  padding: 2px 6px;
  border-radius: 8px;
  background: #f3f4f6;
  color: #111827;
}

@media (max-width: 900px) {
  .app-shell {
    padding: 20px 14px 28px;
  }

  .topbar {
    align-items: center;
  }

  .watch-layout {
    grid-template-columns: 1fr;
  }

  .today-card {
    padding: 24px;
  }

  .settings-grid,
  .admin-row {
    grid-template-columns: 1fr;
  }

  .row-actions {
    grid-template-columns: repeat(3, 1fr);
  }

  .sticky-save {
    flex-direction: column;
    align-items: stretch;
  }
}

.disabled {
  opacity: 0.48;
  pointer-events: none;
}

/* 2026-06-03 수정: 영상 화면 확대, 날짜 이동, 대량 관리자 편집 */
.app-shell {
  width: min(1280px, 100%);
  padding: 12px 14px 28px;
}

.topbar {
  align-items: center;
  margin-bottom: 10px;
}

.eyebrow {
  margin: 0 0 2px;
  font-size: 9px;
  letter-spacing: 0.08em;
}

h1 {
  margin-bottom: 1px;
  font-size: clamp(18px, 2.6vw, 28px);
  letter-spacing: -0.04em;
}

.subtitle {
  font-size: clamp(10px, 1.7vw, 12px);
}

.watch-layout {
  grid-template-columns: minmax(0, 1.75fr) minmax(270px, 0.45fr);
  gap: 12px;
}

.video-ratio {
  min-height: min(68dvh, 720px);
}

.today-card {
  padding: 18px;
}

.date-line {
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.date-line span {
  min-height: 28px;
  padding: 4px 10px;
  font-size: 12px;
}

.day-nav-btn {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: #e0e7ff;
  color: #1e3a8a;
  font-size: 24px;
  font-weight: 900;
  cursor: pointer;
}

.today-card h2 {
  margin-bottom: 8px;
  font-size: clamp(20px, 2.8vw, 32px);
}

.today-card p {
  font-size: 14px;
  line-height: 1.55;
}

.action-row {
  margin-top: 10px;
}

.admin-dialog {
  width: min(1180px, calc(100% - 20px));
}

.admin-manager {
  display: grid;
  grid-template-columns: minmax(310px, 0.85fr) minmax(420px, 1.15fr);
  gap: 14px;
  align-items: start;
}

.admin-list-panel,
.admin-edit-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 14px;
}

.admin-list-panel {
  position: sticky;
  top: 70px;
}

.list-count {
  margin: 8px 0 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-rows {
  display: grid;
  gap: 6px;
  max-height: 54dvh;
  overflow: auto;
  padding-right: 4px;
}

.admin-list-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 54px;
  gap: 8px;
  align-items: center;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafafa;
  padding: 9px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.admin-list-item.selected {
  border-color: var(--brand);
  background: #eff6ff;
}

.item-no {
  display: inline-grid;
  place-items: center;
  min-height: 30px;
  border-radius: 10px;
  background: #eef2ff;
  color: #1e3a8a;
  font-size: 13px;
  font-weight: 900;
}

.item-main {
  min-width: 0;
}

.item-main strong,
.item-main small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-main strong {
  font-size: 14px;
}

.item-main small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.item-state {
  justify-self: end;
  padding: 3px 6px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: 11px;
  font-weight: 900;
}

.item-state.off {
  background: #f3f4f6;
  color: #6b7280;
}

.edit-form {
  display: grid;
  gap: 12px;
}

.edit-form label span {
  display: block;
  margin-bottom: 7px;
  color: #374151;
  font-size: 13px;
  font-weight: 800;
}

.edit-form textarea {
  min-height: 150px;
  padding: 12px 14px;
  resize: vertical;
}

.edit-title-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.switch-wrap.compact {
  min-height: auto;
}

.row-actions.wide {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.row-actions.wide button:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.edit-empty {
  padding: 28px 12px;
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}

.edit-empty.small {
  padding: 16px 8px;
  font-size: 13px;
}

@media (max-width: 900px) {
  .admin-manager {
    grid-template-columns: 1fr;
  }

  .admin-list-panel {
    position: static;
  }

  .admin-rows {
    max-height: 34dvh;
  }
}


/* v3: 상단 문구 최소화 */
.topbar {
  margin-bottom: 6px;
  gap: 8px;
}
.topbar h1 {
  margin: 0;
  font-size: clamp(12px, 1.8vw, 17px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.topbar .subtitle,
.topbar .eyebrow {
  display: none;
}
@media (max-width: 760px) {
  .app-shell { padding-top: 6px; }
  .topbar { margin-bottom: 5px; }
  .topbar h1 { font-size: 12px; }
}

/* v5: 관리자 테이블 직접 편집 */
.table-toolbar {
  display: grid;
  grid-template-columns: 90px minmax(180px, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.admin-table-wrap {
  max-height: 62dvh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.admin-video-table {
  width: 100%;
  min-width: 980px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.admin-video-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 9px 8px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
  color: #374151;
  text-align: left;
  font-weight: 900;
}

.admin-video-table tbody td {
  padding: 6px;
  border-bottom: 1px solid #eef2f7;
  vertical-align: middle;
}

.admin-video-table tbody tr.today-row td {
  background: #eff6ff;
}

.admin-video-table .text-input {
  width: 100%;
  min-height: 36px;
  padding: 7px 9px;
  border-radius: 9px;
  font-size: 12px;
}

.admin-video-table textarea.text-input {
  min-height: 42px;
  resize: vertical;
}

.col-no { width: 64px; text-align: center; }
.col-active { width: 54px; text-align: center; }
.col-actions { width: 130px; white-space: nowrap; }

.mini-btn,
.mini-danger {
  min-height: 28px;
  padding: 4px 7px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.mini-btn:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.mini-danger {
  border-color: #fecaca;
  color: #b91c1c;
}

@media (max-width: 760px) {
  .table-toolbar {
    grid-template-columns: 1fr;
  }
  .admin-table-wrap {
    max-height: 58dvh;
  }
}

/* v6: 날짜 이동 한 줄 고정 + 제목/설명을 유튜브처럼 영상 바로 아래 배치 */
.watch-layout {
  grid-template-columns: minmax(0, 1fr) minmax(190px, 220px);
  align-items: start;
  gap: 12px;
}

.video-column {
  min-width: 0;
}

.video-card {
  overflow: hidden;
  border-radius: 18px;
  background: #020617;
}

.video-stage {
  position: relative;
  overflow: hidden;
  background: #020617;
}

.video-info-card {
  margin-top: 8px;
  padding: 9px 12px 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.video-info-card h2 {
  margin: 0 0 4px;
  color: var(--text);
  font-size: clamp(15px, 1.55vw, 18px);
  line-height: 1.35;
  letter-spacing: -0.02em;
  font-weight: 900;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.video-info-card p {
  margin: 0;
  color: #4b5563;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-line;
}

.hashtag-link {
  color: var(--brand);
  font-weight: 900;
  text-decoration: none;
}

.hashtag-link:hover,
.hashtag-link:focus-visible {
  text-decoration: underline;
}

.today-card {
  min-height: auto;
  justify-content: flex-start;
  gap: 10px;
  padding: 10px;
  border-radius: 18px;
}

.date-line {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  width: 100%;
  gap: 5px;
  margin-bottom: 0;
}

.date-line span {
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
  min-height: 30px;
  padding: 3px 6px;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.day-nav-btn {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  min-width: 30px;
  line-height: 1;
  font-size: 21px;
}

.today-card .action-row {
  display: grid;
  grid-template-columns: 1fr;
  flex-wrap: nowrap;
  gap: 8px;
  width: 100%;
  margin-top: 0;
}

.today-card .primary-btn,
.today-card .secondary-btn {
  width: 100%;
  min-height: 36px;
  padding: 0 8px;
  border-radius: 12px;
  font-size: 12px;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .watch-layout {
    grid-template-columns: 1fr;
  }

  .video-info-card {
    padding: 8px 10px 10px;
  }

  .video-info-card h2 {
    font-size: 15px;
  }

  .today-card .action-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 420px) {
  .today-card .action-row {
    grid-template-columns: 1fr;
  }
}


/* v6: 우측 날짜 한 줄 고정 + 유튜브형 영상 하단 제목/설명 + 해시태그 링크 */
.watch-layout {
  grid-template-columns: minmax(0, 1fr) minmax(190px, 220px);
  gap: 12px;
  align-items: start;
}

.video-column {
  min-width: 0;
}

.video-card {
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
}

.video-stage {
  position: relative;
  overflow: hidden;
  background: #020617;
}

.video-ratio {
  min-height: auto;
  aspect-ratio: 16 / 9;
}

.video-info-card {
  margin-top: 8px;
  padding: 8px 12px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(12px);
}

.video-info-card h2 {
  margin: 0 0 5px;
  font-size: clamp(15px, 1.7vw, 20px);
  line-height: 1.32;
  letter-spacing: -0.02em;
  font-weight: 900;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.video-info-card p {
  margin: 0;
  color: #374151;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-line;
}

.hashtag-link {
  color: var(--brand);
  font-weight: 900;
  text-decoration: none;
}

.hashtag-link:hover {
  text-decoration: underline;
}

.today-card {
  justify-content: flex-start;
  gap: 10px;
  min-height: auto;
  padding: 10px;
  border-radius: 18px;
}

.date-line {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  width: 100%;
  gap: 6px;
  margin-bottom: 0;
}

.date-line span {
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  padding: 4px 6px;
}

.day-nav-btn {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  line-height: 1;
  font-size: 22px;
}

.today-card .action-row {
  display: grid;
  grid-template-columns: 1fr;
  flex-wrap: nowrap;
  gap: 8px;
  width: 100%;
  margin-top: 0;
}

.today-card .primary-btn,
.today-card .secondary-btn {
  width: 100%;
  min-height: 36px;
  padding: 0 8px;
  border-radius: 12px;
  font-size: 12px;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .watch-layout {
    grid-template-columns: 1fr;
  }

  .video-info-card {
    padding: 8px 10px 10px;
  }

  .video-info-card h2 {
    font-size: 15px;
  }

  .today-card .action-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 420px) {
  .today-card .action-row {
    grid-template-columns: 1fr;
  }
}


/* v8: 시청완료 공유 팝업 */
.share-dialog {
  width: min(520px, calc(100% - 24px));
  max-height: min(86dvh, 720px);
  padding: 0;
  border: 0;
  border-radius: 24px;
  box-shadow: var(--shadow);
  color: var(--text);
}

.share-dialog::backdrop {
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(6px);
}

.share-dialog .eyebrow {
  color: var(--brand);
}

.share-section {
  padding: 8px 24px 24px;
}

.share-section h2 {
  margin-bottom: 8px;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.share-textarea {
  width: 100%;
  min-height: 120px;
  margin-top: 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  outline: none;
  resize: vertical;
}

.share-textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.share-preview {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
  color: #374151;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.share-actions {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 8px;
  margin-top: 14px;
}

.share-actions .primary-btn,
.share-actions .secondary-btn {
  width: 100%;
}

@media (max-width: 420px) {
  .share-actions {
    grid-template-columns: 1fr;
  }
}
