.ghep-anh-tool{display:flex;flex-direction:column;gap:1.25rem;width:100%;max-width:960px;margin:0 auto;box-sizing:border-box}.ghep-anh-tool *{box-sizing:border-box}.layout-tabs{display:flex;gap:.5rem;overflow-x:auto;padding-bottom:.25rem;-webkit-overflow-scrolling:touch}.ghep-anh-tool .layout-tabs button{white-space:nowrap;padding:.5rem .85rem;border-radius:9999px;font-size:.875rem;cursor:pointer;border:1px solid var(--tool-border, #e5e7eb);background:var(--tool-card-bg, #ffffff);color:var(--tool-text, #374151);min-height:44px}.ghep-anh-tool .layout-tabs button[aria-selected=true]{background:var(--tool-primary, #2563eb);color:#fff;border-color:var(--tool-primary, #2563eb);font-weight:600}.layout-selector{display:grid;grid-template-columns:repeat(auto-fill,minmax(78px,1fr));gap:.5rem;max-height:220px;overflow-y:auto;padding:.5rem;border:1px solid var(--tool-border, #e5e7eb);border-radius:.5rem;background:var(--tool-card-bg, #f9fafb)}.ghep-anh-tool button.layout-card{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:.4rem;border:1.5px solid var(--tool-border, #e5e7eb);border-radius:.375rem;background:#fff;color:#374151;cursor:pointer;min-height:64px;transition:all .15s ease}.ghep-anh-tool button.layout-card:hover{border-color:var(--tool-primary, #2563eb)}.ghep-anh-tool button.layout-card[aria-pressed=true]{border-color:var(--tool-primary, #2563eb);background:#eff6ff;color:#1d4ed8;font-weight:600}.layout-icon{width:36px;height:36px;position:relative;background:#f3f4f6;border-radius:2px;margin-bottom:.25rem;overflow:hidden}.layout-icon-cell{position:absolute;background:#9ca3af;border:.5px solid #ffffff}.ghep-anh-tool button.layout-card[aria-pressed=true] .layout-icon-cell{background:var(--tool-primary, #2563eb)}.ghep-anh-tool button.layout-card span{font-size:.75rem;text-align:center;line-height:1.1;word-break:break-word}.custom-letter-row{display:flex;align-items:center;gap:.75rem;padding:.5rem;background:#fff;border:1px solid #e5e7eb;border-radius:.375rem}.custom-letter-row input[type=text]{width:140px;font-size:1.15rem;font-weight:700;text-align:center;text-transform:uppercase;letter-spacing:2px;padding:.35rem;border:1.5px solid #d1d5db;border-radius:.25rem}.stage-container{display:flex;flex-direction:column;align-items:center;width:100%}.stage-wrapper{position:relative;width:100%;max-width:600px;margin:0 auto;box-shadow:0 4px 12px #00000014;border-radius:.5rem;overflow:hidden;-webkit-user-select:none;user-select:none;touch-action:none}.collage-canvas{display:block;width:100%;height:auto}.stage-interactive-overlay{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.cell-interactive-item{position:absolute;pointer-events:auto;cursor:pointer;touch-action:none;border:2px solid transparent;transition:border-color .15s}.cell-interactive-item:hover{border-color:#2563eb66}.cell-interactive-item.selected{border-color:#2563eb;box-shadow:0 0 0 1px #fff,0 0 8px #2563eb80;z-index:10}.cell-interactive-item.dragging{opacity:.5;border-color:#f59e0b}.cell-interactive-item.drop-target{border-color:#10b981;background:#10b98126}.ghep-anh-tool button.cell-add-btn{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;background:transparent;border:none;font-size:2rem;color:#6b7280;cursor:pointer;min-height:44px}.ghep-anh-tool button.cell-add-btn:hover{color:#2563eb;background:#2563eb0d}.cell-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;padding:.5rem .75rem;background:#f3f4f6;border-radius:.5rem;margin-top:.5rem;width:100%;max-width:600px}.cell-toolbar button{padding:.4rem .65rem;font-size:.8rem;min-height:38px;cursor:pointer}.cell-toolbar label{display:flex;align-items:center;gap:.35rem;font-size:.8rem}.controls-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1rem;background:#fff;padding:1rem;border:1px solid #e5e7eb;border-radius:.5rem}.control-field{display:flex;flex-direction:column;gap:.35rem}.control-field label{font-weight:500;font-size:.875rem;color:#374151}.control-field input[type=range]{width:100%;min-height:24px}.control-field select,.control-field input[type=color]{min-height:44px;padding:.4rem;border:1px solid #d1d5db;border-radius:.375rem;background:#fff}.color-presets{display:flex;gap:.35rem;margin-top:.25rem}.ghep-anh-tool button.color-dot{width:28px;height:28px;min-height:28px;padding:0;border-radius:50%;border:1px solid #d1d5db;cursor:pointer;display:inline-block;flex-shrink:0}.ghep-anh-tool button.color-dot[aria-pressed=true]{box-shadow:0 0 0 2px #2563eb}.frame-ratio-group{display:flex;flex-wrap:wrap;gap:.4rem}.ghep-anh-tool .frame-ratio-group button{padding:.4rem .75rem;border-radius:.25rem;border:1px solid #d1d5db;background:#fff;color:#374151;font-size:.85rem;min-height:44px;cursor:pointer}.ghep-anh-tool .frame-ratio-group button[aria-pressed=true]{background:#2563eb;color:#fff;border-color:#2563eb}.output-section{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1rem;padding:1rem;background:#f9fafb;border:1px solid #e5e7eb;border-radius:.5rem}.output-options{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center}.export-actions{display:flex;gap:.5rem;flex-wrap:wrap}.export-actions button{min-height:44px;padding:.6rem 1.25rem;font-weight:600;cursor:pointer}.status-msg{padding:.5rem .75rem;border-radius:.375rem;background:#e0f2fe;color:#0369a1;font-size:.875rem}@media(max-width:600px){.controls-grid{grid-template-columns:1fr}.stage-wrapper{max-width:100%}}
