.boot-status { max-width: 32rem; margin: 12vh auto; padding: 24px; line-height: 1.7; color: #302c26; }
.boot-status a { color: #80531e; }

:root {
  --charcoal: #202220;
  --charcoal-2: #292b29;
  --ink: #2a2926;
  --muted: #77736c;
  --cream: #f7f4ed;
  --paper: #fffdf8;
  --line: #e9e3d8;
  --amber: #d98b2b;
  --amber-deep: #b96e18;
  --gold: #e7ba67;
  --soft-amber: #fff2db;
  --shadow: 0 14px 40px rgba(55, 42, 22, 0.08);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-bottom: 96px; }
body { margin: 0; overflow-x: hidden; color: var(--ink); background: var(--cream); font-family: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; }
button { color: inherit; touch-action: manipulation; }
button, [data-route], [data-agent] { -webkit-tap-highlight-color: transparent; }
.icon { display: block; flex: 0 0 auto; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; width: 246px; padding: 24px 16px 18px; color: #eeeae1; background: var(--charcoal); display: flex; flex-direction: column; }
.brand { width: 100%; border: 0; display: flex; align-items: center; gap: 11px; padding: 0 8px 25px; color: inherit; background: none; cursor: pointer; text-align: left; }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #36230e; background: linear-gradient(145deg, #f8d493, #d98b2b); box-shadow: 0 7px 20px rgba(217,139,43,.28); }
.brand strong { display: block; font-size: 18px; letter-spacing: .1em; }
.brand span { display: block; margin-top: 2px; color: #8f918c; font-size: 8px; letter-spacing: .28em; }
.side-nav { display: grid; gap: 5px; }
.nav-item { position: relative; border: 0; border-radius: 11px; width: 100%; min-height: 45px; padding: 0 12px; display: flex; align-items: center; gap: 12px; color: #aaa9a4; background: transparent; cursor: pointer; text-align: left; transition: .2s ease; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.045); }
.nav-item.active { color: #f4c573; background: linear-gradient(90deg, rgba(214,137,43,.16), rgba(214,137,43,.035)); }
.nav-item.active::before { content: ""; position: absolute; left: -16px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 4px 4px 0; background: #e4a447; }
.nav-icon { width: 23px; display: grid; place-items: center; }
.nav-item > span:nth-child(2) { font-size: 13px; font-weight: 500; }
.nav-item em { margin-left: auto; padding: 2px 6px; border-radius: 5px; color: #eab35e; background: rgba(218,139,43,.12); font-size: 9px; font-style: normal; }
.sidebar-card { margin-top: auto; padding: 15px; border: 1px solid rgba(238,188,103,.12); border-radius: 14px; background: linear-gradient(145deg, rgba(239,176,78,.09), rgba(255,255,255,.02)); }
.tiny-orb { width: 29px; height: 29px; margin-bottom: 10px; border-radius: 9px; display: grid; place-items: center; color: #e8ae56; background: rgba(222,150,46,.12); }
.sidebar-card strong { font-size: 12px; }
.sidebar-card p { margin: 5px 0 10px; color: #878782; font-size: 10px; line-height: 1.6; }
.sidebar-card span { color: #dfa44d; font-size: 10px; }
.sidebar-footer { margin-top: 17px; padding: 14px 8px 0; border-top: 1px solid rgba(255,255,255,.07); display: flex; align-items: center; gap: 9px; }
.avatar, .avatar-button { width: 30px; height: 30px; border: 1px solid rgba(231,186,103,.4); border-radius: 50%; display: grid; place-items: center; color: #edc77f; background: #393630; font-size: 11px; }
.sidebar-footer strong, .sidebar-footer small { display: block; }
.sidebar-footer strong { color: #d7d5d0; font-size: 10px; }
.sidebar-footer small { margin-top: 2px; color: #777772; font-size: 8px; }

.main-area { min-height: 100vh; margin-left: 246px; }
.topbar { height: 76px; padding: 0 34px; border-bottom: 1px solid rgba(220,212,198,.78); display: flex; align-items: center; justify-content: space-between; background: rgba(249,247,241,.86); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 20; }
.page-heading h1 { margin: 0; font-size: 16px; font-weight: 650; }
.page-heading p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.guide-button { min-height: 36px; border: 1px solid var(--line); border-radius: 99px; padding: 0 12px; display: inline-flex; align-items: center; gap: 6px; color: #6b655c; background: rgba(255,255,255,.72); font-size: 10px; cursor: pointer; }
.guide-button:hover { color: #9d5e18; border-color: #ddc59f; background: #fffaf0; }
.status-pill { border: 1px solid var(--line); border-radius: 99px; padding: 6px 11px; display: flex; align-items: center; gap: 6px; color: #6f6a61; background: rgba(255,255,255,.7); font-size: 10px; }
.status-pill i { width: 6px; height: 6px; border-radius: 50%; background: #69a571; box-shadow: 0 0 0 3px rgba(105,165,113,.12); }
.avatar-button { border: 0; color: #fff9ed; background: linear-gradient(145deg, #dca14a, #a86013); }
.page-content { width: min(1440px, 100%); margin: 0 auto; padding: 28px 34px 60px; }
.mobile-menu, .mobile-tabbar, .nav-backdrop { display: none; }

.eyebrow, .section-kicker { color: var(--amber-deep); font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid rgba(217,139,43,.18); border-radius: 99px; background: rgba(255,249,237,.7); }
.hero { position: relative; min-height: 390px; overflow: hidden; padding: 54px 55px; border: 1px solid #eadfce; border-radius: 24px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; background: radial-gradient(circle at 85% 20%, rgba(242,194,111,.24), transparent 36%), linear-gradient(125deg, #fffaf0, #f1eadf); box-shadow: var(--shadow); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .2; background-image: linear-gradient(rgba(128,97,47,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(128,97,47,.09) 1px, transparent 1px); background-size: 35px 35px; mask-image: linear-gradient(to right, transparent, black); }
.hero-copy { position: relative; z-index: 2; max-width: 590px; }
.hero h2 { margin: 17px 0 15px; font-family: Georgia, "Noto Serif SC", serif; font-size: clamp(36px, 4vw, 58px); font-weight: 500; line-height: 1.2; letter-spacing: -.03em; }
.hero h2 em { color: #bc741f; font-style: normal; }
.hero-copy > p { max-width: 475px; margin: 0; color: #6f6a60; font-size: 14px; line-height: 1.85; }
.hero-actions { margin-top: 27px; display: flex; gap: 10px; }
.button { min-height: 40px; border: 1px solid transparent; border-radius: 10px; padding: 0 17px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; font-weight: 600; cursor: pointer; transition: .2s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button.primary { color: white; background: linear-gradient(145deg, #dc9639, #bd6f18); box-shadow: 0 7px 18px rgba(185,110,24,.22); }
.button.primary:hover { box-shadow: 0 9px 22px rgba(185,110,24,.3); }
.button.ghost, .button.secondary { border-color: #e3dbcf; background: rgba(255,255,255,.66); }
.button.secondary { background: #fff; }
.button.disabled { border-color: #e8e4dc; color: #aaa59b; background: #efede8; cursor: not-allowed; }
.button:disabled, .button.primary:disabled { border-color: #ddd8cf; color: #817b72; background: #e9e5de; box-shadow: none; cursor: not-allowed; opacity: 1; }
.button.full { width: 100%; }
.hero-proof { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 18px; color: #777067; font-size: 9px; }
.hero-proof span { display: flex; align-items: center; gap: 6px; }
.hero-proof i { width: 19px; height: 19px; border: 1px solid #e2ca9f; border-radius: 50%; display: grid; place-items: center; color: #ae701d; font-size: 7px; font-style: normal; }
.first-use-strip { margin-top: 12px; padding: 13px 16px; border: 1px solid #e6dccd; border-radius: 14px; display: flex; align-items: center; justify-content: space-between; gap: 14px; background: rgba(255,253,249,.82); }
.first-use-strip > div { display: flex; align-items: center; gap: 10px; }
.first-use-strip > div > span { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: 0 0 auto; color: #aa681d; background: #ffefd5; }
.first-use-strip p { margin: 0; }
.first-use-strip strong, .first-use-strip small { display: block; }
.first-use-strip strong { font-size: 11px; }
.first-use-strip small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.hero-visual { position: relative; min-height: 290px; }
.glow-orb { position: absolute; border-radius: 50%; filter: blur(1px); }
.orb-one { width: 180px; height: 180px; right: 10%; top: 6%; background: rgba(239,182,84,.28); }
.orb-two { width: 120px; height: 120px; left: 4%; bottom: 3%; background: rgba(247,224,180,.48); }
.floating-card { position: absolute; z-index: 2; border: 1px solid rgba(255,255,255,.84); background: rgba(255,253,248,.83); backdrop-filter: blur(12px); box-shadow: 0 24px 50px rgba(81,58,27,.15); }
.main-card { width: min(320px, 80%); right: 8%; top: 13%; padding: 13px; border-radius: 17px; transform: rotate(2deg); }
.mock-header { height: 24px; display: flex; align-items: center; gap: 4px; }
.mock-header span { width: 5px; height: 5px; border-radius: 50%; background: #d8cfc1; }
.mock-header b { margin-left: auto; color: #827a6d; font-size: 8px; }
.mock-video { height: 130px; border-radius: 11px; display: grid; place-items: center; align-content: center; gap: 8px; color: #fffaf2; background: radial-gradient(circle at 30% 20%, #e6ad61, #7e4e27 70%); }
.mock-video span { font-size: 9px; }
.play-button { width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.14); }
.mock-lines { padding: 13px 2px 2px; display: grid; gap: 7px; }
.mock-lines i { height: 6px; border-radius: 5px; background: #e8e2d8; }
.mock-lines i:last-child { width: 65%; }
.small-card { padding: 11px 13px; border-radius: 13px; display: flex; align-items: center; gap: 9px; color: #ae6c1d; }
.small-card.top { top: 0; left: 2%; }
.small-card.bottom { right: 0; bottom: 5%; color: #589165; }
.small-card b, .small-card span { display: block; }
.small-card b { color: #4e4a43; font-size: 9px; }
.small-card span { margin-top: 2px; color: #969084; font-size: 7px; }

.section-block { margin-top: 33px; }
.section-header { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.section-header h2, .section-header h3 { margin: 5px 0 0; font-size: 19px; }
.section-header p { margin: 8px 0 0; color: var(--muted); font-size: 11px; }
.text-button { border: 0; display: flex; align-items: center; gap: 5px; color: #9d6a29; background: none; font-size: 10px; cursor: pointer; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.quick-card { min-height: 78px; padding: 15px; border: 1px solid var(--line); border-radius: 15px; display: flex; align-items: center; gap: 11px; text-align: left; background: rgba(255,253,249,.84); cursor: pointer; box-shadow: 0 5px 18px rgba(57,44,26,.035); transition: .2s; }
.quick-card:hover { border-color: #dfc69f; transform: translateY(-2px); box-shadow: var(--shadow); }
.quick-card > span:nth-child(2) { min-width: 0; flex: 1; }
.quick-card strong, .quick-card small { display: block; }
.quick-card strong { font-size: 12px; }
.quick-card small { margin-top: 5px; color: var(--muted); font-size: 9px; }
.quick-card > .icon { color: #a6a098; }
.agent-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; }
.agent-icon.amber { color: #bd711e; background: #ffedce; }
.agent-icon.blue { color: #557d9e; background: #e4f0f5; }
.agent-icon.green { color: #5e896c; background: #e4f0e7; }
.agent-icon.violet { color: #806c9f; background: #ece6f5; }
.agent-icon.rose { color: #a56766; background: #f4e3e1; }
.agent-icon.orange { color: #b7733d; background: #f6e9dc; }
.agent-icon.cyan { color: #4f878b; background: #e1eff0; }
.agent-icon.gold { color: #a78237; background: #f5edda; }
.agent-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.home-agents { grid-template-columns: repeat(3, 1fr); }
.agent-card { min-height: 245px; padding: 19px; border: 1px solid var(--line); border-radius: 17px; display: flex; flex-direction: column; background: rgba(255,253,249,.88); box-shadow: 0 7px 25px rgba(62,47,25,.04); cursor: pointer; transition: .24s ease; }
.agent-card:hover { border-color: #ddc49e; transform: translateY(-3px); box-shadow: var(--shadow); }
.agent-card-top { display: flex; justify-content: space-between; align-items: start; }
.tag { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 99px; color: #8c8880; background: #f0eee9; font-size: 8px; font-style: normal; }
.tag.live { color: #48825c; background: #e4f1e7; }
.agent-category { margin-top: 15px; color: #a07540; font-size: 8px; }
.agent-card h4 { margin: 5px 0 7px; font-size: 14px; }
.agent-card p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.65; }
.agent-card-footer { margin-top: auto; padding-top: 15px; border-top: 1px solid #eee9e1; display: flex; align-items: center; justify-content: space-between; color: #8b857c; font-size: 9px; }
.agent-card-footer button { width: 28px; height: 28px; border: 1px solid #e6dfd4; border-radius: 8px; display: grid; place-items: center; color: #a77b3e; background: white; }

.intro-banner { padding: 28px 32px; border: 1px solid #eadfce; border-radius: 20px; display: flex; align-items: center; justify-content: space-between; background: radial-gradient(circle at 80% 20%, rgba(240,188,98,.2), transparent 35%), #fffaf1; }
.intro-banner h2 { margin: 7px 0 6px; font-size: 25px; }
.intro-banner p { margin: 0; color: var(--muted); font-size: 11px; }
.banner-symbol { width: 88px; height: 88px; border: 1px solid rgba(215,145,47,.18); border-radius: 24px; display: grid; place-items: center; color: #ce852b; background: rgba(255,255,255,.5); transform: rotate(4deg); }
.filter-panel { margin: 18px 0; padding: 14px; border: 1px solid var(--line); border-radius: 15px; display: grid; grid-template-columns: 270px minmax(0, 1fr); align-items: start; gap: 16px; background: rgba(255,253,249,.83); }
.search-box { width: 270px; min-height: 38px; padding: 0 12px; border: 1px solid #e6dfd4; border-radius: 10px; display: flex; align-items: center; gap: 8px; color: #9b958c; background: white; }
.search-box:focus-within { border-color: #d7aa6b; box-shadow: 0 0 0 3px rgba(217,139,43,.08); }
.search-box input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 10px; }
.category-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-rows { display: grid; gap: 7px; }
.filter-row { display: flex; align-items: center; gap: 9px; }
.filter-row > span { width: 26px; flex: 0 0 auto; color: #aaa39a; font-size: 8px; }
.chip { min-height: 32px; padding: 0 12px; border: 1px solid transparent; border-radius: 99px; color: #777269; background: transparent; font-size: 9px; cursor: pointer; }
.chip:hover { background: #f4eee4; }
.chip.active { border-color: #edcf9f; color: #a76717; background: #fff1d8; }
.results-line { margin: 22px 2px 12px; display: flex; align-items: center; gap: 10px; }
.results-line strong { font-size: 14px; }
.results-line span { color: var(--muted); font-size: 9px; }
.empty-state { min-height: 280px; padding: 35px; border: 1px dashed #ddd2c2; border-radius: 18px; display: grid; place-items: center; align-content: center; gap: 8px; color: #a39c91; background: rgba(255,253,248,.55); text-align: center; }
.empty-state.large { min-height: 360px; }
.empty-state h3 { margin: 4px 0 0; color: var(--ink); font-size: 15px; }
.empty-state p { margin: 0 0 7px; font-size: 10px; }

.creator-header, .workspace-bar { margin-bottom: 18px; padding: 23px 26px; border: 1px solid #eadfce; border-radius: 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: linear-gradient(110deg, #fffaf1, #f3eee5); }
.creator-header h2, .workspace-bar h2 { margin: 7px 0 4px; font-size: 23px; }
.creator-header p, .workspace-bar p { margin: 0; color: var(--muted); font-size: 10px; }
.stepper { min-height: 74px; margin-bottom: 17px; padding: 12px 16px; overflow-x: auto; border: 1px solid var(--line); border-radius: 15px; display: flex; align-items: center; background: rgba(255,253,248,.85); scrollbar-width: thin; }
.step { flex: 0 0 118px; min-width: 0; border: 0; display: flex; align-items: center; gap: 8px; color: #aaa49b; background: none; text-align: left; cursor: pointer; }
.step > span { width: 29px; height: 29px; border: 1px solid #ded8ce; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; font-size: 10px; }
.step b, .step small { display: block; }
.step b { font-size: 10px; }
.step small { margin-top: 2px; font-size: 8px; }
.step.active { color: #ae6919; }
.step.active > span { border-color: #d89843; color: white; background: #d98b2b; box-shadow: 0 4px 12px rgba(217,139,43,.2); }
.step.done { color: #62846a; }
.step.done > span { border-color: #bad1bf; color: #568063; background: #eaf3eb; }
.stepper > i { height: 1px; flex: 0 0 12px; margin: 0 5px; background: #e4ded5; }
.creator-layout { display: grid; grid-template-columns: minmax(0, 1fr) 255px; align-items: start; gap: 16px; }
.work-panel, .project-summary, .workflow-panel, .preview-panel, .inspector-panel, .admin-card { border: 1px solid var(--line); border-radius: 17px; background: rgba(255,253,249,.91); box-shadow: 0 8px 28px rgba(55,42,22,.035); }
.work-panel { min-height: 460px; padding: 25px; }
.panel-heading { margin-bottom: 22px; display: flex; align-items: center; gap: 12px; }
.panel-heading > span { width: 35px; height: 35px; border-radius: 11px; display: grid; place-items: center; color: #b36a17; background: #fff0d6; font-size: 10px; font-weight: 700; }
.panel-heading h3 { margin: 0; font-size: 16px; }
.panel-heading p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field > span { display: flex; justify-content: space-between; font-size: 10px; font-weight: 600; }
.field > span em { color: #aaa298; font-size: 8px; font-style: normal; font-weight: 400; }
.field input, .field textarea { width: 100%; border: 1px solid #e4ddd2; border-radius: 10px; outline: 0; color: var(--ink); background: #fff; font-size: 11px; transition: .2s; }
.field input { height: 40px; padding: 0 12px; }
.field textarea { min-height: 150px; padding: 12px; resize: vertical; line-height: 1.7; }
.field input:focus, .field textarea:focus { border-color: #d7a15b; box-shadow: 0 0 0 3px rgba(217,139,43,.08); }
.field input:disabled, .field textarea:disabled { color: #706b63; background: #f7f4ee; }
.prompt-tips { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.prompt-tips span { color: #918b82; font-size: 9px; }
.prompt-tips button { padding: 5px 9px; border: 1px solid #e9dfcf; border-radius: 99px; color: #966a32; background: #fffaf1; font-size: 8px; cursor: pointer; }
.step-actions { margin-top: 26px; padding-top: 16px; border-top: 1px solid #eee9e1; display: flex; justify-content: space-between; }
.project-summary { padding: 18px; }
.summary-head { padding-bottom: 16px; border-bottom: 1px solid #eee9e1; display: flex; align-items: center; gap: 10px; }
.summary-head small, .summary-head strong { display: block; }
.summary-head small { color: var(--muted); font-size: 8px; }
.summary-head strong { max-width: 150px; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.project-summary dl { margin: 13px 0; }
.project-summary dl > div { padding: 7px 0; display: flex; justify-content: space-between; }
.project-summary dt, .project-summary dd { font-size: 9px; }
.project-summary dt { color: var(--muted); }
.project-summary dd { margin: 0; font-weight: 600; }
.status-text { color: #5f8a69; }
.notice-box { margin: 14px 0; padding: 11px; border: 1px solid #ecdcbf; border-radius: 10px; display: flex; align-items: flex-start; gap: 8px; color: #b17426; background: #fff8eb; }
.notice-box p { margin: 0; color: #7e7364; font-size: 8px; line-height: 1.7; }
.notice-box p strong { color: #71573a; }
.notice-box.wide { max-width: 600px; }
.upload-zone { min-height: 190px; padding: 20px; border: 1.5px dashed #d9c5a7; border-radius: 15px; display: grid; place-items: center; align-content: center; gap: 7px; background: #fffcf6; transition: .2s; }
.upload-zone:hover, .upload-zone.dragging { border-color: #d78a2a; background: #fff7e8; }
.upload-zone input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.upload-icon { width: 43px; height: 43px; border-radius: 13px; display: grid; place-items: center; color: #ba741f; background: #ffedce; }
.upload-zone strong { font-size: 11px; }
.upload-zone small { color: var(--muted); font-size: 8px; }
.upload-actions { margin-top: 6px; display: flex; gap: 8px; }
.upload-button { min-height: 38px; padding: 0 13px; border: 1px solid #e4c99f; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; color: #9c611d; background: white; font-size: 9px; font-weight: 600; cursor: pointer; touch-action: manipulation; }
.upload-button.camera-button { border-color: transparent; color: white; background: linear-gradient(145deg, #dc9639, #bd6f18); }
.desktop-drop-hint { color: #a19a90; font-size: 8px; font-style: normal; }
.upload-status { margin-top: 10px; padding: 12px 13px; border: 1px solid #d7e6d9; border-radius: 11px; color: #4f7959; background: #f2f8f2; }
.upload-status.warning { border-color: #ecd4aa; color: #93621e; background: #fff8e9; }
.upload-status > div { display: flex; align-items: center; gap: 8px; }
.upload-status strong { font-size: 10px; }
.upload-status p { margin: 6px 0 0; color: #746d63; font-size: 8px; line-height: 1.55; }
.upload-status ul { margin: 9px 0 0; padding: 0; display: grid; gap: 6px; list-style: none; }
.upload-status li { padding-top: 6px; border-top: 1px solid rgba(145,98,30,.14); display: grid; grid-template-columns: minmax(90px, .7fr) minmax(0, 1.3fr); gap: 9px; font-size: 8px; }
.upload-status li b, .upload-status li span { min-width: 0; overflow-wrap: anywhere; }
.asset-head { margin: 20px 0 10px; display: flex; align-items: center; justify-content: space-between; }
.asset-head strong { font-size: 11px; }
.asset-head span { color: var(--muted); font-size: 8px; }
.asset-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.asset-empty { grid-column: 1 / -1; min-height: 90px; border: 1px solid #eee8de; border-radius: 12px; display: grid; place-items: center; align-content: center; gap: 7px; color: #b3aca2; background: #faf8f3; font-size: 9px; }
.asset-item { position: relative; min-width: 0; overflow: hidden; border: 1px solid #e9e3d9; border-radius: 11px; background: white; }
.asset-item img, .asset-item video { width: 100%; height: 90px; object-fit: cover; display: block; background: #ece8e0; }
.asset-item > div { padding: 8px; }
.asset-item strong, .asset-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asset-item strong { font-size: 8px; }
.asset-item small { margin-top: 3px; color: var(--muted); font-size: 7px; }
.asset-item > button { position: absolute; right: 5px; top: 5px; width: 26px; height: 26px; border: 0; border-radius: 7px; display: grid; place-items: center; color: white; background: rgba(44,42,38,.72); cursor: pointer; }
.media-type { position: absolute; left: 5px; top: 5px; padding: 3px 6px; border-radius: 6px; display: flex; align-items: center; gap: 3px; color: white; background: rgba(44,42,38,.68); font-size: 7px; }
.review-card { position: relative; margin-bottom: 10px; padding: 15px; border: 1px solid #e9e2d7; border-radius: 12px; background: #fff; }
.review-card > span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 8px; }
.review-card strong { font-size: 11px; }
.review-card p { max-width: 75%; margin: 0; font-size: 10px; line-height: 1.7; }
.review-card button { position: absolute; right: 13px; top: 13px; border: 0; color: #a66b25; background: none; font-size: 8px; cursor: pointer; }
.coming-panel { min-height: 410px; display: grid; place-items: center; align-content: center; gap: 12px; text-align: center; }
.large-orb { width: 78px; height: 78px; border-radius: 25px; display: grid; place-items: center; color: #c67b22; background: radial-gradient(circle at 30% 20%, #fff5e1, #f4d6a6); box-shadow: 0 15px 30px rgba(193,118,31,.15); }
.coming-panel h3 { margin: 4px 0 0; font-size: 20px; }
.coming-panel p { max-width: 500px; margin: 0 0 5px; color: var(--muted); font-size: 10px; line-height: 1.75; }
.coming-panel > div { display: flex; gap: 8px; }
.local-generation-panel { min-height: 410px; display: grid; place-items: center; align-content: center; gap: 12px; text-align: center; }
.local-generation-panel h3 { margin: 4px 0 0; font-size: 20px; }
.local-generation-panel > p { max-width: 560px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.75; }
.generation-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.generation-actions .button { text-decoration: none; }
.generation-status { width: min(100%, 560px); padding: 13px; border: 1px solid #eadfce; border-radius: 12px; background: #fffaf1; text-align: left; }
.generation-status > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.generation-status strong { font-size: 10px; }
.generation-status span { color: #9a6a2c; font-size: 9px; font-weight: 700; }
.generation-status p { margin: 9px 0 0; color: #a15345; font-size: 9px; line-height: 1.6; }
.generation-status.failed { border-color: #efc9c2; background: #fff5f2; }
.generation-status .status-retry { min-height: 38px; margin-top: 10px; padding: 0 13px; font-size: 9px; }
.generation-progress { height: 7px; margin-top: 9px; overflow: hidden; border-radius: 99px; background: #ebe4d8; }
.generation-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #e6a34b, #bb6d18); transition: width .35s ease; }
.result-video { width: min(100%, 720px); height:auto; max-height:70vh; border-radius: 15px; display: block; object-fit: contain; background: #282927; box-shadow: 0 10px 25px rgba(31,31,29,.15); }
.result-video.compact { width: min(100%, 720px); height:auto; max-height:70vh; }
.mobile-download-help { width: min(100%, 560px); border: 1px solid #e8dfd1; border-radius: 12px; color: #746b5f; background: #fffdf9; text-align: left; }
.mobile-download-help summary { min-height: 42px; padding: 0 13px; display: flex; align-items: center; color: #8c5c22; font-size: 9px; font-weight: 700; cursor: pointer; }
.mobile-download-help > div { padding: 0 13px 11px; border-top: 1px solid #eee7dc; }
.mobile-download-help p { margin: 10px 0 0; font-size: 8px; line-height: 1.65; overflow-wrap: anywhere; }

.workspace-bar .tag { margin-bottom: 4px; }
.workspace-layout { display: grid; grid-template-columns: 190px minmax(300px, 1fr) 255px; gap: 14px; }
.workflow-panel, .inspector-panel { padding: 17px; }
.workflow-panel h3, .inspector-panel h3 { margin: 0 0 16px; font-size: 12px; }
.workflow-row { width: 100%; min-height: 54px; padding: 8px; border: 0; border-radius: 10px; display: flex; align-items: center; gap: 9px; color: #9a958c; background: transparent; text-align: left; cursor: pointer; }
.workflow-row > span { width: 26px; height: 26px; border: 1px solid #dfd9cf; border-radius: 8px; display: grid; place-items: center; flex: 0 0 auto; font-size: 9px; }
.workflow-row strong, .workflow-row small { display: block; }
.workflow-row strong { font-size: 9px; }
.workflow-row small { margin-top: 3px; font-size: 7px; }
.workflow-row.active { color: #a66318; background: #fff0d9; }
.workflow-row.done { color: #598167; }
.preview-panel { padding: 14px; }
.preview-toolbar { display: flex; justify-content: space-between; align-items: center; }
.preview-toolbar strong { font-size: 10px; }
.preview-toolbar span { padding: 4px 7px; border-radius: 6px; color: #8f8980; background: #f1eee8; font-size: 7px; }
.preview-stage { margin: 13px 0; padding: 16px; border-radius: 13px; display: grid; place-items: center; background: #efebe4; }
.phone-preview { width: min(100%, 226px); height: auto; aspect-ratio: 9 / 16; border-radius: 15px; display: grid; place-items: center; background: #282927; box-shadow: 0 10px 25px rgba(31,31,29,.15), inset 0 0 0 1px rgba(255,255,255,.08); }
.phone-preview > div { display: grid; place-items: center; gap: 9px; color: #b08b5c; }
.phone-preview strong { color: #d8d2c8; font-size: 11px; }
.phone-preview span { color: #777771; font-size: 8px; }
.timeline-placeholder { height: 40px; padding: 7px; border-radius: 8px; display: flex; gap: 4px; background: #f1eee8; }
.timeline-placeholder span { width: 3px; height: 100%; background: #d68627; }
.timeline-placeholder i { flex: 1; border-radius: 4px; background: #ddd5c9; }
.inspector-panel .field textarea { min-height: 100px; }

.projects-heading { align-items: center; }
.stat-grid { margin: 17px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat-grid > div { padding: 15px 17px; border: 1px solid var(--line); border-radius: 14px; display: flex; align-items: center; gap: 12px; background: rgba(255,253,248,.85); }
.stat-grid > div > span { width: 39px; height: 39px; border-radius: 11px; display: grid; place-items: center; color: #ad6f22; background: #ffefd6; }
.stat-grid p { margin: 0; color: var(--muted); font-size: 8px; }
.stat-grid strong { display: block; margin-top: 2px; color: var(--ink); font-size: 18px; }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.project-card { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fffdfa; box-shadow: 0 7px 25px rgba(62,47,25,.04); }
.project-cover { position: relative; height: 125px; display: grid; place-items: center; color: rgba(255,255,255,.8); background: linear-gradient(145deg, #77634b, #2f302e); }
.project-cover::after { content: ""; position: absolute; inset: 0; opacity: .3; background: radial-gradient(circle at 25% 20%, #f0b55e, transparent 30%); }
.project-cover > span { width: 50px; height: 50px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.project-cover em { position: absolute; z-index: 2; top: 10px; right: 10px; padding: 4px 7px; border-radius: 6px; color: #fff2dc; background: rgba(31,31,30,.6); font-size: 7px; font-style: normal; }
.project-body { padding: 15px; }
.project-body h3 { margin: 0; font-size: 12px; }
.project-body p { height: 33px; margin: 5px 0 12px; overflow: hidden; color: var(--muted); font-size: 9px; line-height: 1.75; }
.project-meta { padding: 9px 0; border-top: 1px solid #eee9e1; display: flex; justify-content: space-between; color: #9b958b; font-size: 8px; }
.project-meta span { display: flex; align-items: center; gap: 4px; }
.project-actions { display: flex; gap: 6px; }
.project-actions .button { flex: 1; min-height: 34px; }
.icon-button { width: 36px; height: 36px; padding: 0; border: 1px solid #e6dfd4; border-radius: 9px; display: grid; place-items: center; background: #fff; cursor: pointer; }
.icon-button.danger { color: #a86e67; }
.topbar .mobile-menu { display: none; }

.admin-banner { margin-bottom: 16px; }
.admin-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 14px; }
.admin-card { padding: 19px; }
.admin-card-head { padding-bottom: 15px; border-bottom: 1px solid #eee9e1; display: flex; align-items: center; gap: 11px; }
.admin-card-head > div:nth-child(2) { flex: 1; }
.admin-card-head h3 { margin: 0; font-size: 12px; }
.admin-card-head p { margin: 4px 0 0; color: var(--muted); font-size: 8px; }
.admin-list { margin: 13px 0; display: grid; gap: 8px; }
.admin-list div { padding: 10px 12px; border-radius: 9px; display: flex; justify-content: space-between; background: #f8f5ef; }
.admin-list span { color: var(--muted); font-size: 9px; }
.admin-list strong { font-size: 11px; }
.provider-list { margin-top: 11px; display: grid; }
.provider-list > div { min-height: 47px; padding: 7px 4px; border-bottom: 1px solid #f0ebe4; display: flex; align-items: center; gap: 9px; }
.provider-list > div:last-child { border-bottom: 0; }
.provider-dot { width: 7px; height: 7px; border-radius: 50%; background: #c9c4bb; }
.provider-list p { flex: 1; margin: 0; }
.provider-list strong, .provider-list small { display: block; }
.provider-list strong { font-size: 9px; }
.provider-list small { margin-top: 2px; color: var(--muted); font-size: 7px; }
.provider-list em { color: #99938a; font-size: 7px; font-style: normal; }
.security-panel { margin-top: 14px; padding: 18px; border: 1px solid #e9dcc6; border-radius: 15px; display: flex; gap: 12px; color: #aa6a1e; background: #fff8eb; }
.security-panel h3 { margin: 0 0 4px; color: #654d32; font-size: 11px; }
.security-panel p { margin: 0; color: #7b7165; font-size: 9px; line-height: 1.7; }
.capability-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.capability-card { position: relative; min-height: 100px; padding: 15px; border: 1px solid var(--line); border-radius: 14px; display: flex; align-items: center; gap: 11px; background: rgba(255,253,249,.88); }
.capability-card > div { min-width: 0; flex: 1; }
.capability-card h4 { margin: 0; font-size: 11px; }
.capability-card p { margin: 4px 0 0; color: var(--muted); font-size: 8px; }
.capability-card em { position: absolute; right: 10px; top: 10px; padding: 3px 6px; border-radius: 6px; color: #8c857b; background: #f0eee9; font-size: 7px; font-style: normal; }

.toast-region { position: fixed; z-index: 100; right: 22px; top: 20px; display: grid; gap: 8px; pointer-events: none; }
.toast { min-width: 210px; padding: 11px 14px; border: 1px solid #dce8df; border-radius: 10px; display: flex; align-items: center; gap: 8px; color: #48715a; background: rgba(249,255,250,.95); box-shadow: 0 14px 40px rgba(42,36,26,.14); opacity: 0; transform: translateY(-8px); transition: .22s; font-size: 10px; }
.toast.warning { border-color: #ecd9bd; color: #9b651e; background: rgba(255,250,241,.97); }
.toast.show { opacity: 1; transform: translateY(0); }

.feedback-entry { position: fixed; z-index: 24; right: 22px; bottom: 22px; min-height: 43px; border: 1px solid rgba(188,116,31,.24); border-radius: 99px; padding: 0 15px; display: inline-flex; align-items: center; gap: 7px; color: #fff8ed; background: linear-gradient(135deg, #c97b22, #a95f12); box-shadow: 0 10px 28px rgba(125,73,16,.2); font-size: 11px; font-weight: 650; cursor: pointer; }
.feedback-entry:hover { transform: translateY(-1px); box-shadow: 0 13px 32px rgba(125,73,16,.25); }
.dialog-layer { position: fixed; z-index: 80; inset: 0; padding: 22px; display: grid; place-items: center; }
.dialog-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(29,29,27,.56); backdrop-filter: blur(5px); cursor: default; }
.welcome-dialog, .feedback-dialog { position: relative; z-index: 1; width: min(100%, 540px); max-height: min(760px, calc(100svh - 44px)); overflow-y: auto; padding: 30px; border: 1px solid #eadcc6; border-radius: 22px; background: #fffdf8; box-shadow: 0 28px 80px rgba(40,31,20,.24); }
.feedback-dialog { width: min(100%, 650px); }
.dialog-close { position: absolute; right: 16px; top: 16px; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; color: #6f685f; background: #fff; cursor: pointer; }
.welcome-mark { width: 48px; height: 48px; margin-bottom: 17px; border-radius: 15px; display: grid; place-items: center; color: #8d5010; background: linear-gradient(145deg, #ffe6bb, #e8b159); box-shadow: 0 10px 24px rgba(185,110,24,.16); }
.welcome-dialog h2, .feedback-dialog h2 { margin: 8px 48px 9px 0; font-family: Georgia, "Noto Serif SC", serif; font-size: 25px; font-weight: 500; line-height: 1.35; }
.welcome-lead, .feedback-lead { margin: 0; color: #6f695f; font-size: 12px; line-height: 1.75; }
.guide-steps { margin: 20px 0; padding: 0; display: grid; gap: 9px; list-style: none; }
.guide-steps li { padding: 12px; border: 1px solid #eee5d8; border-radius: 12px; display: flex; align-items: center; gap: 11px; background: #faf7f1; }
.guide-steps li > span { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: 0 0 auto; color: #a15c12; background: #ffebca; font-size: 11px; font-weight: 700; }
.guide-steps strong, .guide-steps small { display: block; }
.guide-steps strong { font-size: 11px; }
.guide-steps small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.dialog-actions { margin-top: 20px; display: flex; justify-content: flex-end; gap: 8px; }
.feedback-form { margin-top: 18px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.feedback-form .field:first-child { grid-column: 1 / -1; }
.feedback-form .field:last-child { grid-column: 1 / -1; }
.feedback-form .field textarea { min-height: 105px; }
.field select { width: 100%; height: 43px; border: 1px solid #dfd8cd; border-radius: 10px; padding: 0 36px 0 12px; color: var(--ink); background: #fff; font-size: 11px; }

@media (max-width: 1100px) {
  .sidebar { width: 218px; }
  .main-area { margin-left: 218px; }
  .page-content { padding-left: 24px; padding-right: 24px; }
  .hero { padding: 42px 35px; }
  .agent-grid { grid-template-columns: repeat(3, 1fr); }
  .workspace-layout { grid-template-columns: 170px minmax(270px, 1fr); }
  .inspector-panel { grid-column: 1 / -1; }
  .admin-grid { grid-template-columns: 1fr; }
  .capability-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .sidebar { width: 264px; transform: translateX(-105%); transition: transform .25s ease; box-shadow: 20px 0 50px rgba(0,0,0,.2); }
  .nav-open .sidebar { transform: translateX(0); }
  .nav-backdrop { position: fixed; z-index: 25; inset: 0; border: 0; background: rgba(25,25,24,.45); }
  .nav-open .nav-backdrop { display: block; }
  .main-area { margin-left: 0; }
  .topbar { height: 65px; padding: 0 20px; }
  .topbar .mobile-menu { display: grid; margin-right: 12px; }
  .page-heading { flex: 1; }
  .page-heading p { display: none; }
  .page-content { padding: 20px 20px 80px; }
  .hero { grid-template-columns: 1fr; padding: 38px 32px; }
  .hero-visual { display: none; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .agent-grid, .home-agents { grid-template-columns: repeat(2, 1fr); }
  .creator-layout { grid-template-columns: 1fr; }
  .project-summary { order: -1; }
  .project-summary dl { display: grid; grid-template-columns: repeat(3, 1fr); }
  .project-summary .notice-box, .project-summary .button { display: none; }
  .workspace-layout { grid-template-columns: 1fr; }
  .workflow-panel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
  .workflow-panel h3 { grid-column: 1 / -1; }
  .workflow-row { flex-direction: column; text-align: center; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 580px) {
  :root { --radius: 14px; }
  html { scrollbar-gutter: stable; }
  body, .app-shell, .main-area { max-width: 100%; }
  body { background: #f8f5ef; }
  .topbar { height: 60px; padding: 0 14px; }
  .page-heading h1 { font-size: 17px; }
  .top-actions .status-pill { display: none; }
  .guide-button { width: 44px; min-width: 44px; min-height: 44px; padding: 0; justify-content: center; }
  .guide-button span { display: none; }
  .page-content { padding: 14px 14px calc(136px + env(safe-area-inset-bottom)); }
  .mobile-tabbar { position: fixed; z-index: 22; left: 0; right: 0; bottom: 0; height: calc(70px + env(safe-area-inset-bottom)); padding: 7px 5px max(6px, env(safe-area-inset-bottom)); border-top: 1px solid #ddd2c3; display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(255,253,249,.97); box-shadow: 0 -8px 24px rgba(59,43,21,.07); backdrop-filter: blur(16px); }
  .mobile-tabbar button { min-width: 0; min-height: 48px; border: 0; display: grid; place-items: center; align-content: center; gap: 4px; color: #68645d; background: none; font-size: 11px; font-weight: 550; }
  .mobile-tabbar button.active { color: #a75f10; font-weight: 700; }
  .keyboard-open .mobile-tabbar { display: none; }
  .keyboard-open .feedback-entry { display: none; }
  .keyboard-open .page-content { padding-bottom: 28px; }
  .keyboard-open .topbar { position: static; height: 50px; }
  .keyboard-open .top-actions { display: none; }
  .button { min-height: 48px; padding-inline: 18px; border-radius: 12px; font-size: 14px; }
  .icon-button { min-width: 44px; width: 44px; min-height: 44px; height: 44px; }
  .hero { min-height: auto; padding: 29px 22px; border-radius: 18px; }
  .hero h2 { margin-top: 14px; font-size: 35px; }
  .hero-copy > p { font-size: 14px; line-height: 1.75; }
  .hero-actions { display: grid; }
  .hero-actions .button { width: 100%; }
  .hero-proof { gap: 10px; }
  .first-use-strip { align-items: flex-start; }
  .first-use-strip small { font-size: 11px; line-height: 1.5; }
  .first-use-strip .text-button { flex: 0 0 auto; min-height: 44px; font-size: 0; }
  .first-use-strip .text-button .icon { width: 20px; height: 20px; }
  .section-block { margin-top: 25px; }
  .quick-grid { gap: 8px; }
  .quick-card { min-height: 104px; padding: 13px; align-items: flex-start; flex-wrap: wrap; }
  .quick-card > .icon { margin-left: auto; }
  .quick-card > span:nth-child(2) { flex-basis: calc(100% - 60px); }
  .agent-grid, .home-agents { grid-template-columns: 1fr; }
  .quick-card strong { font-size: 14px; }
  .quick-card small { font-size: 12px; line-height: 1.5; }
  .agent-card { min-height: 230px; padding: 18px; }
  .agent-card h4 { font-size: 17px; }
  .agent-card p { font-size: 13px; line-height: 1.7; }
  .agent-category, .agent-card-footer { font-size: 11px; }
  .agent-card-footer button { width: 44px; height: 44px; flex: 0 0 44px; }
  .tag { padding: 5px 9px; font-size: 10px; }
  .intro-banner { padding: 23px 20px; }
  .intro-banner h2 { font-size: 21px; }
  .intro-banner p { font-size: 13px; line-height: 1.7; }
  .banner-symbol { display: none; }
  .filter-panel { padding: 11px; grid-template-columns: minmax(0, 1fr); }
  .search-box, .filter-rows, .filter-row, .category-chips { min-width: 0; max-width: 100%; }
  .search-box { width: 100%; min-height: 48px; }
  .search-box input { font-size: 16px; }
  .category-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 3px; scrollbar-width: none; }
  .filter-row { align-items: flex-start; }
  .filter-row > span { width: 34px; padding-top: 13px; font-size: 12px; }
  .category-chips::-webkit-scrollbar { display: none; }
  .chip { min-height: 44px; padding: 0 14px; flex: 0 0 auto; font-size: 12px; }
  .creator-header { margin-bottom: 10px; padding: 13px 14px; align-items: flex-start; }
  .workspace-bar { padding: 18px; align-items: flex-start; }
  .creator-header .eyebrow { display: none; }
  .creator-header h2 { margin: 0 0 3px; font-size: 21px; }
  .workspace-bar h2 { font-size: 22px; }
  .creator-header p { font-size: 13px; line-height: 1.55; }
  .workspace-bar p { font-size: 12px; line-height: 1.6; }
  .creator-header .button { width: 44px; min-width: 44px; min-height: 44px; padding: 0; font-size: 0; }
  .stepper { min-height: 72px; margin-bottom: 10px; padding: 8px 7px; justify-content: flex-start; scroll-snap-type: x proximity; }
  .step { flex: 0 0 72px; flex-direction: column; gap: 5px; text-align: center; scroll-snap-align: center; }
  .step > span { width: 34px; height: 34px; }
  .step > div small { display: none; }
  .step b { color: #777168; font-size: 12px; font-weight: 650; }
  .step.active b { color: #9f5e15; }
  .stepper > i { flex-basis: 7px; margin: 0 1px; }
  .creator-layout { gap: 10px; }
  .project-summary { order: 0; }
  .work-panel { min-height: 430px; padding: 16px 15px; }
  .panel-heading { margin-bottom: 15px; }
  .panel-heading h3 { font-size: 18px; }
  .panel-heading p { color: #68635b; font-size: 13px; line-height: 1.55; }
  .idea-form { display: flex; flex-direction: column; }
  .idea-field { order: -1; }
  .field { scroll-margin-top: 72px; }
  .field > span { font-size: 13px; }
  .field > span em { font-size: 11px; }
  .field input, .field textarea { border-radius: 12px; font-size: 16px; }
  .field input { height: 50px; padding-inline: 14px; }
  .field textarea { min-height: 190px; padding: 14px; }
  .prompt-tips { gap: 8px; }
  .prompt-tips span { width: 100%; font-size: 12px; }
  .prompt-tips button { min-height: 44px; padding: 0 12px; font-size: 12px; }
  .step-actions { gap: 9px; padding-top: 18px; }
  .step-actions .button { min-width: 0; flex: 1 1 0; touch-action: manipulation; }
  .ai-unavailable-card strong, .copy-versions > div:first-child strong, .copy-suggestion strong { font-size: 13px; }
  .ai-unavailable-card p, .copy-versions > div:first-child span, .copy-versions > p, .copy-suggestion p { font-size: 11px; }
  .copy-ai-actions { display: grid; grid-template-columns: repeat(2, 1fr); }
  .copy-ai-actions button { min-height: 44px; font-size: 12px; }
  .copy-editor textarea { min-height: 300px; }
  .copy-toolbar { display: grid; grid-template-columns: 1fr; }
  .copy-toolbar .button { width: 100%; }
  .copy-version-list article { min-height: 54px; }
  .copy-version-list b, .copy-version-list button { font-size: 12px; }
  .copy-version-list small { font-size: 10px; }
  .packaging-grid, .confirmation-grid { grid-template-columns: 1fr; }
  .packaging-card { padding: 14px; }
  .packaging-card h3, .cost-summary strong { font-size: 14px; }
  .packaging-card.unavailable { grid-column: auto; }
  .packaging-card.unavailable p, .confirmation-grid article > span, .confirmation-grid article p, .confirmation-grid article button, .cost-summary p { font-size: 12px; }
  .confirmation-grid article { min-height: 150px; }
  .confirmation-grid article strong { font-size: 19px; }
  .confirmation-grid article button, .copy-suggestion .text-button { min-height: 44px; padding: 0 6px; align-items: center; }
  .project-summary { padding: 13px; }
  .project-summary dl { margin-bottom: 0; }
  .summary-head { padding-bottom: 11px; }
  .summary-head small { font-size: 11px; }
  .summary-head strong { font-size: 13px; }
  .project-summary dt, .project-summary dd { font-size: 12px; }
  .project-summary dt { color: #706a62; }
  .status-text { color: #4f7959; }
  .notice-box p { font-size: 12px; }
  .asset-grid { grid-template-columns: repeat(2, 1fr); }
  .upload-zone { min-height: 250px; padding: 22px 14px; text-align: center; }
  .upload-zone strong { font-size: 16px; }
  .upload-zone small { max-width: 300px; font-size: 12px; line-height: 1.6; }
  .upload-actions { width: 100%; margin-top: 10px; display: grid; grid-template-columns: 1fr; gap: 9px; }
  .upload-button { width: 100%; min-height: 48px; font-size: 14px; }
  .upload-status { padding: 14px; }
  .upload-status strong { font-size: 13px; }
  .upload-status p { font-size: 11px; }
  .upload-status li { grid-template-columns: 1fr; gap: 3px; font-size: 11px; line-height: 1.45; }
  .desktop-drop-hint { display: none; }
  .asset-head strong { font-size: 14px; }
  .asset-head span { font-size: 11px; }
  .asset-empty { min-height: 110px; font-size: 12px; }
  .asset-item img, .asset-item video { height: 120px; }
  .asset-item strong { font-size: 12px; }
  .asset-item small { font-size: 10px; }
  .asset-item > button { width: 44px; height: 44px; }
  .media-type { padding: 5px 7px; font-size: 10px; }
  .review-card p { max-width: 100%; padding-top: 18px; }
  .review-card { padding: 16px; }
  .review-card > span { font-size: 11px; }
  .review-card strong { font-size: 14px; }
  .review-card p { font-size: 13px; }
  .review-card button { min-width: 44px; min-height: 44px; top: 4px; right: 6px; font-size: 11px; }
  .coming-panel > div { width: 100%; display: grid; }
  .local-generation-panel { min-height: 460px; padding-bottom: 88px; gap: 14px; }
  .local-generation-panel h3 { font-size: 22px; }
  .local-generation-panel > p { color: #68635b; font-size: 13px; line-height: 1.7; }
  .generation-actions { width: 100%; display: grid; }
  .generation-actions .button { width: 100%; }
  .generation-status { padding: 14px; }
  .generation-status strong, .generation-status span { font-size: 12px; }
  .generation-status p { font-size: 12px; }
  .generation-status .status-retry { width: 100%; min-height: 46px; font-size: 13px; }
  .result-video.compact { width:100%; max-height:70vh; }
  .mobile-download-help summary { min-height: 48px; padding: 0 14px; font-size: 13px; }
  .mobile-download-help > div { padding: 0 14px 13px; }
  .mobile-download-help p { font-size: 12px; line-height: 1.65; }
  .workspace-bar { display: grid; }
  .workspace-bar .button { width: 100%; }
  .workflow-panel { padding: 12px 7px; }
  .workflow-row { min-height: 64px; padding: 5px 2px; }
  .workflow-row strong { font-size: 11px; }
  .workflow-row small { display: none; }
  .preview-stage { padding: 12px; }
  .phone-preview { width: min(100%, 220px); }
  .preview-toolbar strong { font-size: 14px; }
  .preview-toolbar span { font-size: 11px; }
  .projects-heading { display: grid; align-items: start; }
  .projects-heading .button { width: 100%; }
  .stat-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .stat-grid > div { padding: 10px 6px; justify-content: center; text-align: center; }
  .stat-grid > div > span { display: none; }
  .stat-grid p { font-size: 11px; }
  .stat-grid strong { font-size: 20px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-body h3 { font-size: 16px; }
  .project-body p { height: auto; min-height: 42px; font-size: 12px; }
  .project-meta { font-size: 11px; }
  .admin-banner { align-items: flex-start; }
  .admin-card { padding: 15px; }
  .admin-card-head h3 { font-size: 15px; }
  .admin-card-head p, .admin-list span, .provider-list strong { font-size: 11px; }
  .provider-list small, .provider-list em { font-size: 10px; }
  .capability-grid { grid-template-columns: 1fr; }
  .security-panel { padding: 14px; }
  .toast-region { left: 14px; right: 14px; top: 12px; }
  .toast { width: 100%; min-width: 0; }
  .feedback-entry { right: 12px; bottom: calc(79px + env(safe-area-inset-bottom)); min-height: 44px; padding: 0 13px; font-size: 12px; }
  .route-video .feedback-entry, .route-workspace .feedback-entry { display: none; }
  .dialog-layer { padding: 0; place-items: end center; }
  .welcome-dialog, .feedback-dialog { width: 100%; max-width: 100vw; max-height: 92svh; overflow-x: hidden; padding: 25px 18px calc(22px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; }
  .welcome-dialog h2, .feedback-dialog h2 { font-size: 23px; }
  .welcome-lead, .feedback-lead { font-size: 13px; }
  .guide-steps strong { font-size: 14px; }
  .guide-steps small { font-size: 12px; line-height: 1.5; }
  .feedback-form { grid-template-columns: 1fr; }
  .feedback-form .field:first-child, .feedback-form .field:last-child { grid-column: auto; }
  .feedback-form .field textarea { min-height: 116px; }
  .field select { height: 50px; border-radius: 12px; font-size: 16px; }
  .dialog-actions { width: 100%; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dialog-actions .button { width: 100%; min-width: 0; padding-inline: 8px; }
}

/* V2.4 真实素材分析、分镜、配音与云端成片 */
.analysis-asset-list { margin-top: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.analysis-asset { min-width: 0; padding: 12px; border: 1px solid #e3e9e2; border-radius: 11px; background: #fff; }
.analysis-asset > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.analysis-asset strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.analysis-asset p { min-height: 42px; margin: 8px 0; display: block; color: #5f675f; font-size: 9px; line-height: 1.55; }
.analysis-asset dl { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.analysis-asset dl span { padding: 7px 5px; border-radius: 7px; display: grid; gap: 3px; color: #858b84; background: #f5f7f4; font-size: 7px; }
.analysis-asset dl b { color: #4d6f55; font-size: 8px; font-weight: 650; }
.analysis-asset > small { margin-top: 8px; display: block; color: #8a8278; font-size: 8px; line-height: 1.5; }
.shot-plan-list { margin-top: 13px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.shot-card { min-width: 0; padding: 11px; border: 1px solid #eadfce; border-radius: 10px; background: #fffaf2; }
.shot-card > span { color: #b16e20; font-size: 8px; font-weight: 700; }
.shot-card strong { margin-top: 5px; display: block; font-size: 10px; }
.shot-card p { margin: 6px 0; color: #666057; font-size: 8px; line-height: 1.55; }
.shot-card small { color: #92897e; font-size: 7px; line-height: 1.5; }
.shot-controls { margin-top: 10px; padding-top: 10px; border-top: 1px solid #eadfce; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; }
.shot-controls label { display: grid; gap: 5px; color: #82786c; font-size: 9px; }
.shot-controls select { width: 100%; min-width: 0; min-height: 38px; padding: 8px 9px; border: 1px solid #ded2c1; border-radius: 9px; color: #39342e; background: #fffdf8; }
.plan-actions { margin-top: 12px; display: flex; gap: 8px; }
.packaging-card audio { width: 100%; margin-top: 10px; }
.switch-field { min-height: 44px; display: flex; align-items: center; gap: 9px; font-size: 10px; font-weight: 650; }
.switch-field input { width: 20px; height: 20px; accent-color: var(--amber); }
.packaging-card input[type="range"] { width: 100%; accent-color: var(--amber); }

@media (max-width: 580px) {
  .analysis-asset-list, .shot-plan-list { grid-template-columns: 1fr; }
  .analysis-asset { padding: 14px; }
  .analysis-asset strong { font-size: 14px; }
  .analysis-asset p { min-height: 0; font-size: 12px; }
  .analysis-asset dl span, .analysis-asset > small { font-size: 11px; }
  .analysis-asset dl b { font-size: 12px; }
  .shot-card { padding: 14px; }
  .shot-card > span, .shot-card small { font-size: 11px; }
  .shot-card strong { font-size: 14px; }
  .shot-card p { font-size: 12px; }
  .shot-controls { grid-template-columns: 1fr; }
  .shot-controls label { font-size: 12px; }
  .shot-controls select { min-height: 44px; font-size: 14px; }
  .plan-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .packaging-card .field > span, .switch-field { font-size: 13px; }
  .packaging-card input[type="range"] { min-height: 44px; }
  .packaging-card audio { min-height: 48px; }
}

@media (max-width: 380px) {
  .step-actions { display: grid; grid-template-columns: 1fr; }
  .step-actions > span:empty { display: none; }
  .step-actions .button { width: 100%; }
}

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

@media (pointer: coarse) {
  .button, .chip, .upload-button { min-height: 48px; }
  .icon-button, .agent-card-footer button { min-width: 44px; width: 44px; min-height: 44px; height: 44px; }
  .nav-item { min-height: 48px; }
  input, textarea { font-size: 16px; }
}

/* 免费做视频 V2：在既有暖金橙视觉上扩展模块状态，不改变全站设计语言。 */
.module-field { margin: 2px 0 17px; display: grid; gap: 9px; }
.ai-unavailable-card { margin-bottom: 13px; padding: 14px; border: 1px solid #ead9bf; border-radius: 13px; display: flex; align-items: flex-start; gap: 10px; color: #a66b24; background: #fff7e9; }
.ai-unavailable-card.available { border-color: #e4c28e; background: linear-gradient(135deg, #fff8eb, #fffdf8); }
.ai-unavailable-card.available strong { color: #9a5713; }
.ai-unavailable-card strong { display: block; color: #734f25; font-size: 11px; }
.pilot-access-card { margin-bottom: 14px; padding: 16px; border: 1px solid #e3bf87; border-radius: 14px; display: grid; grid-template-columns: 1fr minmax(190px, .7fr) auto; align-items: end; gap: 13px; background: linear-gradient(135deg, #fff7e7, #fffdf8); }
.pilot-access-card > div { display: flex; align-items: flex-start; gap: 9px; }
.pilot-access-card strong, .pilot-access-card small { display: block; }
.pilot-access-card strong { color: #8f5212; font-size: 12px; }
.pilot-access-card small { margin-top: 4px; color: #766c60; font-size: 9px; line-height: 1.55; }
.pilot-access-card label { display: grid; gap: 5px; }
.pilot-access-card label > span { color: #6e6254; font-size: 9px; font-weight: 700; }
.pilot-access-card input { width: 100%; min-width: 0; height: 44px; padding: 0 12px; border: 1px solid #dfcfb8; border-radius: 10px; color: var(--ink); background: white; font: inherit; font-size: 12px; text-transform: uppercase; }
.pilot-access-card .button { white-space: nowrap; }
.pilot-logout { margin-top: 5px; padding: 0; font-size: 9px; }
.pilot-coming-panel { min-height: 500px; display: grid; place-items: center; align-content: center; gap: 13px; text-align: center; }
.pilot-coming-panel > p { max-width: 620px; margin: 0; color: #68635b; font-size: 11px; line-height: 1.75; }
.pilot-confirmed-copy { width: min(100%, 680px); padding: 15px; border: 1px solid #eadfce; border-radius: 12px; background: #fffaf2; text-align: left; }
.pilot-confirmed-copy small { color: #9d681f; font-size: 9px; font-weight: 700; }
.pilot-confirmed-copy p { margin: 8px 0 0; color: #5f584e; font-size: 10px; line-height: 1.8; white-space: pre-wrap; }
.ai-unavailable-card p { margin: 5px 0 0; color: #766b5e; font-size: 9px; line-height: 1.65; }
.copy-ai-actions { margin-bottom: 15px; display: flex; flex-wrap: wrap; gap: 7px; }
.copy-ai-actions button { min-height: 35px; padding: 0 11px; border: 1px solid #e0d2c0; border-radius: 9px; color: #5f5548; background: #fffaf2; font-size: 9px; cursor: pointer; }
.copy-ai-actions button.primary { border-color: var(--orange); color: #fff; background: var(--orange); }
.copy-ai-actions button:disabled { color: #aaa196; background: #f7f4ee; border-style: dashed; cursor: not-allowed; opacity: .72; }
.copy-error { margin: -4px 0 14px; padding: 10px 12px; border: 1px solid #ecc5ba; border-radius: 10px; display: flex; gap: 8px; color: #9a3f2a; background: #fff3ef; font-size: 12px; line-height: 1.55; }
.asset-error { color: #963d28; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.asset-upload-label{display:flex;align-items:center;gap:6px;min-height:24px;font-size:13px!important;color:#665a49!important;overflow-wrap:anywhere}
.asset-upload-label.complete{color:#246346!important}
.upload-spinner{display:inline-block;width:14px;height:14px;flex:none;border:2px solid #e2d5bd;border-top-color:#a36b20;border-radius:50%;animation:upload-spin .9s linear infinite}
@keyframes upload-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.upload-spinner{animation:none}}
.asset-order-actions button[data-delete-asset]{min-width:44px;min-height:44px}
[data-cloud-upload-summary] strong{font-size:14px}[data-cloud-upload-summary] p{font-size:12px;line-height:1.65}
.asset-item-v2 .button[data-retry-upload] { min-height: 44px; margin-top: 8px; }
.copy-result-card { margin: 0 0 15px; padding: 15px; border: 1px solid #ead6b8; border-radius: 13px; background: linear-gradient(145deg, #fffdf8, #fff7e9); }
.copy-result-card > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.copy-result-card > div small { color: var(--muted); font-size: 8px; }
.copy-result-card h3 { margin: 12px 0 10px; font-size: 15px; }
.copy-result-card dl { margin: 0; display: grid; grid-template-columns: 44px 1fr; gap: 7px 10px; }
.copy-result-card dt { color: #a36a27; font-size: 9px; font-weight: 700; }
.copy-result-card dd { margin: 0; color: #60574c; font-size: 9px; line-height: 1.65; }
.copy-result-card dd p { margin: 0 0 4px; }
.copy-result-card .copy-quality-pass { margin: 0 0 12px; padding: 9px 10px; border: 1px solid #cfe2d2; border-radius: 9px; justify-content: flex-start; color: #48765a; background: #f3f9f4; font-size: 9px; line-height: 1.5; }
.copy-point-list { display: grid; gap: 7px; }
.copy-result-card .copy-point-list p { padding: 8px 9px; border: 1px solid #eee2d0; border-radius: 8px; background: rgba(255,255,255,.7); }
.copy-point-list strong, .copy-point-list span { display: block; }
.copy-point-list strong { margin-bottom: 3px; color: #79532b; }
.copy-result-card .copy-repair-note, .copy-result-card .copy-fact-note { margin-top: 10px; padding: 9px 10px; border-radius: 9px; display: block; color: #756754; background: #f7efe1; font-size: 8px; line-height: 1.6; }
.copy-result-card .copy-fact-note { background: #f5f3ee; }
.copy-result-card footer { margin-top: 11px; padding-top: 9px; border-top: 1px solid #eadfce; color: var(--muted); font-size: 8px; }
.copy-editor textarea { min-height: 250px; }
.copy-toolbar { margin: -3px 0 15px; display: flex; flex-wrap: wrap; gap: 8px; }
.copy-versions { margin: 14px 0; padding: 14px; border: 1px solid #e8e1d6; border-radius: 12px; background: #fbf8f2; }
.copy-versions > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.copy-versions > div:first-child strong { font-size: 11px; }
.copy-versions > div:first-child span, .copy-versions > p { color: var(--muted); font-size: 8px; }
.copy-versions > p { margin: 8px 0 0; line-height: 1.6; }
.copy-version-list { max-height: 180px; margin-top: 9px; overflow-y: auto; display: grid; gap: 6px; }
.copy-version-list article { padding: 9px 10px; border: 1px solid #ebe4d9; border-radius: 9px; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: white; }
.copy-version-list b, .copy-version-list small { display: block; }
.copy-version-list b { font-size: 9px; }
.copy-version-list small { margin-top: 3px; color: var(--muted); font-size: 7px; }
.copy-version-list button, .copy-suggestion button, .confirmation-grid button { border: 0; color: #a6681d; background: transparent; font-size: 9px; cursor: pointer; }
.copy-suggestion { margin-top: 13px; padding: 14px; border: 1px solid #e6ded2; border-radius: 12px; background: #fffdfa; }
.copy-suggestion strong { font-size: 11px; }
.copy-suggestion p { margin: 6px 0; color: #746d64; font-size: 9px; line-height: 1.65; }
.packaging-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.packaging-card { padding: 16px; border: 1px solid #e6dfd4; border-radius: 13px; background: #fffdfa; }
.packaging-card > div { margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.packaging-card h3 { margin: 0; font-size: 13px; }
.packaging-card .field { margin: 0; }
.packaging-card.unavailable { grid-column: 1 / -1; border-style: dashed; background: #f7f4ee; }
.packaging-card.unavailable p { margin: 0; color: #777066; font-size: 9px; line-height: 1.7; }

@media (max-width: 580px) {
  /* Keep these after the desktop cards: earlier mobile rules were overridden. */
  .packaging-grid, .confirmation-grid { grid-template-columns: minmax(0, 1fr); }
  .packaging-card { min-width: 0; padding: 16px; }
  .packaging-card h3 { font-size: 16px; }
  .packaging-card > div { flex-wrap: wrap; }
  .packaging-card .field { margin-bottom: 12px; }
  .packaging-card .field select { font-size: 16px; min-height: 48px; }
  .packaging-card p, .packaging-card small { font-size: 13px; line-height: 1.7; }
  .packaging-card audio { width: 100%; min-width: 0; }
  .confirmation-grid article > span, .confirmation-grid article p { font-size: 13px; }
  .duration-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .duration-choice strong { font-size: 14px; }
  .duration-choice small { font-size: 11px; }
  .pilot-access-card { padding: 14px; grid-template-columns: 1fr; align-items: stretch; }
  .pilot-access-card strong { font-size: 15px; }
  .pilot-access-card small, .pilot-access-card label > span { font-size: 12px; }
  .pilot-access-card input { height: 50px; font-size: 16px; }
  .pilot-access-card .button { width: 100%; }
  .pilot-logout { min-height: 44px; font-size: 12px; }
  .pilot-coming-panel { min-height: 430px; }
  .pilot-coming-panel h3 { margin: 0; font-size: 21px; }
  .pilot-coming-panel > p, .pilot-confirmed-copy p { font-size: 13px; }
  .pilot-confirmed-copy small { font-size: 12px; }
  .ai-unavailable-card strong, .copy-result-card h3 { font-size: 14px; }
  .ai-unavailable-card p, .copy-error, .copy-result-card dd, .copy-result-card footer { font-size: 12px; }
  .copy-result-card > div small, .copy-result-card dt { font-size: 11px; }
  .copy-result-card dl { grid-template-columns: 42px minmax(0, 1fr); }
  .copy-result-card .copy-quality-pass, .copy-result-card .copy-repair-note, .copy-result-card .copy-fact-note { font-size: 12px; }
  .copy-ai-actions button { min-height: 46px; font-size: 13px; touch-action: manipulation; }
}
.confirmation-summary { display: grid; gap: 13px; }
.confirmation-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.confirmation-grid article { min-height: 145px; padding: 14px; border: 1px solid #e7dfd3; border-radius: 12px; display: flex; flex-direction: column; background: #fffdfa; }
.confirmation-grid article > span { color: #9a7140; font-size: 9px; }
.confirmation-grid article strong { margin-top: 6px; font-size: 15px; }
.confirmation-grid article p { margin: 7px 0 10px; overflow: hidden; color: #70695f; font-size: 9px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.confirmation-grid article button { margin-top: auto; align-self: flex-start; padding: 0; }
.cost-summary { padding: 14px; border: 1px solid #d8e6db; border-radius: 12px; display: flex; align-items: flex-start; gap: 9px; color: #568063; background: #f2f8f3; }
.cost-summary strong { font-size: 11px; }
.cost-summary p { margin: 4px 0 0; color: #667369; font-size: 9px; line-height: 1.6; }
.result-management { min-height: 420px; }
.module-field > span { font-size: 10px; font-weight: 650; }
.module-field > small, .field > small { color: var(--muted); font-size: 8px; line-height: 1.6; }
.content-type-grid { display: flex; flex-wrap: wrap; gap: 7px; }
.choice-chip { min-height: 36px; padding: 0 13px; border: 1px solid #e7dfd4; border-radius: 99px; color: #716b62; background: #fff; font-size: 9px; cursor: pointer; }
.choice-chip.active { border-color: #e2b671; color: #9d5e16; background: #fff0d7; box-shadow: 0 0 0 2px rgba(217,139,43,.07); }
.consent-panel { margin-top: 17px; padding: 15px; border: 1px solid #eadfce; border-radius: 13px; display: grid; gap: 11px; background: #fffaf1; }
.consent-panel label { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; }
.consent-panel input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--amber); }
.consent-panel strong, .consent-panel small { display: block; }
.consent-panel strong { font-size: 10px; }
.consent-panel small { margin-top: 3px; color: #746d64; font-size: 8px; line-height: 1.55; }
.capability-status { padding: 11px 12px; border: 1px solid #e9ddca; border-radius: 10px; display: flex; align-items: flex-start; gap: 7px; color: #766b5c; background: #faf6ee; font-size: 9px; line-height: 1.6; }
.capability-status.warning { color: #875a22; background: #fff5e4; }
.analysis-summary { margin-top: 14px; padding: 15px; border: 1px solid #dce8df; border-radius: 13px; background: #f7fcf7; }
.analysis-summary > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.analysis-summary > div:first-child strong { font-size: 11px; }
.analysis-metrics { margin-top: 11px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.analysis-metrics span { padding: 9px; border-radius: 9px; color: #6c756d; background: white; font-size: 8px; text-align: center; }
.analysis-metrics b { display: block; margin-bottom: 3px; color: #4f7959; font-size: 15px; }
.analysis-summary p { margin: 10px 0 0; display: flex; gap: 6px; color: #637067; font-size: 8px; line-height: 1.6; }
.asset-item-v2 { overflow: visible; }
.asset-preview-button { position: relative !important; inset: auto !important; width: 100% !important; height: auto !important; padding: 0; overflow: hidden; border-radius: 10px 10px 0 0 !important; background: #ece8e0 !important; }
.asset-item-v2 > div:nth-of-type(1) { padding: 8px; }
.asset-order-actions { padding: 0 7px 7px !important; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.asset-order-actions button { min-height: 30px; border: 1px solid #e6ded2; border-radius: 7px; display: grid; place-items: center; color: #7c7367; background: #fffaf2; cursor: pointer; }
.asset-order-actions button:disabled { opacity: .35; cursor: default; }
.asset-preview-dialog { position: relative; z-index: 1; width: min(880px, 100%); max-height: calc(100svh - 44px); padding: 18px; border: 1px solid #eadcc6; border-radius: 20px; background: #181918; box-shadow: 0 28px 80px rgba(0,0,0,.36); }
.asset-preview-dialog img, .asset-preview-dialog video { width: 100%; max-height: calc(100svh - 150px); object-fit: contain; display: block; border-radius: 12px; background: #0b0c0b; }
.asset-preview-dialog > div { padding: 12px 3px 0; color: #f2ede4; }
.asset-preview-dialog strong, .asset-preview-dialog span { display: block; }
.asset-preview-dialog strong { font-size: 12px; }
.asset-preview-dialog span { margin-top: 3px; color: #aaa49b; font-size: 9px; }
.analysis-loading { min-height: 330px; display: grid; place-items: center; align-content: center; gap: 10px; text-align: center; }
.analysis-loading h3 { margin: 0; font-size: 18px; }
.analysis-loading p { margin: 0 0 5px; color: var(--muted); font-size: 10px; }
.director-plan { display: grid; gap: 14px; }
.duration-section, .story-structure, .advanced-options { padding: 16px; border: 1px solid #e8e0d4; border-radius: 13px; background: #fffdfa; }
.plan-section-head { margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan-section-head h3 { margin: 4px 0 0; font-size: 14px; }
.duration-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.duration-choice { min-height: 60px; padding: 9px; border: 1px solid #e8e0d4; border-radius: 10px; display: grid; gap: 4px; color: #6f685f; background: white; text-align: left; cursor: pointer; }
.duration-choice strong, .duration-choice small { display: block; }
.duration-choice strong { font-size: 10px; }
.duration-choice small { color: #a29a8f; font-size: 7px; line-height: 1.45; }
.duration-choice.active { border-color: #da983e; color: #9d5d14; background: #fff0d8; box-shadow: 0 0 0 2px rgba(217,139,43,.08); }
.duration-choice:disabled { color: #aaa49b; background: #f2f0eb; cursor: not-allowed; }
.recommendation-reason { margin: 10px 0 0; display: flex; align-items: flex-start; gap: 6px; color: #7b6447; font-size: 9px; line-height: 1.6; }
.story-structure article { padding: 10px 0; border-top: 1px solid #eee8df; display: grid; grid-template-columns: 75px 1fr; gap: 10px; }
.story-structure article span { color: #a16c2b; font-size: 9px; font-weight: 650; }
.story-structure article p { margin: 0; color: #5f5a53; font-size: 9px; line-height: 1.7; }
.shot-list { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.shot-list span { padding: 6px 8px; border-radius: 8px; color: #746c61; background: #f4f0e9; font-size: 8px; }
.shot-list b { margin-right: 5px; color: #b36c19; }
.advanced-toggle { min-height: 42px; border: 1px solid #e4d8c6; border-radius: 11px; display: flex; align-items: center; justify-content: center; gap: 5px; color: #8d622c; background: #fff8eb; font-size: 10px; cursor: pointer; }
.advanced-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.advanced-options .field { margin: 0; }
.option-status { min-height: 80px; padding: 11px; border: 1px dashed #dfd6ca; border-radius: 10px; display: grid; gap: 5px; align-content: start; }
.option-status span { font-size: 10px; font-weight: 650; }
.option-status strong { color: #a06b2c; font-size: 10px; }
.option-status small { color: var(--muted); font-size: 8px; line-height: 1.55; }
.workspace-actions { display: flex; gap: 8px; }
.module-ribbon { margin: -6px 0 14px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.module-ribbon span { min-height: 32px; border: 1px solid #e5ded4; border-radius: 8px; display: grid; place-items: center; color: #a49d93; background: #f6f3ed; font-size: 8px; }
.module-ribbon span.done { border-color: #d8e5db; color: #568063; background: #edf6ee; }
.inspector-facts { margin-bottom: 12px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
.inspector-facts span { padding: 9px; border-radius: 9px; background: #f6f2eb; }
.inspector-facts small, .inspector-facts strong { display: block; }
.inspector-facts small { color: var(--muted); font-size: 7px; }
.inspector-facts strong { margin-top: 4px; font-size: 9px; }
.inspector-panel .button + .button { margin-top: 7px; }
.local-file-note { display: block; margin-top: 10px; color: var(--muted); font-size: 8px; line-height: 1.55; }

@media (max-width: 820px) {
  .duration-grid { grid-template-columns: repeat(2, 1fr); }
  .module-ribbon { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 580px) {
  .module-field > span, .consent-panel strong { font-size: 13px; }
  .module-field > small, .consent-panel small, .capability-status, .analysis-summary p { font-size: 11px; }
  .content-type-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
  .choice-chip { min-height: 46px; font-size: 13px; }
  .asset-grid { grid-template-columns: 1fr; }
  .asset-item img, .asset-item video { height: 190px; }
  .asset-order-actions button { min-height: 44px; font-size: 16px; }
  .consent-panel { padding: 14px 12px; }
  .consent-panel input { width: 22px; height: 22px; }
  .analysis-metrics span { font-size: 10px; }
  .duration-section, .story-structure, .advanced-options { padding: 13px; }
  .duration-choice { min-height: 72px; }
  .duration-choice strong { font-size: 13px; }
  .duration-choice small { font-size: 10px; }
  .recommendation-reason, .story-structure article p { font-size: 12px; }
  .story-structure article { grid-template-columns: 1fr; }
  .story-structure article span { font-size: 12px; }
  .shot-list span { font-size: 11px; }
  .advanced-toggle { min-height: 48px; font-size: 13px; }
  .advanced-options { grid-template-columns: 1fr; }
  .option-status span, .option-status strong { font-size: 13px; }
  .option-status small, .field > small { font-size: 11px; }
  .module-ribbon { overflow-x: auto; grid-template-columns: repeat(7, minmax(85px, 1fr)); scrollbar-width: none; }
  .module-ribbon span { min-height: 40px; font-size: 11px; }
  .workspace-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .workspace-actions .button { width: auto; padding-inline: 8px; }
  .project-actions { flex-wrap: wrap; }
  .project-actions .icon-button { flex: 0 0 44px; }
  .asset-preview-dialog { height: 100svh; padding: 58px 12px 16px; border-radius: 0; display: grid; align-content: center; }
  .asset-preview-dialog img, .asset-preview-dialog video { max-height: calc(100svh - 150px); }
}

/* Last cascade layer: mobile review must not inherit the later desktop clamp. */
@media (max-width: 580px) {
  .route-video .confirmation-grid { grid-template-columns: minmax(0, 1fr); }
  .route-video .confirmation-grid article > span,
  .route-video .confirmation-grid article p { font-size: 13px; }
  .route-video .confirmation-grid article strong { font-size: 18px; }
  .route-video .confirmation-grid article p {
    display: block; overflow: visible; -webkit-line-clamp: unset;
  }
  .route-video .confirmation-grid article button { font-size: 13px; min-height: 44px; }
  .route-video .cost-summary p { font-size: 12px; }
}
/* V3 additions retain the existing warm brand layout. */
.creator-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.creator-actions small{font-size:13px;color:#6d6255}
.project-history,.privacy-disclosure{padding:18px;margin-top:18px;border:1px solid var(--border,#e6dece);border-radius:16px;background:#fffaf1;line-height:1.75}
.project-history button{margin:6px 8px 0 0;min-height:44px}.privacy-disclosure summary{cursor:pointer;min-height:44px;display:flex;align-items:center}.privacy-disclosure p,.project-history p{font-size:14px;color:#60584c}
@media(max-width:760px){.creator-actions{width:100%}.creator-actions small{flex:1}.creator-header{flex-wrap:wrap}.project-history button{width:100%;margin:8px 0 0}}
@media(max-width:760px){.creator-header .creator-actions .button{font-size:14px;width:auto;min-width:100px;min-height:44px;padding:10px 14px;flex:none}}
@media(max-width:760px){.project-summary .project-history .button{display:flex;min-height:44px}}
.output-ratio-panel{padding:22px;margin-bottom:22px;border:2px solid var(--accent,#bf7c24);border-radius:18px;background:var(--surface,#fffaf0)}
.output-ratio-panel p{line-height:1.6}.output-ratio-choices{display:grid;grid-template-columns:1fr 1fr;gap:14px}.output-ratio-choices .button{display:flex;flex-direction:column;min-height:84px;white-space:normal}.output-ratio-choices small{font-size:14px}.output-ratio-choices .selected{border:2px solid #ae6b17;background:#fff0d8;color:#71410b}
@media(max-width:580px){.output-ratio-panel{padding:16px}.output-ratio-choices{gap:10px}.output-ratio-choices .button{padding:12px 8px;min-height:88px}}
/* V3.5: long upstream errors must wrap, not enlarge the mobile grid track. */
.creator-layout > *, .panel-heading > div { min-width: 0; }
.ai-service-fault { margin: 14px 0; padding: 18px; border: 1px solid #e4c28e; border-radius: 13px; background: #fff8eb; color: #73502c; overflow-wrap: anywhere; }
.ai-service-fault p { line-height: 1.7; font-size: 14px; }
.ai-service-fault .button { min-height: 48px; }
.panel-heading > span { flex-shrink: 0; }
.analysis-summary, .analysis-summary li { overflow-wrap: anywhere; }
@media (max-width: 820px) {
  .creator-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 580px) {
  .creator-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
  .creator-header > div:first-child { min-width: 0; }
  .creator-header > .button { height: 44px; }
  .creator-header .creator-actions { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .creator-actions small { grid-column: 1 / -1; }
  .creator-header .creator-actions .button { min-width: 0; width: 100%; }
  .step-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
  .step-actions > span:empty { display: none; }
  .step-actions .button { min-height: 48px; width: 100%; white-space: normal; }
  .panel-heading h3, .panel-heading p { overflow-wrap: anywhere; }
}
/* Actual service provenance; long model IDs must wrap on narrow phones. */
.engine-details{margin:1rem 0;padding:1rem;border:1px solid var(--border,#ddcfbc);border-radius:16px;background:var(--surface,#fffaf2);text-align:left;min-width:0}
.engine-details summary{font-weight:650;cursor:pointer;min-height:44px;display:flex;align-items:center}
.engine-details dl{display:grid;gap:10px;margin:0}
.engine-details dl>div{display:grid;grid-template-columns:minmax(90px,auto) minmax(0,1fr);gap:12px;padding:8px 0;border-bottom:1px solid #e5dccf}
.engine-details dt{font-weight:600}.engine-details dd{margin:0;overflow-wrap:anywhere;font-size:14px;line-height:1.6;color:#493b2c}
.engine-details p{font-size:14px;line-height:1.7;color:#685b49;overflow-wrap:anywhere}
@media(max-width:480px){.engine-details dl>div{grid-template-columns:1fr;gap:3px}}
