:root {
  --bg: #d5d5d5;
  --surface: rgba(255, 255, 255, 0.66);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --surface-hover: rgba(255, 255, 255, 0.92);
  --surface-soft: rgba(255, 255, 255, 0.42);
  --text: #151515;
  --text-soft: #666666;
  --text-faint: #969696;
  --line: rgba(17, 17, 17, 0.12);
  --line-strong: rgba(17, 17, 17, 0.22);
  --accent: #ffe28a;
  --accent-soft: rgba(255, 226, 138, 0.34);
  --green: #13e0bc;
  --green-soft: rgba(19, 224, 188, 0.16);
  --danger: #d84c4c;
  --danger-soft: rgba(216, 76, 76, 0.13);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 26px 60px rgba(0, 0, 0, 0.18);
  --radius: 22px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
}

html[data-theme="dark"] {
  --bg: #141414;
  --surface: rgba(255, 255, 255, 0.07);
  --surface-strong: rgba(30, 30, 30, 0.94);
  --surface-hover: rgba(255, 255, 255, 0.12);
  --surface-soft: rgba(255, 255, 255, 0.05);
  --text: #f2f2f2;
  --text-soft: #a6a6a6;
  --text-faint: #7c7c7c;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --accent: #ffe28a;
  --accent-soft: rgba(255, 226, 138, 0.16);
  --green: #13e0bc;
  --green-soft: rgba(19, 224, 188, 0.14);
  --danger: #ff6b6b;
  --danger-soft: rgba(255, 107, 107, 0.15);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 26px 70px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  color: var(--text);
  background: var(--bg);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-size-adjust: none;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 88% 4%, var(--accent-soft), transparent 32rem),
    radial-gradient(circle at 4% 80%, rgba(19, 224, 188, 0.12), transparent 28rem),
    var(--bg);
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

body::before {
  width: 36vmax;
  height: 36vmax;
  right: -12vmax;
  top: -14vmax;
  background: radial-gradient(circle, rgba(255, 226, 138, 0.5), rgba(255, 226, 138, 0));
  animation: float-a 22s ease-in-out infinite alternate;
}

body::after {
  width: 30vmax;
  height: 30vmax;
  left: -10vmax;
  bottom: -12vmax;
  background: radial-gradient(circle, rgba(19, 224, 188, 0.22), rgba(19, 224, 188, 0));
  animation: float-b 26s ease-in-out infinite alternate;
}

@keyframes float-a {
  to {
    transform: translate(-6vmax, 8vmax) scale(1.08);
  }
}

@keyframes float-b {
  to {
    transform: translate(7vmax, -6vmax) scale(1.06);
  }
}

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

button {
  cursor: pointer;
}

a {
  color: inherit;
}

::selection {
  color: #111;
  background: var(--accent);
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  border: 3px solid var(--bg);
  border-radius: 999px;
  background: rgba(120, 120, 120, 0.55);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 74%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(22px) saturate(1.3);
}

.header-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  color: #151515;
  background: var(--accent);
  font-size: 20px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.brand h1 {
  margin: 0;
  font-size: 17px;
  letter-spacing: 0.08em;
}

.brand p {
  margin: 3px 0 0;
  color: var(--text-soft);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-actions,
.week-switcher,
.toolbar-right,
.filters,
.form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.page {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 40px 0 72px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(24px) saturate(1.2);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% 20% auto auto;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 68%);
  pointer-events: none;
}

.hero-top {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #0a9b82;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
}

html[data-theme="dark"] .eyebrow {
  color: var(--green);
}

.hero h2 {
  margin: 0;
  font-size: clamp(36px, 6vw, 70px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.week-range {
  margin: 14px 0 0;
  color: var(--text-soft);
  font-size: 14px;
  letter-spacing: 0.02em;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: var(--surface-soft);
  font-size: 20px;
  transition:
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.icon-button:hover {
  border-color: var(--line-strong);
  color: #151515;
  background: var(--accent);
  transform: translateY(-1px);
}

.theme-toggle {
  font-size: 19px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition:
    transform 0.2s var(--ease),
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.button:active {
  transform: translateY(1px);
}

.button-primary {
  color: #151515;
  background: var(--accent);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.13);
}

.button-primary:hover {
  background: #ffedb7;
}

.button-ghost {
  border-color: var(--line);
  color: var(--text);
  background: var(--surface-soft);
}

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

.button-danger {
  color: #fff;
  background: var(--danger);
}

.button-danger:hover {
  background: #bd3434;
}

.stats-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
  margin-top: 32px;
}

.stat-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface-soft);
  backdrop-filter: blur(12px);
  transition:
    background 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.stat-card:hover {
  background: var(--surface-hover);
  transform: translateY(-2px);
}

.stat-label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-soft);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.stat-card strong {
  font-size: 28px;
  letter-spacing: -0.03em;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 28px 0 18px;
  flex-wrap: wrap;
}

.filter-chip {
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-soft);
  background: var(--surface-soft);
  font-size: 13px;
  font-weight: 700;
  transition:
    background 0.25s var(--ease),
    color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

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

.filter-chip.is-active {
  border-color: #151515;
  color: #151515;
  background: var(--accent);
}

html[data-theme="dark"] .filter-chip.is-active {
  border-color: var(--accent);
  color: #151515;
}

.select-wrap select,
.search-wrap input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--text);
  background: var(--surface-soft);
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: "⌄";
  position: absolute;
  top: 50%;
  right: 13px;
  transform: translateY(-50%);
  color: var(--text-soft);
  pointer-events: none;
}

.select-wrap select {
  appearance: none;
  min-width: 126px;
  padding: 0 38px 0 14px;
}

.search-wrap input {
  width: min(290px, 42vw);
  padding: 0 14px;
}

select:focus,
input:focus,
textarea:focus {
  outline: none;
  border-color: var(--text);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

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

.day-group {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  backdrop-filter: blur(22px) saturate(1.15);
}

.day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 21px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.day-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.day-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.day-date {
  color: var(--text-soft);
  font-size: 13px;
}

.day-count {
  color: var(--text-faint);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.share-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1px;
  background: var(--line);
}

.share-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 224px;
  padding: 21px;
  background: var(--surface-strong);
  transition:
    background 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.share-card:hover {
  background: var(--surface-hover);
}

.share-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 0;
  border-radius: 0 4px 4px 0;
  background: var(--accent);
  transform: translateY(-50%);
  transition: height 0.35s var(--ease);
}

.share-card:hover::after {
  height: 44%;
}

.share-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.time {
  color: #0a9b82;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

html[data-theme="dark"] .time {
  color: var(--green);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge-pending {
  color: #9a6907;
  background: rgba(255, 226, 138, 0.42);
}

.badge-done {
  color: #0a9b82;
  background: var(--green-soft);
}

.badge-cancelled {
  color: var(--danger);
  background: var(--danger-soft);
}

.share-card h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.38;
  letter-spacing: -0.015em;
}

.share-card p {
  flex: 1;
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.share-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 12px;
  color: var(--text-soft);
  font-size: 13px;
}

.share-meta .person {
  color: var(--text);
  font-weight: 800;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  padding: 4px 8px;
  border-radius: 7px;
  color: var(--text-soft);
  background: var(--surface-soft);
  font-size: 11px;
}

.share-card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.card-button {
  min-height: 33px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text-soft);
  background: var(--surface-soft);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.card-button:hover {
  border-color: #151515;
  color: #151515;
  background: var(--accent);
}

html[data-theme="dark"] .card-button:hover {
  border-color: var(--accent);
}

.card-button.is-danger:hover {
  border-color: var(--danger);
  color: var(--danger);
  background: var(--danger-soft);
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 280px;
  padding: 30px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--text-soft);
  text-align: center;
  background: var(--surface);
  backdrop-filter: blur(22px);
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 21px;
  color: #151515;
  background: var(--accent);
  font-size: 28px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
}

.empty-state h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 20px;
}

.empty-state p {
  margin: 0;
  font-size: 14px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(10, 10, 10, 0.5);
  backdrop-filter: blur(10px);
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  width: min(700px, 100%);
  max-height: calc(100vh - 44px);
  overflow: auto;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  color: var(--text);
  background: var(--surface-strong);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(28px) saturate(1.2);
}

.modal-small {
  width: min(430px, 100%);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.modal-header h2,
.modal-small h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.modal-small p {
  margin: 0 0 22px;
  color: var(--text-soft);
  line-height: 1.65;
}

.share-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.form-row:first-child {
  grid-template-columns: 2fr 1fr;
}

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

.field span {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: var(--surface-soft);
}

.field textarea {
  min-height: 96px;
  padding: 11px 12px;
  resize: vertical;
}

.form-actions {
  justify-content: flex-end;
  margin-top: 8px;
}

.file-upload-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.file-status {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--text-soft);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-remove {
  color: var(--danger);
}

.field-hint {
  margin: 0;
  color: var(--text-faint);
  font-size: 12px;
  line-height: 1.5;
}

.preview-modal {
  width: min(980px, 100%);
}

.preview-body {
  display: grid;
  place-items: center;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface-soft);
}

.preview-frame {
  width: 100%;
  height: 70vh;
  border: 0;
  background: #fff;
}

.preview-image {
  display: block;
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
}

.preview-video {
  width: 100%;
  max-height: 70vh;
  background: #000;
}

.preview-audio {
  width: min(520px, 90%);
  padding: 28px;
}

.preview-text {
  align-self: stretch;
  width: 100%;
  min-height: 60vh;
  max-height: 70vh;
  margin: 0;
  padding: 24px;
  overflow: auto;
  color: #d6deeb;
  background: #0b1020;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.pptx-viewer {
  align-self: stretch;
  width: 100%;
  height: 70vh;
  padding: 20px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #0f172a;
}

.pptx-slide {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  color: #111;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.pptx-slide-number {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 4px 8px;
  border-radius: 7px;
  color: #6d28d9;
  background: #ede9fe;
  font-size: 12px;
  font-weight: 800;
}

.pptx-slide-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
  line-height: 1.55;
}

.pptx-slide-title {
  font-size: 18px;
  font-weight: 800;
}

.pptx-slide-text {
  color: #334155;
}

.preview-info {
  max-width: 520px;
  padding: 32px;
  text-align: center;
}

.preview-info .preview-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 20px;
  color: #151515;
  background: var(--accent);
  font-size: 28px;
}

.preview-info h3 {
  margin: 0 0 8px;
  color: var(--text);
}

.preview-info p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.6;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 80;
  max-width: min(430px, calc(100% - 40px));
  padding: 12px 17px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 13px;
  color: #fff;
  background: rgba(18, 18, 18, 0.88);
  box-shadow: var(--shadow-md);
  font-size: 14px;
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition:
    opacity 0.25s var(--ease),
    transform 0.25s var(--ease);
}

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

@media (max-width: 1024px) {
  .header-inner,
  .page {
    width: min(100% - 24px, 1180px);
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 0;
    gap: 12px;
  }

  .header-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .header-actions .button {
    flex: 1;
  }

  .theme-toggle {
    flex: 0 0 44px;
  }

  .hero {
    padding: 24px;
    border-radius: 24px;
  }

  .hero-top,
  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .week-switcher {
    width: 100%;
  }

  .week-switcher .button {
    flex: 1;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .toolbar-right {
    width: 100%;
    flex-wrap: wrap;
  }

  .search-wrap,
  .search-wrap input {
    flex: 1;
    width: 100%;
  }

  .form-row,
  .form-row:first-child {
    grid-template-columns: 1fr;
  }

  .share-list {
    grid-template-columns: 1fr;
  }
}

/* Allow long titles, filenames and flex/grid children to fit their containers. */
.page,
.modal,
.header-inner {
  overflow-wrap: anywhere;
}

.header-inner *,
.page *,
.modal * {
  min-width: 0;
}

@media (max-width: 1024px) {
  .button,
  .icon-button,
  .card-button,
  .filter-chip,
  .select-wrap select,
  .search-wrap input {
    min-height: 44px;
    min-width: 44px;
  }

  .icon-button {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
  }

  .brand-mark {
    flex-shrink: 0;
  }

  .filters {
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

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

  .filter-chip {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .share-card-actions,
  .form-actions,
  .day-header,
  .day-title,
  .share-card-top,
  .week-switcher {
    flex-wrap: wrap;
  }

  .card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field input,
  .field select,
  .field textarea,
  .search-wrap input,
  .select-wrap select {
    font-size: 16px;
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  html,
  body {
    overflow-x: hidden;
  }

  .header-inner,
  .hero,
  .toolbar,
  .share-list,
  .share-card,
  .stat-card,
  .day-header,
  .modal {
    min-width: 0;
  }

  .share-card,
  .modal,
  .preview-body,
  .pptx-viewer {
    max-width: 100%;
  }

  button,
  .button,
  .icon-button,
  .card-button,
  .filter-chip {
    min-height: 44px;
  }

  .site-header {
    position: relative;
  }

  .page {
    padding: 20px 0 40px;
  }

  .header-inner {
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .brand,
  .header-actions {
    width: 100%;
  }

  .header-actions .button {
    flex: 1 1 0;
    min-width: 0;
  }

  .hero {
    padding: 20px 16px;
  }

  .hero-top {
    flex-wrap: wrap;
  }

  .week-switcher {
    width: 100%;
    justify-content: space-between;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero h2 {
    font-size: clamp(28px, 9vw, 48px);
    line-height: 1.1;
  }

  .week-range,
  .share-card p,
  .share-meta {
    font-size: clamp(13px, 3.5vw, 15px);
  }

  .stat-card {
    padding: 14px 10px;
  }

  .stat-card strong {
    font-size: clamp(20px, 6vw, 28px);
  }

  .toolbar-right > label {
    flex: 1 1 100%;
  }

  .select-wrap select {
    width: 100%;
  }

  .share-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .day-header,
  .share-card {
    padding: 16px;
  }

  .share-card h3 {
    font-size: clamp(17px, 4.7vw, 20px);
  }

  .modal-overlay {
    padding: 8px;
  }

  .modal,
  .modal-small {
    width: 100%;
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
    padding: 18px 14px;
    border-radius: 18px;
  }

  .modal-header {
    gap: 12px;
  }

  .modal-header h2,
  .modal-small h2 {
    font-size: clamp(18px, 5vw, 22px);
  }

  .preview-body {
    min-height: 240px;
  }

  .preview-text,
  .preview-info,
  .pptx-viewer,
  .pptx-slide,
  .preview-audio {
    max-width: 100%;
    padding: 14px;
  }

  .file-status {
    flex-basis: 100%;
  }
}
