body {
    margin: 0;
}

/* 🆕 3D Model View progresa statuss (sk. design_3dmodel.htm.inc,
   show_3d_model_sides() PHP pusē) - aizstāj veco manuālo "Mark 3D model as
   ready" checkbox ar tikai-lasāmu statusu (to tagad nosaka "Save & Finish
   3D Setup" poga) + redzamu 3 soļu checklist, lai admin uzreiz redz progresu
   šajā "jēlajā" 3D redaktorā, nevis mīklo, kas vēl jādara. */
.model-status-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0 0;
}
.model-status-bar-label {
    font-size: 13px;
    font-weight: 600;
    color: #6D7175;
}
.model-checklist {
    list-style: none;
    margin: 0 0 16px;
    padding: 12px 16px;
    background: #F9FAFB;
    border: 1px solid #E7EAEE;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.model-checklist-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #6D7175;
}
.model-checklist-item.is-done {
    color: #15191E;
}
.model-checklist-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #E7EAEE;
    color: #6D7175;
    font-size: 11px;
    flex: 0 0 auto;
}
.model-checklist-item.is-done .model-checklist-icon {
    background: #E3F1E7;
    color: #1E7B34;
}
.model-checklist-note { font-weight: 400; color: #6D7175; }
.model-checklist-link { margin-left: 4px; font-weight: 600; color: var(--brand-accent, #9A2F58); text-decoration: underline; }
/* 2D foto statuss puses rindā */
.side-photo-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.side-photo-chip { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; line-height: 16px; background: #EEF0F3; color: #5B6675; }
.side-photo-chip.is-custom { background: #E3F1E7; color: #1E7B34; }
.side-photo-chip.is-none { background: #EEF0F3; color: #5B6675; }
.side-photo-btn { padding: 2px 8px; border: 1px solid #C3CBD5; border-radius: 6px; background: #fff; color: #15191E; font: inherit; font-size: 11px; font-weight: 600; line-height: 16px; cursor: pointer; }
.side-photo-btn:hover { border-color: var(--brand-accent, #9A2F58); color: var(--brand-accent, #9A2F58); }
.photo-options[hidden] { display: none !important; }
.photo-opt-legacy[hidden] { display: none !important; }
/* 2D foto studija (liels logs) */
/* foto studijas pogas: css/ui-kit.css (.ui-btn) */
.ui-btn-block.photo-opt-open { margin: 4px 0 8px; }
.photo-studio { max-width: 820px; }
.ps-title { margin: 0 0 6px; font-size: 22px; line-height: 1.25; font-weight: 700; color: #15191E; padding-right: 36px; }
.ps-title-side { font-weight: 500; color: #5B6675; }
.ps-lead { margin: 0 0 18px; font-size: 14px; line-height: 1.5; color: #33404f; }
.ps-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-bottom: 18px; }
.ps-way { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; padding: 14px 16px; border: 2px solid #D5DBE3; border-radius: 12px; background: #fff; color: #15191E; font: inherit; cursor: pointer; }
.ps-way:hover { border-color: #8A94A3; }
.ps-way.is-on { border-color: var(--brand-accent, #9A2F58); background: #FBF5F8; box-shadow: 0 0 0 3px rgba(var(--brand-accent-rgb, 154, 47, 88), .12); }
.ps-way b { font-size: 15px; }
.ps-way small { font-size: 12.5px; line-height: 1.4; color: #5B6675; }
.ps-tag { padding: 1px 8px; border-radius: 10px; background: #E3F1E7; color: #1E7B34; font-size: 11px; font-weight: 700; }
.ps-tag-ai { background: #FFF1D6; color: #8A5A00; }
.ps-set { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 18px; margin-bottom: 14px; }
.ps-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: #33404f; }
.ps-field select.ui-select { min-width: 220px; width: auto; }
.ps-check { display: flex; align-items: center; gap: 8px; height: 42px; font-size: 14px; color: #15191E; }
.ps-field-notes { flex: 1 0 100%; max-width: 640px; }
.ps-field textarea { width: 100%; box-sizing: border-box; min-height: 64px; padding: 9px 10px; border: 1px solid #C3CBD5; border-radius: 8px; background: #fff; font: inherit; font-size: 14px; font-weight: 400; color: #15191E; resize: vertical; }
.ps-field textarea:focus { outline: none; border-color: var(--brand-accent, #9A2F58); }
.ps-field small { font-weight: 400; color: #5B6675; line-height: 1.4; }
.ps-cost { flex: 1 0 100%; margin: 0; font-size: 13px; color: #8A5A00; }
.ps-drop { position: relative; flex: 1 0 100%; display: flex; align-items: center; justify-content: center; min-height: 150px; padding: 18px; border: 2px dashed #B8C1CC; border-radius: 14px; background: #F7F9FB; box-sizing: border-box; text-align: center; color: #33404f; }
.ps-drop.is-over { border-color: var(--brand-accent, #9A2F58); background: #FBF5F8; }
.ps-drop input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.ps-drop-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; pointer-events: none; }
.ps-drop-empty b { font-size: 15px; color: #15191E; }
.ps-drop-empty small { color: #7a8594; }
.ps-drop-has { display: flex; align-items: center; gap: 16px; text-align: left; position: relative; z-index: 2; }
.ps-drop-img { width: 120px; height: 90px; object-fit: cover; border-radius: 8px; background: #fff; border: 1px solid #D5DBE3; }
.ps-drop-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.ps-drop-meta .photo-ai-refname { font-size: 12.5px; color: #5B6675; word-break: break-all; }
.ps-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.photo-studio .photo-match-result canvas { max-width: 100%; height: auto; border-radius: 10px; }
.photo-studio [hidden] { display: none !important; }
.photo-opt-actions .photo-opt-ai-ref { margin-left: 8px; }
.model-download-slot {
    margin: 4px 0 16px;
}
/* "Save & Finish" poga: izskats no css/ui-kit.css (.ui-btn) */

/* 🆕 3D modeļa priekšskatījums (labā puse) paliek redzams, ritinot uz leju
   garā sides sarakstā (kreisā puse) — lai admin var redzēt izmaiņas
   uzreiz, arī ja atvērti vairāki side/Transform paneļi vienlaicīgi.
   css/style.css .sides_3dmodel noklusējuma align-items (stretch) stiepj
   .sides_3d_model_preview uz visa rindas augstumu, kas neļautu tam
   "pielipt" — tāpēc flex-start, lai tas paliek sava satura augstumā.
   top:70px = fiksētā admin header augstums (54px, sk. .header-wrap) +
   neliela atkāpe. */
.sides_3dmodel {
    align-items: flex-start;
}
.sides_3d_model_preview {
    position: sticky;
    top: 70px;
    align-self: flex-start;
}

.sides_3d_model_sides_list{
    display: flex;
    width:100%;
    max-width:980px;
}
.sides_3dmodel{
    max-width:980px;
    margin:0 auto;
    gap:0;
    width:100%;
}
.sides_3dmodel .sides_3d_model_items{
    flex-direction: column;
    gap:0;
    width:100%;
    max-width:640px;
}

.flex-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

canvas.threejs-canvas {
    display: block;
    width: 500px;
    height: 500px;
}

.threejs-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width:100%;
}

.control-group {
    margin-bottom: 20px;
    width:100%;
}

.custom-button,
.custom-input,
.custom-canvas {
    display: block;
    margin: 5px 0;
}

.custom-button,
.custom-label {
    width: auto;
    height: auto;
    font-size: 14px;
    padding: 5px;
    font-weight: bold;
    border: none;
    background-color: var(--brand-accent, #9A2F58);
    color: white;
    border-radius: 5px;
    cursor: pointer;
    margin: 5px;
    text-align: center;
}

.custom-button:hover,
.custom-label:hover {
    background-color: #7e2445;
}

.custom-input[type="file"] {
    display: none;
}

.control-row {
    display: flex;
    align-items: center;
    padding: 10px 10px 0 0;
    padding: 0;
    margin: 0px;
    width:100%;
    flex-direction: column;
}

.control-row canvas {
    margin-right: 20px;
    max-width: 150px;
    height: auto;
    display: none;
    /* Maintain aspect ratio */
}

.control-buttons,
#model-controls {
    display: flex;
    flex-direction: row;
    margin: 0px;
    padding: 5px;
    list-style-type: none;
    width:100%;
    /* Remove bullets */

}
.control-buttons{
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap:10px;
    display: flex;
    flex-direction: column;
}
.control-buttons-row {
    display: flex;
    margin-bottom: 10px;
}

.model-controls-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    /*flex: 0 0 300px;*/
}

.model-controls-list>li {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border: 1px solid var(--brand-accent, #9A2F58);
    border-radius: 5px;
    background-color: #fff;
    color: #000;
    cursor: pointer;
}

.model-controls-list>li:hover {
    background-color: #f0f0f0;
}

.model-controls-list ul {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-top: 5px;
    padding: 0;
    list-style-type: none;
    /* Remove bullets */
}

.downloadModel {
    width: 150px;
    height: 50px;
    font-size: 24px;
    background-color: #e91e63;
    align-self: center;
    margin-top: 20px;
}

.downloadModel:hover {
    background-color: #c2185b;
}

#model-controls {
    /*flex-direction: row;*/
}

.sides_3d_model_canvas_container {
    flex-direction: column;
}

.centered-color-picker {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    z-index: 1000;
}


/*ui slider x y z */
.slider-container {
    margin: 5px 5px;
    padding: 5px;
    background: #f8f9fa;
    border-radius: 0px;
    font-size: 12px;
}

.slider-container.scale-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.slider-label {
    display: block;
    margin-bottom: 0px;
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.scale-container .slider-label {
    color: white;
}

.slider-value {
    color: var(--brand-accent, #9A2F58);
    margin-left: 5px;
    font-family: 'Courier New', monospace;
}

.scale-container .slider-value {
    color: #ffd700;
}

.slider-input {
    width: 100%;
    margin-top: 10px;
    padding: 8px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.slider-input:focus {
    outline: none;
    border-color: var(--brand-accent, #9A2F58);
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

.scale-container .slider-input {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.5);
}

.scale-container .slider-input:focus {
    border-color: #ffd700;
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

/* jQuery UI Slider customizacija */
/*.control-buttons .ui-slider {
    height: 10px;
    background: #ddd;
    border-radius: 5px;
    border: none;
    margin: 10px 0;
}

.control-buttons .scale-container .ui-slider {
    background: rgba(255, 255, 255, 0.3);
}

.control-buttons .ui-slider-handle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    top: -10px;
    transition: all 0.2s ease;
}

.control-buttons .ui-slider-handle:hover {
    background: #0056b3;
    transform: scale(1.15);
}

.control-buttons .control-buttons .scale-container .ui-slider-handle {
    background: #ffd700;
}

.control-buttons .scale-container .ui-slider-handle:hover {
    background: #ffed4e;
}

.control-buttons .ui-slider-handle:focus {
    outline: none;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.5);
}*/


/* Select Container */
.select-container {
    margin: 0px 0;
    padding: 0px;
    width:100%;
    position:relative;
    box-sizing:border-box;
}

.part-select {
    width: 100%;
    background-color: #fff;
    border-radius: 3px;
    border: 1px solid #C3CBD5;
    box-shadow: none;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    padding-right: 40px;
    padding: 0 0 0 8px;
    background-image: none;
}

.select-container:after {
    content: "";
    position: absolute;
    top: 18px;
    right: 80px;
    width: 2px;
    height: 2px;
    border: solid rgba(30, 46, 87, 0.8);
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    background: none;
}

.part-select:hover {
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.part-select:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3);
}

/* Options Container */
.options-container {
    margin: 0px 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
    width: 100%;
}

.options-container.hidden {
    display: none;
    opacity: 0;
    transform: translateY(-20px);
}

.options-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    color: white;
}

.options-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
}

.header-icon {
    font-size: 24px;
}

.close-options-btn {
    background: rgba(0, 0, 0, 0);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-options-btn:hover {
    background: rgba(0, 0, 0, 0.3);
    transform: rotate(90deg);
}

/* Options Grid */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 5px;
    font-size: 12px;
}

/* Option Card */
.option-card {
    /*background: #f8f9fa;
    border-radius: 10px;
    padding: 5px;
    transition: all 0.3s ease;*/
}
/*
.option-card-full {
    grid-column: 1 / -1;
}*/

/*.option-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.option-title {
    font-weight: 600;
    color: #333;
    font-size: 15px;
    flex: 1;
}*/

.option-value {
    display: flex;
    position: relative;
    border-radius: 3px;
    max-width: 150px;
    padding: 1px 10px;
    border: 1px solid #C3CBD5;
    font-size: 12px;
}

.option-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.option-body.checkbox{
    flex-direction: row;
    align-items: center;
}
/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-toggle {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 30px;
}

.slider-toggle:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider-toggle {
    background-color: #4CAF50;
}

input:checked + .slider-toggle:before {
    transform: translateX(30px);
}

.toggle-label {
    margin-left: 10px;
    font-weight: 600;
    color: #666;
}

/* Color Picker */
.color-picker-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.color-picker-group input[type="color"] {
    width: 30px;
    height: 30px;
    border: 3px solid #ddd;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.color-picker-group input[type="color"]:hover {
    border-color: #667eea;
    transform: scale(1.05);
}

.color-hex {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #667eea;
    font-size: 16px;
}

/* Slider */
/*.slider-wrapper {
    margin: 10px 0;
}

.slider-wrapper .ui-slider {
    height: 10px;
    background: #ddd;
    border-radius: 5px;
    border: none;
}

.slider-wrapper .ui-slider-handle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #667eea;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    top: -8px;
    transition: all 0.2s ease;
}

.slider-wrapper .ui-slider-handle:hover {
    background: #764ba2;
    transform: scale(1.15);
}*/

.slider-input {
    width: 100%;
    padding: 5px;
    border: 2px solid #ddd;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
}

.slider-input:focus {
    outline: none;
    border-color: #667eea;
}

/* Responsive */
@media (max-width: 768px) {
    .options-grid {
        grid-template-columns: 1fr;
    }

    .option-card-full {
        grid-column: 1;
    }
}

/* Animation Controls Container */
.animation-controls-container {
    margin: 20px 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.animation-header {
    padding: 20px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.animation-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
}

/* Animation Selector */
.animation-selector {
    padding: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.animation-select {
    width: 100%;
    padding: 12px 15px;
    font-size: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.animation-select:hover {
    border-color: #f5576c;
}

.animation-select:focus {
    outline: none;
    border-color: #f093fb;
    box-shadow: 0 0 0 3px rgba(240, 147, 251, 0.2);
}

/* Playback Controls */
.playback-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.control-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(245, 87, 108, 0.3);
}

.control-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.5);
}

.control-btn:active {
    transform: scale(0.95);
}

/* Speed Control */
.speed-control {
    padding: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.speed-control label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
}

#speed-value {
    color: #f5576c;
    font-family: 'Courier New', monospace;
}

#speed-slider {
    margin: 10px 0;
}

#speed-slider .ui-slider {
    height: 8px;
    background: #ddd;
    border-radius: 4px;
}

#speed-slider .ui-slider-handle {
    width: 20px;
    height: 20px;
    background: #f5576c;
    border: 3px solid white;
    border-radius: 50%;
    top: -6px;
    cursor: pointer;
}

/* Loop Control */
.loop-control {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.loop-label {
    font-weight: 600;
    color: #333;
}

/* Animation Info */
.animation-info {
    padding: 20px;
    background: #f8f9fa;
}

.animation-info p {
    margin: 8px 0;
    color: #666;
}

.animation-info strong {
    color: #333;
}






/* 🆕 Materials editor (action=edit_3d_model_materials) — VIENS globāls
   panelis (Camera/Intensity/Opacity/Ambient/Emissive), sk. admin.js
   buildGlobalMaterialsPanel(). Klases scope'otas zem .materials-editor-panel,
   lai neietekmētu .option-card/.layer-heading citur (piem. "Pick" plūsmā
   Matching Sides ekrānā). */
.materials-editor-panel {
    border: 1px solid #C3CBD5;
    border-radius: 6px;
    background: #fff;
    width: 100%;
    max-width: 480px;
    overflow: hidden;
}
.materials-editor-panel .layer-option-section {
    border-top: 1px solid #E7EAEE;
}
.materials-editor-panel .layer-option-section:first-child {
    border-top: none;
}
.materials-editor-panel .layer-heading {
    font-weight: 600;
}
/* Bāzes site-wide reset (css/style.css: "textarea, input{appearance:none}")
   noņem checkbox noklusēto izmēru — atjaunojam to tikai šeit, jo šie ir
   vienkārši, nesaistīti (disabled) placeholderi bez pielāgota .checkmark. */
.materials-editor-panel input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border: 1px solid #C3CBD5;
    border-radius: 3px;
    background: #fff;
    position: relative;
    flex: 0 0 16px;
}
.materials-editor-panel input[type="checkbox"]:checked {
    background: var(--brand-accent, #9A2F58);
    border-color: var(--brand-accent, #9A2F58);
}
.materials-editor-panel input[type="checkbox"]:checked:after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.materials-editor-heading-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 🆕 Vispārīgs "vai šis ir atvērts/aizvērts" chevron — lieto gan Materials
   editor (Camera/Intensity/Opacity/Ambient/Emissive rindas, kur "collapsed"
   ir uz PAŠU rindu), gan Matching Sides ekrāna "T_Shirt_..."/Transform
   galvenēm (kur "collapsed" ir uz VECĀKA .layer-options konteineru) — sk.
   admin.js showPartOptions()/createControls(). Aizstāj iepriekšējo statisko
   "X" pogu, lai lietotājs redz PAŠREIZĒJO atvērts/aizvērts stāvokli.
   Nav scope'ots zem .materials-editor-panel, jo tagad lieto abās vietās. */
.admin-chevron {
    position: relative;
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
}
.admin-chevron:after {
    content: "";
    position: absolute;
    top: 2px;
    left: 1px;
    width: 6px;
    height: 6px;
    border: solid #15191E;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}
/* Materials editor: "collapsed" ir uz .layer-option-section (rindas) pašas */
.layer-option-section:not(.collapsed) > .layer-heading .admin-chevron:after {
    transform: rotate(-135deg);
    top: 5px;
}
/* Matching Sides: "collapsed" ir uz .layer-options (konteinera) paša */
.layer-options:not(.collapsed) > .add-design .admin-chevron:after {
    transform: rotate(-135deg);
    top: 5px;
}

/* 🆕 "Tavs dizains"/"Aizmugure" rindas (sides list, action=3dmodel) — noņemt
   pelēko kartes rāmi (css/tabs.css .layer-options{border...}), lai
   atbilstu Figma "Sides list" plakanajam sarakstam. Scope'ots ar
   .layer-options-text (kas ir TIKAI šai per-side wrapper klasei, sk.
   templates/3d/admin/design_3dmodel_sides_item.htm.inc), lai neietekmētu
   Transform/materiālu paneļus (tiem ir tikai .layer-options, bez
   "-text" piedēkļa) — tiem rāmis paliek vajadzīgs. */
.layer-options-text {
    border: none;
    border-radius: 0;
    background: transparent;
    margin-top: 0;
    border-bottom: 1px solid #E7EAEE;
}
.layer-side:last-child .layer-options-text {
    border-bottom: none;
}

/* ?? Mesh Pick poga */
.btn-pick-mesh { white-space: nowrap; }

.btn-pick-mesh.active {
    background-color: #ff6b35 !important;
    color: #fff !important;
    border-color: #e55a24;
    animation: pulse-pick 1s infinite;
}

@keyframes pulse-pick {
    0%   { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.5); }
    70%  { box-shadow: 0 0 0 6px rgba(255, 107, 53, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0); }
}

/* ═══════════════════════════════════════════════════════════════════
   🆕 "Setup product": 2D vai 3D produkts (templates/3d/admin/
   design_setup_3d.htm.inc + design_admin/setup3d.js). Kamēr produkts
   ir tukšs, "+ Add print area" paslēpts - to atklāj izvēle "2D product".
   ═══════════════════════════════════════════════════════════════════ */
/* data-setup-step uzliek serveris (T_SETUP_STEP, lai nebūtu mirgošanas) un
   pēc tam setup3d.js setStep(). Bez atribūta (produkts ar pusēm) - kā agrāk. */
.add-product-container[data-setup-step="choose"] .dropzone-container,
.add-product-container[data-setup-step="choose"] .setup-intro,
.add-product-container[data-setup-step="upload"] .dropzone-container,
.add-product-container[data-setup-step="upload"] .setup-intro,
.add-product-container[data-setup-step="analyze"] .dropzone-container,
.add-product-container[data-setup-step="house"] .dropzone-container,
.add-product-container[data-setup-step="house"] .setup-intro,
.add-product-container[data-setup-step="analyze"] .setup-intro { display: none !important; }
/* Kartites = augsupielades laukumi (fails uzreiz sak atbilstoso celu) */
.setup-3d .setup-card-house { display: none; }
.setup-3d[data-house="1"] .setup-card-house { display: flex; }
.setup-card-drop { position: relative; border-style: dashed; }
.setup-card-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.setup-card-drop .setup-card-cta { margin-top: 10px; font-weight: 600; color: var(--brand-accent, #9A2F58); }
.setup-card-drop small { color: #5B6675; font-size: 12px; }
.setup-card-drop.is-over { border-color: var(--brand-accent, #9A2F58); background: #F7F9FB; box-shadow: 0 0 0 3px rgba(var(--brand-accent-rgb, 154, 47, 88), 0.12); }
.setup-card-drop:focus-within { border-color: var(--brand-accent, #9A2F58); }

.setup-3d .setup-step { display: none; }
.setup-3d[data-step="choose"] .setup-step-choose,
.setup-3d[data-step="upload"] .setup-step-upload,
.setup-3d[data-step="house"] .setup-step-house,
.setup-3d[data-step="analyze"] .setup-step-analyze { display: block; }
.setup-3d[data-step="analyze"] .setup-step-analyze { display: grid; }
.setup-3d[data-step="2d"] .setup-step-2d { display: block; }
.setup-3d[data-step="2d"] .setup-step-2d .setup-link { margin: 0 0 4px; }
/* Kad 2D produktam jau ir puse, veidu mainīt vairs nevar (serveris to atteiktu). */
.add-product-container:has(.product-side:not(.product-side-tmp)) .setup-step-2d { display: none; }

.setup-question { font-size: 16px; font-weight: 600; color: #15191E; margin: 4px 0 16px; }
/* Izvēle 2D/3D un 3D augšupielāde - lapas vidū, ar gaisu virs un zem. */
.setup-step-choose, .setup-step-upload { padding: 48px 0; text-align: center; }
.setup-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 280px)); gap: 20px; justify-content: center; }
.setup-card {
    display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
    text-align: left; padding: 20px; border: 1px solid #C3CBD5; border-radius: 6px;
    background: #fff; cursor: pointer; font: inherit; color: #15191E;
}
.setup-card:hover, .setup-card:focus-visible { border-color: var(--brand-accent, #9A2F58); outline: none; box-shadow: 0 0 0 3px rgba(var(--brand-accent-rgb, 154, 47, 88), 0.12); }
.setup-card b { font-size: 16px; margin-top: 6px; }
.setup-card span { font-size: 14px; color: #5F6B7A; line-height: 1.4; }

.setup-drop {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    min-height: 200px; max-width: 560px; margin: 0 auto; padding: 24px; box-sizing: border-box;
    border: 1.5px dashed #C3CBD5; border-radius: 6px; background: #FAFBFC;
    cursor: pointer; text-align: center; color: #15191E;
}
.setup-drop.is-over, .setup-drop:hover { border-color: var(--brand-accent, #9A2F58); background: #FBF5F8; }
.setup-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.setup-drop span { font-size: 14px; color: #5F6B7A; }
.setup-drop.is-busy { pointer-events: none; opacity: 0.6; }

.setup-link { padding: 8px 0; margin-top: 8px; font-size: 14px; }
.setup-error { color: #B42318; font-size: 14px; margin-top: 8px; min-height: 0; }
.setup-error:empty { display: none; }

.setup-step-analyze { grid-template-columns: minmax(0, 1fr) minmax(300px, 420px); gap: 20px; align-items: start; }
/* 3D skats aizņem visu kolonnas platumu un gandrīz visu ekrāna augstumu, un
   paliek redzams (sticky), kamēr garu virsmu sarakstu ritina. Agrāk
   aspect-ratio 1/1 + max-height 70vh to ierobežoja līdz ~660 px, un starp
   skatu un sarakstu palika tukša josla. top = fiksētās galvenes augstums. */
.setup-viewer {
    position: sticky; top: 100px; height: calc(100vh - 130px); min-height: 420px;
    border: 1px solid #C3CBD5; border-radius: 6px; background: #F6F7F9; overflow: hidden;
}
.setup-viewer canvas { display: block; width: 100% !important; height: 100% !important; cursor: pointer; }
.setup-viewer-status {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    padding: 20px; text-align: center; color: #5F6B7A; font-size: 14px; background: rgba(246, 247, 249, 0.85); z-index: 1;
}
.setup-viewer-status:empty { display: none; }

.setup-surfaces-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.setup-surfaces-head b { font-size: 16px; color: #15191E; }
.setup-surfaces-head span { font-size: 13px; color: #5F6B7A; white-space: nowrap; }
.setup-surfaces-hint { font-size: 13px; color: #5F6B7A; margin: 6px 0 12px; line-height: 1.4; }
.setup-surface-list { border: 1px solid #C3CBD5; border-radius: 6px; overflow: hidden; }
.setup-surface {
    display: grid; grid-template-columns: 20px minmax(0, 1fr) 24px; gap: 4px 12px; align-items: start;
    padding: 12px 14px; border-top: 1px solid #E4E8ED; cursor: pointer;
}
.setup-surface:first-child { border-top: 0; }
.setup-surface:hover, .setup-surface.is-hover { background: #F6F7F9; }
.setup-surface.is-checked { background: #FBF5F8; }
/* style.css visiem input uzliek appearance:none - rūtiņai atjaunojam pārlūka izskatu */
.setup-surface input[type="checkbox"] { -webkit-appearance: checkbox; appearance: auto; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--brand-accent, #9A2F58); cursor: pointer; }
.setup-surface-title { grid-column: 2; grid-row: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.setup-surface-name {
    font: inherit; font-size: 15px; font-weight: 600; color: #15191E; min-width: 0; width: 12em; max-width: 100%;
    border: 1px solid transparent; border-radius: 4px; padding: 2px 6px; margin-left: -6px; background: transparent;
}
.setup-surface-name:hover, .setup-surface-name:focus { border-color: #C3CBD5; background: #fff; outline: none; }
.setup-badge { font-size: 12px; line-height: 1; padding: 4px 8px; border-radius: 10px; background: #F3E6EC; color: #7A2446; white-space: nowrap; }
.setup-surface-meta { grid-column: 2; font-size: 13px; color: #5F6B7A; line-height: 1.4; }
/* Rokturis secības maiņai (setup3d.js bindRowDragging) - trešajā kolonnā, pirmajā rindā. */
.setup-surface-handle {
    grid-column: 3; grid-row: 1; justify-self: end; display: flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; padding: 0; border: 0; border-radius: 4px; background: none;
    color: #8D97A5; cursor: grab; touch-action: none;
}
.setup-surface-handle:hover, .setup-surface-handle:focus-visible { color: #15191E; background: #EEF0F3; outline: none; }
.setup-surface.is-dragging { background: #fff; box-shadow: 0 4px 14px rgba(21, 25, 30, 0.14); position: relative; z-index: 1; }
.setup-surface.is-dragging .setup-surface-handle { cursor: grabbing; }
.setup-surface-note { grid-column: 2; font-size: 13px; line-height: 1.4; color: #5F6B7A; }
.setup-surface-note.is-warn { color: #8A5A00; }
.setup-surface-list:empty::before { content: 'No surfaces found that look printable. Try another file.'; display: block; padding: 16px; color: #5F6B7A; font-size: 14px; }

.setup-hidden { margin-top: 10px; font-size: 13px; color: #5F6B7A; }
.setup-hidden summary { cursor: pointer; padding: 4px 0; }
.setup-hidden ul { margin: 6px 0 0; padding-left: 18px; line-height: 1.6; }

.setup-width { margin-top: 18px; display: flex; flex-direction: column; gap: 6px; }
.setup-width label { font-size: 14px; font-weight: 600; color: #15191E; }
.setup-width-row { display: flex; align-items: center; gap: 8px; }
.setup-width-row input.ui-input { width: 110px; }
.setup-width-hint { font-size: 13px; color: #5F6B7A; line-height: 1.4; }

.setup-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.setup-actions .setup-link { margin: 0; }
.setup-create[disabled] { opacity: 0.6; cursor: progress; }

@media (max-width: 900px) {
    .setup-step-analyze { grid-template-columns: minmax(0, 1fr); }
    .setup-viewer { position: relative; top: auto; height: 60vh; min-height: 280px; }
}

/* Produktu saraksts: 2D / 3D zīmīte blakus nosaukumam (designs.product_type). */
.product-type-tag {
    display: inline-block; margin-left: 8px; padding: 2px 7px; border-radius: 10px;
    font-size: 12px; font-weight: 400; line-height: 1.4; vertical-align: 2px;
    background: #F0F2F4; color: #3D4652;
}
/* .col-name ir flex kolonna - bez align-self zīmīte izstieptos visā platumā. */
.col-name .product-type-tag { align-self: flex-start; margin: 4px 0 0; vertical-align: baseline; }

/* "more not shown" bloks tagad satur arī īstas, izvēlamas rindas (mazas
   detaļas un aizsegtas virsmas), nevis tikai uzskaitījumu - sk.
   design_admin/setup3d.js renderList(). Rindām jāizskatās kā augšējām, tāpēc
   atceļam saraksta pelēko tekstu un atkāpi. */
.setup-hidden-hint { margin: 6px 0 8px; font-size: 13px; color: #5F6B7A; }
.setup-hidden .setup-surface-list { color: #15191E; font-size: 14px; }
.setup-hidden .setup-surface-list:empty { display: none; }
.setup-hidden .setup-surface-list + ul:empty { display: none; }

/* Produkta veida izvēle setup solī. Nosaka, vai admin izvēlas atsevišķas
   virsmas, vai apdruka aptver visu UV izklājumu (maika, soma) - sk.
   design_admin/setup3d.js applyMode(). */
.setup-mode { display: flex; gap: 10px; margin: 0 0 14px; }
.setup-mode-opt { flex: 1 1 0; display: flex; gap: 9px; align-items: flex-start;
    padding: 12px; border: 1px solid #C3CBD5; border-radius: 3px; cursor: pointer; }
.setup-mode-opt:has(input:checked) { border-color: var(--brand-accent, #9A2F58); background: var(--brand-accent-tint, #FBEFF3); }
.setup-mode-opt input { margin: 2px 0 0; flex: 0 0 auto; }
.setup-mode-opt b { display: block; font-size: 14px; color: #15191E; }
.setup-mode-opt small { display: block; margin-top: 3px; font-size: 12px; line-height: 1.45; color: #5F6B7A; }
@media (max-width: 768px) { .setup-mode { flex-direction: column; } }

/* Materials editor: komponentes un īpašību rindas */
.mat-parts { display:flex; flex-direction:column; gap:2px; width:100%; max-height:260px; overflow:auto; margin-bottom:10px; }
.mat-part { display:flex; align-items:center; gap:10px; padding:7px 8px; border-radius:6px; cursor:pointer; font-size:14px; }
.mat-part:hover { background:#F0F2F4; }
.mat-part.is-selected { background:var(--brand-accent-tint, #F3E1E9); font-weight:600; }
.mat-part-name { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mat-part-props { width:100%; border-top:1px solid #E1E5EA; padding-top:10px; }
.mat-props-title { font-weight:600; font-size:14px; margin-bottom:8px; }
.mat-row { display:flex; align-items:center; gap:10px; margin:8px 0; font-size:13px; }
.mat-row-label { flex:0 0 140px; }
.mat-range { flex:1; min-width:0; accent-color:var(--brand-accent, #9A2F58); }
.mat-color { flex:0 0 40px; width:40px; height:28px; padding:0; border:1px solid #C3CBD5; border-radius:4px; background:#fff; }
.mat-row-value { flex:0 0 56px; text-align:right; color:#6D7F9F; }
.mat-note { font-size:12px; color:#6D7F9F; margin-top:6px; }

/* Materials editor pēc Figma "3d materials": komponentes kā accordion kartītes ar krāsas paraugu */
.mat-comps { display:flex; flex-direction:column; gap:12px; width:100%; }
.mat-comp { width:100%; }
.mat-comp-head { display:flex; align-items:center; gap:14px; padding:6px 4px; cursor:pointer; font-size:15px; }
.mat-swatch { flex:0 0 28px; width:28px; height:28px; border-radius:50%; border:1px solid #D5DAE0; box-shadow:inset 0 -3px 5px rgba(0,0,0,.12); }
.mat-comp-name { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mat-comp-body { display:none; padding:6px 0 4px; }
.mat-comp.is-open .mat-comp-body { display:block; }
.mat-comp.is-open > .mat-comp-head .admin-chevron { transform:rotate(180deg); }
.mat-sec { border:1px solid #E1E5EA; border-radius:6px; margin-bottom:8px; background:#fff; }
.mat-sec-head { display:flex; align-items:center; justify-content:space-between; padding:10px 12px; font-weight:600; font-size:14px; cursor:pointer; background:#F6F7F9; border-radius:6px; }
.mat-sec-body { display:none; padding:6px 12px 10px; }
.mat-sec.is-open .mat-sec-body { display:block; }
.mat-sec.is-open > .mat-sec-head .admin-chevron { transform:rotate(180deg); }
.mat-stepper { display:flex; align-items:center; gap:6px; margin-left:auto; }
.mat-step { width:30px; height:30px; border:1px solid #D5DAE0; border-radius:4px; background:#fff; cursor:pointer; font-size:16px; line-height:1; }
.mat-num { width:70px; height:30px; text-align:center; border:1px solid #D5DAE0; border-radius:4px; padding:0 6px; font-size:13px; box-sizing:border-box; }
.mat-cam-btns { gap:8px; }
.mat-cam-btn { cursor:pointer; }

/* House (mājas) solis: materiālu piesaiste zonām */
.setup-step-house { padding: 32px 0; max-width: 720px; margin: 0 auto; }
.setup-house-hint { color: #5F6B7A; font-size: 14px; margin: 0 0 14px; }
.setup-house-status { font-size: 14px; color: #5F6B7A; margin: 0 0 12px; }
.setup-house-status:empty { display: none; }
.setup-house-zone { border: 1px solid #C3CBD5; border-radius: 6px; padding: 14px 16px; margin: 0 0 14px; background: #fff; }
.setup-house-zone > b { display: block; margin: 0 0 10px; font-size: 15px; }
.setup-house-mats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 14px; }
.setup-house-mats label { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.setup-house-sw { width: 16px; height: 16px; border-radius: 3px; border: 1px solid rgba(0,0,0,.2); flex: none; }

/* Materials editor: produkta krāsu varianti */
.mat-variants{margin:0 0 16px;padding:14px;border:1px solid #E1E5EA;border-radius:12px;background:#fff;}
.mat-variants-title{font-weight:700;margin-bottom:4px;}
.mat-variants-help{font-size:12.5px;color:#6b7686;margin:0 0 10px;}
.mat-variant-row{display:flex;align-items:center;gap:8px;margin-bottom:8px;}
.mat-variant-color{width:40px;height:34px;padding:0;border:1px solid #cfd6df;border-radius:8px;background:#fff;cursor:pointer;}
.mat-variant-name{flex:1;}
.mat-name-wrap{flex:1;min-width:0;position:relative;}
.mat-name-wrap .mat-variant-name{width:100%;box-sizing:border-box;}
/* ieteikumu saraksts - kā projekta Chosen saraksti (balts, mīksta ēna, 14px, akcenta krāsa uz izceltā) */
.mat-suggest{display:none;position:absolute;left:0;right:0;top:100%;margin-top:6px;z-index:50;max-height:220px;overflow-y:auto;background:#fff;border-radius:4px;box-shadow:8px 8px 20px rgba(201,199,199,.35),0 0 0 1px #E1E5EA;}
.mat-suggest-item{display:flex;align-items:center;gap:10px;padding:8px 14px;font-size:14px;color:#15191E;cursor:pointer;}
.mat-suggest-item:hover,.mat-suggest-item.is-active{color:var(--brand-accent,#9A2F58);background:var(--brand-accent-tint,#F3E1E9);}
.mat-suggest-dot{flex:0 0 16px;width:16px;height:16px;border-radius:50%;border:1px solid rgba(0,0,0,.15);}
.mat-variant-del{width:30px;height:30px;border:0;background:none;font-size:20px;line-height:1;cursor:pointer;color:#6b7686;}

/* "Add print area" esošam 3D produktam (setup3d.js add režīms): bez režīma izvēles un faila maiņas, ar Cancel */
/* Ielādes skelets (līdz html.setup-ready; sk. cls_catalog_control T_ADMIN_EARLY_CSS) */
.setup-skeleton{padding:6px 0 12px;}
.setup-skeleton .setup-skel{display:block;border-radius:8px;background:linear-gradient(90deg,#EEF0F3 25%,#F8F9FB 50%,#EEF0F3 75%);background-size:200% 100%;animation:mat-skel-shimmer 1.2s ease-in-out infinite;}
.setup-skel-row{display:flex;align-items:center;gap:16px;padding-bottom:18px;border-bottom:1px solid #E7EAEE;margin-bottom:56px;}
.setup-skel-label{width:90px;height:14px;}
.setup-skel-input{flex:0 1 440px;height:40px;}
.setup-skel-title{width:240px;height:18px;margin:0 auto 24px;}
.setup-skel-cards{display:flex;justify-content:center;gap:18px;flex-wrap:wrap;margin-bottom:28px;}
.setup-skel-card{width:250px;height:150px;}
.setup-skel-text{display:block;text-align:center;font-size:13px;color:#5B6675;}
/* augšējā josla setup solī: Cancel + galvenā poga (sk. setup3d.js syncTopBar) */
.step-forward .setup-top-cancel[hidden],.step-forward .setup-top-action[hidden],.step-forward .save-product-details[hidden]{display:none !important;}
.step-forward .setup-top-action.is-disabled{opacity:.55;}
/* brīdinājuma tooltips zem augšējās pogas */
.add-product-steps .step-forward{position:relative;}
.setup-top-tip{position:absolute;right:0;top:calc(100% + 10px);z-index:30;display:flex;flex-direction:column;gap:3px;width:max-content;max-width:340px;padding:10px 14px;border-radius:8px;background:#1f2937;color:#fff;font-size:13px;line-height:1.4;box-shadow:0 8px 24px rgba(0,0,0,.22);text-align:left;font-weight:400;}
.setup-top-tip[hidden]{display:none !important;}
.setup-top-tip b{font-size:13px;font-weight:600;}
.setup-top-tip::before{content:"";position:absolute;right:28px;top:-6px;width:12px;height:12px;background:#1f2937;transform:rotate(45deg);border-radius:2px;}
.setup-create[hidden]{display:none !important;}
.setup-3d .setup-cancel-add{display:none;}
.setup-3d[data-add="1"] .setup-cancel-add{display:inline-block;}
.setup-3d[data-add="1"] [data-setup-choose="replace"],
.setup-3d[data-add="1"] .setup-mode{display:none !important;}

.setup-surface-fill { grid-column: 2; display: flex; align-items: flex-start; gap: 8px; margin-top: 4px; font-size: 12.5px; color: #5F6B7A; cursor: pointer; line-height: 1.35; }
.setup-surface-fill input[type="checkbox"] { -webkit-appearance: checkbox; appearance: auto; width: 15px; height: 15px; margin: 1px 0 0; accent-color: var(--brand-accent, #9A2F58); cursor: pointer; flex: 0 0 auto; }

/* 2D foto skats / kadrs katrai virsmai (setup3d) */
.setup-surface-photo { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 6px; font-size: 12.5px; color: #5F6B7A; }
.setup-surface-photo label { display: inline-flex; align-items: center; gap: 6px; }
.setup-surface-photo select { height: 30px; border: 1px solid #DFE4EA; border-radius: 8px; background: #fff; color: #15191E; font: 600 12.5px/1 inherit; padding: 0 8px; }

/* "2D photo" sadaļa puses panelī un priekšskatījuma logs */
.photo-options .photo-options-head{cursor:pointer;}
.photo-options .photo-options-body{padding:4px 14px 12px;display:flex;flex-direction:column;gap:10px;}
.photo-options.collapsed .photo-options-body{display:none;}
.photo-opt-row{display:flex;flex-direction:column;gap:6px;font-size:12.5px;font-weight:600;color:#5F6B7A;}
.photo-opt-row select.ui-select{width:auto;}
.photo-opt-check{display:flex;align-items:center;gap:8px;font-size:13px;color:#15191E;cursor:pointer;}
.photo-opt-hint{margin:0;font-size:12px;line-height:1.4;color:#7a8594;}
.photo-preview-modal{position:fixed;inset:0;z-index:100000;display:flex;align-items:center;justify-content:center;background:rgba(15,20,30,.55);padding:20px;}
.photo-preview-card.photo-match-card{max-width:700px;}
.photo-match-steps{display:flex;gap:6px;list-style:none;margin:10px 0 8px;padding:0;font-size:12px;}
.photo-match-steps li{flex:1 1 0;padding:6px 8px;border-radius:999px;background:#EEF1F5;color:#5B6675;text-align:center;cursor:help;}
.photo-match-steps li.is-on{background:#15191E;color:#fff;}
.photo-match-steps li.is-done{background:#E3F1FC;color:#0B7AC2;}
.photo-match-help{margin:6px 0 10px;color:#5B6675;font-size:13px;line-height:1.4;}
.photo-match-pick{position:relative;margin-bottom:10px;cursor:pointer;}
.photo-match-pick input[type=file]{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%;}
.photo-match-stage{position:relative;display:flex;justify-content:center;margin:6px 0;}
.photo-match-canvas{max-width:100%;border-radius:8px;background:#F3F4F6;cursor:default;}
.photo-match-tip{position:absolute;z-index:2;max-width:260px;padding:6px 10px;border-radius:8px;background:#1f2937;color:#fff;font-size:12px;line-height:1.3;pointer-events:none;}
.photo-match-result{display:flex;justify-content:center;margin:6px 0;}
.photo-match-out{max-width:100%;border-radius:8px;background:#fff repeating-conic-gradient(#e9ecef 0% 25%, #fff 0% 50%) 50% / 16px 16px;}
.photo-match-msg{min-height:18px;margin:6px 0;color:#5B6675;font-size:13px;}
.photo-preview-card{position:relative;max-width:560px;width:100%;max-height:92vh;overflow:auto;background:#fff;border-radius:16px;padding:18px 18px 20px;box-shadow:0 20px 60px rgba(0,0,0,.3);font-size:14px;color:#15191E;}
.photo-preview-close{position:absolute;top:8px;right:12px;border:0;background:none;font-size:26px;line-height:1;cursor:pointer;color:#5F6B7A;}
.photo-preview-img{margin-top:12px;border-radius:10px;overflow:hidden;background:repeating-conic-gradient(#e9edf1 0 25%,#fff 0 50%) 0 0/20px 20px;}
.photo-preview-img img,.photo-preview-img canvas{display:block;width:100%;height:auto;}

.photo-opt-actions{display:flex;flex-wrap:wrap;gap:8px;}
.photo-opt-status{margin:0;min-height:16px;font-size:12.5px;color:#5F6B7A;}

/* "Change image" logs */
.img-source-modal{position:fixed;inset:0;z-index:100000;display:flex;align-items:center;justify-content:center;background:rgba(15,20,30,.55);padding:20px;}
.img-source-card{position:relative;width:100%;max-width:560px;background:#fff;border-radius:16px;padding:24px;box-shadow:0 20px 60px rgba(0,0,0,.3);color:#15191E;}
.img-source-card h3{margin:0 0 4px;font-size:20px;}
.img-source-sub{margin:0 0 16px;font-size:14px;color:#5F6B7A;}
.img-source-close{position:absolute;top:10px;right:14px;border:0;background:none;font-size:28px;line-height:1;cursor:pointer;color:#5F6B7A;}
.img-source-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px;}
.img-source-opt{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:18px;border:1.5px dashed #C3CBD5;border-radius:14px;background:#FAFBFC;color:#15191E;text-decoration:none;cursor:pointer;transition:border-color .15s,background .15s;}
.img-source-opt:hover,.img-source-opt.is-drag{border-color:var(--brand-accent,#9A2F58);background:#fff;}
.img-source-opt b{font-size:15px;}
.img-source-opt span{font-size:13px;line-height:1.4;color:#5F6B7A;}
.img-source-3d{border-style:solid;}

/* ───────── "Setup product": puses kā kartītes ───────── */
.admin .add-product-container .setup-intro{padding:6px 4px 4px;border:0;background:none;color:#15191E;}
.setup-intro-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap;}
.setup-intro-title{font-size:22px;letter-spacing:-.01em;}
.setup-intro-sub{display:block;margin-top:6px;max-width:660px;font-size:14px;line-height:1.5;color:#5B6675;}
.setup-intro-chips{display:inline-flex;gap:8px;flex-wrap:wrap;}
.side-chip{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border-radius:999px;background:#F0F2F5;color:#4A5565;font:600 12px/1 var(--brand-font, inherit);white-space:nowrap;}
.side-chip::before{content:"";width:7px;height:7px;border-radius:50%;background:#9AA5B3;flex:0 0 auto;}
.side-chip:empty{display:none;}
.side-chip-ok{background:#EAF6EF;color:#1F7A4D;}
.side-chip-ok::before{background:#2BA66A;}
.side-chip-warn{background:#FFF4E0;color:#8A5A00;}
.side-chip-warn::before{background:#E8A21B;}

.admin .add-product-container .dropzone-container{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:22px;margin:22px 0 10px;}
.admin .add-product-container .dropzone-container-col.product-side{width:auto;background:#fff;border:1px solid #E6EAEF;border-radius:16px;padding:12px;box-sizing:border-box;box-shadow:0 1px 2px rgba(20,30,50,.05);transition:box-shadow .2s,border-color .2s;}
.admin .add-product-container .dropzone-container-col.product-side:hover{box-shadow:0 10px 28px rgba(20,30,50,.09);border-color:#DCE1E8;}
.admin .add-product-container .dropzone-container-col.product-side .image-content{border:0;border-radius:12px;background:#F3F4F6;padding-top:78%;margin:0 0 12px;}
.admin .add-product-container .dropzone-container-col.product-side .images-content-uploaded img{object-fit:contain;}
.product-side .images-content-uploaded .side-chip{position:absolute;left:10px;top:10px;z-index:2;background:rgba(255,255,255,.94);box-shadow:0 1px 4px rgba(20,30,50,.12);}
.product-side .images-content-uploaded .side-chip-ok{color:#1F7A4D;}
.product-side .images-content-uploaded .side-chip-warn{color:#8A5A00;}
.admin .add-product-container .product-side .del-image{z-index:2;display:flex;align-items:center;justify-content:center;width:26px;height:26px;right:10px;top:10px;border-radius:50%;background:rgba(255,255,255,.94);box-shadow:0 1px 4px rgba(20,30,50,.12);}
.admin .add-product-container .product-side .del-image svg path{fill:#7a8594;}
.admin .add-product-container .product-side .del-image:hover svg path{fill:#C0392B;}
.admin .add-product-container .product-side .product-size-name{font:600 12px/16px var(--brand-font, inherit);color:#7a8594;letter-spacing:.02em;}
.admin .add-product-container .product-side .product-size-name input{margin-top:5px;border:1px solid #E6EAEF;border-radius:10px;padding:10px 12px;font:600 15px/20px var(--brand-font, inherit);color:#15191E;background:#fff;}
.admin .add-product-container .product-side .product-size-btn{display:flex;gap:10px;justify-content:stretch;margin-top:12px;}
.admin .add-product-container .product-side .product-size-btn .btn{flex:1;min-width:0;text-align:center;}
/* tukšā "+ Add print area" kartīte */
.admin .add-product-container .dropzone-container-col:not(.product-side) .dropzone{border:1.5px dashed #C3CBD5;border-radius:16px;background:#FAFBFC;margin:0;transition:border-color .15s,background .15s;}
.admin .add-product-container .dropzone-container-col:not(.product-side) .dropzone:hover{border-color:var(--brand-accent,#9A2F58);background:#fff;}
/* mīkstās pogas arī Default tēmā (bez Modern failiem) */
.admin .add-product-container .dropzone-container-col.product-side .product-size-btn .btn.btn-soft{
    background:#fff;
    color:#15191E;
    border:1px solid #DFE4EA;
    border-radius:10px;
    box-shadow:0 1px 2px rgba(20,30,50,.06);
    font-size:14px;
    padding:10px 8px;
    transition:border-color .15s,box-shadow .15s,background .15s;
}
.admin .add-product-container .dropzone-container-col.product-side .product-size-btn .btn.btn-soft:hover{
    border-color:#C3CBD5;
    background:#FBFCFD;
    box-shadow:0 3px 10px rgba(20,30,50,.10);
}
/* "Back" poga: gaiša robeža + viegla ēna (nevis melna apmale) */
.admin .add-product-top .add-product-steps .step-back .btn.btn-back{
    background:#fff;
    color:#15191E;
    border:1px solid #DFE4EA;
    border-radius:10px;
    box-shadow:0 1px 2px rgba(20,30,50,.06);
}
.admin .add-product-top .add-product-steps .step-back .btn.btn-back:hover{border-color:#C3CBD5;box-shadow:0 3px 10px rgba(20,30,50,.10);}

/* "+ Add print area": kompakta josla blakus kartītēm (nevis tikpat liela tukša kaste kā upprint) */
.admin .add-product-container .dropzone-container{align-items:start;}
.admin .add-product-container .dropzone-container-col:not(.product-side){width:auto;min-height:0;height:auto;}
.admin .add-product-container .dropzone-container-col:not(.product-side) .dropzone{height:84px;min-height:0;display:flex;align-items:center;justify-content:center;padding:0;border-radius:14px;}
.admin .add-product-container .dropzone-container-col:not(.product-side) .dropzone .dz-message,
.admin .add-product-container .dropzone-container-col:not(.product-side) .dropzone *{max-height:100%;}
.admin .add-product-container .product-side .product-size-name input.side-name-input{transition:border-color .15s,box-shadow .15s;cursor:text;}
.admin .add-product-container .product-side .product-size-name input.side-name-input:hover{border-color:#C3CBD5;}
.admin .add-product-container .product-side .product-size-name input.side-name-input:focus{outline:0;border-color:var(--brand-accent,#9A2F58);box-shadow:0 0 0 3px color-mix(in srgb,var(--brand-accent,#9A2F58) 18%,transparent);}
.admin .add-product-container .product-side .product-size-name input.side-name-saved{border-color:#2BA66A;}
.admin .add-product-container .product-side .product-size-name input.side-name-error{border-color:#C0392B;}

/* ───────── Setup product, 2. versija: centrēts režģis, "+ Add print area" augšējā labajā stūrī, darbības uz foto (hover) ───────── */
.admin .add-product-container .dropzone-container{display:flex;flex-wrap:wrap;justify-content:center;align-items:flex-start;gap:24px;position:relative;margin:70px 0 14px;}
.admin .add-product-container .dropzone-container-col.product-side{width:280px;flex:0 0 auto;}
/* tukšā "+ Add print area" - pogas veidā galvenes labajā malā */
.admin .add-product-container .dropzone-container-col:not(.product-side){position:absolute;right:0;top:-60px;width:auto;margin:0;}
.admin .add-product-container .dropzone-container-col:not(.product-side) .dropzone{height:44px;width:176px;border:1.5px solid var(--brand-accent,#9A2F58);background:#fff;border-radius:999px;box-shadow:0 1px 2px rgba(20,30,50,.06);}
.admin .add-product-container .dropzone-container-col:not(.product-side) .dropzone:hover{background:var(--brand-accent,#9A2F58);}
.admin .add-product-container .dropzone-container-col:not(.product-side) .dropzone:hover .dz-message span{color:#fff;}
.admin .add-product-container .dropzone-container-col:not(.product-side) .dropzone:hover svg path{fill:#fff;}
.admin .add-product-container .dropzone-container-col:not(.product-side) .dropzone .upload{padding:0;}
/* ja vēl nav neviena puse - liela centrēta zona */
.admin .add-product-container .dropzone-container-col:not(.product-side):only-child{position:static;}
.admin .add-product-container .dropzone-container-col:not(.product-side):only-child .dropzone{width:280px;height:160px;border-radius:16px;border-style:dashed;}
/* darbības - uz foto, parādās uzbraucot (vienmēr redzamas uz skārienekrāna) */
.admin .add-product-container .product-side .image-content{position:relative;overflow:hidden;}
.admin .add-product-container .product-side .image-content .product-size-btn{position:absolute;left:10px;right:10px;bottom:10px;margin:0;z-index:4;opacity:0;transform:translateY(6px);transition:opacity .18s,transform .18s;}
.admin .add-product-container .product-side:hover .product-size-btn,.admin .add-product-container .product-side:focus-within .product-size-btn{opacity:1;transform:none;}
@media (hover:none){.admin .add-product-container .product-side .image-content .product-size-btn{opacity:1;transform:none;}}
/* nosaukums zem foto - centrēts, bez rāmja līdz uzbraukšanai */
.admin .add-product-container .product-side .product-size-name{font-size:0;line-height:0;margin:0;}
.admin .add-product-container .product-side .product-size-name input{font:700 15px/20px var(--brand-font,inherit);text-align:center;border-color:transparent;background:transparent;margin-top:0;}
.admin .add-product-container .product-side .product-size-name input:hover{border-color:#E6EAEF;background:#fff;}
.admin .add-product-container .product-side .product-size-name input:focus{background:#fff;}
.admin .add-product-container .product-side .image-content .product-size-btn{gap:8px;}
.admin .add-product-container .product-side .image-content .product-size-btn .btn{font-size:12.5px;padding:8px 6px;white-space:nowrap;line-height:16px;}

/* ───────── v3: "+ Add print area" galvenes rindā (kartes augšējā labajā stūrī); darbības - SEprint stila pillītes ar ikonām ───────── */
.admin .add-product-container{position:relative;}
.admin .add-product-container .dropzone-container{position:static;margin:14px 0 14px;}
.admin .add-product-container .dropzone-container-col:not(.product-side){top:22px;right:26px;}
.admin .add-product-container .dropzone-container-col:not(.product-side):only-child{position:static;}
@media (max-width:760px){
  .admin .add-product-container .dropzone-container-col:not(.product-side){position:static;order:-1;width:100%;}
  .admin .add-product-container .dropzone-container-col:not(.product-side) .dropzone{width:100%;}
}
.admin .add-product-container .product-side .image-content::after{content:"";position:absolute;left:0;right:0;bottom:0;height:64px;background:linear-gradient(to top,rgba(21,25,30,.28),rgba(21,25,30,0));opacity:0;transition:opacity .18s;pointer-events:none;z-index:3;}
.admin .add-product-container .product-side:hover .image-content::after,.admin .add-product-container .product-side:focus-within .image-content::after{opacity:1;}
@media (hover:none){.admin .add-product-container .product-side .image-content::after{opacity:1;}}
.admin .add-product-container .product-side .side-act{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:1;min-width:0;height:34px;padding:0 10px;border:0;border-radius:999px;font:600 12.5px/1 var(--brand-font,inherit);white-space:nowrap;cursor:pointer;text-decoration:none;transition:transform .12s,box-shadow .15s,background .15s;box-shadow:0 2px 8px rgba(20,30,50,.18);}
.admin .add-product-container .product-side .side-act svg{flex:0 0 auto;}
.admin .add-product-container .product-side .side-act-edit{background:var(--brand-accent,#9A2F58);color:#fff;}
.admin .add-product-container .product-side .side-act-photo{background:rgba(255,255,255,.96);color:#15191E;}
.admin .add-product-container .product-side .side-act:hover{transform:translateY(-1px);box-shadow:0 5px 14px rgba(20,30,50,.26);}
.admin .add-product-container .product-side .side-act-edit:hover{filter:brightness(1.07);}

/* Produkta nosaukums kartes augšā (Setup product) */
.admin .add-product-container .setup-name-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:2px 4px 14px;margin-bottom:14px;border-bottom:1px solid #EEF0F3;padding-right:210px;}
.admin .add-product-container .setup-name-row label{font:600 12px/16px var(--brand-font,inherit);color:#7a8594;letter-spacing:.02em;flex:0 0 auto;}
.admin .add-product-container .setup-name-row input.ui-input{flex:1 1 280px;max-width:460px;}
@media (max-width:760px){.admin .add-product-container .setup-name-row{padding-right:4px;}}

/* ───────── v4: darbības kartītes AUGŠĀ virs foto (rindiņa), nosaukums zem foto kreisajā pusē ───────── */
.admin .add-product-container .product-side > .product-size-btn{display:flex;gap:8px;margin:0 0 10px;padding:0 2px;opacity:1;transform:none;position:static;}
.admin .add-product-container .product-side .side-act{height:32px;box-shadow:none;border:1px solid transparent;}
.admin .add-product-container .product-side .side-act-edit{background:var(--brand-accent,#9A2F58);color:#fff;box-shadow:0 1px 2px rgba(20,30,50,.16);}
.admin .add-product-container .product-side .side-act-photo{background:#F1F3F6;color:#15191E;border-color:#E6EAEF;}
.admin .add-product-container .product-side .side-act-photo:hover{background:#fff;border-color:#C3CBD5;}
.admin .add-product-container .product-side .side-act:hover{transform:none;box-shadow:0 3px 10px rgba(20,30,50,.14);}
.admin .add-product-container .product-side .image-content::after{display:none;}
.admin .add-product-container .product-side .image-content{margin-bottom:6px;}
.admin .add-product-container .product-side .product-size-name input{text-align:left;padding:5px 6px;font:700 14px/20px var(--brand-font,inherit);width:100%;box-sizing:border-box;}
.admin .add-product-container .dropzone-container-col.product-side{padding:12px 12px 8px;}

/* Publish modālis */
.admin-confirm-box.publish-box{max-width:440px;}
.publish-row{display:flex;gap:12px;align-items:flex-start;padding:12px 4px;border-top:1px solid #EEF0F3;cursor:pointer;}
.publish-row input{margin-top:3px;width:18px;height:18px;accent-color:var(--brand-accent,#9A2F58);flex:0 0 auto;}
.publish-row span{display:flex;flex-direction:column;gap:2px;}
.publish-row b{font:700 15px/20px var(--brand-font,inherit);color:#15191E;}
.publish-row small{font:400 13px/18px var(--brand-font,inherit);color:#7a8594;}
.publish-msg{margin:10px 0 0;padding:10px 12px;border-radius:10px;font:600 13px/18px var(--brand-font,inherit);}
.publish-msg-warn{background:#FFF4E0;color:#8A5A00;}
.publish-msg-ok{background:#EAF6EF;color:#1F7A4D;}
.publish-row{position:relative;justify-content:space-between;align-items:center;}
.publish-row input{position:absolute;opacity:0;pointer-events:none;}
.publish-row span{flex:1 1 auto;}
.publish-row .pub-switch{flex:0 0 auto;width:42px;height:24px;border-radius:999px;background:#C9D0DA;position:relative;transition:background .18s;}
.publish-row .pub-switch::after{content:"";position:absolute;left:3px;top:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(20,30,50,.3);transition:transform .18s;}
.publish-row input:checked ~ .pub-switch{background:var(--brand-accent,#9A2F58);}
.publish-row input:checked ~ .pub-switch::after{transform:translateX(18px);}
.publish-row input:focus-visible ~ .pub-switch{box-shadow:0 0 0 3px color-mix(in srgb,var(--brand-accent,#9A2F58) 25%,transparent);}

/* ───────── Visās admin lapās vienots galvenes izkārtojums (kā Setup product): bez lielā centrētā virsraksta,
   virsraksts - kartes iekšā, augšējā rinda = Back / soļi / galvenā darbība ───────── */
.admin .add-product-top h1{display:none;}
.admin .add-product-top:not(:has(.add-product-steps)){display:none;}
.admin .add-product-container .page-card-head{padding:2px 4px 14px;}
.admin .add-product-top .add-product-steps .step-forward .btn{background:var(--brand-accent,#9A2F58);color:#fff;border:1px solid transparent;box-shadow:0 1px 2px rgba(20,30,50,.14),0 4px 12px rgba(20,30,50,.08);}


/* ======================================================================
   Materiālu redaktors pēc Figma (node 109-16335 saraksts, 109-16699 kartīte), ar seprint krāsām (--brand-accent):
   - materiāls: lodveida paraugs 40px + nosaukums 16px + bultiņa, bez līnijām
   - sadaļas (Camera / Intensity / Opacity / Ambient / Emissive ...): rāmis 1px #C3CBD5, pelēka galvene 43px, atvērtai - balts saturs
   - rindas: etiķete 12px/600, vērtības lodziņš ar rāmi, slīdnis zem tā, izvēles rūtiņa labajā pusē, Z Offset ar [-] [0] [+]
   ====================================================================== */
.materials-editor .materials-editor-title{font-size:22px;line-height:28px;}

.materials-editor .sides_3dmodel.sides-3dmodel-matching{grid-template-columns:392px minmax(0,1fr);}
.materials-editor .materials-editor-panel{border:none;box-shadow:none;background:transparent;padding:0;}

/* materiālu rindas */
.materials-editor .mat-comps{display:flex;flex-direction:column;gap:0;}
.materials-editor .mat-comp-head{display:flex;align-items:center;gap:20px;padding:10px 4px;font-size:16px;font-weight:400;line-height:22px;color:#15191E;border:none;}
.materials-editor .mat-swatch{flex:0 0 40px;width:40px;height:40px;border:none;box-shadow:none;
    background-image:radial-gradient(circle at 36% 30%,rgba(255,255,255,.85) 0,rgba(255,255,255,0) 42%),radial-gradient(circle at 50% 50%,rgba(0,0,0,0) 52%,rgba(0,0,0,.24) 100%);}
.materials-editor .mat-comp-body{padding:4px 0 8px;}

/* sadaļas: .mat-sec (materiāla iekšā) un .layer-option-section (Camera / Lighting / Opacity) */
.materials-editor .mat-sec,
.materials-editor .mat-group-all > .layer-option-section{border:1px solid #C3CBD5;border-radius:3px;background:#fff;margin:10px 0 0;padding:0;overflow:hidden;box-shadow:none;}
.materials-editor .mat-sec-head,
.materials-editor .mat-group-all > .layer-option-section > .layer-heading{display:flex;align-items:center;justify-content:space-between;min-height:43px;box-sizing:border-box;margin:0;padding:0 14px;background:#F0F2F4;border:none;border-radius:0;font-size:15px;font-weight:600;line-height:20px;color:#15191E;}
.materials-editor .mat-group-all > .layer-option-section .option-title,
.materials-editor .mat-sec-head span:first-child{font-size:15px;font-weight:600;}
.materials-editor .mat-sec-body,
.materials-editor .mat-group-all > .layer-option-section > .option-body{padding:14px 12px 10px;border:none;}

/* rindas sadaļu iekšienē */
.materials-editor .mat-row{display:flex;align-items:center;justify-content:space-between;gap:10px 12px;margin:0 0 18px;font-size:12px;font-weight:600;color:#15191E;}
.materials-editor .mat-row-label{flex:1 1 auto;font-size:12px;font-weight:600;}
.materials-editor .mat-row:has(.mat-range){flex-wrap:wrap;}
.materials-editor .mat-row:has(.mat-range) .mat-row-value{order:2;flex:0 0 auto;min-width:96px;box-sizing:border-box;padding:9px 12px;border:1px solid #C3CBD5;border-radius:3px;background:#fff;font-size:14px;font-weight:400;color:#15191E;text-align:right;}
.materials-editor .mat-row:has(.mat-range) .mat-range{order:3;flex:1 1 100%;margin:4px 0 0;height:20px;accent-color:var(--brand-accent,#9A2F58);}
/* izvēles rūtiņa labajā pusē */
/* Z Offset: etiķete virs [-] [0] [+] pilnā platumā */
.materials-editor .mat-row:has(.mat-stepper){flex-direction:column;align-items:stretch;gap:8px;}
.materials-editor .mat-stepper{display:flex;align-items:stretch;gap:10px;margin:0;width:100%;}
.materials-editor .mat-step{flex:0 0 40px;width:40px;height:40px;border:none;border-radius:3px;background:#F0F2F4;font-size:20px;line-height:1;color:#15191E;cursor:pointer;}
.materials-editor .mat-step:hover{background:#E1E5EA;}
.materials-editor .mat-num{flex:1 1 auto;width:auto;min-width:0;height:40px;border:1px solid #C3CBD5;border-radius:3px;text-align:center;font-size:14px;}
.materials-editor .mat-color{border:1px solid #C3CBD5;border-radius:3px;}
.materials-editor .mat-note{font-size:12px;line-height:16px;color:#6B7280;margin:4px 0 6px;}
.materials-editor .mat-props-title{font-size:13px;font-weight:700;margin:6px 0 12px;}
/* "Colour variants" - tāds pats plakans bloks kā sadaļas */
.materials-editor .mat-variants{margin:10px 0 0;padding:12px;border:1px solid #C3CBD5;border-radius:3px;background:#fff;}
.materials-editor .mat-variants-title{font-size:15px;font-weight:600;margin-bottom:4px;}
.materials-editor .mat-variants-help{font-size:12px;line-height:16px;color:#6B7280;margin:0 0 10px;}
/* slīdnis kā Figma: plāna josla un noapaļots taisnstūra rokturis (seprint akcenta krāsā) */
.materials-editor .mat-range{-webkit-appearance:none;appearance:none;background:transparent;height:28px;cursor:pointer;}
.materials-editor .mat-range::-webkit-slider-runnable-track{height:4px;border-radius:2px;background:var(--brand-accent,#9A2F58);}
.materials-editor .mat-range::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:20px;height:28px;margin-top:-12px;border:none;border-radius:5px;background:var(--brand-accent,#9A2F58);}
.materials-editor .mat-range::-moz-range-track{height:4px;border-radius:2px;background:var(--brand-accent,#9A2F58);}
.materials-editor .mat-range::-moz-range-thumb{width:20px;height:28px;border:none;border-radius:5px;background:var(--brand-accent,#9A2F58);}
/* ── Materiālu redaktora kreisā kolonna: skaidra hierarhija ─────────────────────────────────────────────
   1) grupu virsraksti ("Parts of the product" / "Whole product"); 2) katra detaļa = kartīte ar ēnu, atvērtā iezīmēta ar akcenta joslu;
   3) sadaļas detaļas iekšienē ir ievilktas un vieglākas; 4) "Whole product" iestatījumi atrodas atsevišķā pelēkā konteinerā */
.materials-editor .mat-group{margin:0 0 22px;}
.materials-editor .mat-group-head{margin:0 0 10px;}
.materials-editor .mat-group-title{font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#4B5563;}
.materials-editor .mat-group-hint{font-size:12.5px;line-height:17px;color:#6B7280;margin-top:2px;}

/* detaļu kartītes */
.materials-editor .mat-comps{gap:10px;}
.materials-editor .mat-comp{background:#fff;border:1px solid #D5DAE1;border-radius:8px;box-shadow:0 1px 2px rgba(16,24,40,.06);overflow:hidden;position:relative;transition:box-shadow .15s,border-color .15s;}
.materials-editor .mat-comp:hover{border-color:#B6BEC9;}
.materials-editor .mat-comp-head{padding:10px 14px 10px 16px;cursor:pointer;}
.materials-editor .mat-comp-name{font-weight:600;}
.materials-editor .mat-comp.is-open{border-color:var(--brand-accent,#9A2F58);box-shadow:0 6px 18px rgba(16,24,40,.14);}
.materials-editor .mat-comp.is-open::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--brand-accent,#9A2F58);}
.materials-editor .mat-comp.is-open > .mat-comp-head{background:var(--brand-accent-tint,#F3E1E9);}
.materials-editor .mat-comp-body{padding:12px 12px 4px 16px;background:#F7F8FA;border-top:1px solid #E1E5EA;box-shadow:inset 0 4px 6px -4px rgba(16,24,40,.12);}
/* sadaļas detaļas iekšā: vieglākas, lai nekonkurē ar detaļas galveni */
.materials-editor .mat-comp-body .mat-sec{margin:0 0 8px;border-color:#D5DAE1;border-radius:6px;box-shadow:0 1px 2px rgba(16,24,40,.05);}
.materials-editor .mat-comp-body .mat-sec-head{min-height:38px;padding:0 12px;background:#fff;font-size:14px;}
.materials-editor .mat-comp-body .mat-sec.is-open > .mat-sec-head{background:#EEF0F3;border-bottom:1px solid #D5DAE1;}

/* "Whole product" konteiners */
.materials-editor .mat-group-all{padding:14px 12px 12px;border:1px dashed #B6BEC9;border-radius:10px;background:#F3F5F8;box-shadow:inset 0 1px 3px rgba(16,24,40,.06);}
.materials-editor .mat-group-all .mat-group-head{margin-bottom:4px;}
.materials-editor .mat-group-all .mat-variants,
.materials-editor .mat-group-all .layer-option-section{margin:10px 0 0;border:1px solid #C3CBD5;border-radius:6px;background:#fff;box-shadow:0 1px 2px rgba(16,24,40,.06);}
.materials-editor .mat-group-all .layer-option-section:not(.collapsed){border-color:#8A94A3;box-shadow:0 4px 12px rgba(16,24,40,.12);}
.materials-editor .mat-group-all .layer-option-section:not(.collapsed) > .layer-heading{background:#E4E8ED;border-bottom:1px solid #C3CBD5;}
/* ielādes skeleton materiālu sarakstam (kamēr nāk 3D modelis) */
.mat-skel{height:40px;margin:12px 4px;border-radius:6px;background:linear-gradient(90deg,#EEF0F3 25%,#F8F9FB 50%,#EEF0F3 75%);background-size:200% 100%;animation:mat-skel-shimmer 1.2s ease-in-out infinite;}
.mat-skel.mat-skel-bar{height:43px;margin:10px 0 0;border-radius:3px;}
@keyframes mat-skel-shimmer{0%{background-position:200% 0;}100%{background-position:-200% 0;}}
/* atstarpe starp sarakstu un vertikālo atdalītāju (Figma: saraksta saturs nebeidzas pie paša atdalītāja) */
.materials-editor .sides-3dmodel-matching .sides_3d_model_sides_list{padding-right:28px;box-sizing:border-box;}

/* "Fit my own photo": atribūts hidden jāievēro arī pogām un konteineriem ar display */
.photo-match-card [hidden]{display:none !important;}

/* AI foto: "saglabāts" stāvoklis */
.photo-ai-done[hidden]{display:none !important;}
.photo-ai-done{margin:12px 0;padding:16px;border:1px solid #CFE8D9;border-radius:12px;background:#F2FAF5;}
.photo-ai-done-head{display:flex;align-items:center;gap:10px;font-size:15px;margin-bottom:10px;}
.photo-ai-done-tick{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;background:#1FA463;color:#fff;font-size:15px;}
.photo-ai-done-img{display:block;max-width:100%;max-height:200px;margin:0 auto 10px;border-radius:8px;background:#fff repeating-conic-gradient(#e9ecef 0% 25%, #fff 0% 50%) 50% / 16px 16px;}
.photo-ai-done-text{margin:0 0 12px 0;font-size:13px;line-height:1.5;color:#33404f;}
.photo-ai-actions[hidden]{display:none !important;}
a.photo-ai-open{display:inline-flex;align-items:center;text-decoration:none;}

/* AI foto: ielādes bloks */
.photo-ai-loading{display:flex;align-items:center;gap:16px;margin:14px 0;padding:16px;border:1px solid #E1E5EA;border-radius:12px;background:#F7F9FB;}
.photo-ai-loading[hidden]{display:none !important;}
.photo-ai-spin{flex:0 0 38px;width:38px;height:38px;border:4px solid #DDE3EA;border-top-color:#15191E;border-radius:50%;animation:photoAiSpin .9s linear infinite;}
@keyframes photoAiSpin{to{transform:rotate(360deg);}}
.photo-ai-load-text{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:4px;}
.photo-ai-stage{font-size:14px;color:#15191E;}
.photo-ai-sub{font-size:12.5px;color:#5B6675;line-height:1.35;}
.photo-ai-bar{height:6px;margin:6px 0 2px 0;border-radius:999px;background:#E1E5EA;overflow:hidden;}
.photo-ai-bar i{display:block;height:100%;width:0;border-radius:999px;background:#15191E;transition:width .5s ease;}
.photo-ai-time{font-size:12px;color:#7a8594;font-variant-numeric:tabular-nums;}
.photo-match-card .is-locked{opacity:.5;pointer-events:none;}
@media (prefers-reduced-motion: reduce){.photo-ai-spin{animation-duration:2.4s;}}

/* 2D photo sadaļa: divi skaidri varianti (A no 3D modeļa, B ar AI) */
.photo-opt-intro{margin:0 0 10px 0;font-size:13px;line-height:1.4;color:#5B6675;}
.photo-opt-group{margin:0 0 12px 0;padding:12px;border:1px solid #E1E5EA;border-radius:12px;background:#fff;}
.photo-opt-group-title{font-weight:700;font-size:14px;margin-bottom:8px;display:flex;align-items:center;gap:8px;color:#15191E;}
.photo-opt-tag{font-weight:600;font-size:11px;padding:2px 8px;border-radius:999px;background:#E9F6EE;color:#1FA463;}
.photo-opt-tag-ai{background:#EEF1F5;color:#5B6675;}
.photo-opt-group .photo-opt-hint{margin:0 0 10px 0;font-size:12.5px;line-height:1.4;color:#5B6675;}
.admin .add-product-top{position:sticky;top:0;z-index:60;background:var(--admin-page-bg,#E1E5EA);padding-bottom:6px;}
.admin .step-forward a.btn.setup-top-cancel{background:#fff !important;color:#15191E !important;border:1px solid #C3CBD5 !important;box-sizing:border-box;}
.admin .step-forward a.btn.setup-top-cancel:hover{background:#F0F2F4 !important;}
.ps-help { margin: 0 0 14px; font-size: 13.5px; line-height: 1.45; color: #5B6675; }
.photo-studio .photo-match-result canvas { max-height: 44vh; width: auto; }

/* 2D photo studio: pilnekrāna izkārtojums - kreisā kolonna iestatījumi, labā rezultāts, pogas apakšā; ģenerēšanas logs virs visa */
.photo-preview-modal:has(.photo-studio) { padding: 2vh 2vw; }
.photo-preview-card.photo-match-card.photo-studio { max-width: 1480px; width: 96vw; height: 95vh; max-height: 95vh; display: flex; flex-direction: column; overflow: hidden; padding: 22px 26px 18px; }
.photo-studio .ps-head { flex: 0 0 auto; }
.photo-studio .ps-lead { margin-bottom: 14px; }
.photo-studio .ps-body { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(360px, 5fr) minmax(0, 7fr); gap: 24px; }
.photo-studio .ps-left { min-height: 0; overflow: auto; padding-right: 8px; }
.photo-studio .ps-ways { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.photo-studio .ps-way { padding: 12px 14px; }
.photo-studio .ps-field-notes { max-width: none; }
.photo-studio .ps-notes-en { padding: 6px 8px; border-radius: 6px; background: #EEF4FB; color: #234; }
.photo-studio .ps-notes-en i { font-style: normal; font-weight: 600; }
.photo-studio .ps-right { min-height: 0; overflow: auto; display: flex; flex-direction: column; background: #F2F4F7; border-radius: 14px; padding: 16px; }
.photo-studio .photo-match-result { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; min-height: 0; margin: 0; }
.photo-studio .photo-match-result canvas { max-width: 100%; max-height: 66vh; width: auto; height: auto; border-radius: 10px; background: #fff; }
.photo-studio .ps-preview-empty { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; color: #7a8594; padding: 24px; }
.photo-studio .ps-preview-empty b { font-size: 16px; color: #4A5666; }
.photo-studio .ps-right:has(.photo-match-result:not([hidden])) .ps-preview-empty,
.photo-studio .ps-right:has(.photo-ai-done:not([hidden])) .ps-preview-empty { display: none; }
.photo-studio .ps-foot { flex: 0 0 auto; margin-top: 14px; padding-top: 14px; border-top: 1px solid #E1E5EA; }
/* ģenerēšanas logs: centrēts virs visa studijas satura, kā citur adminā (griežas ikona, josla, sekundes) */
.photo-studio .photo-ai-loading { position: absolute; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; margin: 0; padding: 0; border: 0; border-radius: 16px; background: rgba(255, 255, 255, .86); }
.photo-studio .photo-ai-loading[hidden] { display: none !important; }
.photo-studio .photo-ai-load-card { width: min(460px, 90%); display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 28px 28px 22px; background: #fff; border-radius: 16px; box-shadow: 0 18px 50px rgba(15, 20, 30, .28); }
.photo-studio .photo-ai-load-card .photo-ai-spin { flex: 0 0 auto; width: 54px; height: 54px; margin-bottom: 6px; }
.photo-studio .photo-ai-stage { font-size: 17px; }
.photo-studio .photo-ai-load-card .photo-ai-bar { width: 100%; }
.photo-studio .photo-ai-time { font-size: 12.5px; color: #5B6675; }
.photo-studio .photo-ai-keep { margin: 6px 0 4px; font-size: 13px; line-height: 1.45; color: #8A5A00; }
@media (max-width: 900px) {
    .photo-preview-card.photo-match-card.photo-studio { overflow: auto; display: block; height: auto; max-height: 96vh; }
    .photo-studio .ps-body { display: block; }
    .photo-studio .ps-right { margin-top: 14px; }
    .photo-studio .ps-foot { position: sticky; bottom: 0; background: #fff; }
}

/* Mazs melns apstiprinājuma tooltip (adminFlashTip): "Saved", "View set..." */
.admin-flash-tip { position: fixed; z-index: 100002; max-width: 260px; padding: 7px 12px; border-radius: 8px; background: #1f2937; color: #fff; font-size: 12.5px; font-weight: 600; line-height: 1.35; text-align: center; pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .18s ease, transform .18s ease; box-shadow: 0 6px 18px rgba(15, 20, 30, .25); }
.admin-flash-tip.is-shown { opacity: 1; transform: translateY(0); }
.admin-flash-tip.is-error { background: #8A1C1C; }
.admin-flash-tip::after { content: ""; position: absolute; left: var(--arrow-x, 50%); bottom: -5px; width: 10px; height: 10px; margin-left: -5px; background: inherit; transform: rotate(45deg); border-radius: 2px; }
.admin-flash-tip.is-below { transform: translateY(-4px); }
.admin-flash-tip.is-below.is-shown { transform: translateY(0); }
.admin-flash-tip.is-below::after { bottom: auto; top: -5px; }
.setup-3d[data-guided="1"] #setup-surface-list:empty { display: none; }

/* 3D pieteikuma produkts: apdrukas laukumi pēc izmēra, ko novieto uz modeļa (setup3d.js buildPlacePanel) */
.setup-place { border: 1px solid #C3CBD5; border-radius: 8px; padding: 12px 14px; margin: 0 0 14px; background: #fff; }
.setup-place-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.setup-place-head span { font-size: 12.5px; color: #5F6B7A; }
.setup-place-row { display: grid; grid-template-columns: minmax(70px, 1.2fr) minmax(100px, 1.4fr) minmax(80px, 1fr) auto 32px; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid #E6E9EF; }
.setup-place-row:first-child { border-top: 0; }
.setup-place-row.is-active { background: #EAF3FD; margin: 0 -8px; padding-left: 8px; padding-right: 8px; border-radius: 6px; }
.setup-place-name { font-weight: 600; }
.setup-place-size, .setup-place-state { font-size: 13px; color: #5F6B7A; }
.setup-place-row.is-placed .setup-place-state { color: #0A7D33; font-weight: 600; }
.setup-place-btn { height: 32px; padding: 0 12px; border: 1px solid #C3CBD5; border-radius: 6px; background: #fff; cursor: pointer; font: inherit; font-size: 13px; }
.setup-place-btn:hover { border-color: #8E99A8; }
.setup-place-x { width: 32px; height: 32px; border: 0; border-radius: 6px; background: #F1F2F6; cursor: pointer; font-size: 18px; line-height: 1; }
.setup-place-add { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px dashed #C3CBD5; }
.setup-place-add input[type="text"], .setup-place-add select { height: 32px; border: 1px solid #C3CBD5; border-radius: 6px; padding: 0 8px; font: inherit; font-size: 13px; background: #fff; }
.setup-place-in-name { width: 150px; } .setup-place-in-w, .setup-place-in-h { width: 70px; }
.setup-place-empty { margin: 0 0 4px; font-size: 13px; color: #5F6B7A; }
.setup-badge-placed { background: #E4F4EA; color: #0A6B2D; }
.setup-place-banner { position: absolute; left: 12px; right: 12px; top: 12px; z-index: 3; background: rgba(28, 35, 51, .88); color: #fff; border-radius: 8px; padding: 8px 12px; font-size: 13px; pointer-events: none; }
.setup-place-banner.is-warn { background: rgba(180, 35, 24, .92); }
.setup-place-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.setup-place-row .setup-place-name { flex: 1 1 90px; }
.setup-place-row .setup-place-size { flex: 1 1 120px; }
.setup-place-row .setup-place-state { flex: 1 1 90px; }
.setup-place-rot { display: inline-flex; align-items: center; gap: 4px; }
.setup-place-rot .setup-place-btn { padding: 0 9px; font-size: 16px; line-height: 1; }
.setup-place-rot-in { width: 58px; height: 32px; border: 1px solid #C3CBD5; border-radius: 6px; padding: 0 6px; font: inherit; font-size: 13px; text-align: right; }
.setup-place-handle { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #fff; border: 3px solid #1D5BD6; box-shadow: 0 1px 4px rgba(0,0,0,.35); cursor: nwse-resize; touch-action: none; z-index: 5; display: none; }
.setup-place-handle:hover, .setup-place-handle.is-drag { background: #1D5BD6; }
.setup-place-w, .setup-place-h { width: 56px; height: 30px; border: 1px solid #C3CBD5; border-radius: 6px; padding: 0 6px; font: inherit; font-size: 13px; }
.setup-place-row .setup-place-size { flex: 1 1 200px; white-space: nowrap; }

/* ---- Admin 3D puses kartīte: kompakts izskats (apdrukas laukuma panelis, sk. admin.js "Print area size and position") ---- */
/* trīs sadaļu galvenes (Print_wall / apdrukas laukums / 2D foto): zemākas, mazāks teksts */
.sides-3dmodel-matching .control-group > .layer-options { margin: 8px 0 0; border-radius: 8px; }
.sides-3dmodel-matching .control-group > .layer-options > .add-design { padding: 10px 14px; }
.sides-3dmodel-matching .control-group > .layer-options .add-design-info { padding-left: 0; }
.sides-3dmodel-matching .control-group > .layer-options .layer-options-info b { font-size: 14px; font-weight: 600; }
/* "Fine-tune by hand": parasta saliekama rinda ar bultiņu labajā pusē (nevis pārlūka trijstūris) */
.real-size-fit-manual { margin: 0 10px 12px; }
.real-size-fit-manual > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-top: 1px solid #EEF1F5; cursor: pointer; font-size: 13px; font-weight: 600; color: #15191E; }
.real-size-fit-manual > summary::-webkit-details-marker { display: none; }
.real-size-fit-manual > summary::after { content: ""; width: 7px; height: 7px; margin-right: 4px; border-right: 2px solid #6D7F9F; border-bottom: 2px solid #6D7F9F; transform: rotate(45deg); transition: transform .15s; }
.real-size-fit-manual[open] > summary::after { transform: rotate(-135deg); }
.real-size-fit-manual > summary:hover { color: var(--brand-accent, #0B7AC2); }
/* lauki rindā pa diviem; −/+ ar vērtību vienā rāmī (agrāk dubults rāmis un 40 px pogas) */
.real-size-fit-manual .layer-options-content.has-col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; padding: 4px 0 8px; }
.real-size-fit-manual .layer-options-col { display: block; font-size: 12px; line-height: 1.3; color: #6D7F9F; }
.real-size-fit-manual .layer-options-col .layer-patterns { margin-top: 4px; }
.real-size-fit-manual .looking-for-count { display: flex; align-items: center; width: 100%; height: 32px; border: 1px solid #C3CBD5; border-radius: 6px; overflow: hidden; background: #fff; }
.real-size-fit-manual .looking-for-count .minus, .real-size-fit-manual .looking-for-count .plus { flex: 0 0 30px; width: 30px; height: 30px; cursor: pointer; }
.real-size-fit-manual .looking-for-count svg { width: 30px; height: 30px; display: block; }
.real-size-fit-manual .looking-for-count .layer-option-input-value { flex: 1 1 auto; width: auto; height: 30px; margin: 0; border: 0; }
.real-size-fit-manual .looking-for-count input { width: 100%; height: 30px; border: 0; padding: 0; text-align: center; font-size: 13px; color: #15191E; background: transparent; }
.real-size-fit-manual .layer-option-slider-content { padding: 4px 0 8px; }
.real-size-fit-manual .layer-option-slider-content .slider-title { font-size: 12px; color: #6D7F9F; }
.real-size-fit-manual > button { margin: 4px 0 0 !important; padding: 5px 12px !important; font-size: 12px !important; line-height: 1.2; height: auto !important; background: #fff !important; color: #15191E !important; border: 1px solid #C3CBD5 !important; border-radius: 6px; }
.real-size-fit-manual .layer-option-slider-content .slider-input { width: 84px; }
.real-size-fit-manual .layer-option-slider-content .slider-input input { height: 28px; font-size: 13px; }
/* admin tēma (themes/modern.css) uzspiež laukiem savu rāmi/aizpildījumu - iekšējam laukam rāmis jāņem nost, lai paliek TIKAI ārējais −/+ rāmis */
html body.admin .real-size-fit-manual .looking-for-count input,
html body .real-size-fit-manual .looking-for-count input { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: transparent !important; height: 30px !important; padding: 0 !important; outline: none; }
html body.admin .real-size-fit-manual .layer-option-slider-content .slider-input input { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: transparent !important; height: 28px !important; }
.real-size-fit-manual .layer-option-slider-content .slider-input { display: flex; align-items: center; border: 1px solid #C3CBD5; border-radius: 6px; background: #fff; padding: 0 8px; height: 32px; }

/* Pagrieziena lauks: ievade aizņem atlikušo vietu, grādu zīme pilnā izmērā (iepriekš ievade 100% platumā to saspieda un "deg" bija apgriezts) */
.real-size-fit-manual .layer-option-slider-content .slider-input { width: 96px; gap: 4px; }
.real-size-fit-manual .layer-option-slider-content .slider-input input { flex: 1 1 auto; min-width: 0; width: auto !important; text-align: right; }
.real-size-fit-manual .layer-option-slider-content .slider-input .slider-input-measure { flex: 0 0 auto; background: transparent; padding: 0; color: #6D7F9F; font-size: 13px; font-weight: 500; }

/* ── Materiālu redaktors (2026-11-22): sakļaujama grupa "Whole product", labāks select, krāsu variantu rindas ar paleti un 2D foto sīktēliem ── */
.materials-editor .mat-group-head{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;user-select:none;}
.materials-editor .mat-group-head:focus-visible{outline:2px solid var(--brand-accent,#0B7AC2);outline-offset:2px;border-radius:6px;}
.materials-editor .mat-group:not(.is-collapsed) > .mat-group-head .admin-chevron:after{transform:rotate(-135deg);top:5px;}
.materials-editor .mat-group.is-collapsed > :not(.mat-group-head){display:none;}
.materials-editor .mat-group.is-collapsed .mat-group-head{margin-bottom:0;}

.mat-select{width:100%;}

.mat-variants-card .option-body{padding:14px 12px 12px;}
.mat-variants-list{display:flex;flex-direction:column;gap:10px;margin:0 0 12px;}
.mat-variant-row{position:relative;display:flex;align-items:center;gap:10px;margin:0;}
.mat-dot{flex:0 0 36px;width:36px;height:36px;padding:0;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1.5px #B6BEC9;cursor:pointer;transition:box-shadow .15s,transform .15s;}
.mat-dot:hover{box-shadow:0 0 0 2px var(--brand-accent,#0B7AC2);transform:scale(1.05);}
.mat-variant-row .mat-name-wrap{flex:1 1 auto;min-width:0;}
.mat-variant-photos{display:flex;align-items:center;gap:4px;flex:0 0 auto;}
.mat-variant-thumb{width:34px;height:34px;object-fit:contain;border:1px solid #D5DAE3;border-radius:6px;background:#F3F5F8;cursor:zoom-in;}
.mat-variant-thumb:hover{border-color:var(--brand-accent,#0B7AC2);}
.mat-variant-chip{display:inline-block;max-width:112px;padding:3px 8px;border-radius:999px;background:#EEF0F3;color:#6B7280;font-size:11px;line-height:14px;font-weight:600;}
.mat-variant-chip.is-old{background:#FFF1DB;color:#8A5200;}
.mat-variant-del{flex:0 0 28px;width:28px;height:28px;border:0;border-radius:50%;background:none;font-size:20px;line-height:1;color:#6B7280;cursor:pointer;}
.mat-variant-del:hover{background:#F0F2F4;color:#B42318;}
.mat-palette{position:absolute;left:0;top:44px;z-index:60;display:grid;grid-template-columns:repeat(8,26px);gap:8px;padding:12px;background:#fff;border-radius:10px;box-shadow:0 12px 32px rgba(16,24,40,.18),0 0 0 1px #E1E5EA;}
.mat-palette[hidden]{display:none;}
.mat-pal-dot{width:26px;height:26px;padding:0;border-radius:50%;border:1px solid rgba(0,0,0,.18);cursor:pointer;transition:transform .12s;}
.mat-pal-dot:hover{transform:scale(1.15);}
.mat-pal-dot.is-on{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--brand-accent,#0B7AC2);}
.mat-pal-custom{position:relative;display:block;width:26px;height:26px;border-radius:50%;background:conic-gradient(#f00,#ff0,#0f0,#0ff,#00f,#f0f,#f00);border:1px solid rgba(0,0,0,.18);cursor:pointer;overflow:hidden;}
.mat-pal-custom input{position:absolute;inset:-4px;width:40px;height:40px;opacity:0;cursor:pointer;}

/* pušu saraksts (3D Model View): uzģenerētie krāsu variantu foto */
.side-variant-thumbs{display:inline-flex;align-items:center;gap:4px;margin-left:8px;}
.side-variant-label{font-size:11px;font-weight:600;color:#6B7280;margin-right:2px;}
.side-variant-thumb{width:26px;height:26px;object-fit:contain;border:1px solid #D5DAE3;border-radius:5px;background:#F3F5F8;cursor:zoom-in;}
.side-variant-thumb:hover{border-color:var(--brand-accent,#0B7AC2);}

/* Setup product (2026-11-22): garāki teksti (LV) - poga "+ Add print area" aug līdz tekstam un nelūzt divās rindās, darbību pogas uz foto drīkst iet uz otru rindu */
.admin .add-product-container .dropzone-container-col:not(.product-side):not(:only-child) .dropzone{width:auto;min-width:176px;height:44px;padding:0 22px;box-sizing:border-box;}
.admin .add-product-container .dropzone-container-col:not(.product-side):not(:only-child) .dz-message span{display:inline-flex;align-items:center;gap:8px;white-space:nowrap;line-height:1.2;}
.admin .add-product-container .product-side .product-size-btn{flex-wrap:wrap;}
.admin .add-product-container .product-side .side-act{flex:1 1 auto;white-space:nowrap;height:auto;min-height:32px;padding:6px 12px;}

/* 2D foto logs: modeļa griešana (vilkt priekšskatījumu vai pogas) */
.photo-studio .ps-turn{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 14px 0;}
.photo-studio .ps-turn-hint{margin:8px 0 0 0;font-size:12.5px;color:#5b6675;text-align:center;}
.photo-studio .photo-match-out{cursor:grab;}
