:root {
  color-scheme: light;
  --bg: #f4f7f6;
  --surface: #fbfcfb;
  --surface-soft: #f2f6f5;
  --ink: #17201d;
  --muted: #60706b;
  --line: #dfe7e4;
  --line-strong: #c6d3ce;
  --accent: #254f43;
  --accent-soft: #e8f0ed;
  --green: #2f8f5b;
  --amber: #9a6a12;
  --violet: #49657a;
  --coral: #b84030;
  --teal: #254f43;
  --shadow: 0 12px 28px rgba(23, 32, 29, .055);
  --soft-shadow: 0 6px 18px rgba(23, 32, 29, .045);
  --glow-green: 0 0 20px rgba(37, 79, 67, .12);
  --glow-amber: 0 0 20px rgba(154, 106, 18, .1);
  --glow-violet: 0 0 20px rgba(73, 101, 122, .1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 4%, rgba(229, 244, 239, .84), transparent 34rem),
    radial-gradient(circle at 92% 84%, rgba(214, 228, 223, .52), transparent 36rem),
    linear-gradient(180deg, #fbfcfb 0%, #f4f7f6 100%);
  font-family: "Noto Sans SC", "PingFang SC", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: auto;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 1000;
  transform: translateY(-160%);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  transition: transform .18s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

#ambientCanvas {
  display: none;
}

.app-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  min-height: 100vh;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  text-decoration: none;
}

.sidebar {
  border-right: 1px solid var(--line);
  background: rgba(251, 252, 251, .92);
  backdrop-filter: blur(20px);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}

.sidebar::before {
  display: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(145deg, var(--accent), var(--ink));
  font-weight: 900;
  box-shadow: none;
  transition: none;
}

.brand-mark:hover {
  transform: none;
  box-shadow: none;
}

.brand-mark svg {
  filter: none;
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  font-family: "Noto Sans SC", "PingFang SC", system-ui, sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0;
}

.brand span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
  letter-spacing: 0;
  font-weight: 400;
}

.nav {
  display: grid;
  gap: 6px;
}

.nav-item {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
  position: relative;
  overflow: hidden;
}

.nav-item[data-view="skillTrainingView"],
.nav-item[data-view="tutorialView"] {
  display: none;
}

.nav-item::before {
  display: none;
}

.nav-item.active::before {
  height: 60%;
}

.nav-item.active,
.nav-item:hover {
  color: var(--ink);
  border-color: var(--line);
  background: var(--surface);
  box-shadow: none;
  transform: none;
}

.nav-item.active {
  background: var(--surface);
  font-weight: 600;
}

.nav-icon {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
  transition: background .18s ease, color .18s ease;
}

.nav-item.active .nav-icon,
.nav-item:hover .nav-icon {
  color: var(--accent);
  background: var(--accent-soft);
}

.nav-item svg {
  transition: none;
}

.nav-item:hover svg {
  transform: none;
}

.promo-carousel {
  display: none;
}

.promo-link {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity .45s ease, transform .7s ease;
  pointer-events: none;
}

.promo-link:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: -4px;
}

.promo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promo-link.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  z-index: 1;
}

.promo-dots {
  position: absolute;
  left: 16px;
  bottom: 12px;
  display: flex;
  gap: 5px;
  padding: 0;
  z-index: 3;
}

.promo-dots button {
  border: 0;
  padding: 0;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .5);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
  transition: all .3s ease;
}

.promo-dots button.active {
  width: 18px;
  background: #ffffff;
}

.promo-arrow {
  border: 0;
  width: 26px;
  height: 34px;
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  color: #ffffff;
  background: rgba(0, 0, 0, .2);
  opacity: 0;
  display: grid;
  place-items: center;
  transition: opacity .2s ease, background .2s ease;
}

.promo-arrow svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.promo-prev {
  left: 0;
  border-radius: 0 8px 8px 0;
}

.promo-next {
  right: 0;
  border-radius: 8px 0 0 8px;
}

.promo-carousel:hover .promo-arrow,
.promo-arrow:focus-visible {
  opacity: 1;
}

.promo-arrow:hover {
  background: rgba(0, 0, 0, .36);
}

.account-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(251, 252, 251, .88);
  padding: 16px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.account-card:hover,
.account-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 16px 38px rgba(23, 32, 29, .07);
}

.account-card:focus-visible {
  outline: 3px solid rgba(37, 79, 67, .14);
  outline-offset: 4px;
}

.account-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(37, 79, 67, .08), transparent 70%);
  pointer-events: none;
}

.account-foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.account-foot::after {
  content: '查看配置';
  float: right;
  color: var(--ink);
  font-weight: 700;
}

.account-card > span {
  color: var(--muted);
  font-size: 13px;
}

.account-card > strong {
  display: block;
  margin-top: 6px;
  font-family: "Noto Sans SC", "PingFang SC", system-ui, sans-serif;
  font-weight: 600;
}

.quota {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.quota div {
  border-radius: 10px;
  background: linear-gradient(180deg, #fbfcfb, #eef5f2);
  padding: 12px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.quota div:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(23,32,29,.045);
}

.quota b,
.quota span {
  display: block;
}

.quota b {
  font-family: "Noto Sans SC", "PingFang SC", system-ui, sans-serif;
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--ink), var(--muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.quota span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.internal-only {
  display: none !important;
}

.trial-account-card {
  display: block;
  cursor: default;
  margin-top: auto;
  padding: 14px;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: none;
}

.trial-account-card:hover,
.trial-account-card:focus-visible {
  transform: none;
  border-color: var(--line);
  box-shadow: none;
}

.trial-account-card .account-foot::after {
  display: none;
}

.trial-quota-list {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.trial-quota-list div {
  align-items: center;
  background: var(--surface-soft);
  border-radius: 8px;
  color: var(--muted);
  display: flex;
  font-size: 12px;
  justify-content: space-between;
  padding: 8px 10px;
}

.trial-quota-list b {
  color: var(--ink);
  font-size: 13px;
}

.main {
  min-width: 0;
  width: min(100%, 1480px);
  margin: 0 auto;
  padding: 28px 32px;
  min-height: 100dvh;
  overflow: auto;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  animation: fadeSlideDown .6s ease-out;
}

@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eyebrow,
.section-heading p,
.hero-copy p {
  margin: 0 0 7px;
  color: var(--accent);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 6px;
  font-size: 26px;
  line-height: 1.18;
  letter-spacing: 0;
  font-family: "Noto Sans SC", "PingFang SC", system-ui, sans-serif;
  font-weight: 700;
  background: none;
  -webkit-text-fill-color: currentColor;
}

h2 {
  margin-bottom: 14px;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: 0;
  font-family: "Noto Sans SC", "PingFang SC", system-ui, sans-serif;
  font-weight: 700;
}

.page-subtitle,
.muted,
.progress-text {
  color: var(--muted);
  font-size: 13px;
}

.profile-pill {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  padding: 10px 14px;
  min-width: 230px;
  box-shadow: none;
  transition: border-color .18s ease;
}

.account-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.profile-pill:hover {
  transform: none;
  border-color: var(--line-strong);
  box-shadow: none;
}

.profile-pill span,
.profile-pill strong {
  display: block;
}

.profile-pill span {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}

.profile-pill strong {
  font-size: 14px;
  font-weight: 600;
}

.account-logout {
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .72);
  color: var(--ink);
  padding: 6px 13px;
  font-size: 13px;
  font-weight: 700;
  transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.account-logout:hover {
  background: #fff;
  box-shadow: none;
  transform: none;
}

.view {
  display: none;
}

.view.active {
  display: block;
  animation: fadeSlideUp .5s ease-out;
}

:is(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 2px solid #1d1d1f;
  outline-offset: 3px;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-view {
  height: calc(100vh - 118px);
  min-height: 620px;
  overflow: hidden;
}

#overviewView.page-view {
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 4px;
}

#overviewView.page-view::-webkit-scrollbar {
  width: 8px;
}

#overviewView.page-view::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(102, 123, 138, .2);
}

#skillTrainingView {
  overflow-y: auto;
  overflow-x: hidden;
}

#skillTrainingView .page-card {
  height: auto;
  min-height: calc(100vh - 118px);
  overflow: visible;
}

#tutorialView {
  overflow-y: auto;
  overflow-x: hidden;
}

#tutorialView .page-card {
  height: auto;
  min-height: calc(100vh - 118px);
  overflow: visible;
}

.tutorial-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.tutorial-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  background: rgba(255, 255, 255, .5);
  cursor: pointer;
  transition: all .2s ease;
  display: flex;
  flex-direction: column;
}

.tutorial-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .08);
  border-color: rgba(185, 185, 190, .85);
}

.tutorial-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.tutorial-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}

.tutorial-badge.free {
  background: rgba(22, 163, 74, .12);
  color: #15803d;
}

.tutorial-badge.vip {
  background: rgba(245, 158, 11, .12);
  color: #d97706;
}

.tutorial-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(22, 163, 74, .1);
  color: #15803d;
  display: grid;
  place-items: center;
}

.tutorial-icon.locked {
  background: rgba(245, 158, 11, .1);
  color: #d97706;
}

.tutorial-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--ink);
}

.tutorial-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  flex: 1;
  margin-bottom: 16px;
}

.tutorial-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.tutorial-meta {
  font-size: 13px;
  color: var(--muted);
}

.tutorial-read {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.tutorial-vip .tutorial-read {
  color: #d97706;
}

.tutorial-content-panel {
  margin-top: 24px;
}

.tutorial-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .5);
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 20px;
  transition: all .2s ease;
}

.tutorial-back:hover {
  background: rgba(255, 255, 255, .8);
  color: var(--ink);
}

.tutorial-full-content {
  background: rgba(255, 255, 255, .5);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
}

.tutorial-full-content h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--ink);
}

.tutorial-full-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 28px 0 14px;
  color: var(--ink);
}

.tutorial-full-content h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 20px 0 10px;
  color: var(--ink);
}

.tutorial-full-content p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 14px;
}

.tutorial-full-content pre {
  background: rgba(0, 0, 0, .05);
  border-radius: 8px;
  padding: 16px;
  overflow-x: auto;
  margin: 16px 0;
}

.tutorial-full-content code {
  font-family: 'Fira Code', monospace;
  font-size: 13px;
}

.tutorial-full-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.tutorial-full-content th,
.tutorial-full-content td {
  border: 1px solid var(--line);
  padding: 10px 14px;
  text-align: left;
  font-size: 14px;
}

.tutorial-full-content th {
  background: rgba(0, 0, 0, .03);
  font-weight: 600;
}

.tutorial-vip-guide {
  display: flex;
  gap: 20px;
  padding: 24px 28px;
  background: rgba(245, 158, 11, .06);
  border: 1px solid rgba(245, 158, 11, .2);
  border-radius: 16px;
  margin-top: 24px;
}

.vip-guide-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(245, 158, 11, .12);
  color: #d97706;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.vip-guide-text h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.vip-guide-text p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.vip-guide-contact {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.vip-guide-contact span {
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
}

.page-card {
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, .76);
  box-shadow: var(--shadow);
  padding: 22px;
  overflow: hidden;
}

#overviewView {
  display: none;
}

#overviewView.active {
  display: grid;
  grid-template-rows: 222px 100px 58px minmax(0, 1fr);
  gap: 14px;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 18px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 28px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, .96), rgba(247, 250, 252, .9)),
    var(--surface);
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 0;
  min-height: 0;
}

.hero-panel::after {
  display: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.status-line {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(52, 199, 89, .2);
  border-radius: 999px;
  background: rgba(236, 251, 244, .86);
  color: #1f7a52;
  padding: 5px 9px;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 700;
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52, 199, 89, .15); }
  50% { box-shadow: 0 0 0 8px rgba(52, 199, 89, 0); }
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(52, 199, 89, .12);
  animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: .7; }
}

.hero-copy h2 {
  max-width: 600px;
  font-size: 24px;
  line-height: 1.22;
  margin-bottom: 10px;
  overflow-wrap: anywhere;
}

.hero-copy > span {
  color: var(--muted);
  max-width: 560px;
  line-height: 1.55;
  font-size: 13px;
}

.hero-actions,
.task-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.delivery-hint {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .62);
  padding: 8px 14px;
}

.hero-actions svg,
.primary-button svg,
.ghost-button svg,
.small-button svg {
  vertical-align: middle;
  margin-right: 6px;
  transition: transform .2s ease;
}

.primary-button:hover svg,
.ghost-button:hover svg,
.small-button:hover svg {
  transform: none;
}

.primary-button,
.ghost-button,
.small-button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 13px;
  color: var(--ink);
  background: rgba(251, 252, 251, .74);
  box-shadow: none;
  font-size: 13px;
  font-weight: 600;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.primary-button,
.ghost-button {
  min-height: 44px;
  padding: 0 17px;
}

.small-button {
  min-height: 40px;
  font-size: 13px;
}

.primary-button {
  color: #ffffff;
  border: 0;
  background: linear-gradient(145deg, var(--accent), var(--ink));
  font-weight: 700;
  box-shadow: none;
  position: relative;
  overflow: hidden;
}

.primary-button::before {
  display: none;
}

.primary-button:hover::before {
  transform: none;
}

.ghost-button {
  background: rgba(232, 240, 237, .92);
  color: var(--accent);
}

.small-button {
  background: rgba(251, 252, 251, .72);
}

.ghost-button:hover,
.small-button:hover,
.primary-button:hover {
  border-color: var(--line-strong);
  box-shadow: none;
}

.primary-button:hover {
  background: linear-gradient(145deg, #2d6152, var(--ink));
  box-shadow: 0 10px 24px rgba(37, 79, 67, .16);
}

.primary-button:active,
.ghost-button:active,
.small-button:active {
  transform: translateY(0);
  box-shadow: none;
}

.small-button.done {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), #3a6c5c);
  box-shadow: 0 2px 8px rgba(37, 79, 67, .18);
}

.upload-panel .primary-button {
  width: 100%;
  margin-top: 4px;
}

.ai-preview {
  position: relative;
  z-index: 1;
  min-height: 178px;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(20, 32, 43, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 32, 43, .04) 1px, transparent 1px),
    radial-gradient(circle at 50% 24%, #ffffff, #eef8f7 62%, #e8f1f4);
  background-size: 28px 28px;
}

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 18px rgba(0, 122, 255, .36);
  animation: scan 2.8s linear infinite;
}

@keyframes scan {
  0% { top: 0; }
  100% { top: 100%; }
}

.preview-product {
  height: 100%;
  min-height: 178px;
  display: grid;
  place-items: center;
  gap: 12px;
  align-content: center;
}

.dress-shape {
  width: 88px;
  height: 118px;
  border-radius: 52px 52px 24px 24px;
  background: linear-gradient(150deg, #dbeafe, #adc4df 58%, #e5e5ea);
  box-shadow: 0 24px 60px rgba(36, 61, 89, .18);
  clip-path: polygon(28% 0, 72% 0, 88% 30%, 72% 42%, 72% 100%, 28% 100%, 28% 42%, 12% 30%);
}

.preview-product span {
  color: var(--muted);
}

.floating-chip {
  position: absolute;
  border: 1px solid rgba(220, 228, 234, .9);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(12px);
  color: var(--ink);
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 14px 34px rgba(31, 45, 61, .12);
}

.chip-a {
  top: 16px;
  right: 16px;
}

.chip-b {
  left: 16px;
  bottom: 16px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 0;
}

.recent-panel {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  overflow: hidden;
}

.recent-panel .section-heading h2 {
  margin-bottom: 0;
}

.recent-panel .task-grid.compact {
  overflow: visible;
  min-height: 0;
  max-height: none;
}

.metric-card,
.upload-panel,
.guide-panel,
.task-card,
.gallery-card,
.empty-state {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow);
}

.metric-card {
  padding: 14px 16px;
  position: relative;
  overflow: hidden;
}

/* Note: metric-card styles moved to workbench-grid section for overview-specific styling */

.insight-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, .72);
  padding: 14px 16px;
  margin-bottom: 0;
  box-shadow: 0 14px 36px rgba(31, 45, 61, .08);
}

.insight-strip span,
.insight-strip strong {
  display: block;
}

.insight-strip span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(320px, .88fr);
  gap: 18px;
  align-items: start;
  height: auto;
}

.upload-panel,
.guide-panel {
  padding: 22px;
  height: auto;
  overflow: auto;
}

.service-summary {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.service-summary div {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(247, 247, 249, .72);
  padding: 14px;
}

.service-summary span,
.service-summary strong {
  display: block;
}

.service-summary span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.service-summary strong {
  font-size: 15px;
  line-height: 1.35;
  margin-bottom: 6px;
}

.service-summary p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
}

.create-page-card > .split-layout {
  height: auto;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.field span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

input[type="text"],
input[type="password"],
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .9);
  color: var(--ink);
  padding: 12px 13px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(29, 29, 31, .06);
  transform: translateY(-1px);
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.segmented label {
  min-height: 42px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #fbfdff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s ease;
}

.segmented label:hover {
  background: #f5f7fa;
}

.segmented label + label {
  border-left: 1px solid var(--line);
}

.segmented input {
  position: absolute;
  opacity: 0;
}

.segmented label:has(input:checked) {
  color: #ffffff;
  background: linear-gradient(135deg, var(--ink), #2d2d30);
  font-weight: 700;
}

.dropzone {
  min-height: 150px;
  border: 2px dashed var(--line-strong);
  border-radius: 18px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 22px;
  background: linear-gradient(180deg, #fafafa, #f5f5f7);
  margin-bottom: 16px;
  cursor: pointer;
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
}

.dropzone:hover {
  background: linear-gradient(180deg, #f5f5f7, #f0f0f3);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .05);
}

.dropzone-icon {
  color: var(--muted);
  margin-bottom: 8px;
  transition: transform .3s ease, color .3s ease;
}

.dropzone:hover .dropzone-icon {
  transform: translateY(-4px) scale(1.05);
  color: var(--ink);
}

.dropzone input {
  display: none;
}

.dropzone strong,
.dropzone span {
  display: block;
}

.dropzone strong {
  font-size: 15px;
  font-weight: 600;
}

.dropzone span {
  color: var(--muted);
  margin-top: 7px;
  font-size: 13px;
}

.preview-strip,
.image-strip,
.deliverable-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.preview-strip img,
.image-strip img,
.deliverable-strip img,
.gallery-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #f8fafc;
  transition: transform .3s ease, box-shadow .3s ease;
}

.preview-strip img:hover,
.image-strip img:hover,
.deliverable-strip img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

.result-mock {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 12px;
}

.mock-stack {
  display: grid;
  gap: 12px;
}

.mock-image {
  min-height: 120px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 68% 22%, rgba(0, 122, 255, .08), transparent 42%),
    linear-gradient(145deg, #ffffff, #f5f5f7);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.mock-image.large {
  min-height: 252px;
}

.mock-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(175,82,222,.06), transparent 50%),
              radial-gradient(ellipse at 70% 80%, rgba(90,200,250,.06), transparent 50%);
  animation: mock-glow-shift 6s ease-in-out infinite;
}

@keyframes mock-glow-shift {
  0%, 100% { opacity: .5; }
  50% { opacity: 1; }
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.spec-grid div {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfdff;
  padding: 12px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.spec-grid div:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.04);
}

.spec-grid span,
.spec-grid strong {
  display: block;
}

.spec-grid span {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}

.spec-grid strong {
  font-size: 14px;
  font-weight: 600;
}

.task-grid {
  display: grid;
  gap: 12px;
}

.task-grid-page {
  height: calc(100% - 72px);
  overflow: auto;
  padding-right: 4px;
  grid-template-columns: repeat(2, minmax(360px, 1fr));
  align-content: start;
}

.task-grid-page::-webkit-scrollbar,
.gallery-grid::-webkit-scrollbar,
.task-grid.compact::-webkit-scrollbar,
.upload-panel::-webkit-scrollbar,
.guide-panel::-webkit-scrollbar {
  width: 8px;
}

.task-grid-page::-webkit-scrollbar-thumb,
.gallery-grid::-webkit-scrollbar-thumb,
.task-grid.compact::-webkit-scrollbar-thumb,
.upload-panel::-webkit-scrollbar-thumb,
.guide-panel::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(102, 123, 138, .24);
}

.task-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: visible;
  min-height: 0;
  padding-right: 0;
  align-content: start;
}

.task-card {
  padding: 16px;
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.task-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .07);
  border-color: rgba(185, 185, 190, .9);
}

.task-grid-page .task-card {
  min-height: 0;
}

.task-grid-page .image-strip,
.task-grid-page .deliverable-strip {
  display: none;
}

.task-grid.compact .task-card {
  min-height: 214px;
}

.task-grid.compact .task-meta,
.task-grid.compact .image-strip,
.task-grid.compact .deliverable-strip,
.task-grid.compact .task-actions {
  display: none;
}

.task-card::after {
  display: none;
}

.task-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.task-title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
}

.task-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(92px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.task-summary div {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fafafa;
  padding: 9px 10px;
  transition: background .2s ease;
}

.task-card:hover .task-summary div {
  background: #f5f7fa;
}

.task-summary span,
.task-summary strong {
  display: block;
}

.task-summary span {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}

.task-summary strong {
  font-size: 14px;
  font-weight: 600;
}

.status-pill {
  align-self: flex-start;
  border-radius: 999px;
  padding: 7px 10px;
  color: #0f172a;
  background: #eef3f6;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  transition: transform .2s ease;
}

.task-card:hover .status-pill {
  transform: scale(1.02);
}

.status-pending { color: #8a5a12; background: #fff7e8; }
.status-processing { color: #1550b8; background: #edf4ff; }
.status-retouching { color: #32606b; background: #eef7f8; }
.status-reviewing { color: #6842a0; background: #f5effb; }
.status-completed { color: #197144; background: #edf9f1; }
.status-rejected { color: #b84030; background: #fef2f2; }

.task-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 12px;
}

.progress-track {
  height: 8px;
  border-radius: 999px;
  background: #e5edf4;
  overflow: hidden;
  margin: 12px 0 8px;
  position: relative;
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1d1d1f, #3a3a3c, #1d1d1f);
  background-size: 200% 100%;
  transition: width .6s cubic-bezier(.4, 0, .2, 1);
  position: relative;
  overflow: hidden;
}

/* 流动光波效果 - 处理中状态 */
.progress-fill.is-processing {
  background: linear-gradient(90deg, #007aff, #5ac8fa, #007aff);
  background-size: 200% 100%;
  animation: progress-flow 1.5s linear infinite;
  box-shadow: 0 0 12px rgba(0, 122, 255, 0.3);
}

.progress-fill.is-processing::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: light-sweep 2s ease-in-out infinite;
}

/* 精修中状态 - 青色 */
.progress-fill.is-retouching {
  background: linear-gradient(90deg, #00b4d8, #90e0ef, #00b4d8);
  background-size: 200% 100%;
  animation: progress-flow 1.5s linear infinite;
  box-shadow: 0 0 12px rgba(0, 180, 216, 0.3);
}

.progress-fill.is-retouching::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: light-sweep 2s ease-in-out infinite;
}

/* 审核中状态 - 紫色 */
.progress-fill.is-reviewing {
  background: linear-gradient(90deg, #af52de, #e0b0ff, #af52de);
  background-size: 200% 100%;
  animation: progress-flow 1.5s linear infinite;
  box-shadow: 0 0 12px rgba(175, 82, 222, 0.3);
}

.progress-fill.is-reviewing::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: light-sweep 2s ease-in-out infinite;
}

/* 已完成 - 绿色静态 */
.progress-fill.is-completed {
  background: linear-gradient(90deg, #34c759, #5dd879, #34c759);
  background-size: 100% 100%;
  box-shadow: 0 0 8px rgba(52, 199, 89, 0.2);
}

/* 待处理 - 灰色静态 */
.progress-fill.is-pending {
  background: linear-gradient(90deg, #8e8e93, #aeaeb2, #8e8e93);
  background-size: 100% 100%;
}

/* 光点粒子效果 - 沿进度条流动 */
.progress-track::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
}

.progress-track.has-animation::before {
  animation: particle-flow 2s linear infinite;
}

@keyframes progress-flow {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes light-sweep {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

@keyframes particle-flow {
  0% {
    left: 0;
    opacity: 0;
    transform: translateY(-50%) scale(0.5);
  }
  10% {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
  90% {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
  100% {
    left: 100%;
    opacity: 0;
    transform: translateY(-50%) scale(0.5);
  }
}

/* 脉冲发光效果 */
.progress-fill.is-processing,
.progress-fill.is-retouching,
.progress-fill.is-reviewing {
  position: relative;
}

.progress-fill.is-processing::before,
.progress-fill.is-retouching::before,
.progress-fill.is-reviewing::before {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  transform: translate(50%, -50%);
  animation: pulse-glow 1.5s ease-in-out infinite;
  pointer-events: none;
}

.progress-fill.is-processing::before {
  background: radial-gradient(circle, rgba(0,122,255,0.6), transparent 70%);
}

.progress-fill.is-retouching::before {
  background: radial-gradient(circle, rgba(0,180,216,0.6), transparent 70%);
}

.progress-fill.is-reviewing::before {
  background: radial-gradient(circle, rgba(175,82,222,0.6), transparent 70%);
}

@keyframes pulse-glow {
  0%, 100% {
    transform: translate(50%, -50%) scale(0.8);
    opacity: 0.6;
  }
  50% {
    transform: translate(50%, -50%) scale(1.3);
    opacity: 1;
  }
}

.progress-text {
  margin-bottom: 0;
  font-size: 13px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 220px));
  gap: 14px;
  height: 100%;
  overflow: auto;
  padding-right: 4px;
}

.gallery-layout {
  height: calc(100% - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
}

.gallery-layout.is-empty {
  grid-template-columns: minmax(0, 680px);
}

.gallery-layout.is-empty .gallery-aside {
  display: none;
}

.gallery-layout.is-empty .gallery-grid {
  align-content: start;
  grid-template-columns: minmax(0, 1fr);
}

.gallery-empty-note {
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  background: rgba(255, 255, 255, .58);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  padding: 18px 20px;
}

.gallery-aside {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fafafa;
  padding: 18px;
  align-self: start;
}

.gallery-aside span,
.gallery-aside strong,
.gallery-aside p {
  display: block;
}

.gallery-aside span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.gallery-aside strong {
  line-height: 1.45;
  font-weight: 600;
}

.gallery-aside p {
  color: var(--muted);
  line-height: 1.7;
  margin: 12px 0 16px;
}

.gallery-card {
  padding: 12px;
  align-self: start;
  transition: transform .18s ease, box-shadow .18s ease;
}

.gallery-album-card {
  cursor: pointer;
}

.gallery-album-card:focus-visible {
  outline: 3px solid rgba(29, 29, 31, .18);
  outline-offset: 4px;
}

.gallery-album-preview {
  display: grid;
  gap: 6px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(246, 246, 248, .8);
}

.gallery-album-preview.count-1 {
  grid-template-columns: 1fr;
}

.gallery-album-preview.count-2,
.gallery-album-preview.count-3,
.gallery-album-preview.count-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery-album-preview img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: #f8fafc;
}

.gallery-album-preview.count-3 img:first-child {
  grid-row: span 2;
}

.gallery-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, .1);
}

.gallery-card img {
  transition: transform .3s ease;
}

.gallery-card:hover img {
  transform: scale(1.02);
}

.gallery-card div {
  display: grid;
  gap: 4px;
  margin: 10px 0;
}

.gallery-card span {
  color: var(--muted);
  font-size: 14px;
}

.gallery-card em {
  color: var(--accent);
  font-size: 12px;
  font-style: normal;
}

.gallery-card .small-button {
  display: grid;
  place-items: center;
  width: fit-content;
  min-width: 96px;
  margin-top: 6px;
}

.modal-open {
  overflow: hidden;
}

.asset-viewer {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 80;
}

.asset-viewer.open {
  display: block;
}

.asset-viewer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .2);
  backdrop-filter: blur(12px);
}

.asset-viewer-panel {
  position: absolute;
  inset: 22px;
  overflow: auto;
  border: 1px solid rgba(210, 210, 215, .8);
  border-radius: 30px;
  background: rgba(250, 250, 252, .94);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .18);
  padding: 24px;
}

.asset-viewer-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

.asset-viewer-head h2 {
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: 0;
}

.asset-viewer-head span {
  color: var(--muted);
}

.asset-viewer-close {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.asset-viewer-grid {
  columns: 3 260px;
  column-gap: 16px;
}

.asset-preview-card {
  display: inline-block;
  width: 100%;
  break-inside: avoid;
  margin: 0 0 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, .8);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .05);
}

.asset-preview-card img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 72vh;
  object-fit: contain;
  background: #f5f5f7;
}

.asset-preview-card footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px;
}

.asset-preview-card footer span {
  color: var(--muted);
  font-size: 13px;
}

.config-center {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 82;
}

.config-center.open {
  display: block;
}

.config-center-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .18);
  backdrop-filter: blur(12px);
}

.config-center-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(860px, calc(100vw - 32px));
  max-height: calc(100vh - 44px);
  overflow: auto;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(210, 210, 215, .84);
  border-radius: 30px;
  background: rgba(250, 250, 252, .95);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .18);
  padding: 24px;
}

.config-center-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

.config-center-head h2 {
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: 0;
}

.config-center-head span {
  color: var(--muted);
}

.config-center-close {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.config-center-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.config-block {
  min-height: 160px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, .72);
  padding: 18px;
}

.config-block span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}

.config-block strong {
  display: block;
  font-size: 22px;
  line-height: 1.25;
  margin-bottom: 10px;
}

.config-block p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.config-hero {
  background:
    radial-gradient(circle at 78% 20%, rgba(210, 225, 222, .86), transparent 42%),
    rgba(255, 255, 255, .78);
}

.config-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.config-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .66);
  padding: 13px 15px;
}

.config-list span {
  color: var(--muted);
  font-size: 13px;
}

.config-list strong,
.config-list a,
.inline-link {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.inline-link {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.modules-page-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 16px;
  overflow-y: auto;
  overflow-x: hidden;
}

.modules-hero {
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    radial-gradient(circle at 82% 12%, rgba(37, 79, 67, .08), transparent 22rem),
    linear-gradient(120deg, #fbfcfb 0%, #fbfcfb 52%, #eef5f2 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 390px);
  gap: 22px;
  padding: 26px;
}

.modules-hero p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.modules-hero h2 {
  max-width: 760px;
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.08;
}

.modules-hero span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.modules-hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-content: end;
}

.modules-hero-proof div {
  min-height: 104px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(251, 252, 251, .78);
  padding: 15px;
  display: grid;
  align-content: end;
}

.modules-hero-proof strong {
  display: block;
  margin-bottom: 5px;
  font-size: 24px;
  line-height: 1;
}

.modules-hero-proof span {
  font-size: 12px;
}

.client-module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-content: start;
}

.client-module-card {
  min-height: 238px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 20px;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.client-module-card.module-featured {
  background:
    linear-gradient(145deg, var(--accent) 0%, var(--ink) 100%);
  color: #ffffff;
}

.client-module-card:hover,
.client-module-card:focus-visible,
.client-module-card:focus-within {
  border-color: rgba(37, 79, 67, .22);
  transform: translateY(-2px);
}

.client-module-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.client-module-card.is-link {
  color: inherit;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.client-module-card.is-link:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 79, 67, .18);
  box-shadow: 0 18px 36px rgba(23, 32, 29, .075);
}

.module-card-main {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  transition: opacity .18s ease, transform .18s ease;
}

.module-card-main > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 28px;
  border: 1px solid rgba(37, 79, 67, .12);
  border-radius: 999px;
  background: #f5f5f7;
  color: var(--muted);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 18px;
}

.client-module-card.module-featured .module-card-main > span {
  border-color: rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .78);
}

.module-card-main > strong {
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: 0;
}

.module-card-main > p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.client-module-card.module-featured .module-card-main > p,
.client-module-card.module-featured .module-card-main > small {
  color: rgba(255, 255, 255, .72);
}

.module-card-main > small {
  display: block;
  margin-top: auto;
  padding-top: 18px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

.module-card-cue {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  justify-content: space-between;
  margin-top: 14px;
  min-height: 32px;
  padding-top: 10px;
}

.module-card-cue::after {
  content: '+';
  font-size: 18px;
  line-height: 1;
}

.client-module-card.module-featured .module-card-cue {
  border-top-color: rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .66);
}

.module-card-detail {
  position: absolute;
  inset: 10px;
  z-index: 2;
  border: 1px solid rgba(29, 29, 31, .08);
  border-radius: 16px;
  background: rgba(29, 29, 31, .96);
  color: #ffffff;
  display: grid;
  align-content: center;
  gap: 9px;
  opacity: 0;
  pointer-events: none;
  padding: 18px;
  transform: translateY(12px) scale(.98);
  transition: opacity .18s ease, transform .18s ease;
}

.client-module-card.module-featured .module-card-detail {
  border-color: rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .96);
  color: var(--ink);
}

.module-card-detail b {
  display: block;
  margin-bottom: 2px;
  font-size: 17px;
  line-height: 1.25;
}

.module-card-detail span {
  display: block;
  color: rgba(255, 255, 255, .76);
  font-size: 13px;
  line-height: 1.55;
  padding-left: 12px;
  position: relative;
}

.client-module-card.module-featured .module-card-detail span {
  color: var(--muted);
}

.module-card-detail span::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  left: 0;
  position: absolute;
  top: .75em;
}

.client-module-card:hover .module-card-main,
.client-module-card:focus-visible .module-card-main,
.client-module-card:focus-within .module-card-main,
.client-module-card.is-open .module-card-main {
  opacity: .08;
  transform: translateY(-8px);
}

.client-module-card:hover .module-card-detail,
.client-module-card:focus-visible .module-card-detail,
.client-module-card:focus-within .module-card-detail,
.client-module-card.is-open .module-card-detail {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.module-roadmap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.module-roadmap div {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  padding: 18px 20px;
}

.module-roadmap b {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
}

.module-roadmap span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.ai-news-page-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 16px;
  overflow-y: auto;
  overflow-x: hidden;
}

.ai-news-hero {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 24px;
  padding: 26px;
}

.ai-news-hero p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ai-news-hero h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.08;
}

.ai-news-hero span {
  color: var(--muted);
  display: block;
  font-size: 14px;
  line-height: 1.7;
  max-width: 760px;
}

.ai-news-signal {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
  display: grid;
  align-content: end;
  min-height: 144px;
  padding: 18px;
}

.ai-news-signal strong {
  display: block;
  font-size: 28px;
  line-height: 1.1;
  margin-bottom: 8px;
}

.ai-news-layout {
  display: grid;
  grid-template-columns: minmax(300px, .9fr) minmax(0, 1.35fr);
  gap: 14px;
}

.ai-news-feature,
.ai-news-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
}

.ai-news-feature {
  min-height: 430px;
  padding: 24px;
}

.ai-news-feature > span,
.ai-news-card > span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 18px;
  padding: 0 10px;
}

.ai-news-feature h3 {
  font-size: 30px;
  line-height: 1.18;
  margin-bottom: 14px;
}

.ai-news-feature p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.ai-news-points {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  margin-top: 24px;
  padding-top: 18px;
}

.ai-news-points b {
  font-size: 15px;
}

.ai-news-points span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.ai-news-feed {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ai-news-card {
  min-height: 208px;
  padding: 20px;
  transition: border-color .18s ease, transform .18s ease;
}

.ai-news-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.ai-news-card strong {
  display: block;
  font-size: 20px;
  line-height: 1.25;
  margin-bottom: 10px;
}

.ai-news-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
}

.empty-state {
  padding: 32px 24px;
  display: grid;
  gap: 12px;
  color: var(--muted);
  text-align: center;
  place-items: center;
}

.empty-icon {
  color: var(--line-strong);
  margin-bottom: 4px;
  transition: color .3s ease;
}

.empty-state:hover .empty-icon {
  color: var(--muted);
}

.empty-state strong {
  color: var(--ink);
  font-size: 16px;
}

.empty-state span {
  font-size: 13px;
}

/* Workbench redesign: neutral Apple-style Bento dashboard */
#overviewView.active {
  display: block;
}

.workbench-grid {
  height: auto;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: none;
  grid-auto-rows: auto;
  align-items: start;
  gap: 14px;
}

.dashboard-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: none;
  padding: 18px;
  min-width: 0;
  transition: border-color .18s ease;
}

.dashboard-card:hover {
  transform: none;
  box-shadow: none;
  border-color: rgba(185, 185, 190, .85);
}

.command-card {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  order: 1;
}

.command-card::before {
  display: none;
}

.command-card .card-kicker {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.command-card h2 {
  max-width: 560px;
  margin-bottom: 8px;
  font-size: 30px;
  line-height: 1.18;
}

.command-card > span {
  max-width: 540px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.preview-card {
  display: none;
  grid-template-rows: 1fr auto;
  gap: 12px;
}

.mini-preview {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f7f7f9;
}

.preview-card .dress-shape {
  width: 72px;
  height: 96px;
  box-shadow: none;
}

.preview-meta {
  display: grid;
  gap: 2px;
}

.preview-meta span {
  color: var(--muted);
  font-size: 12px;
}

.service-card {
  display: none;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  align-content: center;
  gap: 6px 12px;
  min-height: 128px;
}

.service-card--what,
.service-card--upgrade {
  grid-column: span 1;
}

.service-card--provide {
  grid-column: span 2;
}

.service-card p {
  grid-column: 2;
  margin: 0;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.service-card strong {
  grid-column: 2;
  font-size: 17px;
  line-height: 1.3;
}

.service-card span {
  grid-column: 2;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.service-icon {
  grid-row: 1 / span 3;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--ink);
  font-size: 12px;
  font-weight: 900;
  box-shadow: none;
}

#overviewView .metric-card {
  padding: 0;
  position: relative;
  overflow: hidden;
  cursor: default;
  align-self: start;
  min-height: 124px;
  order: 2;
}

.metric-canvas {
  display: none;
}

.metric-card:hover .metric-canvas {
  opacity: 0;
}

.metric-content {
  position: relative;
  z-index: 1;
  padding: 15px 18px 16px;
  min-height: 124px;
  height: auto;
  display: flex;
  flex-direction: column;
}

.metric-card .metric-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  background: var(--accent-soft);
  color: var(--ink);
  transition: none;
}

.metric-card:hover .metric-icon {
  transform: none;
}

.metric-card .metric-icon--green {
  background: var(--accent-soft);
  color: var(--ink);
  box-shadow: none;
}

.metric-card .metric-icon--amber {
  background: var(--accent-soft);
  color: var(--ink);
  box-shadow: none;
}

.metric-card .metric-icon--violet {
  background: var(--accent-soft);
  color: var(--ink);
  box-shadow: none;
}

.metric-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.metric-card strong {
  display: block;
  font-size: 24px;
  margin: 6px 0 2px;
  font-family: "Noto Sans SC", "PingFang SC", system-ui, sans-serif;
  font-weight: 700;
  background: none;
  -webkit-text-fill-color: currentColor;
}

.metric-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.recent-panel {
  grid-column: span 4;
  min-height: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
  overflow: visible;
  order: 3;
}

.recent-panel .empty-state {
  min-height: 230px;
  align-self: stretch;
}

.examples-panel {
  grid-column: span 4;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  order: 4;
}

.analysis-heading {
  align-items: start;
  display: flex;
  justify-content: space-between;
}

.analysis-heading h2 {
  margin-bottom: 0;
}

.analysis-model {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 11px;
}

.analysis-page-card {
  display: grid;
  gap: 18px;
  grid-template-rows: auto minmax(0, 1fr);
}

.analysis-page-layout {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(500px, 1fr) minmax(280px, 340px);
  min-height: 0;
  overflow: auto;
}

.analysis-page-layout--trial {
  grid-template-columns: minmax(560px, 1fr) minmax(300px, 360px);
}

.analysis-workspace,
.analysis-settings-card {
  background: rgba(255, 255, 255, .62);
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid;
  gap: 14px;
  padding: 20px;
}

.model-panel {
  align-self: start;
  background:
    linear-gradient(145deg, rgba(255,255,255,.9), rgba(246,247,250,.76));
}

.model-panel h3 {
  font-size: 20px;
  line-height: 1.25;
  margin: 0 0 8px;
}

.model-status {
  border: 1px solid rgba(29,29,31,.09);
  border-radius: 16px;
  background: rgba(29,29,31,.025);
  display: grid;
  gap: 5px;
  padding: 16px;
  position: relative;
}

.model-status > span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #34c759;
  box-shadow: 0 0 0 6px rgba(52,199,89,.12);
  position: absolute;
  right: 16px;
  top: 17px;
}

.model-status strong {
  font-size: 17px;
}

.model-status small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.model-metrics {
  display: grid;
  gap: 10px;
}

.model-metrics div {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.72);
  display: grid;
  gap: 3px;
  padding: 13px 14px;
}

.model-metrics strong {
  font-size: 24px;
  line-height: 1;
}

.model-metrics span,
.model-checklist span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.model-checklist {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.62);
  display: grid;
  gap: 8px;
  padding: 15px;
}

.model-checklist strong {
  font-size: 15px;
}

.model-checklist span {
  border-top: 1px solid rgba(29,29,31,.07);
  padding-top: 8px;
}

.analysis-guide {
  color: var(--muted);
  display: grid;
  gap: 9px;
  line-height: 1.65;
}

.analysis-guide strong {
  color: var(--ink);
  font-size: 17px;
}

.analysis-guide p {
  font-size: 13px;
  margin: 0;
}

.analysis-flow {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2px;
}

.analysis-flow div {
  align-items: center;
  border: 1px solid rgba(29, 29, 31, .09);
  border-radius: 14px;
  background: rgba(255, 255, 255, .78);
  display: grid;
  gap: 3px 9px;
  grid-template-columns: 28px minmax(0, 1fr);
  padding: 11px;
}

.analysis-flow b {
  grid-row: span 2;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  display: grid;
  font-size: 13px;
  place-items: center;
}

.analysis-flow strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
}

.analysis-flow span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.analysis-proof {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 5px 0 2px;
}

.analysis-proof span {
  background: rgba(32, 57, 102, .045);
  border: 1px solid rgba(32, 57, 102, .11);
  border-radius: 7px;
  color: var(--muted);
  display: grid;
  font-size: 11px;
  gap: 2px;
  padding: 10px 9px;
}

.analysis-proof strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.1;
}

.analysis-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 0;
}

.analysis-tags span {
  background: rgba(29, 29, 31, .045);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  font-size: 11px;
  padding: 5px 8px;
}

.copy-analysis-form {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .72);
  display: grid;
  gap: 13px;
  padding: 16px;
}

.operation-title {
  align-items: center;
  display: flex;
  gap: 10px;
}

.operation-title b {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  padding: 5px 9px;
}

.operation-title strong {
  font-size: 16px;
}

.copy-analysis-form textarea {
  min-height: 170px;
  resize: vertical;
}

.analysis-actions {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.analysis-actions > span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.analysis-actions .primary-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.copy-analysis-result {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  padding-top: 16px;
}

.copy-analysis-result[hidden] {
  display: none;
}

.publish-draft-panel {
  background: rgba(29, 29, 31, .03);
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid;
  gap: 14px;
  padding: 17px;
}

.publish-draft-intro {
  align-items: end;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.publish-draft-intro > div {
  display: grid;
  gap: 6px;
  max-width: 540px;
}

.publish-draft-intro .card-kicker {
  margin: 0;
}

.publish-draft-intro strong {
  font-size: 16px;
}

.publish-draft-intro p:last-child,
.publish-draft-status {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
}

.publish-draft-intro .primary-button {
  flex-shrink: 0;
}

.publish-draft-intro .primary-button:disabled {
  box-shadow: none;
  cursor: not-allowed;
  opacity: .42;
}

.publish-draft-result {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  padding-top: 14px;
}

.publish-draft-result[hidden] {
  display: none;
}

.compact-action {
  min-height: 32px;
  padding: 0 12px;
}

.analysis-result-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.analysis-result-head strong {
  font-size: 15px;
}

.analysis-result-head span {
  color: var(--muted);
  font-size: 12px;
}

.analysis-report {
  background: rgba(29, 29, 31, .025);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.65;
  margin: 0;
  max-height: 440px;
  overflow: auto;
  padding: 16px;
  word-break: break-word;
}

.analysis-report h3,
.analysis-report h4,
.analysis-report h5 {
  color: var(--ink);
  font-weight: 700;
  margin: 18px 0 9px;
}

.analysis-report h3:first-child,
.analysis-report h4:first-child,
.analysis-report h5:first-child {
  margin-top: 0;
}

.analysis-report h3 {
  font-size: 17px;
}

.analysis-report h4,
.analysis-report h5 {
  font-size: 15px;
}

.analysis-report p {
  color: var(--muted);
  margin: 0 0 11px;
}

.analysis-report p:last-child {
  margin-bottom: 0;
}

.analysis-report strong {
  color: var(--ink);
  font-weight: 650;
}

.analysis-report code {
  background: rgba(29, 29, 31, .065);
  border-radius: 4px;
  font-size: 12px;
  padding: 2px 5px;
}

.analysis-report ul,
.analysis-report ol {
  color: var(--muted);
  display: grid;
  gap: 6px;
  margin: 0 0 13px;
  padding-left: 20px;
}

.analysis-table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 4px 0 15px;
  overflow-x: auto;
}

.analysis-report table {
  border-collapse: collapse;
  min-width: 100%;
}

.analysis-report th {
  background: rgba(32, 57, 102, .05);
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
  text-align: left;
}

.analysis-report td,
.analysis-report th {
  border-bottom: 1px solid var(--line);
  padding: 9px 10px;
  vertical-align: top;
}

.analysis-report tbody tr:last-child td {
  border-bottom: 0;
}

.analysis-report td {
  color: var(--muted);
  line-height: 1.55;
}

.analysis-settings-card {
  align-content: start;
}

.analysis-settings-card h3 {
  font-size: 19px;
  margin: 6px 0 9px;
}

.analysis-setting-copy,
.analysis-security-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
  margin: 0;
}

.analysis-config-form {
  display: grid;
  gap: 13px;
}

.analysis-config-form .primary-button {
  width: 100%;
}

.api-status {
  background: rgba(29, 29, 31, .035);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 5px;
  padding: 12px 13px;
}

.api-status strong {
  font-size: 13px;
}

.api-status span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.api-status.is-ready {
  background: rgba(34, 150, 92, .08);
  border-color: rgba(34, 150, 92, .22);
}

.api-status.is-ready strong {
  color: #177345;
}

.examples-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(270px, 1fr));
  grid-auto-columns: minmax(270px, 1fr);
  grid-auto-flow: column;
  gap: 14px;
  overflow: auto;
  min-height: 0;
}

.example-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .66);
  padding: 14px;
  transition: transform .2s ease, box-shadow .2s ease;
  cursor: default;
}

.trial-example-card {
  cursor: pointer;
}

.trial-example-card:focus-visible {
  outline: 3px solid rgba(29, 29, 31, .18);
  outline-offset: 4px;
}

.example-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .06);
}

.examples-empty-note {
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  background: rgba(255, 255, 255, .58);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  padding: 18px 20px;
}

.example-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.example-card-head strong {
  font-size: 15px;
}

.example-card-head span {
  color: var(--muted);
  font-size: 12px;
}

.example-images {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
}

.example-images img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #f8fafc;
}

.example-arrow {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 18px;
}

.recent-panel .section-heading h2 {
  margin-bottom: 0;
}

.compact-actions {
  margin-top: 16px;
}

/* Restrained platform polish */
.sidebar,
.account-card,
.profile-pill,
.page-card,
.dashboard-card,
.metric-card,
.upload-panel,
.guide-panel,
.task-card,
.gallery-card,
.gallery-aside,
.empty-state {
  border-color: rgba(210, 210, 215, .78);
  border-color: rgba(37, 79, 67, .13);
  background-color: var(--surface);
  backdrop-filter: none;
}

.sidebar {
  background-color: rgba(251, 252, 251, .92);
  backdrop-filter: blur(20px);
}

.dashboard-card,
.metric-card,
.task-card,
.gallery-card,
.upload-panel,
.guide-panel,
.gallery-aside {
  box-shadow: none;
}

.dashboard-card:hover,
.task-card:hover,
.gallery-card:hover {
  border-color: var(--line-strong);
}

.metric-card strong,
.task-title,
.gallery-card strong {
  letter-spacing: 0;
}

/* Preview canvas */
#previewCanvas {
  width: 100%;
  height: 100%;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

.feedback-page-card {
  padding: 36px 40px;
}

.feedback-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 28px;
}

.feedback-form-section {
  background: rgba(255, 255, 255, .6);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
}

.feedback-type-select {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.feedback-type-select label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .5);
  transition: all .2s;
}

.feedback-type-select label:hover {
  background: rgba(255, 255, 255, .8);
}

.feedback-type-select input[type="radio"] {
  accent-color: var(--ink);
}

.feedback-type-select input[type="radio"]:checked + span {
  font-weight: 700;
}

.feedback-type-select input[type="radio"]:checked ~ label {
  background: rgba(255, 255, 255, .9);
  border-color: var(--ink);
}

.feedback-field {
  margin-bottom: 16px;
}

.feedback-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
}

.feedback-field input,
.feedback-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .8);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
}

.feedback-field input:focus,
.feedback-field textarea:focus {
  border-color: rgba(29, 29, 31, .35);
  box-shadow: 0 0 0 3px rgba(29, 29, 31, .06);
}

.feedback-field textarea {
  min-height: 140px;
  resize: vertical;
}

.feedback-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
  }

  #feedbackHint {
    font-size: 12px;
    color: var(--muted);
  }

  .feedback-examples {
    background: rgba(255, 255, 255, .5);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 18px;
  }

  .feedback-examples > p {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 10px;
  }

  .example-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .example-tags .tag {
    padding: 5px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .7);
    border: 1px solid var(--line);
    font-size: 12px;
    color: var(--muted);
    cursor: pointer;
    transition: all .2s;
  }

  .example-tags .tag:hover {
    background: rgba(255, 255, 255, .95);
    border-color: var(--ink);
    color: var(--ink);
  }

  .skill-training-page-card {
    padding: 36px 40px;
  }

  .skill-training-intro {
    background: rgba(255, 255, 255, .6);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 28px 32px;
    margin-top: 28px;
  }

  .skill-intro-main {
    margin-bottom: 24px;
  }

  .skill-intro-label {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    background: rgba(29, 29, 31, .06);
    font-size: 12px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 12px;
  }

  .skill-intro-main h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
  }

  .skill-intro-main p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--ink);
    max-width: 800px;
  }

  .skill-benefits-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .skill-benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background: rgba(255, 255, 255, .5);
    border-radius: 12px;
    border: 1px solid var(--line);
  }

  .benefit-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(29, 29, 31, .06);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--ink);
  }

  .benefit-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .benefit-text strong {
    font-size: 14px;
    font-weight: 700;
  }

  .benefit-text span {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.4;
  }

  .skill-training-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
    margin-top: 28px;
  }

  .skill-section-header {
    margin-bottom: 20px;
  }

  .skill-section-header h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
  }

  .skill-section-header p {
    font-size: 13px;
    color: var(--muted);
  }

  .skill-request-section {
    background: rgba(255, 255, 255, .6);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 24px;
  }

  .skill-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .skill-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .skill-form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .skill-form-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
  }

  .skill-form-field input,
  .skill-form-field textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, .8);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
  }

  .skill-form-field input:focus,
  .skill-form-field textarea:focus {
    border-color: rgba(29, 29, 31, .35);
    box-shadow: 0 0 0 3px rgba(29, 29, 31, .06);
  }

  .skill-form-field textarea {
    min-height: 90px;
    resize: vertical;
  }

  .checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .5);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
    transition: all .2s;
  }

  .checkbox-group label:hover {
    background: rgba(255, 255, 255, .85);
  }

  .checkbox-group input[type="checkbox"] {
    accent-color: var(--ink);
    width: 15px;
    height: 15px;
  }

  .skill-submit-btn {
    width: 100%;
    margin-top: 8px;
  }

  .skill-history-section {
    background: rgba(255, 255, 255, .6);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 24px;
    align-self: start;
  }

  .skill-request-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .skill-request-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--muted);
    font-size: 13px;
    background: rgba(255, 255, 255, .4);
    border-radius: 12px;
    border: 1px dashed var(--line);
  }

  .skill-request-item {
    background: rgba(255, 255, 255, .7);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 16px;
  }

  .skill-request-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
  }

  .skill-request-item-name {
    font-weight: 700;
    font-size: 14px;
  }

  .skill-request-item-status {
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
  }

  .skill-request-item-status.pending { background: rgba(245, 158, 11, .1); color: #d97706; }
  .skill-request-item-status.processing { background: rgba(59, 130, 246, .1); color: #2563eb; }
  .skill-request-item-status.completed { background: rgba(34, 150, 92, .1); color: #177345; }

  .skill-request-item-desc {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 8px;
  }

  .skill-request-item-time {
    font-size: 11px;
    color: var(--muted);
  }

  .skill-flow-section {
    margin-top: 32px;
    padding: 28px 32px;
    background: rgba(255, 255, 255, .6);
    border: 1px solid var(--line);
    border-radius: 20px;
  }

  .skill-flow-section h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
  }

  .flow-timeline {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .flow-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
  }

  .flow-step-num {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
  }

  .flow-step-info strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
  }

  .flow-step-info p {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.4;
    max-width: 140px;
  }

  .flow-step-line {
    width: 40px;
    height: 2px;
    background: var(--line);
    flex-shrink: 0;
  }

  .excellent-skills-section {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
  }

  .excellent-skills-section > .skill-section-header {
    margin-bottom: 24px;
  }

  .skill-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }

  .skill-card-item {
    background: rgba(255, 255, 255, .6);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px;
    transition: all .2s;
  }

  .skill-card-item:hover {
    background: rgba(255, 255, 255, .85);
    border-color: rgba(29, 29, 31, .15);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .05);
  }

  .skill-card-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(29, 29, 31, .06);
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 12px;
  }

  .skill-card-item h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
  }

  .skill-card-item p {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 16px;
  }

  .skill-card-metrics {
    display: flex;
    gap: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
  }

  .metric-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .metric-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
  }

  .metric-label {
    font-size: 11px;
    color: var(--muted);
  }

  

.feedback-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 500px;
  overflow-y: auto;
}

.feedback-loading {
  text-align: center;
  padding: 40px;
  color: var(--muted);
  font-size: 13px;
}

.feedback-empty {
  text-align: center;
  padding: 40px;
  color: var(--muted);
  font-size: 13px;
}

.feedback-item {
  background: rgba(255, 255, 255, .7);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  transition: border-color .2s;
}

.feedback-item:hover {
  border-color: rgba(29, 29, 31, .18);
}

.feedback-item-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.feedback-item-type {
      padding: 2px 8px;
      border-radius: 6px;
      font-size: 11px;
      font-weight: 700;
      background: var(--soft);
      color: var(--muted);
      flex-shrink: 0;
    }

    .feedback-item-type.question {
      background: rgba(59, 130, 246, .1);
      color: #2563eb;
    }

    .feedback-item-type.requirement {
      background: rgba(139, 92, 246, .1);
      color: #7c3aed;
    }

    .feedback-item-type.suggestion {
      background: rgba(16, 185, 129, .1);
      color: #059669;
    }

    .feedback-item-type.ai_requirement {
      background: rgba(245, 158, 11, .1);
      color: #d97706;
    }

.feedback-item-title {
  font-weight: 700;
  font-size: 13px;
  flex: 1;
}

.feedback-item-status {
      padding: 2px 8px;
      border-radius: 6px;
      font-size: 11px;
      font-weight: 700;
      flex-shrink: 0;
    }

    .feedback-item-status.waiting,
    .feedback-item-status.pending {
      background: rgba(245, 158, 11, .12);
      color: #d97706;
    }

    .feedback-item-status.replied {
      background: rgba(34, 150, 92, .12);
      color: #177345;
    }

    .feedback-item-status.submitted {
      background: rgba(100, 116, 139, .1);
      color: #64748b;
    }

.feedback-item-content {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 8px;
}

.feedback-item-reply {
  background: rgba(34, 150, 92, .06);
  border: 1px solid rgba(34, 150, 92, .15);
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 10px;
}

.feedback-item-reply-header {
  font-size: 11px;
  font-weight: 700;
  color: #177345;
  margin-bottom: 6px;
}

.feedback-item-reply-content {
  font-size: 12px;
  color: #177345;
  line-height: 1.5;
}

.feedback-item-time {
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
}

/* Frosted tech system pass */
:root {
  --glass-surface: rgba(251, 252, 251, .62);
  --glass-surface-strong: rgba(251, 252, 251, .82);
  --glass-surface-muted: rgba(242, 246, 245, .72);
  --glass-line: rgba(255, 255, 255, .66);
  --tech-line: rgba(37, 79, 67, .16);
  --tech-shadow: 0 22px 60px rgba(23, 32, 29, .08);
  --tech-shadow-soft: 0 12px 30px rgba(23, 32, 29, .055);
  --tech-inset: inset 0 1px 0 rgba(255, 255, 255, .74);
  --motion-fast: 160ms cubic-bezier(.2, .8, .2, 1);
  --motion-base: 240ms cubic-bezier(.2, .8, .2, 1);
}

body {
  background:
    radial-gradient(circle at 8% 4%, rgba(229, 244, 239, .84), transparent 34rem),
    radial-gradient(circle at 92% 84%, rgba(214, 228, 223, .52), transparent 36rem),
    linear-gradient(135deg, rgba(251, 252, 251, .97), rgba(244, 247, 246, .94)),
    linear-gradient(90deg, rgba(37, 79, 67, .035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(37, 79, 67, .025) 1px, transparent 1px);
  background-size: auto, 44px 44px, 44px 44px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, 0) 34%),
    linear-gradient(115deg, rgba(37, 79, 67, .055), transparent 34%, rgba(154, 106, 18, .025) 72%, transparent);
}

.app-shell {
  isolation: isolate;
}

.sidebar,
.account-card,
.profile-pill,
.page-card,
.dashboard-card,
.metric-card,
.upload-panel,
.guide-panel,
.task-card,
.gallery-card,
.gallery-aside,
.empty-state,
.modules-page-card,
.modules-hero,
.client-module-card,
.module-roadmap > div,
.ai-news-page-card,
.ai-news-hero,
.ai-news-feature,
.ai-news-card,
.feedback-page-card,
.feedback-form-section,
.feedback-list-section,
.feedback-item,
.analysis-page-card,
.analysis-settings-card,
.analysis-workspace,
.config-center-panel,
.asset-viewer-panel,
.admin-panel,
.admin-card {
  background: var(--glass-surface);
  border-color: var(--tech-line);
  box-shadow: var(--tech-shadow-soft), var(--tech-inset);
  backdrop-filter: blur(24px) saturate(1.18);
  -webkit-backdrop-filter: blur(24px) saturate(1.18);
}

.page-card,
.modules-page-card,
.ai-news-page-card,
.feedback-page-card,
.analysis-page-card {
  background: rgba(251, 252, 251, .62);
  box-shadow: var(--tech-shadow), var(--tech-inset);
}

.sidebar {
  background: var(--glass-surface-muted);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, .62), 12px 0 42px rgba(23, 32, 29, .04);
}

.sidebar::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, .86), rgba(255, 255, 255, 0));
}

.nav-item,
.type-button,
.action-button,
.secondary-button,
.ghost-button,
.module-card-cue,
.filter-chip,
.tab-button,
.feedback-submit {
  transition:
    transform var(--motion-fast),
    border-color var(--motion-fast),
    background var(--motion-fast),
    color var(--motion-fast),
    box-shadow var(--motion-fast);
  touch-action: manipulation;
}

.nav-item:hover,
.nav-item.active {
  background: rgba(251, 252, 251, .76);
  border-color: rgba(37, 79, 67, .15);
  box-shadow: 0 10px 28px rgba(23, 32, 29, .055), var(--tech-inset);
  transform: translateX(2px);
}

.nav-item:active,
.type-button:active,
.action-button:active,
.secondary-button:active,
.ghost-button:active,
.feedback-submit:active {
  transform: scale(.985);
}

.primary-button,
.feedback-submit,
.submit-button {
  background: linear-gradient(145deg, var(--accent), var(--ink));
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 14px 32px rgba(37, 79, 67, .18), inset 0 1px 0 rgba(255, 255, 255, .14);
}

.primary-button:hover,
.feedback-submit:hover,
.submit-button:hover {
  box-shadow: 0 18px 44px rgba(37, 79, 67, .22), inset 0 1px 0 rgba(255, 255, 255, .18);
  transform: translateY(-1px);
}

.secondary-button,
.ghost-button,
.action-button,
.type-button,
.filter-chip,
.tab-button {
  background: rgba(255, 255, 255, .56);
  border-color: rgba(37, 79, 67, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .64);
}

.secondary-button:hover,
.ghost-button:hover,
.action-button:hover,
.type-button:hover,
.filter-chip:hover,
.tab-button:hover {
  background: rgba(251, 252, 251, .82);
  border-color: rgba(37, 79, 67, .18);
  box-shadow: 0 10px 24px rgba(23, 32, 29, .055), var(--tech-inset);
}

.dashboard-card,
.metric-card,
.task-card,
.gallery-card,
.client-module-card,
.ai-news-card,
.feedback-item {
  transition:
    transform var(--motion-base),
    box-shadow var(--motion-base),
    border-color var(--motion-base),
    background var(--motion-base),
    opacity var(--motion-base);
}

.dashboard-card:hover,
.metric-card:hover,
.task-card:hover,
.gallery-card:hover,
.ai-news-card:hover,
.feedback-item:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 79, 67, .18);
  box-shadow: 0 18px 48px rgba(23, 32, 29, .075), var(--tech-inset);
}

.client-module-card {
  background:
    linear-gradient(180deg, rgba(251, 252, 251, .78), rgba(242, 246, 245, .58));
  border-color: rgba(37, 79, 67, .15);
}

.client-module-card:hover,
.client-module-card:focus-visible,
.client-module-card:focus-within,
.client-module-card.is-open {
  transform: translateY(-3px);
  border-color: rgba(37, 79, 67, .2);
  box-shadow: 0 24px 56px rgba(23, 32, 29, .095), var(--tech-inset);
}

.client-module-card:hover .module-card-detail,
.client-module-card:focus-visible .module-card-detail,
.client-module-card:focus-within .module-card-detail,
.client-module-card.is-open .module-card-detail {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.client-module-card:hover .module-card-main,
.client-module-card:focus-visible .module-card-main,
.client-module-card:focus-within .module-card-main,
.client-module-card.is-open .module-card-main {
  opacity: .08;
  transform: translateY(-8px);
}

.client-module-card.module-featured {
  background:
    linear-gradient(145deg, rgba(37, 79, 67, .96), rgba(23, 32, 29, .92)),
    linear-gradient(120deg, rgba(255, 255, 255, .14), transparent);
  border-color: rgba(255, 255, 255, .16);
  box-shadow: 0 24px 58px rgba(23, 32, 29, .14), inset 0 1px 0 rgba(255, 255, 255, .12);
}

.module-card-detail {
  background: rgba(18, 22, 29, .9);
  border-color: rgba(255, 255, 255, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
  backdrop-filter: blur(18px) saturate(1.16);
  -webkit-backdrop-filter: blur(18px) saturate(1.16);
}

.client-module-card.module-featured .module-card-detail {
  background: rgba(255, 255, 255, .94);
  border-color: rgba(255, 255, 255, .56);
}

.module-card-cue {
  background: rgba(255, 255, 255, .58);
  border-color: rgba(130, 145, 166, .2);
}

input,
textarea,
select,
.upload-dropzone,
.feedback-form-section textarea,
.feedback-form-section input {
  background-color: rgba(255, 255, 255, .62);
  border-color: rgba(37, 79, 67, .16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .66);
}

input:focus,
textarea:focus,
select:focus,
.upload-dropzone:hover,
.upload-dropzone:focus-within {
  border-color: rgba(37, 79, 67, .24);
  box-shadow: 0 0 0 4px rgba(37, 79, 67, .065), inset 0 1px 0 rgba(255, 255, 255, .7);
}

.status-pill,
.tag,
.badge,
.job-status,
.feedback-item-status,
.feedback-item-type {
  backdrop-filter: blur(12px) saturate(1.12);
  -webkit-backdrop-filter: blur(12px) saturate(1.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .48);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .sidebar,
  .account-card,
  .profile-pill,
  .page-card,
  .dashboard-card,
  .metric-card,
  .upload-panel,
  .guide-panel,
  .task-card,
  .gallery-card,
  .gallery-aside,
  .empty-state,
  .modules-page-card,
  .modules-hero,
  .client-module-card,
  .module-roadmap > div,
  .ai-news-page-card,
  .ai-news-hero,
  .ai-news-feature,
  .ai-news-card,
  .feedback-page-card,
  .feedback-form-section,
  .feedback-list-section,
  .feedback-item,
  .analysis-page-card,
  .analysis-settings-card,
  .analysis-workspace {
    background: rgba(255, 255, 255, .9);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-item,
  .type-button,
  .action-button,
  .secondary-button,
  .ghost-button,
  .module-card-cue,
  .filter-chip,
  .tab-button,
  .feedback-submit,
  .dashboard-card,
  .metric-card,
  .task-card,
  .gallery-card,
  .client-module-card,
  .ai-news-card,
  .feedback-item {
    transition: none;
  }

  .nav-item:hover,
  .nav-item.active,
  .dashboard-card:hover,
  .metric-card:hover,
  .task-card:hover,
  .gallery-card:hover,
  .client-module-card:hover,
  .client-module-card:focus-visible,
  .client-module-card:focus-within,
  .client-module-card.is-open,
  .ai-news-card:hover,
  .feedback-item:hover,
  .primary-button:hover,
  .feedback-submit:hover,
  .submit-button:hover {
    transform: none;
  }
}

/* Interaction bugfix pass */
.primary-button,
.submit-button,
#feedbackSubmit {
  background: linear-gradient(145deg, rgba(29, 29, 31, .96), rgba(42, 48, 58, .92)) !important;
  transition:
    transform var(--motion-fast),
    box-shadow var(--motion-fast),
    border-color var(--motion-fast),
    color var(--motion-fast) !important;
}

.primary-button:hover,
.submit-button:hover,
#feedbackSubmit:hover {
  background: linear-gradient(145deg, rgba(29, 29, 31, .96), rgba(42, 48, 58, .92)) !important;
}

.primary-button::before,
.submit-button::before,
#feedbackSubmit::before {
  content: none !important;
  display: none !important;
}

.feedback-submit {
  align-items: center;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: inherit !important;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-top: 20px;
  min-height: auto;
  padding: 0 !important;
  transform: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.feedback-submit:hover,
.feedback-submit:active {
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

.feedback-submit #feedbackSubmit {
  flex: 0 0 auto;
}

.module-card-cue {
  background: transparent !important;
  border-color: rgba(130, 145, 166, .18) !important;
  box-shadow: none !important;
  min-height: 30px;
  padding: 10px 0 0;
}

.client-module-card.module-featured .module-card-cue {
  background: transparent !important;
  border-top-color: rgba(255, 255, 255, .16) !important;
  color: rgba(255, 255, 255, .68);
}

.module-card-cue::after {
  opacity: .72;
}

