#deliverthatDashboard {
    --ink: var(--driver-ink, #17231e);
    --muted: #58675e;
    --paper: var(--driver-cream, #f6f2e9);
    --white: var(--driver-paper, #fffdf8);
    --mint: var(--driver-lime, #c8f34c);
    --mint-deep: #287347;
    --orange: var(--driver-orange, #ef6b3c);
    --line: var(--driver-line, #d8d8cb);
    width: 100%;
    min-width: 0;
    color: var(--ink);
    background: var(--paper);
    border-radius: 0 0 15px 15px;
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
    overflow-wrap: anywhere;
}

#deliverthatDashboard[hidden] {
    display: none !important;
}

#deliverthatDashboard :is(h1, h2, h3, h4) {
    color: var(--ink);
    font-family: inherit;
    letter-spacing: 0;
}

#deliverthatDashboard :is(h1, h2, h3, h4, p, a, button, label, small) {
    hyphens: none;
}

#deliverthatDashboard label {
    text-align: left;
}

#deliverthatDashboard * {
    box-sizing: border-box
}

#deliverthatDashboard button,
#deliverthatDashboard input {
    font: inherit
}

#deliverthatDashboard input,
#deliverthatDashboard textarea {
    text-align: center
}

#deliverthatDashboard button {
    cursor: pointer;
    border: 0
}

#deliverthatDashboard button:focus-visible,
#deliverthatDashboard a:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 3px;
}

#deliverthatDashboard .hidden {
    display: none !important
}

#deliverthatDashboard .eyebrow {
    font: 700 11px/1 Arial, sans-serif;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--mint-deep)
}

#deliverthatDashboard .welcome h1 em {
    font-style: italic;
    color: var(--orange)
}

#deliverthatDashboard .muted {
    color: var(--muted);
    line-height: 1.5
}

#deliverthatDashboard .status-pill--error {
    color: #a13d2c
}

#deliverthatDashboard .sync-message,
#deliverthatDashboard .list-message {
    padding: 12px 16px;
    border: 1px solid #e5c8be;
    border-radius: 8px;
    background: #fff5ef;
    color: #853a2c;
    font-size: 14px;
    overflow-wrap: anywhere
}

#deliverthatDashboard .sync-message[hidden],
#deliverthatDashboard .list-message[hidden] {
    display: none
}

#deliverthatDashboard .location-summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--white);
    font-size: 13px
}

#deliverthatDashboard .location-summary p {
    margin: 6px 0;
    overflow-wrap: anywhere
}

#deliverthatDashboard .location-summary[hidden] {
    display: none
}

#deliverthatDashboard .location-summary small {
    color: var(--muted)
}

#deliverthatDashboard .action-dialog {
    width: min(440px, calc(100vw - 32px));
    max-height: calc(100dvh - 32px);
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--ink);
    background: var(--white);
}

#deliverthatDashboard .action-dialog::backdrop {
    background: #16211f99
}

#deliverthatDashboard .action-dialog h2 {
    margin-top: 0
}

#deliverthatDashboard .action-dialog textarea {
    display: block;
    width: 100%;
    margin: 8px 0 20px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
    resize: vertical
}

#deliverthatDashboard .action-dialog .card-actions {
    justify-content: flex-end
}

#deliverthatDashboard .device-pill {
    font-size: 10px;
    text-transform: none;
    letter-spacing: .08em;
    color: #697872;
    background: #eff3ee;
    padding: 7px 9px;
    border-radius: 12px
}

#deliverthatDashboard .logout-button {
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 6px;
    background: #eff3ee;
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap
}

#deliverthatDashboard .logout-button:hover {
    background: #dfe8df
}

#deliverthatDashboard .logout-button:focus-visible {
    outline: 2px solid var(--mint-deep);
    outline-offset: 3px
}

#deliverthatDashboard .logout-button:disabled {
    opacity: .6;
    cursor: wait
}

#deliverthatDashboard .content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px
}

#deliverthatDashboard .welcome {
    display: flex;
    justify-content: center;
    gap: 8px 12px;
    align-items: center;
    flex-wrap: wrap;
    text-align: center;
}

#deliverthatDashboard .welcome h1 {
    min-width: 0;
    max-width: 100%;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 750;
    line-height: 1.15;
    letter-spacing: -.02em;
    margin: 0 auto 0 0;
    text-align: center;
}

#deliverthatDashboard .welcome.welcome--wrapped h1 {
    margin-right: 0;
}

#deliverthatDashboard .welcome--wrapped :is(h1, #driverRegion, #devicePill) {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
}

#deliverthatDashboard .welcome-actions {
    display: contents;
}

#deliverthatDashboard #driverRegion {
    min-width: 0;
    max-width: 100%;
    color: var(--muted);
    font-size: 12px;
}

#deliverthatDashboard .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}

#deliverthatDashboard .preferences-panel {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white)
}

#deliverthatDashboard .preferences-heading,
#deliverthatDashboard .preferences-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap
}

#deliverthatDashboard .preferences-heading h2 {
    margin: 8px 0 0;
    font-size: 22px;
    line-height: 1.2
}

#deliverthatDashboard .preferences-status,
#deliverthatDashboard .preference-help {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5
}

#deliverthatDashboard .preferences-status {
    margin: 0;
    padding: 7px 12px;
    border-radius: 20px;
    background: var(--paper)
}

#deliverthatDashboard .preferences-status--active {
    color: #176846;
    background: #e2f8ea
}

#deliverthatDashboard .preferences-upgrade-note {
    margin: 16px 0 0;
    padding: 12px 14px;
    border-radius: 6px;
    background: #fff1ef;
    color: #9f251a;
    border: 1px solid #ecc2bc;
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
    transform-origin: center;
    animation: dt-upgrade-note-pulse 2.6s ease-in-out infinite;
}

#deliverthatDashboard .preferences-upgrade-note a {
    color: #851d14;
    font-weight: 700;
    text-underline-offset: 3px
}

@keyframes dt-upgrade-note-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.012); }
}

@media (prefers-reduced-motion: reduce) {
    #deliverthatDashboard .preferences-upgrade-note {
        animation: none;
    }
}

#deliverthatDashboard #preferencesFields {
    border: 0;
    padding: 0;
    margin: 16px 0 0;
    min-width: 0
}

#deliverthatDashboard .preference-limits,
#deliverthatDashboard .preference-toggles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px
}

#deliverthatDashboard .preference-limits {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

#deliverthatDashboard .preference-limits label {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 9px;
    font-size: 14px;
    font-weight: 600;
    min-width: 0
}

#deliverthatDashboard .preference-input {
    display: flex;
    position: relative;
    align-items: center;
    min-height: 46px;
    padding: 0;
    border: 1px solid #b8c4bd;
    border-radius: 6px;
    color: var(--muted)
}

#deliverthatDashboard .preference-input input {
    flex: 1 1 0;
    width: 100%;
    min-width: 0;
    padding: 11px 44px;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-size: 16px;
    appearance: textfield;
}

#deliverthatDashboard .preference-input input::-webkit-inner-spin-button,
#deliverthatDashboard .preference-input input::-webkit-outer-spin-button {
    appearance: none;
    margin: 0;
}

#deliverthatDashboard .preference-input>span {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    white-space: nowrap;
}

#deliverthatDashboard .preference-input>span:first-child {
    left: 12px;
}

#deliverthatDashboard .preference-input>span:last-child {
    right: 12px;
}

#deliverthatDashboard .preference-input:focus-within {
    outline: 2px solid var(--mint-deep);
    outline-offset: 2px
}

#deliverthatDashboard .preference-input input:focus {
    outline: none
}

#deliverthatDashboard .preference-help {
    margin: 10px 0 16px
}

#deliverthatDashboard #browserRefreshHelp {
    margin-bottom: 0;
}

#deliverthatDashboard .preference-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer
}

#deliverthatDashboard .preference-toggle strong {
    font-size: 14px
}

#deliverthatDashboard .preference-toggle small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5
}

#deliverthatDashboard .preference-toggle input {
    appearance: none;
    flex: 0 0 42px;
    width: 42px;
    height: 26px;
    margin: 0;
    padding: 3px;
    border-radius: 20px;
    background: #9aa69f;
    cursor: pointer
}

#deliverthatDashboard .preference-toggle input::before {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    transition: transform .15s
}

#deliverthatDashboard .preference-toggle input:checked {
    background: #238458
}

#deliverthatDashboard .preference-toggle input:checked::before {
    transform: translateX(16px)
}

#deliverthatDashboard .preference-toggle input:focus-visible,
#deliverthatDashboard .preferences-footer button:focus-visible,
#deliverthatDashboard .upgrade-notice a:focus-visible,
#deliverthatDashboard .upgrade-notice button:focus-visible {
    outline: 2px solid var(--mint-deep);
    outline-offset: 3px
}

#deliverthatDashboard .preferences-footer {
    justify-content: center;
    margin-top: 16px
}

#deliverthatDashboard .preferences-footer .small-button {
    min-height: 44px;
    padding-inline: 18px;
    font-size: 14px;
    border-radius: 6px
}

#deliverthatDashboard .upgrade-notice {
    position: fixed;
    z-index: 1100;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: min(440px, calc(100vw - 32px));
    max-height: calc(100dvh - 32px);
    overflow: auto;
    padding: 36px 28px 28px;
    text-align: center;
    border: 2px solid var(--mint-deep);
    border-radius: 16px;
    background: var(--white);
    box-shadow: 0 20px 90px #16211f66
}

#deliverthatDashboard .upgrade-notice[hidden] {
    display: none
}

#deliverthatDashboard .upgrade-notice h2 {
    margin: 12px 0;
    font-size: 26px
}

#deliverthatDashboard .upgrade-notice p {
    margin: 0 0 22px;
    font-size: 15px;
    line-height: 1.6
}

#deliverthatDashboard .upgrade-notice-close {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 44px;
    height: 44px;
    background: transparent;
    color: var(--muted);
    font-size: 26px
}

#deliverthatDashboard .upgrade-link {
    display: block;
    padding: 13px 18px;
    border-radius: 6px;
    color: #176846;
    background: var(--mint);
    font-weight: 700;
    text-decoration: none
}

@media(max-width:1100px) {
    #deliverthatDashboard .preference-limits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    #deliverthatDashboard .preference-limits label:first-child {
        grid-column: 1 / -1;
    }
}

@media(max-width:900px) {
    #deliverthatDashboard .preference-toggles {
        grid-template-columns: 1fr
    }
}

@media(max-width:767px) {
    #deliverthatDashboard .preference-limits {
        grid-template-columns: 1fr
    }
}

#deliverthatDashboard .tabs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 24px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 20px
}

#deliverthatDashboard .tab {
    padding: 15px 0;
    background: transparent;
    color: var(--muted);
    font-weight: 700;
    border-bottom: 2px solid transparent
}

#deliverthatDashboard .tab.active {
    color: var(--ink);
    border-color: var(--orange)
}

#deliverthatDashboard .tab b {
    display: inline-grid;
    place-items: center;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: #eef1eb;
    color: var(--ink);
    font-size: 10px;
    margin-left: 5px
}

#deliverthatDashboard .tabs>span {
    min-width: 0;
    max-width: 100%;
    margin-left: auto;
    color: var(--muted);
    font-size: 11px;
    text-align: right;
}

#deliverthatDashboard .panel-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px
}

#deliverthatDashboard .list-panel,
#deliverthatDashboard .profile-panel {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    min-width: 0;
}

#deliverthatDashboard .list-panel {
    padding: 20px;
    text-align: center
}

#deliverthatDashboard .panel-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 16px;
    gap: 12px;
}

#deliverthatDashboard .panel-heading h2,
#deliverthatDashboard .profile-panel h2 {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    margin: 9px 0 0
}

#deliverthatDashboard .refresh {
    background: transparent;
    color: var(--mint-deep);
    font-size: 12px;
    font-weight: 700
}

#deliverthatDashboard .offer-card,
#deliverthatDashboard .job-card {
    padding: 16px 0;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    text-align: center
}

#deliverthatDashboard :is(.offer-card, .job-card):last-child {
    padding-bottom: 0
}

#deliverthatDashboard .offer-card {
    grid-template-columns: fit-content(100%);
    justify-content: center;
}

#deliverthatDashboard .offer-card h3,
#deliverthatDashboard .job-card h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35
}

#deliverthatDashboard .offer-card p,
#deliverthatDashboard .job-card p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 12px
}

#deliverthatDashboard .offer-card small,
#deliverthatDashboard .job-card small {
    color: var(--muted);
    font-size: 11px
}

#deliverthatDashboard .amount {
    font-size: 20px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.35;
    text-align: center;
    white-space: nowrap
}

#deliverthatDashboard .card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    grid-column: 1/-1
}

#deliverthatDashboard :is(.offer-card, .job-card) .card-actions {
    justify-content: center
}

#deliverthatDashboard .offer-card .card-actions {
    display: grid;
    grid-template-columns: minmax(0, max-content) minmax(0, max-content);
    justify-content: space-between;
    gap: 24px;
}

#deliverthatDashboard .small-button {
    min-height: 44px;
    padding: 9px 13px;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
    border-radius: 6px
}

#deliverthatDashboard .offer-card .small-button {
    min-height: 48px;
    padding: 12px 24px;
    font-size: 14px;
}

#deliverthatDashboard .small-button.accept {
    background: var(--mint);
    border-color: var(--mint);
    color: var(--ink)
}

#deliverthatDashboard .small-button:hover:not(:disabled),
#deliverthatDashboard .upgrade-link:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--white);
}

#deliverthatDashboard .small-button.ignore {
    color: #a25949
}

#deliverthatDashboard .small-button:disabled {
    opacity: .45;
    cursor: not-allowed
}

#deliverthatDashboard .detail-head {
    display: grid;
    gap: 8px;
}

#deliverthatDashboard .detail-head p {
    margin: 0;
}

#deliverthatDashboard .delivery-title {
    display: flex;
    justify-content: center;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 12px;
}

#deliverthatDashboard .detail-meta {
    display: flex;
    justify-content: center;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin: 0;
    padding: 0
}

#deliverthatDashboard .detail-meta > div,
#deliverthatDashboard .delivery-pickup {
    display: flex;
    justify-content: center;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 6px;
}

#deliverthatDashboard .profile-grid small {
    display: block;
    color: var(--muted);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .08em
}

#deliverthatDashboard .profile-grid strong {
    display: block;
    margin-top: 6px;
    font-size: 16px;
    font-weight: 600
}

#deliverthatDashboard .detail-meta small,
#deliverthatDashboard .delivery-pickup small {
    color: var(--muted);
    font-size: 12px;
}

#deliverthatDashboard .detail-meta strong,
#deliverthatDashboard .delivery-pickup strong {
    font-size: 13px;
    font-weight: 600;
}

#deliverthatDashboard .delivery-destination {
    margin: 0;
}

#deliverthatDashboard .profile-panel {
    padding: 20px
}

#deliverthatDashboard .profile-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px
}

#deliverthatDashboard .profile-grid>div {
    flex: 0 1 calc((100% - 30px) / 3);
    min-width: 0;
    padding: 16px;
    background: var(--paper);
    text-align: center;
}

#deliverthatDashboard .toast {
    position: fixed;
    z-index: 1101;
    inset: 50% auto auto 50%;
    width: max-content;
    max-width: calc(100vw - 32px);
    max-height: calc(100dvh - 32px);
    margin: 0;
    overflow: auto;
    overflow-wrap: anywhere;
    text-align: center;
    background: var(--ink);
    color: #fff;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    box-shadow: 0 8px 30px #16211f33;
    display: none;
    opacity: 0;
    transform: translate(-50%, -50%);
    pointer-events: none
}

#deliverthatDashboard .toast.show {
    display: block;
    opacity: 1
}

@media(max-width:991px) {
    #deliverthatDashboard .content {
        padding-top: 20px
    }

    #deliverthatDashboard .welcome h1,
    #deliverthatDashboard .panel-heading h2,
    #deliverthatDashboard .profile-panel h2 {
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        letter-spacing: -.03em
    }

    #deliverthatDashboard .welcome h1 {
        margin: 0;
    }

    #deliverthatDashboard .panel-grid {
        grid-template-columns: 1fr
    }

    #deliverthatDashboard .tabs {
        column-gap: 16px;
    }
}

@media(max-width:480px) {
    #deliverthatDashboard .content {
        padding: 16px
    }

    #deliverthatDashboard .list-panel {
        padding: 16px
    }

    #deliverthatDashboard .preferences-panel,
    #deliverthatDashboard .profile-panel {
        padding: 16px;
    }

    #deliverthatDashboard .card-actions {
        flex-wrap: wrap
    }

    #deliverthatDashboard .small-button {
        padding-inline: 14px
    }

    #deliverthatDashboard .profile-grid>div {
        flex-basis: 100%;
    }
}
