:root{--ink:#263e35;--muted:#73766f;--green:#294c41;--cream:#f7f5ef;--line:#dedfd6;--accent:#ce7955}*{box-sizing:border-box}body{margin:0;background:var(--cream);color:var(--ink);font-family:Arial,"Hiragino Kaku Gothic ProN","Noto Sans JP",Meiryo,sans-serif;font-size:14px;line-height:1.6}button,input,select,textarea{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #d8a068;outline-offset:3px}button:disabled{cursor:wait;opacity:.5}a{color:inherit;text-decoration:none}.topbar{max-width:1360px;margin:auto;padding:23px 42px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line)}.brand{font-family:Georgia,serif;font-size:28px;letter-spacing:-1px}.brand span{font-family:Arial,Meiryo,sans-serif;letter-spacing:.1em;font-size:11px;margin-left:23px;padding-left:22px;border-left:1px solid #c9cbbf}.sample-badge{font-size:10px;letter-spacing:.12em;color:var(--muted);display:flex;align-items:center;gap:12px}.sample-badge i{width:5px;height:5px;background:var(--accent);border-radius:50%}main{max-width:1280px;margin:auto;padding:0 35px}.intro{display:flex;justify-content:space-between;align-items:center;padding:38px 0 30px}.eyebrow{font-size:10px;letter-spacing:.2em;color:var(--accent);margin:0 0 10px;font-weight:700}h1{font-size:30px;letter-spacing:.06em;margin:0 0 10px;font-weight:600}.lead{color:var(--muted);font-size:13px;margin:0}.intro-mark{display:flex;align-items:center;gap:12px;margin-right:20px;transform:rotate(-6deg)}.intro-mark span{font-family:serif;writing-mode:vertical-rl;letter-spacing:.25em;font-size:13px}.tool-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:26px}.tab{display:flex;align-items:center;gap:17px;text-align:left;padding:18px 22px;background:transparent;border:1px solid #d5d7cc;border-radius:6px;color:var(--ink);transition:.15s}.tab:hover{background:#edece2}.tab.active{background:var(--green);color:white;border-color:var(--green);box-shadow:0 5px 14px #294c4118}.tab-icon{font-family:Georgia,serif;font-size:32px;line-height:1}.tab small{display:block;font-size:9px;letter-spacing:.13em;opacity:.65}.tab strong{display:block;font-weight:500;font-size:16px;margin-top:3px}.tab-arrow{margin-left:auto;font-size:20px;opacity:.55}.workspace{display:grid;grid-template-columns:320px minmax(0,1fr);align-items:start;gap:26px}.settings{background:#fffefb;border:1px solid var(--line);border-radius:7px;padding:24px}.panel-heading{display:flex;gap:12px;margin:0 0 23px}.step{font-size:11px;font-family:Georgia,serif;color:var(--accent);padding-top:3px}.panel-heading h2{font-size:16px;margin:0 0 5px;font-weight:600}.panel-heading p{font-size:11px;color:var(--muted);margin:0}.upload-box{display:flex;flex-direction:column;align-items:center;padding:21px 12px;background:#f4f5ef;border:1px dashed #a9b4a3;border-radius:5px;cursor:pointer;position:relative}.upload-box:hover{background:#e9eee5}.upload-symbol{font-size:25px;font-weight:400;margin-bottom:3px}.upload-box strong{font-size:13px}.upload-box>span:last-of-type{font-size:10px;color:var(--muted);margin-top:4px}.upload-box input{position:absolute;width:1px;height:1px;opacity:0}.upload-box:focus-within{outline:3px solid #d8a068;outline-offset:3px}.hint{font-size:10px;color:var(--muted);margin:9px 0 19px;overflow-wrap:anywhere}.field{margin-bottom:20px}.field>label{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:600;margin-bottom:8px}.field label small{font-size:9px;color:var(--muted);font-weight:400}.field label output{margin-left:auto;font-size:10px;font-weight:400;font-variant-numeric:tabular-nums;color:var(--muted)}input[type=text],input[type=number],select,textarea{width:100%;border:1px solid #d7dbd1;background:white;border-radius:4px;padding:9px 10px;font-size:12px;color:var(--ink)}textarea{resize:vertical;min-height:60px}input[type=range]{width:100%;accent-color:var(--green);height:16px;margin:5px 0}input[type=checkbox]{accent-color:var(--green)}.choice-row{display:flex;gap:5px}.choice{flex:1;white-space:nowrap;background:transparent;border:1px solid #d9ddd3;border-radius:4px;padding:9px 3px;color:var(--muted);font-size:11px}.choice.selected{background:#e8eee6;border-color:#6f8a76;color:var(--green)}.range-labels{display:flex;justify-content:space-between;font-size:9px;color:var(--muted)}.note{border-left:2px solid #d4a67c;padding:2px 0 2px 12px;color:var(--muted);font-size:10px;margin:21px 0}.note strong{font-size:11px;color:#66705f}.note p{margin:5px 0;line-height:1.9}.text-button{border:0;background:transparent;text-decoration:underline;text-underline-offset:4px;color:var(--muted);font-size:11px;padding:5px}.save-row{border-top:1px solid var(--line);padding-top:18px;display:flex;justify-content:space-between;gap:10px;margin-top:20px}.save-row>button:first-child{border:1px solid #b7c1b2;background:transparent;color:var(--green);font-size:11px;border-radius:4px;padding:8px 17px}.preview-panel{min-width:0}.preview-toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:37px;margin-bottom:16px}.preview-toolbar>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.preview-toolbar strong{font-size:12px;font-weight:500}.preview-toolbar #paper-dimensions{font-size:10px;color:var(--muted);margin-left:10px}.live-dot{width:5px;height:5px;border-radius:50%;background:#6c9675;display:inline-block}.small-button{font-size:10px;border:1px solid #cbd1c4;border-radius:4px;padding:6px 10px;background:#fffefb;color:var(--green);white-space:nowrap}.small-button[aria-pressed=true]{background:#dce8dc}.paper-stage{background:#e8e9e1;background-image:radial-gradient(#cdd0c4 .7px,transparent .7px);background-size:12px 12px;border:1px solid #dcdfd4;border-radius:6px;padding:24px 35px 32px;position:relative;min-height:300px}.paper-label{display:flex;justify-content:space-between;color:#8a9084;font-size:8px;letter-spacing:.15em;margin-bottom:16px}.sheet{width:100%;max-width:510px;margin:auto;background:white;box-shadow:0 6px 23px #223b3220;line-height:0}.sheet svg{width:100%;height:auto;display:block}.sheet.landscape{max-width:100%}.processing{position:absolute;inset:0;background:#f3f3eacc;align-items:center;justify-content:center;font-size:13px;color:var(--green)}.processing:not([hidden]){display:flex}.export-bar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:22px}.export-bar strong{font-size:12px;font-weight:500}.export-bar p{font-size:9px;color:var(--muted);margin:5px 0 0}.export-buttons{display:flex;gap:8px}.primary,.secondary{border-radius:4px;padding:12px 18px;font-size:11px;white-space:nowrap;display:flex;gap:20px;align-items:center}.primary{background:var(--green);border:1px solid var(--green);color:white}.primary:hover{background:#1a3b30}.secondary{background:transparent;border:1px solid #bbc5b5;color:var(--green)}.privacy{font-size:9px;text-align:right;color:#92958a;margin-top:16px}.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.swatches{display:flex;gap:10px}.swatch{border:3px solid white;width:27px;height:27px;border-radius:50%;box-shadow:0 0 0 1px #ddd}.swatch.selected{box-shadow:0 0 0 2px var(--green)}.check{display:flex;align-items:center;gap:6px;font-size:11px;color:var(--muted)}.column-control{background:#f6f6f0;padding:12px 10px 9px;border-radius:5px;margin-bottom:10px}.column-top{display:flex;align-items:center;gap:6px}.column-top input{min-width:0;font-size:11px;padding:7px}.delete-column{background:transparent;border:0;color:#a78a78;font-size:17px;line-height:1;padding:3px 5px}.column-sub{display:flex;align-items:center;gap:6px;margin-top:9px}.column-sub select{width:90px;font-size:10px;padding:4px}.column-sub output{font-size:9px;min-width:30px;text-align:right;color:var(--muted)}.column-sub input{min-width:0;flex:1}.add-button{width:100%;border:1px dashed #b9c2b0;color:#6c7a64;background:transparent;border-radius:4px;padding:7px;font-size:11px}.package-mock{position:relative;min-height:195px;margin-bottom:15px;background:#efeee6;border:1px solid #dfe1d4;border-radius:6px;padding:30px 10px 13px;text-align:center;overflow:hidden}.mock-caption{position:absolute;left:15px;top:10px;font-size:9px;letter-spacing:.1em;color:#8c9082}.mock-object{position:relative;margin:4px auto 18px;width:235px;height:90px;border-radius:5px;background:linear-gradient(110deg,#bc9168,#d3b18c 45%,#b88d62);box-shadow:2px 7px 8px #44382920;display:flex;justify-content:center;align-items:center;transform:rotate(-4deg)}#mock-label{width:205px;height:68px;overflow:hidden;box-shadow:2px 0 5px #564f3622}#mock-label svg{width:100%;height:100%;display:block}.mock-object.bottle{width:210px;height:94px;border-radius:25px;background:linear-gradient(0deg,#b8d3d055,#e0eeef 50%,#96b6b655);border:1px solid #b3c6bf;transform:rotate(-4deg)}.mock-object.bottle:after{content:"";position:absolute;right:-19px;top:31px;width:25px;height:30px;border-radius:0 4px 4px 0;background:#a6b7ac;border-right:5px solid #809b8e}.mock-object.topper{width:160px;height:105px;background:linear-gradient(120deg,#fff9,#e6dbc1aa);align-items:flex-start;border:1px solid #d0c9b4;border-radius:1px 1px 8px 8px;transform:rotate(4deg)}.mock-object.topper:after{content:"";position:absolute;bottom:14px;width:100px;height:35px;border-radius:30px;background:repeating-linear-gradient(90deg,#c29861 0 12px,#cfae76 12px 16px)}.mock-object.topper #mock-label{position:relative;width:162px;height:45px;z-index:1}.package-mock p{margin:0;font-size:10px;color:var(--muted)}footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);margin-top:44px;padding:25px 0 30px;color:#8d9386}footer>span{font-family:Georgia,serif;font-size:20px}footer small{font-family:Arial,Meiryo,sans-serif;font-size:9px;margin-left:12px}footer p{font-size:10px}#toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%) translateY(100px);opacity:0;transition:.25s;background:#294c41;color:white;border-radius:6px;padding:12px 22px;z-index:50;font-size:12px;max-width:90%;text-align:center;pointer-events:none}#toast.visible{transform:translateX(-50%);opacity:1}#print-area{display:none}[hidden]{display:none!important}
@media(min-width:1100px){.settings{position:sticky;top:20px}.sheet{max-width:480px}.paper-stage{padding-left:50px;padding-right:50px}}
@media(max-width:950px){main{padding:0 24px}.workspace{grid-template-columns:280px minmax(0,1fr);gap:18px}.settings{padding:19px}.tab{padding:15px;gap:12px}.tab strong{font-size:14px}.tab-icon{font-size:27px}.export-bar{align-items:flex-start;flex-direction:column}.export-buttons{width:100%}.export-buttons button{flex:1;justify-content:space-between}.paper-stage{padding:20px}.preview-toolbar #paper-dimensions{width:100%;margin-left:13px}.preview-toolbar{align-items:flex-start}}
@media(max-width:680px){.topbar{padding:17px 20px}.brand{font-size:25px}.brand span{font-size:9px;padding-left:12px;margin-left:12px}.sample-badge{font-size:8px;gap:6px}main{padding:0 16px}.intro{padding:27px 2px 24px}h1{font-size:22px;letter-spacing:.02em}.lead{font-size:11px;max-width:260px}.intro-mark{display:none}.eyebrow{font-size:8px}.tool-tabs{gap:6px;margin-bottom:18px}.tab{padding:12px 5px;gap:0;justify-content:center}.tab-icon,.tab-arrow{display:none}.tab small{font-size:7px;letter-spacing:.05em}.tab strong{font-size:11px;margin-top:5px}.workspace{grid-template-columns:1fr;gap:22px}.settings{padding:20px}.panel-heading{margin-bottom:18px}.upload-box{padding:16px 12px}.field{margin-bottom:17px}.preview-toolbar #paper-dimensions{width:auto;margin-left:6px;font-size:8px}.paper-stage{padding:20px 24px}.export-bar{flex-direction:row;flex-wrap:wrap}.export-buttons{width:100%}.export-buttons button{padding:12px 16px}.privacy{text-align:center;font-size:8px}footer{display:block;margin-top:30px;padding-bottom:24px}footer p{font-size:9px}.sheet{max-width:400px}.save-row{margin-top:15px}.note{margin:17px 0}.package-mock{min-height:180px}}
@media print{body{background:white}body>*{display:none!important}#print-area{display:block!important;width:100%;margin:0;padding:0;line-height:0}#print-area>svg{display:block;width:100%;height:auto;break-inside:avoid;-webkit-print-color-adjust:exact;print-color-adjust:exact}}
/* Paper studio, second prototype */
.tool-tabs{grid-template-columns:repeat(2,1fr)}.settings{position:static}.cell-editor{border:1px solid #d6decf;background:#f7f8f2;border-radius:6px;padding:15px 12px;margin:20px 0}.cell-editor .field:last-child{margin-bottom:0}.check-row{display:flex;flex-wrap:wrap;gap:7px 15px;margin:0 0 18px}.check-row .check{font-size:10px}.four-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:6px 0 16px}.four-fields label{font-size:10px;color:var(--muted)}.four-fields input{font-size:10px;padding:7px 5px}.mini-label{font-size:10px;color:var(--muted);margin:12px 0 6px}.weights-details{border:1px solid #dce1d4;border-radius:4px;padding:8px 11px;margin:0 0 18px}.weights-details summary{cursor:pointer;font-size:11px;color:var(--green)}.weight-row{display:flex;align-items:center;gap:8px;margin:8px 0;font-size:10px;color:var(--muted)}.weight-row span{white-space:nowrap}.weight-row input{margin:0}input[type=month],input[type=date]{width:100%;padding:9px 8px;border:1px solid #d7dbd1;background:white;border-radius:4px;color:var(--ink);font-size:12px;font-family:inherit;min-width:0}.sheet{position:relative}#sheet-art{width:100%;line-height:0}#sheet-art>svg{width:100%;height:auto;display:block}#cell-overlays{position:absolute;inset:0;pointer-events:none}.cell-overlay{position:absolute;pointer-events:auto;border:1px dashed #aebba366;transition:border-color .1s}.cell-overlay:hover{border-color:#6b9270}.cell-overlay.selected{border:1.5px dashed #658b66;background:#8fa27d07}.cell-hit{position:absolute;inset:0;border:0;background:transparent;padding:0;color:#638061;text-align:left;vertical-align:top}.cell-hit:hover{background:#9fb58b0a}.overlay-name{position:absolute;top:1px;left:2px;font-size:8px;line-height:1.4;padding:1px 4px;background:#f8fbf1d9;border-radius:2px;opacity:0}.cell-overlay:hover .overlay-name,.cell-overlay.selected .overlay-name{opacity:1}.draggable,.draggable .cell-hit{touch-action:none;cursor:move}.cell-resize{position:absolute;bottom:-5px;right:-5px;width:14px;height:14px;border:2px solid white;border-radius:50%;background:#527b56;cursor:nwse-resize;touch-action:none;box-shadow:0 1px 3px #0003}.export-bar{flex-wrap:wrap}.export-buttons{flex-wrap:wrap}.export-buttons button{gap:12px;padding:11px 13px}.privacy{line-height:1.7}
@media(min-width:951px){.workspace{grid-template-columns:340px minmax(0,1fr)}.preview-panel{position:sticky;top:20px}.settings{padding:22px}.sheet{max-width:450px}.paper-stage{padding:20px 35px 26px}}
@media(max-width:680px){.preview-panel{position:static}.cell-editor{padding:15px}.overlay-name{font-size:7px}.cell-resize{width:18px;height:18px;right:-7px;bottom:-7px}.tool-tabs .tab strong{font-size:13px}.export-buttons{gap:6px}.export-buttons button{font-size:10px;padding:11px 10px;gap:7px}.weights-details{margin-bottom:18px}}
/* Artwork is positioned inside the A4 page, outside normal document flow.
   The half-millimetre guard prevents an extra blank page from rounding. */
@media print{
 :root{--print-page-width:210mm;--print-page-height:297mm;--print-art-width:190mm;--print-art-height:277mm}
 html,body{margin:0!important;padding:0!important;width:var(--print-page-width)!important;height:calc(var(--print-page-height) - .5mm)!important;min-height:0!important;max-height:calc(var(--print-page-height) - .5mm)!important;overflow:hidden!important;background:white!important;line-height:0!important}
 body>*{display:none!important}
 #print-area{display:block!important;position:absolute!important;top:10mm!important;left:10mm!important;right:auto!important;bottom:auto!important;width:var(--print-art-width)!important;height:var(--print-art-height)!important;margin:0!important;padding:0!important;overflow:hidden!important;break-before:avoid!important;break-after:avoid!important;break-inside:avoid!important;page-break-after:avoid!important}
 #print-area>svg{display:block!important;width:var(--print-art-width)!important;height:var(--print-art-height)!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
}
.cell-overlay.selected{z-index:3}
#cell-overlays>.alignment-grid{position:absolute;inset:0;width:100%;height:100%;opacity:.42;pointer-events:none;z-index:0}.cell-overlay.swap-target{z-index:4;outline:2px solid #c28c37;outline-offset:-2px;background:#f1c97844}.cell-overlay.swap-target:after{content:'離すと交換';position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);padding:4px 8px;border-radius:4px;background:#886526;color:white;font-size:10px;line-height:1.5;white-space:nowrap;pointer-events:none}.layout-feedback{font-size:10px;color:#85612d;line-height:1.7;min-height:1.7em;margin:3px 0 12px}#free-settings>.two-fields{grid-template-columns:1fr}#free-settings .add-button{font-size:10px}#free-settings .check-row{margin-bottom:6px}

/* Embedded tool: independent styles, normal page flow. */
html,body{min-height:0}main{padding:0 20px 22px}.intro{padding-top:22px}h1{font-size:25px}.workspace{margin-bottom:8px}input:not([type]){width:100%;border:1px solid #d7dbd1;background:white;border-radius:4px;padding:9px 10px;font-size:12px;color:var(--ink)}@media(max-width:680px){main{padding:0 12px 18px}.intro{padding:18px 2px}h1{font-size:22px}}
