/* Medi Reklam Premium Portal — FAZ 6 Final v14 design polish */

.mrp-portal {
    --mrp-accent: #E0B200;
    --mrp-black: #111111;
    --mrp-text: #1A1A1A;
    --mrp-text-muted: #6E6E73;
    --mrp-canvas: #F2F2F4;
    --mrp-surface: #FFFFFF;
    --mrp-border: rgba(15, 15, 16, 0.08);
    --mrp-success: #198754;
    --mrp-wa: #25D366;
    --mrp-radius: 14px;
    --mrp-card-radius: 14px;
    --mrp-card-shadow: 0 2px 12px rgba(17, 17, 17, 0.06);
    --mrp-card-pad-x: 16px;
    --mrp-card-pad-y: 14px;
    --mrp-gap: 12px;

    background: var(--mrp-canvas);
    color: var(--mrp-text);
    min-height: 100vh;
    font-size: 14px;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
}

.mrp-portal .mrp-container {
    max-width: 1040px;
    padding-left: 16px;
    padding-right: 16px;
}

.mrp-track-page .mrp-main {
    padding-top: 80px;
}

/* ── Above fold ── */
.mrp-above-fold {
    margin-bottom: var(--mrp-gap);
}

.mrp-command-stack {
    border-radius: var(--mrp-radius);
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(15, 15, 16, 0.1);
    background: var(--mrp-black);
}

.mrp-hero {
    background: var(--mrp-black);
    color: #fff;
}

.mrp-hero-intro {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px 12px;
}

.mrp-hero-job {
    margin: 0 0 8px;
    font-size: clamp(1.25rem, 3.2vw, 1.625rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.2;
    text-transform: none;
    color: #fff;
}

.mrp-hero-hello {
    margin: 0 0 4px;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.78);
}

.mrp-hero-subline {
    margin: 0;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.4;
    max-width: 36em;
}

.mrp-hero-logout-btn {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.6875rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.mrp-hero-logout-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
}

/* Hero bantları — ortak grid hizalama */
.mrp-hero-band {
    padding: 12px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mrp-hero-band--meta {
    padding-bottom: 12px;
}

.mrp-hero-grid {
    display: grid;
    align-items: end;
    gap: 0;
}

.mrp-hero-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.mrp-hero-cell {
    min-width: 0;
    padding: 0 16px;
}

.mrp-hero-grid--3 .mrp-hero-cell:nth-child(1),
.mrp-hero-grid--2 .mrp-hero-cell:nth-child(1) {
    padding-left: 0;
}

.mrp-hero-grid--3 .mrp-hero-cell:nth-child(3),
.mrp-hero-grid--2 .mrp-hero-cell:nth-child(2) {
    padding-right: 0;
}

.mrp-hero-grid--3 .mrp-hero-cell:nth-child(2),
.mrp-hero-grid--3 .mrp-hero-cell:nth-child(3),
.mrp-hero-grid--2 .mrp-hero-cell:nth-child(2) {
    border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.mrp-hero-kicker {
    display: block;
    margin-bottom: 6px;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.48);
}

.mrp-hero-cell-value {
    display: block;
    line-height: 1.15;
}

.mrp-hero-status-badge {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.2;
    border: 1px solid transparent;
}

.mrp-hero-status-badge--active {
    color: #0f3d2a;
    background: #7AEAB0;
    border-color: rgba(122, 234, 176, 0.35);
}

.mrp-hero-status-badge--pending {
    color: #1a1400;
    background: var(--mrp-accent);
    border-color: rgba(224, 178, 0, 0.4);
}

.mrp-hero-cell-value--status {
    font-size: clamp(1.125rem, 2.8vw, 1.375rem);
    font-weight: 700;
    letter-spacing: 0.01em;
}

.mrp-hero-cell-value--active {
    color: #7AEAB0;
}

.mrp-hero-cell-value--pending {
    color: var(--mrp-accent);
}

.mrp-hero-cell-value--days {
    font-size: clamp(1.75rem, 4.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    font-variant-numeric: tabular-nums;
    color: #fff;
}

.mrp-hero-cell-value--date {
    font-size: clamp(1rem, 2.6vw, 1.25rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    color: rgba(255, 255, 255, 0.96);
}

.mrp-hero-cell-value--meta {
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: rgba(255, 255, 255, 0.92);
}

.mrp-hero-cell-value--ok {
    color: #7AEAB0;
}

.mrp-hero-cell-value--warn {
    color: var(--mrp-accent);
}

.mrp-hero-code {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 10px;
    margin: 10px 0 0;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--mrp-accent);
}

.mrp-hero-code-label {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.42);
}

/* Journey */
.mrp-command-zone {
    padding: 0 16px 14px;
    background: var(--mrp-black);
}

.mrp-journey {
    padding: 10px 0 6px;
}

.mrp-journey-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.mrp-journey-step {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}

.mrp-journey-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #3F3F44;
    box-shadow: 0 0 0 2px #3F3F44;
    position: relative;
    z-index: 1;
    transition: background-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.mrp-journey-line {
    position: absolute;
    top: 5px;
    left: calc(50% + 7px);
    right: calc(-50% + 7px);
    height: 2px;
    background: #333338;
    z-index: 0;
    transition: background-color 0.25s ease;
}

.mrp-journey-step--completed .mrp-journey-dot {
    background: rgba(25, 135, 84, 0.85);
    box-shadow: 0 0 0 2px rgba(25, 135, 84, 0.45);
    transform: scale(0.92);
}

.mrp-journey-step--completed .mrp-journey-line {
    background: rgba(25, 135, 84, 0.55);
}

.mrp-journey-step--completed .mrp-journey-label {
    color: rgba(255, 255, 255, 0.42);
    font-weight: 500;
}

.mrp-journey-step--active .mrp-journey-dot {
    background: var(--mrp-accent);
    box-shadow: 0 0 0 3px rgba(224, 178, 0, 0.35);
    transform: scale(1.15);
    animation: mrp-journey-pulse 2.2s ease-in-out infinite;
}

.mrp-journey-step--active .mrp-journey-label {
    color: var(--mrp-accent);
    font-weight: 700;
}

.mrp-journey-step--pending .mrp-journey-dot {
    background: #2E2E32;
    box-shadow: 0 0 0 2px #2E2E32;
}

.mrp-journey-step--pending .mrp-journey-label {
    color: rgba(255, 255, 255, 0.28);
}

.mrp-journey-label {
    margin-top: 7px;
    font-size: 0.5625rem;
    line-height: 1.15;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.25s ease;
}

@keyframes mrp-journey-pulse {
    0%, 100% {
        box-shadow: 0 0 0 3px rgba(224, 178, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 0 5px rgba(224, 178, 0, 0.12);
    }
}

@media (prefers-reduced-motion: reduce) {
    .mrp-journey-step--active .mrp-journey-dot {
        animation: none;
    }
}

.mrp-journey-cancelled {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px 12px;
    border-radius: 12px;
    background: rgba(244, 67, 54, 0.08);
    border: 1px solid rgba(244, 67, 54, 0.22);
    color: #ffb4b4;
    text-align: center;
}

.mrp-journey-cancelled strong {
    font-size: 0.9375rem;
    color: #ffcdd2;
}

.mrp-journey-cancelled span {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.65);
}

.mrp-status-note {
    padding: 8px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.mrp-status-note-text {
    margin: 0 0 2px;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.85);
}

.mrp-status-note-foot {
    margin: 0;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
}

.mrp-status-note-foot--warn {
    color: var(--mrp-accent);
}

/* ── Flow grid ── */
.mrp-flow {
    padding-bottom: 16px;
}

.mrp-flow--grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mrp-flow-block {
    margin: 0;
    min-width: 0;
}

.mrp-flow-block--full {
    width: 100%;
}

.mrp-flow-heading {
    margin: 0 0 8px;
    min-height: 1.125rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--mrp-text-muted);
}

.mrp-flow-empty {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--mrp-text-muted);
}

.mrp-flow-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: var(--mrp-surface);
    border: 1px solid var(--mrp-border);
    border-radius: var(--mrp-card-radius);
    overflow: hidden;
    box-shadow: var(--mrp-card-shadow);
}

.mrp-flow-panel .mrp-update-card,
.mrp-flow-panel .mrp-update-card--idle {
    flex: 1;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.mrp-flow-panel:has(.mrp-gallery-empty--compact),
.mrp-flow-panel:has(.mrp-update-body--empty) {
    min-height: 0;
}

.mrp-flow-panel .mrp-gallery-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: none;
    border-radius: 0;
    background: transparent;
}

/* Son Gelişmeler */
.mrp-updates-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mrp-update-card {
    background: var(--mrp-surface);
    border: 1px solid var(--mrp-border);
    border-radius: var(--mrp-card-radius);
    overflow: hidden;
    box-shadow: var(--mrp-card-shadow);
    transition: box-shadow 0.22s ease, border-color 0.22s ease;
}

.mrp-update-card:hover {
    box-shadow: 0 6px 20px rgba(17, 17, 17, 0.09);
    border-color: rgba(224, 178, 0, 0.22);
}

.mrp-update-card--idle {
    border-color: rgba(224, 178, 0, 0.18);
}

.mrp-update-body--empty {
    padding: var(--mrp-card-pad-y) var(--mrp-card-pad-x);
}

.mrp-update-body--empty .mrp-update-title {
    margin-bottom: 6px;
    font-size: 0.9375rem;
}

.mrp-update-body--empty .mrp-update-excerpt {
    margin: 0;
}

.mrp-update-visual {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #EEEEF0;
}

.mrp-update-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mrp-update-visual--icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(160deg, #FFFDF5 0%, #F5F0E0 100%);
    color: #8A6900;
}

.mrp-industry-icon {
    display: flex;
    width: 52px;
    height: 52px;
}

.mrp-industry-icon svg {
    width: 100%;
    height: 100%;
}

.mrp-update-visual-label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #8A6900;
}

.mrp-update-body {
    padding: var(--mrp-card-pad-y) var(--mrp-card-pad-x);
}

.mrp-update-date {
    display: block;
    margin-bottom: 6px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mrp-accent);
}

.mrp-update-title {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.32;
    color: var(--mrp-black);
    letter-spacing: -0.01em;
}

.mrp-update-excerpt {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--mrp-text-muted);
    line-height: 1.55;
}

.mrp-update-photo-trigger,
.mrp-gallery-trigger,
.mrp-history-thumb-trigger {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    position: relative;
    overflow: hidden;
}

.mrp-update-photo-trigger:focus-visible,
.mrp-gallery-trigger:focus-visible,
.mrp-history-thumb-trigger:focus-visible,
.mrp-lightbox-trigger:focus-visible {
    outline: 2px solid var(--mrp-accent);
    outline-offset: 2px;
}

.mrp-update-photo-count {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(17, 17, 17, 0.72);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    pointer-events: none;
}

.mrp-lightbox-trigger--hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.mrp-update-expand {
    margin-top: 8px;
}

.mrp-update-read-more {
    display: inline-block;
    margin-top: 4px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--mrp-accent);
    cursor: pointer;
    list-style: none;
}

.mrp-update-read-more::-webkit-details-marker {
    display: none;
}

.mrp-update-expand[open] .mrp-update-read-more {
    display: none;
}

.mrp-update-full {
    margin: 8px 0 0;
    font-size: 0.8125rem;
    color: var(--mrp-text-muted);
    line-height: 1.45;
}

/* Gallery */
.mrp-gallery {
    list-style: none;
    margin: 0;
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: stretch;
}

.mrp-gallery-item {
    display: flex;
    flex-direction: column;
    min-height: 0;
    border-radius: var(--mrp-card-radius);
    overflow: hidden;
    background: var(--mrp-surface);
    border: 1px solid var(--mrp-border);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.mrp-gallery-item:hover {
    box-shadow: 0 6px 18px rgba(17, 17, 17, 0.1);
    border-color: rgba(224, 178, 0, 0.22);
}

.mrp-gallery-trigger {
    aspect-ratio: 1 / 1;
}

.mrp-gallery-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
    object-position: center;
    display: block;
    background: #EEEEF0;
}

.mrp-gallery-date {
    display: block;
    padding: 8px 10px;
    font-size: 0.6875rem;
    color: var(--mrp-text-muted);
    margin-top: auto;
}

.mrp-gallery-empty {
    padding: 20px 16px;
    text-align: center;
    background: var(--mrp-surface);
    border: 1px dashed var(--mrp-border);
    border-radius: var(--mrp-card-radius);
}

.mrp-gallery-empty--compact {
    padding: 18px 16px;
    border-style: solid;
    background: linear-gradient(180deg, #fffef8 0%, #fff 100%);
}

.mrp-gallery-empty--compact .mrp-gallery-empty-title {
    margin-bottom: 4px;
    font-size: 0.875rem;
}

.mrp-gallery-empty--compact .mrp-gallery-empty-text {
    font-size: 0.75rem;
    max-width: 26em;
}

.mrp-gallery-empty-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
    color: #8A6900;
}

.mrp-gallery-empty-icon .mrp-industry-icon {
    width: 56px;
    height: 56px;
}

.mrp-gallery-empty-title {
    margin: 0 0 6px;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--mrp-black);
}

.mrp-gallery-empty-text {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--mrp-text-muted);
    line-height: 1.45;
    max-width: 28em;
    margin-inline: auto;
}

/* Info cards */
.mrp-info-card {
    background: var(--mrp-surface);
    border: 1px solid var(--mrp-border);
    border-radius: var(--mrp-card-radius);
    box-shadow: var(--mrp-card-shadow);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mrp-info-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 12px var(--mrp-card-pad-x);
    background: var(--mrp-black);
    color: #fff;
    box-sizing: border-box;
}

.mrp-info-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(224, 178, 0, 0.15);
    color: var(--mrp-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mrp-info-card-icon svg {
    width: 18px;
    height: 18px;
}

.mrp-info-card-title {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.mrp-info-card-body {
    margin: 0;
    padding: var(--mrp-card-pad-y) var(--mrp-card-pad-x) 16px;
}

.mrp-info-card-empty {
    margin: 0;
    padding: 14px var(--mrp-card-pad-x);
    font-size: 0.8125rem;
    color: var(--mrp-text-muted);
}

.mrp-info-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 12px 0;
    border-bottom: 1px solid var(--mrp-border);
}

.mrp-info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.mrp-info-row:first-child {
    padding-top: 2px;
}

.mrp-info-row dt {
    margin: 0;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--mrp-text-muted);
}

.mrp-info-row dd {
    margin: 0;
    font-size: 0.875rem;
    color: var(--mrp-text);
}

.mrp-info-row--total dd {
    font-weight: 800;
    font-size: 1.125rem;
    letter-spacing: -0.02em;
    color: var(--mrp-black);
}

.mrp-info-row--strong dd {
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--mrp-black);
}

/* Yardım kartı */
.mrp-module-contact .mrp-info-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mrp-help-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    gap: 0;
}

.mrp-help-lead {
    margin: 0 0 4px;
    font-size: 0.8125rem;
    color: var(--mrp-text-muted);
    line-height: 1.45;
}

.mrp-help-details {
    margin: 0;
    flex: 1;
}

.mrp-help-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--mrp-border);
}

.mrp-help-actions .mrp-btn {
    min-height: 46px;
    height: 46px;
    width: 100%;
    box-sizing: border-box;
}

.mrp-info-row--finance dd {
    font-weight: 700;
    color: var(--mrp-black);
}

/* Geçmiş — timeline */
.mrp-history-panel,
.mrp-module-documents .mrp-doc-list {
    background: var(--mrp-surface);
    border: 1px solid var(--mrp-border);
    border-radius: var(--mrp-card-radius);
    padding: 6px 18px;
    box-shadow: var(--mrp-card-shadow);
}

.mrp-module-timeline .mrp-history {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.mrp-history {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mrp-history-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid var(--mrp-border);
    position: relative;
    transition: background-color 0.2s ease;
}

.mrp-history-item:hover {
    background: linear-gradient(90deg, rgba(224, 178, 0, 0.04), transparent 55%);
}

.mrp-history-item:last-child {
    border-bottom: none;
    padding-bottom: 10px;
}

.mrp-history-marker {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 36px;
    flex-shrink: 0;
}

.mrp-history-marker::after {
    content: "";
    position: absolute;
    top: 38px;
    bottom: -14px;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, rgba(224, 178, 0, 0.45), var(--mrp-border));
}

.mrp-history-item:last-child .mrp-history-marker::after {
    display: none;
}

.mrp-history-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(224, 178, 0, 0.12);
    color: #8A6900;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mrp-history-icon .mrp-industry-icon {
    width: 20px;
    height: 20px;
}

.mrp-history-content {
    min-width: 0;
    padding-top: 2px;
}

.mrp-history-date {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--mrp-accent);
    margin-bottom: 4px;
}

.mrp-history-status {
    display: inline-block;
    margin-bottom: 6px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(224, 178, 0, 0.14);
    color: #7A5E00;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.mrp-history-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.mrp-history-thumb-trigger {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    flex-shrink: 0;
}

.mrp-history-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

.mrp-history-title {
    margin: 0 0 6px;
    font-size: 0.96875rem;
    font-weight: 800;
    line-height: 1.35;
    color: var(--mrp-black);
    letter-spacing: -0.01em;
}

.mrp-history-detail {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--mrp-text-muted);
    line-height: 1.5;
}

.mrp-history-note {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--mrp-text);
}

/* Lightbox */
body.mrp-lightbox-open {
    overflow: hidden;
}

.mrp-lightbox[hidden] {
    display: none !important;
}

.mrp-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mrp-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 8, 10, 0.92);
    backdrop-filter: blur(4px);
}

.mrp-lightbox-shell {
    position: relative;
    z-index: 1;
    width: min(96vw, 1200px);
    height: min(92vh, 900px);
    display: flex;
    flex-direction: column;
    padding: 12px;
}

.mrp-lightbox-stage {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    touch-action: none;
    cursor: zoom-in;
}

.mrp-lightbox-zoom {
    transform-origin: center center;
    transition: transform 0.15s ease-out;
    will-change: transform;
}

.mrp-lightbox-image {
    display: block;
    max-width: 100%;
    max-height: calc(92vh - 120px);
    width: auto;
    height: auto;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
    user-select: none;
    -webkit-user-drag: none;
}

.mrp-lightbox-close,
.mrp-lightbox-nav {
    position: absolute;
    z-index: 2;
    border: 0;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.mrp-lightbox-close:hover,
.mrp-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.22);
}

.mrp-lightbox-close {
    top: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    font-size: 1.5rem;
    line-height: 1;
}

.mrp-lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 999px;
    font-size: 1.75rem;
    line-height: 1;
}

.mrp-lightbox-nav--prev {
    left: 8px;
}

.mrp-lightbox-nav--next {
    right: 8px;
}

.mrp-lightbox-meta {
    margin-top: 10px;
    text-align: center;
    color: rgba(255, 255, 255, 0.88);
}

.mrp-lightbox-caption {
    margin: 0 0 4px;
    font-size: 0.875rem;
    line-height: 1.45;
}

.mrp-lightbox-caption[hidden],
.mrp-lightbox-counter[hidden] {
    display: none;
}

.mrp-lightbox-counter {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.62);
}

.mrp-doc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mrp-doc-item {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--mrp-border);
}

.mrp-doc-badge {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--mrp-canvas);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5625rem;
    font-weight: 700;
    color: var(--mrp-text-muted);
}

.mrp-doc-name {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 600;
}

.mrp-doc-date {
    margin: 0;
    font-size: 0.6875rem;
    color: var(--mrp-text-muted);
}

.mrp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, background-color 0.18s ease;
}

.mrp-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(17, 17, 17, 0.14);
}

.mrp-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.mrp-btn-whatsapp {
    background: var(--mrp-wa);
    color: #fff;
}

.mrp-btn-whatsapp:hover {
    filter: brightness(1.05);
    color: #fff;
}

.mrp-btn-call {
    background: var(--mrp-accent);
    color: var(--mrp-black);
}

.mrp-btn-call:hover {
    filter: brightness(1.04);
    color: var(--mrp-black);
}

.mrp-btn-primary {
    background: var(--mrp-black);
    color: #fff;
}

.mrp-btn-block {
    width: 100%;
}

/* Login */
.mrp-login-band {
    padding: 84px 0 16px;
    background: var(--mrp-black);
    border-bottom: 2px solid var(--mrp-accent);
    text-align: center;
}

.mrp-login-band-title {
    margin: 0;
    color: var(--mrp-accent);
    font-size: 1.25rem;
    font-weight: 700;
}

.mrp-login-band-lead {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.8125rem;
}

.mrp-login-page .mrp-main {
    padding: 20px 0 40px;
}

.mrp-login-card {
    max-width: 420px;
    margin: 0 auto;
    padding: 20px;
    background: var(--mrp-surface);
    border-radius: var(--mrp-radius);
    box-shadow: 0 2px 16px rgba(15, 15, 16, 0.08);
}

.mrp-login-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mrp-login-form label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--mrp-text-muted);
}

.mrp-login-form input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--mrp-border);
    border-radius: 8px;
    font-size: 0.9375rem;
    font-family: inherit;
}

.mrp-field-hint,
.mrp-login-help {
    font-size: 0.75rem;
    color: var(--mrp-text-muted);
}

.mrp-alert-error {
    padding: 10px;
    border-radius: 8px;
    background: #ffebee;
    color: #b71c1c;
    font-size: 0.8125rem;
    margin-bottom: 10px;
}

.mrp-footer-note {
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.5);
}

.mrp-track-page .mrp-footer {
    margin-top: 4px;
}

/* Tablet */
@media (min-width: 640px) {
    .mrp-portal .mrp-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .mrp-track-page .mrp-main {
        padding-top: 88px;
    }

    .mrp-info-row {
        grid-template-columns: 130px 1fr;
        gap: 12px;
        align-items: baseline;
    }
}

@media (max-width: 639px) {
    .mrp-portal .mrp-container {
        padding-left: 12px;
        padding-right: 12px;
        overflow-x: hidden;
    }

    .mrp-command-stack {
        border-radius: 12px;
    }

    .mrp-hero-grid--3,
    .mrp-hero-grid--2 {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .mrp-hero-grid--3 .mrp-hero-cell,
    .mrp-hero-grid--2 .mrp-hero-cell {
        padding: 0 0 12px;
        border-left: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .mrp-hero-grid--3 .mrp-hero-cell:last-child,
    .mrp-hero-grid--2 .mrp-hero-cell:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .mrp-hero-band {
        padding: 12px 14px;
    }

    .mrp-hero-intro {
        padding: 14px 14px 10px;
    }

    .mrp-hero-job {
        font-size: 1.1875rem;
    }

    .mrp-command-zone {
        padding: 0 12px 12px;
    }

    .mrp-module-contact .mrp-info-card {
        width: 100%;
        max-width: 100%;
    }

    .mrp-help-actions {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .mrp-help-actions .mrp-btn {
        min-height: 46px;
        height: 46px;
        font-size: 0.8125rem;
        padding: 10px 8px;
    }

    .mrp-help-details .mrp-info-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .mrp-flow--grid {
        gap: 10px;
    }

    .mrp-flow-block,
    .mrp-info-card,
    .mrp-flow-panel {
        max-width: 100%;
        min-width: 0;
    }
}

@media (min-width: 768px) {
    .mrp-above-fold {
        margin-bottom: 12px;
    }

    .mrp-flow--grid {
        gap: 12px;
    }
}

/* Desktop — 2 kolon grid */
@media (min-width: 1024px) {
    .mrp-track-page .mrp-main {
        padding-top: 92px;
    }

    .mrp-portal .mrp-container {
        max-width: 1080px;
        padding-left: 24px;
        padding-right: 24px;
    }

    .mrp-hero-intro {
        padding: 18px 28px 14px;
    }

    .mrp-hero-band {
        padding: 14px 28px;
    }

    .mrp-hero-band--meta {
        padding-bottom: 14px;
    }

    .mrp-journey-dot {
        width: 14px;
        height: 14px;
    }

    .mrp-journey-line {
        top: 6px;
        height: 2px;
    }

    .mrp-journey-label {
        font-size: 0.625rem;
    }

    .mrp-command-zone {
        padding: 0 28px 12px;
    }

    .mrp-flow--grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px;
        align-items: stretch;
    }

    .mrp-flow--grid > .mrp-flow-block {
        display: flex;
        flex-direction: column;
        min-width: 0;
        min-height: 0;
        height: 100%;
    }

    .mrp-flow--grid > .mrp-flow-block--full {
        grid-column: 1 / -1;
    }

    .mrp-flow--grid > .mrp-flow-block > .mrp-info-card,
    .mrp-flow--grid > .mrp-flow-block > .mrp-flow-panel {
        flex: 1;
        min-height: 100%;
    }

    .mrp-module-production,
    .mrp-module-photos,
    .mrp-module-delivery,
    .mrp-module-payment,
    .mrp-module-technical,
    .mrp-module-contact {
        min-height: 0;
    }

    .mrp-module-contact .mrp-info-card,
    .mrp-module-payment .mrp-info-card,
    .mrp-module-technical .mrp-info-card,
    .mrp-module-delivery .mrp-info-card {
        min-height: 100%;
    }

    .mrp-help-card-body {
        min-height: 0;
    }

    .mrp-flow-panel {
        min-height: 220px;
        height: 100%;
    }

    .mrp-flow-panel:has(.mrp-gallery-empty--compact),
    .mrp-flow-panel:has(.mrp-update-body--empty) {
        min-height: 0;
    }

    .mrp-updates-grid {
        flex: 1;
        overflow-y: auto;
        padding: 10px;
        gap: 10px;
    }

    .mrp-gallery {
        flex: 1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        overflow-y: auto;
        align-content: start;
        padding: 10px;
        gap: 10px;
    }

    .mrp-gallery-img {
        aspect-ratio: 1 / 1;
    }

    .mrp-module-timeline .mrp-history-panel {
        padding: 4px 22px;
    }
}

@media (min-width: 1366px) {
    .mrp-flow--grid {
        gap: 14px;
    }

    .mrp-flow-panel {
        min-height: 320px;
    }
}

@media (min-width: 1100px) {
    .mrp-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}
