:root {
    color-scheme: light;
    font-family: Arial, Helvetica, sans-serif;
    color: #0b1526;
    background: #f4f6f8;
    font-size: 14px;
    letter-spacing: 0;
    --thor-yellow: #ffcc00;
    --thor-yellow-dark: #d9aa00;
    --thor-ink: #0b1526;
    --thor-muted: #667085;
    --thor-line: #dde3ea;
    --thor-soft: #f4f6f8;
    --thor-dark: #20252f;
    --thor-green: #166534;
    --thor-green-bg: #dcfce7;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; background: var(--thor-soft); }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
button:focus-visible, input:focus-visible, .feed-table-wrap:focus-visible {
    outline: 3px solid rgba(255, 204, 0, .45);
    outline-offset: 2px;
}

.feed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 116px;
    padding: 18px 5.5vw;
    background: #fff;
    border-bottom: 4px solid var(--thor-yellow);
}
.feed-brand { display: flex; align-items: center; }
.feed-logo { display: block; width: 230px; max-height: 82px; object-fit: contain; object-position: left center; }
.feed-access-copy { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.feed-access-copy strong { font-size: 12px; line-height: 1.2; letter-spacing: .35px; color: #111827; }
.feed-access-copy span { color: #475467; font-size: 13px; }

.feed-main {
    max-width: 1480px;
    margin: 0 auto;
    padding: 28px 28px 48px;
}
.feed-main.is-embedded {
    max-width: 100%;
    padding: 14px 10px 28px;
    background: #fff;
}
.feed-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 28px;
    text-align: center;
}
h1 { margin: 0; font-size: 36px; line-height: 1.1; font-weight: 900; color: var(--thor-ink); }
h2 { margin: 0; font-size: 21px; line-height: 1.25; font-weight: 900; color: var(--thor-ink); }
.feed-synced {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    padding: 8px 13px;
    border: 1px solid var(--thor-line);
    border-radius: 999px;
    background: #fff;
    color: #475467;
    font-size: 12px;
    font-weight: 700;
}

.feed-verification {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 26px;
    align-items: center;
    width: min(100%, 900px);
    margin: 0 auto 34px;
    padding: 26px 30px;
    background: #fff;
    border: 1px solid var(--thor-line);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, .08);
}
.verification-icon {
    display: grid;
    place-items: center;
    width: 94px;
    height: 94px;
    margin: 0 auto;
    border-radius: 20px;
    background: #fff7d1;
    color: #e6b500;
    font-size: 46px;
}
.verification-content { min-width: 0; padding-left: 26px; border-left: 1px solid #cfd5dd; }
.verification-copy { margin: 6px 0 18px; color: #344054; font-size: 14px; line-height: 1.45; }
.verification-form-row { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 14px; }
.verification-input-wrap, .feed-search-wrap { position: relative; }
.verification-input-wrap .fa, .feed-search-wrap .fa {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #344054;
    pointer-events: none;
}
.feed-verification input, .feed-search-wrap input {
    width: 100%;
    min-height: 46px;
    border: 1px solid #cbd2db;
    border-radius: 7px;
    padding: 10px 13px 10px 43px;
    background: #fff;
    color: var(--thor-ink);
    font-size: 14px;
}
.feed-verification input[readonly] { background: #f8fafc; color: #475467; }
.feed-primary {
    min-height: 46px;
    border: 1px solid var(--thor-yellow-dark);
    border-radius: 7px;
    padding: 10px 18px;
    background: var(--thor-yellow);
    color: #000;
    font-weight: 900;
    white-space: nowrap;
}
.feed-primary:hover:enabled { filter: brightness(.97); }
.feed-secondary {
    min-height: 34px;
    border: 1px solid #cbd2db;
    border-radius: 999px;
    padding: 7px 12px;
    background: #fff;
    color: #344054;
    font-size: 12px;
    font-weight: 800;
}
.feed-message { margin: 10px 0 0; min-height: 18px; color: #53616a; line-height: 1.45; font-size: 12px; }
.feed-message[data-error="true"] { color: #a02f38; font-weight: 700; }
.verified-state { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border: 1px solid #86efac;
    border-radius: 999px;
    background: var(--thor-green-bg);
    color: var(--thor-green);
    font-size: 12px;
    font-weight: 900;
}

.inventory-view { width: 100%; }
.feed-controls {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}
.feed-category-area { min-width: 0; flex: 1 1 auto; }
.control-label {
    display: block;
    margin-bottom: 10px;
    color: #111827;
    font-size: 13px;
    font-weight: 900;
}
.feed-category-chips { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.feed-category-chip {
    min-height: 38px;
    border: 1px solid #cfd5dd;
    border-radius: 999px;
    padding: 8px 15px;
    background: #fff;
    color: #263241;
    font-size: 12px;
    font-weight: 800;
}
.feed-category-chip:hover { border-color: var(--thor-yellow-dark); }
.feed-category-chip.is-active { background: var(--thor-yellow); border-color: var(--thor-yellow-dark); color: #000; }
.feed-search-actions { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.feed-search-wrap { width: 330px; max-width: 36vw; }
.feed-search-wrap input { min-height: 42px; }
.feed-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    background: #fff;
    color: #344054;
    border: 1px solid #cfd5dd;
    border-radius: 7px;
}
.feed-icon:hover:enabled { background: #fff9da; border-color: var(--thor-yellow-dark); color: #000; }
.feed-icon.is-loading .fa { animation: feed-spin 1s linear infinite; }
.inventory-status { margin: 0 0 10px; min-height: 0; }

.feed-table-wrap {
    overflow: auto;
    width: 100%;
    border: 1px solid var(--thor-line);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
}
.feed-table { width: 100%; min-width: 1120px; border-collapse: collapse; table-layout: fixed; background: #fff; }
.feed-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    text-align: left;
    background: var(--thor-dark);
    color: #fff;
    font-size: 12px;
    line-height: 1.3;
    padding: 14px 13px;
    border-right: 1px solid rgba(255, 255, 255, .08);
    border-bottom: 1px solid #111827;
    white-space: nowrap;
}
.feed-table td {
    padding: 13px;
    border-right: 1px solid #e8ebef;
    border-bottom: 1px solid #e5e7eb;
    font-size: 13px;
    line-height: 1.4;
    overflow-wrap: anywhere;
    vertical-align: middle;
}
.feed-table tbody tr:nth-child(even) { background: #f8f9fa; }
.feed-table tbody tr:hover { background: #fffdf3; }
.feed-table tr:last-child td { border-bottom: 0; }
.feed-table th:last-child, .feed-table td:last-child { border-right: 0; }
.feed-table th:nth-child(1) { width: 14%; }
.feed-table th:nth-child(2) { width: 14%; }
.feed-table th:nth-child(3) { width: 30%; }
.feed-table th:nth-child(4), .feed-table th:nth-child(5), .feed-table th:nth-child(6), .feed-table th:nth-child(7) { width: 9%; }
.feed-table th:nth-child(8) { width: 10%; }
.feed-table td:nth-child(1), .feed-table td:nth-child(2) { font-weight: 800; }
.feed-table .numeric { text-align: center; font-variant-numeric: tabular-nums; }
.feed-table td.total-column { font-weight: 900; background: #fcfcfd; }
.feed-table .empty { text-align: center; color: #53616a; padding: 48px 20px; }

.feed-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding-top: 16px;
    color: #475467;
    font-size: 12px;
}
.pagination-buttons { display: flex; align-items: center; gap: 7px; }
.page-buttons { display: flex; align-items: center; gap: 7px; }
.page-number, .page-ellipsis {
    min-width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    border: 1px solid #cfd5dd;
    border-radius: 7px;
    background: #fff;
    color: #263241;
    font-size: 12px;
    font-weight: 800;
}
.page-number { cursor: pointer; }
.page-number.is-active { background: var(--thor-yellow); border-color: var(--thor-yellow-dark); color: #000; }
.page-ellipsis { border-color: transparent; background: transparent; min-width: 22px; }
.page-arrow { flex-basis: 40px; }

@keyframes feed-spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
    .feed-header { padding: 16px 24px; min-height: 98px; }
    .feed-logo { width: 190px; max-height: 70px; }
    .feed-main { padding: 24px 18px 36px; }
    h1 { font-size: 31px; }
    .feed-verification { grid-template-columns: 100px minmax(0, 1fr); padding: 22px; gap: 18px; }
    .verification-icon { width: 78px; height: 78px; font-size: 38px; }
    .verification-content { padding-left: 18px; }
    .verification-form-row { grid-template-columns: 1fr; }
    .feed-controls { align-items: stretch; flex-direction: column; }
    .feed-search-actions { justify-content: flex-end; }
    .feed-search-wrap { width: 100%; max-width: none; }
}

@media (max-width: 620px) {
    .feed-header { padding: 14px 16px; }
    .feed-logo { width: 160px; }
    .feed-access-copy span { display: none; }
    .feed-access-copy strong { font-size: 10px; }
    .feed-main, .feed-main.is-embedded { padding: 18px 10px 28px; }
    .feed-heading { margin-bottom: 20px; }
    h1 { font-size: 27px; }
    .feed-verification { display: block; padding: 18px; margin-bottom: 24px; }
    .verification-icon { display: none; }
    .verification-content { padding-left: 0; border-left: 0; }
    .feed-category-chips { gap: 7px; }
    .feed-category-chip { padding: 7px 12px; min-height: 35px; }
    .feed-search-actions { width: 100%; }
    .feed-pagination { align-items: flex-start; flex-direction: column; }
    .pagination-buttons { width: 100%; overflow-x: auto; padding-bottom: 3px; }
}

@media (prefers-reduced-motion: reduce) {
    .feed-icon.is-loading .fa { animation: none; }
}

/* Center inventory table column headers */
.feed-table thead th,
.feed-table thead th.numeric {
    text-align: center;
    vertical-align: middle;
}


/* THOR MULTI FILTER / REFRESH CONTROLS */

.feed-filter-heading {
    width: 100%;
    margin: 0 0 14px;
    text-align: center;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .45px;
    color: #475467;
}

.feed-category-chips {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
}

.feed-category-chip {
    border-radius: 999px;
}

.feed-category-chip.is-active {
    background: #ffcc00;
    border-color: #d9aa00;
    color: #000;
}

.feed-clear-filters {
    display: block;
    margin: 12px auto 0;
    padding: 8px 16px;
    border: 1px solid #cdd4db;
    border-radius: 999px;
    background: #fff;
    color: #344054;
    font-weight: 800;
    cursor: pointer;
}

.feed-clear-filters:hover:not(:disabled) {
    border-color: #d9aa00;
    background: #fffdf3;
}

.feed-clear-filters:disabled {
    opacity: .45;
    cursor: default;
}

#refresh-button.feed-refresh-button {
    width: auto;
    min-width: 118px;
    padding: 0 14px;
    gap: 8px;
    border-radius: 6px;
    white-space: nowrap;
}

.feed-refresh-text {
    display: inline-block;
    font-weight: 800;
    font-size: 12px;
}

.feed-table thead th,
.feed-table thead th.numeric {
    text-align: center;
    vertical-align: middle;
}

@media (max-width: 650px) {
    #refresh-button.feed-refresh-button {
        min-width: 42px;
        padding: 0 10px;
    }

    .feed-refresh-text {
        display: none;
    }
}

/* THOR category alignment — full-width centered like approved mockup */
.feed-toolbar {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.feed-category-section,
.feed-filters,
.filters-block {
    flex: 0 0 100%;
    width: 100%;
    max-width: none;
}

#category-options,
.feed-category-chips {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.feed-filter-heading {
    width: 100%;
    text-align: center;
}

.feed-clear-filters {
    margin-left: auto;
    margin-right: auto;
}

/* Search / refresh remain on their own row below categories */
.feed-search-actions {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 8px;
}

/* THOR CATEGORY LAYOUT FINAL — matches approved mockup */

.feed-controls {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    width: 100% !important;
    gap: 14px !important;
    margin-bottom: 18px !important;
}

.feed-category-area {
    display: block !important;
    flex: none !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
}

.control-label,
.feed-filter-heading {
    display: block !important;
    width: 100% !important;
    margin: 0 0 14px !important;
    text-align: center !important;
    text-transform: uppercase !important;
    color: #475467 !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    letter-spacing: .45px !important;
    line-height: 1.2 !important;
}

#category-options,
.feed-category-chips {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    align-content: center !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    max-width: none !important;
    gap: 10px !important;
    margin: 0 auto !important;
}

.feed-category-chip {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    white-space: nowrap !important;
    text-align: center !important;
}

.feed-clear-filters {
    display: block !important;
    width: fit-content !important;
    margin: 12px auto 0 !important;
}

.feed-search-actions {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-end !important;
    align-items: center !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    gap: 9px !important;
}

.feed-search-wrap {
    width: 330px !important;
    max-width: min(100%, 420px) !important;
}

/* Mobile */
@media (max-width: 620px) {
    #category-options,
    .feed-category-chips {
        gap: 7px !important;
    }

    .feed-category-chip {
        white-space: normal !important;
    }

    .feed-search-actions {
        justify-content: stretch !important;
    }

    .feed-search-wrap {
        flex: 1 1 auto !important;
        width: auto !important;
        max-width: none !important;
    }
}


/* THOR PAGE SIZE CONTROL */

.feed-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.feed-pagination-left {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.feed-page-size-control {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    text-transform: none;
    font-size: 12px;
    font-weight: 700;
    color: #475467;
}

.feed-page-size-control select {
    height: 36px;
    min-width: 86px;
    padding: 0 30px 0 11px;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    background: #fff;
    color: #101828;
    font-weight: 700;
    cursor: pointer;
}

.feed-page-size-control select:focus {
    border-color: #d9aa00;
    outline: 3px solid rgba(255, 204, 0, .18);
}

@media (max-width: 650px) {
    .feed-pagination-left {
        width: 100%;
        justify-content: space-between;
    }

    .feed-page-size-control span {
        display: none;
    }
}

/* THOR FINAL TITLE / LAST SYNC LAYOUT */

/* Remove page title area */
.feed-heading {
    display: none !important;
}

/* Search/refresh row also carries Last Synced on the far left */
.feed-search-actions {
    display: flex !important;
    width: 100% !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 9px !important;
}

/* Position sync indicator at left edge above table */
.feed-search-actions #last-synced {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    margin: 0 auto 0 0 !important;
    min-height: 36px !important;
    padding: 8px 12px !important;
    border: 1px solid #d0d5dd !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: #475467 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
}

@media (max-width: 650px) {
    .feed-search-actions {
        flex-wrap: wrap !important;
    }

    .feed-search-actions #last-synced {
        flex: 0 0 100% !important;
        width: fit-content !important;
        margin-right: auto !important;
    }
}

/* THOR YELLOW FINAL */
:root {
    --thor-yellow: #FFCC00;
    --thor-yellow-border: #D9AA00;
}

.feed-primary {
    background: var(--thor-yellow) !important;
    border-color: var(--thor-yellow-border) !important;
    color: #000 !important;
}

.feed-primary:hover {
    background: #F4C400 !important;
}

.feed-category-chip.is-active {
    background: var(--thor-yellow) !important;
    border-color: var(--thor-yellow-border) !important;
    color: #000 !important;
}

.feed-page-size-control select:focus,
input:focus,
input:focus-visible {
    border-color: var(--thor-yellow-border) !important;
    outline-color: var(--thor-yellow) !important;
}

/* THOR BRAND YELLOW — FINAL */
:root {
    --thor-yellow: #FCDC2F !important;
    --thor-yellow-dark: #D9B91F !important;
}

/* Primary verification button */
.feed-primary,
#verify-button {
    background: #FCDC2F !important;
    border-color: #D9B91F !important;
    color: #121212 !important;
}

.feed-primary:hover,
#verify-button:hover {
    background: #F7D51E !important;
    border-color: #CDAE18 !important;
}

/* Selected category filters */
.feed-category-chip.is-active {
    background: #FCDC2F !important;
    border-color: #FCDC2F !important;
    color: #121212 !important;
}

/* Pagination active page */
.feed-pagination .active,
.feed-pagination button.is-active,
.feed-page-button.is-active {
    background: #FCDC2F !important;
    border-color: #FCDC2F !important;
    color: #121212 !important;
}

/* Focus states */
#feed-email:focus,
#feed-search:focus,
.feed-page-size-control select:focus {
    border-color: #FCDC2F !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(252, 220, 47, .22) !important;
}

/* Header accent line */
.feed-header {
    border-bottom-color: #FCDC2F !important;
}

/* THOR MAIL + LIGHTNING VERIFICATION ICON */
.verification-icon.thor-mail-badge {
    width: 104px !important;
    height: 104px !important;
    padding: 0 !important;
    background: transparent !important;
    color: inherit !important;
    border-radius: 24px !important;
}

.thor-mail-badge-svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

@media (max-width: 900px) {
    .verification-icon.thor-mail-badge {
        width: 86px !important;
        height: 86px !important;
    }
}

/* THOR mail notification badge — top right */
.thor-mail-badge-svg circle {
    transform: translate(4px, -20px) scale(0.80);
    transform-box: fill-box;
    transform-origin: center;
}

.thor-mail-badge-svg path:last-of-type {
    transform: translate(5px, -20px) scale(0.68);
    transform-box: fill-box;
    transform-origin: center;
}

/* THOR mail badge — final top-right notification position */
.thor-mail-badge-svg circle {
    transform: translate(8px, -42px) scale(0.72) !important;
    transform-box: fill-box;
    transform-origin: center;
}

.thor-mail-badge-svg path:last-of-type {
    transform: translate(9px, -42px) scale(0.60) !important;
    transform-box: fill-box;
    transform-origin: center;
}

/* THOR mail badge — final sharp SVG positioning.
   Badge geometry is now defined directly in the SVG. */
.thor-mail-badge-svg circle,
.thor-mail-badge-svg path:last-of-type {
    transform: none !important;
    transform-origin: initial !important;
}

.thor-mail-badge-svg {
    shape-rendering: geometricPrecision;
}

/* THOR PNG mail icon */
.verification-icon.thor-mail-badge {
    width: 104px !important;
    height: 104px !important;
    padding: 0 !important;
    background: transparent !important;
    overflow: hidden !important;
}

.thor-mail-badge-img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

/* THOR email icon — fit cleanly inside verification tile */
.verification-icon.thor-mail-badge {
    width: 104px !important;
    height: 104px !important;
    padding: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    background: #fff !important;
    border-radius: 22px !important;
}

.thor-mail-badge-img {
    display: block !important;
    width: 84px !important;
    height: 84px !important;
    max-width: 84px !important;
    max-height: 84px !important;
    object-fit: contain !important;
    object-position: center center !important;
    margin: 0 auto !important;
}

/* THOR email icon — final fit */
.verification-icon.thor-mail-badge {
    width: 104px !important;
    height: 104px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    background: #fff !important;
    border-radius: 22px !important;
}

.thor-mail-badge-img {
    width: 104px !important;
    height: 104px !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center !important;

    /* Crop out the white margin built into the PNG */
    transform: scale(1.35) !important;
    transform-origin: center center !important;
}

/* THOR email icon — final fit */
.verification-icon.thor-mail-badge {
    width: 104px !important;
    height: 104px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    background: #fff !important;
    border-radius: 22px !important;
}

.thor-mail-badge-img {
    width: 104px !important;
    height: 104px !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center !important;

    /* Crop out the white margin built into the PNG */
    transform: scale(1.35) !important;
    transform-origin: center center !important;
}

/* THOR email icon — crisp SVG final */
.verification-icon.thor-mail-badge {
    width: 104px !important;
    height: 104px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
    background: transparent !important;
}

.thor-mail-badge-img {
    display: block !important;
    width: 104px !important;
    height: 104px !important;
    max-width: 104px !important;
    max-height: 104px !important;
    object-fit: contain !important;
    object-position: center !important;
    transform: none !important;
    margin: 0 !important;
}
