@import url("https://fonts.googleapis.com/css2?family=Albert+Sans:wght@400;500;600;700&family=Sora:wght@500;600;700&display=swap");

:root {
    --red: #ed3237;
    --red-dark: #cf2026;
    --ink: #212328;
    --muted: #6d7078;
    --line: #e7e7e7;
    --surface: #ffffff;
    --surface-2: #f5f5f5;
    --surface-3: #eeeeef;
    --success: #168553;
    --warning: #c96b13;
    --danger: #b82f34;
    --shadow: 0 18px 55px rgba(28, 29, 33, .08);
    --heading: "Sora", "Arial Black", sans-serif;
    --body: "Albert Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--surface-2);
    color: var(--ink);
    font-family: var(--body);
    font-size: 15px;
    line-height: 1.55;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.eyebrow {
    color: var(--red);
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .13em;
    line-height: 1.2;
    text-transform: uppercase;
}

.topbar {
    align-items: center;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 24px;
    grid-template-columns: 205px 1fr auto;
    min-height: 80px;
    padding: 13px 24px;
    position: sticky;
    top: 0;
    z-index: 40;
}
.brand {
    align-items: center;
    display: flex;
    height: 53px;
}
.brand img {
    display: block;
    height: 50px;
    max-width: 176px;
    object-fit: contain;
    object-position: left center;
    width: 100%;
}
.topbar__context {
    border-left: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-left: 24px;
}
.topbar__context strong {
    font-family: var(--heading);
    font-size: 16px;
    letter-spacing: -.02em;
}
.topbar__actions,
.reviewer {
    align-items: center;
    display: flex;
}
.topbar__actions { gap: 12px; }
.reviewer { gap: 9px; padding-right: 8px; }
.reviewer__avatar {
    align-items: center;
    background: var(--ink);
    color: #fff;
    display: flex;
    font-family: var(--heading);
    height: 36px;
    justify-content: center;
    width: 36px;
}
.reviewer > span:last-child {
    display: flex;
    flex-direction: column;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}
.reviewer small {
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.button,
.icon-button {
    align-items: center;
    border: 1px solid var(--ink);
    cursor: pointer;
    display: inline-flex;
    font-weight: 700;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    text-decoration: none;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.button:hover, .icon-button:hover { transform: translateY(-1px); }
.button:focus-visible,
.icon-button:focus-visible,
.filter-chip:focus-visible,
.product-card:focus-visible,
.viewport-switcher button:focus-visible {
    outline: 3px solid rgba(237, 50, 55, .25);
    outline-offset: 2px;
}
.button--primary {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}
.button--primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.button--secondary { background: #fff; color: var(--ink); }
.button--secondary:hover { border-color: var(--red); color: var(--red); }
.button--small { min-height: 38px; padding: 7px 13px; }
.button--full { width: 100%; }
.button[disabled] { cursor: wait; opacity: .58; transform: none; }
.icon-button {
    background: var(--surface-2);
    border-color: var(--line);
    height: 38px;
    min-height: 38px;
    padding: 0;
    width: 38px;
}

.progress-strip {
    align-items: center;
    background: var(--ink);
    color: #fff;
    display: grid;
    gap: 20px;
    grid-template-columns: auto minmax(180px, 430px);
    justify-content: space-between;
    min-height: 48px;
    padding: 9px 24px;
    position: sticky;
    top: 80px;
    z-index: 35;
}
.progress-strip__copy { align-items: baseline; display: flex; gap: 18px; }
.progress-strip__copy strong { font-family: var(--heading); font-size: 13px; }
.progress-strip__copy > span { color: #bfc1c6; font-size: 12px; }
.progress-bar { background: #484a50; height: 4px; overflow: hidden; }
.progress-bar span { background: var(--red); display: block; height: 100%; transition: width .25s ease; }

.workspace {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    min-height: calc(100vh - 128px);
}
.catalog-panel {
    background: var(--surface);
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    height: calc(100vh - 128px);
    position: sticky;
    top: 128px;
}
.catalog-panel__header {
    align-items: flex-end;
    display: flex;
    justify-content: space-between;
    padding: 22px 20px 14px;
}
.catalog-panel h1 {
    font-family: var(--heading);
    font-size: 21px;
    letter-spacing: -.04em;
    margin: 5px 0 0;
}
.mobile-close { display: none; }
.search-box {
    align-items: center;
    border: 1px solid var(--line);
    display: flex;
    gap: 8px;
    margin: 0 20px 12px;
    min-height: 44px;
    padding: 0 12px;
}
.search-box span { color: var(--muted); font-size: 23px; line-height: 1; transform: rotate(-20deg); }
.search-box input {
    background: transparent;
    border: 0;
    color: var(--ink);
    min-width: 0;
    outline: 0;
    width: 100%;
}
.search-box:focus-within { border-color: var(--ink); }
.filter-row { display: flex; gap: 7px; padding: 0 20px 15px; }
.filter-chip {
    background: var(--surface-2);
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 10px;
}
.filter-chip:hover { border-color: #cfcfd2; }
.filter-chip.is-active { background: var(--ink); color: #fff; }
.product-list {
    border-top: 1px solid var(--line);
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 6px 0 30px;
}
.product-card {
    align-items: flex-start;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #f0f0f1;
    cursor: pointer;
    display: grid;
    gap: 10px;
    grid-template-columns: 10px minmax(0, 1fr) auto;
    padding: 15px 18px 15px 20px;
    text-align: left;
    transition: background .15s ease, box-shadow .15s ease;
    width: 100%;
}
.product-card:hover { background: #fafafa; }
.product-card.is-active { background: #fff5f5; box-shadow: inset 3px 0 0 var(--red); }
.product-card__content { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.product-card__content strong {
    display: -webkit-box;
    font-family: var(--heading);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: -.02em;
    line-height: 1.42;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.product-card__content small {
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: capitalize;
    white-space: nowrap;
}
.status-dot {
    background: #c9cbd0;
    border-radius: 50%;
    display: block;
    height: 8px;
    margin-top: 5px;
    width: 8px;
}
.status-dot--approved { background: var(--success); }
.status-dot--reviewed { background: var(--success); }
.status-dot--approved_minor_edits { background: #5c9b3d; }
.status-dot--changes_requested,
.status-dot--product_correction { background: var(--red); }
.status-dot--skip { background: var(--warning); }
.empty-state { color: var(--muted); padding: 30px 24px; text-align: center; }

.review-workspace {
    margin: 0 auto;
    max-width: 1320px;
    min-width: 0;
    padding: 34px clamp(22px, 4vw, 64px) 80px;
    width: 100%;
}
.catalog-toggle { display: none; margin-bottom: 18px; }
.product-heading {
    align-items: flex-end;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin-bottom: 22px;
}
.product-heading h2 {
    font-family: var(--heading);
    font-size: clamp(24px, 3vw, 37px);
    letter-spacing: -.055em;
    line-height: 1.13;
    margin: 10px 0 7px;
    max-width: 820px;
}
.product-heading p { color: var(--muted); font-size: 12px; margin: 0; overflow-wrap: anywhere; }
.product-heading__badges { display: flex; flex-wrap: wrap; gap: 7px; }
.badge {
    background: #e9eaec;
    color: #565961;
    display: inline-flex;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    padding: 5px 8px;
    text-transform: uppercase;
}
.product-heading__actions { align-items: center; display: flex; flex-shrink: 0; gap: 10px; }
.viewport-switcher { background: #e9eaec; display: flex; padding: 3px; }
.viewport-switcher button {
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    min-height: 34px;
    padding: 5px 9px;
}
.viewport-switcher button.is-active { background: #fff; box-shadow: 0 2px 7px rgba(0,0,0,.08); }

.preview-card, .review-card {
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.preview-card__bar {
    align-items: center;
    background: #f1f1f2;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    display: grid;
    font-size: 11px;
    gap: 12px;
    grid-template-columns: 1fr auto 1fr;
    min-height: 43px;
    padding: 8px 14px;
}
.preview-card__bar > span:first-child { display: flex; gap: 5px; }
.preview-card__bar i { background: #c6c8cc; border-radius: 50%; display: block; height: 7px; width: 7px; }
.preview-card__bar i:first-child { background: var(--red); }
.preview-card__bar strong { color: var(--ink); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.preview-card__bar > span:last-child { justify-self: end; }
.preview-stage {
    align-items: flex-start;
    background:
        linear-gradient(90deg, rgba(0,0,0,.025) 1px, transparent 1px),
        linear-gradient(rgba(0,0,0,.025) 1px, transparent 1px),
        #e9eaec;
    background-size: 20px 20px;
    display: flex;
    justify-content: center;
    min-height: 420px;
    overflow: auto;
    padding: clamp(14px, 3vw, 32px);
}
.preview-stage iframe {
    background: #fff;
    border: 0;
    box-shadow: 0 16px 42px rgba(22, 23, 26, .12);
    display: block;
    min-height: 520px;
    transition: max-width .25s ease, width .25s ease;
    width: 100%;
}
.preview-stage.is-tablet iframe { max-width: 780px; }
.preview-stage.is-mobile iframe { max-width: 390px; }

.review-card { margin-top: 30px; padding: clamp(22px, 4vw, 42px); }
.review-card__heading {
    align-items: flex-start;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    margin-bottom: 26px;
    padding-bottom: 22px;
}
.review-card h2 {
    font-family: var(--heading);
    font-size: 25px;
    letter-spacing: -.045em;
    margin: 7px 0 0;
}
.save-state {
    background: var(--surface-2);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    padding: 8px 11px;
}
.save-state.is-saved { background: #e8f6ef; color: var(--success); }
.save-state.is-dirty { background: #fff7e9; color: #8a5a00; }
.save-state.is-error { background: #ffe9e9; color: var(--danger); }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 22px; }
.field > span { font-family: var(--heading); font-size: 13px; font-weight: 600; }
.field > small { color: var(--muted); font-size: 12px; margin-top: -4px; }
.field input,
.field select,
.field textarea {
    background: #fff;
    border: 1px solid #d9dade;
    border-radius: 0;
    color: var(--ink);
    outline: 0;
    padding: 12px 13px;
    transition: border .15s ease, box-shadow .15s ease;
    width: 100%;
}
.field input, .field select { min-height: 47px; }
.field textarea { line-height: 1.55; min-height: 120px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(33, 35, 40, .08); }
.field-grid { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.review-meta {
    border-top: 1px solid var(--line);
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 11px;
    gap: 8px 20px;
    margin-top: 8px;
    padding-top: 17px;
}
.review-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; }

.toast {
    background: var(--ink);
    bottom: 24px;
    box-shadow: 0 10px 35px rgba(0,0,0,.22);
    color: #fff;
    font-weight: 700;
    max-width: min(420px, calc(100vw - 32px));
    padding: 14px 18px;
    position: fixed;
    right: 24px;
    z-index: 100;
}
.toast.is-error { background: var(--danger); }
.catalog-backdrop { display: none; }

.access-page {
    align-items: center;
    background:
        linear-gradient(135deg, rgba(237, 50, 55, .09), transparent 32%),
        linear-gradient(315deg, rgba(33, 35, 40, .08), transparent 40%),
        var(--surface-2);
    display: flex;
    min-height: 100vh;
    padding: 28px;
}
.access-card {
    background: #fff;
    border-top: 4px solid var(--red);
    box-shadow: 0 30px 80px rgba(22,23,26,.12);
    margin: auto;
    max-width: 460px;
    padding: 40px;
    width: 100%;
}
.access-card__logo { display: block; height: auto; margin-bottom: 28px; max-width: 205px; width: 55%; }
.access-card h1 { font-family: var(--heading); font-size: 29px; letter-spacing: -.05em; margin: 8px 0; }
.access-card > p { color: var(--muted); margin: 0 0 25px; }
.access-card__note { color: var(--muted); display: block; line-height: 1.5; margin-top: 20px; text-align: center; }
.form-error { background: #fff0f0; border-left: 3px solid var(--red); color: #90282c; margin-bottom: 20px; padding: 12px 14px; }

@media (max-width: 1120px) {
    .topbar { grid-template-columns: 180px 1fr auto; }
    .topbar__context { display: none; }
    .workspace { grid-template-columns: 290px minmax(0, 1fr); }
    .review-workspace { padding-inline: 28px; }
    .product-heading { align-items: flex-start; flex-direction: column; }
    .product-heading__actions { justify-content: space-between; width: 100%; }
}

@media (max-width: 820px) {
    .topbar { gap: 10px; grid-template-columns: 135px 1fr; min-height: 69px; padding: 9px 14px; }
    .brand { height: 45px; }
    .brand img { height: 42px; }
    .reviewer, .topbar__actions .button { display: none; }
    .topbar__actions { justify-self: end; }
    .progress-strip { top: 69px; }
    .progress-strip__copy > span { display: none; }
    .workspace { display: block; }
    .catalog-panel {
        box-shadow: 18px 0 55px rgba(0,0,0,.18);
        height: 100vh;
        left: 0;
        max-width: 360px;
        position: fixed;
        top: 0;
        transform: translateX(-105%);
        transition: transform .22s ease;
        width: 90vw;
        z-index: 80;
    }
    body.catalog-open { overflow: hidden; }
    body.catalog-open .catalog-panel { transform: translateX(0); }
    .mobile-close {
        background: var(--surface-2);
        border: 0;
        cursor: pointer;
        display: block;
        font-size: 24px;
        height: 40px;
        width: 40px;
    }
    .catalog-backdrop {
        background: rgba(20, 21, 24, .45);
        inset: 0;
        opacity: 0;
        pointer-events: none;
        position: fixed;
        transition: opacity .2s ease;
        z-index: 70;
    }
    body.catalog-open .catalog-backdrop { display: block; opacity: 1; pointer-events: auto; }
    .catalog-toggle { display: inline-flex; }
    .review-workspace { padding: 24px 16px 60px; }
    .progress-strip { grid-template-columns: auto minmax(90px, 1fr); padding-inline: 15px; }
    .field-grid { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 560px) {
    .product-heading h2 { font-size: 25px; }
    .product-heading__actions { align-items: stretch; flex-direction: column; }
    .viewport-switcher { justify-content: space-between; }
    .viewport-switcher button { flex: 1; }
    .preview-stage { padding: 8px; }
    .preview-stage iframe { box-shadow: none; }
    .review-card { padding: 22px 16px; }
    .review-card__heading { gap: 15px; }
    .review-card h2 { font-size: 21px; }
    .save-state { white-space: nowrap; }
    .review-actions { align-items: stretch; flex-direction: column; }
    .review-actions .button { width: 100%; }
    .access-page { padding: 15px; }
    .access-card { padding: 30px 22px; }
    .toast { bottom: 15px; right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
