:root {
  --ink: #18201d;
  --muted: #66716d;
  --line: #d9dfdc;
  --soft: #f3f6f4;
  --surface: #ffffff;
  --green: #146c56;
  --green-dark: #0d5342;
  --amber: #b7791f;
  --red: #b42318;
  --blue: #265d97;
  font-family: Inter, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: #f7f9f8;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: #f7f9f8; font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", "Segoe UI", sans-serif; }
button, input, select { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
.hidden { display: none !important; }
.topbar {
  height: 72px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(24px, 3.4vw, 64px); background: var(--surface); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 30;
}
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; font-size: 17px; font-weight: 700; }
.brand-mark {
  width: 32px; height: 32px; display: grid; place-items: center; border-radius: 6px;
  color: white; background: var(--green); font-size: 15px;
}
.brand-logo { width: 32px; height: 36px; display: block; flex: 0 0 auto; object-fit: contain; }
.brand-copy { display: flex; align-items: baseline; gap: 12px; min-width: 0; line-height: 1; white-space: nowrap; }
.brand-copy strong {
  color: #18231f; font-family: "Segoe UI", "Microsoft YaHei", sans-serif; font-size: 21px; font-weight: 700; letter-spacing: .04em;
}
.brand-tagline { color: #63746d; font-size: 12px; font-weight: 500; letter-spacing: .02em; }
.customer-topbar { padding: 0; }
.topbar-inner {
  width: min(1480px, calc(100% - 64px)); height: 100%; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.login-mode .topbar { display: none; }
.login-mode .login-shell, .login-mode .auth-shell { min-height: 100vh; }
.workspace-mode { background: #f5f7f8; }
.workspace-mode .topbar { box-shadow: 0 2px 10px rgba(24, 48, 39, .025); border-color: #e4e9e7; }
.admin-label { color: var(--muted); padding-left: 10px; border-left: 1px solid var(--line); font-weight: 500; }
.top-actions { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 14px; }
main { width: 100%; }
.login-shell {
  min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 32px 20px;
  background:
    radial-gradient(circle at 50% 14%, rgba(23, 107, 77, .075), transparent 31rem),
    linear-gradient(180deg, #f8faf9 0%, #f3f7f5 100%);
}
.login-panel { width: min(380px, 100%); padding: 34px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 18px 50px rgba(22, 47, 37, .08); }
.login-heading { margin-top: 0; margin-bottom: 18px; font-size: 17px; }
.product-login {
  width: min(420px, 100%); padding: 42px 38px 36px;
  border-color: rgba(19, 71, 52, .15); border-radius: 16px;
  box-shadow: 0 28px 80px rgba(19, 53, 41, .12);
}
.brand-wordmark {
  margin: 0; display: flex; align-items: center; justify-content: center;
  color: #14231d; font-family: "Microsoft YaHei", sans-serif;
  font-size: 32px; font-weight: 760; letter-spacing: .12em;
}
.brand-wordmark i {
  margin: 0 .08em; color: var(--green); font-family: Georgia, serif;
  font-size: .78em; font-style: normal; font-weight: 700; letter-spacing: 0;
}
.login-divider { height: 1px; margin: 30px 0 26px; background: linear-gradient(90deg, transparent, var(--line) 24%, var(--line) 76%, transparent); }
.product-login label { color: #52605a; font-size: 13px; }
.product-login input { height: 48px; border-radius: 9px; background: #fcfdfc; }
.product-login .button { min-height: 48px; border-radius: 9px; letter-spacing: .08em; }
.auth-shell {
  min-height: 100vh; display: grid; grid-template-columns: minmax(440px, 43vw) minmax(0, 1fr);
  align-items: stretch; background: #f7f9f9;
}
.auth-brand-panel {
  position: relative; min-width: 0; min-height: 100vh;
  padding: clamp(46px, 6vh, 72px) clamp(46px, 5vw, 78px); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: #141a1d; background: #e8edef;
  box-shadow: inset -1px 0 #d1d9dc;
}
.auth-brand-content { position: relative; z-index: 2; width: min(470px, 100%); text-align: center; }
.auth-brand-header { display: grid; justify-items: center; text-align: center; }
.auth-app-icon {
  width: clamp(96px, 8vw, 124px); height: auto; margin: 0 0 18px;
  filter: none;
}
.auth-kicker {
  width: 100%; margin: 0 0 21px; color: #52666a; font-size: 12px; font-weight: 750;
  text-align: center; letter-spacing: .22em;
}
.auth-wordmark {
  margin: 0; display: flex; align-items: center; justify-content: center;
  color: #141a1d; font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: clamp(44px, 3.7vw, 58px); font-weight: 650; letter-spacing: .075em;
  text-shadow: none;
}
.auth-wordmark i {
  margin: 0 .07em; color: #1e755d; font-family: Georgia, serif;
  font-size: .78em; font-style: normal; font-weight: 700; letter-spacing: 0;
}
.auth-positioning {
  margin: 16px 0 0; color: #146c56; font-size: 16px; font-weight: 600; letter-spacing: .035em;
}
.auth-intro {
  max-width: 440px; margin: clamp(36px, 4.7vh, 50px) auto 0;
  color: #273338; font-size: 18px; font-weight: 700; line-height: 1.72;
  letter-spacing: 0;
}
.auth-capabilities {
  margin: clamp(26px, 3.5vh, 36px) 0 0; padding: 0; list-style: none; display: grid; gap: 12px;
}
.auth-capabilities li {
  color: #59686d; font-size: 15px; font-weight: 600;
  line-height: 1.6; letter-spacing: 0; text-align: center;
}
.auth-stage {
  min-width: 0; min-height: 100vh; padding: 48px clamp(36px, 5vw, 76px);
  display: grid; place-items: center; background: #f7f9f9;
}
.auth-panel {
  width: min(480px, 100%); padding: 32px 34px 30px; background: #ffffff;
  border: 1px solid #d1dadc; border-radius: 8px;
  box-shadow: 0 22px 58px rgba(28, 47, 53, .09);
}
.auth-panel-head { margin-bottom: 28px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.auth-panel-head h2 { color: #15231e; font-size: 28px; font-weight: 720; line-height: 1.15; letter-spacing: -.02em; }
.auth-panel-head > p { margin: 0 0 2px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.text-button { padding: 0 1px 2px; border: 0; border-bottom: 1px solid transparent; background: none; color: var(--green); cursor: pointer; font: inherit; font-weight: 750; }
.text-button:hover { border-bottom-color: currentColor; }
.auth-panel > label { margin-top: 15px; color: #4c5a54; font-size: 12px; }
.auth-panel > label:first-of-type { margin-top: 0; }
.auth-panel input {
  height: 48px; border-color: #c4cec9; border-radius: 7px; background: #fff;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.auth-panel input:hover:not(:focus) { border-color: #aebbb5; }
.auth-submit { width: 100%; min-height: 48px; margin-top: 22px; border-radius: 7px; letter-spacing: .08em; }
.email-verification { margin: 13px 0 0; padding: 0; border: 0; }
.email-verification legend { margin-bottom: 7px; color: #4c5a54; font-size: 12px; font-weight: 600; }
.email-address-row { display: grid; grid-template-columns: minmax(0, 1fr) 116px; gap: 9px; }
.email-verification > input { margin-top: 8px; }
.code-button {
  min-height: 44px; border-color: rgba(23, 107, 77, .48); border-radius: 8px; padding: 0 12px;
  background: #f5faf7; color: var(--green-dark);
}
.code-button:hover:not(:disabled) { border-color: var(--green); background: #eaf5ef; }
.register-panel { padding: 30px 34px 29px; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 26px; font-size: 26px; line-height: 1.2; }
h2 { margin: 0; font-size: 20px; }
label { display: grid; gap: 8px; color: #3e4945; font-size: 14px; font-weight: 600; }
input, select {
  width: 100%; height: 44px; border: 1px solid #c7cfcb; border-radius: 6px;
  padding: 0 12px; background: white; color: var(--ink); outline: none;
}
input:focus, select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(23, 107, 77, .12); }
.login-panel label + label { margin-top: 16px; }
.login-panel .button { width: 100%; margin-top: 22px; }
.button {
  min-height: 42px; border: 1px solid transparent; border-radius: 6px; padding: 0 17px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; cursor: pointer; white-space: nowrap; font-weight: 650;
}
.button:disabled { cursor: not-allowed; opacity: .55; }
.primary { background: var(--green); color: white; }
.primary:hover:not(:disabled) { background: var(--green-dark); }
.secondary { background: white; color: var(--ink); border-color: #bcc6c1; }
.secondary:hover { background: var(--soft); }
.button.code-button { border-color: #8db9a5; background: #f4faf7; color: var(--green); }
.button.code-button:hover:not(:disabled) { border-color: var(--green); background: #e8f4ee; }
.subtle { min-height: 34px; background: transparent; color: var(--muted); padding: 0 8px; }
.workspace { width: min(1120px, calc(100% - 40px)); margin: 38px auto 80px; }
.workspace.wide { width: min(1320px, calc(100% - 40px)); }
.customer-workspace { width: min(1480px, calc(100% - 64px)); margin: 32px auto 64px; }
.customer-workspace .section-heading { min-height: 40px; margin-bottom: 16px; align-items: center; }
.customer-workspace .section-heading h1 { margin: 0; color: #17221e; font-size: 26px; line-height: 1.3; font-weight: 650; }
.customer-workspace .section-heading h2 { color: #17221e; font-size: 21px; font-weight: 650; }
.section-heading { min-height: 46px; display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.section-heading.compact { min-height: 32px; align-items: center; }
.eyebrow { margin-bottom: 5px; color: var(--green); font-size: 11px; line-height: 1; font-weight: 800; }
.upload-band { display: grid; grid-template-columns: minmax(220px, 1fr) auto auto; align-items: end; gap: 12px; padding: 22px; background: var(--surface); border-block: 1px solid var(--line); }
.field-grow { min-width: 0; }
.file-picker { position: relative; display: block; }
.file-picker input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.file-picker span { height: 42px; padding: 0 17px; display: inline-flex; align-items: center; border: 1px solid #bcc6c1; border-radius: 6px; background: white; cursor: pointer; }
.selected-files { padding: 12px 22px; border-bottom: 1px solid var(--line); background: white; color: var(--muted); font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
.folder-upload-band { overflow: hidden; background: white; border: 1px solid #dfe6e3; border-radius: 12px; box-shadow: 0 2px 6px rgba(24, 48, 39, .018); }
.folder-controls { min-height: 76px; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.media-selector { min-width: 0; margin: 0; padding: 0; border: 0; }
.media-selector legend { margin-bottom: 9px; color: #34423c; font-size: 14px; font-weight: 700; }
.segments { display: inline-grid; grid-template-columns: repeat(3, minmax(96px, 1fr)); padding: 3px; background: #edf1ef; border-radius: 6px; }
.workflow-segments { grid-template-columns: minmax(136px, 1fr); }
.delivery-segments { grid-template-columns: repeat(2, minmax(112px, 1fr)); }
.segments label { display: block; }
.segments input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.segments span { min-height: 40px; padding: 0 18px; display: grid; place-items: center; border-radius: 4px; color: var(--muted); cursor: pointer; font-size: 14px; }
.segments input:checked + span { background: white; color: var(--green-dark); box-shadow: 0 1px 4px rgba(20, 50, 38, .12); font-weight: 750; }
.segments input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 1px; }
.batch-toggle { grid-template-columns: 18px auto; align-items: center; gap: 9px; padding-bottom: 10px; cursor: pointer; }
.batch-toggle input { width: 18px; height: 18px; accent-color: var(--green); }
.narration-language-selector { min-width: 176px; color: #34423c; font-size: 14px; font-weight: 700; }
.narration-language-selector select { width: 100%; min-height: 46px; margin: 0; padding: 0 38px 0 13px; border: 1px solid #d5ddd9; border-radius: 6px; background: #fff; color: #17221d; font: inherit; font-weight: 650; }
.narration-language-selector select:focus { outline: 2px solid rgba(18, 121, 75, .2); border-color: var(--green); }
.folder-drop { min-height: 100px; margin: 0 24px 16px; padding: 18px 24px; border: 1px dashed #b9c9c1; border-radius: 8px; background: #f9fbfa; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--muted); transition: background .15s ease, border-color .15s ease; }
.folder-drop.dragging { border-color: var(--green); background: #eef7f2; }
.folder-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.folder-list { border-top: 1px solid var(--line); }
.folder-row { min-height: 70px; padding: 12px 18px 12px 22px; display: grid; grid-template-columns: minmax(0, 1fr) auto 40px; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); }
.folder-row.folder-invalid { background: #fffafa; }
.folder-main { min-width: 0; display: grid; gap: 5px; }
.folder-main strong { overflow-wrap: anywhere; }
.folder-main > span { color: var(--muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.folder-main .progress { max-width: 460px; margin-top: 2px; }
.customer-transfer-summary { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; color: var(--muted); font-size: 12px; }
.customer-task-pipelines { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin-top: 6px; }
.remove-folder { width: 36px; height: 36px; font-size: 20px; }
.upload-command { padding: 12px 24px; display: flex; justify-content: flex-end; border-top: 1px solid #edf0ee; background: white; }
.customer-workspace .upload-command .button { min-width: 168px; }
.message { min-height: 22px; margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.message.error { color: var(--red); }
.message.success { color: var(--green); }
.task-heading { margin-top: 30px; }
.customer-workspace #upload-status:empty { display: none; }
.task-heading-actions { display: flex; align-items: center; gap: 10px; }
.danger-outline { min-height: 40px; padding: 0 14px; border: 1px solid #e3b9b4; background: white; color: var(--red); }
.danger-outline:hover { background: #fff8f7; }
.icon-button { width: 40px; height: 40px; border: 1px solid var(--line); background: white; border-radius: 6px; color: var(--ink); cursor: pointer; font-size: 20px; }
.task-list { overflow: hidden; display: grid; gap: 1px; background: #e8eeeb; border: 1px solid #dfe6e3; border-radius: 12px; }
.task-row {
  background: white; padding: 14px 22px; display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px; align-items: center;
}
.task-row.task-complete { grid-template-columns: minmax(0, 1fr) auto; }
.task-overview { min-width: 0; display: grid; gap: 6px; }
.task-row:hover { background: #fcfdfd; }
.task-context { color: var(--muted); font-size: 12px; line-height: 1.4; }
.task-side { min-width: max-content; display: grid; justify-items: end; gap: 6px; }
.task-side-top { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.task-time { color: #73817a; font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.task-action { min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.task-cancel { width: 30px; height: 30px; display: inline-grid; place-items: center; color: #718079; font-size: 0; border-color: #dfe6e3; }
.task-cancel::before { content: ""; width: 8px; height: 8px; border: 1.5px solid currentColor; border-radius: 1px; }
.task-cancel:hover { color: var(--red); border-color: #e3b9b4; }
.task-state-line { min-height: 34px; min-width: 116px; padding: 0 12px; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--green-dark); background: #edf6f2; border-radius: 7px; font-size: 13px; }
.task-state-line.is-uploading { background: #edf3f8; color: #355e7f; }
.task-state-line.is-uploading .task-breathe-dot { background: #4c82a6; }
.task-state-line.is-error { color: var(--red); background: #fff2ef; }
.task-breathe-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--green); animation: task-breathe-dot 1.7s ease-in-out infinite; }
@keyframes task-breathe-dot { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.task-complete-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.result-download-button { min-height: 34px; min-width: 116px; padding: 0 14px; border-radius: 7px; font-size: 13px; }
.task-record-delete { min-height: 30px; padding: 0 2px; border: 0; background: transparent; color: #8a9691; cursor: pointer; font-size: 12px; }
.task-record-delete:hover { color: var(--red); }
.result-actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.task-title { color: #1b2823; font-size: 15px; line-height: 1.5; font-weight: 600; overflow-wrap: anywhere; }
.task-meta { margin-top: 7px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.status-line { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.status-text { font-weight: 650; }
.progress { height: 8px; margin-top: 10px; background: #e8ecea; overflow: hidden; border-radius: 3px; }
.progress > span { display: block; height: 100%; background: var(--green); transition: width .2s ease; }
.file-lines { margin-top: 10px; color: var(--muted); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.empty { padding: 34px 20px; background: white; color: var(--muted); text-align: center; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.metric { min-height: 112px; padding: 22px; background: white; }
.metric-label { color: var(--muted); font-size: 13px; }
.metric-value { margin-top: 12px; font-size: 26px; font-weight: 750; }
.metric-detail { margin-top: 4px; color: var(--muted); font-size: 12px; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: 30px; margin-top: 42px; }
.plain-section { min-width: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr 1fr auto; align-items: end; gap: 10px; padding: 16px; background: white; border-block: 1px solid var(--line); }
.invitation-form { grid-template-columns: minmax(180px, 1fr) 130px auto; }
.registration-code-output {
  margin: 12px 0 0; padding: 16px; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; background: #eaf5ef; border: 1px solid #b8dbc9; border-radius: 8px;
}
.registration-code-output code { color: var(--green-dark); font: 700 17px/1.2 Consolas, monospace; letter-spacing: .05em; }
.registration-code-output p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.customer-heading { margin-top: 34px; }
.one-column { grid-template-columns: 1fr; align-items: stretch; }
.table-wrap { width: 100%; overflow-x: auto; background: white; border-block: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { padding: 13px 14px; border-bottom: 1px solid #e4e8e6; text-align: left; font-size: 13px; vertical-align: middle; }
th { color: var(--muted); font-weight: 650; background: #fafbfa; }
tr:last-child td { border-bottom: 0; }
.small-button { border: 0; background: transparent; color: var(--blue); cursor: pointer; padding: 4px 0; }
.receiver-section { padding-left: 2px; }
.transfer-settings-heading { margin-top: 26px; }
.transfer-settings-form { margin-top: 8px; padding-inline: 0; border-bottom: 0; }
.transfer-settings-form label { min-width: 0; }
.receiver-status { min-height: 90px; padding: 20px; background: white; border-block: 1px solid var(--line); }
.receiver-state { font-size: 18px; font-weight: 750; }
.receiver-detail { margin-top: 7px; color: var(--muted); font-size: 13px; }
.button-row { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.password-heading { margin-top: 34px; }
.badge { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border-radius: 4px; background: var(--soft); color: #42504a; font-size: 12px; font-weight: 700; }
.badge.good { background: #e5f3ec; color: var(--green-dark); }
.badge.warn { background: #fff2d8; color: #8a5b14; }
.badge.bad { background: #fde9e7; color: var(--red); }
.admin-task-board { min-width: 0; }
.admin-task-list { display: grid; gap: 16px; }
.admin-task-card {
  min-width: 0; overflow: hidden; padding: 22px;
  background: white; border: 1px solid var(--line); border-radius: 9px;
  box-shadow: 0 5px 18px rgba(24, 48, 39, .035);
}
.admin-task-card-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 22px;
}
.admin-task-title { color: #1b2823; font-size: 17px; font-weight: 760; overflow-wrap: anywhere; }
.admin-task-meta { margin-top: 6px; color: var(--muted); font-size: 13px; }
.admin-task-state { display: grid; justify-items: end; gap: 7px; flex: 0 0 auto; }
.admin-task-state time { color: var(--muted); font-size: 12px; }
.admin-task-message {
  margin-top: 13px; padding: 9px 11px; color: #53615b; font-size: 13px;
  background: #f7f9f8; border-left: 3px solid #b6c6bf; border-radius: 3px;
}
.transfer-pipelines { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.transfer-lane { min-width: 0; padding: 14px; border: 1px solid #e0e7e3; border-radius: 7px; background: #fbfcfb; }
.transfer-lane-heading { display: flex; justify-content: space-between; gap: 12px; color: #34423c; font-size: 13px; }
.transfer-lane-heading strong { min-width: 0; overflow-wrap: anywhere; }
.transfer-lane-heading span { color: #263a32; font-weight: 750; }
.transfer-progress { height: 9px; margin-top: 9px; }
.transfer-upload .progress > span, .progress.transfer-upload > span { background: #397eab; }
.transfer-receive .progress > span, .progress.transfer-receive > span { background: var(--green); }
.transfer-stats {
  margin-top: 8px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 14px;
  color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums;
}
.admin-file-list { margin-top: 16px; border-top: 1px solid #e4e9e6; }
.admin-file-row { padding: 13px 0; border-bottom: 1px solid #edf0ee; }
.admin-file-row:last-child { padding-bottom: 0; border-bottom: 0; }
.admin-file-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; }
.admin-file-heading strong {
  min-width: 0; max-width: 64%; overflow: hidden; color: #34423c; font-size: 13px;
  text-overflow: ellipsis; white-space: nowrap;
}
.admin-file-heading > span { color: var(--muted); font-size: 11px; text-align: right; }
.admin-file-progress { margin-top: 9px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.admin-file-lane-label {
  display: flex; justify-content: space-between; gap: 10px; color: var(--muted);
  font-size: 11px; font-variant-numeric: tabular-nums;
}
.file-progress { height: 5px; margin-top: 5px; }
@media (min-width: 1800px) {
  .auth-shell { grid-template-columns: 42% minmax(0, 58%); }
  .auth-brand-panel { padding: 64px 96px; }
  .auth-brand-content { width: min(590px, 100%); }
  .auth-app-icon { width: 132px; }
  .auth-kicker { font-size: 13px; }
  .auth-wordmark { font-size: 64px; }
  .auth-positioning { font-size: 17px; }
  .auth-intro { max-width: 540px; font-size: 21px; }
  .auth-capabilities { gap: 14px; }
  .auth-capabilities li { font-size: 17px; line-height: 1.65; }
  .auth-stage { padding: 56px 96px; }
  .auth-panel { width: min(560px, 100%); padding: 38px 40px 36px; }
  .register-panel { padding: 34px 40px 33px; }
  .auth-panel-head h2 { font-size: 31px; }
  .auth-panel input { height: 52px; }
  .auth-submit { min-height: 52px; }
  .customer-workspace { width: min(1680px, calc(100% - 128px)); margin-top: 36px; }
  .customer-topbar { height: 72px; }
  .customer-topbar .topbar-inner { width: min(1680px, calc(100% - 128px)); }
  .customer-topbar .brand-logo { width: 34px; height: 38px; }
  .customer-topbar .brand-copy strong { font-size: 22px; }
  .customer-workspace .folder-controls { padding-inline: 32px; }
  .customer-workspace .folder-drop { margin-inline: 32px; }
  .customer-workspace .upload-command { padding-inline: 32px; }
  .customer-workspace .task-row { grid-template-columns: minmax(0, 1fr) auto; padding: 16px 22px 16px 28px; gap: 38px; }
  .customer-workspace .task-row.task-complete { grid-template-columns: minmax(0, 1fr) auto; }
}
@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 330px minmax(0, 1fr); }
  .auth-brand-panel { padding: 40px 28px; }
  .auth-app-icon { width: 82px; margin-bottom: 12px; }
  .auth-kicker { margin-bottom: 16px; }
  .auth-wordmark { font-size: 38px; }
  .auth-positioning { font-size: 13px; }
  .auth-intro { margin-top: 28px; font-size: 15px; }
  .auth-capabilities { margin-top: 20px; gap: 8px; }
  .auth-capabilities li { font-size: 13px; line-height: 1.5; }
  .auth-stage { padding: 38px 30px; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .task-row { grid-template-columns: 1fr; gap: 12px; }
  .task-row.task-complete { grid-template-columns: 1fr; }
  .task-side { min-width: 0; width: 100%; justify-items: stretch; }
  .task-side-top { width: 100%; justify-content: space-between; }
  .task-action, .task-complete-actions { justify-content: flex-start; }
  .transfer-pipelines { grid-template-columns: 1fr; }
  .customer-task-pipelines { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .task-breathe-dot { animation: none; opacity: .75; }
}
@media (max-width: 700px) {
  .auth-shell { min-height: 100vh; display: block; }
  .auth-brand-panel {
    width: auto; min-height: 160px; height: 160px; padding: 17px 22px;
    display: flex; justify-content: center; background: #e8edef;
    box-shadow: none;
  }
  .auth-brand-panel::before, .auth-brand-panel::after { display: none; }
  .auth-brand-content { width: 100%; }
  .auth-brand-header { justify-items: center; text-align: center; }
  .auth-app-icon { width: 40px; margin-bottom: 4px; filter: none; }
  .auth-kicker { margin-bottom: 6px; font-size: 8px; }
  .auth-kicker { text-align: center; }
  .auth-wordmark { justify-content: center; font-size: 25px; letter-spacing: .1em; }
  .auth-positioning { margin-top: 5px; font-size: 10px; letter-spacing: .04em; }
  .auth-intro, .auth-capabilities { display: none; }
  .auth-stage { min-height: calc(100vh - 160px); padding: 24px 16px 40px; place-items: start center; }
  .auth-panel { padding: 26px 22px 24px; border-radius: 10px; }
  .auth-panel-head { margin-bottom: 28px; }
  .auth-panel-head h2 { font-size: 26px; }
  .auth-panel-head > p { font-size: 12px; }
  .email-address-row { grid-template-columns: minmax(0, 1fr) 112px; gap: 8px; }
  .code-button { padding: 0 10px; font-size: 13px; }
  .topbar { padding: 0 16px; }
  .customer-topbar { padding: 0; }
  .customer-topbar .topbar-inner { width: calc(100% - 32px); }
  .customer-topbar .brand-logo { width: 34px; height: 34px; }
  .customer-topbar .brand-copy strong { font-size: 17px; }
  .customer-topbar .brand-tagline { display: none; }
  .workspace, .workspace.wide { width: calc(100% - 24px); margin-top: 24px; }
  .upload-band { grid-template-columns: 1fr; align-items: stretch; padding: 16px; }
  .file-picker span, .upload-band .button { width: 100%; justify-content: center; }
  .folder-controls { min-height: 0; padding: 16px; display: grid; align-items: stretch; }
  .segments { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .workflow-segments { grid-template-columns: 1fr; }
  .delivery-segments { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .segments span { padding: 0 8px; }
  .batch-toggle { padding: 0; }
  .narration-language-selector { width: 100%; }
  .folder-drop { min-height: 122px; margin: 0 16px 16px; padding: 18px; flex-direction: column; }
  .folder-drop .button { width: 100%; }
  .folder-row { grid-template-columns: minmax(0, 1fr) auto 36px; padding-left: 16px; gap: 8px; }
  .upload-command { padding: 14px 16px; }
  .upload-command .button { width: 100%; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric { min-height: 96px; padding: 16px; }
  .metric-value { font-size: 21px; }
  .form-grid { grid-template-columns: 1fr; }
  .invitation-form { grid-template-columns: 1fr; }
  .registration-code-output { align-items: stretch; flex-direction: column; }
  .login-panel { padding: 26px 22px; }
  .product-login { padding: 36px 24px 30px; border-radius: 14px; }
  .brand-wordmark { font-size: 29px; letter-spacing: .1em; }
  .top-actions #identity { display: none; }
  .admin-task-card { padding: 16px; }
  .admin-task-card-head, .admin-file-heading { display: grid; gap: 8px; }
  .admin-task-state { justify-items: start; }
  .admin-file-heading strong { max-width: 100%; }
  .admin-file-heading > span { text-align: left; }
  .admin-file-progress { grid-template-columns: 1fr; gap: 9px; }
}

/* Customer journey: premium but deliberately calmer than operator surfaces. */
.luoyin-r9.login-mode main { background: radial-gradient(circle at 80% 8%, #d7eadf, transparent 36%), #edf3f0; }
.luoyin-r9 .auth-shell { border-color: #cadbd0; border-radius: 28px; box-shadow: 0 35px 85px rgba(16, 57, 40, .13); }
.luoyin-r9 .auth-brand-panel {
  background: radial-gradient(circle at 20% 0%, #245c4c 0, transparent 43%), linear-gradient(145deg, #0e3029, #0b221d 78%);
}
.luoyin-r9 .auth-brand-panel::after { border-color: rgba(151, 239, 183, .07); }
.luoyin-r9 .auth-overline { margin: 0 0 15px; color: #86e9b4; font-size: 11px; font-weight: 700; letter-spacing: .22em; }
.luoyin-r9 .auth-headline { font-size: clamp(38px, 3.3vw, 56px); font-weight: 700; letter-spacing: -.04em; line-height: 1.42; }
.luoyin-r9 .auth-headline span { color: #a0f3bd; }
.luoyin-r9 .auth-description { color: #d6e7da; }
.luoyin-r9 .auth-footnote { padding-top: 20px; border-top: 1px solid #3a6752; color: #b7d1bf; }
.luoyin-r9 .auth-stage { background: #fcfffc; }
.luoyin-r9 .auth-form-kicker { margin: 0 0 8px; color: #176d50; font-size: 12px; font-weight: 750; letter-spacing: .08em; }
.luoyin-r9 .auth-panel-head h2 { font-size: 34px; letter-spacing: -.035em; }
.luoyin-r9 .auth-panel input { border-radius: 11px; background: #f7faf7; }
.luoyin-r9 .auth-panel input:focus { border-color: #218663; box-shadow: 0 0 0 4px rgba(53,166,107,.14); }
.luoyin-r9 .auth-submit { min-height: 54px; border-radius: 11px; background: #146d50; box-shadow: 0 12px 26px rgba(15,103,72,.18); }
.luoyin-r9.workspace-mode { background: #eff4f0; }
.luoyin-r9.workspace-mode .customer-topbar { background: #0e2b24; border-color: #274f3b; box-shadow: 0 10px 28px rgba(10,51,30,.14); }
.luoyin-r9.workspace-mode .brand-copy strong { color: #f5fff5; }
.luoyin-r9.workspace-mode .brand-tagline, .luoyin-r9.workspace-mode .top-actions { color: #c4e4ce; }
.luoyin-r9.workspace-mode .top-actions button { color: #d7f3de; }
.luoyin-r9 .customer-workspace { margin-top: 42px; }
.luoyin-r9 .workspace-eyebrow { margin: 0 0 8px; color: #1a7854; font-size: 11px; font-weight: 800; letter-spacing: .2em; }
.luoyin-r9 .workspace-intro { margin: 8px 0 0; color: #566b5f; font-size: 14px; }
.luoyin-r9 .customer-workspace .section-heading h1 { color: #102b1e; font-size: clamp(29px, 3vw, 39px); font-weight: 760; letter-spacing: -.045em; }
.luoyin-r9 .customer-stage-flow { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin: 22px 0 20px; padding: 0; list-style: none; }
.luoyin-r9 .customer-stage-flow li { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 13px 16px; border: 1px solid #d5e5d9; border-radius: 13px; color: #345c44; background: #fbfefa; font-size: 13px; font-weight: 700; }
.luoyin-r9 .customer-stage-flow b { color: #168758; font: 800 13px/1 "Segoe UI",sans-serif; }
.luoyin-r9 .folder-upload-band, .luoyin-r9 .task-list { border-color: #d1e0d6; border-radius: 18px; box-shadow: 0 12px 35px rgba(29,77,47,.06); }
.luoyin-r9 .folder-controls { min-height: 94px; border-bottom: 1px solid #e4ece6; }
.luoyin-r9 .folder-drop { min-height: 142px; border-color: #a9cdb4; border-radius: 14px; background: #f8fcf8; }
.luoyin-r9 .folder-drop.dragging { background: #e7f7ed; }
.luoyin-r9 .folder-drop #choose-folder { border-radius: 10px; }
.luoyin-r9 .upload-explainer { margin: -4px 26px 18px; color: #526a58; font-size: 12px; line-height: 1.6; }
.luoyin-r9 .upload-command { background: #f8fbf8; border-top: 1px solid #e2ece4; }
.luoyin-r9 #upload-button:not(:disabled) { border-radius: 10px; background: #126e4d; box-shadow: 0 7px 20px rgba(22,102,62,.13); }
.luoyin-r9 .task-heading { margin-top: 45px; }
.luoyin-r9 .task-row { background: #fff; }
.luoyin-r9 .task-row:hover { background: #f9fdf9; }
.luoyin-r9 .task-title { color: #143224; font-weight: 650; }
.luoyin-r9 :focus-visible { outline: 3px solid #279b66; outline-offset: 3px; }
@media (max-width: 780px) {
  .luoyin-r9 .customer-stage-flow { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .luoyin-r9 .customer-stage-flow li { padding: 11px; font-size: 12px; }
  .luoyin-r9 .upload-explainer { margin-inline: 18px; }
}
@media (max-width: 700px) {
  .luoyin-r9 .auth-brand-panel { background: linear-gradient(135deg,#0e392d,#0b241d); }
  .luoyin-r9 .auth-overline { display: none; }
  .luoyin-r9 .customer-workspace { width: calc(100% - 24px); margin-top: 24px; }
  .luoyin-r9 .customer-stage-flow { gap: 7px; }
}

/* Customer-only R9 composition. The existing admin stylesheet stays unchanged. */
.luoyin-r9 { font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif; font-size: 16px; }
.luoyin-r9.login-mode main { min-height: 100vh; display: grid; place-items: center; padding: 36px; background: #f3f6f5; }
.luoyin-r9 .auth-shell { width: min(1220px, 100%); min-height: 680px; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #dce5df; border-radius: 22px; overflow: hidden; background: white; box-shadow: 0 20px 70px rgba(19, 50, 40, .055); }
.luoyin-r9 .auth-brand-panel { min-height: 680px; padding: 46px 48px; background: #124b3e; color: #fff; align-items: stretch; box-shadow: none; }
.luoyin-r9 .auth-brand-panel::after { content: ""; display: block; position: absolute; width: 380px; height: 380px; right: -230px; bottom: -160px; border: 64px solid rgba(154, 204, 176, .045); border-radius: 72px; transform: rotate(-20deg); pointer-events: none; }
.luoyin-r9 .auth-brand-content { width: 100%; display: flex; flex-direction: column; text-align: left; }
.luoyin-r9 .auth-brand-header { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; text-align: left; }
.luoyin-r9 .auth-app-icon { width: 34px; height: 38px; margin: 0; filter: brightness(0) invert(1); }
.luoyin-r9 .auth-brand-name { font-size: 26px; font-weight: 600; letter-spacing: .04em; }
.luoyin-r9 .auth-brand-descriptor { font-size: 13px; color: #b4d2c6; font-weight: 400; margin-left: 2px; }
.luoyin-r9 .auth-story { margin: auto 0; padding: 64px 0; }
.luoyin-r9 .auth-headline { color: #fff; font-size: clamp(34px, 3.05vw, 46px); font-weight: 600; line-height: 1.6; letter-spacing: .015em; margin: 0 0 26px; }
.luoyin-r9 .auth-headline span { color: #c5e5d6; white-space: nowrap; }
.luoyin-r9 .auth-description { margin: 0; color: #c4d9cf; font-size: 16px; font-weight: 400; line-height: 2; }
.luoyin-r9 .auth-footnote { display: grid; gap: 8px; color: #b3cfc1; font-size: 13px; line-height: 1.7; }
.luoyin-r9 .auth-stage { min-height: 680px; padding: 46px; background: #fff; }
.luoyin-r9 .auth-panel { width: min(414px, 100%); padding: 0; border: 0; background: transparent; box-shadow: none; border-radius: 0; }
.luoyin-r9 .auth-panel-head { margin-bottom: 36px; gap: 16px; }
.luoyin-r9 .auth-panel-head h2 { font-size: 29px; font-weight: 600; }
.luoyin-r9 .auth-panel-head > p { font-size: 14px; }
.luoyin-r9 .auth-panel > label { font-size: 14px; color: #4c5e54; margin-top: 22px; font-weight: 500; }
.luoyin-r9 .auth-panel input { height: 50px; border-radius: 8px; font-size: 16px; background: #fbfcfb; border-color: #d5dfd8; }
.luoyin-r9 .auth-submit { min-height: 50px; margin-top: 28px; font-size: 16px; letter-spacing: .04em; border-radius: 8px; }
.luoyin-r9 .auth-panel .message:empty { display: none; }
.luoyin-r9 .register-panel .auth-panel-head { margin-bottom: 24px; }
.luoyin-r9 .register-panel > label { margin-top: 14px; }
.luoyin-r9 .email-verification legend { font-size: 14px; font-weight: 500; }
.luoyin-r9 .code-button { font-size: 14px; font-weight: 500; }
.luoyin-r9 .customer-topbar { height: 76px; }
.luoyin-r9 .topbar-inner, .luoyin-r9 .customer-workspace { width: min(1440px, calc(100% - 80px)); }
.luoyin-r9 .customer-workspace { margin-top: 34px; }
.luoyin-r9 .brand-logo { width: 32px; height: 36px; }
.luoyin-r9 .brand-copy strong { font-size: 22px; font-weight: 600; }
.luoyin-r9 .brand-tagline { font-size: 14px; font-weight: 400; }
.luoyin-r9 .customer-workspace .section-heading h1 { font-size: 28px; font-weight: 600; }
.luoyin-r9 .customer-workspace .section-heading h2 { font-size: 23px; font-weight: 600; }
.luoyin-r9 .folder-controls { justify-content: flex-start; padding: 20px 26px; gap: 24px; }
.luoyin-r9 .delivery-selector { margin-left: 12px; }
.luoyin-r9 .narration-language-selector { margin-left: auto; width: 188px; }
.luoyin-r9 .segments span { min-height: 40px; font-size: 15px; font-weight: 500; }
.luoyin-r9 .segments input:checked + span { font-weight: 600; }
.luoyin-r9 .narration-language-selector select { font-size: 15px; font-weight: 500; }
.luoyin-r9 .folder-drop { min-height: 116px; margin: 0 26px 20px; padding: 22px; font-size: 15px; }
.luoyin-r9 #choose-folder { min-height: 44px; padding: 0 22px; font-size: 16px; font-weight: 500; }
.luoyin-r9 .upload-command { padding: 14px 26px; }
.luoyin-r9 #upload-button { min-height: 44px; font-size: 15px; font-weight: 500; }
.luoyin-r9 #upload-button:disabled { opacity: 1; color: #718078; background: #e9eeeb; border-color: #e9eeeb; }
.luoyin-r9 .task-heading { margin-top: 32px; }
.luoyin-r9 .task-row { padding: 17px 24px; gap: 24px; }
.luoyin-r9 .task-context { font-size: 13px; }
.luoyin-r9 .task-title { font-size: 17px; font-weight: 500; line-height: 1.55; }
.luoyin-r9 .task-state-line, .luoyin-r9 .result-download-button { min-height: 36px; min-width: 126px; font-size: 14px; }
.luoyin-r9 .status-text, .luoyin-r9 .result-download-button { font-weight: 500; }
.luoyin-r9 .task-time, .luoyin-r9 .task-record-delete { font-size: 12px; }
.luoyin-r9 .task-side { gap: 7px; }
.luoyin-r9 .danger-outline { color: #a9443c; border-color: #e6d4d0; font-size: 14px; font-weight: 500; }
@media (min-width: 1800px) {
  .luoyin-r9 .auth-shell { width: 1300px; min-height: 700px; }
  .luoyin-r9 .auth-brand-panel { padding: 52px 60px; min-height: 700px; }
  .luoyin-r9 .auth-stage { padding: 52px 60px; min-height: 700px; }
  .luoyin-r9 .auth-headline { font-size: 48px; }
  .luoyin-r9 .auth-description { font-size: 17px; }
  .luoyin-r9 .auth-panel { width: 420px; }
}
@media (max-width: 1050px) {
  .luoyin-r9 .auth-brand-panel { padding: 36px 30px; }
  .luoyin-r9 .auth-stage { padding: 36px 30px; }
  .luoyin-r9 .auth-headline { font-size: 34px; }
  .luoyin-r9 .auth-description { font-size: 14px; }
  .luoyin-r9 .folder-controls { gap: 16px; }
  .luoyin-r9 .delivery-selector { margin-left: 0; }
  .luoyin-r9 .topbar-inner, .luoyin-r9 .customer-workspace { width: calc(100% - 48px); }
}
@media (max-width: 760px) {
  .luoyin-r9.login-mode main { display: block; padding: 20px 16px; }
  .luoyin-r9 .auth-shell { min-height: 0; display: block; border-radius: 16px; }
  .luoyin-r9 .auth-brand-panel { min-height: 0; height: auto; padding: 24px; }
  .luoyin-r9 .auth-app-icon { width: 26px; height: 30px; }
  .luoyin-r9 .auth-brand-name { font-size: 23px; }
  .luoyin-r9 .auth-brand-descriptor { font-size: 12px; }
  .luoyin-r9 .auth-story { padding: 28px 0 0; }
  .luoyin-r9 .auth-headline { font-size: 28px; line-height: 1.5; margin-bottom: 12px; }
  .luoyin-r9 .auth-description { font-size: 13px; line-height: 1.8; }
  .luoyin-r9 .auth-footnote { display: none; }
  .luoyin-r9 .auth-stage { min-height: 0; padding: 32px 24px; }
  .luoyin-r9 .auth-panel { padding: 0; width: 100%; }
  .luoyin-r9 .auth-panel-head { margin-bottom: 26px; }
  .luoyin-r9 .auth-panel-head h2 { font-size: 26px; }
  .luoyin-r9 .auth-panel-head > p { font-size: 12px; }
  .luoyin-r9 .topbar-inner, .luoyin-r9 .customer-workspace { width: calc(100% - 32px); }
  .luoyin-r9 .customer-workspace .section-heading h1 { font-size: 24px; }
  .luoyin-r9 .folder-controls { display: grid; grid-template-columns: minmax(0, 1fr); padding: 18px; gap: 16px; }
  .luoyin-r9 .delivery-selector { margin: 0; }
  .luoyin-r9 .narration-language-selector { margin: 0; width: 100%; }
  .luoyin-r9 .folder-drop { margin: 0 18px 18px; padding: 18px; flex-direction: column; gap: 12px; text-align: center; }
  .luoyin-r9 #choose-folder { width: 100%; }
  .luoyin-r9 .upload-command { padding: 14px 18px; }
  .luoyin-r9 .task-row { padding: 16px 18px; gap: 12px; }
  .luoyin-r9 .task-title { font-size: 16px; }
}

/* Customer market shell: presentation layer only; admin and task APIs are untouched. */
body.market-shell {
  --ink:#f1f6ff; --muted:#a8bdd9; --line:#284060; --surface:#11213c;
  --green:#56c9fc; --green-dark:#a7eaff; --blue:#66bcff;
  min-height:100vh; background:#071124; color:#f1f6ff;
}
.market-shell.login-mode main { min-height:0; display:block; padding:0; background:transparent; }
.market-shell .cosmic-sky { position:fixed; inset:0; z-index:0; pointer-events:none; overflow:hidden; background:radial-gradient(ellipse 60% 45% at 75% 22%,rgba(50,75,159,.19),transparent),radial-gradient(ellipse 30% 35% at 80% 50%,rgba(125,64,180,.1),transparent),linear-gradient(145deg,#050b19,#09172e 70%,#071124); }
.market-shell .cosmic-sky::before,.market-shell .cosmic-sky::after { content:""; position:absolute; inset:0; background-image:radial-gradient(1px 1px at 8% 18%,#d9eaff 99%,transparent),radial-gradient(1px 1px at 21% 61%,#9bbcfa 99%,transparent),radial-gradient(1.5px 1.5px at 32% 15%,#e4d9ff 99%,transparent),radial-gradient(1px 1px at 47% 78%,#eaf4ff 99%,transparent),radial-gradient(1px 1px at 58% 38%,#c7ddff 99%,transparent),radial-gradient(1.5px 1.5px at 72% 12%,#dcbfff 99%,transparent),radial-gradient(1px 1px at 86% 66%,#fff 99%,transparent),radial-gradient(1px 1px at 94% 24%,#9bbdff 99%,transparent); background-size:330px 280px; opacity:.52; animation:market-twinkle 8s ease-in-out infinite alternate; }
.market-shell .cosmic-sky::after { background-size:480px 390px; transform:translate(31px,22px); opacity:.27; animation-delay:-3s; }
.market-shell .cosmic-sky i { position:absolute; width:180px; height:2px; right:-190px; top:20%; background:linear-gradient(90deg,transparent,rgba(115,90,254,.3),#b58bff,#fff); transform:rotate(-25deg); filter:drop-shadow(0 0 7px #a882ff); animation:market-meteor 13s linear infinite; opacity:0; }
.market-shell .cosmic-sky i:nth-child(2) { top:43%; animation-delay:4s; animation-duration:15s; background:linear-gradient(90deg,transparent,rgba(77,193,252,.3),#57d4ff,#fff); }
.market-shell .cosmic-sky i:nth-child(3) { top:67%; animation-delay:9s; animation-duration:17s; }
@keyframes market-twinkle { from { opacity:.3 } to { opacity:.65 } }
@keyframes market-meteor { 0%,67% { opacity:0; translate:0 0 } 70% { opacity:.9 } 82%,100% { opacity:0; translate:-610px 285px } }
.market-shell main,.market-shell .topbar { position:relative; z-index:1; }
.market-shell.login-mode .topbar { display:flex; }
.market-shell .customer-topbar,.market-shell.workspace-mode .customer-topbar { height:72px; background:rgba(5,13,29,.79); border-color:rgba(151,188,246,.16); box-shadow:none; backdrop-filter:blur(14px); }
.market-shell .topbar-inner { width:min(1440px,calc(100% - 64px)); }
.market-shell .brand { color:#f4f7ff; text-decoration:none; }
.market-shell .brand-logo { width:37px; height:37px; }
.market-shell .brand-copy strong,.market-shell.workspace-mode .brand-copy strong { color:#f4f7ff; font-size:19px; }
.market-shell .brand-tagline,.market-shell.workspace-mode .brand-tagline { color:#8eb2df; font-size:11px; letter-spacing:.12em; }
.market-shell .top-actions,.market-shell.workspace-mode .top-actions { color:#b7cbe8; }
.market-shell .top-actions button,.market-shell.workspace-mode .top-actions button { color:#edf6ff; border-color:#355174; background:#132642; }
.market-public { width:100%; }
.market-hero { min-height:575px; max-width:1540px; margin:auto; padding:76px 6% 82px; display:flex; align-items:center; position:relative; overflow:hidden; isolation:isolate; }
.market-hero::before { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg,rgba(4,11,26,.84),rgba(4,11,26,.4) 55%,transparent); }
.market-hero-copy { max-width:680px; z-index:2; }
.market-kicker { color:#8bf1d7; font-size:11px; font-weight:750; letter-spacing:.17em; margin:0 0 18px; }
.market-hero h1 { color:#f6f8ff; font-size:clamp(38px,4.8vw,65px); line-height:1.16; font-weight:760; letter-spacing:-.04em; text-shadow:0 8px 40px rgba(0,0,0,.28); margin:0 0 23px; }
.market-hero h1 em { font-style:normal; color:#71bfff; background:linear-gradient(90deg,#50caff,#8377f7,#b180ff); background-clip:text; -webkit-background-clip:text; -webkit-text-fill-color:transparent; }
.market-subtitle { max-width:590px; color:#c3d3eb; font-size:16px; line-height:1.8; margin:0 0 25px; }
.market-shell .market-hero-action,.market-shell .button.primary:not(:disabled) { color:#07152a; border:0; background:linear-gradient(104deg,#42caff,#8b70ff); box-shadow:0 12px 30px rgba(57,123,239,.2); }
.market-hero-action { display:inline-flex; align-items:center; justify-content:center; gap:18px; min-height:48px; padding:0 24px; border-radius:10px; text-decoration:none; font-weight:700; }
.market-hero-action:hover { transform:translateY(-2px); }
.market-hero-meta { margin:34px 0 0; color:#a9bbd7; font-size:12px; line-height:1.7; }
.market-hero-meta span { color:#8bf1d7; }
.market-orbit { position:absolute; right:8%; top:18%; width:330px; height:330px; display:grid; place-items:center; filter:drop-shadow(0 0 50px rgba(93,105,246,.25)); animation:market-float 7s ease-in-out infinite; }
.market-orbit::before,.market-orbit::after { content:""; position:absolute; width:340px; height:115px; border:1px solid rgba(141,151,255,.3); border-radius:50%; transform:rotate(-15deg); box-shadow:0 0 30px rgba(100,102,237,.15); }
.market-orbit::after { width:290px; height:80px; transform:rotate(17deg); opacity:.5; }
.market-orbit-tile { width:168px; height:207px; border:1px solid rgba(149,199,255,.5); border-radius:30px; background:linear-gradient(145deg,rgba(54,103,171,.47),rgba(23,41,91,.7)); box-shadow:inset 0 1px 24px rgba(90,170,251,.09),0 18px 70px rgba(51,82,229,.28); transform:rotate(-13deg); display:grid; place-items:center; backdrop-filter:blur(7px); }
.market-orbit-tile span { width:106px; height:106px; border:2px solid rgba(151,212,255,.77); border-radius:22px; display:grid; place-items:center; color:white; font-size:58px; position:relative; }
.market-orbit-tile span::after { content:""; position:absolute; width:108px; height:3px; background:linear-gradient(90deg,#54d5ff,#a86dff); transform:rotate(-14deg); box-shadow:0 0 12px #8b93fa; }
@keyframes market-float { 50% { translate:0 -12px } }
.market-process { border-block:1px solid rgba(141,178,238,.17); padding:42px max(6%,calc((100% - 1350px)/2)) 52px; background:rgba(8,19,39,.78); }
.market-process h2 { color:#f5f7ff; margin:0 0 22px; font-size:clamp(22px,2.3vw,30px); }
.market-process-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:13px; }
.market-process-grid article { min-height:150px; padding:22px; border:1px solid rgba(118,155,222,.22); border-radius:15px; background:linear-gradient(155deg,rgba(22,43,76,.74),rgba(10,23,44,.9)); }
.market-process-grid article span { color:#67c9ff; font-size:11px; letter-spacing:.1em; }
.market-process-grid h3 { color:#f1f6ff; font-size:18px; margin:13px 0 7px; }
.market-process-grid p { color:#a9bdd8; font-size:13px; line-height:1.7; margin:0; }
.market-account { max-width:1350px; margin:auto; padding:80px 6% 110px; display:grid; grid-template-columns:minmax(0,1fr) minmax(350px,430px); gap:50px; align-items:center; scroll-margin-top:90px; }
.market-account-copy h2 { color:#f2f7ff; font-size:clamp(28px,3vw,44px); margin:0 0 16px; }
.market-account-copy p:last-child { max-width:440px; color:#b5cae7; line-height:1.8; }
.market-shell .auth-stage { min-height:0; padding:28px; border:1px solid rgba(150,189,255,.24); border-radius:18px; background:rgba(14,29,55,.91); box-shadow:0 23px 65px rgba(0,0,0,.25); backdrop-filter:blur(16px); }
.market-shell .auth-panel { width:100%; padding:0; color:#edf5ff; }
.market-shell .auth-panel-head h2 { color:#f4f7ff; font-size:27px; }
.market-shell .auth-form-kicker { color:#82e6d4; }
.market-shell .auth-panel-head > p,.market-shell .auth-panel > label,.market-shell .email-verification legend { color:#bed0e9; }
.market-shell .text-button { color:#6ed2ff; }
.market-shell .auth-panel input,.market-shell .email-verification input { color:#eaf5ff; background:#0b1b34; border-color:#2c456c; }
.market-shell .auth-panel input::placeholder { color:#7793b9; }
.market-shell .auth-panel input:hover:not(:focus) { border-color:#56769d; }
.market-shell .auth-panel input:focus { border-color:#65ceff; box-shadow:0 0 0 3px rgba(86,201,252,.13); }
.market-shell .auth-submit { width:100%; min-height:49px; }
.market-shell .email-verification { border-color:#2c456c; }
.market-shell .code-button,.market-shell .button.secondary { color:#eaf4ff; border-color:#355174; background:#142642; }
.market-shell .button.secondary:hover { background:#1d3656; }
.market-shell .message { color:#e1ecfd; }
.market-shell .message.error { color:#ffb6ab; }
.market-shell .message.success { color:#9bedcf; }
.market-shell.workspace-mode { background:#081427; }
.market-shell .customer-workspace { width:100%; max-width:none; min-height:calc(100vh - 72px); margin:0; display:grid; grid-template-columns:220px minmax(0,1fr); }
.market-sidebar { min-height:calc(100vh - 72px); padding:29px 14px; display:flex; flex-direction:column; background:linear-gradient(180deg,#08162b,#071126); border-right:1px solid rgba(141,178,238,.16); }
.market-side-label { color:#82a0c9; font-size:11px; letter-spacing:.1em; margin:2px 10px 18px; }
.market-nav { display:grid; gap:6px; }
.market-nav button { width:100%; min-height:47px; padding:10px 12px; display:flex; align-items:center; gap:13px; text-align:left; border:1px solid transparent; border-radius:10px; background:transparent; color:#afc2df; cursor:pointer; }
.market-nav button:hover { color:#fff; background:#13294a; }
.market-nav button[aria-current="page"] { color:#fff; border-color:rgba(112,184,245,.32); background:linear-gradient(90deg,rgba(64,159,232,.3),rgba(95,102,219,.13)); }
.market-nav button > span:first-child { width:18px; color:#90d9ff; font-size:19px; }
.market-nav-count { margin-left:auto; min-width:22px; min-height:22px; padding:2px 6px; text-align:center; border-radius:20px; background:#2c527c; color:#fff; font-size:12px; }
.market-side-note { margin:auto 8px 0; padding:20px 4px 0; border-top:1px solid rgba(141,178,238,.16); color:#84a0c5; font-size:12px; line-height:1.7; }
.market-work-main { min-width:0; padding:30px clamp(22px,3vw,55px) 45px; background:radial-gradient(ellipse 65% 35% at 85% 0%,rgba(61,80,158,.15),transparent),#0a1529; }
.market-work-breadcrumb { color:#9cbbe1; font-size:12px; margin:4px 0 30px; }
.market-work-breadcrumb span:first-child { margin:0 7px; color:#58779e; }
.market-panel { max-width:1350px; }
.market-panel h1 { color:#f5f7ff; font-size:clamp(25px,2.8vw,34px); margin:0 0 7px; }
.market-panel-intro { color:#adc0db; font-size:14px; line-height:1.7; margin:0 0 27px; }
.market-overview-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin:26px 0 15px; }
.market-overview-grid article,.market-overview-cta { border:1px solid rgba(125,165,230,.22); border-radius:15px; background:linear-gradient(145deg,#142642,#0d1b33); }
.market-overview-grid article { padding:25px; }
.market-overview-grid span { color:#bcd0ea; font-size:13px; }
.market-overview-grid strong { display:block; color:#f7fbff; font-size:43px; margin:8px 0; font-variant-numeric:tabular-nums; }
.market-overview-grid p,.market-overview-cta p { color:#98b0cf; font-size:13px; margin:0; }
.market-overview-cta { padding:23px 25px; display:flex; justify-content:space-between; align-items:center; gap:20px; }
.market-overview-cta h2 { color:#f5f8ff; margin:0 0 7px; font-size:19px; }
.market-shell .customer-stage-flow { margin:26px 0 20px; }
.market-shell .customer-stage-flow li { color:#9db9dd; border-color:#2b466e; border-radius:0; border-width:0 0 2px; background:transparent; }
.market-shell .customer-stage-flow b { color:#63cfff; }
.market-shell .folder-upload-band,.market-shell .task-list { border-color:rgba(125,165,230,.23); border-radius:15px; background:linear-gradient(145deg,#142642,#0d1b33); box-shadow:none; }
.market-shell .folder-controls { display:flex; align-items:end; justify-content:flex-start; flex-wrap:wrap; gap:20px 26px; padding:25px; border-color:#2a4261; }
.market-shell .media-selector legend { color:#b9cdec; font-size:12px; margin-bottom:9px; }
.market-shell .delivery-selector { margin-left:0; }
.market-shell .segments span { color:#c5d6f0; background:#0b1b34; border-color:#2d496d; }
.market-shell .segments input:checked + span { color:#fff; background:#13416b; border-color:#69c5ff; }
.market-shell .narration-language-selector { margin-left:auto; width:190px; color:#b9cdec; font-size:12px; }
.market-shell .narration-language-selector span { display:block; margin-bottom:9px; }
.market-shell .narration-language-selector select { color:#eaf4ff; background:#0b1b34; border-color:#2d496d; }
.market-shell .folder-drop { min-height:185px; margin:0 25px 16px; padding:23px; display:flex; flex-direction:column; gap:8px; color:#bacfea; border-color:#355e8c; background:rgba(9,26,52,.55); text-align:center; }
.market-shell .folder-drop.dragging { border-color:#6ed2ff; background:#15365a; }
.market-drop-icon { color:#77d3ff; font-size:27px; line-height:1; }
.market-shell .folder-drop strong { color:#f2f8ff; font-size:16px; }
.market-shell .folder-drop p { color:#9fb9dc; font-size:12px; margin:0 0 5px; }
.market-shell .upload-explainer { color:#9fb9dc; }
.market-shell .upload-command { background:rgba(8,22,44,.55); border-color:#2a4261; }
.market-shell #upload-button:disabled { background:#364c6b; border-color:#364c6b; color:#adbed5; }
.market-shell .folder-row,.market-shell .task-row { color:#eaf3ff; background:#11233f; border-color:#2a4261; }
.market-shell .folder-row.folder-invalid { background:#3b2535; }
.market-shell .folder-row .remove-folder,.market-shell .task-cancel {
  color:#d7e9ff;
  background:#182d4d;
  border:1px solid #44648e;
  border-radius:8px;
  box-shadow:none;
}
.market-shell .folder-row .remove-folder:hover,.market-shell .task-cancel:hover {
  color:#fff;
  background:#23436a;
  border-color:#79c9ff;
}
.market-shell .folder-row .remove-folder:disabled {
  color:#8fa5c4;
  background:#172841;
  border-color:#354b6b;
  cursor:not-allowed;
}
.market-shell .folder-row .badge.bad {
  color:#ffceca;
  background:#4a2b39;
  border:1px solid #a56276;
}
.market-shell .folder-main > span,.market-shell .task-context,.market-shell .task-time { color:#a9bdd8; }
.market-shell .task-row:hover { background:#172c4b; }
.market-shell .task-title { color:#f4f8ff; }
.market-shell .task-state-line { color:#b9e9ff; background:#174263; }
.market-shell .task-state-line.is-error { color:#ffbeb8; background:#493039; }
.market-shell .task-state-line.is-uploading { color:#bfe5ff; background:#1d3e63; }
.market-shell .task-record-delete { color:#b9c9de; }
.market-shell .task-record-delete:hover { color:#ffbeb8; }
.market-shell .empty { color:#aebfda; background:#11233f; }
.market-global-status:not(:empty) { max-width:1350px; margin-top:22px; padding:12px 15px; border:1px solid #315779; border-radius:10px; background:#122945; }
.market-work-footer { max-width:1350px; display:flex; justify-content:flex-end; margin-top:24px; }
.market-shell :focus-visible { outline:3px solid #8bf1d7; outline-offset:3px; }
@media (max-width:950px) {
  .market-orbit { right:-60px; opacity:.42; }
  .market-account { grid-template-columns:1fr; gap:24px; }
  .market-account-copy p:last-child { margin-bottom:0; }
  .market-shell .narration-language-selector { margin-left:0; }
}
@media (max-width:700px) {
  .market-shell .topbar-inner { width:calc(100% - 32px); }
  .market-shell .brand-copy { gap:5px; flex-direction:column; align-items:flex-start; }
  .market-shell .brand-copy strong { font-size:17px; }
  .market-shell .brand-tagline { font-size:9px; }
  .market-hero { min-height:580px; padding:66px 7% 62px; }
  .market-orbit { right:-145px; top:120px; transform:scale(.7); opacity:.25; }
  .market-subtitle { font-size:14px; }
  .market-process { padding:38px 7%; }
  .market-process-grid { grid-template-columns:1fr; }
  .market-process-grid article { min-height:0; }
  .market-account { padding:55px 7% 80px; }
  .market-shell .auth-stage { padding:22px; }
  .market-shell .customer-workspace { display:block; }
  .market-sidebar { min-height:0; padding:10px 12px; border-right:0; border-bottom:1px solid rgba(141,178,238,.16); }
  .market-side-label,.market-side-note { display:none; }
  .market-nav { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:4px; }
  .market-nav button { min-height:52px; padding:6px 3px; display:flex; flex-direction:column; gap:1px; justify-content:center; text-align:center; font-size:11px; }
  .market-nav-count { display:none; }
  .market-work-main { padding:23px 16px 40px; }
  .market-work-breadcrumb { margin-bottom:22px; }
  .market-overview-grid { gap:9px; }
  .market-overview-grid article { padding:16px; }
  .market-overview-grid strong { font-size:32px; }
  .market-overview-cta { flex-direction:column; align-items:flex-start; }
  .market-shell .customer-stage-flow { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .market-shell .folder-controls { display:grid; grid-template-columns:1fr; padding:19px; }
  .market-shell .narration-language-selector { width:100%; }
  .market-shell .folder-drop { margin:0 18px 16px; }
  .market-shell .task-row { display:flex; flex-direction:column; align-items:stretch; }
  .market-shell .task-side { justify-items:start; min-width:0; }
  .market-shell .task-side-top,.market-shell .task-complete-actions { flex-wrap:wrap; justify-content:flex-start; }
}
@media (prefers-reduced-motion:reduce) {
  .market-shell .cosmic-sky::before,.market-shell .cosmic-sky::after,.market-shell .cosmic-sky i,.market-orbit { animation:none!important; }
}

/* Surface polish: keep the existing login artwork and all task behavior. */
.market-shell.login-mode .cosmic-sky { background:radial-gradient(ellipse 64% 50% at 78% 31%,rgba(47,77,154,.14),transparent 82%),#07152c; }
.market-shell.login-mode .customer-topbar { background:rgba(7,21,44,.94); border-bottom-color:rgba(151,188,246,.11); }
.market-shell.login-mode .market-hero::before { background:linear-gradient(90deg,rgba(7,21,44,.4),rgba(7,21,44,.14) 68%,transparent 100%); }
.market-shell.login-mode .market-process { background:transparent; border-block:0; }
.market-shell.login-mode .market-account { background:transparent; }
.market-shell.workspace-mode .market-panel h1 { font-size:clamp(26px,2.8vw,34px); font-weight:720; letter-spacing:-.02em; line-height:1.25; }
.market-shell.workspace-mode .market-panel-intro { color:#bdcde2; font-size:14px; line-height:1.75; }
.market-shell.workspace-mode .market-work-breadcrumb { color:#a9c1df; }
.market-shell.workspace-mode .market-overview-grid article,.market-shell.workspace-mode .market-overview-cta { border:1px solid rgba(132,170,216,.22); border-radius:13px; background:#12243e; }
.market-shell.workspace-mode .market-overview-grid article { padding:23px; }
.market-shell.workspace-mode .market-overview-grid span { color:#c2d1e6; }
.market-shell.workspace-mode .market-overview-grid p,.market-shell.workspace-mode .market-overview-cta p { color:#aec2dc; }
.market-shell.workspace-mode .market-nav button { font-size:14px; }
.market-shell.workspace-mode .market-nav button[aria-current="page"] { border-color:rgba(113,184,240,.26); background:linear-gradient(90deg,rgba(52,141,205,.25),rgba(69,101,178,.11)); box-shadow:inset 2px 0 #78d5f4; }
.market-shell.workspace-mode .folder-upload-band { border:1px solid rgba(132,170,216,.25); border-radius:14px; background:#12243e; }
.market-shell.workspace-mode .folder-controls { border-color:#2c4463; }
.market-shell.workspace-mode .media-selector legend,.market-shell.workspace-mode .narration-language-selector { color:#c3d4e9; font-size:13px; }
.market-shell.workspace-mode .segments { padding:3px; gap:2px; border:1px solid #344d6b; border-radius:9px; background:#0b1d36; }
.market-shell.workspace-mode .segments span { min-height:40px; border:1px solid transparent; border-radius:6px; background:transparent; color:#c8d8ed; font-size:14px; }
.market-shell.workspace-mode .segments input:checked + span { border-color:#72bce8; background:#1c486d; color:#fff; box-shadow:none; font-weight:650; }
.market-shell.workspace-mode .segments input:focus-visible + span { outline:3px solid #9bf0dd; outline-offset:2px; }
.market-shell.workspace-mode .narration-language-selector select { border-color:#3b5575; border-radius:8px; }
.market-shell.workspace-mode .folder-drop { border-color:#537494; border-radius:11px; background:#0d203b; }
.market-shell.workspace-mode .folder-drop strong { font-size:16px; }
.market-shell.workspace-mode .folder-drop p,.market-shell.workspace-mode .upload-explainer { color:#b8cbe3; font-size:13px; }
.market-shell.workspace-mode .upload-command { border-color:#2c4463; background:#101f38; }
.market-shell.workspace-mode .task-list { gap:10px; padding:0; border:0; border-radius:0; background:transparent; }
.market-shell.workspace-mode .task-row { border:1px solid #2d4665; border-radius:12px; background:#132640; }
.market-shell.workspace-mode .task-row:hover { background:#18304d; }
.market-shell.workspace-mode .task-title { font-size:16px; line-height:1.45; }
.market-shell.workspace-mode .task-context,.market-shell.workspace-mode .task-time { color:#afc2dc; font-size:12px; }
.market-shell.workspace-mode .empty { border:1px dashed #3c5473; border-radius:12px; background:#10213b; color:#bed0e6; }
@media (max-width:700px) {
  .market-shell.workspace-mode .market-nav button { font-size:11px; }
  .market-shell.workspace-mode .market-overview-grid article { padding:16px; }
}
