:root {
    color-scheme: light;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --pm-green-950: #073d36;
    --pm-green-900: #0b4f46;
    --pm-green-800: #07685c;
    --pm-green-700: #007a6b;
    --pm-green-650: #088777;
    --pm-green-600: #0b8f7e;
    --pm-green-500: #29a692;
    --pm-green-200: #bfe4da;
    --pm-green-150: #d8eee8;
    --pm-green-100: #e5f5f0;
    --pm-green-75: #eef9f6;
    --pm-green-50: #f6fbf9;
    --pm-surface: #ffffff;
    --pm-page: #f3f8f7;
    --pm-text: #173d37;
    --pm-title: #102d29;
    --pm-muted: #5c716c;
    --pm-soft-muted: #7f928e;
    --pm-border: #d8e6e2;
    --pm-border-strong: #a9c3bb;
    --pm-danger: #a24122;
    --pm-warning: #9a5b13;
    --pm-warning-bg: #fff5e7;
    --pm-info: #1f67a4;
    --pm-info-bg: #eef7ff;
    --pm-focus: #d58b00;
    --pm-shadow: 0 18px 45px rgba(24, 70, 61, .08);
    --pm-shadow-soft: 0 8px 24px rgba(24, 70, 61, .06);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--pm-page); }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--pm-text);
    background:
        radial-gradient(circle at 82% 0%, rgba(207, 235, 227, .56), transparent 29rem),
        linear-gradient(180deg, #f7fbfa 0%, var(--pm-page) 44%, #eef5f3 100%);
}

button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
a { color: var(--pm-green-700); }
svg {
    display: block;
    width: 1em;
    height: 1em;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

button {
    min-height: 42px;
    cursor: pointer;
}
button:disabled { cursor: default; opacity: .52; }

.app-header {
    position: sticky;
    top: 0;
    z-index: 30;
    color: #fff;
    background: linear-gradient(100deg, #006b5e 0%, #087a6b 55%, #006356 100%);
    border-bottom: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 4px 22px rgba(6, 62, 55, .13);
}

.app-header__inner {
    width: min(100% - 2.25rem, 1440px);
    min-height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.brand {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    color: #fff;
    font-weight: 760;
    text-decoration: none;
    letter-spacing: -.015em;
}
.brand__mark {
    width: 2.25rem;
    height: 2.25rem;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    color: #eafff9;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: .7rem;
    font-size: 1.35rem;
}
.brand__name { font-size: 1.12rem; }
.brand__divider { width: 1px; height: 1.55rem; background: rgba(255, 255, 255, .28); }
.brand__module { color: #e8f7f3; font-size: .96rem; font-weight: 650; }

.header-actions { display: flex; align-items: center; gap: .65rem; }
.header-link {
    min-height: 40px;
    padding: .55rem .7rem;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: #f4fffc;
    text-decoration: none;
    border-radius: .65rem;
    font-size: .9rem;
    font-weight: 650;
}
.header-link:hover { background: rgba(255, 255, 255, .09); }

.offline-shell {
    width: min(100% - 2.4rem, 1400px);
    margin: 0 auto;
    padding: 1rem 0 2.6rem;
}

.hero-card,
.sync-panel,
.card {
    background: rgba(255, 255, 255, .97);
    border: 1px solid var(--pm-border);
    box-shadow: var(--pm-shadow-soft);
}

.hero-card {
    min-height: 205px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    overflow: hidden;
    border-radius: 1rem;
}
.hero-card__content { padding: 1.4rem 1.55rem 1.25rem; }
.hero-card__title-row { display: flex; align-items: flex-start; gap: 1rem; }
.hero-card__icon {
    width: 3.6rem;
    height: 3.6rem;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    color: var(--pm-green-700);
    background: linear-gradient(145deg, #ddf3ed, #eef9f6);
    border: 1px solid #c8e7de;
    border-radius: 50%;
    font-size: 1.65rem;
}
.eyebrow {
    display: inline-block;
    margin: .05rem 0 .18rem;
    color: var(--pm-green-700);
    font-size: .73rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 {
    margin: 0;
    color: var(--pm-title);
    font-size: clamp(2rem, 3vw, 2.7rem);
    line-height: 1.06;
    letter-spacing: -.045em;
}
h2 {
    margin: 0;
    color: var(--pm-title);
    font-size: 1.13rem;
    line-height: 1.28;
    letter-spacing: -.018em;
}
.hero-card__lead {
    max-width: 780px;
    margin: .42rem 0 0;
    color: #4c6660;
    font-size: .95rem;
    line-height: 1.55;
}

.feature-strip {
    margin-top: 1.05rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid #edf2f0;
}
.feature-item {
    min-width: 0;
    padding: .9rem .85rem .15rem 0;
    display: flex;
    align-items: flex-start;
    gap: .65rem;
}
.feature-item + .feature-item { padding-left: .85rem; border-left: 1px solid #e8efed; }
.feature-item__icon {
    width: 1.95rem;
    height: 1.95rem;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    color: var(--pm-green-700);
    background: var(--pm-green-75);
    border-radius: .55rem;
    font-size: 1.05rem;
}
.feature-item strong, .feature-item small { display: block; }
.feature-item strong { color: #284c45; font-size: .82rem; line-height: 1.25; }
.feature-item small { margin-top: .15rem; color: #778a85; font-size: .72rem; line-height: 1.35; }

.hero-visual {
    position: relative;
    min-height: 205px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(145deg, #f6fcfa 0%, #edf8f5 100%);
    border-left: 1px solid #edf3f1;
}
.hero-visual__shape { position: absolute; border-radius: 60% 40% 65% 35%; background: #d6f0e8; opacity: .72; }
.hero-visual__shape--one { width: 150px; height: 120px; right: -35px; top: 14px; transform: rotate(24deg); }
.hero-visual__shape--two { width: 115px; height: 80px; left: -22px; bottom: 10px; transform: rotate(-22deg); }
.hero-visual__laptop { width: 230px; height: auto; max-width: 78%; position: relative; z-index: 1; }
.hero-visual__caption {
    position: absolute;
    right: 18px;
    bottom: 17px;
    z-index: 2;
    color: #496760;
    font-size: .75rem;
    line-height: 1.2;
    transform: rotate(-3deg);
}
.hero-visual__caption strong { color: var(--pm-green-800); font-size: .83rem; }

.sync-panel {
    margin-top: .85rem;
    overflow: hidden;
    border-radius: 1rem;
}
.sync-panel__status {
    min-height: 78px;
    padding: .9rem 1.05rem;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .9rem;
    background: linear-gradient(90deg, #e5f7f1 0%, #f1fbf8 65%, #e9f8f4 100%);
    border-bottom: 1px solid #d6ebe5;
}
.sync-panel__check {
    width: 2.75rem;
    height: 2.75rem;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, #0ba87c, #087867);
    border-radius: 50%;
    box-shadow: 0 6px 14px rgba(11, 168, 124, .2);
    font-size: 1.4rem;
}
.sync-panel__copy { min-width: 0; }
.status { color: #163f38; font-size: 1rem; font-weight: 780; }
.sync-panel__copy > span { display: block; margin-top: .1rem; color: #5c756f; font-size: .83rem; }
.sync-panel__meta {
    min-width: 210px;
    padding-left: 1.05rem;
    display: flex;
    align-items: center;
    gap: .65rem;
    border-left: 1px solid #cce4dd;
}
.sync-panel__clock { color: var(--pm-green-700); font-size: 1.35rem; }
.sync-panel__meta small, .sync-panel__meta strong { display: block; }
.sync-panel__meta small { color: #7b8f89; font-size: .69rem; font-weight: 650; }
.sync-panel__meta strong { margin-top: .05rem; color: #3e5e57; font-size: .8rem; font-weight: 720; }

.sync-panel__controls {
    padding: .78rem 1rem;
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(300px, .9fr);
    align-items: stretch;
    gap: .8rem;
}
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }

.button {
    min-height: 42px;
    padding: .62rem .88rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    color: var(--pm-green-900);
    background: #fff;
    border: 1px solid var(--pm-border-strong);
    border-radius: .6rem;
    box-shadow: 0 2px 7px rgba(22, 62, 56, .04);
    font-weight: 680;
    line-height: 1.2;
    transition: transform .14s ease, box-shadow .14s ease, background .14s ease, border-color .14s ease;
}
.button:not(:disabled):hover { transform: translateY(-1px); box-shadow: 0 6px 15px rgba(22, 62, 56, .1); }
.button__icon { flex: 0 0 auto; font-size: 1.05rem; }
.button--primary { color: #fff; background: linear-gradient(180deg, #087c6c 0%, #006d60 100%); border-color: #006d60; }
.button--primary:not(:disabled):hover { background: linear-gradient(180deg, #087366 0%, #005f54 100%); border-color: #005f54; }
.button--secondary { color: #24554b; background: #fff; border-color: #b8cbc5; }
.button--soft { color: var(--pm-green-800); background: #e8f6f2; border-color: #c7e4dc; box-shadow: none; }
.button--compact { min-height: 39px; padding: .52rem .75rem; }
.button--header { min-height: 40px; color: #fff; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .42); box-shadow: none; }
.button--header:not(:disabled):hover { background: rgba(255, 255, 255, .13); }

.text-link {
    padding: .55rem .4rem;
    color: var(--pm-green-700);
    font-size: .86rem;
    font-weight: 700;
    text-underline-offset: .2em;
}

.sync-panel__notice {
    min-height: 48px;
    padding: .65rem .75rem;
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    color: #6d502d;
    background: var(--pm-warning-bg);
    border: 1px solid #f0dec6;
    border-radius: .7rem;
}
.sync-panel__notice-icon {
    width: 1.35rem;
    height: 1.35rem;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    color: #fff;
    background: #ca7024;
    border-radius: 50%;
    font-size: .75rem;
    font-weight: 800;
}
.message, .lease { margin: 0; }
.message { color: #794a1d; font-size: .82rem; font-weight: 680; white-space: pre-wrap; }
.message:empty { display: none; }
.lease { margin-top: .08rem; color: #81654a; font-size: .76rem; line-height: 1.45; }
.message:empty + .lease { margin-top: 0; }

.workspace-grid {
    margin-top: .85rem;
    display: grid;
    grid-template-columns: minmax(0, 1.72fr) minmax(340px, .9fr);
    align-items: start;
    gap: .85rem;
}
.workspace-sidebar { display: grid; gap: .85rem; }
.card {
    margin: 0;
    padding: 1rem;
    border-radius: 1rem;
}
.card__header,
.transactions-card__heading {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
}
.card__header { margin-bottom: .9rem; }
.card__header p,
.transactions-card__heading p { margin: .15rem 0 0; color: var(--pm-muted); font-size: .8rem; line-height: 1.45; }
.card__icon {
    width: 2rem;
    height: 2rem;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    color: var(--pm-green-700);
    background: var(--pm-green-100);
    border-radius: .58rem;
    font-size: 1.1rem;
}

.sale-card { min-width: 0; }
.sale-card__top-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .8rem;
}
.sale-card label,
.field-label {
    display: block;
    margin: 0;
    color: #31554e;
    font-size: .8rem;
    font-weight: 670;
}
.label-note { color: #80918d; font-size: .72rem; font-weight: 520; }
.label-note::before { content: "• "; }

.control { position: relative; display: block; margin-top: .28rem; }
.control__icon {
    position: absolute;
    left: .72rem;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    color: #607c75;
    pointer-events: none;
    font-size: .96rem;
}
.control__end-icon {
    position: absolute;
    right: .72rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--pm-green-700);
    pointer-events: none;
    font-size: 1rem;
}
.control input,
.control select { padding-left: 2.25rem; }
.control--search input { padding-right: 2.25rem; }

input, select, textarea {
    width: 100%;
    min-height: 42px;
    padding: .6rem .68rem;
    display: block;
    color: #173d37;
    background: #fff;
    border: 1px solid #b9ccc6;
    border-radius: .52rem;
    outline: none;
    transition: border-color .14s ease, box-shadow .14s ease, background .14s ease;
}
select { cursor: pointer; }
textarea { min-height: 76px; resize: vertical; line-height: 1.45; }
input::placeholder, textarea::placeholder { color: #899994; }
input:hover:not(:disabled), select:hover:not(:disabled), textarea:hover:not(:disabled) { border-color: #8faea5; }
input:focus, select:focus, textarea:focus { border-color: var(--pm-green-650); box-shadow: 0 0 0 3px rgba(8, 122, 107, .12); }

.search-results { max-height: 250px; margin-top: .35rem; overflow: auto; border-radius: .55rem; }
.search-results:empty { display: none; }
.search-results button {
    width: 100%;
    min-height: 42px;
    margin: .22rem 0;
    padding: .65rem .75rem;
    display: block;
    text-align: left;
    color: var(--pm-text);
    background: #f1f8f5;
    border: 1px solid #d7e8e2;
    border-radius: .5rem;
}
.search-results p { margin: .5rem 0; color: var(--pm-muted); font-size: .82rem; }
#custom { margin: .7rem 0 .65rem; }

/* Cash-sale workspace: polished grouping based on the approved UI concept. */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.sale-card { padding: 1.05rem; }
.sale-card .card__header { margin-bottom: 1rem; }
.sale-card .card__header .card__icon {
    width: 2.45rem;
    height: 2.45rem;
    border-radius: .78rem;
    background: linear-gradient(145deg, #dcf3ec, #edf9f5);
    border: 1px solid #cfe9e2;
    font-size: 1.2rem;
}
.sale-card .card__header h2 { font-size: 1.23rem; }
.sale-card .card__header p { margin-top: .18rem; }
.sale-card__top-grid { gap: .9rem; }
.sale-card__top-grid .control { margin-top: .34rem; }
.sale-card__top-grid input { min-height: 44px; border-radius: .62rem; }

.sale-scanner-workspace { margin-top: .75rem; }
.sale-scan-card {
    display: grid;
    gap: .72rem;
}
.sale-section-heading {
    padding: .72rem .78rem 0;
    display: flex;
    align-items: flex-start;
    gap: .72rem;
}
.sale-section-heading__icon,
.sale-scanner-block__icon,
.sale-ready-heading__icon {
    width: 2rem;
    height: 2rem;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    color: var(--pm-green-700);
    background: #def3ed;
    border-radius: .58rem;
    font-size: 1rem;
}
.sale-section-heading h2 {
    margin: 0;
    color: #173f38;
    font-size: 1rem;
    line-height: 1.25;
}
.sale-section-heading p {
    margin: .12rem 0 0;
    color: #687d77;
    font-size: .72rem;
    line-height: 1.45;
}
.sale-scan-card {
    overflow: hidden;
    background: linear-gradient(180deg, #f4fbf9 0%, #f8fcfb 100%);
    border: 1px solid #d7ebe5;
    border-radius: .8rem;
}
.sale-scan-card__lookup {
    padding: 0 .78rem .78rem;
    display: grid;
    grid-template-columns: minmax(160px, .72fr) minmax(240px, 1.45fr) minmax(142px, .55fr);
    align-items: end;
    gap: .65rem;
}
.sale-scan-field {
    min-width: 0;
    color: #31554e;
    font-size: .72rem !important;
    font-weight: 680 !important;
}
.sale-scan-field select,
.sale-scan-field input {
    min-height: 43px;
    margin-top: .28rem;
    border-radius: .58rem;
}
.sale-scan-field--code { align-self: end; }
.sale-scan-field--code input { margin-top: 0; }
.sale-scan-submit {
    min-height: 43px;
    padding: .58rem .8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .48rem;
    color: #0b675b;
    background: #e6f6f1;
    border: 1px solid #c2e5db;
    border-radius: .58rem;
    font-size: .82rem;
    font-weight: 760;
    transition: background .14s ease, border-color .14s ease, transform .14s ease;
}
.sale-scan-submit svg { font-size: 1.02rem; }
.sale-scan-submit:not(:disabled):hover {
    background: #daf1ea;
    border-color: #a9dbcf;
    transform: translateY(-1px);
}

.sale-scanner-block {
    margin: 0 .5rem;
    padding: .58rem;
    background: rgba(255, 255, 255, .72);
    border: 1px solid #dbeae6;
    border-radius: .72rem;
}
.sale-scanner-block__topline {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: end;
    gap: .62rem;
}
.sale-scanner-block__icon { margin-bottom: .02rem; }
.sale-scanner-terminator { min-width: 0; }
.sale-scanner-terminator select {
    min-height: 40px;
    margin-top: .24rem;
    border-radius: .52rem;
}
.sale-card .sale-camera-actions {
    margin-top: .52rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .62rem;
}
.sale-card .sale-camera-actions .sale-camera-button {
    min-height: 43px;
    margin: 0;
    padding: .58rem .8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border-radius: .58rem;
    font-size: .82rem;
    font-weight: 740;
    box-shadow: none;
}
.sale-card .sale-camera-actions .sale-camera-button svg { flex: 0 0 auto; font-size: 1rem; }
.sale-card .sale-camera-actions .sale-camera-button--primary {
    color: #fff;
    background: linear-gradient(180deg, #088777 0%, #007264 100%);
    border: 1px solid #007264;
}
.sale-card .sale-camera-actions .sale-camera-button--primary:not(:disabled):hover { background: #00685c; }
.sale-card .sale-camera-actions .sale-camera-button--secondary {
    color: #576d68;
    background: #fff;
    border: 1px solid #cfddda;
}
.sale-card .sale-camera-actions .sale-camera-button--secondary:disabled {
    color: #aab7b4;
    background: #f7f9f8;
    border-color: #e0e7e5;
    opacity: 1;
}
.sale-card .sale-scan-card > video {
    width: 100%;
    max-height: 320px;
    margin-top: .6rem;
    object-fit: contain;
    background: #102622;
    border-radius: .62rem;
}
.sale-ready-block {
    padding: .65rem .78rem .78rem;
    background: #fff;
    border-top: 1px solid #e1eeea;
}
.sale-ready-heading {
    display: flex;
    align-items: center;
    gap: .62rem;
}
.sale-scan-status {
    margin: 0;
    color: #FF0000;
    font-size: .86rem;
    font-weight: 760;
}
.sale-ready-fields {
    margin-top: .58rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .72rem;
}
.sale-ready-field select {
    min-height: 41px;
    margin-top: .27rem;
    border-radius: .56rem;
}

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .65rem; }
.sale-controls { margin-top: .35rem; }
.sale-controls label > input,
.sale-controls label > select { margin-top: .28rem; }
.notes-field {
    position: relative;
    margin-top: .72rem !important;
    padding: .62rem .68rem .68rem 3.15rem;
    background: #fbfdfc;
    border: 1px solid #deebe7;
    border-radius: .72rem;
}
.notes-field::before {
    content: "";
    position: absolute;
    left: .72rem;
    top: .68rem;
    width: 1.8rem;
    height: 1.8rem;
    background: #def3ed;
    border-radius: .5rem;
}
.notes-field::after {
    content: "";
    position: absolute;
    left: 1.26rem;
    top: 1.11rem;
    width: .58rem;
    height: .72rem;
    border: 1.6px solid var(--pm-green-700);
    border-radius: .08rem;
    box-shadow: inset 0 -.18rem 0 -.08rem var(--pm-green-700);
}
.notes-field textarea { margin-top: .3rem; min-height: 72px; background: #fff; }

fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
fieldset:disabled { opacity: .72; }
fieldset:disabled .sale-total { opacity: .85; }

.sale-lines { margin: .05rem 0 .2rem; }
.line {
    margin: .55rem 0;
    padding: .8rem;
    overflow-wrap: anywhere;
    background: #fbfdfc;
    border: 1px solid #d9e7e2;
    border-radius: .72rem;
}
.line h3 { margin: 0 0 .52rem; color: #214940; font-size: .9rem; }
.line .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.line > label { margin-bottom: .6rem; }
.line button { margin-top: .65rem; color: #8a3416; background: #fff7f4; border: 1px solid #ebc7ba; border-radius: .5rem; }

.sale-total {
    margin-top: .72rem;
    padding: .68rem .72rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .85rem;
    background: linear-gradient(90deg, #eef9f5 0%, #e7f6f1 100%);
    border: 1px solid #d2e9e2;
    border-radius: .78rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
}
.sale-total__amount { min-width: 0; display: flex; align-items: center; gap: .65rem; }
.sale-total__icon {
    width: 2.25rem;
    height: 2.25rem;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    color: var(--pm-green-700);
    background: #d7efe7;
    border-radius: .55rem;
    font-size: 1.08rem;
}
.sale-total__amount small { display: block; color: #496962; font-size: .7rem; font-weight: 680; }
#total { margin: .02rem 0 0; color: var(--pm-green-900); font-size: 1.35rem; font-weight: 820; letter-spacing: -.03em; }
.button--save { min-width: 185px; }

.location-card .card__header { margin-bottom: .75rem; }
.button--catalog { width: 100%; margin-top: .6rem; }
.snapshot { margin: .5rem 0 0; color: #667c76; font-size: .75rem; line-height: 1.45; }
.snapshot:empty { display: none; }
.catalog-callout {
    margin-top: .65rem;
    padding: .7rem;
    display: flex;
    align-items: flex-start;
    gap: .62rem;
    color: #2f628d;
    background: var(--pm-info-bg);
    border: 1px solid #d7e9f9;
    border-radius: .68rem;
}
.catalog-callout__icon {
    width: 1.8rem;
    height: 1.8rem;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    color: var(--pm-info);
    background: #dcebfa;
    border-radius: .5rem;
    font-size: .95rem;
}
.catalog-callout strong { color: #2a6290; font-size: .79rem; }
.catalog-callout p { margin: .12rem 0 0; color: #55758f; font-size: .73rem; line-height: 1.42; }

.transactions-card__heading { align-items: flex-start; }
.transaction-summary-wrap {
    margin-top: .75rem;
    padding: .72rem;
    display: flex;
    align-items: flex-start;
    gap: .62rem;
    background: linear-gradient(90deg, #fff7e7, #fffaf1);
    border: 1px solid #f1dfbb;
    border-radius: .68rem;
}
.transaction-summary-wrap__icon { flex: 0 0 auto; color: #a16b16; font-size: 1.15rem; }
.transaction-summary { margin: 0; color: #6f582e; font-size: .76rem; line-height: 1.48; }
.transaction-summary:empty { display: none; }
.operation {
    margin-top: .7rem;
    padding: .75rem;
    overflow-wrap: anywhere;
    background: #fbfdfc;
    border: 1px solid #dde9e5;
    border-radius: .68rem;
}
.operation strong { color: #214940; font-size: .8rem; }
.operation small { display: block; margin-top: .18rem; color: #6d817d; font-size: .72rem; }
.operation p { margin: .42rem 0; font-size: .78rem; }
.operation details { margin-top: .5rem; padding: .58rem .65rem; background: #f8fbfa; border: 1px solid #dce8e4; border-radius: .52rem; }
.operation details summary { cursor: pointer; color: #31564f; font-size: .76rem; font-weight: 680; }
.operation button { margin-top: .55rem; padding: .52rem .65rem; color: #8a3416; background: #fff7f4; border: 1px solid #ebc7ba; border-radius: .5rem; font-size: .76rem; }
.operation a { display: inline-block; margin-top: .45rem; font-size: .76rem; font-weight: 680; }

.privacy-card { margin-top: .85rem; padding: 0; overflow: hidden; }
.privacy-card summary {
    min-height: 60px;
    padding: .82rem 1rem;
    display: flex;
    align-items: center;
    gap: .7rem;
    cursor: pointer;
    color: #173f38;
    list-style: none;
}
.privacy-card summary::-webkit-details-marker { display: none; }
.privacy-card summary > span:last-of-type { display: flex; flex-direction: column; gap: .08rem; }
.privacy-card summary strong { font-size: .84rem; }
.privacy-card summary small { color: #748883; font-size: .72rem; font-weight: 500; }
.privacy-card summary::after {
    content: "";
    width: .52rem;
    height: .52rem;
    margin: -.2rem .35rem 0 auto;
    flex: 0 0 auto;
    border-right: 2px solid #315f56;
    border-bottom: 2px solid #315f56;
    transform: rotate(45deg);
    transition: transform .18s ease, border-color .18s ease;
}
.privacy-card summary:hover { background: #f8fcfa; }
.privacy-card summary:hover::after { border-color: var(--pm-green-700); }
.privacy-card[open] summary::after { transform: translateY(.18rem) rotate(225deg); }
.privacy-card[open] summary { background: #fbfdfc; border-bottom: 1px solid #deebe6; }
.privacy-card__body { padding: .15rem 1rem .85rem 3.7rem; color: #526c66; font-size: .82rem; line-height: 1.55; }
.privacy-card__body p { margin: .62rem 0; }

#pm-update { position: fixed; right: 1rem; bottom: 1rem; max-width: min(420px, 80vw); }

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--pm-focus);
    outline-offset: 2px;
}

@media (max-width: 1120px) {
    .hero-card { grid-template-columns: minmax(0, 1fr) 270px; }
    .feature-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .feature-item:nth-child(3) { border-left: 0; padding-left: 0; border-top: 1px solid #e8efed; }
    .feature-item:nth-child(4) { border-top: 1px solid #e8efed; }
    .workspace-grid { grid-template-columns: minmax(0, 1.45fr) minmax(315px, .85fr); }
    .grid, .line .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .app-header__inner { width: min(100% - 1.4rem, 1400px); }
    .offline-shell { width: min(100% - 1.4rem, 1400px); }
    .hero-card { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .sync-panel__controls { grid-template-columns: 1fr; }
    .workspace-grid { grid-template-columns: 1fr; }
    .workspace-sidebar { grid-template-columns: 1fr 1fr; align-items: start; }
}

@media (max-width: 760px) {
    .sale-scan-card__lookup { grid-template-columns: 1fr; }
    .sale-scan-field--code input { margin-top: .28rem; }
    .sale-ready-fields { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
    .app-header { position: static; }
    .app-header__inner { min-height: 60px; }
    .brand__divider, .brand__module, .header-link { display: none; }
    .brand__name { font-size: 1rem; }
    .button--header { min-height: 38px; padding: .5rem .65rem; font-size: .8rem; }
    .offline-shell { padding-top: .7rem; }
    .hero-card__content { padding: 1.05rem; }
    .hero-card__title-row { gap: .72rem; }
    .hero-card__icon { width: 3rem; height: 3rem; font-size: 1.3rem; }
    .hero-card__lead { font-size: .88rem; }
    .feature-strip { grid-template-columns: 1fr; }
    .feature-item,
    .feature-item + .feature-item,
    .feature-item:nth-child(3),
    .feature-item:nth-child(4) { padding: .72rem 0; border-left: 0; border-top: 1px solid #e8efed; }
    .feature-item:first-child { border-top: 0; }
    .sync-panel__status { grid-template-columns: auto minmax(0, 1fr); }
    .sync-panel__meta { grid-column: 2; min-width: 0; padding: .5rem 0 0; border-left: 0; border-top: 1px solid #cce4dd; }
    .actions { display: grid; grid-template-columns: 1fr 1fr; }
    .actions .button { width: 100%; }
    .actions #connect { grid-column: 1 / -1; }
    .actions .text-link { text-align: center; }
    .sale-card__top-grid { grid-template-columns: 1fr; }
    .sale-card .sale-camera-actions { grid-template-columns: 1fr; }
    .sale-scanner-block__topline { grid-template-columns: 1fr; }
    .sale-scanner-block__icon { display: none; }
    .workspace-sidebar { grid-template-columns: 1fr; }
    .sale-total { align-items: stretch; flex-direction: column; }
    .button--save { width: 100%; min-width: 0; }
    .privacy-card__body { padding-left: 1rem; }
}

@media (max-width: 470px) {
    .offline-shell, .app-header__inner { width: min(100% - 1rem, 1400px); }
    .hero-card__icon { display: none; }
    .sync-panel__status { grid-template-columns: 1fr; }
    .sync-panel__check { width: 2.35rem; height: 2.35rem; }
    .sync-panel__meta { grid-column: 1; }
    .actions { grid-template-columns: 1fr; }
    .actions #connect { grid-column: auto; }
    .grid, .line .grid { grid-template-columns: 1fr; }
    .card { padding: .9rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Keep install controls hidden until the browser offers installation. */
[hidden] { display: none !important; }
@media (max-width: 680px) {
    .app-header__inner { flex-wrap: wrap; gap: .5rem; }
    .header-actions { flex-wrap: wrap; }
    #sync-center-link, .header-link[data-pm-install-link] { display: inline-flex; font-size: .8rem; }
}

/* Keep the lookup, camera and sale settings distinct, as in the cash-sale reference. */
.sale-card .sale-scan-card { background: transparent; border: 0; overflow: visible; gap: 0; }
.sale-section-heading { background: #f0f8f7; border-radius: .75rem .75rem 0 0; padding: .75rem .75rem .55rem; }
.sale-scan-card__lookup { background: #f0f8f7; border-radius: 0 0 .75rem .75rem; padding: 0 .75rem .75rem; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr) auto; }
.sale-scanner-block { margin: .55rem 0 0; padding: .65rem; border: 0; background: #f0f8f7; }
.sale-ready-block { padding: .65rem .25rem; border: 0; background: transparent; }
.sale-scan-status { overflow-wrap: anywhere; }
.sale-scanner-block video { display: block; width: 100%; max-height: 320px; object-fit: contain; background: #102622; border-radius: .6rem; margin-top: .6rem; }
.sale-scanner-workspace [hidden] { display: none !important; }
.notes-field { background: transparent; border: 0; padding-right: 0; }
.notes-field textarea { min-height: 64px; padding-bottom: 1.4rem; }
.notes-count { position: absolute; right: .65rem; bottom: 1rem; color: var(--pm-muted); font-size: .65rem; font-weight: 400; pointer-events: none; }
.sale-card .sale-total { background: #eaf8f4; }
@media (max-width: 1100px) and (min-width: 761px) {
    .sale-scan-card__lookup { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
    .sale-scan-submit { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
    .sale-scan-card__lookup { grid-template-columns: minmax(0, 1fr); }
    .sale-scan-submit { width: 100%; }
}
