.stampmaker-online-stamp-editor * { box-sizing: border-box; }
.stampmaker-online-stamp-editor { margin: 0; font-family: Arial, sans-serif; background: #d7d7d7; color: #222; }
.stampmaker-online-stamp-editor label { display: flex; flex-direction: column; gap: 5px; font-size: 0.92rem; }
.stampmaker-online-stamp-editor input, .stampmaker-online-stamp-editor select, .stampmaker-online-stamp-editor textarea, .stampmaker-online-stamp-editor button { font: inherit; }
.stampmaker-online-stamp-editor input, .stampmaker-online-stamp-editor select, .stampmaker-online-stamp-editor textarea { padding: 6px 8px; border: 1px solid #c7c7c7; border-radius: 3px; background: #fff; }
.stampmaker-online-stamp-editor button { border: 1px solid #2b67d9; background: #2f6fe8; color: #fff; border-radius: 4px; padding: 8px 10px; cursor: pointer; }
.stampmaker-online-stamp-editor button:disabled { opacity: 0.5; cursor: not-allowed; }
.stampmaker-online-stamp-editor .hidden { display: none; }
.stampmaker-online-stamp-editor .app-shell { max-width: 1100px; margin: 0 auto; min-height: 100vh; background: #e6e6e6; border-left: 1px solid #c9c9c9; border-right: 1px solid #c9c9c9; }
.stampmaker-online-stamp-editor .user-strip { display: flex; justify-content: flex-end; align-items: center; padding: 8px 18px; background: #edf3ff; border-bottom: 1px solid #c9d6ef; }
.stampmaker-online-stamp-editor .current-user-label { font-size: 0.92rem; font-weight: 700; color: #1d4ed8; }
.stampmaker-online-stamp-editor .topbar { display: flex; align-items: center; justify-content: space-between; padding: 10px 18px; background: linear-gradient(90deg, #2a5fca, #3f7de8); color: #fff; }
.stampmaker-online-stamp-editor .brand { font-weight: 700; font-size: 1.9rem; }
.stampmaker-online-stamp-editor .toolbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: nowrap; min-width: 0; }
.stampmaker-online-stamp-editor .toolbar-actions > * { flex: 0 0 auto; }
.stampmaker-online-stamp-editor #template-owner-select,
.stampmaker-online-stamp-editor #editor-owner-select,
.stampmaker-online-stamp-editor #save-category-select { min-width: 150px; max-width: 190px; height: 34px; }
.stampmaker-online-stamp-editor #back-to-templates-btn,
.stampmaker-online-stamp-editor #save-template-btn,
.stampmaker-online-stamp-editor #new-template-btn { white-space: nowrap; }
.stampmaker-online-stamp-editor #editor-page .toolbar-actions { gap: 6px; }
.stampmaker-online-stamp-editor .toolbar { background: #4f83de; display: grid; grid-template-columns: 180px 1fr 180px; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid #c9c9c9; }
.stampmaker-online-stamp-editor .green-btn { background: #4fb64f; border-color: #3ca43c; color: #fff; font-weight: 700; border-radius: 9px; min-height: 38px; padding: 7px 16px; }
.stampmaker-online-stamp-editor .small { min-height: 34px; background: #f8f8f8; border-color: #d0d0d0; color: #1f2937; }
.stampmaker-online-stamp-editor .left-icons, .stampmaker-online-stamp-editor .center-icons, .stampmaker-online-stamp-editor .icon-actions { display: flex; align-items: center; gap: 8px; }
.stampmaker-online-stamp-editor .center-icons, .stampmaker-online-stamp-editor .icon-actions { justify-content: center; }
.stampmaker-online-stamp-editor .tool-icon { width: 44px; height: 44px; border-radius: 4px; border: 0; background: transparent; color: #fff; font-size: 2rem; padding: 0; }
.stampmaker-online-stamp-editor .tool-icon.active { background: rgba(255, 255, 255, 0.2); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.85); }
.stampmaker-online-stamp-editor .icon-actions button { width: 46px; height: 46px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.85); background: rgba(255, 255, 255, 0.14); color: #fff; font-size: 1.3rem; font-weight: 700; padding: 0; }
.stampmaker-online-stamp-editor .categories-row { display: grid; grid-template-columns: 34px 1fr 34px; align-items: center; gap: 4px; padding: 0 6px; background: #f6f6f6; border-bottom: 1px solid #cecece; }
.stampmaker-online-stamp-editor .category-tabs { display: flex; overflow-x: auto; }
.stampmaker-online-stamp-editor .category-tabs button { border: 0; background: transparent; color: #111; border-bottom: 3px solid transparent; border-radius: 0; padding: 12px 16px 11px; white-space: nowrap; }
.stampmaker-online-stamp-editor .category-tabs button.active { color: #2f6fe8; border-bottom-color: #2f6fe8; }
.stampmaker-online-stamp-editor .nav-arrow { border: 0; background: transparent; color: #6b7280; font-size: 1.2rem; }
.stampmaker-online-stamp-editor .templates-content { display: grid; grid-template-columns: 230px 1fr; gap: 8px; padding: 8px; min-height: 430px; }
.stampmaker-online-stamp-editor .left-category-list { border: 1px solid #cccccc; background: #efefef; overflow: auto; }
.stampmaker-online-stamp-editor .left-category-list ul { list-style: none; margin: 0; padding: 10px 0; }
.stampmaker-online-stamp-editor .left-category-list li { padding: 8px 16px; cursor: pointer; }
.stampmaker-online-stamp-editor .left-category-list li.active { color: #2f6fe8; }
.stampmaker-online-stamp-editor .templates-grid { border: 1px solid #cccccc; background: #dcdcdc; padding: 8px; display: grid; grid-template-columns: repeat(4, minmax(140px, 1fr)); gap: 8px; max-height: 430px; overflow: auto; }
.stampmaker-online-stamp-editor .templates-grid.tiles-view { grid-template-columns: 1fr; }
.stampmaker-online-stamp-editor .template-item { min-width: 0; border: 1px solid #d0d0d0; border-radius: 4px; padding: 6px; background: #f4f4f4; color: #111; text-align: left; }
.stampmaker-online-stamp-editor .templates-grid.tiles-view .template-item { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 8px; align-items: center; padding: 5px 6px; }
.stampmaker-online-stamp-editor .templates-grid.tiles-view .template-item .thumb { margin-bottom: 0; }
.stampmaker-online-stamp-editor .template-item.active { border-color: #2f6fe8; box-shadow: inset 0 -2px 0 #2f6fe8; }
.stampmaker-online-stamp-editor .template-item .thumb { border: 1px solid #d0d0d0; background: #fff; aspect-ratio: 1 / 1; display: grid; place-items: center; margin-bottom: 6px; }
.stampmaker-online-stamp-editor .template-item .thumb svg { width: 90%; height: 90%; }
.stampmaker-online-stamp-editor .template-meta { min-width: 0; display: grid; gap: 4px; }
.stampmaker-online-stamp-editor .template-title-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stampmaker-online-stamp-editor .template-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.stampmaker-online-stamp-editor .template-item small { color: #565656; line-height: 1.25; }
.stampmaker-online-stamp-editor .template-actions-row { margin-top: 6px; display: flex; gap: 6px; }
.stampmaker-online-stamp-editor .templates-grid.tiles-view .template-actions-row { margin-top: 0; flex-shrink: 0; }
.stampmaker-online-stamp-editor .templates-grid.tiles-view .template-item .thumb { width: 76px; height: 76px; }
.stampmaker-online-stamp-editor .templates-grid.tiles-view .template-item small { font-size: 0.76rem; }
.stampmaker-online-stamp-editor .template-edit-btn { background: #fff; color: #2f6fe8; border-color: #b8cdef; padding: 3px 7px; }
.stampmaker-online-stamp-editor .template-delete-btn { background: #fff; color: #d11a2a; border-color: #e0b4b8; padding: 3px 7px; }
.stampmaker-online-stamp-editor .template-bottom { border-top: 1px solid #cccccc; padding: 10px 16px 14px; background: #ececec; }
.stampmaker-online-stamp-editor .template-bottom label { max-width: 340px; color: #8a8a8a; }
.stampmaker-online-stamp-editor .category-manage { margin-top: 8px; display: flex; gap: 8px; align-items: flex-end; }
.stampmaker-online-stamp-editor .category-edit-list { margin-top: 8px; display: grid; gap: 6px; max-height: 120px; overflow: auto; }
.stampmaker-online-stamp-editor .category-section-title { font-size: 0.78rem; font-weight: 700; color: #1d4ed8; margin-top: 4px; }
.stampmaker-online-stamp-editor .category-edit-row { display: flex; align-items: center; justify-content: space-between; background: #f7f7f7; border: 1px solid #d5d5d5; padding: 5px 8px; border-radius: 4px; }
.stampmaker-online-stamp-editor .category-edit-row button { background: #fff; color: #2f6fe8; border-color: #d5d5d5; padding: 3px 7px; margin-left: 4px; }
.stampmaker-online-stamp-editor .editor-grid { display: grid; grid-template-columns: 350px minmax(0, 1fr) 350px; gap: 8px; padding: 8px; min-height: 530px; }
.stampmaker-online-stamp-editor .left-panel, .stampmaker-online-stamp-editor .center-panel, .stampmaker-online-stamp-editor .right-panel { background: #e8e8e8; border: 1px solid #cacaca; }
.stampmaker-online-stamp-editor .left-panel, .stampmaker-online-stamp-editor .right-panel { width: 350px; min-width: 350px; max-width: 350px; }
.stampmaker-online-stamp-editor .right-panel { display: grid; grid-template-rows: auto 1fr; }
.stampmaker-online-stamp-editor .setup-box { padding: 10px; border-bottom: 1px solid #cbcbcb; display: grid; gap: 8px; }
.stampmaker-online-stamp-editor .filter-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid #cbcbcb; }
.stampmaker-online-stamp-editor .filter-tabs button { border-radius: 0; background: #ececec; color: #222; border: 0; border-right: 1px solid #cbcbcb; }
.stampmaker-online-stamp-editor .filter-tabs button:last-child { border-right: 0; }
.stampmaker-online-stamp-editor .filter-tabs button.active { background: #fff; font-weight: 700; }
.stampmaker-online-stamp-editor .elements-list { list-style: none; padding: 0 0 8px; margin: 0; display: grid; gap: 0; max-height: 420px; overflow: auto; }
.stampmaker-online-stamp-editor .elements-list li { border-bottom: 1px solid #cecece; padding: 9px 8px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 8px; background: #f2f2f2; }
.stampmaker-online-stamp-editor .elements-list li.active { background: #dde9ff; }
.stampmaker-online-stamp-editor .elements-list button { background: #fff; border-color: #d5d5d5; color: #2f6fe8; padding: 4px 8px; font-size: 0.8rem; }
.stampmaker-online-stamp-editor .element-row-title { flex: 1; min-width: 0; }
.stampmaker-online-stamp-editor .element-row-actions { position: relative; }
.stampmaker-online-stamp-editor .element-row-actions summary { list-style: none; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #d5d5d5; border-radius: 6px; background: #fff; color: #2f6fe8; cursor: pointer; user-select: none; }
.stampmaker-online-stamp-editor .element-row-actions summary::-webkit-details-marker { display: none; }
.stampmaker-online-stamp-editor .element-row-menu { position: absolute; top: calc(100% + 4px); right: 0; display: grid; gap: 4px; min-width: 92px; padding: 6px; border: 1px solid #d5d5d5; border-radius: 8px; background: #fff; box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14); z-index: 3; }
.stampmaker-online-stamp-editor .element-row-actions:not([open]) .element-row-menu { display: none; }
.stampmaker-online-stamp-editor .element-row-menu button { width: 100%; text-align: left; }
.stampmaker-online-stamp-editor .center-panel { display: grid; align-content: start; gap: 8px; padding: 8px; position: sticky; top: 12px; align-self: start; }
.stampmaker-online-stamp-editor .controls { display: grid; grid-template-columns: 1fr; gap: 10px; align-content: start; padding: 10px; min-height: 520px; }
.stampmaker-online-stamp-editor .controls label { font-size: 0.85rem; }
.stampmaker-online-stamp-editor .slider-control { gap: 6px; }
.stampmaker-online-stamp-editor .slider-title { display: flex; justify-content: space-between; align-items: center; font-size: 0.84rem; }
.stampmaker-online-stamp-editor .slider-row { display: grid; grid-template-columns: 1fr 78px; gap: 8px; align-items: center; }
.stampmaker-online-stamp-editor .slider-control input[type="range"] { width: 100%; }
.stampmaker-online-stamp-editor .right-panel textarea { min-height: 76px; }
.stampmaker-online-stamp-editor .selected-title { border-bottom: 1px solid #c9c9c9; background: #f5f5f5; padding: 10px; font-weight: 700; min-height: 39px; }
.stampmaker-online-stamp-editor .preview-wrap { border: 1px solid #cbcbcb; min-height: 440px; display: flex; align-items: center; justify-content: center; background-color: #f4f4f4; background-image: linear-gradient(#d8d8d8 1px, transparent 1px), linear-gradient(90deg, #d8d8d8 1px, transparent 1px); background-size: 12px 12px; padding: 14px; }
.stampmaker-online-stamp-editor .lightburn-preview-wrap { min-height: 440px; background-color: #f7f7f7; }
.stampmaker-online-stamp-editor #lightburn-preview-svg { width: 92%; height: 92%; max-width: 420px; max-height: 420px; background: transparent; }
.stampmaker-online-stamp-editor .bottom-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px solid #c9c9c9; background: #efefef; }
.stampmaker-online-stamp-editor .plate-size { background: #f8f8f8; border: 1px solid #d2d2d2; border-radius: 8px; padding: 8px 12px; color: #2f6fe8; }
.stampmaker-online-stamp-editor .plate-size strong { color: #2f6fe8; }
.stampmaker-online-stamp-editor .download-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.stampmaker-online-stamp-editor .download-btn { min-width: 190px; font-size: 1.05rem; font-weight: 700; border-radius: 9px; }
.stampmaker-online-stamp-editor .text-style-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) 58px repeat(4, 30px) 38px; gap: 6px; align-items: center; margin-bottom: 6px; }
.text-style-toolbar select,
.stampmaker-online-stamp-editor .text-style-toolbar input[type="number"] { height: 28px; padding: 3px 5px; font-size: 0.78rem; }
.stampmaker-online-stamp-editor .text-style-toolbar button { min-height: 28px; padding: 0; font-weight: 700; font-size: 0.78rem; background: #f8f8f8; color: #1f2937; border-color: #d0d0d0; }
.stampmaker-online-stamp-editor .text-style-toolbar button.active { background: #2f6fe8; color: #fff; border-color: #2b67d9; }
.stampmaker-online-stamp-editor .text-style-toolbar input[type="color"] { width: 36px; height: 28px; padding: 0; border: 1px solid #c7c7c7; border-radius: 4px; }
.stampmaker-online-stamp-editor .quick-actions { display: grid; gap: 5px; margin-bottom: 8px; }
.stampmaker-online-stamp-editor .quick-actions-label { font-size: 0.72rem; font-weight: 700; color: #374151; }
.stampmaker-online-stamp-editor .quick-actions-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.stampmaker-online-stamp-editor .quick-actions-row button { min-height: 26px; padding: 2px 4px; font-size: 0.72rem; background: #f8f8f8; color: #1f2937; border-color: #d0d0d0; }
.stampmaker-online-stamp-editor .modal { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(15, 23, 42, 0.46); z-index: 30; }
.stampmaker-online-stamp-editor .modal.hidden { display: none; }
.stampmaker-online-stamp-editor .modal-card { width: min(420px, calc(100vw - 32px)); padding: 22px; border-radius: 18px; background: #f8fafc; box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28); display: grid; gap: 16px; }
.stampmaker-online-stamp-editor .modal-title { font-size: 1.2rem; font-weight: 700; color: #1f2937; }
.stampmaker-online-stamp-editor .shape-picker-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stampmaker-online-stamp-editor .shape-choice-btn { min-height: 72px; border-radius: 14px; font-weight: 700; }
.stampmaker-online-stamp-editor .modal-cancel-btn { justify-self: end; min-width: 96px; }
@media (max-width: 980px) {
.stampmaker-online-stamp-editor .toolbar, .stampmaker-online-stamp-editor .templates-content, .stampmaker-online-stamp-editor .editor-grid { grid-template-columns: 1fr; }
.stampmaker-online-stamp-editor .center-panel { position: static; top: auto; }
.stampmaker-online-stamp-editor .templates-grid { grid-template-columns: repeat(2, minmax(140px, 1fr)); }
.stampmaker-online-stamp-editor .shape-picker-grid { grid-template-columns: 1fr; }
.stampmaker-online-stamp-editor .topbar { flex-direction: column; align-items: stretch; gap: 10px; }
.stampmaker-online-stamp-editor .toolbar-actions { justify-content: stretch; flex-wrap: wrap; }
.stampmaker-online-stamp-editor #template-owner-select,
.stampmaker-online-stamp-editor #editor-owner-select,
.stampmaker-online-stamp-editor #save-category-select { min-width: 0; max-width: none; flex: 1 1 180px; }
}


