:root {
    --teal: #369aaa;
    --teal-dark: #369aaa;
    --ink: #263b3e;
    --muted: #657477;
    --dim: #7f9194;
    --line: #e2e9e8;
    --mint: #edf7f5;
    --paper: #faf8f1;
    --danger: #ac3d3d;
    --bg-page: #f4f5f3;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --bg-input: #ffffff;
    --bg-input-disabled: #f5f7f6;
    --border-input: #cbd6d5;
    --border-card: var(--line);
    --shadow-dropdown: 0 6px 18px #16373a13;
    --shadow-floating: 0 3px 20px #183b3c14;
    --table-header-bg: #f5f8f7;
    --empty-state-bg: #f9fcfb;
    --empty-state-border: #bdd4d1;
    --panel-bg: rgba(54, 154, 170, 0.03);
    --nav-bg: var(--teal);
    --footer-bg: var(--teal);
    --link: var(--teal-dark);
    --link-hover: #165a64;
    --btn-primary-bg: var(--teal-dark);
    --btn-primary-hover: #19616c;
    --btn-primary-text: #ffffff;
    --status-draft-bg: #f0f1ef;
    --status-draft-color: var(--muted);
    --status-danger-bg: #fceeee;
    --status-danger-color: var(--danger);
    --status-warn-bg: #fcf3dc;
    --status-warn-color: #87631b;
    --status-purple-bg: #f0eafa;
    --status-purple-color: #75538e;
    --status-success-bg: #e5f4e6;
    --status-success-color: #377a40;
    --status-pay-bg: #fff1d6;
    --status-pay-color: #805515;
    --msg-error-bg: #fcf0f0;
    --msg-error-color: var(--danger);
    --msg-success-bg: #edf7ef;
    --msg-success-color: #326343;
    --usage-warn-bg: #fff9e9;
    --usage-warn-border: #dfc789;
    --usage-warn-color: #785515;
    --tutorial-banner-bg: #fff8e8;
    --tutorial-banner-border: #87631b;
    --flow-card-start: #fbfdfd;
    --flow-card-shadow: #edf3f1;
    --flow-card-border: #cfe4df;
    --phone-frame-border: #263b3e;
    --phone-frame-bg: #263b3e;
    --phone-frame-shadow: #183b3c1c;
    --phone-speaker: #738184;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --teal: #369aaa;
        --teal-dark: #369aaa;
        --ink: #e2ecee;
        --muted: #8fa5a8;
        --dim: #70868a;
        --line: #293a3e;
        --mint: #1a2c30;
        --paper: #1d2b2f;
        --danger: #e06a66;
        --bg-page: #101719;
        --bg-surface: #162124;
        --bg-card: #1c2a2e;
        --bg-input: #152225;
        --bg-input-disabled: #111a1c;
        --border-input: #2e4348;
        --border-card: var(--line);
        --shadow-dropdown: 0 8px 24px rgba(0, 0, 0, 0.45);
        --shadow-floating: 0 4px 20px rgba(0, 0, 0, 0.5);
        --table-header-bg: #19272b;
        --empty-state-bg: #152225;
        --empty-state-border: #2c4146;
        --panel-bg: rgba(62, 168, 184, 0.06);
        --nav-bg: #369aaa;
        --footer-bg: #369aaa;
        --link: #4ec4d6;
        --link-hover: #7be1ef;
        --btn-primary-bg: #277784;
        --btn-primary-hover: #318a99;
        --btn-primary-text: #ffffff;
        --status-draft-bg: #25363a;
        --status-draft-color: var(--muted);
        --status-danger-bg: #3c1e20;
        --status-danger-color: #f28b82;
        --status-warn-bg: #3b2d13;
        --status-warn-color: #fdd663;
        --status-purple-bg: #302142;
        --status-purple-color: #d7aefb;
        --status-success-bg: #1c3623;
        --status-success-color: #81c995;
        --status-pay-bg: #3b2d13;
        --status-pay-color: #fdd663;
        --msg-error-bg: #3a1c1c;
        --msg-error-color: #ffa4a4;
        --msg-success-bg: #1c3623;
        --msg-success-color: #87e8a5;
        --usage-warn-bg: #2f2512;
        --usage-warn-border: #7d6529;
        --usage-warn-color: #fdd663;
        --tutorial-banner-bg: #2a2211;
        --tutorial-banner-border: #7d6529;
        --flow-card-start: #1c2a2e;
        --flow-card-shadow: #172124;
        --flow-card-border: #293a3e;
        --phone-frame-border: #31464c;
        --phone-frame-bg: #182528;
        --phone-frame-shadow: rgba(0, 0, 0, 0.55);
        --phone-speaker: #4e6b72;
        color-scheme: dark;
    }
}

:root[data-theme="dark"] {
    --teal: #369aaa;
    --teal-dark: #369aaa;
    --ink: #e2ecee;
    --muted: #8fa5a8;
    --dim: #70868a;
    --line: #293a3e;
    --mint: #1a2c30;
    --paper: #1d2b2f;
    --danger: #e06a66;
    --bg-page: #101719;
    --bg-surface: #162124;
    --bg-card: #1c2a2e;
    --bg-input: #152225;
    --bg-input-disabled: #111a1c;
    --border-input: #2e4348;
    --border-card: var(--line);
    --shadow-dropdown: 0 8px 24px rgba(0, 0, 0, 0.45);
    --shadow-floating: 0 4px 20px rgba(0, 0, 0, 0.5);
    --table-header-bg: #19272b;
    --empty-state-bg: #152225;
    --empty-state-border: #2c4146;
    --panel-bg: rgba(62, 168, 184, 0.06);
    --nav-bg: #369aaa;
    --footer-bg: #369aaa;
    --link: #4ec4d6;
    --link-hover: #7be1ef;
    --btn-primary-bg: #277784;
    --btn-primary-hover: #318a99;
    --btn-primary-text: #ffffff;
    --status-draft-bg: #25363a;
    --status-draft-color: var(--muted);
    --status-danger-bg: #3c1e20;
    --status-danger-color: #f28b82;
    --status-warn-bg: #3b2d13;
    --status-warn-color: #fdd663;
    --status-purple-bg: #302142;
    --status-purple-color: #d7aefb;
    --status-success-bg: #1c3623;
    --status-success-color: #81c995;
    --status-pay-bg: #3b2d13;
    --status-pay-color: #fdd663;
    --msg-error-bg: #3a1c1c;
    --msg-error-color: #ffa4a4;
    --msg-success-bg: #1c3623;
    --msg-success-color: #87e8a5;
    --usage-warn-bg: #2f2512;
    --usage-warn-border: #7d6529;
    --usage-warn-color: #fdd663;
    --tutorial-banner-bg: #2a2211;
    --tutorial-banner-border: #7d6529;
    --flow-card-start: #1c2a2e;
    --flow-card-shadow: #0b1113;
    --flow-card-border: #293a3e;
    --phone-frame-border: #31464c;
    --phone-frame-bg: #182528;
    --phone-frame-shadow: rgba(0, 0, 0, 0.55);
    --phone-speaker: #4e6b72;
    color-scheme: dark;
}

.subscription-usage { padding: 18px 20px; margin-bottom: 26px; background: var(--paper); border: 1px solid var(--line); border-radius: 7px; }
.usage-heading, .usage-count { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.usage-heading { margin-bottom: 14px; }
.usage-heading .eyebrow { display: block; margin-bottom: 2px; }
.usage-heading a { font-size: 12px; white-space: nowrap; }
.usage-count { font-size: 12px; }
.usage-count strong { font-size: 17px; }
.subscription-usage progress { display: block; width: 100%; height: 7px; border: 0; border-radius: 9px; overflow: hidden; margin-top: 10px; accent-color: var(--teal); background: var(--mint); }
.subscription-usage progress::-webkit-progress-bar { background: var(--mint); }
.subscription-usage progress::-webkit-progress-value { background: var(--teal); }
.subscription-usage progress::-moz-progress-bar { background: var(--teal); }
.subscription-usage .usage-note { margin: 9px 0 0; }
.usage-reached { border-color: var(--usage-warn-border); background: var(--usage-warn-bg); }
.usage-warning { color: var(--usage-warn-color); font-size: 12px; margin: 10px 0 0; }
.subscription-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-bottom: 22px; }
.subscription-card { flex: 0 1 calc((100% - 40px) / 3); width: calc((100% - 40px) / 3); max-width: calc((100% - 40px) / 3); min-width: 0; display: flex; flex-direction: column; padding: 24px; overflow-wrap: anywhere; }
.subscription-card .badge { align-self: flex-start; margin-bottom: 12px; }
.subscription-card form { margin-top: auto; }
.subscription-card .button { margin-bottom: 0; }
.subscription-card.current-plan { border-color: var(--teal); }
.plan-price { font-size: 27px; font-weight: 700; margin: 14px 0; }
.plan-capacity { border-top: 1px solid var(--line); padding-top: 18px; }
.panel.subscription-pending { padding: 24px; margin-bottom: 28px; background: var(--paper); }
.subscription-pending h2 { margin-top: 14px; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg-page); color: var(--ink); font: 14px/1.65 'Open Sans', sans-serif; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--link-hover); }
button, input, textarea, select { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
:focus-visible { outline: 3px solid #e5ad4e; outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -.04em; }
h1 { font-size: 36px; margin-bottom: 16px; font-weight: 800; }
h2 { font-size: 23px; margin-bottom: 12px; }
h3 { font-size: 16px; margin-bottom: 8px; }
p { margin-bottom: 14px; }
img { max-width: 100%; display: block; }
.main-container { max-width: 1030px; min-height: 100vh; margin: 0 auto; background: var(--bg-surface); display: flex; flex-direction: column; }
.main-content { padding: 32px 34px 60px; flex: 1; min-width: 0; }
.nav-bar { min-height: 64px; padding: 12px 26px; background: var(--nav-bg); color: white; display: flex; align-items: center; gap: 22px; }
.web-title { color: white !important; text-decoration: none; font-weight: 800; font-size: 24px; letter-spacing: -1px; display: flex; align-items: center; gap: 9px; }
.brand-mark { width: 30px; height: 30px; object-fit: contain; }
.brand-dot { font-size: 6px; color: #f0d3a5; margin-left: -7px; align-self: flex-end; margin-bottom: 8px; }
.nav-bar nav { display: flex; gap: 3px; }
.nav-bar-menu { color: white !important; text-decoration: none; padding: 7px 9px; border-radius: 5px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.nav-bar-menu:hover, .nav-bar-menu.active { background: #ffffff22; }
.user-menu { margin-left: auto; font-size: 12px; display: flex; align-items: center; gap: 8px; }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 1px solid #ffffff55; border-radius: 5px; background: transparent; color: white; cursor: pointer; font-size: 14px; line-height: 1; transition: background-color .15s, border-color .15s; }
.theme-toggle:hover { background: #ffffff22; border-color: #ffffffaa; }
.theme-toggle-light { display: none; }
.theme-toggle-dark { display: inline-block; }
:root[data-theme="dark"] .theme-toggle-light { display: inline-block; }
:root[data-theme="dark"] .theme-toggle-dark { display: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle-light { display: inline-block; }
    :root:not([data-theme="light"]) .theme-toggle-dark { display: none; }
}
.sign-in-button { color: white !important; border: 1px solid #ffffff9c; border-radius: 5px; padding: 6px 10px; text-decoration: none; white-space: nowrap; }
.dropdown { position: relative; }
.dropdown summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; max-width: 165px; overflow-wrap: anywhere; }
.dropdown summary::-webkit-details-marker { display: none; }
.dropdown summary::after { content: ''; flex-shrink: 0; width: 0; height: 0; border-top: 4px solid transparent; border-bottom: 4px solid transparent; border-left: 6px solid currentColor; transform: rotate(180deg); }
.dropdown[open] summary::after { transform: rotate(90deg); }
.dropdown-content { position: absolute; top: 36px; right: 0; z-index: 10; min-width: 155px; padding: 6px; border: 1px solid var(--line); background: var(--bg-card); box-shadow: var(--shadow-dropdown); border-radius: 6px; }
.dropdown-content a, .dropdown-content button { display: block; width: 100%; padding: 9px 12px; border: 0; background: var(--bg-card); color: var(--ink); text-align: left; text-decoration: none; }
.dropdown-content a:hover, .dropdown-content button:hover { background: var(--mint); }
.footer-bar { padding: 28px 34px; background: var(--footer-bg); color: white; display: grid; grid-template-columns: minmax(170px, .7fr) minmax(0, 1.3fr); gap: 28px; align-items: center; }
.footer-about p { margin: 5px 0 0; color: #ffffffd6; font-size: 11px; }
.footer-brand { color: white !important; font-size: 21px; font-weight: 800; text-decoration: none; }
.footer-parent-brand { color: white; } .footer-parent-brand:hover { color: white; }
.footer-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.footer-link-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-link { min-width: 0; display: flex; align-items: center; gap: 8px; color: white; font-size: 11px; font-weight: 600; text-decoration: none; }
.footer-link:hover { color: white; text-decoration: underline; }
.footer-link img, .footer-link .whatsapp-icon { width: 17px; height: 17px; flex: 0 0 17px; }
.eyebrow { color: var(--link); font-size: 10px; font-weight: 700; letter-spacing: 1.8px; margin-bottom: 10px; text-transform: uppercase; }
.jastip-explainer { padding: 36px 10px 44px; border-bottom: 1px solid var(--line); }
.jastip-definition { border-left: 4px solid var(--teal); padding-left: 20px; }
.jastip-definition h2 { font-size: 36px; margin-bottom: 8px; }
.jastip-definition h2 dfn { color: var(--link); font-style: normal; }
.jastip-definition h2 span { color: var(--muted); font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.jastip-definition p { margin-bottom: 0; color: var(--muted); font-size: 16px; }
.hero { display: grid; grid-template-columns: 1.45fr 1fr; gap: 40px; align-items: center; padding: 40px 10px 62px; border-bottom: 1px solid var(--line); margin-bottom: 38px; }
.hero h1 { font-size: 45px; line-height: 1.2; }
.hero h1 span { color: var(--link); }
.hero-copy { color: var(--muted); margin: 22px 0; }
.actions { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.hero .actions { gap: 14px; }
.hero .text-link { font-size: 11px; }
.jastip-note { border: 1px solid var(--line); background: var(--paper); padding: 25px 26px 19px; transform: rotate(3deg); box-shadow: 7px 8px 0 var(--mint); }
.note-stamp { font-size: 9px; letter-spacing: 2px; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 12px; display: block; }
.jastip-note h2 { font-size: 37px; line-height: 1.16; padding: 18px 0 5px; font-weight: 800; }
.jastip-note h2 span { color: var(--link); }
.note-line { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); color: var(--link); font-size: 12px; }
.note-line span { color: var(--ink); flex: 1; }
.note-footer { display: block; font-size: 8px; color: var(--muted); margin-top: 14px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 5px; border: 1px solid var(--btn-primary-bg); border-radius: 5px; padding: 11px 17px; background: var(--btn-primary-bg); color: var(--btn-primary-text) !important; text-decoration: none; font-size: 12px; font-weight: 600; line-height: 1.5; }
.button:hover { background: var(--btn-primary-hover); }
.button.secondary { background: var(--bg-card); color: var(--link) !important; border-color: var(--line); }
.button.secondary:hover { background: var(--mint); }
.button.small { padding: 7px 12px; font-size: 11px; }
.button.full { width: 100%; margin: 14px 0; }
.text-link { background: none; border: 0; padding: 0; color: var(--link); text-decoration: underline; text-underline-offset: 3px; font-size: 12px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 26px 0 18px; }
.section-heading h1, .section-heading h2, .section-heading p:last-child { margin-bottom: 0; }
.section-heading h1 + p { margin-top: 12px; }
.page-heading { margin: 12px 0 30px; }
.page-heading > p:last-child, .page-heading > div > p:last-child { color: var(--muted); }
.heading-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; margin-left: auto; }
.hint { color: var(--muted); font-size: 11px; line-height: 1.6; }
.jastip-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 20px; margin-bottom: 20px;}
.jastip-card, .product-card { border: 1px solid var(--border-card); border-radius: 7px; overflow: hidden; background: var(--bg-card); }
.card-image { display: block; position: relative; height: 168px; background: var(--mint); text-decoration: none; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-image .badge { position: absolute; top: 12px; left: 12px; background: var(--bg-card); }
.card-body { padding: 18px; }
.card-body h3 a { color: var(--ink); text-decoration: none; }
.card-body h3 a:hover { color: var(--link); }
.card-body .eyebrow { font-size: 8px; }
.card-bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.card-bottom a { font-size: 18px; text-decoration: none; }
.badge { display: inline-block; padding: 4px 9px; background: var(--mint); color: var(--link); border-radius: 13px; font-size: 9px; font-weight: 700; white-space: nowrap; line-height: 1.7; }
.badge.muted, .status-DRAFT, .status-ARCHIVED { background: var(--status-draft-bg); color: var(--status-draft-color); }
.status-CANCELED, .status-CANCELLED, .status-NOT_AVAILABLE { background: var(--status-danger-bg); color: var(--status-danger-color); }
.status-REQUESTED { background: var(--status-warn-bg); color: var(--status-warn-color); }
.status-PACKING { background: var(--status-purple-bg); color: var(--status-purple-color); }
.status-CONFIRMED, .status-COMPLETED { background: var(--status-success-bg); color: var(--status-success-color); }
.image-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; font-style: italic; background: var(--mint); }
.empty-state { text-align: center; border: 1px dashed var(--empty-state-border); border-radius: 7px; padding: 55px 20px; margin: 20px 0; background: var(--empty-state-bg); }
.empty-state p { color: var(--muted); max-width: 540px; margin: 12px auto 22px; }
.empty-state .actions { justify-content: center; }
.empty-state.compact { padding: 25px 15px; }
.panel { border: 1px solid var(--line); border-radius: 7px; padding: 28px; background: var(--panel-bg); }
.form-panel { /* max-width: 680px; */ }
.form-block label { display: block; margin: 19px 0 7px; font-size: 12px; font-weight: 600; }
.form-block label:first-child { margin-top: 0; }
input:not([type=hidden]), select, textarea { max-width: 100%; width: 100%; border: 1px solid var(--border-input); border-radius: 4px; padding: 10px 11px; background: var(--bg-input); color: var(--ink); }
input[readonly], input:disabled, select:disabled { background: var(--bg-input-disabled); color: var(--muted); }
input[type=file] { font-size: 11px; padding: 9px; }
input[type=file]::file-selector-button { border: 0; background: var(--mint); padding: 5px 8px; color: var(--link); border-radius: 3px; margin-right: 10px; cursor: pointer; }
textarea { resize: vertical; min-height: 80px; }
.form-block .hint { margin: 6px 0 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-submit { display: flex; gap: 20px; align-items: center; border-top: 1px solid var(--line); padding-top: 23px; margin-top: 25px; }
.button-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.required { color: var(--link); }
.input-prefix { display: flex; align-items: center; }
.input-prefix span { padding: 10px; border: 1px solid var(--border-input); border-right: 0; background: var(--bg-input-disabled); border-radius: 4px 0 0 4px; color: var(--muted); }
.input-prefix input { border-radius: 0 4px 4px 0; }
.marketplace-search { position: relative; margin-bottom: 24px; }
.marketplace-search input { min-height: 44px; padding-right: 52px; }
.marketplace-search button { position: absolute; top: 1px; right: 1px; bottom: 1px; width: 44px; border: 0; border-radius: 0 4px 4px 0; background: transparent; cursor: pointer; color: var(--ink); }
.marketplace-search button:hover { background: var(--mint); }
.notice, .message { border-left: 3px solid var(--teal); background: var(--mint); padding: 13px 16px; margin: 16px 0; font-size: 12px; color: var(--ink); }
.message.error { border-color: var(--danger); background: var(--msg-error-bg); color: var(--msg-error-color); }
.message.success { border-color: #55946c; background: var(--msg-success-bg); color: var(--msg-success-color); }
.upload-field { display: flex; align-items: center; gap: 20px; }
.upload-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.avatar-preview { width: 80px; height: 80px; flex-shrink: 0; border-radius: 50%; background: var(--mint); display: grid; place-items: center; overflow: hidden; font-size: 35px; color: var(--link); }
.avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.avatar-preview img:not([hidden]) + span { display: none; }
.cover-preview, .proof-preview { margin: 12px 0; max-height: 230px; border-radius: 5px; object-fit: cover; }
.proof-preview { object-fit: contain; }
.image-editor { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 15px; }
.image-chip { width: 105px; height: 105px; position: relative; }
.image-chip img { width: 100%; height: 100%; object-fit: cover; border-radius: 5px; }
.image-chip button { position: absolute; right: 4px; top: 4px; border-radius: 50%; background: var(--bg-card); border: 1px solid var(--border-input); color: var(--ink); width: 25px; height: 25px; line-height: 20px; padding: 0; }
.back-link { display: inline-block; text-decoration: none; font-size: 11px; }
.sign-in-panel { max-width: 445px; margin: 48px auto 70px; text-align: center; }
.sign-in-panel h1 { font-size: 30px; }
.sign-in-panel .panel { text-align: left; margin: 26px 0 18px; }
.sign-in-panel .otp-input { font-size: 27px; letter-spacing: 12px; text-align: center; }
.jastip-list-row, .product-manage-row { display: flex; gap: 20px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.jastip-group-section { margin: 30px 0; }
.jastip-group-section > .section-heading { margin: 0; padding-bottom: 4px; border-bottom: 2px solid var(--line); }
.jastip-group-section > .section-heading h2 { font-size: 22px; }
.jastip-group-editor { margin-bottom: 30px; scroll-margin-top: 16px; }
.jastip-group-editor h2 { margin-bottom: 16px; }
.jastip-group-editor-fields { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; }
.jastip-group-list-heading { margin-bottom: 14px; }
.jastip-group-list { display: grid; gap: 12px; margin-bottom: 28px; }
.jastip-group-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; }
.jastip-group-card h2, .jastip-group-card p { margin: 0; }
.jastip-group-actions { display: flex; align-items: center; gap: 14px; }
@media (max-width: 650px) {
    .jastip-group-card { grid-template-columns: 1fr; gap: 12px; }
    .jastip-group-editor-fields { grid-template-columns: 1fr auto; }
    .jastip-group-editor-fields input { grid-column: 1 / -1; }
    .jastip-group-actions { justify-content: flex-end; }
}
.jastip-list-row img { width: 100px; height: 82px; object-fit: cover; border-radius: 5px; }
.jastip-list-row h2 { font-size: 19px; }
.jastip-list-row h2 a { color: var(--ink); text-decoration: none; }
.jastip-list-row p, .product-manage-row p { margin-bottom: 0; }
.jastip-items-status { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.grow { flex: 1; min-width: 0; }
.row-actions { display: flex; flex-direction: column; gap: 8px; font-size: 11px; }
.manage-bar { background: var(--mint); border-radius: 5px; padding: 18px; display: flex; align-items: center; gap: 20px; margin: 25px 0; }
.manage-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.product-manage-row img, .small-placeholder { width: 68px; height: 68px; border-radius: 5px; object-fit: cover; }
.small-placeholder { display: grid; place-items: center; background: var(--mint); color: var(--link); }
.jastip-cover { width: 100%; max-height: 320px; object-fit: cover; border-radius: 7px; margin: 8px 0 28px; }
.jastip-details { max-width: 700px; }
.preserve-lines { white-space: pre-line; overflow-wrap: anywhere; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.product-image { height: 205px; display: block; background: var(--paper); }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.price { font-size: 16px; color: var(--link); display: block; margin: 10px 0; }
.quantity-label { display: block; font-size: 10px; color: var(--muted); margin: 14px 0 7px; }
.quantity-control { display: flex; width: 133px; height: 37px; margin-bottom: 12px; }
.quantity-control button { width: 36px; flex-shrink: 0; background: var(--mint); color: var(--link); border: 1px solid var(--border-input); font-size: 20px; line-height: 1; }
.quantity-control button:first-child { border-radius: 4px 0 0 4px; }
.quantity-control button:last-child { border-radius: 0 4px 4px 0; }
.quantity-control input { border-radius: 0; border-left: 0; border-right: 0; text-align: center; width: 61px; padding: 3px; appearance: textfield; background: var(--bg-input); border-color: var(--border-input); color: var(--ink); }
.quantity-control input::-webkit-inner-spin-button { appearance: none; }
.order-bar { position: sticky; bottom: 12px; background: var(--bg-card); border: 1px solid var(--line); box-shadow: var(--shadow-floating); padding: 18px; border-radius: 7px; display: flex; justify-content: space-between; gap: 25px; align-items: center; margin-top: 25px; z-index: 2; }
.order-bar p { margin: 4px 0 0; }
.order-bar .button { flex-shrink: 0; }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 38px; margin: 18px 0 40px; }
.product-detail h1 { font-size: 32px; }
.product-gallery { display: flex; flex-wrap: wrap; gap: 10px; align-content: start; }
.product-image-button { appearance: none; display: block; width: calc(50% - 5px); aspect-ratio: 1; padding: 0; border: 0; border-radius: 7px; overflow: hidden; background: var(--paper); cursor: zoom-in; }
.product-image-button:first-child { width: 100%; }
.product-image-button img { width: 100%; height: 100%; object-fit: contain; }
.product-gallery .image-placeholder { min-height: 330px; }
.product-image-hint { margin: 8px 0 0; }
.image-viewer { width: min(96vw, 1200px); height: 94vh; max-width: none; max-height: none; padding: 0; border: 0; border-radius: 8px; background: #172326; color: white; overflow: hidden; }
.image-viewer::backdrop { background: #10191cdb; }
.image-viewer[open] { display: flex; flex-direction: column; }
.image-viewer-bar { min-height: 54px; padding: 8px 10px 8px 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; background: #10191c; }
.image-viewer-actions { display: flex; align-items: center; gap: 7px; }
.image-viewer-actions button { min-width: 36px; min-height: 36px; padding: 5px 9px; border: 1px solid #ffffff55; border-radius: 5px; background: transparent; color: white; }
.image-viewer-actions [data-image-zoom-reset] { min-width: 58px; font-size: 11px; }
.image-viewer-actions [data-image-close] { border: 0; font-size: 24px; line-height: 1; }
.image-viewer-actions .button { min-height: 36px; margin: 0; border-color: #ffffff88; background: white; }
.image-viewer-canvas { flex: 1; min-height: 0; padding: 16px; display: flex; overflow: auto; overscroll-behavior: contain; }
.image-viewer-image-wrap { flex: 0 0 auto; margin: auto; }
.image-viewer-image-wrap img { width: 100%; height: 100%; max-width: none; object-fit: contain; }
.detail-price { font-size: 24px; font-weight: 700; color: var(--link); }
.share-actions { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 20px; }
.order-panel { margin-bottom: 25px; }
.order-panel .section-heading { margin-top: 0; }
.buyer-item { display: flex; align-items: center; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.buyer-item p { margin: 5px 0; }
.danger { color: var(--danger); }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr 1.5fr; margin: 25px 0 12px; border: 1px solid var(--line); border-radius: 6px; }
.stats-grid > div { padding: 23px; border-right: 1px solid var(--line); }
.stats-grid > div:last-child { border: 0; }
.stats-grid span { display: block; font-size: 9px; }
.stats-grid strong { display: block; font-size: 33px; font-weight: 700; }
.stats-grid strong.money-total { font-size: 25px; line-height: 2; }
.stats-grid.order-status-summary { grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr)); margin: 20px 0 28px; overflow: hidden; }
.order-status-summary > .order-status-card { appearance: none; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); padding: 16px 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; text-align: left; font: inherit; color: inherit; cursor: pointer; transition: background-color .15s, box-shadow .15s; }
.order-status-summary > .order-status-card:hover { }
.order-status-summary > .order-status-card.active { background: var(--bg-card); box-shadow: inset 0 -3px 0 var(--teal); }
.order-status-summary > .order-status-card strong { font-size: 26px; font-weight: 700; line-height: 1.1; }
.order-status-summary > .order-status-card .badge { margin-bottom: 2px; }
.summary-section { margin: 38px 0; }
.summary-section .table-scroll { position: relative; }
.summary-collapse summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--bg-card); border: 1px solid var(--line); border-radius: 7px; user-select: none; }
.summary-collapse summary::-webkit-details-marker { display: none; }
.summary-collapse summary::before { content: ''; display: inline-block; width: 18px; height: 18px; flex-shrink: 0; background: var(--link);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7 4l6 6-6 6' fill='none' stroke='currentColor' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7 4l6 6-6 6' fill='none' stroke='currentColor' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; transition: transform .2s ease; }
.summary-collapse[open] summary::before { transform: rotate(90deg); }
.summary-collapse[open] summary { border-radius: 7px 7px 0 0; margin-bottom: 0; border-bottom-color: transparent; }
.summary-collapse summary:hover { background: var(--mint); }
.summary-collapse summary h2 { margin: 0; font-size: 14px; }
.summary-collapse[open] > .table-scroll { border-top-left-radius: 0; border-top-right-radius: 0; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 5px; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
thead { background: var(--table-header-bg); color: var(--muted); font-size: 10px; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
.number { text-align: right; white-space: nowrap; }
.strong { font-weight: 700; }
.recap-label { display: none; }
.filter-label { font-size: 11px; display: flex; gap: 10px; align-items: center; }
.filter-label strong { font-weight: 700; }
.filter-label select { width: auto; padding: 7px; font-size: 11px; }

.summary-name-line { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.summary-name-line h3, .summary-name-line h4 { margin: 0; }
.summary-price-line { margin: 4px 0; font-size: 11px; }
.summary-status-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.summary-status-line .hint { margin: 0; }
.status-form select, .status-form input { padding: 7px; font-size: 11px; margin-bottom: 7px; }
.status-form select { background-color: var(--mint); }
.status-form select:disabled { background-color: var(--bg-input-disabled); }
.status-form .button { width: 100%; }
.pagination { display: flex; justify-content: space-between; margin: 28px 0; font-size: 12px; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); background: white; }
.skip-link:focus { width: auto; height: auto; padding: 10px; clip-path: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.error-page { margin: 60px 0; }
@media (max-width: 770px) {
    .main-content { padding: 24px 20px 40px; }
    .nav-bar { gap: 10px; padding: 12px 18px; flex-wrap: wrap; }
    .nav-bar nav { order: 3; flex-basis: 100%; border-top: 1px solid #ffffff33; padding-top: 7px; }
    .jastip-explainer { padding: 30px 0 36px; }
    .hero { gap: 25px; padding: 25px 0 40px; }
    .hero h1 { font-size: 35px; }
    .jastip-note { padding: 18px; }
    .jastip-note h2 { font-size: 29px; }
    .hero .actions { align-items: start; flex-direction: column; }
    .jastip-grid, .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .subscription-card { flex-basis: calc((100% - 20px) / 2); width: calc((100% - 20px) / 2); max-width: calc((100% - 20px) / 2); }
    .stats-grid strong { font-size: 26px; }
    .stats-grid strong.money-total { font-size: 18px; }
    .stats-grid > div { padding: 15px; }
    .product-detail { gap: 22px; }
    .footer-bar { padding: 25px 20px; grid-template-columns: 1fr; gap: 20px; }
    .marketplace-grid { grid-template-columns: 1fr; gap: 14px; }
    .marketplace-destinations { flex-direction: column; align-items: flex-start; }
    .marketplace-cta-banner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
    h1 { font-size: 29px; }
    h2 { font-size: 21px; }
    .jastip-definition h2 { font-size: 30px; }
    .jastip-definition h2 span { font-size: 19px; }
    .hero { grid-template-columns: 1fr; }
    .hero h1 { font-size: 39px; }
    .jastip-note { margin: 10px 10px 5px; transform: rotate(1deg); }
    .jastip-note h2 { font-size: 28px; }
    .jastip-note h2 br { display: none; }
    .jastip-grid, .product-grid { grid-template-columns: 1fr; }
    .subscription-card { flex-basis: 100%; width: 100%; max-width: 100%; }
    .footer-links { grid-template-columns: 1fr; }
    .card-image { height: 200px; }
    .product-image { height: 245px; }
    .section-heading { flex-wrap: wrap; gap: 12px; }
    .form-grid, .product-detail { grid-template-columns: 1fr; gap: 0; }
    .product-detail > div:last-child { padding-top: 25px; }
    .panel { padding: 20px; }
    .sign-in-panel { margin: 20px 0; }
    .sign-in-panel h1 { font-size: 27px; }
    .jastip-list-row { flex-wrap: wrap; gap: 13px; }
    .jastip-list-row img { width: 73px; height: 70px; }
    .jastip-list-row .row-actions { flex-basis: 100%; flex-direction: row; justify-content: flex-end; }
    .product-manage-row { gap: 10px; flex-wrap: wrap; }
    .manage-bar { flex-wrap: wrap; gap: 13px; }
    .manage-actions { display: grid; width: 100%; margin-left: 0; }
    .manage-actions .button { width: 100%; }
    .order-bar { position: static; flex-direction: column; align-items: stretch; gap: 12px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid > div:nth-child(2) { border: 0; }
    .stats-grid > div:last-child { grid-column: 1 / -1; border-top: 1px solid #d5e5e1; }
    .stats-grid strong.money-total { font-size: 26px; }
    .stats-grid.order-status-summary { grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr)); }
    .order-status-summary > .order-status-card:nth-child(2) { border-right: 1px solid #d5e5e1; }
    .order-status-summary > .order-status-card:last-child { grid-column: auto; border-top: 0; }
    .upload-field { align-items: start; gap: 12px; }
    .avatar-preview { width: 60px; height: 60px; }
    .marketplace-header h2 { font-size: 26px; }
    .marketplace-card { padding: 18px; }
    .marketplace-cta-banner .button { width: 100%; }
    .image-viewer { width: 100vw; height: 100dvh; border-radius: 0; }
    .image-viewer-bar { padding: 8px; }
    .image-viewer-bar > [data-image-position] { display: none; }
    .image-viewer-actions { width: 100%; justify-content: space-between; gap: 4px; }
}
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
    .button, .jastip-card { transition: background-color .15s, box-shadow .15s; }
    .jastip-card:hover { box-shadow: 0 4px 15px #16373a0e; }
}

.status-PARTIALLY_PAID, .status-PAYMENT_REPORTED, .status-REPORTED { background: var(--status-pay-bg); color: var(--status-pay-color); }
.status-UNPAID, .status-PENDING { background: var(--status-draft-bg); color: var(--status-draft-color); }
.status-ADDRESS_CONFIRMED, .status-INVOICE_READY { background: var(--mint); color: var(--link); }
.status-SHIPPED { background: var(--mint); color: var(--link); }
.summary-delivery-actions { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 6px 0 0; }
.status-PAYMENT_CONFIRMED { background: var(--status-success-bg); color: var(--status-success-color); }
.payment-report-form { width: 280px; max-width: 100%; padding: 15px; background: var(--mint); border-radius: 6px; flex-shrink: 0; }
.payment-check { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; margin: 10px 0; }
.payment-check input[type="checkbox"] { width: auto; flex-shrink: 0; margin: 4px 0 0; }
.payment-hint { font-size: 12px; color: var(--link); margin: 8px 0 0; }
@media (max-width: 650px) {
    .buyer-item { flex-direction: column; align-items: stretch; }
    .payment-report-form { width: 100%; }
    .product-recap thead, .product-recap .recap-total { display: none; }
    .product-recap, .product-recap tbody, .product-recap tr, .product-recap th, .product-recap td { display: block; width: 100%; }
    .product-recap tbody tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
    .product-recap tbody tr:last-child { border-bottom: 0; }
    .product-recap tbody th, .product-recap tbody td { padding: 0; border: 0; line-height: 25px;}
    .product-recap tbody th { margin-bottom: 10px; }
    .product-recap .recap-detail { display: grid; grid-template-columns: 45px minmax(0, 1fr); gap: 8px; align-items: start; margin-top: 8px; text-align: left; white-space: normal; }
    .product-recap .recap-label { display: block; color: var(--muted); font-size: 10px; font-weight: 600; }
    .product-recap .jastip-items-status { margin-top: 0; }
    .product-recap tbody tr { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; }
    .product-recap tbody th { grid-column: 1 / -1; }
}

/* Address book and split deliveries */
.shipment-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin: 24px 0; }
.address-table-wrap { margin: 24px 0; }
.address-table { min-width: 760px; }
.address-table th, .address-table td { vertical-align: top; }
.address-table td { padding: 16px; }
.address-table details { min-width: 340px; }
.address-table details summary { cursor: pointer; font-weight: 700; }
.address-table form { margin-top: 16px; }
.address-card, .shipment-card { min-width: 0; scroll-margin-top: 20px; }
.shipment-card.highlight-target {
    outline: 2px solid var(--teal);
    box-shadow: 0 0 0 4px rgba(54, 154, 170, 0.2);
    transition: outline 0.2s ease, box-shadow 0.2s ease;
}
@media (prefers-reduced-motion: reduce) {
    .shipment-card.highlight-target { transition: none; }
}
.address-text { white-space: pre-line; overflow-wrap: anywhere; }
.address-mobile-label { display: none; }
.shipment-card form { margin-top: 16px; }
.delivery-overview { margin-bottom: 24px; }
.delivery-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line, #deded7); }
.shipment-lines { padding-left: 20px; }
.invoice-panel dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; }
.invoice-panel dd { margin: 0; text-align: right; }
.invoice-panel { margin-top: 24px; }
.invoice-bank-account p + p { margin-top: 10px; }

@media (max-width: 650px) {
    .address-table-wrap { overflow-x: visible; }
    .address-table { min-width: 0; }
    .address-table thead { display: none; }
    .address-table, .address-table tbody, .address-table tr, .address-table td { display: block; width: 100%; }
    .address-table tbody tr { padding: 16px; border-bottom: 1px solid var(--line); }
    .address-table tbody tr:last-child { border-bottom: 0; }
    .address-table td { padding: 0; border: 0; }
    .address-table td + td { margin-top: 14px; }
    .address-table details { min-width: 0; }
    .address-mobile-label { display: block; margin-bottom: 5px; color: var(--muted); font-size: 10px; font-weight: 600; }
}

.payment-history-title { margin-top: 24px; }
.payment-history-entry { padding: 16px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.payment-proof-image { margin: 10px 0; max-height: 200px; max-width: 100%; border-radius: 6px; object-fit: contain; display: block; border: 1px solid var(--line); }

.additional-data { margin-top: 5px; border-block: 1px solid var(--line); padding: 16px 0; }
.additional-data > summary { cursor: pointer; font-weight: 700; }
.finance-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 14px; padding: 18px; }
.finance-filters label { flex: 1 1 220px; font-size: 12px; font-weight: 600; }
.finance-filters select { margin-top: 6px; }
.finance-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.finance-stats > div { min-width: 0; overflow-wrap: anywhere; }
.finance-stats small { color: var(--muted); }
.finance-tools { margin: 28px 0; padding: 0; overflow: hidden; }
.finance-tools > summary { cursor: pointer; padding: 18px 20px; font-weight: 700; list-style-position: inside; }
.finance-tools[open] > summary { border-bottom: 1px solid var(--line); }
.finance-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 0; align-items: start; }
.finance-tool-section { padding: 20px; }
.finance-tool-section + .finance-tool-section { border-left: 1px solid var(--line); }
.finance-table-filter { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
.finance-table-filter label { font-size: 11px; font-weight: 600; }
.finance-table-filter select { width: auto; min-width: 170px; margin-top: 5px; padding: 7px; font-size: 11px; }
.finance-table tfoot { background: var(--mint); }
.finance-table tfoot th, .finance-table tfoot td { border-top: 2px solid var(--line); border-bottom: 0; }
.finance-actions { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.finance-actions form { margin: 0; }
.category-list { margin: 18px 0 0; padding-left: 20px; }
.finance-table { min-width: 720px; }
@media (max-width: 800px) {
    .finance-stats { grid-template-columns: 1fr 1fr; }
    .finance-stats > div:nth-child(even) { border-right: 0; }
    .finance-stats > div:last-child { grid-column: 1 / -1; border-top: 1px solid var(--line); }
    .finance-stats > div:nth-child(3), .finance-stats > div:nth-child(4) { border-top: 1px solid var(--line); }
    .finance-layout { grid-template-columns: 1fr; }
    .finance-tool-section + .finance-tool-section { border-left: 0; border-top: 1px solid var(--line); }
}
.product-list { display: grid; gap: 16px; }
.product-list .product-card { display: grid; grid-template-columns: 160px minmax(0, 1fr); }
.product-list .product-image { height: 100%; min-height: 160px; }
.product-list .card-body { min-width: 0; }
.summary-search { flex: 1 1 180px; min-width: 0; position: relative; }
.summary-search input { padding: 7px 62px 7px 11px; font-size: 11px; }
.summary-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.summary-search button { position: absolute; top: 1px; bottom: 1px; width: 30px; border: 0; background: transparent; cursor: pointer; color: var(--ink); padding: 0; }
.summary-search [data-summary-search-clear], .summary-search [data-product-search-clear] { right: 31px; font-size: 11px; color: var(--muted); border-radius: 0; }
.summary-search [data-summary-search-clear]:hover, .summary-search [data-product-search-clear]:hover { color: var(--ink); }
.summary-search [data-summary-search-btn], .summary-search [data-product-search-btn] { right: 1px; border-radius: 0 4px 4px 0; }
.summary-search [data-summary-search-btn]:hover, .summary-search [data-product-search-btn]:hover { background: var(--mint); }
.summary-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 18px; }
@media (max-width: 600px) {
    .product-list .product-card { grid-template-columns: 96px minmax(0, 1fr); }
    .product-list .product-image { min-height: 120px; }
    .product-list .card-body { padding: 14px; }
    .summary-controls { width: 100%; }
}

.location-picker, .courier-options { min-width: 0; margin: 0 0 20px; padding: 16px; border: 1px solid var(--line); border-radius: 7px; }
.location-picker legend, .courier-options legend { padding: 0 5px; font-weight: 600; }
.courier-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 8px 16px; }
.courier-options label.payment-check { display: flex; gap: 8px; align-items: center; margin: 0; min-height: 36px; }
.courier-options label.payment-check input { margin: 0; }
.location-picker [data-location-label] { overflow-wrap: anywhere; }
.shipping-quote-form, .shipping-rate-form { margin: 16px 0; }

#subscription-usage { margin-top: 32px; }

/* Summary list — card-based layout */
.summary-list { border: 1px solid var(--line); border-radius: 7px; background: var(--bg-card); }
.summary-order-group:first-child .summary-group-header { border-top-left-radius: 6px; border-top-right-radius: 6px; }
.summary-order-group:last-child { border-bottom-left-radius: 6px; border-bottom-right-radius: 6px; }
.summary-order-group:last-child .summary-group-bulk,
.summary-order-group:last-child .summary-order-card:last-of-type { border-bottom-left-radius: 6px; border-bottom-right-radius: 6px; }
.summary-order-group { border-top: 2px solid var(--teal); }
.summary-group-header { position: sticky; top: 0; z-index: 3; background: var(--mint); padding: 12px 16px; border-bottom: 1px solid var(--line); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); }
.summary-group-header h3 { font-size: 14px; margin: 0; line-height: 25px;}
.summary-group-header h3 a { color: inherit; }
.summary-group-header .summary-name-line { margin-bottom: 0; }
.summary-group-header p { font-size: 12px; margin: 4px 0 0; }
.summary-order-card { display: flex; flex-direction: column; gap: 0; padding: 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.summary-order-card:last-of-type { border-bottom: 0; }
.summary-card-detail { padding: 14px 16px 10px; }
.summary-card-detail h4 { font-size: 13px; margin: 0 0 4px; }
.summary-card-detail h4 a { color: inherit; }
.summary-card-actions { padding: 0 16px 14px; }
.summary-card-actions:empty { display: none; }
.summary-card-actions .status-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.summary-card-actions .quantity-status-form { flex-wrap: nowrap; }
.summary-card-actions .status-form select,
.summary-card-actions .status-form input[type="text"],
.summary-card-actions .status-form input[type="number"] { padding: 7px; font-size: 11px; margin-bottom: 0; }
.summary-card-actions .status-form select { flex: 1 1 140px; min-width: 0; }
.summary-card-actions .status-form input[type="text"] { flex: 1 1 120px; min-width: 0; }
.summary-card-actions .status-form input[type="number"] { flex: 0 0 90px; min-width: 70px; }
.summary-card-actions .payment-confirm-form { display: block; }
.summary-card-actions .payment-confirm-form select,
.summary-card-actions .payment-confirm-form input { margin-bottom: 7px; }
.summary-card-actions p { margin: 4px 0; }
.summary-group-bulk { background: var(--table-header-bg); padding: 14px 16px; border-top: 1px solid var(--line); }
.bulk-product-status-form { font-weight: 400; }
.bulk-product-status-form p { margin: 0 0 8px; font-weight: 600; }
.bulk-product-status-form select { padding: 7px; font-size: 11px; margin-bottom: 8px; }
.bulk-status-choice { display: inline-flex; align-items: center; }
.bulk-status-choice[hidden] { display: none; }
.summary-list a[href^="https://wa.me/"] { white-space: nowrap; }

.courier-editor { margin: 16px 0; }
.courier-editor summary { cursor: pointer; color: var(--link); font-weight: 700; }
.delivery-tabs { margin-top: 24px; }
.tab-list { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tab-list [role="tab"] { appearance: none; border: 0; border-radius: 7px 7px 0 0; background: transparent; color: var(--link); cursor: pointer; font: inherit; font-weight: 700; padding: 12px 16px; }
.tab-list [role="tab"][aria-selected="true"] { background: var(--mint); color: var(--ink); }
.finance-tabs .tab-list { overflow-x: auto; }
.finance-tabs .tab-list [role="tab"] { white-space: nowrap; }
.delivery-confirmation { margin-top: 24px; }

/* Marketplace Coming Soon */
.marketplace-coming-soon { padding: 10px 0 20px; }
.marketplace-header { text-align: center; max-width: 620px; margin: 0 auto 36px; }
.marketplace-header .badge { margin-bottom: 12px; font-size: 10px; letter-spacing: .8px; text-transform: uppercase; }
.marketplace-header .eyebrow { margin-bottom: 8px; }
.marketplace-header h2 { font-size: 32px; font-weight: 800; margin-bottom: 12px; }
.marketplace-header h2 span { color: var(--link); }
.marketplace-subtitle { color: var(--muted); font-size: 15px; line-height: 1.6; margin-bottom: 0; }
.marketplace-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 28px; }
.marketplace-card { background: var(--mint); border: 1px solid var(--line); border-radius: 7px; padding: 24px 20px; display: flex; flex-direction: column; }
.marketplace-card-icon { font-size: 26px; margin-bottom: 14px; line-height: 1; }
.marketplace-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--ink); }
.marketplace-card p { font-size: 13px; color: var(--muted); line-height: 1.55; margin-bottom: 0; }
.marketplace-destinations { background: var(--paper); border: 1px solid var(--line); border-radius: 7px; padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.marketplace-destinations-label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
.marketplace-destination-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.destination-tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; background: var(--bg-card); border: 1px solid var(--line); border-radius: 20px; font-size: 12px; font-weight: 600; color: var(--ink); }
.marketplace-cta-banner { border: 1px dashed var(--empty-state-border); border-radius: 7px; padding: 22px 24px; background: var(--empty-state-bg); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.marketplace-cta-copy h3 { font-size: 16px; margin-bottom: 4px; }
.marketplace-cta-copy p { color: var(--muted); font-size: 13px; margin-bottom: 0; }


.notification-shares { display: flex; flex-wrap: wrap; gap: .5rem; margin: .75rem 0 0 0; }
.whatsapp-icon { display: inline-block; width: 13px; height: 13px; flex: 0 0 13px; overflow: visible; vertical-align: middle; }

.image-chip button[data-main-image] { top: auto; bottom: 4px; left: 4px; right: 4px; width: auto; height: auto; border-radius: 4px; font-size: 11px; padding: 2px; }
.image-chip button[data-main-image][aria-pressed="true"] { background: var(--teal); color: white; font-weight: bold; }

.guide-callout { margin: 0 0 24px; padding: 20px 22px; border: 1px solid var(--tutorial-banner-border); border-left: 5px solid var(--tutorial-banner-border); border-radius: 7px; background: var(--paper); }
.guide-callout h2 { margin-bottom: 8px; font-size: 20px; }
.guide-callout > p { margin-bottom: 14px; }
.guide-callout ol { margin: 0 0 14px; padding-left: 22px; }
.guide-links { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 14px; }
.tutorial-banner { position: sticky; z-index: 5; top: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 0 0 24px; padding: 14px 18px; border: 2px solid var(--tutorial-banner-border); border-radius: 7px; background: var(--tutorial-banner-bg); box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2); }
.tutorial-banner > span { flex: 1 1 320px; color: var(--muted); font-size: 12px; }
.tutorial-banner .actions { align-items: center; margin: 0; }
.tutorial-progress { padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--paper); color: var(--ink); font-weight: 600; }
.order-simulator { overflow: hidden; margin-bottom: 28px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-card); }
.request-description { white-space: pre-wrap; overflow-wrap: anywhere; }
.order-simulator[data-simulator-mode="tutorial"] { overflow: visible; }
.order-simulator[data-simulator-mode="tutorial"] .summary-group-header { top: var(--tutorial-banner-height, 0); }
.order-simulator .home-recap-app { padding: 22px; }
.order-simulator .summary-section { margin: 28px 0; }
.order-simulator .simulator-status-form select, .order-simulator .simulator-status-form input, .order-simulator .simulator-bulk-form select { padding: 7px; margin: 0 0 8px; font-size: 11px; }
.order-simulator .simulator-status-form { display: flex; align-items: center; }
.order-simulator .simulator-status-form select { flex: 1 1 140px; min-width: 0; margin: 0; }
.order-simulator .simulator-status-form input { flex: 0 0 82px; min-width: 70px; margin: 0 8px 0 0; }
.order-simulator .simulator-bulk-form p { margin: 0 0 8px; font-weight: 600; }
.simulator-phone { display: inline-flex; align-items: center; gap: 5px; }
@media (max-width: 650px) {
    .tutorial-banner { position: static; }
    .order-simulator .home-recap-app { padding: 16px; }
    .order-simulator[data-simulator-mode="tutorial"] .summary-group-header { top: 0; }
}

/* Public profiles and mutual order reviews. */
.public-profile-header { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.public-profile-header h1 { margin: 0; overflow-wrap: anywhere; }
.public-avatar { width: 96px; height: 96px; flex-shrink: 0; border-radius: 50%; overflow: hidden; background: var(--mint); display: grid; place-items: center; font-size: 40px; }
.public-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-ratings { display: flex; gap: 12px 24px; flex-wrap: wrap; }
.profile-tabs, .profile-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.profile-tabs { border-bottom: 1px solid var(--line); }
.profile-tabs a, .profile-filters a { padding: 10px 16px; border-radius: 7px; }
.profile-ratings a, .profile-tabs a, .profile-filters a { text-decoration: none; }
.profile-tabs a { border-radius: 7px 7px 0 0; }
.profile-tabs a[aria-current], .profile-filters a[aria-current] { background: var(--mint); font-weight: 700; }
.public-review h2 { font-size: 1rem; margin: 0; overflow-wrap: anywhere; }
.public-review .preserve-lines { overflow-wrap: anywhere; }
.review-stars { border: 1px solid var(--line); border-radius: 8px; padding: 16px; display: flex; gap: 16px; flex-wrap: wrap; }
.review-stars label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.review-stars input { width: auto; }
.rating-link { margin-inline-start: 8px; }
.review-link { display: inline-block; margin-block: 6px; }

.delivery-navigation { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.delivery-review-action { margin: 0; text-align: right; }
.order-links { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.order-links .review-link { margin-block: 0; }

/* Browser installation notification controls. */
#push-settings { margin-top: 24px; }
.product-status-switch { display: inline-flex; align-items: center; margin: 0; flex-shrink: 0; }
.push-toggle { display: flex; align-items: center; gap: 12px; margin: 16px 0; overflow-wrap: anywhere; }
.push-toggle input[role="switch"], .product-status-switch input[role="switch"] { appearance: none; -webkit-appearance: none; flex: 0 0 44px; width: 44px; height: 24px; padding: 2px; border-radius: 14px; background: var(--border-input); border: 1px solid var(--border-input); box-sizing: border-box; cursor: pointer; margin: 0; }
.push-toggle input[role="switch"]::before, .product-status-switch input[role="switch"]::before { content: ""; display: block; width: 18px; height: 18px; border-radius: 50%; background: white; transition: transform .15s; }
.push-toggle input[role="switch"]:checked, .product-status-switch input[role="switch"]:checked { background: var(--teal); border-color: var(--teal); }
.push-toggle input[role="switch"]:checked::before, .product-status-switch input[role="switch"]:checked::before { transform: translateX(18px); }
.push-toggle input[role="switch"]:focus-visible, .product-status-switch input[role="switch"]:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.push-toggle input[role="switch"]:disabled, .product-status-switch input[role="switch"]:disabled { opacity: .5; cursor: not-allowed; }
.push-installation { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); }
.push-installation .push-toggle { flex: 1 1 180px; }
.push-guide { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.push-guide ol { margin: 10px 0 14px; padding-left: 20px; }
.push-guide li { margin-bottom: 6px; }
.push-guide li:last-child { margin-bottom: 0; }
.push-guide .hint { margin-top: 10px; margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .push-toggle input[role="switch"]::before, .product-status-switch input[role="switch"]::before { transition: none; } }


/* Notification badge (inline in dropdown notification item) */
#notification-bell { flex-shrink: 0; font-size: 13px; line-height: 1; }
.notification-badge { display: inline-block; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #e53935; color: white; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; margin-left: 6px; vertical-align: middle; }

/* Notification inbox */
.notification-tabs { margin-top: 20px; }
.notification-actions { margin-bottom: 16px; text-align: right; }
.notification-table { width: 100%; border-collapse: collapse; }
.notification-table th, .notification-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); }
.notification-table thead th { font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--dim); }
.notification-time-col { width: 110px; font-size: 13px; color: var(--dim); white-space: nowrap; }
.notification-seen-col { width: 60px; text-align: center !important; }
.notification-unseen td { font-weight: 600; }
.notification-unseen td a { color: var(--ink); }
.notification-seen td { color: var(--dim); }
.notification-seen td a { color: var(--dim); }
.notification-seen-toggle { border: none; background: none; font-size: 18px; cursor: pointer; padding: 4px 8px; color: var(--ink); }
.notification-pager { display: flex; gap: 12px; margin-top: 16px; justify-content: center; }
.notification-empty { text-align: center; padding: 40px 20px; color: var(--dim); }
