/* PoolTap App CSS - Mobile-First Design System */
/* Matches landing page: Space Grotesk + DM Sans, blue/cyan/dark palette */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --blue: #0066FF;
    --blue-hover: #0052CC;
    --blue-light: #E8F0FE;
    --blue-subtle: #F0F5FF;
    --cyan: #00D4AA;
    --cyan-light: #E6FFF8;
    --dark: #0A1628;
    --dark-mid: #162240;
    --gray: #8899B4;
    --gray-light: #C4D0E3;
    --white: #FFFFFF;
    --off-white: #F4F7FC;
    --green: #10B981;
    --green-light: #ECFDF5;
    --orange: #F59E0B;
    --orange-light: #FFFBEB;
    --red: #EF4444;
    --red-light: #FEF2F2;
    --radius: 16px;
    --radius-sm: 12px;
    --radius-xs: 8px;
    --shadow: 0 2px 12px rgba(10,22,40,0.06);
    --shadow-lg: 0 8px 32px rgba(10,22,40,0.1);
    --shadow-blue: 0 4px 20px rgba(0,102,255,0.2);
    --transition: 0.2s ease;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

body {
    font-family: 'DM Sans', -apple-system, sans-serif;
    color: var(--dark);
    background: var(--off-white);
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior: none;
    min-height: 100vh;
    min-height: 100dvh;
}

h1, h2, h3, h4 {
    font-family: 'Space Grotesk', sans-serif;
}

/* ── Loading Screen ─────────────────────────────────────────────── */
.loading-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    height: 100dvh;
    gap: 24px;
}

.loading-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--dark);
}

.loading-icon {
    width: 40px;
    height: 40px;
    background: var(--blue);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--blue-light);
    border-top: 3px solid var(--blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ── App Header ─────────────────────────────────────────────────── */
.app-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--white);
    border-bottom: 1px solid rgba(0,102,255,0.06);
    padding: 16px 20px;
    backdrop-filter: blur(20px);
}

.app-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--dark);
    text-decoration: none;
}

.app-logo-icon {
    width: 28px;
    height: 28px;
    background: var(--blue);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.app-tech-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--gray);
}

.app-tech-avatar {
    width: 32px;
    height: 32px;
    background: var(--blue-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--blue);
}

/* ── Route Summary Bar ──────────────────────────────────────────── */
.route-summary {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--off-white);
}

.route-date {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark);
    flex: 1;
}

.route-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--blue);
}

.progress-bar-bg {
    width: 60px;
    height: 6px;
    background: var(--blue-light);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--blue);
    border-radius: 3px;
    transition: width 0.4s ease;
}

/* ── Stop List ──────────────────────────────────────────────────── */
.stops-container {
    padding: 12px 16px;
    padding-bottom: calc(80px + var(--safe-bottom));
}

.stop-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid rgba(0,102,255,0.06);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    gap: 14px;
    align-items: flex-start;
    -webkit-user-select: none;
    user-select: none;
}

.stop-card:active {
    transform: scale(0.98);
    box-shadow: var(--shadow-lg);
}

.stop-card.completed {
    opacity: 0.65;
    border-color: var(--green);
    background: var(--green-light);
}

.stop-order {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    background: var(--blue-light);
    color: var(--blue);
}

.stop-card.completed .stop-order {
    background: var(--green);
    color: white;
}

.stop-info {
    flex: 1;
    min-width: 0;
}

.stop-customer {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stop-address {
    font-size: 0.82rem;
    color: var(--gray);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stop-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.stop-tag {
    font-size: 0.72rem;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

.stop-tag.service {
    background: var(--blue-light);
    color: var(--blue);
}

.stop-tag.time {
    background: var(--off-white);
    color: var(--gray);
}

.stop-tag.duration {
    background: var(--off-white);
    color: var(--gray);
}

.stop-tag.completed-tag {
    background: var(--green-light);
    color: var(--green);
}

.stop-chevron {
    color: var(--gray-light);
    font-size: 1.2rem;
    margin-top: 8px;
}

/* ── Stop Detail Page ───────────────────────────────────────────── */
.detail-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--white);
    border-bottom: 1px solid rgba(0,102,255,0.06);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.back-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: none;
    background: var(--off-white);
    color: var(--dark);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
    flex-shrink: 0;
}

.back-btn:active {
    background: var(--blue-light);
}

.detail-header-info {
    flex: 1;
    min-width: 0;
}

.detail-header-name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.detail-header-service {
    font-size: 0.78rem;
    color: var(--blue);
    font-weight: 500;
}

.detail-content {
    padding: 16px;
    padding-bottom: calc(100px + var(--safe-bottom));
}

/* ── Info Cards ─────────────────────────────────────────────────── */
.info-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 12px;
    border: 1px solid rgba(0,102,255,0.06);
    box-shadow: var(--shadow);
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark);
}

.info-card-icon {
    font-size: 1.1rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid var(--off-white);
}

.info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-label {
    font-size: 0.82rem;
    color: var(--gray);
    flex-shrink: 0;
    margin-right: 12px;
}

.info-value {
    font-size: 0.85rem;
    color: var(--dark);
    font-weight: 500;
    text-align: right;
}

.info-value.accent {
    color: var(--blue);
}

.info-value.warning {
    color: var(--orange);
}

.customer-note {
    background: var(--orange-light);
    border-radius: var(--radius-xs);
    padding: 12px;
    margin-top: 10px;
    font-size: 0.85rem;
    color: #92400E;
    line-height: 1.5;
    border-left: 3px solid var(--orange);
}

/* ── Checklist ──────────────────────────────────────────────────── */
.checklist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--off-white);
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

.checklist-item:last-child {
    border-bottom: none;
}

.checklist-checkbox {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 8px;
    border: 2px solid var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    font-size: 0.8rem;
    color: transparent;
}

.checklist-item.checked .checklist-checkbox {
    background: var(--blue);
    border-color: var(--blue);
    color: white;
}

.checklist-label {
    font-size: 0.9rem;
    color: var(--dark);
    flex: 1;
    transition: color var(--transition);
}

.checklist-item.checked .checklist-label {
    color: var(--gray);
    text-decoration: line-through;
}

.checklist-required {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--red);
    padding: 2px 6px;
    background: var(--red-light);
    border-radius: 4px;
}

/* ── Chemical Readings ──────────────────────────────────────────── */
.chemical-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.chemical-input-group {
    background: var(--off-white);
    border-radius: var(--radius-sm);
    padding: 14px;
}

.chemical-input-group.full-width {
    grid-column: 1 / -1;
}

.chemical-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chemical-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    text-align: center;
    margin-bottom: 6px;
}

.chemical-unit {
    font-size: 0.85rem;
    color: var(--gray);
    font-weight: 400;
}

.chemical-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--blue-light);
    outline: none;
}

.chemical-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--blue);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,102,255,0.3);
}

.chemical-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--blue);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(0,102,255,0.3);
}

.chemical-range {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--gray-light);
    margin-top: 4px;
}

.chemical-ideal {
    font-size: 0.7rem;
    color: var(--green);
    font-weight: 500;
}

.chemical-last {
    font-size: 0.72rem;
    color: var(--gray);
}

/* ── Photo Section (3-photo required flow) ─────────────────────── */
.photo-slots {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.photo-slot {
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    -webkit-user-select: none;
    user-select: none;
    overflow: hidden;
}

.photo-slot:active {
    transform: scale(0.98);
}

/* ── Empty photo slot (not yet captured) ── */
.photo-slot-empty {
    border: 2px dashed var(--gray-light);
    background: var(--off-white);
}

.photo-slot-empty.photo-slot-next {
    border-color: var(--blue);
    background: var(--blue-subtle);
    box-shadow: var(--shadow-blue);
}

.photo-slot-capture {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    gap: 4px;
}

.photo-slot-step {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray);
    margin-bottom: 4px;
}

.photo-slot-next .photo-slot-step {
    color: var(--blue);
    background: var(--blue-light);
    padding: 3px 10px;
    border-radius: 12px;
}

.photo-slot-icon {
    font-size: 1.8rem;
    margin-bottom: 2px;
}

.photo-slot-label {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark);
}

.photo-slot-desc {
    font-size: 0.78rem;
    color: var(--gray);
    text-align: center;
}

.photo-slot-next .photo-slot-desc {
    color: var(--blue);
    font-weight: 500;
}

/* ── Completed photo slot ── */
.photo-slot-done {
    border: 2px solid var(--green);
    background: var(--green-light);
}

.photo-slot-preview {
    width: 100%;
    height: 140px;
    position: relative;
    overflow: hidden;
}

.photo-slot-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-slot-retake {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 16px 12px 8px;
    text-align: right;
}

.photo-slot-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
}

.photo-slot-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--green);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.photo-slot-info .photo-slot-label {
    font-size: 0.82rem;
    color: var(--green);
}

/* ── Saving state ── */
.photo-slot.saving {
    opacity: 0.6;
    pointer-events: none;
}

.photo-slot.saving::after {
    content: 'Saving...';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.8);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--blue);
}

/* ── Photo header status badges ── */
.photo-header-status {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray);
}

.photo-header-complete {
    color: var(--green);
    font-weight: 600;
}

/* ── Tab count done state ── */
.tab-count-done {
    background: var(--green-light) !important;
    color: var(--green) !important;
}

/* ── Notes ──────────────────────────────────────────────────────── */
.notes-textarea {
    width: 100%;
    min-height: 100px;
    padding: 14px;
    border: 1px solid var(--off-white);
    border-radius: var(--radius-sm);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    color: var(--dark);
    background: var(--off-white);
    resize: vertical;
    outline: none;
    transition: border-color var(--transition);
}

.notes-textarea:focus {
    border-color: var(--blue);
    background: var(--white);
}

.notes-textarea::placeholder {
    color: var(--gray-light);
}

/* ── Action Bar (Bottom Fixed) ──────────────────────────────────── */
.action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid rgba(0,102,255,0.06);
    padding: 12px 16px;
    padding-bottom: calc(12px + var(--safe-bottom));
    z-index: 40;
    display: flex;
    gap: 10px;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    flex: 1;
    -webkit-user-select: none;
    user-select: none;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--blue);
    color: white;
    box-shadow: var(--shadow-blue);
}

.btn-primary:active {
    background: var(--blue-hover);
}

.btn-primary:disabled {
    background: var(--gray-light);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: var(--off-white);
    color: var(--dark);
    border: 1px solid rgba(0,102,255,0.1);
}

.btn-secondary:active {
    background: var(--blue-light);
}

.btn-success {
    background: var(--green);
    color: white;
    box-shadow: 0 4px 20px rgba(16,185,129,0.2);
}

.btn-success:active {
    background: #059669;
}

.btn-icon {
    font-size: 1.1rem;
}

/* ── Section Tabs ───────────────────────────────────────────────── */
.section-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: var(--off-white);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.section-tab {
    flex: 1;
    padding: 10px 12px;
    border-radius: var(--radius-xs);
    border: none;
    background: transparent;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 0.8rem;
    color: var(--gray);
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
}

.section-tab.active {
    background: var(--white);
    color: var(--dark);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.section-tab .tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    font-size: 0.65rem;
    font-weight: 700;
    background: var(--blue-light);
    color: var(--blue);
    border-radius: 9px;
    padding: 0 5px;
    margin-left: 4px;
}

.section-content {
    display: none;
}

.section-content.active {
    display: block;
}

/* ── Success Animation ──────────────────────────────────────────── */
.success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.success-check {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    margin-bottom: 24px;
    animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

.success-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.success-sub {
    font-size: 0.95rem;
    color: var(--gray);
}

/* ── Navigate Button ────────────────────────────────────────────── */
.navigate-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--blue-light);
    border: none;
    border-radius: var(--radius-xs);
    color: var(--blue);
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    transition: background var(--transition);
    width: 100%;
    justify-content: center;
    margin-top: 10px;
}

.navigate-btn:active {
    background: var(--blue);
    color: white;
}

/* ── Empty State ────────────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.empty-state-text {
    font-size: 0.95rem;
}

/* ── Toast ──────────────────────────────────────────────────────── */
.toast {
    position: fixed;
    bottom: calc(80px + var(--safe-bottom));
    left: 16px;
    right: 16px;
    background: var(--dark);
    color: white;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 200;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
    text-align: center;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* ── Detail Navigation Row ──────────────────────────────────────── */
.detail-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-xs);
    border: 1px solid var(--off-white);
    background: var(--white);
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 0.82rem;
    color: var(--dark);
    cursor: pointer;
    transition: all var(--transition);
}

.detail-nav-btn:active {
    background: var(--blue-light);
}

/* ── Completed badge ────────────────────────────────────────────── */
.completed-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--green-light);
    border: 1px solid var(--green);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-bottom: 12px;
}

.completed-banner-icon {
    font-size: 1.3rem;
}

.completed-banner-text {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--green);
}

.completed-banner-time {
    font-size: 0.78rem;
    color: var(--gray);
    margin-left: auto;
}

/* ── Last Service Card ──────────────────────────────────────────── */
.last-service-note {
    background: var(--off-white);
    border-radius: var(--radius-xs);
    padding: 12px;
    font-size: 0.85rem;
    color: var(--dark-mid);
    line-height: 1.5;
    margin-top: 8px;
    font-style: italic;
}

.last-chemicals {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.last-chem {
    text-align: center;
    padding: 8px;
    background: var(--off-white);
    border-radius: var(--radius-xs);
}

.last-chem-value {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--dark);
}

.last-chem-label {
    font-size: 0.65rem;
    color: var(--gray);
    margin-top: 2px;
}

/* ── Utility ────────────────────────────────────────────────────── */
.hidden {
    display: none !important;
}

.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mb-3 { margin-bottom: 12px; }

/* ── Desktop constraint ─────────────────────────────────────────── */
@media (min-width: 600px) {
    body {
        display: flex;
        justify-content: center;
        background: var(--dark);
    }

    #app {
        width: 100%;
        max-width: 430px;
        min-height: 100vh;
        min-height: 100dvh;
        background: var(--off-white);
        box-shadow: 0 0 60px rgba(0,0,0,0.3);
        position: relative;
    }

    .action-bar {
        max-width: 430px;
        left: 50%;
        transform: translateX(-50%);
    }

    .toast {
        max-width: 398px;
        left: 50%;
        transform: translateX(-50%) translateY(20px);
    }

    .toast.show {
        transform: translateX(-50%) translateY(0);
    }

    .success-overlay {
        max-width: 430px;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        width: 100%;
    }
}
