@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/Inter-Regular.ttf") format("truetype"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/Inter-Medium.ttf") format("truetype"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/Inter-SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/Inter-Bold.ttf") format("truetype"); }

:root {
    --ink: #1c1e21;
    --paper: #f3f1ec;
    --card: #ffffff;
    --line: #e4e0d8;
    --text: #1c1e21;
    --muted: #5e646c;
    --brick: #7a3e2e;
    --radius: 12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Inter", "Segoe UI", system-ui, sans-serif;
    color: var(--text);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    line-height: 1.55;
}

a { color: inherit; text-decoration: none; }

img, svg { display: block; }

.wrap {
    width: min(1080px, calc(100% - 2.5rem));
    margin: 0 auto;
}

.nav {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(243, 241, 236, 0.94);
    border-bottom: 1px solid var(--line);
}

.nav .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: 68px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-weight: 650;
    letter-spacing: -0.02em;
    font-size: 1rem;
}

.brand img { width: 32px; height: 32px; }

.brand span b { font-weight: 700; }

.brand span i { font-style: normal; color: var(--brick); font-weight: 600; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--muted);
}

.nav-links a:hover { color: var(--text); }

.nav-place {
    margin-inline-start: auto;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.92rem;
    border: 1px solid transparent;
}

.btn-dark {
    background: var(--ink);
    color: #fff;
}

.btn-dark:hover { background: #000; }

.btn-line {
    background: transparent;
    border-color: var(--line);
    color: var(--text);
}

.btn-line:hover { border-color: var(--ink); }

.btn-sm { padding: 0.5rem 0.85rem; font-size: 0.86rem; }

.nav-menu { display: none; position: relative; }

.nav-menu summary {
    list-style: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--card);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
}

.nav-menu summary::-webkit-details-marker { display: none; }

.nav-menu summary span {
    display: block;
    width: 16px;
    height: 1.5px;
    background: var(--ink);
}

.nav-menu-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 220px;
    padding: 0.35rem;
    border-radius: 10px;
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: 0 16px 40px -24px rgba(28, 30, 33, 0.4);
    display: grid;
}

.nav-menu-panel a {
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.nav-menu-panel a:hover { background: var(--paper); }

.hero { padding: 5.5rem 0 4.5rem; }

.kicker {
    margin: 0 0 1rem;
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brick);
}

.hero h1 {
    margin: 0;
    max-width: 16ch;
    font-size: clamp(2.6rem, 5vw, 4.2rem);
    line-height: 1.02;
    letter-spacing: -0.035em;
    font-weight: 650;
}

.hero .lead {
    max-width: 38rem;
    margin: 1.4rem 0 0;
    font-size: 1.12rem;
    color: var(--muted);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 2rem; }

.facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin-top: 3.5rem;
    background: var(--line);
    border: 1px solid var(--line);
}

.facts div { background: var(--card); padding: 1.15rem 1.2rem; }

.facts strong { display: block; font-size: 0.98rem; font-weight: 650; letter-spacing: -0.01em; }

.facts span { display: block; margin-top: 0.25rem; color: var(--muted); font-size: 0.88rem; }

.block { padding: 5rem 0; }

.block h2 {
    margin: 0.4rem 0 0.8rem;
    max-width: 18ch;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    letter-spacing: -0.03em;
    line-height: 1.1;
    font-weight: 650;
}

.intro { max-width: 36rem; color: var(--muted); margin: 0 0 2rem; }

.steps, .roles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.step, .role {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.4rem 1.3rem 1.5rem;
}

.step .num {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--brick);
}

.step h3, .role h3 { margin: 0.7rem 0 0.45rem; font-size: 1.12rem; letter-spacing: -0.02em; }

.step p, .role p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.role ul { margin: 1rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.45rem; font-size: 0.92rem; }

.role li { padding-left: 0.9rem; position: relative; }

.role li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 5px;
    height: 5px;
    border-radius: 99px;
    background: var(--ink);
}

.band {
    background: var(--ink);
    color: #fff;
}

.band .wrap {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: center;
    padding: 3.5rem 0;
}

.band h2 { margin: 0 0 0.7rem; max-width: 16ch; font-size: clamp(1.8rem, 3vw, 2.3rem); letter-spacing: -0.03em; line-height: 1.1; font-weight: 650; }

.band p { margin: 0; color: rgba(255, 255, 255, 0.72); max-width: 36rem; }

.band .btn-line { border-color: rgba(255, 255, 255, 0.28); color: #fff; }

.band .btn-line:hover { border-color: #fff; }

.portal { padding: 4.5rem 0 5rem; }

.portal h1 {
    margin: 0;
    max-width: 16ch;
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
    font-weight: 650;
}

.portal .lead { max-width: 38rem; }

.portal-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; }

.portal-form { display: grid; gap: 0.8rem; max-width: 28rem; margin-top: 1.5rem; }

.portal-form label { display: grid; gap: 0.35rem; font-size: 0.82rem; font-weight: 650; }

.portal-form .hint { font-weight: 500; color: var(--muted); font-size: 0.8rem; }

.portal-form input, .portal-form select, .portal-card input {
    width: 100%;
    padding: 0.7rem 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--card);
    font: inherit;
    color: var(--text);
}

.portal-form .check, .portal-more .check { display: flex; gap: 0.55rem; align-items: center; font-weight: 500; font-size: 0.9rem; }

.portal-form .check input { width: auto; }

.portal-error { color: var(--brick); font-size: 0.92rem; }

.portal-status { color: var(--muted); }

.portal-more { margin-top: 1.5rem; max-width: 28rem; }

.portal-more summary { cursor: pointer; font-weight: 650; }

.portal-key {
    font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
    letter-spacing: 0.08em;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    max-width: 28rem;
}

.portal-codes { list-style: none; padding: 0; display: grid; gap: 0.35rem; max-width: 28rem; }

.portal-codes li {
    font-family: ui-monospace, Consolas, monospace;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.45rem 0.7rem;
}

.portal-back { margin-top: 1.5rem; }

.portal-list { display: grid; gap: 0.8rem; margin-top: 1.2rem; }

.portal-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1rem 1.1rem;
}

.portal-card header { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }

.portal-card p { margin: 0.4rem 0 0; }

.portal-card .muted, .portal .muted { color: var(--muted); }

.portal-card form { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-top: 0.8rem; }

.portal-card form input { flex: 1; min-width: 12rem; }

.portal-docs li { margin: 0.45rem 0; }
.portal-docs form { display: inline; margin-left: 0.4rem; }

.portal-setup {
    display: grid;
    grid-template-columns: minmax(0, 28rem) 240px;
    gap: 3rem;
    align-items: start;
    margin-top: 1.25rem;
}

.portal-qr {
    justify-self: end;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.85rem;
}

.portal-qr img { display: block; width: 220px; height: 220px; }

footer { padding: 1.6rem 0 2rem; color: var(--muted); font-size: 0.84rem; border-top: 1px solid var(--line); }

footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

footer a:hover { color: var(--text); }

.sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

body.is-app { background: #fff; }

.market-shell { padding: 0; }

.market-frame {
    width: min(1180px, 100%);
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
    background: #fff;
    position: relative;
    padding-bottom: calc(5rem + env(safe-area-inset-bottom));
}

.market-top {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    gap: 0.75rem;
    padding: calc(0.95rem + env(safe-area-inset-top)) 1rem 0.8rem;
    background: #fff;
}

.market-loc span,
.market-loc small {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
}

.market-loc strong {
    display: block;
    margin-top: 0.1rem;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.market-search { position: relative; display: block; }

.market-search svg {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    fill: none;
    stroke: var(--muted);
    stroke-width: 1.8;
    stroke-linecap: round;
}

.market-search input {
    width: 100%;
    border: 0;
    border-radius: 999px;
    background: var(--paper);
    padding: 0.78rem 1rem 0.78rem 2.4rem;
    font: inherit;
    font-size: 0.92rem;
    color: var(--text);
}

.market-search input:focus { outline: 2px solid var(--ink); outline-offset: 1px; }

.market-panel {
    display: grid;
    gap: 0.75rem;
    padding: 0.2rem 1rem 1.2rem;
}

.market-panel h1 {
    margin: 0.15rem 0 0.15rem;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
    font-weight: 700;
}

.market-note, .market-empty { margin: 0; color: var(--muted); font-size: 0.92rem; }

.shop {
    border: 1px solid #eceae6;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}

.shop-mark {
    display: grid;
    place-items: center;
    height: 76px;
    background: var(--ink);
    color: var(--paper);
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.shop-copy { padding: 0.8rem 0.95rem 0.75rem; }

.shop-copy h2 {
    margin: 0;
    font-size: 1.02rem;
    letter-spacing: -0.02em;
}

.shop-copy p { margin: 0.2rem 0 0; color: var(--muted); font-size: 0.86rem; }

.shop-meta { font-size: 0.78rem; }

.shop-items {
    list-style: none;
    margin: 0;
    padding: 0 0.95rem 0.85rem;
    display: grid;
    gap: 0.35rem;
}

.shop-items li {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    font-size: 0.86rem;
}

.shop-items span { min-width: 0; overflow-wrap: anywhere; }
.desk-card .shop-items { padding: 0.2rem 0 0; }

.order-row, .account-list div {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid #eceae6;
}

.order-row p, .account-list { margin: 0; }

.order-row p, .account-list dt { color: var(--muted); font-size: 0.82rem; }

.order-side { text-align: right; }

.order-side span {
    display: block;
    font-size: 0.75rem;
    font-weight: 650;
    color: var(--muted);
}

.account-list { display: grid; }

.account-list div { display: block; }

.account-list dt { margin: 0; }

.account-list dd { margin: 0.15rem 0 0; font-weight: 650; }

.market-panel form { margin-top: 0.4rem; }

.shop-grid {
    display: grid;
    gap: 0.85rem;
}

.market-tabs {
    position: fixed;
    z-index: 30;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #fff;
    border-top: 1px solid #eceae6;
    padding: 0.35rem 0.25rem calc(0.4rem + env(safe-area-inset-bottom));
}

.market-tabs a {
    display: grid;
    justify-items: center;
    gap: 0.12rem;
    padding: 0.3rem 0;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 650;
}

.market-tabs a.is-on { color: var(--ink); }

.market-tabs svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linejoin: round;
    stroke-linecap: round;
}

@media (min-width: 760px) {
    body.is-app { background: var(--paper); }

    .market-frame { padding: 0 1.25rem 2.5rem; }

    .market-top {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 1rem 1.25rem;
        margin: 0 -1.25rem;
        padding: calc(1rem + env(safe-area-inset-top)) 1.25rem 1rem;
        border-bottom: 1px solid var(--line);
    }

    .market-loc { flex: 0 1 16rem; min-width: 0; }

    .market-loc small {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .market-search { flex: 1 1 16rem; min-width: 0; }

    .market-tabs {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 30;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        width: auto;
        margin: 0;
        border-top: 1px solid #eceae6;
        background: #fff;
        padding: 0.35rem 0.25rem calc(0.4rem + env(safe-area-inset-bottom));
    }

    .market-tabs a {
        display: grid;
        justify-items: center;
        gap: 0.12rem;
        padding: 0.3rem 0;
        border-radius: 0;
        font-size: 0.68rem;
        background: transparent;
    }

    .market-tabs a.is-on { background: transparent; color: var(--ink); }

    .market-panel { padding-left: 0; padding-right: 0; }

    .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }

    .market-panel:has(.account-list),
    .market-panel:has(.order-row),
    .market-panel:has(.market-empty):not(:has(.shop)) {
        max-width: 40rem;
    }
}

@media (min-width: 1100px) {
    .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

a.shop { color: inherit; text-decoration: none; display: block; }
a.order-row { color: inherit; text-decoration: none; }
.shop-photo { width: 100%; height: 140px; object-fit: cover; display: block; background: var(--paper); }
.product-row, .addr-card {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #eceae6;
    border-radius: 12px;
    padding: 0.85rem;
    margin: 0.55rem 0;
}
.product-row img, .line-photo { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.addr-card p, .product-row p { margin: 0.15rem 0 0; }
.addr-card form, .market-panel form { display: inline; }
.map-canvas { height: min(380px, 55dvh); min-height: 240px; border-radius: 12px; background: var(--paper); overflow: hidden; touch-action: none; }
.portal-form input,
.portal-form select,
.portal-form textarea { font-size: 16px; }
.map-tools { display: grid; gap: 0.6rem; }
.place-results { list-style: none; margin: 0.4rem 0; padding: 0; border: 1px solid #eceae6; border-radius: 12px; background: #fff; }
.place-results button { width: 100%; text-align: start; border: 0; background: transparent; padding: 0.7rem 0.85rem; font: inherit; cursor: pointer; }
.place-results li + li { border-top: 1px solid #eceae6; }
.map-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.market-cart { font-weight: 650; font-size: 0.9rem; }
.note-wrap { position: relative; }
.note-bell {
    position: relative;
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border: 1px solid #eceae6;
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
}
.note-bell svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.note-count {
    position: absolute;
    top: -0.2rem;
    inset-inline-end: -0.2rem;
    min-width: 1.05rem;
    padding: 0 0.25rem;
    border-radius: 999px;
    background: var(--brick);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1.05rem;
}
.note-panel {
    position: absolute;
    z-index: 50;
    top: calc(100% + 0.45rem);
    inset-inline-end: 0;
    width: min(22rem, calc(100vw - 1.5rem));
    display: none;
    gap: 0.45rem;
    padding: 0.75rem;
    border: 1px solid #eceae6;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(28, 30, 33, 0.12);
}
.note-panel.is-open {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    max-height: min(28rem, 70dvh);
}
.note-panel [data-note-list] { overflow: auto; min-height: 0; }
.note-count[hidden],
.note-panel[hidden] { display: none !important; }
.note-panel header { display: flex; align-items: center; gap: 0.5rem; }
.note-panel header strong { margin-inline-end: auto; }
.note-panel header button { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 0.78rem; cursor: pointer; }
.note-close { width: 1.6rem; height: 1.6rem; border-radius: 999px; font-size: 1.1rem !important; line-height: 1; }
.note-panel a, .note-panel p { display: grid; gap: 0.1rem; padding: 0.55rem 0; border-top: 1px solid #eceae6; color: inherit; text-decoration: none; }
.note-panel a.is-new strong { color: var(--ink); }
.note-panel span, .note-panel small { color: var(--muted); font-size: 0.8rem; }
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-inline-start: 0.75rem;
}
body.is-note .nav-place { display: none; }
body.is-note .nav-actions { margin-inline-start: auto; }
body.is-note .portal { padding: 1.5rem 0 3rem; }
body.is-note .portal h1 {
    max-width: none;
    font-size: 1.65rem;
    letter-spacing: -0.03em;
}
.note { display: grid; gap: 0.4rem; }
.note img { max-width: 240px; border-radius: 8px; }
[dir="rtl"] .market-search svg { left: auto; right: 0.9rem; }
[dir="rtl"] .market-search input { padding: 0.78rem 2.4rem 0.78rem 1rem; }
[dir="rtl"] .order-side { text-align: left; }

body.is-checkout { background: var(--paper); }
body.is-checkout .market-frame { background: transparent; padding-bottom: 7.5rem; }

.co-top {
    position: sticky;
    top: 0;
    z-index: 25;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: #fff;
    border-bottom: 1px solid #eceae6;
}
.co-top a {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    color: var(--ink);
}
.co-top svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.co-top strong { font-size: 1.05rem; }

.co-sheet { padding: 1.1rem 1rem 1.5rem; }
.co-sheet h1 {
    margin: 0;
    font-size: 1.55rem;
    letter-spacing: -0.03em;
}
.co-shop { margin: 0.25rem 0 0.85rem; color: var(--muted); }

.co-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: start;
    margin: 0.65rem 0;
    padding: 0.95rem 1rem;
    background: #fff;
    border: 1px solid #eceae6;
    border-radius: 16px;
    cursor: pointer;
}
.co-card input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}
.co-mark {
    display: grid;
    place-items: center;
    width: 1.35rem;
    height: 1.35rem;
    margin-top: 0.1rem;
    border: 1.5px solid #d7d3cc;
    border-radius: 999px;
    color: transparent;
    font-size: 0.75rem;
}
.co-card:has(input:checked) { border-color: var(--ink); }
.co-card:has(input:checked) .co-mark,
.co-order .co-mark {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}
.co-card strong, .co-card small { display: block; }
.co-card small { margin-top: 0.15rem; color: var(--muted); font-size: 0.84rem; }
.co-order { cursor: default; }
.co-order ul { list-style: none; margin: 0.8rem 0 0; padding: 0; display: grid; gap: 0.85rem; }
.co-order li { display: grid; grid-template-columns: 42px 1fr auto; gap: 0.7rem; align-items: center; }
.co-order img, .co-fallback {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
    background: var(--paper);
}
.co-fallback {
    display: grid;
    place-items: center;
    font-weight: 700;
}
.co-order b, .co-order small { display: block; }
.co-order small { color: var(--muted); font-size: 0.8rem; }
.co-order em { font-style: normal; font-weight: 650; font-size: 0.86rem; }
.co-sum, .co-sum-total {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.7rem;
    padding-top: 0.7rem;
    border-top: 1px dashed #e4e1db;
}
.co-sum-total { border-top-style: solid; font-size: 1.05rem; }
.co-extra { margin: 0.2rem 0 0.4rem; }
.co-note { display: grid; gap: 0.35rem; margin-top: 0.8rem; color: var(--muted); font-size: 0.86rem; }
.co-note textarea {
    width: 100%;
    min-height: 4.5rem;
    border: 1px solid #eceae6;
    border-radius: 12px;
    padding: 0.7rem 0.8rem;
    font: inherit;
    color: var(--text);
    background: #fff;
}

.co-dock {
    position: fixed;
    z-index: 40;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    border-top: 1px solid #eceae6;
}
.co-dock-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 0.75rem 1rem calc(0.8rem + env(safe-area-inset-bottom));
}
.co-dock p { margin: 0; min-width: 0; }
.co-dock span { display: block; color: var(--muted); font-size: 0.75rem; }
.co-dock strong { font-size: 1.05rem; }
.co-modify {
    display: block;
    margin-top: 0.85rem;
    padding: 0.9rem 1rem;
    border: 1px solid #eceae6;
    border-radius: 14px;
    background: #fff;
    text-align: center;
    font-weight: 700;
    color: var(--ink);
}
.co-dock button {
    margin-inline-start: auto;
    border: 0;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    padding: 0.85rem 1.35rem;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.co-dock button:disabled { opacity: 0.45; cursor: not-allowed; }
[dir="rtl"] .co-top svg { transform: scaleX(-1); }

@media (min-width: 760px) {
    .co-sheet { max-width: 40rem; }
}

@media print {
    .nav, .market-tabs, .no-print { display: none !important; }
    body { background: #fff; }
}

@media (max-width: 860px) {
    .nav-links, .nav-place, .nav-desktop { display: none; }
    .nav-menu { display: block; }
    .facts, .steps, .roles, .band .wrap, .portal-setup { grid-template-columns: 1fr; }
    .portal-qr { justify-self: start; }
    .hero { padding: 3.5rem 0 3rem; }
}

body.is-desk {
    height: 100dvh;
    overflow: hidden;
}
.desk {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    display: grid;
    grid-template-columns: 16.5rem minmax(0, 1fr);
    background: var(--paper);
}
.desk-side {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    height: 100%;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    padding: 1rem 0.75rem 1rem;
    background: #fff;
    border-inline-end: 1px solid var(--line);
}
.desk-brand-row { display: flex; align-items: center; gap: 0.35rem; }
.desk-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex: 1;
    min-width: 0;
    padding: 0.2rem 0.55rem 0.35rem;
    font-weight: 650;
    letter-spacing: -0.02em;
}
.desk-brand img { width: 32px; height: 32px; }
.desk-brand b { font-weight: 700; }
.desk-brand i { font-style: normal; color: var(--brick); font-weight: 600; }
.desk-who { margin: 0.15rem 0.7rem 0.85rem; }
.desk-who strong { display: block; font-size: 1.05rem; letter-spacing: -0.03em; }
.desk-who span { display: block; color: var(--muted); font-size: 0.78rem; font-weight: 600; }
.desk-group {
    margin: 0.95rem 0.7rem 0.3rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}
.desk-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 2.5rem;
    padding: 0.4rem 0.7rem;
    border-radius: 10px;
    color: var(--ink);
    font-weight: 600;
    font-size: 0.92rem;
}
.desk-link svg { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.desk-link small { display: block; margin-top: 0.05rem; color: var(--muted); font-size: 0.75rem; font-weight: 600; }
.desk-link.is-on { background: #eceae4; }
.desk-link:hover { background: #f3f1ec; }
.desk-link.is-on:hover { background: #eceae4; }
.desk-count {
    margin-inline-start: auto;
    min-width: 1.4rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: #eceae4;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.35rem;
    text-align: center;
}
.desk-link.is-on .desk-count { background: #fff; }
.desk-locale { margin-top: auto; padding: 0.8rem 0.35rem 0.2rem; }
.desk-locale .btn { width: 100%; }
.desk-locale .btn + .btn { margin-top: 0.35rem; }
.desk-locale .is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.desk-side-close { display: none; }
.desk-main {
    min-width: 0;
    height: 100%;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
}
.desk-top {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 4rem;
    padding: 0.75rem 1.25rem;
    background: rgba(243, 241, 236, 0.94);
    border-bottom: 1px solid var(--line);
}
.desk-top h1 {
    margin: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1.15rem;
    letter-spacing: -0.03em;
}
.desk-card h2 {
    margin: 1.1rem 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}
.desk-tools { display: flex; align-items: center; gap: 0.55rem; margin-inline-start: auto; }
.desk-menu, .desk-side-close {
    display: none;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
}
.desk-menu svg, .desk-side-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.desk-scrim { display: none; }
.desk-content { padding: 1.25rem; }
.desk-lead { margin: 0 0 1rem; max-width: 40rem; color: var(--muted); }
.desk-note { margin: 0 0 0.8rem; color: var(--muted); }
.desk-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.desk-stats a {
    display: block;
    padding: 0.9rem 1rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
}
.desk-stats span {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}
.desk-stats strong { display: block; margin-top: 0.15rem; font-size: 1.3rem; letter-spacing: -0.03em; }
.desk-filters { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.9rem; }
.desk-filters a {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.82rem;
    font-weight: 650;
}
.desk-filters a.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.desk-list { display: grid; gap: 0.75rem; }
.desk-card, .desk-row {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1rem 1.1rem;
}
.desk-row header, .desk-card header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
}
.desk-row header a { font-weight: 700; letter-spacing: -0.02em; }
.desk-row p, .desk-card p { margin: 0.35rem 0 0; }
.desk-muted { color: var(--muted); }
.desk-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.12rem 0.55rem;
    background: #eceae4;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}
.desk-pill.pending { color: var(--brick); background: #f3e7e3; }
.desk-pill.completed { background: var(--ink); color: #fff; }
.desk-pill.canceled { color: var(--muted); }
.desk-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; margin-top: 0.8rem; }
.desk-actions input[name="reason"] {
    flex: 1 1 12rem;
    min-height: 2.4rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.4rem 0.65rem;
    font: inherit;
    font-size: 16px;
    background: #fff;
}
.desk-product {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 0.9rem;
    align-items: start;
}
.desk-product img, .desk-product .desk-photo {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
    background: var(--paper);
}
.desk-product-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(8rem, 1fr));
    gap: 0.7rem;
    align-items: end;
    margin-top: 0.75rem;
}
.desk-product-form label, .desk-facts dt { font-size: 0.78rem; font-weight: 650; color: var(--muted); }
.desk-product-form label { display: grid; gap: 0.3rem; }
.desk-product-form input[type="number"],
.desk-product-form input[type="file"] {
    width: 100%;
    min-height: 2.5rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.4rem 0.65rem;
    font: inherit;
    font-size: 16px;
    background: #fff;
}
.desk-check { display: flex !important; align-items: center; gap: 0.45rem; min-height: 2.5rem; font-size: 0.9rem !important; color: var(--ink) !important; }
.desk-check input { width: auto; }
.desk-balance {
    background: var(--ink);
    color: #fff;
    border-radius: 16px;
    padding: 1.2rem 1.3rem;
    margin-bottom: 1rem;
}
.desk-balance span { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.72); }
.desk-balance strong { display: block; margin-top: 0.2rem; font-size: 2rem; letter-spacing: -0.03em; }
.desk-balance p { margin: 0.45rem 0 0; color: rgba(255, 255, 255, 0.78); }
.desk-table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.desk-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.desk-table th, .desk-table td { padding: 0.75rem 0.9rem; text-align: start; border-bottom: 1px solid #eceae6; }
.desk-table th { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.desk-table tr:last-child td { border-bottom: 0; }
.desk-facts { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 0.7rem 1rem; margin: 0; }
.desk-facts dd { margin: 0; }
.desk-links { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.8rem; }
@media (max-width: 980px) {
    .desk-stats, .desk-product-form { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .desk-stats { grid-template-columns: 1fr; }
    .desk-content { padding: 1rem 0.85rem 1.5rem; }
    .desk-top { padding-inline: 0.85rem; }
}
@media (max-width: 860px) {
    body.is-desk { height: auto; overflow: auto; }
    .desk { display: block; height: auto; max-height: none; overflow: visible; }
    .desk-main { height: auto; overflow: visible; }
    .desk-menu { display: grid; }
    .desk-side-close { display: grid; margin-inline-start: auto; }
    .desk-side {
        position: fixed;
        z-index: 40;
        inset-block: 0;
        inset-inline-start: 0;
        width: min(18rem, 86vw);
        height: 100dvh;
        max-height: 100dvh;
        transform: translateX(-105%);
        transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
        overflow: auto;
    }
    [dir="rtl"] .desk-side { transform: translateX(105%); }
    .desk.is-nav .desk-side { transform: none; }
    .desk-scrim {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 35;
        border: 0;
        background: rgba(28, 30, 33, 0.28);
    }
    .desk.is-nav .desk-scrim { display: block; }
    .desk-brand-row { padding-inline-end: 0.2rem; }
    .desk-top-brand { display: flex; align-items: center; gap: 0.55rem; }
}
@media (min-width: 861px) {
    .desk-top-brand { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .desk-side { transition: none; }
}
@media print {
    body.is-desk { height: auto; overflow: visible; }
    .desk, .desk-main { height: auto; max-height: none; overflow: visible; }
    .desk-side, .desk-top, .desk-scrim { display: none !important; }
    .desk { display: block; }
}

.od-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.65rem; margin-bottom: 1rem; }
.od-back { font-size: 0.86rem; font-weight: 650; color: var(--muted); }
.od-back:hover { color: var(--ink); }
.od-tools { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-inline-start: auto; }
.od-facts {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.od-facts div {
    min-width: 0;
    padding: 0.85rem 1rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
}
.od-facts span, .od-sum span, .od-notes span, .od-lines header span {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}
.od-facts strong { display: block; margin-top: 0.28rem; font-size: 0.98rem; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.od-facts .od-money { font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.od-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(16rem, 0.9fr); gap: 1rem; align-items: start; }
.od-side { display: grid; gap: 1rem; }
.od-lines header, .od-side h2 { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; }
.od-lines header h2, .od-side h2 {
    margin: 0 0 0.85rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: none;
    color: var(--ink);
}
.od-table-wrap { overflow-x: auto; }
.od-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.od-table th, .od-table td { padding: 0.75rem 0.35rem; text-align: start; border-bottom: 1px solid #eceae6; vertical-align: middle; }
.od-table th { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.od-table th.num, .od-table td.num { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.od-table tr:last-child td { border-bottom: 0; }
.od-item { display: flex; align-items: center; gap: 0.75rem; min-width: 12rem; }
.od-item img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; background: var(--paper); }
.od-item strong { display: block; }
.od-item small { display: block; margin-top: 0.1rem; color: var(--muted); font-size: 0.78rem; }
.od-sum { display: grid; justify-items: end; gap: 0.35rem; margin-top: 0.4rem; padding-top: 0.85rem; border-top: 1px solid #eceae6; }
.od-sum div { display: flex; justify-content: flex-end; align-items: baseline; gap: 1.25rem; min-width: min(100%, 16rem); }
.od-sum b { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.od-notes { margin: 0.9rem 0 0; padding: 0.75rem 0.85rem; border-radius: 10px; background: var(--paper); }
.od-notes span { margin-bottom: 0.2rem; }
.od-place { margin: 0; font-weight: 700; letter-spacing: -0.02em; }
.od-time { list-style: none; margin: 0; padding: 0; }
.od-time li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 0.75rem; position: relative; padding-bottom: 1rem; }
.od-time li::before {
    content: "";
    width: 9px;
    height: 9px;
    margin-top: 0.35rem;
    border-radius: 999px;
    background: var(--ink);
    box-shadow: 0 0 0 3px #eceae4;
    z-index: 1;
}
.od-time li::after {
    content: "";
    position: absolute;
    inset-inline-start: 4px;
    top: 1rem;
    bottom: 0;
    width: 1px;
    background: #e4e0d8;
}
.od-time li:last-child { padding-bottom: 0; }
.od-time li:last-child::after { display: none; }
.od-time li.canceled::before { background: var(--brick); }
.od-time strong { display: block; }
.od-time small, .od-time em { display: block; color: var(--muted); font-size: 0.8rem; font-style: normal; }
@media (max-width: 980px) {
    .od-facts { grid-template-columns: 1fr 1fr; }
    .od-grid { grid-template-columns: 1fr; }
    .od-tools { margin-inline-start: 0; width: 100%; }
}

.sf { display: grid; gap: 1.25rem; padding: 0.15rem 1rem 1.25rem; }
.sf [hidden] { display: none !important; }
.sf-bar { display: flex; align-items: center; gap: 0.75rem; }
.sf-loc { display: flex; align-items: center; gap: 0.45rem; min-width: 0; color: inherit; }
.sf-loc svg { width: 22px; height: 22px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.sf-loc small { display: block; color: var(--muted); font-size: 0.72rem; font-weight: 650; }
.sf-loc strong { display: block; font-size: 1.05rem; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sf-bar-end { display: flex; align-items: center; gap: 0.45rem; margin-inline-start: auto; }
.sf-cart {
    position: relative;
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 12px;
    background: var(--ink);
    color: #fff;
}
.sf-cart svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.sf-cart b {
    position: absolute;
    top: -0.3rem;
    inset-inline-end: -0.3rem;
    min-width: 1.15rem;
    padding: 0 0.25rem;
    border-radius: 999px;
    background: var(--brick);
    color: #fff;
    font-size: 0.68rem;
    line-height: 1.15rem;
    text-align: center;
}
.sf-cats, .sf-row, .sf-chips { display: flex; gap: 0.5rem; }
.sf-cats, .sf-row { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.15rem; scrollbar-width: none; -ms-overflow-style: none; }
.sf-cats::-webkit-scrollbar, .sf-row::-webkit-scrollbar { display: none; width: 0; height: 0; }
.sf-cats button, .sf-chips button {
    flex: 0 0 auto;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 650;
    cursor: pointer;
}
.sf-cats button.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.sf-head h2 { margin: 0; font-size: 1.15rem; letter-spacing: -0.03em; }
.sf-row > * { scroll-snap-align: start; flex: 0 0 min(78%, 16.5rem); }
.sf-now, .sf-feature, .sf-usual, .sf-store {
    display: grid;
    align-content: start;
    gap: 0.2rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    color: inherit;
}
.sf-now img, .sf-feature img, .sf-store img { width: 100%; height: 148px; object-fit: cover; background: #fff; }
.sf-fallback { display: grid; place-items: center; width: 100%; height: 148px; background: var(--paper); font-size: 1.6rem; font-weight: 700; }
.sf-now strong, .sf-feature strong { padding: 0.65rem 0.8rem 0; }
.sf-now small, .sf-feature b { padding: 0 0.8rem 0.8rem; }
.sf-now small, .sf-store small { color: var(--muted); font-size: 0.78rem; }
.sf-feature b { font-variant-numeric: tabular-nums; }
.sf-brands { align-items: flex-start; }
.sf-brand {
    flex: 0 0 5.4rem;
    display: grid;
    justify-items: center;
    gap: 0.35rem;
    color: inherit;
    text-align: center;
}
.sf-brand img, .sf-brand span {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 16px;
    object-fit: cover;
    background: #fff;
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    font-weight: 700;
}
.sf-brand small { font-size: 0.72rem; line-height: 1.2; }
.sf-usual { padding: 0.85rem; gap: 0.45rem; }
.sf-usual ul { margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.82rem; }
.sf-stores { display: grid; gap: 0.85rem; }
.sf-store img, .sf-store .sf-fallback { height: 190px; }
.sf-store div { display: grid; gap: 0.15rem; padding: 0.75rem 0.9rem 0.95rem; }
.sf-collections { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.sf-collection {
    min-height: 5.6rem;
    border: 0;
    border-radius: 18px;
    padding: 0.9rem 1rem;
    text-align: start;
    font: inherit;
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    cursor: pointer;
    color: var(--ink);
}
.sf-collection-biscuits { background: #f3e7e3; }
.sf-collection-drinks { background: #e2e8ec; }
.sf-collection-snacks { background: #f3ecd6; }
.sf-collection-pantry { background: #ece8df; }
.sf-collection-bakery { background: #f6efe4; }
.sf-collection-dairy { background: #f4f1ea; }

button.sf-loc { border: 0; background: transparent; font: inherit; text-align: start; cursor: pointer; padding: 0; color: inherit; }
.place-sheet[hidden] { display: none !important; }
.place-sheet { position: fixed; inset: 0; z-index: 60; display: grid; align-items: end; }
.place-sheet-scrim { position: absolute; inset: 0; border: 0; background: rgba(28, 30, 33, 0.42); }
.place-sheet-card {
    position: relative;
    width: min(32rem, 100%);
    max-height: min(88dvh, 44rem);
    margin: 0 auto;
    overflow: auto;
    padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0;
    background: #fff;
    box-shadow: 0 -16px 50px rgba(28, 30, 33, 0.16);
    animation: place-rise 280ms cubic-bezier(0.22, 1, 0.36, 1);
}
.place-sheet-card header { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.place-sheet-card h2 { margin: 0.2rem 0 0.8rem; font-size: 1.35rem; letter-spacing: -0.03em; }
.place-sheet-card h3 { margin: 1rem 0 0.55rem; font-size: 0.95rem; }
.place-sheet-card header button { border: 0; background: transparent; font-size: 1.4rem; cursor: pointer; color: var(--muted); }
.place-choice {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: center;
    margin-top: 0.55rem;
    padding: 0.85rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    color: inherit;
}
.place-choice strong, .place-choice small { display: block; }
.place-choice small { color: var(--muted); font-size: 0.8rem; }
.place-ico { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 999px; background: var(--paper); font-weight: 700; }
.place-list { display: grid; gap: 0.55rem; }
.place-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    width: 100%;
    padding: 0.85rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    color: inherit;
    text-align: start;
    font: inherit;
    cursor: pointer;
}
.place-card.is-on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.place-card strong, .place-card small, .place-card p { display: block; }
.place-card small, .place-card p { margin: 0.15rem 0 0; color: var(--muted); font-size: 0.82rem; }
.place-card em { margin-inline-start: 0.4rem; font-style: normal; font-size: 0.72rem; font-weight: 700; color: var(--brick); }
.place-pin { width: 0.7rem; height: 0.7rem; margin-top: 0.35rem; border-radius: 999px; background: var(--ink); box-shadow: 0 0 0 4px #eceae4; }
.place-card-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.65rem; }
.place-card-actions button, .place-card-actions a { border: 0; background: transparent; padding: 0; color: var(--ink); font: inherit; font-size: 0.82rem; font-weight: 650; cursor: pointer; }
.addr { width: min(40rem, 100%); margin: 0 auto; padding: 0 1.5rem 5.5rem; }
.addr-top { display: flex; align-items: center; gap: 0.65rem; padding: 0.4rem 0 0.8rem; }
.addr-map { position: relative; margin: 0 0 0.85rem; }
.addr-locate {
    position: absolute;
    z-index: 2;
    top: 0.7rem;
    left: 0.7rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    max-width: calc(100% - 4.5rem);
    padding: 0.45rem 0.75rem;
    border: 0;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 650;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(28, 30, 33, 0.18);
}
.addr-locate svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.addr-form { display: grid; gap: 0.65rem; }
.addr-field { display: grid; gap: 0.3rem; border: 0; background: transparent; padding: 0; }
.addr-phone, .addr-field input, .addr-field textarea, .addr-type select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 16px;
}
.addr-top a { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; color: var(--ink); }
.addr-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.addr-top h1 { margin: 0; font-size: 1.15rem; letter-spacing: -0.03em; }
.addr-map { position: relative; margin-bottom: 0.85rem; }
.addr-map .map-canvas { height: min(280px, 42dvh); border-radius: 18px; }
.addr-map #map-status {
    position: absolute;
    left: 0.7rem;
    right: 0.7rem;
    bottom: 0.7rem;
    margin: 0;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: #fff;
    font-size: 0.78rem;
    font-weight: 650;
    text-align: center;
}
.addr-form { display: grid; gap: 0.65rem; }
.addr-phone, .addr-type select, .addr-field input, .addr-field textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 16px;
}
.addr-field input, .addr-field textarea, .addr-type select, .addr-phone input { min-height: 3.1rem; padding: 0.75rem 0.9rem; }
.addr-field textarea { min-height: 5.5rem; }
.addr-field span, .addr-extra summary { display: block; margin-bottom: 0.3rem; color: var(--muted); font-size: 0.78rem; font-weight: 650; }
.addr-type select { appearance: none; }
.addr-type { position: relative; display: grid; gap: 0.3rem; }
.addr-type > span { color: var(--muted); font-size: 0.78rem; font-weight: 650; }
.addr-type-btn, .addr-type-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    text-align: start;
    cursor: pointer;
}
.addr-type-btn { min-height: 3.1rem; padding: 0.55rem 0.8rem; }
.addr-type-btn > svg { width: 18px; height: 18px; margin-inline-start: auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 180ms ease; }
.addr-type-btn[aria-expanded="true"] > svg { transform: rotate(180deg); }
.addr-type-ico {
    display: grid;
    place-items: center;
    width: 2.15rem;
    height: 2.15rem;
    flex: 0 0 auto;
    border-radius: 10px;
    background: var(--paper);
}
.addr-type-ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.addr-type-menu {
    position: absolute;
    z-index: 5;
    top: calc(100% + 0.35rem);
    left: 0;
    right: 0;
    display: grid;
    gap: 0.35rem;
    padding: 0.45rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(28, 30, 33, 0.12);
}
.addr-type-menu[hidden] { display: none !important; }
.addr-type-option { border-color: transparent; padding: 0.55rem; border-radius: 12px; }
.addr-type-option strong, .addr-type-option small { display: block; }
.addr-type-option small { color: var(--muted); font-size: 0.78rem; font-weight: 500; }
.addr-type-option.is-on { background: var(--paper); }
.addr-type-option:hover { background: #f7f5f1; }
.addr-phone { display: grid; grid-template-columns: auto 1fr; align-items: center; overflow: hidden; }
.addr-phone span { padding-inline: 0.9rem; font-weight: 700; border-inline-end: 1px solid var(--line); }
.addr-phone input { border: 0; border-radius: 0; }
.addr-upload { display: grid; gap: 0.35rem; }
.addr-upload > span { color: var(--muted); font-size: 0.78rem; font-weight: 650; }
.addr-upload-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 3rem;
    padding: 0.4rem 0.45rem 0.4rem 0.45rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
}
.addr-upload-btn {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    padding: 0.45rem 0.75rem;
    border-radius: 10px;
    background: var(--ink);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 650;
}
.addr-upload-name { min-width: 0; color: var(--muted); font-size: 0.82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.addr-upload input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}
.addr-gps { justify-self: start; border: 0; background: transparent; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; padding: 0.2rem 0; }
.addr-extra { border: 1px solid var(--line); border-radius: 16px; padding: 0.8rem 0.9rem; background: #fff; }
.addr-extra summary { cursor: pointer; color: var(--ink); }
.addr-done {
    position: sticky;
    bottom: calc(4.4rem + env(safe-area-inset-bottom));
    display: flex;
    justify-content: flex-end;
    padding-top: 0.4rem;
}
.addr-done .btn { min-width: 9rem; border-radius: 999px; }
.addr-remove { margin: 0.35rem 0 0; }
.addr-remove button { border: 0; background: transparent; color: var(--brick); font: inherit; font-size: 0.82rem; cursor: pointer; }
body.is-sheet { overflow: hidden; }
[dir="rtl"] .addr-top svg { transform: scaleX(-1); }
@keyframes place-rise { from { transform: translateY(16px); opacity: 0.6; } to { transform: none; opacity: 1; } }
@media (min-width: 800px) {
    .place-sheet { align-items: center; padding: 1.5rem; }
    .place-sheet-card { border-radius: 22px; max-height: min(80dvh, 40rem); }
    .addr { padding-top: 0.5rem; }
}
@media (prefers-reduced-motion: reduce) {
    .place-sheet-card { animation: none; }
}
body.is-app { background: var(--paper); }
.market-frame, .market-top { background: var(--paper); }
@media (min-width: 760px) {
    body.is-app .market-frame { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
    body.is-app .market-top { display: grid; margin: 0; }
}
@media (min-width: 900px) {
    body.is-app .market-frame { width: min(1100px, 100%); }
    .sf-stores { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sf-row > .sf-now, .sf-row > .sf-feature, .sf-row > .sf-usual { flex-basis: 16.5rem; }
}

.dn {
    width: min(46rem, 100%);
    margin: 0 auto;
    padding: 1.35rem 1.4rem 1.5rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
}
.dn-tools { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 1.25rem; }
.dn-tools a { font-weight: 650; color: var(--muted); }
.dn-tools a:hover { color: var(--ink); }
.dn-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid var(--line);
}
.dn-head p {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brick);
}
.dn-head h1 { margin: 0.2rem 0 0.15rem; }
.dn-head span { color: var(--muted); font-weight: 600; }
.dn-pay { text-align: end; }
.dn-pay span {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}
.dn-pay strong { display: block; margin-top: 0.15rem; font-size: 1.45rem; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.dn-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    padding: 1.15rem 0;
    border-bottom: 1px solid var(--line);
}
.dn h2 {
    margin: 0 0 0.55rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}
.dn p { margin: 0.15rem 0; }
.dn-name { font-weight: 700; letter-spacing: -0.02em; }
.dn-muted, .dn-phone { color: var(--muted); }
.dn-note { margin-top: 0.55rem !important; padding-top: 0.55rem; border-top: 1px solid #eceae6; }
.dn-table { width: 100%; margin-top: 0.35rem; border-collapse: collapse; font-size: 0.92rem; }
.dn-table th, .dn-table td { padding: 0.7rem 0.2rem; text-align: start; border-bottom: 1px solid #eceae6; vertical-align: top; }
.dn-table th { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.dn-table .num { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dn-table strong { display: block; }
.dn-table small { display: block; margin-top: 0.1rem; color: var(--muted); }
.dn-table tfoot td { border-bottom: 0; font-weight: 700; padding-top: 0.85rem; }
.dn-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1rem; }
.dn-extra { margin-top: 1.25rem !important; }
.dn-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
.dn-photos img { width: 100%; height: 120px; object-fit: cover; border-radius: 10px; background: var(--paper); }
@media (max-width: 720px) {
    .dn { padding: 1rem; }
    .dn-head, .dn-split { display: grid; grid-template-columns: 1fr; }
    .dn-pay { text-align: start; }
    .dn-photos { grid-template-columns: 1fr 1fr; }
}
@media print {
    body.is-note .portal { padding: 0; }
    .dn { width: 100%; border: 0; border-radius: 0; }
}

.sf-pin { position: relative; min-width: 0; }
.sf-pin > a { width: 100%; }
.sf-heart { position: absolute; top: 0.55rem; inset-inline-end: 0.55rem; z-index: 2; }
.sf-heart button {
    display: grid;
    place-items: center;
    width: 2.15rem;
    height: 2.15rem;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(28, 30, 33, 0.12);
}
.sf-heart svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.sf-heart button[aria-pressed="true"] { color: var(--brick); }
.sf-heart button[aria-pressed="true"] svg { fill: var(--brick); }
.acct { width: min(40rem, 100%); margin: 0 auto; display: grid; gap: 0.85rem; padding: 0.2rem 1rem 1.5rem; }
.acct h1 { margin: 0 0 0.2rem; font-size: 1.45rem; letter-spacing: -0.03em; }
.acct-group { display: grid; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.acct-group > button, .acct-group > a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.9rem 1rem;
    border: 0;
    border-bottom: 1px solid #eceae6;
    background: #fff;
    color: inherit;
    font: inherit;
    text-align: start;
    cursor: pointer;
}
.acct-group > :last-child { border-bottom: 0; }
.acct-group strong, .acct-group small { display: block; }
.acct-group small { margin-top: 0.12rem; color: var(--muted); font-size: 0.8rem; }
.acct-group > button::after, .acct-group > a::after { content: "›"; margin-inline-start: auto; color: var(--muted); font-size: 1.2rem; }
.acct-panel {
    position: fixed;
    z-index: 45;
    inset: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: calc(0.8rem + env(safe-area-inset-top)) 1rem calc(1.2rem + env(safe-area-inset-bottom));
    background: var(--paper);
    overflow: auto;
    transform: translateX(104%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), visibility 320ms;
}
[dir="rtl"] .acct-panel { transform: translateX(-104%); }
[dir="rtl"] .acct-panel header button { transform: scaleX(-1); }
[dir="rtl"] .acct-group > button::after, [dir="rtl"] .acct-group > a::after { content: "‹"; }
.acct-panel.is-open { transform: none; visibility: visible; pointer-events: auto; }
.acct-panel header { display: flex; align-items: center; gap: 0.65rem; }
.acct-panel header button { border: 0; background: transparent; font: inherit; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--ink); }
.acct-panel h2 { margin: 0; font-size: 1.15rem; letter-spacing: -0.02em; }
.acct-lead, .acct-copy { margin: 0; color: var(--muted); line-height: 1.55; }
.acct-facts, .acct-form { display: grid; gap: 0.7rem; }
.acct-facts div, .acct-row, .acct-faq, .acct-thread article {
    padding: 0.85rem 0.95rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
}
.acct-facts dt { color: var(--muted); font-size: 0.75rem; font-weight: 650; }
.acct-facts dd { margin: 0.15rem 0 0; font-weight: 650; }
.acct-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; color: inherit; }
.acct-row small { display: block; color: var(--muted); font-size: 0.8rem; }
.acct-row button { border: 0; background: transparent; color: var(--brick); font: inherit; font-weight: 650; cursor: pointer; }
.acct-form label { display: grid; gap: 0.3rem; font-size: 0.78rem; font-weight: 650; color: var(--muted); }
.acct-form input, .acct-form textarea {
    width: 100%;
    min-height: 2.8rem;
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 16px;
}
.acct-form textarea { min-height: 7rem; }
.acct-langs { display: grid; gap: 0.5rem; }
.acct-langs button {
    min-height: 3rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
}
.acct-langs button.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.acct-thread { display: grid; gap: 0.55rem; }
.acct-thread article.is-mine { background: #f7f5f1; }
.acct-faq h3 { margin: 0 0 0.3rem; font-size: 1rem; }
.acct-faq p { margin: 0; color: var(--muted); }
.legal { width: min(40rem, 100%); margin: 0 auto; display: grid; gap: 0.8rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem 1rem; }
footer .wrap span:last-child { display: flex; gap: 1rem; }
.shop-locale { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; margin-top: 1rem; }
.shop-locale p { width: 100%; margin: 0; font-size: 0.78rem; font-weight: 650; color: var(--muted); }
.shop-locale .is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (max-width: 860px) {
    .shop-locale { display: none; }
}
@media (min-width: 861px) {
    .desk-side .desk-locale { display: none; }
}
@media (min-width: 900px) {
    .acct-panel {
        inset: 0 0 0 auto;
        width: min(32rem, 100%);
        border-inline-start: 1px solid var(--line);
        box-shadow: -18px 0 40px rgba(28, 30, 33, 0.08);
    }
    [dir="rtl"] .acct-panel { inset: 0 auto 0 0; box-shadow: 18px 0 40px rgba(28, 30, 33, 0.08); }
}
@media (prefers-reduced-motion: reduce) {
    .acct-panel { transition: none; }
}
