/* =====================================================================
   LifeForge tools: Journal, Goals, Shelf. One stylesheet for the six
   pages (lists and detail pages), loaded after app.css. Classes start
   with lf- (shared) or the tool's name.
   ===================================================================== */

.lf-page {
    padding: 12px 32px 32px;   /* same as Todo and Career: 12px on top, full width */
    color: #1f2330;
}

.lf-header {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.lf-header-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #f1effd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}

.lf-header-text {
    flex: 1;
    min-width: 180px;
}

.lf-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

.lf-subtitle {
    margin: 2px 0 0;
    color: #6b7280;
    font-size: 14px;
}

.lf-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #6b5fe6;
    text-decoration: none;
    margin-bottom: 14px;
}

    .lf-back:hover {
        text-decoration: underline;
    }

/* Buttons */
.lf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 16px;
    border-radius: 8px;
    border: 1px solid #d6d9e0;
    background: #fff;
    color: #1f2330;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

    .lf-btn:hover:not(:disabled) {
        background: #f5f6f8;
        color: #1f2330;
        text-decoration: none;
    }

    .lf-btn:disabled {
        opacity: 0.55;
        cursor: not-allowed;
    }

.lf-btn-primary {
    background: #6b5fe6;
    border-color: #6b5fe6;
    color: #fff;
}

    .lf-btn-primary:hover:not(:disabled) {
        background: #5a4fd4;
        color: #fff;
    }

.lf-btn-danger {
    color: #c62828;
    border-color: #f1c4c4;
}

    .lf-btn-danger:hover:not(:disabled) {
        background: #fdecec;
        color: #b71c1c;
    }

.lf-btn-small {
    padding: 6px 11px;
    font-size: 13px;
}

.lf-icon-btn {
    border: none;
    background: none;
    color: #8a8f9c;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
}

    .lf-icon-btn:hover {
        color: #c62828;
        background: #fdecec;
    }

/* Stats row */
.lf-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.lf-stat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e5e7eb;
    font-size: 14px;
}

    .lf-stat strong {
        font-size: 18px;
    }

/* Chips (filters) */
.lf-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.lf-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.lf-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid #d6d9e0;
    background: #fff;
    font-size: 13px;
    cursor: pointer;
    color: #3b4050;
}

    .lf-chip:hover {
        background: #f5f6f8;
    }

    .lf-chip.active {
        background: #6b5fe6;
        border-color: #6b5fe6;
        color: #fff;
    }

.lf-chip-count {
    font-size: 12px;
    opacity: 0.75;
}

.lf-search {
    flex: 1;
    min-width: 180px;
    max-width: 360px;
    position: relative;
}

    .lf-search i {
        position: absolute;
        left: 11px;
        top: 50%;
        transform: translateY(-50%);
        color: #9aa0ad;
        font-size: 13px;
    }

    .lf-search input {
        width: 100%;
        padding: 8px 12px 8px 32px;
        border: 1px solid #d6d9e0;
        border-radius: 8px;
        font-size: 14px;
    }

.lf-select {
    padding: 7px 10px;
    border: 1px solid #d6d9e0;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    max-width: 100%;
}

/* Cards and forms */
.lf-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 18px;
}

.lf-card-header {
    padding: 12px 18px;
    background: #eef0f3;
    border-radius: 12px 12px 0 0;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lf-card-body {
    padding: 18px;
}

.lf-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 14px;
    min-width: 0;
}

    .lf-field label {
        font-size: 13px;
        font-weight: 600;
        color: #3b4050;
    }

    .lf-field input[type=text], .lf-field input[type=date], .lf-field input[type=datetime-local], .lf-field input[type=number], .lf-field input[type=url],
    .lf-field select, .lf-field textarea {
        width: 100%;
        padding: 8px 11px;
        border: 1px solid #d6d9e0;
        border-radius: 8px;
        font-size: 14px;
        background: #fff;
        font-family: inherit;
    }

    .lf-field textarea {
        resize: vertical;
        min-height: 80px;
    }

.lf-hint {
    font-size: 12px;
    color: #8a8f9c;
}

.lf-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0 16px;
}

.lf-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.lf-actions-end {
    margin-left: auto;
}

.lf-error {
    background: #fdecec;
    color: #b71c1c;
    border: 1px solid #f5c6c6;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 14px;
    font-size: 14px;
}

.lf-saved {
    background: #e8f6ee;
    color: #1b6b3a;
    border: 1px solid #bfe5cd;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 14px;
    font-size: 14px;
}

.lf-empty {
    text-align: center;
    padding: 48px 20px;
    background: #fff;
    border: 1px dashed #d6d9e0;
    border-radius: 12px;
    color: #6b7280;
}

    .lf-empty .lf-empty-icon {
        font-size: 40px;
        margin-bottom: 8px;
    }

    .lf-empty h2 {
        font-size: 18px;
        color: #1f2330;
        margin: 0 0 6px;
    }

.lf-loading {
    padding: 40px;
    text-align: center;
    color: #6b7280;
}

.lf-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 9px;
    border-radius: 999px;
    background: #f1effd;
    color: #5a4fd4;
    font-size: 12px;
}

.lf-progress {
    height: 8px;
    border-radius: 999px;
    background: #eceef2;
    overflow: hidden;
}

.lf-progress-bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #8b80f0, #6b5fe6);
    transition: width 0.3s;
}

.lf-progress-done .lf-progress-bar {
    background: linear-gradient(90deg, #4fc37f, #22a35a);
}

.lf-show-more {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

/* ============ Journal ============ */
.journal-on-this-day {
    background: linear-gradient(135deg, #fff8e8, #fff);
    border: 1px solid #f3dfae;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 18px;
}

    .journal-on-this-day h2 {
        font-size: 15px;
        margin: 0 0 8px;
    }

    .journal-on-this-day a {
        display: block;
        color: #1f2330;
        text-decoration: none;
        padding: 4px 0;
        font-size: 14px;
    }

        .journal-on-this-day a:hover {
            color: #6b5fe6;
        }

.journal-ago {
    color: #a0730f;
    font-weight: 600;
    margin-right: 6px;
}

.journal-month {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #8a8f9c;
    margin: 20px 0 8px;
}

.journal-entry {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 14px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 10px;
    text-decoration: none;
    color: inherit;
}

    .journal-entry:hover {
        border-color: #b9b2f3;
        box-shadow: 0 2px 10px rgba(107, 95, 230, 0.08);
        color: inherit;
        text-decoration: none;
    }

.journal-day {
    text-align: center;
    border-radius: 10px;
    background: #f5f6f8;
    padding: 6px 0;
    align-self: start;
}

.journal-day-number {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.1;
}

.journal-day-name {
    font-size: 11px;
    text-transform: uppercase;
    color: #8a8f9c;
}

.journal-entry-body {
    min-width: 0;
}

.journal-entry-title {
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-wrap: anywhere;
}

.journal-untitled {
    color: #8a8f9c;
    font-weight: 500;
    font-style: italic;
}

.journal-mood {
    font-size: 18px;
    line-height: 1;
}

.journal-preview {
    color: #4b5160;
    font-size: 14px;
    margin: 4px 0 6px;
    overflow-wrap: anywhere;
}

.journal-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #8a8f9c;
}

.mood-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mood-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: 64px;
    padding: 6px 0;
    border: 1px solid #d6d9e0;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    font-size: 12px;
    color: #4b5160;
}

    .mood-option span:first-child {
        font-size: 22px;
    }

    .mood-option.active {
        border-color: #6b5fe6;
        background: #f1effd;
        color: #5a4fd4;
        font-weight: 600;
    }

.tag-input {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    border: 1px solid #d6d9e0;
    border-radius: 8px;
    background: #fff;
}

    .tag-input input {
        border: none !important;
        padding: 3px 4px !important;
        flex: 1;
        min-width: 120px;
        outline: none;
    }

.tag-remove {
    border: none;
    background: none;
    color: inherit;
    cursor: pointer;
    padding: 0 0 0 2px;
    font-size: 11px;
}

.journal-editor .e-richtexteditor {
    border-radius: 8px;
}

/* ============ Goals ============ */
.goal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 14px;
}

.goal-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
}

    .goal-card:hover {
        border-color: #b9b2f3;
        box-shadow: 0 2px 10px rgba(107, 95, 230, 0.08);
        color: inherit;
        text-decoration: none;
    }

.goal-card-top {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.goal-category-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #f1effd;
    color: #6b5fe6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.goal-card-title {
    font-weight: 600;
    font-size: 15px;
    overflow-wrap: anywhere;
}

.goal-card-category {
    font-size: 12px;
    color: #8a8f9c;
}

.goal-progress-line {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

.goal-due {
    font-size: 12px;
    color: #6b7280;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
}

.goal-overdue {
    color: #c62828;
    font-weight: 600;
}

.goal-status-pill {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.goal-status-Active {
    background: #eef0ff;
    color: #5a4fd4;
}

.goal-status-Done {
    background: #e8f6ee;
    color: #1b6b3a;
}

.goal-status-Dropped {
    background: #f1f2f4;
    color: #6b7280;
}

.milestone-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid #f0f1f4;
}

    .milestone-row input[type=checkbox] {
        width: 18px;
        height: 18px;
        accent-color: #22a35a;
        flex-shrink: 0;
    }

    .milestone-row input[type=text] {
        flex: 1;
        min-width: 0;
        padding: 6px 9px;
        border: 1px solid transparent;
        border-radius: 6px;
        font-size: 14px;
    }

        .milestone-row input[type=text]:hover, .milestone-row input[type=text]:focus {
            border-color: #d6d9e0;
        }

    .milestone-row.done input[type=text] {
        text-decoration: line-through;
        color: #8a8f9c;
    }

.milestone-add {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

    .milestone-add input {
        flex: 1;
        min-width: 0;
        padding: 8px 11px;
        border: 1px solid #d6d9e0;
        border-radius: 8px;
        font-size: 14px;
    }

.goal-progress-big {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

    .goal-progress-big .lf-progress {
        flex: 1;
        height: 12px;
    }

    .goal-progress-big strong {
        font-size: 20px;
        min-width: 52px;
        text-align: right;
    }

.check-in {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f1f4;
}

.check-in-when {
    font-size: 12px;
    color: #8a8f9c;
    min-width: 92px;
}

.check-in-note {
    flex: 1;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: 14px;
}

.goal-layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 18px;
    align-items: start;
}

/* ============ Shelf ============ */
.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

.book-card {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 14px;
    padding: 14px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
}

    .book-card:hover {
        border-color: #b9b2f3;
        box-shadow: 0 2px 10px rgba(107, 95, 230, 0.08);
        color: inherit;
        text-decoration: none;
    }

.book-cover {
    width: 64px;
    height: 92px;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(160deg, #8b80f0, #4f46e5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

    .book-cover img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.book-cover-large {
    width: 120px;
    height: 172px;
    font-size: 30px;
}

.book-card-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.book-title {
    font-weight: 600;
    font-size: 15px;
    overflow-wrap: anywhere;
}

.book-author {
    font-size: 13px;
    color: #6b7280;
}

.book-shelf-pill {
    align-self: flex-start;
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.book-shelf-WantToRead {
    background: #fff4e0;
    color: #a0620f;
}

.book-shelf-Reading {
    background: #eef0ff;
    color: #5a4fd4;
}

.book-shelf-Read {
    background: #e8f6ee;
    color: #1b6b3a;
}

.book-meta {
    font-size: 12px;
    color: #8a8f9c;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
}

.stars {
    color: #f5a623;
    letter-spacing: 1px;
    font-size: 13px;
}

.star-picker {
    align-self: flex-start;
    display: flex;
    gap: 2px;
}

    .star-picker button {
        border: none;
        background: none;
        font-size: 22px;
        color: #d6d9e0;
        cursor: pointer;
        padding: 0 2px;
    }

        .star-picker button.on {
            color: #f5a623;
        }

.shelf-switch {
    align-self: flex-start;
    display: inline-flex;
    border: 1px solid #d6d9e0;
    border-radius: 10px;
    overflow: hidden;
    flex-wrap: wrap;
}

    .shelf-switch button {
        border: none;
        background: #fff;
        padding: 8px 14px;
        font-size: 13px;
        cursor: pointer;
        color: #3b4050;
    }

        .shelf-switch button + button {
            border-left: 1px solid #d6d9e0;
        }

        .shelf-switch button.active {
            background: #6b5fe6;
            color: #fff;
        }

.book-hero {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.book-hero-text {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.progress-form {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
}

    .progress-form input {
        width: 96px;
        padding: 7px 9px;
        border: 1px solid #d6d9e0;
        border-radius: 8px;
    }

.book-note {
    padding: 10px 0;
    border-bottom: 1px solid #f0f1f4;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.book-note-text {
    flex: 1;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: 14px;
}

.book-note-Highlight .book-note-text {
    border-left: 3px solid #f5a623;
    padding-left: 10px;
    font-style: italic;
    color: #3b4050;
}

.book-note-page {
    font-size: 12px;
    color: #8a8f9c;
    min-width: 54px;
}

.note-kind {
    display: inline-flex;
    border: 1px solid #d6d9e0;
    border-radius: 8px;
    overflow: hidden;
}

    .note-kind button {
        border: none;
        background: #fff;
        padding: 6px 12px;
        font-size: 13px;
        cursor: pointer;
    }

        .note-kind button.active {
            background: #6b5fe6;
            color: #fff;
        }

/* Add a book: an in-page dialog (same overlay as the app's modals). */
.lf-dialog {
    max-width: 560px;
    width: calc(100% - 32px);
    text-align: left;
}

    .lf-dialog h2 {
        font-size: 18px;
        margin: 0 0 14px;
    }

/* Tablets and phones */
@media (max-width: 900px) {
    .goal-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .lf-page {
        padding: 12px 16px 20px;
    }

    .lf-search {
        max-width: none;
    }

    .goal-grid, .book-grid {
        grid-template-columns: 1fr;
    }

    .mood-option {
        width: 54px;
    }

    .check-in {
        flex-direction: column;
        gap: 4px;
    }

    .book-cover-large {
        width: 90px;
        height: 130px;
    }
}

/* =====================================================================
   Trips: the list, one trip (Overview, Bookings, Plan, Spending) and the
   phone-first Today page. Classes start with trip- or today-.
   ===================================================================== */

.trip-group {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6b7080;
    margin: 18px 0 10px;
}

.trip-grid {
    display: grid;
    /* A third of the row each on a laptop, half on a tablet, the full width on a phone (below). */
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.trip-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
    position: relative;
}

    .trip-card:hover {
        border-color: #6b5fe6;
        box-shadow: 0 2px 10px rgba(107, 95, 230, .12);
    }

.trip-card-name {
    font-weight: 700;
    font-size: 16px;
    padding-right: 90px;
}

.trip-card-dates, .trip-card-places {
    font-size: 13px;
    color: #4b5060;
}

.trip-card-foot {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
    color: #6b7080;
    margin-top: 4px;
}

.trip-card-total {
    font-weight: 600;
    color: #1f2330;
}

.trip-card-today {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 12px;
    font-weight: 600;
    color: #6b5fe6;
}

.trip-tabs {
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.trip-two {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 0 18px;
}

.trip-warning {
    background: #fff7e6;
    border: 1px solid #f5d9a6;
    color: #8a5a00;
    border-radius: 8px;
    padding: 9px 13px;
    margin-bottom: 12px;
    font-size: 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.trip-rate-input {
    width: 120px;
    padding: 5px 8px;
    border: 1px solid #d6d9e0;
    border-radius: 6px;
}

.trip-stop {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 0;
    border-bottom: 1px solid #eef0f3;
}

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

.trip-stop-name {
    font-weight: 600;
}

.trip-stop-dates {
    font-size: 13px;
    color: #4b5060;
}

/* The place's time zone with its UTC offset, on its own line. */
.trip-stop-zone {
    font-size: 13px;
    color: #4b5060;
}

.trip-stop-zone i {
    color: #6b5fe6;
    margin-right: 4px;
}

/* The forecast for the days of a stay: a row of small day tiles that wraps on a phone. */
.trip-stop-weather {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}

.trip-weather-day {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    min-width: 54px;
    padding: 4px 6px;
    border: 1px solid #eef0f3;
    border-radius: 6px;
    background: #fafbfc;
    font-size: 12px;
    line-height: 1.35;
}

.trip-weather-day i {
    color: #6b5fe6;
    font-size: 14px;
}

.trip-weather-date {
    color: #6b7080;
}

.trip-weather-temp {
    font-weight: 600;
    color: #3b4050;
}

.trip-stop-weather-later {
    margin-top: 4px;
}

/* Leaving home and coming back, above and below the places. */
.trip-leg {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #eef0f3;
    font-size: 14px;
}

.trip-leg i {
    color: #6b5fe6;
    width: 18px;
}

.trip-leg .lf-hint {
    display: block;
}

.btn-add-stop {
    margin-top: 12px;
}

.trip-add-row {
    margin-bottom: 14px;
}

.trip-booking.cancelled {
    opacity: .6;
}

.trip-booking-body {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 18px;
}

.trip-booking-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.trip-booking-title {
    font-weight: 600;
    font-size: 15px;
}

.trip-booking-when, .trip-booking-place {
    font-size: 13px;
    color: #3b4050;
}

.trip-booking-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    font-size: 13px;
    color: #6b7080;
}

.trip-kind-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 9px;
    background: #efedfd;
    color: #6b5fe6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .trip-kind-icon.small {
        width: 26px;
        height: 26px;
        flex-basis: 26px;
        border-radius: 7px;
        font-size: 12px;
    }

.trip-row-actions {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
}

.trip-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    margin-left: 6px;
    background: #eef0f3;
    color: #4b5060;
    vertical-align: middle;
}

.trip-pill-must {
    background: #fdecec;
    color: #b71c1c;
}

.trip-pill-iftime {
    background: #eef0f3;
    color: #6b7080;
}

.trip-pill-visited {
    background: #e8f6ee;
    color: #1b6b3a;
}

.trip-pill-skipped, .trip-pill-cancelled {
    background: #f3f4f6;
    color: #8a8f9c;
}

.trip-day-header {
    flex-wrap: wrap;
    width: 100%;
    border: none;
    text-align: left;
    font-family: inherit;
    color: inherit;
    cursor: pointer;
}

.trip-day-header:focus-visible {
    outline: 2px solid #6b5fe6;
    outline-offset: -2px;
}

/* A folded day: the header alone, with its corners rounded all round. */
.trip-day.collapsed .trip-day-header {
    border-radius: 12px;
}

.trip-day-chevron {
    width: 12px;
    font-size: 12px;
    color: #8a8f9c;
}

.trip-day-count {
    font-weight: 500;
    font-size: 13px;
    color: #8a8f9c;
}

.trip-days-toggle {
    display: flex;
    justify-content: flex-end;
    gap: 14px;
    margin-bottom: 8px;
}

.trip-days-btn {
    background: none;
    border: none;
    padding: 0;
    color: #6b5fe6;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
}

.trip-days-btn:disabled {
    color: #b8bcc6;
    cursor: default;
}

.trip-day-number {
    color: #6b5fe6;
}

.trip-day-stop {
    margin-left: auto;
    font-weight: 500;
    color: #4b5060;
}

/* That day's weather at the place you sleep, after the place's name. */
.trip-day-weather {
    font-weight: 500;
    font-size: 13px;
    color: #4b5060;
    white-space: nowrap;
}

.trip-day-weather i {
    color: #6b5fe6;
}

.today-weather {
    font-size: 15px;
    color: #3b4050;
    margin-top: 2px;
}

.today-weather i {
    color: #6b5fe6;
}

.trip-base {
    font-size: 13px;
    color: #4b5060;
    margin-bottom: 8px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.trip-link {
    background: none;
    border: none;
    padding: 0;
    color: #6b5fe6;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    font-size: 13px;
}

.trip-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid #f1f2f5;
}

    .trip-item.skipped .trip-item-name {
        text-decoration: line-through;
        color: #8a8f9c;
    }

.trip-item-time {
    /* Room for "10:30 AM" on one line (12-hour times). */
    width: 64px;
    flex: 0 0 64px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    font-size: 13px;
    color: #6b7080;
}

.trip-item-name {
    flex: 1;
    min-width: 0;
    font-size: 14px;
}

.btn-add-spot, .btn-add-idea {
    margin-top: 10px;
}

.trip-total-line {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #f1f2f5;
    font-size: 14px;
}

.trip-budget-left.over strong {
    color: #b71c1c;
}

.trip-expense {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f1f2f5;
}

    .trip-expense.planned {
        opacity: .75;
    }

.trip-expense-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.trip-expense-amount {
    text-align: right;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    font-variant-numeric: tabular-nums;
}

.trip-dialog {
    width: min(640px, calc(100vw - 32px));
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    text-align: left;
}

.trip-dialog-title {
    font-size: 18px;
    margin: 0 0 14px;
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Settings and Share: the OneDrive / OneNote and Shared with cards sit flat in their dialog (the dialog's title says Share). */
.settings-dialog > .lf-card,
.share-dialog > .lf-card {
    border: none;
    box-shadow: none;
    margin: 0;
}

.share-dialog > .lf-card > .lf-card-header {
    display: none;
}

.trip-search {
    display: flex;
    gap: 8px;
}

    .trip-search input {
        flex: 1;
    }

.trip-city {
    display: block;
    width: 100%;
    text-align: left;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 11px;
    cursor: pointer;
    font-size: 14px;
}

    .trip-city:hover {
        border-color: #6b5fe6;
    }

.trip-check {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 14px;
    margin-bottom: 14px;
}

/* Today: big targets in one column, made for a phone in the street. */

.trip-today-page {
    max-width: 640px;
    margin: 0 auto;
}

.today-head {
    margin-bottom: 14px;
}

.today-trip {
    font-size: 13px;
    color: #6b7080;
    font-weight: 600;
}

.today-title {
    font-size: 24px;
    margin: 2px 0;
}

.today-now {
    font-size: 15px;
    color: #3b4050;
}

.today-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 12px;
}

.today-next {
    border-color: #c9c3f7;
    background: #f7f6ff;
}

.today-card-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #6b5fe6;
}

.today-card-title {
    font-weight: 700;
    font-size: 17px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.today-go {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 12px 0 6px;
}

.today-go-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 6px;
    border-radius: 12px;
    background: #6b5fe6;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}

    .today-go-btn i {
        font-size: 18px;
    }

    .today-go-btn:hover {
        background: #5a4fd4;
        color: #fff;
    }

.today-driver-card {
    background: #1f2330;
    color: #fff;
    border-radius: 14px;
    padding: 22px 18px;
    margin-bottom: 12px;
    text-align: center;
}

.driver-name {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.25;
}

.driver-sub {
    font-size: 16px;
    opacity: .8;
    margin-top: 4px;
}

.driver-address {
    font-size: 20px;
    margin-top: 12px;
    line-height: 1.35;
}

.driver-phone {
    font-size: 18px;
    margin-top: 10px;
    opacity: .9;
}

.today-section {
    font-size: 15px;
    font-weight: 700;
    margin: 18px 0 8px;
}

.today-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

    .today-item.visited {
        background: #f3faf6;
    }

    .today-item.skipped .today-item-name {
        text-decoration: line-through;
        color: #8a8f9c;
    }

.today-item-time {
    /* Room for "10:30 AM" on one line (12-hour times). */
    width: 76px;
    flex: 0 0 76px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: #4b5060;
}

.today-item-name {
    flex: 1;
    min-width: 140px;
    font-size: 15px;
}

.today-item-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-left: auto;
}

.today-spend-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    align-items: center;
}

    .today-spend-row input, .today-spend-row select {
        padding: 10px 11px;
        border: 1px solid #d6d9e0;
        border-radius: 9px;
        font-size: 16px;   /* 16px stops phones zooming in on focus */
        min-width: 0;
        flex: 1;
    }

.today-spend-currency {
    font-weight: 600;
    color: #4b5060;
}

@media (max-width: 700px) {
    .trip-grid, .trip-two {
        grid-template-columns: 1fr;
    }

    .trip-booking-body {
        flex-wrap: wrap;
    }

    .trip-day-stop {
        margin-left: 0;
        width: 100%;
    }
}

.today-links {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

/* Trips: costs by place (Overview, Bookings, Spending) */
.trip-stop-cost {
    font-size: 14px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    margin-right: 4px;
}

.trip-stop-none .trip-stop-name {
    font-weight: 500;
    color: #4b5060;
}

.trip-places-total {
    border-bottom: none;
    border-top: 2px solid #e5e7eb;
    margin-top: 4px;
    font-weight: 600;
}

.trip-place-group {
    margin-bottom: 18px;
}

.trip-place-heading {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 8px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
}

    .trip-place-heading .fa-location-dot {
        color: #6b5fe6;
    }

.trip-place-sum {
    margin-left: auto;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.trip-place-line > span {
    display: flex;
    flex-direction: column;
}

.trip-place-split {
    font-size: 12px;
}

/* Trips: Paste a confirmation */
.read-dialog {
    width: min(760px, calc(100vw - 32px));
}

    .read-dialog textarea {
        font-family: inherit;
        font-size: 13px;
    }

.read-section {
    font-size: 14px;
    font-weight: 600;
    margin: 16px 0 6px;
    color: #4b5060;
}

.read-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #eef0f3;
    font-size: 14px;
}

    .read-item input[type=checkbox] {
        margin-top: 4px;
        width: 16px;
        height: 16px;
        flex: none;
    }

    .read-item.disabled {
        opacity: .7;
    }

.read-item-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-wrap: anywhere;
}

.read-same {
    background: #eef0f3;
    color: #4b5060;
    margin-left: 0;
    align-self: flex-start;
}

.read-place-pick {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    font-size: 13px;
}

    .read-place-pick select {
        max-width: 240px;
        padding: 4px 8px;
        border: 1px solid #d6d9e0;
        border-radius: 6px;
    }

.read-why {
    color: #8a5a00;
}

@media (max-width: 700px) {
    .read-place-pick {
        flex-wrap: wrap;
    }

        .read-place-pick select {
            max-width: 100%;
            width: 100%;
        }
}

/* Trips: the Tools menu at the end of the Bookings row */
.trip-tools {
    position: relative;
    margin-left: auto;
}

.trip-tools-backdrop {
    position: fixed;
    inset: 0;
    z-index: 40;
}

.trip-tools-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 41;
    width: min(340px, calc(100vw - 32px));
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(17, 24, 39, .14);
    padding: 6px;
}

.trip-tools-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
    border-radius: 8px;
    padding: 10px 12px;
    cursor: pointer;
    font-size: 14px;
}

    .trip-tools-item:hover, .trip-tools-item:focus-visible {
        background: #f3f2fe;
    }

    .trip-tools-item > i {
        color: #6b5fe6;
        margin-top: 3px;
        width: 18px;
        text-align: center;
    }

    .trip-tools-item > span {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

/* Trips: a flight's airport boxes */
.trip-airport {
    position: relative;
}

.trip-airport-results {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 5;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(17, 24, 39, .12);
    max-height: 280px;
    overflow-y: auto;
}

.trip-airport-option {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
    border-bottom: 1px solid #f1f2f5;
    padding: 8px 11px;
    cursor: pointer;
    font-size: 14px;
}

    .trip-airport-option:hover, .trip-airport-option:focus-visible {
        background: #f3f2fe;
    }

    .trip-airport-option .lf-hint {
        display: block;
    }

.trip-return-same {
    margin-top: -4px;
}

@media (max-width: 700px) {
    .trip-tools {
        margin-left: 0;
    }

    .trip-tools-menu {
        left: 0;
        right: auto;
    }
}

/* Trips: the Tools row on Plan and Spending (Tools at the right) */
.trip-tools-row {
    justify-content: flex-end;
}

.read-cost .read-place-pick input[type=date] {
    padding: 4px 8px;
    border: 1px solid #d6d9e0;
    border-radius: 6px;
}

/* Trips list: two per row on a tablet (one on a phone, in the 700px rule above). */
@media (max-width: 1100px) and (min-width: 701px) {
    .trip-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* The card and its corner link to the Today page (beside the card's own link, so it can be its own link). */
.trip-card-wrap {
    position: relative;
    display: flex;
}

    .trip-card-wrap > .trip-card {
        flex: 1;
        min-width: 0;
    }

.trip-card-day {
    text-decoration: none;
    z-index: 1;
}

    .trip-card-day:hover {
        text-decoration: underline;
    }

/* Today page: Day 1 ‹ Today › Day 3, and "Looking ahead" / "Looking back" on a day that isn't today. */
.today-days {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
}

    .today-days a {
        color: #6b5fe6;
        text-decoration: none;
    }

.today-look {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #eef0ff;
    color: #4f46e5;
    font-size: 12px;
    font-weight: 600;
}

.today-picked[data-look="back"] .today-look {
    background: #f1f2f5;
    color: #4b5060;
}

/* 12h | 24h switch on the Plan tab and the Today page. */
.time-format-toggle {
    display: inline-flex;
    border: 1px solid #d6d9e0;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

    .time-format-toggle button {
        border: none;
        background: #fff;
        padding: 5px 10px;
        font: inherit;
        font-size: 12px;
        font-weight: 600;
        color: #4b5060;
        cursor: pointer;
    }

        .time-format-toggle button + button {
            border-left: 1px solid #d6d9e0;
        }

        .time-format-toggle button.active {
            background: #6b5fe6;
            color: #fff;
        }

.today-links {
    align-items: center;
}

/* The checklist: a box first on every row; a done row is greyed and struck through. */
.trip-done {
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
    accent-color: #6b5fe6;
    cursor: pointer;
}

    .trip-done:disabled {
        cursor: default;
    }

.trip-item.done .trip-item-name,
.trip-spot.visited .trip-item-name,
.today-item.visited .today-item-name {
    color: #8a8fa0;
}

    .trip-item.done .trip-item-name a,
    .trip-item.done .trip-item-name {
        text-decoration: line-through;
    }

/* A row's name opens the maps app when it has an address. */
.trip-map-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dashed #b9b4f2;
}

    .trip-map-link:hover {
        color: #4f46e5;
        border-bottom-style: solid;
    }

/* The tab chips and the tab's tools (12h / 24h, Tools) share one line; the tools wrap under the chips when there's no room. */
.trip-tab-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
}

    .trip-tab-bar .trip-tabs {
        margin-bottom: 0;
    }

    .trip-tab-bar .trip-tools-row {
        margin: 0 0 0 auto;
        align-items: center;
        flex-wrap: nowrap;
    }

/* Before or after a trip: a way into its first or last day. */
.today-see-day {
    margin-top: 10px;
    text-decoration: none;
}

/* Overview: the Trip card and the OneDrive and OneNote card share the left column. */
.trip-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.trip-microsoft .ms-heading {
    font-size: 14px;
    font-weight: 700;
    margin: 14px 0 6px;
    color: #374151;
}

    .trip-microsoft .ms-heading i {
        color: #6b5fe6;
        margin-right: 4px;
    }

.trip-microsoft .ms-account {
    margin: 0;
}

.ms-folder a, .ms-onenote a, .ms-connect a, .drive-none a, .drive-empty a, .drive-count a {
    color: #4f46e5;
    font-weight: 600;
    text-decoration: none;
}

.ms-folder-name {
    display: flex;
    align-items: center;
    gap: 6px;
}

    .ms-folder-name input {
        flex: 1;
        min-width: 0;
    }

/* Tools › From the OneDrive folder: the folder's files, newest first; read ones say so. */
.drive-files {
    max-height: 360px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 4px 10px;
}

.drive-file.disabled {
    opacity: .55;
}

.drive-read {
    background: #e8f6ee;
    color: #1b6b3a;
    margin-left: auto;
    white-space: nowrap;
}

.drive-none, .drive-empty {
    padding: 12px;
    background: #f6f7f9;
    border-radius: 10px;
    font-size: 14px;
}

/* Sharing a trip: the owner's Shared with card, the Shared with you card, the list tag and "Added by". */
.trip-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #f1f2f5;
}

    .trip-share.ended {
        opacity: .6;
    }

.trip-share-who {
    flex: 1 1 180px;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.trip-share select, .trip-share-new select,
.trip-share input[type=date], .trip-share-new input {
    padding: 5px 8px;
    border: 1px solid #d6d9e0;
    border-radius: 8px;
    font: inherit;
    font-size: 13px;
}

.trip-share-new {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 6px;
}

    .trip-share-new #share-email {
        flex: 1 1 200px;
        min-width: 0;
    }

.trip-card-shared {
    font-size: 12px;
    font-weight: 600;
    color: #6b5fe6;
}

.trip-by {
    font-size: 12px;
    color: #8a8fa0;
    display: block;
}

.leave-question {
    margin: 8px 0;
}

/* ---------------------------------------------------------------------
   Bookings: the date and time first. A date tile on the left (weekday, day, month, the kind's icon on its corner) and
   each time beside its label, the same size as its day (big and bold was too much), so the departure is found at a
   glance on the way.
   --------------------------------------------------------------------- */
.booking-date-tile {
    position: relative;
    flex: 0 0 auto;
    width: 58px;
    padding: 6px 0 7px;
    border-radius: 12px;
    background: linear-gradient(160deg, #8b80f0, #5b4fd8);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.05;
    box-shadow: 0 2px 6px rgba(91, 79, 216, 0.25);
}

.trip-booking.cancelled .booking-date-tile {
    background: #c7cad3;
    box-shadow: none;
}

.bdt-dow {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.9;
}

.bdt-day {
    font-size: 24px;
    font-weight: 800;
}

.bdt-month {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* The kind (flight, hotel, parking …) on the tile's corner: big enough to tell at a glance. */
.bdt-kind {
    position: absolute;
    left: 50%;
    bottom: -24px;
    transform: translateX(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    color: #5b4fd8;
    border: 2px solid #d9d5fb;
    box-shadow: 0 2px 6px rgba(91, 79, 216, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

/* Room for the kind badge under the tile. */
.trip-booking .booking-date-tile {
    margin: 0 0 26px 0;
}

.trip-booking-when {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 4px 0 6px;
}

.booking-when-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 8px;
}

.bwr-label {
    min-width: 72px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7080;
}

.bwr-time {
    font-size: 14px;
    font-weight: 600;
    color: #3b4050;
    font-variant-numeric: tabular-nums;
}

.bwr-day {
    font-size: 14px;
    font-weight: 600;
    color: #3b4050;
}

.bwr-day-only {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
}

.bwr-zone {
    font-size: 12px;
    color: #8a8f9c;
}

@media (max-width: 640px) {
    .booking-date-tile {
        width: 52px;
    }

    .bdt-day {
        font-size: 21px;
    }

    .bwr-label {
        min-width: 0;
    }

}

/* The Overview's Time zones: one row per zone, the time there now on the right. */
.trip-zone {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid #eef0f3;
}

.trip-zone:last-of-type {
    border-bottom: none;
}

.trip-zone-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.trip-zone-name {
    font-weight: 600;
    color: #1f2937;
    overflow-wrap: anywhere;
}

.trip-zone.home .trip-zone-name::before {
    content: "\f015";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 6px;
    color: #6b5fe6;
}

/* The time there now: the same size and weight as the zone's name (big and bold was too much). */
.trip-zone-now {
    font-weight: 600;
    color: #1f2937;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.trip-zone-change-hint {
    margin: 0 0 6px;
}

/* A Plan booking row whose time is in another zone than the day's: says which. */
.trip-item-zone {
    font-size: 12px;
    color: #6b7080;
    white-space: nowrap;
}

.trip-zone-add {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eef0f3;
}

.btn-add-zone {
    margin-top: 10px;
}

/* Phones: every bit of width for the times. The tab line keeps its ⋮ at the end (the tabs scroll), and a booking's
   Directions and ⋮ sit in the card's top-right corner, so the label goes on a small line and the time and day share the next. */
@media (max-width: 640px) {
    .trip-tab-bar {
        flex-wrap: nowrap;
        gap: 8px;
    }

    .trip-tab-bar .trip-tabs {
        flex: 1 1 auto;
        min-width: 0;
    }

    .trip-tab-bar .trip-tools-row {
        flex: 0 0 auto;
    }

    .trip-booking-body {
        position: relative;
        padding: 12px 12px 12px 14px;
    }

    .trip-booking .trip-row-actions {
        position: absolute;
        top: 8px;
        right: 8px;
    }

    .trip-booking-title {
        padding-right: 78px;
    }

    .booking-when-row {
        gap: 0 8px;
    }

    .bwr-label {
        flex-basis: 100%;
        font-size: 11px;
    }

    .bwr-zone {
        flex-basis: 100%;
    }
}

/* A dialog's error, repeated by its Save button. */
.trip-dialog-error-bottom {
    margin: 12px 0 0;
}

/* A booking listed with the costs: a small Booking tag; it's changed in the booking itself. */
.trip-pill-booking {
    background: #eef0ff;
    color: #4f46e5;
    margin-left: 6px;
    font-size: 11px;
}

/* The Plan's fold button at the end of each day's and Ideas card's header: a round button, up while open, down while shut. */
.trip-fold {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-left: 4px;
    border-radius: 50%;
    border: 1px solid #d6d9e0;
    background: #fff;
}

.trip-fold .trip-day-chevron {
    width: auto;
    color: #6b5fe6;
}

.trip-day-header:hover .trip-fold {
    border-color: #6b5fe6;
    background: #f1effd;
}

.trip-ideas-header .trip-fold {
    margin-left: auto;
}

.trip-ideas.collapsed .trip-day-header {
    border-radius: 12px;
}

/* A Plan day as a Google Maps route (Plan and Today): the travel mode, the places in order, the links to open. */
.trip-route {
    margin-bottom: 10px;
    font-size: 13px;
}

    .trip-route .btn-day-route {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-weight: 600;
    }

.trip-route-panel {
    margin-top: 8px;
    padding: 10px 12px;
    border: 1px solid #e4e1fb;
    border-radius: 10px;
    background: #f8f7ff;
}

.trip-route-modes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.trip-route-mode {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid #d6d2f7;
    background: #fff;
    color: #4b5060;
    font-size: 13px;
    cursor: pointer;
}

    .trip-route-mode.on {
        background: #6b5fe6;
        border-color: #6b5fe6;
        color: #fff;
    }

.trip-route-stops {
    margin: 0 0 8px;
    padding-left: 22px;
    color: #4b5060;
}

    .trip-route-stops li {
        padding: 1px 0;
    }

.trip-route-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 6px;
}

.trip-route-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6b5fe6;
    font-weight: 600;
    text-decoration: none;
}

    .trip-route-link:hover {
        text-decoration: underline;
    }

/* On the Today page the links are the big buttons, one per line. */
.today-route .trip-route-links {
    display: flex;
    margin: 4px 0 6px;
}

.today-route .today-go-btn.trip-route-link {
    flex-direction: row;
    justify-content: center;
    padding: 12px;
}

    .today-route .today-go-btn.trip-route-link:hover {
        text-decoration: none;
    }
