/* OhioMade Photo Studio v0.1.1 — iPhone Safari first, Vector visual language. */
:root{--navy:#012856;--red:#c80127;--muted:#5f6e83;--bg:#f5f7fa;--line:#dce3ec;--viewport-h:100dvh;--viewport-top:0px;--dock-h:86px;--sheet-top:120px}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}[hidden]{display:none!important}
html,body{margin:0;width:100%;height:100%;overflow:hidden;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--navy);background:var(--bg);-webkit-text-size-adjust:100%}
body{position:fixed;top:var(--viewport-top);height:var(--viewport-h);display:grid;grid-template-rows:auto auto minmax(0,1fr) auto auto}
button,input,select{font:inherit;font-size:16px}button{cursor:pointer;touch-action:manipulation}button:disabled{opacity:.4;cursor:default}button:focus-visible,input:focus-visible,canvas:focus-visible{outline:3px solid #628bc2;outline-offset:2px}
.om-icon{width:22px;height:22px;display:block;flex:none;fill:currentColor}.icon-outline{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.topbar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 16px;padding-top:calc(8px + env(safe-area-inset-top,0px));background:white;border-bottom:1px solid var(--line)}
.topbar small{font-size:12px;font-weight:700;color:var(--muted)}.topbar h1{font-size:18px;margin:2px 0 0}.header-actions{display:flex;gap:4px}.x-btn{width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:12px;background:var(--bg);color:var(--navy);flex:none}.primary{background:var(--navy)!important;border-color:var(--navy)!important;color:white!important}
.stage-toolbar{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;padding:8px;min-height:52px}.stage-pill{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid var(--line);border-radius:999px;background:white;color:var(--navy);font-size:13px;padding:7px 10px;min-height:44px}.stage-pill .om-icon{width:16px;height:16px}.stage-pill[aria-pressed="true"]{border-color:var(--navy)}.size-label{font-size:12px;color:var(--muted);white-space:nowrap}
.checker{background-color:#eef1f5;background-image:linear-gradient(45deg,#e2e7ed 25%,transparent 25%),linear-gradient(-45deg,#e2e7ed 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e2e7ed 75%),linear-gradient(-45deg,transparent 75%,#e2e7ed 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0}
#stage{min-height:0;min-width:0;position:relative;overflow:hidden}#canvas{display:block;width:100%;height:100%;touch-action:none;user-select:none;-webkit-user-select:none}#empty{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:20px;background:#f5f7fad9}#empty h2{font-size:21px;margin:12px 0 0}#empty p{font-size:14px;line-height:1.6;color:var(--muted)}#empty .small{font-size:12px}.empty-icon{width:42px;height:42px;fill:none;stroke:var(--navy);stroke-width:1.5}
.status-strip{display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:44px;padding:5px 8px;color:var(--muted);font-size:12px}#status{min-width:0}.selection-action{min-height:36px;padding:4px 8px;border:1px solid var(--line);border-radius:9px;color:var(--navy);background:white;font-size:13px;flex:none}
.dock{display:flex;gap:5px;padding:8px 8px calc(8px + env(safe-area-inset-bottom,0px));background:var(--navy);border-radius:16px 16px 0 0}.dock-btn{min-width:0;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;border:1px solid #ffffff30;border-radius:10px;background:#ffffff0b;color:white;min-height:62px;padding:6px 2px}.dock-btn em{font-size:12px;font-style:normal}.dock-btn.is-active{background:white;color:var(--navy)}
#backdrop{position:absolute;inset:0;background:#01285630;z-index:35}#sheet{position:absolute;bottom:var(--dock-h);left:0;right:0;z-index:40;background:white;border:1px solid var(--line);border-radius:18px 18px 0 0;max-height:calc(var(--viewport-h) - var(--sheet-top) - var(--dock-h) - 8px);display:flex;flex-direction:column;box-shadow:0 -8px 24px #01285615;overflow:hidden}#sheet header{display:flex;align-items:center;justify-content:space-between;padding:10px 14px;border-bottom:1px solid var(--line)}#sheet h2{font-size:16px;margin:0}.sheet-body{padding:10px 14px 18px;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.muted{font-size:14px;line-height:1.5;color:var(--muted)}label{display:block;font-size:14px;margin:16px 0}output{float:right;color:var(--muted)}input[type="range"]{display:block;width:100%;min-height:44px;accent-color:var(--navy)}.row{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}.pill{min-height:44px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--bg);color:var(--navy)}#toast{position:absolute;left:50%;top:var(--sheet-top);transform:translateX(-50%);max-width:90%;z-index:80;padding:10px 14px;background:var(--navy);color:white;border-radius:10px;font-size:14px}
@media(max-width:360px){.topbar{padding-left:8px;padding-right:8px}.topbar h1{font-size:16px}.dock-btn em{font-size:11px}}
@media(max-height:480px){.topbar small{display:none}.topbar{padding-top:4px;padding-bottom:4px}.stage-toolbar{padding:4px}.dock-btn{min-height:48px;gap:2px}.dock{padding-top:4px;padding-bottom:calc(4px + env(safe-area-inset-bottom,0px))}}
@media(min-width:800px){#sheet{left:50%;right:auto;width:600px;transform:translateX(-50%)}.dock{justify-content:center}.dock-btn{max-width:120px}}

a.pill{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}a.pill:focus-visible{outline:3px solid #628bc2;outline-offset:2px}
