:root {
  color-scheme: light;
  --bg: #fbfbfd;
  --bg-soft: #f3f4f7;
  --bg-wash: #eef3f8;
  --bg-raised: rgba(255, 255, 255, 0.86);
  --text: #1d1d1f;
  --muted: #6e6e73;
  --muted-2: #86868b;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.14);
  --blue: #176de8;
  --blue-deep: #0d57c7;
  --green: #0c7c59;
  --orange: #bf5b00;
  --red: #b42318;
  --shadow-sm: 0 2px 10px rgba(37, 52, 78, 0.07);
  --shadow-md: 0 12px 34px rgba(37, 52, 78, 0.12);
  --shadow-hover: 0 8px 22px rgba(37, 52, 78, 0.12);
  --radius-lg: 18px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --radius-card: 12px;
  --radius-control: 8px;
  --radius-tag: 6px;
  --radius-search: 14px;
  --content: min(1240px, calc(100vw - 56px));
  --select-chevron: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.5 5.25L7 8.75L10.5 5.25' stroke='%236E6E73' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums;
}

body.modal-open {
  overflow: hidden;
}

body::before {
  content: none;
}

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

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(23, 109, 232, 0.72);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 18px;
  top: 14px;
  z-index: 100;
  transform: translateY(-140%);
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.app-shell {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(235, 244, 255, 0.82) 0, rgba(246, 252, 250, 0.72) 210px, var(--bg) 390px);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto;
  gap: 24px;
  align-items: center;
  width: 100%;
  padding: 12px max(28px, calc((100vw - 1320px) / 2));
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(251, 251, 253, 0.82);
  backdrop-filter: blur(22px) saturate(180%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  min-width: max-content;
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark,
.avatar {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #1d1d1f;
  color: #fff;
  font-size: 15px;
  font-weight: 750;
}

.brand-mark {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 10px 22px rgba(29, 29, 31, 0.18);
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.72) inset,
    0 10px 22px rgba(38, 95, 164, 0.16);
}

.primary-nav {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  min-width: 0;
}

.primary-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: var(--text);
  font-size: 15px;
  font-weight: 720;
  text-decoration: none;
}

.primary-nav a.active {
  color: var(--blue);
}

.primary-nav a.active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -13px;
  left: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--blue);
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  min-width: 0;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-search);
  background: rgba(118, 118, 128, 0.11);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.search:focus-within {
  border-color: rgba(23, 109, 232, 0.34);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(23, 109, 232, 0.11);
}

.search svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--muted-2);
  stroke-width: 2;
  stroke-linecap: round;
}

.search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
}

.top-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ghost-button,
.primary-button,
.text-button,
.feature-button,
.profile-switch,
.prompt-chips button,
.category-tabs button,
.small-action {
  border: 0;
  border-radius: var(--radius-control);
  white-space: nowrap;
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 15px;
  background: rgba(118, 118, 128, 0.12);
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  transition:
    transform 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.auth-button.is-logged-in {
  background: rgba(52, 199, 89, 0.14);
  color: #166534;
}

.ghost-button:hover,
.ghost-button.active,
.profile-switch:hover,
.prompt-chips button:hover,
.category-tabs button:hover {
  transform: translateY(-1px);
  background: rgba(118, 118, 128, 0.17);
}

.ghost-button.active {
  color: var(--blue);
  box-shadow: inset 0 0 0 1px rgba(23, 109, 232, 0.26);
}

.ghost-button:active,
.primary-button:active,
.feature-button:active,
.small-action:active,
.prompt-chips button:active,
.category-tabs button:active {
  transform: translateY(1px) scale(0.985);
}

.profile-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 8px 0 10px;
  background: rgba(118, 118, 128, 0.12);
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
  transition:
    transform 180ms ease,
    background 180ms ease;
}

.profile-switch .avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e8f0fe;
  color: #1f5fbf;
  font-size: 12px;
}

.profile-switch select {
  max-width: 126px;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 700;
}

.primary-button,
.feature-button {
  min-height: 40px;
  padding: 0 18px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 7px 14px rgba(23, 109, 232, 0.18);
  transition:
    transform 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.primary-button:hover,
.feature-button:hover {
  background: var(--blue-deep);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 8px 18px rgba(23, 109, 232, 0.22);
}

.topbar .ghost-button {
  min-height: 40px;
  padding: 0 9px;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  font-weight: 650;
}

.topbar .ghost-button:hover {
  transform: none;
  background: rgba(118, 118, 128, 0.09);
  color: var(--text);
  box-shadow: none;
}

.topbar .ghost-button.active {
  background: transparent;
  color: var(--text);
  box-shadow: none;
  font-weight: 760;
}

.topbar .ghost-button.active:hover {
  background: transparent;
  color: var(--text);
  box-shadow: none;
}

.topbar .auth-button {
  position: relative;
  margin-left: 6px;
  padding-left: 18px;
}

.topbar .auth-button::before {
  content: "";
  position: absolute;
  left: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted-2);
}

.topbar .auth-button.is-logged-in {
  background: transparent;
  color: var(--green);
}

.topbar .auth-button.is-logged-in::before {
  background: var(--green);
}

.topbar .primary-button {
  min-height: 40px;
  margin-left: 4px;
  border-radius: var(--radius-control);
  padding: 0 16px;
}

.topbar .profile-switch {
  margin-left: 4px;
  border-radius: var(--radius-control);
  background: rgba(118, 118, 128, 0.09);
}

.feature-button {
  min-height: 34px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(23, 109, 232, 0.1);
  color: var(--blue);
  box-shadow: none;
}

.feature-button:hover {
  background: rgba(23, 109, 232, 0.15);
  box-shadow: none;
}

.feature-button.outline {
  border: 0;
  background: rgba(23, 109, 232, 0.1);
  color: var(--blue);
  box-shadow: none;
}

.feature-button.outline:hover {
  background: rgba(23, 109, 232, 0.15);
}

.text-button {
  min-height: 40px;
  min-width: 44px;
  padding: 0 6px;
  background: transparent;
  color: var(--blue);
  font-size: 14px;
  font-weight: 650;
  transition:
    color 180ms ease,
    opacity 180ms ease;
}

.text-button:hover {
  color: var(--blue-deep);
  opacity: 0.86;
}

main {
  width: var(--content);
  margin: 0 auto;
  padding: 0 0 84px;
}

.discover-hero {
  width: min(1040px, 100%);
  margin: 0 auto 20px;
  padding: 62px 0 18px;
  text-align: center;
}

.discover-hero h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 820;
}

.discover-hero h1 span {
  color: var(--blue);
}

.hero-search {
  width: min(520px, 100%);
  height: 48px;
  margin: 28px auto 0;
  padding-inline: 18px;
  border-color: rgba(0, 0, 0, 0.04);
  background: #fff;
  box-shadow: 0 12px 30px rgba(37, 52, 78, 0.08);
}

.hero-search input {
  font-size: 15px;
}

.search-helper {
  min-height: 18px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  text-align: center;
}

.hero-categories {
  justify-content: center;
  margin: 28px auto 0;
}

.market-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.market-main {
  min-width: 0;
}

.market-title {
  margin: 0 0 18px;
}

.market-title p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.section-kicker {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  font-size: clamp(36px, 4.2vw, 58px);
  line-height: 1.02;
  font-weight: 820;
  letter-spacing: 0;
  text-wrap: balance;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(23px, 2.2vw, 30px);
  line-height: 1.08;
  font-weight: 760;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 4px;
  font-size: 20px;
  line-height: 1.16;
  font-weight: 760;
  text-wrap: pretty;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 410px;
}

.profile-tags span,
.feature-meta span,
.weekly-items span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-tag);
  background: rgba(248, 249, 251, 0.92);
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading.compact {
  margin-bottom: 14px;
}

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

.feature-card {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  min-height: 166px;
  overflow: hidden;
  border: 1px solid rgba(37, 52, 78, 0.08);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: none;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.feature-card.has-cover-image {
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.93), rgba(255, 255, 255, 0.78)),
    var(--app-cover-image);
  background-position: center;
  background-size: cover;
}

.feature-card::before {
  content: none;
}

.feature-card:hover {
  transform: translateY(-1px);
  border-color: rgba(23, 109, 232, 0.18);
  box-shadow: 0 8px 18px rgba(37, 52, 78, 0.08);
}

.skeleton-card {
  pointer-events: none;
}

.skeleton-card,
.skeleton-line,
.skeleton-pill,
.skeleton-tab,
.skeleton-icon,
.skeleton-date,
.skeleton-number {
  position: relative;
  overflow: hidden;
}

.skeleton-line,
.skeleton-pill,
.skeleton-tab,
.skeleton-icon,
.skeleton-date,
.skeleton-number {
  display: block;
  background: linear-gradient(90deg, rgba(118, 118, 128, 0.1), rgba(118, 118, 128, 0.18), rgba(118, 118, 128, 0.1));
  background-size: 220% 100%;
  animation: skeleton-shimmer 1.2s ease-in-out infinite;
}

.skeleton-stack {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.skeleton-feature {
  padding-right: 24px;
}

.skeleton-line {
  width: 72%;
  height: 14px;
  border-radius: var(--radius-tag);
}

.skeleton-line.wide {
  width: 88%;
  height: 20px;
}

.skeleton-line.short {
  width: 46%;
}

.skeleton-pill {
  width: 74px;
  height: 32px;
  margin-top: 8px;
  border-radius: var(--radius-control);
}

.skeleton-pill.small {
  width: 54px;
  height: 26px;
}

.skeleton-tab {
  width: 78px;
  height: 36px;
  border-radius: var(--radius-tag);
}

.skeleton-icon {
  align-self: center;
  justify-self: center;
  width: 74px;
  height: 74px;
  border-radius: var(--radius-card);
}

.skeleton-icon.small {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-card);
}

.skeleton-date {
  width: 42px;
  height: 14px;
  border-radius: var(--radius-tag);
}

.skeleton-number {
  width: 24px;
  height: 22px;
  border-radius: 8px;
}

@keyframes skeleton-shimmer {
  from {
    background-position: 120% 0;
  }
  to {
    background-position: -120% 0;
  }
}

.feature-storyboard {
  background: #f8fbff;
}

.feature-topic {
  background: #f8fbfa;
}

.feature-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 18px 20px 18px 0;
}

.feature-copy p {
  margin: 8px 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  text-wrap: pretty;
}

.feature-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.feature-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.feature-big-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-card);
  font-size: 18px;
  font-weight: 760;
  box-shadow: none;
}

.assistant-panel,
.need-panel,
.catalog-section,
.weekly-strip {
  margin-top: 30px;
}

.market-results {
  margin-top: 0;
  scroll-margin-top: 88px;
}

.today-section {
  margin-top: 36px;
}

.app-card {
  display: flex;
  min-width: 0;
  border: 1px solid rgba(37, 52, 78, 0.08);
  background: #fff;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    background 220ms ease;
}

.app-card.has-cover-image {
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.84)),
    var(--app-cover-image);
  background-position: center;
  background-size: cover;
}

.app-card:hover {
  transform: translateY(-1px);
  border-color: rgba(23, 109, 232, 0.16);
  background: #fff;
  box-shadow: 0 8px 18px rgba(37, 52, 78, 0.08);
}

.mini-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: var(--radius-card);
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 760;
}

.mini-icon.image-icon {
  overflow: hidden;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(37, 52, 78, 0.08);
}

.mini-icon.image-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.app-main {
  min-width: 0;
  flex: 1;
}

.app-main h3 {
  margin-bottom: 5px;
  overflow-wrap: anywhere;
  font-size: 16px;
  line-height: 1.2;
}

.app-main p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.small-action {
  grid-column: 2;
  justify-self: start;
  min-height: 34px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  background: rgba(23, 109, 232, 0.1);
  color: var(--blue);
  font-size: 13px;
  font-weight: 760;
  transition:
    transform 180ms ease,
    background 180ms ease;
}

.small-action:hover {
  background: rgba(23, 109, 232, 0.15);
}

.small-action.is-muted {
  background: rgba(118, 118, 128, 0.1);
  color: var(--muted);
  pointer-events: none;
}

.assistant-panel {
  display: grid;
  grid-template-columns: minmax(190px, 0.7fr) minmax(280px, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid rgba(37, 52, 78, 0.08);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: none;
}

.assistant-mark {
  display: none;
}

.assistant-copy p:not(.section-kicker) {
  max-width: 320px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.prompt-chips {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.prompt-chips button,
.category-tabs button {
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-tag);
  background: rgba(118, 118, 128, 0.08);
  color: var(--muted);
  font-size: 13px;
  font-weight: 680;
  border: 1px solid transparent;
}

.prompt-chips button:hover,
.category-tabs button:hover,
.category-tabs button.active {
  color: var(--blue);
  border-color: rgba(0, 113, 227, 0.28);
  background: rgba(0, 113, 227, 0.06);
}

.recommend-result {
  grid-column: 2;
  min-height: 0;
}

.recommend-result.show {
  padding: 14px;
  border: 1px solid rgba(0, 113, 227, 0.14);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.72);
}

.recommend-result strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}

.recommend-result p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.need-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border: 1px solid rgba(37, 52, 78, 0.08);
  border-radius: var(--radius-card);
  background: #fff;
}

.need-panel h2 {
  margin-bottom: 6px;
  font-size: 20px;
}

.need-panel p {
  max-width: 58ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.catalog-count {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.hero-categories.category-tabs {
  margin-bottom: 0;
}

.category-tabs button {
  min-height: 36px;
  padding: 0 15px;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.prompt-chips button {
  min-height: 34px;
  border-radius: var(--radius-tag);
  background: rgba(118, 118, 128, 0.08);
  color: var(--muted);
  border-color: transparent;
}

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

.app-card {
  flex-direction: column;
  gap: 14px;
  min-height: 178px;
  padding: 16px;
  border-radius: var(--radius-card);
}

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

.status-pill {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: var(--radius-tag);
  background: rgba(118, 118, 128, 0.1);
  color: var(--muted);
  font-size: 12px;
  font-weight: 730;
  box-shadow: none;
}

.status-s {
  background: rgba(0, 113, 227, 0.1);
  color: var(--blue);
}

.status-a {
  background: rgba(12, 124, 89, 0.1);
  color: var(--green);
}

.status-b {
  background: rgba(191, 91, 0, 0.12);
  color: var(--orange);
}

.app-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.app-tags span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.app-tags .entry-type-tag,
.detail-meta .entry-type-tag {
  color: var(--text);
  font-weight: 760;
}

.weekly-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0 4px;
  border-top: 1px solid var(--line);
}

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

.side-card-heading h2 {
  font-size: 18px;
}

.app-open-action {
  grid-column: auto;
  align-self: start;
  margin-top: auto;
}

.trial-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.trial-tags span {
  min-height: 24px;
  padding: 4px 8px;
  border-radius: var(--radius-tag);
  background: rgba(0, 113, 227, 0.09);
  color: var(--blue);
  font-size: 11px;
  font-weight: 760;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(245, 245, 247, 0.72);
  backdrop-filter: blur(18px) saturate(160%);
}

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

.detail-modal {
  position: relative;
  width: min(680px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.12);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(118, 118, 128, 0.11);
  color: var(--text);
}

.modal-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.detail-hero {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding-right: 44px;
}

.detail-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-card);
  font-size: 22px;
}

.detail-category {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.detail-hero h2 {
  max-width: 15em;
  font-size: 24px;
  line-height: 1.12;
}

.detail-hero p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.detail-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: var(--muted-2);
}

.detail-grid {
  display: block;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.detail-grid > div {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) 14px;
  gap: 18px;
  min-height: 0;
  padding: 15px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.detail-grid > div::after {
  content: "";
  align-self: center;
  width: 7px;
  height: 7px;
  border-top: 1px solid var(--muted-2);
  border-right: 1px solid var(--muted-2);
  transform: rotate(45deg);
}

.detail-grid > div:last-child {
  border-bottom: 0;
}

.detail-grid h3 {
  margin-bottom: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 760;
  line-height: 1.45;
}

.detail-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.detail-actions {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: flex-start;
  align-items: center;
  margin-top: 14px;
}

.detail-actions .primary-button,
.detail-actions .ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  text-decoration: none;
}

.detail-actions .primary-button {
  min-width: 92px;
  padding-inline: 14px;
  border-radius: 8px;
  background: var(--blue);
  font-size: 13px;
  box-shadow: none;
}

.detail-actions .primary-button:hover {
  background: var(--blue-deep);
  box-shadow: none;
}

.detail-actions .ghost-button {
  min-height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
  box-shadow: none;
}

.detail-actions .ghost-button:hover {
  transform: none;
  background: transparent;
  color: var(--blue);
  box-shadow: none;
}

.detail-actions .primary-button[aria-disabled="true"],
.detail-actions .ghost-button[aria-disabled="true"] {
  background: rgba(118, 118, 128, 0.12);
  color: var(--muted);
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}

.detail-actions .ghost-button[aria-disabled="true"] {
  background: transparent;
}

.feedback-modal,
.trial-modal {
  position: relative;
  width: min(620px, 100%);
  max-height: min(720px, calc(100vh - 48px));
  overflow: auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-md);
}

.feedback-heading {
  padding-right: 44px;
}

.feedback-heading h2 {
  font-size: 32px;
}

.feedback-heading p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.feedback-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.feedback-form label {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.feedback-form label span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.feedback-type-field {
  grid-column: 1 / -1;
}

.feedback-form select,
.feedback-form input,
.feedback-form textarea {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  outline: 0;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.feedback-form select,
.feedback-form input {
  height: 42px;
  padding: 0 12px;
}

.feedback-form textarea {
  min-height: 132px;
  resize: vertical;
  padding: 12px;
  line-height: 1.5;
}

.feedback-form select:focus,
.feedback-form input:focus,
.feedback-form textarea:focus {
  border-color: rgba(23, 109, 232, 0.34);
  box-shadow: 0 0 0 4px rgba(23, 109, 232, 0.1);
}

.feedback-content,
.feedback-actions {
  grid-column: 1 / -1;
}

.feedback-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.feedback-actions .primary-button,
.feedback-actions .ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.feedback-actions .primary-button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.weekly-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 50;
  max-width: min(460px, calc(100vw - 32px));
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(29, 29, 31, 0.9);
  color: #fff;
  font-size: 14px;
  font-weight: 620;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

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

.tone-blue {
  background: #eaf2ff;
  color: #155fcb;
}

.tone-green {
  background: #e7f5ef;
  color: #0c7353;
}

.tone-purple {
  background: #f0edff;
  color: #6048bf;
}

.tone-orange {
  background: #fff1e5;
  color: #ae5b17;
}

.tone-red {
  background: #fff0ef;
  color: #b83232;
}

.tone-slate {
  background: #edf1f5;
  color: #35465a;
}

.tone-pink {
  background: #fff0f6;
  color: #b23870;
}

.tone-cyan {
  background: #e8f7fa;
  color: #12778b;
}

.tool-page {
  background: #f5f6f8;
}

.tool-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(251, 251, 253, 0.8);
  backdrop-filter: blur(22px) saturate(180%);
}

.tool-shell {
  width: min(1360px, calc(100vw - 56px));
  margin: 0 auto;
  padding: 18px 0 64px;
}

.finder-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 820px);
  gap: 10px;
  align-items: start;
  justify-items: start;
  margin: 0 auto 18px;
  min-height: 244px;
  padding: 34px 0 22px;
  text-align: left;
  isolation: isolate;
}

.finder-hero::before {
  content: "";
  position: absolute;
  top: -42px;
  right: -42px;
  z-index: 0;
  width: min(780px, 58vw);
  height: 330px;
  border-radius: 30px;
  background:
    linear-gradient(90deg, rgba(245, 246, 248, 0.96) 0%, rgba(245, 246, 248, 0.42) 34%, rgba(245, 246, 248, 0.08) 100%),
    linear-gradient(180deg, rgba(245, 246, 248, 0.2) 0%, rgba(245, 246, 248, 0.72) 100%),
    url("./assets/bestseller-direct-page-bg.png") center / cover no-repeat;
  opacity: 0.76;
  pointer-events: none;
}

.finder-hero::after {
  content: "";
  position: absolute;
  right: min(430px, 32vw);
  bottom: 18px;
  z-index: 0;
  width: min(360px, 28vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(23, 109, 232, 0.2), transparent);
  opacity: 0.8;
  pointer-events: none;
}

.finder-hero h1 {
  max-width: 740px;
  font-size: 48px;
  line-height: 1.08;
  text-wrap: balance;
}

.finder-hero > div {
  position: relative;
  z-index: 1;
  width: 100%;
}

.finder-hero p {
  max-width: 620px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.finder-query-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(760px, 100%);
  min-height: 56px;
  margin-top: 18px;
  padding: 6px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(37, 52, 78, 0.07);
}

.finder-search {
  flex: 1 1 360px;
  width: auto;
  height: 44px;
  margin: 0;
  padding-inline: 18px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.finder-search:focus-within {
  border-color: rgba(23, 109, 232, 0.22);
  background: rgba(23, 109, 232, 0.035);
  box-shadow: none;
}

.finder-search input {
  font-size: 15px;
}

.finder-stats {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  gap: 5px;
  width: auto;
  margin-top: 0;
}

.finder-stats span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: var(--radius-tag);
  background: rgba(118, 118, 128, 0.08);
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
  line-height: 1;
  white-space: nowrap;
}

.finder-workbench {
  display: grid;
  grid-template-columns: minmax(500px, 0.86fr) minmax(560px, 1fr);
  gap: 22px;
  align-items: start;
}

.finder-workbench > * {
  min-width: 0;
}

.finder-filters,
.case-results,
.case-detail,
.adapter-form,
.adapter-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.finder-filters {
  display: grid;
  grid-column: 1 / -1;
  gap: 0;
  padding: 12px 16px;
  box-shadow: 0 8px 22px rgba(37, 52, 78, 0.06);
}

.finder-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

#activeFilters {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.active-filter-label {
  color: var(--muted);
  font-weight: 760;
}

.active-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(23, 109, 232, 0.24);
  border-radius: var(--radius-tag);
  background: rgba(23, 109, 232, 0.08);
  color: var(--blue);
  font-size: 13px;
  font-weight: 760;
}

.active-filter-chip.removable {
  cursor: pointer;
}

.active-filter-chip.removable i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: rgba(23, 109, 232, 0.12);
  color: var(--blue);
  font-style: normal;
  font-size: 13px;
  line-height: 1;
}

.active-filter-chip span {
  color: rgba(13, 87, 199, 0.74);
  font-weight: 720;
}

.active-filter-chip b {
  color: var(--blue-deep);
  font-weight: 820;
}

.active-filter-count {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: var(--radius-tag);
  background: rgba(29, 29, 31, 0.07);
  color: var(--text);
  font-size: 13px;
  font-weight: 820;
}

.finder-filter-head .ghost-button {
  min-height: 30px;
  padding-inline: 10px;
  border-radius: var(--radius-tag);
  font-size: 12px;
}

.finder-filter-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: start;
  margin-top: 8px;
  border-top: 1px solid var(--line);
}

.filter-group {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 42px;
  padding: 8px 0;
  border: 1px solid transparent;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

.filter-group > span,
.advanced-filter-control > span,
.adapter-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.filter-group > span {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 28px;
  border-radius: var(--radius-tag);
  white-space: nowrap;
}

.type-filter-group {
  background: transparent;
}

.type-filter-group > span {
  background: transparent;
  color: var(--text);
}

.tag-filter-group {
  border-color: transparent transparent var(--line);
  background: transparent;
}

.tag-filter-group > span {
  background: transparent;
  color: var(--blue-deep);
}

.tag-filter-stack {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.finder-select-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr)) auto;
  gap: 10px;
  align-items: end;
}

.finder-select-row[hidden] {
  display: none;
}

.advanced-filter-control {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.advanced-filter-control > span {
  white-space: nowrap;
}

.native-hidden {
  display: none;
}

.filter-combobox {
  position: relative;
  min-width: 0;
}

.filter-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 36px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-control);
  padding: 0 10px 0 12px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.filter-menu-toggle::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 180ms ease;
}

.filter-menu-toggle[aria-expanded="true"] {
  border-color: rgba(23, 109, 232, 0.28);
  box-shadow: 0 0 0 4px rgba(23, 109, 232, 0.09);
}

.filter-menu-toggle.has-value {
  border-color: rgba(23, 109, 232, 0.26);
  background: #eaf2ff;
  color: var(--blue-deep);
  font-weight: 800;
}

.finder-filters .filter-menu-toggle.has-value {
  border-color: rgba(23, 109, 232, 0.34);
  background-color: #eaf2ff;
  box-shadow: inset 0 0 0 1px rgba(23, 109, 232, 0.08);
}

.filter-menu-toggle[aria-expanded="true"]::after {
  transform: translateY(2px) rotate(225deg);
}

.finder-filters input,
.finder-filters select,
.adapter-form input,
.adapter-form select,
.adapter-form textarea {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-control);
  background: #fff;
  color: var(--text);
  font-size: 14px;
  outline: 0;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.finder-filters input,
.finder-filters select,
.adapter-form input,
.adapter-form select {
  height: 36px;
  padding: 0 10px;
}

.finder-filters input[type="search"] {
  height: 48px;
  padding: 0 14px 0 42px;
  border-color: rgba(0, 0, 0, 0.04);
  border-radius: var(--radius-search);
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%20stroke='%2386868b'%20stroke-width='2'%20stroke-linecap='round'%3E%3Ccircle%20cx='11'%20cy='11'%20r='7'/%3E%3Cpath%20d='m16%2016%204%204'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 15px center;
  background-size: 18px 18px;
  box-shadow: 0 10px 26px rgba(37, 52, 78, 0.08);
}

.finder-filters input:focus,
.finder-filters select:focus,
.adapter-form input:focus,
.adapter-form select:focus,
.adapter-form textarea:focus {
  border-color: rgba(23, 109, 232, 0.34);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(23, 109, 232, 0.1);
}

.finder-filters input[type="search"]:focus {
  box-shadow:
    0 0 0 4px rgba(23, 109, 232, 0.1),
    0 12px 30px rgba(37, 52, 78, 0.09);
}

.adapter-form textarea {
  min-height: 140px;
  padding: 12px;
  resize: vertical;
}

.quick-tags,
.all-tag-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.filter-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 8px;
  width: min(560px, calc(100vw - 96px));
  max-height: 260px;
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: 0 14px 32px rgba(37, 52, 78, 0.14);
}

.all-tag-chips.filter-menu-panel {
  width: min(760px, calc(100vw - 96px));
}

.advanced-filter-control:last-of-type .filter-menu-panel {
  right: 0;
  left: auto;
}

.filter-menu-panel[hidden] {
  display: none;
}

.quick-tags button,
.filter-menu-panel button {
  flex: 0 0 auto;
  min-height: 30px;
  border: 1px solid transparent;
  border-radius: var(--radius-tag);
  padding: 0 10px;
  background: rgba(118, 118, 128, 0.07);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.tag-filter-group .quick-tags button {
  border-color: transparent;
  background: rgba(23, 109, 232, 0.055);
}

.quick-tags button:hover,
.quick-tags button.active,
.filter-menu-panel button:hover,
.filter-menu-panel button.active {
  border-color: rgba(23, 109, 232, 0.28);
  background: rgba(23, 109, 232, 0.09);
  color: var(--blue);
}

.quick-tags button.active,
.filter-menu-panel button.active {
  border-color: rgba(23, 109, 232, 0.36);
  background: #eaf2ff;
  color: var(--blue-deep);
  box-shadow: inset 0 0 0 1px rgba(23, 109, 232, 0.08);
}

.case-results,
.case-detail {
  min-width: 0;
  padding: 18px;
}

.case-results .section-heading h2 {
  font-size: 24px;
  line-height: 1.12;
}

.case-list {
  display: grid;
  gap: 3px;
  min-width: 0;
  max-width: 100%;
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.case-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 44px;
  margin-bottom: 10px;
  padding: 4px 0 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.page-summary {
  min-height: 32px;
  padding: 7px 8px;
  color: var(--muted);
  font-weight: 680;
}

.page-button {
  min-width: 34px;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(118, 118, 128, 0.09);
  color: var(--text);
  font: inherit;
  font-weight: 760;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.page-button:hover:not(:disabled) {
  background: rgba(23, 109, 232, 0.12);
  color: var(--blue-deep);
}

.page-button:active:not(:disabled) {
  transform: scale(0.98);
}

.page-button.active {
  background: var(--blue);
  color: #fff;
}

.page-button:disabled {
  cursor: default;
  opacity: 0.4;
}

.page-ellipsis {
  min-width: 16px;
  color: var(--muted);
  text-align: center;
  font-weight: 760;
}

.case-card {
  position: relative;
  display: grid;
  gap: 9px;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  padding: 15px 14px 15px 18px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.case-card > * {
  min-width: 0;
}

.case-card::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 0;
  width: 3px;
  border-radius: 999px;
  background: transparent;
  transition: background 180ms ease;
}

.case-card::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: -2px;
  left: 18px;
  height: 1px;
  background: var(--line);
}

.case-card:hover:not(.active) {
  background: rgba(118, 118, 128, 0.055);
  box-shadow: none;
  transform: none;
}

.case-card.active {
  background: rgba(23, 109, 232, 0.055);
  box-shadow: inset 0 0 0 1px rgba(23, 109, 232, 0.08);
  transform: none;
}

.case-card.active::before {
  background: var(--blue);
}

.case-card.active::after,
.case-card:hover::after {
  background: transparent;
}

.case-card h3 {
  margin-bottom: 6px;
  font-size: 16px;
  line-height: 1.32;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}

.case-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}

.match-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}

.match-reasons span {
  max-width: 100%;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: var(--radius-tag);
  background: rgba(23, 109, 232, 0.09);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.detail-reasons {
  margin-top: 12px;
}

.case-tags span {
  max-width: 100%;
  min-height: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-tag);
  padding: 3px 8px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.case-detail {
  position: sticky;
  top: 82px;
  max-height: calc(100vh - 106px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  --detail-title: #202124;
  --detail-body: #4f5660;
  --detail-muted: #737780;
  --detail-soft: rgba(118, 118, 128, 0.075);
  --detail-line: rgba(0, 0, 0, 0.065);
}

.case-detail-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 32px;
}

.case-detail-kicker > span {
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 760;
}

.case-detail-head h2 {
  max-width: 26ch;
  margin-top: 12px;
  margin-bottom: 4px;
  overflow-wrap: anywhere;
  color: var(--detail-title);
  font-size: clamp(22px, 1.7vw, 30px);
  line-height: 1.18;
  font-weight: 760;
  text-wrap: balance;
}

.case-detail-head p {
  max-width: 58ch;
  color: var(--detail-muted);
  font-size: 14px;
  line-height: 1.5;
}

.case-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.case-detail-tags span {
  min-height: 24px;
  padding: 3px 8px;
  border-radius: var(--radius-tag);
  background: var(--detail-soft);
  color: var(--detail-muted);
  font-size: 12px;
  font-weight: 660;
  line-height: 1.35;
}

.case-tag-editor {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 12px;
  border-radius: var(--radius-control);
  background: rgba(245, 247, 251, 0.9);
}

.case-tag-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.case-tag-editor-head h3 {
  margin: 0;
  color: var(--detail-text);
  font-size: 13px;
  font-weight: 820;
}

.case-tag-editor-head span {
  color: var(--detail-muted);
  font-size: 12px;
  font-weight: 680;
}

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

.editable-tag-list p {
  margin: 0;
  color: var(--detail-muted);
  font-size: 13px;
}

.editable-tag-list button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  border: 0;
  border-radius: var(--radius-tag);
  padding: 0 9px 0 10px;
  background: #fff;
  color: var(--detail-text);
  box-shadow: inset 0 0 0 1px var(--detail-line);
  font-size: 12px;
  font-weight: 760;
  cursor: pointer;
}

.editable-tag-list button:hover {
  background: #eef5ff;
  color: var(--blue-deep);
  box-shadow: inset 0 0 0 1px rgba(23, 109, 232, 0.22);
}

.editable-tag-list b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: rgba(29, 29, 31, 0.06);
  color: var(--detail-muted);
  font-size: 13px;
  line-height: 1;
}

.case-tag-form {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.case-tag-form label {
  color: var(--detail-muted);
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
}

.case-tag-form > div {
  display: flex;
  gap: 8px;
  min-width: 0;
}

.case-tag-form input {
  flex: 1 1 auto;
  min-width: 0;
  height: 34px;
  border: 1px solid var(--detail-line);
  border-radius: var(--radius-control);
  padding: 0 10px;
  background: #fff;
  color: var(--detail-text);
  font-size: 13px;
  outline: 0;
}

.case-tag-form input:focus {
  border-color: rgba(23, 109, 232, 0.34);
  box-shadow: 0 0 0 4px rgba(23, 109, 232, 0.08);
}

.case-tag-form .ghost-button {
  flex: 0 0 auto;
  min-height: 34px;
  padding-inline: 12px;
  border-radius: var(--radius-control);
  font-size: 13px;
}

.finder-detail-grid {
  display: grid;
  gap: 0;
  margin-top: 14px;
  border-top: 1px solid var(--detail-line);
}

.case-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 0;
}

.case-detail-actions .primary-button,
.case-detail-actions .ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 720;
  line-height: 1;
  text-decoration: none;
  box-shadow: none;
}

.case-detail-actions .primary-button {
  min-width: 72px;
  background: var(--blue);
  color: #fff;
}

.case-detail-actions .primary-button:hover {
  background: var(--blue-deep);
  box-shadow: none;
}

.case-detail-actions .ghost-button {
  background: rgba(118, 118, 128, 0.095);
  color: var(--detail-title);
}

.case-detail-actions .ghost-button:hover {
  background: rgba(118, 118, 128, 0.14);
  box-shadow: none;
}

.case-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 16px;
  color: var(--detail-muted);
  font-size: 12px;
  font-weight: 650;
}

.case-detail-meta span,
.case-detail-meta a {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.case-detail-meta a {
  color: var(--blue);
  text-decoration: none;
}

.case-detail-meta a:hover {
  color: var(--blue-deep);
}

.case-detail-meta span:not(:last-child)::after,
.case-detail-meta a:not(:last-child)::after {
  content: "·";
  margin-left: 12px;
  color: var(--muted-2);
}

.case-detail-metrics {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: var(--radius-control);
  background: rgba(118, 118, 128, 0.045);
}

.case-detail-metrics > span {
  flex: 0 0 auto;
  color: var(--detail-muted);
  font-size: 12px;
  font-weight: 720;
}

.case-detail-metrics .metric-pills {
  flex: 1 1 auto;
}

.detail-section {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--detail-line);
}

.detail-section:last-child {
  border-bottom: 0;
}

.detail-section h3 {
  margin: 0;
  color: var(--detail-title);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.5;
}

.detail-section p {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--detail-body);
  font-size: 14px;
  line-height: 1.68;
  white-space: pre-line;
}

.detail-section.compact p {
  color: var(--detail-body);
  font-weight: 660;
}

.original-links {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.original-links a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 32px;
  padding: 7px 8px 7px 10px;
  border-radius: var(--radius-tag);
  background: rgba(23, 109, 232, 0.055);
  color: #2458a6;
  font-size: 13px;
  font-weight: 680;
  line-height: 1.35;
  text-decoration: none;
  transition:
    background 180ms ease,
    color 180ms ease;
}

.original-links a:hover {
  background: rgba(23, 109, 232, 0.11);
  color: var(--blue);
}

.original-links a span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.original-links a b {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(23, 109, 232, 0.105);
  color: #2458a6;
  font-size: 11px;
  font-weight: 760;
}

.metric-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.metric-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--radius-tag);
  background: rgba(118, 118, 128, 0.1);
  color: var(--detail-body);
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.metric-pill:nth-child(6n + 1) {
  background: rgba(23, 109, 232, 0.1);
}

.metric-pill:nth-child(6n + 2) {
  background: rgba(12, 124, 89, 0.1);
}

.metric-pill:nth-child(6n + 3) {
  background: rgba(191, 91, 0, 0.11);
}

.metric-pill:nth-child(6n + 4) {
  background: rgba(111, 66, 193, 0.1);
}

.metric-pill:nth-child(6n + 5) {
  background: rgba(180, 35, 24, 0.08);
}

.metric-pill:nth-child(6n) {
  background: rgba(29, 29, 31, 0.08);
}

.metric-pill span {
  color: var(--detail-muted);
  font-weight: 680;
}

.metric-pill b {
  color: var(--detail-body);
  font-weight: 760;
}

.adapter-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 20px;
  align-items: start;
}

.adapter-form,
.adapter-panel {
  padding: 18px;
}

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

.adapter-form .feedback-content,
.adapter-form .primary-button {
  grid-column: 1 / -1;
}

.adapter-panel {
  display: grid;
  gap: 18px;
}

.adapter-panel h2 {
  margin-bottom: 10px;
  font-size: 21px;
}

.adapter-panel p,
.check-list {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.check-list {
  padding-left: 20px;
}

.visual-tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.visual-tool-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.visual-tool-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.visual-tool-head span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-card);
  background: #1d1d1f;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

.visual-tool-head strong {
  min-height: 28px;
  border-radius: var(--radius-tag);
  padding: 5px 10px;
  background: rgba(0, 113, 227, 0.09);
  color: var(--blue);
  font-size: 12px;
}

.visual-tool-card h2 {
  font-size: 21px;
}

.visual-tool-card p,
.visual-tool-card dd {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.visual-tool-card dl {
  display: grid;
  gap: 6px;
  margin: 0;
}

.visual-tool-card dt {
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.visual-tool-card dd {
  overflow-wrap: anywhere;
}

.visual-request-layout {
  grid-template-columns: minmax(0, 1fr) 340px;
}

.manager-shell {
  display: grid;
  gap: 24px;
}

.manager-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(420px, 1fr);
  gap: 24px;
  align-items: end;
}

.manager-hero p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.manager-hero .manager-intro {
  max-width: 560px;
  color: var(--text);
  line-height: 1.5;
}

.manager-hero .auth-status {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted-2);
}

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

.manager-kpis div,
.decision-card,
.manager-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.manager-kpis div {
  min-height: 86px;
  padding: 14px;
}

.manager-kpis span,
.decision-head span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.manager-kpis strong,
.decision-head strong {
  display: block;
  font-size: 26px;
  line-height: 1.1;
}

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

.decision-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 16px;
}

.decision-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.decision-head span {
  margin-bottom: 0;
}

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

.decision-list section {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.decision-list section:first-child {
  padding-top: 0;
  border-top: 0;
}

.decision-list h3 {
  margin-bottom: 5px;
  overflow-wrap: anywhere;
  font-size: 15px;
}

.decision-list p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.decision-blue {
  border-top-color: rgba(0, 113, 227, 0.38);
}

.decision-orange {
  border-top-color: rgba(191, 91, 0, 0.38);
}

.decision-red {
  border-top-color: rgba(180, 35, 24, 0.38);
}

.decision-slate {
  border-top-color: rgba(59, 75, 95, 0.38);
}

.manager-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.app-admin-layout {
  grid-template-columns: minmax(0, 1.1fr) 380px;
}

.manager-panel {
  min-width: 0;
  padding: 18px;
}

.action-panel {
  display: grid;
  gap: 14px;
}

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

.action-form label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.action-form label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.action-form input,
.action-form select,
.action-form textarea {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  outline: 0;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.action-form input,
.action-form select {
  height: 42px;
  padding: 0 12px;
}

.action-form textarea {
  min-height: 94px;
  padding: 11px;
  resize: vertical;
  line-height: 1.5;
}

.action-form input:focus,
.action-form select:focus,
.action-form textarea:focus {
  border-color: rgba(0, 113, 227, 0.42);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
}

.action-form .feedback-content,
.action-form .primary-button {
  grid-column: 1 / -1;
}

.action-form .primary-button {
  justify-self: end;
  min-width: 148px;
}

.app-submit-form .feedback-content {
  grid-column: 1 / -1;
}

.app-publish-panel {
  margin: 22px 0;
  padding: 20px;
}

.panel-subtitle {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.form-more {
  border-top: 1px solid var(--line);
  padding-top: 4px;
}

.form-more summary {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: var(--accent);
  cursor: pointer;
  font-size: 13px;
  font-weight: 760;
  list-style: none;
}

.form-more summary::-webkit-details-marker {
  display: none;
}

.form-more summary::after {
  content: "展开";
  margin-left: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.form-more[open] summary::after {
  content: "收起";
}

.form-more-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-top: 8px;
}

.pending-app-list {
  display: grid;
}

.pending-app-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.pending-app-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.pending-app-row h3 {
  margin-bottom: 3px;
  overflow-wrap: anywhere;
  font-size: 15px;
}

.pending-app-row p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.asset-admin-list {
  display: grid;
  gap: 18px;
}

.asset-list-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 22px;
  align-items: center;
}

.asset-list-head h3 {
  margin: 0;
  font-size: 24px;
  letter-spacing: 0;
}

.asset-search {
  display: grid;
  gap: 7px;
}

.asset-search span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.asset-search input {
  width: 100%;
  height: 46px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 15px;
  background: #fff;
  padding: 0 16px;
  color: var(--text);
  font-size: 15px;
  outline: 0;
}

.asset-search input:focus {
  border-color: rgba(0, 113, 227, 0.42);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
}

.asset-list-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.asset-workbench-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: start;
}

.asset-list-column {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.asset-list {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}

.asset-row {
  display: grid;
  border-top: 1px solid var(--line);
}

.asset-row:first-child {
  border-top: 0;
}

.asset-row.is-expanded {
  background: linear-gradient(180deg, rgba(244, 248, 255, 0.86), rgba(255, 255, 255, 0.97));
}

.asset-row.is-collapsing {
  background: linear-gradient(180deg, rgba(244, 248, 255, 0.66), rgba(255, 255, 255, 0.97));
}

.asset-summary {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 16px 18px;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.asset-summary:hover {
  background: rgba(0, 113, 227, 0.035);
}

.asset-summary:focus-visible {
  outline: 3px solid rgba(0, 113, 227, 0.24);
  outline-offset: -3px;
}

.asset-summary .mini-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  font-size: 22px;
}

.asset-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.asset-copy strong {
  overflow-wrap: anywhere;
  font-size: 17px;
  line-height: 1.2;
}

.asset-copy > span:not(.asset-chips) {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.asset-description {
  max-width: 68ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-meta-line {
  font-weight: 650;
}

.asset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.asset-chips span {
  min-height: 24px;
  border-radius: 999px;
  background: rgba(118, 118, 128, 0.09);
  padding: 4px 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.asset-toggle-label {
  border-radius: 999px;
  background: rgba(23, 109, 232, 0.09);
  padding: 8px 15px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 760;
}

.asset-edit-form {
  --asset-edit-open-height: 2600px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-height: var(--asset-edit-open-height);
  overflow: hidden;
  padding: 0 18px 18px 92px;
  animation: assetExpand 240ms cubic-bezier(0.22, 0.9, 0.18, 1) both;
  transform-origin: top;
  will-change: max-height, opacity, transform;
}

.asset-row.is-collapsing .asset-edit-form {
  pointer-events: none;
  animation: assetCollapse 220ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes assetExpand {
  from {
    max-height: 0;
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    max-height: var(--asset-edit-open-height);
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes assetCollapse {
  from {
    max-height: var(--asset-edit-open-height);
    opacity: 1;
    transform: translateY(0);
  }

  to {
    max-height: 0;
    opacity: 0;
    transform: translateY(-8px);
  }
}

.asset-edit-form label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.asset-edit-form label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.asset-edit-form input,
.asset-edit-form select,
.asset-edit-form textarea {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  outline: 0;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.asset-edit-form input,
.asset-edit-form select {
  height: 42px;
  padding: 0 12px;
}

.asset-edit-form textarea {
  min-height: 92px;
  padding: 11px;
  resize: vertical;
  line-height: 1.5;
}

.asset-edit-form input:focus,
.asset-edit-form select:focus,
.asset-edit-form textarea:focus {
  border-color: rgba(0, 113, 227, 0.42);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
}

.feedback-form select,
.finder-filters select,
.adapter-form select,
.action-form select,
.asset-edit-form select {
  appearance: none;
  -webkit-appearance: none;
  background-color: #fff;
  background-image: var(--select-chevron);
  background-repeat: no-repeat;
  background-size: 14px 14px;
}

.feedback-form select,
.action-form select,
.asset-edit-form select {
  padding-right: 42px;
  background-position: right 14px center;
}

.finder-filters select,
.adapter-form select {
  padding-right: 36px;
  background-position: right 12px center;
}

.profile-switch select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 24px;
  background-image: var(--select-chevron);
  background-repeat: no-repeat;
  background-position: right 2px center;
  background-size: 12px 12px;
}

select::-ms-expand {
  display: none;
}

.asset-edit-form .feedback-content,
.asset-edit-form .asset-more,
.asset-media-editor,
.asset-edit-actions {
  grid-column: 1 / -1;
}

.asset-media-editor {
  display: grid;
  grid-template-columns: minmax(190px, 0.72fr) minmax(260px, 1.28fr);
  gap: 14px;
}

.media-upload-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.78);
  padding: 12px;
}

.media-upload-head {
  display: grid;
  gap: 3px;
}

.media-upload-head strong {
  font-size: 14px;
}

.media-upload-head span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.media-preview {
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(37, 52, 78, 0.08);
  border-radius: 12px;
  background: rgba(118, 118, 128, 0.08);
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.media-preview-icon {
  width: 74px;
  height: 74px;
}

.media-preview-cover {
  width: 100%;
  aspect-ratio: 16 / 7;
}

.media-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.media-file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 10px;
  background: rgba(23, 109, 232, 0.09);
  color: var(--blue);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.media-file-button:hover {
  background: rgba(23, 109, 232, 0.14);
}

.media-file-button input {
  display: none;
}

.asset-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
  padding-top: 2px;
}

.asset-inspector {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 16px;
  min-height: 420px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(250, 252, 255, 0.94), rgba(255, 255, 255, 0.96)),
    #fff;
  padding: 18px;
  box-shadow: 0 14px 40px rgba(37, 52, 78, 0.08);
}

.inspector-eyebrow {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.inspector-head {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.inspector-head h3 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 18px;
  line-height: 1.2;
}

.inspector-head p,
.inspector-block p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.inspector-status-grid {
  display: grid;
  gap: 8px;
}

.inspector-status-grid section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  border-radius: 12px;
  background: rgba(118, 118, 128, 0.08);
  padding: 10px 12px;
}

.inspector-status-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 740;
}

.inspector-status-grid strong {
  font-size: 13px;
}

.inspector-block {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}

.inspector-block h4 {
  margin: 0;
  font-size: 14px;
}

.inspector-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.inspector-tags span {
  border-radius: 999px;
  background: rgba(23, 109, 232, 0.09);
  padding: 6px 9px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 760;
}

.inspector-open {
  width: 100%;
  margin-top: 2px;
}

.danger-action {
  background: rgba(255, 59, 48, 0.09);
  color: #c9342d;
}

.danger-action:hover {
  background: rgba(255, 59, 48, 0.14);
}

.danger-action:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.danger-text {
  color: #c9342d;
}

.report-panel {
  display: grid;
  gap: 14px;
}

.ops-disclosure {
  display: grid;
  gap: 18px;
}

.ops-disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  cursor: pointer;
  list-style: none;
  padding: 0 18px;
  font-size: 16px;
  font-weight: 760;
}

.ops-disclosure > summary::-webkit-details-marker {
  display: none;
}

.ops-disclosure > summary::after {
  content: "展开";
  flex: 0 0 auto;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(118, 118, 128, 0.1);
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.ops-disclosure[open] > summary::after {
  content: "收起";
}

.ops-disclosure > summary small {
  flex: 1 1 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 560;
  line-height: 1.4;
}

.ops-disclosure[open] > .decision-grid {
  margin-top: 18px;
}

.report-disclosure {
  margin: 22px 0;
  background: rgba(255, 255, 255, 0.76);
}

.report-disclosure summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 42px;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  font-weight: 760;
}

.report-disclosure summary::-webkit-details-marker {
  display: none;
}

.report-disclosure summary::after {
  content: "展开";
  flex: 0 0 auto;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(118, 118, 128, 0.1);
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.report-disclosure[open] summary::after {
  content: "收起";
}

.report-disclosure summary small {
  flex: 1 1 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 560;
  line-height: 1.4;
}

.report-heading {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

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

.report-output {
  width: 100%;
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--bg-soft);
  color: var(--text);
  padding: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
  resize: vertical;
}

.trial-shell {
  display: grid;
  gap: 24px;
}

.trial-pack-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: end;
}

.trial-pack-hero p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

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

.trial-pack-stats div,
.trial-message-panel,
.role-task-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.trial-pack-stats div {
  padding: 14px;
}

.trial-pack-stats span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.trial-pack-stats strong {
  display: block;
  font-size: 24px;
  line-height: 1.1;
}

.trial-message-panel {
  padding: 18px;
}

.trial-message {
  min-height: 220px;
}

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

.role-task-card {
  display: grid;
  gap: 13px;
  min-width: 0;
  padding: 16px;
}

.role-task-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.role-task-head span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-card);
  background: #1d1d1f;
  color: #fff;
  font-size: 18px;
  font-weight: 780;
}

.role-task-head strong {
  min-height: 28px;
  padding: 5px 10px;
  border-radius: var(--radius-tag);
  background: rgba(0, 113, 227, 0.09);
  color: var(--blue);
  font-size: 12px;
}

.role-task-card h2 {
  font-size: 22px;
}

.role-task-card p,
.role-task-card dd {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.role-task-card dl {
  display: grid;
  gap: 7px;
  margin: 0;
}

.role-task-card dt {
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.role-tool-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.role-tool-links a,
.role-task-card dd > a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

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

.recycle-list article {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border-radius: var(--radius-card);
  background: var(--bg-soft);
}

.recycle-list strong {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #1d1d1f;
  color: #fff;
  font-size: 12px;
}

.recycle-list p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.handoff-shell {
  display: grid;
  gap: 24px;
}

.handoff-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: end;
}

.handoff-hero p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.handoff-status,
.handoff-grid {
  display: grid;
  gap: 10px;
}

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

.handoff-status div,
.handoff-link-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.handoff-status div {
  padding: 14px;
}

.handoff-status div.ok {
  border-top-color: rgba(12, 124, 89, 0.4);
}

.handoff-status div.warn {
  border-top-color: rgba(180, 35, 24, 0.4);
}

.handoff-status span,
.command-list span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.handoff-status strong {
  display: block;
  font-size: 20px;
}

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

.handoff-link-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  color: var(--text);
  text-decoration: none;
}

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

.handoff-link-card span,
.release-box p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.handoff-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 18px;
  align-items: start;
}

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

.command-list article {
  display: grid;
  gap: 7px;
  padding: 12px;
  border-radius: var(--radius-card);
  background: var(--bg-soft);
}

.command-list code {
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 13px;
}

.release-box {
  display: grid;
  gap: 10px;
}

.release-box h3 {
  overflow-wrap: anywhere;
  font-size: 16px;
}

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

.handoff-checklist article {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius-card);
  background: var(--bg-soft);
}

.handoff-checklist strong {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(12, 124, 89, 0.12);
  color: var(--green);
}

.handoff-checklist p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.trial-table {
  width: 100%;
  overflow-x: auto;
}

.trial-table table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.trial-table th,
.trial-table td {
  padding: 13px 10px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
  line-height: 1.42;
}

.trial-table th {
  border-top: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.trial-table td strong,
.trial-table td span {
  display: block;
}

.trial-table td strong {
  margin-bottom: 4px;
  font-size: 14px;
}

.trial-table td span {
  color: var(--muted);
  font-size: 12px;
}

.feedback-queue {
  display: grid;
}

.feedback-queue article {
  display: grid;
  gap: 8px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.feedback-queue article:first-child {
  padding-top: 0;
  border-top: 0;
}

.feedback-queue h3 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 15px;
}

.feedback-queue p,
.manager-empty {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 980px) {
  :root {
    --content: min(100vw - 32px, 760px);
  }

  .topbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .brand {
    justify-self: start;
  }

  .primary-nav {
    overflow-x: auto;
    gap: 22px;
    padding-bottom: 2px;
  }

  .primary-nav a.active::after {
    bottom: -2px;
  }

  .top-actions {
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .profile-strip,
  .weekly-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-tags,
  .weekly-items {
    justify-content: flex-start;
  }

  .feature-grid,
  .feature-card,
  .feature-storyboard,
  .assistant-panel,
  .app-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 360px;
  }

  .feature-copy {
    padding: 0 24px 24px;
  }

  .prompt-chips,
  .recommend-result {
    grid-column: auto;
  }

  .detail-modal {
    max-height: calc(100vh - 28px);
    padding: 22px;
    border-radius: var(--radius-card);
  }

  .feedback-modal,
  .trial-modal {
    max-height: calc(100vh - 28px);
    padding: 22px;
    border-radius: var(--radius-card);
  }

  .detail-hero {
    grid-template-columns: 52px minmax(0, 1fr);
    padding-right: 34px;
  }

  .detail-actions {
    grid-column: 2;
    justify-content: start;
    margin-top: 12px;
  }

  .detail-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-card);
  }

  .detail-hero h2 {
    font-size: 24px;
  }

  .feedback-form {
    grid-template-columns: 1fr;
  }

  .feedback-heading h2 {
    font-size: 25px;
  }

  .finder-hero,
  .manager-hero,
  .trial-pack-hero,
  .handoff-hero,
  .handoff-layout,
  .manager-layout,
  .action-form,
  .form-more-grid,
  .asset-media-editor,
  .finder-workbench,
  .adapter-layout,
  .adapter-form,
  .visual-tool-grid,
  .visual-request-layout,
  .role-task-grid,
  .recycle-list,
  .handoff-grid,
  .handoff-checklist,
  .decision-grid {
    grid-template-columns: 1fr;
  }

  .trial-pack-stats,
  .handoff-status {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .finder-filters,
  .case-detail {
    position: static;
    max-height: none;
    overflow: visible;
    scrollbar-gutter: auto;
  }

  .finder-hero {
    min-height: 220px;
  }

  .finder-hero::before {
    right: -170px;
    width: min(720px, 72vw);
    opacity: 0.54;
  }

  .case-list {
    max-height: none;
  }

  .finder-filter-row,
  .finder-select-row {
    grid-template-columns: 1fr;
  }

  .finder-filter-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .asset-list-head,
  .asset-workbench-grid,
  .asset-summary,
  .asset-edit-form,
  .form-more-grid {
    grid-template-columns: 1fr;
  }

  .asset-inspector {
    position: static;
    min-height: 0;
    order: -1;
  }

  .asset-edit-form {
    padding-left: 14px;
  }

  .asset-edit-actions {
    justify-content: flex-start;
  }

  .tool-shell {
    width: var(--content);
  }

  .detail-section {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .finder-select-row .ghost-button {
    width: 100%;
  }
}

@media (max-width: 620px) {
  :root {
    --content: calc(100vw - 28px);
  }

  main {
    padding-top: 28px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 28px;
  }

  .feature-card,
  .assistant-panel {
    border-radius: var(--radius-card);
  }

  .feature-copy {
    padding: 22px;
  }

  .feature-title {
    font-size: 28px;
  }

  .need-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .need-panel .primary-button {
    width: 100%;
  }

  .top-actions .ghost-button {
    display: none;
  }

  .finder-stats {
    flex-wrap: wrap;
  }

  .finder-hero {
    padding-top: 18px;
  }

  .finder-hero h1 {
    font-size: 40px;
  }

  .finder-hero::before {
    top: -18px;
    right: -230px;
    width: 760px;
    opacity: 0.28;
  }

  .finder-hero::after {
    display: none;
  }

  .finder-query-bar {
    flex-wrap: wrap;
  }

  .finder-search {
    flex-basis: 100%;
    height: 48px;
  }

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

  .manager-kpis {
    grid-template-columns: 1fr;
  }

  .trial-pack-stats,
  .handoff-status {
    grid-template-columns: 1fr;
  }

  .tool-topbar {
    padding-inline: 14px;
  }

  .case-detail-head h2 {
    font-size: 23px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
