/* WooCommerce My Account R3 — Figma page 5:9. */
body.inbetween-account-r3 {
    --inbetween-account-frame: 1440px;
    --inbetween-account-body: 1312px;
    --inbetween-account-rail: 300px;
    --inbetween-account-main: 988px;
    --inbetween-account-gap: 24px;
    --inbetween-account-mobile: 342px;
    --inbetween-account-canvas: #fcfafb;
    --inbetween-account-surface: #fff;
    --inbetween-account-subtle: #f7f2f4;
    --inbetween-account-soft: #fff6f9;
    --inbetween-account-brand: #a91f4d;
    --inbetween-account-text: #2d2529;
    --inbetween-account-muted: #6f6268;
    --inbetween-account-tertiary: #8b7d83;
    --inbetween-account-border: #eadde3;
    --inbetween-account-success: #19743b;
    --inbetween-account-success-bg: #ecf8f0;
    --inbetween-account-warning: #9a4d00;
    --inbetween-account-warning-bg: #fff7e8;
    --inbetween-account-error: #b42318;
    --inbetween-account-error-bg: #fff0ef;
    color: var(--inbetween-account-text);
    background: var(--inbetween-account-canvas);
    font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

body.inbetween-account-r3 *,
body.inbetween-account-r3 *::before,
body.inbetween-account-r3 *::after { box-sizing: border-box; }

body.inbetween-account-r3 .inb-account-shell {
    width: 100% !important;
    max-width: var(--inbetween-account-frame) !important;
    margin: 0 auto !important;
    padding: 48px !important;
    background: var(--inbetween-account-canvas) !important;
}
body.inbetween-account-r3 .elementor .inb-account-shell__inner,
body.inbetween-account-r3 .inb-woo-widget,
body.inbetween-account-r3 .inb-woo-widget > .elementor-widget-container,
body.inbetween-account-r3 .inb-woo-widget > .elementor-widget-container > .woocommerce,
body.inbetween-account-r3 .inb-woo-widget .elementor-shortcode > .woocommerce {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}
body.inbetween-account-r3 :is(.inb-dashboard-elementor-intro,.inb-story-elementor-intro,.inb-experience-elementor-intro,.inbetween-native-intro) {
    display: none !important;
}

body.inbetween-account-r3 .inbetween-account-shell-r3 {
    display: flex;
    width: min(100%, var(--inbetween-account-body));
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    margin: 0;
}
body.inbetween-account-r3 .inbetween-account-nav-toggle {
    display: none;
}
body.inbetween-account-r3 .inbetween-r3-account-heading {
    display: flex !important;
    width: 100% !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin: 0 !important;
    padding: 0 !important;
}
body.inbetween-account-r3 .inbetween-r3-account-heading .inbetween-eyebrow {
    width: 100%;
    margin: 0 !important;
    color: var(--inbetween-account-brand) !important;
    font: 500 14px/22px "Noto Sans TC", sans-serif !important;
}
body.inbetween-account-r3 .inbetween-r3-account-heading h1 {
    width: 100%;
    margin: 0 !important;
    color: var(--inbetween-account-text) !important;
    font: 600 36px/46px "Noto Serif TC", serif !important;
    letter-spacing: -.2px;
}
body.inbetween-account-r3 .inbetween-r3-account-heading__title-row {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
body.inbetween-account-r3 .inbetween-r3-account-heading__title-row h1 {
    width: auto;
    min-width: 0;
    flex: 1 1 auto;
}
body.inbetween-account-r3 .inbetween-account-header-status {
    display: inline-flex;
    min-height: 36px;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border: 1px solid #d5eadc;
    border-radius: 999px;
    background: var(--inbetween-account-success-bg);
    color: var(--inbetween-account-success);
    font: 500 13px/20px "Noto Sans TC", sans-serif;
}
body.inbetween-account-r3 .inbetween-account-header-status__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}
body.inbetween-account-r3 .inbetween-account-header-status__badge .inbetween-dashboard-icon {
    width: 16px;
    height: 16px;
}
body.inbetween-account-r3 .inbetween-account-header-status__name {
    padding-left: 8px;
    border-left: 1px solid #badbc5;
    color: var(--inbetween-account-text);
}
body.inbetween-account-r3 .inbetween-account-header-status__mobile { display: none; }
body.inbetween-account-r3 .inbetween-r3-account-heading > p:last-child {
    width: 100%;
    margin: 0 !important;
    color: var(--inbetween-account-muted) !important;
    font: 400 14px/22px "Noto Sans TC", sans-serif !important;
}

body.inbetween-account-r3 .inbetween-account-layout {
    display: grid;
    width: 100%;
    min-width: 0;
    grid-template-columns: var(--inbetween-account-rail) minmax(0, var(--inbetween-account-main));
    gap: var(--inbetween-account-gap);
    align-items: start;
}
body.inbetween-account-r3 .inbetween-account-rail {
    display: flex;
    width: var(--inbetween-account-rail);
    min-width: 0;
    min-height: 820px;
    flex-direction: column;
    gap: 24px;
}
body.inbetween-account-r3 .woocommerce-MyAccount-navigation {
    display: flex !important;
    width: var(--inbetween-account-rail) !important;
    max-width: none !important;
    min-height: 0 !important;
    flex-direction: column;
    gap: 12px;
    margin: 0 !important;
    padding: 12px !important;
    border: 1px solid var(--inbetween-account-border) !important;
    border-radius: 16px !important;
    background: var(--inbetween-account-surface) !important;
    box-shadow: none !important;
}
body.inbetween-account-r3 .woocommerce-MyAccount-navigation ul {
    display: flex !important;
    width: 276px !important;
    height: auto !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    list-style: none !important;
}
body.inbetween-account-r3 .woocommerce-MyAccount-navigation li {
    display: block !important;
    width: 276px !important;
    height: 48px !important;
    margin: 0 !important;
    padding: 0 !important;
}
body.inbetween-account-r3 .inb-woo-widget .woocommerce-MyAccount-navigation a {
    position: relative;
    display: flex !important;
    width: 276px !important;
    height: 48px !important;
    min-height: 48px !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    padding: 13px 12px 13px 44px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: var(--inbetween-account-surface) !important;
    color: var(--inbetween-account-text) !important;
    font: 500 14px/22px "Noto Sans TC", sans-serif !important;
    text-decoration: none !important;
    white-space: nowrap;
}
body.inbetween-account-r3 .inb-woo-widget .woocommerce-MyAccount-navigation a::before {
    position: absolute !important;
    top: 14px !important;
    left: 12px !important;
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    margin: 0 !important;
    background: center / 20px 20px no-repeat url("icons/dashboard/home.svg") !important;
    content: "" !important;
}
body.inbetween-account-r3 .inb-woo-widget .woocommerce-MyAccount-navigation-link--my-story a::before { background-image: url("icons/dashboard/pencil.svg") !important; }
body.inbetween-account-r3 .inb-woo-widget .woocommerce-MyAccount-navigation-link--payment-report a::before { background-image: url("icons/dashboard/receipt.svg") !important; }
body.inbetween-account-r3 .inb-woo-widget .woocommerce-MyAccount-navigation-link--five-rounds a::before { background-image: url("icons/dashboard/people.svg") !important; }
body.inbetween-account-r3 .inb-woo-widget .woocommerce-MyAccount-navigation-link--orders a::before { background-image: url("icons/dashboard/cart.svg") !important; }
body.inbetween-account-r3 .inb-woo-widget .woocommerce-MyAccount-navigation-link--edit-account a::before { background-image: url("icons/dashboard/shield.svg") !important; }
body.inbetween-account-r3 .inb-woo-widget .woocommerce-MyAccount-navigation-link--customer-logout a::before { background-image: url("icons/dashboard/arrow-right.svg") !important; }
body.inbetween-account-r3 .woocommerce-MyAccount-navigation .is-active a,
body.inbetween-account-r3 .woocommerce-MyAccount-navigation a:hover {
    background: var(--inbetween-account-soft) !important;
    color: var(--inbetween-account-brand) !important;
}
body.inbetween-account-r3 .woocommerce-MyAccount-navigation .is-active a::after {
    width: 8px;
    height: 8px;
    margin-left: auto;
    border-radius: 50%;
    background: var(--inbetween-account-brand);
    content: "";
}

body.inbetween-account-r3 .inbetween-dashboard-help {
    position: static !important;
    display: flex !important;
    width: var(--inbetween-account-rail) !important;
    min-height: 0 !important;
    flex-direction: column;
    gap: 8px;
    margin: 0 !important;
    padding: 16px !important;
    border: 1px solid var(--inbetween-account-border);
    border-radius: 12px;
    background: var(--inbetween-account-soft);
}
body.inbetween-account-r3 .inbetween-dashboard-help :is(strong,p) { margin: 0 !important; }
body.inbetween-account-r3 .inbetween-dashboard-help strong { font: 500 14px/22px "Noto Sans TC", sans-serif; }
body.inbetween-account-r3 .inbetween-dashboard-help p { color: var(--inbetween-account-muted); font: 400 12px/18px "Noto Sans TC", sans-serif; }
body.inbetween-account-r3 .inbetween-dashboard-help .button { width: 100% !important; min-height: 44px; }

body.inbetween-account-r3 .inbetween-account-main,
body.inbetween-account-r3 .woocommerce-MyAccount-content {
    display: block !important;
    width: 100% !important;
    max-width: var(--inbetween-account-main) !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
body.inbetween-account-r3 .woocommerce-MyAccount-content > :is(p,form,section,address,div) { max-width: 100%; }

body.inbetween-account-r3 :is(.inbetween-member,.inbetween-story,.inbetween-experience,.inbetween-experience--five-rounds,.inbetween-five-rounds) {
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
body.inbetween-account-r3 .inbetween-member-identity {
    display: flex !important;
    width: 100% !important;
    min-height: 178px !important;
    align-items: flex-start !important;
    justify-content: space-between;
    gap: 24px;
    margin: 0 0 24px !important;
    padding: 24px !important;
    border: 1px solid var(--inbetween-account-border) !important;
    border-radius: 16px !important;
    background: var(--inbetween-account-soft) !important;
    box-shadow: none !important;
}
body.inbetween-account-r3 .inbetween-member-identity > div { display: flex; min-width: 0; flex-direction: column; gap: 8px; }
body.inbetween-account-r3 .inbetween-member-identity strong { color: var(--inbetween-account-text); font: 600 28px/38px "Noto Serif TC", serif; }
body.inbetween-account-r3 .inbetween-member-identity small { color: var(--inbetween-account-muted); font: 400 14px/22px "Noto Sans TC", sans-serif; }
body.inbetween-account-r3 .inbetween-member-identity .inbetween-status-badge { width: 220px; min-height: 36px; }
body.inbetween-account-r3 .inbetween-dashboard-cards {
    display: grid !important;
    width: 100% !important;
    grid-template-columns: 310px 310px 320px !important;
    gap: 24px !important;
    margin: 0 !important;
}
body.inbetween-account-r3 .inbetween-dashboard-card {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 300px !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin: 0 !important;
    padding: 24px !important;
    border: 1px solid var(--inbetween-account-border) !important;
    border-radius: 16px !important;
    background: var(--inbetween-account-surface) !important;
    box-shadow: none !important;
}
body.inbetween-account-r3 .inbetween-dashboard-card h2 { margin: 0 !important; font: 700 22px/30px "Noto Sans TC", sans-serif !important; }
body.inbetween-account-r3 .inbetween-dashboard-card p { margin: 0 !important; color: var(--inbetween-account-muted); font: 400 14px/22px "Noto Sans TC", sans-serif; }
body.inbetween-account-r3 .inbetween-dashboard-card .button { width: 200px !important; min-height: 44px; margin: auto 0 0 !important; }

body.inbetween-account-r3 :is(.inbetween-story-layout,.inbetween-payment-list) {
    display: grid !important;
    width: 100% !important;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr) !important;
    gap: 24px !important;
}
body.inbetween-account-r3 :is(.inbetween-story-card,.inbetween-story-aside,.inbetween-story-privacy,.inbetween-flow-section,.inbetween-payment,.inbetween-five-rounds-question,.inbetween-five-rounds-case,.inbetween-five-rounds-history,.woocommerce-EditAccountForm,.woocommerce-order-details,.woocommerce-customer-details) {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 24px !important;
    border: 1px solid var(--inbetween-account-border) !important;
    border-radius: 16px !important;
    background: var(--inbetween-account-surface) !important;
    box-shadow: none !important;
}
body.inbetween-account-r3 .inbetween-story-aside { background: var(--inbetween-account-subtle) !important; }
body.inbetween-account-r3 .inbetween-story-privacy { margin-top: 24px !important; }
body.inbetween-account-r3 :is(input.input-text,input[type="text"],input[type="email"],input[type="password"],input[type="date"],select,textarea) {
    width: 100% !important;
    max-width: 100% !important;
    border: 1px solid var(--inbetween-account-border) !important;
    border-radius: 8px !important;
    background: var(--inbetween-account-surface) !important;
}
body.inbetween-account-r3 :is(input,select,textarea,button,a):focus-visible {
    outline: 3px solid color-mix(in srgb, var(--inbetween-account-brand) 35%, transparent) !important;
    outline-offset: 2px !important;
}

body.inbetween-account-r3 :is(a.button,button.button,input.button,#place_order) {
    display: inline-flex !important;
    min-height: 44px;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
    padding: 10px 18px !important;
    border: 1px solid var(--inbetween-account-brand) !important;
    border-radius: 8px !important;
    background: var(--inbetween-account-surface) !important;
    color: var(--inbetween-account-brand) !important;
    font: 500 14px/22px "Noto Sans TC", sans-serif !important;
    text-align: center;
    text-decoration: none !important;
    white-space: normal;
}
body.inbetween-account-r3 :is(a.button,button.button,input.button,#place_order):is(:hover,:focus-visible),
body.inbetween-account-r3 :is(a.button.alt,button.button.alt,#place_order) {
    border-color: var(--inbetween-account-brand) !important;
    background: var(--inbetween-account-brand) !important;
    color: #fff !important;
}
body.inbetween-account-r3 :is(a.button.alt,button.button.alt,#place_order):is(:hover,:focus-visible) {
    border-color: #81163a !important;
    background: #81163a !important;
    color: #fff !important;
}
body.inbetween-account-r3 :is(a.button,button.button,input.button,#place_order):disabled,
body.inbetween-account-r3 :is(a.button,button.button,input.button,#place_order).disabled {
    border-color: #d8cdd2 !important;
    background: #eee8eb !important;
    color: #81757a !important;
    cursor: not-allowed;
    opacity: 1 !important;
}
body.inbetween-account-r3 .button .inbetween-dashboard-icon--arrow,
body.inbetween-account-r3 .inbetween-bank-transfer-details summary .inbetween-dashboard-icon--arrow {
    display: block;
    width: 20px !important;
    height: 20px !important;
    flex: 0 0 20px;
    background: currentColor !important;
    -webkit-mask: url("icons/dashboard/arrow-right.svg") center / 20px 20px no-repeat;
    mask: url("icons/dashboard/arrow-right.svg") center / 20px 20px no-repeat;
}

body.inbetween-account-r3 .woocommerce-orders-table,
body.inbetween-account-r3 table.shop_table {
    table-layout: fixed;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    overflow: visible !important;
    border: 1px solid var(--inbetween-account-border) !important;
    border-radius: 12px !important;
    background: var(--inbetween-account-surface) !important;
}
body.inbetween-account-r3 table.shop_table :is(th,td) {
    min-width: 0;
    padding: 14px 16px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--inbetween-account-border) !important;
    overflow-wrap: anywhere;
    vertical-align: top;
}
body.inbetween-account-r3 table.shop_table tr:last-child > :is(th,td),
body.inbetween-account-r3 table.shop_table tfoot tr:last-child > :is(th,td) { border-bottom: 0 !important; }
body.inbetween-account-r3 .woocommerce-orders-table__cell-order-number { width: 16%; }
body.inbetween-account-r3 .woocommerce-orders-table__cell-order-date { width: 22%; }
body.inbetween-account-r3 .woocommerce-orders-table__cell-order-status { width: 20%; }
body.inbetween-account-r3 .woocommerce-orders-table__cell-order-total { width: 24%; }
body.inbetween-account-r3 .woocommerce-orders-table__cell-order-actions { width: 18%; }
body.inbetween-account-r3 .woocommerce-orders-table__cell-order-actions .button {
    width: 100% !important;
    min-width: 0;
    margin: 0 !important;
}
body.inbetween-account-r3 .inbetween-order-total-summary {
    display: inline-flex;
    min-width: 0;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: flex-end;
    gap: 2px 8px;
}
body.inbetween-account-r3 :is(.inbetween-order-total-value,.inbetween-order-total-count) {
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
}
body.inbetween-account-r3 .woocommerce-table--order-details .woocommerce-table__product-name { width: 68%; }
body.inbetween-account-r3 .woocommerce-table--order-details .woocommerce-table__product-total { width: 32%; text-align: right; }
body.inbetween-account-r3 .woocommerce-EditAccountForm { padding: 24px !important; }
body.inbetween-account-r3 .woocommerce-EditAccountForm .form-row { width: 100% !important; float: none !important; }
body.inbetween-account-r3 .woocommerce-EditAccountForm fieldset {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    clear: both;
    margin: 24px 0 0 !important;
    padding: 20px !important;
    border: 1px solid var(--inbetween-account-border) !important;
    border-radius: 12px !important;
}
body.inbetween-account-r3 .woocommerce-EditAccountForm :is(fieldset + p,fieldset + .clear + p) {
    display: flex !important;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    width: 100%;
    clear: both;
    margin: 0 !important;
    padding: 20px 0 0 !important;
}
body.inbetween-account-r3 .woocommerce-EditAccountForm :is(fieldset + p,fieldset + .clear + p) .button {
    margin: 0 !important;
}

body.inbetween-account-r3:not(.logged-in) .inb-account-shell { padding: 48px !important; }
body.inbetween-account-r3:not(.logged-in) .inb-woo-widget > .elementor-widget-container > .woocommerce { width: 100% !important; }
body.inbetween-account-r3:not(.logged-in) .inbetween-account-intro--auth { width: 100%; max-width: 1312px; margin: 0 0 24px; }
body.inbetween-account-r3:not(.logged-in) #customer_login {
    display: grid !important;
    width: 100% !important;
    max-width: 1312px;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 24px !important;
}
body.inbetween-account-r3:not(.logged-in) #customer_login > div {
    width: 100% !important;
    margin: 0 !important;
    padding: 24px !important;
    border: 1px solid var(--inbetween-account-border) !important;
    border-radius: 12px !important;
    background: var(--inbetween-account-surface) !important;
    box-shadow: none !important;
}

@media (max-width: 1024px) {
    body.inbetween-account-r3 .inb-account-shell,
    body.inbetween-account-r3:not(.logged-in) .inb-account-shell {
        width: 100% !important;
        max-width: none !important;
        padding: 24px !important;
    }
    body.inbetween-account-r3 .inbetween-account-shell-r3,
    body.inbetween-account-r3 .inbetween-r3-account-heading,
    body.inbetween-account-r3 .inbetween-account-layout,
    body.inbetween-account-r3 .inbetween-account-main,
    body.inbetween-account-r3 .woocommerce-MyAccount-content {
        width: 100% !important;
        max-width: none !important;
    }
    body.inbetween-account-r3 .inbetween-account-nav-toggle {
        display: inline-flex;
        width: 100%;
        min-height: 48px;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 10px 16px;
        border: 1px solid var(--inbetween-account-border);
        border-radius: 10px;
        background: var(--inbetween-account-surface);
        color: var(--inbetween-account-text);
        font: 500 14px/22px "Noto Sans TC", sans-serif;
    }
    body.inbetween-account-r3 .inbetween-account-nav-toggle__icon { display: grid; width: 20px; gap: 4px; }
    body.inbetween-account-r3 .inbetween-account-nav-toggle__icon span { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; }
    body.inbetween-account-r3 .inbetween-account-rail {
        position: static !important;
        display: none !important;
        width: 100% !important;
        min-height: 0;
        gap: 12px;
        margin: 12px 0 0;
        padding: 0;
        overflow: visible;
        background: transparent;
        box-shadow: none;
        transform: none;
        transition: none;
    }
    body.inbetween-account-r3 .inbetween-account-rail.is-open { display: flex !important; }
    body.inbetween-account-r3 .woocommerce-MyAccount-navigation,
    body.inbetween-account-r3 .woocommerce-MyAccount-navigation ul,
    body.inbetween-account-r3 .woocommerce-MyAccount-navigation li,
    body.inbetween-account-r3 .inb-woo-widget .woocommerce-MyAccount-navigation a { width: 100% !important; }
    body.inbetween-account-r3 .woocommerce-MyAccount-navigation ul {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    body.inbetween-account-r3 .woocommerce-MyAccount-navigation li,
    body.inbetween-account-r3 .inb-woo-widget .woocommerce-MyAccount-navigation a { height: 48px !important; }
    body.inbetween-account-r3 .inbetween-dashboard-help { width: 100% !important; margin-top: 0 !important; }
    body.inbetween-account-r3 .inbetween-account-layout { display: block !important; }
    body.inbetween-account-r3 .inbetween-r3-account-heading h1 { font-size: 28px !important; line-height: 38px !important; }
    body.inbetween-account-r3 .inbetween-member-identity {
        min-height: 140px !important;
        flex-direction: column !important;
        gap: 8px !important;
        margin-bottom: 12px !important;
        padding: 12px !important;
    }
    body.inbetween-account-r3 .inbetween-member-identity strong { font: 700 22px/30px "Noto Sans TC", sans-serif; }
    body.inbetween-account-r3 .inbetween-member-identity small { font-size: 12px; line-height: 18px; }
    body.inbetween-account-r3 .inbetween-member-identity .inbetween-status-badge { width: 190px; min-height: 32px; }
    body.inbetween-account-r3 .inbetween-dashboard-cards,
    body.inbetween-account-r3 :is(.inbetween-story-layout,.inbetween-payment-list) {
        display: grid !important;
        width: 100% !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 8px !important;
    }
    body.inbetween-account-r3 .inbetween-dashboard-card {
        width: 100% !important;
        min-height: 142px !important;
        gap: 12px !important;
        padding: 24px !important;
    }
    body.inbetween-account-r3 .inbetween-dashboard-card .button { display: inline-flex !important; width: 100% !important; }
    body.inbetween-account-r3 :is(.inbetween-story-card,.inbetween-story-aside,.inbetween-story-privacy,.inbetween-flow-section,.inbetween-payment,.inbetween-five-rounds-question,.inbetween-five-rounds-case,.inbetween-five-rounds-history,.woocommerce-EditAccountForm) {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        padding: 12px !important;
    }
    body.inbetween-account-r3 .inbetween-story-actions { display: grid !important; width: 100% !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important; }
    body.inbetween-account-r3 .inbetween-story-actions .button,
    body.inbetween-account-r3 .inbetween-payment .button,
    body.inbetween-account-r3 .inbetween-five-rounds .button { width: 100% !important; }
    body.inbetween-account-r3 .woocommerce-orders-table { display: block; border: 0 !important; background: transparent !important; }
    body.inbetween-account-r3 .woocommerce-orders-table tbody { display: grid; gap: 12px; }
    body.inbetween-account-r3 .woocommerce-orders-table thead { display: none; }
    body.inbetween-account-r3 .woocommerce-orders-table__row {
        display: block;
        width: 100%;
        padding: 12px;
        border: 1px solid var(--inbetween-account-border);
        border-radius: 12px;
        background: var(--inbetween-account-surface);
    }
    body.inbetween-account-r3 .woocommerce-orders-table__cell {
        display: flex !important;
        width: 100%;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
        padding: 8px 0 !important;
        border-bottom: 1px solid var(--inbetween-account-border) !important;
        text-align: right !important;
        overflow-wrap: anywhere;
    }
    body.inbetween-account-r3 .woocommerce-orders-table__cell:last-child { border-bottom: 0 !important; }
    body.inbetween-account-r3 .woocommerce-orders-table__cell::before { flex: 0 0 42%; text-align: left; }
    body.inbetween-account-r3 .woocommerce-orders-table__cell-order-total .inbetween-order-total-summary {
        flex: 1 1 auto;
        min-width: 0;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: flex-end;
        gap: 2px;
    }
    body.inbetween-account-r3 .woocommerce-orders-table__cell-order-total .inbetween-order-total-value {
        flex: 0 0 auto;
        white-space: nowrap;
        overflow-wrap: normal;
        word-break: normal;
    }
    body.inbetween-account-r3 .woocommerce-orders-table__cell-order-actions { display: block !important; }
    body.inbetween-account-r3 .woocommerce-orders-table__cell-order-actions::before { display: none; }
    body.inbetween-account-r3 .woocommerce-orders-table__cell-order-actions .button { width: 100% !important; }
    body.inbetween-account-r3 .woocommerce-EditAccountForm fieldset {
        margin-top: 20px !important;
        padding: 12px !important;
    }
    body.inbetween-account-r3 .woocommerce-EditAccountForm :is(fieldset + p,fieldset + .clear + p) {
        padding-top: 16px !important;
    }
    body.inbetween-account-r3 .woocommerce-EditAccountForm :is(fieldset + p,fieldset + .clear + p) .button {
        width: 100% !important;
    }
    body.inbetween-account-r3 :is(.woocommerce-order-details,.woocommerce-customer-details) {
        box-sizing: border-box;
        min-width: 0;
        padding: 12px !important;
    }
    body.inbetween-account-r3 .woocommerce-customer-details address,
    body.inbetween-account-r3 .woocommerce-customer-details address :is(p,a) {
        box-sizing: border-box;
        min-width: 0;
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
    }
    body.inbetween-account-r3 .woocommerce-table--order-details { display: block; border: 0 !important; }
    body.inbetween-account-r3 .woocommerce-table--order-details :is(thead,tbody,tfoot) { display: block; width: 100%; }
    body.inbetween-account-r3 .woocommerce-table--order-details thead { display: none; }
    body.inbetween-account-r3 .woocommerce-table--order-details tr {
        display: grid;
        width: 100%;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
        padding: 12px 0;
        border-bottom: 1px solid var(--inbetween-account-border);
    }
    body.inbetween-account-r3 .woocommerce-table--order-details :is(th,td) {
        display: block;
        width: auto !important;
        padding: 0 !important;
        border: 0 !important;
    }
    body.inbetween-account-r3 .woocommerce-table--order-details :is(.woocommerce-table__product-total,td:last-child) { text-align: right; }
    body.inbetween-account-r3:not(.logged-in) #customer_login { grid-template-columns: minmax(0, 1fr) !important; gap: 12px !important; }
    body.inbetween-account-r3:not(.logged-in) #customer_login > div { padding: 12px !important; }
}

@media (max-width: 390px) {
    body.inbetween-account-r3 .inbetween-account-shell-r3,
    body.inbetween-account-r3 .inbetween-r3-account-heading,
    body.inbetween-account-r3 .inbetween-account-layout,
    body.inbetween-account-r3 .inbetween-account-main,
    body.inbetween-account-r3 .woocommerce-MyAccount-content {
        width: 342px !important;
        max-width: 342px !important;
    }
}

/* Exact R3 route layouts. These rules intentionally live last. */
.inbetween-heading-copy--mobile,
body.inbetween-account-r3 .inbetween-dashboard-card-status__mobile,
body.inbetween-account-r3 .inbetween-five-rounds-mobile-heading,
body.inbetween-account-r3 .inbetween-five-rounds-mobile-summary { display: none; }

body.inbetween-account-r3 .inbetween-account-footnote {
    width: 100%;
    margin: 24px 0 0 !important;
    color: var(--inbetween-account-tertiary);
    font: 400 12px/18px "Noto Sans TC", sans-serif;
}

/* Every logged-in desktop endpoint uses this same Woo account rail and main column. */

/* Dashboard 132:110 / 132:185. */
body.inbetween-account-r3--dashboard .inbetween-member-identity > div { gap: 8px; }
body.inbetween-account-r3--dashboard .inbetween-member-identity .inbetween-meta-label { margin: 0; }
body.inbetween-account-r3--dashboard .inbetween-dashboard-card > .inbetween-status-badge {
    display: inline-flex;
    width: 180px;
    min-height: 32px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--inbetween-account-subtle);
    color: var(--inbetween-account-text);
    font: 500 14px/22px "Noto Sans TC", sans-serif;
}
body.inbetween-account-r3--dashboard .inbetween-dashboard-card > .inbetween-status-badge .inbetween-dashboard-icon {
    width: 16px;
    height: 16px;
}
body.inbetween-account-r3--dashboard .inbetween-dashboard-card-description { margin-top: 0 !important; }
body.inbetween-account-r3--dashboard .inbetween-dashboard-card .button { margin-top: auto !important; }

/* Story 133:161 / 133:243. */
body.inbetween-account-r3--story .inbetween-story-layout {
    grid-template-columns: minmax(0, 600px) minmax(0, 364px) !important;
    gap: 24px !important;
    height: auto;
}
body.inbetween-account-r3--story :is(.inbetween-story-card,.inbetween-story-aside) {
    display: flex;
    height: auto !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 24px !important;
    overflow: visible;
    background: var(--inbetween-account-surface) !important;
}
body.inbetween-account-r3--story .inbetween-story-card > .inbetween-status-badge {
    width: 190px;
    min-height: 32px;
    justify-content: center;
    border-radius: 999px;
    background: var(--inbetween-account-soft);
    color: var(--inbetween-account-brand);
}
body.inbetween-account-r3--story .inbetween-story-card > :is(h2,p) { width: 100%; margin: 0 !important; }
body.inbetween-account-r3--story .inbetween-story-card > h2 { font: 700 22px/30px "Noto Sans TC", sans-serif !important; }
body.inbetween-account-r3--story .inbetween-story-card > p { color: var(--inbetween-account-muted); font: 400 14px/22px "Noto Sans TC", sans-serif; }
body.inbetween-account-r3--story .inbetween-story-form { display: contents; }
body.inbetween-account-r3--story .inbetween-story-field {
    display: flex !important;
    width: 100%;
    min-width: 0;
    flex-direction: column;
    gap: 8px;
}
body.inbetween-account-r3--story .inbetween-story-field label,
body.inbetween-account-r3--story .inbetween-story-field__label { font: 500 14px/22px "Noto Sans TC", sans-serif; }
body.inbetween-account-r3--story .inbetween-story-field textarea:not([hidden]) { min-height: 120px; resize: vertical; }
body.inbetween-account-r3--story .inbetween-story-field--story-text {
    order: 1;
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 8px;
}
body.inbetween-account-r3--story .inbetween-story-field--story-text label { font: 500 14px/22px "Noto Sans TC", sans-serif; }
body.inbetween-account-r3--story .inbetween-story-rich-editor,
body.inbetween-account-r3--story .inbetween-story-rich-content {
    width: 100% !important;
    min-height: 320px !important;
    padding: 16px !important;
    overflow-wrap: anywhere;
    border: 1px solid var(--inbetween-account-border);
    border-radius: 12px;
    background: var(--inbetween-account-surface);
    font: 400 16px/26px "Noto Sans TC", sans-serif;
}
body.inbetween-account-r3--story .inbetween-story-rich-editor { white-space: pre-wrap; }
body.inbetween-account-r3--story .inbetween-story-rich-editor:focus-visible {
    outline: 3px solid var(--inbetween-account-brand);
    outline-offset: 2px;
}
body.inbetween-account-r3--story .inbetween-story-rich-editor:empty::before {
    color: var(--inbetween-account-tertiary);
    content: attr(data-placeholder);
}
body.inbetween-account-r3--story .inbetween-story-toolbar {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--inbetween-account-border);
    border-radius: 12px;
    background: var(--inbetween-account-subtle);
}
body.inbetween-account-r3--story .inbetween-story-toolbar .button {
    width: auto !important;
    min-height: 40px !important;
    padding: 8px 12px !important;
    background: var(--inbetween-account-surface) !important;
    color: var(--inbetween-account-text) !important;
}
body.inbetween-account-r3--story .inbetween-story-toolbar__highlight { color: var(--inbetween-account-brand) !important; }
body.inbetween-account-r3 .inbetween-story-highlight {
    padding-inline: 2px;
    background: var(--inbetween-account-soft);
    color: var(--inbetween-account-brand);
}
body.inbetween-account-r3--story .inbetween-story-autosave-status {
    order: 2;
    width: 100%;
    margin: 0 !important;
    color: var(--inbetween-account-muted);
    font: 400 12px/18px "Noto Sans TC", sans-serif;
}
body.inbetween-account-r3--story .inbetween-story-upload { order: 3; width: 100%; }
body.inbetween-account-r3--story .inbetween-story-images {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    padding: 12px !important;
    border: 1px solid var(--inbetween-account-border) !important;
    border-radius: 16px !important;
    background: var(--inbetween-account-subtle) !important;
}
body.inbetween-account-r3--story .inbetween-story-actions {
    order: 4;
    display: flex !important;
    width: 100%;
    gap: 12px !important;
    margin: 0 !important;
}
body.inbetween-account-r3--story .inbetween-story-actions .button { min-height: 48px; margin: 0 !important; }
body.inbetween-account-r3--story .inbetween-story-actions .button:first-child { width: 180px !important; }
body.inbetween-account-r3--story .inbetween-story-actions .button:last-child { width: 220px !important; }
body.inbetween-account-r3--story .inbetween-story-image-upload {
    position: static !important;
    display: grid !important;
    width: 100% !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 8px 12px !important;
    margin: 12px 0 0 !important;
}
body.inbetween-account-r3--story .inbetween-story-image-upload label { grid-column: 1 / -1; margin: 0 !important; }
body.inbetween-account-r3--story .inbetween-story-image-upload input[type="file"] {
    position: static !important;
    z-index: auto !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 44px;
    padding: 8px !important;
    opacity: 1 !important;
    cursor: pointer;
}
body.inbetween-account-r3--story .inbetween-story-image-upload button { display: inline-flex !important; min-width: 132px; }
body.inbetween-account-r3--story .inbetween-story-aside > h2 { margin: 0 !important; font: 700 22px/30px "Noto Sans TC", sans-serif !important; }
body.inbetween-account-r3 .inbetween-status-badge.is-brand { background: var(--inbetween-account-soft); color: var(--inbetween-account-brand); }
body.inbetween-account-r3 .inbetween-status-badge.is-error { background: var(--inbetween-account-error-bg); color: var(--inbetween-account-error); }
body.inbetween-account-r3--story .inbetween-story-privacy {
    display: flex !important;
    align-items: center !important;
    margin-top: 24px !important;
}
body.inbetween-account-r3--story .inbetween-story-privacy p { margin: 0 !important; }

/* Payment Report 134:212 / 134:301. */
body.inbetween-account-r3--payment-report .inbetween-payment-layout {
    display: grid;
    width: 100%;
    height: auto;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
}
body.inbetween-account-r3--payment-report .inbetween-payment-editor {
    width: 100%;
    height: auto;
    margin: 0 !important;
    padding: 24px !important;
    overflow: visible;
    border: 1px solid var(--inbetween-account-border) !important;
    border-radius: 16px !important;
    background: var(--inbetween-account-surface) !important;
}
body.inbetween-account-r3--payment-report .inbetween-payment-list { display: block !important; }
body.inbetween-account-r3--payment-report .inbetween-payment {
    display: flex;
    width: 100% !important;
    flex-direction: column;
    gap: 12px;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}
body.inbetween-account-r3--payment-report .inbetween-payment > .inbetween-status-badge { width: 220px; min-height: 32px; justify-content: center; }
body.inbetween-account-r3--payment-report .inbetween-payment > :is(h2,p) { width: 100%; margin: 0 !important; }
body.inbetween-account-r3--payment-report .inbetween-payment > h2 { font: 700 22px/30px "Noto Sans TC",sans-serif !important; }
body.inbetween-account-r3--payment-report .inbetween-payment > p { color: var(--inbetween-account-muted); font: 400 14px/22px "Noto Sans TC",sans-serif; }
body.inbetween-account-r3--payment-report .inbetween-payment-order-meta { font-size: 12px !important; line-height: 18px !important; }
body.inbetween-account-r3--payment-report .inbetween-payment form { display: flex; width: 100%; flex-direction: column; gap: 12px; }
body.inbetween-account-r3--payment-report .inbetween-payment form label { display: flex; width: 100%; flex-direction: column; gap: 6px; font: 500 14px/22px "Noto Sans TC",sans-serif; }
body.inbetween-account-r3--payment-report .inbetween-payment form label small { color: var(--inbetween-account-muted); font: 400 12px/18px "Noto Sans TC",sans-serif; }
body.inbetween-account-r3--payment-report .inbetween-payment form input { height: 44px !important; }
body.inbetween-account-r3--payment-report .inbetween-privacy-note { min-height: 126px; padding: 12px; border: 1px solid var(--inbetween-account-border); border-radius: 16px; background: var(--inbetween-account-soft); }
body.inbetween-account-r3--payment-report .inbetween-payment form .button { width: 250px !important; min-height: 48px; }
body.inbetween-account-r3--payment-report .inbetween-bank-transfer-details {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--inbetween-account-border);
    border-radius: 12px;
    background: var(--inbetween-account-soft);
}
body.inbetween-account-r3--payment-report .inbetween-bank-transfer-details summary {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 8px;
    color: var(--inbetween-account-brand);
    cursor: pointer;
    font-weight: 500;
}
body.inbetween-account-r3--payment-report .inbetween-bank-transfer-details > div { padding-top: 12px; }
body.inbetween-account-r3--payment-report .inbetween-payment-result :is(strong,p) { margin: 0 0 8px !important; }
/* Five Rounds 135:261 / 135:343. */
body.inbetween-account-r3--five-rounds .inbetween-five-rounds-layout {
    display: grid;
    width: 100%;
    min-height: 0;
    grid-template-columns: minmax(0, 260px) minmax(0, 704px);
    gap: 24px;
}
body.inbetween-account-r3--five-rounds .inbetween-five-rounds-rail,
body.inbetween-account-r3--five-rounds .inbetween-five-rounds-main {
    width: 100%;
    min-height: 0;
    padding: 24px;
    border: 1px solid var(--inbetween-account-border);
    border-radius: 16px;
    background: var(--inbetween-account-surface);
}
body.inbetween-account-r3--five-rounds .inbetween-five-rounds-rail > h2 { margin: 0 0 12px !important; font: 700 22px/30px "Noto Sans TC",sans-serif !important; }
body.inbetween-account-r3--five-rounds .inbetween-five-rounds-progress { display: flex !important; width: 100% !important; flex-direction: column; gap: 12px !important; margin: 0 !important; padding: 0 !important; list-style: none; }
body.inbetween-account-r3--five-rounds .inbetween-five-rounds-progress li {
    display: grid;
    width: 100% !important;
    height: 72px !important;
    grid-template-columns: 28px minmax(0,1fr);
    align-items: center;
    gap: 12px;
    padding: 12px !important;
    border: 1px solid var(--inbetween-account-border);
    border-radius: 12px;
    background: var(--inbetween-account-surface);
}
body.inbetween-account-r3--five-rounds .inbetween-five-rounds-progress li.is-current { border: 2px solid var(--inbetween-account-brand); }
body.inbetween-account-r3--five-rounds .inbetween-five-rounds-progress__number { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: var(--inbetween-account-subtle); font-size: 12px; }
body.inbetween-account-r3--five-rounds .inbetween-five-rounds-progress__copy { display: flex; flex-direction: column; }
body.inbetween-account-r3--five-rounds .inbetween-five-rounds-progress__copy strong { font: 500 14px/22px "Noto Sans TC",sans-serif; }
body.inbetween-account-r3--five-rounds .inbetween-five-rounds-progress__copy small { color: var(--inbetween-account-muted); font: 400 12px/18px "Noto Sans TC",sans-serif; }
body.inbetween-account-r3--five-rounds .inbetween-five-rounds-progress__mark { display: none; }
body.inbetween-account-r3--five-rounds .inbetween-five-rounds-fixed { min-height: 136px; margin-top: 12px; padding: 12px; border: 1px solid var(--inbetween-account-border); border-radius: 12px; background: var(--inbetween-account-soft); }
body.inbetween-account-r3--five-rounds .inbetween-five-rounds-fixed :is(strong,p) { display: block; margin: 0 0 8px !important; }
body.inbetween-account-r3--five-rounds .inbetween-five-rounds-fixed p { color: var(--inbetween-account-muted); font: 400 14px/22px "Noto Sans TC",sans-serif; }
body.inbetween-account-r3--five-rounds .inbetween-five-rounds-main { display: flex; flex-direction: column; gap: 12px; }
body.inbetween-account-r3--five-rounds .inbetween-five-rounds-question { display: flex; width: 100% !important; min-height: 0 !important; flex-direction: column; gap: 12px; padding: 0 !important; border: 0 !important; }
body.inbetween-account-r3--five-rounds .inbetween-five-rounds-current-heading { display: flex; width: 100%; align-items: center; gap: 12px; }
body.inbetween-account-r3--five-rounds .inbetween-five-rounds-current-heading .inbetween-five-rounds-badge { width: 170px; min-height: 32px; }
body.inbetween-account-r3--five-rounds .inbetween-five-rounds-current-heading h2 { margin: 0 !important; font: 700 22px/30px "Noto Sans TC",sans-serif !important; }
body.inbetween-account-r3--five-rounds .inbetween-five-rounds-question-label { margin: 12px 0 0 !important; color: var(--inbetween-account-muted); }
body.inbetween-account-r3--five-rounds .inbetween-five-rounds-compose { display: block; width: 100%; }
body.inbetween-account-r3--five-rounds .inbetween-five-rounds-compose form { display: flex; width: 100%; flex-direction: column; gap: 12px; }
body.inbetween-account-r3--five-rounds .inbetween-five-rounds-compose label { display: flex; width: 100%; flex-direction: column; gap: 8px; }
body.inbetween-account-r3--five-rounds .inbetween-five-rounds-compose textarea { width: 100% !important; height: 120px !important; min-height: 120px !important; }
body.inbetween-account-r3--five-rounds .inbetween-five-rounds-submit { display: flex; width: 100%; align-items: center; gap: 12px; }
body.inbetween-account-r3--five-rounds .inbetween-five-rounds-submit .button { width: 230px !important; min-height: 48px; }
body.inbetween-account-r3--five-rounds .inbetween-waiting-panel { display: flex; width: 100%; min-height: 188px; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--inbetween-account-border); border-radius: 16px; background: var(--inbetween-account-soft); }
body.inbetween-account-r3--five-rounds .inbetween-waiting-panel :is(strong,p) { margin: 0 !important; }
body.inbetween-account-r3--five-rounds .inbetween-five-rounds-status-line { margin: 0 !important; color: var(--inbetween-account-muted); font: 400 14px/22px "Noto Sans TC",sans-serif; }
body.inbetween-account-r3--five-rounds .inbetween-five-rounds-onboarding {
    display: grid;
    width: 100%;
    gap: 8px;
    margin: 0 !important;
    padding: 0 0 0 24px !important;
    list-style: decimal;
}
body.inbetween-account-r3--five-rounds .inbetween-five-rounds-onboarding li {
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--inbetween-account-border);
    border-radius: 10px;
    background: var(--inbetween-account-subtle);
}
body.inbetween-account-r3--five-rounds .inbetween-five-rounds-history { width: 100% !important; margin: 0 !important; padding: 12px !important; }
body.inbetween-account-r3--five-rounds .inbetween-five-rounds-privacy { margin: 24px 0 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important; color: var(--inbetween-account-tertiary); }

@media (max-width: 1024px) {
    .inbetween-heading-copy--desktop { display: none !important; }
    .inbetween-heading-copy--mobile { display: inline !important; }
    body.inbetween-account-r3 .inbetween-account-shell-r3 { gap: 12px; }
    body.inbetween-account-r3 .inbetween-r3-account-heading__title-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
    body.inbetween-account-r3 .inbetween-account-header-status {
        min-height: 32px;
        padding: 5px 10px;
        font-size: 12px;
        line-height: 18px;
    }
    body.inbetween-account-r3 .inbetween-dashboard-card-status__desktop { display: none; }
    body.inbetween-account-r3 .inbetween-dashboard-card-status__mobile { display: inline; }
    body.inbetween-account-r3 .inbetween-account-footnote { margin-top: 12px !important; }
    body.inbetween-account-r3--dashboard .inbetween-dashboard-card > .inbetween-status-badge {
        width: min(178px, 100%);
        max-width: 100%;
        box-sizing: border-box;
    }
    body.inbetween-account-r3--dashboard .inbetween-dashboard-card-description { margin: 0 !important; }

    body.inbetween-account-r3--story .inbetween-story-layout,
    body.inbetween-account-r3--payment-report .inbetween-payment-layout,
    body.inbetween-account-r3--five-rounds .inbetween-five-rounds-layout {
        display: block !important;
        width: 100% !important;
        height: auto;
    }
    body.inbetween-account-r3--story .inbetween-story-card {
        width: 100% !important;
        height: auto !important;
        min-height: 474px !important;
        gap: 8px;
        padding: 12px !important;
    }
    body.inbetween-account-r3--story .inbetween-story-aside {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        margin-top: 12px !important;
        padding: 8px !important;
        background: var(--inbetween-account-subtle) !important;
    }
    body.inbetween-account-r3--story .inbetween-story-aside > h2 { font: 500 14px/22px "Noto Sans TC",sans-serif !important; }
    body.inbetween-account-r3--story .inbetween-story-field--story-text,
    body.inbetween-account-r3--story #inbetween-story-text,
    body.inbetween-account-r3--story .inbetween-story-autosave-status,
    body.inbetween-account-r3--story .inbetween-story-upload,
    body.inbetween-account-r3--story .inbetween-story-images,
    body.inbetween-account-r3--story .inbetween-story-actions { width: 100% !important; max-width: 100% !important; }
    body.inbetween-account-r3--story .inbetween-story-actions { grid-template-columns: 1fr 1fr !important; }
    body.inbetween-account-r3--story .inbetween-story-actions .button { width: 100% !important; min-height: 44px; }
    body.inbetween-account-r3--story .inbetween-story-images { min-height: 90px !important; }
    body.inbetween-account-r3--story .inbetween-story-privacy { display: flex !important; }
    body.inbetween-account-r3--story .inbetween-story-image-upload { grid-template-columns: minmax(0, 1fr) !important; }
    body.inbetween-account-r3--story .inbetween-story-image-upload button { width: 100% !important; }

    body.inbetween-account-r3--payment-report .inbetween-payment-editor { width: 100% !important; height: auto; padding: 12px !important; }
    body.inbetween-account-r3--payment-report .inbetween-payment-editor { min-height: 402px; }
    body.inbetween-account-r3--payment-report .inbetween-payment form .button { width: 100% !important; min-height: 48px; }

    body.inbetween-account-r3--five-rounds .inbetween-five-rounds-mobile-heading { display: none; }
    body.inbetween-account-r3--five-rounds .inbetween-five-rounds-mobile-summary { display: flex; width: 100%; flex-direction: column; }
    body.inbetween-account-r3--five-rounds .inbetween-five-rounds-mobile-heading :is(h2,p) { margin: 0 !important; }
    body.inbetween-account-r3--five-rounds .inbetween-five-rounds-mobile-heading h2 { font: 600 28px/38px "Noto Serif TC",serif !important; }
    body.inbetween-account-r3--five-rounds .inbetween-five-rounds-mobile-heading p { color: var(--inbetween-account-muted); font: 400 14px/22px "Noto Sans TC",sans-serif; }
    body.inbetween-account-r3--five-rounds .inbetween-five-rounds-mobile-summary { min-height: 160px; gap: 8px; margin-bottom: 12px; padding: 12px; border: 1px solid var(--inbetween-account-border); border-radius: 16px; background: var(--inbetween-account-surface); }
    body.inbetween-account-r3--five-rounds .inbetween-five-rounds-mobile-summary :is(strong,p) { margin: 0 !important; }
    body.inbetween-account-r3--five-rounds .inbetween-five-rounds-mobile-summary p { color: var(--inbetween-account-muted); font: 400 12px/18px "Noto Sans TC",sans-serif; }
    body.inbetween-account-r3--five-rounds .inbetween-five-rounds-rail {
        display: block;
        width: 100%;
        min-height: 0;
        margin-bottom: 12px;
        padding: 12px;
    }
    body.inbetween-account-r3--five-rounds .inbetween-five-rounds-main { width: 100%; min-height: 0; padding: 12px; }
    body.inbetween-account-r3--five-rounds .inbetween-five-rounds-current-heading { flex-wrap: wrap; }
    body.inbetween-account-r3--five-rounds .inbetween-five-rounds-current-heading .inbetween-five-rounds-badge { width: auto; }
    body.inbetween-account-r3--five-rounds .inbetween-five-rounds-question-label { margin-top: 0 !important; }
    body.inbetween-account-r3--five-rounds .inbetween-five-rounds-compose textarea { height: 120px !important; }
    body.inbetween-account-r3--five-rounds .inbetween-five-rounds-submit { flex-direction: column; align-items: stretch; }
    body.inbetween-account-r3--five-rounds .inbetween-five-rounds-submit .button { width: 100% !important; }
    body.inbetween-account-r3--five-rounds .inbetween-five-rounds-status-line { font-size: 14px; line-height: 22px; }
    body.inbetween-account-r3--five-rounds .inbetween-five-rounds-history { display: block; }
    body.inbetween-account-r3--five-rounds .inbetween-five-rounds-privacy { margin-top: 12px !important; }
}

@media (max-width: 390px) {
    body.inbetween-account-r3 .inb-account-shell,
    body.inbetween-account-r3:not(.logged-in) .inb-account-shell { padding: 24px !important; }
    body.inbetween-account-r3 .inbetween-account-shell-r3,
    body.inbetween-account-r3 .inbetween-r3-account-heading,
    body.inbetween-account-r3 .inbetween-account-layout,
    body.inbetween-account-r3 .inbetween-account-main,
    body.inbetween-account-r3 .woocommerce-MyAccount-content,
    body.inbetween-account-r3 :is(.inbetween-member,.inbetween-story,.inbetween-experience,.inbetween-five-rounds) {
        width: min(342px, calc(100vw - 48px)) !important;
        max-width: min(342px, calc(100vw - 48px)) !important;
    }
}
