/* ScaleMirror Studio — product surfaces and responsive workbench. */
@font-face { font-family: Inter; src: url('/fonts/InterVariable.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
:root {
  --ink: #f2f2f2; --text-secondary: #d8d9d5; --muted: #a0a29c;
  --line: #2b2d28; --line-strong: #494c42; --primary: #e5192c; --accent: #ff4d55;
  --sidebar: #070707; --surface: #121212; --surface-raised: #1a1a1a;
  --studio-bg: #0a0a0a; --studio-input: #0d0d0d;
  background: var(--studio-bg); font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
body { font-size: 14px; }
::selection { background: #e5192c40; color: var(--ink); }
.shell { grid-template-columns: 232px minmax(0, 1fr); background: var(--studio-bg); }
.sidebar { width: 232px; padding: 32px 18px 20px; border-right: 1px solid var(--line); }
.sidebar .brand { font-size: 21px; letter-spacing: -1px; padding: 0 10px; gap: 9px; }
.sidebar .brand .mirror-logo { width: 29px; height: 34px; }
.brand-dot { display: none; }
.sidebar-section-label { margin: 42px 12px 12px; color: #777b72; font-size: 10px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; }
.sidebar nav { margin: 0; }
.nav-button { min-height: 44px; padding: 12px; margin-bottom: 5px; border: 1px solid transparent; border-radius: 8px; color: #a8aca2; font-size: 13px; font-weight: 500; transition: background .15s, color .15s; }
.nav-button svg { width: 18px; height: 18px; }
.nav-button.active { background: #e5192c10; color: #ff4d55; border-color: #e5192c22; box-shadow: none; }
.nav-button:hover, .sidebar-link:hover { background: #ffffff06; color: var(--ink); }
.sidebar-project { padding: 12px; font-size: 12px; background: var(--surface); border-color: var(--line); }
.sidebar-link { padding: 12px; min-height: 42px; color: var(--muted); }
.sidebar-footer { margin-top: 10px; padding: 18px 3px 0; border-color: var(--line); gap: 9px; font-size: 12px; }
.workspace-avatar.small { width: 34px; height: 34px; border-radius: 50%; background: #313131; color: #e1e1e1; font-weight: 600; }
.sidebar-footer small { font-size: 10px; margin-top: 5px; color: #84887e; }
.sidebar-footer .account-identity { min-width: 0; line-height: 1.3; flex: 1; }
.account-identity small { max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
.topbar { height: 66px; padding: 0 40px; background: var(--studio-bg); border-color: var(--line); }
.breadcrumb { font-size: 12px; gap: 12px; }
.breadcrumb strong { font-weight: 500; color: #dedede; }
.environment { padding: 6px 0; border: 0; color: #9ea397; font-size: 11px; }
.environment i { width: 6px; height: 6px; background: #92bfa2; }
.page { padding: 38px 40px 56px; max-width: 1440px; }
h1 { font-size: 30px; font-weight: 600; letter-spacing: -1.1px; }
h2 { font-weight: 580; letter-spacing: -.5px; }
.page-overline { font-size: 12px; color: var(--muted); margin: 0 0 10px; }
.page-heading { margin-bottom: 30px; }
.page-heading h1 { margin: 0 0 9px; }
.subtext { font-size: 13px; line-height: 1.65; }
.button { min-height: 40px; padding: 10px 15px; border-radius: 7px; font-size: 12px; font-weight: 550; background: #202020; border-color: #373737; box-shadow: 0 1px 2px #0002; transition: background .15s, border-color .15s, box-shadow .15s; }
.button:hover { background: #292929; border-color: #4d4d4d; }
.button.primary { background: var(--primary); border-color: var(--primary); color: #ffffff; box-shadow: 0 1px 0 #fff3 inset, 0 2px 5px #0002; }
.button.primary:hover { background: #c4111f; border-color: #c4111f; }
.button.small { min-height: 35px; font-size: 12px; }
.icon-button { border-radius: 6px; min-width: 32px; min-height: 32px; }
.icon-button:hover { background: #ffffff09; color: var(--ink); }
.icon-button.active, .comparison-button.active { background: #343434; color: #f0f0f0; box-shadow: 0 1px 3px #0003; }
.text-button { font-size: 12px; color: #cccccc; font-weight: 500; }
.text-button:hover { color: var(--accent); }
.button:disabled, .icon-button:disabled { cursor: not-allowed; }
.quick-import { display: grid; grid-template-columns: minmax(0, 1fr) 240px; min-height: 284px; overflow: hidden; position: relative; border-radius: 14px; border: 1px solid #353535; background: #1d1d1d; padding: 0; box-shadow: 0 12px 30px #0000000d; }
.import-content { padding: 30px 32px 25px; z-index: 1; min-width: 0; }
.quick-import-heading { display: block; margin-bottom: 23px; }
.import-kicker { display: flex; gap: 8px; align-items: center; color: #bcbcbc; font-size: 10px; font-weight: 600; letter-spacing: 1.4px; margin-bottom: 15px; }
.import-kicker svg { width: 14px; height: 14px; }
.quick-import-heading h2 { font-size: 29px; line-height: 1.22; letter-spacing: -1px; font-weight: 570; margin: 0 0 12px; }
.quick-import-heading h2 span { color: #bdbdbd; }
.quick-import-heading p { max-width: 470px; font-size: 12px; line-height: 1.7; color: #a5a5a5; }
.quick-import form { gap: 8px; max-width: 690px; }
.url-input { min-width: 0; border-color: #404040; border-radius: 7px; background: #121212; }
.url-input input { font-size: 12px; padding: 13px 0; }
.url-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px #e5192c10; }
.url-input input:focus-visible { outline: none; }
.quick-import-foot { margin-top: 15px; flex-direction: row; font-size: 11px; gap: 15px; }
.quick-import-foot .text-button { color: #bbbbbb; font-size: 11px; }
.quick-import-foot > span { color: #5e5e5e; }
.mirror-composition { position: relative; min-width: 0; overflow: hidden; }
.mirror-grid { position: absolute; inset: 0; background-image: linear-gradient(#79797910 1px, transparent 1px), linear-gradient(90deg, #79797910 1px, transparent 1px); background-size: 30px 30px; mask-image: linear-gradient(90deg,transparent,#000 40%); }
.mirror-sheet { position: absolute; width: 155px; height: 192px; border: 1px solid #606060; border-radius: 9px; top: 52px; box-shadow: 0 14px 26px #0003; }
.sheet-back { left: 4px; top: 34px; transform: rotate(-12deg); background: #272727; padding: 22px; opacity: .6; }
.sheet-back i, .sheet-back b, .sheet-back span { display: block; height: 6px; margin-bottom: 8px; background: #626262; border-radius: 2px; }
.sheet-back i { width: 25px; height: 15px; margin-bottom: 23px; }
.sheet-back b:last-of-type { width: 65%; }
.sheet-back em { display: block; height: 50px; background: #3c3c3c; margin-top: 15px; border-radius: 3px; }
.sheet-front { left: 51px; transform: rotate(8deg); background: #eaeaea; border-color: #e9e9e9; }
.sheet-bar { height: 22px; display: flex; align-items: center; gap: 4px; padding: 0 11px; border-bottom: 1px solid #d6d6d6; }
.sheet-bar i { width: 4px; height: 4px; background: #b0b0b0; border-radius: 50%; }
.sheet-content { padding: 16px; }
.sheet-content small { font-size: 6px; letter-spacing: 1px; color: #696969; font-weight: 600; }
.sheet-content b { display: block; height: 8px; background: #303030; border-radius: 2px; margin-top: 8px; width: 80%; }
.sheet-content b + b { width: 58%; margin-top: 4px; }
.sheet-image { background: #cccccc; border-radius: 4px; height: 49px; margin-top: 13px; display: grid; place-items: center; color: #6e6e6e; }
.sheet-content > span { display: block; width: 56px; height: 15px; border-radius: 3px; margin-top: 12px; background: var(--primary); }
.mirror-badge { position: absolute; bottom: 25px; left: 20px; background: #2c2c2c; color: #cfcfcf; font-size: 10px; padding: 9px 12px; border: 1px solid #4a4a4a; box-shadow: 0 4px 15px #0003; border-radius: 6px; transform: rotate(-3deg); display: flex; align-items: center; gap: 6px; }
.mirror-badge svg { width: 12px; height: 12px; color: #b0b0b0; }
.collection-heading { display: flex; align-items: baseline; gap: 12px; margin-top: 36px; }
.collection-heading h2 { font-size: 16px; margin: 0; font-weight: 600; }
.collection-heading > span { font-size: 11px; color: var(--muted); }
.project-toolbar { gap: 12px; margin: 16px 0 21px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.filter-chips { gap: 3px; }
.filter-chip { border-radius: 6px; padding: 8px 10px; border: 1px solid transparent; background: transparent; font-size: 11px; gap: 6px; }
.filter-chip.selected { color: var(--ink); background: #282828; border-color: #3a3a3a; }
.filter-chip.selected span { background: #414141; color: #dbdbdb; }
.filter-chip span { background: #ffffff06; font-size: 10px; }
.search { background: #121212; border-radius: 7px; padding: 9px 11px; }
.search:focus-within { border-color: #656565; }
.search input { font-size: 12px; width: 155px; }
.view-toggle { border-radius: 7px; background: #141414; padding: 3px; }
.projects-grid { grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 20px; }
.project-card { border-radius: 11px; background: #1e1e1e; border-color: #313131; transition: border-color .2s, transform .2s, box-shadow .2s; }
.project-card:hover { border-color: #666666; box-shadow: 0 12px 22px #0002; transform: translateY(-2px); }
.project-card:focus-within { border-color: #999999; }
.project-card > .project-thumbnail { border-radius: 10px 10px 0 0; background: #232323; height: 185px; }
.thumbnail-browser { background: #242424; height: 25px; gap: 5px; }
.thumbnail-browser span { background: #4e4e4e; height: 5px; width: 5px; }
.project-body { padding: 20px 18px 16px; }
.project-name h3 { font-size: 14px; letter-spacing: -.25px; font-weight: 560; }
.project-body > p { font-size: 11px; margin: 8px 0 18px; }
.project-meta { padding-top: 13px; }
.project-meta > span:last-child { font-size: 10px; }
.status { font-size: 10px; padding: 5px 7px; border-radius: 4px; font-weight: 500; }
.status.ready { color: #a1d0b2; background: #223529; }
.empty-state { border: 1px dashed #393939; background: transparent; border-radius: 12px; padding: 40px 24px; min-height: 270px; }
.empty-icon { width: 51px; height: 58px; border-radius: 12px 12px 7px 7px; background: #242424; border-color: #404040; color: #adadad; transform: rotate(-5deg); margin-bottom: 21px; box-shadow: 5px -5px 0 -1px #1e1e1e,5px -5px 0 0 #323232; }
.empty-state h3 { font-size: 16px; font-weight: 550; }
.empty-state p { font-size: 12px; max-width: 410px; }
/* Import progress (7A): stages and elapsed time from the server, no percentage. */
.import-progress { display: grid; gap: 10px; width: 100%; max-width: 420px; margin: 18px auto 22px; text-align: left; }
.import-progress p { margin: 0; max-width: none; font-size: 12px; line-height: 1.5; color: var(--muted); }
.import-progress .import-progress-current { color: var(--ink); font-size: 13px; font-weight: 550; }
.import-progress-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.import-progress-step { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.import-progress-mark { flex: none; width: 16px; text-align: center; }
.import-progress-step.done { color: var(--text-secondary); }
.import-progress-step.done .import-progress-mark { color: #a1d0b2; }
.import-progress-step.current { color: var(--ink); font-weight: 550; }
.import-progress-step.current .import-progress-mark { color: var(--accent); }
.import-progress .import-progress-slow { color: var(--accent); }
.import-progress .import-progress-slow[hidden] { display: none; }
.import-progress-compact { max-width: none; margin: 0 0 14px; gap: 6px; }
.import-progress-compact .import-progress-step, .import-progress-compact p, .import-progress-compact .import-progress-current { font-size: 11px; }
.project-menu-list { border-radius: 9px; padding: 6px; box-shadow: 0 16px 44px #0007; background: #232323; }
.project-menu-list > button, .project-menu-list > a { min-height: 38px; color: var(--text-secondary); }
.project-menu-list > button:hover, .project-menu-list > a:hover { background: #333333; }
/* The editor has an icon rail for account navigation and a labelled project navigation. */
@media (min-width: 901px) {
  .shell.editor-mode { grid-template-columns: 72px minmax(0,1fr); }
  .editor-mode .sidebar { width: 72px; padding: 22px 10px 18px; align-items: center; }
  .editor-mode .sidebar .brand { font-size: 0; padding: 0; gap: 0; }
  .editor-mode .sidebar .brand .mirror-logo { width: 30px; height: 35px; }
  .editor-mode .sidebar nav { margin-top: 30px; width: 100%; }
  .editor-mode .nav-button { justify-content: center; padding: 12px; }
  .editor-mode .nav-button span, .editor-mode .sidebar-section-label, .editor-mode .project-nav-label, .editor-mode .sidebar-project, .editor-mode .account-identity, .editor-mode .workspace-avatar, .editor-mode .sidebar-link span { display: none; }
  .editor-mode .sidebar-footer { justify-content: center; padding-top: 14px; }
  .editor-mode .sidebar-link { justify-content: center; padding: 10px; }
}
.editor-header { padding: 20px 24px; min-height: 88px; background: var(--studio-bg); }
.editor-project-title h1 { font-size: 20px; font-weight: 560; max-width: 400px; }
.editor-project-title p { font-size: 11px; max-width: 460px; }
.editor-header-actions { gap: 9px; }
.editor-header-actions .status { margin-right: 12px; }
.editor-frame { display: grid; grid-template-columns: 172px minmax(0, 1fr); min-height: calc(100vh - 154px); }
.editor-main { min-width: 0; }
.editor-tabs { flex-direction: column; align-items: stretch; justify-content: flex-start; flex-wrap: nowrap; padding: 20px 10px; gap: 24px; background: #191919; border-right: 1px solid var(--line); border-bottom: 0; overflow: visible; }
.editor-tab-group { display: flex; flex-direction: column; align-items: stretch; gap: 3px; border: 0; padding: 0; margin: 0; }
.editor-tab-group-label { padding: 2px 11px 9px; font-size: 9px; font-weight: 600; letter-spacing: 1.1px; color: #909090; opacity: 1; }
.editor-tab { display: flex; align-items: center; justify-content: flex-start; font-size: 12px; gap: 9px; padding: 11px; border: 1px solid transparent; border-radius: 6px; min-height: 39px; }
.editor-tab:hover { color: var(--ink); background: #ffffff05; }
.editor-tab.active { background: #e5192c10; color: var(--accent); border-color: #e5192c25; }
.editor-tab svg { height: 16px; width: 16px; }
.editor-tab span { margin-left: auto; font-size: 10px; background: #2f2f2f; color: #b2b2b2; }
.canvas-toolbar { min-height: 55px; padding: 10px 18px; background: #202020; }
.canvas-caption { font-size: 11px; }
.canvas-caption-detail { display: none; }
.canvas-actions { gap: 10px; }
.comparison-button { font-size: 11px; border-radius: 5px; padding: 6px 10px; }
.editor-layout { grid-template-columns: 180px minmax(0,1fr) 280px; height: calc(100dvh - 209px); min-height: 560px; }
.elements-panel, .inspector { background: #1e1e1e; }
.inspector { grid-column: auto; border-left: 1px solid var(--line); border-top: 0; }
.panel-title { padding: 18px 15px 0; }
.panel-title h2 { font-size: 12px; font-weight: 600; }
.panel-description { padding: 8px 15px 15px; font-size: 10px; line-height: 1.6; }
.target-list { padding: 8px; }
.target-button { padding: 10px 8px; font-size: 11px; min-height: 37px; background: transparent; }
.target-button > svg { width: 14px; height: 14px; }
.target-button.active { background: #323232; border-color: #545454; color: #e0e0e0; }
.target-button.active > svg { color: #c2c2c2; }
.target-button:hover { background: #ffffff06; }
.target-kind { display: none; }
.preview-stage { height: auto; padding: 24px; background-color: #121212; background-image: radial-gradient(#44444466 .75px,transparent .75px); background-size: 16px 16px; }
.preview-device { border-color: #505050; border-radius: 9px; box-shadow: 0 12px 36px #0006; min-height: 480px; }
.preview-address { height: 30px; padding: 0 12px; background: #272727; border-color: #3a3a3a; }
.preview-address > span { background: #646464; width: 5px; height: 5px; }
.preview-address small { font-size: 9px; color: #b4b4b4; }
.inspector .panel-title { padding: 19px 18px; }
#target-editor { padding: 19px 18px; display: block; }
.selected-element { padding-bottom: 17px; margin-bottom: 20px; }
.selected-element strong { font-size: 12px; }
.selected-element small { font-size: 10px; max-width: 175px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.selected-icon { background: #2b2b2b; border-color: #434343; color: #bebebe; width: 34px; height: 34px; }
#target-editor h3 { font-size: 12px; font-weight: 550; }
.style-form { border-top: 1px solid var(--line); margin-top: 25px; padding-top: 21px; }
.editor-page { padding: 30px; max-width: 1240px; }
.editor-page .page-heading h2 { font-size: 24px; }
.has-steps .editor-layout { height: calc(100dvh - 217px - var(--step-strip-h, 0px)); }
/* The screen strip takes height from the editor, so the section menu packs tighter to keep every tab above it. */
@media (min-width: 901px) { .with-step-strip .editor-tabs { gap: 14px; padding-block: 14px; } .with-step-strip .editor-tab { min-height: 34px; padding-block: 8px; } }
/* Shared forms, delivery, billing and admin use the same surface hierarchy. */
.panel { border-color: #333333; border-radius: 10px; background: #1e1e1e; }
.panel-heading h3 { font-size: 15px; font-weight: 570; }
.panel-heading p, .settings-aside p, .guide-card p { font-size: 12px; line-height: 1.75; }
.field, #target-editor .field { color: #c2c2c2; font-size: 12px; font-weight: 500; margin-bottom: 20px; }
.field input, .field textarea, .field select, .link-text-form input, .link-destination-form input { background: var(--studio-input); border-color: #3a3a3a; border-radius: 6px; font-size: 13px; padding: 11px 12px; color: #e0e0e0; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: #5a5a5a; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: #b03c44; outline: 2px solid #e5192c15; outline-offset: 1px; }
.field small, #target-editor .field small { font-size: 11px; line-height: 1.65; color: #9a9a9a; }
.form-footer { padding-top: 21px; }
.settings-layout { grid-template-columns: minmax(0, 1.65fr) minmax(220px, 1fr); gap: 22px; }
.settings-panel, .settings-aside > .panel { padding: 26px; }
.integration-logo { background: #282828; border-color: #404040; }
.integration-field { padding-bottom: 20px; margin-bottom: 20px; }
.publish-card { padding: 30px; }
.publish-card h3 { font-size: 18px; }
.publish-icon { width: 45px; height: 45px; background: #2f2f2f; border-color: #464646; color: #c3c3c3; }
.publish-card p, .publish-facts > span { font-size: 12px; }
.billing-usage { background: #202020; padding: 30px; border-color: #3e3e3e; }
.billing-plan { padding: 29px; background: #1e1e1e; }
.billing-plan.featured { border-color: #8e3339; background: #212121; box-shadow: inset 0 3px var(--primary); }
.billing-price { font-size: 36px; font-weight: 550; letter-spacing: -1.5px; margin-block: 28px 20px; }
.billing-plan li { font-size: 12px; gap: 10px; }
.billing-plan .button { min-height: 43px; }
.billing-plan-head .tag { font-size: 10px; padding: 6px 8px; }
.admin-metric { background: #1e1e1e; border: 1px solid var(--line); }
.admin-metric strong { font-size: 31px; letter-spacing: -1px; }
.project-table th, .admin-table th { font-size: 11px; background: #202020; }
.project-table td, .admin-table td { font-size: 12px; padding-block: 17px; }
.table-wrap { border-radius: 9px; border-color: #333333; }
.project-table tbody tr:hover { background: #ffffff03; }
.guide-card { padding: 28px; }
.guide-card .step { color: #c3c3c3; background: #2e2e2e; border: 1px solid #444444; border-radius: 6px; }
.guide-card h2 { font-size: 18px; }
.diagnostic-group { border-radius: 9px; background: #1e1e1e; }
.diagnostic-group summary { padding: 18px 20px; }
.diagnostic-summary strong { font-size: 13px; }
.notice { background: #e5192c05; border-left-color: #7d272d; border-radius: 0 6px 6px 0; }
dialog { background: #1e1e1e; border-color: #424242; border-radius: 14px; box-shadow: 0 32px 100px #0009; }
dialog::backdrop { background: #080808bd; backdrop-filter: blur(6px); }
.modal-head { padding: 28px 30px 20px; }
.modal-body { padding: 0 30px 28px; }
.modal-head h2 { font-size: 26px; letter-spacing: -.8px; }
.tab { font-size: 12px; padding: 14px 8px; }
.tab.active { color: var(--accent); border-bottom-color: var(--primary); }
.toast { background: #303030; border: 1px solid #545454; box-shadow: 0 8px 28px #0005; border-radius: 8px; font-size: 13px; }
.auth-main, .auth-layout { background: var(--studio-bg); }
.auth-card { max-width: 400px; }
.auth-card h2 { font-size: 29px; letter-spacing: -.9px; }
.auth-story { background: #121212; border-color: var(--line); }
.auth-story h1 { font-weight: 550; }
.auth-card .field input { padding: 14px; }
.auth-card .button.primary { min-height: 47px; }
@media (prefers-reduced-motion: no-preference) {
  .page, .editor-frame { animation: studio-in .22s ease-out both; }
  dialog[open] { animation: studio-dialog .18s ease-out both; }
  @keyframes studio-in { from { opacity: .65; transform: translateY(4px); } to { opacity: 1; transform: none; } }
  @keyframes studio-dialog { from { opacity: 0; transform: translateY(8px) scale(.99); } to { opacity: 1; transform: none; } }
}
@media (max-width: 1200px) {
  .shell:not(.editor-mode) { grid-template-columns: 210px minmax(0,1fr); }
  .sidebar { width: 210px; padding-inline: 14px; }
  .sidebar .brand { font-size: 19px; }
  .page { padding: 30px; }
  .quick-import { grid-template-columns: minmax(0,1fr) 170px; }
  .import-content { padding: 27px; }
  .mirror-composition { opacity: .8; }
  .sheet-front { left: 25px; }
  .mirror-badge { left: 2px; font-size: 9px; }
  .editor-frame { grid-template-columns: 156px minmax(0,1fr); }
  .editor-tabs { padding-inline: 7px; }
  .editor-tab { font-size: 11px; padding-inline: 8px; gap: 7px; }
  .editor-layout { grid-template-columns: 150px minmax(0,1fr) 250px; }
  .preview-stage { padding: 16px; }
  .settings-layout { grid-template-columns: minmax(0,1fr); }
  .settings-aside { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .settings-aside > .panel { margin-bottom: 0; }
}
@media (max-width: 1000px) {
  .editor-layout { grid-template-columns: 150px minmax(0,1fr); height: auto; }
  .preview-stage { height: 620px; }
  .inspector { grid-column: 1/-1; border-left: 0; border-top: 1px solid var(--line); }
  #target-editor { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 20px; }
  .selected-element { grid-column: 1/-1; margin: 0; padding: 0; }
  .style-form { margin: 0; padding: 0; border: 0; }
  .has-steps .editor-layout { height: auto; }
  .quick-import { grid-template-columns: minmax(0,1fr); }
  .mirror-composition { display: none; }
}
@media (max-width: 900px) {
  .shell, .shell:not(.editor-mode) { grid-template-columns: 70px minmax(0,1fr); }
  .sidebar { width: 70px; padding: 22px 9px; align-items: center; }
  .sidebar .brand { font-size: 0; padding: 0; gap: 0; margin: 0; }
  .sidebar-section-label, .sidebar-project, .project-nav-label, .nav-button span, .sidebar .account-identity, .sidebar .workspace-avatar, .sidebar-link span { display: none; }
  .sidebar nav { margin-top: 28px; width: 100%; }
  .nav-button { justify-content: center; padding: 11px; }
  .sidebar-footer, .sidebar-link { justify-content: center; }
  .topbar { padding-inline: 24px; }
  .editor-frame { display: block; }
  .editor-tabs { flex-direction: row; overflow-x: auto; padding: 9px 16px; gap: 20px; border-right: 0; border-bottom: 1px solid var(--line); }
  .editor-tab-group { flex-direction: row; flex-shrink: 0; gap: 3px; }
  .editor-tab-group-label { display: none; }
  .editor-tab { font-size: 12px; padding: 10px 12px; }
  .editor-header { flex-wrap: wrap; padding: 20px; }
  .editor-header-actions { margin-left: auto; }
  .editor-project-title h1, .editor-project-title p { max-width: 330px; }
}
@media (max-width: 600px) {
  .shell, .shell:not(.editor-mode) { display: block; }
  .sidebar { width: 100%; position: static; flex-direction: row; padding: 14px 16px; gap: 5px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar .brand { font-size: 17px; gap: 7px; margin: 0 auto 0 0; }
  .sidebar .brand .mirror-logo { width: 24px; height: 29px; }
  .sidebar nav { margin: 0; width: auto; min-width: 0; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
  .nav-button { flex: none; min-height: 38px; width: 36px; padding: 8px; margin: 0; }
  .nav-button svg { width: 17px; height: 17px; }
  .sidebar .sidebar-bottom { display: flex; align-items: center; margin: 0; }
  .sidebar-link { display: flex; width: 28px; min-height: 32px; padding: 5px; margin: 0; }
  .sidebar-footer { padding: 0; margin: 0; border: 0; }
  .sidebar .logout-button { min-width: 28px; width: 28px; padding: 5px; }
  .topbar { height: 49px; padding: 0 18px; }
  .breadcrumb { font-size: 11px; gap: 7px; }
  .environment { font-size: 9px; gap: 5px; }
  .page { padding: 26px 18px 40px; }
  h1 { font-size: 26px; }
  .page-overline { font-size: 11px; }
  .page-heading { gap: 12px; margin-bottom: 25px; align-items: center; }
  .page-heading .subtext { font-size: 12px; max-width: 210px; }
  .page-heading > .button { font-size: 11px; padding: 10px; min-height: 38px; }
  .import-content { padding: 24px 20px 21px; }
  .quick-import-heading h2 { font-size: 27px; }
  .quick-import-heading p { font-size: 12px; }
  .quick-import form { flex-direction: column; }
  .quick-import-foot { gap: 9px; align-items: center; flex-direction: row; }
  .collection-heading { margin-top: 30px; }
  .collection-heading h2 { font-size: 15px; }
  .project-toolbar { margin-top: 14px; }
  .filter-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 3px; width: 100%; }
  .filter-chip { white-space: nowrap; }
  .project-toolbar .filters { width: 100%; flex-wrap: nowrap; }
  .search input { width: 100%; }
  .projects-grid { grid-template-columns: minmax(0,1fr); }
  .project-card > .project-thumbnail { height: 190px; }
  .empty-state { padding: 32px 20px; }
  .empty-state .button { font-size: 11px; }
  .editor-header { padding: 18px; gap: 16px; }
  .editor-project-title h1 { font-size: 18px; max-width: 265px; }
  .editor-project-title p { max-width: 265px; font-size: 10px; }
  .editor-header-actions { justify-content: flex-end; width: 100%; gap: 8px; }
  .editor-header-actions .button { font-size: 11px; }
  .editor-tabs { display: flex; padding: 8px 12px; gap: 12px; }
  .editor-tab { padding: 9px 10px; font-size: 11px; }
  .canvas-toolbar { padding: 10px 12px; }
  .canvas-caption { display: none; }
  .editor-layout { display: flex; min-height: 0; }
  .elements-panel { max-height: 175px; }
  .target-list { display: flex; gap: 6px; padding: 9px 12px; overflow-x: auto; }
  .target-button { width: 160px; flex: 0 0 160px; border-color: var(--line); }
  .panel-description { padding-bottom: 7px; }
  .preview-stage { height: 520px; padding: 14px; }
  .preview-device { min-height: 470px; }
  .preview-stage.mobile .preview-device { width: 392px; max-width: none; }
  #target-editor { display: block; padding: 20px; }
  .selected-element { padding-bottom: 18px; margin-bottom: 20px; }
  .style-form { border-top: 1px solid var(--line); margin-top: 25px; padding-top: 22px; }
  .editor-page { padding: 24px 18px; }
  .editor-page .page-heading h2 { font-size: 22px; }
  .settings-aside { display: block; }
  .settings-aside > .panel { margin-top: 18px; }
  .settings-panel, .settings-aside > .panel, .publish-card, .billing-plan { padding: 22px; }
  .settings-layout, .publish-grid, .billing-plans { grid-template-columns: minmax(0,1fr); }
  .billing-usage { padding: 23px; }
  .billing-plan > p { min-height: 0; }
  .billing-price { margin-block: 22px 18px; }
  .link-row { padding: 18px; }
  .modal-head { padding: 24px 22px 18px; }
  .modal-body { padding: 0 22px 24px; }
  .tabs { gap: 7px; }
  .tab { padding-inline: 6px; font-size: 11px; }
}
.element-tools { padding: 11px 10px 7px; border-bottom: 1px solid var(--line); }
.element-search { display: flex; align-items: center; gap: 6px; background: #121212; border: 1px solid #3a3a3a; border-radius: 5px; padding: 8px; }
.element-search svg { width: 12px; height: 12px; color: var(--muted); }
.element-search input { width: 100%; min-width: 0; font-size: 10px; border: 0; outline: none; color: var(--ink); background: transparent; }
.element-search:focus-within { outline: 2px solid #e5192c40; border-color: var(--accent); }
.element-kinds { display: flex; gap: 1px; margin-top: 8px; }
.element-kinds .icon-button { min-width: 0; flex: 1; min-height: 29px; padding: 5px; }
.element-kinds svg { width: 13px; height: 13px; }
.target-button[hidden] { display: none; }
.element-no-results { font-size: 11px; line-height: 1.7; padding: 12px 7px; color: var(--muted); }
@media (max-width:600px) {
  .elements-panel { max-height: 232px; }
  .element-tools { display: flex; gap: 10px; padding: 8px 12px; align-items: center; }
  .element-search { flex: 1; min-width: 0; }
  .element-kinds { margin: 0; gap: 3px; }
  .element-kinds .icon-button { width: 29px; }
}

@media (max-width:420px) { .nav-button { width: 32px; padding: 7px; } }
@media (max-width:380px) { .sidebar .brand { font-size: 0; gap: 0; } }

/* Extension points (docs/arquitetura/pontos-de-extensao.md): a filled slot adds its content in place, an empty one stays hidden. */
[data-feature-slot]:not([hidden]) { display: contents; }
.feature-tools { display: flex; align-items: center; gap: 6px; }
@media (max-width: 600px) { .canvas-actions { flex-wrap: wrap; justify-content: flex-end; } }

/* ======================================================================================
   Editor rebuilt (2026-11). Three work modes (Editar · Configurar · Publicar), the screens of a funnel as a
   slide column on the left (#step-strip, kept outside #main so its thumbnails survive re-renders), a large
   preview with an explicit Edit / Test-as-visitor switch, and one panel that edits the clicked element.
   Fixed-height "app" layout from 1001 px; below that the editor scrolls as a page.
   ====================================================================================== */
.ev { display: flex; flex-direction: column; min-height: 100%; }
.ev-top { display: flex; align-items: center; gap: 16px; padding: 12px 20px; min-height: 0; border-bottom: 1px solid var(--line); background: var(--studio-bg); flex-wrap: wrap; }
.ev-title { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 260px; }
.ev-title .back-button { flex: none; }
.ev-title-text { min-width: 0; }
.ev-title-text h1 { margin: 0; font-size: 17px; font-weight: 620; letter-spacing: -.3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ev-title-text p { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 4px 0 0; font-size: 11px; line-height: 1.4; color: var(--muted); max-width: none; }
.ev-title-text p > span:not(.status)::before { content: '·'; margin-right: 10px; color: var(--line-strong); }
.ev-title-text .status { margin: 0; }
.ev-modes { display: flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 11px; background: var(--studio-input); flex: none; }
.ev-mode { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 16px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 620; }
.ev-mode svg { width: 16px; height: 16px; }
.ev-mode:hover { color: var(--ink); background: #ffffff08; }
.ev-mode.active { background: var(--primary); color: #fff; }
.ev-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex: 1 1 260px; flex-wrap: wrap; }
.ev-warnings { color: #ffb07a; border-color: #5c3a22; }
.ev-warnings.ok { color: #8cdbb7; border-color: #24453a; }
.ev-subnav { display: flex; gap: 4px; padding: 8px 16px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; background: var(--studio-bg); flex: none; }
.ev-subnav::-webkit-scrollbar { display: none; }
.ev .editor-tab { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border: 1px solid transparent; border-radius: 8px; background: none; color: var(--muted); font-size: 12.5px; font-weight: 560; }
.ev .editor-tab svg { width: 15px; height: 15px; }
.ev .editor-tab:hover { color: var(--ink); background: #ffffff06; }
.ev .editor-tab.active { color: var(--ink); background: var(--surface-raised); border-color: var(--line-strong); }
.ev .editor-tab span { margin-left: 2px; padding: 1px 6px; border-radius: 9px; font-size: 10px; background: #262626; color: var(--text-secondary); }
.ev-workspace { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ev-workspace:not(.is-canvas) { overflow: auto; }
.ev-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 330px; }
.ev-stage-area { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.ev-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--studio-bg); min-height: 0; }
.ev-toolbar .canvas-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ev-seg { display: inline-flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--studio-input); }
.ev-seg button { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 13px; border: 0; border-radius: 7px; background: none; color: var(--muted); font-size: 12.5px; font-weight: 620; }
.ev-seg button svg { width: 14px; height: 14px; }
.ev-seg button:hover:not(:disabled) { color: var(--ink); }
.ev-seg button.active { background: var(--surface-raised); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.ev-seg button[data-action="preview-navigate"].active { background: var(--primary); color: #fff; box-shadow: none; }
.ev-hint { margin: 0; padding: 8px 16px; font-size: 12px; line-height: 1.5; color: var(--muted); border-bottom: 1px solid var(--line); background: #0d0d0d; max-width: none; }
.ev .step-auto-notice { margin: 10px 16px 0; }
.ev .preview-stage { flex: 1; min-height: 0; height: auto; padding: 18px 20px; overflow: auto; display: flex; justify-content: center; align-items: stretch; }
.ev .preview-device { width: 100%; height: auto; min-height: 460px; display: flex; flex-direction: column; border-radius: 10px; border-color: #3d3d3d; box-shadow: 0 18px 50px #000a; overflow: hidden; }
.ev .preview-stage.mobile .preview-device { width: 392px; flex: none; }
.ev .preview-device iframe { flex: 1; width: 100%; min-height: 420px; border: 0; display: block; }
.ev .preview-address { height: 30px; padding: 0 12px; }
.ev .preview-address small { font-size: 10px; }
.ev .preview-stage.navigating .preview-device { box-shadow: 0 0 0 2px var(--primary), 0 18px 50px #000a; }
.ev-stage-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line); background: var(--studio-bg); flex: none; }
.ev-stage-nav .button { min-height: 40px; min-width: 112px; gap: 8px; justify-content: center; }
.ev-stage-nav-label { display: grid; justify-items: center; gap: 2px; min-width: 0; font-size: 11px; color: var(--muted); text-align: center; }
.ev-stage-nav-label strong { max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--ink); font-weight: 600; }
.ev-inspector { display: flex; flex-direction: column; min-height: 0; overflow: auto; border-left: 1px solid var(--line); background: var(--surface); }
.ev-inspector #target-editor { padding: 16px 18px 6px; }
.ev-inspector .selected-element { margin: 0 0 14px; }
.ev-inspector #edit-form { display: grid; gap: 2px; }
.ev-inspector textarea { min-height: 72px; resize: vertical; font-size: 14px; line-height: 1.5; }
.ev-save-row { display: grid; gap: 8px; margin-top: 6px; }
.ev-save-row .button { min-height: 44px; }
.ev-dirty { justify-self: start; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; color: #ffb07a; background: #2b1a10; }
.ev-dirty[hidden] { display: none; }
.ev-save-hint { color: var(--muted); font-size: 11px; }
.ev-style { margin: 14px 0 0; border-top: 1px solid var(--line); }
.ev-style > summary { display: flex; align-items: center; gap: 8px; padding: 14px 0; cursor: pointer; color: var(--text-secondary); font-size: 12.5px; font-weight: 600; list-style: none; }
.ev-style > summary::-webkit-details-marker { display: none; }
.ev-style > summary svg { width: 15px; height: 15px; }
.ev-style[open] > summary { color: var(--ink); }
.ev-style .style-form { padding: 0 0 12px; border: 0; margin: 0; }
.ev-empty { display: grid; justify-items: start; gap: 8px; padding: 6px 0 12px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.ev-empty svg { width: 22px; height: 22px; color: var(--accent); }
.ev-empty strong { color: var(--ink); font-size: 14px; }
.ev-empty p { margin: 0; }
.ev-elements { margin: 4px 18px 18px; border: 1px solid var(--line); border-radius: 10px; background: #0f0f0f; }
.ev-elements > summary { display: flex; align-items: center; gap: 8px; padding: 12px 14px; cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--text-secondary); list-style: none; }
.ev-elements > summary::-webkit-details-marker { display: none; }
.ev-elements > summary svg { width: 15px; height: 15px; }
.ev-elements > summary .count { margin-left: auto; }
.ev-elements .element-tools { padding: 0 12px 10px; display: grid; gap: 8px; }
.ev-elements .target-list { max-height: 320px; overflow: auto; padding: 0 6px 8px; }
.ev-summary { display: flex; align-items: flex-start; gap: 12px; margin: 12px 16px 0; padding: 12px 14px; border: 1px solid #24453a; border-radius: 12px; background: #0f1a16; flex: none; }
.ev-summary-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #8cdbb722; color: #8cdbb7; flex: none; }
.ev-summary-icon svg { width: 16px; height: 16px; }
.ev-summary-text { flex: 1; min-width: 0; }
.ev-summary-text strong { display: block; font-size: 13.5px; color: var(--ink); }
.ev-summary-text p { margin: 3px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--text-secondary); max-width: none; }
.ev-summary-warn { display: inline-flex; align-items: center; gap: 5px; color: #ffb07a; }
.ev-summary-warn svg { width: 14px; height: 14px; }
.ev-summary .text-button { color: var(--accent); }
/* failure and progress pages */
.ev-failed, .ev-progress-page { max-width: 760px; margin: 0 auto; display: grid; gap: 18px; justify-items: start; }
.ev-failed-card, .ev-progress-card { width: 100%; display: grid; justify-items: start; gap: 10px; padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.ev-failed-card h1, .ev-progress-card h1 { font-size: 24px; margin: 6px 0 0; }
.ev-failed-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #2b1a10; color: #ffb07a; }
.ev-failed-icon svg { width: 22px; height: 22px; }
.ev-failed-reason { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink); }
.ev-failed-url { margin: 0; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.ev-failed-card .button-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.ev-failed-help { margin-top: 8px; width: 100%; border-top: 1px solid var(--line); padding-top: 12px; color: var(--text-secondary); font-size: 13px; }
.ev-failed-help summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.ev-failed-help ul { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 8px; line-height: 1.55; }
.ev-progress-card .import-progress { margin: 8px 0 4px; max-width: none; }
.ev-progress-foot { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); }

/* the screens column (#step-strip lives in the shell, beside #main) */
.editor-mode .step-strip { position: static; height: auto; box-shadow: none; border-top: 0; background: var(--sidebar); }
.editor-mode .step-strip-inner { display: flex; flex-direction: column; gap: 0; height: 100%; min-height: 0; padding: 0; }
.editor-mode .step-strip-head { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; padding: 16px 14px 10px; }
.editor-mode .step-nav-head { display: flex; align-items: baseline; gap: 8px; }
.editor-mode .step-nav-head strong { font-size: 14px; color: var(--ink); }
.editor-mode .step-counter { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.editor-mode .step-strip-tools { display: flex; gap: 4px; }
.editor-mode .step-strip-tools .icon-button { width: 34px; height: 34px; }
.step-search { display: flex; align-items: center; gap: 8px; margin: 0 12px 10px; padding: 0 10px; min-height: 36px; border: 1px solid var(--line); border-radius: 8px; background: var(--studio-input); color: var(--muted); }
.step-search svg { width: 14px; height: 14px; }
.step-search input { flex: 1; min-width: 0; border: 0; background: none; color: var(--ink); font-size: 12.5px; outline: none; padding: 0; height: 34px; }
.editor-mode .step-track { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 6px; height: auto; padding: 2px 10px 18px; overflow-x: hidden; overflow-y: auto; scrollbar-width: thin; }
.editor-mode .step-pill { --step-thumb-w: 196px; --step-thumb-h: 120px; --step-thumb-scale: .40833; width: 100%; flex: none; display: flex; flex-direction: column; gap: 7px; padding: 7px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--text-secondary); text-align: left; font-size: 12px; }
.editor-mode .step-pill[hidden] { display: none; }
.editor-mode .step-pill:hover { background: #ffffff07; border-color: var(--line); color: var(--ink); }
.editor-mode .step-pill[aria-current="step"] { background: #e5192c16; border-color: #e5192c80; color: var(--ink); }
.editor-mode .step-pill[aria-current="step"] .step-pill-number { background: var(--primary); color: #fff; }
.editor-mode .step-pill .step-thumb { width: 100%; height: var(--step-thumb-h); border-radius: 6px; border: 1px solid #262626; }
.editor-mode .step-pill .step-thumb iframe { width: 480px; height: 300px; transform: scale(var(--step-thumb-scale)); }
.editor-mode .step-strip.compact .step-pill { flex-direction: row; align-items: center; max-width: none; border-radius: 9px; padding: 8px 9px; }
.step-no-results { margin: 8px 6px; font-size: 12px; color: var(--muted); }
.step-no-results[hidden] { display: none; }

@media (min-width: 1001px) {
  .shell.editor-mode .topbar { display: none; }
  .shell.editor-mode .content { height: 100dvh; overflow: hidden; display: flex; flex-direction: column; }
  .shell.editor-mode #main { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
  .shell.editor-mode #main > .ev { flex: 1; min-height: 0; }
  .shell.editor-mode #main > .page { overflow: auto; }
  .shell.editor-mode .content.with-step-strip { display: grid; grid-template-columns: 228px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
  .shell.editor-mode .content.with-step-strip > #main { grid-column: 2; grid-row: 1; }
  .shell.editor-mode .content.with-step-strip > #step-strip { grid-column: 1; grid-row: 1; min-height: 0; border-right: 1px solid var(--line); }
}
@media (max-width: 1280px) and (min-width: 1001px) {
  .ev-body { grid-template-columns: minmax(0, 1fr) 290px; }
  .ev-mode { padding: 0 12px; }
  .ev-seg button { padding: 0 10px; }
}
@media (max-width: 1000px) {
  .ev-top { padding: 14px 16px; }
  .ev-body { display: flex; flex-direction: column; }
  .ev .preview-stage { min-height: 560px; padding: 14px; }
  .ev-inspector { border-left: 0; border-top: 1px solid var(--line); overflow: visible; }
  .content.with-step-strip { display: flex; flex-direction: column; }
  .content.with-step-strip > #step-strip { order: 1; }
  .content.with-step-strip > #main { order: 2; }
  .editor-mode .step-strip { border-bottom: 1px solid var(--line); }
  .editor-mode .step-strip-inner { height: auto; }
  .editor-mode .step-track { flex-direction: row; overflow-x: auto; overflow-y: hidden; padding: 2px 12px 12px; gap: 8px; }
  .editor-mode .step-pill { width: 168px; --step-thumb-scale: .3333; --step-thumb-h: 100px; }
  .editor-mode .step-strip.compact .step-pill { width: auto; max-width: 220px; }
  .step-search { display: none; }
}
@media (max-width: 600px) {
  .ev-modes { order: 3; width: 100%; }
  .ev-mode { flex: 1; justify-content: center; padding: 0 8px; font-size: 12px; }
  .ev-actions { flex: 1 1 100%; justify-content: stretch; }
  .ev-actions .button { flex: 1; justify-content: center; }
  .ev-toolbar { padding: 10px 12px; }
  .ev-seg { width: 100%; }
  .ev-seg button { flex: 1; justify-content: center; padding: 0 8px; font-size: 12px; }
  .ev-toolbar .canvas-actions { width: 100%; justify-content: space-between; }
  .ev .preview-stage { min-height: 520px; padding: 10px; }
  .ev .preview-stage.mobile .preview-device { width: 100%; }
  .ev-stage-nav .button { min-width: 0; }
  .ev-stage-nav-label strong { max-width: 150px; }
  .ev-summary { margin: 10px 12px 0; }
  .ev-failed-card, .ev-progress-card { padding: 20px; }
}
/* rebuilt editor, second pass: tools in the section bar, one-row toolbar, horizontal screen nav, compact summary */
.ev-subnav-row { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); background: var(--studio-bg); padding-right: 16px; flex: none; }
.ev-subnav-row .ev-subnav { border-bottom: 0; flex: 1; min-width: 0; }
.ev-subnav-row .feature-tools { display: flex; gap: 6px; flex: none; }
.ev-subnav-row .feature-tools .button { min-height: 34px; }
.ev-toolbar { flex-wrap: nowrap; }
.ev-toolbar .canvas-actions { flex-wrap: nowrap; }
.ev-hint { padding: 7px 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-stage-nav.step-nav-buttons { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
.ev-stage-nav.step-nav-buttons .button { min-width: 112px; width: auto; padding: 0 14px; }
.ev-summary { padding: 10px 12px; margin-top: 10px; }
.ev-summary-text p { font-size: 12px; }
@media (max-width: 1280px) { .ev-subnav-row .feature-tools .button { padding: 0 10px; font-size: 12px; } }
@media (max-width: 1000px) { .ev-subnav-row { flex-wrap: wrap; padding: 0 12px 8px 0; } .ev-subnav-row .feature-tools { padding-left: 16px; } .ev-toolbar { flex-wrap: wrap; } .ev-toolbar .canvas-actions { flex-wrap: wrap; } .ev-hint { white-space: normal; } }
@media (max-width: 600px) { .ev-stage-nav.step-nav-buttons .button { min-width: 0; width: auto; padding: 0 12px; } }
/* rebuilt editor, phone/tablet pass: the column stretches (it was centred and grew to all screens side by side),
   and below 1001 px the order is header, section bar, screens row, then the canvas. */
.editor-mode .step-strip-inner { align-items: stretch; }
.editor-mode .step-track { min-width: 0; max-width: 100%; }
.editor-mode .step-nav-head { flex-direction: row; text-align: left; }
@media (max-width: 1000px) {
  .shell.editor-mode .content.with-step-strip > #main, .shell.editor-mode .content.with-step-strip > #main > .ev { display: contents; }
  .shell.editor-mode .content.with-step-strip > .topbar { order: 0; }
  .shell.editor-mode .content.with-step-strip .ev-top { order: 1; }
  .shell.editor-mode .content.with-step-strip .ev-subnav-row { order: 2; }
  .shell.editor-mode .content.with-step-strip > #step-strip { order: 3; }
  .shell.editor-mode .content.with-step-strip .ev-workspace { order: 4; }
  .editor-mode .step-strip-head { padding: 12px 14px 6px; }
}
@media (max-width: 600px) {
  .ev-subnav-row { flex-direction: column; align-items: stretch; gap: 0; padding: 0 0 8px; }
  .ev-subnav-row .feature-tools { padding: 0 12px; }
  .ev-subnav-row .feature-tools .button { flex: 1; justify-content: center; }
  .ev-publish-cta { display: none; }
}

/* ======================================================================================
   Dashboard rebuilt (2026-11): the clone field is the first thing on the page; onboarding and templates come
   after it (before the list for a new account, after the list once there are projects).
   ====================================================================================== */
.dash .dash-head { align-items: flex-end; margin-bottom: 22px; }
.dash .dash-head h1 { margin-bottom: 6px; }
.dash .dash-head .subtext { margin: 0; }
.dash .dash-clone { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 26px 28px 22px; margin-bottom: 26px; min-height: 0; border: 1px solid #e5192c55; border-radius: 16px; background: radial-gradient(120% 140% at 0% 0%, #e5192c1f, transparent 55%), var(--surface); overflow: visible; }
.dash .dash-clone-text h2 { font-size: 22px; letter-spacing: -.4px; margin: 0 0 6px; }
.dash .dash-clone-text p { margin: 0; color: var(--text-secondary); font-size: 14px; max-width: 760px; }
.dash .dash-clone-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: stretch; margin: 0; padding: 0; background: none; border: 0; box-shadow: none; }
.dash .dash-clone-form .url-input { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--studio-input); }
.dash .dash-clone-form .url-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px #e5192c33; }
.dash .dash-clone-form .url-input svg { color: var(--muted); }
.dash .dash-clone-form input { flex: 1; min-width: 0; border: 0; background: none; color: var(--ink); font-size: 16px; outline: none; height: 54px; padding: 0; }
.dash .dash-clone-form .button.primary { min-height: 56px; padding: 0 24px; font-size: 15px; border-radius: 12px; gap: 10px; }
.dash .dash-clone-form .form-error { grid-column: 1 / -1; margin: 0; }
.dash .dash-clone-form .form-error:empty { display: none; }
.dash .dash-clone-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 18px; font-size: 12.5px; color: var(--muted); }
.dash .dash-clone-alt { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.dash .dash-clone-alt .text-button { display: inline-flex; align-items: center; gap: 6px; color: var(--text-secondary); font-size: 12.5px; }
.dash .dash-clone-alt .text-button svg { width: 14px; height: 14px; }
.dash .dash-usage { display: inline-flex; align-items: center; gap: 6px; color: var(--text-secondary); }
.dash .dash-usage svg { width: 14px; height: 14px; color: var(--accent); }
.dash .dash-clone-note { margin: 0; font-size: 11.5px; color: var(--muted); }
.dash .mirror-composition { display: none; }
.dash .onboarding-card { padding: 18px 20px; }
.dash .onboarding-step { padding: 9px 0; }
.dash .onboarding-track { margin-bottom: 12px; }
.dash .onboarding-steps { margin-bottom: 12px; }
@media (max-width: 600px) {
  .dash .dash-head { flex-direction: column; align-items: stretch; gap: 12px; }
  .dash .dash-head .button { justify-content: center; }
  .dash .dash-clone { padding: 18px 16px; border-radius: 14px; }
  .dash .dash-clone-text h2 { font-size: 19px; }
  .dash .dash-clone-form { grid-template-columns: 1fr; }
  .dash .dash-clone-form .button.primary { justify-content: center; }
}
@media (max-width: 1000px) {
  .shell.editor-mode .content.with-step-strip > *, .shell.editor-mode .content.with-step-strip .ev-top, .shell.editor-mode .content.with-step-strip .ev-subnav-row, .shell.editor-mode .content.with-step-strip .ev-workspace { min-width: 0; max-width: 100%; }
  .ev-subnav-row, .ev-subnav { min-width: 0; }
}
@media (max-width: 600px) { .ev-subnav-row { flex-wrap: nowrap; } }
.dash .dash-clone-form { max-width: none; width: 100%; }

/* "O que a clonagem trouxe" (rebuilt diagnostics) */
.import-report { max-width: 980px; }
.import-came { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 6px 0 26px; }
.import-came > div { display: grid; gap: 2px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.import-came strong { font-size: 26px; font-weight: 650; letter-spacing: -.6px; color: var(--ink); font-variant-numeric: tabular-nums; }
.import-came span { font-size: 12.5px; color: var(--muted); }
.import-came p { grid-column: 1 / -1; margin: 0; font-size: 12.5px; color: var(--text-secondary); }
.import-section { margin-bottom: 26px; display: grid; gap: 10px; }
.import-section h2 { display: flex; align-items: center; gap: 8px; font-size: 17px; margin: 0 0 4px; }
.import-note { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.import-note.need { border-color: #5c3a22; background: linear-gradient(0deg, #2b1a1033, #2b1a1033), var(--surface); }
.import-note-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: #2b1a10; color: #ffb07a; }
.import-note.done .import-note-icon { background: #8cdbb71c; color: #8cdbb7; }
.import-note-icon svg { width: 16px; height: 16px; }
.import-note-body h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 14px; }
.import-note-body p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--text-secondary); max-width: none; }
.import-note-sources { margin-top: 8px; font-size: 12px; color: var(--muted); }
.import-note-sources summary { cursor: pointer; color: var(--accent); }
.import-note-sources ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 3px; overflow-wrap: anywhere; }
.import-note > .button { align-self: center; white-space: nowrap; }
.import-technical code { font-size: 11px; color: var(--muted); }
.import-technical h3 { margin: 16px 0 8px; font-size: 13px; }
@media (max-width: 700px) {
  .import-came { grid-template-columns: 1fr 1fr; }
  .import-note { grid-template-columns: auto minmax(0, 1fr); }
  .import-note > .button { grid-column: 2; justify-self: start; }
}
/* the section bar keeps the historical classes (.editor-tabs / .editor-tab-group) that extensions and tests target */
.ev .ev-subnav.editor-tabs { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; flex-wrap: nowrap; gap: 4px; padding: 8px 16px; max-height: none; overflow-x: auto; border-right: 0; background: var(--studio-bg); }
.ev .ev-subnav .editor-tab-group { display: flex; flex-direction: row; align-items: center; gap: 4px; margin: 0; padding: 0; border: 0; }
.ev .ev-subnav .editor-tab-group-label { display: none; }
.ev-progress-page .ev-progress-card.empty-state { text-align: left; align-items: start; justify-items: start; min-height: 0; padding: 28px; }
.ev-progress-card .page-heading { margin: 0; }
.ev-progress-page .ev-progress-card.empty-state { border: 1px solid var(--line); border-style: solid; background: var(--surface); display: grid; }
.ev-progress-page .ev-progress-card.empty-state p { max-width: none; font-size: 13px; }
.ev-title-text p > span.sr-only::before { content: none; }
/* a wide panel (funnel cards, tables) must not stretch the workspace past the screen */
.ev-workspace > *, .ev-workspace .page { min-width: 0; max-width: 100%; }
.ev .preview-device { position: relative; }
.ev-stage-loading { position: absolute; inset: 30px 0 0; display: flex; align-items: center; justify-content: center; gap: 10px; background: #fff; color: #555; font-size: 13px; pointer-events: none; }
.ev-stage-loading .spinner { border-color: #ddd; border-top-color: #e5192c; }
.field-optional { font-weight: 400; color: var(--muted); }
/* project cards: what the clone holds, at a glance */
.project-facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 10px; }
.project-facts:empty { display: none; }
.project-fact { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); background: #ffffff06; font-size: 11px; color: var(--text-secondary); white-space: nowrap; }
.project-fact svg { width: 12px; height: 12px; }
.project-fact.published { color: #8cdbb7; border-color: #24453a; background: #8cdbb712; }
.project-failure { display: flex; gap: 7px; align-items: flex-start; margin: 2px 0 10px; font-size: 12px; line-height: 1.45; color: #ffb07a; }
.project-failure svg { width: 14px; height: 14px; flex: none; margin-top: 2px; }
.project-failure span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.project-body .project-failure { white-space: normal; overflow: visible; text-overflow: clip; max-width: none; }
.project-card .project-body .project-failure { color: #ffb07a; }
/* notices are information, not errors: neutral bar (red stays for actions and the brand) */
.notice { border-left: 3px solid #4a4a4a; background: #ffffff05; }
.notice > svg { color: var(--text-secondary); }
.link-step-destination { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 12.5px; color: var(--text-secondary); }
.link-step-destination svg { width: 14px; height: 14px; color: var(--accent); flex: none; }
.link-step-destination strong { color: var(--ink); font-weight: 600; }
.link-step-destination .text-button { margin-left: auto; color: var(--accent); }
/* file pickers in the product's style */
.ev-inspector input[type=file] { width: 100%; padding: 6px; border: 1px dashed var(--line-strong); border-radius: 9px; background: var(--studio-input); color: var(--muted); font-size: 12px; cursor: pointer; }
.ev-inspector input[type=file]::file-selector-button { margin-right: 10px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface-raised); color: var(--ink); font: 600 12px Inter, system-ui, sans-serif; cursor: pointer; }
.ev-inspector input[type=file]:hover { border-color: var(--accent); }
.ev-summary-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ev-summary-actions:empty { display: none; }
.ev-summary { align-items: center; }
.ev-summary-actions { margin-top: 0; flex: none; }
@media (max-width: 1280px) { .ev-summary { flex-wrap: wrap; } .ev-summary-text { flex: 1 1 60%; } .ev-summary-actions { order: 4; flex: 1 1 100%; padding-left: 42px; } }
.ev-title-text p > a.ev-live { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; border-radius: 999px; border: 1px solid #24453a; background: #8cdbb712; color: #8cdbb7; font-size: 11px; text-decoration: none; }
.ev-title-text p > a.ev-live svg { width: 12px; height: 12px; }
.ev-title-text p > a.ev-live:hover { border-color: #8cdbb7; }
/* sign-up: the terms checkbox sits beside its sentence */
.auth-terms.checkbox-field { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: flex-start; gap: 10px; }
.auth-terms.checkbox-field input { order: 0; margin-top: 2px; width: 16px; height: 16px; }
.auth-terms.checkbox-field label { order: 1; flex: 1; display: block; margin: 0; font-size: 12px; color: var(--text-secondary); }
.auth-terms.checkbox-field input { min-height: 0; height: 16px; padding: 0; }

/* Incomplete copy: the full browser failed and only the simple copy was kept (coral, like other warnings). */
.project-fact.incomplete { color: #ffb07a; border-color: #5a3a22; background: #ffb07a12; }
.ev-summary.ev-incomplete { border-color: #5a3a22; background: #2b1a10; }
.ev-summary.ev-incomplete .ev-summary-icon { color: #ffb07a; background: #ffb07a1a; }
.ev-summary.ev-incomplete strong { color: #ffd2b0; }

/* Section column of a one-screen page (same dock as the screens column, a plain list instead of thumbnails). */
.editor-mode .step-strip.sections-mode .section-hint { margin: 0; padding: 0 14px 8px; font-size: 12px; color: var(--muted); }
.editor-mode .section-track { display: flex; flex-direction: column; gap: 2px; padding: 4px 8px 12px; overflow-y: auto; min-height: 0; flex: 1; }
.section-pill { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--text-secondary, #d4d4d4); text-align: left; font: inherit; font-size: 13px; line-height: 1.3; cursor: pointer; }
.section-pill:hover { background: #ffffff07; border-color: var(--line, #262626); color: var(--ink, #f5f5f5); }
.section-pill[aria-current] { background: #e5192c16; border-color: #e5192c80; color: var(--ink, #f5f5f5); }
.section-pill:focus-visible { outline: 2px solid #ff8a8f; outline-offset: 1px; }
.section-number { flex: none; display: inline-grid; place-items: center; min-width: 24px; height: 24px; border-radius: 7px; background: #1a1a1a; border: 1px solid #3d3d3d; font-size: 11px; font-weight: 600; }
.section-pill[aria-current] .section-number { background: #e5192c; border-color: #e5192c; color: #fff; }
.section-label { min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
@media (max-width: 1000px) {
  .editor-mode .section-track { flex-direction: row; overflow-x: auto; overflow-y: hidden; padding: 4px 12px 10px; }
  .section-pill { width: auto; max-width: 220px; flex: none; }
  .editor-mode .step-strip.sections-mode .section-hint { display: none; }
}

/* Páginas do site: links of the clone that lead to other pages of the same site */
.site-pages-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 4px 0 14px; padding: 12px 14px; border: 1px solid var(--line, #262626); border-radius: 10px; background: #121212; font-size: 14px; }
.site-pages-list { display: grid; gap: 8px; }
.site-page { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border: 1px solid var(--line, #262626); border-radius: 10px; background: #121212; }
.site-page-text { display: grid; gap: 3px; min-width: 0; }
.site-page-text strong { font-size: 14px; color: var(--ink, #f5f5f5); overflow-wrap: anywhere; }
.site-page-url { font-size: 12px; color: #a3a3a3; overflow-wrap: anywhere; }
.site-page-meta { font-size: 12px; color: #a3a3a3; }
.site-page .button { flex: none; }
.site-pages-external { margin-top: 18px; border: 1px solid var(--line, #262626); border-radius: 10px; padding: 12px 14px; background: #0f0f0f; }
.site-pages-external summary { cursor: pointer; font-weight: 600; }
.site-pages-external ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.site-pages-external li { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: #d4d4d4; }
.site-pages-external code { color: #a3a3a3; font-size: 12px; overflow-wrap: anywhere; }
@media (max-width: 600px) { .site-page { flex-direction: column; align-items: stretch; } .site-page .button { width: 100%; justify-content: center; } }

/* Import wait: an activity bar (the stage has no percentage) and a tip that turns as the clock runs. */
.import-progress-activity { position: relative; height: 4px; margin: 14px 0 4px; border-radius: 999px; background: #1f1f1f; overflow: hidden; }
.import-progress-activity span { position: absolute; inset: 0 auto 0 0; width: 34%; border-radius: inherit; background: linear-gradient(90deg, transparent, #e5192c 40%, #ff4d55 60%, transparent); animation: sm-import-activity 1.6s cubic-bezier(.4, 0, .2, 1) infinite; }
@keyframes sm-import-activity { 0% { transform: translateX(-110%); } 100% { transform: translateX(310%); } }
@media (prefers-reduced-motion: reduce) { .import-progress-activity span { animation: none; width: 100%; opacity: .35; } }
.import-progress-tip { display: grid; gap: 4px; margin-top: 16px; padding: 12px 14px; border: 1px solid #262626; border-left: 3px solid #e5192c; border-radius: 8px; background: #121212; font-size: 13px; line-height: 1.5; color: #d4d4d4; }
.import-progress-tip strong { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #ff4d55; }

/* Phone editor (≤600px): the page being edited shows without scrolling past the whole header.
   The breadcrumb repeats the title and back button; the warnings chip sits beside the title; tabs and tools share
   one sideways row; the summary keeps its headline and main action; the device toggle goes (a phone already shows
   the phone layout). The incomplete-copy warning keeps its full text. */
@media (max-width: 600px) {
  .shell.editor-mode .content > .topbar { display: none; }
  .ev-top { gap: 8px 10px; padding: 10px 12px; }
  .ev-actions { flex: 0 0 auto; margin-left: auto; }
  .ev-actions .button { flex: 0 0 auto; min-height: 32px; padding: 0 10px; font-size: 12px; }
  .ev-subnav-row { flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 6px; padding: 0 12px 8px; overflow-x: auto; scrollbar-width: none; }
  .ev-subnav-row::-webkit-scrollbar { display: none; }
  .ev-subnav-row .ev-subnav { flex: none; }
  .ev-subnav-row .feature-tools { flex: none; display: flex; gap: 6px; padding: 0; }
  .ev-subnav-row .feature-tools .button { flex: none; }
  .ev-summary:not(.ev-incomplete) .ev-summary-text p { display: none; }
  .ev-summary:not(.ev-incomplete) { padding: 10px 12px; gap: 10px; align-items: center; }
  .ev-summary:not(.ev-incomplete) .ev-summary-actions .button:not(.primary) { display: none; }
  .ev-summary .ev-summary-text strong { font-size: 13px; line-height: 1.35; }
  .ev-toolbar .canvas-actions .view-toggle:not(.comparison-toggle) { display: none; }
  .ev-hint { white-space: normal; padding: 6px 12px; font-size: 11.5px; }
}

/* A page without its own background shows on white, as in any browser (it was drawn on the dark editor surface). */
.preview-stage iframe, .ev .preview-device iframe { background: #fff; color-scheme: light; }

/* Limit reached: an explanation above the plans, not an error with nothing to do. */
.billing-notice { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 20px; padding: 16px 18px; border: 1px solid #5c3a22; border-left: 3px solid #ffb07a; border-radius: 10px; background: #2b1a10; color: #f5f5f5; }
.billing-notice strong { display: block; margin-bottom: 4px; font-size: 15px; }
.billing-notice p { margin: 0; color: #d4d4d4; font-size: 14px; line-height: 1.5; }
.billing-notice-icon { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: #ffb07a1a; color: #ffb07a; }
.dash .dash-usage .dash-usage-plans { color: #ff4d55; font-weight: 600; font-size: inherit; padding: 0; }

/* Published: the address to share, big and copyable. */
.published-share { display: grid; gap: 8px; margin-top: 12px; padding: 14px; border: 1px solid #24453a; border-radius: 10px; background: #0f1a16; }
.published-share-label { font-size: 12px; font-weight: 600; letter-spacing: .02em; color: #8cdbb7; }
.published-share-url { display: block; padding: 10px 12px; border-radius: 8px; background: #0a0a0a; border: 1px solid #262626; color: #f5f5f5; font-size: 14px; overflow-wrap: anywhere; user-select: all; }
.published-share-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.published-share-note { margin: 0; font-size: 12px; color: #a3a3a3; }
.publish-seal-note { margin: 0 0 8px; font-size: 12.5px; color: #ffb07a; }

/* Failed clone: fix the address right there and try again, or delete the project. */
.ev-retry-form { display: grid; gap: 6px; margin: 18px 0 14px; text-align: left; }
.ev-retry-form label { font-size: 13px; font-weight: 600; color: #d4d4d4; }
.ev-retry-row { display: flex; gap: 8px; }
.ev-retry-row input { flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; border: 1px solid #3d3d3d; border-radius: 9px; background: #0a0a0a; color: #f5f5f5; font-size: 14px; }
.ev-retry-row input:focus { outline: none; border-color: #e5192c; box-shadow: 0 0 0 3px #e5192c33; }
.ev-retry-hint { margin: 0; font-size: 12px; color: #a3a3a3; }
.ev-retry-form .form-error:empty { display: none; }
.ev-failed-delete { color: #ffb07a; }
@media (max-width: 600px) { .ev-retry-row { flex-direction: column; } }

/* Screens copied so far, shown while the quiz is still being copied. */
.import-preview { margin-top: 18px; text-align: left; }
.import-preview[hidden] { display: none; }
.import-preview-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; font-size: 13px; }
.import-preview-head strong { color: #f5f5f5; font-size: 14px; }
.import-preview-count { color: #8cdbb7; font-size: 12px; font-weight: 600; }
.import-preview-list { list-style: none; margin: 0; padding: 2px 2px 8px; display: flex; gap: 10px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: thin; }
.import-preview-list li { flex: none; width: 150px; animation: sm-shot-in .35s ease-out; }
@keyframes sm-shot-in { from { opacity: 0; transform: translateY(6px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .import-preview-list li { animation: none; } .import-preview-list { scroll-behavior: auto; } }
.import-preview-list button { display: grid; gap: 6px; width: 100%; padding: 6px; border: 1px solid #262626; border-radius: 10px; background: #121212; color: #d4d4d4; font: inherit; text-align: left; cursor: pointer; }
.import-preview-list button:hover { border-color: #e5192c80; background: #1a1a1a; }
.import-preview-list button:focus-visible { outline: 2px solid #ff8a8f; outline-offset: 1px; }
.import-preview-list img { display: block; width: 100%; aspect-ratio: 1440 / 1000; object-fit: cover; object-position: top; border-radius: 6px; background: #fff; }
.import-shot-blank { display: grid; place-items: center; aspect-ratio: 1440 / 1000; border-radius: 6px; background: #1a1a1a; color: #a3a3a3; font-size: 11px; }
.import-shot-label { font-size: 11.5px; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
.import-preview-note { margin: 4px 0 0; font-size: 12px; color: #a3a3a3; }
.import-shot-large { display: block; width: 100%; max-width: 640px; margin: 0 auto 10px; border: 1px solid #262626; border-radius: 10px; background: #fff; }

/* The strip scrolls inside itself: the waiting card and its blocks may shrink below the width of all the miniatures. */
.ev-progress-page, .ev-progress-card, .import-progress, .import-preview { min-width: 0; max-width: 100%; box-sizing: border-box; }
.import-preview { width: 100%; }
.import-preview-list { max-width: 100%; overscroll-behavior-x: contain; }

/* Miniatures keep the shape of the screen they show: tall for a quiz column, wide for a page. */
.import-preview-list li { width: auto; max-width: 290px; }
.import-preview-list img { width: auto; height: 190px; max-width: 280px; min-width: 90px; aspect-ratio: auto; object-fit: contain; object-position: top; }
.import-preview-list button { width: auto; }
.import-shot-label { display: block; width: 0; min-width: 100%; }
