/* ─── Install (native Tauri app) modal ─────────────────── */
html[data-pos-runtime="tauri"] #pospro-install-btn,
html[data-pos-runtime="tauri"] #pospro-pwa-install-btn {
    display: none !important;
}

.pospro-install-native-only {
    padding: 8px 4px 4px;
}

.pospro-install-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 12px;
    overflow: hidden;
    font-family: var(--pos-font, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
}
.pospro-install-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.pospro-install-box {
    position: relative;
    z-index: 1;
    background: var(--pos-card, #1a1f2e);
    color: var(--pos-text, #e8eaed);
    border: 1px solid var(--pos-border, rgba(255,255,255,0.12));
    border-radius: 16px;
    padding: 14px 16px 12px;
    width: min(440px, 94vw);
    max-width: 94vw;
    max-height: min(88vh, 720px);
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
    -webkit-overflow-scrolling: touch;
}
.pospro-install-sheet-grab {
    display: none;
}
body.pospro-install-sheet-open {
    overflow: hidden;
    touch-action: none;
}
.pospro-install-modal--mobile-sheet {
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}
.pospro-install-modal--mobile-sheet .pospro-install-backdrop {
    background: rgba(0, 0, 0, 0.5);
}
.pospro-install-modal--mobile-sheet .pospro-install-box {
    width: 100%;
    max-width: 100%;
    max-height: min(88vh, 680px);
    border-radius: 20px 20px 0 0;
    border-bottom: none;
    border-left: none;
    border-right: none;
    padding: 6px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.5);
    animation: pospro-install-sheet-in 0.34s cubic-bezier(0.32, 0.72, 0, 1);
    display: flex;
    flex-direction: column;
}
@keyframes pospro-install-sheet-in {
    from {
        transform: translateY(100%);
        opacity: 0.85;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
.pospro-install-modal--mobile-sheet #pospro-install-platform-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.pospro-install-modal--mobile-sheet .pospro-install-head {
    display: none;
}
.pospro-install-modal--mobile-sheet .pospro-install-close {
    top: 10px;
    right: 10px;
    z-index: 2;
}
.pospro-install-sheet-title {
    display: none;
    margin: 0 0 2px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--pos-text-muted, #94a3b8);
    letter-spacing: -0.01em;
}
.pospro-install-modal--mobile-sheet .pospro-install-sheet-title {
    display: block;
}
.pospro-install-modal--mobile-sheet .pospro-install-sheet-grab {
    display: block;
    width: 36px;
    height: 4px;
    margin: 2px auto 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
}
.pospro-install-modal--mobile-sheet .pospro-install-head {
    margin-bottom: 6px;
    padding-right: 36px;
}
.pospro-install-modal--mobile-sheet .pospro-install-head h2 {
    font-size: 17px;
    letter-spacing: -0.02em;
}
.pospro-install-modal--mobile-sheet .pospro-install-sub {
    font-size: 12px;
}
.pospro-install-modal--mobile-sheet .pospro-install-close {
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    font-size: 20px;
}
.pospro-install-mobile-hero {
    text-align: center;
    padding: 4px 8px 16px;
}
.pospro-install-app-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    margin: 0 auto 12px;
    display: block;
}
.pospro-install-app-icon-fallback {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 22px;
    color: #fff;
    background: linear-gradient(145deg, #f97316, #ea580c);
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.35);
}
.pospro-install-app-name {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: var(--pos-text, #f8fafc);
}
.pospro-install-app-tagline {
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.35;
    color: var(--pos-text-muted, #94a3b8);
}
.pospro-install-mobile-primary-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 14px 20px;
    border-radius: 14px;
    border: none;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(180deg, var(--pos-primary, #f97316) 0%, var(--pos-primary-hover, #ea580c) 100%);
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.35);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.pospro-install-mobile-primary-btn:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.pospro-install-mobile-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0 10px;
    color: var(--pos-text-muted, #64748b);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.pospro-install-mobile-divider::before,
.pospro-install-mobile-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}
.pospro-install-mobile-divider span {
    flex-shrink: 0;
}
.pospro-install-mobile-stack {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.pospro-install-mobile-compact-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 4px 0 10px;
}
.pospro-install-choice-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 12px 10px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    text-decoration: none;
    color: inherit;
    min-height: 148px;
    text-align: center;
    touch-action: manipulation;
}
.pospro-install-choice-card.is-native-app {
    cursor: pointer;
}
.pospro-install-choice-card:active {
    transform: scale(0.98);
}
.pospro-install-choice-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.pospro-install-choice-icon--apk {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    background: rgba(255, 255, 255, 0.08);
}
.pospro-install-choice-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}
.pospro-install-choice-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.pospro-install-choice-meta {
    font-size: 11px;
    color: var(--pos-text-muted, #94a3b8);
    line-height: 1.3;
}
.pospro-install-choice-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(180deg, var(--pos-primary, #f97316) 0%, var(--pos-primary-hover, #ea580c) 100%);
    border: none;
    width: 100%;
    max-width: 120px;
}
.pospro-install-choice-card.is-native-app .pospro-install-choice-btn {
    background: rgba(255, 255, 255, 0.12);
    color: var(--pos-text, #f8fafc);
}
.pospro-install-row-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.pospro-install-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: inherit;
    text-decoration: none;
    text-align: left;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.12s ease, transform 0.1s ease;
}
.pospro-install-row:active {
    transform: scale(0.985);
    background: rgba(255, 255, 255, 0.1);
}
.pospro-install-row--primary {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.35), rgba(37, 99, 235, 0.4));
    border-color: rgba(6, 182, 212, 0.45);
}
.pospro-install-row--accent {
    background: rgba(37, 99, 235, 0.22);
    border-color: rgba(37, 99, 235, 0.4);
}
.pospro-install-row.is-disabled {
    opacity: 0.55;
    pointer-events: none;
}
.pospro-install-row-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: rgba(0, 0, 0, 0.2);
}
.pospro-install-row-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.pospro-install-row-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
}
.pospro-install-row-meta {
    font-size: 11px;
    line-height: 1.3;
    color: var(--pos-text-muted, #9aa0a6);
}
.pospro-install-row--primary .pospro-install-row-meta {
    color: rgba(255, 255, 255, 0.78);
}
.pospro-install-row-action {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--pos-primary, #2563eb);
    color: #fff;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.pospro-install-row--primary .pospro-install-row-action {
    background: #fff;
    color: #0f172a;
}
.pospro-install-row--list {
    padding: 14px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
}
.pospro-install-row--list .pospro-install-row-icon {
    width: 36px;
    height: 36px;
    font-size: 18px;
    border-radius: 10px;
}
.pospro-install-row--list .pospro-install-row-title {
    font-size: 14px;
}
.pospro-install-row-chevron {
    flex-shrink: 0;
    font-size: 22px;
    line-height: 1;
    font-weight: 300;
    color: var(--pos-text-muted, #94a3b8);
    padding-left: 4px;
}
.pospro-install-note--compact {
    margin: 8px 0 0;
    padding: 8px 10px;
    font-size: 11px;
}
.pospro-install-foot--mobile {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 0;
    font-size: 10px;
    line-height: 1.4;
    color: var(--pos-text-muted, #64748b);
    flex-shrink: 0;
}
.pospro-install-foot--mobile a {
    color: var(--pos-primary, #60a5fa);
    text-decoration: none;
    font-weight: 600;
}
.pospro-install-pwa-hint {
    margin: 0 0 12px;
    padding: 0 4px;
    font-size: 11px;
    line-height: 1.4;
    color: var(--pos-text-muted, #94a3b8);
    text-align: center;
}
.pospro-install-row-list--pwa .pospro-install-card {
    width: 100%;
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    padding: 12px 14px;
    border-radius: 12px;
}
.pospro-install-row-list--pwa .pospro-install-badge {
    position: static;
    margin-left: auto;
    flex-shrink: 0;
}
.pospro-install-modal--mobile-sheet .pospro-install-status {
    font-size: 11px;
    padding: 10px 12px;
    border-radius: 12px;
    flex-shrink: 0;
    margin-top: 10px;
}
.pospro-install-modal--mobile-sheet .pospro-install-status-actions button {
    min-height: 40px;
    flex: 1 1 auto;
    font-size: 12px;
}
.pospro-install-modal--mobile-sheet .pospro-install-section-label {
    margin-top: 4px;
    margin-bottom: 4px;
    font-size: 10px;
}
.pospro-install-modal--terminal-pwa .pospro-install-box {
    width: 460px;
}
.pospro-install-steps-terminal {
    margin: 12px 0 0;
    padding-left: 18px;
    font-size: 12px;
    line-height: 1.45;
    color: var(--pos-text-muted, #9aa0a6);
}
.pospro-install-box h2 { margin: 0 0 4px; font-size: 17px; color: var(--pos-text); }
.pospro-install-sub { margin: 0; color: var(--pos-text-muted, #9aa0a6); font-size: 12px; }
.pospro-install-intro { margin: 0 0 10px; font-size: 12.5px; line-height: 1.45; color: var(--pos-text-muted); }
.pospro-install-label { margin: 0 0 8px; font-size: 12px; color: var(--pos-text); }
.pospro-install-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    gap: 8px;
    margin: 4px 0;
}
.pospro-install-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 6px;
    background: var(--pos-primary, #2563eb);
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    text-align: center;
    transition: transform .12s ease, background .12s ease;
}
.pospro-install-card:hover { background: var(--pos-primary-hover, #1d4ed8); transform: translateY(-1px); }
.pospro-install-card.is-recommended { box-shadow: 0 0 0 2px #22c55e; }
.pospro-install-card .pospro-install-ico { font-size: 20px; line-height: 1; margin: 0; }
.pospro-install-card .pospro-install-name { font-weight: 600; font-size: 12.5px; }
.pospro-install-card .pospro-install-cta { font-size: 11px; opacity: .92; }
.pospro-install-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: var(--pos-text-muted, #9aa0a6);
    cursor: pointer;
}
.pospro-install-close:hover { color: var(--pos-text, #fff); }

.pospro-install-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; padding-right: 28px; }
.pospro-install-logo {
    width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
}
.pospro-install-head h2 { margin: 0 0 2px; font-size: 16px; }
.pospro-install-head .pospro-install-sub { margin: 0; font-size: 11.5px; }
.pospro-install-ico { font-size: 14px; margin-right: 3px; }
.pospro-install-badge {
    position: absolute; top: 4px; right: 4px;
    padding: 1px 5px; border-radius: 999px;
    background: #22c55e; color: #052e16; font-size: 9px; font-weight: 700;
}
.pospro-install-foot { margin-top: 10px; color: var(--pos-text-muted, #9aa0a6); font-size: 11px; line-height: 1.45; }
.pospro-install-refresh { color: var(--pos-primary, #60a5fa); text-decoration: underline; }
.pospro-install-refresh:hover { color: var(--pos-primary-hover, #93c5fd); }
.pospro-install-status {
    margin-top: 8px; padding: 8px 10px; border-radius: var(--pos-control-radius, 8px); font-size: 12px; line-height: 1.45;
    background: rgba(255, 255, 255, 0.08);
    color: var(--pos-text, #e2e8f0);
    border: 1px solid var(--pos-border, rgba(255, 255, 255, 0.12));
}
.pospro-install-status code {
    background: rgba(255, 255, 255, 0.08); padding: 1px 4px; border-radius: 4px; font-size: 11px;
    color: var(--pos-text, #e8eaed);
}
.pospro-install-status.is-loading {
    background: rgba(37, 99, 235, 0.15); color: #93c5fd; border-color: rgba(37, 99, 235, 0.35);
}
.pospro-install-status.is-error {
    background: rgba(239, 68, 68, 0.12); color: #fca5a5; border-color: rgba(239, 68, 68, 0.35);
}
.pospro-install-status.is-info {
    background: #dbeafe;
    color: #0f172a;
    border-color: #93c5fd;
}
.pospro-install-status.is-info .pospro-install-smartscreen {
    color: #1e293b;
    border-top-color: rgba(15, 23, 42, 0.15);
}
.pospro-install-status.is-info .pospro-install-smartscreen code {
    background: rgba(255, 255, 255, 0.85);
    color: #0f172a;
}
body.pospro-theme-dark .pospro-install-status.is-info,
html.pospro-theme-dark .pospro-install-status.is-info,
body.pospro-theme-grey .pospro-install-status.is-info,
html.pospro-theme-grey .pospro-install-status.is-info {
    background: #1e293b;
    color: #f8fafc;
    border-color: #475569;
}
body.pospro-theme-dark .pospro-install-status.is-info .pospro-install-smartscreen,
html.pospro-theme-dark .pospro-install-status.is-info .pospro-install-smartscreen,
body.pospro-theme-grey .pospro-install-status.is-info .pospro-install-smartscreen,
html.pospro-theme-grey .pospro-install-status.is-info .pospro-install-smartscreen {
    color: #cbd5e1;
    border-top-color: rgba(255, 255, 255, 0.12);
}
body.pospro-theme-dark .pospro-install-status.is-info .pospro-install-smartscreen code,
html.pospro-theme-dark .pospro-install-status.is-info .pospro-install-smartscreen code,
body.pospro-theme-grey .pospro-install-status.is-info .pospro-install-smartscreen code,
html.pospro-theme-grey .pospro-install-status.is-info .pospro-install-smartscreen code {
    background: rgba(0, 0, 0, 0.35);
    color: #f1f5f9;
}
.pospro-install-smartscreen {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(15, 23, 42, 0.12);
    font-size: 11px;
    line-height: 1.45;
    color: #334155;
}
body.pospro-theme-dark .pospro-install-smartscreen,
html.pospro-theme-dark .pospro-install-smartscreen,
body.pospro-theme-grey .pospro-install-smartscreen,
html.pospro-theme-grey .pospro-install-smartscreen {
    border-top-color: rgba(255, 255, 255, 0.1);
    color: var(--pos-text-muted, #9aa0a6);
}
.pospro-install-smartscreen code {
    display: block;
    margin-top: 4px;
    padding: 6px 8px;
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.06);
    color: #0f172a;
    word-break: break-all;
    font-size: 11px;
}
body.pospro-theme-dark .pospro-install-smartscreen code,
html.pospro-theme-dark .pospro-install-smartscreen code,
body.pospro-theme-grey .pospro-install-smartscreen code,
html.pospro-theme-grey .pospro-install-smartscreen code {
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
}
.pospro-install-status-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}
.pospro-install-status-actions button {
    font-size: 11px;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid rgba(15, 23, 42, 0.15);
    background: rgba(37, 99, 235, 0.12);
    color: #1e3a8a;
    cursor: pointer;
}
body.pospro-theme-dark .pospro-install-status-actions button,
html.pospro-theme-dark .pospro-install-status-actions button,
body.pospro-theme-grey .pospro-install-status-actions button,
html.pospro-theme-grey .pospro-install-status-actions button {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(37, 99, 235, 0.25);
    color: #e2e8f0;
}
.pospro-install-status.is-info .pospro-install-status-actions button {
    background: #fff;
    color: #1e3a8a;
    border-color: #93c5fd;
}
body.pospro-theme-dark .pospro-install-status.is-info .pospro-install-status-actions button,
html.pospro-theme-dark .pospro-install-status.is-info .pospro-install-status-actions button,
body.pospro-theme-grey .pospro-install-status.is-info .pospro-install-status-actions button,
html.pospro-theme-grey .pospro-install-status.is-info .pospro-install-status-actions button {
    background: #334155;
    color: #f8fafc;
    border-color: #64748b;
}
.pospro-install-status-actions button:hover {
    background: rgba(37, 99, 235, 0.22);
}
body.pospro-theme-dark .pospro-install-status-actions button:hover,
html.pospro-theme-dark .pospro-install-status-actions button:hover {
    background: rgba(37, 99, 235, 0.4);
}
.pospro-ci-stepper.is-qty-locked .pospro-ci-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.pospro-install-status:empty,
.pospro-install-status[style*="display: none"] {
    display: none !important;
    margin: 0;
    padding: 0;
    border: 0;
}
.pospro-install-note {
    margin: 0 0 10px; padding: 8px 10px; border-radius: 8px; font-size: 12px; line-height: 1.45;
    background: rgba(239, 68, 68, 0.12); color: var(--pos-text); border: 1px solid rgba(239, 68, 68, 0.35);
}
.pospro-install-card.is-disabled {
    background: #6b7280; cursor: not-allowed; opacity: .85;
}
.pospro-install-card.is-disabled:hover { background: #4b5563; transform: none; }

.pospro-install-hero {
    display: flex;
    justify-content: center;
    margin: 2px 0 8px;
}
.pospro-install-hero-pwa { margin-bottom: 6px; }
.pospro-install-qr-desktop-hint {
    margin: 6px 0 0;
    font-size: 11px;
    line-height: 1.4;
    color: var(--pos-text-muted, #9aa0a6);
}
@media (max-width: 768px) {
    .pospro-install-qr-desktop-hint {
        display: none;
    }
}

/* iOS Add to Home Screen guide (Safari has no beforeinstallprompt) */
.pospro-ios-install-sheet {
    position: fixed;
    inset: 0;
    z-index: 100050;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 12px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}
.pospro-ios-install-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}
.pospro-ios-install-card {
    position: relative;
    width: min(100%, 400px);
    max-height: min(88vh, 560px);
    overflow-y: auto;
    background: var(--pos-card, #1e293b);
    color: var(--pos-text, #e2e8f0);
    border: 1px solid var(--pos-border, rgba(255,255,255,0.12));
    border-radius: 16px 16px 12px 12px;
    padding: 18px 16px 16px;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.45);
}
.pospro-ios-install-close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: none;
    background: transparent;
    color: var(--pos-text-muted, #94a3b8);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}
.pospro-ios-install-icon-wrap {
    text-align: center;
    margin-bottom: 10px;
}
.pospro-ios-install-icon {
    width: 88px;
    height: 88px;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.pospro-ios-install-icon-caption {
    margin: 6px 0 0;
    font-size: 11px;
    color: var(--pos-text-muted, #94a3b8);
}
.pospro-ios-install-title {
    margin: 0 0 8px;
    font-size: 18px;
    text-align: center;
}
.pospro-ios-install-lead {
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--pos-text-muted, #cbd5e1);
}
.pospro-ios-install-steps {
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pospro-ios-install-steps li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.4;
}
.pospro-ios-step-num {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #06b6d4;
    color: #0f172a;
    font-size: 12px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.pospro-ios-share-ico {
    font-size: 15px;
}
.pospro-ios-install-qr-wrap {
    text-align: center;
    margin: 10px 0 12px;
}
.pospro-ios-install-qr-wrap .pospro-ios-install-qr-canvas {
    display: block;
    margin: 8px auto;
    border-radius: 8px;
    background: #fff;
    padding: 6px;
}
.pospro-ios-install-qr-url {
    display: block;
    font-size: 11px;
    word-break: break-all;
    color: var(--pos-text-muted, #94a3b8);
    margin-top: 6px;
}
.pospro-ios-install-note {
    margin: 0 0 12px;
    font-size: 11px;
    color: var(--pos-text-muted, #94a3b8);
    text-align: center;
}
.pospro-ios-install-done {
    width: 100%;
    min-height: 44px;
    border: none;
    border-radius: 10px;
    background: var(--pos-primary, #2563eb);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}
body.pospro-ios-install-open {
    overflow: hidden;
}
/* Compact hero: horizontal row (icon left, text, CTA right), not a big tile. */
.pospro-install-card--hero {
    width: 100%;
    max-width: none;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    text-align: left;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
}
.pospro-install-card--hero .pospro-install-ico { font-size: 20px; flex-shrink: 0; }
.pospro-install-card--hero .pospro-install-name { font-size: 12.5px; white-space: nowrap; }
.pospro-install-card--hero .pospro-install-subline { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pospro-install-card--hero .pospro-install-badge { top: -7px; right: 6px; }
@media (max-width: 480px) {
    .pospro-install-card--hero { flex-wrap: wrap; }
    .pospro-install-card--hero .pospro-install-subline { flex-basis: 100%; }
}
.pospro-install-card--hero .pospro-install-cta {
    margin-top: 0;
    margin-left: auto;
    flex-shrink: 0;
    padding: 4px 10px;
    background: rgba(255,255,255,0.18);
    border-radius: 6px;
    font-weight: 600;
    font-size: 11px;
    white-space: nowrap;
}
.pospro-install-card--hero .pospro-install-size { display: none; }
.pospro-install-subline {
    font-size: 10.5px;
    opacity: 1;
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.82);
}
.pospro-install-steps {
    margin: 8px 0 10px;
    padding-left: 1.15rem;
    color: var(--pos-text, #e2e8f0);
    font-size: 12px;
    line-height: 1.45;
}
.pospro-install-steps li {
    margin-bottom: 4px;
}
.pospro-install-qr-url {
    color: var(--pos-text-light, #cbd5e1);
}
.pospro-install-card.is-disabled .pospro-install-cta,
.pospro-install-card.is-disabled .pospro-install-subline {
    color: rgba(255, 255, 255, 0.9);
}
.pospro-install-format { font-weight: 400; opacity: .9; }
.pospro-install-size { font-size: 9.5px; opacity: .75; }
.pospro-install-section-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--pos-text-light, #cbd5e1);
    margin: 0 0 6px;
}
.pospro-install-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}
.pospro-install-col-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--pos-text-light, #cbd5e1);
    margin-bottom: 6px;
}
.pospro-install-col-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.pospro-install-col-grid .pospro-install-card {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    padding: 8px 10px;
    gap: 8px;
    text-align: left;
}
.pospro-install-col-grid .pospro-install-ico { font-size: 18px; flex-shrink: 0; }
.pospro-install-col-grid .pospro-install-name { font-size: 12px; }
.pospro-install-col-grid .pospro-install-subline { display: none; }
.pospro-install-col-grid .pospro-install-cta { margin-left: auto; font-size: 10px; white-space: nowrap; }
.pospro-install-col-grid .pospro-install-badge { top: 3px; right: 3px; font-size: 8px; }
.pospro-install-mobile-qr {
    margin: 6px 0 8px;
    padding: 8px 10px;
    border-radius: var(--pos-control-radius, 8px);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--pos-border, rgba(255,255,255,0.12));
}
.pospro-install-qr-hint {
    margin: 0 0 10px;
    font-size: 11.5px;
    line-height: 1.45;
    color: var(--pos-text-muted);
}
.pospro-install-qr-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    flex-wrap: wrap;
}
.pospro-install-qr-canvas {
    flex-shrink: 0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.pospro-install-qr-meta {
    flex: 1;
    min-width: 140px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}
.pospro-install-qr-open {
    font-size: 12px;
    font-weight: 600;
    color: var(--pos-primary, #60a5fa);
    text-decoration: underline;
}
.pospro-install-qr-url {
    display: block;
    font-size: 10px;
    word-break: break-all;
    color: var(--pos-text-muted);
    background: rgba(0,0,0,0.2);
    padding: 6px 8px;
    border-radius: 6px;
    width: 100%;
    box-sizing: border-box;
}
.pospro-install-copy-link {
    border: 1px solid var(--pos-border, rgba(255,255,255,0.2));
    background: rgba(255,255,255,0.08);
    color: var(--pos-text);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 11px;
    cursor: pointer;
}
.pospro-install-copy-link:hover {
    background: rgba(255,255,255,0.12);
}
.pospro-install-on-device { margin-bottom: 8px; }
.pospro-install-col-grid .pospro-install-card.is-mobile-offline {
    background: linear-gradient(135deg, #0891b2, #2563eb);
}
.pospro-install-steps {
    margin: 10px 0 0;
    padding-left: 18px;
    font-size: 11.5px;
    line-height: 1.45;
    color: var(--pos-text-muted);
}
.pospro-install-steps li { margin-bottom: 2px; }
.pospro-install-steps strong { color: var(--pos-text); }

@media (max-width: 600px) {
    .pospro-install-box { padding: 16px 14px; width: 100%; max-width: 100%; }
    .pospro-install-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
    .pospro-install-card { padding: 10px 5px; }
    .pospro-install-head { gap: 8px; margin-bottom: 10px; }
    .pospro-install-logo { width: 36px; height: 36px; font-size: 18px; }
    .pospro-install-columns { grid-template-columns: 1fr; }
    .pospro-install-card--hero { max-width: none; }
}

.pospro-install-modal--downloading .pospro-install-close {
    opacity: 0.35;
    pointer-events: none;
}
.pospro-install-modal--downloading .pospro-install-backdrop {
    pointer-events: none;
}
.pospro-install-android-phases {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}
.pospro-install-phase {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--pos-text-muted, #9aa0a6);
}
.pospro-install-phase.is-done {
    color: #86efac;
}
.pospro-install-phase.is-active {
    color: var(--pos-text, #e8eaed);
    font-weight: 600;
}
.pospro-install-phase-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 5px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.25);
}
.pospro-install-phase.is-done .pospro-install-phase-dot {
    background: #22c55e;
}
.pospro-install-phase.is-active .pospro-install-phase-dot {
    background: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.25);
}
.pospro-install-steps-android {
    margin: 8px 0 10px;
    padding-left: 1.15rem;
    font-size: 12px;
    line-height: 1.45;
    color: var(--pos-text-muted, #9aa0a6);
}
.pospro-install-steps-android.is-compact {
    margin: 6px 0 0;
}
.pospro-install-play-protect {
    margin-top: 8px;
}
.pospro-install-open-hint {
    margin: 8px 0 0;
    font-size: 12.5px;
    color: #86efac;
}
.pospro-install-status-actions .pospro-install-open-app {
    font-weight: 700;
}

.pospro-install-download-progress {
    padding: 4px 0 2px;
}
.pospro-install-download-label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}
.pospro-install-progress-track {
    height: 8px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.25);
    overflow: hidden;
}
.pospro-install-progress-bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #059669, #10b981);
    transition: width 0.2s ease;
}
.pospro-install-progress-bar.is-indeterminate {
    width: 40% !important;
    animation: pospro-install-progress-indeterminate 1.2s ease-in-out infinite;
}
@keyframes pospro-install-progress-indeterminate {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(280%); }
}
.pospro-install-progress-pct {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--pos-text-muted, #94a3b8);
    text-align: center;
}
.pospro-install-floating-status {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 100070;
    pointer-events: none;
}
.pospro-install-floating-status .pospro-install-status {
    pointer-events: auto;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--pos-card, #1a1f2e);
    border: 1px solid var(--pos-border, rgba(255, 255, 255, 0.12));
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

/* Chromium / desktop PWA install confirmation (replaces raw browser prompt UX) */
body.pospro-chromium-install-open {
    overflow: hidden;
}
.pospro-chromium-install-sheet {
    position: fixed;
    inset: 0;
    z-index: 100060;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.pospro-chromium-install-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
}
.pospro-chromium-install-card {
    position: relative;
    width: min(100%, 380px);
    padding: 20px 20px 16px;
    border-radius: 16px;
    background: #f8fafc;
    color: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
    font-family: var(--pos-font, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
}
.pospro-chromium-install-title {
    margin: 0 0 14px;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.pospro-chromium-install-app {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.pospro-chromium-install-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.15);
    object-fit: cover;
}
.pospro-chromium-install-icon-fallback {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    font-weight: 800;
    font-size: 14px;
}
.pospro-chromium-install-name {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.25;
}
.pospro-chromium-install-host {
    margin-top: 2px;
    font-size: 13px;
    color: #64748b;
}
.pospro-chromium-install-lead {
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.45;
    color: #475569;
}
.pospro-chromium-install-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}
.pospro-chromium-install-cancel,
.pospro-chromium-install-confirm {
    min-height: 36px;
    padding: 0 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    touch-action: manipulation;
}
.pospro-chromium-install-cancel {
    background: #e2e8f0;
    color: #0f172a;
}
.pospro-chromium-install-cancel:hover {
    background: #cbd5e1;
}
.pospro-chromium-install-confirm {
    background: #1d4ed8;
    color: #fff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}
.pospro-chromium-install-confirm:hover {
    background: #1e40af;
}
.pospro-theme-dark .pospro-chromium-install-card,
.pospro-theme-grey .pospro-chromium-install-card {
    background: #1e293b;
    color: #f1f5f9;
    border-color: rgba(148, 163, 184, 0.25);
}
.pospro-theme-dark .pospro-chromium-install-host,
.pospro-theme-grey .pospro-chromium-install-host {
    color: #94a3b8;
}
.pospro-theme-dark .pospro-chromium-install-lead,
.pospro-theme-grey .pospro-chromium-install-lead {
    color: #cbd5e1;
}
.pospro-theme-dark .pospro-chromium-install-cancel,
.pospro-theme-grey .pospro-chromium-install-cancel {
    background: #334155;
    color: #f1f5f9;
}
