:root {
  color-scheme: light;
  --bg-primary: #FFFFFF;
  --bg-secondary: #F4F6F9;
  --bg-card: #FFFFFF;
  --bg-elevated: #EEF1F5;
  --bg-input: #F4F6F8;
  --surface-header: rgba(255,255,255,0.92);
  --surface-nav: rgba(255,255,255,0.96);
  --bg: #F4F6F9;
  --text: #1C1D20;

  --pink: #FE2C55;
  --pink-light: #FF6B8A;
  --pink-soft: rgba(254,44,85,0.12);
  --pink-glow: rgba(254,44,85,0.3);

  --cyan: #25F4EE;
  --cyan-soft: rgba(37,244,238,0.1);

  --gold: #FFD700;
  --gold-light: #FFE566;

  --text-primary: #17181B;
  --text-secondary: #5F646D;
  --text-muted: #8D939D;

  --border: rgba(23,24,27,0.09);
  --border-light: rgba(23,24,27,0.15);

  --success: #00D26A;
  --danger: #FE2C55;
  --live-red: #FE2C55;

  --accent-orange: #FF9500;
  --accent-purple: #BF5AF2;
  --accent-teal: #25F4EE;
  --accent-pink: #FE2C55;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  --font: -apple-system,'SF Pro Display','PingFang SC','Hiragino Sans GB','Microsoft YaHei',system-ui,sans-serif;
  --shadow-xs: 0 1px 2px rgba(23,24,27,0.06);
  --shadow-sm: 0 4px 14px rgba(23,24,27,0.07);
  --shadow-md: 0 10px 28px rgba(23,24,27,0.10);
  --shadow-lg: 0 18px 48px rgba(23,24,27,0.14);
  --shadow-pink: 0 4px 20px var(--pink-glow);

  --ease-out: cubic-bezier(0.2, 0, 0, 1);
  --ease-spring: cubic-bezier(0.34, 1.2, 0.64, 1);
  --dur-fast: 120ms;
  --dur-normal: 240ms;
  --dur-slow: 360ms;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg-primary: #000000;
  --bg-secondary: #121212;
  --bg-card: #1A1A1A;
  --bg-elevated: #242424;
  --bg-input: rgba(255,255,255,0.08);
  --surface-header: rgba(0,0,0,0.85);
  --surface-nav: rgba(18,18,18,0.95);
  --bg: #0D0D12;
  --text: #FFFFFF;
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255,255,255,0.65);
  --text-muted: rgba(255,255,255,0.4);
  --border: rgba(255,255,255,0.08);
  --border-light: rgba(255,255,255,0.12);
  --shadow-xs: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.6);
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html {
  width:100%; max-width:100%; overflow-x:hidden;
  scroll-behavior: smooth;
  overscroll-behavior: none;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}
body {
  width:100%; max-width:100%; overflow-x:hidden;
  overscroll-behavior-y: none;
  -webkit-overflow-scrolling: touch;
  user-select: none;
  -webkit-user-select: none;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--bg-secondary);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100dvh;
}
input, textarea, [contenteditable], .selectable { user-select: text; -webkit-user-select: text; }
input, button, select, textarea { font: inherit; color: inherit; }
a { color: var(--pink); text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; background: none; border: none; }

.svg-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.svg-icon svg { width: 100%; height: 100%; }

.app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg-primary);
  position: relative;
  width: 100%;
  padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  animation: pageEnter var(--dur-normal) var(--ease-out) both;
  will-change: opacity, transform;
}
.app.page-exit {
  animation: pageExit var(--dur-fast) var(--ease-out) forwards;
  pointer-events: none;
}
@keyframes pageEnter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pageExit { to { opacity: 0; transform: translateY(-6px); } }

.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface-header);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  height: 52px;
  display: flex; align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
}
.topbar__back {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-primary);
}
.topbar__back:active { background: var(--bg-elevated); }
.topbar__title {
  flex: 1; text-align: center;
  font-size: 17px; font-weight: 600;
}
.topbar__right { display: flex; align-items: center; gap: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 28px;
  border-radius: var(--radius);
  font-size: 16px; font-weight: 700;
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast), box-shadow var(--dur-normal);
  cursor: pointer; border: none;
  white-space: nowrap;
  letter-spacing: 0.5px;
  -webkit-touch-callout: none;
  will-change: transform;
}
.btn:active, .btn.is-pressed { transform: scale(0.96); opacity: 0.88; }
.btn:disabled { opacity: .35; pointer-events: none; }
.btn--block { width: 100%; }
.btn--blue, .btn--gold {
  background: var(--pink);
  color: #FFFFFF;
  box-shadow: var(--shadow-pink);
}
.btn--blue:active, .btn--gold:active { opacity: .85; }
.btn--ghost {
  background: transparent;
  color: var(--pink);
  border: 1.5px solid rgba(254,44,85,0.4);
}
.btn--sm { height: 36px; padding: 0 16px; font-size: 13px; border-radius: var(--radius-sm); }
.btn--danger { background: var(--danger); color: #fff; }

.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}

.field { display: block; margin-bottom: 20px; }
.field__label {
  display: block;
  font-size: 13px; font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.input {
  width: 100%; height: 50px;
  padding: 0 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-input);
  font-size: 15px;
  color: var(--text-primary);
  outline: none;
  transition: border-color .25s, box-shadow .25s;
}
.input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px var(--pink-soft);
  background: var(--bg-card);
}
.input::placeholder { color: var(--text-muted); }

.msg {
  text-align: center; padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px; font-size: 13px;
  display: none;
  font-weight: 500;
}
.msg-err { background: var(--pink-soft); color: var(--pink); display: block; }
.msg-ok { background: rgba(0,210,106,0.1); color: var(--success); display: block; }

.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  max-width: 480px; margin: 0 auto;
  height: calc(64px + env(safe-area-inset-bottom, 0px));
  background: var(--surface-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  padding: 6px 14px calc(6px + env(safe-area-inset-bottom, 0px));
  z-index: 100;
  transform: translateZ(0);
  box-shadow: 0 -6px 24px rgba(23,24,27,0.05);
}
.nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  text-decoration: none;
  color: var(--text-muted);
  transition: transform var(--dur-fast) var(--ease-out), color var(--dur-normal),
    background-color var(--dur-normal);
  min-width: 0;
  min-height: 52px;
  border-radius: 8px;
  -webkit-touch-callout: none;
}
.nav-item:active, .nav-item.is-pressed {
  transform: scale(0.95);
  color: var(--text-primary);
  background: var(--bg-elevated);
}
.nav-item .nav-icon {
  width: 30px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  transition: background-color var(--dur-normal), color var(--dur-normal),
    box-shadow var(--dur-normal);
}
.nav-item .nav-icon .svg-icon { width: 24px; height: 24px; }
.nav-item .nav-label {
  max-width: 100%;
  font-size: 11px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
}
.nav-item.active {
  color: var(--pink);
  background: var(--pink-soft);
}
.nav-item.center-btn { margin-top: 0; }
.nav-item.center-btn .nav-icon {
  width: 44px; height: 32px;
  background: var(--pink);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  position: relative;
  box-shadow: 0 5px 14px rgba(254,44,85,0.24);
}
.nav-item.center-btn .nav-icon .svg-icon { width: 20px; height: 20px; position: relative; z-index: 3; }
.nav-item.center-btn .nav-label { display: block; color: var(--text-secondary); }

.content-tabs {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
}
.content-tab {
  position: relative;
  min-width: 0;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 1px;
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  transition: color var(--dur-normal);
}
.content-tab:active { color: var(--text-primary); }
.content-tab.active {
  color: var(--text-primary);
  font-weight: 800;
}
.content-tab.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--pink);
}

.badge-live {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px;
  background: var(--live-red);
  color: #fff;
  font-size: 10px; font-weight: 700;
  border-radius: 4px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.badge-live::before {
  content: ''; width: 6px; height: 6px;
  background: #fff; border-radius: 50%;
  animation: livePulse 1.5s ease-in-out infinite;
}
@keyframes livePulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .3; transform: scale(0.7); } }

.badge-count {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  color: rgba(255,255,255,0.9);
  font-size: 11px; font-weight: 500;
  border-radius: 4px;
}
.badge-count .svg-icon { width: 14px; height: 14px; }

.modal {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  z-index: 1000;
  align-items: center; justify-content: center;
  padding: 24px;
  animation: fadeIn var(--dur-normal) var(--ease-out);
}
.modal.show { display: flex; }
.modal__box {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  width: 100%; max-width: 320px;
  padding: 28px 24px;
  box-shadow: var(--shadow-lg);
  animation: modalUp var(--dur-normal) var(--ease-spring) both;
  transform: translateZ(0);
}
.modal__title {
  font-size: 18px; font-weight: 600;
  text-align: center; margin-bottom: 12px;
}
.modal__body {
  font-size: 14px; color: var(--text-secondary);
  text-align: center; line-height: 1.7;
  margin-bottom: 20px;
}

@keyframes modalUp { from { opacity: 0; transform: translateY(16px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { 0% { background-position: -200px 0; } 100% { background-position: 200px 0; } }

.fade-in { animation: fadeIn .35s ease both; }
.fade-up { animation: fadeUp .4s cubic-bezier(.4,0,.2,1) both; }

.empty {
  text-align: center; padding: 60px 20px;
  color: var(--text-muted);
}
.empty__icon {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  color: var(--text-muted);
  opacity: .25;
}
.empty__icon .svg-icon { width: 56px; height: 56px; }
.empty__text { font-size: 14px; }

.spinner {
  width: 28px; height: 28px;
  border: 2.5px solid rgba(28,29,32,0.12);
  border-top-color: var(--pink);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

.divider { height: 1px; background: var(--border); margin: 0; border: none; }

::-webkit-scrollbar { width: 0; height: 0; }
button, a, .nav-item, .card, .pressable, .feed-action, .publish-btn, .page-header .back, .recharge-item, .publish-tool, .feed-card {
  touch-action: manipulation;
}

.pressable, .feed-action, .publish-btn, .page-header .back, .recharge-item, .publish-tool {
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast), background var(--dur-normal);
  -webkit-touch-callout: none;
}
.pressable:active, .pressable.is-pressed,
.feed-action:active, .feed-action.is-pressed,
.publish-btn:active, .publish-btn.is-pressed,
.page-header .back:active, .page-header .back.is-pressed,
.recharge-item:active, .recharge-item.is-pressed,
.publish-tool:active, .publish-tool.is-pressed {
  transform: scale(0.96);
  opacity: 0.85;
}

.page-header {
  position: sticky; top: 0; z-index: 50;
  height: calc(48px + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  display: flex; align-items: center;
  padding-left: calc(16px + env(safe-area-inset-left, 0px));
  padding-right: calc(16px + env(safe-area-inset-right, 0px));
  background: var(--surface-header);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.page-header .back {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-primary); cursor: pointer; border-radius: 50%;
}
.page-header .back:active { background: var(--bg-elevated); }

.bc-page,
.live-page {
  --bg-primary: #000000;
  --bg-secondary: #121212;
  --bg-card: #1A1A1A;
  --bg-elevated: #242424;
  --bg-input: rgba(255,255,255,0.08);
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255,255,255,0.65);
  --text-muted: rgba(255,255,255,0.4);
  --border: rgba(255,255,255,0.08);
  --border-light: rgba(255,255,255,0.12);
  color: #FFFFFF;
}

.sheet-panel {
  transform: translateY(100%);
  transition: transform var(--dur-normal) var(--ease-out);
  will-change: transform;
}
.sheet-panel.show, .sheet-overlay.show .sheet-panel { transform: translateY(0); }

.scroll-area {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.status-offline {
  display: inline-flex; align-items: center;
  padding: 3px 8px;
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-size: 10px; font-weight: 600;
  border-radius: 4px;
}

.loading-wrap {
  display: flex; align-items: center; justify-content: center;
  padding: 60px 0;
}

@media (min-width: 481px) and (max-width: 768px) {
  .app { box-shadow: 0 0 80px rgba(0,0,0,0.5); }
}

@media (min-width: 769px) {
  .app {
    max-width: 100%;
    padding-bottom: 0;
    padding-left: 220px;
  }
  .bottom-nav {
    position: fixed; left: 0; top: 0; bottom: 0; right: auto;
    width: 220px; max-width: 220px;
    height: 100vh;
    flex-direction: column;
    padding: 16px 0 0;
    gap: 2px;
    border-top: none;
    border-right: 1px solid var(--border);
    background: var(--bg-primary);
    justify-content: flex-start;
    overflow-y: auto;
    z-index: 200;
  }
  .bottom-nav::before {
    content: '星耀直播';
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 900;
    color: var(--text-primary);
    padding: 8px 24px 32px;
    letter-spacing: 0;
  }
  .nav-item {
    flex: 0;
    flex-direction: row;
    justify-content: flex-start;
    gap: 16px;
    padding: 14px 24px;
    margin: 0 8px;
    border-radius: 10px;
    transition: background .15s, color .15s;
    border-left: none;
  }
  .nav-item:hover { background: var(--bg-elevated); color: var(--text-primary); }
  .nav-item.active { background: var(--pink-soft); color: var(--text-primary); }
  .nav-item .nav-label { font-size: 15px; font-weight: 600; display: block; }
  .nav-item .nav-icon { width: 24px; height: 24px; }
  .nav-item .nav-icon .svg-icon { width: 24px; height: 24px; }
  .nav-item.center-btn { margin-top: 8px; }
  .nav-item.center-btn .nav-icon {
    width: 24px; height: 24px;
    background: var(--pink); border-radius: 8px; color: #fff;
    box-shadow: none;
  }
  .nav-item.center-btn .nav-icon .svg-icon { width: 16px; height: 16px; }
  .nav-item.center-btn .nav-label { display: block; }

  .topbar { padding-left: 32px; padding-right: 32px; }
  .page-header { padding: 0 32px; }
  .empty { padding: 100px 20px; }
}

@media (min-width: 1200px) {
  .app { padding-left: 240px; }
  .bottom-nav { width: 240px; max-width: 240px; }
}

body,
.app,
.topbar,
.page-header,
.bottom-nav,
.card,
.menu-list,
.stats-row,
.feed-card,
.faq-item,
.contact-section,
.history-item,
.recharge-item {
  transition: background-color var(--dur-normal), color var(--dur-normal),
    border-color var(--dur-normal), box-shadow var(--dur-normal);
}

html[data-theme="dark"] body { background: var(--bg-primary); }
html[data-theme="dark"] .topbar,
html[data-theme="dark"] .page-header { background: var(--surface-header); }
html[data-theme="dark"] .bottom-nav { background: var(--surface-nav); }
html[data-theme="dark"] .nav-item.active { color: #FFFFFF; }
html[data-theme="dark"] .nav-item.center-btn .nav-icon {
  background: var(--pink);
  color: #FFFFFF;
}
html[data-theme="dark"] .nav-item.center-btn .nav-label { color: var(--text-secondary); }
html[data-theme="dark"] .card {
  border-color: transparent;
  box-shadow: none;
}

@media (min-width: 769px) {
  html[data-theme="dark"] .bottom-nav {
    background: #0A0A0F;
    border-right-color: rgba(255,255,255,0.06);
  }
  html[data-theme="dark"] .bottom-nav::before { color: #FFFFFF; }
}

html[data-theme="light"] .home-tab.active,
html[data-theme="light"] .msg-tab.active {
  color: var(--text-primary) !important;
}
html[data-theme="light"] .home-header,
html[data-theme="light"] .discover-header,
html[data-theme="light"] .msg-header,
html[data-theme="light"] .msg-tabs,
html[data-theme="light"] .page-header,
html[data-theme="light"] .page-top,
html[data-theme="light"] .topbar {
  background: var(--surface-header) !important;
  border-color: var(--border) !important;
  color: var(--text-primary) !important;
}
html[data-theme="light"] .page-header .back,
html[data-theme="light"] .page-top .back,
html[data-theme="light"] .page-top .title,
html[data-theme="light"] .topbar__back {
  color: var(--text-primary) !important;
}
html[data-theme="light"] .filter-btn {
  background: var(--bg-card) !important;
  border-color: var(--border) !important;
  color: var(--text-secondary) !important;
}
html[data-theme="light"] .filter-btn.active {
  background: var(--pink) !important;
  border-color: var(--pink) !important;
  color: #FFFFFF !important;
}
html[data-theme="light"] .feed-card {
  background: var(--bg-card) !important;
  border-color: var(--border) !important;
  border-radius: 8px !important;
  box-shadow: var(--shadow-sm);
}
html[data-theme="light"] .feed-card__content,
html[data-theme="light"] .aud__title,
html[data-theme="light"] .media-preview .file-info .name {
  color: var(--text-primary) !important;
}
html[data-theme="light"] .feed-action {
  color: var(--text-secondary) !important;
}
html[data-theme="light"] .feed-action:active,
html[data-theme="light"] .msg-item:active {
  background: var(--bg-elevated) !important;
}
html[data-theme="light"] .aud {
  background: var(--bg-card) !important;
  border-color: var(--border) !important;
  box-shadow: var(--shadow-xs) !important;
}
html[data-theme="light"] .aud__track {
  background: var(--bg-elevated) !important;
}
html[data-theme="light"] .aud__time,
html[data-theme="light"] .aud__state {
  color: var(--text-muted) !important;
}
html[data-theme="light"] .aud.playing .aud__state {
  color: var(--pink) !important;
}
html[data-theme="light"] .aud__fs-btn {
  background: var(--bg-card) !important;
  border-color: var(--border) !important;
  color: var(--text-secondary) !important;
}
html[data-theme="light"] .stats-row,
html[data-theme="light"] .menu-list,
html[data-theme="light"] .faq-item,
html[data-theme="light"] .contact-section,
html[data-theme="light"] .history-item,
html[data-theme="light"] .recharge-item {
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}
html[data-theme="light"] .form-item input {
  color: var(--text-primary) !important;
}

html[data-theme="light"] .login-page,
html[data-theme="light"] .login-wrap {
  background: var(--bg-secondary) !important;
  color: var(--text-primary) !important;
}
html[data-theme="light"] .login-bg {
  background: none !important;
}
html[data-theme="light"] .deco {
  display: none !important;
}
html[data-theme="light"] .login-card {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  padding: 32px 28px !important;
  box-shadow: var(--shadow-md) !important;
}
html[data-theme="light"] .login-head h2,
html[data-theme="light"] .login-logo h1 {
  color: var(--text-primary) !important;
  letter-spacing: 0 !important;
}
html[data-theme="light"] .login-head p,
html[data-theme="light"] .login-footer {
  color: var(--text-muted) !important;
}
html[data-theme="light"] .field input,
html[data-theme="light"] .login-card .input {
  background: var(--bg-input) !important;
  border-color: var(--border) !important;
  color: var(--text-primary) !important;
}
html[data-theme="light"] .field input::placeholder,
html[data-theme="light"] .login-card .input::placeholder {
  color: var(--text-muted) !important;
}
html[data-theme="light"] .login-page .login-card > button.submit-btn {
  background: var(--bg-elevated) !important;
  border-color: var(--border) !important;
  color: var(--text-primary) !important;
}

html[data-theme="light"] .page {
  background: var(--bg-secondary) !important;
  color: var(--text-primary) !important;
}
html[data-theme="light"] .text-area,
html[data-theme="light"] .type-tab,
html[data-theme="light"] .media-pick-area,
html[data-theme="light"] .media-preview,
html[data-theme="light"] .media-preview .file-info,
html[data-theme="light"] .field-row input[type="text"],
html[data-theme="light"] .cover-picker,
html[data-theme="light"] .sort-card,
html[data-theme="light"] .sort-card__head,
html[data-theme="light"] .item-row,
html[data-theme="light"] .form-bar input,
html[data-theme="light"] .item-form input {
  background: var(--bg-card) !important;
  border-color: var(--border) !important;
  color: var(--text-primary) !important;
}
html[data-theme="light"] .section-label,
html[data-theme="light"] .field-row label,
html[data-theme="light"] .media-pick-area .pick-text,
html[data-theme="light"] .cover-picker .hint,
html[data-theme="light"] .drag-handle,
html[data-theme="light"] .item-form-actions .cancel {
  color: var(--text-muted) !important;
}
html[data-theme="light"] .item-form-actions .cancel {
  background: var(--bg-elevated) !important;
}
