.app-shell:has(.home-icon-workspace)>.sidebar,.app-shell:has(.home-icon-workspace)>.drawer-backdrop{display:none}
.app-shell:has(.home-icon-workspace)>.main-shell{margin-left:0;width:100%}
.app-shell:has(.home-icon-workspace) .topbar-left>button{display:none}
.home-icon-workspace{max-width:1160px;margin:0 auto;padding:46px 38px 64px;color:#251e35;font-family:inherit}
.home-icons-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:34px}
.home-icons-eyebrow{display:block;font-size:12px;letter-spacing:1.4px;color:#7b62cc;font-weight:700;margin-bottom:12px}
.home-icons-heading h1{font-size:32px;font-weight:800;line-height:1.3;letter-spacing:-.8px;margin:0 0 10px}
.home-icons-heading p{font-size:14px;line-height:1.7;color:#9690a2;margin:0}
.home-icons-signature{display:flex;align-items:center;gap:8px;white-space:nowrap;font-size:12px;color:#91869d;padding:10px 14px;background:#eeebf6;border:1px solid #e5dfef;border-radius:99px}
.home-signature-dot{width:6px;height:6px;background:#a18bd6;border-radius:50%;box-shadow:0 0 0 4px #e7e0f5}
.home-tools-panel,.home-utilities-panel{background:#fff;border:1px solid #eae5f2;border-radius:24px;padding:26px;margin-bottom:22px;box-shadow:0 6px 24px #34214d03}
.home-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 4px 20px}
.home-panel-heading h2{font-size:16px;margin:0;font-weight:750;color:#3b314b}
.home-panel-heading>span{font-size:12px;color:#a69eaf}
.home-tools-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.home-icon-tile{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:17px;min-width:0;min-height:198px;padding:26px 12px 23px;border:1px solid transparent;border-radius:18px;background:#faf9fd;text-align:center;font:inherit;cursor:pointer;transition:background .18s,border-color .18s,transform .18s,box-shadow .18s;color:inherit}
.home-icon-tile:hover{background:#fff;border-color:#d6cafb;box-shadow:0 8px 22px #6140b60d;transform:translateY(-3px)}
.home-icon-tile:focus-visible{outline:3px solid #bdaaff;outline-offset:3px}
.home-feature-icon{position:relative;display:grid;place-items:center;flex-shrink:0;width:68px;height:68px;border-radius:20px;color:var(--icon-color);background:var(--icon-bg);box-shadow:0 5px 10px var(--icon-shadow);border:1px solid var(--icon-border)}
.home-feature-icon:after{content:"";position:absolute;inset:0;border-radius:inherit;background:linear-gradient(140deg,#fff8,transparent 60%);pointer-events:none}
.home-feature-icon svg{width:36px;height:36px;position:relative;z-index:1}
.home-feature-icon.purple{--icon-color:#7652ee;--icon-bg:#ece3ff;--icon-shadow:#865bf315;--icon-border:#e7dcfc}
.home-feature-icon.orange{--icon-color:#e9904b;--icon-bg:#ffeddd;--icon-shadow:#efab6013;--icon-border:#f9e4ce}
.home-feature-icon.blue{--icon-color:#508bed;--icon-bg:#e4edff;--icon-shadow:#508bed12;--icon-border:#dce6ff}
.home-feature-icon.pink{--icon-color:#d775ab;--icon-bg:#fbe4f0;--icon-shadow:#d775ab12;--icon-border:#f7ddeb}
.home-feature-icon.teal{--icon-color:#49a792;--icon-bg:#e0f4ed;--icon-shadow:#49a79212;--icon-border:#d4eee5}
.home-feature-icon.violet{--icon-color:#9a6ee0;--icon-bg:#efe3fb;--icon-shadow:#9a6ee012;--icon-border:#e9daf8}
.home-feature-icon.amber{--icon-color:#cea24d;--icon-bg:#fff2d7;--icon-shadow:#cea24d12;--icon-border:#f7eacb}
.home-feature-icon.cyan{--icon-color:#4fa7bd;--icon-bg:#def1f6;--icon-shadow:#4fa7bd12;--icon-border:#d5eaf2}
.home-tile-copy{display:flex;flex-direction:column;align-items:center;gap:7px;max-width:100%}
.home-tile-copy strong{font-size:16px;font-weight:700;line-height:1.4;color:#3b3248}
.home-tile-copy small{font-size:11px;line-height:1.6;font-weight:400;color:#a29aac;white-space:normal}
.home-tool-tag{position:absolute;top:12px;right:12px;padding:3px 7px;font-size:9px;line-height:1.4;color:#9b80db;background:#f0eafb;border-radius:6px}
.home-tile-arrow{position:absolute;right:15px;bottom:15px;font-size:16px;opacity:0;color:#9a82d0;transition:opacity .18s}
.home-icon-tile:hover .home-tile-arrow,.home-icon-tile:focus-visible .home-tile-arrow{opacity:1}
.home-utilities-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.home-icon-tile.compact{min-height:150px;padding:20px 8px 18px;background:transparent;gap:14px}
.compact .home-feature-icon{width:46px;height:46px;border-radius:14px;box-shadow:none}
.compact .home-feature-icon svg{width:25px;height:25px}
.compact .home-tile-copy{gap:5px}
.compact .home-tile-copy strong{font-size:14px}
.compact .home-tile-copy small{font-size:10px}
.home-icons-footnote{text-align:center;font-size:11px;color:#bdb5c7;margin:28px 0 0;letter-spacing:.8px}
.home-icon-tile.featured-video{overflow:hidden;gap:12px;padding:23px 12px 20px;color:#fff;border-color:#7952eb;background:radial-gradient(circle at 90% 12%,#b398ff66,transparent 46%),linear-gradient(145deg,#8057ef,#6740d8 72%,#5a34c4);box-shadow:0 9px 22px #6f47d628}
.home-icon-tile.featured-video:hover{border-color:#b59bff;background:radial-gradient(circle at 90% 12%,#c0a5ff66,transparent 46%),linear-gradient(145deg,#8861f5,#6c43df 72%,#5f38ce);box-shadow:0 12px 28px #6f47d63b}
.featured-video .home-feature-icon{width:78px;height:78px;color:#fff;background:#ffffff21;border-color:#ffffff38;box-shadow:0 6px 20px #38208122}
.featured-video .home-feature-icon:after{background:linear-gradient(140deg,#ffffff20,transparent 60%)}
.featured-video .home-feature-icon svg{width:43px;height:43px}
.featured-video .home-tile-copy{gap:5px}
.featured-video .home-tile-copy strong{font-size:19px;font-weight:800;color:#fff;letter-spacing:.4px}
.featured-video .home-tile-copy small{color:#eadfff;font-size:11px}
.featured-video .home-tool-tag{background:#fff;color:#7450d1;font-size:9px;padding:4px 8px;border-radius:7px}
.home-featured-cta{display:inline-flex;align-items:center;justify-content:center;min-height:24px;padding:3px 13px;color:#fff;background:#ffffff1c;border:1px solid #ffffff24;border-radius:99px;font-size:10px;font-weight:650;letter-spacing:.6px}
@media(min-width:1500px){.home-icon-workspace{padding-top:55px}.home-icon-tile{min-height:218px}.home-feature-icon{width:74px;height:74px;border-radius:22px}.home-feature-icon svg{width:39px;height:39px}}
@media(max-width:1100px){.home-icon-workspace{padding:30px 24px 80px}.home-icons-heading h1{font-size:28px}.home-icons-signature{display:none}.home-tools-panel,.home-utilities-panel{padding:20px}.home-icon-tile{min-height:180px}.home-utilities-grid{gap:4px}.compact .home-tile-copy small{display:none}}
@media(max-width:820px){.home-icon-workspace{padding:30px 18px 115px}.home-icons-heading{margin-bottom:24px}.home-icons-heading h1{font-size:27px}.home-icons-heading p{font-size:12px}.home-icons-eyebrow{font-size:10px;letter-spacing:1px}.home-tools-panel,.home-utilities-panel{padding:18px;border-radius:20px;margin-bottom:18px}.home-panel-heading{margin:0 1px 17px}.home-panel-heading>span{display:none}.home-panel-heading h2{font-size:15px}.home-tools-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.home-icon-tile{padding:20px 5px;min-height:165px;gap:14px}.home-feature-icon{width:55px;height:55px;border-radius:17px}.home-feature-icon svg{width:30px;height:30px}.home-tile-copy strong{font-size:14px}.home-tile-copy small{font-size:10px}.home-utilities-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.home-icon-tile.compact{min-height:113px;padding:15px 2px}.compact .home-tile-copy strong{font-size:12px}.home-tool-tag{top:7px;right:7px;font-size:8px}}
@media(max-width:560px){.home-tools-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.home-icon-tile{min-height:140px;padding:19px 3px 15px;gap:12px}.home-feature-icon{width:50px;height:50px;border-radius:16px}.home-feature-icon svg{width:28px;height:28px}.home-tile-copy{gap:5px}.home-tile-copy strong{font-size:13px}.home-tile-copy small{font-size:9px;line-height:1.5;max-width:86px}.home-utilities-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}.compact .home-tile-copy strong{font-size:13px}.home-panel-heading h2{font-size:15px}.home-tool-tag{top:5px;right:5px;font-size:7px;padding:2px 4px}}
@media(max-width:820px){.home-icon-tile.featured-video{gap:9px;padding:19px 6px 16px}.featured-video .home-feature-icon{width:60px;height:60px}.featured-video .home-feature-icon svg{width:34px;height:34px}.featured-video .home-tile-copy strong{font-size:16px}.featured-video .home-tile-copy small{font-size:10px}}
@media(max-width:560px){.home-icon-tile.featured-video{min-height:164px;gap:8px;padding:19px 3px 12px}.featured-video .home-feature-icon{width:54px;height:54px}.featured-video .home-feature-icon svg{width:31px;height:31px}.featured-video .home-tile-copy strong{font-size:14px}.featured-video .home-tile-copy small{font-size:9px}.featured-video .home-tool-tag{top:5px;right:5px;padding:2px 5px;font-size:8px}.home-featured-cta{min-height:20px;padding:2px 8px;font-size:9px;letter-spacing:0}}
@media(prefers-reduced-motion:reduce){.home-icon-tile,.home-tile-arrow{transition:none}.home-icon-tile:hover{transform:none}}

/* Creation Step 1: optional images first, then the operation requirements. */
.five-step-create .copy-editor-card{scroll-margin-top:142px}
.asset-prompt-expanded>header{min-height:32px;padding:8px 12px;display:flex;align-items:center;color:#554a63;font-size:11px;font-weight:800}
.asset-generation-modes.two-source-assets{grid-template-columns:repeat(2,minmax(0,1fr))}
.asset-generation-modes.two-source-assets>button:first-child{color:var(--purple);border-color:#d7ceff;background:#f7f4ff}
.compact-model-picker{display:none}
.simple-requirement-card.image-first-requirement-card>.image-first-section{order:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));align-items:start;gap:12px;margin:0 0 24px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
.image-first-section>header{grid-column:1/-1;display:block;margin:0 0 3px}
.image-first-section>header>div{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 10px}
.image-first-section>header strong{font-size:13px;color:#342648}
.image-first-section>header small{font-size:11px;font-weight:400;line-height:1.7;color:#94869f}
.image-first-section>.copy-reference-list{display:contents;margin:0}
.image-first-section .copy-reference-list>article{position:relative;display:flex;flex-direction:column;gap:5px;width:104px;min-height:122px;padding:6px;border:1px solid #e6def2;border-radius:11px;background:#fff}
.image-first-section .copy-reference-preview{width:90px;height:80px;min-height:0;border-radius:7px;background:#f7f4fc;padding:0;overflow:hidden}
.image-first-section .copy-reference-preview img{width:100%;height:100%;display:block;object-fit:contain}
.image-first-section .copy-reference-list>article>div{display:block;width:100%;padding:2px 3px}
.image-first-section .copy-reference-list>article>div>span{display:none}
.image-first-section .copy-reference-list>article>div>strong{display:block;font-size:11px;font-weight:650;line-height:1.5}
.image-first-section .copy-reference-remove{position:absolute;right:3px;top:3px;width:22px;height:22px;min-height:0;display:grid;place-items:center;padding:0;border:1px solid #e8e2ee;border-radius:50%;background:#ffffffef;color:#85748f;box-shadow:0 2px 7px #2418340c}
.image-first-section>.copy-reference-add-tile{width:104px;min-height:122px;padding:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;border:1px dashed #cfc1f0;border-radius:11px;background:#faf8ff;color:#9678d1;font-family:inherit;font-size:11px;font-weight:500;cursor:pointer;transition:border-color .15s,background .15s}
.image-first-section>.copy-reference-add-tile:hover{border-color:#8661e0;background:#f3edff;color:#7450c1}
.image-first-section>.copy-reference-add-tile:focus-visible{outline:3px solid #d0bdf6;outline-offset:3px}
.simple-requirement-card.image-first-requirement-card>.requirement-detail{order:1;margin-top:0;gap:10px;font-size:13px;color:#342648}
.simple-requirement-card.image-first-requirement-card>.requirement-detail textarea{min-height:185px;font-size:12px;font-weight:400;line-height:1.8}
.simple-requirement-card.image-first-requirement-card>.primary{order:2;margin-top:14px}
@media(max-width:820px){.simple-requirement-card.image-first-requirement-card>.image-first-section{grid-template-columns:repeat(auto-fill,minmax(90px,1fr));gap:10px;margin-bottom:22px}.image-first-section>.copy-reference-add-tile,.image-first-section .copy-reference-list>article{width:90px;min-height:112px}.image-first-section .copy-reference-preview{width:76px;height:70px}.image-first-section>header>div{display:grid;gap:4px}.image-first-section>header small{font-size:11px}.simple-requirement-card.image-first-requirement-card>.requirement-detail textarea{min-height:180px;font-size:16px}}

/* Portrait phone spacing: shorter chrome and cards, readable fields and touch targets. */
@media(max-width:560px){
  .five-step-create .prompt-settings,.benniao-mobile-layout .five-step-create:not(.talking-head-create) .prompt-settings{padding:10px;border-radius:12px}
  .five-step-create .prompt-settings .subhead{margin-bottom:7px;gap:7px}
  .five-step-create .prompt-settings .subhead h3{font-size:12px;margin:0 0 2px}
  .five-step-create .prompt-settings .subhead small{margin-top:2px;font-size:9px;line-height:1.4}
  .five-step-create .prompt-settings>label,.benniao-mobile-layout .five-step-create:not(.talking-head-create) .prompt-settings>label{display:grid;grid-template-columns:48px minmax(0,1fr);align-items:center;gap:6px;margin:8px 0 0;font-size:11px}
  .five-step-create .prompt-settings .model-choice-cards,.benniao-mobile-layout .five-step-create .prompt-settings .compact-model-picker + .model-choice-cards{display:none}
  .five-step-create .prompt-settings .compact-model-picker{display:block;position:relative;min-width:0}
  .compact-model-picker.is-open{z-index:45}
  .compact-model-picker .model-picker-trigger{box-sizing:border-box;width:100%;height:38px;display:flex;align-items:center;gap:6px;padding:0 9px;color:#342b46;border:1px solid #dfd8ed;border-radius:9px;background:linear-gradient(180deg,#fff,#faf8ff);font:inherit;text-align:left;cursor:pointer;box-shadow:0 1px 3px #2c175406}
  .model-picker-trigger>strong{flex:1;min-width:0;font-size:12px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .model-picker-trigger>small{flex-shrink:0;padding:3px 5px;border-radius:5px;background:#f0ebff;color:#7954db;font-size:9px;font-weight:650;line-height:1.3}
  .model-picker-chevron{flex-shrink:0;width:12px;height:12px;color:#8c7d9d;transition:transform .16s}
  .is-open>.model-picker-trigger{border-color:#a88be7;box-shadow:0 0 0 2px #875be812}
  .is-open .model-picker-chevron{transform:rotate(180deg)}
  .model-picker-trigger:focus-visible{outline:2px solid #b9a7ff;outline-offset:2px}
  .model-picker-menu{position:absolute;z-index:46;top:calc(100% + 5px);right:0;width:260px;max-width:calc(100vw - 64px);box-sizing:border-box;padding:4px;border:1px solid #e5dff0;border-radius:10px;background:#fff;box-shadow:0 10px 24px #2e1b501c,0 2px 6px #26123e08}
  .model-picker-menu.opens-above{top:auto;bottom:calc(100% + 7px)}
  .model-picker-caption{padding:4px 7px 5px;color:#9c90aa;font-size:9px;font-weight:500;line-height:1.3}
  .model-picker-menu .model-picker-option{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:38px;padding:5px 8px;border:1px solid transparent;border-radius:7px;background:#fff;color:#3e344c;font:inherit;text-align:left;cursor:pointer}
  .model-picker-option>span:first-child{display:grid;gap:2px;min-width:0}
  .model-picker-option strong{font-size:11px;font-weight:650;line-height:1.25}
  .model-picker-option small{font-size:9px;font-weight:400;line-height:1.3;color:#95899f;overflow-wrap:anywhere}
  .model-picker-menu .model-picker-option:hover{background:#f9f6fd}
  .model-picker-menu .model-picker-option.is-selected{background:#f3eeff;color:#7044d6}
  .model-picker-option.is-selected small{color:#9a7bc8}
  .model-picker-option:focus-visible{outline:1px solid #b89ae9;outline-offset:-1px}
  .model-picker-check,.model-picker-check-space{width:16px;height:16px;flex-shrink:0;color:#8b5ce0}
  .five-step-create .prompt-settings .video-select-row{margin-top:8px;gap:8px}
  .five-step-create .prompt-settings :is(.ratio-dropdown-control,.resolution-dropdown-control){gap:4px}
  .five-step-create .prompt-settings :is(.ratio-dropdown,.resolution-dropdown) summary{height:34px;padding:0 8px;border-radius:8px}
  .asset-generation-modes.two-source-assets{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  .five-step-create .stepper{height:46px;padding:3px 7px}
  .five-step-create .stepper>button{min-height:38px}
  .five-step-create.create-page{padding-top:48px;padding-bottom:calc(80px + env(safe-area-inset-bottom))}
  .five-step-create>section{padding-bottom:24px}
  .five-step-create>.project-editor-bar{margin-bottom:10px}
  .five-step-create .section-heading{margin-bottom:12px;gap:6px}
  .five-step-create .section-heading h1{font-size:21px;line-height:1.3;margin:5px 0 0}
  :is(.copy-first-page,.asset-upload-page,.prompt-page)>.section-heading{position:relative;display:block}
  .five-step-create :is(.copy-first-page,.asset-upload-page,.prompt-page)>.section-heading h1{font-size:13px;font-weight:700;line-height:1.5;margin:3px 0 0}
  .five-step-create .asset-analysis-overview{padding:10px;margin-bottom:10px;border-radius:12px}
  .five-step-create .asset-analysis-title{gap:6px}
  .five-step-create .asset-analysis-title>svg{width:16px;height:16px;flex-shrink:0}
  .five-step-create .asset-analysis-title strong{font-size:12px}
  .five-step-create .asset-analysis-title small{margin-top:2px;font-size:10px;line-height:1.4}
  .five-step-create .asset-analysis-groups{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:8px;gap:6px}
  .five-step-create .asset-analysis-groups section{padding:7px 6px;border-radius:8px}
  .five-step-create .asset-analysis-groups header{gap:3px;flex-wrap:wrap}
  .five-step-create .asset-analysis-groups header svg{width:12px;height:12px}
  .five-step-create .asset-analysis-groups header strong{font-size:11px}
  .five-step-create .asset-analysis-groups header span{font-size:9px}
  .five-step-create .asset-analysis-groups section>div{margin-top:6px;gap:4px}
  .five-step-create .asset-analysis-groups section>div>span{max-width:100%;padding:3px 5px;font-size:10px;line-height:1.4;overflow-wrap:anywhere}
  :is(.copy-first-page,.asset-upload-page,.prompt-page)>.section-heading .step-kicker{font-size:9px;line-height:22px}
  .prompt-page>.section-heading .storyboard-heading-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:10px}
  .prompt-page>.section-heading .storyboard-heading-actions>button{width:100%;min-height:42px;padding:0 8px;font-size:11px;justify-content:center}
  .prompt-page>.section-heading .batch-video-download-button{grid-column:1/-1}
  :is(.copy-first-page,.asset-upload-page)>.section-heading>.reference-count{position:absolute;top:0;right:0;min-height:22px;padding:3px 6px;font-size:9px}
  :is(.copy-first-page,.asset-upload-page)>.section-heading>.reference-count svg{width:12px;height:12px}
  .five-step-create .copy-first-grid{gap:10px}
  .five-step-create .copy-first-grid>.panel{min-height:0;padding:12px;border-radius:14px}
  .simple-requirement-card.image-first-requirement-card>.image-first-section{gap:8px;margin-bottom:14px}
  .image-first-section>header>div{gap:2px}
  .image-first-section>header small{line-height:1.5}
  .image-first-section>.copy-reference-add-tile,.image-first-section .copy-reference-list>article{min-height:90px}
  .image-first-section>.copy-reference-add-tile{gap:5px;padding:8px}
  .image-first-section .copy-reference-preview{height:60px}
  .simple-requirement-card.image-first-requirement-card>.requirement-detail{gap:7px}
  .simple-requirement-card.image-first-requirement-card>.requirement-detail textarea{min-height:140px;padding:10px;font-size:14px;line-height:1.65}
  .simple-requirement-card.image-first-requirement-card>.primary{min-height:44px;margin-top:10px}
  .five-step-create .copy-editor-card .panel-top{flex-direction:row;align-items:center;gap:6px;flex-wrap:wrap}
  .five-step-create .copy-editor-card .panel-top h3{margin:0;font-size:13px}
  .five-step-create .copy-editor-card{scroll-margin-top:116px}
  .five-step-create .copy-editor-toolbar{width:auto;margin-left:auto;align-items:flex-end}
  .five-step-create .manual-copy-entry-hint{margin:10px 0 0;padding:7px 9px;font-size:10px;line-height:1.5}
  .five-step-create .compliance-copy-editor{min-height:220px;margin:10px 0}
  .five-step-create .compliance-copy-editor>*{min-height:220px;font-size:14px}
  .five-step-create .compliance-copy-editor textarea{min-height:220px;padding:12px;font-size:14px}
  .five-step-create .asset-category-block>header{min-height:64px;padding:10px;gap:8px}
  .five-step-create .asset-category-block>header>span{width:34px;height:34px}
  .five-step-create .asset-category-block>header h2{font-size:16px;margin:2px 0}
  .five-step-create .category-asset-grid>article{padding:10px}
  .five-step-create>.creation-footer{min-height:62px;padding-top:7px;padding-bottom:calc(7px + env(safe-area-inset-bottom))}
  .home-icon-workspace{padding-top:20px}
  .home-icons-heading{margin-bottom:16px}
  .home-icons-heading h1{font-size:24px;margin-bottom:6px}
  .home-icons-eyebrow{margin-bottom:7px}
  .home-tools-panel,.home-utilities-panel{padding:14px;margin-bottom:12px}
  .home-panel-heading{margin-bottom:12px}
  .home-icon-tile{min-height:126px;padding-top:14px;padding-bottom:12px;gap:9px}
  .home-icon-tile.featured-video{min-height:150px;padding-top:15px;padding-bottom:10px}
  .home-icon-tile.compact{min-height:94px;padding-top:10px;padding-bottom:10px;gap:10px}
}
/* Keep the mobile project controls compact without changing their actions. */
/* Portrait storyboard cards: compact header, clear fields and restrained empty preview. */
/* Shared host pages use the same mobile scale as the creation steps. */
@media(max-width:560px){
  .video-project-home .project-home-heading{gap:10px;margin-bottom:12px}
  .video-project-home .project-home-heading h1{font-size:16px;margin:4px 0}
  .video-project-home .project-home-heading p{font-size:11px;line-height:1.6}
  .video-project-home .project-history-panel{padding:12px;border-radius:13px}
  .video-project-home .project-history-head{gap:8px;margin-bottom:10px}
  .video-project-home .project-history-head h2{font-size:13px}
  .video-project-home .project-history-head p{font-size:10px;line-height:1.5}
  .video-project-home .project-list{gap:10px}
  .video-project-home .project-list article{padding:12px;gap:8px;border-radius:11px}
  .video-project-home .project-list-main h3{font-size:13px}
  .video-project-home .project-list-main p{font-size:11px;line-height:1.5;margin:5px 0}
  .video-project-home .project-list-actions button{font-size:11px;min-height:36px;padding:7px 10px}
  .library-page>.library-heading{gap:10px;margin-bottom:12px}
  .library-page>.library-heading h1{font-size:15px;line-height:1.5;margin:4px 0}
  .library-page>.library-heading p{font-size:11px;line-height:1.6}
  .library-page>.library-heading .step-kicker{font-size:9px}
  .asset-library-overview{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-bottom:12px}
  .asset-library-overview>button{min-height:72px;padding:8px 6px;display:grid;grid-template-columns:22px 1fr;gap:5px;border-radius:10px}
  .asset-library-overview>button>span{width:22px;height:22px;border-radius:6px}
  .asset-library-overview>button>span svg{width:14px;height:14px}
  .asset-library-overview>button>div{gap:3px}
  .asset-library-overview strong{font-size:11px}
  .asset-library-overview small{font-size:9px}
  .asset-library-overview b{grid-column:1/-1;font-size:16px;justify-self:start;margin:0}
  .asset-library-info{padding:10px}
  .asset-library-info h3{font-size:12px}
  .asset-library-info p{font-size:10px;line-height:1.6}
  .asset-library-card-actions{gap:6px}
  .asset-library-card-actions button{font-size:10px;min-height:34px;padding:7px 8px}
  .asset-library-section-head{gap:8px;margin:12px 0 10px}
  .asset-library-section-head h2{font-size:13px}
  .asset-library-section-head p{font-size:10px;line-height:1.6}
  .library-page :is(.library-heading,.asset-library-section-head)>button{font-size:12px;min-height:38px;padding:8px 10px}
  .asset-library-empty{min-height:150px;padding:18px 12px;gap:8px}
  .asset-library-empty>svg{width:28px;height:28px}
  .asset-library-empty>div{width:36px;height:36px;border-radius:10px}
  .asset-library-empty>div svg{width:23px;height:23px}
  .asset-library-empty strong{font-size:12px}
  .asset-library-empty p{font-size:11px;line-height:1.6}
  .asset-library-empty button{font-size:11px;min-height:36px;padding:8px 10px}
  .asset-library-form :is(label,input,textarea,select){font-size:12px}
  .asset-library-form :is(input,select){min-height:36px;padding:8px;border-radius:8px}
  .asset-library-form textarea{min-height:110px;padding:9px;line-height:1.65}
  .modal-card:has(>.asset-library-form){padding:14px;border-radius:15px}
  .modal-card:has(>.asset-library-form)>.modal-heading{margin-bottom:12px;padding-right:18px}
  .modal-card:has(>.asset-library-form)>.modal-heading h2{font-size:15px;margin:5px 0}
  .modal-card:has(>.asset-library-form)>.modal-heading p{font-size:10px;line-height:1.6}
  .modal-card:has(>.asset-library-form)>.modal-heading .step-kicker{font-size:9px}
  .asset-library-form{gap:10px}
  .asset-library-form .library-image-modes{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  .asset-library-form .library-image-modes>button{min-height:56px;padding:8px;grid-template-columns:18px minmax(0,1fr) 12px;gap:5px;border-radius:9px}
  .asset-library-form .library-image-modes svg{width:15px;height:15px}
  .asset-library-form .library-image-modes strong{font-size:11px}
  .asset-library-form .library-image-modes small{font-size:9px;line-height:1.4}
  .asset-library-form .library-file-upload{min-height:64px;padding:10px;gap:8px}
  .modal-card:has(>.asset-library-form)>.modal-actions{margin-top:12px;gap:7px}
  .modal-card:has(>.asset-library-form)>.modal-actions button{font-size:11px;min-height:36px;padding:8px 10px}
  .generation-history-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-bottom:10px}
  .generation-history-summary>div{display:grid;grid-template-columns:25px minmax(0,1fr);min-height:65px;padding:8px;gap:6px;border-radius:10px}
  .generation-history-summary>div>span{width:25px;height:25px;border-radius:7px}
  .generation-history-summary>div>span svg{width:15px;height:15px}
  .generation-history-summary strong{font-size:16px}
  .generation-history-summary small{font-size:9px}
  .generation-history-query{padding:8px;gap:8px}
  .generation-history-query>[role=tablist]{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:5px}
  .generation-history-query>[role=tablist]>button{width:auto;min-height:34px;font-size:11px;padding:7px 8px}
  .generation-history-query>label{min-height:36px;padding:7px 9px}
  .generation-history-query input{font-size:12px}
  .generation-folder-head{padding:10px;gap:8px}
  .generation-folder-head strong{font-size:12px}
  .generation-folder-head small{font-size:10px}
  .generation-history-empty{min-height:160px;padding:20px 12px}
  .generation-history-empty h3{font-size:13px}
  .generation-history-empty strong{font-size:12px}
  .generation-history-empty p{font-size:11px}
  .inspiration-chat-card{padding:12px;border-radius:13px;min-height:0}
  .inspiration-chat-card>header{padding:4px 0 10px;gap:8px}
  .inspiration-chat-card>header strong{font-size:12px}
  .inspiration-chat-card>header small{font-size:10px}
  .inspiration-chat-card>header>b{font-size:10px;padding:4px 6px}
  .inspiration-chat-log{height:220px;padding:10px 0;gap:10px}
  .inspiration-message{gap:7px}
  .inspiration-message p{font-size:12px;line-height:1.65;padding:9px 11px}
  .inspiration-quick-replies,.inspiration-refine-hints{padding:9px 0 5px}
  .inspiration-quick-replies>small,.inspiration-refine-hints>small{font-size:10px;line-height:1.5}
  .inspiration-quick-replies button,.inspiration-refine-hints button{font-size:11px;padding:7px 9px;min-height:32px}
  .inspiration-chat-input{margin:9px 0 0;gap:7px;padding:8px}
  .inspiration-chat-input textarea{font-size:12px;min-height:54px;line-height:1.65}
  .inspiration-generate-cta{padding:10px;gap:8px;flex-wrap:wrap}
  .inspiration-generate-cta strong{font-size:12px}
  .inspiration-generate-cta small{font-size:10px}
  .inspiration-generate-cta button{font-size:11px;min-height:36px;padding:8px 10px}
  .library-page.my-account-page>.library-heading{min-height:85px;padding:16px 18px}
  .my-account-page .my-account-hero{padding:14px;gap:12px}
  .my-account-page .my-profile-summary{gap:10px}
  .my-account-page .my-profile-avatar{width:44px;height:44px;font-size:19px}
  .my-account-page .my-profile-summary h3{font-size:14px}
  .my-account-page .my-profile-summary p{font-size:10px;margin-top:5px}
  .my-account-page .my-profile-summary b{font-size:9px;padding:4px 7px}
  .my-account-page .my-balance-row{padding-top:12px;min-height:0;gap:10px}
  .my-account-page .my-balance-row>div{min-width:0}
  .my-account-page .my-balance-row span{font-size:11px}
  .my-account-page .my-balance-row strong{font-size:24px}
  .my-account-page .my-balance-row>button{min-width:75px;min-height:36px;font-size:11px}
  .my-account-page .my-account-facts{margin:0 12px 12px;min-height:0}
  .my-account-page .my-account-facts article{padding:10px;gap:8px;grid-template-columns:30px minmax(0,1fr) auto}
  .my-account-page .my-fact-icon{width:30px;height:30px}
  .my-account-page .my-fact-icon svg{width:17px;height:17px}
  .my-account-page .my-account-facts small{font-size:10px;margin-bottom:4px}
  .my-account-page .my-account-facts strong{font-size:11px}
}
@media(max-width:560px){
  .five-step-create .prompt-layout .segment-copy-list{gap:10px}
  .five-step-create .prompt-layout .segment-copy-card{padding:12px;gap:10px;border-radius:13px}
  .five-step-create .prompt-layout .segment-copy-head{flex-wrap:nowrap;gap:8px;align-items:center}
  .five-step-create .segment-copy-head>span{width:28px;height:28px;border-radius:8px;font-size:10px;flex-shrink:0}
  .five-step-create .segment-copy-head h3{font-size:12px;line-height:1.4}
  .five-step-create .segment-copy-head p{margin:2px 0 0;font-size:9px;line-height:1.4}
  .five-step-create .segment-copy-head .storyboard-order-actions{flex-basis:auto;order:0;flex-shrink:0;gap:3px}
  .five-step-create .storyboard-order-actions button{width:32px;height:32px;min-height:32px;padding:0;border-radius:8px}
  .five-step-create .storyboard-order-actions svg{width:13px;height:13px}
  .five-step-create .segment-copy-head>i{width:20px;height:20px;flex-shrink:0}
  .five-step-create .segment-copy-fields>label{display:flex;flex-wrap:wrap;align-items:center;gap:5px 7px;margin-top:8px;font-size:10px;line-height:1.5}
  .five-step-create .segment-copy-fields>label:first-child{margin-top:0}
  .five-step-create .segment-copy-fields .storyboard-copy-count{padding:3px 5px;font-size:9px;font-weight:600;line-height:1.4;border-radius:5px}
  .five-step-create .prompt-layout .segment-copy-fields>label>textarea{flex:0 0 100%;box-sizing:border-box;width:100%;height:84px;min-height:84px;margin:0;padding:8px 9px;border-radius:8px;font-size:12px;font-weight:400;line-height:1.6;resize:vertical}
  .five-step-create .prompt-layout .segment-copy-fields>label:nth-of-type(2)>textarea{height:112px;min-height:112px}
  .five-step-create .segment-video-actions{margin-top:9px;gap:5px}
  .five-step-create .segment-video-actions .primary{min-height:38px;padding:8px 10px;border-radius:9px;font-size:12px;line-height:1.4}
  .five-step-create .segment-video-actions .primary svg{width:15px;height:15px}
  .five-step-create .segment-video-actions small{font-size:9px;line-height:1.5}
  .five-step-create .segment-video-output{padding:10px;border-radius:10px}
  .five-step-create .segment-video-output>header strong{font-size:11px}
  .five-step-create .segment-video-output>header>span{font-size:9px}
  .five-step-create .segment-video-empty{min-height:130px;padding:14px;gap:6px}
  .five-step-create .segment-video-empty strong{font-size:11px}
  .five-step-create .segment-video-empty span{font-size:9px;line-height:1.5}
}
@media(max-width:820px){
  .five-step-create>.project-editor-bar{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:5px 8px;padding:8px 10px;margin-bottom:14px;min-height:0}
  .five-step-create>.project-editor-bar>button{min-height:30px;height:30px;padding:0 9px;font-size:11px;white-space:nowrap}
  .five-step-create>.project-editor-bar>label{grid-column:2;grid-row:1;display:flex;align-items:center;gap:6px;min-width:0;width:auto;margin:0;font-size:10px;white-space:nowrap}
  .five-step-create>.project-editor-bar>label>input{flex:1;min-width:0;width:0;height:32px;min-height:32px;padding:0 8px;font-size:16px}
  .five-step-create>.project-editor-bar>.project-save-state{grid-column:1;grid-row:2;margin:0;font-size:10px;white-space:nowrap;justify-self:start}
  .five-step-create>.project-editor-bar>button[data-project-recovery]{grid-column:2;grid-row:2;justify-self:end;width:auto;min-height:26px;height:26px;padding:0 8px;font-size:10px}
}
