body.ecom-canvas-page {
    margin: 0;
    overflow: hidden;
    background: #edf1f5;
    color: #172033;
}

.ecom-shell {
    display: flex;
    flex-direction: column;
    height: 100vh;
    min-height: 640px;
    background: #edf1f5;
}

.ecom-toolbar {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) auto minmax(320px, 1fr);
    align-items: center;
    gap: 16px;
    height: 60px;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #dbe4ee;
    flex-shrink: 0;
}

.ecom-toolbar-left,
.ecom-toolbar-center,
.ecom-toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.ecom-toolbar-center {
    justify-content: center;
    padding: 4px;
    border: 1px solid #dbe4ee;
    border-radius: 10px;
    background: #f8fafc;
    flex-wrap: wrap;
    max-width: 700px;
}

.ecom-toolbar-right {
    justify-content: flex-end;
}

.ecom-back,
.ecom-icon-btn,
.ecom-rail-btn {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #475569;
    background: transparent;
    cursor: pointer;
    text-decoration: none;
}

.ecom-icon-btn input,
.ecom-rail-btn input {
    display: none;
}

.ecom-icon-btn svg,
.ecom-rail-btn svg,
.ecom-back svg,
.ecom-btn svg,
.ecom-upload-label svg {
    width: 17px;
    height: 17px;
    stroke-width: 2;
}

.ecom-icon-btn:hover,
.ecom-rail-btn:hover,
.ecom-back:hover,
.ecom-icon-btn.is-active,
.ecom-rail-btn.is-active {
    border-color: #cbd5e1;
    background: #ffffff;
    color: #0f766e;
}

.ecom-icon-btn:disabled {
    opacity: 0.38;
    cursor: not-allowed;
}

.ecom-icon-btn:disabled:hover {
    border-color: transparent;
    background: transparent;
    color: #475569;
}

.ecom-danger-icon:hover {
    color: #dc2626;
}

.ecom-toolbar-divider {
    width: 1px;
    height: 22px;
    background: #dbe4ee;
}

.ecom-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 104px;
}

.ecom-brand-mark {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: #0f766e;
    box-shadow: 10px 0 0 #172033;
}

.ecom-brand strong {
    font-size: 14px;
    white-space: nowrap;
}

.ecom-title-input {
    width: min(320px, 40vw);
    height: 36px;
    padding: 0 12px;
    border: 1px solid #dbe4ee;
    border-radius: 8px;
    background: #ffffff;
    color: #172033;
    font-size: 14px;
    outline: none;
}

.ecom-title-input:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.ecom-status {
    min-width: 86px;
    color: #64748b;
    font-size: 12px;
    text-align: right;
    white-space: nowrap;
}

.ecom-hover-tooltip {
    position: fixed;
    z-index: 9999;
    max-width: min(280px, calc(100vw - 24px));
    padding: 7px 9px;
    border: 1px solid rgba(15, 23, 42, 0.18);
    border-radius: 7px;
    background: rgba(15, 23, 42, 0.94);
    color: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.22);
    font-size: 12px;
    line-height: 1.35;
    opacity: 0;
    pointer-events: none;
    transform: translateY(2px);
    transition: opacity 0.12s ease, transform 0.12s ease;
    white-space: normal;
}

.ecom-hover-tooltip.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.ecom-btn {
    height: 36px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 13px;
    border: 1px solid #0f766e;
    border-radius: 8px;
    background: #0f766e;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.ecom-btn-secondary {
    border-color: #dbe4ee;
    background: #ffffff;
    color: #334155;
}

.ecom-body {
    display: grid;
    grid-template-columns: 56px 286px minmax(0, 1fr) 296px;
    flex: 1;
    min-height: 0;
}

.ecom-toolrail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 8px;
    background: #f8fafc;
    border-right: 1px solid #dbe4ee;
}

.ecom-sidebar {
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-right: 1px solid #dbe4ee;
}

.ecom-sidebar-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 10px 10px 8px;
    border-bottom: 1px solid #edf2f7;
    background: #ffffff;
    flex-shrink: 0;
}

.ecom-sidebar-tabs button {
    min-height: 32px;
    border: 1px solid #dbe4ee;
    border-radius: 8px;
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.ecom-sidebar-tabs button:hover,
.ecom-sidebar-tabs button.is-active {
    border-color: #0f766e;
    background: #ecfdf9;
    color: #0f766e;
}

.ecom-sidebar-page {
    display: none;
    min-height: 0;
    flex: 1;
    overflow: auto;
}

.ecom-sidebar-page.is-active {
    display: flex;
    flex-direction: column;
}

.ecom-sidebar-right {
    border-right: 0;
    border-left: 1px solid #dbe4ee;
}

.ecom-panel {
    border-bottom: 1px solid #edf2f7;
    padding-bottom: 12px;
}

.ecom-panel-fill {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.ecom-panel-title {
    display: flex;
    align-items: center;
    min-height: 38px;
    padding: 0 16px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
}

.ecom-panel-title-row {
    justify-content: space-between;
    gap: 10px;
}

.ecom-panel-title-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ecom-panel-title-btn {
    height: 24px;
    padding: 0 8px;
    border: 1px solid #dbe4ee;
    border-radius: 7px;
    background: #f8fafc;
    color: #334155;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.ecom-panel-title-btn:hover {
    border-color: #9bd4ce;
    color: #0f766e;
}

.ecom-asset-actions {
    display: grid;
    gap: 8px;
    padding: 0 14px;
}

.ecom-detail-kit {
    display: grid;
    gap: 9px;
    padding: 0 14px;
}

.ecom-kit-buttons,
.ecom-style-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}

.ecom-style-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ecom-kit-buttons button {
    min-height: 34px;
    border: 1px solid #dbe4ee;
    border-radius: 8px;
    background: #f8fafc;
    color: #334155;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.ecom-kit-buttons button:hover {
    border-color: #9bd4ce;
    background: #ecfdf9;
    color: #0f766e;
}

.ecom-kit-import {
    min-height: 34px;
    border: 1px solid #0f766e;
    border-radius: 8px;
    background: #0f766e;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.ecom-kit-import:hover {
    background: #0b5f59;
}

.ecom-kit-secondary {
    min-height: 34px;
    border: 1px solid #dbe4ee;
    border-radius: 8px;
    background: #ffffff;
    color: #334155;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.ecom-kit-secondary:hover {
    border-color: #9bd4ce;
    color: #0f766e;
}

.ecom-kit-toggle {
    min-height: 30px;
    display: flex;
    align-items: center;
    gap: 7px;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
}

.ecom-kit-toggle input {
    width: 15px;
    height: 15px;
    accent-color: #0f766e;
}

.ecom-analysis-history {
    display: grid;
    gap: 7px;
    padding: 9px;
    border: 1px solid #dbe4ee;
    border-radius: 8px;
    background: #f8fafc;
}

.ecom-analysis-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #334155;
    font-size: 12px;
    font-weight: 800;
}

.ecom-analysis-head button {
    height: 24px;
    padding: 0 8px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #ffffff;
    color: #475569;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.ecom-analysis-head button:hover {
    border-color: #9bd4ce;
    color: #0f766e;
}

.ecom-analysis-list {
    display: grid;
    gap: 6px;
    max-height: 210px;
    overflow: auto;
    padding-right: 2px;
}

.ecom-analysis-history-large {
    margin: 0 14px 14px;
    flex: 1;
    min-height: 0;
}

.ecom-analysis-history-large .ecom-analysis-list {
    max-height: none;
    min-height: 0;
}

.ecom-analysis-empty {
    padding: 8px 4px;
    color: #94a3b8;
    font-size: 12px;
    text-align: center;
}

.ecom-analysis-item {
    width: 100%;
    display: grid;
    gap: 5px;
    border: 1px solid #dbe4ee;
    border-radius: 8px;
    background: #ffffff;
    color: #334155;
    text-align: left;
    overflow: hidden;
}

.ecom-analysis-item:hover,
.ecom-analysis-item.is-active {
    border-color: #0f766e;
    box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.1);
}

.ecom-analysis-main {
    width: 100%;
    display: grid;
    gap: 5px;
    padding: 9px;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.ecom-analysis-item strong {
    overflow: hidden;
    color: #172033;
    font-size: 12px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ecom-analysis-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    color: #64748b;
    font-size: 11px;
    line-height: 1.35;
}

.ecom-analysis-chip {
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #ecfdf9;
    color: #0f766e;
    font-weight: 800;
}

.ecom-analysis-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 0 9px 9px;
}

.ecom-analysis-actions button {
    min-height: 28px;
    border: 1px solid #dbe4ee;
    border-radius: 7px;
    background: #f8fafc;
    color: #334155;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.ecom-analysis-actions button:hover {
    border-color: #0f766e;
    color: #0f766e;
}

.ecom-analysis-actions button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.ecom-analysis-actions button:disabled:hover {
    border-color: #dbe4ee;
    color: #334155;
}

.ecom-analysis-thumbs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    padding: 0 9px 9px;
}

.ecom-analysis-thumb {
    position: relative;
    aspect-ratio: 1;
    padding: 0;
    border: 1px solid #dbe4ee;
    border-radius: 7px;
    background: #f8fafc;
    overflow: hidden;
    cursor: pointer;
}

.ecom-analysis-thumb:hover {
    border-color: #0f766e;
}

.ecom-analysis-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.ecom-analysis-thumb span {
    position: absolute;
    right: 4px;
    bottom: 4px;
    min-width: 16px;
    height: 16px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
}

.ecom-style-grid label {
    display: grid;
    gap: 5px;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
}

.ecom-style-grid input {
    width: 100%;
    min-height: 32px;
    box-sizing: border-box;
    border: 1px solid #dbe4ee;
    border-radius: 8px;
    background: #ffffff;
    color: #172033;
    padding: 4px 7px;
    font: inherit;
}

.ecom-ai-actions {
    display: grid;
    gap: 8px;
    padding: 0 14px;
}

.ecom-ai-card {
    width: 100%;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    min-height: 58px;
    padding: 9px 10px;
    border: 1px solid #dbe4ee;
    border-radius: 8px;
    background: #f8fafc;
    color: #334155;
    text-align: left;
    cursor: pointer;
}

.ecom-ai-card:hover {
    border-color: #9bd4ce;
    background: #ecfdf9;
}

.ecom-ai-card svg {
    width: 18px;
    height: 18px;
    color: #0f766e;
}

.ecom-ai-card span {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.ecom-ai-card strong {
    color: #172033;
    font-size: 13px;
}

.ecom-ai-card em {
    overflow: hidden;
    color: #64748b;
    font-size: 11px;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ecom-upload-label,
.ecom-link-btn {
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #dbe4ee;
    border-radius: 8px;
    background: #f8fafc;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

button.ecom-link-btn {
    width: 100%;
    font: inherit;
}

.ecom-upload-label input {
    display: none;
}

.ecom-link-btn:hover,
.ecom-upload-label:hover {
    border-color: #94a3b8;
    background: #ffffff;
}

.ecom-layers {
    flex: 1;
    min-height: 120px;
    overflow: auto;
    padding: 0 10px 12px;
}

.ecom-panel-empty {
    margin: 0;
    padding: 22px 12px;
    color: #94a3b8;
    font-size: 13px;
    text-align: center;
}

.ecom-layer-item {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    margin-bottom: 6px;
    padding: 0 7px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #334155;
    cursor: pointer;
}

.ecom-layer-item:hover {
    background: #f8fafc;
}

.ecom-layer-item.is-active {
    border-color: #9bd4ce;
    background: #ecfdf9;
    color: #0f766e;
}

.ecom-layer-item.is-dragging {
    opacity: 0.44;
}

.ecom-layer-item.is-drop-before {
    border-top-color: #0f766e;
    box-shadow: inset 0 2px 0 #0f766e;
}

.ecom-layer-item.is-drop-after {
    border-bottom-color: #0f766e;
    box-shadow: inset 0 -2px 0 #0f766e;
}

.ecom-layer-eye,
.ecom-layer-del {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.ecom-layer-eye svg,
.ecom-layer-del svg {
    width: 15px;
    height: 15px;
    stroke-width: 2;
}

.ecom-layer-name {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
}

.ecom-layer-name svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.ecom-templates {
    display: grid;
    gap: 8px;
    max-height: 184px;
    overflow: auto;
    padding: 0 14px;
}

.ecom-artboards,
.ecom-references {
    display: grid;
    gap: 8px;
    max-height: 152px;
    overflow: auto;
    padding: 0 14px;
}

.ecom-board-panel {
    min-height: 180px;
}

.ecom-board-panel .ecom-artboards,
.ecom-board-panel .ecom-references {
    max-height: none;
    min-height: 0;
    flex: 1;
}

.ecom-projects {
    display: grid;
    gap: 8px;
    max-height: 166px;
    overflow: auto;
    padding: 0 14px;
}

.ecom-artboard-chip,
.ecom-reference-chip {
    width: 100%;
    position: relative;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 3px 8px;
    min-height: 46px;
    padding: 8px 10px;
    border: 1px solid #dbe4ee;
    border-radius: 8px;
    background: #f8fafc;
    color: #334155;
    text-align: left;
    cursor: pointer;
}

.ecom-artboard-chip:hover,
.ecom-reference-chip:hover {
    border-color: #94a3b8;
    background: #ffffff;
}

.ecom-artboard-chip.is-active {
    border-color: #9bd4ce;
    background: #ecfdf9;
    color: #0f766e;
}

.ecom-artboard-chip strong,
.ecom-reference-chip strong {
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
    grid-column: 2;
}

.ecom-artboard-chip span,
.ecom-reference-chip span {
    overflow: hidden;
    color: #64748b;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
    grid-column: 2;
}

.ecom-artboard-thumb {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: center;
    width: 20px;
    height: 28px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    box-shadow: inset 0 0 0 4px rgba(15, 118, 110, 0.08);
}

.ecom-reference-thumb {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: center;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border: 1px solid #dbe4ee;
    border-radius: 7px;
    background: #ffffff;
    color: #0f766e;
}

.ecom-reference-thumb svg {
    width: 14px;
    height: 14px;
}

.ecom-chip-actions {
    grid-column: 3;
    grid-row: 1 / span 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ecom-chip-actions button {
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
}

.ecom-chip-actions button:hover {
    border-color: #cbd5e1;
    background: #ffffff;
    color: #0f766e;
}

.ecom-chip-actions svg {
    width: 14px;
    height: 14px;
}

.ecom-template-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 42px;
    padding: 0 11px;
    border: 1px solid #dbe4ee;
    border-radius: 8px;
    background: #f8fafc;
    color: #334155;
    text-decoration: none;
}

.ecom-project-chip {
    display: grid;
    gap: 3px;
    min-height: 46px;
    padding: 8px 11px;
    border: 1px solid #dbe4ee;
    border-radius: 8px;
    background: #f8fafc;
    color: #334155;
    text-decoration: none;
}

.ecom-project-chip:hover,
.ecom-template-chip:hover {
    border-color: #94a3b8;
    background: #ffffff;
}

.ecom-project-chip.is-active {
    border-color: #9bd4ce;
    background: #ecfdf9;
}

.ecom-template-chip strong,
.ecom-template-chip span,
.ecom-project-chip strong,
.ecom-project-chip span {
    font-size: 12px;
}

.ecom-template-chip span,
.ecom-project-chip span {
    color: #64748b;
}

.ecom-canvas-wrap {
    min-width: 0;
    min-height: 0;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(#dde5ee 1px, transparent 1px),
        linear-gradient(90deg, #dde5ee 1px, transparent 1px),
        #edf1f5;
    background-size: 32px 32px;
}

.ecom-stage-bg {
    position: absolute;
    inset: 0;
}

.ecom-stage-label {
    position: absolute;
    top: 14px;
    left: 16px;
    z-index: 2;
    height: 28px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border: 1px solid #dbe4ee;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.88);
    color: #64748b;
    font-size: 12px;
    pointer-events: none;
}

#ecom-canvas {
    display: block;
}

.ecom-bottom-bar {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 12px;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 34px;
    padding: 0 12px;
    border: 1px solid #dbe4ee;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    color: #64748b;
    font-size: 12px;
}

.ecom-inspector-tabs {
    display: flex;
    gap: 6px;
    padding: 12px 12px 8px;
    border-bottom: 1px solid #edf2f7;
}

.ecom-inspector-tabs button {
    flex: 1;
    height: 32px;
    border: 1px solid #dbe4ee;
    border-radius: 8px;
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.ecom-inspector-tabs button.is-active {
    background: #172033;
    border-color: #172033;
    color: #ffffff;
}

.ecom-props {
    flex: 1;
    overflow: auto;
    padding: 12px 14px 18px;
}

.ecom-prop-row {
    margin-bottom: 13px;
    font-size: 13px;
}

.ecom-prop-row label {
    display: block;
    margin-bottom: 7px;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
}

.ecom-prop-row input[type="text"],
.ecom-prop-row input[type="number"],
.ecom-prop-row input[type="color"],
.ecom-prop-row select,
.ecom-prop-row textarea {
    width: 100%;
    min-height: 36px;
    box-sizing: border-box;
    border: 1px solid #dbe4ee;
    border-radius: 8px;
    background: #ffffff;
    color: #172033;
    padding: 8px 10px;
    font: inherit;
    outline: none;
}

.ecom-prop-row input[type="color"] {
    padding: 4px;
}

.ecom-prop-row select {
    appearance: none;
}

.ecom-prop-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
}

.ecom-prop-row textarea {
    min-height: 92px;
    resize: vertical;
    line-height: 1.5;
}

.ecom-prop-row input[type="range"] {
    width: 100%;
}

.ecom-prop-actions {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.ecom-layer-actions {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 14px;
}

.ecom-layer-actions--multi {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ecom-multi-summary {
    display: grid;
    gap: 4px;
    margin-bottom: 12px;
    padding: 10px 11px;
    border: 1px solid #9bd4ce;
    border-radius: 8px;
    background: #ecfdf9;
    color: #0f766e;
}

.ecom-multi-summary strong {
    font-size: 13px;
}

.ecom-multi-summary span {
    color: #475569;
    font-size: 12px;
    line-height: 1.45;
}

.ecom-mini-btn,
.ecom-align-grid button {
    min-height: 32px;
    border: 1px solid #dbe4ee;
    border-radius: 8px;
    background: #f8fafc;
    color: #334155;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.ecom-mini-btn {
    display: grid;
    place-items: center;
    gap: 2px;
    padding: 5px 2px;
}

.ecom-mini-btn svg {
    width: 14px;
    height: 14px;
}

.ecom-mini-btn span {
    font-size: 11px;
}

.ecom-mini-btn:hover,
.ecom-align-grid button:hover {
    border-color: #94a3b8;
    background: #ffffff;
}

.ecom-mini-btn.is-danger:hover {
    border-color: #fecaca;
    color: #dc2626;
}

.ecom-align-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin: 0 0 14px;
}

.ecom-prop-section-title {
    margin: 2px 0 14px;
    color: #172033;
    font-size: 14px;
    font-weight: 900;
}

.ecom-prop-hint {
    margin: 16px 0 0;
    padding: 12px;
    border-radius: 8px;
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
    line-height: 1.7;
}

.ecom-prop-preview img {
    max-width: 100%;
    display: block;
    border: 1px solid #dbe4ee;
    border-radius: 8px;
    margin-top: 12px;
    background: repeating-conic-gradient(#e2e8f0 0% 25%, #fff 0% 50%) 50% / 16px 16px;
}

.ecom-ai-panel {
    display: grid;
    gap: 12px;
}

.ecom-ai-summary {
    display: grid;
    gap: 7px;
    padding: 12px;
    border: 1px solid #dbe4ee;
    border-radius: 8px;
    background: #f8fafc;
}

.ecom-ai-summary strong {
    color: #172033;
    font-size: 13px;
}

.ecom-ai-summary span,
.ecom-ai-summary p {
    margin: 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.6;
}

.ecom-ai-action-grid {
    display: grid;
    gap: 8px;
}

.ecom-ai-action {
    min-height: 42px;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid #dbe4ee;
    border-radius: 8px;
    background: #ffffff;
    color: #334155;
    font-size: 12px;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
}

.ecom-ai-action:hover {
    border-color: #9bd4ce;
    background: #ecfdf9;
}

.ecom-ai-action svg {
    width: 16px;
    height: 16px;
    color: #0f766e;
}

.ecom-ai-action:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.ecom-ai-note {
    margin: 0;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.7;
}

@media (max-width: 980px) {
    .ecom-toolbar {
        grid-template-columns: 1fr;
        height: auto;
        padding: 10px;
    }

    .ecom-toolbar-center,
    .ecom-toolbar-right {
        justify-content: flex-start;
    }

    .ecom-body {
        grid-template-columns: 52px minmax(220px, 260px) minmax(0, 1fr);
    }

    .ecom-sidebar-right {
        display: none;
    }
}
