/* 瑞德域AI — shared visual layer. Business state remains in the existing modules. */
:root {
  --bg: #f5f7fc;
  --panel: #fff;
  --ink: #18213b;
  --muted: #5f7089;
  --line: #e8edf5;
  --orange: #3868e8;
  --nav: #fff;
  --navtext: #617089;
  --radius: 16px;
  --rd-blue: #3868e8;
  --rd-blue-dark: #2854ca;
  --rd-soft: #edf3ff;
  --rd-shadow: 0 4px 22px #243c7005;
}

html { scroll-padding-top: 88px; }
body { color: var(--ink); background: var(--bg); font-size: 14px; line-height: 1.65; }
button, a, input, textarea, select { touch-action: manipulation; }
button, a { transition: background-color .16s, color .16s, border-color .16s, box-shadow .16s, transform .16s; }
button:focus-visible, a:focus-visible { outline: 3px solid #9bb8ff; outline-offset: 3px; }
button:disabled { cursor: not-allowed; }
svg { stroke-width: 1.8; }

/* Navigation and workspace frame. */
.sidebar {
  width: 232px;
  padding: 26px 16px 16px;
  background: #fff;
  border-right: 1px solid var(--line);
  color: var(--navtext);
}
.brand { padding: 2px 10px 27px; gap: 10px; color: var(--ink); font-size: 21px; font-weight: 700; letter-spacing: -.5px; white-space: nowrap; }
.brandmark { width: 42px; height: 39px; border-radius: 0; flex-shrink: 0; background: transparent; box-shadow: none; }
.brandmark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand-ai { margin-left: 3px; color: var(--rd-blue); font-weight: 650; font-size: 18px; letter-spacing: -.6px; }
.brand small { margin-top: 1px; color: #8a97ad; font-size: 10px; font-weight: 500; letter-spacing: 2.1px; }
.navscroll { margin: 0 -1px; padding: 0 1px 16px; }
.navgroup { margin: 26px 14px 9px; font-size: 10px; color: #98a2b3; font-weight: 550; letter-spacing: 1.3px; }
.navitem { padding: 11px 14px; gap: 12px; min-height: 45px; margin: 4px 0; border-radius: 10px; font-size: 13px; font-weight: 500; }
.navitem > svg:first-child { width: 18px; height: 18px; color: #7b89a1; }
.navitem:hover { background: #f4f7fd; color: #334b7c; }
.navitem.active { background: #edf3ff; color: #315ed3; font-weight: 650; }
.navitem.active > svg:first-child { color: #3868e8; }
.navitem.active:before { left: -16px; top: 15px; height: 16px; width: 3px; background: #3868e8; }
.navitem .chev { color: #a8b1c1; width: 12px; height: 12px; }
.navitem em { color: #5472b0; background: #e7edfa; font-size: 10px; min-width: 19px; text-align: center; border-radius: 5px; }
.sidebar-foot { border-top: 1px solid var(--line); padding-top: 15px; }
.plan-box { position: relative; padding: 13px 10px; margin-bottom: 12px; border: 1px solid #e5edfc; border-radius: 11px; background: linear-gradient(125deg,#f0f5ff,#f8faff); color: #7e8eab; font-size: 10px; gap: 9px; }
.plan-box > svg:first-child { color: #6b8aec; width: 22px; height: 22px; }
.plan-box > svg:last-child { width: 13px; height: 13px; margin-left: auto; color: #9db2dd; }
.plan-box strong { color: #425d90; font-size: 11px; font-weight: 600; margin-bottom: 2px; }
.account { color: #51607b; padding: 7px 4px; gap: 9px; font-size: 11px; }
.account > div:nth-child(2) { min-width: 0; flex: 1; }
.account small { color: #94a0b5; font-size: 10px; }
.account > svg { width: 16px; height: 16px; color: #9ba8bc; }
.avatar { border: 1px solid #e3eafa; background: #f0f4ff; color: #5272bd; border-radius: 50%; height: 33px; width: 33px; font-size: 13px; font-weight: 600; flex-shrink: 0; }
.main { margin-left: 232px; min-width: 0; }
.topbar { height: 72px; padding: 0 34px; gap: 18px; background: #ffffffed; backdrop-filter: blur(16px); border-color: #e9eef6; }
.topbar > .flex { min-width: 0; flex-wrap: nowrap; }
.crumb { gap: 12px; color: #98a3b7; font-size: 12px; min-width: 0; white-space: nowrap; }
.crumb .chev { width: 12px; height: 12px; color: #bbc4d2; }
.crumb strong { color: #52607a; font-weight: 550; overflow: hidden; text-overflow: ellipsis; }
.toolbar { gap: 17px; flex-shrink: 0; }
.searchbtn { padding: 7px 10px; min-height: 33px; background: #f6f8fc; border: 1px solid #edf0f5; border-radius: 8px; color: #8a96ab; gap: 8px; }
.searchbtn svg { width: 15px; height: 15px; }
.searchbtn kbd { padding-left: 23px; font-size: 10px; color: #a9b3c3; }
.rd-top-task { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #73819a; }
.rd-top-task svg { width: 15px; height: 15px; }
.rd-top-task:hover { color: var(--rd-blue); }
.iconbtn { color: #7b89a1; border-radius: 9px; width: 33px; height: 33px; }
.iconbtn:hover { background: #f0f4fd; color: #4168ba; }
.iconbtn svg { width: 18px; height: 18px; }
.content { max-width: 1490px; padding: 32px 34px 36px; margin: 0 auto; min-width: 0; }
.content > *, .split > *, .formrow > *, .api-grid > *, .seedance-layout > *, .speech-layout > *, .image-studio-layout > *, .chat-layout > * { min-width: 0; }

/* Home: an idea first, then clear paths into the working tools. */
.rd-home { max-width: 1220px; margin: 0 auto; }
.rd-home-heading { position: relative; text-align: center; padding: 16px 16px 26px; isolation: isolate; }
.rd-home-heading .eyebrow { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 10px; color: #7c8db0; font-size: 11px; letter-spacing: 1.8px; font-weight: 500; }
.rd-home-logo { width: 42px; height: 34px; object-fit: contain; mix-blend-mode: multiply; }
.rd-home-heading h1 { position: relative; font-size: clamp(28px,2.75vw,39px); line-height: 1.4; font-weight: 650; letter-spacing: -1.2px; }
.rd-home-heading h1 em { color: #4673e9; font-style: normal; }
.rd-home-heading p { margin-top: 10px; color: #8290a7; font-size: 13px; }
.rd-home-orbit { position: absolute; width: 236px; height: 122px; right: 7%; top: -3px; z-index: -1; pointer-events: none; opacity: .66; background: radial-gradient(ellipse,#e9f0ff 4%,transparent 69%); }
.rd-home-orbit span, .rd-home-orbit i { position: absolute; display: block; border: 1px solid #dce6ff; width: 54px; height: 54px; border-radius: 16px; transform: rotate(27deg); top: 24px; right: 35px; }
.rd-home-orbit span { width: 35px; height: 35px; right: 86px; top: 69px; border-radius: 50%; border-color: #e6e6fc; }
.rd-command { max-width: 850px; margin: 0 auto; padding: 18px 21px 16px; background: #fff; border: 1px solid #dbe5f9; border-radius: 18px; box-shadow: 0 9px 30px #385baf0a, 0 0 0 4px #edf3ff70; }
.rd-command:focus-within { border-color: #9db6f7; box-shadow: 0 9px 30px #385baf0d, 0 0 0 4px #e9f0ff; }
.rd-command-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.rd-command-top > span:first-child { color: #4565a2; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; }
.rd-command-top svg { width: 17px; height: 17px; color: #507beb; }
.rd-command-caption { font-size: 10px; letter-spacing: .5px; color: #9da9be; }
.rd-command-input { display: block; border: 0; border-radius: 0; padding: 15px 0 10px; min-height: 94px; height: 94px; max-height: 240px; background: transparent; color: #344664; font-size: 14px; line-height: 1.8; resize: vertical; box-shadow: none; }
.rd-command-input::placeholder { color: #a1adc1; }
.rd-command-input:focus { border: 0; box-shadow: none; }
.rd-command-bottom { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-top: 7px; }
.rd-command-bottom > span { color: #9ba7bb; font-size: 11px; }
.rd-command-bottom .btn { min-height: 36px; padding: 8px 15px; font-size: 12px; }
.rd-command-bottom .btn svg { width: 14px; height: 14px; }
.rd-suggestions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 17px auto 34px; color: #9aa6ba; font-size: 11px; }
.rd-suggestions > span { margin-right: 3px; }
.rd-suggestions button { display: inline-flex; align-items: center; gap: 8px; background: #f0f3fa; border: 1px solid #e6ebf5; color: #7989a5; border-radius: 6px; padding: 5px 9px; font-size: 11px; }
.rd-suggestions button svg { width: 12px; height: 12px; color: #a5b1c7; }
.rd-suggestions button:hover { border-color: #bfcef0; background: #eaf0fd; color: #4c70b9; }
.sectionhead.rd-section-title { margin: 30px 0 15px; }
.rd-section-title h2 { color: #293952; font-size: 17px; font-weight: 650; letter-spacing: -.25px; }
.rd-section-title h2 small { color: #99a5b8; font-size: 11px; font-weight: 400; margin-left: 12px; }
.rd-section-title .btn.ghost { font-size: 11px; color: #8493ac; padding: 6px 0 6px 10px; }
.rd-section-title .btn.ghost:hover { color: #4266b5; background: transparent; }
.rd-section-title .rightsmall { font-size: 11px; color: #9da9bc; }
.rd-quick-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.rd-quick-card { --quick-ink: #527edc; --quick-bg: #eaf1ff; position: relative; display: grid; grid-template-columns: 46px minmax(0,1fr) 14px; grid-template-rows: auto auto; align-content: center; align-items: center; column-gap: 13px; row-gap: 4px; min-height: 108px; padding: 19px 18px; border: 1px solid #e4eafb; border-radius: 13px; text-align: left; color: #334461; background: linear-gradient(110deg,#fff 15%,#f3f7ff); overflow: hidden; }
.rd-quick-card:after { content: ""; position: absolute; width: 94px; height: 94px; border: 1px solid var(--quick-bg); border-radius: 50%; right: -25px; top: -38px; pointer-events: none; }
.rd-quick-card.cyan { --quick-ink: #2892a3; --quick-bg: #e2f6fa; background: linear-gradient(110deg,#fff,#f0fafc); border-color: #e2f0f4; }
.rd-quick-card.violet { --quick-ink: #8c6dd7; --quick-bg: #f0eafe; background: linear-gradient(110deg,#fff,#f7f3ff); border-color: #ebe5f6; }
.rd-quick-card.rose { --quick-ink: #d17fa1; --quick-bg: #fbeaf2; background: linear-gradient(110deg,#fff,#fff5f9); border-color: #f1e5ef; }
.rd-quick-card.amber { --quick-ink: #b9984c; --quick-bg: #fcf3db; background: linear-gradient(110deg,#fff,#fdfaf1); border-color: #efeada; }
.rd-quick-card.green { --quick-ink: #53a18f; --quick-bg: #e3f5ec; background: linear-gradient(110deg,#fff,#f1faf6); border-color: #e2eee8; }
.rd-quick-card:hover { transform: translateY(-2px); box-shadow: 0 7px 18px #425d9310; border-color: var(--quick-ink); }
.rd-quick-icon { grid-row: 1 / 3; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; color: var(--quick-ink); background: var(--quick-bg); box-shadow: inset 0 0 0 1px #ffffffa0, 0 4px 8px #6982b10a; }
.rd-quick-icon svg { width: 24px; height: 24px; stroke-width: 1.7; }
.rd-quick-card > strong { grid-column: 2; font-size: 13px; font-weight: 600; line-height: 1.6; }
.rd-quick-card > span:not(.rd-quick-icon) { grid-column: 2; color: #98a4b8; font-size: 11px; line-height: 1.5; }
.rd-quick-arrow { grid-column: 3; grid-row: 1 / 3; color: #a6b3c9; width: 14px; height: 14px; }
.employee-grid.rd-role-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
.employee { position: relative; padding: 22px; border-radius: 14px; border: 1px solid #e5eaf4; background: #fff; box-shadow: 0 3px 11px #28457803; overflow: hidden; }
.employee:before { content: ""; position: absolute; width: 110px; height: 110px; right: -30px; top: -39px; border-radius: 50%; background: var(--tone-bg); opacity: .26; pointer-events: none; }
.employee:hover { border-color: #b9ccef; box-shadow: 0 8px 22px #344f860b; transform: translateY(-2px); }
.employee-top { position: relative; }
.roleicon { width: 47px; height: 47px; border-radius: 14px; box-shadow: inset 0 0 0 1px #ffffff96; }
.roleicon svg { width: 25px; height: 25px; stroke-width: 1.7; }
.employee-top .tag { font-size: 10px; padding: 3px 7px; border-radius: 5px; background: #f5f6f9; color: #9ba4b5; }
.employee-top .tag.rd-ready { background: #f0f5ff; color: #6988c9; }
.employee h3 { font-size: 16px; font-weight: 650; letter-spacing: -.2px; margin-top: 17px; margin-bottom: 5px; color: #2b3b57; }
.employee p { color: #929eb2; font-size: 12px; white-space: normal; line-height: 1.75; overflow: visible; height: auto; min-height: 21px; }
.employee .chips { margin-top: 16px; gap: 5px; height: auto; overflow: visible; }
.chip { padding: 3px 7px; border-radius: 5px; color: #8795ac; background: #f6f8fc; font-size: 10px; }
.employee-foot { margin-top: 19px; padding-top: 13px; border-color: #edf1f7; gap: 8px; color: #aab4c6; font-size: 9px; }
.employee-foot > span:last-child { display: inline-flex; align-items: center; gap: 5px; color: #8192b0; font-size: 11px; white-space: nowrap; }
.employee-foot > span:first-child { letter-spacing: .6px; min-width: 0; }
.employee-foot svg { width: 13px; height: 13px; }
.employee.rd-coming .roleicon { filter: saturate(.55); }
.employee.rd-coming h3 { color: #758096; }
.rd-recent-strip { margin-top: 26px; padding: 22px 23px; display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 17px; border: 1px solid #e6ecf5; border-radius: 14px; background: #ffffffb8; }
.rd-recent-strip > div:first-child { display: grid; align-items: center; grid-template-columns: 36px auto; column-gap: 12px; row-gap: 2px; }
.rd-recent-icon { display: grid; place-items: center; grid-row: 1 / 3; width: 36px; height: 36px; background: #f0f4fc; border-radius: 10px; color: #8ea1c7; }
.rd-recent-icon svg { width: 18px; height: 18px; }
.rd-recent-strip h2 { color: #50607b; font-size: 13px; font-weight: 600; }
.rd-recent-strip p { color: #9aa6bb; font-size: 11px; }
.rd-recent-strip > .btn { font-size: 11px; color: #7d8eaa; }
.rd-recent-list { flex: 1 0 100%; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; border-top: 1px solid #eef1f7; padding-top: 16px; }
.rd-recent-list button { display: flex; align-items: center; text-align: left; gap: 10px; background: #f7f9fd; border: 1px solid #eef2f8; border-radius: 8px; color: #8b9ab5; padding: 10px; min-width: 0; }
.rd-recent-list button > span { display: flex; align-items: center; flex: 1; min-width: 0; gap: 7px; }
.rd-recent-list button strong { font-size: 11px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-recent-list button svg { width: 13px; height: 13px; }
.rd-recent-list button > small { font-size: 10px; white-space: nowrap; color: #9ca7ba; }
.rd-recent-list button:hover { background: #f0f5ff; border-color: #cbdafa; }
.footnote { margin-top: 26px; color: #a9b3c4; font-size: 10px; letter-spacing: .8px; }

/* Shared work surfaces and controls. */
.pagehead { margin-bottom: 27px; gap: 22px; }
.pagehead h1 { font-size: 26px; font-weight: 650; letter-spacing: -.65px; line-height: 1.5; color: #263653; }
.pagehead p { color: #8a97ae; font-size: 13px; margin-top: 6px; max-width: 800px; }
.pagehead > .btn { font-size: 12px; flex-shrink: 0; }
.eyebrow { color: #7191dd; }
.sectionhead h2 { color: #3b4b67; font-weight: 600; }
.tabs { display: flex; gap: 5px; width: fit-content; max-width: 100%; margin-bottom: 24px; padding: 5px; border: 1px solid #e9edf5; border-radius: 11px; background: #edf1f8; scrollbar-width: thin; scrollbar-color: #c6d1e6 transparent; }
.tab { border: 0; border-radius: 7px; color: #8996ad; padding: 10px 17px; font-size: 13px; min-height: 39px; }
.tab:hover { color: #4566a7; background: #ffffff83; }
.tab.active { background: #fff; color: #3868e8; box-shadow: 0 2px 7px #3052940b; border: 0; font-weight: 600; }
.tab-state { font-size: 9px; opacity: .72; margin-left: 5px; }
.panel, .ask-card { padding: 24px; border: 1px solid #e5ebf5; border-radius: 16px; box-shadow: var(--rd-shadow); background: #fff; }
.panel-title { margin-bottom: 21px; gap: 12px; }
.panel-title h2 { color: #33445f; font-size: 15px; font-weight: 650; }
.panel-title .btn { font-size: 11px; }
.split { grid-template-columns: minmax(0,1fr) minmax(0,1.08fr); gap: 22px; align-items: start; }
.split > .panel { height: 100%; }
.btn { color: #63718a; border: 1px solid #dfe7f3; background: #fff; border-radius: 8px; min-height: 38px; padding: 8px 14px; font-size: 13px; font-weight: 500; }
.btn:hover { border-color: #b7c9ef; background: #f8faff; color: #3d61a7; transform: none; box-shadow: 0 2px 6px #23457505; }
.btn.primary { color: #fff; border-color: #3868e8; background: #3868e8; box-shadow: 0 4px 8px #3868e818; }
.btn.primary:hover { color: #fff; border-color: #2a58d1; background: #2e5ed8; box-shadow: 0 5px 12px #3868e828; }
.btn.dark { background: #364f83; border-color: #364f83; color: #fff; }
.btn.dark:hover { background: #2a426f; color: #fff; }
.btn.small { min-height: 31px; padding: 5px 10px; font-size: 11px; }
.btn.ghost { background: transparent; border-color: transparent; color: #778ba9; }
.btn.ghost:hover { background: #eef3fd; }
.btn:disabled, .btn.primary:disabled { transform: none; opacity: .55; box-shadow: none; cursor: not-allowed; }
.btn.fullwidth { justify-content: center; }
.iconbtn:disabled { opacity: .5; }
.tag { padding: 3px 8px; border-radius: 5px; font-size: 11px; color: #8592a8; background: #f2f5fa; }
.tag.orange { color: #ac8650; background: #fff6e7; }
.tag.blue { color: #587dbd; background: #edf3ff; }
.tag.green, .api-success { color: #4c8b70; background: #edf8f3; }
.muted { color: #8a98ae; }
p.muted { font-size: 12px; line-height: 1.85; overflow-wrap: anywhere; }
.textlink { color: #6988c3; font-size: 12px; }
.textlink:hover { color: #3868e8; }
.input, textarea, select, input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]) { width: 100%; min-width: 0; border: 1px solid #e0e7f2; border-radius: 8px; background: #fff; color: #435675; padding: 11px 13px; font-size: 13px; outline: none; transition: border-color .16s,box-shadow .16s; }
.input::placeholder, textarea::placeholder, input::placeholder { color: #a2adc0; }
.input:hover, textarea:hover, select:hover { border-color: #cbd7eb; }
.input:focus, textarea:focus, select:focus, input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):focus { border-color: #91aff2; box-shadow: 0 0 0 3px #eef3ff; }
textarea { min-height: 155px; line-height: 1.9; }
label.field { color: #6b7a93; font-size: 12px; margin-bottom: 18px; }
label.field > span { margin-bottom: 8px; font-size: 12px; font-weight: 500; }
.field input, .field select, .panel textarea { font-size: 13px; }
.field small, .rightsmall, .inline-note { color: #96a3b9; }
.formrow { gap: 15px; }
input[type="checkbox"], input[type="radio"] { accent-color: #3868e8; width: 15px; height: 15px; }
.checkrow { font-size: 12px; color: #7d8ba3; gap: 9px; }
.upload { padding: 31px 22px; border: 1px dashed #ccd9ef; border-radius: 11px; background: #f9fbff; }
.upload:hover { border-color: #8babee; background: #f4f8ff; }
.upload > svg { color: #91aad6; width: 29px; height: 29px; }
.upload strong { color: #677d9f; font-size: 13px; font-weight: 500; }
.upload p { color: #a0adc2; font-size: 11px; }
.filelabel { border-color: #e5ecf7; background: #f7faff; padding: 12px; color: #677e9f; }
.resulttext { border: 1px solid #e6ecf6; color: #5c708f; background: #f8faff; border-radius: 10px; line-height: 2; padding: 21px; }
.resulttext[aria-label] { min-height: 360px; }
.notice { border: 1px solid #f2e4cc; background: #fffaf1; color: #a68a5a; border-radius: 9px; padding: 12px 14px; font-size: 12px; line-height: 1.9; }
.notice strong { font-weight: 600; }
.notice p { color: inherit; font-size: 12px; margin-top: 3px; }
.notice[role="alert"] { border-color: #f1dfd1; color: #ab7e5d; background: #fff8f2; }
.notice.empty-api, .api-inline { color: #7d91b4; background: #f6f9ff; border-color: #e3ebfa; }
.api-ready { background: #f1faf5; color: #60927a; border-color: #ddefe5; }
.notice .field { margin: 11px 0; }
.notice .field > span { font-size: 11px; }
.empty { color: #9caac0; gap: 14px; min-height: 310px; padding: 25px; }
.empty > svg { width: 47px; height: 47px; padding: 9px; border-radius: 14px; background: #f3f6fc; color: #a9bad7; }
.empty h3 { color: #6f83a2; font-size: 15px; font-weight: 500; }
.empty p { color: #9da9bd; font-size: 12px; line-height: 1.85; }
.page-empty-card { padding: 42px; }
.pillbar { gap: 8px; margin: 16px 0 20px; }
.pill { border-color: #e2e9f5; border-radius: 7px; padding: 7px 12px; color: #8c9bb2; font-size: 12px; }
.pill:hover { color: #5c7bb8; border-color: #bfd0ed; background: #f7faff; }
.pill.active { color: #416fd2; border-color: #cbdcfb; background: #eef4ff; }
details > summary { cursor: pointer; font-size: 12px; color: #6f809c; }
details > summary:hover { color: #466db4; }
.notice > summary { color: inherit; }
details[open] > summary { margin-bottom: 10px; }

/* Media studios share the same quiet canvas and task cards. */
.image-studio-layout { gap: 22px; grid-template-columns: minmax(290px,.85fr) minmax(0,1.15fr); }
.image-prompt { min-height: 245px; }
.image-result-panel .empty { min-height: 360px; background: radial-gradient(ellipse at 50% 35%,#f3f7ff 0%,#fbfcff 68%); border: 1px dashed #e2eaf7; border-radius: 12px; }
.image-result-grid { gap: 13px; margin-top: 19px; }
.image-result-card { border-color: #e3eaf6; border-radius: 12px; background: #f6f9ff; }
.image-result-card > a { background: #f0f4fc; }
.image-result-card figcaption { padding: 11px; color: #8fa0ba; font-size: 11px; }
.image-result-card img { max-height: 520px; }
.image-result-prompt { color: #8a98af; font-size: 12px; }
.seedance-header, .speech-banner { background: linear-gradient(115deg,#eaf1ff,#f3f7ff 68%,#eaf4ff); border: 1px solid #dfe9fb; border-radius: 13px; padding: 20px 22px; color: #4065a8; }
.seedance-header strong, .speech-banner strong { font-size: 16px; font-weight: 600; color: #4267a6; }
.seedance-header > div > span:last-child, .speech-banner small { color: #8ca2c5; font-size: 11px; }
.seedance-mark { width: 35px; height: 35px; color: #fff; background: #6287e8; box-shadow: 0 3px 8px #6388e626; }
.seedance-header .tag, .speech-banner .tag { background: #ffffffc2; color: #6d8fbe; }
.speech-emblem { width: 42px; height: 42px; background: #fff; color: #7896d6; border-radius: 12px; box-shadow: 0 3px 7px #345cab06; }
.seedance-layout { grid-template-columns: minmax(290px,.92fr) minmax(0,1.08fr); gap: 22px; align-items: start; }
.speech-layout { grid-template-columns: minmax(290px,1fr) minmax(0,1fr); gap: 22px; align-items: start; }
.seedance-placeholder, .speech-placeholder { border: 1px dashed #e0e9f8; border-radius: 12px; background: radial-gradient(ellipse at 50% 35%,#eef4ff,#fbfcff 75%); color: #9aaac4; min-height: 350px; }
.seedance-placeholder > svg { color: #98acd1; border-radius: 13px; background: #fff; border: 1px solid #eaf0fb; }
.seedance-placeholder h3, .speech-placeholder h3 { color: #7187ac; font-size: 16px; font-weight: 500; }
.seedance-placeholder p, .speech-placeholder p { color: #9aa9bf; font-size: 12px; }
.seedance-placeholder span { color: #94a4bf; font-size: 10px; }
.speech-placeholder > svg { color: #a1b7d9; }
.seedance-model { border-color: #e6edf8; background: #fbfcff; padding: 13px; }
.seedance-model > svg, .seedance-pulse { color: #7795d4; }
.seedance-model strong { color: #7386a5; }
.seedance-job { min-width: 0; border: 1px solid #e6edf6; border-radius: 10px; padding: 14px; background: #fff; color: #617796; }
.seedance-job:hover { border-color: #bbceef; background: #f9fbff; }
.seedance-job.selected { background: #f2f6ff; border-color: #bdd1fa; }
.seedance-job-icon { width: 36px; height: 36px; border-radius: 10px; background: #f2f6fd; color: #8fa7d0; }
.seedance-job strong { font-size: 12px; font-weight: 500; }
.seedance-job small { font-size: 10px; color: #9ba8bd; }
.seedance-job-prompt { color: #8a9ab3; font-size: 12px; }
.seedance-jobs { gap: 9px; }
.product-video-materials { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 18px 0; }
.product-video-material { min-width: 0; border: 1px solid #e0e9f8; border-radius: 12px; padding: 14px; background: #fbfcff; }
.product-video-material h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; color: #566d90; font-size: 14px; }
.product-video-material h3 svg { width: 19px; height: 19px; }
.product-video-material .field { margin-bottom: 12px; }
.product-video-material .muted { overflow-wrap: anywhere; }
.product-video-upload { min-height: 150px; padding: 16px 10px; }
.product-video-upload input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.product-video-upload:focus-within { outline: 2px solid #8babee; outline-offset: 2px; }
.product-video-upload img { width: 100%; height: 150px; object-fit: contain; border-radius: 8px; }
.product-video-upload strong { max-width: 100%; overflow-wrap: anywhere; }
.product-video-confirm-materials { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 14px 0; }
.product-video-confirm-materials figure { margin: 0; min-width: 0; }
.product-video-confirm-materials img { width: 100%; height: 140px; object-fit: contain; background: #f3f7ff; border-radius: 9px; }
.product-video-confirm-materials figcaption { margin-top: 6px; color: #617796; font-size: 12px; text-align: center; }
@media (max-width: 700px) { .product-video-materials { grid-template-columns: minmax(0,1fr); } }
.speech-audio-card { background: linear-gradient(145deg,#edf4ff,#f8faff); border-color: #e0eaf9; padding: 25px; }
.speech-audio-card h3 { color: #6480ae; }
.speech-audio-card p { color: #8ea3c2; }
.speech-handoff { border-color: #e2ebf8; background: #f7faff; }
.speech-script { min-height: 230px; }
.speech-knobs { gap: 12px; }
.voice { border-color: #e4ebf6; color: #8092ad; }
.voice.active { border-color: #c0d3fa; background: #f1f6ff; color: #6485c5; }
.speech-voice-heading h3, .speech-handoff h3 { color: #6f85a6; font-size: 13px; }
.video-box { background: #24314a; border-radius: 11px; color: #9cafcd; }
.timeline { background: #f8faff; border-color: #e8eef8; }
.clip { color: #9380c1; background: #f0ecfa; }
.clip.audio { color: #73a99a; background: #eaf5f1; }
.clip.text { color: #7491be; background: #eaf1fb; }

/* Conversation, assets, progress and administration. */
.chat-layout { grid-template-columns: 202px minmax(0,1fr); gap: 20px; }
.chatroles { padding: 14px; }
.chatroles button { border-radius: 8px; color: #8b9bb5; padding: 12px 13px; font-size: 12px; }
.chatroles button.active { color: #557bcc; background: #edf3ff; }
.chatroles button:hover { background: #f4f7ff; color: #6a8bc9; }
.chatbubble { color: #677e9f; background: #f5f8fe; border: 1px solid #eaf0f8; border-radius: 12px; padding: 20px 22px; font-size: 13px; }
.chatbubble.user { color: #4b6fae; background: #edf4ff; border: 1px solid #e0eafb; margin-left: 60px; }
.assistant-prompt { gap: 12px; align-items: stretch; padding-top: 16px; border-top: 1px solid #ecf0f7; }
.assistant-prompt textarea { min-height: 92px; }
.assistant-prompt > .btn { min-width: 85px; }
.project { border-color: #e5ebf5; border-radius: 13px; box-shadow: var(--rd-shadow); }
.project:hover { border-color: #bccfec; transform: translateY(-2px); }
.project-art { background: #edf3fc; color: #718db5; }
.project-info { padding: 15px; }
.project-info strong { color: #667d9e; }
.project-info small { color: #9eabc0; }
.statsline { gap: 15px; margin-bottom: 23px; }
.oral-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.oral-stats .stat { min-width: 0; }
.stat { padding: 19px 21px; border-color: #e5ebf6; border-radius: 13px; box-shadow: var(--rd-shadow); }
.stat span { color: #93a3bb; font-size: 11px; }
.stat .num { color: #496692; font-size: 27px; font-weight: 600; margin: 7px 0 3px; }
.table-wrap { border: 1px solid #e6edf7; border-radius: 10px; scrollbar-width: thin; }
th { background: #f7f9fd; color: #889cb8; font-size: 11px; padding: 14px 16px; border-bottom-color: #e8eef7; }
td { color: #6b819f; font-size: 12px; padding: 16px; border-bottom-color: #edf2f8; }
td small { color: #9facc0; font-size: 10px; }
tbody tr:last-child td { border-bottom: 0; }
.status { color: #8f9fb5; font-size: 11px; }
.status.done { color: #6ba58b; }
.status.wait { color: #b89b67; }
.stepper { border-color: #e3ebf8; border-radius: 12px; padding: 15px; box-shadow: var(--rd-shadow); }
.step { color: #95a6be; }
.step b { border-color: #e1eafa; color: #92a5c3; }
.step strong { font-size: 12px; }
.step.active { color: #6085cf; }
.step.active b { border-color: #c9dafb; color: #6088d7; background: #eff5ff; }
.step.complete b { border-color: #d7eddf; background: #eff9f3; color: #76ac90; }
.progressbar { background: #edf2fb; }
.progressbar span { background: #6089e5; }
.workflow-row { border-color: #edf2f8; }
.workflow-row strong { color: #637b9f; font-size: 12px; }
.workflow-row small { color: #9dacbf; }
.workflow-num { color: #94a9c8; background: #f0f5fd; }
.api-grid { gap: 20px; }
.provider-logo { border-color: #e8edf8; border-radius: 12px; width: 43px; height: 43px; }
.provider h3 { color: #4c658b; font-weight: 600; }
.provider p { color: #95a4bb; font-size: 12px; }
.api-grid .provider p { min-height: 42px; }
.api-endpoint { background: #f7f9fd; color: #8c9db8; border: 1px solid #edf2f9; font-size: 11px; border-radius: 8px; }
.api-model { color: #8a9ab3; font-size: 12px; }
.api-meta { color: #9ca9bc; font-size: 10px; }
.api-inline small { color: #8fa3c3; }
.document { color: #7c8fab; font-size: 13px; line-height: 2; }
.document h2, .document h3 { color: #4a668f; }
.document p { font-size: 13px; }
.document a { color: #5882d5; }
.modal-backdrop { background: #1f355b45; backdrop-filter: blur(5px); }
.modal { border: 1px solid #e8eef9; border-radius: 18px; padding: 27px; box-shadow: 0 22px 90px #23395d27; }
.modal h2 { color: #3b547c; font-size: 19px; font-weight: 600; }
.modal p { color: #8d9bb3; font-size: 12px; }
.search-result { border-color: #edf2f8; color: #6e83a4; border-radius: 7px; font-size: 12px; }
.search-result:hover { background: #f1f6ff; }
.search-result small { color: #9bacc5; }
.toast { background: #314d7b; border: 1px solid #526d9626; color: #edf4ff; border-radius: 11px; font-size: 12px; box-shadow: 0 7px 25px #243b611f; }

/* Keep the home composer free of generic field borders. */
.rd-command textarea.rd-command-input { border: 0; box-shadow: none; background: transparent; padding: 15px 0 10px; font-size: 14px; min-height: 94px; }

/* Secondary copy stays readable against the pale work surfaces. */
.pagehead p, .muted, p.muted, .rightsmall, .inline-note,
.rd-home-heading p, .rd-home-heading .eyebrow, .rd-command-caption,
.rd-command-bottom > span, .rd-suggestions, .rd-suggestions button,
.rd-section-title h2 small, .rd-section-title .rightsmall,
.rd-quick-card > span:not(.rd-quick-icon), .employee p, .chip,
.employee-foot, .employee-foot > span:last-child, .employee.rd-coming h3,
.rd-recent-strip p, .rd-recent-list button > small, .footnote,
.field small, label.field, .provider p, .api-endpoint, .api-model, .api-meta,
.api-inline small, .project-info small, .stat span, td small,
.seedance-job small, .seedance-job-prompt, .seedance-model small,
.image-result-prompt, .image-result-card figcaption, .speech-result-text,
.speech-audio-card p, .empty p, .seedance-placeholder p, .speech-placeholder p,
.search-result small, .modal p, .workflow-row small, .document,
.brand small, .navgroup, .account small, .crumb, .searchbtn,
.rd-top-task, .plan-box, .checkrow, .upload p, .upload strong { color: #5f7089; }
.tag, .employee-top .tag { color: #647189; background: #f0f3f8; }
.employee-top .tag.rd-ready, .tag.blue { color: #4369ae; background: #edf3ff; }
.tag.green, .api-success, .api-ready { color: #39755b; }
.tag.orange, .notice { color: #8d6b36; }
.notice[role="alert"] { color: #956443; }
.notice.empty-api, .api-inline { color: #59729a; }
.tab { color: #68768e; }
.tab-state { opacity: 1; color: #748096; }
.tab.active .tab-state { color: #5378c0; }
.input::placeholder, textarea::placeholder, input::placeholder { color: #778399; }
.chatbubble, .project-info strong, td, .seedance-job { color: #566d90; }
.seedance-header > div > span:last-child, .speech-banner small { color: #5a759e; }
.seedance-header .tag, .speech-banner .tag { color: #54729f; }
.empty h3, .seedance-placeholder h3, .speech-placeholder h3 { color: #5e7395; }
.rd-section-title .btn.ghost, .rd-recent-strip > .btn { color: #5b7296; }
.rd-recent-list button { color: #607798; }

@media (min-width: 1600px) {
  .content { padding: 38px 44px 42px; }
  .topbar { padding-left: 44px; padding-right: 44px; }
  .rd-home-heading { padding-top: 23px; padding-bottom: 31px; }
  .rd-quick-card { min-height: 116px; padding: 21px; }
  .employee { padding: 24px; }
}

@media (max-width: 1180px) {
  .sidebar { width: 232px; }
  .main { margin-left: 232px; }
  .content { padding: 26px; }
  .topbar { padding: 0 26px; }
  .toolbar { gap: 11px; }
  .searchbtn kbd { padding-left: 7px; }
  .rd-top-task { display: none; }
  .rd-home-heading h1 { font-size: 32px; }
  .rd-home-orbit { right: 1%; opacity: .45; }
  .rd-quick-card { padding: 16px; grid-template-columns: 37px minmax(0,1fr); column-gap: 10px; }
  .rd-quick-icon { width: 37px; height: 37px; border-radius: 11px; }
  .rd-quick-icon svg { width: 21px; height: 21px; }
  .rd-quick-arrow { display: none; }
  .rd-quick-card > strong { font-size: 12px; }
  .rd-quick-card > span:not(.rd-quick-icon) { font-size: 10px; }
  .employee { padding: 19px; }
  .employee-foot { flex-wrap: wrap; gap: 5px; }
  .employee-foot > span:first-child { font-size: 8px; letter-spacing: .25px; }
  .split, .seedance-layout, .speech-layout, .image-studio-layout { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .split > .panel { height: auto; }
  .seedance-placeholder, .speech-placeholder { min-height: 270px; }
  .image-result-panel .empty { min-height: 290px; }
  .pagehead h1 { font-size: 24px; }
  .pagehead > .btn { font-size: 11px; }
}

@media (max-width: 1050px) {
  .rd-quick-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .employee-grid.rd-role-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .employee-foot { flex-wrap: nowrap; }
  .rd-quick-card { grid-template-columns: 44px minmax(0,1fr) 14px; min-height: 104px; column-gap: 13px; padding: 18px; }
  .rd-quick-icon { width: 42px; height: 42px; border-radius: 12px; }
  .rd-quick-arrow { display: block; }
  .rd-quick-card > strong { font-size: 13px; }
  .rd-quick-card > span:not(.rd-quick-icon) { font-size: 11px; }
  .rd-recent-list { grid-template-columns: minmax(0,1fr); }
  .rd-command { padding: 18px; }
  .rd-suggestions { gap: 6px; }
  .rd-suggestions > span { display: none; }
  .chat-layout { grid-template-columns: 174px minmax(0,1fr); gap: 15px; }
}

@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); width: 232px; transition: transform .2s; z-index: 60; }
  .sidebar.open { transform: none; box-shadow: 16px 0 65px #253f6b26; }
  .main { margin-left: 0; }
  .mobile-menu { display: grid; }
  .mobile-close { display: block; position: absolute; right: 8px; top: 8px; color: #8c9cb7; background: #f5f8fe; border-radius: 6px; width: 23px; height: 23px; line-height: 20px; font-size: 18px; }
  .content { padding: 27px; }
  .topbar { height: 66px; padding: 0 23px; }
  .rd-top-task { display: inline-flex; }
  .rd-home-heading { padding-top: 7px; padding-bottom: 25px; }
  .rd-home-heading h1 { font-size: 33px; }
  .rd-command { max-width: 730px; }
  .rd-quick-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .rd-quick-card { grid-template-columns: 36px minmax(0,1fr); padding: 16px 13px; column-gap: 10px; }
  .rd-quick-icon { width: 35px; height: 35px; border-radius: 10px; }
  .rd-quick-card > strong { font-size: 12px; }
  .rd-quick-card > span:not(.rd-quick-icon) { font-size: 10px; }
  .rd-quick-arrow { display: none; }
  .employee-grid.rd-role-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .employee { padding: 18px; }
  .employee-foot { flex-wrap: wrap; }
  .api-grid { grid-template-columns: minmax(0,1fr); }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 76px; }
  .content { padding: 24px 20px 30px; }
  .topbar { padding: 0 18px; height: 63px; gap: 8px; }
  .topbar > .flex { gap: 7px; }
  .toolbar { gap: 8px; }
  .crumb { font-size: 11px; gap: 7px; }
  .toolbar .avatar { height: 29px; width: 29px; font-size: 11px; }
  .searchbtn { background: transparent; border-color: transparent; padding: 8px; }
  .searchbtn span, .searchbtn kbd { display: none; }
  .rd-top-task { display: none; }
  .rd-home-heading { padding: 6px 0 24px; }
  .rd-home-heading h1 { font-size: 30px; letter-spacing: -.9px; }
  .rd-home-heading .eyebrow { font-size: 10px; letter-spacing: 1.1px; }
  .rd-home-heading p { font-size: 12px; margin-top: 10px; }
  .rd-home-orbit { right: -4%; width: 180px; opacity: .5; }
  .rd-command { padding: 16px; border-radius: 15px; }
  .rd-command-top { gap: 8px; }
  .rd-command-top > span:first-child { font-size: 11px; }
  .rd-command-caption { font-size: 9px; }
  .rd-command textarea.rd-command-input { font-size: 13px; min-height: 104px; height: 104px; }
  .rd-command-bottom > span { font-size: 10px; }
  .rd-command-bottom .btn { min-height: 34px; padding: 6px 12px; font-size: 11px; }
  .rd-suggestions { justify-content: flex-start; gap: 7px; margin: 16px 0 28px; }
  .rd-suggestions button { font-size: 10px; padding: 5px 8px; }
  .sectionhead.rd-section-title { margin: 25px 0 13px; }
  .rd-section-title h2 { font-size: 16px; }
  .rd-section-title h2 small { display: none; }
  .rd-section-title .btn.ghost { font-size: 10px; }
  .rd-section-title .rightsmall { font-size: 10px; }
  .rd-quick-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
  .rd-quick-card { grid-template-columns: 40px minmax(0,1fr); min-height: 101px; padding: 16px; column-gap: 11px; }
  .rd-quick-card > strong { font-size: 12px; }
  .rd-quick-card > span:not(.rd-quick-icon) { font-size: 10px; }
  .rd-quick-icon { width: 39px; height: 39px; border-radius: 12px; }
  .employee-grid.rd-role-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
  .employee { padding: 20px; }
  .employee-foot { flex-wrap: nowrap; font-size: 9px; }
  .employee-foot span { max-width: none; overflow: visible; }
  .employee p { font-size: 11px; line-height: 1.75; height: auto; min-height: 38px; }
  .employee .chips { height: auto; gap: 5px; }
  .employee .chip { font-size: 9px; }
  .employee-foot > span:first-child { font-size: 8px; }
  .employee-foot > span:last-child { font-size: 10px; }
  .roleicon { width: 44px; height: 44px; }
  .rd-recent-strip { padding: 18px; gap: 15px; }
  .rd-recent-strip p { font-size: 10px; }
  .rd-recent-strip > .btn { font-size: 10px; }
  .pagehead { gap: 13px; flex-wrap: wrap; margin-bottom: 21px; }
  .pagehead h1 { font-size: 23px; line-height: 1.55; }
  .pagehead p { font-size: 12px; line-height: 1.8; }
  .pagehead > .flex { justify-content: flex-start; }
  .tabs { width: 100%; margin-bottom: 21px; padding: 4px; gap: 3px; }
  .tab { padding: 9px 13px; font-size: 12px; }
  .tab-state { font-size: 8px; }
  .panel, .ask-card { padding: 20px; border-radius: 13px; }
  .panel-title { flex-wrap: wrap; margin-bottom: 17px; }
  .panel-title h2 { font-size: 14px; }
  .formrow { grid-template-columns: minmax(0,1fr); gap: 0; }
  .btn { font-size: 12px; padding: 8px 12px; }
  .btn.small { font-size: 10px; padding: 5px 9px; }
  .notice { font-size: 11px; padding: 11px 12px; }
  .notice p { font-size: 11px; }
  p.muted { font-size: 11px; }
  .empty { min-height: 260px; padding: 24px 13px; }
  .page-empty-card { padding: 25px; }
  .image-studio-layout, .speech-layout, .seedance-layout, .split { gap: 17px; }
  .image-prompt { min-height: 205px; }
  .image-result-panel .empty { min-height: 260px; }
  .image-result-card figcaption { font-size: 10px; }
  .speech-banner, .seedance-header { padding: 17px; gap: 12px; }
  .speech-banner > .tag { margin-left: 54px; }
  .speech-layout, .seedance-layout { grid-template-columns: minmax(0,1fr); }
  .speech-knobs { gap: 9px; }
  .speech-knobs input { padding-left: 9px; padding-right: 9px; }
  .speech-placeholder, .seedance-placeholder { min-height: 260px; padding: 25px 18px; }
  .seedance-job { gap: 9px; padding: 12px; }
  .seedance-job-icon { display: none; }
  .seedance-job > .tag { font-size: 9px; max-width: 100px; white-space: normal; }
  .seedance-job strong { font-size: 11px; }
  .seedance-job small { font-size: 9px; }
  .chat-layout { grid-template-columns: minmax(0,1fr); gap: 17px; }
  .chatroles { display: flex; padding: 8px; overflow: auto; }
  .chatroles button { width: auto; white-space: nowrap; padding: 10px 13px; }
  .chatbubble { padding: 16px; font-size: 12px; }
  .chatbubble.user { margin-left: 28px; }
  .assistant-prompt { gap: 9px; }
  .assistant-prompt > .btn { min-width: 62px; padding: 8px 11px; }
  .stat { padding: 17px; }
  .statsline { gap: 12px; }
  .modal { padding: 22px; }
  .modal-backdrop { padding: 17px; }
  #toasts { right: 18px; bottom: 18px; max-width: calc(100vw - 36px); }
}

@media (max-width: 540px) {
  .content { padding: 22px 16px 28px; }
  .topbar { padding: 0 12px; }
  .toolbar { gap: 4px; }
  .crumb > span { display: none; }
  .crumb .chev { display: none; }
  .rd-home-heading h1 { font-size: 27px; letter-spacing: -.9px; }
  .rd-home-heading p { font-size: 11px; max-width: 290px; margin-left: auto; margin-right: auto; }
  .rd-home-heading .eyebrow { margin-bottom: 11px; font-size: 9px; }
  .rd-home-orbit { right: 0; width: 150px; opacity: .34; }
  .rd-command { padding: 15px; box-shadow: 0 7px 23px #385baf08,0 0 0 3px #edf3ff70; }
  .rd-command textarea.rd-command-input { height: 120px; min-height: 120px; font-size: 12px; }
  .rd-command-bottom { gap: 10px; }
  .rd-command-bottom > span { max-width: 148px; font-size: 9px; }
  .rd-command-bottom .btn { flex-shrink: 0; font-size: 10px; padding: 7px 10px; }
  .rd-command-caption { display: none; }
  .rd-suggestions { margin-bottom: 24px; gap: 6px; }
  .rd-suggestions button { padding: 5px 6px; font-size: 9px; gap: 3px; }
  .rd-suggestions button svg { width: 10px; height: 10px; }
  .rd-quick-grid { gap: 10px; }
  .rd-quick-card { grid-template-columns: minmax(0,1fr); align-content: start; grid-template-rows: 37px auto auto; padding: 15px; min-height: 135px; gap: 5px; }
  .rd-quick-icon { grid-column: 1; grid-row: 1; width: 33px; height: 33px; border-radius: 10px; }
  .rd-quick-icon svg { width: 19px; height: 19px; }
  .rd-quick-card > strong { grid-column: 1; font-size: 12px; line-height: 1.7; }
  .rd-quick-card > span:not(.rd-quick-icon) { grid-column: 1; font-size: 9px; }
  .rd-quick-card:after { width: 70px; height: 70px; right: -22px; top: -20px; }
  .employee-grid.rd-role-grid { grid-template-columns: minmax(0,1fr); gap: 13px; }
  .employee { padding: 22px; }
  .employee h3 { margin-top: 15px; font-size: 16px; }
  .employee p { min-height: auto; font-size: 12px; }
  .employee .chip { font-size: 10px; }
  .employee-foot { margin-top: 18px; flex-wrap: nowrap; }
  .employee-foot > span:first-child { font-size: 9px; letter-spacing: .6px; }
  .employee-foot > span:last-child { font-size: 11px; }
  .rd-recent-strip { padding: 18px; }
  .rd-recent-strip > div:first-child { grid-template-columns: 33px auto; gap: 2px 10px; }
  .rd-recent-strip h2 { font-size: 12px; }
  .rd-recent-strip > .btn { margin-left: 43px; }
  .rd-recent-list { gap: 8px; }
  .pagehead h1 { font-size: 22px; }
  .panel { padding: 18px; }
  .panel-title { gap: 9px; }
  .resulttext, .resulttext[aria-label] { padding: 16px; min-height: 300px; }
  .image-result-grid { grid-template-columns: minmax(0,1fr); }
  .speech-audio-card { padding: 20px; }
  .speech-knobs { gap: 8px; }
  .speech-knobs label.field > span { font-size: 11px; }
  .assistant-prompt { flex-wrap: wrap; }
  .assistant-prompt textarea { flex: 1 0 100%; }
  .assistant-prompt .btn { min-height: 36px; margin-left: auto; }
  .workflow-row { gap: 10px; flex-wrap: wrap; }
  .workflow-row .btn { font-size: 10px; }
  .stat .num { font-size: 25px; }
  .stat span { font-size: 10px; }
  .footnote { font-size: 9px; letter-spacing: .3px; }
}

@media (prefers-reduced-motion: reduce) {
  button, a, .sidebar { transition: none; }
  .rd-quick-card:hover, .employee:hover, .project:hover { transform: none; }
}

/* Keep the decorative orbit within the home heading on narrow screens. */
.rd-home-heading { overflow: clip; }

/* Let dialogs shrink inside the viewport, including their close control. */
.modal-backdrop { display: flex; justify-content: center; align-items: center; }
.modal { min-width: 0; flex: 0 1 650px; }

/* Model choice stays next to the conversation or writing input. */
.conversation-model { display:flex; flex-wrap:wrap; align-items:flex-end; gap:10px; margin:12px 0; }
.conversation-model .field { flex:1 1 240px; min-width:0; margin:0; }
.conversation-model select { width:100%; min-width:0; text-overflow:ellipsis; }
.conversation-model > .btn { flex-shrink:0; min-height:40px; }
.conversation-model > p { flex-basis:100%; margin:0; font-size:11px; line-height:1.6; }
.chat-model-name { font-size:11px; opacity:.7; margin-top:10px; overflow-wrap:anywhere; }

/* One-page viral creation workflow. */
.tabs > .viral-entry { flex: 0 0 auto; color: #1656c8; background: #e1ebff; font-weight: 600; text-decoration: none; }
.tabs > .viral-entry:hover { color: #074ac4; background: #d4e3ff; }

.content:has(> .viral-workflow) { padding-top: 18px; }
.viral-page-head { align-items: center; gap: 10px; margin-bottom: 10px; }
.viral-page-head h1 { font-size: 23px; line-height: 1.35; }
.viral-factory-tools { margin-top: 12px; color: #5d6a80; font-size: 12px; }
.viral-factory-tools > summary { width: fit-content; padding: 4px 0; cursor: pointer; }
.viral-factory-tools > .tabs { margin: 6px 0 0; }
.viral-workflow {
  --viral-blue: #0055ff;
  --viral-border: #dadde3;
  --viral-ink: #25272b;
  --viral-muted: #646b74;
  --viral-soft: #f5f6f8;
  min-width: 0;
  color: var(--viral-ink);
}
.viral-workflow [hidden], .viral-workflow #viral-change-note:empty { display: none !important; }
.viral-workflow .viral-columns {
  display: grid;
  grid-template-columns: minmax(0, .93fr) minmax(0, 1.03fr);
  align-items: start;
  gap: 10px;
  padding: 9px;
  border-radius: 15px;
  background: linear-gradient(145deg, #dbe7fe 0%, #edf5fd 39%, #b8e4fc 78%, #e1f2fd 100%);
}
.viral-workflow .viral-column { display: grid; align-content: start; min-width: 0; gap: 10px; }
.viral-workflow .viral-card {
  min-width: 0;
  padding: 13px 15px;
  border: 1px solid #e3e5e9;
  border-radius: 13px;
  background: #fff;
  scroll-margin-top: 80px;
}
.viral-workflow .viral-card-header,
.viral-workflow .viral-card-title,
.viral-workflow .viral-header-tools { display: flex; align-items: center; gap: 7px; min-width: 0; }
.viral-workflow .viral-card-header { justify-content: space-between; flex-wrap: wrap; row-gap: 4px; margin-bottom: 11px; }
.viral-workflow .viral-card-title { flex: 1 0 auto; }
.viral-workflow .viral-header-tools { flex-wrap: wrap; justify-content: flex-end; margin-left: auto; }
.viral-workflow .viral-step-number {
  display: inline-grid;
  place-items: center;
  flex: 0 0 21px;
  height: 21px;
  border-radius: 50%;
  background: #202124;
  color: #fff;
  font-size: 13px;
  font-weight: 550;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.viral-workflow .viral-card-title h2 { margin: 0; color: var(--viral-ink); font-size: 17px; line-height: 1.4; font-weight: 600; }
.viral-workflow .viral-status { color: var(--viral-muted); font-size: 11px; line-height: 1.4; }
.viral-workflow .viral-card-body { display: grid; gap: 9px; min-width: 0; }
.viral-workflow .viral-card-body > * { min-width: 0; max-width: 100%; }
.viral-workflow label.field { margin: 0; color: var(--viral-ink); }
.viral-workflow label.field > span { margin: 0 0 4px; font-size: 12px; }
.viral-workflow .viral-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.viral-workflow .viral-primary {
  justify-content: center;
  min-width: 0;
  min-height: 38px;
  width: 100%;
  padding: 6px 12px;
  border: 1px solid var(--viral-blue);
  border-radius: 7px;
  background: var(--viral-blue);
  color: #fff;
  box-shadow: none;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 550;
}
.viral-workflow .viral-primary:hover:enabled { background: #0048db; border-color: #0048db; color: #fff; }
.viral-workflow .viral-primary:disabled { background: #5274bd; border-color: #5274bd; color: #fff; opacity: 1; }
.viral-workflow .viral-rewrite-actions > button { flex: 1 1 0; width: auto; }
.viral-workflow .viral-note { margin: 0; color: var(--viral-muted); font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.viral-workflow #viral-change-note:not(:empty), .viral-workflow .notice { padding: 8px 10px; margin: 0; border-radius: 7px; overflow-wrap: anywhere; font-size: 12px; }
.viral-workflow #viral-change-note:not(:empty) { margin-bottom: 8px; background: #eff5ff; color: #2e5294; }
.viral-workflow .viral-textarea {
  display: block;
  width: 100%;
  min-height: 112px;
  height: clamp(134px, 18vh, 188px);
  padding: 10px 13px;
  border: 1px solid var(--viral-border);
  border-radius: 8px;
  background: #fff;
  color: var(--viral-ink);
  font-size: 15px;
  line-height: 1.65;
  box-shadow: none;
  resize: vertical;
}
.viral-workflow .viral-textarea::placeholder { color: #69717e; }
.viral-workflow .viral-textarea[data-viral="instructions"],
.viral-workflow textarea[data-viral-share] { min-height: 66px; height: 72px; }
.viral-workflow .viral-textarea:focus, .viral-workflow textarea[data-viral-share]:focus { border-color: var(--viral-blue); outline: 2px solid #d9e6ff; box-shadow: none; }
.viral-workflow .viral-source-panel { display: grid; gap: 8px; padding: 10px; border: 1px solid #dde5ef; border-radius: 8px; background: #f8faff; }
.viral-workflow .viral-source-panel button[aria-pressed="true"] { border-color: #a6bcf2; background: #e9f0ff; color: #2054aa; }
.viral-workflow .viral-script-editor { overflow: hidden; border: 1px solid var(--viral-border); border-radius: 9px; background: #fff; }
.viral-workflow .viral-script-editor:focus-within { border-color: var(--viral-blue); box-shadow: 0 0 0 2px #d9e6ff; }
.viral-workflow .viral-script-editor .viral-textarea { border: 0; border-radius: 0; outline: none; box-shadow: none; }
.viral-workflow .viral-editor-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; padding: 3px 9px 6px; }
.viral-workflow .viral-editor-tool { display: inline-flex; align-items: center; gap: 4px; min-height: 27px; padding: 2px 5px; border: 0; border-radius: 5px; background: transparent; color: #535860; font-size: 12px; line-height: 1.4; }
.viral-workflow .viral-editor-tool svg { width: 15px; height: 15px; }
.viral-workflow .viral-editor-tool:hover, .viral-workflow .viral-editor-tool[aria-expanded="true"] { background: #eaf1ff; color: #1c55bd; }
.viral-workflow .viral-editor-options { display: flex; flex-wrap: wrap; gap: 5px; padding: 6px 10px 8px; border-top: 1px solid #e7ebf2; }
.viral-workflow .viral-editor-options button { padding: 3px 8px; min-height: 28px; max-width: 100%; border: 1px solid #dce4f2; border-radius: 6px; background: #f5f8fd; color: #415472; font-size: 12px; }
.viral-workflow .viral-editor-footer { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.viral-workflow .viral-editor-footer small { font-size: 11px; }
.viral-workflow .viral-review { white-space: pre-wrap; }
.viral-workflow #viral-script-count { margin-left: auto; font-variant-numeric: tabular-nums; white-space: nowrap; }
.viral-workflow .viral-rewrite-modes { display: flex; align-items: center; flex-wrap: wrap; column-gap: clamp(12px, 2vw, 24px); row-gap: 3px; }
.viral-workflow .viral-rewrite-modes label { display: inline-flex; align-items: center; gap: 6px; padding: 2px 0; color: var(--viral-ink); font-size: 14px; cursor: pointer; }
.viral-workflow .viral-rewrite-modes input { width: 16px; height: 16px; margin: 0; accent-color: var(--viral-blue); }

.viral-workflow .viral-voice-row,
.viral-workflow .viral-avatar-row { display: flex; align-items: stretch; gap: 7px; min-width: 0; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #bfc5cc transparent; }
.viral-workflow .viral-voice-chip,
.viral-workflow .viral-more { flex: 0 0 auto; min-height: 35px; border: 2px solid transparent; border-radius: 8px; padding: 4px 10px; background: var(--viral-soft); color: var(--viral-ink); font-size: 13px; line-height: 1.45; }
.viral-workflow .viral-voice-chip { min-width: 68px; max-width: clamp(78px, 9vw, 145px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viral-workflow .viral-more { position: sticky; right: 0; z-index: 1; margin-left: auto; color: #525860; box-shadow: -5px 0 0 #fff; }
.viral-workflow .viral-voice-chip.is-selected,
.viral-workflow .viral-avatar-chip.is-selected { border-color: var(--viral-blue); }
.viral-workflow .viral-picker select { width: 100%; min-width: 0; border-color: var(--viral-border); }
.viral-workflow .viral-settings { display: grid; justify-items: start; gap: 5px; }
.viral-workflow .viral-setting { display: flex; align-items: center; gap: 8px; color: var(--viral-ink); font-size: 14px; }
.viral-workflow .viral-stepper { display: inline-flex; align-items: stretch; min-height: 32px; border: 1px solid var(--viral-border); border-radius: 7px; background: #fff; }
.viral-workflow .viral-stepper > button { min-width: 29px; padding: 0 4px; border: 0; border-radius: 6px; background: transparent; color: #30343a; font-size: 17px; line-height: 1.15; }
.viral-workflow .viral-stepper > button:hover:enabled { background: #eff4ff; color: var(--viral-blue); }
#viral-workflow .viral-stepper > input[type="number"] { appearance: textfield; width: 43px; height: 30px; min-width: 0; padding: 2px 4px; border: 0; border-radius: 5px; box-shadow: none; background: #fff; color: var(--viral-ink); text-align: center; font: inherit; font-variant-numeric: tabular-nums; }
.viral-workflow .viral-stepper:focus-within { border-color: var(--viral-blue); }
#viral-workflow .viral-stepper > input:focus-visible { outline: 2px solid #b1c8fc; outline-offset: -2px; }
.viral-workflow .viral-stepper > input::-webkit-inner-spin-button,
.viral-workflow .viral-stepper > input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.viral-workflow .viral-speech-actions { display: grid; gap: 7px; }
.viral-workflow .viral-upload,
.viral-workflow .viral-upload-inline,
.viral-workflow .viral-avatar-upload {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  min-width: 0;
  border: 1px dashed #ccd2da;
  border-radius: 7px;
  background: #f6f7f8;
  color: #484e57;
  font-size: 13px;
  text-align: center;
  cursor: pointer;
}
.viral-workflow .viral-upload, .viral-workflow .viral-upload-inline { flex-wrap: wrap; padding: 7px 10px; min-height: 44px; }
.viral-workflow :is(.viral-upload, .viral-upload-inline, .viral-avatar-upload) input[type="file"],
.viral-workflow .viral-skip input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; border: 0; clip-path: inset(50%); overflow: hidden; }
.viral-workflow :is(.viral-upload, .viral-upload-inline, .viral-avatar-upload) svg { width: 17px; height: 17px; flex-shrink: 0; color: #767d86; }
.viral-workflow :is(.viral-upload, .viral-upload-inline) small { width: 100%; color: var(--viral-muted); font-size: 11px; line-height: 1.35; }
.viral-workflow :is(.viral-upload, .viral-upload-inline, .viral-avatar-upload):hover { background: #f1f5ff; border-color: #9db7ee; }
.viral-workflow :is(.viral-upload, .viral-upload-inline, .viral-avatar-upload):has(input:disabled) { opacity: .62; cursor: not-allowed; }

.viral-workflow .viral-skip { display: inline-flex; align-items: center; gap: 5px; position: relative; color: var(--viral-muted); font-size: 12px; cursor: pointer; }
.viral-workflow .viral-skip-label { order: -1; }
.viral-workflow .viral-switch-track { position: relative; display: block; width: 33px; height: 19px; border-radius: 99px; background: #c6c9ce; }
.viral-workflow .viral-switch-track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #1f293745; }
.viral-workflow .viral-skip input:checked + .viral-switch-track { background: var(--viral-blue); }
.viral-workflow .viral-skip input:checked + .viral-switch-track::after { transform: translateX(14px); }
.viral-workflow .viral-avatar-chip,
.viral-workflow .viral-avatar-upload { flex: 0 0 79px; min-width: 0; height: 99px; border-radius: 11px; }
.viral-workflow .viral-avatar-chip { position: relative; overflow: hidden; padding: 0; border: 2px solid transparent; background: #e8eaef; }
.viral-workflow .viral-person-thumb { display: block; width: 100%; height: 100%; object-fit: cover; }
.viral-workflow .viral-avatar-chip > span { position: absolute; inset: auto 0 0; padding: 12px 4px 3px; background: linear-gradient(transparent,#141a25c7); color: #fff; font-size: 11px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viral-workflow .viral-avatar-upload { flex-direction: column; flex-wrap: nowrap; padding: 5px; font-size: 12px; }
.viral-workflow .viral-avatar-row:not(:has(.viral-avatar-chip)) > .viral-avatar-upload { flex: 1; min-height: 80px; height: auto; gap: 4px; padding: 10px; }
.viral-workflow .viral-avatar-row:not(:has(.viral-avatar-chip)) > .viral-avatar-upload > span { color: #444b57; font-size: 14px; }
.viral-workflow .viral-avatar-row:has(.viral-avatar-chip) > .viral-avatar-upload > small { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.viral-workflow .viral-input-preview { max-width: 100%; color: var(--viral-muted); font-size: 12px; }
.viral-workflow .viral-input-preview > summary { cursor: pointer; }
.viral-workflow .viral-audio-preview,
.viral-workflow .viral-video-preview { display: grid; gap: 7px; min-width: 0; }
.viral-workflow audio,
.viral-workflow :is(.viral-video-preview, .viral-input-preview) video { display: block; width: 100%; max-width: 100%; }
.viral-workflow :is(.viral-video-preview, .viral-input-preview) video { max-height: 360px; border-radius: 8px; background: #1b2027; object-fit: contain; }
.oral-video-preview { display: grid; gap: 7px; min-width: 0; justify-items: start; }
.oral-video-preview video { display: block; width: auto; max-width: 100%; max-height: 640px; height: auto; border-radius: 10px; background: #1b2027; object-fit: contain; }
.viral-workflow .viral-audio-preview a, .viral-workflow .viral-video-preview a { justify-self: start; }
.viral-workflow :is(button, a, select, input):focus-visible,
.viral-workflow :is(.viral-upload, .viral-upload-inline, .viral-avatar-upload):focus-within,
.viral-workflow .viral-skip input:focus-visible + .viral-switch-track { outline: 2px solid #1655d2; outline-offset: 2px; }
.viral-workflow :is(.viral-voice-chip, .viral-more, .viral-avatar-chip):focus-visible { outline-offset: -3px; }

@media (min-width: 701px) and (max-height: 820px) {
  .viral-workflow .viral-card { padding: 10px 13px; }
  .viral-workflow .viral-card-header { margin-bottom: 8px; }
  .viral-workflow .viral-card-body { gap: 7px; }
  .viral-workflow .viral-textarea { height: 124px; }
  .viral-workflow .viral-avatar-chip, .viral-workflow .viral-avatar-upload { height: 82px; flex-basis: 65px; }
}
@media (max-width: 700px) {
  .viral-workflow .viral-columns { grid-template-columns: minmax(0,1fr); gap: 9px; padding: 6px; }
  .viral-workflow .viral-column { gap: 9px; }
  .viral-workflow .viral-card { padding: 12px; }
  .viral-workflow .viral-textarea { height: 156px; }
  .viral-workflow :is(.viral-textarea, textarea[data-viral-share], .viral-picker select),
  #viral-workflow .viral-stepper > input[type="number"] { font-size: 16px; }
  .viral-workflow .viral-editor-tool, .viral-workflow .viral-editor-options button { min-height: 34px; }
  .viral-workflow .viral-primary { min-height: 42px; }
  .viral-workflow .viral-voice-chip, .viral-workflow .viral-more { min-height: 40px; }
  .viral-workflow .viral-stepper { min-height: 36px; }
  .viral-workflow .viral-stepper > button { min-width: 34px; }
  .viral-workflow .viral-skip { min-height: 30px; }
}

/* Smart editing shares the existing video workspace and keeps source and result distinct. */
.mediakit-layout { align-items: start; }
.mediakit-layout h3 { margin-bottom: 12px; }
.mediakit-layout h3 small { font-weight: 400; font-size: 12px; }
.mediakit-upload { margin-bottom: 14px; }
.mediakit-source-player { max-height: 280px; background: #141a28; }
.mediakit-checks { display: flex; flex-wrap: wrap; gap: 16px; margin: 14px 0 20px; }
.mediakit-checks label { display: inline-flex; align-items: center; gap: 8px; }
.mediakit-checks input { width: 18px; height: 18px; accent-color: var(--primary, #3868e8); }
.mediakit-material-list { display: grid; gap: 8px; }
.mediakit-material-list > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 12px; background: #f5f7fc; border-radius: 10px; }
.mediakit-material-list span { min-width: 0; overflow-wrap: anywhere; }
.mediakit-layout audio { max-width: 100%; width: 100%; }
.mediakit-result .seedance-player { max-height: 620px; }
.mediakit-admin summary { cursor: pointer; font-weight: 600; }
.mediakit-admin[open] summary { margin-bottom: 14px; }
.mediakit-works { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.mediakit-works video { max-height: 300px; background: #141a28; }
@media (max-width: 760px) { .mediakit-checks { flex-direction: column; gap: 12px; } .mediakit-material-list > div { align-items: flex-start; } }

/* The fifth step lives beside the existing four cards; only its own controls refresh. */
.viral-workflow .viral-columns-five .viral-editing-column { grid-column: 1 / -1; }
.viral-workflow .viral-editing-card { height: 100%; }
.viral-workflow .viral-editing-statusline { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: -4px 0 9px; }
.viral-workflow .viral-editing-statusline > button { min-height: 26px; padding: 3px 8px; font-size: 11px; }
.viral-workflow .viral-editing-source { display: grid; gap: 6px; }
.viral-workflow .viral-editing-section { display: grid; gap: 7px; margin-top: 11px; }
.viral-workflow .viral-editing-label { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.viral-workflow .viral-editing-label strong { font-size: 13px; font-weight: 550; }
.viral-workflow .viral-editing-label > span { color: var(--viral-muted); font-size: 11px; }
.viral-workflow .viral-editing-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 6px; }
.viral-workflow .viral-editing-thumbs:empty { display: none; }
.viral-workflow .viral-editing-thumb { min-width: 0; position: relative; border: 1px solid #dce3ed; border-radius: 7px; background: #f3f6fa; overflow: hidden; }
.viral-workflow .viral-editing-thumb > img, .viral-workflow .viral-editing-thumb > video { display: block; width: 100%; height: 61px; object-fit: cover; }
.viral-workflow .viral-editing-thumb > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 3px 4px; font-size: 10px; }
.viral-workflow .viral-editing-thumb > button { position: absolute; top: 2px; right: 2px; width: 21px; height: 21px; min-width: 21px; min-height: 21px; padding: 0; border-radius: 50%; border: 0; background: #172339bb; color: white; line-height: 1; font-size: 16px; }
.viral-workflow .viral-editing-card .field { margin: 0; gap: 5px; min-width: 0; }
.viral-workflow .viral-editing-card .field > span { font-size: 12px; }
.viral-workflow .viral-editing-card select { min-width: 0; width: 100%; padding: 7px 6px; font-size: 12px; min-height: 34px; }
.viral-workflow .viral-editing-card .formrow { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: 8px; margin-bottom: 9px; }
.viral-workflow .viral-editing-card .mediakit-checks { flex-direction: row; gap: 10px; margin: 13px 0; font-size: 12px; }
.viral-workflow .viral-editing-card .mediakit-checks input { width: 15px; height: 15px; margin: 0; }
.viral-workflow .viral-editing-ratios { display: flex; gap: 6px; }
.viral-workflow .viral-editing-ratios > label { flex: 1; min-width: 0; position: relative; cursor: pointer; }
.viral-workflow .viral-editing-ratios input { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
.viral-workflow .viral-editing-ratios span { display: grid; gap: 2px; justify-items: center; padding: 7px 4px; border: 1px solid #d8dee9; border-radius: 7px; background: #f8f9fc; color: #4c5463; font-size: 13px; }
.viral-workflow .viral-editing-ratios small { color: #7b8492; font-size: 10px; }
.viral-workflow .viral-editing-ratios input:checked + span { border-color: var(--viral-blue); background: #f0f5ff; color: #0055ff; box-shadow: inset 0 0 0 1px var(--viral-blue); }
.viral-workflow .viral-editing-ratios input:focus-visible + span { outline: 2px solid var(--viral-blue); outline-offset: 2px; }
.viral-workflow .viral-editing-instructions { color: var(--viral-muted); font-size: 12px; }
.viral-workflow .viral-editing-instructions summary { cursor: pointer; padding: 4px 0; }
.viral-workflow .viral-editing-instructions textarea { height: 78px; min-height: 78px; font-size: 13px; margin-top: 6px; }
.viral-workflow .viral-editing-submit { display: grid; gap: 7px; margin-top: auto; padding-top: 7px; }
.viral-workflow .viral-editing-card .seedance-player { max-height: 340px; border-radius: 8px; background: #141a28; }
.viral-workflow .viral-editing-card #mediakit-preview:empty, .viral-workflow .viral-editing-card #mediakit-history:empty { display: none; }
.viral-workflow .viral-editing-card #mediakit-preview { display: grid; gap: 7px; }
.viral-workflow .viral-editing-card #mediakit-preview a { justify-self: start; font-size: 12px; }
.viral-workflow .viral-editing-history { color: var(--viral-muted); font-size: 11px; }
.viral-workflow .viral-editing-history summary { cursor: pointer; }
.viral-workflow .viral-editing-history > div { display: grid; gap: 5px; margin-top: 6px; }
.viral-workflow .viral-editing-history button { display: flex; justify-content: space-between; gap: 7px; border: 1px solid #dce4ef; border-radius: 6px; background: #f7f9fc; padding: 5px 7px; text-align: left; font-size: 11px; }
.viral-workflow .viral-editing-history button[aria-current="true"] { border-color: #8daef3; background: #f0f5ff; }
@media (min-width: 1100px) {
  .viral-workflow .viral-columns-five { grid-template-columns: minmax(0,.98fr) minmax(0,1.04fr) minmax(0,1fr); align-items: stretch; }
  .viral-workflow .viral-columns-five .viral-editing-column { grid-column: auto; align-content: stretch; }
  .viral-workflow .viral-editing-card #viral-editing-body { height: calc(100% - 83px); display: flex; flex-direction: column; }
}
@media (max-width: 700px) {
  .viral-workflow .viral-editing-card input, .viral-workflow .viral-editing-card select, .viral-workflow .viral-editing-instructions textarea { font-size: 16px; }
  .viral-workflow .viral-editing-thumbs { grid-template-columns: repeat(4,minmax(0,1fr)); }
}

/* Credit plans and published pricing guidance. */
.credit-page { max-width: 1200px; margin: 0 auto; }
.credit-status { display: flex; align-items: flex-start; gap: 14px; padding: 20px 24px; margin-bottom: 28px; border: 1px solid #cadcfb; border-radius: 16px; background: #edf4ff; }
.credit-status-mark { white-space: nowrap; border: 1px solid #bfd3f9; border-radius: 8px; padding: 3px 10px; font-size: 12px; color: #2854ca; background: #fff; }
.credit-status strong { color: #264b96; font-size: 16px; }
.credit-status p { color: #48638c; margin: 4px 0 0; }
.credit-intro { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 0 0 18px; }
.credit-intro h2 { margin: 0; font-size: 22px; }
.credit-intro > span { color: var(--muted); }
.credit-plans { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; align-items: start; }
.credit-plan { min-width: 0; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--rd-shadow); }
.credit-plan-recommended { border: 2px solid var(--rd-blue); padding: 23px; box-shadow: 0 8px 30px #3868e814; }
.credit-plan-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 30px; }
.credit-plan-heading h2 { margin: 0; font-size: 19px; }
.credit-recommended, .credit-gift { border-radius: 7px; font-size: 12px; line-height: 1.6; padding: 3px 8px; white-space: nowrap; }
.credit-recommended { background: var(--rd-blue); color: #fff; }
.credit-gift { color: #3f638d; background: #f1f5fb; }
.credit-plan-price { margin-top: 20px; font-size: 42px; line-height: 1.2; letter-spacing: -1px; font-weight: 700; color: var(--ink); }
.credit-plan-price > span { font-size: 21px; margin-right: 5px; font-weight: 500; }
.credit-plan-total { display: flex; flex-direction: column; margin-top: 16px; padding: 16px; background: #f6f8fc; border-radius: 12px; }
.credit-plan-recommended .credit-plan-total { background: #edf3ff; }
.credit-plan-total strong { font-size: 29px; line-height: 1.2; letter-spacing: -.7px; color: var(--rd-blue-dark); }
.credit-plan-total span { font-size: 12px; margin-top: 5px; color: var(--muted); }
.credit-page dl { margin: 0; }
.credit-page dl > div { display: flex; justify-content: space-between; gap: 12px; margin: 8px 0; }
.credit-page dt { color: var(--muted); font-weight: 400; }
.credit-page dd { margin: 0; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.credit-plan .credit-plan-breakdown { padding: 10px 0 16px; border-bottom: 1px solid var(--line); }
.credit-plan-reference { padding-top: 16px; }
.credit-plan-reference h3 { font-size: 13px; margin: 0 0 12px; font-weight: 600; }
.credit-plan-reference p, .credit-extra p { margin: 8px 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.credit-extra { margin: 14px 0 0; }
.credit-extra summary { cursor: pointer; color: #486289; font-size: 13px; }
.credit-extra dl { font-size: 12px; }
.credit-recharge { margin-top: 20px; }
.credit-recharge summary { cursor: pointer; list-style: none; padding: 10px 14px; text-align: center; border-radius: 10px; border: 1px solid #cad8f7; color: var(--rd-blue-dark); background: #f8faff; font-weight: 600; }
.credit-recharge summary::-webkit-details-marker { display: none; }
.credit-plan-recommended .credit-recharge summary { background: var(--rd-blue); border-color: var(--rd-blue); color: #fff; }
.credit-recharge p, .credit-recharge label { display: block; color: var(--muted); font-size: 12px; }
.credit-recharge textarea { display: block; width: 100%; margin-top: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 9px; font: inherit; line-height: 1.65; color: var(--ink); resize: vertical; min-height: 130px; background: #fafbfe; }
.credit-page summary:focus-visible { outline: 3px solid #9bb8ff; outline-offset: 3px; }
.credit-reference-note { margin: 18px 0 28px; color: var(--muted); font-size: 12px; }
.credit-rules, .credit-explainer { margin-top: 22px; padding: 26px; }
.credit-section-heading { display: flex; justify-content: space-between; align-items: start; gap: 15px; }
.credit-section-heading h2, .credit-explainer h2 { font-size: 20px; margin: 0 0 6px; }
.credit-section-heading p, .credit-table-note { color: var(--muted); font-size: 13px; margin: 4px 0 12px; }
.credit-version { color: var(--muted); font-size: 12px; border: 1px solid var(--line); border-radius: 7px; padding: 2px 8px; }
.credit-rules h3 { font-size: 15px; margin: 26px 0 12px; }
.credit-table-wrap { overflow-x: auto; margin-top: 12px; }
.credit-table-wrap table { width: 100%; border-collapse: collapse; font-size: 13px; }
.credit-table-wrap th { text-align: left; font-weight: 500; color: var(--muted); background: #f6f8fc; }
.credit-table-wrap th, .credit-table-wrap td { border-bottom: 1px solid var(--line); padding: 13px 15px; line-height: 1.65; }
.credit-table-wrap td:first-child { font-weight: 500; }
.credit-rate-extra { padding: 16px 0 0; }
.credit-unpriced { margin-top: 24px; padding: 15px 18px; border: 1px solid var(--line); border-radius: 10px; background: #fafbfe; }
.credit-unpriced strong { font-size: 14px; }
.credit-unpriced p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.credit-explainer ul { padding-left: 20px; margin: 14px 0 0; color: var(--muted); font-size: 13px; }
.credit-explainer li { margin: 8px 0; }
@media (max-width: 1050px) and (min-width: 761px) {
  .credit-plan { padding: 17px; }
  .credit-plan-recommended { padding: 16px; }
  .credit-plan-heading { flex-wrap: wrap; }
}
@media (max-width: 760px) {
  .credit-plans { grid-template-columns: 1fr; }
  .credit-status { flex-direction: column; padding: 18px; gap: 10px; }
  .credit-intro { display: block; }
  .credit-intro > span { display: block; margin-top: 7px; }
  .credit-rules, .credit-explainer { padding: 18px; }
  .credit-table-wrap th, .credit-table-wrap td { padding: 10px 8px; min-width: 80px; }
  .credit-plan-price { font-size: 38px; }
}

/* Student wallet: shared balance and arrival records. */
.student-credit-link{display:inline-flex;align-items:center;gap:6px;padding:8px 12px;border:1px solid #dce5fa;border-radius:10px;background:#f4f7ff;color:#415a89;text-decoration:none;font-size:13px;white-space:nowrap}
.student-credit-link strong{color:#2e61df;font-variant-numeric:tabular-nums}
.student-wallet{padding:24px;border:1px solid #d6e2fc;border-radius:18px;background:linear-gradient(120deg,#edf4ff,#fff);margin-bottom:20px}
.student-wallet-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.student-wallet-head h2{margin:0;font-size:18px}
.student-wallet-balance{display:block;font-size:42px;font-weight:750;line-height:1.35;color:#285bcb;font-variant-numeric:tabular-nums;margin:12px 0}
.student-wallet-balance small{font-size:15px;font-weight:500;margin-left:8px;color:#60759a}
.student-wallet-note,.student-wallet-time,.student-wallet-status{font-size:13px;line-height:1.65;color:#5b6e91}
.student-wallet-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:14px}
.student-wallet-error{background:#fff3eb;color:#9b4d22;padding:10px 12px;border-radius:10px;font-size:13px;margin:12px 0;overflow-wrap:anywhere}
.student-credit-ledger{margin-top:20px;text-align:left}
.student-credit-ledger-table{width:100%;border-collapse:collapse;font-size:14px}
.student-credit-ledger-table th,.student-credit-ledger-table td{padding:13px 12px;border-bottom:1px solid #e7edf7;text-align:left;vertical-align:top}
.student-credit-ledger-table th{color:#5e7398;font-size:13px;font-weight:600;background:#f7f9fe}
.student-credit-ledger-table td:last-child{min-width:140px;max-width:400px;overflow-wrap:anywhere;white-space:normal}
.student-credit-ledger-table small{display:block;margin-top:4px;color:#71819d}
.student-credit-plus{color:#18724f;font-weight:650;white-space:nowrap}.student-credit-minus{color:#b64e35;font-weight:650;white-space:nowrap}
.student-credit-empty{padding:30px 12px;text-align:center;color:#7385a4;font-size:14px}
@media(max-width:600px){.student-wallet{padding:18px}.student-wallet-balance{font-size:34px}.student-credit-link{font-size:12px;padding:6px 8px}.student-wallet-actions .btn{min-height:40px}.student-credit-ledger-table{min-width:500px}}

/* Illustrated home entries. Keep the workspace and all creation pages light. */
.rd-home .rd-quick-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.rd-home .rd-quick-card { grid-template-columns: 80px minmax(0,1fr) 16px; grid-template-rows: auto auto; min-height: 108px; padding: 12px; column-gap: 14px; row-gap: 5px; border-color: #e1e8fb; border-radius: 16px; background: linear-gradient(115deg,#fff 35%,#f0f3ff); box-shadow: 0 4px 16px #3853a308; }
.rd-home .rd-quick-card:after { display: none; }
.rd-home .rd-quick-art { grid-column: 1; grid-row: 1 / 3; display: block; width: 80px; height: 80px; object-fit: cover; object-position: center 35%; border-radius: 12px; background: #142153; box-shadow: 0 3px 12px #4854b125; }
.rd-home .rd-quick-card > strong { grid-column: 2; align-self: end; color: #27375a; font-size: 14px; line-height: 1.55; font-weight: 650; overflow-wrap: anywhere; }
.rd-home .rd-quick-card > .rd-quick-desc { grid-column: 2; align-self: start; color: #657594; font-size: 11px; line-height: 1.65; }
.rd-home .rd-quick-arrow { display: block; grid-column: 3; grid-row: 1 / 3; width: 16px; height: 16px; color: #697fd4; }
.rd-home .rd-quick-card:hover { border-color: #a4b6f6; box-shadow: 0 8px 24px #4c62b315; }
.rd-home .rd-role-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.rd-home .rd-role-card { display: flex; flex-direction: column; padding: 0; border: 1px solid #e1e8f8; border-radius: 20px; background: #fff; box-shadow: 0 5px 20px #3853a30a; }
.rd-home .rd-role-card:before { display: none; }
.rd-home .rd-role-card:hover { border-color: #a6b7f7; box-shadow: 0 12px 32px #3a50a31a; }
.rd-home .rd-role-cover { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(135deg,#151a49,#26346e 58%,#3a477e); }
.rd-home .rd-role-cover img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.rd-home .rd-role-cover > .tag { position: absolute; top: 14px; right: 14px; color: #46516c; background: #f7f8fff2; border: 1px solid #ffffffb3; border-radius: 30px; padding: 5px 10px; font-size: 11px; box-shadow: 0 2px 12px #0c12352b; }
.rd-home .rd-role-cover > .tag.rd-ready { color: #245a77; background: #e4fcfff2; border-color: #9ee8f5; }
.rd-home .rd-role-body { flex: 1; display: flex; flex-direction: column; padding: 18px 20px 16px; }
.rd-home .rd-role-name { margin: 0 0 8px; color: #263653; font-size: 18px; font-weight: 650; line-height: 1.5; }
.rd-home .rd-role-body > p { height: auto; min-height: 24px; margin: 0; color: #50617e; font-size: 13px; line-height: 1.8; }
.rd-home .rd-role-body .chips { flex-wrap: wrap; height: auto; margin: 13px 0 17px; gap: 7px; }
.rd-home .rd-role-body .chip { padding: 4px 9px; color: #5e6c92; border-radius: 7px; background: #f0f3fc; font-size: 11px; line-height: 1.5; }
.rd-home .rd-role-body .employee-foot { flex-wrap: nowrap; margin-top: auto; padding-top: 13px; border-top: 1px solid #edf0f8; gap: 8px; }
.rd-home .rd-role-body .employee-foot > span:first-child { max-width: none; color: #7a86a4; font-size: 9px; letter-spacing: .65px; }
.rd-home .rd-role-body .employee-foot > span:last-child { max-width: none; color: #536ed0; font-size: 12px; font-weight: 550; }
.rd-home .rd-role-card.rd-coming .employee-foot > span:last-child { color: #677591; }
.rd-home .rd-quick-card:focus-visible, .rd-home .rd-role-card:focus-visible { outline: 3px solid #748ef1; outline-offset: 4px; }
@media (max-width: 1180px) {
  .rd-home .rd-quick-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .rd-home .rd-role-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px; }
  .rd-home .rd-role-body { padding: 17px 18px 15px; }
}
@media (max-width: 640px) {
  .rd-home .rd-quick-grid { gap: 10px; }
  .rd-home .rd-quick-card { grid-template-columns: 52px minmax(0,1fr); min-height: 91px; padding: 10px; column-gap: 10px; row-gap: 3px; border-radius: 13px; }
  .rd-home .rd-quick-art { width: 52px; height: 65px; border-radius: 9px; }
  .rd-home .rd-quick-card > strong { font-size: 12px; }
  .rd-home .rd-quick-card > .rd-quick-desc { font-size: 10px; line-height: 1.55; }
  .rd-home .rd-quick-arrow { display: none; }
  .rd-home .rd-role-grid { grid-template-columns: minmax(0,1fr); gap: 18px; }
  .rd-home .rd-role-card { border-radius: 17px; }
  .rd-home .rd-role-body { padding: 17px 18px 16px; }
  .rd-home .rd-role-body .employee-foot > span:first-child { font-size: 9px; }
}
@media (max-width: 360px) {
  .rd-home .rd-quick-card { grid-template-columns: minmax(0,1fr); grid-template-rows: 64px auto auto; min-height: 146px; row-gap: 4px; }
  .rd-home .rd-quick-art { grid-column: 1; grid-row: 1; width: 100%; height: 64px; }
  .rd-home .rd-quick-card > strong, .rd-home .rd-quick-card > .rd-quick-desc { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .rd-home .rd-quick-card:hover, .rd-home .rd-role-card:hover { transform: none; }
}

/* Growth workspace: editable outline and local PowerPoint export. */
.ppt-workbench{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.25fr);gap:22px;align-items:start}
.ppt-workbench>.panel{min-width:0;padding:24px}
.ppt-input-panel textarea{min-height:220px;resize:vertical}
.ppt-workbench .muted{font-size:13px;line-height:1.7;color:#657998}
.ppt-outline-editor{min-height:320px;resize:vertical;line-height:1.7}
.ppt-export-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px}
.ppt-export-actions .btn:disabled{opacity:.5;cursor:not-allowed}
.ppt-export-status{margin:12px 0 18px}
.ppt-slide-preview{background:#fff;border:1px solid #dce6fa;border-top:5px solid #3168e8;border-radius:12px;padding:24px;aspect-ratio:16/9;display:flex;flex-direction:column;overflow-wrap:anywhere;box-shadow:0 6px 20px #22447708}
.ppt-slide-topline{display:flex;justify-content:space-between;gap:20px;color:#7184a5;font-size:11px}
.ppt-slide-topline span:first-child{max-width:80%}
.ppt-slide-preview h3{color:#245cc7;font-size:22px;line-height:1.35;margin:24px 0 18px}
.ppt-slide-preview ul{padding-left:20px;margin:0 0 18px;color:#233952;font-size:15px;line-height:1.7}
.ppt-slide-preview li+li{margin-top:9px}
.ppt-slide-footer{margin-top:auto;padding-top:15px;color:#8594ad;font-size:10px}
.ppt-slide-pages{display:flex;flex-wrap:wrap;gap:6px;margin:14px 0}
.ppt-slide-pages .pill{min-width:36px;min-height:34px}
.ppt-slide-notes{font-size:13px;line-height:1.7;color:#607393}
.ppt-slide-notes summary{cursor:pointer}
.ppt-slide-notes p{white-space:pre-wrap;overflow-wrap:anywhere;padding:12px;background:#f5f8ff;border-radius:8px}
@media(max-width:1000px){.ppt-workbench{grid-template-columns:1fr}.ppt-input-panel textarea{min-height:150px}}
@media(max-width:600px){.ppt-workbench>.panel{padding:17px}.ppt-slide-preview{padding:18px;aspect-ratio:auto;min-height:230px}.ppt-slide-preview h3{font-size:20px}.ppt-slide-preview ul{font-size:14px}.ppt-export-actions .btn{flex:1;white-space:nowrap}}

/* 20261114 简化工作台：混剪 / 口播统一使用三步式布局 */
.wb-split { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 18px; }
.wb-panel { padding: 20px; }
.wb-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.wb-head h2 { margin: 0; color: #33445f; font-size: 17px; font-weight: 650; letter-spacing: -.2px; }
.wb-kicker { display: block; margin-bottom: 4px; color: #8aa0c3; font-size: 10px; letter-spacing: 1.2px; }
.wb-sub { margin: 0 0 14px; color: #8997ad; font-size: 12px; line-height: 1.7; }
.wb-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; min-height: 108px; gap: 4px; padding: 15px; border: 1px dashed #cbd9ee; border-radius: 12px; background: #f8fbff; color: #6c85a9; text-align: center; transition: .16s; }
.wb-drop:hover:not(:disabled) { border-color: #93b1e3; background: #f3f8ff; }
.wb-drop.dragging:not(:disabled) { border-color: #3b82f6; background: #eaf3ff; box-shadow: 0 0 0 3px rgba(59,130,246,.16); }
.wb-drop:disabled { opacity: .65; }
.wb-drop svg { width: 25px; height: 25px; color: #86a5d2; }
.wb-drop strong { margin-top: 2px; color: #526f97; font-size: 13px; font-weight: 600; }
.wb-drop small { color: #9aaabd; font-size: 10px; }
.wb-selected { margin: 12px 0 2px; padding: 10px 11px; border: 1px solid #eef3f9; border-radius: 10px; background: #fbfcfe; }
.wb-selected-head { display: flex; align-items: center; justify-content: space-between; color: #6f819d; font-size: 11px; }
.wb-link { border: 0; padding: 0; background: transparent; color: #7792bc; font-size: 11px; }
.wb-link:hover { color: #3868e8; }
.wb-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.wb-chip { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 5px 8px; border: 1px solid #dbe8fb; border-radius: 6px; background: #f2f7ff; color: #5b7ba7; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wb-chip span { color: #90a5c2; font-size: 12px; }
.wb-chip:hover { border-color: #b7ccef; background: #eaf3ff; }
.wb-inline-empty { margin: 7px 0 0; color: #9ba9bb; font-size: 11px; line-height: 1.6; }
.wb-library-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 14px 0 7px; color: #657997; font-size: 11px; }
.wb-library-actions { display: flex; align-items: center; gap: 4px; }
.asset-list { display: grid; gap: 5px; max-height: 228px; overflow: auto; padding-right: 2px; scrollbar-width: thin; scrollbar-color: #dbe5f2 transparent; }
.asset-row { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 7px 8px; border: 1px solid #f0f3f8; border-radius: 8px; background: #fff; }
.asset-row.on { border-color: #cfe0fa; background: #f7faff; }
.asset-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #9cc1ed; }
.asset-dot.image { background: #e8b58a; }
.asset-copy { display: flex; flex-direction: column; flex: 1; min-width: 0; gap: 1px; }
.asset-copy strong { overflow: hidden; color: #617692; font-size: 11px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.asset-copy small { color: #9aa9bc; font-size: 10px; }
.asset-row .btn { flex: 0 0 auto; min-height: 28px; padding: 4px 9px; font-size: 10px; }
.asset-row .btn.primary { background: #eef5ff; border-color: #c9dcfa; color: #456fb4; box-shadow: none; }
.asset-row .btn.primary:hover { background: #e4efff; border-color: #aacbf4; }
.wb-note { margin: 8px 0 0; color: #8da2bd; font-size: 11px; }
.wb-setting { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: stretch; margin-top: 13px; }
.wb-setting label.field { margin: 0; }
.wb-setting label.field > span { margin-bottom: 5px; font-size: 11px; }
.wb-auto { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 7px 10px; border: 1px solid #edf2f8; border-radius: 8px; background: #fbfcfe; }
.wb-auto span { color: #899bb5; font-size: 10px; }
.wb-auto strong { color: #5878a7; font-size: 13px; font-weight: 600; }
.wb-auto small { color: #a1afc1; font-size: 10px; }
.wb-hint { margin: 8px 0 10px; color: #9aa9bd; font-size: 10px; line-height: 1.6; }
.wb-advanced { margin: 2px 0 12px; border-top: 1px solid #f0f3f8; padding-top: 9px; }
.wb-advanced summary { color: #7891b5; font-size: 11px; cursor: pointer; }
.wb-advanced summary:hover { color: #3868e8; }
.wb-advanced textarea { min-height: 82px; margin-top: 8px; }
.wb-advanced label.field { margin-top: 10px; margin-bottom: 10px; }
.wb-upload-mini { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; }
.wb-upload-mini span { color: #9aa9bd; font-size: 10px; }
.wb-cta { min-height: 43px; margin-top: 2px; }
.wb-source { display: flex; align-items: center; gap: 8px; margin: 11px 0 12px; padding: 9px 10px; border: 1px solid #dcebf9; border-radius: 10px; background: #f6fbff; }
.wb-source .asset-copy strong { font-size: 12px; color: #4e6f98; }
.wb-source .asset-copy small { font-size: 10px; color: #93a9c2; }
.wb-source .tag { margin-left: auto; }
.wb-library-select { margin: 10px 0 10px; }
.wb-library-select > span { font-size: 11px; }
.wb-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 285px; padding: 22px 12px; border: 1px dashed #e4ebf5; border-radius: 12px; background: #fbfcfe; text-align: center; }
.wb-empty-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #f1f6fd; color: #91aad0; }
.wb-empty-icon svg { width: 24px; height: 24px; }
.wb-empty h3 { margin: 12px 0 3px; color: #627897; font-size: 14px; font-weight: 550; }
.wb-empty p { margin: 0; color: #9aa9bc; font-size: 11px; line-height: 1.7; }
.wb-steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 14px; }
.wb-steps span { padding: 4px 7px; border-radius: 5px; background: #f3f7fd; color: #8ba0bb; font-size: 10px; }
.wb-meta { display: flex; flex-wrap: wrap; gap: 5px; margin: 1px 0 11px; }
.wb-meta > span { max-width: 100%; padding: 4px 7px; border-radius: 5px; background: #f3f7fd; color: #7790ae; font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-strip { display: flex; gap: 5px; margin: 2px 0 10px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.task-pill { display: flex; flex-direction: column; align-items: flex-start; flex: 0 0 auto; max-width: 150px; gap: 1px; padding: 6px 8px; border: 1px solid #edf2f8; border-radius: 7px; background: #fbfcfe; color: #8da1ba; text-align: left; }
.task-pill span { font-size: 9px; }
.task-pill strong { max-width: 100%; overflow: hidden; color: #657a96; font-size: 10px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.task-pill.on { border-color: #c8dcf8; background: #f1f7ff; }
.task-pill.on strong { color: #466b9e; }
.wb-result-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 2px 0 8px; }
.wb-result-head .muted { font-size: 10px; }
.matrix-result-grid { display: grid; gap: 8px; margin-top: 8px; }
.matrix-progress { margin: 4px 0 10px; padding: 12px 13px 11px; border: 1px solid #e2ebf8; border-radius: 11px; background: #f7fbff; }
.mp-track { display: flex; align-items: center; gap: 0; }
.mp-step { display: flex; align-items: center; gap: 5px; min-width: 0; color: #9babc2; font-size: 10px; white-space: nowrap; }
.mp-step i { display: inline-flex; align-items: center; justify-content: center; width: 19px; height: 19px; border: 1px solid #d7e2f2; border-radius: 50%; background: #fff; color: #9babc2; font-size: 10px; font-style: normal; }
.mp-step.done { color: #56836b; }
.mp-step.done i { border-color: #bfe5cd; background: #edf9f1; color: #1c9b55; }
.mp-step.active { color: #2f6fed; font-weight: 600; }
.mp-step.active i { border-color: #2f6fed; background: #2f6fed; color: #fff; box-shadow: 0 0 0 4px rgba(47,111,237,.12); }
.mp-step.failed { color: #c44f4f; font-weight: 600; }
.mp-step.failed i { border-color: #e8bcbc; background: #fff0f0; color: #c44f4f; }
.mp-line { flex: 1 1 16px; height: 1px; margin: 0 5px; background: #dfe8f4; }
.mp-line.done { background: #bfe5cd; }
.mp-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 9px; color: #8fa1b8; font-size: 10px; }
.mp-meta strong { color: #45617f; font-weight: 600; }
.mp-hint { margin: 7px 0 0; color: #a0afc2; font-size: 10px; line-height: 1.5; }
.matrix-progress.failed { border-color: #f0dada; background: #fff9f9; }

.result-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; padding: 9px; border: 1px solid #e9eff8; border-radius: 10px; background: #fff; box-shadow: none; cursor: default; }
.result-card:hover { border-color: #d3e1f4; transform: none; }
.result-card video { width: 100%; height: auto; max-height: 198px; object-fit: contain; border-radius: 7px; background: #111827; }
.result-copy { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; gap: 4px; }
.result-copy strong { max-width: 100%; overflow: hidden; color: #56708f; font-size: 12px; font-weight: 550; text-overflow: ellipsis; white-space: nowrap; }
.result-copy small { color: #9baac0; font-size: 10px; }
.result-copy .btn { margin-top: auto; }
@media (max-width: 1000px) {
  .wb-split { grid-template-columns: minmax(0, 1fr); }
  .result-card { grid-template-columns: 104px minmax(0, 1fr); }
}
@media (max-width: 540px) {
  .wb-panel { padding: 17px; }
  .wb-setting { grid-template-columns: 1fr 1fr; }
  .result-card { grid-template-columns: 92px minmax(0, 1fr); }
  .mp-step span { display: none; }
  .mp-meta { align-items: flex-start; flex-direction: column; gap: 4px; }
}

/* 文档与演示：格式选择卡片、大纲列表 */
.docs-format { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 6px; }
.docs-format-card { text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.docs-format-card strong { color: var(--ink); font-size: 14px; }
.docs-format-card small { color: var(--muted); font-size: 12px; line-height: 1.5; }
.docs-format-card.active { border-color: var(--rd-blue); background: var(--rd-soft); }
.docs-format-card.active strong { color: var(--rd-blue-dark); }
.docs-outline { margin: 10px 0 6px; padding-left: 18px; color: var(--ink); }
.docs-outline li { margin: 4px 0; }
.docs-outline small { color: var(--muted); margin-left: 6px; }
.docs-row { border-top: 1px solid var(--line); padding: 10px 0; gap: 10px; }
.docs-row:first-of-type { border-top: 0; }
.docs-examples { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 2px 0 10px; }
.docs-examples span { color: var(--muted); font-size: 12px; }
.docs-examples .btn.small { padding: 4px 10px; }