:root{--primary:#5dade2;--primary-dark:#1d6da2;--on-primary:#fff;--bg:#faf8f5;--surface:#ffffff;--surface-2:#f3f0eb;--text:#1f1d1a;--text-muted:#6b665f;--border:#e7e2da;--danger:#d43c3c;--danger-tint:#fdecec;--success:#2f8a4c;--accent-text:var(--primary-dark);--tint:color-mix(in srgb, var(--primary) 12%, var(--surface));--tint-strong:color-mix(in srgb, var(--primary) 24%, var(--surface));--font-sans:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;--font-serif:"Iowan Old Style","Palatino Linotype",Palatino,"Book Antiqua",Georgia,serif;--radius-sm:10px;--radius:16px;--radius-lg:24px;--shadow-sm:0 1px 2px rgb(0 0 0 / 0.05);--shadow:0 1px 2px rgb(0 0 0 / 0.04),0 8px 24px rgb(0 0 0 / 0.06);--shadow-lg:0 12px 40px rgb(0 0 0 / 0.18);--ease:cubic-bezier(0.2, 0.7, 0.2, 1);--safe-bottom:env(safe-area-inset-bottom, 0px);color-scheme:light}@media (prefers-color-scheme:dark){:root{--bg:#121110;--surface:#1c1b19;--surface-2:#262420;--text:#f3f1ed;--text-muted:#a8a299;--border:#2f2c28;--danger:#f06a6a;--danger-tint:#3a1f1f;--success:#5cc27c;--accent-text:color-mix(in srgb, var(--primary) 70%, #fff);--tint:color-mix(in srgb, var(--primary) 16%, var(--surface));--tint-strong:color-mix(in srgb, var(--primary) 30%, var(--surface));--shadow:0 1px 2px rgb(0 0 0 / 0.3),0 8px 24px rgb(0 0 0 / 0.3);color-scheme:dark}}*,::after,::before{box-sizing:border-box}html{-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}body{margin:0;min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;font-family:var(--font-sans);font-size:1rem;line-height:1.5;color:var(--text);background:var(--bg);-webkit-font-smoothing:antialiased}canvas,img,svg{display:block;max-width:100%}button,input,select{font:inherit;color:inherit}a{color:var(--accent-text)}h1,h2,h3{margin:0;line-height:1.2;font-weight:600}p{margin:0}[hidden]{display:none!important}:focus-visible{outline:2px solid var(--primary);outline-offset:2px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}.main{flex:1;width:100%}.container{width:100%;max-width:72rem;margin:0 auto;padding:0 16px}.container-sm{max-width:32rem}.container-md{max-width:48rem}.stack>*+*{margin-top:16px}.row{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.row-between{justify-content:space-between}.grow{flex:1;min-width:0}.muted{color:var(--text-muted)}.small{font-size:.875rem}.xsmall{font-size:.75rem}.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.85em}.break{overflow-wrap:anywhere}.center{text-align:center}.has-tabbar{padding-bottom:calc(80px + var(--safe-bottom))}@media (min-width:768px){.has-tabbar{padding-bottom:0;padding-top:72px}}.hero{display:flex;flex-direction:column;align-items:center;text-align:center;padding:40px 16px 24px;gap:12px}.hero-logo{width:auto;height:auto;max-width:min(60vw,220px);max-height:120px;object-fit:contain}.eyebrow{font-size:.75rem;letter-spacing:.18em;text-transform:uppercase;color:var(--accent-text);font-weight:600}.title{font-family:var(--font-serif);font-weight:500;font-size:clamp(2rem, 7vw, 3.25rem);letter-spacing:-.01em}.lead{color:var(--text-muted);max-width:34rem}.divider-ornament{width:48px;height:1px;background:var(--primary);opacity:.6;margin:4px auto}.topbar{position:sticky;top:0;z-index:20;border-bottom:1px solid var(--border)}.topbar::before{content:"";position:absolute;inset:0;z-index:-1;background:color-mix(in srgb,var(--bg) 85%,transparent);-webkit-backdrop-filter:saturate(1.4) blur(14px);backdrop-filter:saturate(1.4) blur(14px)}.topbar-inner{display:flex;align-items:center;gap:12px;min-height:60px}.topbar-logo{width:36px;height:36px;object-fit:contain;border-radius:10px;background:var(--surface);border:1px solid var(--border);padding:3px;flex-shrink:0}.topbar-title{font-weight:600;font-size:1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.topbar-sub{font-size:.75rem;color:var(--text-muted)}.tabbar{position:fixed;z-index:30;left:50%;transform:translateX(-50%);bottom:calc(16px + var(--safe-bottom));display:flex;gap:4px;padding:5px;border-radius:999px;border:1px solid var(--border);background:color-mix(in srgb,var(--surface) 82%,transparent);-webkit-backdrop-filter:saturate(1.5) blur(16px);backdrop-filter:saturate(1.5) blur(16px);box-shadow:var(--shadow)}.tabbar a{display:flex;align-items:center;gap:8px;padding:10px 20px;border-radius:999px;text-decoration:none;color:var(--text-muted);font-weight:600;font-size:.9375rem;transition:background .2s,color .2s}.tabbar a svg{width:20px;height:20px}.tabbar a[aria-current=page]{background:var(--primary);color:var(--on-primary)}@media (min-width:768px){.tabbar{bottom:auto;top:16px}.tabbar a:not([aria-current=page]):hover{color:var(--text);background:var(--surface-2)}}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:20px;box-shadow:var(--shadow-sm)}.card-title{font-size:1.0625rem;font-weight:600}.card-sub{font-size:.875rem;color:var(--text-muted);margin-top:2px}@media (min-width:640px){.card{padding:24px}}.section-title{font-size:.75rem;text-transform:uppercase;letter-spacing:.12em;color:var(--text-muted);font-weight:600;margin-bottom:12px}.btn{--btn-bg:var(--surface-2);--btn-fg:var(--text);display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 18px;border-radius:999px;border:1px solid transparent;background:var(--btn-bg);color:var(--btn-fg);font-weight:600;font-size:.9375rem;line-height:1.2;text-decoration:none;cursor:pointer;user-select:none;white-space:nowrap;transition:transform .15s var(--ease),filter .15s,background .15s,opacity .15s}.btn svg{width:18px;height:18px;flex-shrink:0}.btn:hover{filter:brightness(.96)}.btn:active{transform:scale(.97)}.btn:disabled,.btn[aria-disabled=true]{opacity:.45;cursor:not-allowed;transform:none;filter:none}.btn-primary{--btn-bg:var(--primary);--btn-fg:var(--on-primary);box-shadow:0 4px 14px color-mix(in srgb,var(--primary) 35%,transparent)}.btn-tint{--btn-bg:var(--tint);--btn-fg:var(--accent-text)}.btn-outline{--btn-bg:transparent;border-color:var(--border)}.btn-ghost{--btn-bg:transparent}.btn-ghost:hover{--btn-bg:var(--surface-2);filter:none}.btn-danger{--btn-bg:var(--danger);--btn-fg:#fff}.btn-danger-soft{--btn-bg:var(--danger-tint);--btn-fg:var(--danger)}.btn-sm{min-height:36px;padding:6px 14px;font-size:.875rem}.btn-lg{min-height:54px;padding:14px 24px;font-size:1.0625rem}.btn-block{width:100%}.btn-icon{min-height:40px;width:40px;padding:0}.btn-group{display:flex;flex-wrap:wrap;gap:8px}.field{display:block}.field-label{display:block;font-size:.875rem;font-weight:600;margin-bottom:6px}.input{width:100%;min-height:48px;padding:10px 14px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface);font-size:1rem;transition:border-color .15s,box-shadow .15s}.input:focus{outline:0;border-color:var(--primary);box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 25%,transparent)}.hint{font-size:.8125rem;color:var(--text-muted)}.chips{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}.chip{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;font-size:.75rem;font-weight:600;background:var(--surface-2);color:var(--text-muted)}.chip-tint{background:var(--tint);color:var(--accent-text)}.notice{padding:12px 14px;border-radius:var(--radius-sm);font-size:.8125rem;line-height:1.55;background:var(--surface-2);color:var(--text-muted)}.notice-danger{background:var(--danger-tint);color:var(--danger)}.notice ul{margin:0;padding-left:1.1em}.dropzone{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;text-align:center;padding:32px 16px;cursor:pointer;border:2px dashed color-mix(in srgb,var(--primary) 45%,var(--border));border-radius:var(--radius);background:var(--tint);transition:background .2s,border-color .2s,transform .2s var(--ease)}.dropzone.is-over,.dropzone:hover{background:var(--tint-strong);border-color:var(--primary)}.dropzone.is-over{transform:scale(1.01)}.dropzone:focus-within{outline:2px solid var(--primary);outline-offset:2px}.dropzone-icon{width:56px;height:56px;border-radius:999px;display:grid;place-items:center;background:var(--primary);color:var(--on-primary);box-shadow:0 6px 20px color-mix(in srgb,var(--primary) 40%,transparent)}.dropzone-icon svg{width:26px;height:26px}.dropzone-title{font-weight:600}.dropzone.warn{animation:shake .4s ease;border-color:var(--danger)}@keyframes shake{25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}.previews{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}@media (min-width:480px){.previews{grid-template-columns:repeat(5,1fr)}}.preview{position:relative;aspect-ratio:1;border-radius:var(--radius-sm);overflow:hidden;background:var(--surface-2)}.preview img{width:100%;height:100%;object-fit:cover}.preview.is-invalid{outline:2px solid var(--danger);outline-offset:-2px}.preview-remove{position:absolute;top:4px;right:4px;width:26px;height:26px;border-radius:999px;border:0;display:grid;place-items:center;cursor:pointer;background:rgb(0 0 0 / .6);color:#fff}.preview-remove svg{width:14px;height:14px}.progress{height:8px;border-radius:999px;background:var(--surface-2);overflow:hidden}.progress-bar{height:100%;width:0;border-radius:inherit;background:var(--primary);transition:width .2s ease}.photo-grid{display:grid;gap:3px;grid-template-columns:repeat(3,1fr)}@media (min-width:640px){.photo-grid{grid-template-columns:repeat(4,1fr);gap:6px}}@media (min-width:1024px){.photo-grid{grid-template-columns:repeat(5,1fr);gap:8px}}@media (min-width:640px){.photo-grid .tile{border-radius:var(--radius-sm)}}.tile{position:relative;aspect-ratio:1;overflow:hidden;background:var(--surface-2);contain:content}.tile.is-loading{background:linear-gradient(110deg,var(--surface-2) 30%,var(--tint) 50%,var(--surface-2) 70%) 0 0/300% 100%;animation:shimmer 1.4s linear infinite}@keyframes shimmer{to{background-position:-150% 0}}.tile-open{display:block;width:100%;height:100%;padding:0;border:0;background:0 0;cursor:zoom-in}.tile img{width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .35s ease,transform .4s var(--ease)}.tile img.loaded{opacity:1}@media (hover:hover){.tile:hover img{transform:scale(1.04)}}.tile-action{position:absolute;width:34px;height:34px;border-radius:999px;border:0;display:grid;place-items:center;cursor:pointer;text-decoration:none;background:rgb(255 255 255 / .92);color:#1f1d1a;box-shadow:0 2px 8px rgb(0 0 0 / .2);transition:transform .15s var(--ease),opacity .2s}.tile-action svg{width:17px;height:17px}.tile-action:active{transform:scale(.9)}.tile-action.br{bottom:6px;right:6px}.tile-action.bl{bottom:6px;left:6px;color:var(--danger)}@media (hover:hover){.tile .tile-action.bl,.tile .tile-action.br{opacity:0}.tile:focus-within .tile-action,.tile:hover .tile-action{opacity:1}}.tile-select{position:absolute;top:6px;left:6px;width:28px;height:28px;border-radius:999px;border:2px solid #fff;background:rgb(0 0 0 / .25);color:#fff;cursor:pointer;display:grid;place-items:center;padding:0;box-shadow:0 1px 4px rgb(0 0 0 / .3)}.tile-select svg{width:16px;height:16px;opacity:0}.tile.is-selected .tile-select{background:var(--primary);border-color:var(--primary);color:var(--on-primary)}.tile.is-selected .tile-select svg{opacity:1}.tile.is-selected img{transform:scale(.9);border-radius:var(--radius-sm)}.tile.is-selected{background:var(--tint-strong)}.empty{grid-column:1/-1;display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center;padding:48px 16px;color:var(--text-muted)}.empty-icon{width:64px;height:64px;border-radius:999px;display:grid;place-items:center;background:var(--tint);color:var(--accent-text)}.empty-icon svg{width:28px;height:28px}.sentinel{height:1px}.spinner{width:28px;height:28px;border-radius:999px;margin:24px auto;border:3px solid var(--tint-strong);border-top-color:var(--primary);animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.selection-bar{position:fixed;z-index:30;left:12px;right:12px;bottom:calc(12px + var(--safe-bottom));max-width:560px;margin:0 auto;display:flex;align-items:center;gap:8px;padding:8px 8px 8px 18px;border-radius:999px;background:var(--text);color:var(--bg);box-shadow:var(--shadow-lg);transform:translateY(150%);visibility:hidden;transition:transform .3s var(--ease),visibility 0s .3s}.selection-bar.is-visible{transform:none;visibility:visible;transition:transform .3s var(--ease)}.selection-bar .btn-ghost{--btn-fg:var(--bg)}.selection-bar .btn-ghost:hover{--btn-bg:rgb(127 127 127 / 0.2)}.gallery-item{display:flex;flex-direction:column;gap:14px}.gallery-head{display:flex;gap:12px;align-items:center}.gallery-logo{width:52px;height:52px;object-fit:contain;border-radius:14px;flex-shrink:0;background:var(--surface);border:1px solid var(--border);padding:4px}.url-box{display:flex;align-items:center;gap:8px;padding:6px 6px 6px 12px;border-radius:var(--radius-sm);background:var(--surface-2);font-size:.8125rem}.url-box span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text-muted)}.swatches{display:flex;flex-wrap:wrap;gap:10px}.swatch{width:36px;height:36px;border-radius:999px;border:2px solid var(--surface);cursor:pointer;box-shadow:0 0 0 1px var(--border);padding:0;transition:transform .15s var(--ease)}.swatch:hover{transform:scale(1.08)}.swatch[aria-pressed=true]{box-shadow:0 0 0 2px var(--text)}.color-input{width:36px;height:36px;padding:3px;border:0;border-radius:999px;cursor:pointer;background:conic-gradient(#e66,#ec6,#6c6,#6ce,#66e,#e6e,#e66)}.color-input::-webkit-color-swatch-wrapper{padding:0}.color-input::-webkit-color-swatch{border:2px solid var(--surface);border-radius:999px}.color-input::-moz-color-swatch{border:2px solid var(--surface);border-radius:999px}.logo-preview{width:72px;height:72px;object-fit:contain;border-radius:var(--radius);background:var(--surface);border:1px solid var(--border);padding:6px}.toasts{position:fixed;z-index:100;top:calc(12px + env(safe-area-inset-top,0px));left:50%;transform:translateX(-50%);display:flex;flex-direction:column;gap:8px;width:max-content;max-width:calc(100vw - 24px);pointer-events:none}.toast{display:flex;align-items:center;gap:10px;padding:10px 16px;border-radius:999px;background:var(--text);color:var(--bg);font-size:.875rem;font-weight:500;box-shadow:var(--shadow-lg);animation:toastIn .3s var(--ease)}.toast::before{content:"";width:8px;height:8px;border-radius:99px;background:var(--primary);flex-shrink:0}.toast.success::before{background:var(--success)}.toast.error::before{background:var(--danger)}.toast.out{opacity:0;transform:translateY(-8px);transition:.25s}@keyframes toastIn{from{opacity:0;transform:translateY(-12px) scale(.96)}}.dialog{width:min(92vw,400px);padding:0;border:0;border-radius:var(--radius-lg);background:var(--surface);color:var(--text);box-shadow:var(--shadow-lg)}.dialog::backdrop{background:rgb(0 0 0 / .5);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.dialog[open]{animation:dialogIn .25s var(--ease)}@keyframes dialogIn{from{opacity:0;transform:translateY(12px) scale(.97)}}.dialog-body{padding:24px;display:flex;flex-direction:column;gap:12px}.dialog-title{font-size:1.125rem;font-weight:600}.dialog-actions{display:flex;gap:8px;margin-top:8px}.dialog-actions .btn{flex:1}.qr-canvas{margin:4px auto;border-radius:var(--radius-sm);background:#fff;padding:8px;width:236px;height:236px}.lightbox{position:fixed;inset:0;z-index:90;background:rgb(8 8 8 / .96);display:flex;align-items:center;justify-content:center;touch-action:none;animation:fadeIn .2s ease}@keyframes fadeIn{from{opacity:0}}.lightbox-img{max-width:100vw;max-height:100vh;max-height:100dvh;object-fit:contain;user-select:none;-webkit-user-drag:none;transition:transform .35s var(--ease),opacity .35s ease}@media (min-width:768px){.lightbox-img{max-width:92vw;max-height:88vh;border-radius:6px}}.lightbox-bar{position:absolute;left:0;right:0;top:0;display:flex;align-items:center;gap:4px;padding:calc(8px + env(safe-area-inset-top,0px)) 8px 8px;background:linear-gradient(rgb(0 0 0 / .55),transparent);color:#fff}.lightbox-counter{flex:1;padding-left:10px;font-size:.8125rem;letter-spacing:.08em;opacity:.85;font-variant-numeric:tabular-nums}.lb-btn{width:44px;height:44px;border-radius:999px;border:0;display:grid;place-items:center;background:0 0;color:#fff;cursor:pointer;text-decoration:none}.lb-btn:hover{background:rgb(255 255 255 / .12)}.lb-btn svg{width:22px;height:22px}.lb-nav{position:absolute;top:50%;transform:translateY(-50%);background:rgb(255 255 255 / .1)}.lb-prev{left:16px}.lb-next{right:16px}@media (hover:none){.lb-nav{display:none}}.lightbox .spinner{position:absolute;border-color:rgb(255 255 255 / .2);border-top-color:#fff}.footer{padding:32px 16px calc(24px + var(--safe-bottom));text-align:center;font-size:.75rem;line-height:1.6;color:var(--text-muted)}.footer p{max-width:36rem;margin:0 auto}.footer a{color:inherit}@media (prefers-reduced-motion:reduce){*,::after,::before{animation-duration:0s!important;animation-iteration-count:1!important;transition-duration:0s!important}}