/* iPad only: keep the desktop's single-row navigation, compact its spacing. */
@media(min-width:621px) and (max-width:1024px){
 .app-header{height:72px;min-height:72px;display:flex;flex-wrap:nowrap;padding:0 24px;gap:16px}
 .app-header .brand{font-size:24px;flex-shrink:0}
 .app-header>nav{display:flex;flex:0 1 auto;gap:16px;margin-left:16px;margin-right:0;order:0;width:auto;height:auto;align-items:center;justify-content:flex-start;border-top:0}
 .app-header>nav a{font-size:14px;white-space:nowrap;padding:10px 0;border-bottom:0}
 .app-header>nav a[aria-current=page]{border-bottom:0}
 .app-header>.header-actions{margin-left:auto;gap:8px;flex-shrink:0}
 .app-header>.header-actions>[data-action="start"]{display:inline-flex}
}
@media(min-width:621px) and (max-width:760px){
 .app-header{padding-inline:16px;gap:10px}.app-header .brand{font-size:21px}.app-header>nav{margin-left:0;gap:10px}.app-header>nav a{font-size:12px}.app-header>.header-actions{gap:6px}.app-header .button{padding-inline:8px}
}
/* iPad creation: html[data-preview-device="tablet"] four styles per row and one shared composer action baseline. */
@media(min-width:621px) and (max-width:1024px){
 html[data-preview-device="tablet"] .single-page-workflow .style-selection-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:20px}
 html[data-preview-device="tablet"] .story-entry-card .story-compose>.story-area{height:150px;min-height:150px;max-height:150px;padding-bottom:70px}
 html[data-preview-device="tablet"] .story-entry-card .story-compose-toolbar{bottom:16px;height:44px;align-items:center;flex-wrap:nowrap;gap:6px;right:190px}
 html[data-preview-device="tablet"] .story-entry-card .story-compose-actions{bottom:16px;height:44px;align-items:center;gap:10px}
 html[data-preview-device="tablet"] .story-entry-card .story-compose-actions .button{height:44px;min-height:44px}
 html[data-preview-device="tablet"] #workspace .story-compose-toolbar :is(.story-setting-trigger,.story-ideas-trigger){padding-inline:6px;font-size:14px}
 html[data-preview-device="tablet"] body:has(.story-compose-actions) .single-page-workflow{padding-bottom:218px}
}
@media(min-width:621px) and (max-width:1024px){
 html[data-preview-device="tablet"] .story-entry-card .story-ideas-trigger .ph{display:inline-block;flex-shrink:0;font-size:16px;color:#b5a000}
 html[data-preview-device="tablet"] .story-entry-card .inspiration-ink{gap:4px}
}
@media(min-width:621px) and (max-width:1024px){
 html[data-preview-device="tablet"] .library-wrap .project-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
 html[data-preview-device="tablet"] .project-card-body{padding:14px}
 html[data-preview-device="tablet"] .project-card-actions{gap:8px}
 html[data-preview-device="tablet"] .project-card-actions .button{padding-inline:8px;white-space:nowrap}
}

@media(min-width:621px) and (max-width:1024px){html[data-preview-device="tablet"] .single-page-workflow #creation-style{margin-top:40px}}
