[hidden]{display:none!important}
.draft-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:16px}
.draft-actions>button{display:flex;align-items:center;justify-content:center;width:100%;height:40px;min-height:40px;margin:0;padding:8px 6px;font-size:12px;font-weight:600;line-height:20px;border:1px solid #e4e4e4;border-radius:6px}
.source-section a,.export-section a{display:block;overflow-wrap:anywhere;font-size:13px;color:#d84b0a;margin-top:12px}
.local-badge{white-space:nowrap}
.recovery-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:10px 20px;flex-shrink:0}
.recovery-actions span{font-size:11px;color:#777}.recovery-actions button{min-height:40px}
#wallpaperThumb:not([src]){visibility:hidden}
.mobile-nav,.mobile-zoom,.mobile-sheet{display:none}

@media(max-width:1000px){
  html{height:100%;overflow:hidden}
  body.mockup-app{min-width:0;height:100dvh;overflow:hidden;--mobile-nav-height:calc(64px + env(safe-area-inset-bottom))}
  .app-header{height:54px;padding:0 16px;gap:12px}
  .brand{gap:7px}.brand h1{display:block;font-size:16px}.brand-mark{width:26px;height:23px}
  .workspace-nav{padding:0;background:none}.workspace-nav a[aria-current=page]{box-shadow:none;padding:4px 0;color:#888;font-size:11px}
  .local-badge{display:none}.save-status{font-size:9px;max-width:115px}
  .mockup-shell{display:block;min-height:0;height:calc(100dvh - 54px - var(--mobile-nav-height))}
  .mockup-left,.mockup-right{display:none}
  .mockup-workspace{height:100%;width:100%;min-height:0}
  .editor-heading{padding:10px 12px;gap:6px;flex-wrap:nowrap}
  .editor-heading h2{font-size:13px;margin-top:4px}.eyebrow{font-size:8px;letter-spacing:1px}
  .board-navigation{gap:0}.board-navigation button{width:36px;min-height:44px;font-size:24px}.board-navigation span{font-size:10px;min-width:38px;text-align:center}
  .editor-heading #viewToggle{min-height:40px;padding:6px 8px;font-size:11px}
  .editor-toolbar{min-height:44px;padding:0 12px;gap:8px}
  .editor-toolbar .toolbar button{width:40px;height:42px}
  .editor-toolbar #editingTarget{display:none}.toolbar-divider{display:none}
  .guide-toggle{min-height:44px;gap:8px}.guide-toggle span{font-size:11px}.guide-toggle input{width:18px;height:18px}
  .editor-stage{padding:16px;min-height:0;flex:1;background-size:32px 32px}
  .editor-status{font-size:9px;padding:5px 12px;gap:4px;min-height:26px}
  .editor-status span:last-child{margin-left:auto}
  .mobile-zoom{display:flex;align-items:center;gap:12px;padding:4px 18px;background:white;border-top:1px solid var(--line);min-height:44px;flex-shrink:0}
  .mobile-zoom label{font-size:11px;color:#777;white-space:nowrap}
  .mobile-zoom input{height:36px;flex:1;min-width:0}.mobile-zoom output{width:40px;font-size:11px;text-align:right}
  .overview-mode .mobile-zoom{display:none}
  .mobile-nav{position:fixed;z-index:10;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(4,1fr);padding:4px 12px calc(4px + env(safe-area-inset-bottom));height:var(--mobile-nav-height);border-top:1px solid #e5e5e5;background:#fff}
  .mobile-nav button{min-height:52px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;padding:4px;border:0;border-radius:7px;color:#666;font-size:11px;font-weight:500}
  .mobile-nav svg{width:21px;height:21px}.mobile-nav button[data-sheet=export]{color:var(--accent);background:var(--accent-soft)}
  .mobile-nav button[aria-expanded=true]{color:var(--accent);background:var(--accent-soft)}
  .mobile-sheet[open]{display:flex;flex-direction:column;position:fixed;inset:auto 0 0;margin:0 auto;width:min(100%,640px);max-width:100%;max-height:82dvh;padding:0;border:1px solid #e5e5e5;border-bottom:0;border-radius:16px 16px 0 0;background:#fff;color:var(--ink);overflow:hidden;box-shadow:0 -8px 40px #00000014}
  .mobile-sheet::backdrop{background:#17171755}
  .mobile-sheet-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 16px;border-bottom:1px solid var(--line);flex-shrink:0;background:#fff}
  .mobile-sheet-heading h2{margin:0;font-size:15px;font-weight:600}.mobile-sheet-heading button{min-height:44px;border:0;color:var(--accent);padding:8px 12px;font-size:13px}
  .mobile-sheet-body{padding-bottom:calc(16px + env(safe-area-inset-bottom));overflow-y:auto;overscroll-behavior:contain;min-height:0}
  .mobile-sheet .control-section{padding:18px 20px!important;gap:16px}
  .mobile-sheet input:not([type=range]):not([type=checkbox]):not([type=file]),.mobile-sheet select{font-size:16px;height:44px}
  .mobile-sheet label>span,.mobile-sheet .fineprint{font-size:12px}
  .mobile-sheet button{min-height:44px;font-size:13px}
  .mobile-sheet input[type=checkbox]{width:20px;height:20px;flex-shrink:0}
  .mobile-sheet .toggle-label{min-height:44px}
  .mobile-sheet .source-section{display:grid!important;border:0;grid-row:auto;grid-column:auto}
  .mobile-sheet .source-section h2{display:none}
  .mobile-sheet .wallpaper-drop{padding:14px;grid-template-columns:48px 1fr;min-height:92px}
  .mobile-sheet .wallpaper-drop img{width:48px;height:64px}.mobile-sheet .wallpaper-drop strong{font-size:14px}
  .mobile-sheet .wallpaper-drop span{font-size:12px}.mobile-sheet #sourceInfo{max-height:none;font-size:11px}
  .mobile-sheet .draft-actions{margin-top:0}.mobile-sheet .draft-actions>button{height:44px;font-size:13px}
  .mobile-sheet .rail-heading{display:flex;padding:10px 20px 0}.mobile-sheet .rail-heading h2{font-size:13px}
  .mobile-sheet .artboard-list{display:block;max-height:none;min-height:0;overflow:visible;padding:0 14px 8px;border:0}
  .mobile-sheet .artboard-group{margin:0 0 12px}.mobile-sheet .artboard-group>summary{padding:12px 6px;font-size:13px;min-height:44px}
  .mobile-sheet .group-actions{justify-content:space-between;font-size:11px}.mobile-sheet .group-actions button{font-size:12px}
  .mobile-sheet .artboard-group[open]>div:last-child{display:grid;grid-template-columns:1fr;overflow:visible;gap:4px}
  .mobile-sheet .artboard-item{min-width:0;padding:8px;gap:8px}.mobile-sheet .artboard-button{gap:14px;padding:0;border:0}
  .mobile-sheet .artboard-button canvas{width:54px;height:72px}.mobile-sheet .artboard-label{font-size:13px}.mobile-sheet .artboard-label b{font-size:11px}
  .mobile-sheet .export-check{padding:12px;min-height:44px;min-width:44px}
  .mobile-sheet .panel-section{border-bottom:1px solid var(--line)}
  .mobile-sheet .panel-section>summary{display:flex;align-items:center;gap:8px;list-style:none;padding:16px 20px;min-height:52px;font-size:13px;font-weight:600;cursor:pointer}
  .mobile-sheet .panel-section>summary::-webkit-details-marker{display:none}
  .mobile-sheet .panel-section>summary::before{content:'▸';color:#777}.mobile-sheet .panel-section[open]>summary::before{transform:rotate(90deg)}
  .mobile-sheet .panel-section>summary .protection-badge{margin-left:auto}
  .mobile-sheet .panel-section>.control-section{padding-top:0!important;border:0}
  .mobile-sheet .zoom-control input[type=number]{width:80px}.mobile-sheet .screen-picker{flex-wrap:wrap}.mobile-sheet .screen-picker button{font-size:12px}
  .mobile-sheet #exportSelected{min-height:48px;font-size:14px}.mobile-sheet .export-section{border:0}
  .mobile-sheet[data-panel=export] .export-section>summary{display:none}.mobile-sheet[data-panel=export] .export-section>.control-section{padding-top:20px!important}
  .mobile-sheet .color-palette button{min-height:36px}.mobile-sheet .color-toggle{font-size:13px}
  .mockup-app.busy .mobile-sheet .control-section{pointer-events:none;opacity:.65}
  .mockup-app.busy .mobile-nav{pointer-events:none;opacity:.65}
  .mockup-message{margin:8px 12px 0;max-height:70px;overflow:auto;font-size:11px}
  .overview{padding:16px}.overview-heading{align-items:start;flex-direction:column;gap:5px;margin-bottom:16px}
  .overview .mockup-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 12px}
  .mockup-card-header label{min-height:44px;font-size:11px}.mockup-card-header input{width:18px;height:18px;flex-shrink:0}
}
@media(min-width:600px) and (max-width:1000px){
  .overview .mockup-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .mobile-sheet .artboard-group[open]>div:last-child{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:380px){.workspace-nav{display:none}.editor-heading h2{font-size:12px}.editor-heading #viewToggle{padding:6px}.editor-status span:last-child{display:none}}
@media(max-height:500px) and (max-width:1000px){
  .app-header{height:42px}.mockup-shell{height:calc(100dvh - 42px - var(--mobile-nav-height))}
  .editor-heading{padding:2px 12px}.editor-toolbar{min-height:34px}.editor-toolbar .toolbar button{height:34px;min-height:34px}.guide-toggle{min-height:34px}
  .editor-status{display:none}.editor-stage{padding:8px}.mobile-zoom{min-height:36px;padding:0 18px}
}
