:root{color-scheme:light;--ink:#342b3d;--muted:#82788a;--line:#f0dce8;--pink:#e77da9;--pink-dark:#c44f83;--lav:#eee9ff;--soft:#fff6fa;--mint:#e9f8f2;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans JP",sans-serif;color:var(--ink);background:#fff7fb}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 8% 10%,#fbe5f0 0,transparent 30rem),radial-gradient(ellipse at 96% 30%,#eae7ff 0,transparent 34rem),#fff9fc}button,input,select{font:inherit}button{cursor:pointer;min-height:46px;border:1px solid var(--line);border-radius:14px;background:#fff;color:var(--ink);padding:10px 16px;font-weight:700;box-shadow:0 3px 10px #74506b0a}button:hover{background:#fff3f8;border-color:#e8bfd2}button:disabled{opacity:.5;cursor:wait}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #e9a9c7;outline-offset:3px}input,select{width:100%;min-width:0;min-height:46px;border:1px solid var(--line);border-radius:12px;padding:10px 12px;background:#fff;color:var(--ink);font-size:16px}input::placeholder{color:#b1a7b5}
.shell{max-width:1120px;padding:28px 24px 18px;margin:auto}.header{display:flex;align-items:center;gap:15px;margin:0 auto 20px;padding:15px 20px;border:1px solid #f5d9e7;border-radius:24px;background:#ffffffc9;box-shadow:0 8px 28px #94516d0b}.brand-mark{display:grid;place-items:center;width:54px;height:54px;flex-shrink:0;border-radius:19px;background:linear-gradient(145deg,#f7a8c8,#c7b6ff);color:white;font-size:30px;font-weight:900;box-shadow:0 5px 12px #c46e9c35}h1{font-size:27px;margin:0 0 4px;letter-spacing:-.04em}.header p{font-size:15px;margin:0;color:var(--muted);line-height:1.55}.setup{padding:20px;border:1px solid #f1dbe7;border-radius:23px;background:#fffafc;box-shadow:0 8px 26px #9652740b}.mode-switch{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:6px;margin-bottom:16px;border-radius:17px;background:#f8edf4}.mode-switch button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;border-color:transparent;background:transparent;box-shadow:none;color:#74677a}.mode-switch button small{font-size:12px;font-weight:600;color:#a297a7}.mode-switch button[aria-pressed="true"]{background:white;border-color:#f1dce7;color:var(--pink-dark);box-shadow:0 3px 10px #a05a7813}.mode-switch button[aria-pressed="true"] small{color:#ad7b94}.templates{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}.templates button{font-size:13px;min-height:38px;padding:7px 12px;border-radius:999px;background:#fff}.templates button[aria-pressed="true"]{background:#fff0f6;border-color:#e5afc8;color:#b94e7c}.title-label{display:block;font-size:13px;font-weight:750;margin:0 0 7px;color:#74677a}.title-input{font-size:19px;font-weight:750;padding:13px}.shared-profile{margin-top:14px;padding:14px 16px;border:1px solid #eadfff;border-radius:17px;background:linear-gradient(120deg,#fbf8ff,#fff6fa)}.shared-profile>p{margin:0 0 10px;color:#77688b;font-weight:750;font-size:14px}.shared-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.field-label{display:block;font-size:13px;font-weight:700;color:#74677a}.field-label input{margin-top:5px}
.section-heading{display:flex;justify-content:space-between;align-items:center;margin:22px 2px 4px}.section-heading h2{font-size:19px;margin:0}.section-heading p{font-size:13px;font-weight:750;margin:0;color:var(--pink-dark);background:#fff0f6;padding:6px 10px;border-radius:999px}.hint{font-size:13px;color:var(--muted);line-height:1.65;margin:6px 2px 12px}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.card{border:1px solid #f0dce8;border-radius:20px;padding:12px;min-width:0;background:#fff;box-shadow:0 6px 20px #81516c0d}.card-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px;gap:8px}.number{font-weight:850;font-size:13px;color:#c16e94;background:#fff0f6;border-radius:999px;padding:5px 9px}.order-label{display:flex;gap:7px;align-items:center;font-size:12px;color:var(--muted)}.order-label select{width:58px;min-height:34px;padding:4px 7px;font-size:13px}.photo-button{display:block;width:100%;aspect-ratio:1;padding:0;overflow:hidden;border:1px dashed #e7bad0;border-radius:15px;background:linear-gradient(145deg,#fff3f8,#f2efff);position:relative}.photo-button canvas{display:block;width:100%;height:100%;object-fit:cover}.empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;height:100%;font-size:13px;color:#8e7890}.empty span{font-size:32px;line-height:1;color:#d789ad}.crop-button{width:100%;margin:8px 0 11px;min-height:38px;font-size:13px;border-radius:12px;background:#fffbfd}.field-label+.field-label{margin-top:10px}.field-label input{font-weight:500}.primary{background:linear-gradient(120deg,#ec8ab3,#ba9ae9);color:#fff;border:0;min-height:50px;box-shadow:0 6px 15px #bd83b238}.primary:hover{background:linear-gradient(120deg,#e479a7,#aa89df)}.actions{display:flex;flex-direction:column;align-items:center;gap:8px;margin-top:14px}.actions .primary{width:min(100%,480px)}.text-button{border:0;background:transparent;box-shadow:none;font-size:13px;color:var(--muted)}.status{color:#a52a55;font-size:14px;line-height:1.7;min-height:22px;margin:12px 2px}footer{text-align:center;color:var(--muted);font-size:12px;line-height:1.75;margin-top:24px;border-top:1px solid #f1dce7;padding:16px 0}footer p{margin:0 0 8px}
dialog{border:1px solid #eed8e5;border-radius:23px;padding:20px;width:calc(100% - 24px);max-width:500px;max-height:90dvh;overflow:auto;color:var(--ink);box-shadow:0 18px 60px #5b36552b}dialog::backdrop{background:rgb(51 38 57 / .48);backdrop-filter:blur(3px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.dialog-head h2{font-size:19px;margin:0}.close-button{font-size:25px;min-width:44px;padding:2px 11px}.crop-stage{max-width:340px;margin:auto;aspect-ratio:1;overflow:hidden;border-radius:15px;background:#f8eef4}#crop-canvas{width:100%;height:100%;display:block;touch-action:none;cursor:grab}.range-label{display:block;font-size:13px;font-weight:700;margin:12px 0}.range-label input{display:block;padding:0;border:0;accent-color:var(--pink-dark);min-height:38px}.crop-actions{display:flex;gap:9px}.crop-actions button{flex:1}#result-dialog{max-width:720px}#result-image{display:block;width:100%;height:auto;border:1px solid #efdeea;border-radius:13px;margin-bottom:14px;background:#fff8fb}#save,#share{width:100%;margin-bottom:9px}[hidden]{display:none!important}
@media(max-width:800px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.shell{padding:15px 12px 14px}.header{gap:11px;margin-bottom:14px;padding:12px;border-radius:19px}.brand-mark{width:45px;height:45px;border-radius:16px;font-size:25px}h1{font-size:23px}.header p{font-size:13px}.setup{padding:13px;border-radius:19px}.mode-switch{gap:5px;padding:4px}.mode-switch button{flex-direction:column;gap:1px;font-size:14px;line-height:1.2}.mode-switch button small{font-size:11px}.templates{gap:6px;margin-bottom:13px}.templates button{font-size:12px;min-height:35px;padding:6px 10px}.title-input{font-size:17px}.shared-profile{padding:12px}.shared-fields{grid-template-columns:1fr;gap:8px}.section-heading{margin-top:17px}.section-heading h2{font-size:17px}.cards{grid-template-columns:1fr;gap:11px}.card{padding:11px;border-radius:17px}.photo-button{max-width:100%;margin:auto}.crop-button{display:block;margin:8px auto 10px}.field-label+.field-label{margin-top:8px}.field-label input{margin-top:4px}.status{margin:8px 2px}dialog{padding:15px;border-radius:19px}.section-heading p{font-size:12px}}
@media(prefers-reduced-motion:no-preference){button{transition:background .16s,border-color .16s,transform .16s}button:active{transform:scale(.99)}}
