/* UI refinement only. Brand: Zhuibao orange; all routes and state hooks retained.
   Desktop: 232px sidebar + fluid canvas. At 1440px: 1208px canvas;
   max 1120px page with 40px inner gutters = 1040px usable content.
   Operate mode: bright orange emphasis, white surfaces, readable Chinese. */
:root {
  --ui-ground: #fffaf7;
  --ui-surface: #ffffff;
  --ui-raised: #fff7f1;
  --ui-ink: #23242b;
  --ui-muted: #565c67;
  --ui-faint: #626875;
  --ui-line: #ede4df;
  --ui-control: #bfc7d0;
  --ui-accent: #c53c15;
  --ui-accent-hover: #b93610;
  --ui-accent-soft: #fff0e6;
  --ui-radius: 12px;
  --ui-radius-control: 8px;
}

.product-shell {
  background: var(--ui-ground);
  color: var(--ui-ink);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  accent-color: var(--ui-accent);
  caret-color: var(--ui-accent);
  scrollbar-color: #aeb6bf transparent;
  scrollbar-width: thin;
}
.product-shell *, .product-shell *::before, .product-shell *::after { box-sizing: border-box; }
.product-shell ::selection { background: #fbe1d4; color: #612710; }
.product-shell a { text-underline-offset: 4px; }
.product-shell :focus-visible { outline: 2px solid var(--ui-accent); outline-offset: 4px; }
.product-shell [hidden] { display: none !important; }

/* Quiet navigation, same destinations and account/support actions. */
.product-shell .capability-sidebar { width: 232px; padding: 26px 16px 18px; background: #ffffff; border-color: var(--ui-line); }
.product-shell .sidebar-brand { padding: 0 12px 24px; gap: 12px; }
.product-shell .brand-mark { width: 32px; height: 32px; background: #d8582b; color: #fff !important; border-radius: 9px; box-shadow: none; font-family: "Microsoft YaHei", "PingFang SC", sans-serif; font-size: 20px; font-weight: 700; line-height: 1; }
.product-shell .sidebar-brand b { font-size: 21px; font-weight: 700; letter-spacing: .02em; }
.product-shell .sidebar-brand small { font-size: 12px; color: var(--ui-faint); }
.product-shell .capability-map { gap: 4px; }
.product-shell .capability-map > p { color: var(--ui-faint); font-size: 12px; font-weight: 500; letter-spacing: 0; margin: 20px 12px 8px; }
.product-shell .capability-map > a { min-height: 42px; padding: 10px 12px; color: #46515c; font-size: 14px; font-weight: 500; border-radius: 8px; }
.product-shell .capability-map > a:hover { background: #f0f2f4; color: var(--ui-ink); }
.product-shell .capability-map > a.active { color: #a5300a; background: #ffeadb; font-weight: 700; }
.product-shell .capability-map > a i { color: #287049; }
.product-shell .capability-map hr { margin-top: 16px; border-color: var(--ui-line); }
.product-shell .capability-subitems { padding-left: 14px; gap: 5px; font-size: 12px; color: var(--ui-faint); }
.product-shell .sidebar-footer { margin-top: auto; padding-top: 18px; }
.product-shell .sidebar-account, .product-shell .sidebar-support { min-height: 42px; font-size: 14px; font-weight: 500; color: #46515c; }
.product-shell .sidebar-legal-links a { color: var(--ui-faint); font-size: 12px; }
.product-shell .shell-main { margin-left: 232px; }
.product-shell .shell-main > main { padding-bottom: 48px; }

/* Shared page rhythm. Preserve every heading and business statement. */
.product-shell :is(.page-shell, .home-shell) { width: 100%; max-width: 1120px; padding: 36px 40px 56px; margin-inline: auto; }
.product-shell .narrow-page { max-width: 880px; }
.product-shell .page-intro { margin-bottom: 28px; }
.product-shell :is(.page-intro, .hero-copy, .welcome-back) h1 { font-size: 30px; line-height: 1.35; letter-spacing: -.025em; font-weight: 650; margin: 0 0 10px; }
.product-shell .guided-home .hero-copy h1 { font-size: 32px; line-height: 1.35; }
.product-shell :is(.page-intro, .hero-copy) > p:not(.eyebrow) { color: var(--ui-muted); font-size: 15px; line-height: 1.75; max-width: 72ch; }
.product-shell :is(.hero-lead, .page-intro p) { margin-top: 8px; }
.product-shell :is(.eyebrow, .path-number) { font-size: 12px; font-weight: 650; letter-spacing: 0; color: var(--ui-accent); margin: 0 0 8px; }
.product-shell .section-heading { gap: 16px; align-items: center; margin-bottom: 18px; }
.product-shell :is(.section-heading h2, .task-group h2, .completed-task-panel h2) { font-size: 21px; line-height: 1.45; font-weight: 650; letter-spacing: -.015em; }
.product-shell h3 { line-height: 1.55; }
.product-shell .back-link { display: inline-block; font-size: 13px; color: var(--ui-muted); margin-bottom: 18px; }
.product-shell .journey-progress { max-width: 1120px; padding: 24px 40px 0; }
.product-shell .journey-progress span { color: var(--ui-accent); font-weight: 600; }
.product-shell .journey-track { background: #e4e8ed; height: 4px; }
.product-shell .journey-track i { background: var(--ui-accent); }

/* One family of controls, including keyboard and disabled states. */
.product-shell :is(.button, button.button, .auth-submit) { min-height: 42px; padding: 10px 18px; border-radius: var(--ui-radius-control); font-size: 14px; line-height: 1.5; font-weight: 600; box-shadow: none; text-decoration: none; transition: background-color .15s, border-color .15s, color .15s; }
/* app.css has legacy important primary colors; override those two properties
   here so white button labels retain readable contrast across every page. */
.product-shell :is(.button-primary, button.button-primary, .auth-submit) { background: var(--ui-accent) !important; border-color: var(--ui-accent); color: #fff !important; }
.product-shell :is(.button-primary, .auth-submit):hover { background: var(--ui-accent-hover) !important; border-color: var(--ui-accent-hover); }
.product-shell :is(.button-secondary, .secondary-button) { background: #fff; border: 1px solid var(--ui-control); color: #34404c; }
.product-shell .button-secondary:hover { background: #f4f6f8; border-color: #929da9; }
.product-shell :is(button:disabled, .button[aria-disabled="true"]),
.product-shell .trend-card .button-primary:disabled { color: #55616d !important; background: #e6e9ed !important; border-color: #d5dbe1; opacity: 1; cursor: not-allowed; transform: none; }
.product-shell .text-action { color: var(--ui-accent); font-size: 14px; font-weight: 600; }
.product-shell :is(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea) { color: var(--ui-ink); font: inherit; font-size: 15px; width: 100%; min-height: 44px; padding: 11px 13px; background: #fff; border: 1px solid var(--ui-control); border-radius: var(--ui-radius-control); box-shadow: none; }
.product-shell textarea { min-height: 112px; line-height: 1.75; resize: vertical; }
.product-shell input::placeholder, .product-shell textarea::placeholder { color: var(--ui-faint); opacity: 1; }
.product-shell :is(input, textarea, select):focus { border-color: var(--ui-accent); }
.product-shell :is(input[type="checkbox"], input[type="radio"]) { accent-color: var(--ui-accent); flex: 0 0 auto; }
.product-shell input[type="file"] { width: 100%; max-width: 100%; color: var(--ui-muted); font-size: 14px; padding: 10px; border: 1px dashed var(--ui-control); border-radius: 8px; background: var(--ui-raised); }
.product-shell input[type="file"]::file-selector-button { border: 1px solid var(--ui-control); border-radius: 6px; background: white; color: var(--ui-ink); padding: 8px 12px; margin-right: 12px; cursor: pointer; }
.product-shell .upload-trigger { position: relative; overflow: hidden; display: inline-flex; align-items: center; cursor: pointer; }
.product-shell .upload-trigger input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; max-width: 100%; padding: 0; margin: 0; border: 0; opacity: 0; cursor: pointer; }
.product-shell .upload-trigger:focus-within { outline: 2px solid var(--ui-accent); outline-offset: 3px; }
.product-shell :is(.review label, .form-card label, .auth-dialog label) { font-size: 14px; font-weight: 550; color: #34404c; }
.product-shell :is(.field-help, .form-help, .form-card small, .production-detail small) { font-size: 13px; color: var(--ui-muted); line-height: 1.7; }

/* Flat, consistent surfaces instead of nested oversized panels. */
.product-shell :is(.form-card, .start-path, .content-task-card, .completed-task-panel, .merchant-card, .membership-card, .membership-status, .membership-points, .membership-plans, .video-mode-card, .production-choice-card, .production-detail, .current-industry, .trend-industry-prompt, .empty-state, .incoming-script) { background: var(--ui-surface); border: 1px solid var(--ui-line); border-radius: var(--ui-radius); box-shadow: none; }
.product-shell :is(.form-card, .merchant-card, .membership-card, .membership-status, .membership-points, .membership-plans, .production-detail) { padding: 24px; }
.product-shell .form-card { margin-bottom: 20px; }
.product-shell .form-card h2 { font-size: 20px; font-weight: 650; margin-top: 0; }
.product-shell :is(.notice, .creation-success, .membership-notice) { color: #295b41; background: #f0f7f2; border-color: #d8e6dc; border-radius: 8px; padding: 12px 16px; font-size: 14px; }
.product-shell :is(.form-error, .error-notice, .membership-notice.error) { color: #9c2925; background: #fff2f1; border-color: #efcfcc; border-radius: 8px; padding: 12px 16px; font-size: 14px; }

/* A compact home: the real share-link action leads, alternate starts recede. */
.product-shell .guided-home { padding-top: 40px; }
.product-shell .guided-home .hero-copy { margin-bottom: 24px; max-width: 760px; }
.product-shell .primary-start-path { padding: 26px 28px; border-color: #efc4ac; background: #fff; border-top: 3px solid #ff612c; }
.product-shell .start-path h2 { font-size: 21px; font-weight: 650; line-height: 1.45; margin: 4px 0 10px; }
.product-shell .start-path p { font-size: 14px; color: var(--ui-muted); }
.product-shell .start-path .path-number { color: var(--ui-accent); letter-spacing: 0; font-size: 12px; }
.product-shell .alternate-start-grid { gap: 16px; margin-top: 16px; }
.product-shell .alternate-start-grid .start-path { padding: 22px 24px; }
.product-shell .alternate-start-grid .start-path:hover { border-color: #e4b499; background: #fff6ee; }
.product-shell .alternate-start-grid .start-path b { color: var(--ui-accent); font-size: 13px; font-weight: 600; }
.product-shell .douyin-hero-form { padding: 18px 0 0; border: 0; background: transparent; box-shadow: none; }
.product-shell .douyin-hero-form label { font-size: 14px; margin-bottom: 8px; }
.product-shell .douyin-hero-form button { min-width: 124px; margin: 0; }
.product-shell .quiet-upload-link { color: var(--ui-muted); font-size: 13px; }
.product-shell .welcome-back { padding: 22px 26px; border: 1px solid #f0c9b0; border-radius: 12px; background: #fff0e3; }
.product-shell .welcome-back h1 { font-size: 23px; margin-bottom: 16px; }
.product-shell .welcome-back article strong { font-size: 16px; }
.product-shell .welcome-back article p { font-size: 14px; color: var(--ui-muted); }
.product-shell .reference-primary-action { background: #fff0e3; border-color: #f0c9b0; }
.product-shell .reference-primary-action p:not(.eyebrow) { color: var(--ui-muted); }

/* Video is the card's single media surface. Do not alter player hooks/states. */
.product-shell .trend-card-grid { gap: 20px; align-items: start; }
.product-shell .trend-card { background: #fff; border: 1px solid var(--ui-line); border-radius: 12px; overflow: hidden; box-shadow: none; }
.product-shell .trend-card-media { position: relative; aspect-ratio: 4 / 5; height: auto; min-height: 0; background: #17191c; overflow: hidden; }
.product-shell .trend-card-media > video { display: block; width: 100%; height: 100%; position: absolute; inset: 0; object-fit: contain; }
.product-shell .trend-card-media > img { width: 100%; height: 100%; object-fit: cover; }
.product-shell .trend-card-copy { padding: 18px; }
.product-shell .trend-card-copy > span { color: var(--ui-accent); font-size: 12px; font-weight: 650; }
.product-shell .trend-card-copy h3 { font-size: 16px; line-height: 1.7; font-weight: 600; margin: 8px 0; overflow-wrap: anywhere; }
.product-shell .trend-card-copy p { font-size: 13px; color: var(--ui-muted); }
.product-shell .trend-card .button-primary { width: 100%; background: #fff !important; border: 1px solid #d7b9ac; color: #a73d1e !important; }
.product-shell .trend-card .button-primary:hover { background: var(--ui-accent-soft) !important; border-color: var(--ui-accent); }
.product-shell .candidate-play { min-height: 40px; max-width: calc(100% - 24px); padding: 8px 14px; font-size: 13px; border-radius: 8px; background: #fff; color: #23242b; box-shadow: 0 3px 12px #0002; }
.product-shell .current-industry { padding: 18px 22px; margin-bottom: 28px; }
.product-shell .current-industry strong { font-size: 19px; color: var(--ui-ink); }
.product-shell .current-industry span { font-size: 12px; color: var(--ui-faint); }
.product-shell .industry-chip { font-size: 14px; min-height: 40px; padding: 8px 14px; border-radius: 8px; color: #46515c; border-color: var(--ui-line); background: #fff; }
.product-shell .industry-chip:hover { background: #f0f2f4; border-color: #bfc7d0; }

/* Membership, content and production use the same readable working density. */
.product-shell .content-task-card { padding: 20px 22px; gap: 20px; }
.product-shell .content-task-card h3 { font-size: 17px; font-weight: 600; }
.product-shell .content-task-card :is(p, span) { font-size: 13px; color: var(--ui-muted); }
.product-shell .empty-state { padding: 44px 28px; min-height: 240px; }
.product-shell .empty-state h2 { font-size: 22px; }
.product-shell .empty-state p { color: var(--ui-muted); font-size: 15px; }
.product-shell .membership-overview { gap: 20px; }
.product-shell .membership-plan-grid { gap: 14px; }
.product-shell .membership-plan { border: 1px solid var(--ui-line); border-radius: 10px; background: #fff; padding: 18px; box-shadow: none; }
.product-shell .membership-plan h3 { font-size: 16px; }
.product-shell .membership-plan :is(p, li, small) { color: var(--ui-muted); font-size: 13px; line-height: 1.75; }
.product-shell :is(.membership-status h2, .membership-points h2, .membership-card h2) { font-size: 22px; font-weight: 650; }
.product-shell .membership-points strong { font-size: 34px; color: var(--ui-accent); font-weight: 650; }
.product-shell .trial-card strong { font-size: 28px; color: var(--ui-accent); }
.product-shell :is(.muted, .quiet-note, .auth-footnote),
.product-shell :is(.membership-status, .membership-points) > span,
.product-shell .membership-plans .section-heading > p { color: var(--ui-muted); }
.product-shell .plan-badge { color: #973a1d; background: #fff0e9; }
.product-shell .membership-page .quiet-note { color: var(--ui-muted) !important; }
.product-shell .page-shell .legal-date { color: var(--ui-muted) !important; }
.product-shell .commerce-summary { background: var(--ui-raised); border: 1px solid var(--ui-line); border-radius: 10px; padding: 18px; font-size: 14px; }
.product-shell .video-mode-grid { gap: 20px; align-items: start; }
.product-shell .video-mode-card { padding: 24px; }
.product-shell .video-mode-card:only-child { grid-column: 1 / -1; }
.product-shell .video-mode-card h2 { font-size: 21px; font-weight: 650; }
.product-shell .video-mode-card h3 { font-size: 14px; color: #46515c; }
.product-shell .video-mode-card :is(p, li) { font-size: 14px; color: var(--ui-muted); line-height: 1.8; }
.product-shell .mode-icon { background: transparent; color: var(--ui-accent); box-shadow: none; font-size: 24px; width: auto; height: auto; }
.product-shell .production-choice-grid { gap: 18px; }
.product-shell .production-choice-card { padding: 24px; }
.product-shell .production-choice-card h2 { font-size: 20px; }
.product-shell .production-choice-card :is(p, small) { color: var(--ui-muted); font-size: 14px; }
.product-shell .style-choice span { border-radius: 8px; font-size: 14px; }
.product-shell .incoming-script { padding: 24px; }
.product-shell .incoming-script p, .product-shell .script-line { line-height: 1.9; color: #303943; }

/* Floating surfaces are the only surfaces with elevation. */
.product-shell .auth-overlay { background: #23242b55; padding: 24px 16px; }
.product-shell .auth-dialog { width: min(460px, 100%); padding: 36px; border: 0; border-radius: 18px; background: #fff; box-shadow: 0 20px 70px #17212c26; }
.product-shell .auth-dialog h1 { font-size: 26px; font-weight: 650; line-height: 1.4; margin-bottom: 22px; }
.product-shell .auth-method { background: #f2f4f6; border-radius: 8px; padding: 12px 16px; color: var(--ui-ink); }
.product-shell .auth-description { font-size: 13px; line-height: 1.75; color: var(--ui-muted); }
.product-shell .auth-dialog-close { color: var(--ui-faint); width: 36px; height: 36px; border-radius: 8px; }
.product-shell .auth-dialog-close:hover { background: #f0f2f4; }
.product-shell .auth-field { margin-block: 18px; }
.product-shell .auth-submit { width: 100%; min-height: 46px; margin-top: 16px; }
.product-shell .auth-dialog :is(.auth-agreement, .auth-consent, .agreement-row) { color: var(--ui-muted); font-size: 13px; line-height: 1.8; }
.product-shell .auth-dialog a:not(.auth-dialog-close) { color: var(--ui-accent); }
.product-shell .customer-service-panel { border: 1px solid var(--ui-line); border-radius: 14px; background: white; box-shadow: 0 12px 36px #17212c1f; }
.product-shell .customer-service-panel img { width: 100%; max-height: 360px; object-fit: contain; }
.product-shell .customer-service-panel p { font-size: 13px; color: var(--ui-muted); }

@media (min-width: 1100px) {
  .product-shell .membership-plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 721px) and (max-width: 1000px) {
  .product-shell .capability-sidebar { width: 200px; padding-inline: 12px; }
  .product-shell .shell-main { margin-left: 200px; }
  .product-shell :is(.page-shell, .home-shell) { padding: 28px 24px 48px; }
  .product-shell .journey-progress { padding-inline: 24px; }
  .product-shell .guided-home .hero-copy h1 { font-size: 30px; }
  .product-shell .alternate-start-grid, .product-shell .video-mode-grid { grid-template-columns: 1fr; }
  .product-shell .membership-plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-shell .douyin-hero-form > div { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .product-shell .capability-sidebar { display: none; }
  .product-shell .shell-main { margin-left: 0; }
  .product-shell .mobile-shell-header { display: flex; background: #fff; height: 60px; padding-inline: 18px; border-color: var(--ui-line); }
  .product-shell .mobile-header-actions { gap: 16px; }
  .product-shell .mobile-header-actions :is(a, button) { min-height: 44px; display: inline-flex; align-items: center; color: #46515c; font-size: 13px; }
  .product-shell :is(.page-shell, .home-shell) { padding: 28px 18px 36px; }
  .product-shell :is(.page-intro, .hero-copy, .welcome-back) h1, .product-shell .guided-home .hero-copy h1 { font-size: 26px; line-height: 1.4; }
  .product-shell .page-intro { margin-bottom: 22px; }
  .product-shell .journey-progress { padding: 18px 18px 0; }
  .product-shell :is(.primary-start-path, .start-path, .form-card, .membership-card, .membership-status, .membership-points, .membership-plans, .production-detail, .video-mode-card, .production-choice-card) { padding: 20px; border-radius: 12px; }
  .product-shell .start-path h2 { font-size: 19px; }
  .product-shell .alternate-start-grid { grid-template-columns: 1fr; }
  .product-shell .douyin-hero-form > div { grid-template-columns: 1fr; gap: 10px; }
  .product-shell .douyin-hero-form button { width: 100%; }
  .product-shell :is(.button, .auth-submit, .industry-chip) { min-height: 44px; }
  .product-shell .section-heading h2 { font-size: 21px; }
  .product-shell .trend-card-grid { grid-template-columns: 1fr; gap: 20px; }
  .product-shell .trend-card-media { aspect-ratio: 4 / 5; }
  .product-shell .trend-card-copy { padding: 18px; }
  .product-shell .current-industry { padding: 16px 18px; }
  .product-shell .current-industry strong { font-size: 18px; }
  .product-shell .membership-plan-grid { grid-template-columns: 1fr; }
  .product-shell .video-mode-grid { grid-template-columns: 1fr; }
  .product-shell .auth-overlay { padding: 20px 16px; }
  .product-shell .auth-dialog { padding: 30px 22px; max-height: calc(100dvh - 40px); overflow-y: auto; }
  .product-shell .auth-dialog h1 { font-size: 24px; }
  .product-shell .auth-description { font-size: 14px; }
  .product-shell .mobile-bottom-nav { background: #fff; border-color: var(--ui-line); box-shadow: none; }
  .product-shell .mobile-bottom-nav a { color: var(--ui-muted); font-size: 12px; }
  .product-shell .mobile-bottom-nav a.active { color: var(--ui-accent); background: var(--ui-accent-soft); }
  .product-shell .customer-service-panel { left: 16px; right: 16px; width: calc(100% - 32px); max-width: 340px; margin-inline: auto; bottom: 84px; top: auto; transform: none; max-height: calc(100dvh - 128px); overflow-y: auto; }
}
.product-shell .script-confirmations { width: 100%; min-width: 0; margin: 0 0 20px; padding: 20px; border: 1px solid var(--ui-line); border-radius: 12px; background: var(--ui-raised); }
.product-shell .script-confirmations legend { padding: 0 6px; font-weight: 700; }
.product-shell .script-confirmations > p { color: var(--ui-muted); font-size: 14px; }
.product-shell .script-confirmation-item { display: flex; align-items: flex-start; gap: 12px; margin-top: 16px; cursor: pointer; }
.product-shell .script-confirmation-item input[type="checkbox"] { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 4px; }
.product-shell .script-confirmation-item > span { min-width: 0; }
.product-shell .script-confirmation-item q { display: block; margin-bottom: 6px; font-weight: 600; overflow-wrap: anywhere; }
.product-shell .script-confirmation-item span > span { display: block; font-size: 14px; color: var(--ui-muted); }
.product-shell .site-compliance {
  padding: 20px 16px 28px;
  border-top: 1px solid var(--ui-line);
  text-align: center;
  color: var(--ui-muted);
  font-size: 12px;
  line-height: 1.8;
}
.product-shell .site-compliance a { color: inherit; text-underline-offset: 3px; }
.product-shell .site-compliance a:hover { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) {
  .product-shell *, .product-shell *::before, .product-shell *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
