:root {
    --orange: #ee6400;
    --orange-dark: #c94f00;
    --orange-soft: #fff1e7;
    --ink: #1f2428;
    --muted: #69737d;
    --line: #e4e8eb;
    --surface: #ffffff;
    --canvas: #f4f6f7;
    --green: #16835b;
    --green-soft: #e9f7f1;
    --blue: #2874c6;
    --blue-soft: #edf5fd;
    --red: #b8192b;
    --warning: #a76000;
    --shadow: 0 8px 24px rgba(31, 36, 40, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    background: #e9edef;
    color: var(--ink);
    font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif;
    letter-spacing: 0;
}

body {
    margin: 0;
    min-width: 320px;
    background: #e9edef;
}

button,
input,
select,
textarea {
    color: inherit;
    font: inherit;
    letter-spacing: 0;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

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

img {
    display: block;
    max-width: 100%;
}

h1,
h2,
p {
    margin: 0;
}

.app-shell {
    position: relative;
    width: min(100%, 500px);
    min-height: 100dvh;
    margin: 0 auto;
    overflow-x: hidden;
    background: var(--surface);
}

.topbar {
    position: sticky;
    z-index: 40;
    top: 0;
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    min-height: 56px;
    padding: env(safe-area-inset-top) 12px 0;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.98);
}

.brand-mark {
    grid-column: 1 / 3;
    grid-row: 1;
    position: relative;
    display: block;
    width: 122px;
    height: 30px;
    align-self: center;
    overflow: hidden;
}

.brand-logo {
    position: absolute;
    top: -13px;
    left: -44px;
    width: 205px;
    height: auto;
    max-width: none;
}

.topbar__title {
    grid-column: 2;
    grid-row: 1;
    overflow: hidden;
    font-size: 16px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.icon-button {
    display: inline-grid;
    width: 40px;
    height: 40px;
    padding: 9px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
}

.icon-button img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.back-button {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    font-size: 36px;
    font-weight: 300;
    line-height: 1;
}

.notification-button {
    grid-column: 3;
    grid-row: 1;
    align-self: center;
    justify-self: end;
    padding: 4px;
}

.notification-button img {
    width: 31px;
    height: 31px;
}

.screen {
    min-height: calc(100dvh - 56px);
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
}

.screen.has-page-state > :not(.page-state-panel) {
    display: none !important;
}

.page-state-panel {
    min-height: clamp(420px, 68vh, 640px);
    padding: 72px 24px 96px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #fff;
}

.page-state-panel[hidden] {
    display: none;
}

.page-state-panel__icon {
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
    border: 2px solid #f56600;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #b54700;
    background: #fff7f0;
    font-size: 28px;
    font-weight: 800;
}

.page-state-panel__icon span::before {
    content: "!";
}

.page-state-panel__icon.is-loading {
    border-color: #d7dce1;
    background: #fff;
}

.page-state-panel__icon.is-loading span {
    width: 24px;
    height: 24px;
    border: 3px solid #e1e5e9;
    border-top-color: #f56600;
    border-radius: 50%;
    animation: allyes-state-spin 0.8s linear infinite;
}

.page-state-panel__icon.is-loading span::before {
    content: "";
}

.page-state-panel__icon.is-empty span::before {
    content: "0";
    font-size: 20px;
}

.page-state-panel__icon.is-permission span::before {
    content: "i";
    font-family: Georgia, serif;
}

.page-state-panel__copy {
    max-width: 390px;
}

.page-state-panel__copy h1 {
    margin: 0;
    font-size: 24px;
    line-height: 1.35;
}

.page-state-panel__copy p {
    margin: 10px 0 0;
    color: #5f6872;
    font-size: 15px;
    line-height: 1.65;
    word-break: keep-all;
}

.page-state-panel__actions {
    width: min(100%, 360px);
    margin-top: 28px;
    display: grid;
    gap: 10px;
}

.page-state-panel__actions button {
    width: 100%;
    min-height: 50px;
}

.page-state-panel__actions .secondary-button {
    border: 1px solid #aab2bb;
    background: #fff;
    color: #20252b;
    font-weight: 700;
}

.inline-state {
    padding: 28px 18px;
    border: 1px solid #e1e5e9;
    background: #f8f9fa;
    color: #5f6872;
    text-align: center;
    line-height: 1.6;
}

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

.screen--home {
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
}

.bottom-nav {
    position: fixed;
    z-index: 50;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: min(100%, 500px);
    height: calc(68px + env(safe-area-inset-bottom));
    margin: 0 auto;
    padding: 6px 8px env(safe-area-inset-bottom);
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.98);
}

.bottom-nav--merchant {
    grid-template-columns: repeat(5, 1fr);
}

.bottom-nav a {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 2px;
    min-width: 0;
    color: #7d858d;
    font-size: 11px;
    font-weight: 700;
}

.bottom-nav__icon {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 7px;
}

.bottom-nav__icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.65;
}

.bottom-nav a.is-active {
    color: var(--orange);
}

.bottom-nav a.is-active .bottom-nav__icon {
    background: var(--orange-soft);
}

.bottom-nav a.is-active img {
    filter: none;
    opacity: 1;
}

.business-footer {
    display: grid;
    margin: 0 auto calc(68px + env(safe-area-inset-bottom));
    padding: 18px 16px 20px;
    gap: 5px;
    border-top: 8px solid var(--canvas);
    color: var(--muted);
    background: #fff;
    font-size: 10px;
    line-height: 1.55;
}

.business-footer strong {
    color: var(--ink);
    font-size: 12px;
}

.business-footer a {
    width: fit-content;
    margin-top: 3px;
    color: var(--blue);
    font-weight: 800;
}

.business-footer__accordion summary {
    display: flex;
    min-height: 32px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    list-style: none;
}

.business-footer__accordion summary::-webkit-details-marker {
    display: none;
}

.business-footer__accordion summary span {
    color: var(--muted);
    font-size: 22px;
    line-height: 1;
    transform: rotate(0deg);
    transition: transform 0.18s ease;
}

.business-footer__accordion[open] summary span {
    transform: rotate(90deg);
}

.business-footer__details {
    display: grid;
    margin-top: 6px;
    gap: 5px;
}

.map-home {
    position: relative;
}

.map-controls {
    position: absolute;
    z-index: 20;
    top: 16px;
    right: 14px;
    left: 14px;
    display: flex;
    gap: 8px;
}

.location-select {
    display: flex;
    min-width: 0;
    height: 44px;
    padding: 0 12px;
    flex: 1;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(31, 36, 40, 0.08);
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(31, 36, 40, 0.12);
    font-size: 14px;
    font-weight: 800;
}

.location-select img,
.search-button img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.location-select .chevron {
    margin-left: auto;
    color: var(--muted);
}

.search-button {
    width: 44px;
    height: 44px;
    padding: 11px;
    border: 1px solid rgba(31, 36, 40, 0.08);
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(31, 36, 40, 0.12);
}

.filter-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0 14px;
    scrollbar-width: none;
}

.filter-row::-webkit-scrollbar {
    display: none;
}

.filter-row--map {
    position: absolute;
    z-index: 20;
    top: 70px;
    right: 0;
    left: 0;
    padding: 0 14px;
}

.filter-chip {
    display: inline-flex;
    min-width: max-content;
    height: 36px;
    padding: 0 14px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    color: #4d5760;
    font-size: 13px;
    font-weight: 700;
}

.filter-chip.is-active {
    border-color: var(--ink);
    color: #fff;
    background: var(--ink);
}

.map-canvas {
    position: relative;
    height: calc(100dvh - 164px);
    min-height: 520px;
    overflow: hidden;
    background: #e7eef0 url("/image/mobile/map2.png") center/cover no-repeat;
}

.map-marker {
    position: absolute;
    z-index: 8;
    display: grid;
    width: 42px;
    height: 48px;
    place-items: start center;
    transform: translate(-50%, -100%);
    border-radius: 21px 21px 21px 4px;
    color: #fff;
    background: var(--orange);
    box-shadow: 0 4px 12px rgba(31, 36, 40, 0.24);
}

.map-marker::after {
    position: absolute;
    right: 4px;
    bottom: 4px;
    width: 7px;
    height: 7px;
    border: 2px solid #fff;
    border-radius: 50%;
    content: "";
}

.map-marker span {
    display: grid;
    width: 34px;
    height: 34px;
    margin-top: 4px;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    font-size: 13px;
    font-weight: 900;
}

.map-marker--active {
    z-index: 10;
    width: 48px;
    height: 54px;
    border-radius: 24px 24px 24px 5px;
    background: var(--ink);
}

.map-marker--active span {
    width: 40px;
    height: 40px;
}

.map-canvas--consumer .consumer-map-marker {
    display: flex;
    width: 82px;
    height: 68px;
    align-items: center;
    flex-direction: column;
    transform: translate(-50%, -50%);
    border-radius: 0;
    color: var(--ink);
    background: transparent;
    box-shadow: none;
}

.consumer-alliance-lines {
    position: absolute;
    z-index: 6;
    inset: 0;
    pointer-events: none;
}

.consumer-alliance-line {
    position: absolute;
    height: 0;
    transform-origin: 0 50%;
    border-top: 3px dashed #e36b00;
    filter: drop-shadow(0 1px 0 #fff);
}

.map-canvas--consumer .consumer-map-marker::after {
    display: none;
}

.map-canvas--consumer .consumer-map-marker__icon {
    position: relative;
    display: grid;
    width: 42px;
    height: 42px;
    margin: 0;
    place-items: center;
    border: 1px solid #c7cfd3;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 3px 10px rgba(31, 36, 40, 0.16);
}

.map-canvas--consumer .consumer-map-marker.is-alliance-visible .consumer-map-marker__icon {
    border: 2px solid var(--orange);
}

.map-canvas--consumer .consumer-map-marker--active .consumer-map-marker__icon {
    background: #fff4e8;
    box-shadow: 0 0 0 3px rgba(255, 141, 16, 0.24), 0 4px 12px rgba(31, 36, 40, 0.2);
}

.map-canvas--consumer .consumer-map-marker__icon > img:first-child {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.map-canvas--consumer .consumer-map-marker__icon .consumer-map-marker__alliance {
    position: absolute;
    top: -7px;
    right: -7px;
    width: 18px;
    height: 18px;
    border: 1px solid #fff;
    border-radius: 50%;
    background: #fff;
    object-fit: contain;
    opacity: 0;
    transform: scale(0.72);
    transition: opacity 160ms ease, transform 160ms ease;
}

.map-canvas--consumer .consumer-map-marker.is-alliance-visible .consumer-map-marker__alliance {
    opacity: 1;
    transform: scale(1);
}

.map-canvas--consumer .consumer-map-marker__name {
    display: block;
    max-width: 82px;
    margin-top: 4px;
    overflow: hidden;
    padding: 2px 5px;
    border: 1px solid rgba(31, 36, 40, 0.1);
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 2px 7px rgba(31, 36, 40, 0.12);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.current-location {
    position: absolute;
    right: 16px;
    bottom: 194px;
    display: grid;
    width: 44px;
    height: 44px;
    padding: 10px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    box-shadow: var(--shadow);
}

.current-location img {
    width: 24px;
    height: 24px;
}

.map-list-button {
    position: absolute;
    right: 16px;
    bottom: 136px;
    display: flex;
    height: 42px;
    padding: 0 13px;
    align-items: center;
    gap: 7px;
    border-radius: 21px;
    color: #fff;
    background: var(--ink);
    box-shadow: var(--shadow);
    font-size: 13px;
    font-weight: 800;
}

.map-list-button img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

.map-store-sheet {
    position: absolute;
    z-index: 20;
    right: 12px;
    bottom: 14px;
    left: 12px;
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    min-height: 108px;
    padding: 10px;
    gap: 12px;
    border: 1px solid rgba(31, 36, 40, 0.06);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
    max-height: min(380px, calc(100dvh - 220px));
    overflow-x: hidden;
    overflow-y: auto;
}

.map-store-sheet__products,
.store-product-selector {
    display: grid;
    grid-column: 1 / -1;
    gap: 6px;
}

.course-product-button {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 46px;
    padding: 8px 10px;
    align-items: center;
    gap: 2px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink);
    background: #fff;
    text-align: left;
}

.course-product-button span {
    overflow: hidden;
    font-size: 12px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.course-product-button small {
    grid-column: 1;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.course-product-button b {
    grid-column: 2;
    grid-row: 1 / span 2;
    color: var(--orange-dark);
    font-size: 11px;
}

.course-product-button.is-added {
    border-color: var(--orange);
    background: var(--orange-soft);
}

.product-select-intro {
    margin: 14px 0 8px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.map-store-sheet[hidden] {
    display: none !important;
}

.map-store-sheet > img {
    width: 82px;
    height: 88px;
    border-radius: 6px;
    object-fit: cover;
}

.map-store-sheet__body {
    min-width: 0;
}

.map-store-sheet__course {
    width: 76px;
    min-height: 42px;
    margin: 0;
    align-self: center;
    line-height: 1.35;
}

.store-sheet__top {
    display: flex;
    align-items: center;
    gap: 6px;
}

.map-store-sheet a {
    display: block;
    margin: 6px 0 4px;
    font-size: 17px;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.map-store-sheet p {
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 12px;
}

.map-store-sheet p strong {
    color: var(--orange-dark);
}

.map-store-sheet .benefit-line {
    display: block;
    max-width: 100%;
    line-height: 1.45;
    overflow-wrap: anywhere;
    text-overflow: clip;
    white-space: normal;
}

.category-label,
.promo-label,
.open-label,
.status-pill,
.promo-state {
    display: inline-flex;
    min-height: 22px;
    padding: 0 8px;
    align-items: center;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
}

.merchant-product-status.is-suspended {
    color: #4b535c;
    background: #eef0f2;
}

.category-label {
    color: var(--blue);
    background: var(--blue-soft);
}

.open-label,
.status-pill {
    color: var(--green);
    background: var(--green-soft);
}

.promo-label {
    color: var(--orange-dark);
    background: var(--orange-soft);
}

.benefit-line {
    overflow: hidden;
    color: var(--orange-dark);
    font-size: 12px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.content-section {
    padding: 20px 16px 30px;
}

.search-field {
    display: flex;
    height: 48px;
    margin-bottom: 14px;
    padding: 0 14px;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--canvas);
}

.search-field img {
    width: 20px;
    height: 20px;
}

.search-field input {
    min-width: 0;
    height: 100%;
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 14px;
}

.section-heading {
    display: flex;
    margin: 8px 0 14px;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
}

.section-heading h1,
.section-heading h2 {
    margin-top: 4px;
    font-size: 20px;
    line-height: 1.35;
}

.section-heading > h2 {
    margin: 0;
}

.eyebrow {
    color: var(--orange-dark);
    font-size: 12px;
    font-weight: 800;
}

.text-link {
    min-width: max-content;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.store-list {
    display: grid;
    gap: 12px;
}

.store-card {
    display: grid;
    grid-template-columns: 116px 1fr;
    min-height: 126px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.store-card__image img {
    width: 100%;
    height: 100%;
    min-height: 124px;
    object-fit: cover;
}

.store-card__body {
    min-width: 0;
    padding: 12px;
}

.store-card__topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.heart-button {
    width: 30px;
    height: 30px;
    padding: 5px;
}

.heart-button img {
    width: 20px;
    height: 20px;
}

.store-card__title {
    display: block;
    overflow: hidden;
    margin: 6px 0;
    font-size: 17px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.store-meta {
    display: flex;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 4px 8px;
    color: var(--muted);
    font-size: 12px;
}

.store-meta strong {
    color: var(--orange-dark);
}

.detail-page {
    padding-bottom: 24px;
}

.detail-hero {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--canvas);
}

.detail-hero > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-heart {
    position: absolute;
    right: 14px;
    bottom: 14px;
    background: #fff;
    box-shadow: var(--shadow);
}

.detail-summary {
    padding: 20px 16px;
    border-bottom: 8px solid var(--canvas);
}

.detail-summary h1 {
    margin: 9px 0 8px;
    font-size: 24px;
    line-height: 1.35;
}

.detail-description {
    margin-top: 14px;
    color: #4d5760;
    font-size: 14px;
    line-height: 1.7;
}

.contact-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 18px;
    gap: 8px;
}

.contact-actions--single { grid-template-columns: 1fr; }

.contact-actions button,
.contact-actions a {
    display: flex;
    height: 46px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
    font-size: 14px;
    font-weight: 800;
}

.contact-actions img {
    width: 19px;
    height: 19px;
    object-fit: contain;
}

.detail-section {
    padding: 20px 16px;
    border-bottom: 8px solid var(--canvas);
}

.detail-section h2 {
    margin-bottom: 14px;
    font-size: 18px;
}

.promo-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 58px;
    min-height: 112px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.promo-card__link {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    min-width: 0;
}

.promo-card__link > img {
    width: 108px;
    height: 100%;
    object-fit: cover;
}

.promo-card__link > div {
    min-width: 0;
    padding: 12px;
}

.promo-card strong {
    display: block;
    margin: 7px 0;
    font-size: 15px;
    line-height: 1.4;
}

.promo-card p {
    display: flex;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
}

.promo-card b {
    color: var(--orange-dark);
    font-size: 15px;
}

.promo-card__basket {
    display: grid;
    width: 58px;
    min-height: 100%;
    padding: 8px;
    place-items: center;
    border: 0;
    border-left: 1px solid var(--line);
    background: #fff8f1;
}

.promo-card__basket.is-added { background: var(--orange); }
.promo-card__basket.is-added b { color: #fff; }

.info-list dl {
    display: grid;
    grid-template-columns: 80px 1fr;
    margin: 0;
    padding: 12px 0;
    border-top: 1px solid var(--line);
    font-size: 13px;
    line-height: 1.6;
}

.info-list dt {
    color: var(--muted);
}

.info-list dd {
    margin: 0;
}

.detail-report-link {
    display: flex;
    min-height: 64px;
    margin-top: 6px;
    padding: 14px 0 2px;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    color: var(--ink);
    gap: 16px;
}

.store-hide-button {
    width: 100%;
    margin-top: 12px;
    padding: 12px 0;
    border: 0;
    border-top: 1px solid #e5e7e9;
    background: transparent;
    color: #53595f;
    font: inherit;
    font-size: 15px;
    cursor: pointer;
}

.blocked-stores-list article {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid #e5e7e9;
}

.blocked-stores-list strong {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 17px;
}

.blocked-stores-list button {
    flex: 0 0 auto;
    min-height: 44px;
}

.detail-report-link span {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.detail-report-link strong {
    font-size: 14px;
}

.detail-report-link small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.detail-report-link > b {
    flex: 0 0 auto;
    color: var(--orange-dark);
    font-size: 13px;
}

.promo-label--hero {
    position: absolute;
    bottom: 14px;
    left: 14px;
    min-height: 28px;
    padding: 0 10px;
    background: #fff;
    box-shadow: var(--shadow);
}

.price-block {
    display: grid;
    margin-top: 16px;
    gap: 5px;
}

.price-block span {
    color: var(--muted);
    font-size: 13px;
}

.price-block strong {
    color: var(--orange-dark);
    font-size: 22px;
}

.notice-box,
.info-banner,
.form-notice {
    margin-top: 18px;
    padding: 14px;
    border-left: 4px solid var(--orange);
    border-radius: 4px;
    background: var(--orange-soft);
}

.notice-box strong,
.info-banner strong,
.form-notice strong {
    font-size: 14px;
}

.notice-box p,
.info-banner p,
.form-notice p {
    margin-top: 5px;
    color: #5f524a;
    font-size: 12px;
    line-height: 1.6;
}

.sticky-action {
    position: sticky;
    bottom: calc(68px + env(safe-area-inset-bottom));
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.96);
}

.sticky-action button,
.primary-button {
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 7px;
    color: #fff;
    background: var(--orange);
    font-size: 15px;
    font-weight: 900;
}

.profile-band,
.merchant-profile {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 8px;
    background: var(--canvas);
}

.profile-avatar {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--orange);
    font-size: 20px;
    font-weight: 900;
}

.profile-band div:nth-child(2),
.merchant-profile div {
    display: grid;
    gap: 3px;
}

.profile-band span,
.merchant-profile p {
    color: var(--muted);
    font-size: 12px;
}

.profile-band strong,
.merchant-profile strong {
    font-size: 17px;
}

.small-button,
.primary-small {
    display: inline-grid;
    min-width: 54px;
    height: 32px;
    padding: 0 10px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    font-size: 12px;
    font-weight: 800;
}

.primary-small {
    border-color: var(--orange);
    color: #fff;
    background: var(--orange);
}

.my-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 18px 0;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.my-summary a {
    display: grid;
    min-width: 0;
    min-height: 74px;
    padding: 12px 4px;
    align-content: center;
    justify-items: center;
    gap: 4px;
    border-right: 1px solid var(--line);
}

.my-summary a:last-child {
    border-right: 0;
}

.my-summary strong {
    font-size: 20px;
}

.my-summary span {
    color: var(--muted);
    font-size: 11px;
}

.menu-list {
    border-top: 1px solid var(--line);
}

.menu-list a {
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    font-weight: 700;
}

.menu-list b {
    color: #9aa1a7;
    font-size: 22px;
}

.version-text {
    padding: 24px 0 8px;
    color: #a0a6ac;
    font-size: 11px;
    text-align: center;
}

.merchant-home {
    padding: 0;
}

.merchant-greeting {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.merchant-greeting h1 {
    margin-top: 4px;
    font-size: 23px;
}

.status-pill {
    min-height: 30px;
    padding: 0 10px;
}

.merchant-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 18px 0 24px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.merchant-kpis > * {
    display: grid;
    min-width: 0;
    min-height: 82px;
    padding: 12px 6px;
    align-content: center;
    justify-items: center;
    gap: 5px;
    border-right: 1px solid var(--line);
}

.merchant-kpis > *:last-child {
    border-right: 0;
}

.merchant-kpis span {
    color: var(--muted);
    font-size: 11px;
}

.merchant-kpis strong {
    font-size: 22px;
}

.merchant-map-section {
    margin: 0;
    padding: 0 0 20px;
    border-bottom: 8px solid var(--canvas);
}

.merchant-map-section > .section-heading {
    padding: 0 16px;
}

.map-canvas--merchant {
    height: calc(100dvh - 124px);
    min-height: 520px;
    max-height: none;
    border: 0;
    border-radius: 0;
}

.merchant-map-toolbar {
    position: absolute;
    z-index: 20;
    top: 12px;
    right: 12px;
    left: 12px;
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.merchant-alliance-link {
    display: grid;
    min-width: 76px;
    padding: 0 10px;
    place-items: center;
    border: 1px solid rgba(31, 36, 40, 0.1);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 4px 14px rgba(31, 36, 40, 0.14);
    font-size: 12px;
    font-weight: 800;
}

.map-canvas--merchant .map-marker {
    display: flex;
    width: auto;
    min-width: 88px;
    max-width: 124px;
    height: 40px;
    padding: 0 12px 0 46px;
    align-items: center;
    justify-content: flex-start;
    transform: translate(-20px, -50%);
    border: 1px solid var(--line);
    border-left: 0;
    border-radius: 20px;
    color: var(--ink);
    background: #fff;
    box-shadow: 0 2px 8px rgba(31, 36, 40, 0.16);
}

.map-canvas--merchant .map-marker::after {
    display: none;
}

.map-canvas--merchant .map-marker.is-selected {
    z-index: 18;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(244, 102, 0, 0.16), 0 4px 12px rgba(31, 36, 40, 0.18);
}

.map-canvas--merchant .merchant-map-marker__icon {
    position: absolute;
    top: -1px;
    left: 0;
    display: grid;
    width: 40px;
    height: 40px;
    margin: 0;
    place-items: center;
    overflow: visible;
    border: 2px solid var(--orange);
    border-radius: 50%;
    background: #fff;
}

.map-canvas--merchant .map-marker--owner .merchant-map-marker__icon {
    border: 0;
}

.map-canvas--merchant .map-marker--general .merchant-map-marker__icon {
    border-color: #aeb7bc;
}

.merchant-map-marker__icon > img:first-child {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.map-canvas--merchant .merchant-map-marker__icon .merchant-map-marker__alliance {
    position: absolute;
    top: -7px;
    right: -6px;
    width: 18px;
    height: 18px;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.merchant-map-marker__name {
    display: block;
    max-width: 68px;
    overflow: hidden;
    color: var(--ink);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.merchant-map-notice,
.merchant-visibility-notice {
    margin-top: 10px;
    padding: 11px 12px;
    border-left: 3px solid var(--orange);
    color: var(--muted);
    background: var(--orange-soft);
    font-size: 11px;
    line-height: 1.55;
}

.merchant-map-notice {
    margin-right: 16px;
    margin-left: 16px;
}

.merchant-store-sheet {
    position: absolute;
    z-index: 24;
    right: 12px;
    bottom: 12px;
    left: 12px;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) minmax(76px, auto);
    min-height: 96px;
    margin: 0;
    padding: 10px;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--orange);
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 6px 24px rgba(31, 36, 40, 0.2);
}

.merchant-store-sheet[hidden] { display: none; }

.merchant-store-sheet > img {
    width: 64px;
    height: 64px;
    border-radius: 6px;
    object-fit: cover;
}

.merchant-store-sheet__body {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.merchant-store-sheet__body > span,
.merchant-store-sheet__body > p {
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.merchant-store-sheet__body > strong { font-size: 15px; }

.merchant-store-sheet__side {
    display: grid;
    justify-items: end;
    gap: 7px;
}

.merchant-store-sheet__actions {
    display: flex;
    max-width: 104px;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 5px;
}

.merchant-store-sheet__actions button,
.alliance-card-actions button {
    min-height: 36px;
    padding: 0 9px;
    border: 1px solid var(--orange);
    border-radius: 6px;
    color: #fff;
    background: var(--orange);
    font-size: 12px;
    font-weight: 800;
}

.merchant-store-sheet__actions button.is-secondary,
.alliance-card-actions button.is-secondary {
    color: var(--ink);
    border-color: var(--line);
    background: #fff;
}

.merchant-visibility-notice {
    display: grid;
    gap: 4px;
}

.merchant-visibility-notice strong {
    color: var(--ink);
    font-size: 12px;
}

.merchant-kpis--compact {
    grid-template-columns: repeat(2, 1fr);
}

.alliance-partner-section .section-heading > img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.alliance-partner-intro {
    margin: -4px 0 12px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.55;
}

.alliance-partner-list {
    display: grid;
    gap: 8px;
}

.alliance-partner-list article {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) 72px;
    min-height: 76px;
    padding: 8px;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--orange);
    border-radius: 6px;
}

.alliance-partner-list article > img {
    width: 58px;
    height: 58px;
    border-radius: 4px;
    object-fit: cover;
}

.alliance-partner-list article > div {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.alliance-partner-list strong,
.alliance-partner-list span,
.alliance-partner-list p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.alliance-partner-list strong { font-size: 12px; }
.alliance-partner-list span,
.alliance-partner-list p { color: var(--muted); font-size: 9px; }
.alliance-store-link {
    display: grid;
    width: 72px;
    min-height: 42px;
    padding: 6px;
    place-items: center;
    border: 1px solid var(--orange);
    border-radius: 5px;
    color: var(--orange-dark);
    background: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding-top: 20px;
    gap: 8px;
}

.quick-actions a {
    display: grid;
    min-height: 82px;
    padding: 12px 6px;
    align-content: center;
    justify-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
}

.quick-actions img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.info-banner {
    margin: 0 0 18px;
    border-left-color: var(--blue);
    background: var(--blue-soft);
}

.info-banner p {
    color: #425a70;
}

.alliance-list {
    display: grid;
    gap: 10px;
}

.alliance-list article {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    min-width: 0;
    padding: 10px;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.alliance-list article[hidden] { display: none; }

.alliance-list img {
    width: 64px;
    height: 64px;
    border-radius: 6px;
    object-fit: cover;
}

.alliance-list article > div {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.alliance-list span,
.alliance-list p {
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.alliance-list strong {
    font-size: 15px;
}

.alliance-card-actions {
    display: flex;
    max-width: 112px;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 5px;
}

.alliance-card-actions button {
    min-height: 34px;
    padding: 0 9px;
    font-size: 11px;
}

.alliance-state {
    display: inline-grid;
    width: max-content;
    min-height: 24px;
    padding: 0 8px;
    place-items: center;
    border-radius: 4px;
    color: #52616b;
    background: #edf1f3;
    font-size: 10px;
    font-weight: 900;
}

.alliance-state.is-active { color: #00635f; background: #dff5f2; }
.alliance-state.is-incoming { color: #a34300; background: var(--orange-soft); }
.alliance-state.is-outgoing { color: #245c8f; background: #e7f1fb; }
.alliance-state.is-blocked { color: #6d5555; background: #f2eded; }

.alliance-action-dialog {
    width: min(calc(100% - 32px), 390px);
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(31, 36, 40, 0.24);
}

.alliance-action-dialog::backdrop { background: rgba(24, 29, 33, 0.48); }

.alliance-action-dialog__head {
    display: flex;
    min-height: 54px;
    padding: 0 14px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
}

.alliance-action-dialog__head button {
    width: 36px;
    height: 36px;
    border: 0;
    color: var(--muted);
    background: transparent;
    font-size: 23px;
}

.alliance-action-dialog > p {
    margin: 0;
    padding: 18px 16px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.alliance-action-dialog__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0 16px 16px;
    gap: 8px;
}

.alliance-action-dialog__actions button {
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    font-weight: 800;
}

.alliance-action-dialog__actions button:last-child {
    color: #fff;
    border-color: var(--orange);
    background: var(--orange);
}

.merchant-kpis--compact {
    margin-top: 0;
    margin-bottom: 22px;
    background: var(--canvas);
}

.merchant-promo-list {
    display: grid;
    gap: 12px;
}

.merchant-promo {
    display: grid;
    grid-template-columns: 104px 1fr;
    min-height: 134px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.merchant-promo > img {
    width: 104px;
    height: 100%;
    object-fit: cover;
}

.merchant-promo > div {
    min-width: 0;
    padding: 11px;
}

.merchant-promo__heading {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.merchant-product-status {
    display: inline-grid;
    min-width: max-content;
    min-height: 24px;
    padding: 0 7px;
    place-items: center;
    border-radius: 4px;
    color: #00635f;
    background: #dff5f2;
    font-size: 11px;
    font-weight: 800;
}

.promo-state {
    color: var(--green);
    background: var(--green-soft);
}

.promo-state.is-waiting {
    color: var(--warning);
    background: #fff4dd;
}

.merchant-promo strong {
    display: block;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.merchant-price-list {
    display: grid;
    margin-top: 7px;
    gap: 6px;
}

.merchant-base-price {
    display: flex;
    min-width: 0;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--line);
}

.merchant-price-list dt {
    color: var(--muted);
    font-size: 12px;
}

.merchant-base-price dd {
    margin: 0;
    font-size: 13px;
    font-weight: 800;
}

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

.merchant-price-comparison > div {
    min-width: 0;
    padding: 0 7px;
    border-right: 1px solid var(--line);
}

.merchant-price-comparison > div:first-child { padding-left: 0; }
.merchant-price-comparison > div:last-child { padding-right: 0; border-right: 0; }

.merchant-price-comparison dd {
    display: flex;
    min-width: 0;
    margin: 3px 0 0;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px;
}

.merchant-price-comparison b {
    font-size: 14px;
    white-space: nowrap;
}

.merchant-price-comparison em {
    color: var(--muted);
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
    white-space: nowrap;
}

.merchant-price-comparison .is-alliance b,
.merchant-price-comparison .is-alliance em {
    color: var(--orange-dark);
}

.row-actions {
    display: flex;
    margin-top: 10px;
    gap: 6px;
}

.row-actions button {
    height: 28px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: #fff;
    font-size: 11px;
    font-weight: 700;
}

.floating-add {
    position: fixed;
    z-index: 45;
    right: max(18px, calc((100vw - 500px) / 2 + 18px));
    bottom: calc(84px + env(safe-area-inset-bottom));
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--orange);
    box-shadow: var(--shadow);
    font-size: 28px;
    font-weight: 300;
}

.form-page {
    display: grid;
    gap: 18px;
}

.form-intro {
    margin-bottom: 2px;
}

.form-intro h1 {
    margin: 5px 0 8px;
    font-size: 23px;
}

.form-intro p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.form-field {
    display: grid;
    gap: 8px;
}

.form-field > span {
    font-size: 13px;
    font-weight: 800;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 11px 12px;
    border: 1px solid #cfd5da;
    border-radius: 6px;
    outline: 0;
    background: #fff;
    font-size: 14px;
}

.form-field textarea {
    resize: vertical;
}

.support-page {
    display: grid;
    gap: 20px;
}

.support-intro h1 {
    margin: 4px 0 8px;
    font-size: 24px;
}

.support-intro p,
.support-form__notice {
    margin: 0;
    color: #667085;
    line-height: 1.55;
}

.support-form {
    display: grid;
    gap: 14px;
    padding: 18px 0 22px;
    border-top: 1px solid #eaecf0;
    border-bottom: 1px solid #eaecf0;
}

.support-form__notice {
    font-size: 13px;
}

.support-history {
    min-width: 0;
}

.support-list {
    border-top: 1px solid #eaecf0;
}

.support-list__item {
    position: relative;
    display: grid;
    width: 100%;
    min-height: 92px;
    padding: 15px 34px 15px 0;
    border: 0;
    border-bottom: 1px solid #eaecf0;
    background: #fff;
    color: #101828;
    text-align: left;
    gap: 5px;
}

.support-list__item > b {
    position: absolute;
    top: 50%;
    right: 4px;
    transform: translateY(-50%);
    color: #98a2b3;
    font-size: 24px;
}

.support-list__item small {
    color: #667085;
}

.support-list__status {
    width: max-content;
    color: #9a6700;
    font-size: 12px;
    font-weight: 700;
}

.support-list__status.is-closed,
.support-detail-dialog__head .is-closed {
    color: #007d79;
}

.support-detail-dialog {
    width: min(430px, calc(100% - 32px));
    max-height: min(720px, calc(100dvh - 32px));
    padding: 0;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 22px 60px rgba(16, 24, 40, 0.24);
}

.support-detail-dialog::backdrop {
    background: rgba(16, 24, 40, 0.45);
}

.support-detail-dialog__head,
.support-detail-dialog > section,
.support-detail-meta {
    padding: 18px 20px;
}

.support-detail-dialog__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    border-bottom: 1px solid #eaecf0;
}

.support-detail-dialog__head span {
    color: #9a6700;
    font-size: 12px;
    font-weight: 700;
}

.support-detail-dialog__head h2 {
    margin: 5px 0 0;
    font-size: 19px;
}

.support-detail-dialog__head button {
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    font-size: 25px;
}

.support-detail-meta {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 8px 12px;
    margin: 0;
    background: #f8fafc;
    font-size: 13px;
}

.support-detail-meta dt {
    color: #667085;
}

.support-detail-meta dd {
    margin: 0;
    font-weight: 600;
}

.support-detail-dialog > section {
    border-top: 1px solid #eaecf0;
}

.support-detail-dialog > section h3 {
    margin: 0 0 9px;
    font-size: 15px;
}

.support-detail-dialog > section p {
    margin: 0;
    white-space: pre-wrap;
    line-height: 1.6;
}

.support-detail-response {
    background: #eef8f7;
}

.support-detail-response.is-waiting {
    background: #fff8e6;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px var(--orange-soft);
}

.field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.image-picker {
    display: grid;
    grid-template-columns: 84px 1fr;
    min-height: 84px;
    padding: 0;
    align-items: center;
    overflow: hidden;
    border: 1px dashed #bdc5cb;
    border-radius: 7px;
    background: var(--canvas);
    cursor: pointer;
}

.image-picker img {
    width: 84px;
    height: 84px;
    object-fit: cover;
}

.image-picker b {
    display: block;
    font-size: 13px;
}

.image-picker span {
    display: grid;
    padding: 0 12px;
    gap: 4px;
}

.image-picker small {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.4;
}

.image-picker input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.image-picker:focus-within {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px var(--orange-soft);
}

.product-image-actions {
    display: flex;
    min-height: 28px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.product-image-actions p {
    min-width: 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.45;
}

.product-image-actions button {
    flex: 0 0 auto;
    min-height: 28px;
    padding: 0 9px;
    border: 1px solid #cfd5da;
    border-radius: 5px;
    color: #4d5760;
    background: #fff;
    font-size: 11px;
    font-weight: 700;
}

.check-field {
    display: grid;
    grid-template-columns: 20px 1fr;
    align-items: start;
    gap: 8px;
    color: #4d5760;
    font-size: 13px;
    line-height: 1.5;
}

.check-field input {
    width: 18px;
    height: 18px;
    accent-color: var(--orange);
}

.form-notice {
    margin-top: 0;
}

.period-switch {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    height: 40px;
    margin-bottom: 18px;
    padding: 3px;
    border-radius: 7px;
    background: var(--canvas);
}

.period-switch button {
    border: 0;
    border-radius: 5px;
    color: var(--muted);
    background: transparent;
    font-size: 13px;
    font-weight: 800;
}

.period-switch button.is-active {
    color: var(--ink);
    background: #fff;
    box-shadow: 0 1px 5px rgba(31, 36, 40, 0.12);
}

.performance-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.performance-summary > div {
    display: grid;
    min-width: 0;
    min-height: 104px;
    padding: 13px 8px;
    align-content: center;
    gap: 5px;
    border-right: 1px solid var(--line);
}

.performance-summary > div:last-child {
    border-right: 0;
}

.performance-summary span,
.performance-summary small {
    color: var(--muted);
    font-size: 10px;
}

.performance-summary strong {
    font-size: 22px;
}

.performance-summary small {
    color: var(--green);
}

.chart-panel {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.chart-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chart-heading strong {
    font-size: 14px;
}

.chart-heading span {
    color: var(--muted);
    font-size: 11px;
}

.bar-chart {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    height: 180px;
    margin-top: 16px;
    padding-top: 12px;
    align-items: end;
    gap: 8px;
    border-bottom: 1px solid var(--line);
}

.bar-chart div {
    display: grid;
    height: 100%;
    align-items: end;
    justify-items: center;
    gap: 6px;
}

.bar-chart span {
    width: 100%;
    min-height: 8px;
    border-radius: 4px 4px 0 0;
    background: var(--orange);
}

.bar-chart small {
    margin-bottom: -20px;
    color: var(--muted);
    font-size: 10px;
}

.rank-list {
    margin-top: 34px;
}

.rank-list article {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    min-width: 0;
    padding: 13px 0;
    align-items: center;
    gap: 9px;
    border-top: 1px solid var(--line);
}

.rank-list article > span {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--ink);
    font-size: 11px;
    font-weight: 800;
}

.rank-list article div {
    min-width: 0;
}

.rank-list strong,
.rank-list p {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-list strong {
    font-size: 13px;
}

.rank-list p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
}

.rank-list b {
    color: var(--green);
    font-size: 12px;
}

.merchant-profile img {
    width: 52px;
    height: 52px;
    border-radius: 6px;
    object-fit: cover;
}

.adfree-panel {
    display: grid;
    margin: 18px 0;
    padding: 16px;
    gap: 14px;
    border: 1px solid #ffd0ad;
    border-radius: 8px;
    background: var(--orange-soft);
}

.adfree-panel div {
    display: grid;
    gap: 4px;
}

.adfree-panel span,
.adfree-panel p {
    color: #6b5547;
    font-size: 11px;
}

.adfree-panel strong {
    font-size: 18px;
}

.adfree-panel button {
    height: 42px;
    border: 0;
    border-radius: 6px;
    color: #fff;
    background: var(--orange);
    font-size: 13px;
    font-weight: 900;
}

.toast {
    position: fixed;
    z-index: 100;
    right: 18px;
    bottom: calc(84px + env(safe-area-inset-bottom));
    left: 18px;
    width: min(calc(100% - 36px), 464px);
    margin: 0 auto;
    padding: 13px 15px;
    transform: translateY(20px);
    border-radius: 7px;
    color: #fff;
    background: rgba(31, 36, 40, 0.94);
    box-shadow: var(--shadow);
    font-size: 12px;
    line-height: 1.5;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.bottom-nav {
    grid-template-columns: repeat(5, 1fr);
}

.tier-price {
    display: grid !important;
    margin-top: 7px !important;
    gap: 3px;
}

.tier-price span {
    color: var(--muted);
    font-size: 11px;
}

.tier-price b {
    color: var(--orange-dark);
    font-size: 12px;
}

.route-description {
    margin: -4px 0 14px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.route-map {
    position: relative;
    height: 285px;
    min-height: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.route-lines {
    position: absolute;
    z-index: 2;
    inset: 0;
    pointer-events: none;
}

.route-line {
    position: absolute;
    height: 5px;
    transform-origin: 0 50%;
    border-radius: 3px;
    background: var(--line-color, #e36b00);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.86);
}

.route-line.is-non-alliance {
    height: 0;
    border-top: 4px dashed var(--line-color, #69737d);
    background: transparent;
    box-shadow: none;
}

.route-marker {
    position: absolute;
    z-index: 4;
    display: flex;
    width: 82px;
    align-items: center;
    flex-direction: column;
    transform: translate(-50%, -50%);
}

.route-marker__icon {
    position: relative;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 3px solid var(--route-color, var(--orange));
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 3px 10px rgba(31, 36, 40, 0.16);
}

.route-marker__icon > img {
    width: 27px;
    height: 27px;
    object-fit: contain;
}

.route-marker__icon > b {
    position: absolute;
    top: -8px;
    left: -8px;
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 50%;
    color: #fff;
    background: var(--route-color, var(--orange));
    font-size: 10px;
}

.route-marker > strong {
    max-width: 82px;
    margin-top: 4px;
    overflow: hidden;
    padding: 2px 5px;
    border: 1px solid rgba(31, 36, 40, 0.1);
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.94);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.route-marker.is-non-alliance .route-marker__icon {
    border-style: dashed;
    filter: saturate(0.68);
}

.route-alliance-flash {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    min-height: 62px;
    margin: 10px 0 12px;
    padding: 10px 12px;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-left: 4px solid #9ba4aa;
    border-radius: 6px;
    background: #fff;
}

.route-alliance-flash.has-alliance {
    border-left-color: var(--orange);
    background: #fff8f1;
}

.route-alliance-flash.is-activated {
    animation: alliance-activate 650ms ease-out;
}

.route-alliance-flash > img { width: 30px; height: 30px; object-fit: contain; }
.route-alliance-flash > div { display: grid; min-width: 0; gap: 3px; }
.route-alliance-flash strong { font-size: 12px; }
.route-alliance-flash span { color: var(--muted); font-size: 10px; line-height: 1.45; }

@keyframes alliance-activate {
    0% { box-shadow: 0 0 0 0 rgba(227, 107, 0, 0.38); }
    100% { box-shadow: 0 0 0 8px rgba(227, 107, 0, 0); }
}

.route-help-button {
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--orange-dark);
    background: var(--orange-soft);
    font-size: 17px;
    font-weight: 900;
}

.route-view-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin: 4px 0 14px;
    border-bottom: 1px solid var(--line);
}

.route-view-tabs button {
    min-height: 42px;
    border: 0;
    border-bottom: 3px solid transparent;
    color: var(--muted);
    background: #fff;
    font-size: 12px;
    font-weight: 800;
}

.route-view-tabs button.is-active {
    border-bottom-color: var(--orange);
    color: var(--orange-dark);
}

.route-confirm-button {
    width: 100%;
    margin: -8px 0 22px;
}

.route-empty-state {
    display: grid;
    min-height: 280px;
    padding: 42px 20px;
    place-content: center;
    justify-items: center;
    gap: 10px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    text-align: center;
}

.route-empty-state[hidden] { display: none; }
.route-empty-state strong { font-size: 18px; }
.route-empty-state p { color: var(--muted); font-size: 13px; line-height: 1.55; }
.route-empty-state .primary-button {
    display: grid;
    width: 100%;
    min-width: 160px;
    max-width: 270px;
    margin-top: 8px;
    place-items: center;
    line-height: 1.2;
    text-decoration: none;
}

.route-page.is-route-empty .route-map,
.route-page.is-route-empty .route-alliance-flash,
.route-page.is-route-empty .route-rule-banner,
.route-page.is-route-empty .route-move-policy,
.route-page.is-route-empty .route-list,
.route-page.is-route-empty .route-total,
.route-page.is-route-empty .route-confirm-button {
    display: none;
}

.route-view-tabs button:disabled {
    color: var(--subtle);
    cursor: default;
}

.confirmed-route-panel {
    display: grid;
    gap: 12px;
}

.confirmed-route-panel[hidden],
[data-route-builder][hidden] {
    display: none !important;
}

.confirmed-route-panel > p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.confirmed-route-map {
    height: 300px;
    min-height: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.confirmed-route-marker {
    position: absolute;
    z-index: 5;
    display: flex;
    width: 82px;
    align-items: center;
    flex-direction: column;
    transform: translate(-50%, -50%);
}

.confirmed-route-marker[hidden] { display: none !important; }

.confirmed-route-marker__icon {
    position: relative;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 3px solid var(--route-color, var(--orange));
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 3px 10px rgba(31, 36, 40, 0.16);
}

.confirmed-route-marker__icon > img { width: 27px; height: 27px; object-fit: contain; }

.confirmed-route-marker__icon > b {
    position: absolute;
    top: -8px;
    left: -8px;
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 50%;
    color: #fff;
    background: var(--route-color, var(--orange));
    font-size: 10px;
    font-style: normal;
}

.confirmed-route-marker__icon > i {
    position: absolute;
    right: -7px;
    bottom: -5px;
    display: none;
    width: 22px;
    height: 22px;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 50%;
    color: #fff;
    background: var(--green);
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
}

.confirmed-route-marker.is-confirmed .confirmed-route-marker__icon > i { display: grid; }
.confirmed-route-marker.is-confirmed .confirmed-route-marker__icon { box-shadow: 0 0 0 4px rgba(36, 161, 72, 0.18); }
.confirmed-route-marker.is-out-of-order .confirmed-route-marker__icon { border-style: dashed; }

.confirmed-route-marker > strong {
    max-width: 82px;
    margin-top: 4px;
    overflow: hidden;
    padding: 2px 5px;
    border: 1px solid rgba(31, 36, 40, 0.1);
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.94);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.confirmed-route-map-legend {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    color: var(--muted);
    font-size: 9px;
}

.confirmed-route-map-legend span { display: flex; align-items: center; gap: 4px; }
.confirmed-route-map-legend i { width: 8px; height: 8px; border-radius: 50%; background: #9ba4aa; }
.confirmed-route-map-legend i.is-confirmed { background: var(--green); }

.confirmed-route-panel > ol {
    display: grid;
    margin: 0;
    padding: 0;
    gap: 8px;
    list-style: none;
}

.confirmed-route-panel > ol > li {
    display: grid;
    grid-template-columns: 30px 54px minmax(0, 1fr) auto;
    min-height: 92px;
    padding: 10px;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--route-color, var(--orange));
    border-radius: 7px;
    background: #fff;
}

.confirmed-route-panel > ol > li > b {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--route-color, var(--orange));
    font-size: 12px;
}

.confirmed-route-panel > ol > li.is-confirmed > b {
    box-shadow: 0 0 0 3px rgba(36, 161, 72, 0.18);
}

.confirmed-route-panel > ol > li.is-out-of-order {
    border-color: #e8a23a;
    background: #fff9ef;
}

.confirmed-route-panel > ol > li.is-out-of-order > b {
    background: #c87500;
}

.confirmed-route-panel > ol > li > img {
    width: 54px;
    height: 54px;
    border-radius: 6px;
    object-fit: cover;
}

.confirmed-route-panel > ol > li > div {
    display: grid;
    gap: 4px;
}

.confirmed-route-panel > ol > li strong {
    font-size: 12px;
}

.confirmed-route-panel > ol > li span,
.confirmed-route-panel > ol > li small,
.confirmed-route-panel > ol > li time {
    color: var(--muted);
    font-size: 10px;
}

.confirmed-route-panel > ol > li aside {
    display: grid;
    justify-items: end;
    gap: 4px;
}

.confirmed-route-panel > ol > li aside em {
    transform: rotate(-3deg);
    padding: 3px 5px;
    border: 2px solid var(--green);
    border-radius: 3px;
    color: var(--green);
    background: #fff;
    font-size: 8px;
    font-style: normal;
    font-weight: 900;
    white-space: nowrap;
}

.confirmed-route-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.confirmed-route-actions > .primary-button {
    display: grid;
    min-width: 0;
    place-items: center;
}

.confirmed-route-actions > button {
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid #a2191f;
    border-radius: 5px;
    color: #a2191f;
    background: #fff;
    font-size: 11px;
    font-weight: 800;
}

.confirmed-route-actions > .route-publish-button {
    border-color: var(--orange);
    color: var(--orange-dark);
}

.confirmed-route-actions > button[hidden] {
    display: none;
}

.confirmed-route-link {
    display: flex;
    min-height: 64px;
    margin: 14px 0;
    padding: 12px 14px;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--line);
    border-left: 4px solid var(--green);
    border-radius: 6px;
}

.confirmed-route-link span {
    display: grid;
    gap: 4px;
}

.confirmed-route-link b {
    font-size: 12px;
}

.confirmed-route-link small {
    color: var(--muted);
    font-size: 10px;
}

.route-help-dialog {
    width: min(420px, calc(100% - 28px));
    padding: 0;
    border: 1px solid var(--ink);
    border-radius: 7px;
    background: #fff;
}

.route-help-dialog::backdrop {
    background: rgba(20, 24, 27, 0.6);
}

.route-help-dialog__head {
    display: flex;
    min-height: 54px;
    padding: 10px 14px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
}

.route-help-dialog__head button {
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    font-size: 26px;
}

.route-help-dialog ol {
    display: grid;
    margin: 0;
    padding: 18px;
    gap: 12px;
    list-style: none;
}

.route-help-dialog li {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
}

.route-help-dialog li > b {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--orange);
    font-size: 12px;
}

.route-help-dialog li div {
    display: grid;
    gap: 3px;
}

.route-help-dialog li strong {
    font-size: 13px;
}

.route-help-dialog li p {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
}

.route-help-dialog > .primary-button {
    width: calc(100% - 36px);
    margin: 0 18px 18px;
}

.route-rule-banner {
    display: grid;
    margin: 14px 0;
    padding: 13px 14px;
    gap: 4px;
    border-left: 4px solid var(--orange);
    background: var(--orange-soft);
}

.route-rule-banner strong {
    font-size: 13px;
}

.route-rule-banner p {
    color: #6b5547;
    font-size: 11px;
    line-height: 1.55;
}

.route-move-policy {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    margin: 0 0 12px;
    padding: 11px 12px;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
}

.route-move-policy span {
    font-size: 12px;
    font-weight: 800;
}

.route-move-policy b {
    color: var(--orange-dark);
}

.route-move-policy small {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.45;
}

.route-list {
    display: grid;
    gap: 8px;
}

.route-stop {
    display: grid;
    grid-template-columns: 30px 54px minmax(0, 1fr) 34px;
    min-height: 112px;
    padding: 10px;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.route-product-list {
    display: grid;
    gap: 3px;
    margin: 4px 0;
    padding: 0;
    list-style: none;
}

.route-product-list li {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    color: var(--ink);
    font-size: 11px;
}

.route-product-list li[hidden] { display: none; }
.route-product-list li > span { min-width: min(100%, 150px); line-height: 1.35; }
.route-product-list small { display: flex; flex: 0 0 auto; gap: 5px; }
.route-product-list del { color: var(--subtle); }
.route-product-list b { color: var(--orange-dark); }

.confirmed-route-products {
    display: grid;
    gap: 2px;
    margin: 4px 0;
    padding: 0;
    list-style: none;
}

.confirmed-route-products li {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 11px;
}

.confirmed-route-products b { color: var(--orange-dark); }

.route-stop { border-left: 4px solid var(--route-color, var(--orange)); }

.route-order {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--route-color, var(--orange));
    font-size: 13px;
    font-weight: 900;
}

.route-stop.is-non-alliance .route-order,
.route-stop.is-first .route-order {
    filter: saturate(0.55);
}

.route-stop > img {
    width: 54px;
    height: 54px;
    border-radius: 6px;
    object-fit: cover;
}

.route-stop__body {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.route-stop__body > strong,
.route-stop__body > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.route-stop__body > strong {
    font-size: 13px;
}

.route-stop__body > span {
    color: var(--muted);
    font-size: 10px;
}

.route-stop__body p {
    display: flex;
    margin-top: 2px;
    align-items: center;
    gap: 7px;
}

.route-stop__body p b {
    padding: 3px 5px;
    border-radius: 4px;
    color: var(--green);
    background: var(--green-soft);
    font-size: 10px;
}

.route-stop.is-non-alliance .route-stop__body p b,
.route-stop.is-first .route-stop__body p b {
    color: var(--muted);
    background: var(--canvas);
}

.route-stop__body p em {
    color: var(--orange-dark);
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
}

.route-move {
    display: grid;
    gap: 4px;
}

.route-move button {
    width: 32px;
    height: 28px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 5px;
    color: var(--muted);
    background: #fff;
    font-size: 11px;
}

.route-move button:disabled {
    opacity: 0.3;
    cursor: default;
}

.route-move .route-remove {
    border-color: #f1b8bd;
    color: var(--red);
    background: #fff7f8;
    font-size: 18px;
}

.route-total {
    display: grid;
    margin: 16px 0 24px;
    padding: 18px 16px;
    gap: 7px;
    border-radius: 8px;
    color: #fff;
    background: var(--ink);
}

.route-total span {
    font-size: 12px;
}

.route-total > strong {
    font-size: 18px;
}

.route-total > strong b {
    color: #ffb47d;
}

.route-total p {
    color: #cbd0d4;
    font-size: 10px;
    line-height: 1.45;
}

.route-chain-effect {
    display: flex;
    min-height: 38px;
    padding: 8px 10px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid #4a5055;
    border-radius: 5px;
    background: #2b3034;
}

.route-chain-effect b {
    color: #ffb47d;
    font-size: 12px;
}

.route-chain-effect span {
    color: #fff;
    font-size: 10px;
}

.reward-dialog {
    width: min(420px, calc(100% - 32px));
    padding: 0;
    border: 1px solid var(--ink);
    border-radius: 7px;
    color: var(--ink);
    background: #fff;
}

.reward-dialog::backdrop {
    background: rgba(20, 24, 27, 0.56);
}

.reward-dialog__head,
.reward-dialog__actions {
    display: flex;
    min-height: 56px;
    padding: 10px 14px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-bottom: 1px solid var(--line);
}

.reward-dialog__head button {
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    font-size: 26px;
}

.reward-dialog__body {
    display: grid;
    min-height: 190px;
    padding: 24px;
    align-content: center;
    justify-items: center;
    gap: 16px;
    text-align: center;
    background: var(--canvas);
}

.reward-ad-label {
    padding: 6px 8px;
    color: #fff;
    background: var(--ink);
    font-size: 10px;
    font-weight: 800;
}

.reward-dialog__body p {
    max-width: 290px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.reward-dialog__actions {
    justify-content: flex-end;
    border-top: 1px solid var(--line);
    border-bottom: 0;
}

.reward-dialog__actions button {
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: #fff;
    font-size: 12px;
    font-weight: 800;
}

.reward-dialog__actions [data-reward-complete] {
    border-color: var(--orange);
    color: #fff;
    background: var(--orange);
}

@media (max-width: 420px) {
    .route-move-policy { grid-template-columns: 1fr; }
    .route-chain-effect { align-items: flex-start; flex-direction: column; }
}

.community-routes {
    display: grid;
    gap: 8px;
}

.community-routes[hidden],
.community-routes article[hidden],
.route-stop[hidden],
.route-marker[hidden] {
    display: none !important;
}

.community-routes > [data-community-route-list],
.community-routes > [data-my-route-list],
.community-routes > [data-my-community-route-list] {
    display: grid;
    gap: 8px;
}

.community-routes article {
    display: flex;
    min-height: 64px;
    padding: 12px 13px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.community-routes article > div:first-child {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.community-routes article strong {
    font-size: 13px;
}

.community-routes article span {
    color: var(--muted);
    font-size: 10px;
}

.community-routes article small {
    color: #4e5a61;
    font-size: 10px;
}

.community-route-actions {
    display: flex !important;
    flex: 0 0 auto;
    gap: 5px !important;
}

.community-routes article button {
    min-width: 58px;
    height: 36px;
    border: 1px solid var(--orange);
    border-radius: 6px;
    color: var(--orange-dark);
    background: #fff;
    font-size: 11px;
    font-weight: 800;
}

.community-route-actions button:last-child:not(:only-child) {
    border-color: var(--line);
    color: #5f6970;
}

.route-share-dialog {
    width: min(420px, calc(100% - 28px));
    padding: 0;
    border: 1px solid var(--ink);
    border-radius: 7px;
    background: #fff;
}

.route-share-dialog::backdrop {
    background: rgba(20, 24, 27, 0.6);
}

.route-dialog-body {
    display: grid;
    padding: 16px;
    gap: 13px;
}

.route-dialog-body label {
    display: grid;
    gap: 6px;
    color: #454f55;
    font-size: 11px;
    font-weight: 800;
}

.route-dialog-body input,
.route-dialog-body select,
.route-dialog-body textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 5px;
    color: var(--ink);
    background: #fff;
    font: inherit;
    font-weight: 500;
}

.route-dialog-body input,
.route-dialog-body select {
    height: 42px;
    padding: 0 11px;
}

.route-dialog-body textarea {
    min-height: 92px;
    padding: 10px 11px;
    line-height: 1.55;
    resize: vertical;
}

.route-dialog-body > p {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.55;
}

.route-share-agreement {
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: start;
    line-height: 1.5;
}

.route-share-agreement input {
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
}

.route-dialog-actions {
    display: flex;
    padding: 0 16px 16px;
    justify-content: flex-end;
    gap: 8px;
}

.route-dialog-actions button {
    min-width: 72px;
    min-height: 42px;
    padding: 0 15px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: #fff;
    font-size: 12px;
    font-weight: 800;
}

.route-dialog-actions .primary-button {
    flex: 1;
    border-color: var(--orange);
    color: #fff;
    background: var(--orange);
}

.route-dialog-actions .route-danger-button {
    border-color: #a2191f;
    color: #fff;
    background: #a2191f;
}

@media (max-width: 390px) {
    .community-routes article {
        align-items: flex-start;
        flex-direction: column;
    }

    .community-route-actions {
        width: 100%;
    }

    .community-route-actions button {
        flex: 1;
    }
}

.visit-code-panel {
    display: grid;
    padding: 20px 18px;
    justify-items: center;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.code-status {
    padding: 5px 9px;
    border-radius: 4px;
    color: var(--green);
    background: var(--green-soft);
    font-size: 11px;
    font-weight: 800;
}

.code-status.is-error {
    color: #a2191f;
    background: #fff1f1;
}

.code-status.is-expired {
    color: #525252;
    background: #e0e0e0;
}

.qr-grid {
    display: grid;
    grid-template-columns: repeat(17, 7px);
    grid-auto-rows: 7px;
    width: 131px;
    height: 131px;
    padding: 6px;
    gap: 0;
    border: 1px solid var(--ink);
    background: #fff;
}

.qr-grid.is-standard {
    display: block;
    width: auto;
    height: auto;
    padding: 0;
    border: 0;
}

.qr-grid.is-standard canvas {
    display: block;
    max-width: 100%;
    height: auto;
    image-rendering: pixelated;
}

.qr-grid i {
    background: transparent;
}

.qr-grid i.is-dark {
    background: var(--ink);
}

.visit-code-panel > strong {
    font-size: 24px;
}

.visit-code-panel > p {
    max-width: 320px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
    text-align: center;
}

.barcode {
    width: min(100%, 280px);
    height: 48px;
    background: repeating-linear-gradient(90deg, #1f2428 0 2px, transparent 2px 5px, #1f2428 5px 9px, transparent 9px 12px);
}

.visit-code-panel > button {
    height: 40px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--canvas);
    font-size: 12px;
    font-weight: 800;
}

.visit-history {
    margin-top: 22px;
}

.visit-history article {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    padding: 13px 0;
    align-items: center;
    gap: 10px;
    border-top: 1px solid var(--line);
}

.visit-sequence {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--orange);
    font-size: 11px;
    font-weight: 900;
}

.visit-history article div {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.visit-history article strong {
    font-size: 12px;
}

.visit-history article p,
.visit-history time {
    color: var(--muted);
    font-size: 10px;
}

.merchant-tier-prices {
    display: flex !important;
    margin-top: 7px !important;
    gap: 8px;
}

.merchant-tier-prices span,
.merchant-tier-prices b {
    font-size: 10px;
}

.merchant-tier-prices b {
    color: var(--orange-dark);
}

.field-grid--prices {
    grid-template-columns: repeat(3, 1fr);
}

.field-grid--prices .form-field input {
    padding-right: 7px;
    padding-left: 7px;
    font-size: 12px;
}

.form-notice--rule {
    border-color: #b7ddcd;
    background: var(--green-soft);
}

.scan-frame {
    display: grid;
    padding: 14px;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f7f8f9;
}

.scan-viewfinder {
    position: relative;
    display: grid;
    width: 100%;
    height: 166px;
    place-items: center;
    overflow: hidden;
    border-radius: 6px;
    background: #20262b;
}

.scan-ready-state {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    color: #fff;
    background: rgba(15, 19, 22, 0.78);
    font-size: 11px;
    font-weight: 800;
}

.scan-corners {
    position: relative;
    width: 124px;
    height: 124px;
    border: 3px solid rgba(255, 255, 255, 0.88);
    border-radius: 6px;
}

.scan-corners::after {
    position: absolute;
    top: 50%;
    right: -16px;
    left: -16px;
    height: 2px;
    content: "";
    background: var(--orange);
    box-shadow: 0 0 8px rgba(238, 100, 0, 0.9);
}

.scan-frame__copy {
    display: grid;
    gap: 3px;
    text-align: left;
}

.scan-frame__copy strong {
    font-size: 16px;
}

.scan-frame__copy p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.scan-frame button {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border: 0;
    border-radius: 6px;
    color: #fff;
    background: var(--orange);
    font-size: 15px;
    font-weight: 900;
}

.manual-code {
    display: grid;
    margin: 14px 0;
    gap: 7px;
}

.manual-code > span {
    font-size: 12px;
    font-weight: 800;
}

.manual-code div {
    display: grid;
    grid-template-columns: 1fr 72px;
    gap: 8px;
}

.manual-code input,
.manual-code button {
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 6px;
}

.manual-code input {
    min-width: 0;
    padding: 0 12px;
}

.manual-code button {
    color: #fff;
    background: var(--ink);
    font-weight: 800;
}

.scan-result {
    display: grid;
    margin: 16px 0 22px;
    padding: 16px;
    gap: 12px;
    border: 2px solid var(--orange);
    border-radius: 8px;
}

.scan-result[hidden] {
    display: none;
}

.scan-status-message {
    min-height: 20px;
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.scan-status-message.is-error {
    color: #a2191f;
}

.scan-status-message.is-success {
    color: var(--green);
    font-weight: 700;
}

[data-consumer-history-list],
[data-merchant-history-list] {
    display: grid;
}

.visit-history .empty-history {
    display: block;
    padding: 20px 0;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.scan-consumer {
    display: flex;
    align-items: center;
    gap: 10px;
}

.scan-consumer div {
    display: grid;
    gap: 3px;
}

.scan-consumer p {
    color: var(--muted);
    font-size: 10px;
}

.scan-result dl {
    display: flex;
    margin: 0;
    padding-top: 10px;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid var(--line);
    font-size: 12px;
}

.scan-result dt {
    color: var(--muted);
}

.scan-result dd {
    margin: 0;
    text-align: right;
}

.alliance-ok {
    color: var(--green);
}

.merchant-visit-history {
    margin-top: 10px;
}

@media (min-width: 501px) {
    .app-shell {
        box-shadow: 0 0 32px rgba(31, 36, 40, 0.15);
    }
}

@media (max-width: 370px) {
    .store-card {
        grid-template-columns: 104px 1fr;
    }

    .bottom-nav--merchant a {
        font-size: 10px;
    }

    .bottom-nav a {
        font-size: 9px;
    }

    .field-grid--prices {
        grid-template-columns: 1fr;
    }

    .performance-summary strong {
        font-size: 19px;
    }
}
[data-ad-privacy-options][hidden] {
    display: none;
}

.menu-list .menu-list__danger {
    margin-top: 8px;
    border-top: 1px solid var(--line);
    color: #a2191f;
}

.account-delete-page {
    display: grid;
    gap: 0;
    padding-bottom: calc(36px + env(safe-area-inset-bottom));
}

.account-delete-intro {
    display: grid;
    grid-template-columns: 40px 1fr;
    padding: 24px 0 22px;
    gap: 12px;
    border-bottom: 1px solid var(--line);
}

.account-delete-intro__icon {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #a2191f;
    font-size: 20px;
    font-weight: 900;
}

.account-delete-intro h1 {
    margin: 5px 0 8px;
    font-size: 22px;
    line-height: 1.35;
}

.account-delete-intro p,
.account-delete-notice p,
.account-delete-preview-note p,
.account-delete-result p,
.account-delete-dialog__body p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.account-delete-section {
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}

.account-delete-section h2 {
    margin-bottom: 14px;
    font-size: 16px;
}

.account-delete-section ul {
    display: grid;
    margin: 0;
    padding-left: 20px;
    gap: 9px;
    color: #3e474f;
    font-size: 13px;
    line-height: 1.5;
}

.account-delete-notice {
    display: grid;
    margin: 20px 0 0;
    padding: 16px;
    gap: 7px;
    border-left: 4px solid #a76000;
    background: #fff7e6;
}

.account-delete-notice strong,
.account-delete-preview-note strong,
.account-delete-result strong {
    font-size: 13px;
}

.account-delete-form {
    display: grid;
    padding: 24px 0;
    gap: 16px;
}

.account-delete-form[hidden] {
    display: none;
}

.account-delete-check {
    display: grid;
    grid-template-columns: 22px 1fr;
    align-items: start;
    gap: 9px;
    color: #3e474f;
    font-size: 13px;
    line-height: 1.5;
}

.account-delete-check input {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: #a2191f;
}

.account-delete-confirm-text {
    display: grid;
    gap: 8px;
    font-size: 13px;
    line-height: 1.5;
}

.account-delete-confirm-text input {
    width: 100%;
    height: 48px;
    padding: 0 13px;
    border: 1px solid #9fa7ad;
    border-radius: 4px;
    background: #fff;
}

.account-delete-confirm-text input:focus {
    border-color: #a2191f;
    outline: 2px solid rgba(162, 25, 31, 0.18);
    outline-offset: 1px;
}

.account-delete-submit {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 4px;
    color: #fff;
    background: #a2191f;
    font-size: 14px;
    font-weight: 800;
}

.account-delete-submit:disabled {
    color: #8d969d;
    background: #e5e8ea;
    cursor: default;
}

.account-delete-preview-note,
.account-delete-result {
    display: grid;
    padding: 15px 0;
    gap: 5px;
    border-top: 1px solid var(--line);
}

.account-delete-preview-note strong {
    color: var(--blue);
}

.account-delete-result {
    margin-top: 12px;
    padding: 16px;
    border: 1px solid #b7ddcd;
    background: var(--green-soft);
}

.account-delete-result[hidden] {
    display: none;
}

.account-delete-result:focus {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

.account-delete-dialog {
    width: min(calc(100% - 32px), 420px);
    padding: 0;
    border: 0;
    border-radius: 6px;
    box-shadow: var(--shadow);
}

.account-delete-dialog::backdrop {
    background: rgba(31, 36, 40, 0.52);
}

.account-delete-dialog__head {
    display: grid;
    grid-template-columns: 1fr 40px;
    min-height: 52px;
    padding-left: 18px;
    align-items: center;
    border-bottom: 1px solid var(--line);
}

.account-delete-dialog__head button {
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    font-size: 24px;
}

.account-delete-dialog__body {
    display: grid;
    padding: 20px 18px;
    gap: 12px;
}

.account-delete-dialog__body strong {
    color: #a2191f;
    font-size: 13px;
    line-height: 1.5;
}

.account-delete-dialog__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--line);
}

.account-delete-dialog__actions button {
    min-height: 48px;
    border: 0;
    background: #f2f4f5;
    font-size: 13px;
    font-weight: 800;
}

.account-delete-dialog__actions button + button {
    color: #fff;
    background: #a2191f;
}

.app-policy-hub,
.app-policy-document {
    padding-top: 22px;
    padding-bottom: 40px;
}

.app-policy-intro {
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.app-policy-draft {
    display: inline-flex;
    min-height: 26px;
    padding: 4px 9px;
    align-items: center;
    border: 1px solid #e4c479;
    border-radius: 4px;
    color: #704900;
    background: #fff4da;
    font-size: 11px;
    font-weight: 800;
}

.app-policy-intro h1,
.app-policy-document__head h1 {
    margin: 14px 0 8px;
    font-size: 23px;
    line-height: 1.4;
    letter-spacing: 0;
}

.app-policy-intro p,
.app-policy-document__head > p,
.app-policy-warning p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.app-policy-list {
    display: grid;
    padding: 22px 0;
    gap: 10px;
}

.app-policy-list a {
    position: relative;
    display: grid;
    min-height: 124px;
    padding: 17px 42px 17px 17px;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--ink);
    background: #fff;
    text-decoration: none;
}

.app-policy-list a > span {
    color: var(--orange-dark);
    font-size: 11px;
    font-weight: 800;
}

.app-policy-list a > strong { font-size: 16px; }

.app-policy-list a > p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.app-policy-list a > b {
    position: absolute;
    top: 50%;
    right: 16px;
    translate: 0 -50%;
    color: #8a949b;
    font-size: 25px;
}

.app-policy-meta {
    display: grid;
    margin: 0;
    border-top: 1px solid var(--line);
}

.app-policy-meta div,
.app-policy-document__head dl div {
    display: grid;
    grid-template-columns: 86px 1fr;
    padding: 11px 0;
    gap: 10px;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
}

.app-policy-meta dt,
.app-policy-document__head dt { color: var(--muted); }
.app-policy-meta dd,
.app-policy-document__head dd { margin: 0; font-weight: 800; }

.app-policy-delete-link {
    display: flex;
    width: 100%;
    min-height: 46px;
    margin-top: 18px;
    align-items: center;
    justify-content: center;
    border: 1px solid #8d969d;
    border-radius: 4px;
    color: #343c42;
    background: #fff;
    font-size: 13px;
    font-weight: 800;
}

.app-policy-document__head {
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.app-policy-document__head .eyebrow { margin: 18px 0 0; }
.app-policy-document__head dl { margin: 18px 0 0; }

.app-policy-warning {
    margin: 20px 0 0;
    padding: 15px;
    border-left: 4px solid #ae6500;
    color: #654400;
    background: #fff5dc;
}

.app-policy-warning strong { font-size: 13px; }
.app-policy-warning p { margin: 5px 0 0; color: #705b32; }

.app-policy-sections .policy-section {
    padding: 25px 0;
    border-bottom: 1px solid var(--line);
}

.app-policy-sections .policy-section h2 {
    margin: 0 0 14px;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0;
}

.app-policy-sections .policy-section p,
.app-policy-sections .policy-section li {
    color: #3e474f;
    font-size: 13px;
    line-height: 1.72;
}

.app-policy-sections .policy-section p { margin: 9px 0; }

.app-policy-sections .policy-section ul {
    display: grid;
    margin: 0;
    padding-left: 20px;
    gap: 7px;
}

.app-policy-sections .policy-table-wrap {
    max-width: 100%;
    margin: 15px 0;
    overflow-x: auto;
    border: 1px solid var(--line);
}

.app-policy-sections .policy-table {
    width: 100%;
    min-width: 650px;
    border-collapse: collapse;
    background: #fff;
    font-size: 11px;
}

.app-policy-sections .policy-table--operator { min-width: 0; }

.app-policy-sections .policy-table th,
.app-policy-sections .policy-table td {
    padding: 10px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    vertical-align: top;
    line-height: 1.55;
    text-align: left;
}

.app-policy-sections .policy-table thead th { background: #edf1f3; }
.app-policy-sections .policy-table tbody th { width: 19%; background: #f7f8f9; }
.app-policy-sections .policy-table tr:last-child > * { border-bottom: 0; }
.app-policy-sections .policy-table tr > *:last-child { border-right: 0; }

.app-policy-sections .policy-notice {
    display: grid;
    margin-top: 14px !important;
    padding: 13px;
    gap: 5px;
    border-left: 4px solid var(--orange);
    color: #4a5258;
    background: #fff7f0;
}

.app-policy-sections .policy-notice strong { color: var(--orange-dark); }

@media (max-width: 480px) {
    .app-policy-sections .policy-table--operator th { width: 38%; }
}

.topbar--auth {
    position: relative;
    border-bottom: 1px solid var(--line);
}

.screen--login,
.screen--signup,
.screen--recovery {
    min-height: calc(100dvh - 58px);
    padding: 0;
    background: var(--surface);
}

.auth-screen {
    width: 100%;
    padding: 40px 24px 56px;
}

.auth-heading > span {
    color: var(--orange-dark);
    font-size: 12px;
    font-weight: 800;
}

.auth-heading h1 {
    margin-top: 7px;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.25;
}

.auth-heading p {
    margin-top: 9px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.preview-login-accounts {
    display: grid;
    margin-top: 26px;
    padding: 14px 16px;
    gap: 8px;
    border: 1px solid var(--line);
    background: #f7f8f9;
}

.preview-login-accounts > strong {
    font-size: 13px;
}

.preview-login-accounts p {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 12px;
}

.preview-login-accounts span {
    color: var(--orange-dark);
    font-weight: 800;
}

.preview-login-accounts code {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--ink);
    font-family: inherit;
    font-size: 12px;
}

.auth-role-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 30px;
    border-bottom: 1px solid var(--line);
}

.auth-role-tabs a {
    display: grid;
    min-height: 48px;
    place-items: center;
    border-bottom: 3px solid transparent;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.auth-role-tabs a.is-active {
    border-bottom-color: var(--orange);
    color: var(--ink);
}

.auth-form {
    display: grid;
    margin-top: 24px;
    gap: 18px;
}

.auth-form > label:not(.auth-check) {
    display: grid;
    gap: 8px;
}

.auth-form > label > span {
    font-size: 13px;
    font-weight: 700;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    height: 52px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-bottom-color: #8c959d;
    border-radius: 0;
    outline: 0;
    background: var(--canvas);
    font-size: 15px;
}

.auth-form input[type="text"]:focus,
.auth-form input[type="email"]:focus,
.auth-form input[type="password"]:focus {
    border-color: var(--orange);
    outline: 2px solid var(--orange);
    outline-offset: -2px;
}

.auth-form input:disabled {
    color: #8c959d;
    background: #edf0f2;
}

.auth-check {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.auth-check input {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--orange);
}

.auth-check span {
    min-width: 0;
    flex: 1;
}

.auth-check a {
    flex: 0 0 auto;
    color: var(--orange-dark);
    font-size: 12px;
    font-weight: 700;
}

.auth-check--all {
    min-height: 52px;
    padding: 0 14px;
    color: var(--ink);
    background: var(--orange-soft);
    font-weight: 700;
}

.auth-primary,
.auth-secondary {
    display: grid;
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    place-items: center;
    border: 0;
    border-radius: 0;
    font-size: 14px;
    font-weight: 800;
}

.auth-primary {
    color: #fff;
    background: var(--orange);
}

.auth-primary:disabled {
    color: #7c858d;
    background: #dfe3e6;
    cursor: not-allowed;
}

.auth-secondary {
    margin-top: 14px;
    border: 1px solid #9ba3aa;
    color: var(--ink);
    background: #fff;
}

.auth-links {
    display: flex;
    margin-top: 20px;
    justify-content: center;
    gap: 0;
}

.auth-links a {
    position: relative;
    padding: 0 11px;
    color: var(--muted);
    font-size: 12px;
}

.auth-links a + a::before {
    position: absolute;
    left: 0;
    width: 1px;
    height: 12px;
    background: var(--line);
    content: "";
}

.auth-form-message {
    padding: 12px;
    border-left: 4px solid var(--red);
    color: var(--red);
    background: #fff0f1;
    font-size: 13px;
    line-height: 1.5;
}

.auth-form-message[hidden],
[data-auth-local-verification][hidden] {
    display: none !important;
}

.auth-form-message.is-success {
    border-left-color: var(--green);
    color: #075e38;
    background: var(--green-soft);
}

.merchant-profile-page {
    display: grid;
    gap: 20px;
}

.merchant-review-status {
    padding: 15px 16px;
    border-left: 4px solid var(--warning);
    background: #fff6df;
}

.merchant-review-status strong {
    color: #744400;
    font-size: 14px;
}

.merchant-review-status p {
    margin-top: 6px;
    color: #6c5a37;
    font-size: 13px;
    line-height: 1.55;
}

.merchant-review-status--approved {
    border-left-color: var(--green);
    background: var(--green-soft);
}

.merchant-review-status--approved strong,
.merchant-review-status--approved p {
    color: #075e38;
}

.merchant-review-status--rejected {
    border-left-color: var(--red);
    background: #fff0f1;
}

.merchant-review-status--rejected strong,
.merchant-review-status--rejected p {
    color: var(--red);
}

.merchant-profile-form {
    display: grid;
    gap: 16px;
}

.merchant-profile-form__columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.merchant-profile-form .form-field input {
    border-radius: 0;
    background: var(--canvas);
}

.merchant-profile-form .auth-primary {
    margin-top: 4px;
}

@media (max-width: 350px) {
    .merchant-profile-form__columns {
        grid-template-columns: 1fr;
    }
}

.auth-connection-status,
.auth-identity-lock {
    margin-top: 24px;
    padding: 15px;
    border-left: 4px solid var(--warning);
    background: #fff6df;
}

.auth-identity-lock {
    margin-top: 4px;
}

.auth-connection-status strong,
.auth-identity-lock strong {
    color: #744400;
    font-size: 13px;
}

.auth-connection-status p,
.auth-identity-lock p {
    margin-top: 6px;
    color: #6c5a37;
    font-size: 12px;
    line-height: 1.6;
}

.auth-verified-email,
[data-auth-local-verification] {
    display: grid;
    margin-top: 20px;
    padding: 14px 16px;
    gap: 5px;
    border-left: 4px solid var(--green);
    background: var(--green-soft);
    color: var(--ink);
    font-size: 13px;
}

.auth-verified-email span,
[data-auth-local-verification] p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

[data-auth-local-verification] a {
    min-height: 44px;
    margin-top: 6px;
    padding: 0 12px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--green);
    font-weight: 800;
}

.auth-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.auth-steps li {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 7px;
    color: #8c959d;
    font-size: 11px;
}

.auth-steps li::before {
    position: absolute;
    z-index: 0;
    top: 13px;
    right: 50%;
    left: -50%;
    height: 1px;
    background: var(--line);
    content: "";
}

.auth-steps li:first-child::before { display: none; }

.auth-steps b {
    z-index: 1;
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    background: #e7eaec;
    font-size: 12px;
}

.auth-steps li.is-current {
    color: var(--ink);
    font-weight: 700;
}

.auth-steps li.is-current b {
    color: #fff;
    background: var(--orange);
}

.auth-back-link {
    display: block;
    margin-top: 24px;
    color: var(--orange-dark);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

@media (min-width: 700px) {
    .app-shell:has(.auth-screen) { width: min(100%, 760px); }
    .auth-screen { max-width: 520px; margin: 0 auto; padding-top: 56px; }
}

@media (max-width: 380px) {
    .auth-screen { padding-right: 18px; padding-left: 18px; }
    .auth-links a { padding: 0 7px; font-size: 11px; }
}

/* M10 product-finish readability pass */
.bottom-nav a { font-size: 12px; }
.business-footer { font-size: 12px; }
.business-footer strong { font-size: 13px; }
.eyebrow,
.text-link { font-size: 13px; }
.profile-band span,
.merchant-profile p { font-size: 13px; }
.menu-list a { font-size: 15px; }

.merchant-home-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
    flex: 1;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(31, 36, 40, 0.1);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 4px 14px rgba(31, 36, 40, 0.14);
}

.merchant-home-summary a {
    display: grid;
    min-width: 0;
    min-height: 48px;
    padding: 7px 9px;
    align-content: center;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    border-right: 1px solid var(--line);
}

.merchant-home-summary a:last-child { border-right: 0; }
.merchant-home-summary span { color: var(--muted); font-size: 11px; line-height: 1.35; }
.merchant-home-summary strong { font-size: 17px; }
.merchant-map-notice,
.merchant-visibility-notice { font-size: 13px; }
.merchant-visibility-notice strong { font-size: 14px; }

.route-description { font-size: 14px; }
.route-marker > strong { font-size: 11px; }
.route-alliance-flash strong { font-size: 14px; }
.route-alliance-flash span { font-size: 12px; }
.route-view-tabs button { font-size: 14px; }
.route-confirm-button { font-size: 15px; }
.route-help-dialog li strong,
.route-rule-banner strong { font-size: 14px; }
.route-help-dialog li p,
.route-rule-banner p { font-size: 13px; }
.route-move-policy span { font-size: 13px; }
.route-move-policy small { font-size: 12px; }
.route-stop__body > strong { font-size: 15px; }
.route-stop__body > span { font-size: 12px; }
.route-stop__body p { flex-wrap: wrap; }
.route-stop__body p b { font-size: 11px; }
.route-stop__body p em { font-size: 14px; white-space: nowrap; }
.route-total span { font-size: 13px; }
.route-total p,
.route-chain-effect span { font-size: 12px; }

.confirmed-route-panel > p { font-size: 13px; }
.confirmed-route-panel > ol > li strong { font-size: 14px; }
.confirmed-route-panel > ol > li span,
.confirmed-route-panel > ol > li small,
.confirmed-route-panel > ol > li time { font-size: 12px; }
.confirmed-route-link b { font-size: 13px; }
.confirmed-route-link small { font-size: 12px; }

.visit-code-panel > p,
.visit-code-panel > button { font-size: 13px; }
.visit-history article strong { font-size: 14px; }
.visit-history article p,
.visit-history time { font-size: 12px; line-height: 1.45; }
.merchant-tier-prices span,
.merchant-tier-prices b { font-size: 12px; }

.merchant-promo__heading > strong { font-size: 15px; }
.row-actions button { min-height: 32px; font-size: 13px; }
.scan-frame__copy strong { font-size: 17px; }
.scan-frame__copy p { font-size: 13px; line-height: 1.55; }
.scan-frame button { min-height: 48px; font-size: 15px; }
.manual-code > span { font-size: 14px; }
.manual-code input,
.manual-code button { font-size: 14px; }
.scan-status-message { font-size: 13px; }
.scan-consumer strong { font-size: 15px; }
.scan-consumer p { font-size: 12px; }
.scan-result dl { font-size: 13px; }

@media (max-width: 360px) {
    .merchant-alliance-link { min-width: 70px; padding: 0 7px; font-size: 11px; }
    .merchant-home-summary a { padding-right: 7px; padding-left: 7px; }
    .merchant-promo { grid-template-columns: 88px minmax(0, 1fr); }
    .merchant-promo > img { width: 88px; }
    .merchant-price-comparison > div { padding: 0 5px; }
    .merchant-price-comparison dd { display: grid; gap: 1px; }
    .merchant-price-comparison b { font-size: 13px; }
    .merchant-price-comparison em { font-size: 10px; }
    .route-stop { grid-template-columns: 28px 48px minmax(0, 1fr) 32px; gap: 7px; }
    .route-stop > img { width: 48px; height: 48px; }
}

.map-provider-layer {
    position: absolute;
    inset: 0;
    z-index: 8;
    width: 100%;
    height: 100%;
    background: #eef1ed;
}

.map-canvas.is-live-map-active .map-marker {
    position: relative;
    left: auto !important;
    top: auto !important;
    transform: none;
}

.map-canvas.is-live-map-active > .consumer-alliance-lines,
.map-canvas.is-live-map-active > .map-marker,
.map-canvas.is-live-map-unavailable > .consumer-alliance-lines,
.map-canvas.is-live-map-unavailable > .map-marker,
.map-canvas.is-live-map-unavailable > .current-location {
    display: none;
}

.map-canvas.is-live-map-unavailable {
    background: #eef1ed;
}

.map-canvas .current-location,
.map-canvas .map-list-button {
    z-index: 20;
}

.live-map-status {
    position: absolute;
    z-index: 10;
    top: 50%;
    right: 20px;
    left: 20px;
    margin: 0;
    transform: translateY(-50%);
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
}

.live-map-status[hidden] {
    display: none;
}

.map-canvas.is-map-provider-active > :not(.map-provider-layer) {
    visibility: hidden;
}

.map-canvas.is-map-provider-active .route-marker,
.map-canvas.is-map-provider-active .confirmed-route-marker {
    position: relative;
    left: auto !important;
    top: auto !important;
    transform: none;
}

.map-canvas.is-map-provider-active > .merchant-store-sheet {
    visibility: visible;
}
