/* B39 isolated mobile renderer; existing desktop admin uses separate scoped CSS. */
.mobile-workflow {
  --mobile-width: 800px;
  margin: 0;
  background: var(--ink, #101719);
  color: var(--ivory, #f6f2e9);
  font: 16px/1.6 "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
  overflow-wrap: anywhere;
}
.mobile-workflow *, .mobile-workflow *::before, .mobile-workflow *::after { box-sizing: border-box; }
.mobile-workflow [hidden] { display: none !important; }
.mobile-workflow :is(button, .btn, input:not([type="checkbox"]), select, textarea, summary) { min-height: 44px; font: inherit; }
.mobile-workflow :is(button, .btn, input, select, textarea) { max-width: 100%; border-radius: 8px; }
.mobile-workflow :is(button, .btn) { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 14px; text-align: center; text-decoration: none; touch-action: manipulation; }
.mobile-workflow :is(button, .btn):disabled { opacity: .6; cursor: wait; }
.mobile-workflow :focus-visible { outline: 2px solid var(--focus, #e9c38a); outline-offset: 3px; }
.mobile-workflow input:not([type="checkbox"]), .mobile-workflow select, .mobile-workflow textarea { width: 100%; min-width: 0; border: 1px solid var(--control-line, #677675); background: var(--field, #1c282a); color: inherit; padding: 10px 12px; }
.mobile-workflow input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--gold, #e1c499); flex-shrink: 0; }
.mobile-workflow textarea { min-height: 112px; resize: vertical; }
.mobile-workflow input[type="file"] { padding: 8px; }
.mobile-workflow input::file-selector-button { min-height: 36px; margin-right: 8px; padding: 6px 10px; border: 0; border-radius: 4px; background: var(--raised, #203033); color: inherit; }
.mobile-workflow .mobile-header { position: sticky; top: 0; z-index: 10; background: var(--ink, #101719); border-bottom: 1px solid var(--line, #344144); padding-top: env(safe-area-inset-top); }
.mobile-workflow .mobile-header-inner { width: min(var(--mobile-width), 100%); min-height: 64px; margin: auto; padding: 8px 16px; display: flex; align-items: center; gap: 12px; }
.mobile-workflow .mobile-brand { flex: 1; min-width: 0; margin: 0; font-size: 18px; font-weight: 700; }
.mobile-workflow .recharge-link { flex: none; min-height: 44px; padding: 10px 12px; border: 1px solid var(--accent-line, #ab936c); color: var(--gold, #e1c499); border-radius: 8px; text-decoration: none; }
.mobile-workflow .mobile-main { width: min(var(--mobile-width), 100%); margin: auto; padding: 20px 16px calc(32px + env(safe-area-inset-bottom)); }
.mobile-workflow .mobile-main > section + section { margin-top: 20px; }
.mobile-workflow .mobile-project-row + .mobile-project-row, .mobile-workflow .mobile-publishing + .mobile-publishing { border-top: 1px solid var(--line, #344144); padding-top: 16px; }
.mobile-workflow .mobile-check { display: flex; align-items: flex-start; gap: 10px; padding-block: 10px; }
.mobile-workflow .mobile-text-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--gold, #e1c499); }
.mobile-workflow .mobile-announcement { background: var(--pending-bg, #3b3528); color: var(--pending-text, #edcf9f); padding: 12px 16px; border-bottom: 1px solid var(--pending-line, #6a5940); overflow-wrap: anywhere; }
.mobile-workflow .mobile-announcement:empty { display: none; }
.mobile-workflow .mobile-announcement[role="alert"] { background: var(--error-bg, #41312c); color: var(--error-text, #f2c4ae); }
.mobile-workflow .mobile-skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.mobile-workflow .mobile-skip:focus { position: absolute; z-index: 30; padding: 12px; background: #192326; color: #f6f2e9; }
.mobile-workflow .mobile-nav { display: flex; gap: 8px; padding-block: 0 16px; overflow-x: auto; }
.mobile-workflow .mobile-nav a { min-height: 44px; padding: 10px 12px; flex: none; text-decoration: none; border-bottom: 2px solid transparent; color: var(--muted, #b3c0bd); }
.mobile-workflow .mobile-nav [aria-current] { border-bottom-color: var(--gold, #e1c499); color: var(--ivory, #f6f2e9); }
.mobile-workflow .mobile-section + .mobile-section { margin-top: 24px; }
.mobile-workflow h1 { font-size: 24px; line-height: 1.4; margin: 0 0 8px; }
.mobile-workflow h2 { font-size: 19px; line-height: 1.4; margin: 0 0 12px; }
.mobile-workflow h3 { font-size: 17px; line-height: 1.5; margin: 0 0 8px; }
.mobile-workflow p { margin: 8px 0; }
.mobile-workflow .mobile-muted { color: var(--muted, #b3c0bd); font-size: 14px; }
.mobile-workflow .mobile-card { background: var(--surface, #192326); border: 1px solid var(--line, #344144); border-radius: 12px; padding: 16px; min-width: 0; }
.mobile-workflow .mobile-list, .mobile-workflow .mobile-entry-grid { display: grid; gap: 12px; }
.mobile-workflow .mobile-catalog-results { margin-top: 16px; }
.mobile-workflow .mobile-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.mobile-workflow .mobile-actions > * { flex: 1 1 140px; }
.mobile-workflow .mobile-primary { background: var(--gold, #e1c499); color: #172224; border: 1px solid var(--gold, #e1c499); font-weight: 700; }
.mobile-workflow .mobile-secondary { background: var(--raised, #203033); color: inherit; border: 1px solid var(--control-line, #677675); }
.mobile-workflow .mobile-notice { padding: 14px; border: 1px solid var(--pending-line, #6a5940); background: var(--pending-bg, #3b3528); color: var(--pending-text, #edcf9f); border-radius: 8px; }
.mobile-workflow .mobile-notice[role="alert"] { color: var(--error-text, #f2c4ae); background: var(--error-bg, #41312c); border-color: var(--error-line, #715448); }
.mobile-workflow .mobile-status { display: inline-block; max-width: 100%; padding: 3px 8px; border: 1px solid var(--line, #344144); border-radius: 5px; font-size: 13px; color: var(--muted, #b3c0bd); }
.mobile-workflow .mobile-status[data-tone="pending"] { background: var(--pending-bg, #3b3528); color: var(--pending-text, #edcf9f); border-color: var(--pending-line, #6a5940); }
.mobile-workflow .mobile-status[data-tone="success"] { background: var(--success-bg, #223c37); color: var(--success-text, #bfe3d6); border-color: var(--success-line, #41655a); }
.mobile-workflow .mobile-status[data-tone="error"] { background: var(--error-bg, #41312c); color: var(--error-text, #f2c4ae); border-color: var(--error-line, #715448); }
.mobile-workflow .mobile-meta { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 8px 12px; margin: 12px 0 0; font-size: 14px; }
.mobile-workflow .mobile-meta dt { color: var(--muted, #b3c0bd); }
.mobile-workflow .mobile-meta dd { margin: 0; min-width: 0; }
.mobile-workflow .mobile-form { display: grid; gap: 16px; }
.mobile-workflow .mobile-field { display: grid; gap: 6px; min-width: 0; }
.mobile-workflow .mobile-field label { font-weight: 600; }
.mobile-workflow .mobile-field small { color: var(--muted, #b3c0bd); font-size: 13px; }
.mobile-workflow details { border-top: 1px solid var(--line, #344144); margin-top: 16px; }
.mobile-workflow summary { padding: 10px 0; }
.mobile-workflow .mobile-empty { padding: 32px 16px; text-align: center; color: var(--muted, #b3c0bd); }
.mobile-workflow .mobile-loading { display: flex; align-items: center; gap: 10px; padding: 16px; color: var(--muted, #b3c0bd); }
.mobile-workflow .mobile-loading::before { content: ""; width: 16px; height: 16px; flex: none; border: 2px solid var(--line, #344144); border-top-color: var(--gold, #e1c499); border-radius: 50%; animation: mobile-loading 1s linear infinite; }
@keyframes mobile-loading { to { transform: rotate(360deg); } }
@media (min-width: 600px) { .mobile-workflow .mobile-entry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mobile-workflow .mobile-main { padding: 28px 24px 40px; } }
@media (prefers-reduced-motion: reduce) { .mobile-workflow .mobile-loading::before { animation: none; } }
