:root{color-scheme:light;--page:#f6f2ee;--panel:#fffcf8;--stage:#f0e8e2;--dots:#d9c9c3;--tile:#f3ebe8;--line:var(--site-border,#decfca);--text:var(--site-text,#2d2328);--quiet:#6b5760;--accent:#793950;--on-accent:#fff8fa;--hover:#f4e6e9;--selected:#f5e4e9;--shadow:#4b2d3510;font-family:system-ui,Yu Gothic UI,Hiragino Sans,Meiryo,sans-serif}@media (prefers-color-scheme:dark){:root:not([data-theme=light]){color-scheme:dark;--page:#211b21;--panel:#2a232a;--stage:#332932;--dots:#51404c;--tile:#3b2e37;--line:#594753;--text:#f7edf0;--quiet:#d3bac4;--accent:#f0a9bf;--on-accent:#3b1828;--hover:#493442;--selected:#503845;--shadow:#120a1240}}:root[data-theme=dark]{color-scheme:dark;--page:#211b21;--panel:#2a232a;--stage:#332932;--dots:#51404c;--tile:#3b2e37;--line:#594753;--text:#f7edf0;--quiet:#d3bac4;--accent:#f0a9bf;--on-accent:#3b1828;--hover:#493442;--selected:#503845;--shadow:#120a1240}*,:before,:after{box-sizing:border-box}[hidden]{display:none!important}body{background:var(--site-surface-muted,var(--page));color:var(--site-text,var(--text));margin:0}button,select,input{font:inherit;color:inherit}button,select,input[type=color],input[type=number]{border:1px solid var(--site-border,var(--line));background:var(--site-surface-muted,var(--panel));border-radius:9px;min-height:40px}button,select,input:not([type=range]){padding:6px 10px}button,select,summary{cursor:pointer}button:hover:enabled{background:var(--site-surface-hover,var(--hover))}button:disabled{opacity:.5;cursor:default}:focus-visible{outline:3px solid var(--site-danger,var(--accent));outline-offset:3px}button.primary{background:var(--accent);color:var(--site-link,var(--on-accent));border:1px solid #0000;padding:10px 17px;font-weight:750}button.primary:hover:enabled{filter:brightness(.9);background:var(--accent)}button.subtle{color:var(--site-danger,var(--accent));background:0 0;border-color:#0000;font-weight:650}button.subtle:hover:enabled{background:var(--site-surface-hover,var(--hover))}h1,h2,h3,p{margin:0}h2{font-size:1rem}.secondary{color:var(--site-text-muted,var(--quiet));font-size:.81rem;font-weight:450}.app-header{background:var(--site-surface-muted,var(--panel));border-bottom:1px solid var(--site-border,var(--line))}.header-inner{justify-content:space-between;align-items:center;gap:12px;width:min(100% - 48px,1250px);min-height:74px;margin:auto;display:flex}.brand{align-items:center;gap:12px;display:flex}.brand h1{letter-spacing:.035em;font-size:clamp(1rem,3.8vw,1.35rem)}.brand-icon{background:var(--accent);border-radius:11px;flex:none;grid-template:1fr 1fr/1fr 1fr;gap:3px;width:36px;height:36px;padding:8px;display:grid}.brand-icon i{background:var(--site-surface-muted,var(--on-accent));border-radius:2px}.brand-icon i:first-child{grid-row:span 2}.theme-control{color:var(--site-text-muted,var(--quiet));align-items:center;gap:8px;font-size:.82rem;display:flex}.theme-control select{min-height:36px}.workspace{grid-template-columns:minmax(0,1fr) minmax(280px,330px);align-items:start;gap:18px;width:min(100% - 48px,1250px);margin:28px auto;display:grid}.panel{background:var(--site-surface-muted,var(--panel));border:1px solid var(--site-border,var(--line));min-width:0;box-shadow:0 4px 18px var(--shadow);border-radius:18px}.panel-title,.panel-foot{justify-content:space-between;align-items:center;gap:8px;min-height:58px;padding:10px 17px;display:flex}.preview-actions{text-align:right;align-items:center;gap:9px;min-width:0;display:flex}#preview-count,#dimensions{font-variant-numeric:tabular-nums}.app-header a,.app-footer a{color:var(--site-danger,var(--accent));text-underline-offset:.2em}.header-controls,.app-footer nav{flex-wrap:wrap;align-items:center;gap:8px 16px;display:flex}.header-controls{justify-content:flex-end;font-size:.875rem}.header-controls a,.app-footer a{padding-block:.45rem}.app-footer{grid-column:1/-1;width:100%;padding:0 16px;font-size:.875rem}.app-footer nav{justify-content:center}#quick-save{min-width:54px;padding:6px 9px;font-size:.82rem}.panel-foot{flex-wrap:wrap;min-height:53px}.stage{border:1px dashed var(--site-border,var(--line));background:radial-gradient(var(--site-surface-tint,var(--dots)) 1px, transparent 1px) 0 0 / 17px 17px, var(--site-surface-tint,var(--stage));border-radius:12px;place-items:center;min-height:420px;margin:0 12px;padding:26px 20px;display:grid}.stage[data-dragging]{border-color:var(--accent);outline:2px solid var(--site-danger,var(--accent))}.welcome{text-align:center}.photo-stack{width:256px;height:143px;margin:0 auto 18px;position:relative}.photo-stack img{background:var(--site-surface,white);-o-object-fit:cover;object-fit:cover;border-radius:7px;padding:5px;position:absolute;box-shadow:0 6px 15px #2a1a2955}.photo-stack img:first-child{top:17px;left:1px;transform:rotate(-13deg)}.photo-stack img:nth-child(2){top:20px;right:1px;transform:rotate(12deg)}.photo-stack img:nth-child(3){top:5px;left:49px;transform:rotate(-2deg)}.welcome h3{letter-spacing:.035em;font-size:clamp(1.08rem,3.7vw,1.7rem)}.welcome p{color:var(--site-text-muted,var(--quiet));margin-top:8px;font-size:.86rem}.welcome-actions{flex-wrap:wrap;justify-content:center;gap:6px;margin:17px 0 6px;display:flex}.welcome p.formats{font-size:.75rem}.artwork{width:min(100%, var(--art-max-width,640px));background:conic-gradient(var(--site-surface-muted,#bdb7be) 25%, var(--site-surface-muted,#e4dee5) 0 50%, var(--site-surface-muted,#bdb7be) 0 75%, var(--site-surface-muted,#e4dee5) 0) 0 0 / 16px 16px;position:relative;box-shadow:0 5px 22px #2a1a294d}.artwork canvas{width:100%;height:auto;display:block}.slot-controls{pointer-events:none;position:absolute;inset:0;-webkit-mask-size:100% 100%;mask-size:100% 100%}.slot-controls button{pointer-events:auto;touch-action:none;cursor:grab;background:0 0;border:0;border-radius:0;min-height:0;padding:0;position:absolute}.slot-controls button:hover:enabled{background:0 0;box-shadow:inset 0 0 0 2px #fff}.slot-controls button[aria-pressed=true]{box-shadow:inset 0 0 0 2px #fff,0 0 0 2px #793950}#decoration-handle{z-index:2;touch-action:none;cursor:grab;border:2px dashed var(--site-border,#fff);background:0 0;border-radius:4px;min-width:24px;min-height:24px;padding:0;position:absolute;transform:translate(-50%,-50%);box-shadow:0 0 0 1px #573548}#decoration-handle:active{cursor:grabbing}#decoration-handle:hover:enabled{background:0 0}.slot-controls[inert]{visibility:hidden}.decoration-movement{flex-wrap:wrap;gap:4px;display:flex}.decoration-movement button{min-width:36px;padding:4px 7px}.decoration-movement select{max-width:100%}.event-options{padding-top:10px}.event-options .event-examples{padding:0}.event-examples .layout-card{min-height:62px}.decoration-editor{border:1px solid var(--site-border,var(--line));border-radius:9px;gap:10px;padding:10px;display:grid}.decoration-editor p{color:var(--site-text-muted,var(--quiet));margin:0;font-size:.8rem}.decoration-adjustments{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.range-control{--thumb-size:16px;--range-track:color-mix(in srgb, var(--quiet) 68%, var(--panel));display:grid;position:relative}.range-track{inset:50% calc(var(--thumb-size) / 2) auto;background:linear-gradient(to right, var(--accent) var(--range-progress), var(--range-track) var(--range-progress));pointer-events:none;border-radius:999px;height:4px;position:absolute;transform:translateY(-50%)}.range-control input{-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;background:0 0;border:0;border-radius:4px;width:100%;min-width:0;height:28px;margin:0;padding:0;display:block;position:relative}.range-control input::-webkit-slider-runnable-track{height:var(--thumb-size);background:0 0}.range-control input::-moz-range-track{height:var(--thumb-size);background:0 0}.range-control input::-moz-range-progress{background:0 0}.range-control input::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:var(--thumb-size);height:var(--thumb-size);background:var(--accent);border:0;border-radius:50%}.range-control input::-moz-range-thumb{width:var(--thumb-size);height:var(--thumb-size);background:var(--accent);border:0;border-radius:50%}@media (forced-colors:active){.range-control{--accent:Highlight;--range-track:GrayText;forced-color-adjust:none}}.decoration-editor .decoration-visible{align-items:center;gap:7px;min-height:30px;display:flex}.decoration-visible input[type=checkbox]{width:auto;accent-color:var(--accent);flex:none}.history{gap:6px;display:flex}.history button{min-width:40px;font-size:1.15rem}.editor,.sidebar{gap:18px;min-width:0;display:grid}.settings-views{border:1px solid var(--site-border,var(--line));background:var(--site-surface-muted,var(--tile));border-radius:10px;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px;margin:0 14px 12px;padding:3px;display:grid}.settings-views button{background:0 0;border-color:#0000;min-height:36px;font-size:.86rem}.settings-views button[aria-pressed=true]{background:var(--site-surface-muted,var(--panel));border-color:var(--site-border,var(--line));color:var(--site-danger,var(--accent));font-weight:750}.settings-title-narrow{display:none}#adjust-layout-name{margin:0 16px 9px;font-size:.82rem;font-weight:650}.layout-filters{border:1px solid var(--site-border,var(--line));background:var(--site-surface-muted,var(--tile));border-radius:10px;gap:2px;margin:0 13px 11px;padding:3px;display:flex}.layout-filters button{white-space:nowrap;background:0 0;border:1px solid #0000;flex:1;min-width:0;min-height:34px;padding:4px 2px;font-size:.72rem}.layout-filters button[aria-pressed=true]{background:var(--site-surface-muted,var(--panel));color:var(--site-danger,var(--accent));border-color:var(--site-border,var(--line));font-weight:750}.layouts{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding:0 14px;display:grid}.layout-card{text-align:center;align-content:center;justify-items:center;gap:2px;min-height:81px;padding:4px 3px;font-size:.71rem;line-height:1.2;display:grid}.layout-card[aria-pressed=true],.photo-thumb[aria-pressed=true]{background:var(--site-surface-tint,var(--selected));border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}.mini-layout{place-items:center;width:100%;height:50px;display:grid;position:relative}.mini-page{aspect-ratio:var(--ratio);position:relative}.mini-page i{background:color-mix(in srgb, var(--accent), var(--site-surface-muted,var(--tile)) 71%);border:1px solid var(--site-border,var(--panel));border-radius:3px;position:absolute}.layout-card[aria-pressed=true] .mini-page i{background:color-mix(in srgb, var(--accent), var(--site-surface-muted,var(--tile)) 43%)}.mini-shape{--paint:color-mix(in srgb, var(--accent), var(--tile) 35%);background:var(--paint);width:39px;height:39px;display:block}.mini-circle{border-radius:50%}.mini-star{clip-path:polygon(50% 0,62% 34%,98% 35%,69% 58%,80% 95%,50% 73%,20% 95%,31% 58%,2% 35%,38% 34%)}.mini-heart{clip-path:polygon(50% 89%,13% 55%,5% 37%,8% 20%,19% 9%,33% 7%,44% 14%,50% 23%,56% 14%,67% 7%,81% 9%,92% 20%,95% 37%,87% 55%);width:44px;height:38px;clip-path:shape(from 50% 88%, curve to 6% 33% with 38% 80% / 6% 55%, curve to 50% 26% with 6% 7% / 33% 0%, curve to 94% 33% with 67% 0% / 94% 7%, curve to 50% 88% with 94% 55% / 62% 80%, close)}.mini-number{color:var(--site-danger,var(--accent));letter-spacing:-.025em;font-size:1.43rem;font-weight:900}.mini-motif{aspect-ratio:1;width:20px;color:var(--site-danger,#5c263a);background:var(--site-surface-tint,#f2d5dd);border-radius:50%;place-items:center;font-size:.9rem;display:grid;position:absolute;inset:4px 6px auto auto}.mini-christmas{color:var(--site-success,#184f3b);background:var(--site-surface-tint,#cde3cf)}.mini-new-year{color:var(--site-danger,#842b3c);background:var(--site-surface-tint,#f5dfaa)}.mini-birthday{color:var(--site-link,#603680);background:var(--site-surface-tint,#ead5f4)}.mini-children-day,.mini-tanabata{color:var(--site-text-muted,#375a3c);background:var(--site-surface-tint,#dce7c9)}.mini-graduation,.mini-coming-of-age{color:var(--site-text-muted,#5a416a);background:var(--site-surface-tint,#ebe0ef)}.shape-options{padding-top:11px}.full-field,.shape-options p{grid-column:1/-1}.settings-grid input[type=text]{border:1px solid var(--site-border,var(--line));background:var(--site-surface-muted,var(--panel));border-radius:9px;min-height:40px}.more-layouts{margin:6px 13px;font-size:.82rem}.detail{border-top:1px solid var(--site-border,var(--line))}summary{padding:13px 17px;font-size:.87rem;font-weight:650}.settings-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:0 15px 15px;display:grid}.settings-grid label,.photo-tool-group label{color:var(--site-text-muted,var(--quiet));gap:4px;min-width:0;font-size:.78rem;display:grid}.settings-grid :is(select,input){width:100%;font-size:.85rem}.save-button{width:calc(100% - 30px);margin:0 15px 15px}.save-progress{border:1px solid var(--site-border,var(--line));background:var(--site-surface-muted,var(--tile));border-radius:9px;gap:8px;margin:0 15px 15px;padding:10px 12px;font-size:.85rem;display:grid}.save-progress p{margin:0}.save-progress progress{width:100%;height:12px;accent-color:var(--accent)}.save-progress button{justify-self:start}.save-result{margin:0 15px 15px;font-size:.82rem}.export-message{color:var(--site-danger,var(--accent));padding:0 15px 10px;font-size:.8rem}.photos{gap:8px;padding:5px 17px 10px;display:flex;overflow:auto}.photos:empty{display:none}.photo-thumb{flex:0 0 78px;height:60px;padding:3px;position:relative}.photo-thumb img{-o-object-fit:cover;object-fit:cover;border-radius:5px;width:100%;height:100%;display:block}.photo-thumb span{color:#fff;background:#251e24de;border-radius:4px;padding:1px 5px;font-size:.7rem;position:absolute;bottom:6px;left:6px}.photo-tools{padding:3px 17px 11px}.photo-tool-group{flex-wrap:wrap;align-items:end;gap:8px;font-size:.8rem;display:flex}.photo-tool-group .range-field{flex:130px;max-width:220px}.crop-tools{margin-top:11px}.crop-tools summary{padding-left:0}.crop-tools p{padding:8px 0}.input-errors{color:var(--site-danger,var(--accent));overflow-wrap:anywhere;margin:0;padding:0 17px 12px 32px;font-size:.82rem}@media (width>=980px){.settings[data-pane=layout] #adjust-pane,.settings[data-pane=adjust] #layout-pane{display:none}#layout-pane{padding-bottom:13px}}@media (width>=980px) and (height>=680px){.workspace:has(.settings[data-pane=adjust]) .editor{z-index:1;grid-template-rows:max-content minmax(0,1fr);max-height:calc(100svh - 52px);position:sticky;top:12px}.workspace:has(.settings[data-pane=adjust]) .artwork{max-width:calc((100svh - 400px) * var(--art-ratio,1))}.workspace:has(.settings[data-pane=adjust]) #photo-panel{min-height:0;overflow-y:auto}}@media (width<980px){.workspace{flex-direction:column;gap:12px;width:calc(100% - 24px);margin:14px auto 24px;display:flex}.workspace .panel{width:100%}.editor,.sidebar{display:contents}.settings-views,.settings-title-wide,#adjust-layout-name{display:none}.settings-title-narrow{display:inline}}@media (760px<width<980px){#layouts{grid-template-columns:repeat(5,minmax(0,1fr))}}@media (width<=760px){.header-inner{width:calc(100% - 28px);min-height:62px}.save-options{grid-template-columns:repeat(3,minmax(0,1fr))}.save-panel .panel-title{min-height:42px}.stage{min-height:310px;margin-inline:8px;padding:15px 10px}.panel-title{min-height:48px;padding-inline:12px}.panel-foot{min-height:46px;padding-inline:12px}.photo-stack{width:234px;height:120px;margin-bottom:12px}.photo-stack img{width:122px;height:93px}.photo-stack img:nth-child(3){width:142px;height:103px;left:44px}}@media (pointer:coarse){button,select,summary{min-height:44px}}
