 
.dims-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding: 10px 14px;
    background: #f8f9fa;
    border-radius: 10px;
}
.dims-progress-bar {
    flex: 1;
    height: 6px;
    background: #e8ecef;
    border-radius: 3px;
    overflow: hidden;
}
.dims-progress-fill {
    height: 100%;
    background: #27ae60;
    border-radius: 3px;
    transition: width 0.4s ease;
    width: 0%;
}
.dims-progress-label {
    font-size: 12px;
    font-weight: 600;
    color: #5a6c7d;
    white-space: nowrap;
}

 
.dim-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.dim-item-p5 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border: 2px solid #e8ecef;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}
.dim-item-p5:hover {
    border-color: #c21f26;
    background: #fff5f5;
    transform: translateX(2px);
}
.dim-item-p5.is-set {
    border-color: #d5f0e0;
    background: #f0faf4;
}
.dim-item-p5.is-set:hover {
    border-color: #27ae60;
    background: #e8f8ee;
}

.dim-item-p5-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.dim-item-p5-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #95a5a6;
    transition: all 0.2s;
    flex-shrink: 0;
}
.dim-item-p5:hover .dim-item-p5-icon    { background: #ffe8e8; color: #c21f26; }
.dim-item-p5.is-set .dim-item-p5-icon  { background: #d5f0e0; color: #27ae60; }

.dim-item-p5-name  { font-size: 12px; font-weight: 600; color: #2c3e50; }
.dim-item-p5-hint  { font-size: 10px; color: #95a5a6; margin-top: 1px; }

.dim-item-p5-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.dim-item-p5-value {
    font-size: 13px;
    font-weight: 700;
    color: #95a5a6;
}
.dim-item-p5.is-set .dim-item-p5-value { color: #27ae60; }

.dim-item-p5-arrow {
    font-size: 10px;
    color: #d0d5dd;
    transition: transform 0.2s, color 0.2s;
}
.dim-item-p5:hover .dim-item-p5-arrow { transform: translateX(2px); color: #c21f26; }

@keyframes successPop {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.02); }
    100% { transform: scale(1); }
}
.dim-item-p5.just-set { animation: successPop 0.3s ease; }

/* ===== MODAL WYMIARÓW ===== */
.dim-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 200;
    align-items: flex-end;
    justify-content: center;
    backdrop-filter: blur(4px);
}
.dim-modal-overlay.visible {
    display: flex;
    animation: dmOverlayIn 0.2s ease;
}
@keyframes dmOverlayIn { from { opacity: 0; } to { opacity: 1; } }

.dim-modal {
    background: white;
    border-radius: 24px 24px 0 0;
    width: 100%;
    max-width: 440px;
    max-height: 92vh;
    overflow-y: auto;
    animation: dmSheetUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes dmSheetUp {
    from { transform: translateY(40px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.dim-modal-handle {
    display: flex;
    justify-content: center;
    padding: 12px 0 0;
}
.dim-modal-handle-bar {
    width: 40px;
    height: 4px;
    background: #d0d5dd;
    border-radius: 2px;
}

.dim-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 14px 20px 10px;
}
.dim-modal-step  { font-size: 11px; font-weight: 600; color: #95a5a6; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 3px; }
.dim-modal-title { font-size: 20px; font-weight: 700; color: #2c3e50; }

.dim-modal-close {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: none;
    background: #f0f0f0;
    font-size: 14px;
    color: #5a6c7d;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; margin-top: 4px;
    transition: background 0.2s;
}
.dim-modal-close:hover { background: #e0e0e0; }

/* Zdjęcie pomiaru */
.dim-modal-img {
    margin: 0 20px 14px;
    height: 170px;
    background: linear-gradient(135deg, #f8f9fa, #e8ecef);
    border-radius: 16px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    border: 2px dashed #d0d5dd;
}
.dim-modal-img i          { font-size: 40px; color: #c21f26; opacity: 0.2; margin-bottom: 10px; }
.dim-modal-img-label      { font-size: 13px; font-weight: 600; color: #95a5a6; }
.dim-modal-img-sub        { font-size: 11px; color: #bdc3c7; margin-top: 4px; }

 
.dim-modal-hint {
    margin: 0 20px 14px;
    padding: 12px 14px;
    background: #f8f9fa;
    border-radius: 10px;
    font-size: 13px; color: #5a6c7d; line-height: 1.7;
    border-left: 3px solid #c21f26;
}

 
.dim-modal-video {
    display: flex; align-items: center; gap: 12px;
    margin: 0 20px 16px;
    padding: 12px 14px;
    background: #fff5f5;
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.2s;
}
.dim-modal-video:hover { background: #ffe8e8; }
.dim-modal-video-icon {
    width: 38px; height: 38px; border-radius: 10px;
    background: #ff0000; color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; flex-shrink: 0;
}
.dim-modal-video strong { display: block; font-size: 13px; font-weight: 700; color: #2c3e50; }
.dim-modal-video span   { font-size: 11px; color: #7f8c8d; }

/* Select */
.dim-modal-select-wrap { padding: 0 20px 12px; }
.dim-modal-select-label {
    display: block;
    font-size: 12px; font-weight: 600; color: #5a6c7d;
    text-transform: uppercase; letter-spacing: 0.4px;
    margin-bottom: 8px;
}
.dim-modal-select {
    width: 100%; padding: 14px 16px;
    border: 2px solid #e8ecef; border-radius: 12px;
    font-size: 16px; font-weight: 600;
    font-family: 'Inter', sans-serif; color: #2c3e50;
    cursor: pointer; transition: border-color 0.2s;
    appearance: none;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2395a5a6' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 16px center;
}
.dim-modal-select:focus { outline: none; border-color: #c21f26; box-shadow: 0 0 0 3px rgba(194,31,38,0.08); }

/* Confirm */
.dim-modal-footer { padding: 10px 20px 28px; }
.dim-btn-confirm {
    width: 100%; padding: 15px;
    background: #c21f26; color: white;
    border: none; border-radius: 14px;
    font-size: 15px; font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(194,31,38,0.3);
    transition: all 0.2s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.dim-btn-confirm:hover { background: #a11920; transform: translateY(-1px); }
