*{box-sizing:border-box}body{margin:0;background:#fff;color:#222;font:17px/1.6 Arial,"Noto Sans TC","Microsoft JhengHei",sans-serif}button,input,select,textarea{font:inherit;color:inherit}button,a{touch-action:manipulation}button{cursor:pointer;background:#fff;border:1px solid #ccc;padding:9px 13px;border-radius:4px;min-height:44px}button:hover{background:#f4f4f4}button:disabled{opacity:.45;cursor:wait}.primary{color:#fff;background:#222}.primary:hover{background:#444}a{color:inherit;text-underline-offset:4px}input,select,textarea{width:100%;padding:9px;border:1px solid #ccc;border-radius:4px;min-width:0}input[type=checkbox]{width:20px;height:20px}.topbar{padding:24px 4vw;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #ddd;gap:20px}.eyebrow{font-size:11px;letter-spacing:.18em;margin:0;color:#777}h1{font-size:27px;font-weight:500;margin:4px 0}h2{font-size:19px;font-weight:500;margin:0}.toolbar{padding:16px 4vw;border-bottom:1px solid #ddd;display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}.toolbar p{margin:0;max-width:540px}.actions{display:flex;gap:8px;flex-wrap:wrap}.workspace{display:grid;grid-template-columns:minmax(310px,430px) minmax(0,1fr);align-items:start}.controls{padding:24px;min-width:0;border-right:1px solid #ddd}.hint{font-size:14px;color:#666;margin-top:0}.block{border:1px solid #ddd;margin-bottom:16px;border-radius:4px;overflow:hidden}.block summary{cursor:pointer;padding:16px;list-style:none;display:flex;gap:8px;align-items:center}.block summary::before{content:'＋';color:#888}.block[open] summary::before{content:'−'}.block summary span{margin-left:auto;font-size:13px;color:#777}.block-body{padding:0 16px 16px;display:grid;gap:12px}.block-body label{display:grid;gap:5px;font-size:15px}.block-body label.check{display:flex;align-items:center}.block-actions{display:flex;gap:6px;flex-wrap:wrap}.photo-preview{width:100%;max-height:180px;object-fit:contain;background:#fafafa}.preview-panel{position:sticky;top:0;min-width:0;padding:20px}.preview-toolbar{display:flex;align-items:center;gap:8px;margin-bottom:14px}.preview-toolbar h2{margin-right:auto}.preview-toolbar button[aria-pressed=true]{background:#eee}.preview-scroll{overflow:auto;background:#f5f5f5;border:1px solid #ddd;padding:8px}iframe{display:block;width:100%;height:calc(100vh - 240px);min-height:480px;background:white;border:0;margin:auto}iframe.mobile{width:390px;max-width:none}.login{padding:60px 20px}.login form{max-width:400px;margin:auto;display:grid;gap:18px}.login label{display:grid;gap:6px}[hidden]{display:none!important}.error{color:#a32828}:focus-visible{outline:2px solid #777;outline-offset:3px}@media(max-width:1000px){.workspace{grid-template-columns:1fr}.controls{border-right:0}.preview-panel{position:static}iframe{height:650px}.topbar{align-items:flex-start}.toolbar{padding:16px}.controls,.preview-panel{padding:16px}}

.page-picker{padding:18px 4vw;border-bottom:1px solid #ddd;display:flex;align-items:center;gap:18px}.page-picker select{max-width:480px}.photo-fields{display:grid;gap:12px;padding:10px 0}.existing-photo{border-top:1px solid #ddd;padding-top:8px}.existing-photo summary{padding:6px 0!important;font-size:15px}@media(max-width:600px){.page-picker{display:grid;gap:8px;padding:16px}}

.copy-editor{border:1px solid #ddd;border-radius:4px;padding:12px}.copy-editor>summary{padding:0 0 10px!important;font-size:16px}.copy-list{display:grid;gap:16px;margin-top:12px}.copy-field{border-top:1px solid #eee;padding-top:12px}.copy-field>label{overflow-wrap:anywhere}.copy-field textarea{resize:vertical;line-height:1.7}.copy-field>button{font-size:13px;min-height:32px;margin-top:6px;color:#666;border-color:#ddd}

.photo-editor{width:min(680px,calc(100vw - 24px));max-height:92vh;border:1px solid #ccc;border-radius:8px;padding:0;color:#222;background:#fff;overflow:auto}.photo-editor::backdrop{background:rgba(0,0,0,.45)}.photo-editor>header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid #ddd}.photo-editor-body{padding:20px;display:grid;gap:14px}.photo-mode{display:flex;gap:8px}.photo-mode button[aria-pressed=true]{background:#222;color:#fff}.photo-editor label{display:grid;gap:6px}.photo-editor output{font-size:14px;color:#666}.photo-editor input[type=range]{padding:0;min-height:32px}.photo-crop-surface,.photo-placement-clip{position:relative;overflow:hidden;background:#eee;width:100%;min-width:0}.photo-crop-surface{touch-action:none;cursor:grab;max-height:55vh}.photo-crop-surface img,.photo-placement-clip img{position:absolute;width:100%;height:100%;inset:0;pointer-events:none;user-select:none}.photo-placement-surface{width:100%;position:relative;overflow:hidden;min-height:180px;background:linear-gradient(90deg,#f0f0f0 1px,transparent 1px),linear-gradient(#f0f0f0 1px,transparent 1px);background-size:20px 20px;border:1px solid #ddd}.photo-placement-item{position:absolute;touch-action:none;cursor:grab;max-width:100%;outline:1px solid #aaa;user-select:none}.photo-resize-handle{position:absolute;right:0;bottom:0;min-height:28px;min-width:28px;width:28px;height:28px;padding:0;background:#fff;border:1px solid #555;cursor:nwse-resize;touch-action:none}.photo-resize-handle:after{content:'↘';font-size:20px}.photo-crop-surface.is-dragging,.photo-placement-item.is-dragging{cursor:grabbing}.photo-editor .hint{margin:0}.photo-editor .actions{justify-content:flex-end}.photo-editor img{max-width:none}@media(max-width:600px){.photo-editor-body{padding:14px}.photo-editor>header{padding:14px}.photo-mode button{flex:1}}
