@import url("https://fonts.googleapis.com/css2?family=M+PLUS+1p:wght@400;500;600&display=swap");

.site-nav,
body:has(.site-nav),
.price-page {
    --bg: #0b1220;
    --surface: #101a2a;
    --surface-2: #0f1724;
    --border: #263244;
    --text: #f3f6fb;
    --text-muted: #aab4c5;
    --accent: #e84a8a;
    --accent-text: #ff7aae;
    --price-current: #f4f7fb;
    --price-lowest: #7ee787;
    --price-normal: #aab4c5;
    --discount-low-bg: #6e6e78;
    --discount-mid-bg: #cc723a;
    --discount-high-bg: #d0485c;
    --discount-very-high-bg: #d03878;
    --discount-text: #ffffff;
    --font-xs: clamp(11px, 0.72vw, 12px);
    --font-sm: clamp(12px, 0.95vw, 14px);
    --font-md: clamp(13px, 1.05vw, 15px);
    --font-lg: clamp(15px, 1.2vw, 18px);
    --font-xl: clamp(18px, 1.8vw, 28px);
    --history-thumb-width: clamp(176px, 16vw, 220px);
    --price-title-font: 14.5px;
    --watchlist-title-font: clamp(13px, 0.95vw, 15px);
    --price-meta-font: 12px;
    --price-value-font: 14.5px;
    --price-current-font: 19px;
    --price-history-stat-font: clamp(16px, 1.35vw, 21px);
    --price-history-current-font: clamp(24px, 2.1vw, 32px);
    --price-action-font: 12px;
    --space-xs: clamp(3px, 0.35vw, 6px);
    --space-sm: clamp(5px, 0.55vw, 8px);
    --space-md: clamp(7px, 0.8vw, 12px);
    --table-thumb-width: clamp(112px, 12vw, 220px);
    --table-rank-width: clamp(28px, 3.4vw, 44px);
    --table-discount-width: clamp(52px, 6vw, 68px);
    --table-price-width: clamp(112px, 14vw, 190px);
    --table-watch-width: clamp(36px, 4.5vw, 56px);
    --site-bg: var(--bg);
    --site-panel: var(--surface);
    --site-panel-2: var(--surface-2);
    --site-border: var(--border);
    --site-text: var(--text);
    --site-muted: var(--text-muted);
    --site-pink: var(--accent);
    --site-pink-soft: var(--accent);
    --site-action-pink: #c63f78;
    --site-action-pink-border: #d23d79;
    --ui-button-primary-bg: #d03878;
    --ui-button-surface: #152236;
    --ui-button-border: #2a4060;
    --ui-button-text: #c4cdd9;
    --ui-button-muted: #8b99ab;
    --ui-button-disabled-text: #546070;
    --danger-button-bg: #ef4444;
    --danger-button-border: #ef4444;
    --danger-button-shadow: rgba(239, 68, 68, 0.2);
}

/* Watchlist checkboxes use the control surface itself as the active state. */
.watchlist-table .watchlist-select-head input:focus,
.watchlist-table .watchlist-select-head input:focus-visible,
.watchlist-table .watchlist-select-cell input:focus,
.watchlist-table .watchlist-select-cell input:focus-visible,
.watchlist-mobile-heading input:focus,
.watchlist-mobile-heading input:focus-visible {
    outline: none !important;
    outline-offset: 0;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent;
}

.watchlist-table .watchlist-select-head:focus-within,
.watchlist-table .watchlist-select-cell:focus-within,
.watchlist-mobile-heading-select:focus-within {
    outline: none !important;
    box-shadow: none !important;
}

@media (min-width: 768px) and (max-width: 1024px) {
    .site-nav,
    body:has(.site-nav),
    .price-page {
        --price-title-font: 14px;
        --watchlist-title-font: clamp(13px, 1.65vw, 15px);
        --price-meta-font: 12px;
        --price-value-font: 14px;
        --price-current-font: 18px;
    }
}

@media (max-width: 767px) {
    .site-nav,
    body:has(.site-nav),
    .price-page {
        --price-title-font: 14px;
        --watchlist-title-font: clamp(12px, 3.2vw, 14px);
        --price-meta-font: 12px;
        --price-value-font: 14px;
        --price-current-font: 19px;
    }
}

/* Homepage dashboard prototype, promoted from layout-lab variant D. */
body:has(.home-dashboard) .home-dashboard {
    display: grid;
    gap: 12px;
    width: min(1200px, calc(100% - 32px));
    margin: 18px auto 48px !important;
    color: #dfe5ed;
    font-size: 16px;
}

.home-dashboard h1,
.home-dashboard h2,
.home-dashboard h3,
.home-dashboard p { margin: 0; }

.home-featured,
.home-categories,
.home-lowest,
.home-ranking,
.home-login-prompt {
    border: 1px solid #2c3a4d;
    border-radius: 8px;
    background: #101927;
}

.home-featured { padding: 16px; }
.home-featured > header,
.home-categories > header,
.home-lowest > header,
.home-ranking > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.home-featured > header { margin-bottom: 12px; }
.home-featured > header > div,
.home-categories > header > div,
.home-lowest > header > div {
    display: grid;
    gap: 4px;
    min-width: 0;
}
.home-featured h2,
.home-categories h2,
.home-lowest h2,
.home-ranking h2 { color: #edf1f5; font-size: 19px; }
.home-section-lead { color: #9ca8b8; font-size: 12px; line-height: 1.5; }
.home-featured > header span {
    padding: 3px 7px;
    border-radius: 4px;
    color: #d5e8e8;
    background: #24565b;
    font-size: 12px;
}
.home-lowest > header a { color: #8491a2; font-size: 12px; }

.home-featured-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
    gap: 22px;
}
.home-featured-copy {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 16px;
    min-width: 0;
}
.home-featured-image {
    position: relative;
    display: grid;
    place-items: center;
    width: 190px;
    min-height: 150px;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    color: #8390a0;
    background: transparent;
}
.home-featured-image img { width: 100%; height: 100%; object-fit: contain; }
.home-featured-image em {
    position: absolute;
    top: 7px;
    right: 7px;
    padding: 3px 6px;
    border-radius: 3px;
    color: #e9f3e8;
    background: #416e49;
    font-size: 11px;
    font-style: normal;
}
.home-featured-meta { min-width: 0; }
.home-featured-meta h3 { margin: 3px 0 10px; color: #edf1f5; font-size: 18px; line-height: 1.45; }
.home-featured-tags { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 7px; align-items: start; margin-top: 7px; }
.home-featured-tags > span { padding-top: 4px; color: #9ca8b8; font-size: 12px; }
.home-featured-tags > div { display: flex; flex-wrap: wrap; gap: 5px; min-width: 0; }
.home-featured-tags a,
.home-featured-tags em {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 3px 8px;
    border: 1px solid #344459;
    border-radius: 5px;
    color: #d7dee8;
    background: #111b29;
    font-size: 12px;
    font-style: normal;
    line-height: 1.25;
    text-decoration: none;
}
.home-featured-tags a:hover,
.home-featured-tags a:focus-visible { border-color: #975769; color: #f0a0b2; background: #182131; }
.home-featured-side {
    display: grid;
    align-content: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid #2c3a4d;
    border-radius: 6px;
    background: rgba(8, 13, 20, .42);
}
.home-featured-side dl { display: grid; margin: 0; }
.home-featured-side dl div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, .055);
}
.home-featured-side dl div:last-child { border-bottom: 0; }
.home-featured-side dt { color: #9ca8b8; font-size: 13px; }
.home-featured-side dd { margin: 0; color: #edf1f5; font-size: 21px; font-weight: 600; }
.home-featured-side dl div:first-child dd,
.home-featured-side dl div:last-child dd { color: #e47793; }
.home-featured-actions { display: grid; grid-template-columns: 1fr 1.15fr; gap: 10px; }
.home-featured-actions > a,
.home-featured-watch {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border: 1px solid #975769;
    border-radius: 5px;
    color: #e47793;
    font-size: 13px;
    text-decoration: none;
}
.home-featured-watch { gap: 7px; border-color: #2c3a4d; color: #aeb8c6; }
.home-featured-watch .watchlist-control { margin: 0; }
.home-featured-watch .watchlist-star-button { width: 30px; min-width: 30px; height: 30px; min-height: 30px; padding: 0; border: 0; background: transparent; }

.home-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid #2c3a4d;
    border-radius: 8px;
    background: #0f1826;
}
.home-dashboard-stats div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 20px; border-right: 1px solid #2c3a4d; }
.home-dashboard-stats div:last-child { border-right: 0; }
.home-dashboard-stats span { color: #9ca8b8; font-size: 12px; }
.home-dashboard-stats strong { color: #edf1f5; font-size: 20px; }
.home-dashboard-stats small { margin-left: 4px; color: #9ca8b8; font-size: 12px; }

.home-dashboard-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.home-categories,
.home-lowest { min-width: 0; padding: 14px; }
.home-categories > header,
.home-lowest > header { margin-bottom: 9px; }
.home-category-table { overflow: hidden; border: 1px solid #2c3a4d; border-radius: 5px; }
.home-category-head,
.home-category-table > a {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) .65fr .7fr;
    gap: 8px;
    align-items: center;
    min-height: 39px;
    padding: 5px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, .055);
}
.home-category-head { color: #9ca8b8; background: #172233; font-size: 12px; }
.home-category-table > a { color: #dfe5ed; text-decoration: none; }
.home-category-table > a:last-child { border-bottom: 0; }
.home-category-table > a:hover { background: #162131; }
.home-category-name { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; min-width: 0; font-size: 13px; }
.home-category-name i {
    display: inline-flex;
    align-items: center;
    min-height: 19px;
    padding: 2px 5px;
    border: 1px solid currentColor;
    border-radius: 3px;
    font-size: 10px;
    font-style: normal;
    line-height: 1;
}
.home-category-name .is-general { color: #bce6bd; background: #315d3b; }
.home-category-name .is-r18 { color: #ee8296; background: rgba(130, 43, 57, .24); }
.home-category-name .is-bl { color: #7fb9f3; background: rgba(40, 86, 135, .28); }
.home-category-name .is-tl { color: #c99af2; background: rgba(92, 48, 128, .28); }
.home-category-table b { color: #aeb8c6; font-size: 13px; font-weight: 400; }
.home-category-table em { padding: 4px 7px; border: 1px solid #8f3158; border-radius: 4px; color: #e36a98; font-size: 12px; font-style: normal; text-align: center; }

.home-work-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 62px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .055);
    color: #dfe5ed;
    text-decoration: none;
}
.home-work-item:last-child { border-bottom: 0; }
.home-work-image { display: grid; place-items: center; width: 72px; height: 58px; overflow: hidden; border-radius: 4px; color: #7f8b9b; background: #182536; font-size: 9px; }
.home-work-image img { width: 100%; height: 100%; object-fit: cover; }
.home-work-info { display: grid; min-width: 0; }
.home-work-info b { overflow: hidden; font-size: 14px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.home-work-info small,
.home-work-info time { color: #9ca8b8; font-size: 12px; }
.home-work-price { display: grid; justify-items: end; min-width: 0; color: #e47793; font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.home-work-price > strong { color: #e47793; font-size: 16px; white-space: nowrap; }
.home-empty { padding: 18px 0; color: #9ca8b8; font-size: 13px; }

.home-login-prompt { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px 16px; }
.home-login-prompt > span { color: #9ca8b8; font-size: 27px; }
.home-login-prompt > div { display: grid; }
.home-login-prompt strong { font-size: 13px; font-weight: 500; }
.home-login-prompt small { color: #9ca8b8; font-size: 12px; }
.home-login-prompt a { padding: 7px 14px; border: 1px solid #8f3158; border-radius: 4px; color: #e36a98; font-size: 12px; text-decoration: none; }

.home-ranking { display: grid; gap: 10px; padding: 14px; overflow: hidden; }
.home-ranking > div { min-width: 0; width: 100%; overflow: hidden; contain: inline-size; }
.home-ranking h2 small { color: #9ca8b8; font-size: 12px; }
.home-ranking p { margin-top: 2px; color: #9ca8b8; font-size: 12px; }

@media (max-width: 1024px) {
    .home-featured-grid { grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr); gap: 14px; }
    .home-featured-copy { grid-template-columns: 150px minmax(0, 1fr); gap: 12px; }
    .home-featured-image { width: 150px; min-height: 130px; }
    .home-featured-side { padding: 10px; }
    .home-featured-side dl div { padding: 8px 3px; }
    .home-featured-side dd { font-size: 17px; }
    .home-dashboard-columns { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
    body:has(.home-dashboard) .home-dashboard { width: calc(100% - 20px); margin-top: 12px !important; font-size: 14px; }
    .home-featured { padding: 10px; }
    .home-featured > header { align-items: flex-start; }
    .home-featured h2 { font-size: 17px; }
    .home-featured > header span,
    .home-section-lead { font-size: 10px; }
    .home-featured-grid { grid-template-columns: 1fr; gap: 10px; }
    .home-featured-copy { grid-template-columns: 132px minmax(0, 1fr); gap: 10px; }
    .home-featured-image { width: 132px; min-height: 0; aspect-ratio: 3 / 4; }
    .home-featured-meta h3 { margin-top: 0; font-size: 15px; }
    .home-featured-tags { grid-template-columns: 1fr; gap: 3px; margin-top: 6px; }
    .home-featured-tags > span { padding-top: 0; font-size: 10px; }
    .home-featured-tags a,
    .home-featured-tags em { min-height: 23px; padding: 2px 6px; font-size: 10px; }
    .home-featured-side { padding: 8px; }
    .home-featured-side dl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .home-featured-side dl div { display: grid; gap: 2px; justify-items: center; padding: 7px 3px; border-right: 1px solid rgba(255, 255, 255, .055); border-bottom: 0; text-align: center; }
    .home-featured-side dl div:last-child { border-right: 0; }
    .home-featured-side dt { font-size: 9px; }
    .home-featured-side dd { font-size: 14px; }
    .home-featured-actions > a,
    .home-featured-watch { font-size: 11px; }
    .home-dashboard-stats div { display: grid; gap: 2px; justify-items: center; padding: 8px 4px; text-align: center; }
    .home-dashboard-stats span,
    .home-dashboard-stats small { font-size: 9px; }
    .home-dashboard-stats strong { font-size: 13px; }
    .home-categories,
    .home-lowest { padding: 10px; }
    .home-categories h2,
    .home-lowest h2,
    .home-ranking h2 { font-size: 16px; }
    .home-category-head {
        display: grid;
        grid-template-columns: minmax(0, 1.65fr) .65fr 34px;
        min-width: 0;
        gap: 4px;
        min-height: 30px;
        padding: 6px 4px 7px;
        font-size: 10px;
    }
    .home-category-table > a { grid-template-columns: minmax(0, 1.65fr) .65fr 34px; min-width: 0; gap: 4px; padding-inline: 4px; }
    .home-category-name,
    .home-category-table b { font-size: 11px; }
    .home-category-name i { font-size: 8px; }
    .home-category-table em { overflow: hidden; color: transparent; white-space: nowrap; }
    .home-category-table em::after { display: grid; place-items: center; color: #e36a98; content: "›"; }
    .home-work-item { grid-template-columns: 60px minmax(0, 1fr) 82px; }
    .home-work-image { width: 60px; height: 54px; }
    .home-work-info b { font-size: 12px; }
    .home-work-info small,
    .home-work-info time { font-size: 10px; }
    .home-work-price > strong { font-size: 14px; text-align: right; }
    .home-login-prompt { grid-template-columns: 28px minmax(0, 1fr) auto; padding: 10px; }
    .home-login-prompt strong { font-size: 10px; }
    .home-login-prompt small,
    .home-login-prompt a { font-size: 9px; }
    .home-ranking { padding: 10px; }
}

/* Keep the home layout isolated from Twenty Twenty-Four block styles. */
body:has(.home) .entry-content .home,
body:has(.home) .home {
    position: relative;
    left: 50%;
    width: calc(100vw - 32px) !important;
    max-width: 1180px !important;
    margin: 24px 0 56px !important;
    transform: translateX(-50%);
}

body:has(.home) .home h1,
body:has(.home) .home h2,
body:has(.home) .home h3 {
    color: #edf2f8 !important;
}

@media (max-width: 780px) {
    body:has(.home) .entry-content .home,
    body:has(.home) .home {
        width: calc(100vw - 20px) !important;
        margin-top: 12px !important;
    }
}

/* Watchlist bulk selection and deletion controls. */
.watchlist-bulk-form {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 12px;
}

.watchlist-bulk-delete-button {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-color: var(--danger-button-border);
    background: var(--danger-button-bg);
    color: #fff;
    box-shadow: 0 4px 4px var(--danger-button-shadow);
    font-size: var(--font-xs);
    white-space: nowrap;
}

.watchlist-bulk-delete-button:disabled {
    border-color: var(--ui-button-border);
    background: var(--ui-button-surface);
    color: var(--ui-button-disabled-text);
    box-shadow: none;
    opacity: .4;
    cursor: not-allowed;
}

.watchlist-table .watchlist-select-head,
.watchlist-table .watchlist-select-cell {
    width: 48px;
    padding-right: 8px;
    padding-left: 8px;
    text-align: center;
}

.watchlist-table .watchlist-select-cell {
    border-right: 1px solid rgba(255, 255, 255, 0.055);
}

.watchlist-table .watchlist-select-head input,
.watchlist-table .watchlist-select-cell input {
    width: 19px;
    height: 19px;
    margin: 0;
    accent-color: var(--accent);
    vertical-align: middle;
    cursor: pointer;
}

.watchlist-table .watchlist-select-head input:focus-visible,
.watchlist-table .watchlist-select-cell input:focus-visible {
    outline: none;
    box-shadow: none;
}

.watchlist-bulk-delete-modal[hidden] {
    display: none;
}

.watchlist-bulk-delete-modal {
    position: fixed;
    inset: 0;
    z-index: 22000;
    display: grid;
    place-items: center;
    padding: 24px;
}

.watchlist-bulk-delete-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}

.watchlist-bulk-delete-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 480px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 28px;
    overflow: hidden;
    border: 1px solid #2a4060;
    border-radius: 12px;
    background: #0d1625;
    box-shadow: 0 12px 12px rgba(0, 0, 0, 0.25);
}

.watchlist-bulk-delete-dialog p {
    margin: 0;
    color: var(--text-muted);
    line-height: 22px;
}

.watchlist-bulk-delete-dialog #watchlist-bulk-delete-title {
    min-width: 0;
    color: var(--text);
    font-size: 18px;
    font-weight: 700;
    line-height: 27px;
}

.watchlist-bulk-delete-dialog .watchlist-bulk-delete-description {
    width: 100%;
    font-size: 14px;
}

.watchlist-bulk-delete-dialog [data-watchlist-bulk-delete-count] {
    color: inherit;
    font-size: inherit;
    line-height: 22px;
    font-weight: inherit;
}

.watchlist-bulk-delete-actions {
    display: flex;
    width: 100%;
    justify-content: flex-end;
    gap: 12px;
}

.watchlist-bulk-delete-actions .action-button {
    min-height: 40px;
    padding: 0 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
}

.watchlist-bulk-delete-actions .ui-button--secondary {
    border-color: var(--ui-button-border);
    background: var(--ui-button-surface);
    color: var(--ui-button-text);
}

.watchlist-bulk-delete-actions .ui-button--secondary:hover,
.watchlist-bulk-delete-actions .ui-button--secondary:focus-visible {
    border-color: var(--accent-text);
    background: #1b1924;
    color: var(--text);
}

.watchlist-bulk-delete-actions .action-button.danger {
    min-width: 112px;
    padding-right: 24px;
    padding-left: 24px;
    border-color: var(--danger-button-border);
    background: var(--danger-button-bg);
    color: #fff;
    box-shadow: 0 4px 4px var(--danger-button-shadow);
}

.watchlist-bulk-delete-actions .action-button.danger:hover,
.watchlist-bulk-delete-actions .action-button.danger:focus-visible {
    border-color: var(--danger-button-border);
    background: var(--danger-button-bg);
    color: #fff;
    filter: brightness(1.08);
}

.watchlist-bulk-delete-actions .action-button:focus,
.watchlist-bulk-delete-actions .action-button:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

@media (max-width: 600px) {
    .watchlist-bulk-delete-modal {
        padding: 12px;
    }

    .watchlist-bulk-delete-dialog {
        width: 100%;
        gap: 20px;
        padding: 20px;
    }

    .watchlist-bulk-delete-dialog #watchlist-bulk-delete-title {
        font-size: 17px;
        line-height: 25px;
    }

    .watchlist-bulk-delete-dialog .watchlist-bulk-delete-description {
        font-size: 14px;
    }

    .watchlist-bulk-delete-actions {
        gap: 12px;
    }

    .watchlist-bulk-delete-actions .action-button {
        min-width: 0;
        flex: 1 1 0;
        min-height: 40px;
        padding-inline: 10px;
        font-size: var(--font-sm);
    }
}

@media (min-width: 768px) {
    .watchlist-table th:nth-child(1),
    .watchlist-table td:nth-child(1) {
        width: 48px;
    }

    .watchlist-table th:nth-child(2),
    .watchlist-table td:nth-child(2) {
        width: 170px;
    }

    .watchlist-table th:nth-child(4),
    .watchlist-table td:nth-child(4) {
        width: 190px;
    }

    .watchlist-table th:nth-child(5),
    .watchlist-table td:nth-child(5) {
        width: 72px;
    }

    .watchlist-table th:nth-child(6),
    .watchlist-table td:nth-child(6) {
        width: 160px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .watchlist-table .watchlist-select-head,
    .watchlist-table .watchlist-select-cell,
    .watchlist-table th:nth-child(1),
    .watchlist-table td:nth-child(1) {
        width: 50px;
    }

    .watchlist-table th:nth-child(2),
    .watchlist-table td:nth-child(2) {
        width: 128px;
    }

    .watchlist-table th:nth-child(4),
    .watchlist-table td:nth-child(4) {
        width: 144px;
    }

    .watchlist-table th:nth-child(5),
    .watchlist-table td:nth-child(5) {
        width: 70px;
    }

    .watchlist-table th:nth-child(6),
    .watchlist-table td:nth-child(6) {
        width: 140px;
    }
}

@media (max-width: 767px) {
    .price-table.watchlist-table .watchlist-row {
        grid-template-columns: 22px clamp(100px, 25vw, 205px) minmax(0, 1fr) 44px;
        column-gap: 8px;
    }

    .watchlist-table .watchlist-select-cell {
        grid-column: 1;
        grid-row: 1 / span 3;
        align-self: center;
        width: auto;
        padding: 0;
        border: 0;
        text-align: center;
    }

    .watchlist-table .watchlist-select-cell input {
        width: 18px;
        height: 18px;
    }

    .watchlist-table .thumb {
        grid-column: 2;
    }

    .watchlist-table .work-title,
    .watchlist-table .price-summary-cell,
    .watchlist-table .watchlist-notification-cell {
        grid-column: 3;
    }

    .watchlist-table .watchlist-inline-action {
        right: 12px;
    }
}

/* Final watchlist mobile overrides: do not let the shared price-table alignment reposition the card price stack. */
@media (max-width: 767px) {
    .price-table.watchlist-table .watchlist-row {
        min-height: 132px !important;
        box-sizing: border-box;
        padding: 14px 12px !important;
    }

    .price-table.watchlist-table .watchlist-price-stack .price-current-value {
        font-size: var(--price-value-font) !important;
    }

    .price-table.watchlist-table .watchlist-price-stack .price-lowest-cell {
        display: none !important;
    }

    .price-table.watchlist-table .watchlist-mobile-discount {
        display: inline-flex !important;
        min-width: 0;
        align-items: center;
        justify-content: center;
        min-height: 0;
        padding: 1px 5px !important;
        border: 0 !important;
        border-radius: 4px;
        color: var(--discount-text) !important;
        font-size: 10px !important;
        font-weight: 700;
        line-height: 1.2;
    }

    .price-table.watchlist-table .watchlist-mobile-discount.discount-tier-1 {
        background: var(--discount-low-bg) !important;
    }

    .price-table.watchlist-table .watchlist-mobile-discount.discount-tier-25 {
        background: var(--discount-mid-bg) !important;
    }

    .price-table.watchlist-table .watchlist-mobile-discount.discount-tier-50 {
        background: var(--discount-high-bg) !important;
    }

    .price-table.watchlist-table .watchlist-mobile-discount.discount-tier-75 {
        background: var(--discount-very-high-bg) !important;
    }

    .price-table.watchlist-table .watchlist-inline-action {
        top: 14px !important;
    }

    .price-table.watchlist-table .price-discount-cell {
        display: none !important;
    }

    .price-table.watchlist-table .price-summary-cell {
        display: block !important;
        position: static !important;
        min-height: 20px;
        padding-block: 0;
    }

    .price-table.watchlist-table .watchlist-price-stack .price-official-cell {
        display: inline-flex !important;
    }

    .price-table.watchlist-table .watchlist-price-stack {
        position: static !important;
        top: auto !important;
        right: auto !important;
        left: auto !important;
        display: flex;
        width: 100%;
        height: auto !important;
        min-height: 0;
        transform: none !important;
    }
}

/* Home */
body:has(.home) .wp-block-post-title { display: none; }
body:has(.home) main.wp-block-group { padding-top: 0; }
.home { width: min(1180px, calc(100% - 32px)); margin: 24px auto 56px; color: #dbe3ef; }
.home h1,.home h2,.home h3,.home p { margin-top: 0; }.home-watch>a{ display:inline-flex; align-items:center; justify-content:center; min-height:42px; padding:0 24px; border:1px solid #d84e76; border-radius:7px; color:#f06a8f; font-weight:700; text-decoration:none; }
.home-watch{ margin-top:18px; padding:22px; border:1px solid #23364c; border-radius:10px; background:linear-gradient(135deg,#122237,#0d1a2b); box-shadow:0 12px 30px rgba(0,0,0,.16); }
.home-watch { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.home-watch>div{ display:flex; align-items:flex-start; gap:13px; }
.home-watch h2{ margin-bottom:4px; color:#edf2f8; font-size:24px; }
.home-watch p{ margin-bottom:0; color:#9daabd; font-size:14px; }
.home a:hover { filter:brightness(1.12); }
@media (max-width:780px) {
  .home { width:min(100% - 20px,1180px); margin-top:12px; }
  .home-watch { align-items:flex-start; flex-direction:column; }
  .home-watch>a { width:100%; }
}

body:has(.site-nav) {
    background: var(--bg);
    color: var(--text);
}

body:has(.not-found-page) {
    background: #101927;
}

body:has(.not-found-page) #header,
body:has(.not-found-page) #header + hr,
body:has(.not-found-page) #footer,
body:has(.not-found-page) hr:has(+ #footer) {
    display: none !important;
}

.not-found-page {
    box-sizing: border-box;
    display: grid;
    min-height: max(560px, calc(100vh - 74px));
    place-items: center;
    padding: 56px 24px 88px;
}

.not-found-content {
    display: flex;
    width: min(100%, 815px);
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.not-found-code {
    margin: 0;
    color: #eef2f9;
    font-family: var(--site-font-sans, "M PLUS 1p", sans-serif);
    font-size: 32px;
    font-weight: 400;
    line-height: 1.5;
}

.not-found-message {
    margin: 12px 0 0;
    color: #8b99ab;
    font-family: var(--site-font-sans, "M PLUS 1p", sans-serif);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
}

body:has(.not-found-page) .not-found-home-button {
    min-width: 188px;
    min-height: 42px;
    margin-top: 64px;
    padding: 0 24px;
    border-color: var(--site-action-pink-border);
    background: var(--site-action-pink);
    color: #fff;
    font-family: var(--site-font-sans);
    font-size: 14px;
}

body:has(.not-found-page) .not-found-home-button:hover,
body:has(.not-found-page) .not-found-home-button:focus-visible {
    border-color: #e84a8a;
    background: #e2485d;
    color: #fff;
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 10000;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr) auto;
    min-height: 74px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: none;
    transform: translateY(0);
    transition: transform 0.18s ease;
    backdrop-filter: none;
}

body.admin-bar .site-nav {
    top: 32px;
}

body.site-nav-hidden .site-nav {
    transform: translateY(0);
}

body:has(.site-nav) header.wp-block-template-part,
body:has(.site-nav) footer.wp-block-template-part {
    display: none;
}

body:has(.site-nav) .site-footer {
    margin-top: 40px;
    padding: 18px 22px 26px;
    color: rgba(232, 237, 246, 0.72);
    background: #080d15;
    border-top: 1px solid var(--site-border);
    font-size: 12px;
    font-weight: 400;
}

body:has(.site-nav) .site-footer-inner {
    max-width: 1480px;
    margin: 0 auto;
}

body:has(.site-nav) .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(194, 202, 218, 0.18);
    font-size: 13px;
    font-weight: 400;
}

body:has(.site-nav) .footer-links a {
    color: rgba(232, 237, 246, 0.86) !important;
    text-decoration: none !important;
    font-weight: 400;
}

body:has(.site-nav) .footer-links a:hover,
body:has(.site-nav) .footer-links a:focus-visible {
    color: var(--site-pink-soft) !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

body:has(.site-nav) .footer-notes {
    display: grid;
    gap: 4px;
    font-size: 12px;
    line-height: 1.7;
    font-weight: 400;
}

body:has(.site-nav) .footer-notes p {
    margin: 0;
    color: rgba(232, 237, 246, 0.72);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.7;
}

@media (max-width: 1024px) {
    body:has(.site-nav) .site-footer { font-size: 11.5px; }
    body:has(.site-nav) .footer-links { font-size: 12px; }
    body:has(.site-nav) .footer-notes,
    body:has(.site-nav) .footer-notes p { font-size: 11.5px; }
}

@media (max-width: 680px) {
    body:has(.site-nav) .site-footer { padding: 14px 12px 20px; font-size: 11.5px; }
    body:has(.site-nav) .footer-links { gap: 6px; font-size: 11.5px; }
    body:has(.site-nav) .footer-notes,
    body:has(.site-nav) .footer-notes p { font-size: 11.5px; line-height: 1.65; }
}

body:has(.site-nav) .entry-content .content-page,
body:has(.site-nav) .content-page {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% + 48px);
    max-width: min(calc(100vw - 48px), 1440px) !important;
    margin: 32px auto 40px;
    padding: 24px;
    color: rgba(232, 237, 246, 0.9);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: none;
    font-size: 14px;
    font-weight: 400;
}

body:has(.site-nav) .content-kicker {
    margin: 0 0 8px;
    color: var(--site-pink-soft);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body:has(.site-nav) .content-page h1 {
    margin: 0 0 18px;
    color: #f4f7fb;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.35;
}

body:has(.site-nav) .content-page h2 {
    margin: 28px 0 10px;
    color: #f4f7fb;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.45;
}

body:has(.site-nav) .content-page p,
body:has(.site-nav) .content-page li {
    color: rgba(232, 237, 246, 0.82);
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.9 !important;
}

body:has(.site-nav) .content-page p {
    margin: 0 0 10px;
}

body:has(.site-nav) .content-page ul {
    margin: 8px 0 0;
    padding-left: 1.3em;
}

body:has(.site-nav) .content-page a {
    color: #8ab4f8;
    text-decoration: underline;
    text-decoration-color: currentColor;
    text-underline-offset: 2px;
}

body:has(.site-nav) .content-page a:hover,
body:has(.site-nav) .content-page a:focus-visible {
    color: #aecbfa;
}

body:has(.content-page) .wp-block-post-title,
body:has(.content-page) .entry-title,
body:has(.content-page) main > .wp-block-group:has(.wp-block-post-title) {
    display: none !important;
}

.site-logo {
    display: flex;
    min-height: 74px;
    align-items: center;
    justify-content: flex-start;
    padding: 0 24px;
    background: #06101b;
    color: var(--site-text);
    text-decoration: none;
    border-right: 1px solid var(--site-border);
}

.site-logo img {
    display: block;
    width: min(184px, 100%);
    max-height: 45px;
    object-fit: contain;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.28));
}
.site-account {
    display: flex;
    align-items: stretch;
}

.site-account {
    justify-content: flex-end;
}
.site-icon-link {
    box-sizing: border-box;
    display: inline-flex;
    min-width: 136px;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    color: #d9d1df;
    text-decoration: none;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}
.site-icon-link:hover,
.site-icon-link:focus-visible{
    color: #fff;
    background: #18121f;
}

.site-icon-link {
    min-width: 112px;
    flex-direction: column;
    gap: 5px;
    border-left: 1px solid var(--site-border);
    color: #cfc6d6;
    font-size: 11px;
}

.site-icon-link span[aria-hidden="true"] {
    color: var(--site-pink-soft);
    font-size: 21px;
    font-weight: 800;
    line-height: 1;
}

.site-icon-symbol {
    display: inline-flex;
    width: 19px;
    height: 19px;
    align-items: center;
    justify-content: center;
}

.site-icon-symbol svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.ranking-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
    gap: 12px;
    background: #090a0d;
    color: #e9edf2;
    padding: 14px;
    border: 1px solid #20242c;
}

.ranking-card {
    min-width: 0;
    overflow: hidden;
    background: #111319;
    border: 1px solid #242936;
    border-radius: 4px;
}

.ranking-thumb {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #050609;
    color: #7e8797;
    text-decoration: none;
}

.ranking-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.ranking-position {
    position: absolute;
    left: 6px;
    top: 6px;
    min-width: 34px;
    padding: 3px 6px;
    background: rgba(0, 0, 0, 0.78);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.ranking-noimage {
    display: grid;
    height: 100%;
    place-items: center;
    font-size: 12px;
}

.ranking-card-body {
    padding: 8px;
}

.ranking-card h3 {
    margin: 0 0 7px;
    font-size: 13px;
    line-height: 1.35;
}

.ranking-card h3 a {
    color: #f2f5f8;
    text-decoration: none;
}

.ranking-card h3 a:hover {
    color: #83d4ff;
}

.ranking-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    color: #a9b1bf;
    font-size: 11px;
    line-height: 1.3;
}

.ranking-meta span {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.works-empty {
    color: #a9b1bf;
}

.work-detail {
    margin: 28px 0 0;
    padding: 14px;
    background: #090a0d;
    color: #e9edf2;
    border: 1px solid #20242c;
}

.work-detail-main {
    display: grid;
    grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.work-detail-cover {
    display: block;
    overflow: hidden;
    background: #050609;
    border: 1px solid #242936;
    border-radius: 4px;
}

.work-detail-cover img {
    width: 100%;
    display: block;
    height: auto;
}

.work-detail-body {
    min-width: 0;
}

.work-detail h2,
.work-detail-review-summary h3 {
    margin: 0 0 10px;
    color: #f2f5f8;
    font-size: 18px;
    line-height: 1.35;
}

.work-detail-review-summary h3 {
    margin-top: 16px;
    font-size: 15px;
}

.work-detail-specs {
    display: grid;
    gap: 7px;
    margin: 0;
}

.work-detail-specs div {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
    padding-bottom: 7px;
    border-bottom: 1px solid #20242c;
}

.work-detail-specs dt {
    color: #a9b1bf;
    font-size: 12px;
}

.work-detail-specs dd {
    margin: 0;
    color: #f2f5f8;
    overflow-wrap: anywhere;
}

.work-detail-review-summary p,
.work-detail-ad-note {
    color: #c5ccd8;
    font-size: 13px;
    line-height: 1.7;
}

.work-detail-buy {
    display: inline-flex;
    margin-top: 16px;
    padding: 10px 14px;
    background: #e2485d;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.work-detail-buy:hover {
    background: #ff5f72;
    color: #fff;
}

.work-detail-samples {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.work-detail-samples img {
    width: 100%;
    display: block;
    height: auto;
    background: #050609;
    border: 1px solid #242936;
    border-radius: 4px;
}

.work-detail-ad-note {
    margin: 14px 0 0;
    color: #a9b1bf;
}

.price-page {
    box-sizing: border-box;
    position: relative;
    left: auto;
    width: calc(100% + 48px) !important;
    max-width: min(calc(100vw - 48px), 1440px) !important;
    transform: none;
    background: rgba(9, 7, 13, 0.96);
    color: var(--site-text);
    border: 1px solid var(--site-border);
    padding: 18px;
    overflow-x: auto;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

body:has(.price-page) {
    --wp--style--global--content-size: min(100%, 1440px);
    --wp--style--global--wide-size: min(100%, 1440px);
    --wp--style--root--padding-right: 24px;
    --wp--style--root--padding-left: 24px;
}

body:has(.price-page) .wp-site-blocks,
body:has(.price-page) main,
body:has(.price-page) .wp-block-group,
body:has(.price-page) .entry-content.wp-block-post-content {
    background: transparent;
}

body:has(.price-page) .wp-block-post-title,
body:has(.price-page) .entry-title,
body:has(.price-page) h1,
body:has(.price-page) .entry-content.wp-block-post-content {
    width: 100%;
    max-width: min(calc(100vw - 48px), 1440px) !important;
    box-sizing: border-box;
}

body:has(.price-page) .wp-block-post-title,
body:has(.price-page) .entry-title,
body:has(.price-page) h1 {
    color: var(--site-text) !important;
    text-shadow: 0 0 28px rgba(255, 79, 163, 0.18);
}

.price-page p {
    color: #c5bccd;
    line-height: 1.7;
}

.price-page-head {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 12px;
}

.price-page-head p {
    margin: 0;
}

.price-search {
    display: grid;
    gap: 7px;
    margin: 0 0 14px;
    padding: 12px;
    background: var(--site-panel);
    border: 1px solid var(--site-border);
    border-radius: 4px;
}

.price-search label {
    color: var(--site-muted);
    font-size: 12px;
    font-weight: 700;
}

.price-search div {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto auto;
    gap: 8px;
    align-items: center;
}

.price-search .price-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.price-search input {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 9px 10px;
    border: 1px solid #332840;
    border-radius: 4px;
    background: #07060a;
    color: var(--site-text);
    font-size: 14px;
}

.price-search .price-share-button {
    position: relative;
    margin-left: auto;
    gap: 5px;
}

.price-share-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.price-share-icon svg {
    width: 15px;
    height: 15px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.price-share-tooltip {
    position: absolute;
    right: 0;
    bottom: calc(100% + 7px);
    z-index: 2;
    padding: 5px 9px;
    border: 1px solid rgba(255, 122, 174, 0.55);
    border-radius: 999px;
    background: #121a27;
    color: #fff;
    font-size: 12px;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    transform: translateY(3px);
    transition: opacity 0.16s ease, transform 0.16s ease;
    white-space: nowrap;
}

.price-share-button.is-copied .price-share-tooltip {
    opacity: 1;
    transform: translateY(0);
}

.price-filter-modal[hidden] {
    display: none;
}

.age-gated-content[aria-hidden="true"],
.age-gate-modal[hidden] {
    display: none;
}

.age-gate-modal {
    position: fixed;
    inset: 0;
    z-index: 23000;
    display: grid;
    place-items: center;
    padding: 24px;
}

.age-gate-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
}

.age-gate-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 520px);
    display: grid;
    gap: 14px;
    padding: 22px;
    color: #e9edf2;
    background: #10131a;
    border: 1px solid #303747;
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.68);
    font-family: inherit;
}

.age-gate-kicker {
    margin: 0;
    color: #e2485d;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.age-gate-dialog h2 {
    margin: 0;
    color: #f4f7fb;
    font-family: inherit;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
}

.age-gate-dialog p {
    margin: 0;
    color: #c7ceda;
    line-height: 1.8;
}

.age-gate-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 4px;
    text-align: center;
}

.age-gate-actions button,
.age-gate-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid #3a4354;
    border-radius: 6px;
    font-family: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.age-gate-actions button {
    background: #e2485d;
    border-color: #e2485d;
    color: #fff;
}

.age-gate-actions a {
    background: #181d27;
    color: #d7dde8;
}

.price-filter-modal {
    position: fixed;
    inset: 0;
    z-index: 22000;
    display: grid;
    place-items: center;
    padding: 24px;
}

.price-filter-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}

.price-filter-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 720px);
    max-height: min(86vh, 760px);
    overflow: auto;
    display: grid;
    gap: 14px;
    padding: 16px;
    color: #e9edf2;
    background: #10131a;
    border: 1px solid #303747;
    border-radius: 6px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.62);
}

.price-filter-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
}

.price-filter-head p {
    margin: 0;
    color: #a9b1bf;
    font-size: 13px;
}

.price-filter-head #price-filter-title {
    color: #fff;
    font-size: 17px;
    font-weight: 800;
}

.price-filter-head button {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid #303747;
    border-radius: 4px;
    background: #141821;
    color: #f2f5f8;
    font-size: 18px;
    cursor: pointer;
}

.price-filter-section {
    display: grid;
    gap: 9px;
    padding: 12px;
    background: #0b0e14;
    border: 1px solid #242936;
    border-radius: 4px;
}

.price-filter-section p {
    margin: 0;
    color: #f2f5f8;
    font-size: 13px;
    font-weight: 800;
}

.price-filter-price-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.price-filter-price-grid label,
.price-filter-section > input {
    min-width: 0;
}

.price-filter-price-grid label {
    display: grid;
    gap: 5px;
    color: #a9b1bf;
    font-size: 12px;
}

.price-filter-price-grid input,
.price-filter-section > input,
.price-filter-genre-panel input {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 10px;
    border: 1px solid #303747;
    border-radius: 4px;
    background: #07090d;
    color: #f2f5f8;
    font-size: 14px;
}

.price-filter-presets,
.price-filter-radio-row,
.price-filter-genre-buttons,
.price-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.price-filter-radio-row input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.price-filter-radio-row input:checked + span {
    border-color: #d23d79;
    background: #c63f78;
    color: #fff;
}

.price-filter-genre-group {
    display: grid;
    gap: 10px;
}

.price-filter-genre-groups {
    display: grid;
    gap: 10px;
}

.price-filter-genre-toggle {
    appearance: none;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    font-weight: 800;
}

.price-filter-genre-toggle::after {
    content: "▼";
    color: #a9b1bf;
    font-size: 11px;
    transition: transform 0.18s ease;
}

.price-filter-genre-group.is-open .price-filter-genre-toggle::after {
    transform: rotate(180deg);
}

.price-filter-genre-panel[hidden] {
    display: none;
}

.price-filter-genre-panel {
    display: grid;
    gap: 10px;
}

.price-filter-genre-categories {
    display: grid;
    gap: 16px;
}

.price-filter-genre-category {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid #29384b;
    border-radius: 5px;
    background: #111d2b;
}

.price-filter-genre-category + .price-filter-genre-category {
    padding-top: 12px;
}

.price-filter-genre-category-toggle {
    appearance: none;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
}

.price-filter-genre-category-toggle small {
    color: var(--text-muted, #9ca7b8);
    font-size: 11px;
    font-weight: 500;
}

.price-filter-genre-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
}

.price-filter-genre-grid button {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: flex-start;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    text-align: left;
    overflow-wrap: anywhere;
}

.price-filter-actions {
    justify-content: flex-end;
}

@media (max-width: 767px) {
    .price-filter-genre-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .price-filter-genre-grid button {
        padding-inline: 7px;
        font-size: 11px;
    }
}

.price-page a {
    color: #f2f5f8;
}

.price-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    font-size: 14px;
}

.price-table.watchlist-table {
    min-width: 1040px;
}

.price-table th,
.price-table td {
    border-bottom: 1px solid #241e2c;
    padding: 10px 8px;
    text-align: left;
    vertical-align: middle;
}

.price-table th {
    color: #a99fb4;
    font-size: 12px;
    font-weight: 700;
}

.price-table a {
    color: #f2f5f8;
}

.price-table .sub {
    color: #9d94a8;
    font-size: 12px;
    margin-top: 4px;
}

.watchlist-control {
    margin-top: 8px;
}

.watchlist-inline-action {
    margin-top: 8px;
}

.watchlist-add-form.is-submitting .action-button {
    opacity: 0.7;
    cursor: progress;
}

.action-button {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    padding: 0 9px;
    border: 1px solid #332840;
    border-radius: 4px;
    background: #181220;
    color: var(--site-text);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

.action-button:hover,
.action-button.watched {
    border-color: #d23d79;
    background: #c63f78;
    color: #fff;
}

.action-button.danger {
    border-color: var(--danger-button-border);
    background: var(--danger-button-bg);
    color: #fff;
    box-shadow: 0 4px 4px var(--danger-button-shadow);
}

.action-button.danger:hover,
.action-button.danger:focus-visible {
    background: var(--danger-button-bg);
    border-color: var(--danger-button-border);
    color: #fff;
    filter: brightness(1.08);
}

.watchlist-settings-modal[hidden] {
    display: none;
}

.watchlist-settings-modal {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: grid;
    place-items: center;
    padding: 24px;
}

.watchlist-settings-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.68);
}

.watchlist-settings-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 460px);
    display: grid;
    gap: 14px;
    padding: 16px;
    color: #e9edf2;
    background: #10131a;
    border: 1px solid #303747;
    border-radius: 6px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.62);
}

.watchlist-settings-head {
    display: flex;
    gap: 12px;
    align-items: start;
    justify-content: space-between;
}

.watchlist-settings-head p {
    margin: 0;
}

.watchlist-settings-head #watchlist-settings-title {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.watchlist-settings-work {
    margin-top: 4px !important;
    color: #9099aa;
    font-size: 12px;
    line-height: 1.5;
}

.watchlist-settings-close {
    display: inline-grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid #303747;
    border-radius: 4px;
    color: #d7dde7;
    background: #141821;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}
.watchlist-settings-destination {
    display: grid;
    gap: 6px;
    color: #d7dde7;
    font-size: 13px;
}

.watchlist-settings-destination {
    grid-template-columns: 1fr auto auto;
    align-items: center;
}

.destination-option {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border: 1px solid #303747;
    border-radius: 4px;
    color: #d7dde7;
    background: #141821;
    font-size: 12px;
    font-weight: 700;
}

.destination-option.is-active {
    border-color: #e2485d;
    color: #fff;
    background: #e2485d;
}

.destination-option.is-disabled {
    opacity: 0.45;
}

.watchlist-settings-message {
    margin: 0;
    color: #ff9aa6;
    font-size: 12px;
}

.watchlist-settings-message.is-success {
    color: #8fe3af;
}

.watchlist-settings-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.watchlist-settings-dialog.is-submitting {
    opacity: 0.82;
}

.price-table .rank {
    width: 44px;
    color: #8b99ab;
    font-weight: 700;
}

.price-table .thumb {
    width: clamp(132px, 13vw, 240px);
}

.price-table .thumb-link {
    position: relative;
    display: grid;
    place-items: center;
    width: clamp(132px, 13vw, 240px);
    aspect-ratio: 4 / 3;
    overflow: visible;
    background: #050609;
    border: 1px solid #242936;
    border-radius: 4px;
}

.price-table .thumb-link > img:not(.thumb-preview) {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.price-table .thumb img.thumb-preview {
    position: absolute;
    top: 0;
    left: calc(100% + 14px);
    z-index: 10000;
    width: auto;
    height: auto;
    max-width: var(--preview-width, clamp(299px, 32.2vw, 428px));
    max-height: calc(100vh - 140px);
    object-fit: contain;
    border: 1px solid #303747;
    border-radius: 4px;
    background: #050609;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.58);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.12s ease, visibility 0s linear 0.12s;
}

@media (hover: hover) and (pointer: fine) {
    .price-table .thumb-link:hover img.thumb-preview,
    .price-table .thumb-link:focus-visible img.thumb-preview {
        opacity: 1;
        visibility: visible;
        transition-delay: 0.5s;
    }

    .price-table .thumb-link.is-previewing img.thumb-preview {
        position: fixed;
        top: var(--preview-top, 96px);
        left: var(--preview-left, 50%);
        opacity: 1;
        visibility: visible;
        transition-delay: 0s;
    }
}

.price-table .thumb-empty {
    display: grid;
    width: clamp(132px, 13vw, 240px);
    aspect-ratio: 4 / 3;
    place-items: center;
    color: #7e8797;
    background: #050609;
    border: 1px solid #242936;
    border-radius: 4px;
    font-size: 10px;
}

.price-table .thumb-hidden-placeholder {
    color: #b8c0cc;
    background:
        linear-gradient(135deg, rgba(226, 72, 93, 0.16), transparent 42%),
        #050609;
    font-size: 12px;
    letter-spacing: 0;
}

.price-table .thumb-load-error {
    color: #b8c0cc;
    background: #050609;
    font-size: 12px;
    letter-spacing: 0;
}

.price-table .price {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.price-table .price-lowest-cell,
.price-table .price-discount-cell,
.price-table .price-current-cell {
    min-width: 66px;
    vertical-align: middle;
}

.price-table .price-lowest-cell {
    color: #9099aa;
    font-size: 12px;
    font-weight: 700;
}

.price-history-button {
    display: inline-flex;
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    font: inherit;
    font-size: var(--price-action-font);
    line-height: 1.2;
    white-space: nowrap;
}

.price-history-button svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.price-table .price-summary-cell .price-history-button {
    width: 100%;
    margin-top: 10px;
}

.price-history-modal[hidden],
.price-chart-hover[hidden] {
    display: none;
}

.price-history-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    box-sizing: border-box;
    padding: 12px;
    background: rgba(0, 0, 0, .65);
    backdrop-filter: blur(3px);
}

.price-history-dialog {
    position: relative;
    box-sizing: border-box;
    width: min(100% - 48px, 1200px);
    max-width: 1200px;
    max-height: 90vh;
    padding: 22px;
    overflow: auto;
    color: #f3f6fb;
    background: #142030;
    border: 1px solid #2a4060;
    border-radius: 10px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .52);
}

.price-history-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    padding: 0;
    color: var(--text-muted, #aab4c5);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: color .15s, background-color .15s, border-color .15s, transform .15s;
}

.price-history-close:hover,
.price-history-close:focus-visible {
    color: var(--text, #f3f6fb);
    background: var(--surface-2, #0f1724);
    border-color: var(--border, #263244);
    transform: translateY(-1px);
}

.price-history-close svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 2;
}

.price-history-layout {
    display: grid;
    grid-template-columns: minmax(245px, 27fr) minmax(700px, 73fr);
    gap: 22px;
    align-items: stretch;
    min-height: 0;
}

.price-history-sidebar {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding-right: 22px;
    border-right: 1px solid var(--border, #293b52);
}

.price-history-sidebar h2 {
    margin: 0 42px 12px 0;
    padding-bottom: 10px;
    color: var(--text, #e7edf5);
    font-size: var(--font-lg);
    font-weight: 600;
    line-height: 1.25;
    border-bottom: 1px solid #1e3048;
}

.price-history-product {
    display: -webkit-box;
    min-height: calc(1.4em * 2);
    margin: 0 0 12px;
    overflow: hidden;
    color: #f3f6fb;
    font-size: var(--price-title-font);
    font-weight: 700;
    line-height: 1.4;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.price-history-sidebar img {
    display: block;
    width: var(--history-thumb-width);
    max-width: 100%;
    height: auto;
    margin-inline: auto;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: #1a2840;
    border: 1px solid #1e3048;
    border-radius: 5px;
}

.price-history-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 12px 0 10px;
}

.price-history-meta span,
.price-history-stat-cards span {
    display: block;
    color: #8b99ab;
    font-size: var(--price-meta-font);
    font-weight: 500;
    line-height: 1.3;
}

.price-history-meta strong {
    display: block;
    margin-top: 2px;
    min-width: 0;
    overflow: visible;
    color: #c4cdd9;
    font-size: var(--price-value-font);
    font-weight: 400;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
}

.price-history-actions {
    display: grid;
    gap: 8px;
    margin-top: auto;
    margin-bottom: 2px;
    padding-top: 4px;
}

.price-history-actions .price-history-dlsite.ui-button,
.price-history-actions .price-history-watch.ui-button {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    gap: 8px;
}

.price-history-actions svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.price-history-watch svg {
    order: 0;
}

.price-history-dlsite svg {
    margin-right: 2px;
}

.dlsite-external-link .dlsite-external-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    margin-right: 2px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.dlsite-external-link {
    flex-direction: row-reverse;
}

.price-history-main {
    display: flex;
    min-width: 0;
    min-height: 0;
    height: 100%;
    flex-direction: column;
}

.price-history-stat-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
    column-gap: 28px;
    align-items: end;
    min-height: 0;
    margin: 0 8px 8px 0;
    padding: 0 0 8px;
    border-bottom: 1px solid var(--border, #263244);
}

.price-history-stat-cards > div {
    display: grid;
    min-width: 0;
    align-content: end;
    gap: 3px;
    padding: 0;
}

.price-history-stat-cards span small {
    display: inline;
    margin-left: 8px;
    margin-top: 0;
    color: var(--text-muted, #8496ad);
    font-size: calc(var(--price-meta-font) - 1px);
    font-weight: 400;
}

.price-history-lowest-value {
    display: flex;
    min-width: 0;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}

.price-history-lowest-value strong {
    min-width: 0;
}

.price-history-lowest-value small {
    color: var(--price-lowest);
    font-size: var(--font-xs);
    font-weight: 400;
    white-space: nowrap;
}

.price-history-stat-cards strong {
    color: var(--text, #e7edf5);
    font-size: var(--price-history-stat-font);
    font-weight: 700;
    line-height: 1.15;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
}

.price-history-current strong {
    font-size: var(--price-history-current-font);
}

.price-history-current.is-lowest strong,
.price-history-lowest strong {
    color: var(--price-lowest, #7ee787);
}

.price-history-toolbar {
    display: none;
}

.price-history-chart {
    box-sizing: border-box;
    width: 100%;
    height: clamp(340px, 29vw, 440px);
    min-height: 340px;
    flex: 0 0 auto;
    padding: 8px 10px 10px;
    overflow: hidden;
    background: var(--surface-2, #0d1624);
    border: 1px solid var(--border, #26364c);
    border-radius: 8px;
}

.price-history-chart > p {
    margin: 24px;
    color: var(--text-muted, #aab4c5);
    font-size: var(--price-value-font);
}

.price-history-chart svg {
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
}

.price-chart-axis {
    stroke: #536176;
    stroke-width: 1;
}

.price-chart-grid {
    stroke: rgba(30, 48, 72, .5);
    stroke-width: .7;
}

.price-chart-line {
    fill: none;
    stroke: #ff7aae;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.price-chart-lowest-line {
    stroke: #7ee787;
    stroke-width: 1;
    stroke-dasharray: 5 4;
}

.price-chart-unit,
.price-chart-y-label,
.price-chart-x-label,
.price-history-chart > svg > text,
.price-chart-hover text {
    fill: #aab7c9;
    font-size: var(--font-md);
}

.price-chart-tooltip-price {
    fill: #f3f6fb !important;
    font-weight: 700;
}

.price-chart-hover circle {
    fill: #fff;
    stroke: #ff7aae;
    stroke-width: 3;
}

.price-chart-crosshair {
    stroke: #ff7aae;
    stroke-width: 1;
    stroke-dasharray: 4 4;
    opacity: .8;
}

.price-chart-hover rect {
    fill: #1a2840;
    stroke: #ff7aae;
    stroke-width: 1;
}

@media (min-width: 1100px) {
    .price-history-layout {
        grid-template-columns: minmax(245px, 27fr) minmax(700px, 73fr);
    }
}

@media (max-width: 1099px) and (min-width: 768px) {
    .price-history-dialog {
        width: min(100% - 24px, 1024px);
        max-width: 1024px;
        padding: 18px;
    }

    .price-history-layout {
        grid-template-columns: minmax(220px, 26fr) minmax(0, 74fr);
        gap: 18px;
    }

    .price-history-sidebar {
        padding-right: 18px;
    }
}

@media (max-width: 767px) {
    .price-history-dialog {
        width: min(100% - 20px, 1024px);
        max-width: calc(100vw - 20px);
        height: auto;
        max-height: calc(100vh - 32px);
        margin-inline: auto;
        padding: 12px;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .price-history-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        height: auto;
        gap: 0;
    }

    .price-history-sidebar {
        display: contents;
    }

    .price-history-sidebar-info {
        display: block;
        grid-row: 1;
        width: 100%;
        min-width: 0;
        padding-bottom: 12px;
        border-bottom: 1px solid #1e3048;
    }

    .price-history-work-overview {
        display: grid;
        grid-template-columns: minmax(88px, 34%) minmax(0, 1fr);
        gap: 10px;
        align-items: start;
    }

    .price-history-work-overview > img {
        width: 100%;
        max-width: none;
        height: auto;
        margin: 0;
    }

    .price-history-work-overview-text {
        display: grid;
        min-width: 0;
        gap: 6px;
    }

    .price-history-work-overview-text .price-history-product {
        min-height: 0;
        margin: 0;
        font-size: 14px;
        line-height: 1.45;
        -webkit-line-clamp: 3;
    }

    .price-history-work-overview-text .price-history-meta {
        gap: 2px;
        margin: 0;
    }

    .price-history-work-overview-text .price-history-meta span,
    .price-history-work-overview-text .price-history-meta strong {
        font-size: 11px;
        line-height: 1.35;
    }

    .price-history-main {
        grid-row: 2;
        min-height: 0;
        height: auto;
    }

    .price-history-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-row: 3;
        width: 100%;
        gap: 8px;
        margin: 0;
        padding: 8px 0 0;
    }

    .price-history-actions .price-history-dlsite.ui-button,
    .price-history-actions .price-history-watch.ui-button {
        gap: 6px;
        font-size: 11px;
        white-space: nowrap;
    }

    .price-history-chart {
        height: clamp(300px, 80vw, 390px);
        min-height: 300px;
        margin-top: 8px;
    }

    .price-history-stat-cards {
        grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.6fr) minmax(0, 1.1fr);
        margin-right: 0;
    }

    .price-history-stat-cards > div {
        padding: 0 3px;
    }

    .price-history-lowest-value {
        gap: 4px;
    }

    .price-history-lowest-value small {
        font-size: var(--font-xs);
    }
}

.price-table .price-discount-cell {
    color: #ff7aa2;
    font-size: 12px;
    font-weight: 800;
}

.price-table .price-discount-cell > span:not(.sub) {
    display: inline-flex;
    padding: 2px 6px;
    border: 1px solid #74304d;
    border-radius: 4px;
    background: #26111c;
    color: #ff8fb2;
}

.price-table .price-discount-cell .discount-tier-1 {
    border-color: #593047;
    background: #201119;
    color: #e997b1;
}

.price-table .price-discount-cell .discount-tier-50 {
    border-color: #a43563;
    background: #38101f;
    color: #ff73a1;
}

.price-table .price-discount-cell .discount-tier-75 {
    border-color: #d23d79;
    background: #4a1028;
    color: #ff5f98;
}

.price-table .price-current-cell {
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.1;
}

.price-lowest-date {
    margin-top: 3px;
}

.price-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    min-width: 0;
    max-width: 240px;
}

.price-tags button {
    font-size: 11px;
    line-height: 1.2;
}

.work-credit-tags {
    display: grid;
    gap: 7px;
    min-width: 150px;
    max-width: 230px;
}

.work-credit-group {
    display: grid;
    gap: 4px;
}

.work-credit-group > span {
    color: #9099aa;
    font-size: 12px;
    font-weight: 700;
}

.work-credit-group.is-voice > span {
    color: #9099aa;
}

.work-credit-group .price-tags {
    min-width: 0;
    max-width: 280px;
}

.thumb-credit {
    max-width: 190px;
    margin-top: 5px;
    color: #9099aa;
    font-size: 12px;
    line-height: 1.35;
}

.work-genre-tags {
    max-width: 360px;
    margin-top: 8px;
}

.price-table td > .work-title + .work-genre-tags,
.price-table td > .sub + .work-genre-tags {
    margin-top: 8px;
}

.work-credit-tags .price-tags {
    max-width: 230px;
}

.price-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-top: 14px;
}

.price-pagination a,
.price-pagination span {
    display: inline-flex;
    min-width: 34px;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border: 1px solid #2a3140;
    border-radius: 4px;
    color: #d7dde7;
    background: #10131a;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.price-pagination a:hover,
.price-pagination .current {
    color: #fff;
    background: #D03878;
    border-color: #D03878;
}

/* Koe no Kakaku app-style layout */
.site-nav {
    grid-template-columns: 250px minmax(320px, max-content) minmax(160px, 1fr) auto;
    min-height: 58px;
    background: rgba(7, 17, 29, 0.97);
    border-bottom: 1px solid #243247;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.34);
}

body.site-nav-hidden .site-nav {
    transform: translateY(0);
}

.site-logo {
    min-height: 58px;
    padding: 0 20px;
    background: #07111d;
}

.site-logo img {
    width: min(178px, 100%);
    max-height: 45px;
}

.site-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    min-width: 0;
}

.site-search label {
    flex: 1 1 auto;
    min-width: 0;
}

.site-search input {
    width: 100%;
    min-height: 36px;
    box-sizing: border-box;
    padding: 7px 12px;
    color: #e8e1eb;
    background: #060d17;
    border: 1px solid #2a3a50;
    border-radius: 4px;
    font-size: var(--font-xs);
}

.site-search button {
    display: inline-grid;
    width: 38px;
    height: 36px;
    place-items: center;
    color: #f7d8e8;
    background: #101b2a;
    border: 1px solid #2a3a50;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

.site-account {
    min-width: max-content;
    align-items: center;
    gap: 8px;
    padding: 0 16px 0 0;
}

.site-icon-link {
    min-width: auto;
    min-height: 36px;
    flex-direction: row;
    gap: 8px;
    padding: 0 14px;
    border: 1px solid #2a3a50;
    border-radius: 4px;
    color: #e6deea;
    font-size: var(--font-xs);
}

.site-icon-link span[aria-hidden="true"] {
    font-size: 14px;
}

body:has(.price-page) .wp-block-post-title,
body:has(.price-page) .entry-title {
    display: none;
}

body:has(.auth-page) .wp-block-post-title,
body:has(.auth-page) .entry-title,
body:has(.auth-page) h1 {
    display: none;
}

body:has(.price-page) main > .wp-block-group:has(.wp-block-post-title),
body:has(.auth-page) main > .wp-block-group:has(.wp-block-post-title) {
    display: none;
}

.price-page {
    padding: 12px;
    background:
        linear-gradient(180deg, rgba(10, 20, 32, 0.98), rgba(6, 14, 24, 0.98)),
        #07111d;
    border-color: #243247;
    border-radius: 6px;
    font-size: 12px;
}

.price-page-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "heading updated"
        "count updated";
    align-items: start;
    column-gap: 24px;
    margin: 0 0 10px;
    color: #c8d0db;
}

.price-page-heading {
    grid-area: heading;
    min-width: 0;
}

.price-page-heading h1 {
    margin: 0;
    color: #e6deea;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
}

.price-page-head .price-page-lead {
    margin: 3px 0 0;
    color: #aeb8c6;
    font-size: 13px;
    line-height: 1.5;
}

.price-page-meta {
    display: contents;
}

.price-page-count {
    grid-area: count;
    margin-top: 6px;
    font-size: 14px;
    color: #e6deea;
}

.price-page-updated {
    grid-area: updated;
    justify-self: end;
    white-space: nowrap;
    font-size: 13px;
    color: #aeb8c6;
}

.price-filter-open-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
}

.price-mode-tabs {
    display: flex;
    gap: 0;
    margin: 0 0 10px;
    border-bottom: 1px solid #243247;
}

.price-mode-tabs a {
    position: relative;
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    padding: 0 20px;
    color: #d9d1df;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.price-mode-tabs a.is-active {
    color: #fff7fb;
}

.price-mode-tabs a.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: #ff87bd;
}

.price-search {
    grid-template-columns: minmax(260px, 1fr) auto;
    align-items: end;
    margin-bottom: 12px;
    padding: 0;
    background: transparent;
    border: 0;
}

.price-search label {
    display: none;
}

.price-search div {
    grid-template-columns: minmax(240px, 1fr) auto auto;
}

.price-search .price-filter-buttons {
    justify-content: flex-start;
}

.price-search input {
    min-height: 36px;
    font-size: var(--font-sm);
}

.price-search input {
    border-color: #2a3a50;
    background: #060d17;
}

.price-table {
    min-width: 980px;
    overflow: hidden;
    border: 1px solid #243247;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 6px;
    background: #07111d;
    font-size: var(--font-sm);
}

.price-table th,
.price-table td {
    border-right: 1px solid #243247;
    border-bottom: 1px solid #243247;
    padding: var(--space-sm) var(--space-md);
}

.price-table th:last-child,
.price-table td:last-child {
    border-right: 0;
}

.price-table tbody tr:last-child td {
    border-bottom: 0;
}

.price-table th {
    color: #d9d1df;
    background: rgba(12, 25, 39, 0.82);
    text-align: center;
    font-size: var(--font-xs);
}

.price-table .mobile-label {
    display: none;
}

.price-mobile-detail-row {
    display: none;
}

.price-table .rank {
    width: 34px;
    text-align: center;
    color: #8b99ab;
    font-size: var(--font-md);
}

.price-table .thumb,
.price-table .thumb-link,
.price-table .thumb-empty {
    width: var(--table-thumb-width);
}

.price-table .thumb {
    vertical-align: middle;
}

.price-table .thumb-link {
    border-color: #2a3a50;
}

.price-table .work-title {
    display: inline-block;
    color: #eef2f9;
    font-size: var(--font-sm);
    font-weight: 400;
    line-height: 1.35;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.work-meta-line {
    display: grid;
    gap: 2px;
    margin-top: 6px;
    color: #aeb8c6;
    font-size: var(--font-xs);
}

.work-meta-line span + span::before {
    content: none;
}

.work-genre-tags {
    max-width: 420px;
}

.work-mobile-voice,
.work-mobile-genres{
    display: none;
}

.work-genre-tags .genre-extra {
    display: none;
}

.work-genre-tags.is-expanded .genre-extra {
    display: contents;
}

.work-genre-tags.is-expanded .genre-more-toggle {
    display: none;
}

.work-credit-tags {
    max-width: 300px;
    min-width: 0;
}

.work-credit-group > span {
    color: #aeb8c6;
    font-size: var(--font-xs);
}

.creator-cell,
.work-credit-group,
.work-credit-group .price-tags,
.work-credit-tags .price-tags {
    min-width: 0;
    max-width: 100%;
}

.creator-cell .price-tags button {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}

.price-table .price-discount-cell {
    width: var(--table-discount-width);
    vertical-align: middle;
    text-align: center;
}

.price-table .price-discount-cell > span:not(.sub) {
    min-width: 42px;
    justify-content: center;
    padding: 5px 6px;
    border-radius: 4px;
    font-size: var(--font-xs);
    font-weight: 800;
    line-height: 1;
}

.price-summary-cell {
    min-width: var(--table-price-width);
    overflow: hidden;
    white-space: normal;
}

.price-current-cell,
.price-lowest-cell,
.price-official-cell {
    display: flex;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
    white-space: nowrap;
}

.price-table .price-discount-cell > span.discount-tier-75:not(.sub) {
    border-color: #d5a441;
    background: #2d2411;
    color: #ffd978;
}

.price-table .price-current-cell {
    color: #eee8f2;
    font-size: clamp(17px, 1.45vw, 22px);
    text-align: left;
}

.price-label {
    color: #9aa7b8;
    font-size: var(--font-xs);
    font-weight: 700;
}

.price-current-value {
    font-size: clamp(17px, 1.45vw, 22px);
    font-weight: 700;
    line-height: 1.1;
}

.price-table .price-lowest-cell {
    flex-wrap: wrap;
    color: #7ee65f;
    margin-top: 4px;
    font-size: var(--font-sm);
    text-align: left;
}

.price-table .price-lowest-cell .price-label,
.price-table .price-lowest-cell > span:not(.price-label):not(.price-lowest-date) {
    flex: 0 0 auto;
}

.price-lowest-date {
    flex: 0 1 auto;
    color: #9aa7b8;
    font-size: var(--font-xs);
    white-space: nowrap;
}

.price-official-cell {
    margin-top: 3px;
    color: #9aa7b8;
    font-size: var(--font-xs);
}

@media (min-width: 768px) and (max-width: 1023px) {
    .price-page {
        width: calc(100% + 24px) !important;
        max-width: min(calc(100vw - 24px), 1023px) !important;
        padding: var(--space-md);
        overflow-x: auto;
    }

    .price-search {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: var(--space-sm);
    }

    .price-search div {
        grid-template-columns: minmax(180px, 1fr) auto auto;
        gap: var(--space-sm);
    }

    .price-search input {
        min-height: 34px;
        padding-inline: 10px;
    }

    .price-table {
        width: 100%;
        min-width: 0;
        table-layout: fixed;
        font-size: var(--font-xs);
    }

    .price-table th,
    .price-table td {
        padding: 6px 5px;
    }

    .price-table .rank-head,
    .price-table .rank {
        width: 30px;
    }

    .price-table .thumb-head,
    .price-table .thumb,
    .price-table .thumb-link,
    .price-table .thumb-empty {
        width: clamp(88px, 12vw, 120px);
    }

    .price-table .creator-head,
    .price-table .creator-cell {
        width: clamp(92px, 13vw, 128px);
    }

    .price-table .discount-head,
    .price-table .price-discount-cell {
        width: 56px;
    }

    .price-table .price-head,
    .price-table .price-summary-cell {
        width: clamp(104px, 14vw, 128px);
    }

    .price-table .watch-head,
    .price-table .watch-cell {
        width: 42px;
    }

    .price-table .work-title {
        font-size: var(--font-sm);
        line-height: 1.35;
    }

    .work-meta-line,
    .work-credit-group > span,
    .price-table .sub,
    .price-label,
    .price-lowest-date,
    .price-official-cell {
        font-size: var(--font-xs);
    }

    .price-tags {
        gap: 3px;
    }

    .price-tags button,
    .work-genre-tags .genre-more-toggle {
        padding: 2px 5px;
        font-size: var(--font-xs);
    }

    .work-credit-tags {
        max-width: 128px;
    }

    .work-genre-tags {
        max-width: 240px;
    }

    .price-current-value,
    .price-table .price-current-cell {
        font-size: clamp(14px, 1.7vw, 18px);
    }

    .price-table .price-discount-cell > span:not(.sub) {
        padding: 2px 6px;
        font-size: var(--font-xs);
    }

    .price-table .watch-cell .watchlist-star-button {
        width: 30px;
        min-width: 30px;
        height: 30px;
        min-height: 30px;
        font-size: 20px;
    }

    .price-mobile-detail-row,
    .price-mobile-detail-row.is-open {
        display: none;
    }
}

@media (max-width: 767px) {
    .price-table {
        min-width: 0;
        width: 100%;
        display: block;
        table-layout: fixed;
        font-size: 13px;
    }

    .price-table thead,
    .price-table tbody {
        display: block;
    }

    .price-table thead tr,
    .price-main-row {
        display: grid;
        grid-template-columns: 78px minmax(0, 1fr) 74px 30px;
        width: 100%;
        align-items: stretch;
    }

    .price-table th,
    .price-table td {
        box-sizing: border-box;
        display: block;
        min-width: 0;
        padding: 8px 5px;
    }

    .price-table .desktop-label {
        display: none;
    }

    .price-table .mobile-label {
        display: inline;
    }

    .price-table .rank-head,
    .price-table .rank,
    .price-table .thumb-head,
    .price-table .discount-head,
    .price-table .watch-head,
    .price-table .creator-head,
    .price-table .creator-cell {
        display: none;
    }

    .price-table .work-info-head {
        grid-column: 1 / span 2;
    }

    .price-table .price-head {
        grid-column: 3 / span 2;
    }

    .price-table .work-info-head,
    .price-table .price-head {
        display: flex;
        min-height: 34px;
        align-items: center;
        justify-content: center;
        width: auto;
        padding: 6px;
        border-bottom: 1px solid #243247;
        font-size: 12px;
        line-height: 1.15;
    }

    .price-table .work-info-head .mobile-label {
        display: none;
    }

    .price-table .work-info-head::before {
        content: "作品情報";
    }

    .price-table .thumb {
        grid-column: 1;
        grid-row: 1 / span 2;
        display: flex;
        align-self: stretch;
        align-items: center;
        width: 100%;
        max-width: 100%;
        padding: 8px 6px 8px 10px;
        border-bottom: 1px solid #243247;
    }

    .price-table .thumb,
    .price-table .thumb-link,
    .price-table .thumb-empty {
        width: 100%;
        max-width: 100%;
    }

    .price-table .thumb-link,
    .price-table .thumb-empty,
    .price-table .thumb-hidden-placeholder {
        width: 100%;
        height: 100%;
        aspect-ratio: 4 / 3;
        min-height: 0;
        max-width: 100%;
        overflow: hidden;
    }

    .price-table .thumb-link > img:not(.thumb-preview) {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .price-table .work-info-head,
    .price-table .price-head {
        width: auto;
    }

    .price-table .work-info-cell {
        grid-column: 2;
        width: auto;
    }

    .price-table .work-info-cell {
        grid-row: 1 / span 2;
        display: grid;
        align-content: center;
        gap: 5px;
        padding: 8px 4px 8px 6px;
        border-bottom: 1px solid #243247;
        overflow: hidden;
    }

    .price-table .work-info-cell .work-meta-line,
    .price-table .work-info-cell .work-genre-tags,
    .price-table .work-info-cell > .sub {
        display: none;
    }

    .price-table .work-title {
        display: -webkit-box;
        color: #f3edf7;
        overflow: hidden;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.35;
        text-decoration: none;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }

    .work-mobile-voice {
        display: block;
        margin: 0;
        overflow: hidden;
        color: #bcc6d5;
        font-size: 11px;
        line-height: 1.35;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .price-table .thumb-credit {
        display: none;
    }

    .price-table .price-discount-cell {
        grid-column: 3;
        grid-row: 1;
        display: flex;
        align-items: end;
        justify-content: flex-start;
        width: 100%;
        min-width: 0;
        padding: 8px 4px 2px;
        border-bottom: 0;
    }

    .price-table .price-discount-cell > span:not(.sub) {
        min-width: 0;
        padding: 3px 5px;
        font-size: 11px;
    }

    .price-table .price-summary-cell {
        grid-column: 3;
        grid-row: 2;
        width: 100%;
        min-width: 0;
        padding: 0 5px 8px;
    }

    .price-table .price-summary-cell {
        display: grid;
        align-content: start;
        gap: 2px;
        border-top: 0;
    }

    .price-current-cell,
    .price-lowest-cell,
    .price-official-cell {
        display: grid;
        gap: 0;
        white-space: normal;
    }

    .price-table .price-lowest-cell,
    .price-table .price-summary-cell .price-label {
        display: none;
    }

    .price-table .price-official-cell {
        display: block;
    }

    .price-table .price-official-cell .price-label {
        display: inline;
        color: #aeb8c6;
        font-size: 11px;
        line-height: 1.3;
    }

    .price-table .price-current-value {
        color: #f2f5f8;
        font-size: 13px;
        font-weight: 800;
        line-height: 1.15;
    }

    .price-table .price-official-cell span:last-child {
        color: #aeb8c6;
        font-size: 11px;
        line-height: 1.3;
    }

    .price-table .watch-cell {
        grid-column: 4;
        grid-row: 1 / span 2;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-width: 0;
        padding: 8px 2px;
    }

    .price-table .watch-cell .watchlist-star-button {
        width: 28px;
        min-width: 28px;
        height: 28px;
        min-height: 28px;
        padding: 0;
        font-size: 19px;
    }

    .price-main-row {
        cursor: pointer;
    }

    .price-main-row:focus-visible {
        outline: 2px solid rgba(255, 79, 163, 0.72);
        outline-offset: -2px;
    }

    .price-main-row.is-expanded td {
        border-bottom-color: #243247;
    }

    .price-mobile-detail-row.is-open {
        display: block;
    }

    .price-mobile-detail-row td {
        display: block;
        padding: 0;
        background:
            linear-gradient(180deg, rgba(16, 27, 42, 0.96), rgba(9, 18, 30, 0.96));
    }

    .price-mobile-detail-panel {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        padding: 10px 14px 14px;
        border-top: 0;
        color: #eef3f8;
    }

    .price-mobile-detail-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0;
    }

    .price-mobile-detail-item {
        display: grid;
        gap: 4px;
        min-width: 0;
        margin: 0;
        padding: 8px 10px;
        line-height: 1.45;
        border-top: 1px solid rgba(72, 93, 122, 0.34);
    }

    .price-mobile-detail-item:nth-child(odd) {
        padding-left: 0;
        border-right: 1px solid rgba(72, 93, 122, 0.2);
    }

    .price-mobile-detail-item:nth-child(even) {
        padding-right: 0;
    }

    .price-mobile-detail-item span {
        flex: 0 0 auto;
        color: #9ba8bb;
        font-size: 9px;
        font-weight: 700;
        letter-spacing: 0.04em;
    }

    .price-mobile-detail-item span::after {
        content: "";
    }

    .price-mobile-detail-item strong {
        overflow-wrap: anywhere;
        color: #eef3f8;
        font-size: 12px;
        font-weight: 400;
        line-height: 1.55;
    }

    .price-mobile-detail-tags button {
        font-weight: 600;
    }

    .price-mobile-detail-price-line {
        display: inline-flex;
        flex-wrap: wrap;
        gap: 4px;
        align-items: baseline;
        min-width: 0;
    }

    .price-mobile-detail-item em {
        color: #93a0b3;
        font-size: 10px;
        font-style: normal;
        line-height: 1.35;
    }

    .price-mobile-detail-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        align-items: center;
        max-width: none;
    }

    .price-mobile-detail-tags button {
        padding: 3px 6px;
        font-size: 10px;
    }

    .price-mobile-detail-genres {
        display: grid;
        gap: 7px;
        padding-top: 2px;
        border-top: 1px solid rgba(72, 93, 122, 0.34);
    }

    .price-mobile-detail-genres > span {
        color: #96a3b5;
        font-size: 10px;
        font-weight: 700;
    }

    .price-mobile-detail-genres .work-genre-tags {
        display: flex;
        max-width: none;
        margin-top: 0;
    }

    .price-mobile-detail-genres .work-genre-tags button,
    .price-mobile-detail-genres .work-genre-tags .genre-more-toggle {
        font-size: 11px;
    }

    .price-mobile-detail-buy {
        box-sizing: border-box;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        min-height: 44px;
        padding: 10px 14px;
        border: 1px solid rgba(255, 79, 163, 0.74);
        border-radius: 8px;
        color: #ff7ab1;
        background: rgba(8, 13, 22, 0.86);
        font-size: 13px;
        font-weight: 400;
        line-height: 1.2;
        text-decoration: none;
    }

    .price-mobile-detail-actions {
        display: flex;
        align-items: stretch;
        gap: 8px;
        width: 100%;
    }

    .price-mobile-detail-actions .price-mobile-detail-buy,
    .price-mobile-detail-actions .price-history-button {
        box-sizing: border-box;
        flex: 1 1 0;
        width: auto;
        max-width: none;
        min-width: 0;
        min-height: 40px;
        margin: 10px 0;
        padding: 8px 10px;
        border-radius: 8px;
        font-size: var(--price-action-font);
    }

    .price-mobile-detail-actions .price-mobile-detail-buy {
        flex: 1 1 0;
    }

    .price-mobile-detail-actions .price-history-button {
        flex: 1 1 0;
        width: auto;
    }

    .price-mobile-detail-buy::after {
        content: none;
    }
}

@media (max-width: 480px) {
    .price-search {
        padding: 10px;
    }

    .price-search div {
        grid-template-columns: minmax(0, 1fr) 82px;
        gap: 8px;
    }

    .price-search .price-filter-buttons {
        display: grid;
        grid-column: 1 / -1;
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
        justify-self: stretch;
    }

    .price-search .price-filter-button {
        width: 100%;
        box-sizing: border-box;
    }

    .price-table th,
    .price-table td {
        padding: 7px 3px;
    }

    .price-table thead tr,
    .price-main-row {
        grid-template-columns: 82px minmax(0, 1fr) 68px 28px;
    }

    .price-table .thumb-head,
    .price-table .thumb,
    .price-table .thumb-link,
    .price-table .thumb-empty {
        width: 100%;
        max-width: 100%;
    }

    .price-table .thumb-link,
    .price-table .thumb-empty,
    .price-table .thumb-hidden-placeholder {
        height: 100%;
        aspect-ratio: 4 / 3;
        min-height: 0;
        overflow: hidden;
    }

    .price-table .work-title {
        font-size: 12px;
        line-height: 1.35;
    }

    .work-mobile-voice {
        font-size: 10px;
    }

    .price-table .discount-head,
    .price-table .price-discount-cell {
        width: 100%;
        padding: 10px 3px 0;
    }

    .price-table .price-discount-cell > span:not(.sub) {
        padding: 3px 5px;
        font-size: 11px;
    }

    .price-table .price-head,
    .price-table .price-summary-cell {
        width: 100%;
        padding: 6px;
    }

    .price-table .price-summary-cell {
        padding: 2px 4px 10px;
        border-top: 0;
    }

    .price-table .price-current-value {
        font-size: 13px;
    }

    .price-table .price-official-cell span:last-child {
        font-size: 11px;
    }

    .price-table .watch-head,
    .price-table .watch-cell {
        width: 100%;
        padding: 9px 2px;
    }

    .price-table .watch-cell .watchlist-star-button {
        width: 24px;
        min-width: 24px;
        height: 24px;
        min-height: 24px;
        font-size: 17px;
    }

    .price-mobile-detail-panel {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        padding: 12px;
    }

    .price-mobile-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .price-mobile-detail-item {
        display: grid;
        gap: 5px;
        padding: 10px 8px;
    }

    .price-mobile-detail-item strong {
        font-size: 11px;
        line-height: 1.5;
    }

    .price-mobile-detail-buy {
        min-height: 40px;
        padding: 8px 10px;
        font-size: 12px;
    }
}

.watch-cell {
    width: 54px;
    text-align: center;
}

.watch-cell .watchlist-control {
    margin-top: 0;
}

.watch-cell .action-button {
    min-width: 0;
}

.watch-cell .watchlist-star-button {
    display: inline-grid;
    width: 36px;
    height: 36px;
    place-items: center;
    padding: 0;
    border-radius: 999px;
    color: #d9d1df;
    background: transparent;
    border: 1px solid transparent;
    font-family: Arial, sans-serif;
    font-size: 25px;
    font-weight: 400;
    line-height: 1;
    text-align: center;
}

.watch-cell .watchlist-star-button:hover,
.watch-cell .watchlist-star-button:focus-visible {
    color: #ffe17a;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    outline: none;
}

.watch-cell .watchlist-star-button.watched {
    color: #ffd34d;
    background: transparent;
    border-color: transparent;
}

.watch-cell .action-button:hover,
.watch-cell .action-button.watched,
.watch-cell .watchlist-star-button:hover,
.watch-cell .watchlist-star-button:focus-visible,
.watch-cell .watchlist-star-button.watched {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.auth-page {
    display: grid;
    place-items: start center;
    margin: 0 auto;
    padding: 24px;
    color: #e9edf2;
}

.auth-panel {
    width: min(100%, 460px);
    display: grid;
    gap: 16px;
    align-content: start;
    padding: 18px;
    background: #090a0d;
    border: 1px solid #20242c;
    border-radius: 6px;
}

.auth-heading p,
.auth-heading span {
    margin: 0;
}

.auth-heading {
    display: grid;
    gap: 4px;
}

.auth-heading p {
    color: #fff;
    font-size: 18px;
    font-weight: 800;
}

.auth-heading span {
    color: #9099aa;
    font-size: 12px;
    line-height: 1.5;
}

.auth-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.auth-tabs a,
.auth-sub-link {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    color: #d7dde7;
    background: #141821;
    border: 1px solid #303747;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.auth-tabs a.is-active {
    color: #fff;
    background: #e2485d;
    border-color: #e2485d;
}

.auth-lead,
.auth-message{
    margin: 0;
    color: #b8c0cc;
    font-size: 13px;
    line-height: 1.6;
}

.auth-message {
    color: #ff9aa6;
}

.auth-message.is-success {
    color: #8dcf9b;
}

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

.auth-form label {
    display: flex;
    width: 100%;
    min-width: 0;
    flex-direction: column;
    gap: 6px;
    color: #a9b1bf;
    font-size: 12px;
    font-weight: 700;
}

.auth-form label span {
    display: block;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    min-height: 42px;
    box-sizing: border-box;
    padding: 9px 10px;
    color: #f2f5f8;
    background: #07090d;
    border: 1px solid #303747;
    border-radius: 4px;
    font-size: 14px;
}

.auth-check {
    flex-direction: row !important;
    align-items: center;
}

.auth-check input {
    width: 16px;
    height: 16px;
    accent-color: #e2485d;
}

.auth-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.auth-note {
    margin: 0;
    color: #9099aa;
    font-size: 12px;
    line-height: 1.6;
}

.auth-registration-copy {
    display: grid;
    gap: 10px;
}

.auth-registration-copy p {
    margin: 0;
    color: #b8c0cc;
    font-size: 13px;
    line-height: 1.75;
}

.auth-security-note {
    display: flex;
    gap: 7px;
    align-items: flex-start;
    color: #9099aa;
    font-size: 11px;
    line-height: 1.65;
}

.auth-security-help {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
}

.auth-security-help > button {
    display: grid;
    width: 19px;
    height: 19px;
    padding: 0;
    place-content: center;
    border: 1px solid #4a586b;
    border-radius: 50%;
    color: #c8d0dc;
    background: #111a27;
    font-size: 11px;
    font-weight: 600;
    cursor: help;
}

.auth-security-help > button:focus-visible {
    outline: 2px solid #ff7aae;
    outline-offset: 2px;
}

.auth-security-help [role="tooltip"] {
    position: absolute;
    right: -8px;
    bottom: calc(100% + 9px);
    z-index: 10;
    width: min(330px, calc(100vw - 64px));
    padding: 11px 12px;
    border: 1px solid #3a475a;
    border-radius: 6px;
    color: #dce2eb;
    background: #111a27;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .42);
    font-size: 11px;
    line-height: 1.7;
    opacity: 0;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity .15s ease, transform .15s ease;
}

.auth-security-help:hover [role="tooltip"],
.auth-security-help:focus-within [role="tooltip"] {
    opacity: 1;
    transform: translateY(0);
}

.auth-nav-delete-button {
    appearance: none;
    border: 0;
    padding: 0;
    color: inherit;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.auth-delete-modal[hidden] {
    display: none;
}

.auth-delete-modal {
    position: fixed;
    inset: 0;
    z-index: 21000;
    display: grid;
    place-items: center;
    padding: 24px;
}

.auth-delete-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}

.auth-delete-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 430px);
    display: grid;
    gap: 12px;
    padding: 16px;
    color: #e9edf2;
    background: #10131a;
    border: 1px solid #303747;
    border-radius: 6px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.62);
}

.auth-delete-dialog p {
    margin: 0;
    color: #b8c0cc;
    font-size: 13px;
    line-height: 1.6;
}

.auth-delete-dialog #auth-delete-title {
    color: #fff;
    font-size: 16px;
    font-weight: 800;
}

.auth-delete-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.auth-page {
    min-height: auto;
    place-items: start center;
    padding: 32px 24px 56px;
}

.auth-panel {
    width: min(100%, 470px);
    gap: 18px;
    padding: 28px;
    background:
        linear-gradient(180deg, rgba(15, 23, 33, 0.94), rgba(8, 13, 20, 0.94)),
        #080d14;
    border-color: #2b3644;
    border-radius: 8px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
}

.auth-tabs {
    border-bottom: 1px solid #26313d;
}

.auth-tabs a {
    position: relative;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.auth-tabs a.is-active {
    color: #ff5aa2;
    background: transparent;
    border-color: transparent;
}

.auth-tabs a.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: #ff4fa3;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    background: #070b10;
    border-color: #2e3947;
}

.auth-form .action-button,
.auth-actions .action-button {
    min-height: 42px;
    background: linear-gradient(180deg, #cf3f83, #9c215f);
    border-color: #c63f78;
}

.auth-actions .action-button.danger {
    background: var(--danger-button-bg);
    border-color: var(--danger-button-border);
    color: #fff;
    box-shadow: 0 4px 4px var(--danger-button-shadow);
}

.auth-actions .action-button.danger:hover,
.auth-actions .action-button.danger:focus-visible {
    background: var(--danger-button-bg);
    border-color: var(--danger-button-border);
    color: #fff;
    filter: brightness(1.08);
}

@media (max-width: 1180px) {
    .site-nav {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "logo account"
            "search search"
            "menu menu";
        background: rgba(10, 8, 14, 0.98);
    }

    .site-logo {
        grid-area: logo;
        min-height: 58px;
        justify-content: start;
        padding: 0 24px;
    }

    .site-account {
        grid-area: account;
        background: rgba(10, 8, 14, 0.98);
    }

    .site-search {
        grid-area: search;
        padding: 8px 12px;
        border-top: 1px solid var(--site-border);
        background: #0f0b15;
    }
    .site-icon-link {
        min-width: 0;
        min-height: 48px;
        color: #fff;
        font-size: 13px;
    }
    .site-icon-link:hover,
    .site-icon-link:focus-visible{
        color: #fff;
        background: rgba(255, 255, 255, 0.12);
    }

    .site-icon-link {
        min-width: 96px;
        border-left: 1px solid var(--site-border);
        color: #fff;
    }

    .site-icon-link span[aria-hidden="true"] {
        color: rgba(255, 255, 255, 0.72);
    }
}

@media (max-width: 560px) {
    .site-nav {
        position: sticky;
        top: 0;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    body.admin-bar .site-nav {
        top: 0;
    }

    .site-logo {
        min-height: 58px;
        padding: 0 16px;
        font-size: 18px;
    }

    .site-logo span + span {
        font-size: 14px;
    }
    .site-account {
        width: 100%;
        overflow-x: visible;
        justify-content: stretch;
        border-top: 1px solid rgba(255, 255, 255, 0.28);
    }

    .site-account {
        width: auto;
        max-width: 100%;
        justify-self: end;
        justify-content: flex-end;
        overflow: hidden;
    }
    .site-icon-link {
        min-height: 44px;
        min-width: 0;
        padding: 0 8px;
        font-size: 12px;
    }

    .site-icon-link {
        min-width: 68px;
        font-size: 9px;
    }

    .site-icon-link span[aria-hidden="true"] {
        font-size: 17px;
    }

    .ranking-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
        padding: 10px;
    }

    .work-detail-main {
        grid-template-columns: 1fr;
    }

    .work-detail-specs div {
        grid-template-columns: 78px minmax(0, 1fr);
    }

    .price-search div {
        grid-template-columns: minmax(0, 1fr) 82px;
    }

    .auth-page {
        padding: 12px;
    }
}

/* Flat 2026 brand refresh */
body:has(.site-nav),
body:has(.price-page),
.site-nav,
.price-page,
.auth-page,
.watchlist-page,
body:has(.site-nav) .site-footer {
    background: var(--bg);
    color: var(--text);
}

body:has(.site-nav) *,
.price-page *,
.auth-page * {
    box-shadow: none;
    text-shadow: none;
}

.site-nav,
.site-logo,
.site-search,
.site-account,
.price-page,
.price-search,
.price-table,
.price-table th,
.price-table td,
.price-filter-dialog,
.price-filter-section,
.watchlist-settings-dialog,
.price-mobile-detail-row td,
.price-mobile-detail-panel,
body:has(.site-nav) .content-page {
    background: var(--surface);
    border-color: var(--border);
}

.price-page,
.price-table,
.price-filter-dialog,
.watchlist-settings-dialog,
body:has(.site-nav) .content-page {
    border: 1px solid var(--border);
}

.site-logo img {
    filter: none;
}
.site-icon-link,
.site-search input,
.site-search button,
.price-table,
.price-table a,
.price-table th,
.price-table td,
.price-page a,
.price-search input,
.price-filter-dialog,
.watchlist-settings-dialog,
body:has(.site-nav) .content-page {
    color: var(--text);
}

.price-page p,
.price-page-head,
.price-page-head p:last-child,
.price-table .sub,
.work-meta-line,
.work-credit-group > span,
.price-label,
.price-lowest-date,
.price-official-cell,
.price-search label,
.price-filter-head p,
.price-filter-price-grid label {
    color: var(--text-muted);
}
.site-icon-link:hover,
.site-icon-link:focus-visible,
.price-mode-tabs a.is-active {
    color: var(--text);
    background: var(--surface-2);
}
.price-mode-tabs a.is-active::after {
    background: var(--accent);
}

.site-search input,
.price-search input,
.price-filter-price-grid input,
.price-filter-section > input,
.price-filter-genre-panel input{
    background: var(--surface-2);
    border-color: var(--border);
    color: var(--text);
}

.site-icon-link {
    background: var(--surface-2);
    border-color: var(--border);
    color: var(--text);
}

.site-icon-link span[aria-hidden="true"] {
    color: var(--accent-text);
}

.site-search button,
.action-button.watched,
.action-button:hover,
.destination-option.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--text);
}

.site-icon-link:hover,
.site-icon-link:focus-visible,
.action-button,
.destination-option {
    background: var(--surface-2);
    border-color: var(--border);
    color: var(--text);
}

.site-icon-link:hover,
.site-icon-link:focus-visible {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--text);
}

.price-table th {
    background: var(--surface-2);
    color: var(--text);
}

.price-table th,
.price-table td,
.price-table,
.price-mode-tabs,
.site-account,
.site-icon-link,
.site-logo,
body:has(.site-nav) .site-footer {
    border-color: var(--border);
}

.price-current-cell,
.price-current-value,
.price-table .price-current-cell {
    color: var(--price-current);
}

.price-table .price-lowest-cell{
    color: var(--price-lowest);
}

.price-official-cell,
.price-official-cell .price-label,
.price-label,
.price-lowest-date {
    color: var(--price-normal);
}

.price-table .price-discount-cell > span:not(.sub) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 4px 8px;
    border: 0;
    border-radius: 4px;
    color: var(--discount-text);
    font-weight: 700;
    line-height: 1.2;
}

.price-table .price-discount-cell > span.discount-tier-1:not(.sub){
    background: var(--discount-low-bg);
    color: var(--discount-text);
}

.price-table .price-discount-cell > span.discount-tier-25:not(.sub){
    background: var(--discount-mid-bg);
    color: var(--discount-text);
}

.price-table .price-discount-cell > span.discount-tier-50:not(.sub){
    background: var(--discount-high-bg);
    color: var(--discount-text);
}

.price-table .price-discount-cell > span.discount-tier-75:not(.sub) {
    background: var(--discount-very-high-bg);
    color: var(--discount-text);
}

/* Layout-lab adopted navigation and price filter surface */
.site-nav {
    grid-template-columns: auto minmax(150px, 250px) minmax(220px, 1fr) auto;
    grid-template-areas: none;
    align-items: stretch;
    min-height: 58px;
}

.site-menu-toggle {
    display: inline-grid;
    width: 58px;
    min-height: 58px;
    place-items: center;
    gap: 4px;
    padding: 17px 18px;
    border: 0;
    border-right: 1px solid #243247;
    background: #07111d;
    color: #e8e1eb;
    cursor: pointer;
}

.site-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.site-logo {
    min-height: 58px;
    border-right: 1px solid #243247;
}

.site-menu-toggle,
.site-logo,
.site-search,
.site-account {
    grid-area: auto;
}

.site-account {
    gap: 8px;
}

.site-icon-link {
    min-height: 58px;
}

.site-drawer-backdrop[hidden],
.site-drawer[hidden] {
    display: none;
}

.site-drawer-backdrop {
    position: fixed;
    inset: 58px 0 0;
    z-index: 9998;
    background: rgba(0, 0, 0, 0.58);
}

.site-drawer {
    position: fixed;
    top: 58px;
    bottom: 0;
    left: 0;
    z-index: 9999;
    width: min(320px, 84vw);
    overflow-y: auto;
    padding: 14px 14px 28px;
    border-right: 1px solid #243247;
    background: #101722;
    box-shadow: 18px 0 40px rgba(0, 0, 0, 0.34);
}

body.admin-bar .site-drawer,
body.admin-bar .site-drawer-backdrop {
    top: 90px;
}

.site-drawer-section {
    display: grid;
    gap: 4px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(194, 202, 218, 0.14);
}

.site-drawer-section:first-child {
    padding-top: 0;
}

.site-drawer-section strong {
    font-size: 13px;
    font-weight: 900;
}

.site-drawer-section.drawer-watch strong {
    color: #e4c46a;
}

.site-drawer-section.drawer-male strong {
    color: #7fb6ff;
}

.site-drawer-section.drawer-female strong {
    color: #ff8dae;
}

.site-drawer-section.drawer-other strong {
    color: #b8c2d2;
}

.site-drawer-section a {
    display: flex;
    min-height: 31px;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    border-radius: 4px;
    color: rgba(232, 237, 246, 0.86);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.site-drawer-section a:hover,
.site-drawer-section a:focus-visible {
    background: rgba(255, 255, 255, 0.045);
    color: #fff;
}

@media (min-width: 1025px) {
    .site-drawer-backdrop:not([hidden]) {
        display: block;
    }
}

@media (max-width: 1024px) {
    .site-nav {
        grid-template-columns: auto minmax(132px, auto) minmax(0, 1fr) auto;
        grid-template-areas: none;
    }

    .site-logo img {
        width: min(150px, 100%);
        max-height: 38px;
        object-fit: contain;
    }
}

@media (max-width: 767px) {
    .site-nav {
        grid-template-columns: auto 1fr auto;
        grid-template-areas:
            "menu logo account"
            "search search search";
    }

    .site-menu-toggle {
        grid-area: menu;
    }

    .site-logo {
        grid-area: logo;
        min-width: 0;
        padding-right: 8px;
        padding-left: 8px;
    }

    .site-search {
        grid-area: search;
    }

    .site-account {
        grid-area: account;
        padding-right: 10px;
    }
}

.price-search {
    gap: 10px;
}

.price-search div:first-of-type {
    grid-template-columns: minmax(220px, 1fr) auto auto auto;
}

.price-search .price-filter-open-button {
    min-height: 36px;
}

.price-search .price-filter-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-start;
}

@media (max-width: 767px) {
    .price-search div:first-of-type {
        grid-template-columns: minmax(0, 1fr) auto;
    }
}

/* Production adoption pass: keep the layout-lab table proportions on the WP output. */
body:has(.price-page) {
    --wp--style--global--content-size: min(100%, 1200px);
    --wp--style--global--wide-size: min(100%, 1200px);
}

body:has(.price-page) .entry-content.wp-block-post-content {
    max-width: none !important;
}

.price-page {
    width: min(100%, 1200px) !important;
    max-width: min(calc(100vw - 48px), 1200px) !important;
    margin: 24px auto 40px !important;
    padding: 16px;
    overflow-x: auto;
    background: var(--surface);
    border-color: rgba(194, 202, 218, 0.16);
}

.site-nav {
    overflow: visible;
    transform: none !important;
}

.site-drawer-backdrop {
    inset: 58px 0 0;
    z-index: 30000;
}

.site-drawer {
    inset: 58px auto 0 0;
    z-index: 30001;
    height: calc(100vh - 58px);
    max-height: calc(100vh - 58px);
    background: #101722;
}

body.admin-bar .site-drawer,
body.admin-bar .site-drawer-backdrop {
    top: 90px;
}

body.admin-bar .site-drawer {
    height: calc(100vh - 90px);
    max-height: calc(100vh - 90px);
}

.price-search {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 0 0 14px;
    padding: 0 0 12px;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(194, 202, 218, 0.16);
}

.price-search > div:first-of-type {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) auto auto;
    gap: 8px;
    align-items: center;
}

.price-search > .price-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
}

.price-search input {
    min-height: 40px;
    background: #0b1421;
    border-color: rgba(194, 202, 218, 0.16);
}

.price-table {
    width: 100%;
    min-width: 1040px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    background: #101a2a;
    border: 1px solid rgba(194, 202, 218, 0.16);
    border-radius: 7px;
}

.price-table th {
    background: #070e1a;
    color: #8b99ab;
}

.price-table th,
.price-table td {
    border-right: 0;
    border-bottom: 1px solid rgba(194, 202, 218, 0.12);
}

.price-table .price-summary-cell,
.price-table .watch-cell {
    border-left: 1px solid rgba(194, 202, 218, 0.12);
}

.price-table tbody tr:hover > td,
.price-main-row:hover > td {
    background: rgba(255, 255, 255, 0.035);
}

.price-table .thumb-link {
    border-color: rgba(194, 202, 218, 0.16);
    background: #0b1421;
}

.price-table .work-title {
    color: #eef2f9;
    text-decoration-color: transparent;
}

.price-table .work-title:hover,
.price-table .work-title:focus-visible {
    color: #fff;
    text-decoration-color: #fff;
}

.work-credit-group + .work-credit-group {
    border-top-color: rgba(194, 202, 218, 0.10);
}

@media (min-width: 768px) and (max-width: 1024px) {
    .price-page {
        width: min(100%, 1024px) !important;
        max-width: min(calc(100vw - 24px), 1024px) !important;
        margin-top: 18px !important;
        padding: 12px;
    }

    .price-table {
        min-width: 900px;
    }
}

@media (max-width: 767px) {
    .price-page {
        width: min(100%, calc(100vw - 20px)) !important;
        max-width: calc(100vw - 20px) !important;
        margin: 12px auto 28px !important;
        padding: 10px;
        overflow-x: visible;
    }

    .price-search {
        padding-bottom: 10px;
    }

    .price-search > div:first-of-type {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .price-search > div:first-of-type .price-filter-open-button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .price-table {
        min-width: 0;
        border-color: rgba(194, 202, 218, 0.16);
    }

    .price-table .price-summary-cell,
    .price-table .watch-cell {
        border-left-color: rgba(194, 202, 218, 0.12);
    }
}

/* Layout-lab parity fixes: drawer overlay, badges, lowest-state pricing, and no viewport clipping. */
.site-drawer-backdrop {
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
}

body.site-drawer-open {
    overflow: hidden;
}

.site-nav.is-drawer-open {
    z-index: 40000;
}

.site-drawer-backdrop:not([hidden]) {
    animation: dlsiteDrawerBackdropFade 0.16s ease-out;
}

.site-drawer {
    box-sizing: border-box;
    inset: 0 auto 0 0;
    height: 100vh;
    max-height: 100vh;
}

.site-drawer:not([hidden]) {
    animation: dlsiteDrawerSlideIn 0.18s ease-out;
}

.site-drawer-head {
    display: flex;
    min-height: 58px;
    align-items: center;
    gap: 12px;
    margin: -14px -14px 10px;
    padding: 0 14px 0 0;
    border-bottom: 1px solid rgba(194, 202, 218, 0.14);
    background: #101722;
}

.site-drawer-head .drawer-menu-toggle {
    flex: 0 0 58px;
    border-right: 1px solid rgba(194, 202, 218, 0.14);
    background: transparent;
}

.site-drawer-logo {
    display: flex;
    min-width: 0;
    align-items: center;
    text-decoration: none;
}

.site-drawer-logo img {
    display: block;
    width: min(150px, 100%);
    max-height: 38px;
    object-fit: contain;
}

@keyframes dlsiteDrawerBackdropFade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes dlsiteDrawerSlideIn {
    from {
        transform: translateX(-14px);
        opacity: 0.84;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

body.admin-bar .site-drawer,
body.admin-bar .site-drawer-backdrop {
    top: 0;
}

body.admin-bar .site-drawer {
    height: 100vh;
    max-height: 100vh;
}

@media (min-width: 1025px) {
    .site-drawer-backdrop {
        inset: 58px 0 0;
    }

    .site-drawer {
        inset: 58px auto 0 0;
        height: calc(100vh - 58px);
        max-height: calc(100vh - 58px);
    }

    .site-drawer-head {
        display: none;
    }

    body.admin-bar .site-drawer {
        top: 90px;
        height: calc(100vh - 90px);
        max-height: calc(100vh - 90px);
    }
}

.price-page {
    box-sizing: border-box;
    width: min(100% - 48px, 1200px) !important;
    max-width: 1200px !important;
}

.price-table {
    min-width: 0;
    table-layout: fixed;
}

.price-table .rank-head,
.price-table .rank {
    width: 42px;
}

.price-table .thumb-head,
.price-table .thumb {
    width: clamp(108px, 14vw, 170px);
}

.price-table .thumb-link,
.price-table .thumb-empty,
.price-table .thumb-hidden-placeholder {
    width: 100%;
    max-width: 100%;
}

.price-table .creator-head,
.price-table .creator-cell {
    width: clamp(132px, 17vw, 190px);
}

.price-table .discount-head,
.price-table .price-discount-cell {
    width: 72px;
}

.price-table .price-head,
.price-table .price-summary-cell {
    width: clamp(128px, 17vw, 178px);
}

.price-table .watch-head,
.price-table .watch-cell {
    width: 56px;
}

.price-table .watch-cell {
    text-align: center;
}

.price-table .watch-cell .watchlist-control {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
}

.price-status-line {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.price-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.15;
    white-space: nowrap;
}

.price-status-badge.lowest {
    display: inline-flex;
    background: #1f4f54;
    color: #d8eceb;
}

.price-before {
    color: var(--price-normal);
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

.mobile-detail-hint {
    display: none;
}

.price-table .price-lowest-cell{
    color: var(--price-normal);
}

.price-table .price-summary-cell.is-current-lowest .price-current-value,
.price-table .price-summary-cell.is-current-lowest .price-lowest-cell,
.price-table .price-summary-cell.is-current-lowest .price-lowest-value {
    color: var(--price-lowest);
}

.price-table .price-summary-cell.is-current-lowest .price-lowest-date {
    color: rgba(126, 231, 135, 0.78);
}

@media (min-width: 768px) and (max-width: 1024px) {
    .price-page {
        width: min(100% - 24px, 1024px) !important;
        max-width: 1024px !important;
        overflow-x: hidden;
    }

    .price-table {
        min-width: 0;
        table-layout: fixed;
    }

    .price-table .rank-head,
    .price-table .rank {
        width: 30px;
    }

    .price-table .thumb-head,
    .price-table .thumb {
        width: clamp(96px, 14vw, 128px);
    }

    .price-table .creator-head,
    .price-table .creator-cell {
        width: clamp(104px, 15vw, 132px);
    }

    .price-table .discount-head,
    .price-table .price-discount-cell {
        width: 54px;
    }

    .price-table .price-head,
    .price-table .price-summary-cell {
        width: clamp(108px, 15vw, 132px);
    }

    .price-table .watch-head,
    .price-table .watch-cell {
        width: 40px;
    }

    .price-status-badge {
        min-height: 18px;
        padding: 2px 6px;
        font-size: 10px;
    }
}

@media (max-width: 767px) {
    .price-page {
        position: relative;
        left: 50%;
        width: calc(100vw - 20px) !important;
        max-width: calc(100vw - 20px) !important;
        transform: translateX(-50%);
    }

    .price-table {
        min-width: 0;
        table-layout: fixed;
    }

    .price-status-line {
        margin-bottom: 2px;
    }

    .price-status-badge {
        min-height: 17px;
        padding: 2px 5px;
        border-radius: 4px;
        font-size: 10px;
    }

    .price-table .price-lowest-cell {
        display: none;
    }

    /* Adopt the selected layout-lab mobile card structure. */
    .price-table {
        display: block;
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .price-search > .price-filter-buttons {
        display: flex;
        grid-template-columns: none;
        flex-wrap: nowrap;
        width: 100%;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .price-search > .price-filter-buttons > * {
        flex: 0 0 auto;
        width: auto !important;
    }

    .price-table thead {
        display: none;
    }

    .price-table tbody {
        display: block;
    }

    .price-main-row {
        position: relative;
        display: grid;
        grid-template-columns: 118px minmax(0, 1fr) 34px;
        grid-template-rows: auto auto auto;
        width: 100%;
        margin-top: 8px;
        overflow: hidden;
        border: 1px solid rgba(194, 202, 218, 0.14);
        border-radius: 6px;
        background: #101a2a;
    }

    .price-main-row:first-child {
        margin-top: 0;
    }

    .price-main-row:hover > td {
        background: rgba(255, 255, 255, 0.025);
    }

    .price-main-row.is-expanded {
        border-bottom: 0;
        border-radius: 6px 6px 0 0;
        background: rgba(214, 74, 130, 0.035);
    }

    .price-table .thumb {
        grid-column: 1;
        grid-row: 1;
        display: flex;
        align-items: flex-start;
        align-self: stretch;
        width: 118px;
        max-width: 118px;
        padding: 12px 0 10px 12px;
        border: 0;
    }

    .price-table .thumb-link,
    .price-table .thumb-empty,
    .price-table .thumb-hidden-placeholder {
        width: 106px;
        height: auto;
        min-height: 80px;
        aspect-ratio: 4 / 3;
        border-radius: 5px;
    }

    .price-table .work-info-cell {
        grid-column: 2;
        grid-row: 1;
        display: grid;
        align-content: start;
        gap: 4px;
        min-height: 112px;
        padding: 12px 58px 10px 10px;
        border: 0;
    }

    .price-table .work-title {
        font-size: 13px;
        font-weight: 400;
        line-height: 1.34;
        text-decoration: underline;
        text-decoration-color: transparent;
        text-decoration-thickness: 1px;
        text-underline-offset: 3px;
        -webkit-line-clamp: 2;
    }

    .price-table .work-title:hover,
    .price-table .work-title:focus-visible {
        color: #fff;
        text-decoration-color: #fff;
    }

    .work-mobile-voice,
    .work-mobile-genres {
        display: block;
        margin: 0;
        overflow: hidden;
        color: #9ca7b8;
        font-size: 11px;
        line-height: 1.4;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .work-mobile-voice {
        color: #aeb9c9;
        font-weight: 400;
    }

    .price-table .price-discount-cell {
        grid-column: 1 / 3;
        grid-row: 2;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        width: auto;
        padding: 9px 10px 4px;
        border-top: 1px solid rgba(194, 202, 218, 0.08);
        border-bottom: 0;
    }

    .price-table .price-discount-cell > span:not(.sub) {
        min-width: 46px;
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 11px;
    }

    .price-table .price-summary-cell {
        position: static;
        grid-column: 1 / 3;
        grid-row: 3;
        display: flex;
        gap: 8px;
        align-items: baseline;
        width: auto;
        padding: 2px 10px 11px;
        border: 0;
    }

    .price-page .price-table .price-summary-cell .price-history-button {
        display: none;
    }

    .price-table .price-current-cell,
    .price-table .price-official-cell {
        display: inline-flex;
        align-items: baseline;
        gap: 4px;
    }

    .price-table .price-current-value {
        font-size: 18px;
        line-height: 1.05;
    }

    .price-table .price-official-cell .price-label {
        display: none;
    }

    .price-table .price-official-cell span:last-child {
        font-size: 12px;
    }

    .price-table .price-summary-cell.is-normal-price .price-official-cell {
        display: none;
    }

    .price-table .watch-cell {
        position: static;
        grid-column: 3;
        grid-row: 1 / 4;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: auto;
        padding: 0;
        border: 0;
        border-left: 1px solid rgba(194, 202, 218, 0.08);
        background: transparent;
    }

    .price-table .watch-cell .watchlist-control {
        width: 34px;
        height: 100%;
    }

    .mobile-detail-hint {
        order: -1;
        display: inline-flex;
        min-height: 28px;
        align-items: center;
        gap: 7px;
        margin-right: auto;
        padding: 4px 10px;
        border-radius: 999px;
        color: #b6c0cf;
        font-size: 11px;
        font-weight: 500;
        line-height: 1;
        white-space: nowrap;
        cursor: pointer;
        transition: color 0.14s ease, background-color 0.14s ease;
    }

    .mobile-detail-hint:hover,
    .price-main-row:focus-visible .mobile-detail-hint {
        color: #f3f6fb;
        background: rgba(255, 255, 255, 0.11);
    }

    .mobile-detail-hint > span {
        display: inline-block;
        font-size: 9px;
        transition: transform 0.16s ease;
    }

    .price-main-row.is-expanded .mobile-detail-hint > span {
        transform: rotate(180deg);
    }

    .price-status-line {
        position: absolute;
        top: 8px;
        right: 42px;
        z-index: 1;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 4px;
        margin: 0;
    }

    .price-status-badge.lowest {
        display: inline-flex;
    }

    .price-mobile-detail-row.is-open {
        display: block;
        width: 100%;
        margin: 0 0 8px;
        overflow: hidden;
        border: 1px solid rgba(194, 202, 218, 0.14);
        border-top: 1px solid rgba(194, 202, 218, 0.08);
        border-radius: 0 0 6px 6px;
        background: #101722;
    }

    .price-mobile-detail-row td {
        width: 100%;
        padding: 0;
        border: 0;
        background: rgba(16, 23, 34, 0.82);
    }

    .price-mobile-detail-panel {
        gap: 0;
        padding: 0;
        border: 0;
        background: transparent;
    }

    .price-mobile-detail-title {
        display: grid;
        gap: 5px;
        padding: 10px 12px;
        border-bottom: 1px solid rgba(194, 202, 218, 0.10);
    }

    .price-mobile-detail-title span,
    .price-mobile-detail-genres > span {
        color: #96a3b5;
        font-size: 10px;
        font-weight: 700;
    }

    .price-mobile-detail-title p {
        margin: 0;
        color: #cdd5df;
        font-size: 12px;
        font-weight: 400;
        line-height: 1.5;
    }

    .price-mobile-detail-grid {
        width: 100%;
    }

    .price-mobile-detail-item {
        padding: 10px 12px;
        border-top: 0;
        border-bottom: 1px solid rgba(194, 202, 218, 0.10);
    }

    .price-mobile-detail-item:nth-child(odd) {
        padding-left: 12px;
        border-right: 1px solid rgba(194, 202, 218, 0.10);
    }

    .price-mobile-detail-item:nth-child(even) {
        padding-right: 12px;
    }

    .price-mobile-detail-item strong {
        font-weight: 400;
    }

    .price-mobile-detail-item strong.is-current-lowest,
    .price-mobile-detail-item strong.is-current-lowest + em {
        color: var(--price-lowest);
    }

    .price-mobile-detail-genres {
        padding: 10px 12px;
        border-top: 0;
        border-bottom: 1px solid rgba(194, 202, 218, 0.10);
    }

    .price-mobile-detail-buy {
        width: calc(100% - 20px);
        max-width: 300px;
        min-height: 40px;
        margin: 10px auto;
        border-color: rgba(194, 202, 218, 0.18);
        background: #101722;
        color: #eef3f8;
    }

    .price-mobile-detail-actions .price-mobile-detail-buy,
    .price-mobile-detail-actions .price-history-button {
        width: auto;
        max-width: none;
        margin: 10px 0;
    }
}

/* Price table readability and interaction polish. */
.price-main-row:focus,
.price-main-row:focus-visible {
    outline: none;
    box-shadow: none;
}

.price-table .thumb-link.is-previewing img.thumb-preview {
    position: fixed;
    top: var(--preview-top, 96px);
    left: var(--preview-left, 50%);
    z-index: 50000;
    width: var(--preview-width, min(72vw, 360px));
    max-width: calc(100vw - 32px);
    height: auto;
    max-height: calc(100vh - 32px);
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

@media (min-width: 1025px) {
    .price-table {
        font-size: 16px;
    }

    .price-table th {
        font-size: 14px;
    }

    .price-table .work-title {
        font-size: 16px;
    }

    .work-meta-line,
    .work-credit-group > span,
    .price-label,
    .price-lowest-date,
    .price-official-cell {
        font-size: 14px;
    }

    .price-tags button,
    .work-genre-tags .genre-more-toggle,
    .price-table .price-discount-cell > span:not(.sub),
    .price-table .price-lowest-cell {
        font-size: 14px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .price-table {
        font-size: 15px;
    }

    .price-table th,
    .work-meta-line,
    .work-credit-group > span,
    .price-label,
    .price-lowest-date,
    .price-official-cell {
        font-size: 13px;
    }

    .price-table .work-title,
    .price-tags button,
    .work-genre-tags .genre-more-toggle,
    .price-table .price-lowest-cell {
        font-size: 14px;
    }

    .price-table .price-discount-cell > span:not(.sub) {
        font-size: 13px;
    }
}

@media (max-width: 767px) {
    .price-main-row:has(.thumb-link.is-previewing),
    .price-main-row:has(.thumb-link:hover),
    .price-main-row:has(.thumb-link:focus-visible) {
        z-index: 23000;
        overflow: visible;
    }

    .price-table .work-title,
    .work-mobile-voice,
    .work-mobile-genres {
        font-size: 14px;
    }

    .price-table .work-info-cell {
        gap: 5px;
        min-height: 122px;
    }

    .price-table .price-discount-cell > span:not(.sub),
    .price-table .price-official-cell span:last-child,
    .mobile-detail-hint {
        font-size: 13px;
    }

    .price-table .price-current-value {
        font-size: 19px;
    }

    .price-mobile-detail-title p,
    .price-mobile-detail-item strong,
    .price-mobile-detail-genres .work-genre-tags button,
    .price-mobile-detail-genres .work-genre-tags .genre-more-toggle,
    .price-mobile-detail-tags button {
        font-size: 14px;
    }

    .price-mobile-detail-title span,
    .price-mobile-detail-item > span,
    .price-mobile-detail-genres > span,
    .price-mobile-detail-item em {
        font-size: 12px;
    }
}

/* Keep titles and current prices primary; render metadata one step smaller. */
@media (min-width: 1025px) {
    .price-table .work-title {
        font-size: var(--price-title-font);
    }

    .price-table .price-current-value {
        font-size: var(--price-current-font);
    }

    .price-table .price-discount-cell {
        box-shadow: inset 1px 0 rgba(255, 255, 255, 0.055);
    }

    .price-table .price-head,
    .price-table .price-summary-cell {
        width: clamp(116px, 14vw, 154px);
    }

    .price-status-badge.lowest {
        font-size: 13px;
    }

    .work-meta-line,
    .thumb-credit,
    .work-credit-group > span,
    .price-label,
    .price-official-cell,
    .price-table .price-lowest-cell {
        font-size: var(--price-meta-font);
        font-weight: 400;
    }

    .price-tags button,
    .work-genre-tags .genre-more-toggle,
    .price-table .price-discount-cell > span:not(.sub) {
        font-size: 12px;
    }

    .price-table .price-lowest-cell {
        flex-wrap: wrap;
        gap: 3px;
    }

    .price-lowest-date {
        flex: 0 0 auto;
        font-size: 10.5px;
        font-weight: 400;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .price-table .work-title {
        font-size: var(--price-title-font);
    }

    .price-table .price-current-value {
        font-size: var(--price-current-font);
    }

    .price-table .price-discount-cell {
        box-shadow: inset 1px 0 rgba(255, 255, 255, 0.055);
    }

    .price-table .price-head,
    .price-table .price-summary-cell {
        width: clamp(100px, 13vw, 120px);
    }

    .price-status-badge.lowest {
        font-size: 12px;
    }

    .work-meta-line,
    .thumb-credit,
    .work-credit-group > span,
    .price-label,
    .price-official-cell,
    .price-table .price-lowest-cell {
        font-size: var(--price-meta-font);
        font-weight: 400;
    }

    .price-tags button,
    .work-genre-tags .genre-more-toggle,
    .price-table .price-discount-cell > span:not(.sub) {
        font-size: 12px;
    }

    .price-table .price-lowest-cell {
        flex-wrap: wrap;
        gap: 2px;
    }

    .price-lowest-date {
        flex: 0 0 auto;
        font-size: 9.5px;
        font-weight: 400;
    }
}

@media (max-width: 767px) {
    .price-table .thumb:has(.thumb-link.is-previewing),
    .price-table .thumb-link.is-previewing {
        overflow: visible;
    }

    .price-table .thumb-link.is-previewing img.thumb-preview {
        position: absolute;
        top: 0;
        left: calc(100% + 8px);
        width: var(--preview-width, 212px);
        max-width: 212px;
        max-height: none;
    }

    .price-mobile-detail-panel,
    .price-mobile-detail-panel span,
    .price-mobile-detail-panel p,
    .price-mobile-detail-panel strong,
    .price-mobile-detail-panel em,
    .price-mobile-detail-panel button,
    .price-mobile-detail-panel a {
        font-weight: 400 !important;
    }

    .price-table .work-title {
        font-size: 14px;
    }

    .price-table .price-current-value {
        font-size: 18px;
    }

    .work-mobile-voice,
    .work-mobile-genres,
    .price-table .price-discount-cell > span:not(.sub),
    .price-table .price-official-cell span:last-child,
    .mobile-detail-hint,
    .price-mobile-detail-title p,
    .price-mobile-detail-item strong,
    .price-mobile-detail-genres .work-genre-tags button,
    .price-mobile-detail-genres .work-genre-tags .genre-more-toggle,
    .price-mobile-detail-tags button {
        font-size: 12px;
    }

    .price-mobile-detail-item strong {
        font-weight: 400;
    }

    .price-mobile-detail-item .price-mobile-detail-tags button {
        font-weight: 400;
    }

    .price-status-badge.lowest {
        font-size: 12px;
    }
}

/* Watchlist keeps the desktop price-table structure at every viewport width. */
.watchlist-table-scroll {
    width: 100%;
    overflow-x: auto;
    border: 1px solid rgba(194, 202, 218, 0.14);
    border-radius: 6px;
    background: #101722;
    scrollbar-color: #344155 #101722;
}

.price-table.watchlist-table {
    width: 100%;
    min-width: 1000px;
    table-layout: fixed;
    border: 0;
}

.watchlist-table th:nth-child(1),
.watchlist-table td:nth-child(1) {
    width: 170px;
}

.watchlist-table th:nth-child(3),
.watchlist-table td:nth-child(3) {
    width: 190px;
}

.watchlist-table th:nth-child(4),
.watchlist-table td:nth-child(4) {
    width: 72px;
}

.watchlist-table th:nth-child(5),
.watchlist-table td:nth-child(5) {
    width: 160px;
}

.watchlist-table th:nth-child(6),
.watchlist-table td:nth-child(6) {
    width: 88px;
}

.watchlist-table .watchlist-row > td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
    background: #101722;
}

.watchlist-table .watchlist-row:hover > td {
    background: rgba(255, 255, 255, 0.025);
}

.watchlist-table .thumb,
.watchlist-table .work-info-cell,
.watchlist-table .watchlist-notification-cell,
.watchlist-table .price-discount-cell,
.watchlist-table .price-summary-cell,
.watchlist-table .watchlist-operation-cell {
    vertical-align: middle;
}

.watchlist-table .watchlist-notification-cell {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.65;
}

.watchlist-table .watchlist-notification-cell .sub {
    display: block;
}

.watchlist-table .watchlist-notification-cell .sub > span {
    color: var(--text-primary);
}

.watchlist-table .watchlist-inline-action {
    margin-top: 8px;
}

.watchlist-table .watchlist-operation-cell {
    text-align: center;
    border-left: 1px solid rgba(255, 255, 255, 0.055);
}

.watchlist-table .watchlist-operation-cell form {
    margin: 0;
}

@media (max-width: 767px) {
    .watchlist-page {
        overflow: visible;
    }

    .watchlist-table-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .price-table.watchlist-table {
        display: table;
        width: 1000px;
        min-width: 1000px;
        table-layout: fixed;
        overflow: visible;
        border-collapse: collapse;
        font-size: 14px;
    }

    .watchlist-table thead {
        display: table-header-group;
    }

    .watchlist-table tbody {
        display: table-row-group;
    }

    .watchlist-table tr {
        display: table-row;
    }

    .watchlist-table th,
    .watchlist-table td,
    .watchlist-table .thumb,
    .watchlist-table .work-info-cell,
    .watchlist-table .price-discount-cell,
    .watchlist-table .price-summary-cell {
        position: static;
        display: table-cell;
        width: auto;
        max-width: none;
        height: auto;
        min-height: 0;
        padding: 12px 10px;
        border-radius: 0;
    }

    .watchlist-table .thumb-link,
    .watchlist-table .thumb-empty {
        width: 148px;
        min-height: 111px;
        aspect-ratio: 4 / 3;
    }

    .watchlist-table .work-info-cell {
        padding: 12px 10px;
    }

    .watchlist-table .price-discount-cell {
        padding-right: 4px;
        padding-left: 4px;
        text-align: center;
        box-shadow: inset 1px 0 rgba(255, 255, 255, 0.055);
    }

    .watchlist-table .price-summary-cell {
        white-space: normal;
    }

    .watchlist-table .watchlist-operation-cell {
        padding: 12px 8px;
    }
}

/* Watchlist notification controls and price-alert dialog. */
.watchlist-table .watchlist-notification-cell {
    box-shadow: inset 1px 0 rgba(255, 255, 255, 0.055);
}

.watchlist-table .watchlist-notification-status {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    min-height: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
    color: var(--text-primary);
    font-size: 12px;
}

.watchlist-table .watchlist-notification-state {
    display: inline-flex;
    min-width: 42px;
    min-height: 22px;
    align-items: center;
    justify-content: center;
    padding: 1px 8px;
    border-radius: 999px;
    background: #2a3545;
    color: #aeb8c7;
    font-size: 11px;
    font-weight: 600;
}

.watchlist-table .watchlist-notification-state.is-on {
    background: #b53b6c;
    color: #fff;
}

.watchlist-table .watchlist-notification-value {
    color: var(--text-primary);
    white-space: nowrap;
}

.watchlist-table .notification-settings-button {
    width: 100%;
}

.watchlist-table .watchlist-mobile-action-icon {
    display: none;
}

.watchlist-table .watchlist-price-badges,
.watchlist-table .watchlist-price-values {
    display: contents;
}

.watchlist-table .action-button.danger {
    min-height: 32px;
    padding: 6px 11px;
    border-color: var(--danger-button-border);
    background: var(--danger-button-bg);
    color: #fff;
    box-shadow: 0 4px 4px var(--danger-button-shadow);
    font-weight: 500;
}

.watchlist-table .action-button.danger:hover,
.watchlist-table .action-button.danger:focus-visible {
    border-color: var(--danger-button-border);
    background: var(--danger-button-bg);
    color: #fff;
    filter: brightness(1.08);
}

.watchlist-settings-dialog {
    width: min(100%, 608px);
    max-height: calc(100vh - 40px);
    gap: 18px;
    padding: 24px;
    overflow-y: auto;
    border-color: #344155;
    background: #101722;
}

.watchlist-settings-head #watchlist-settings-title {
    color: var(--text-strong);
    font-size: 20px;
    font-weight: 600;
}

.watchlist-settings-work {
    margin-top: 12px !important;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
}

.watchlist-settings-lead {
    margin: 5px 0 0 !important;
    color: var(--text-muted);
    font-size: 12px;
}

.watchlist-settings-close {
    border-color: transparent;
    background: transparent;
    color: var(--text-muted);
}

.watchlist-settings-close:hover,
.watchlist-settings-close:focus-visible {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-strong);
}

.watchlist-settings-conditions {
    overflow: hidden;
    border: 1px solid #2d394b;
    border-radius: 6px;
    background: #0e1621;
}

.watchlist-settings-conditions > p {
    margin: 0;
    padding: 11px 16px;
    border-bottom: 1px solid #2d394b;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
}

.watchlist-settings-condition-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    min-height: 72px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
    cursor: pointer;
}

.watchlist-settings-condition-row:last-child {
    border-bottom: 0;
}

.watchlist-settings-condition-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.watchlist-settings-condition-copy strong {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
}

.watchlist-settings-condition-copy small {
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.45;
}

.watchlist-toggle {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    width: 42px;
    height: 24px;
    cursor: pointer;
}

.watchlist-toggle input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.watchlist-toggle > span {
    position: absolute;
    inset: 0;
    border: 1px solid #526074;
    border-radius: 999px;
    background: #172231;
    transition: border-color 0.16s ease, background-color 0.16s ease;
}

.watchlist-toggle > span::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #c7ced8;
    content: "";
    transition: transform 0.16s ease, background-color 0.16s ease;
}

.watchlist-toggle input:checked + span {
    border-color: #c53c73;
    background: #a92f61;
}

.watchlist-toggle input:checked + span::after {
    transform: translateX(18px);
    background: #fff;
}

.watchlist-toggle input:focus-visible + span {
    outline: 2px solid rgba(214, 74, 130, 0.55);
    outline-offset: 2px;
}

.watchlist-settings-target-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
}

.watchlist-settings-target-control {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    color: var(--text-muted);
    font-size: 12px;
}

.watchlist-settings-target-control > span {
    display: grid;
    grid-template-columns: auto auto;
    gap: 4px 7px;
    align-items: center;
}

.watchlist-settings-target-control small {
    grid-column: 1 / -1;
    color: var(--text-subtle);
    font-size: 12px;
    line-height: 1.3;
}

.watchlist-settings-target-control small span {
    color: var(--text-muted);
}

.watchlist-settings-target-control input {
    width: 112px;
    min-height: 36px;
    box-sizing: border-box;
    padding: 6px 9px;
    border: 1px solid #344155;
    border-radius: 4px;
    color: var(--text-strong);
    background: #0b1119;
    font-size: 14px;
}

.watchlist-settings-target-control input:disabled {
    opacity: 0.42;
}

.watchlist-settings-destination {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.watchlist-settings-destination > strong {
    grid-column: 1 / -1;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
}

.watchlist-settings-destination .destination-option {
    min-height: 38px;
    border-color: #344155;
    background: #101722;
    font-weight: 500;
}

.watchlist-settings-destination .destination-option.is-active {
    border-color: #b53b6c;
    background: rgba(181, 59, 108, 0.12);
    color: #e9b7ca;
}

.watchlist-settings-actions {
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.watchlist-settings-actions [data-watchlist-test-email] {
    margin-right: auto;
}

@media (max-width: 600px) {
    .watchlist-settings-modal {
        padding: 10px;
    }

    .watchlist-settings-dialog {
        max-height: calc(100vh - 20px);
        padding: 16px;
    }

    .watchlist-settings-target-row {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .watchlist-settings-target-control {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .watchlist-settings-target-row > .watchlist-toggle {
        grid-column: 2;
        grid-row: 1;
    }

    .watchlist-settings-actions {
        display: flex;
    }

    .watchlist-settings-actions [data-watchlist-test-email] {
        width: 100%;
        margin-right: 0;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .price-table.watchlist-table {
        width: 100%;
        min-width: 768px;
    }

    .watchlist-table th:nth-child(1),
    .watchlist-table td:nth-child(1) {
        width: 128px;
    }

    .watchlist-table th:nth-child(3),
    .watchlist-table td:nth-child(3) {
        width: 144px;
    }

    .watchlist-table th:nth-child(2),
    .watchlist-table td:nth-child(2) {
        width: 222px;
    }

    .watchlist-table th:nth-child(4),
    .watchlist-table td:nth-child(4) {
        width: 70px;
    }

    .watchlist-table th:nth-child(5),
    .watchlist-table td:nth-child(5) {
        width: 140px;
    }

    .watchlist-table th:nth-child(6),
    .watchlist-table td:nth-child(6) {
        width: 64px;
    }

    .watchlist-table .thumb-link,
    .watchlist-table .thumb-empty {
        width: 108px;
        min-height: 81px;
    }

    .price-table.watchlist-table thead tr {
        display: table-row;
        width: auto;
        grid-template-columns: none;
    }

    .watchlist-table .price-status-line {
        position: static;
        display: flex;
        flex-direction: row;
        align-items: center;
        margin: 0 0 4px;
    }
}

@media (max-width: 767px) {
    .price-table.watchlist-table {
        width: 768px;
        min-width: 768px;
    }

    .watchlist-table th:nth-child(1),
    .watchlist-table td:nth-child(1) {
        width: 128px;
    }

    .watchlist-table th:nth-child(3),
    .watchlist-table td:nth-child(3) {
        width: 144px;
    }

    .watchlist-table th:nth-child(2),
    .watchlist-table td:nth-child(2) {
        width: 222px;
    }

    .watchlist-table th:nth-child(4),
    .watchlist-table td:nth-child(4) {
        width: 70px;
    }

    .watchlist-table th:nth-child(5),
    .watchlist-table td:nth-child(5) {
        width: 140px;
    }

    .watchlist-table th:nth-child(6),
    .watchlist-table td:nth-child(6) {
        width: 64px;
    }

    .watchlist-table .thumb-link,
    .watchlist-table .thumb-empty {
        width: 108px;
        min-height: 81px;
    }

    .price-table.watchlist-table thead tr {
        display: table-row;
        width: auto;
        grid-template-columns: none;
    }

    .watchlist-table .price-status-line {
        position: static;
        display: flex;
        flex-direction: row;
        align-items: center;
        margin: 0 0 4px;
    }

    .watchlist-table .mobile-detail-hint {
        display: none;
    }

    .price-table.watchlist-table .work-info-cell {
        overflow: visible;
    }

    .price-table.watchlist-table .work-info-cell .work-meta-line {
        display: block;
        margin-top: 4px;
    }

    .price-table.watchlist-table .work-info-cell .work-genre-tags {
        display: flex;
        margin-top: 6px;
    }

    .watchlist-table .price-summary-cell {
        display: flex;
        align-items: center;
        position: relative;
        overflow: visible;
    }

    .watchlist-table .watchlist-price-stack {
        width: 100%;
        display: grid;
        align-content: center;
        gap: 2px;
    }

    .watchlist-table .watchlist-price-stack .price-current-cell,
    .watchlist-table .watchlist-price-stack .price-lowest-cell,
    .watchlist-table .watchlist-price-stack .price-official-cell {
        display: flex;
        align-items: baseline;
        gap: 4px;
        white-space: nowrap;
    }

    .watchlist-table .watchlist-price-stack .price-label,
    .watchlist-table .watchlist-price-stack .price-official-cell .price-label {
        display: inline;
    }
}

/* Watchlist mobile cards. Keep the desktop/tablet table above 767px. */
@media (max-width: 767px) {
    .watchlist-table-scroll {
        overflow: visible;
        border: 0;
        background: transparent;
    }

    .price-table.watchlist-table {
        display: block;
        width: 100%;
        min-width: 0;
        table-layout: auto;
        border-collapse: separate;
        border-spacing: 0;
        font-size: 14px;
    }

    .watchlist-table thead {
        display: none;
    }

    .watchlist-table tbody {
        display: grid;
        gap: 16px;
    }

    .watchlist-table .watchlist-row {
        display: grid;
        grid-template-columns: 94px minmax(0, 1fr) minmax(104px, 112px) 44px;
        grid-template-rows: auto auto;
        align-items: stretch;
        overflow: hidden;
        border: 1px solid #263244;
        border-radius: 6px;
        background: #101722;
    }

    .watchlist-table .watchlist-row > td {
        display: block;
        width: auto !important;
        max-width: none;
        min-width: 0;
        height: auto;
        min-height: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        vertical-align: initial;
    }

    .watchlist-table .work-info-cell {
        display: contents !important;
        grid-column: auto !important;
        overflow: visible;
    }

    .watchlist-table .work-title {
        grid-column: 1 / -1;
        grid-row: 1;
        display: block;
        min-width: 0;
        padding: 13px 14px 10px;
        overflow-wrap: anywhere;
        color: #eef2f9;
        font-size: var(--font-sm);
        line-height: 1.35;
    }

    .watchlist-table .work-info-cell .work-meta-line,
    .watchlist-table .work-info-cell .work-genre-tags {
        display: none !important;
    }

    .watchlist-table .thumb {
        grid-column: 1;
        grid-row: 2;
        width: auto;
        padding: 10px 7px 12px 10px;
    }

    .watchlist-table .thumb-link,
    .watchlist-table .thumb-empty {
        width: 100%;
        min-width: 0;
        min-height: 0;
        aspect-ratio: 4 / 3;
        border-radius: 4px;
    }

    .watchlist-table .thumb img.thumb-preview {
        display: none;
    }

    .watchlist-table .thumb-credit {
        max-width: 100%;
        margin-top: 4px;
        overflow: hidden;
        color: #9099aa;
        font-size: var(--font-xs);
        line-height: 1.35;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .watchlist-table .price-discount-cell {
        display: none !important;
    }

    .watchlist-table .price-summary-cell {
        grid-column: 2;
        grid-row: 2;
        width: auto;
        min-width: 0;
        padding: 10px 6px 12px;
        overflow: hidden;
        border-left: 1px solid rgba(255, 255, 255, 0.055);
        white-space: normal;
    }

    .watchlist-table .watchlist-price-stack {
        display: grid;
        width: 100%;
        min-width: 0;
        align-content: start;
        gap: 2px;
    }

    .watchlist-table .watchlist-mobile-discount {
        display: inline-flex;
        width: max-content;
        max-width: 100%;
        align-items: center;
        padding: 2px 5px;
        border: 1px solid #593047;
        border-radius: 4px;
        background: #201119;
        color: #e997b1;
        font-size: var(--font-xs);
        font-weight: 800;
        line-height: 1;
    }

    .watchlist-table .watchlist-mobile-discount.discount-tier-50 {
        border-color: #a43563;
        background: #38101f;
        color: #ff73a1;
    }

    .watchlist-table .watchlist-mobile-discount.discount-tier-75 {
        border-color: #d23d79;
        background: #4a1028;
        color: #ff5f98;
    }

    .watchlist-table .watchlist-price-stack .price-status-line {
        position: static;
        display: flex;
        margin: 0 0 2px;
    }

    .watchlist-table .watchlist-price-stack .price-status-badge.lowest {
        font-size: var(--font-xs);
    }

    .watchlist-table .watchlist-price-stack .price-current-cell,
    .watchlist-table .watchlist-price-stack .price-lowest-cell,
    .watchlist-table .watchlist-price-stack .price-official-cell {
        display: flex;
        min-width: 0;
        gap: 3px;
        align-items: baseline;
        overflow: hidden;
        white-space: nowrap;
    }

    .watchlist-table .watchlist-price-stack .price-current-cell {
        font-size: var(--price-current-font);
    }

    .watchlist-table .watchlist-price-stack .price-current-value {
        min-width: 0;
        overflow: hidden;
        font-size: var(--price-current-font);
        text-overflow: ellipsis;
    }

    .watchlist-table .watchlist-price-stack .price-lowest-cell {
        flex-wrap: nowrap;
        margin-top: 2px;
        font-size: var(--price-meta-font);
    }

    .watchlist-table .watchlist-price-stack .price-lowest-date {
        display: none;
    }

    .watchlist-table .watchlist-price-stack .price-official-cell {
        margin-top: 1px;
        font-size: var(--price-meta-font);
    }

    .watchlist-table .watchlist-notification-cell {
        grid-column: 3;
        grid-row: 2;
        width: auto;
        min-width: 0;
        padding: 10px 5px 12px;
        border-left: 1px solid rgba(255, 255, 255, 0.055);
        font-size: var(--font-xs);
        line-height: 1.45;
    }

    .watchlist-table .watchlist-notification-status {
        min-width: 0;
        min-height: 25px;
        gap: 3px;
        font-size: var(--font-xs);
    }

    .watchlist-table .watchlist-notification-status > span:first-child {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .watchlist-table .watchlist-notification-state {
        min-width: 32px;
        padding: 1px 4px;
        font-size: 10px;
    }

    .watchlist-table .watchlist-notification-value {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .watchlist-table .watchlist-inline-action {
        margin-top: 7px;
    }

    .watchlist-table .notification-settings-button {
        width: 100%;
        min-height: 30px;
        padding: 0 4px;
        font-size: var(--font-xs);
        white-space: nowrap;
    }

    .watchlist-table .watchlist-operation-cell {
        grid-column: 4;
        grid-row: 2;
        width: auto;
        min-width: 0;
        padding: 10px 5px 12px 4px;
        border-left: 1px solid rgba(255, 255, 255, 0.055);
        text-align: center;
    }

    .watchlist-table .watchlist-operation-cell form {
        display: flex;
        height: 100%;
        align-items: center;
        justify-content: center;
    }

    .watchlist-table .watchlist-operation-cell .action-button.danger {
        min-height: 30px;
        padding: 4px;
        border-color: var(--danger-button-border);
        background: var(--danger-button-bg);
        color: #fff;
        box-shadow: 0 4px 4px var(--danger-button-shadow);
        font-size: var(--font-xs);
        line-height: 1.25;
        white-space: normal;
    }

    .watchlist-table .watchlist-operation-cell .action-button.danger:hover,
    .watchlist-table .watchlist-operation-cell .action-button.danger:focus-visible {
        border-color: var(--danger-button-border);
        background: var(--danger-button-bg);
        color: #fff;
        filter: brightness(1.08);
    }
}

/* Watchlist mobile horizontal cards based on the supplied layout reference. */
@media (max-width: 767px) {
    .watchlist-table-scroll {
        overflow: visible;
        border: 0;
        background: transparent;
    }

    .price-table.watchlist-table {
        display: block;
        width: 100%;
        min-width: 0;
        table-layout: auto;
        border-collapse: collapse;
        border: 0 !important;
        background: transparent;
        font-size: var(--font-xs);
    }

    .watchlist-table thead {
        display: none;
    }

    .watchlist-table tbody {
        display: block;
    }

    .watchlist-table .watchlist-row {
        position: relative;
        display: grid;
        grid-template-columns: clamp(100px, 25vw, 205px) minmax(0, 1fr) 44px;
        grid-template-rows: auto auto auto;
        column-gap: 10px;
        row-gap: 5px;
        align-items: center;
        min-width: 0;
        padding: 10px 12px;
        border: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.09);
        border-radius: 0;
        background: transparent;
    }

    .watchlist-table .watchlist-row > td {
        display: block;
        width: auto !important;
        max-width: none;
        min-width: 0;
        height: auto;
        min-height: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent !important;
        vertical-align: initial;
    }

    .watchlist-table .thumb {
        grid-column: 1;
        grid-row: 1 / span 3;
        align-self: center;
        width: auto;
        padding: 0;
    }

    .watchlist-table .thumb-link,
    .watchlist-table .thumb-empty {
        display: block;
        width: 100%;
        min-height: 0;
        aspect-ratio: 10 / 7;
        border-radius: 6px;
    }

    .watchlist-table .thumb-link img:not(.thumb-preview) {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .watchlist-table .thumb img.thumb-preview,
    .watchlist-table .thumb-credit {
        display: none;
    }

    .watchlist-table .work-info-cell {
        display: contents !important;
        grid-column: auto !important;
        overflow: visible;
    }

    .watchlist-table .work-title {
        grid-column: 2;
        grid-row: 1;
        display: -webkit-box;
        min-width: 0;
        padding: 0;
        overflow: hidden;
        color: var(--text);
        font-size: var(--font-xs);
        font-weight: 600;
        line-height: 1.4;
        overflow-wrap: anywhere;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .watchlist-table .work-info-cell .work-meta-line,
    .watchlist-table .work-info-cell .work-genre-tags {
        display: none !important;
    }

    .watchlist-table .price-discount-cell {
        display: none;
    }

    .watchlist-table .price-summary-cell {
        grid-column: 2;
        grid-row: 2;
        width: auto;
        min-width: 0;
        padding: 0;
        overflow: hidden;
        border: 0;
        white-space: normal;
    }

    .watchlist-table .watchlist-price-stack {
        display: flex;
        width: 100%;
        min-width: 0;
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
        overflow: hidden;
    }

    .watchlist-table .watchlist-price-badges,
    .watchlist-table .watchlist-price-values {
        display: flex;
        width: 100%;
        min-width: 0;
        align-items: baseline;
        gap: 4px 7px;
        overflow: hidden;
        flex-wrap: wrap;
    }

    .watchlist-table .watchlist-mobile-discount {
        display: inline-flex;
        width: max-content;
        max-width: 100%;
        align-items: center;
        padding: 1px 5px;
        border: 0;
        border-radius: 4px;
        color: var(--discount-text);
        font-size: 10px;
        font-weight: 800;
        line-height: 1.2;
    }

    .watchlist-table .watchlist-mobile-discount.discount-tier-1 {
        background: var(--discount-low-bg);
    }

    .watchlist-table .watchlist-mobile-discount.discount-tier-25 {
        background: var(--discount-mid-bg);
    }

    .watchlist-table .watchlist-mobile-discount.discount-tier-50 {
        background: var(--discount-high-bg);
    }

    .watchlist-table .watchlist-mobile-discount.discount-tier-75 {
        background: var(--discount-very-high-bg);
    }

    .watchlist-table .watchlist-price-stack .price-status-line {
        display: inline-flex;
        margin: 0;
    }

    .watchlist-table .watchlist-price-stack .price-status-badge.lowest {
        min-height: 0;
        padding: 1px 5px;
        border-radius: 4px;
        font-size: 10px;
        line-height: 1.2;
    }

    .watchlist-table .watchlist-price-stack .price-current-cell,
    .watchlist-table .watchlist-price-stack .price-lowest-cell,
    .watchlist-table .watchlist-price-stack .price-official-cell {
        display: inline-flex;
        min-width: 0;
        gap: 3px;
        align-items: baseline;
        overflow: hidden;
        white-space: nowrap;
    }

    .watchlist-table .watchlist-price-stack .price-label {
        display: none;
    }

    .watchlist-table .watchlist-price-stack .price-current-value {
        min-width: 0;
        overflow: hidden;
        color: var(--price-current);
        font-size: var(--price-current-font);
        font-weight: 800;
        text-overflow: ellipsis;
    }

    .watchlist-table .watchlist-price-stack .price-current-value.is-current-lowest {
        color: var(--price-lowest);
    }

    .watchlist-table .watchlist-price-stack .price-lowest-cell {
        font-size: var(--price-meta-font);
    }

    .watchlist-table .watchlist-price-stack .price-lowest-cell .price-lowest-value {
        color: var(--price-lowest);
    }

    .watchlist-table .watchlist-price-stack .price-lowest-date {
        display: none;
    }

    .watchlist-table .watchlist-price-stack .price-official-cell {
        font-size: var(--price-meta-font);
    }

    .watchlist-table .price-summary-cell.is-current-lowest .price-lowest-cell {
        display: none;
    }

    .watchlist-table .watchlist-notification-cell {
        position: static;
        display: flex;
        grid-column: 2;
        grid-row: 3;
        min-width: 0;
        gap: 4px;
        padding: 0 50px 0 0;
        overflow: hidden;
        flex-wrap: wrap;
        border: 0;
        box-shadow: none;
        color: var(--text-muted);
        font-size: 10px;
        line-height: 1.2;
    }

    .watchlist-table .watchlist-notification-status {
        display: inline-flex;
        width: max-content;
        min-width: 0;
        min-height: 0;
        gap: 3px;
        align-items: center;
        justify-content: flex-start;
        padding: 2px 6px;
        overflow: hidden;
        border: 1px solid var(--ui-button-border);
        border-radius: 999px;
        background: var(--ui-button-surface);
        color: var(--ui-button-text);
        font-size: 10px;
        line-height: 1.2;
        white-space: nowrap;
    }

    .watchlist-table .watchlist-notification-status > span:first-child {
        min-width: 0;
        overflow: hidden;
        color: var(--ui-button-text);
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .watchlist-table .notify-sale-status > span:first-child,
    .watchlist-table .notify-lowest-status > span:first-child,
    .watchlist-table .notify-target-price-status > span:first-child {
        font-size: 0;
    }

    .watchlist-table .notify-sale-status > span:first-child::before {
        content: "セール";
        font-size: 10px;
    }

    .watchlist-table .notify-lowest-status > span:first-child::before {
        content: "最安値";
        font-size: 10px;
    }

    .watchlist-table .notify-target-price-status > span:first-child::before {
        content: "指定価格";
        font-size: 10px;
    }

    .watchlist-table .watchlist-notification-state {
        min-width: 0;
        min-height: 0;
        padding: 0;
        border-radius: 0;
        background: transparent;
        color: var(--ui-button-muted);
        font-size: 10px;
        font-weight: 700;
    }

    .watchlist-table .watchlist-notification-state.is-on {
        background: transparent;
        color: var(--accent-text);
    }

    .watchlist-table .watchlist-notification-value {
        color: var(--ui-button-muted);
    }

    .watchlist-table .watchlist-notification-value.is-set {
        color: var(--price-lowest);
        font-weight: 700;
    }

    .watchlist-table .watchlist-inline-action {
        position: absolute;
        top: 10px;
        right: 12px;
        width: 44px;
        height: 44px;
        margin: 0;
    }

    .watchlist-table .notification-settings-button {
        width: 44px;
        min-height: 44px;
        padding: 0;
        border-color: var(--ui-button-border);
        background: var(--ui-button-surface);
        color: var(--text);
        font-size: 0;
        line-height: 1;
    }

    .watchlist-table .watchlist-mobile-action-icon {
        display: inline-flex;
        width: 20px;
        height: 20px;
        align-items: center;
        justify-content: center;
    }

    .watchlist-table .watchlist-mobile-action-icon svg {
        display: block;
        width: 100%;
        height: 100%;
    }

    .watchlist-table .watchlist-operation-cell {
        grid-column: 3;
        grid-row: 1 / span 3;
        align-self: stretch;
        min-width: 44px;
        padding: 0 0 0;
        border: 0;
        text-align: center;
    }

    .watchlist-table .watchlist-operation-cell form {
        display: flex;
        height: 100%;
        align-items: flex-end;
        justify-content: center;
        padding-bottom: 0;
    }

    .watchlist-table .watchlist-operation-cell .action-button.danger {
        width: 44px;
        min-height: 44px;
        padding: 0;
        border-color: var(--danger-button-border);
        border-radius: 6px;
        background: var(--danger-button-bg);
        color: #fff;
        box-shadow: 0 4px 4px var(--danger-button-shadow);
        font-size: 0;
        line-height: 1;
    }

    .watchlist-table .watchlist-operation-cell .action-button.danger:hover,
    .watchlist-table .watchlist-operation-cell .action-button.danger:focus-visible {
        border-color: var(--danger-button-border);
        background: var(--danger-button-bg);
        color: #fff;
        filter: brightness(1.08);
    }

    .watchlist-table .watchlist-operation-cell .action-button.danger .watchlist-mobile-action-icon {
        width: 19px;
        height: 19px;
    }

    .watchlist-table .notification-settings-button:hover,
    .watchlist-table .notification-settings-button:focus-visible {
        border-color: var(--accent-text);
        background: var(--ui-button-surface);
        color: var(--text);
    }
}

/* Compact database-style home */
body:has(.home) .entry-content .home,
body:has(.home) .home {
    margin-top: 14px !important;
}

body:has(.home) .home-watch{
    display: block;
    margin-top: 12px;
    padding: 16px 18px;
    border: 1px solid #263244;
    border-radius: 6px;
    background: #101a2a;
    box-shadow: none;
}

.home-watch > header{
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.home-watch h2{
    font-size: 20px;
}

.home-watch {
    min-width: 0;
    max-width: 100%;
}

.home-watch-list {
    display: grid;
    min-width: 0;
    margin-top: 12px;
}

.home-watch-price .home-price-row {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    white-space: nowrap;
}

.home-watch-price .home-price-label {
    color: #aeb9ca;
    font-size: 12px;
}

.home-watch-price .home-price-value {
    color: #dde4ec;
    font-size: 15px;
    font-weight: 500;
}

.home-watch-price .home-price-row.is-current .home-price-value {
    font-size: 17px;
    font-weight: 700;
}

.home-watch-price .home-price-value.is-muted {
    color: #c7d0dc;
}

.home-discount {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 4px 8px;
    border: 0;
    border-radius: 4px;
    color: var(--discount-text);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.home-watch-empty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 12px;
    padding: 14px;
    border: 1px solid #2b394d;
    border-radius: 5px;
    background: #0f1724;
}

.home-watch-empty p {
    margin: 0;
    color: #aab4c5;
}

.home-watch-empty a{
    color: #eb668c;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 780px) {
    body:has(.home) .entry-content .home,
    body:has(.home) .home {
        margin-top: 8px !important;
    }
    body:has(.home) .home-watch{
        padding: 13px;
    }

}

/* Tone and typography normalization */
:root {
    --site-font-sans: "M PLUS 1p", "Hiragino Sans", "Yu Gothic", sans-serif;
    --site-accent-rose: #c57a88;
    --site-accent-rose-soft: #d7a8b2;
    --site-accent-rose-border: #7c4f59;
    --site-accent-blue: #8ea0b3;
    --site-accent-blue-bg: rgba(109, 125, 145, 0.12);
    --site-accent-female: #b6848f;
    --site-accent-female-bg: rgba(132, 94, 103, 0.12);
    --site-accent-green: #9ab08d;
    --site-accent-green-border: #546851;
    --site-surface-border: #2a3748;
}

body:has(.site-nav) .site-nav,
body:has(.site-nav) .site-nav *,
body:has(.price-page) .price-page,
body:has(.price-page) .price-page *,
body:has(.auth-page) .auth-page,
body:has(.auth-page) .auth-page *,
body:has(.home) .home,
body:has(.home) .home *,
body:has(.content-page) .content-page,
body:has(.content-page) .content-page *,
body:has(.price-history-modal) .price-history-modal,
body:has(.price-history-modal) .price-history-modal * {
    font-family: var(--site-font-sans) !important;
}

body:has(.home) .wp-site-blocks,
body:has(.home) .entry-content,
body:has(.home) .wp-block-post-content,
body:has(.home) main.wp-block-group,
body:has(.home) .wp-block-group.has-global-padding.is-layout-constrained.wp-block-group-is-layout-constrained {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body:has(.home) main.is-layout-flow.wp-block-group-is-layout-flow > div:first-child {
    display: none !important;
}

body:has(.home) .home {
    margin-top: 10px !important;
}
body:has(.home) .home-watch{
    border-color: var(--site-surface-border);
    background: #101927;
}
body:has(.home) .home-watch h2{
    color: #edf1f5 !important;
    letter-spacing: 0;
}
body:has(.home) .home-watch p,
body:has(.home) .home-watch-price{
    color: #b6c0cc;
}
body:has(.home) .home-watch-empty a{
    color: var(--site-accent-rose);
}

body:has(.home) .home-watch-empty a{
    background: transparent;
    border-color: var(--site-accent-rose-border);
}

body:has(.home) .home-work-item,
body:has(.home) .home-watch-empty{
    border-color: var(--site-surface-border);
}

body:has(.home) .home-discount {
    border-color: var(--site-accent-green-border);
    background: rgba(84, 104, 81, 0.16);
    color: var(--site-accent-green);
}

body:has(.home) .home a:hover:not(.ui-button--link-text) {
    filter: none;
    background: #162131;
}

body:has(.site-nav) .site-search button,
body:has(.site-nav) .site-icon-link {
    background: #101927;
    border-color: #324255;
    color: #d9e0e8;
    box-shadow: none;
}

body:has(.site-nav) .site-search button {
    color: var(--site-accent-rose-soft);
}

body:has(.site-nav) .site-search button:hover,
body:has(.site-nav) .site-search button:focus-visible,
body:has(.site-nav) .site-icon-link:hover,
body:has(.site-nav) .site-icon-link:focus-visible {
    background: #162131;
    border-color: #41566d;
    color: #edf1f5;
}

body:has(.site-nav) .site-icon-link span[aria-hidden="true"] {
    color: var(--site-accent-rose);
}

body:has(.home) {
    --site-accent-rose: #e47793;
    --site-accent-rose-soft: #f0a0b2;
    --site-accent-rose-border: #975769;
    --site-accent-blue: #9bb7da;
    --site-accent-blue-bg: rgba(76, 102, 146, 0.18);
    --site-accent-female: #ee8faa;
    --site-accent-female-bg: rgba(134, 73, 92, 0.16);
    --site-accent-green: #8ed07f;
    --site-accent-green-border: #4f7650;
    --site-surface-border: #2c3a4d;
}

/* WordPress adds .home to body; keep content sizing rules from constraining the global nav. */
body.home:has(.home-dashboard) {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    transform: none !important;
}

body:has(.home) .home {
    width: min(1320px, calc(100% - 32px));
    margin-top: 12px !important;
}
body:has(.home) .home-watch{
    padding: 14px;
    border-radius: 8px;
    background: linear-gradient(180deg, #111b2a 0%, #0f1827 100%);
}

body:has(.home) .home-watch > header{
    gap: 0;
}

body:has(.home) .home-watch-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
}

body:has(.home) .home-work-item {
    width: 100%;
    box-sizing: border-box;
}

body:has(.home) .home-watch h2{
    font-size: 18px;
    font-weight: 700;
}

body:has(.home) .home-discount {
    min-width: 0;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

body:has(.home) .home-watch-empty a{
    border-color: var(--site-accent-rose-border);
    color: var(--site-accent-rose);
}

body:has(.home) .site-search button {
    background: #e35d85;
    border-color: #e35d85;
    color: #fff;
}

body:has(.home) .site-search button:hover,
body:has(.home) .site-search button:focus-visible {
    background: #ea6d92;
    border-color: #ea6d92;
    color: #fff;
}

@media (max-width: 780px) {
    body:has(.home) .home {
        width: min(100% - 20px, 1320px);
    }
    body:has(.home) .home-watch{
        padding: 10px;
    }

}

/* Final homepage dashboard overrides. */
body:has(.home-dashboard) .home-dashboard,
body:has(.home-dashboard) .entry-content .home-dashboard {
    width: min(1200px, calc(100% - 96px)) !important;
    max-width: 1200px !important;
    margin: 24px 0 48px !important;
    color: #f3f6fb;
    font-size: 16px;
}
@media (max-width: 780px) {
    body:has(.home-dashboard) .home-dashboard,
    body:has(.home-dashboard) .entry-content .home-dashboard {
        width: calc(100% - 20px) !important;
        max-width: none !important;
        margin: 12px 0 56px !important;
    }
}
.home-dashboard h2 { font-weight: 600; }
.home-dashboard h3, .home-dashboard b, .home-dashboard strong { font-weight: 400; }
.home-featured, .home-categories, .home-lowest, .home-ranking, .home-login-prompt { border-color: #2b394c; border-radius: 6px; background: #101927; }
.home-featured {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}
.home-categories,
.home-lowest {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
}
.home-watch,
.home-ranking {
    margin-top: 12px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
body:has(.home-dashboard) .home-watch {
    padding: 0;
    border: 0;
    background: transparent;
}
.home-watch > header,
.home-ranking > header {
    padding-bottom: 11px;
    margin-bottom: 12px;
    border-bottom: 1px solid #1e3048;
}
.home-watch > header > div,
.home-ranking > header > div {
    display: grid;
    gap: 4px;
    min-width: 0;
}
.home-watch-list,
.home-watch-empty,
.home-ranking > div {
    box-sizing: border-box;
    border: 1px solid #2a4060;
    border-radius: 10px;
    background: #142030;
}
.home-watch-list {
    overflow: hidden;
    padding: 0 16px;
}
.home-watch-empty {
    margin-top: 0;
    padding: 14px 16px;
}
.home-ranking > div {
    overflow: hidden;
    padding: 16px;
}
.home-watch h2,
.home-ranking h2 { color: #f3f6fb; font-weight: 600; }
.home-watch > header p,
.home-ranking > header p { margin: 0; }
.home-ranking > div { contain: inline-size; }
.home-featured > header {
    padding-bottom: 11px;
    margin-bottom: 12px;
    border-bottom: 1px solid #1e3048;
}
.home-categories > header,
.home-lowest > header {
    padding-bottom: 11px;
    margin-bottom: 12px;
    border-bottom: 1px solid #1e3048;
}
.home-featured-grid {
    padding: 16px;
    border: 1px solid #2a4060;
    border-radius: 10px;
    background: #142030;
}
.home-category-table,
.home-lowest-list {
    border-color: #2a4060;
    border-radius: 10px;
    background: #142030;
}
.home-category-table {
    overflow: hidden;
    border: 1px solid #2a4060;
    border-radius: 8px;
    background: #142030;
    display: flex;
    flex-direction: column;
}
.home-category-table,
.home-lowest-list { flex: 1; }
.home-category-head,
.home-category-table > a {
    grid-template-columns: minmax(0, 1.65fr) .65fr .7fr;
    gap: 8px;
    box-sizing: border-box;
}
.home-category-head {
    display: grid;
    align-items: center;
    min-height: 32px;
    padding: 7px 14px 8px;
    border-bottom: 1px solid #2a4060;
    color: #8b99ab;
    background: #101927;
    font-size: 11px;
    font-weight: 700;
}
.home-category-head > span:nth-child(2) { text-align: right; }
.home-category-table > a > b { text-align: right; }
.home-category-head > span:nth-child(3) { font-size: 0; }
.home-category-table > a {
    grid-template-columns: minmax(0, 1.65fr) .65fr .7fr;
    gap: 8px;
    align-items: center;
    min-height: 0;
    flex: 1;
    padding: 5px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, .055);
    border-left: 0;
    color: #dfe5ed;
    background: transparent;
}
.home-category-table > a:last-child { border-bottom: 0; }
.home-category-table b { color: #aeb8c6; font-size: 13px; }
.home-category-table em { min-height: 26px; padding: 3px 7px; border: 1px solid #45556c; border-radius: 5px; color: #dfe5ed; background: #151f2e; font-size: 11px; font-weight: 500; }
.home-category-table em i { display: none; font-size: 20px; font-style: normal; line-height: 1; }
.home-category-table > a:hover,
.home-category-table > a:focus-visible { background: #182537; }
.home-category-table > a:hover em,
.home-category-table > a:focus-visible em { border-color: #ff7aae; color: #ff7aae; background: #1b1924; transform: translateY(-1px); }
.home-work-head {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 32px;
    padding: 7px 0 8px;
    border-bottom: 1px solid #2a4060;
    color: #8b99ab;
    background: #101927;
    font-size: 11px;
    font-weight: 700;
    box-sizing: border-box;
    margin-inline: -16px;
    padding-inline: 16px;
}
.home-work-head > span:last-child { text-align: right; }
.home-lowest-list {
    overflow: hidden;
    padding: 0 16px;
    border: 1px solid #2a4060;
    display: flex;
    flex-direction: column;
}
.home-featured h2, .home-categories h2, .home-lowest h2, .home-ranking h2 { color: #f3f6fb; font-weight: 600; }
.home-featured-meta h3 { color: #f3f6fb; font-size: 15px; font-weight: 400; line-height: 1.55; }
.home-featured-image { width: 190px; height: 190px; min-height: 190px; }
.home-featured-image .home-featured-preview {
    position: fixed;
    top: var(--preview-top, 96px);
    left: var(--preview-left, 50%);
    z-index: 50000;
    width: var(--preview-width, min(72vw, 360px));
    max-width: calc(100vw - 32px);
    height: auto;
    max-height: calc(100vh - 32px);
    object-fit: contain;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity .12s ease, visibility 0s linear .12s;
}
@media (hover: hover) and (pointer: fine) {
    .home-featured-image:hover .home-featured-preview,
    .home-featured-image:focus-visible .home-featured-preview,
    .home-featured-image.is-previewing .home-featured-preview {
        opacity: 1;
        visibility: visible;
    }
    .home-featured-image:hover .home-featured-preview,
    .home-featured-image:focus-visible .home-featured-preview {
        transition-delay: .5s;
    }
    .home-featured-image.is-previewing .home-featured-preview {
        transition-delay: 0s;
    }
}
.home-featured-tags a, .home-featured-tags em { min-height: 26px; padding: 2px 7px; border-color: #2b394c; border-radius: 6px; color: #f3f6fb; background: #151f2e; font-size: 11px; font-weight: 500; }
.home-featured-tags a:hover, .home-featured-tags a:focus-visible { border-color: #ff7aae; color: #ff7aae; background: #1b1924; transform: translateY(-1px); }
.home-featured-side { gap: 6px; padding: 6px; }
.home-featured-side dl div { min-height: 34px; align-items: center; padding: 5px 4px; }
.home-featured-side dd { color: #f3f6fb; font-weight: 400; }
.home-featured-side dd.is-current, .home-featured-side dd.is-discount { font-size: 22px; font-weight: 600; }
.home-featured-side dd.is-current { color: #f3f6fb; }
.home-featured-side dd.is-current.is-current-lowest { color: #7ee787; }
.home-featured-side dd.is-lowest { color: #7ee787; font-size: 17px; font-weight: 400; }
.home-featured-side dd.is-discount { color: #d68b2d; }
.home-featured-actions > a, .home-featured-watch, .home-featured-watch .watchlist-star-button { height: 30px; min-height: 30px; padding-block: 0; font-size: 12px; font-weight: 500; }
.home-featured-actions > a { border-color: rgb(232, 74, 138); color: #fff; background: rgb(232, 74, 138); }
.home-featured-watch { padding: 0; border-color: #2b394c; color: #f3f6fb; background: #151f2e; }
.home-featured-watch .watchlist-control { width: 100%; margin: 0; }
.home-featured-watch .watchlist-star-button { width: 100%; min-width: 0; color: transparent; background: transparent; font-size: 0; }
.home-featured-watch .watchlist-star-button::before { color: #f3f6fb; content: "ウォッチリストに追加"; font-size: 12px; font-weight: 500; }
.home-featured-watch .watchlist-star-button.watched::before { content: "ウォッチリストから削除"; }
.home-featured-settings-link { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: #f3f6fb; text-decoration: none; }
.home-featured-actions > a:hover, .home-featured-actions > a:focus-visible { border-color: #ff7aae; color: #fff; background: rgb(232, 74, 138); filter: brightness(1.08); transform: translateY(-1px); }
.home-featured-watch:hover, .home-featured-watch:focus-within { border-color: #ff7aae; background: #1b1924; transform: translateY(-1px); }
.home-featured-watch:hover .watchlist-star-button::before, .home-featured-watch:focus-within .watchlist-star-button::before, .home-featured-watch:hover .home-featured-settings-link, .home-featured-watch:focus-within .home-featured-settings-link { color: #ff7aae; }
.home-featured-actions :is(a, button):focus-visible { outline: 2px solid #ff7aae; outline-offset: 2px; }
.home-dashboard-stats strong { font-weight: 600; }
.home-dashboard-stats div { display: grid; justify-content: center; justify-items: center; text-align: center; }
.home-dashboard-stats div:nth-child(2) strong { color: #7ee787; }
.home-dashboard-stats div:nth-child(3) strong { color: #d68b2d; }
.home-category-name.is-male { color: #7fb9f3; }
.home-category-name.is-female { color: #ee8296; }
.home-category-table > a:hover .home-category-name > span { color: inherit; text-decoration: underline; text-decoration-color: currentColor; text-underline-offset: 3px; }
.home-work-item:hover .home-work-info b, .home-watch-all:hover { color: #ff7aae; text-decoration: underline; text-underline-offset: 3px; }
.home-category-table em { min-height: 26px; padding: 3px 7px; border-color: #45556c; border-radius: 5px; color: #dfe5ed; background: #151f2e; font-size: 11px; font-weight: 500; }
.home-category-table em { display: inline-flex; align-items: center; justify-content: center; align-self: center; }
.home-category-table em i { display: none; font-size: 20px; font-style: normal; line-height: 1; }
.home-category-table > a:hover em { border-color: #ff7aae; color: #ff7aae; background: #1b1924; transform: translateY(-1px); }
.home-category-table > a:focus-visible, .home-work-item:focus-visible { outline: 2px solid #ff7aae; outline-offset: -2px; }
.home-lowest .home-work-price > strong { color: #7ee787; font-weight: 600; }
.home-work-item { min-height: 0; flex: 1; transition: background-color .15s ease; }
.home-work-item:last-of-type { border-bottom: 0; }
.home-work-item:hover,
.home-work-item:focus-visible { color: #f3f6fb; background: rgba(255, 255, 255, .035); }
.home-login-prompt strong { font-weight: 400; }
.home-login-prompt a { display: inline-flex; align-items: center; justify-content: center; height: 32px; min-height: 32px; padding: 0 12px; border-color: #2b394c; border-radius: 6px; color: #f3f6fb; background: #151f2e; font-weight: 500; }
.home-login-prompt a:hover, .home-login-prompt a:focus-visible { border-color: #ff7aae; color: #ff7aae; background: #1b1924; transform: translateY(-1px); }
body:has(.site-nav) .site-search button { width: 36px; min-width: 36px; height: 36px; min-height: 36px; padding: 0; border-color: rgb(232, 74, 138); border-radius: 6px; color: #fff; background: rgb(232, 74, 138); }
body:has(.site-nav) .site-icon-link { width: auto; min-width: 0; height: 36px; min-height: 36px; padding: 0 12px; border-radius: 6px; font-weight: 500; white-space: nowrap; }
body:has(.site-nav) .site-search button:hover, body:has(.site-nav) .site-search button:focus-visible { border-color: #ff7aae; color: #fff; background: rgb(232, 74, 138); filter: brightness(1.08); transform: translateY(-1px); }
body:has(.site-nav) .site-icon-link:hover, body:has(.site-nav) .site-icon-link:focus-visible { border-color: #ff7aae; color: #ff7aae; background: #1b1924; transform: translateY(-1px); }
.home-watch > header { justify-content: space-between; }
.home-watch-all { align-self: center; color: #8491a2; font-size: 12px; text-decoration: none; white-space: nowrap; }
.home-work-item:hover .home-work-info b,
.home-work-item:focus-visible .home-work-info b { color: #ff7aae; text-decoration: underline; text-underline-offset: 3px; }
body:has(.home) .home-price-label.is-current-lowest,
body:has(.home) .home-price-value.is-current-lowest { color: #7ee787; }
body:has(.home) .home-discount { border: 0; color: #aeb9ca; background: transparent; }
body:has(.home) .home-discount.discount-tier-1 { color: #fff; background: var(--discount-low-bg); }
body:has(.home) .home-discount.discount-tier-25 { color: #fff; background: var(--discount-mid-bg); }
body:has(.home) .home-discount.discount-tier-50 { color: #fff; background: var(--discount-high-bg); }
body:has(.home) .home-discount.discount-tier-75 { color: #fff; background: var(--discount-very-high-bg); }
body:has(.home) .home-featured-actions > a:hover,
body:has(.home) .home-featured-actions > a:focus-visible { border-color: #ff7aae; color: #fff; background: rgb(232, 74, 138); filter: brightness(1.08); transform: translateY(-1px); }
.home-featured-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-featured-actions > a,
.home-featured-watch,
.home-featured-watch .watchlist-control,
.home-featured-watch .watchlist-star-button { width: 100%; box-sizing: border-box; }
@media (max-width: 1024px) {
    .home-featured-image { width: 150px; max-width: 100%; height: 150px; min-height: 150px; }
    .home-watch-price .home-price-label,
    .home-watch-price .home-price-value { font-size: 12px; }
    .home-watch-price .home-price-row.is-current .home-price-value { font-size: 15px; }
    .home-featured-side dd.is-current, .home-featured-side dd.is-discount { font-size: 19px; }
    .home-featured-side dd.is-lowest { font-size: 15px; }
    .home-featured-actions > a, .home-featured-watch, .home-featured-watch .watchlist-star-button { height: 28px; min-height: 28px; font-size: 11px; }
    .home-featured-watch .watchlist-star-button::before { font-size: 11px; }
}
@media (max-width: 680px) {
    .home-featured-grid { padding: 10px; border-radius: 8px; }
    .home-category-table { border-radius: 8px; }
    .home-category-head {
        display: grid;
        grid-template-columns: minmax(0, 1.65fr) .65fr 34px;
        min-width: 0;
        gap: 4px;
        min-height: 30px;
        padding: 6px 4px 7px;
        font-size: 10px;
    }
    .home-category-table > a { grid-template-columns: minmax(0, 1.65fr) .65fr 34px; min-width: 0; gap: 4px; padding-inline: 4px; }
    .home-category-table b { font-size: 11px; }
    .home-lowest-list { padding-inline: 10px; }
    .home-work-head { margin-inline: -10px; padding-inline: 10px; }
    .home-watch-list,
    .home-watch-empty,
    .home-ranking > div { border-radius: 8px; }
    .home-watch-list { padding-inline: 10px; }
    .home-ranking > div { padding: 10px; }
    .home-featured-image { width: 132px; max-width: 100%; height: auto; min-height: 0; aspect-ratio: 3 / 4; }
    .home-work-item { grid-template-columns: 60px minmax(0, 1fr) 82px; gap: 8px; padding: 8px 0; }
    .home-work-head { grid-template-columns: 60px minmax(0, 1fr) 82px; gap: 8px; min-height: 30px; padding: 6px 0 7px; font-size: 10px; }
    .home-work-image { width: 60px; height: 54px; }
    .home-work-info b { font-size: 12px; }
    .home-work-info small,
    .home-work-info time { font-size: 10px; }
    .home-watch-price .home-price-row { gap: 2px; }
    .home-watch-price .home-price-label { font-size: 10px; }
    .home-watch-price .home-price-value { font-size: 12px; }
    .home-watch-price .home-price-row.is-current .home-price-value { font-size: 14px; }
    .home-featured-meta h3 { font-size: 14px; }
    .home-featured-side dd.is-current, .home-featured-side dd.is-discount { font-size: 16px; }
    .home-featured-side dd.is-lowest { font-size: 13px; }
    .home-category-table em {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 34px;
        padding: 2px;
        overflow: hidden;
        color: transparent;
        white-space: nowrap;
    }
    .home-category-table em span { display: none; }
    .home-category-table em i { display: block; color: #e36a98; font-size: 20px; font-style: normal; line-height: 1; }
    .home-category-table em::after { display: none; content: none; }
    body:has(.home) .home-featured-side dl div,
    body:has(.home) .home-dashboard-stats div { justify-items: center; text-align: center; }
    body:has(.home) .home-featured-side dl div { justify-content: center; }
}

@media (max-width: 680px) {
    .price-page-head {
        display: flex;
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .price-page-meta {
        display: contents;
    }

    .price-page-count { margin-top: 0; }
    .price-page-updated { white-space: normal; }
    .price-page-heading h1 { font-size: 16px; }
}

/* Keep price-page headings outside the table card. */
body:has(.price-page:not(.watchlist-page)) .price-page {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

body:has(.price-page:not(.watchlist-page)) .price-page-head {
    display: block;
    padding-bottom: 11px;
    margin-bottom: 12px;
    border-bottom: 1px solid #1e3048;
}

body:has(.price-page:not(.watchlist-page)) .price-page-content {
    box-sizing: border-box;
    padding: 16px;
    border: 1px solid #2a4060;
    border-radius: 8px;
    background: #142030;
}

body:has(.price-page:not(.watchlist-page)) .price-page-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

body:has(.price-page:not(.watchlist-page)) .price-page-count,
body:has(.price-page:not(.watchlist-page)) .price-page-updated {
    margin: 0;
    font-size: 14px;
}

body:has(.price-page:not(.watchlist-page)) .price-table {
    border-color: #2a4060;
    border-radius: 8px;
    background: #142030;
}

/* Shared heading and lead typography across homepage and content pages. */
.home-featured h2,
.home-categories h2,
.home-lowest h2,
.home-watch h2,
.home-ranking h2,
body:has(.price-page) .price-page-heading h1 {
    font-size: 18px;
    line-height: 1.35;
}

.home-section-lead,
body:has(.price-page) .price-page-head .price-page-lead {
    font-size: 13px;
    line-height: 1.5;
}

/* Watchlist page: heading outside, existing table as the content card. */
body:has(.watchlist-page) .watchlist-page {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

body:has(.watchlist-page) .watchlist-page .price-page-head {
    display: block;
    padding-bottom: 11px;
    margin-bottom: 12px;
    border-bottom: 1px solid #1e3048;
}

body:has(.watchlist-page) .watchlist-table {
    border: 0;
    border-radius: 0;
    background: transparent;
}

body:has(.watchlist-page) .watchlist-table-scroll {
    overflow: auto;
    border: 1px solid #2a4060;
    border-radius: 8px;
    background: #142030;
}

body:has(.watchlist-page) .watchlist-page > .works-empty {
    padding: 16px;
    border: 1px solid #2a4060;
    border-radius: 8px;
    background: #142030;
}

@media (max-width: 680px) {
    .home-featured h2,
    .home-categories h2,
    .home-lowest h2,
    .home-watch h2,
    .home-ranking h2,
    body:has(.price-page) .price-page-heading h1 {
        font-size: 16px;
    }

    .home-section-lead,
    body:has(.price-page) .price-page-head .price-page-lead {
        font-size: 13px;
    }

    body:has(.price-page:not(.watchlist-page)) .price-page-content {
        padding: 10px;
        border-radius: 8px;
    }

    body:has(.price-page:not(.watchlist-page)) .price-page-meta {
        align-items: flex-start;
        flex-direction: row;
        justify-content: space-between;
        gap: 8px;
    }

    body:has(.price-page:not(.watchlist-page)) .price-page-count {
        min-width: 0;
    }

    body:has(.price-page:not(.watchlist-page)) .price-page-updated {
        flex: 0 0 auto;
        margin-left: auto;
        white-space: nowrap;
    }
}

/* Price-page-specific interactions that are not part of the button system. */
body:has(.price-page) .price-pagination .current {
    border-color: rgb(232, 74, 138);
    border-radius: 6px;
    color: #fff;
    background: rgb(232, 74, 138);
}

@media (hover: hover) and (pointer: fine) {
    body:has(.price-page) .price-mode-tabs a:hover,
    body:has(.price-page) .work-title:hover {
        color: #ff7aae;
        text-decoration: underline;
        text-decoration-color: currentColor;
        text-underline-offset: 3px;
    }
}

body:has(.price-page) .price-table .work-title:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
}

body:has(.price-page) input:focus-visible {
    outline: 2px solid #ff7aae;
    outline-offset: 2px;
}

body:has(.price-page) :is(.price-pagination a, .price-mode-tabs a):active {
    transform: translateY(0);
}

body:has(.price-page) .price-pagination a:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
}

body:has(.price-page) input:disabled {
    opacity: .45;
    cursor: not-allowed;
    filter: none;
    transform: none;
}

body:has(.price-page) .ui-button.is-loading {
    border-color: rgb(232, 74, 138);
    color: #fff;
    background: rgb(232, 74, 138);
    filter: brightness(1.08);
    transform: translateY(0);
}

body:has(.price-page) .ui-button.is-loading:focus,
body:has(.price-page) .ui-button.is-loading:focus-visible {
    outline: none;
    outline-offset: 0;
    box-shadow: none;
}

body:has(.price-page) .ui-button:active {
    outline: none;
    outline-offset: 0;
    box-shadow: none;
}

body:has(.price-page) .price-filter-open-button:focus,
body:has(.price-page) .price-filter-open-button:focus-visible {
    outline: none;
    outline-offset: 0;
    border-color: #f06b9b;
    box-shadow: none;
}

body:has(.price-page) .ui-button--primary.is-loading:focus,
body:has(.price-page) .ui-button--primary.is-loading:focus-visible {
    border-color: #f06b9b;
}

body:has(.price-page) :is(
    .ui-button--secondary,
    .ui-button--filter-chip,
    .ui-button--tag
).is-loading:focus,
body:has(.price-page) :is(
    .ui-button--secondary,
    .ui-button--filter-chip,
    .ui-button--tag
).is-loading:focus-visible {
    border-color: var(--accent-text, #ff7aae);
}

@media (hover: none), (pointer: coarse) {
    body:has(.price-page) :is(
        .price-filter-radio-row span,
        .price-filter-genre-buttons button,
        .price-filter-genre-grid button
    ) {
        transition: none;
    }
}

@media (max-width: 767px) {
    .price-filter-price-grid input,
    .price-filter-genre-panel input {
        font-size: 16px;
    }
}

/* Final price toolbar and active-control alignment. */
.price-search > div:first-of-type {
    grid-template-columns: minmax(280px, 1fr) auto;
}

.price-search > .price-filter-actions,
.price-search > .price-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-start;
}

.price-search > .price-filter-actions > *,
.price-search > .price-filter-buttons > * {
    width: auto;
}

.price-search > .price-filter-buttons {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
}

.price-search .price-filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
    grid-template-columns: none;
    width: 100%;
}

.price-filter-group-label {
    flex: 0 0 72px;
    color: var(--site-muted);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

body:has(.price-page) .price-filter-open-button {
    gap: 6px;
}

.price-filter-icon {
    display: inline-flex;
    width: 15px;
    height: 15px;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.price-filter-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.price-search .price-filter-group-controls {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    grid-template-columns: none;
    min-width: 0;
}

.price-filter-group--display .price-share-button {
    margin-left: auto;
}

@media (hover: hover) and (pointer: fine) {
    body:has(.price-page) :is(
        .price-pagination .current
    ):hover {
        border-color: #ff7aae;
        color: #fff;
        background: rgb(232, 74, 138);
        filter: brightness(1.08);
        transform: translateY(-1px);
    }
}

body:has(.price-page) :is(
    .price-pagination .current
):focus-visible,
body:has(.price-page) .price-pagination .current:focus-visible {
    border-color: #ff7aae;
    color: #fff;
    background: rgb(232, 74, 138);
    filter: brightness(1.08);
    transform: translateY(-1px);
}

body:has(.site-nav) .site-logo {
    border-right: 0;
}

body:has(.site-nav) .site-account .site-icon-link {
    border-left: 1px solid #324255;
}

body:has(.site-nav) .site-account .site-icon-link:hover,
body:has(.site-nav) .site-account .site-icon-link:focus-visible {
    border-left-color: #ff7aae;
}

@media (max-width: 767px) {
    .price-search > div:first-of-type {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .price-search > .price-filter-actions,
    .price-search > .price-filter-buttons {
        width: 100%;
    }

    .price-search > .price-filter-actions > *,
    .price-search > .price-filter-buttons > * {
        flex: 0 0 auto;
    }

    .price-filter-group {
        align-items: flex-start;
    }

    .price-filter-group-label {
        padding-top: 9px;
    }
}

/* Prevent iOS Safari from independently enlarging footer note paragraphs. */
.site-footer {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

@media (max-width: 680px) {
    body:has(.site-nav) :is(.footer-links, .footer-notes, .footer-notes p) {
        font-size: 11.5px !important;
    }
}

/* Figma button design system: shared shape and state styles. */
.ui-button {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: color .15s ease, background-color .15s ease,
        border-color .15s ease, transform .15s ease, filter .15s ease;
}

.ui-button--primary,
.ui-button--secondary,
.ui-button--ghost,
.ui-button--filter-chip,
.ui-button--tag,
.ui-button--link-text {
    cursor: pointer;
}

.ui-button--primary {
    min-height: 34px;
    padding-inline: 15px;
    border: 1px solid var(--ui-button-primary-bg);
    border-radius: 6px;
    color: #fff;
    background: var(--ui-button-primary-bg);
}

.ui-button--primary.ui-button--large {
    min-height: 40px;
    padding-inline: 19px;
}

.ui-button--primary.ui-button--small {
    min-height: 28px;
    padding-inline: 11px;
}

.ui-button--secondary {
    min-height: 34px;
    padding-inline: 15px;
    border: 1px solid var(--ui-button-border);
    border-radius: 6px;
    color: var(--ui-button-text);
    background: #151f2e;
}

.ui-button--secondary.ui-button--small {
    min-height: 28px;
    padding-inline: 11px;
}

.ui-button--ghost {
    min-height: 34px;
    padding-inline: 15px;
    border: 1px solid transparent;
    border-radius: 6px;
    color: var(--ui-button-muted);
    background: transparent;
}

.ui-button--filter-chip {
    min-height: 32px;
    padding-inline: 13px;
    border: 1px solid var(--ui-button-border);
    border-radius: 6px;
    color: var(--ui-button-text);
    background: #151f2e;
}

.ui-button--tag {
    min-height: 22px;
    padding-inline: 9px;
    border: 1px solid #2a4060;
    border-radius: 4px;
    color: #c4cdd9;
    background: #151f2e;
    font-weight: 400;
}

.ui-button--link-text {
    min-height: 28px;
    padding-inline: 0;
    border: 0;
    border-radius: 0;
    color: var(--ui-button-text);
    background: transparent;
}

body:has(.price-page) .price-filter-genre-toggle.ui-button--secondary {
    width: 100%;
    justify-content: space-between;
    padding-inline: 15px;
}

body:has(.price-page) .price-filter-genre-category-toggle.ui-button--secondary {
    width: 100%;
    justify-content: space-between;
    padding-inline: 15px;
}

body:has(.price-page) .price-filter-genre-grid .ui-button--filter-chip,
body:has(.price-page) .price-filter-genre-buttons .ui-button--filter-chip {
    min-width: 0;
    min-height: 32px;
    justify-content: flex-start;
    padding: 6px 13px;
    text-align: left;
    overflow-wrap: anywhere;
}

body:has(.price-page) .price-search > .price-filter-buttons > .ui-button--filter-chip {
    min-height: 32px;
    padding-inline: 13px;
}

body:has(.price-page) .price-tags button.ui-button--tag {
    border-radius: 4px;
}

body:has(.price-page) .price-tags button.ui-button--tag {
    min-width: 0;
    max-width: 100%;
    min-height: 22px;
    padding-inline: 9px;
    justify-content: flex-start;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
}

body:has(.price-page) .price-filter-dialog .price-filter-actions .ui-button--ghost {
    min-height: 34px;
    padding-inline: 15px;
    border-color: transparent;
    color: var(--ui-button-muted);
    background: transparent;
}

body:has(.price-page) .price-filter-dialog .price-filter-actions .ui-button--secondary.ui-button--small,
body:has(.price-page) .price-filter-dialog .price-filter-actions .ui-button--primary.ui-button--small {
    min-height: 28px;
    padding-inline: 11px;
}

body:has(.price-page) .price-filter-dialog :is(
    .price-filter-presets .ui-button--filter-chip,
    .price-filter-radio-row .ui-button--filter-chip,
    .price-filter-actions .ui-button
) {
    font-size: 12px;
    font-weight: 700;
}

body:has(.price-page) .ui-button--filter-chip.is-active,
body:has(.price-page) .ui-button--filter-chip.is-selected,
body:has(.price-page) .price-filter-radio-row input:checked + .ui-button--filter-chip,
body:has(.price-page) .price-filter-genre-buttons .ui-button--filter-chip.is-selected,
body:has(.price-page) .price-filter-genre-grid .ui-button--filter-chip.is-selected {
    border-color: var(--ui-button-primary-bg);
    color: #fff;
    background: var(--ui-button-primary-bg);
}

.ui-button--primary:hover,
.ui-button--primary:focus-visible {
    border-color: #f06b9b;
    color: #fff;
    background: var(--ui-button-primary-bg);
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.ui-button--secondary:hover,
.ui-button--secondary:focus-visible {
    border-color: var(--accent-text, #ff7aae);
    color: var(--accent-text, #ff7aae);
    background: var(--ui-button-surface);
    transform: translateY(-1px);
}

.ui-button--ghost:hover,
.ui-button--ghost:focus-visible {
    border-color: transparent;
    color: var(--accent-text, #ff7aae);
    background: transparent;
}

.ui-button--filter-chip:hover,
.ui-button--filter-chip:focus-visible {
    border-color: var(--accent-text, #ff7aae);
    color: var(--accent-text, #ff7aae);
    background: #1b1924;
    transform: translateY(-1px);
}

.ui-button--tag:hover,
.ui-button--tag:focus-visible {
    border-color: var(--accent-text, #ff7aae);
    color: var(--accent-text, #ff7aae);
    background: var(--ui-button-surface);
    transform: translateY(-1px);
}

.ui-button--link-text:hover,
.ui-button--link-text:focus-visible {
    color: var(--accent-text, #ff7aae);
    background: transparent;
    text-decoration: underline;
    text-underline-offset: 3px;
}

body:has(.price-page) .ui-button--filter-chip.is-active:hover,
body:has(.price-page) .ui-button--filter-chip.is-selected:hover,
body:has(.price-page) .price-filter-radio-row input:checked + .ui-button--filter-chip:hover {
    border-color: #f06b9b;
    color: #fff;
    background: var(--ui-button-primary-bg);
    filter: brightness(1.08);
}

.ui-button:focus-visible {
    outline: 2px solid var(--accent, #e84a8a);
    outline-offset: 2px;
}

.ui-button:disabled,
.ui-button[aria-disabled="true"] {
    border-color: var(--ui-button-border);
    color: var(--ui-button-disabled-text);
    background: var(--ui-button-surface);
    opacity: .4;
    cursor: not-allowed;
    filter: none;
    transform: none;
}

body:has(.auth-page) .auth-sub-link.ui-button--link-text {
    min-height: 28px;
    padding-inline: 0;
    border: 0;
    color: var(--ui-button-text);
    background: transparent;
}

@media (max-width: 1024px) {
    .ui-button--primary.ui-button--large {
        min-height: 38px;
        padding-inline: 17px;
    }

    .ui-button--secondary {
        padding-inline: 13px;
    }

    .ui-button--filter-chip {
        padding-inline: 11px;
    }

    .ui-button--tag {
        padding-inline: 8px;
    }
}

@media (max-width: 767px) {
    .ui-button--primary {
        min-height: 32px;
        padding-inline: 13px;
    }

    .ui-button--primary.ui-button--large {
        min-height: 36px;
        padding-inline: 15px;
    }

    .ui-button--secondary {
        min-height: 32px;
        padding-inline: 12px;
    }

    .ui-button--secondary.ui-button--small {
        min-height: 28px;
        padding-inline: 10px;
    }

    .ui-button--ghost {
        min-height: 30px;
        padding-inline: 12px;
    }

    .ui-button--filter-chip {
        min-height: 30px;
        padding-inline: 10px;
    }

    .ui-button--tag {
        min-height: 22px;
        padding-inline: 8px;
    }

    body:has(.price-page) .price-filter-genre-grid .ui-button--filter-chip,
    body:has(.price-page) .price-filter-genre-buttons .ui-button--filter-chip {
        min-height: 30px;
        padding: 5px 10px;
    }
}

/* Guide page step layout. */
body:has(.guide-page) .guide-page {
    max-width: min(calc(100vw - 48px), 1200px) !important;
}

body:has(.guide-page) .guide-page > p {
    max-width: none;
}

body:has(.guide-page) .guide-steps {
    display: grid;
    gap: 12px;
    margin-top: 34px;
}

body:has(.guide-page) .guide-steps > h2 {
    margin: 0 0 4px;
    text-align: left;
}

body:has(.guide-page) .guide-step {
    display: grid;
    grid-template-columns: minmax(280px, .8fr) minmax(420px, 1.35fr);
    gap: 18px;
    align-items: start;
    padding: 18px;
    border: 1px solid #2b394c;
    border-radius: 6px;
    background: #101927;
}

body:has(.guide-page) .guide-step-copy {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    min-width: 0;
    padding: 8px 2px;
}

body:has(.guide-page) .guide-step-copy > div {
    min-width: 0;
}

body:has(.guide-page) .guide-step-number {
    display: grid;
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    place-content: center;
    border: 1px solid #ff7aae;
    border-radius: 50%;
    color: #ff7aae;
    font-size: 19px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
}

body:has(.guide-page) .guide-step-number small {
    display: block;
    margin-bottom: 3px;
    font-size: 9px;
    font-weight: 600;
}

body:has(.guide-page) .guide-step h3 {
    margin: 2px 0 12px;
    color: #f3f6fb;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.45;
}

body:has(.guide-page) .guide-step p {
    margin-bottom: 7px;
    font-size: 13px !important;
    line-height: 1.75 !important;
}

body:has(.guide-page) .guide-step-media {
    display: grid;
    align-self: start;
    width: 100%;
    min-width: 0;
    min-height: 230px;
    aspect-ratio: 1948 / 1006;
    place-content: center;
    gap: 5px;
    margin: 0;
    overflow: hidden;
    border: 1px dashed #45566e;
    border-radius: 5px;
    color: #9ca7b8;
    background: #0b1421;
    text-align: center;
}

body:has(.guide-page) .guide-step-media span {
    color: #cbd3de;
    font-size: 13px;
}

body:has(.guide-page) .guide-step-media small {
    font-size: 11px;
}

body:has(.guide-page) .guide-step-media img {
    display: block;
    width: 100%;
    min-width: 0;
    height: 100%;
    min-height: 0;
    object-fit: contain;
}

body:has(.guide-page) .guide-step-media:has(img) > :not(img) {
    display: none;
}

body:has(.guide-page) .guide-step-media:has(img) {
    min-height: 0;
}

/* Keep primary actions and navigation icons on the price-table accent. */
body:has(.auth-page) :is(
    .wp-site-blocks,
    main,
    article,
    .wp-block-group,
    .entry-content.wp-block-post-content
) {
    background: transparent;
}

body:has(.auth-page) .auth-panel {
    border-color: var(--border);
    border-radius: 6px;
    background: var(--surface);
    box-shadow: none;
}

body:has(.auth-page) .auth-tabs{
    border-color: var(--border);
}

body:has(.auth-page) .auth-form input[type="text"],
body:has(.auth-page) .auth-form input[type="email"],
body:has(.auth-page) .auth-form input[type="password"] {
    border-color: var(--border);
    color: var(--text);
    background: var(--surface-2);
}

body:has(.site-nav) .site-icon-link span[aria-hidden="true"] {
    color: var(--accent-text);
}

.auth-tabs a.is-active {
    color: var(--accent-text);
}

.auth-tabs a.is-active::after {
    background: var(--accent);
}

body:has(.account-page) :is(
    .wp-site-blocks,
    main,
    article,
    .wp-block-group,
    .entry-content.wp-block-post-content
) {
    background: transparent;
}

body:has(.account-page) main {
    padding-block-start: 0 !important;
}

body:has(.account-page) .entry-content.wp-block-post-content {
    margin-block-start: 0 !important;
}

body:has(.account-page) :is(.wp-block-post-title, .entry-title) {
    display: none;
}

body:has(.account-page) main > .wp-block-group:has(.wp-block-post-title) {
    display: none;
}

.account-page {
    display: grid;
    width: 100%;
    margin: 0 auto;
    padding: 32px 24px 56px;
    place-items: start center;
}

.account-notice {
    margin: 16px 0 0;
    padding: 12px 14px;
    color: var(--text);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 6px;
}

.account-notice.is-success {
    border-color: #34745b;
}

.account-notice.is-error {
    border-color: #8f3d50;
}

.account-row {
    margin: 0;
    border-bottom: 1px solid var(--border);
}

.account-row summary,
.account-password-row {
    display: flex;
    min-height: 88px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 0;
    list-style: none;
}

.account-row summary {
    cursor: pointer;
}

.account-row summary::-webkit-details-marker {
    display: none;
}

.account-row strong,
.account-row small {
    display: block;
}

.account-row strong {
    margin-bottom: 6px;
    font-size: 16px;
    font-weight: 600;
}

.account-row small {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 400;
}
.account-danger button {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 8px 16px;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 600;
    background: var(--danger-button-bg);
    border: 1px solid var(--danger-button-border);
    border-radius: 5px;
    box-shadow: 0 4px 4px var(--danger-button-shadow);
    cursor: pointer;
}
.account-danger button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}
.account-help {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.7;
}

.account-password-row {
    margin: 0;
    border: 0;
}

.account-password-row form {
    margin: 0;
}

.account-help {
    margin: -13px 0 18px;
}

.account-danger {
    margin: 0;
    padding: 20px 0 0;
    border-top: 1px solid var(--border);
}

.account-danger button {
    color: #fff;
    background: var(--danger-button-bg);
    border-color: var(--danger-button-border);
}

.account-danger button:hover,
.account-danger button:focus-visible {
    color: #fff;
    background: var(--danger-button-bg);
    border-color: var(--danger-button-border);
    filter: brightness(1.08);
}

@media (max-width: 600px) {
    .account-page {
        padding: 18px 10px 36px;
    }

    .account-row strong {
        font-size: 14px;
    }

    .account-row small{
        font-size: 13px;
    }

    .account-row summary,
    .account-password-row {
        min-height: 82px;
        gap: 12px;
    }
}

@media (max-width: 820px) {
    body:has(.guide-page) .guide-page {
        width: calc(100% + 20px);
        max-width: calc(100vw - 20px) !important;
        margin-top: 16px;
        padding: 16px;
    }

    body:has(.guide-page) .guide-step {
        grid-template-columns: minmax(0, 1fr);
        padding: 14px;
    }

    body:has(.guide-page) .guide-step-copy {
        padding: 2px 0;
    }

    body:has(.guide-page) .guide-step-media {
        min-height: 170px;
    }
}

@media (max-width: 480px) {
    body:has(.guide-page) .guide-step-copy {
        gap: 11px;
    }

    body:has(.guide-page) .guide-step-number {
        flex-basis: 44px;
        width: 44px;
        height: 44px;
        font-size: 17px;
    }

    body:has(.guide-page) .guide-step h3 {
        font-size: 16px;
    }
}

/* Account settings follows the shared static-page layout. */
body:has(.site-nav) .content-page.account-page {
    display: block;
    width: calc(100% + 48px);
    max-width: min(calc(100vw - 48px), 1440px) !important;
    margin: 32px auto 40px;
    padding: 24px;
    font-size: 14px;
}

body:has(.site-nav) .account-page .content-kicker {
    margin-bottom: 8px;
}

body:has(.site-nav) .account-page > h1 {
    margin-bottom: 4px;
    padding: 0;
    border: 0;
}

body:has(.site-nav) .account-section {
    margin: 0;
    padding: 0;
    border: 0;
}

body:has(.site-nav) .account-section h2 {
    margin-top: 28px;
}

body:has(.site-nav) .account-row,
body:has(.site-nav) .account-password-row {
    margin: 0;
    padding: 0;
    border: 0;
}

body:has(.site-nav) .account-row summary,
body:has(.site-nav) .account-password-row,
body:has(.site-nav) .account-danger .account-row {
    display: flex;
    min-height: 40px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0;
    list-style: none;
}

body:has(.site-nav) .account-row summary {
    cursor: pointer;
}

body:has(.site-nav) .account-row summary::-webkit-details-marker {
    display: none;
}

body:has(.site-nav) .account-action-label {
    display: inline-grid;
    box-sizing: border-box;
    flex: 0 0 auto;
    min-width: 92px;
    min-height: 34px;
    place-items: center;
    padding: 4px 14px;
    color: #dfe5ed !important;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none !important;
    background: #151f2e;
    border: 1px solid #45556c;
    border-radius: 5px;
    cursor: pointer;
    transition: border-color .15s, color .15s, background-color .15s, transform .15s;
}

body:has(.site-nav) .account-action-label:hover,
body:has(.site-nav) .account-action-label:focus-visible {
    color: #ff7aae !important;
    background: #1b1924;
    border-color: #ff7aae;
    transform: translateY(-1px);
}

body:has(.site-nav) .account-action-label:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

body:has(.site-nav) .account-action-label.is-danger {
    color: #fff !important;
    background: var(--danger-button-bg);
    border-color: var(--danger-button-border);
    box-shadow: 0 4px 4px var(--danger-button-shadow);
}

body:has(.site-nav) .account-action-label.is-danger:hover,
body:has(.site-nav) .account-action-label.is-danger:focus-visible {
    color: #fff !important;
    background: var(--danger-button-bg);
    border-color: var(--danger-button-border);
    filter: brightness(1.08);
}

body:has(.site-nav) .account-help {
    margin: 4px 0 0;
}

body:has(.site-nav) .account-admin-note {
    color: var(--text-muted);
    font-size: 13px;
}

body:has(.site-nav) .account-notice {
    margin: 18px 0 0;
}

@media (max-width: 680px) {
    body:has(.site-nav) .content-page.account-page {
        width: calc(100% + 20px);
        max-width: calc(100vw - 20px) !important;
        margin-top: 16px;
        padding: 16px;
        font-size: 14px;
    }

    body:has(.site-nav) .account-action-label {
        min-width: 78px;
        min-height: 34px;
        padding-inline: 10px;
    }
}

/* Shared outlined-accent hover treatment for compact secondary actions. */
.accent-outline-hover {
    border: 1px solid var(--border, #263244);
    color: var(--text, #f3f6fb);
    background: var(--surface-2, #0f1724);
    border-color: var(--border, #263244);
}

.accent-outline-hover:hover,
.accent-outline-hover:focus-visible {
    color: #ff7aae !important;
    background: #1b1924 !important;
    border-color: #ff7aae !important;
    filter: none !important;
    transform: translateY(-1px) !important;
}

/* Page-specific layout adaptations for buttons already styled by the shared classes. */
body:has(.price-page) .price-search .ui-button {
    font-size: var(--font-sm);
    font-weight: 700;
}

body:has(.price-page) .price-table .price-summary-cell .price-history-button.ui-button--secondary {
    width: 100%;
}

body:has(.price-page) .price-mobile-detail-actions .price-history-button.ui-button--secondary {
    min-height: 34px;
    padding: 0 11px;
}

body:has(.price-page) .price-table .genre-more-toggle:not(:hover):not(:focus-visible) {
    color: #8b99ab;
}

:is(
    .age-gate-dialog,
    .price-filter-dialog,
    .watchlist-settings-dialog,
    .price-history-dialog,
    .auth-delete-dialog
) {
    background: #101a2a;
}

body:has(.price-page) .price-search {
    border-bottom: 0;
}

body:has(.price-page) .price-page-content {
    margin-bottom: 20px;
}

body:has(.price-page:not(.watchlist-page)) .price-page-content {
    padding-bottom: 0;
}

/* Filter genre accordion: group genres into Figma-style category cards. */
body:has(.price-page) .price-filter-dialog .price-filter-genre-group {
    display: grid;
    gap: 0;
    overflow: hidden;
    border: 1px solid #2e3f55;
    border-radius: 8px;
    background: #0d1520;
}

body:has(.price-page) .price-filter-dialog .price-filter-genre-toggle {
    min-height: 32px;
    padding: 0 16px;
    border: 0;
    border-bottom: 1px solid #2e3f55;
    border-radius: 0;
    color: #fff;
    background: #101927;
    font-size: 12px;
    font-weight: 700;
}

body:has(.price-page) .price-filter-dialog .price-filter-genre-toggle:hover,
body:has(.price-page) .price-filter-dialog .price-filter-genre-toggle:focus-visible {
    border-color: #2e3f55;
    color: #fff;
    background: #101927;
    transform: none;
}

body:has(.price-page) .price-filter-dialog .price-filter-genre-toggle.is-selected,
body:has(.price-page) .price-filter-dialog .price-filter-genre-toggle.is-selected:hover,
body:has(.price-page) .price-filter-dialog .price-filter-genre-toggle.is-selected:focus-visible {
    border-color: var(--ui-button-primary-bg);
    color: #fff;
    background: var(--ui-button-primary-bg);
    transform: none;
}

body:has(.price-page) .price-filter-dialog .price-filter-genre-panel {
    gap: 16px;
    padding: 16px;
    background: #0d1520;
}

body:has(.price-page) .price-filter-dialog .price-filter-genre-categories {
    gap: 16px;
}

body:has(.price-page) .price-filter-dialog .price-filter-genre-category {
    gap: 12px;
    padding: 12px;
    border: 1px solid #2e3f55;
    border-radius: 8px;
    background: #111d2c;
}

body:has(.price-page) .price-filter-dialog .price-filter-genre-category-toggle {
    min-height: 32px;
    padding: 0;
    border: 0;
    border-radius: 0;
    justify-content: flex-start;
    color: #fff;
    background: transparent;
    transform: none;
}

body:has(.price-page) .price-filter-dialog .price-filter-genre-category-toggle:hover,
body:has(.price-page) .price-filter-dialog .price-filter-genre-category-toggle:focus-visible {
    border-color: transparent;
    color: #fff;
    background: transparent;
    transform: none;
}

body:has(.price-page) .price-filter-dialog .price-filter-genre-category-toggle small {
    color: #8b99ab;
}

body:has(.price-page) .price-filter-dialog .price-filter-genre-category-toggle:hover small,
body:has(.price-page) .price-filter-dialog .price-filter-genre-category-toggle:focus-visible small,
body:has(.price-page) .price-filter-dialog .price-filter-genre-category-toggle.is-selected small {
    color: #d03878;
}

body:has(.price-page) .price-filter-dialog .price-filter-genre-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

body:has(.price-page) .price-filter-dialog .price-filter-genre-grid .ui-button--filter-chip {
    min-height: 32px;
    padding: 6px 10px;
    border: 1px solid #2e3f55;
    border-radius: 6px;
    justify-content: center;
    color: #c4cdd9;
    background: transparent;
    text-align: center;
}

body:has(.price-page) .price-filter-dialog .price-filter-genre-grid .ui-button--filter-chip:hover,
body:has(.price-page) .price-filter-dialog .price-filter-genre-grid .ui-button--filter-chip:focus-visible {
    border-color: #ff7aae;
    color: #ff7aae;
    background: transparent;
    transform: none;
}

body:has(.price-page) .price-filter-dialog .price-filter-genre-grid .ui-button--filter-chip.is-selected {
    border-color: #2e3f55;
    color: #fff;
    background: #d03878;
}

@media (max-width: 767px) {
    body:has(.price-page) .price-filter-dialog .price-filter-genre-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Match price-table surfaces and columns to the TOP tables. */
body:has(.price-page) .price-table {
    --price-column-adjustment: 32px;
    background: #142030;
}

body:has(.price-page) .price-table th {
    background: #101927;
    font-size: 11px;
}

body:has(.price-page) .price-table tbody td {
    background: #142030;
}

body:has(.home) :is(
    .home-featured-grid,
    .home-dashboard-stats,
    .home-category-table,
    .home-lowest-list,
    .home-watch-list,
    .home-watch-empty,
    .home-ranking > div
),
body:has(.watchlist-page) .watchlist-table-scroll,
body:has(.price-page:not(.watchlist-page)) .price-table,
body:has(.watchlist-page) .watchlist-table,
body:has(.price-page) .price-table tbody td,
body:has(.price-page:not(.watchlist-page)) .price-page-content {
    background: #101a2a;
}

@media (min-width: 1025px) {
    body:has(.price-page) .price-table .creator-head,
    body:has(.price-page) .price-table .creator-cell {
        width: clamp(100px, calc(17vw - var(--price-column-adjustment)), 158px);
    }

    body:has(.price-page) .price-table .price-head,
    body:has(.price-page) .price-table .price-summary-cell {
        width: clamp(148px, calc(14vw + var(--price-column-adjustment)), 186px);
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    body:has(.price-page) .price-table .creator-head,
    body:has(.price-page) .price-table .creator-cell {
        width: clamp(72px, calc(15vw - var(--price-column-adjustment)), 100px);
    }

    body:has(.price-page) .price-table .price-head,
    body:has(.price-page) .price-table .price-summary-cell {
        width: clamp(140px, calc(15vw + var(--price-column-adjustment)), 164px);
    }
}

@media (max-width: 767px) {
    body:has(.price-page) .price-table .price-main-row {
        background: #101a2a;
    }
}

body:has(.watchlist-settings-modal) .watchlist-settings-actions .ui-button--primary.ui-button--small {
    align-self: center;
}

/* Mobile layout polish: keep home table headings centered without changing row alignment. */
.home-work-head {
    border-bottom: 0;
}

.home-work-head > span {
    text-align: center;
}

.home-work-head > span:last-child {
    text-align: center;
}

/* Mobile layout polish: compact, horizontally reachable price filters. */
@media (max-width: 767px) {
    .price-search > .price-filter-actions {
        width: auto;
    }

    .price-search > .price-filter-actions > .price-filter-open-button {
        width: auto;
        justify-self: start;
    }

    .price-search > .price-filter-buttons {
        display: flex;
        flex-direction: column;
        gap: 8px;
        overflow: visible;
    }

    .price-search .price-filter-group {
        width: 100%;
        min-width: 0;
        align-self: stretch;
    }

    .price-search .price-filter-group--display {
        width: 100%;
    }

    .price-search .price-filter-group--display .price-share-button {
        margin-left: auto;
    }

    .price-search .price-filter-group-controls {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 2px;
        scrollbar-width: thin;
    }

    .price-search .price-filter-group-controls > * {
        flex: 0 0 auto;
        width: auto;
    }

    .watchlist-table .price-summary-cell {
        display: table-cell;
        vertical-align: middle;
        padding-block: 0;
    }

    .watchlist-table .watchlist-price-stack {
        height: 100%;
        min-height: 0;
        box-sizing: border-box;
        align-content: center;
    }
}

/* Keep the same compact alignment through the tablet price-table breakpoint. */
@media (max-width: 1024px) {
    body:has(.home) .home-watch h2 {
        font-size: 16px !important;
    }

    body:has(.home) .home-watch .home-section-lead {
        font-size: 12px !important;
    }

    .price-search .price-filter-group {
        width: 100%;
        align-self: stretch;
    }

    .price-search .price-filter-group--display .price-share-button {
        margin-left: auto;
    }

    .watchlist-table .price-summary-cell {
        display: table-cell;
        position: relative;
        vertical-align: middle;
        padding-block: 0;
    }

    .watchlist-table .watchlist-price-stack {
        position: absolute;
        top: 50%;
        right: 4px;
        left: 4px;
        width: auto;
        height: auto !important;
        min-height: 0;
        box-sizing: border-box;
        transform: translateY(-50%);
    }
}

/* Keep mobile page headings and descriptions in the site's compact type scale. */
@media (max-width: 680px) {
    .home-work-head {
        margin-inline: 0;
        padding-inline: 0;
    }

    .home-featured h2,
    .home-categories h2,
    .home-lowest h2,
    body:has(.home) .home-watch h2,
    .home-ranking h2,
    body:has(.price-page) .price-page-heading h1 {
        font-size: 16px;
    }

    body:has(.home) .home-watch .home-section-lead,
    body:has(.price-page) .price-page-head .price-page-lead {
        font-size: 12px;
    }
}

/* Final watchlist selection-column overrides after the shared responsive rules. */
@media (min-width: 768px) {
    .watchlist-table th:nth-child(1),
    .watchlist-table td:nth-child(1) { width: 48px; }
    .watchlist-table th:nth-child(2),
    .watchlist-table td:nth-child(2) { width: 170px; }
    .watchlist-table th:nth-child(4),
    .watchlist-table td:nth-child(4) { width: 190px; }
    .watchlist-table th:nth-child(5),
    .watchlist-table td:nth-child(5) { width: 72px; }
    .watchlist-table th:nth-child(6),
    .watchlist-table td:nth-child(6) { width: 160px; }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .watchlist-table th:nth-child(1),
    .watchlist-table td:nth-child(1) { width: 50px; }
    .watchlist-table th:nth-child(2),
    .watchlist-table td:nth-child(2) { width: 128px; }
    .watchlist-table th:nth-child(4),
    .watchlist-table td:nth-child(4) { width: 144px; }
    .watchlist-table th:nth-child(5),
    .watchlist-table td:nth-child(5) { width: 70px; }
    .watchlist-table th:nth-child(6),
    .watchlist-table td:nth-child(6) { width: 140px; }
}

@media (max-width: 767px) {
    .price-table.watchlist-table .watchlist-row {
        grid-template-columns: 22px clamp(100px, 25vw, 205px) minmax(0, 1fr) 44px;
        column-gap: 8px;
    }

    .watchlist-table .watchlist-select-cell {
        grid-column: 1;
        grid-row: 1 / span 3;
        align-self: center;
        width: auto;
        padding: 0;
        border: 0;
        text-align: center;
    }

    .watchlist-table .thumb { grid-column: 2; }
    .watchlist-table .work-title,
    .watchlist-table .price-summary-cell,
    .watchlist-table .watchlist-notification-cell { grid-column: 3; }
}

/* Watchlist responsive title scale and Figma-aligned selection controls. */
.watchlist-table .work-title {
    font-size: var(--watchlist-title-font);
}

.watchlist-table .watchlist-select-head input,
.watchlist-table .watchlist-select-cell input {
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    display: inline-grid;
    width: 20px;
    height: 20px;
    box-sizing: border-box;
    place-items: center;
    margin: 0;
    border: 1px solid #2a4060;
    border-radius: 4px;
    background: #0d1625;
    color: #fff;
    vertical-align: middle;
    cursor: pointer;
}

.watchlist-table .watchlist-select-head input:checked,
.watchlist-table .watchlist-select-cell input:checked {
    border-color: var(--accent);
    background: var(--accent);
}

.watchlist-table .watchlist-select-head input:checked::after,
.watchlist-table .watchlist-select-cell input:checked::after {
    width: 9px;
    height: 5px;
    border: solid #fff;
    border-width: 0 0 2px 2px;
    content: "";
    transform: translateY(-1px) rotate(-45deg);
}

.watchlist-table .watchlist-select-head input:indeterminate,
.watchlist-table .watchlist-select-cell input:indeterminate {
    border-color: var(--accent-text);
}

.watchlist-table .watchlist-select-head input:indeterminate::after,
.watchlist-table .watchlist-select-cell input:indeterminate::after {
    width: 9px;
    height: 2px;
    border-radius: 2px;
    background: var(--accent-text);
    content: "";
}

.watchlist-table .watchlist-select-head input:focus-visible,
.watchlist-table .watchlist-select-cell input:focus-visible {
    outline: none;
    box-shadow: none;
}

@media (max-width: 767px) {
    .watchlist-table .thumb {
        grid-row: 1 / span 3;
        align-self: stretch;
        display: flex !important;
        align-items: center;
    }

    .watchlist-table .thumb-link,
    .watchlist-table .thumb-empty {
        max-height: 100%;
    }

    body:has(.watchlist-settings-modal:not([hidden])) .watchlist-page,
    body:has(.watchlist-bulk-delete-modal:not([hidden])) .watchlist-page {
        left: 0;
        transform: none;
    }
}

/* Mobile-only watchlist heading and controls. Keep PC/tablet markup and layout unchanged. */
.watchlist-mobile-heading {
    display: none;
}

@media (max-width: 767px) {
    .watchlist-bulk-delete-button {
        align-self: flex-end;
        width: fit-content;
        min-height: 34px;
        box-sizing: border-box;
        padding: 1px 15px;
        border-radius: 6px;
        border-color: var(--danger-button-border);
        background: var(--danger-button-bg);
        color: #fff;
        box-shadow: 0 4px 4px var(--danger-button-shadow);
        font-size: 13px;
        font-weight: 700;
        line-height: 19.5px;
    }

    .watchlist-bulk-delete-button:hover:not(:disabled),
    .watchlist-bulk-delete-button:focus-visible:not(:disabled) {
        border-color: var(--danger-button-border);
        background: var(--danger-button-bg);
        color: #fff;
        filter: brightness(1.08);
    }

    .watchlist-bulk-delete-button:disabled {
        border-color: var(--ui-button-border);
        background: var(--ui-button-surface);
        color: var(--ui-button-disabled-text);
        box-shadow: none;
        opacity: .4;
        cursor: not-allowed;
    }

    .watchlist-mobile-heading {
        display: grid;
        grid-template-columns: 22px clamp(100px, 25vw, 205px) minmax(0, 1fr) 44px;
        column-gap: 8px;
        align-items: center;
        height: 38px;
        min-height: 0;
        box-sizing: border-box;
        padding: 0 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.09);
        color: var(--text-muted);
        font-size: 10px;
        font-weight: 700;
        line-height: 1.2;
        white-space: nowrap;
    }

    .watchlist-mobile-heading > span {
        align-self: center;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: left;
    }

    .watchlist-mobile-heading > .watchlist-mobile-heading-select {
        text-align: center;
    }

    .watchlist-mobile-heading-select {
        display: grid;
        place-items: center;
    }

    .watchlist-mobile-heading input {
        -webkit-appearance: none;
        appearance: none;
        display: inline-grid;
        width: 20px;
        height: 20px;
        box-sizing: border-box;
        place-items: center;
        margin: 0;
        border: 1px solid #2a4060;
        border-radius: 4px;
        background: #0d1625;
        cursor: pointer;
    }

    .watchlist-mobile-heading input:checked {
        border-color: var(--accent);
        background: var(--accent);
    }

    .watchlist-mobile-heading input:checked::after {
        width: 9px;
        height: 5px;
        border: solid #fff;
        border-width: 0 0 2px 2px;
        content: "";
        transform: translateY(-1px) rotate(-45deg);
    }

    .watchlist-mobile-heading input:indeterminate {
        border-color: var(--accent-text);
    }

    .watchlist-mobile-heading input:indeterminate::after {
        width: 9px;
        height: 2px;
        border-radius: 2px;
        background: var(--accent-text);
        content: "";
    }

    .watchlist-table .watchlist-notification-cell {
        padding-right: 0;
        gap: 6px;
        font-size: 10px;
    }

    .watchlist-table .watchlist-notification-status {
        gap: 4px;
        min-height: 25px;
        padding: 4px 8px;
        font-size: 10px;
    }

    .watchlist-table .notify-sale-status > span:first-child::before,
    .watchlist-table .notify-lowest-status > span:first-child::before,
    .watchlist-table .notify-target-price-status > span:first-child::before,
    .watchlist-table .watchlist-notification-state,
    .watchlist-table .watchlist-notification-value {
        font-size: 10px;
    }

    .watchlist-mobile-heading input:focus,
    .watchlist-mobile-heading input:focus-visible {
        outline: none;
        box-shadow: none;
    }

    .watchlist-table .notification-settings-button:hover,
    .watchlist-table .notification-settings-button:focus-visible {
        border-color: var(--accent-text);
        color: var(--accent-text);
    }
}

/* The mobile discount badge has a dedicated presentation; desktop/tablet use the discount column. */
@media (min-width: 768px) {
    .watchlist-table .watchlist-mobile-discount {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .watchlist-table .work-title {
        font-weight: 400;
    }
}

/* Desktop/tablet watchlist sizing and disabled bulk-action state. */
@media (min-width: 768px) {
    .watchlist-table th:nth-child(1),
    .watchlist-table td:nth-child(1),
    .watchlist-table .watchlist-select-head,
    .watchlist-table .watchlist-select-cell {
        width: 48px !important;
        max-width: 48px;
        box-sizing: border-box;
        padding-right: 4px;
        padding-left: 4px;
    }

    .watchlist-table .thumb-link,
    .watchlist-table .thumb-empty {
        width: 100%;
        min-height: 0;
        box-sizing: border-box;
        aspect-ratio: 4 / 3;
    }

    .watchlist-bulk-delete-button {
        min-height: 34px;
        box-sizing: border-box;
        padding: 1px 15px;
        border-radius: 6px;
        font-size: 13px;
        font-weight: 700;
        line-height: 19.5px;
    }

    .watchlist-bulk-delete-button:disabled {
        border-color: var(--ui-button-border);
        background: var(--ui-button-surface);
        color: var(--ui-button-disabled-text);
        box-shadow: none;
        opacity: .4;
        cursor: not-allowed;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .watchlist-table th:nth-child(1),
    .watchlist-table td:nth-child(1),
    .watchlist-table .watchlist-select-head,
    .watchlist-table .watchlist-select-cell {
        width: 6.5% !important;
        max-width: none;
    }

    .watchlist-table-scroll {
        overflow-x: hidden !important;
    }

    .price-table.watchlist-table {
        width: 100% !important;
        min-width: 0 !important;
    }
}

@media (min-width: 1025px) {
    .watchlist-table th:nth-child(1),
    .watchlist-table td:nth-child(1),
    .watchlist-table .watchlist-select-head,
    .watchlist-table .watchlist-select-cell {
        width: 4% !important;
        max-width: none;
    }
}
