:root {
  --ink: #1e2756;
  --muted: #667091;
  --line: rgba(115, 128, 170, 0.18);
  --panel: rgba(255, 255, 255, 0.74);
  --solid: #ffffff;
  --violet: #8b5cf6;
  --cyan: #06b6d4;
  --blue: #4f7cff;
  --mint: #10b981;
  --pink: #e879f9;
  --danger: #f43f5e;
  --warn: #f59e0b;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

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

body {
  background:
    linear-gradient(120deg, rgba(139, 92, 246, 0.12), transparent 28%),
    linear-gradient(300deg, rgba(6, 182, 212, 0.12), transparent 34%),
    linear-gradient(135deg, #fbf7ff 0%, #edf8ff 50%, #f7fff9 100%);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

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

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

.sidebar,
.hero-workbench,
.work-panel,
.task-panel,
.admin-card,
.auth-panel,
.profile-panel,
.data-list,
.tool-dialog {
  border: 1px solid rgba(255, 255, 255, 0.86);
  background: var(--panel);
  box-shadow: 0 20px 55px rgba(79, 124, 255, 0.12);
  backdrop-filter: blur(18px);
}

.sidebar {
  position: sticky;
  top: 16px;
  height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
  padding: 18px;
  border-radius: 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 0;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.brand-mark,
.command-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--violet), var(--cyan), var(--pink));
  box-shadow: 0 12px 28px rgba(6, 182, 212, 0.22);
}

.brand strong {
  display: block;
  font-size: 18px;
  font-weight: 900;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.nav {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.56);
  font-weight: 900;
  text-align: left;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.nav-item:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.86);
}

.nav-item.active {
  color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--cyan), var(--pink));
  box-shadow: 0 14px 28px rgba(6, 182, 212, 0.18);
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  font-weight: 900;
}

.sidebar-note {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: auto;
  padding: 14px;
  border-radius: 8px;
  color: #5741a6;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.16), rgba(6, 182, 212, 0.14));
  font-size: 13px;
}

.main {
  min-width: 0;
}

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

.quick-tabs,
.top-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-tabs button,
.ghost-button,
.text-button,
.icon-button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
  font-weight: 900;
}

.quick-tabs button:hover,
.ghost-button:hover,
.text-button:hover,
.icon-button:hover {
  background: #fff;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: #047857;
  background: rgba(255, 255, 255, 0.78);
  font-weight: 900;
}

.status-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--mint);
}

.status-pill.checking {
  color: #7c3aed;
}

.status-pill.checking::before {
  background: var(--violet);
}

.status-pill.error {
  color: #be123c;
}

.status-pill.error::before {
  background: var(--danger);
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.hero-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 24px;
  align-items: center;
  min-height: 350px;
  padding: 32px;
  border-radius: 8px;
  overflow: hidden;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  color: #7c3aed;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

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

.hero-copy h1,
.section-head h1 {
  margin: 14px 0 12px;
  color: var(--ink);
  font-size: 42px;
  line-height: 1.08;
  font-weight: 900;
}

.hero-copy p {
  max-width: 640px;
  margin-bottom: 18px;
  color: #4f5d86;
  font-size: 17px;
  line-height: 1.7;
  font-weight: 800;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span {
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
  font-weight: 900;
}

.upload-orbit {
  display: grid;
  place-items: center;
  justify-self: center;
  width: 245px;
  height: 245px;
  border: 2px solid rgba(6, 182, 212, 0.48);
  border-radius: 999px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.46));
  box-shadow: 0 0 0 34px rgba(255, 255, 255, 0.26), 0 20px 60px rgba(79, 124, 255, 0.14);
}

.upload-orbit .plus {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: #fff;
  background: var(--violet);
  font-size: 28px;
  font-weight: 900;
}

.upload-orbit strong,
.upload-orbit small {
  display: block;
}

.upload-orbit strong {
  margin-top: -24px;
  font-size: 18px;
  font-weight: 900;
}

.upload-orbit small {
  margin-top: -28px;
  color: var(--muted);
  font-weight: 800;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 14px;
  margin-top: 14px;
}

.work-panel,
.task-panel,
.admin-card,
.auth-panel,
.profile-panel {
  padding: 16px;
  border-radius: 8px;
}

.command-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 94px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  text-align: left;
  box-shadow: 0 14px 32px rgba(79, 124, 255, 0.08);
}

.command-copy {
  flex: 1;
  min-width: 0;
}

.command-copy small,
.command-copy em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.command-copy strong {
  display: block;
  margin: 4px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 20px;
  font-weight: 900;
}

.chevron {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #7c3aed;
  background: rgba(139, 92, 246, 0.1);
  font-size: 22px;
}

.mode-control,
.segmented-small {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 12px;
  border: 1px solid rgba(30, 39, 86, 0.24);
  border-radius: 8px;
  overflow: hidden;
}

.mode-control button,
.segmented-small button {
  min-height: 40px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.58);
  font-weight: 900;
}

.mode-control button + button,
.segmented-small button + button {
  border-left: 1px solid rgba(30, 39, 86, 0.18);
}

.mode-control button.active,
.segmented-small button.active {
  background: rgba(139, 92, 246, 0.18);
}

.drop-zone {
  display: grid;
  gap: 8px;
  place-items: center;
  min-height: 112px;
  margin-top: 12px;
  padding: 18px;
  border: 1px dashed rgba(79, 124, 255, 0.42);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.52);
}

.drop-zone.dragging {
  border-color: var(--cyan);
  background: rgba(6, 182, 212, 0.12);
}

.drop-zone button {
  color: var(--ink);
  background: transparent;
  font-weight: 900;
}

.drop-zone p,
.empty {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

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

.file-chip,
.task-item,
.data-row,
.tool-toggle,
.system-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.file-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
}

.file-chip strong,
.task-item strong,
.data-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 900;
}

.file-chip small,
.task-item small,
.data-row small {
  color: var(--muted);
  font-weight: 800;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin-top: 12px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--cyan), var(--pink));
  font-weight: 900;
  box-shadow: 0 16px 30px rgba(6, 182, 212, 0.18);
}

.primary-button.compact,
.ghost-button.compact {
  width: auto;
  min-height: 40px;
  margin-top: 0;
  padding: 0 16px;
}

.panel-title,
.section-head,
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.panel-title h2,
.dialog-head h2,
.admin-card h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
}

.task-list,
.data-list,
.compact-list,
.tool-toggles,
.system-list {
  display: grid;
  gap: 10px;
}

.task-list {
  margin-top: 12px;
}

.task-item {
  padding: 12px;
}

.task-head,
.data-row,
.tool-toggle,
.system-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.task-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

.progress {
  height: 8px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(79, 124, 255, 0.12);
}

.progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  transition: width 180ms ease;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.12);
  color: #6d28d9;
  font-size: 12px;
  font-weight: 900;
}

.badge.completed {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}

.badge.failed {
  background: rgba(244, 63, 94, 0.12);
  color: #be123c;
}

.badge.processing {
  background: rgba(245, 158, 11, 0.13);
  color: #a16207;
}

.section-head {
  margin-bottom: 14px;
}

.section-head h1 {
  font-size: 32px;
}

.account-layout {
  display: grid;
  grid-template-columns: minmax(300px, 430px) minmax(0, 1fr);
  gap: 14px;
}

.auth-panel,
.profile-panel {
  display: grid;
  gap: 12px;
}

.segmented-small {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 0;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

input,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  outline: none;
}

input:focus,
select:focus {
  border-color: rgba(6, 182, 212, 0.72);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.12);
}

.hidden {
  display: none !important;
}

.admin-login {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
  gap: 10px;
  margin-bottom: 14px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.6);
}

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

.metric-strip,
.admin-card.wide {
  grid-column: 1 / -1;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.metric {
  min-height: 82px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.metric strong {
  display: block;
  font-size: 24px;
  font-weight: 900;
}

.metric small {
  color: var(--muted);
  font-weight: 900;
}

.settings-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(120px, auto) auto auto;
  gap: 10px;
  align-items: end;
  margin-top: 12px;
}

.switch-row {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.switch-row input {
  width: auto;
  min-height: 0;
}

.data-row,
.tool-toggle,
.system-row {
  min-height: 54px;
  padding: 10px 12px;
}

.data-row > span:first-child,
.tool-toggle > span:first-child,
.system-row > span:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.row-actions a,
.row-actions button {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.row-actions .danger {
  color: #be123c;
}

.task-filters {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 150px 180px;
  gap: 8px;
  min-width: 520px;
}

.tool-dialog {
  width: min(930px, calc(100vw - 28px));
  max-height: min(760px, calc(100vh - 28px));
  padding: 18px;
  border-radius: 8px;
  color: var(--ink);
}

.tool-dialog::backdrop {
  background: rgba(30, 39, 86, 0.28);
  backdrop-filter: blur(4px);
}

.icon-button {
  width: 40px;
  padding: 0;
  font-size: 24px;
}

.tool-groups {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.tool-group h3 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 900;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.tool-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 76px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
  text-align: left;
}

.tool-card:hover,
.tool-card.active {
  border-color: rgba(6, 182, 212, 0.56);
  background: #fff;
  box-shadow: 0 14px 28px rgba(6, 182, 212, 0.12);
}

.tool-card .mini-icon {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  font-weight: 900;
}

.tool-card strong,
.tool-card small {
  display: block;
}

.tool-card strong {
  font-weight: 900;
}

.tool-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  max-width: min(420px, calc(100vw - 36px));
  padding: 12px 14px;
  border-radius: 8px;
  color: #fff;
  background: rgba(30, 39, 86, 0.92);
  box-shadow: 0 18px 38px rgba(30, 39, 86, 0.18);
  font-weight: 900;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

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

  .sidebar-note {
    display: none;
  }

  .hero-workbench,
  .workspace-grid,
  .account-layout,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .metric-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 720px) {
  .app-shell {
    padding: 10px;
  }

  .topbar,
  .panel-title,
  .section-head,
  .dialog-head {
    align-items: stretch;
    flex-direction: column;
  }

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

  .hero-workbench {
    padding: 18px;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .upload-orbit {
    width: 210px;
    height: 210px;
  }

  .tool-grid,
  .metric-strip,
  .settings-row,
  .admin-login,
  .task-filters {
    grid-template-columns: 1fr;
    min-width: 0;
  }
}

/* v10: match the previous Flutter web visual while keeping the fast native shell. */
:root {
  --ink: #273061;
  --muted: #66709a;
  --line: #e8e8ff;
  --panel: rgba(255, 255, 255, 0.8);
  --subpanel: rgba(255, 255, 255, 0.48);
  --violet: #8b5cf6;
  --cyan: #06b6d4;
  --blue: #4f7cff;
  --mint: #31d4a5;
  --pink: #e879f9;
  --sun: #ffb86b;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% 12%, rgba(139, 92, 246, 0.16), transparent 28%),
    radial-gradient(circle at 86% 8%, rgba(6, 182, 212, 0.14), transparent 24%),
    linear-gradient(135deg, #fbf7ff 0%, #eef8ff 49%, #f8fff7 100%);
}

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

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

.sidebar,
#convertView,
.tool-dialog,
.auth-panel,
.profile-panel,
.admin-card {
  border: 1px solid rgba(255, 255, 255, 0.86);
  background: var(--panel);
  box-shadow:
    0 18px 34px rgba(139, 92, 246, 0.12),
    0 10px 28px rgba(6, 182, 212, 0.1);
  backdrop-filter: blur(18px);
}

.sidebar {
  top: 0;
  width: auto;
  height: calc(100vh - 32px);
  margin: 16px;
  padding: 16px;
  border-radius: 8px;
}

.brand-mark,
.command-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--violet), var(--cyan), var(--pink));
  box-shadow: 0 12px 26px rgba(139, 92, 246, 0.2);
  font-size: 16px;
}

.brand strong {
  font-size: 20px;
  letter-spacing: 0;
}

.brand small {
  color: var(--muted);
  font-weight: 700;
}

.nav {
  gap: 8px;
  margin-top: 28px;
}

.nav-item {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-weight: 850;
  box-shadow: none;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.62);
  transform: none;
}

.nav-item.active {
  border-color: rgba(255, 255, 255, 0.8);
  background: linear-gradient(135deg, var(--violet), var(--cyan), var(--pink));
  box-shadow: 0 14px 30px rgba(139, 92, 246, 0.2);
}

.nav-icon {
  opacity: 0.9;
}

.sidebar-note {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.16), rgba(6, 182, 212, 0.13));
  color: var(--ink);
  font-weight: 900;
}

.topbar {
  min-height: 42px;
  margin-bottom: 14px;
}

.quick-tabs,
.top-actions {
  gap: 8px;
}

.quick-tabs button,
.ghost-button,
.text-button,
.icon-button {
  min-height: 38px;
  border-radius: 999px;
  border-color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 18px rgba(39, 48, 97, 0.06);
  color: var(--ink);
  font-weight: 850;
}

.quick-tabs button:hover,
.ghost-button:hover,
.text-button:hover,
.icon-button:hover {
  background: #fff;
  box-shadow: 0 12px 24px rgba(39, 48, 97, 0.08);
}

.status-pill {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.72);
  color: #059669;
  box-shadow: 0 8px 18px rgba(39, 48, 97, 0.06);
}

#convertView {
  position: relative;
  padding: 24px;
  overflow: hidden;
  border-radius: 8px;
}

#convertView::before {
  content: "";
  position: absolute;
  top: 18px;
  right: -18px;
  left: 22px;
  height: 110px;
  border-top: 2px solid rgba(139, 92, 246, 0.13);
  border-radius: 50%;
  transform: rotate(-3deg);
  pointer-events: none;
}

#convertView::after {
  content: "";
  position: absolute;
  top: 50px;
  right: 20px;
  width: 36%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(139, 92, 246, 0), rgba(6, 182, 212, 0.18), rgba(232, 121, 249, 0));
  pointer-events: none;
}

#convertView > * {
  position: relative;
  z-index: 1;
}

.hero-workbench {
  grid-template-columns: minmax(0, 11fr) minmax(300px, 8fr);
  gap: 18px;
  min-height: 280px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  overflow: visible;
}

.eyebrow {
  color: #7c3aed;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.hero-copy h1 {
  max-width: 720px;
  margin: 14px 0;
  background: linear-gradient(135deg, var(--violet), var(--cyan), var(--pink));
  background-clip: text;
  color: transparent;
  font-size: 52px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 680px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
  font-weight: 600;
}

.hero-tags {
  gap: 10px;
}

.hero-tags span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 9px 11px;
  border: 1px solid #fff;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  font-weight: 800;
  box-shadow: none;
}

.hero-tags span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
}

.upload-orbit {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  justify-self: center;
  width: 300px;
  height: 300px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  color: var(--ink);
  isolation: isolate;
}

.upload-orbit::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 96px, rgba(139, 92, 246, 0.18) 97px, transparent 99px),
    radial-gradient(circle, transparent 0 126px, rgba(6, 182, 212, 0.18) 127px, transparent 129px),
    radial-gradient(circle, transparent 0 156px, rgba(232, 121, 249, 0.16) 157px, transparent 159px);
  pointer-events: none;
}

.upload-orbit::after {
  content: "";
  position: absolute;
  inset: 56px;
  z-index: 0;
  border: 3px solid transparent;
  border-radius: 50%;
  background:
    linear-gradient(rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.82)) padding-box,
    linear-gradient(135deg, var(--violet), var(--cyan), var(--pink)) border-box;
  box-shadow: 0 18px 34px rgba(139, 92, 246, 0.22);
}

.upload-orbit:hover::after {
  box-shadow: 0 22px 42px rgba(139, 92, 246, 0.28);
}

.upload-orbit .plus {
  z-index: 1;
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.1);
  color: var(--violet);
  font-size: 42px;
  line-height: 44px;
  font-weight: 800;
}

.upload-orbit strong,
.upload-orbit small {
  z-index: 1;
  display: block;
  margin: 0;
  text-align: center;
}

.upload-orbit strong {
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
}

.upload-orbit small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.workspace-grid {
  grid-template-columns: minmax(0, 12fr) minmax(300px, 8fr);
  gap: 14px;
  margin-top: 14px;
}

.work-panel,
.task-panel {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 8px;
  background: var(--subpanel);
  box-shadow: none;
  backdrop-filter: none;
}

.command-card {
  min-height: 78px;
  padding: 12px 14px;
  border: 1px solid rgba(139, 92, 246, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 22px rgba(139, 92, 246, 0.1);
}

.command-card:hover {
  border-color: rgba(6, 182, 212, 0.38);
  background: rgba(255, 255, 255, 0.86);
}

.command-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
}

.command-copy small,
.command-copy em {
  color: var(--muted);
  font-weight: 750;
}

.command-copy strong {
  margin: 3px 0;
  font-size: 18px;
}

.chevron {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(139, 92, 246, 0.1);
  color: var(--violet);
}

.mode-control,
.segmented-small {
  border-color: rgba(39, 48, 97, 0.18);
  background: rgba(255, 255, 255, 0.44);
}

.mode-control button,
.segmented-small button {
  min-height: 42px;
  background: transparent;
  color: var(--ink);
}

.mode-control button.active,
.segmented-small button.active {
  background: rgba(139, 92, 246, 0.16);
  color: #5b21b6;
}

.drop-zone {
  grid-template-columns: auto 1fr;
  place-items: center stretch;
  min-height: 70px;
  padding: 13px;
  border: 1px solid #fff;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  text-align: left;
}

.drop-zone::before {
  content: "↑";
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(139, 92, 246, 0.1);
  color: var(--violet);
  font-size: 22px;
  font-weight: 900;
}

.drop-zone button {
  justify-self: stretch;
  min-width: 0;
  color: var(--muted);
  text-align: left;
  font-weight: 700;
}

.drop-zone p {
  grid-column: 2;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.drop-zone.dragging {
  border-color: rgba(6, 182, 212, 0.72);
  background: rgba(6, 182, 212, 0.12);
}

.file-chip,
.task-item,
.data-row,
.tool-toggle,
.system-row {
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.64);
}

.primary-button {
  min-height: 52px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--violet), var(--cyan), var(--pink));
  box-shadow: 0 16px 30px rgba(139, 92, 246, 0.18);
  font-weight: 900;
}

.primary-button:hover:not(:disabled) {
  box-shadow: 0 18px 36px rgba(139, 92, 246, 0.24);
}

.panel-title h2::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 18px;
  margin-right: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--cyan), var(--violet));
  vertical-align: -3px;
}

.task-list .empty {
  display: grid;
  min-height: 152px;
  place-items: center;
  border: 1px solid #fff;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.54);
  color: var(--muted);
  font-weight: 900;
  text-align: center;
}

.progress span {
  background: linear-gradient(90deg, var(--sun), var(--cyan));
}

#filesView.active,
#accountView.active,
#adminView.active {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 8px;
  background: var(--panel);
  box-shadow:
    0 18px 34px rgba(139, 92, 246, 0.12),
    0 10px 28px rgba(6, 182, 212, 0.1);
  backdrop-filter: blur(18px);
}

#userTaskList.data-list,
.admin-card .data-list {
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.metric {
  border-color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.62);
}

.metric strong {
  color: var(--ink);
}

input,
select {
  border-color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
}

select {
  appearance: none;
  padding-right: 36px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--violet) 50%),
    linear-gradient(135deg, var(--violet) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 18px,
    calc(100% - 12px) 18px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.tool-dialog {
  width: min(1040px, calc(100vw - 28px));
  max-height: min(680px, calc(100vh - 28px));
  padding: 16px;
  border-radius: 8px;
  border-color: #fff;
  background: #f8fbff;
  box-shadow: 0 18px 34px rgba(139, 92, 246, 0.18);
}

.tool-dialog::before {
  content: "";
  display: block;
  width: 48px;
  height: 5px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: rgba(102, 112, 154, 0.22);
}

.tool-dialog::backdrop {
  background: rgba(39, 48, 97, 0.2);
  backdrop-filter: blur(4px);
}

.dialog-head {
  align-items: center;
}

.dialog-head::before {
  content: "≋";
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--violet), var(--cyan), var(--pink));
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.dialog-head > div {
  flex: 1;
  min-width: 0;
}

.dialog-head h2 {
  color: var(--ink);
  font-size: 20px;
}

.tool-groups {
  gap: 14px;
  margin-top: 14px;
  overflow: auto;
  max-height: calc(min(680px, 100vh - 28px) - 114px);
  padding-right: 3px;
}

.tool-group h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 15px;
}

.tool-group h3::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
}

.tool-group[data-muted="true"] {
  opacity: 0.52;
}

.tool-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.tool-card {
  position: relative;
  min-height: 86px;
  padding: 10px;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: none;
}

.tool-card:hover,
.tool-card.active {
  border-color: var(--cyan);
  background: rgba(6, 182, 212, 0.09);
  box-shadow: 0 10px 18px rgba(6, 182, 212, 0.12);
}

.tool-card.active::after {
  content: "✓";
  position: absolute;
  top: 10px;
  right: 10px;
  color: var(--cyan);
  font-weight: 900;
}

.tool-card .mini-icon {
  flex-basis: 40px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(79, 124, 255, 0.1);
  color: var(--blue);
}

.tool-card strong {
  padding-right: 16px;
  color: var(--ink);
}

.tool-card small {
  color: var(--muted);
}

@media (max-width: 1040px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .main {
    padding: 0 16px 16px;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .hero-workbench,
  .workspace-grid,
  .account-layout,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-tags {
    justify-content: center;
  }

  .upload-orbit {
    width: 300px;
    height: 300px;
  }
}

@media (max-width: 720px) {
  .app-shell {
    padding: 0;
  }

  .main {
    padding: 0 10px 10px;
  }

  .sidebar {
    margin: 10px;
  }

  .topbar,
  .dialog-head,
  .section-head,
  .panel-title {
    align-items: stretch;
  }

  #convertView,
  #filesView.active,
  #accountView.active,
  #adminView.active {
    padding: 18px;
  }

  .hero-copy h1 {
    font-size: 36px;
  }

  .hero-copy p {
    font-size: 16px;
  }

  .upload-orbit {
    width: 250px;
    height: 250px;
  }

  .upload-orbit::after {
    inset: 48px;
  }

  .drop-zone {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .drop-zone::before,
  .drop-zone button,
  .drop-zone p {
    grid-column: 1;
    justify-self: center;
    text-align: center;
  }

  .tool-grid {
    grid-template-columns: 1fr;
  }
}

/* v11: restore the old Flutter screenshot layout more literally. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(148deg, transparent 0 18%, rgba(139, 92, 246, 0.08) 18% 31%, transparent 31%),
    linear-gradient(23deg, transparent 0 62%, rgba(6, 182, 212, 0.08) 62% 76%, transparent 76%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0 1px, transparent 1px 54px);
}

.quick-tabs button {
  min-height: 36px;
  padding: 0 13px;
  font-size: 13px;
}

.quick-tabs button::before {
  content: "□";
  margin-right: 5px;
  color: var(--violet);
  font-size: 12px;
}

#convertView {
  padding: 28px 28px 26px;
  min-height: calc(100vh - 86px);
}

#convertView::before {
  top: 26px;
  right: 22px;
  left: 18px;
  height: 160px;
  border-top-color: rgba(139, 92, 246, 0.16);
}

#convertView::after {
  top: 98px;
  right: 24px;
  width: 78%;
  height: 1px;
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.04), rgba(6, 182, 212, 0.2), rgba(232, 121, 249, 0.08));
}

.hero-workbench {
  grid-template-columns: minmax(0, 1fr) 354px;
  gap: 26px;
  min-height: 324px;
  align-items: center;
}

.hero-copy {
  padding-top: 6px;
}

.hero-copy h1 {
  margin: 16px 0 12px;
  font-size: 54px;
}

.hero-tags span {
  min-height: 40px;
  padding: 9px 14px;
  box-shadow: 0 8px 18px rgba(79, 124, 255, 0.04);
}

.upload-orbit {
  width: 318px;
  height: 318px;
}

.upload-orbit::after {
  inset: 64px;
}

.workspace-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 18px;
}

.work-panel {
  width: 100%;
  padding: 14px;
  background: rgba(255, 255, 255, 0.3);
}

.task-panel {
  width: 100%;
  min-height: 0;
  padding: 14px;
  background: rgba(255, 255, 255, 0.3);
}

.command-card {
  position: relative;
  min-height: 60px;
  padding: 22px 44px 9px 44px;
  border-color: rgba(255, 255, 255, 0.94);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: none;
}

.command-card:hover {
  background: rgba(255, 255, 255, 0.86);
}

.command-icon {
  position: absolute;
  left: 16px;
  bottom: 12px;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
  color: var(--ink);
  font-size: 0;
}

.command-icon::before {
  content: "≡";
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
}

.command-copy small {
  position: absolute;
  top: 7px;
  left: 16px;
  color: var(--muted);
  font-size: 12px;
}

.command-copy strong {
  margin: 0;
  font-size: 18px;
}

.command-copy em {
  display: none;
}

.chevron {
  position: absolute;
  right: 14px;
  bottom: 13px;
  width: 24px;
  height: 24px;
  background: transparent;
  color: var(--ink);
  font-size: 0;
}

.chevron::before {
  content: "▾";
  font-size: 19px;
}

.mode-control {
  margin-top: 12px;
  border-color: rgba(39, 48, 97, 0.4);
  background: rgba(255, 255, 255, 0.56);
}

.mode-control button {
  min-height: 34px;
  font-size: 13px;
}

.mode-control button.active {
  background: rgba(139, 92, 246, 0.2);
  color: var(--ink);
}

.drop-zone {
  min-height: 52px;
  margin-top: 12px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.56);
}

.drop-zone::before {
  width: 28px;
  height: 28px;
  background: transparent;
  color: var(--violet);
}

.drop-zone button {
  font-size: 14px;
}

.drop-zone p {
  margin-top: -2px;
  font-size: 11px;
}

.file-list {
  margin-top: 10px;
}

.primary-button {
  min-height: 54px;
  margin-top: 12px;
}

.primary-button:disabled {
  opacity: 1;
  filter: saturate(0.82) brightness(1.04);
}

.task-panel .panel-title {
  margin-bottom: 8px;
}

.task-list .empty {
  min-height: 74px;
}

.tool-dialog {
  background: rgba(248, 251, 255, 0.96);
}

.tool-card .mini-icon {
  color: var(--violet);
}

@media (min-width: 1041px) {
  .task-panel {
    margin-top: 0;
  }
}

@media (max-width: 720px) {
  #convertView {
    min-height: auto;
    padding: 18px;
  }

  .hero-workbench {
    min-height: auto;
  }

  .upload-orbit {
    width: 252px;
    height: 252px;
  }

  .upload-orbit::after {
    inset: 49px;
  }

  .command-card {
    padding-right: 38px;
  }
}

/* v12: bring back the old "智能工具" matrix below the workbench. */
.smart-tools-section {
  margin-top: 24px;
  padding-top: 2px;
}

.smart-tools-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.smart-tools-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  box-shadow: 0 10px 20px rgba(139, 92, 246, 0.14);
  font-weight: 900;
}

.smart-tools-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.15;
  font-weight: 900;
}

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

.smart-tool-group {
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 18px 34px rgba(139, 92, 246, 0.1),
    0 10px 28px rgba(6, 182, 212, 0.08);
  backdrop-filter: blur(18px);
}

.smart-tool-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.smart-tool-group-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--cyan), var(--pink));
  font-size: 12px;
  font-weight: 900;
}

.smart-tool-group-title strong {
  min-width: 0;
  overflow: hidden;
  color: var(--violet);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 18px;
  font-weight: 900;
}

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

.smart-tool-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 64px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.45);
  color: var(--ink);
  text-align: left;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.smart-tool-row:hover {
  transform: translateY(-1px);
  border-color: rgba(6, 182, 212, 0.28);
  background: rgba(255, 255, 255, 0.72);
}

.smart-tool-row.active {
  border-color: rgba(139, 92, 246, 0.34);
  background: rgba(139, 92, 246, 0.13);
}

.smart-tool-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: 8px;
  background: rgba(139, 92, 246, 0.1);
  color: var(--violet);
  font-size: 11px;
  font-weight: 900;
}

.smart-tool-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.smart-tool-copy strong,
.smart-tool-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.smart-tool-copy strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.smart-tool-copy small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.smart-tool-arrow {
  color: var(--violet);
  font-size: 20px;
  font-weight: 900;
}

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

@media (max-width: 720px) {
  .smart-tools-section {
    margin-top: 18px;
  }

  .smart-tools-grid {
    grid-template-columns: 1fr;
  }
}

/* v13: polished lucide icon system and premium command picker. */
.jd-icon {
  display: block;
  width: 1em;
  height: 1em;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.brand-mark,
.nav-icon,
.note-icon,
.tab-icon,
.plus,
.command-icon,
.chevron,
.drop-icon,
.button-icon,
.smart-tools-icon,
.smart-tool-group-icon,
.smart-tool-icon,
.mini-icon,
.dialog-icon,
.icon-button {
  display: inline-grid;
  place-items: center;
}

.brand-mark .jd-icon,
.command-icon .jd-icon,
.smart-tools-icon .jd-icon,
.dialog-icon .jd-icon {
  width: 22px;
  height: 22px;
}

.nav-icon .jd-icon,
.tab-icon .jd-icon,
.note-icon .jd-icon,
.drop-icon .jd-icon,
.button-icon,
.chevron .jd-icon,
.mini-icon .jd-icon,
.smart-tool-icon .jd-icon,
.smart-tool-group-icon .jd-icon {
  width: 18px;
  height: 18px;
}

.quick-tabs button::before,
.command-icon::before,
.chevron::before,
.drop-zone::before,
.dialog-head::before {
  content: none !important;
  display: none !important;
}

.quick-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 14px;
}

.tab-icon {
  width: 18px;
  height: 18px;
  color: var(--violet);
}

.nav-icon {
  width: 24px;
  height: 24px;
}

.note-icon {
  width: 24px;
  height: 24px;
  color: var(--violet);
}

.upload-orbit .plus {
  color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  box-shadow: 0 10px 22px rgba(139, 92, 246, 0.22);
}

.upload-orbit .plus .jd-icon {
  width: 28px;
  height: 28px;
}

.command-card {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 14px;
  min-height: 90px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.96);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.68)),
    radial-gradient(circle at 12% 18%, rgba(139, 92, 246, 0.16), transparent 35%),
    radial-gradient(circle at 85% 12%, rgba(6, 182, 212, 0.16), transparent 32%);
  box-shadow:
    0 18px 38px rgba(79, 124, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  overflow: hidden;
}

.command-card::after {
  content: "";
  position: absolute;
  inset: auto 18px 0 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.3), rgba(6, 182, 212, 0.26), transparent);
}

.command-card:hover {
  border-color: rgba(6, 182, 212, 0.48);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.78)),
    radial-gradient(circle at 12% 18%, rgba(139, 92, 246, 0.18), transparent 35%),
    radial-gradient(circle at 85% 12%, rgba(6, 182, 212, 0.18), transparent 32%);
  transform: translateY(-1px);
}

.command-icon {
  position: static;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--violet), var(--cyan), var(--pink));
  color: #fff;
  box-shadow: 0 14px 28px rgba(139, 92, 246, 0.2);
  font-size: 22px;
}

.command-copy {
  display: grid;
  gap: 4px;
}

.command-copy small {
  position: static;
  color: #7c5bd6;
  font-size: 12px;
  font-weight: 900;
}

.command-copy strong {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.15;
  font-weight: 900;
}

.command-copy em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
}

.chevron {
  position: static;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(139, 92, 246, 0.14);
  border-radius: 8px;
  background: rgba(139, 92, 246, 0.08);
  color: var(--violet);
}

.drop-zone {
  grid-template-columns: 36px minmax(0, 1fr);
}

.drop-icon {
  grid-row: 1 / span 2;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(139, 92, 246, 0.1);
  color: var(--violet);
}

.primary-button {
  gap: 9px;
}

.button-icon {
  width: 20px;
  height: 20px;
}

.dialog-head {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 42px;
}

.dialog-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--violet), var(--cyan), var(--pink));
  color: #fff;
}

.icon-button {
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--muted);
}

.tool-card.active::after {
  content: "";
  top: 14px;
  right: 14px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 0 5px rgba(6, 182, 212, 0.12);
}

.mini-icon,
.smart-tool-icon {
  color: var(--violet);
}

.smart-tool-group-icon {
  color: #fff;
}

@media (max-width: 720px) {
  .command-card {
    grid-template-columns: 48px minmax(0, 1fr) 38px;
    min-height: 84px;
    padding: 14px;
  }

  .command-icon {
    width: 48px;
    height: 48px;
  }

  .command-copy strong {
    font-size: 18px;
  }
}

/* v14: public users must not see admin entry; keep the three user nav items balanced. */
@media (max-width: 1040px) {
  .nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .nav {
    grid-template-columns: 1fr;
  }
}
