/* Runway dock (variant C) — layered on .mkr when data-layout="runway" */
.mkr.rw{display:flex!important;flex-direction:column;gap:0;max-width:560px;margin:0 auto;grid-template-columns:none}
.mkr.rw>.mkr-ctl,.mkr.rw>.mkr-pv{display:none!important}
.mkr.rw .rw-pv{position:relative}
.mkr.rw .rw-pv .mkr-stage{position:relative;width:100%;max-width:none;margin:0;border-radius:20px;overflow:hidden;box-shadow:0 8px 24px rgba(60,40,20,.08)}
.mkr.rw .rw-pv canvas{display:block;width:100%;aspect-ratio:4/5;height:auto;border-radius:0}
.mkr.rw .rw-ovl{position:absolute;left:12px;right:12px;top:12px;display:flex;flex-direction:column;gap:8px;align-items:flex-start;z-index:3;pointer-events:none}
.mkr.rw .rw-ovl>*{pointer-events:auto}
.mkr.rw .rw-ovl .mkr-tabs{display:inline-flex;gap:0;margin:0;padding:3px;border-radius:999px;background:rgba(255,251,243,.85);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border:0;width:auto}
.mkr.rw .rw-ovl .mkr-tabs button{flex:0 0 auto;min-height:0;font:400 13px var(--sans);padding:5px 12px;border-radius:999px;border:0;background:none;color:#5E574D}
.mkr.rw .rw-ovl .mkr-tabs button.on{background:#FFFBF3;color:#1F1D1A;box-shadow:0 1px 3px rgba(60,40,20,.1)}
.mkr.rw .rw-ovl .mkr-tg{display:flex;flex-wrap:nowrap;gap:8px;overflow-x:auto;scrollbar-width:none;width:100%;margin:0;padding:3px;grid-template-columns:none}
.mkr.rw .rw-ovl .mkr-tg::-webkit-scrollbar{display:none}
.mkr.rw .rw-ovl .mkr-tg button{flex:0 0 auto;width:34px;height:34px;min-height:0;padding:0;border-radius:50%;overflow:hidden;border:0;opacity:.85;box-shadow:0 0 0 2px rgba(255,251,243,.8)}
.mkr.rw .rw-ovl .mkr-tg button.on{opacity:1;box-shadow:0 0 0 2px #FFFBF3,0 0 0 3.5px #1F1D1A}
.mkr.rw .rw-ovl .mkr-tg img{width:100%;height:100%;object-fit:cover;display:block;aspect-ratio:auto;border-radius:0}
.mkr.rw .rw-ovl .mkr-tg span{display:none}
.mkr.rw .rw-sg{display:flex;gap:6px;padding:14px 0 0;overflow-x:auto;scrollbar-width:none;align-items:center}
.mkr.rw .rw-sg::-webkit-scrollbar{display:none}
.mkr.rw .rw-sg .mkr-pg{display:flex!important;flex-wrap:nowrap;gap:6px;margin:0;padding:0;overflow:visible;grid-template-columns:none}
.mkr.rw .rw-sg button{flex:0 0 auto;min-height:0;white-space:nowrap;font:400 13px var(--sans);padding:6px 12px;border-radius:999px;border:0;background:#F7EED9;color:#5E574D;text-align:left;width:auto}
.mkr.rw .rw-sg button.on{background:#1F1D1A;color:#FFF7E9}
.mkr.rw .rw-sg .mkr-shuf{background:none;border:1px solid rgba(31,29,26,.12);color:#9A9081}
.mkr.rw .rw-bar{position:sticky;bottom:calc(8px + env(safe-area-inset-bottom));z-index:20;margin:12px 0 0;padding:6px 6px 6px 18px;border-radius:999px;background:#FFFBF3;box-shadow:0 8px 28px rgba(60,40,20,.12);display:flex;align-items:center;gap:6px}
.mkr.rw .rw-bar textarea{flex:1;min-width:0;display:block!important;resize:none;height:auto;min-height:0;margin:0;padding:8px 0;border:0;outline:0;background:transparent;box-shadow:none;font:400 16px/1.4 "Literata","Noto Serif TC",serif;color:#1F1D1A;white-space:nowrap;overflow:hidden}
.mkr.rw .rw-bar textarea::placeholder{color:#9A9081}
.mkr.rw .rw-bar .mkr-stylebtn{display:flex!important;flex:0 0 auto;width:34px;height:34px;min-height:0;padding:0;border-radius:50%;border:1px solid rgba(31,29,26,.12);background:none;font:400 14px "Literata",serif;letter-spacing:0;color:#5E574D}
.mkr.rw .rw-bar .mkr-share{flex:0 0 auto;width:84px;height:44px;min-height:0;margin:0;border-radius:999px;border:0;background:#1F1D1A;color:#FFF7E9;font:400 16px var(--sans);letter-spacing:.08em}
.mkr.rw .rw-foot{display:flex;justify-content:center;align-items:baseline;gap:10px;padding:10px 0 20px}
.mkr.rw .rw-foot .mkr-dl{all:unset;cursor:pointer;font-size:13px;color:#9A9081;text-decoration:underline;text-underline-offset:3px}
.mkr.rw .rw-foot .mkr-meta{margin:0;font-size:12px;color:#9A9081}
body>.mkr-style{display:none;position:fixed;left:0;right:0;bottom:0;z-index:60;max-width:560px;margin:0 auto;max-height:62vh;overflow:auto;padding:0 20px calc(20px + env(safe-area-inset-bottom));background:#FFFBF3;border-radius:18px 18px 0 0;box-shadow:0 -20px 40px -20px rgba(60,44,28,.45)}
body>.mkr-style.open{display:flex;flex-direction:column;gap:16px}
body>.mkr-style .mkr-sheet-hd{display:flex;justify-content:space-between;align-items:center;padding:14px 0 0}
body>.mkr-style .mkr-ownbox{display:none}
.mkr.rw .rw-bar .mkr-share{order:0}
.mkr.rw .rw-sg .mkr-pg{flex-direction:row!important}
.mkr.rw .rw-sg button{white-space:nowrap!important;width:auto!important;min-height:0!important;padding:6px 12px!important;border:0!important;border-radius:999px!important;background:#F7EED9!important;color:#5E574D!important;font-size:13px!important;box-shadow:none!important}
.mkr.rw .rw-sg button.on{background:#1F1D1A!important;color:#FFF7E9!important}
.mkr.rw .rw-sg .mkr-shuf{background:none!important;border:1px solid rgba(31,29,26,.12)!important;color:#9A9081!important}
.mkr.rw{align-items:stretch!important;width:100%}
.mkr.rw>.rw-pv,.mkr.rw>.rw-bar,.mkr.rw>.rw-sg{width:100%;max-width:none;align-self:stretch}
.mkr.rw .rw-sg button::after,.mkr.rw .rw-sg button::before{display:none!important}

/* fixes 2026-10-30: natural preview ratio, Aa in top row */
.mkr.rw .rw-pv .mkr-stage{width:100%!important;height:auto!important;aspect-ratio:4/5;max-width:none!important;margin:0!important}
.mkr.rw .rw-pv .mkr-stage canvas{width:100%!important;height:auto!important;aspect-ratio:4/5;object-fit:contain;max-width:none!important}
.mkr.rw .rw-ctl{display:flex;align-items:center;gap:10px;padding:0 0 10px;width:100%}
.mkr.rw .rw-ctl .mkr-tabs{display:inline-flex;flex:0 0 auto;gap:0;margin:0;padding:3px;border-radius:999px;background:#F7EED9;border:0;width:auto}
.mkr.rw .rw-ctl .mkr-tabs button{flex:0 0 auto;min-height:0;font:400 13px var(--sans);padding:5px 11px;border-radius:999px;border:0;background:none;color:#5E574D}
.mkr.rw .rw-ctl .mkr-tabs button.on{background:#FFFBF3;color:#1F1D1A;box-shadow:0 1px 3px rgba(60,40,20,.1)}
.mkr.rw .rw-ctl .mkr-tg{display:flex;flex:1;min-width:0;flex-wrap:nowrap;gap:8px;overflow-x:auto;scrollbar-width:none;margin:0;padding:3px;grid-template-columns:none}
.mkr.rw .rw-ctl .mkr-tg::-webkit-scrollbar{display:none}
.mkr.rw .rw-ctl .mkr-tg button{flex:0 0 auto;width:30px;height:30px;min-height:0;padding:0;border-radius:50%;overflow:hidden;border:0;opacity:.85;box-shadow:0 0 0 1px rgba(31,29,26,.1)}
.mkr.rw .rw-ctl .mkr-tg button.on{opacity:1;box-shadow:0 0 0 2px #FFFBF3,0 0 0 3.5px #1F1D1A}
.mkr.rw .rw-ctl .mkr-tg img{width:100%;height:100%;object-fit:cover;display:block;aspect-ratio:auto;border-radius:0}
.mkr.rw .rw-ctl .mkr-tg span{display:none}

/* honor true 4:5 greeting picture — kill mobile 46vh square trap */
@media (max-width:820px){
  .mkr.rw .rw-pv .mkr-stage{
    width:100%!important;
    height:auto!important;
    max-height:none!important;
    aspect-ratio:4/5!important;
    margin:0 auto!important;
  }
  .mkr.rw .rw-pv .mkr-stage canvas{
    display:block!important;
    width:100%!important;
    height:auto!important;
    max-height:none!important;
    aspect-ratio:4/5!important;
    object-fit:contain!important;
  }
}


/* v3 nuke square preview — stage owns 4:5, canvas fills stage */
.mkr.rw .rw-pv .mkr-stage,
.mkr.rw .mkr-stage{
  position:relative!important;
  width:100%!important;
  height:auto!important;
  max-height:none!important;
  aspect-ratio:4/5!important;
  overflow:hidden!important;
}
.mkr.rw .rw-pv .mkr-stage canvas,
.mkr.rw .mkr-stage canvas{
  position:absolute!important;
  left:0!important;top:0!important;right:0!important;bottom:0!important;
  width:100%!important;
  height:100%!important;
  max-height:none!important;
  aspect-ratio:auto!important;
}

/* v4 max-specificity lock: true 4:5, beats styles.css 46vh/height:100% traps at any width */
html body .mkr.rw .rw-pv .mkr-stage,html body .mkr.rw .rw-pv>.mkr-stage,html body main .mkr.rw .mkr-stage{width:100%!important;max-width:none!important;height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:4/5!important;flex:none!important;position:relative!important;overflow:hidden!important}
html body .mkr.rw .rw-pv .mkr-stage canvas,html body main .mkr.rw .mkr-stage canvas{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;aspect-ratio:auto!important}
/* deploy-v4-e */
