:root {
  color-scheme: dark;
  --bg: #090b0f;
  --panel: #11151b;
  --panel-2: #151a21;
  --panel-3: #1b212a;
  --line: #28313d;
  --line-soft: rgba(148, 163, 184, 0.18);
  --text: #f4f7fb;
  --muted: #96a3b4;
  --subtle: #6f7b8b;
  --teal: #2dd4bf;
  --teal-strong: #14b8a6;
  --amber: #f6b04a;
  --blue: #60a5fa;
  --danger: #fb7185;
  --success: #34d399;
  --radius: 8px;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

body[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f7fb;
  --panel: #ffffff;
  --panel-2: #f1f5f9;
  --panel-3: #e8eef6;
  --line: #d7dee8;
  --line-soft: rgba(15, 23, 42, 0.12);
  --text: #111827;
  --muted: #5f6b7a;
  --subtle: #7a8594;
  --teal: #0fafa3;
  --teal-strong: #0d9488;
  --amber: #d98922;
  --blue: #2563eb;
  --danger: #e11d48;
  --success: #059669;
  --shadow: 0 18px 42px rgba(15, 23, 42, 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(135deg, #080a0e 0%, #0c1016 46%, #111821 100%);
  background-size: 28px 28px, 28px 28px, auto;
}

body[data-theme="light"] {
  background:
    linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, #f8fafc 0%, #eef4fb 52%, #ffffff 100%);
  background-size: 28px 28px, 28px 28px, auto;
}

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

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 22px 16px;
  border-right: 1px solid var(--line);
  background: rgba(12, 16, 22, 0.94);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 8px;
  border-radius: var(--radius);
}

.brand-logo {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  object-fit: contain;
  background: #fff;
}

.brand-name {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-name strong {
  overflow: hidden;
  color: var(--text);
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-name span {
  color: var(--muted);
  font-size: 12px;
}

.nav-group {
  display: grid;
  gap: 6px;
}

.nav-label {
  padding: 0 10px;
  color: var(--subtle);
  font-size: 12px;
}

.nav-item {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: #cbd5e1;
  background: transparent;
  text-align: left;
}

.nav-item:hover,
.nav-item.active {
  border-color: var(--line);
  color: var(--text);
  background: #171d25;
}

.nav-item.active {
  box-shadow: inset 3px 0 0 var(--teal);
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: var(--teal);
}

.sidebar-card {
  margin-top: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #131922;
}

.sidebar-card strong {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
}

.sidebar-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.main {
  min-width: 0;
  padding: 22px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.title-block {
  display: grid;
  gap: 4px;
}

.title-block h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0;
}

.title-block p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.status-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #d7dee9;
  background: #121821;
  font-size: 12px;
  white-space: nowrap;
}

.chip::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  content: "";
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #d7dee9;
  background: #121821;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.theme-toggle svg {
  color: var(--amber);
}

.view { display: none; }
.view.active { display: block; }

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) 330px;
  gap: 16px;
  align-items: start;
}

.stack {
  display: grid;
  gap: 16px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 21, 27, 0.94);
  box-shadow: var(--shadow);
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 16px 0;
}

.panel-title {
  display: grid;
  gap: 4px;
}

.panel-title h2,
.panel-title h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: 0;
}

.panel-title p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.panel-body {
  padding: 16px;
}

.control-grid {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

label {
  color: #dce4ef;
  font-size: 13px;
  font-weight: 700;
}

textarea,
input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: #0e131a;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

textarea:focus,
input:focus,
select:focus {
  border-color: rgba(45, 212, 191, 0.78);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.12);
}

textarea {
  min-height: 170px;
  padding: 13px 14px;
  resize: vertical;
  line-height: 1.7;
}

input,
select {
  height: 42px;
  padding: 0 12px;
}

.prompt-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.tool-pill {
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #cbd5e1;
  background: #141a22;
  font-size: 12px;
}

.tool-pill:hover {
  border-color: rgba(45, 212, 191, 0.55);
  color: var(--text);
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0c1117;
}

.segmented button {
  min-height: 38px;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
}

.segmented button.active {
  color: #06201e;
  background: var(--teal);
}

.upload-box {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 246px;
  overflow: hidden;
  border: 1px dashed #3c4959;
  border-radius: var(--radius);
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.03) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.03) 25%, transparent 25%),
    #0e131a;
  background-size: 18px 18px;
}

.upload-box input {
  position: absolute;
  inset: 0;
  z-index: 2;
  height: auto;
  opacity: 0;
  cursor: pointer;
}

.upload-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  max-width: 320px;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.upload-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--teal);
  background: #151b23;
}

.upload-title {
  margin: 0;
  color: var(--text);
  font-weight: 900;
}

.upload-empty p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

.preview-grid {
  display: none;
  width: 100%;
  min-height: 246px;
  padding: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.preview-item {
  position: relative;
  min-height: 112px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #080b10;
}

.preview-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1;
}

.preview-item span {
  position: absolute;
  left: 8px;
  bottom: 8px;
  max-width: calc(100% - 16px);
  overflow: hidden;
  padding: 4px 7px;
  border-radius: 999px;
  color: #e5edf7;
  background: rgba(8, 11, 16, 0.76);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-add-more {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 5;
  display: none;
  min-height: 32px;
  padding: 7px 10px;
  border: 1px solid rgba(226, 232, 240, 0.24);
  border-radius: 999px;
  color: #eafffb;
  background: rgba(8, 11, 16, 0.72);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.preview-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 6;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(226, 232, 240, 0.22);
  border-radius: 999px;
  color: #fff;
  background: rgba(8, 11, 16, 0.72);
  font-size: 18px;
  line-height: 1;
}

.preview-remove:hover {
  background: rgba(251, 113, 133, 0.86);
}

.upload-box.has-image {
  border-style: solid;
}

.upload-box.has-image input {
  pointer-events: none;
}

.upload-box.has-image .upload-empty {
  display: none;
}

.upload-box.has-image .preview-grid {
  display: grid;
}

.upload-box.has-image .upload-add-more {
  display: inline-flex;
  align-items: center;
}

.settings-panel {
  position: sticky;
  top: 22px;
}

.setting-list {
  display: grid;
  gap: 13px;
}

.range-row {
  display: grid;
  gap: 8px;
}

.range-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

input[type="range"] {
  height: 6px;
  padding: 0;
  accent-color: var(--teal);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.submit,
.secondary,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border-radius: var(--radius);
  font-weight: 900;
}

.submit {
  flex: 1 1 180px;
  color: #05201d;
  background: linear-gradient(135deg, var(--teal), #73eadb);
}

.secondary {
  border: 1px solid var(--line);
  color: #dbe5f2;
  background: #151b23;
  padding: 0 14px;
}

.icon-button {
  width: 42px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: #151b23;
}

.message {
  display: none;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: #0e131a;
  font-size: 13px;
  line-height: 1.55;
}

.message.show { display: block; }
.message.success {
  border-color: rgba(52, 211, 153, 0.42);
  color: #b7f7d7;
  background: rgba(52, 211, 153, 0.08);
}
.message.error {
  border-color: rgba(251, 113, 133, 0.48);
  color: #fecdd3;
  background: rgba(251, 113, 133, 0.08);
}

.result {
  display: none;
}

.result.show {
  display: block;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.result-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0e131a;
}

.result-item img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #080b10;
}

.result-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 11px;
  color: #d7fff9;
  font-size: 13px;
}

.result-item a::after {
  content: "↗";
  color: var(--teal);
}

.empty-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.placeholder-tile {
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(45, 212, 191, 0.12), transparent 42%),
    linear-gradient(315deg, rgba(246, 176, 74, 0.12), transparent 46%),
    #0e131a;
}

.chat-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 16px;
}

.chat-sidebar {
  display: grid;
  align-content: start;
  gap: 10px;
}

.chat-list {
  display: grid;
  gap: 8px;
}

.chat-tab {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: #0e131a;
  text-align: left;
}

.chat-tab.active {
  color: var(--text);
  background: #1a2029;
}

.chat-log {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 390px;
  max-height: 52vh;
  overflow: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0c1117;
}

.bubble {
  max-width: min(680px, 88%);
  padding: 10px 12px;
  border-radius: var(--radius);
  color: #dbe6f4;
  background: #1a2029;
  line-height: 1.65;
  white-space: pre-wrap;
}

.bubble.user {
  align-self: flex-end;
  color: #05201d;
  background: var(--teal);
}

.bubble.ai {
  align-self: flex-start;
  border: 1px solid var(--line);
}

.chat-card.is-fullscreen {
  position: fixed;
  inset: 14px;
  z-index: 20;
  overflow: auto;
  background: #10151c;
}

body.chat-fullscreen-lock {
  overflow: hidden;
}

.video-placeholder {
  display: grid;
  place-items: center;
  min-height: 300px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: #0e131a;
  line-height: 1.7;
  text-align: center;
}

.video-placeholder a {
  color: #a7fff3;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ppt-status-card {
  display: grid;
  gap: 14px;
  min-height: 300px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0e131a;
}

.progress-track {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: #1f2937;
}

.progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--amber));
  transition: width 0.2s ease;
}

.ppt-status-meta {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-line;
}

.download-link {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: var(--radius);
  color: #05201d;
  background: linear-gradient(135deg, var(--teal), #73eadb);
  font-weight: 900;
}

.download-link.show { display: inline-flex; }
.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.home-card {
  display: grid;
  gap: 12px;
  min-height: 210px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #11151b;
  text-align: left;
}

.home-card:hover {
  border-color: rgba(45, 212, 191, 0.5);
}

.home-card .nav-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #151b23;
}

.home-card strong {
  font-size: 18px;
}

.home-card span {
  color: var(--muted);
  line-height: 1.7;
}

body[data-theme="light"] .sidebar,
body[data-theme="light"] .panel,
body[data-theme="light"] .home-card,
body[data-theme="light"] .sidebar-card {
  background: rgba(255, 255, 255, 0.94);
}

body[data-theme="light"] .nav-item,
body[data-theme="light"] .chat-tab,
body[data-theme="light"] .secondary,
body[data-theme="light"] .icon-button,
body[data-theme="light"] .chip,
body[data-theme="light"] .theme-toggle,
body[data-theme="light"] .tool-pill {
  color: #334155;
  background: #f8fafc;
}

body[data-theme="light"] .nav-item:hover,
body[data-theme="light"] .nav-item.active,
body[data-theme="light"] .chat-tab.active {
  color: #0f172a;
  background: #eef5f8;
}

body[data-theme="light"] textarea,
body[data-theme="light"] input,
body[data-theme="light"] select,
body[data-theme="light"] .upload-box,
body[data-theme="light"] .chat-log,
body[data-theme="light"] .video-placeholder,
body[data-theme="light"] .ppt-status-card,
body[data-theme="light"] .result-item,
body[data-theme="light"] .message {
  color: #0f172a;
  background-color: #ffffff;
}

body[data-theme="light"] .upload-icon,
body[data-theme="light"] .placeholder-tile,
body[data-theme="light"] .preview-item {
  background-color: #eef4f8;
}

body[data-theme="light"] .bubble.ai {
  color: #243244;
  background: #ffffff;
}

body[data-theme="light"] .bubble.user,
body[data-theme="light"] .submit,
body[data-theme="light"] .segmented button.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal-strong), #15b8ad);
}

@media (max-width: 1120px) {
  .app-shell {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .sidebar {
    padding: 16px 10px;
  }

  .brand-name,
  .nav-label,
  .nav-text,
  .sidebar-card {
    display: none;
  }

  .brand,
  .nav-item {
    justify-content: center;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .workspace,
  .chat-layout,
  .home-grid {
    grid-template-columns: 1fr;
  }

  .settings-panel {
    position: static;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .status-strip {
    justify-content: flex-start;
    max-width: 100%;
  }

  .workspace > *,
  .chat-layout > *,
  .panel,
  .ppt-status-card {
    min-width: 0;
  }
}
@media (max-width: 640px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: sticky;
    z-index: 10;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .brand-logo {
    width: 36px;
    height: 36px;
  }

  .nav-group {
    display: flex;
    gap: 6px;
  }

  .nav-item {
    width: 44px;
    min-width: 44px;
  }

  .main {
    max-width: 100vw;
    overflow-x: hidden;
    padding: 16px;
  }

  .workspace,
  .workspace > *,
  .panel,
  .ppt-status-card,
  textarea,
  input,
  select {
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }

  .status-strip {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .chip,
  .theme-toggle {
    justify-content: flex-start;
    width: 100%;
    white-space: normal;
  }

  .panel-title p {
    overflow-wrap: anywhere;
  }

  .field-row,
  .result-grid,
  .empty-gallery {
    grid-template-columns: 1fr;
  }

  .panel-header {
    flex-direction: column;
  }
}
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.62);
}

.auth-modal.show { display: grid; }

.auth-dialog {
  width: min(460px, 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}

.auth-tabs button {
  padding: 14px;
  color: var(--muted);
  background: transparent;
}

.auth-tabs button.active {
  color: var(--text);
  background: var(--panel-2);
}

.auth-form {
  display: none;
  gap: 14px;
  padding: 18px;
}

.auth-form.active { display: grid; }

.user-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.user-tools .secondary {
  min-height: 34px;
  padding: 8px 11px;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.profile-detail-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
}

.profile-stat,
.profile-log-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
}

.profile-stat {
  display: grid;
  gap: 8px;
  min-height: 96px;
  padding: 14px;
}

.profile-stat span {
  color: var(--muted);
  font-size: 12px;
}

.profile-stat strong {
  font-size: 22px;
  line-height: 1.1;
}

.profile-log-list {
  display: grid;
  gap: 10px;
}

.profile-log-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 13px;
}

.profile-log-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.profile-log-title {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
}

.profile-log-meta,
.profile-log-content {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.profile-log-content {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quota-delta {
  align-self: center;
  color: var(--success);
  font-size: 18px;
  font-weight: 800;
  white-space: nowrap;
}

.quota-delta.consume {
  color: var(--danger);
}

.profile-empty {
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.verification-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.turnstile-slot:empty {
  display: none;
}

.turnstile-slot {
  min-height: 65px;
}

.generated-video {
  width: 100%;
  max-height: 420px;
  border-radius: 8px;
  background: #000;
}

.video-result-details {
  margin-top: 14px;
}

.verification-row .secondary {
  min-width: 118px;
  min-height: 42px;
}

.online-user-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.online-user-item {
  display: grid;
  grid-template-columns: minmax(130px, 0.8fr) minmax(180px, 1fr) minmax(120px, 0.6fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  font-size: 13px;
}

.online-user-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 920px) {
  .profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .profile-grid,
  .profile-log-item {
    grid-template-columns: 1fr;
  }

  .profile-detail-grid {
    grid-template-columns: 1fr;
  }

  .verification-row,
  .online-user-item {
    grid-template-columns: 1fr;
  }
}
