/* Design tokens, base layout and shared components for the 3 "phone mockup"
   apps (client, courier, pvz) — was duplicated near-identically across all
   three CSS files before this extraction. */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
:root {
    --bg: #f5f5f7;
    --card: #ffffff;
    --text: #1d1d1f;
    --text-2: #6e6e73;
    --text-3: #86868b;
    --line: rgba(0,0,0,0.08);
    --line-2: rgba(0,0,0,0.12);
    --teal: #15803d;
    --teal-dark: #166534;
    --teal-light: rgba(21,128,61,0.1);
    --green: #34c759;
    --red: #ff3b30;
    --orange: #ff9500;
    --blue: #007aff;
    --purple: #5856d6;
    --yellow: #ffcc00;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.02);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.03);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.05);
    --shadow-xl: 0 24px 60px rgba(0,0,0,0.15), 0 8px 20px rgba(0,0,0,0.08);
    --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}
html, body {
    font-family: var(--font);
    background: #e8e8ed;
    color: var(--text);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em;
    overscroll-behavior: none;
}
.phone {
    width: 430px;
    max-width: 100%;
    height: 900px;
    max-height: 100vh;
    background: var(--bg);
    border-radius: 56px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
}
.status-bar {
    padding: 16px 32px 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    font-weight: 600;
    flex-shrink: 0;
    letter-spacing: -0.02em;
}
.status-bar .right { display: flex; align-items: center; gap: 6px; }

.screen {
    flex: 1;
    display: none;
    flex-direction: column;
    overflow: hidden;
}
.screen.active { display: flex; animation: screenIn 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes screenIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
.app-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 20px 100px;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}
.app-content::-webkit-scrollbar { width: 0; }

/* ============ HEADER ============ */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 4px 20px;
    flex-shrink: 0;
}
.header h1 {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
}
.header .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #15803d 0%, #166534 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(21,128,61,0.35);
    transition: transform 0.2s;
}
.header .avatar:active { transform: scale(0.92); }
.header .back {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(120,120,128,0.12);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text);
    transition: background 0.15s, transform 0.15s;
    font-family: inherit;
    padding: 0;
}
.header .back:active {
    background: rgba(120,120,128,0.2);
    transform: scale(0.92);
}
.header .back svg { width: 20px; height: 20px; }
.header .title {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.02em;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.header .placeholder { width: 40px; }










/* ============ BIG SEARCH ============ */
.big-search {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--card);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    border: 0.5px solid rgba(0,0,0,0.04);
}
.big-search:active {
    transform: scale(0.99);
    box-shadow: var(--shadow-md);
}
.big-search svg:first-child {
    width: 20px;
    height: 20px;
    color: var(--text-3);
    flex-shrink: 0;
}
.big-search .placeholder {
    flex: 1;
    font-size: 16px;
    color: var(--text-3);
    font-weight: 500;
    letter-spacing: -0.01em;
}
.big-search .chev {
    width: 16px;
    height: 16px;
    color: var(--text-3);
    flex-shrink: 0;
}

/* ============ BANNER SLIDER ============ */
.banner-slider {
    position: relative;
    margin-bottom: 20px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: #e5e5ea;
    touch-action: pan-y;
}
.banner-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}
.banner-slide {
    min-width: 100%;
    padding: 26px 24px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.banner-slide h3 {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
    position: relative;
    z-index: 2;
    line-height: 1.2;
}
.banner-slide p {
    font-size: 13.5px;
    opacity: 0.9;
    line-height: 1.45;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
    font-weight: 500;
}
.banner-slide .banner-btn {
    display: inline-block;
    background: rgba(255,255,255,0.95);
    padding: 9px 18px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    position: relative;
    z-index: 2;
    border: none;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: -0.01em;
}
.banner-slide .banner-icon {
    position: absolute;
    right: 10px;
    bottom: -15px;
    width: 140px;
    height: 140px;
    opacity: 0.18;
    z-index: 1;
    transform: rotate(-12deg);
}
.banner-slide.teal { background: linear-gradient(135deg, #0e8a8a 0%, #0a6e6e 100%); color: #fff; }
.banner-slide.orange { background: linear-gradient(135deg, #ff9500 0%, #e07b00 100%); color: #fff; }
.banner-slide.purple { background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%); color: #fff; }
.banner-slide.green { background: linear-gradient(135deg, #34c759 0%, #26a147 100%); color: #fff; }
/* Photo banners: background-image set via JS (loadBanners() in 02_client.js),
   never inline in the template string, to avoid embedding a server URL
   straight into an HTML attribute. The gradient color above still shows
   while the photo loads. */
.banner-slide.has-image { background-size: cover; background-position: center; }
.banner-slide.has-image .banner-icon { display: none; }
.banner-slide.has-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
}
.banner-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
}
.banner-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: pointer;
    border: none;
    padding: 0;
}
.banner-dot.active {
    background: #fff;
    width: 22px;
    border-radius: 4px;
}

/* ============ CARDS ============ */
.card {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 18px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    border: 0.5px solid rgba(0,0,0,0.04);
}
.card-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 14px;
}

/* ============ ORDER CARD ============ */
.order-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: transform 0.15s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.15s;
    border: 0.5px solid rgba(0,0,0,0.04);
    position: relative;
    overflow: hidden;
}
.order-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 3px;
    background: var(--teal);
    border-radius: 0 3px 3px 0;
}
.order-card:active { transform: scale(0.985); box-shadow: var(--shadow-md); }
.order-card.done::before { background: var(--green); }
.order-card.returned::before { background: var(--red); }
.order-card.cancelled::before { background: var(--text-3); }
.order-card .top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 8px;
}
.order-card .id {
    font-weight: 600;
    font-size: 14.5px;
    font-family: 'SF Mono', 'Menlo', monospace;
    letter-spacing: -0.01em;
}
.order-card .route {
    font-size: 13.5px;
    color: var(--text-2);
    line-height: 1.5;
    font-weight: 500;
}
.order-card .route strong {
    color: var(--text);
    font-weight: 600;
}

/* ============ STATUS BADGE ============ */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: uppercase;
    white-space: nowrap;
}
.badge-teal { background: rgba(14,138,138,0.12); color: #0a6e6e; }
.badge-green { background: rgba(52,199,89,0.15); color: #248a3d; }
.badge-orange { background: rgba(255,149,0,0.15); color: #b45309; }
.badge-red { background: rgba(255,59,48,0.12); color: #c72c24; }
.badge-grey { background: rgba(120,120,128,0.12); color: #6e6e73; }
.badge-blue { background: rgba(0,122,255,0.12); color: #0051d5; }

/* ============ SECTION TITLE ============ */
.section-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 24px 4px 12px;
}

/* ============ TIMELINE ============ */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 10px;
    bottom: 10px;
    width: 1.5px;
    background: var(--line-2);
}
.timeline-item { position: relative; padding-bottom: 20px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item .dot {
    position: absolute;
    left: -28px;
    top: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--line-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    transition: 0.3s;
}
.timeline-item .dot svg { width: 10px; height: 10px; color: #fff; }
.timeline-item.done .dot { background: var(--green); border-color: var(--green); }
.timeline-item.current .dot {
    background: var(--teal);
    border-color: var(--teal);
    animation: pulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(21,128,61,0.4); }
    50% { box-shadow: 0 0 0 8px rgba(21,128,61,0); }
}
.timeline-item .title {
    font-size: 14.5px;
    font-weight: 600;
    margin-bottom: 3px;
    letter-spacing: -0.01em;
}
.timeline-item .meta {
    font-size: 12.5px;
    color: var(--text-2);
    line-height: 1.5;
}

/* ============ FORM ============ */
.field { margin-bottom: 16px; }
.field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}
.field input, .field select, .field textarea {
    width: 100%;
    padding: 15px 16px;
    border: 1.5px solid transparent;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-family: inherit;
    background: #fff;
    outline: none;
    transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
    color: var(--text);
    font-weight: 500;
    letter-spacing: -0.01em;
    box-shadow: var(--shadow-sm);
}
.field input:focus, .field select:focus, .field textarea:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(21,128,61,0.12), var(--shadow-sm);
}
.field input::placeholder { color: var(--text-3); font-weight: 400; }
.field textarea {
    resize: vertical;
    min-height: 88px;
    line-height: 1.5;
}
.field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236e6e73' d='M2.5 4.5L6 8l3.5-3.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* ============ TYPE SELECTOR ============ */
.type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.type-card {
    background: #fff;
    border: 1.5px solid transparent;
    border-radius: var(--radius-md);
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: var(--shadow-sm);
}
.type-card.active {
    border-color: var(--teal);
    background: rgba(21,128,61,0.05);
    transform: scale(1.02);
}
.type-card:active { transform: scale(0.97); }
.type-card .icon-wrap {
    width: 36px;
    height: 36px;
    margin: 0 auto 8px;
    border-radius: 10px;
    background: var(--teal-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal);
}
.type-card .icon-wrap svg { width: 20px; height: 20px; }
.type-card .label {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
    letter-spacing: -0.01em;
}
.type-card .sub {
    font-size: 11.5px;
    color: var(--text-3);
    font-weight: 500;
}

/* ============ STEPS ============ */
.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 0 24px;
    flex-shrink: 0;
}
.step-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(120,120,128,0.15);
    color: var(--text-3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.step-dot.active {
    background: var(--teal);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(21,128,61,0.35);
}
.step-dot.done { background: var(--green); color: #fff; }
.step-line {
    width: 24px;
    height: 2px;
    background: rgba(120,120,128,0.15);
    border-radius: 1px;
}

/* ============ BUTTONS ============ */
.btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--teal);
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(21,128,61,0.3);
    transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
    margin-top: 10px;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: scale(0.97); box-shadow: 0 4px 12px rgba(21,128,61,0.3); }
.btn:disabled { background: #b9c3c8; box-shadow: none; cursor: not-allowed; }
.btn.outline {
    background: rgba(21,128,61,0.08);
    color: var(--teal);
    box-shadow: none;
}
.btn.outline:active { background: rgba(21,128,61,0.15); }
.btn.grey {
    background: rgba(120,120,128,0.12);
    color: var(--text);
    box-shadow: none;
}
.btn.red { background: var(--red); box-shadow: 0 6px 20px rgba(255,59,48,0.3); }
.btn.small {
    padding: 10px 18px;
    font-size: 14px;
    width: auto;
    display: inline-flex;
    margin-top: 0;
}
.btn.danger-outline {
    background: rgba(255,59,48,0.08);
    color: var(--red);
    box-shadow: none;
}
.btn.edit-outline {
    background: rgba(0,122,255,0.08);
    color: var(--blue);
    box-shadow: none;
}

/* ============ BOTTOM NAV ============ */
.bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: rgba(255,255,255,0.78);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-top: 0.5px solid rgba(0,0,0,0.1);
    padding: 8px 8px 28px;
    z-index: 50;
}
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 6px 8px;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-3);
    flex: 1;
    position: relative;
    transition: color 0.2s;
    gap: 3px;
    letter-spacing: -0.01em;
}
.nav-item svg {
    width: 26px;
    height: 26px;
    stroke-width: 1.8;
    transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-item.active {
    color: var(--teal);
}
.nav-item.active svg {
    transform: scale(1.08);
}
.nav-item:active svg { transform: scale(0.9); }

/* ============ SEARCH ============ */
.search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    cursor: text;
    border: 1.5px solid transparent;
    transition: 0.2s;
}
.search-bar:focus-within {
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(21,128,61,0.12);
}
.search-bar svg { width: 20px; height: 20px; color: var(--text-3); flex-shrink: 0; }
.search-bar input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    font-family: inherit;
    background: transparent;
    color: var(--text);
    font-weight: 500;
    letter-spacing: -0.01em;
    min-width: 0;
}
.search-bar .clear {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(120,120,128,0.15);
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--text-3);
    padding: 0;
    flex-shrink: 0;
}
.search-bar .clear svg { width: 12px; height: 12px; color: var(--text-3); }
.search-bar.has-value .clear { display: flex; }

.search-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-bottom: 16px;
    scrollbar-width: none;
    padding: 2px 0;
}
.search-chips::-webkit-scrollbar { display: none; }
.search-chip {
    padding: 8px 16px;
    border-radius: 100px;
    border: none;
    background: rgba(120,120,128,0.12);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s;
    letter-spacing: -0.01em;
}
.search-chip.active {
    background: var(--teal);
    color: #fff;
    box-shadow: 0 4px 12px rgba(21,128,61,0.3);
}

/* ============ RESULT CARD ============ */
.result-group { margin-bottom: 22px; }
.result-group .label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4px;
}
.result-group .label .count {
    background: var(--teal-light);
    color: var(--teal);
    padding: 2px 9px;
    border-radius: 100px;
    font-size: 10.5px;
}
.result-item {
    background: var(--card);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    margin-bottom: 8px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: transform 0.15s;
    border: 0.5px solid rgba(0,0,0,0.04);
}
.result-item:active { transform: scale(0.99); }
.result-item .top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    gap: 8px;
}
.result-item .title {
    font-weight: 600;
    font-size: 14.5px;
    letter-spacing: -0.01em;
}
.result-item .meta {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.5;
}
.result-item mark {
    background: rgba(255,204,0,0.4);
    color: var(--text);
    padding: 0 2px;
    border-radius: 3px;
}

.recent-item {
    background: var(--card);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform 0.15s;
}
.recent-item:active { transform: scale(0.99); }
.recent-item .left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}
.recent-item .left svg {
    width: 18px;
    height: 18px;
    color: var(--text-3);
    flex-shrink: 0;
}
.recent-item .text {
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.01em;
}
.recent-item .remove {
    background: none;
    border: none;
    color: var(--text-3);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    font-family: inherit;
    line-height: 1;
}

/* ============ QR ============ */
.qr-block {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 22px;
    margin: 14px 0;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 0.5px solid rgba(0,0,0,0.04);
}
.qr-block .label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 14px;
}
.qr-wrap {
    display: inline-block;
    padding: 14px;
    background: #fff;
    border: 1.5px solid rgba(0,0,0,0.1);
    border-radius: 16px;
    margin-bottom: 14px;
}
.qr-wrap canvas, .qr-wrap img { display: block; border-radius: 6px; }
.qr-track {
    font-family: 'SF Mono', 'Menlo', monospace;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text);
    margin-bottom: 8px;
}
.qr-hint {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.5;
    margin-bottom: 14px;
    font-weight: 500;
}
.qr-actions {
    display: flex;
    gap: 10px;
}
.qr-actions .btn {
    margin-top: 0;
    flex: 1;
    padding: 12px;
    font-size: 14px;
}
.qr-error {
    padding: 16px;
    background: rgba(255,59,48,0.08);
    color: var(--red);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
}

/* ============ DRAFT ============ */
.draft-card {
    background: linear-gradient(135deg, #fff8e6 0%, #ffe9b8 100%);
    border-radius: var(--radius-lg);
    padding: 18px;
    margin-bottom: 14px;
    cursor: pointer;
    position: relative;
    box-shadow: 0 4px 12px rgba(180,83,9,0.1);
    border: 1px solid rgba(180,83,9,0.15);
}
.draft-card .badge-draft {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #b45309;
    color: #fff;
    font-size: 9.5px;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 100px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.draft-card .title {
    font-weight: 700;
    font-size: 15px;
    color: #92400e;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}
.draft-card .meta {
    font-size: 13px;
    color: #a16207;
    line-height: 1.5;
    font-weight: 500;
}
.draft-actions { display: flex; gap: 8px; margin-top: 12px; }
.draft-actions button {
    flex: 1;
    padding: 10px 12px;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: -0.01em;
    transition: transform 0.15s;
}
.draft-actions button:active { transform: scale(0.96); }
.draft-actions .continue { background: #b45309; color: #fff; }
.draft-actions .delete { background: rgba(180,83,9,0.15); color: #92400e; }

/* ============ ORDER ACTIONS ============ */
.order-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}
.order-actions .btn {
    margin-top: 0;
    flex: 1;
    padding: 14px;
    font-size: 14px;
}

/* ============ MODAL ============ */
.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    display: none;
    align-items: flex-end;
    justify-content: center;
    z-index: 300;
    border-radius: 56px;
}
.modal-overlay.open { display: flex; }
.modal-sheet {
    background: var(--card);
    width: 100%;
    max-height: 88%;
    border-radius: 24px 24px 0 0;
    padding: 12px 22px 32px;
    overflow-y: auto;
    animation: slideUp 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes slideUp {
    from { transform: translateY(60px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.modal-sheet .handle {
    width: 44px;
    height: 5px;
    background: rgba(120,120,128,0.3);
    border-radius: 6px;
    margin: 0 auto 20px;
}
.modal-sheet h3 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}
.modal-sheet .sub {
    font-size: 14px;
    color: var(--text-2);
    margin-bottom: 20px;
    line-height: 1.5;
    font-weight: 500;
}

/* ============ FAQ ============ */
.faq-item {
    background: var(--card);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 0.5px solid rgba(0,0,0,0.04);
}
.faq-q {
    padding: 16px 18px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.01em;
}
.faq-q svg {
    color: var(--text-3);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-item.open .faq-q svg {
    transform: rotate(180deg);
    color: var(--teal);
}
.faq-a {
    display: none;
    padding: 0 18px 18px;
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.6;
    border-top: 0.5px solid var(--line);
    padding-top: 14px;
    font-weight: 500;
}
.faq-item.open .faq-a { display: block; animation: fadeIn 0.2s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.faq-category {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 22px 4px 10px;
}
.faq-category:first-child { margin-top: 0; }

/* ============ TARIFFS ============ */
.tariff-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 18px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 16px;
    border: 0.5px solid rgba(0,0,0,0.04);
}
.tariff-card .tariff-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--teal-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal);
    flex-shrink: 0;
}
.tariff-card .tariff-icon svg { width: 28px; height: 28px; }
.tariff-card .tariff-info { flex: 1; min-width: 0; }
.tariff-card .tariff-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 3px;
    letter-spacing: -0.01em;
}
.tariff-card .tariff-limit {
    font-size: 12.5px;
    color: var(--text-3);
    margin-bottom: 6px;
    font-weight: 500;
}
.tariff-card .tariff-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--teal);
    letter-spacing: -0.02em;
}
.tariff-card .tariff-price small {
    font-size: 13px;
    color: var(--text-3);
    font-weight: 600;
}

.tariff-extra {
    background: linear-gradient(135deg, rgba(21,128,61,0.08) 0%, rgba(21,128,61,0.04) 100%);
    border-radius: var(--radius-lg);
    padding: 6px 18px;
    margin-bottom: 12px;
}

/* ============ PVZ ============ */
.pvz-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
    border: 1.5px solid transparent;
}
.pvz-card:active { transform: scale(0.99); }
.pvz-card.selected {
    border-color: var(--teal);
    background: rgba(21,128,61,0.04);
}
.pvz-card .pvz-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 10px;
}
.pvz-card .pvz-name {
    font-size: 15.5px;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.pvz-card .pvz-dist {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--teal);
    background: var(--teal-light);
    padding: 4px 10px;
    border-radius: 100px;
    flex-shrink: 0;
}
.pvz-card .pvz-addr {
    font-size: 13.5px;
    color: var(--text-2);
    margin-bottom: 8px;
    line-height: 1.5;
    font-weight: 500;
}
.pvz-card .pvz-meta {
    display: flex;
    gap: 14px;
    font-size: 12.5px;
    color: var(--text-3);
    font-weight: 500;
}
.pvz-card .pvz-meta b { color: var(--text); }

.map-mini {
    width: 100%;
    height: 200px;
    background: #e8eaed;
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
    background-image:
        linear-gradient(rgba(21,128,61,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(21,128,61,0.06) 1px, transparent 1px);
    background-size: 40px 40px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: var(--shadow-sm);
}





/* ============ ROWS ============ */
.row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 0.5px solid var(--line);
    font-size: 14.5px;
    gap: 10px;
}
.row:last-child { border-bottom: none; }
.row .key {
    color: var(--text-2);
    font-weight: 500;
    letter-spacing: -0.01em;
}
.row .value {
    font-weight: 600;
    text-align: right;
    letter-spacing: -0.01em;
}
.row .value.mono {
    font-family: 'SF Mono', 'Menlo', monospace;
    font-size: 13.5px;
}

/* ============ CHAT ============ */
.chat-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 0;
}
.msg {
    max-width: 78%;
    padding: 11px 15px;
    border-radius: 20px;
    font-size: 14.5px;
    line-height: 1.45;
    font-weight: 500;
    letter-spacing: -0.01em;
}
.msg.me {
    align-self: flex-end;
    background: var(--teal);
    color: #fff;
    border-bottom-right-radius: 6px;
}
.msg.them {
    align-self: flex-start;
    background: #fff;
    border-bottom-left-radius: 6px;
    box-shadow: var(--shadow-sm);
}
.msg .time {
    font-size: 10.5px;
    opacity: 0.7;
    margin-top: 4px;
    display: block;
    font-weight: 500;
}

.chat-input-bar {
    position: absolute;
    bottom: 100px;
    left: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
}
.chat-input {
    flex: 1;
    padding: 14px 18px;
    border: none;
    border-radius: 100px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    background: #fff;
    box-shadow: var(--shadow-md);
    font-weight: 500;
    color: var(--text);
    letter-spacing: -0.01em;
}
.chat-send {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--teal);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(21,128,61,0.35);
    flex-shrink: 0;
    transition: transform 0.15s;
}
.chat-send:active { transform: scale(0.92); }
.chat-send svg { width: 20px; height: 20px; }

/* ============ EMPTY ============ */
.empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-3);
}
.empty svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    color: rgba(120,120,128,0.25);
    stroke-width: 1.2;
}
.empty .title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}
.empty .sub {
    font-size: 14px;
    font-weight: 500;
}

/* ============ TOAST ============ */
.toast {
    position: absolute;
    bottom: 110px;
    left: 20px;
    right: 20px;
    background: rgba(28,28,30,0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    color: #fff;
    padding: 14px 20px;
    border-radius: 16px;
    font-size: 14.5px;
    font-weight: 600;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    z-index: 400;
    transform: translateY(10px);
    letter-spacing: -0.01em;
    box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}
.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* ============ SUCCESS ============ */
.success-screen { text-align: center; padding: 30px 20px; }
.success-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #34c759 0%, #26a147 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 16px 40px rgba(52,199,89,0.4);
    animation: pop 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes pop {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}
.success-icon svg { width: 52px; height: 52px; }
.success-screen h2 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}
.success-screen p {
    font-size: 15px;
    color: var(--text-2);
    line-height: 1.5;
    margin-bottom: 22px;
    font-weight: 500;
}
.track-code-big {
    font-family: 'SF Mono', 'Menlo', monospace;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--teal);
    background: rgba(21,128,61,0.08);
    padding: 18px;
    border-radius: var(--radius-md);
    margin-bottom: 18px;
    cursor: pointer;
    transition: transform 0.15s;
}
.track-code-big:active { transform: scale(0.98); }

/* ============ PROFILE ============ */
.profile-header {
    text-align: center;
    padding: 24px 20px;
}
.profile-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, #15803d 0%, #166534 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 700;
    margin: 0 auto 16px;
    box-shadow: 0 12px 32px rgba(21,128,61,0.35);
    letter-spacing: -0.03em;
}
.profile-name {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}
.profile-phone {
    font-size: 15px;
    color: var(--text-2);
    font-weight: 500;
}

/* ============ ICON LISTS ============ */
.icon-list-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 0.5px solid var(--line);
    cursor: pointer;
    transition: opacity 0.15s;
}
.icon-list-item:last-child { border-bottom: none; }
.icon-list-item:active { opacity: 0.6; }
.icon-list-item .icon-badge {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}
.icon-list-item .icon-badge svg { width: 20px; height: 20px; }
.icon-list-item .icon-badge.teal { background: var(--teal); }
.icon-list-item .icon-badge.orange { background: var(--orange); }
.icon-list-item .icon-badge.purple { background: var(--purple); }
.icon-list-item .icon-badge.blue { background: var(--blue); }
.icon-list-item .icon-badge.green { background: var(--green); }
.icon-list-item .icon-badge.grey { background: #8e8e93; }
.icon-list-item .label {
    flex: 1;
    font-size: 15.5px;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.icon-list-item .value {
    font-size: 14px;
    color: var(--text-3);
    font-weight: 500;
}
.icon-list-item .chevron {
    width: 18px;
    height: 18px;
    color: var(--text-3);
    flex-shrink: 0;
}

@media (max-width: 480px) {
    /* On a real phone the app IS the screen, not a mock-up centred in one.
       The desktop layout makes html/body flex containers, and a flex item
       defaults to min-width:auto — so .phone grew to its content's width
       (the 8-slide banner row made the home screen ~1200px wide and scroll
       sideways). Plain block layout pins it to the viewport instead. */
    html, body { display: block; }
    body { padding: 0; }
    .phone {
        width: 100%; min-width: 0;
        height: 100vh; height: 100dvh; max-height: none; /* dvh: excludes the mobile browser's address bar */
        border-radius: 0; box-shadow: none; border: none;
        /* viewport-fit=cover: keep content clear of the notch and home indicator */
        padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom);
        box-sizing: border-box;
    }
    .screen, .app-content { min-width: 0; }
    /* the fake "9:41" bar only makes sense inside the desktop mock-up */
    .status-bar { display: none; }
    .modal-overlay { border-radius: 0; }
    .header { padding: 8px 0 20px; }
}

/* used by login_btn / fp_requestBtn / fp_resetBtn / pvz pick bar / saveRecoveryEmail —
   was missing here, so those 5 buttons rendered with the browser's default
   button font/style instead of the app's look (see 03_courier.html / 04_pvz.html,
   which already define this class). */
.action-btn-lg {
    width: 100%; padding: 17px; border-radius: var(--radius-md); border: none;
    font-size: 16px; font-weight: 700; font-family: var(--font); cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin-bottom: 10px; transition: transform 0.1s;
}
.action-btn-lg:active { transform: scale(0.97); }
.action-btn-lg.primary { background: var(--teal); color: #fff; }
.action-btn-lg.danger { background: rgba(255,59,48,0.1); color: var(--red); }
.action-btn-lg.grey { background: rgba(118,118,128,0.12); color: var(--text); }
.action-btn-lg:disabled { opacity: 0.4; cursor: not-allowed; }


.shift-card {
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    box-shadow: var(--shadow-md);
}
.shift-card.off { background: linear-gradient(135deg, #8e8e93 0%, #636366 100%); }
.shift-card .info .label { font-size: 13px; opacity: 0.85; font-weight: 500; margin-bottom: 2px; }
.shift-card .info .value { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.toggle-switch {
    width: 51px; height: 31px; border-radius: 16px;
    background: rgba(255,255,255,0.3);
    position: relative; cursor: pointer; flex-shrink: 0;
    transition: background 0.25s;
}
.toggle-switch.on { background: #34c759; }
.toggle-switch .knob {
    width: 27px; height: 27px; border-radius: 50%; background: #fff;
    position: absolute; top: 2px; left: 2px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: transform 0.25s;
}
.toggle-switch.on .knob { transform: translateX(20px); }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.stat-box {
    background: var(--card); border-radius: var(--radius-md); padding: 14px 16px;
    box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.stat-box .num { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.stat-box .lbl { font-size: 12px; color: var(--text-2); font-weight: 500; margin-top: 2px; }

.segmented {
    display: flex; background: rgba(118,118,128,0.12); border-radius: 10px;
    padding: 3px; margin-bottom: 16px; gap: 2px;
}
.segmented button {
    flex: 1; border: none; background: transparent; padding: 7px 4px;
    font-size: 13px; font-weight: 600; color: var(--text-2); border-radius: 8px;
    cursor: pointer; font-family: var(--font); transition: all 0.2s;
}
.segmented button.active { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,0.1); }

.task-card {
    background: var(--card); border-radius: var(--radius-md); padding: 16px;
    margin-bottom: 10px; box-shadow: var(--shadow-sm); border: 1px solid var(--line);
    cursor: pointer; transition: transform 0.15s;
}
.task-card:active { transform: scale(0.98); }
.task-card .top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.task-card .type-badge {
    font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 7px;
    text-transform: uppercase; letter-spacing: 0.02em;
}
.type-badge.pickup { background: rgba(0,122,255,0.12); color: var(--blue); }
.type-badge.delivery { background: rgba(52,199,89,0.12); color: var(--green); }
.task-card .track { font-family: 'SF Mono','Menlo',monospace; font-size: 12px; color: var(--text-3); }
.task-card .addr { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 3px; line-height: 1.3; }
.task-card .contact { font-size: 13px; color: var(--text-2); }
.task-card .bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.task-card .cod-tag { font-size: 12px; font-weight: 700; color: var(--orange); }
.task-card .dist-tag { font-size: 12px; color: var(--text-3); font-weight: 500; }

.detail-hero {
    background: var(--card); border-radius: var(--radius-lg); padding: 20px;
    box-shadow: var(--shadow-sm); border: 1px solid var(--line); margin-bottom: 16px;
}
.detail-hero .route-line { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); font-weight: 600; margin-bottom: 10px; }
.detail-hero .addr-big { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 12px; line-height: 1.3; }
.contact-row {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--bg); border-radius: 12px; padding: 12px 14px; margin-top: 10px;
}
.contact-row .who { font-size: 14px; font-weight: 600; }
.contact-row .phone-num { font-size: 13px; color: var(--text-2); font-family: 'SF Mono','Menlo',monospace; }
.call-btn {
    width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: #fff;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer;
}

.action-btn-lg {
    width: 100%; padding: 17px; border-radius: var(--radius-md); border: none;
    font-size: 16px; font-weight: 700; font-family: var(--font); cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin-bottom: 10px; transition: transform 0.1s;
}
.action-btn-lg:active { transform: scale(0.97); }
.action-btn-lg.primary { background: var(--teal); color: #fff; }
.action-btn-lg.danger { background: rgba(255,59,48,0.1); color: var(--red); }
.action-btn-lg.grey { background: rgba(118,118,128,0.12); color: var(--text); }
.action-btn-lg:disabled { opacity: 0.4; cursor: not-allowed; }

.scanner-wrap { position: relative; width: 100%; aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden; background: #000; margin-bottom: 16px; }
.scanner-wrap video { width: 100%; height: 100%; object-fit: cover; }
.scan-frame {
    position: absolute; top: 15%; left: 15%; width: 70%; height: 70%;
    border: 3px solid rgba(255,255,255,0.85); border-radius: 20px;
    box-shadow: 0 0 0 2000px rgba(0,0,0,0.35);
}
.scan-line {
    position: absolute; left: 15%; width: 70%; height: 2px; background: var(--teal);
    box-shadow: 0 0 8px var(--teal); animation: scanMove 2s ease-in-out infinite;
}
@keyframes scanMove { 0%,100% { top: 16%; } 50% { top: 83%; } }
.scan-status { text-align: center; font-size: 14px; color: var(--text-2); font-weight: 500; margin-bottom: 12px; }
.scan-status.ok { color: var(--green); font-weight: 700; }
.scan-status.err { color: var(--red); font-weight: 700; }
.manual-toggle { text-align: center; font-size: 13px; color: var(--teal); font-weight: 600; cursor: pointer; padding: 8px; }

.reason-grid { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.reason-chip {
    padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line-2);
    font-size: 14px; font-weight: 600; cursor: pointer; background: var(--card);
    display: flex; justify-content: space-between; align-items: center;
}
.reason-chip.active { border-color: var(--teal); background: var(--teal-light); color: var(--teal-dark); }

.camera-capture-wrap { position: relative; width: 100%; border-radius: var(--radius-lg); overflow: hidden; background: #000; margin-bottom: 12px; }
.camera-capture-wrap video, .camera-capture-wrap img { width: 100%; display: block; }
.capture-btn {
    width: 64px; height: 64px; border-radius: 50%; background: #fff; border: 4px solid rgba(255,255,255,0.4);
    position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); cursor: pointer;
}


.cod-hero {
    background: linear-gradient(135deg, var(--orange) 0%, #e08600 100%);
    border-radius: var(--radius-lg); padding: 22px; color: #fff; margin-bottom: 16px;
    box-shadow: var(--shadow-md); text-align: center;
}
.cod-hero .lbl { font-size: 13px; opacity: 0.9; font-weight: 600; margin-bottom: 4px; }
.cod-hero .num { font-size: 36px; font-weight: 800; letter-spacing: -0.02em; }
.cod-hero .sub { font-size: 12px; opacity: 0.85; margin-top: 4px; }

.cod-list-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cod-list-item:last-child { border-bottom: none; }
.cod-list-item .l { font-size: 13px; font-weight: 600; }
.cod-list-item .l .sub { display: block; font-size: 11px; color: var(--text-3); font-weight: 400; margin-top: 1px; }
.cod-list-item .r { font-size: 14px; font-weight: 700; color: var(--orange); }

.progress-steps { display: flex; align-items: center; margin-bottom: 18px; }
.progress-steps .pstep { flex: 1; height: 4px; background: var(--line-2); border-radius: 2px; margin: 0 2px; }
.progress-steps .pstep.done { background: var(--teal); }

.empty-tasks { text-align: center; padding: 60px 20px; color: var(--text-3); }
.empty-tasks svg { width: 56px; height: 56px; stroke: var(--text-3); margin-bottom: 12px; }
/* 7POST wordmark: the "7" in the logo green, "POST" inherits the surrounding text colour */
.brand-7 { color: #16a34a; }

/* PWA "install the app" bar (shared.js showInstallBar) — top of the screen so
   it never covers the bottom navigation */
.install-bar {
    position: fixed; left: 12px; right: 12px; top: calc(12px + env(safe-area-inset-top)); z-index: 1000;
    display: flex; align-items: center; gap: 12px;
    background: #0f1f3d; color: #fff; border-radius: 16px; padding: 12px 12px 12px 14px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.25);
    max-width: 460px; margin: 0 auto;
}
.install-bar img { width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; }
.install-bar .install-text { flex: 1; min-width: 0; }
.install-bar .install-title { font-size: 14px; font-weight: 700; }
.install-bar .install-sub { font-size: 12px; opacity: 0.8; margin-top: 2px; line-height: 1.35; }
.install-bar .install-btn {
    background: #16a34a; color: #fff; border: none; border-radius: 10px; padding: 9px 14px;
    font-size: 13px; font-weight: 700; font-family: inherit; cursor: pointer; flex-shrink: 0;
}
.install-bar .install-close {
    background: transparent; border: none; color: #fff; opacity: 0.6; font-size: 16px; cursor: pointer; padding: 4px 6px; flex-shrink: 0;
}

/* Language picker (i18n.js) — first launch and Профиль → Язык */
.lang-picker {
    position: fixed; inset: 0; z-index: 2000; background: rgba(15,31,61,0.55);
    display: flex; align-items: center; justify-content: center; padding: 24px;
}
.lang-box {
    background: var(--card, #fff); border-radius: 24px; padding: 28px 22px 18px; width: 100%; max-width: 340px;
    text-align: center; box-shadow: 0 24px 60px rgba(0,0,0,0.25);
}
.lang-logo { width: 64px; height: 64px; border-radius: 16px; margin-bottom: 14px; }
.lang-title { font-size: 20px; font-weight: 800; color: #0f1f3d; }
.lang-sub { font-size: 15px; color: var(--text-2, #6e6e73); margin: 4px 0 20px; }
.lang-option {
    display: block; width: 100%; padding: 16px; margin-bottom: 10px; border-radius: 14px;
    border: 2px solid var(--teal); background: #fff; color: var(--teal);
    font-size: 17px; font-weight: 700; font-family: inherit; cursor: pointer;
}
.lang-option:active { background: var(--teal-light); }
.lang-cancel { background: transparent; border: none; color: var(--text-2, #6e6e73); font-size: 14px; font-family: inherit; padding: 10px; cursor: pointer; }
