*{box-sizing:border-box}html{background:#171717;color:#f6f6f6;font:16px system-ui,-apple-system,sans-serif}body{margin:0}main{max-width:900px;margin:auto;padding:max(12px,env(safe-area-inset-top)) 10px max(20px,env(safe-area-inset-bottom))}header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}header b{font-size:22px;color:#ffda48}header b span{color:white;font-weight:400}small{display:block;color:#aaa;font-size:12px}button,.button{font:inherit;font-size:14px;border:1px solid #555;background:#33363a;color:white;border-radius:9px;padding:10px 9px;min-height:44px;cursor:pointer;touch-action:manipulation;text-align:center;display:inline-flex;align-items:center;justify-content:center}button:disabled{opacity:.4}.primary{background:#ffda48;color:#171717;border-color:#ffda48;font-weight:650}.tools{display:flex;gap:6px;flex-wrap:wrap;margin:7px 0}.tools button,.tools .button{flex:1;min-width:0}.zoom button{min-height:36px;padding:4px}input:not([type=file]){background:#292929;color:white;border:1px solid #777;border-radius:8px;padding:10px;width:100%;font:inherit}#title{margin-bottom:7px}#viewport{height:clamp(220px,48dvh,600px);width:100%;position:relative;overflow:hidden;background:#090909;border-radius:10px;touch-action:none;user-select:none;-webkit-user-select:none}#stage{position:absolute;left:0;top:0;transform-origin:0 0;touch-action:none}#photo,#overlay{position:absolute;inset:0;width:100%;height:100%;display:block}#overlay{touch-action:none}#hint,#status,#mobile-status{font-size:13px;color:#c8c8c8;padding:6px 0;overflow-wrap:anywhere}#mobile-status{border-top:1px solid #444;margin-top:10px}h2{font-size:20px}h2 small{display:inline}.empty{padding:24px 14px;background:#222;border-radius:10px;color:#bbb}article{display:flex;align-items:center;gap:8px;border-bottom:1px solid #444;padding:8px 0}.project{display:flex;align-items:center;justify-content:flex-start;gap:10px;flex:1;text-align:left;min-width:0}.project img{width:64px;height:52px;object-fit:cover;border-radius:5px}.project span{min-width:0;overflow-wrap:anywhere}dialog{color:white;background:#292c30;border:1px solid #666;border-radius:14px;padding:16px;width:min(92vw,400px);max-height:85dvh;overflow:auto}dialog::backdrop{background:#000b}dialog strong{display:block;margin-bottom:10px}dialog input{margin:5px 0}dialog img{max-width:100%} [hidden]{display:none!important} #snap-text-delete-inside-dialog,#remove{color:#ffb5b5}#snap-object-strip-v0344{width:100%}

/* Compact undo button: keep a full touch target and leave room for Messen/Nx. */
.tools #undo{flex:0 0 44px;width:44px;min-width:44px;min-height:44px;padding:0;align-self:stretch}
#undo svg{display:block;flex:none;pointer-events:none}
