body.travel-tab-active .filters-card,
body.travel-tab-active #today-layout,
body.travel-tab-active #mobile-filter-fab,
body.travel-tab-active #tab-notes,
body.travel-tab-active .tab-actions .import-task-bar-btn,
body.travel-tab-active .tab-actions .add-existing-tasks-bar-btn,
body.travel-tab-active .alert-center-root,
body.travel-tab-active .quick-reminder-fab,
body.travel-tab-active .quick-reminder-alerts-layer,
body.travel-tab-active .quick-reminder-alerts-dock,
body.travel-tab-active .mobile-app-fab-dock-btn--reminder,
body.travel-tab-active #task-reminders-btn,
body.travel-tab-active #task-reminders-dropdown-panel {
    display: none !important;
}

body.travel-tab-active.has-alert-center .content {
    padding-top: 0;
}

body.travel-tab-active .mobile-app-fab-dock-fixed--left,
body.travel-tab-active .mobile-app-fab-dock-scroll,
body.travel-tab-active #mobile-app-fab-health,
body.travel-tab-active #mobile-app-fab-new-sticky {
    display: none !important;
}

#mobile-app-fab-travel-ai,
#mobile-app-fab-travel-translate {
    display: none !important;
}

body.travel-tab-active #mobile-app-fab-travel-translate {
    display: flex !important;
}

body.travel-trip-open #mobile-app-fab-travel-ai {
    display: flex !important;
}

body.travel-tab-active .mobile-app-fab-dock-fixed--right {
    flex: 1 1 auto;
    justify-content: center;
    box-shadow: none;
    padding-left: 0;
    padding-right: 0;
    gap: 14px;
}

body.has-mobile-fab-dock .mobile-app-fab-dock-btn--travel-ai,
body.has-mobile-fab-dock .mobile-app-fab-dock-btn--travel-translate {
    width: 44px;
    height: 44px;
    color: #fff;
    pointer-events: auto;
}

body.has-mobile-fab-dock .mobile-app-fab-dock-btn--travel-ai {
    background: linear-gradient(135deg, #818cf8 0%, #6366f1 100%);
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.4);
}

body.has-mobile-fab-dock .mobile-app-fab-dock-btn--travel-translate {
    background: linear-gradient(135deg, #34d399 0%, #059669 100%);
    box-shadow: 0 2px 10px rgba(5, 150, 105, 0.4);
}

body.travel-translate-open #mobile-app-fab-travel-translate {
    box-shadow: 0 0 0 2px #fff, 0 2px 10px rgba(5, 150, 105, 0.45);
}

.travel-view.hidden {
    display: none;
}

.travel-view {
    max-width: 720px;
    margin: 0 auto;
    padding: 4px 0 108px;
}

body.travel-trip-open .travel-view {
    padding-bottom: calc(108px + var(--travel-now-bar-height, 58px));
}

body.has-mobile-fab-dock.travel-trip-open .content {
    padding-bottom: calc(24px + 72px + var(--travel-now-bar-height, 58px) + env(safe-area-inset-bottom, 0px));
}

.travel-hero {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.travel-hero-copy h2,
.travel-list-title {
    margin: 0 0 4px;
    font-size: 1.55rem;
    letter-spacing: -0.04em;
    font-weight: 750;
}

.travel-hero-copy p,
.travel-list-lead {
    margin: 0;
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.4;
}

.travel-list-toolbar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.travel-text-btn {
    border: 0;
    background: transparent;
    color: #7dd3fc;
    padding: 8px 2px;
    font-weight: 650;
    font-size: 0.86rem;
    cursor: pointer;
}

.travel-trip-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.travel-trip-card {
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 20px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.78);
    cursor: pointer;
    text-align: left;
    color: inherit;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.travel-trip-card-cover {
    height: 118px;
    background-size: cover;
    background-position: center;
    background-color: #0ea5e9;
}

.travel-trip-card-body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.travel-trip-card-title {
    font-size: 1.05rem;
    font-weight: 750;
    letter-spacing: -0.02em;
}

.travel-trip-card-meta,
.travel-empty,
.travel-muted {
    color: #94a3b8;
    font-size: 0.84rem;
}

.travel-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.travel-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 0.7rem;
    font-weight: 650;
    background: rgba(148, 163, 184, 0.12);
    color: #cbd5e1;
}

.travel-empty {
    padding: 36px 12px;
    text-align: center;
}

.travel-topbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.travel-topbar-copy {
    flex: 1;
    min-width: 0;
}

.travel-title-line {
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
}

.travel-display-title,
.travel-topbar-copy h2 {
    margin: 0;
    font-size: 1.12rem;
    letter-spacing: -0.03em;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1 1 auto;
}

.travel-topbar-period {
    flex: 0 0 auto;
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.travel-icon-btn {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.6);
    color: #e2e8f0;
    border-radius: 12px;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    flex: 0 0 auto;
}

.travel-pop-wrap {
    position: relative;
}

.travel-pop {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    min-width: 168px;
    padding: 6px;
    border-radius: 14px;
    background: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    z-index: 8;
    display: none;
}

.travel-pop.is-open {
    display: flex;
    flex-direction: column;
}

.travel-pop button {
    border: 0;
    background: transparent;
    color: #e2e8f0;
    text-align: left;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
}

.travel-pop button:hover,
.travel-pop button:active {
    background: rgba(148, 163, 184, 0.12);
}

.travel-section-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    margin: 0 -4px 14px;
    padding: 4px 4px 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: sticky;
    top: 0;
    z-index: 5;
    background: linear-gradient(180deg, rgba(8, 15, 30, 0.96) 70%, rgba(8, 15, 30, 0));
    scrollbar-width: none;
}

.travel-section-tabs::-webkit-scrollbar {
    display: none;
}

.travel-section-tab {
    border: 0;
    background: rgba(148, 163, 184, 0.1);
    color: #94a3b8;
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    white-space: nowrap;
    flex: 0 0 auto;
}

.travel-section-tab.is-active {
    background: #e2e8f0;
    color: #0f172a;
}

.travel-day {
    position: relative;
    padding: 0 0 8px 0;
    margin-bottom: 22px;
}

.travel-day-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.travel-day-head h3 {
    margin: 0;
    font-size: 0.95rem;
    letter-spacing: -0.02em;
}

.travel-stop-list {
    position: relative;
    padding-left: 18px;
}

.travel-stop-list::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: rgba(148, 163, 184, 0.16);
}

.travel-stop {
    position: relative;
    display: block;
    padding: 0 0 14px;
}

.travel-stop-dot {
    position: absolute;
    left: -16px;
    top: 16px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18);
}

.travel-stop.is-done .travel-stop-dot {
    background: #64748b;
    box-shadow: none;
}

.travel-stop-card {
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(15, 23, 42, 0.7);
    border-radius: 16px;
    padding: 12px;
}

.travel-stop.is-done .travel-stop-title {
    text-decoration: line-through;
    color: #94a3b8;
}

.travel-stop-title-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.travel-stop-copy {
    flex: 1;
    min-width: 0;
}

.travel-stop-tools {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
}

.travel-stop-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
    min-width: 0;
}

.travel-photo-chip {
    flex: 0 0 auto;
    border: 1px dashed rgba(148, 163, 184, 0.32);
    background: rgba(14, 165, 233, 0.08);
    color: #7dd3fc;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 0.68rem;
    font-weight: 750;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
}

.travel-icon-tool {
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: rgba(148, 163, 184, 0.12);
    color: #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.travel-icon-tool.is-danger {
    color: #fda4af;
}

.travel-stop-done {
    margin: 8px 0 0;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.travel-stop-time {
    flex: 0 0 auto;
    min-width: 54px;
    padding: 7px 8px;
    border-radius: 10px;
    background: linear-gradient(180deg, #1e293b, #0f172a);
    color: #fbbf24;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    white-space: nowrap;
    border: 1px solid rgba(251, 191, 36, 0.35);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.35);
}

.travel-stop.is-done .travel-stop-time {
    background: linear-gradient(180deg, #334155, #1e293b);
    color: #94a3b8;
    border-color: rgba(148, 163, 184, 0.28);
    box-shadow: none;
}

.travel-stop-title {
    font-weight: 750;
    font-size: 0.98rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.travel-stop-address {
    margin-top: 4px;
    color: #94a3b8;
    font-size: 0.84rem;
    line-height: 1.3;
}

.travel-stop-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
    color: #94a3b8;
    font-size: 0.76rem;
    margin-top: 4px;
}

.travel-cat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.travel-cat::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #64748b;
}

.travel-cat.is-passeio::before { background: #38bdf8; }
.travel-cat.is-comida::before { background: #fb923c; }
.travel-cat.is-transporte::before { background: #a78bfa; }
.travel-cat.is-hospedagem::before { background: #2dd4bf; }
.travel-cat.is-compras::before { background: #fb7185; }
.travel-cat.is-livre::before { background: #4ade80; }

.travel-stop-tips {
    margin-top: 8px;
    color: #e2e8f0;
    font-size: 0.86rem;
    line-height: 1.45;
}

.travel-toggle-stop-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #7dd3fc;
    font-weight: 650;
    font-size: 0.86rem;
    cursor: pointer;
}

.travel-toggle-chevron {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
}

.travel-toggle-stop-btn.is-open .travel-toggle-chevron {
    border-top: 0;
    border-bottom: 5px solid currentColor;
}

.travel-stop-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.travel-photo-strip {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 10px;
    padding-bottom: 2px;
    scrollbar-width: none;
}

.travel-photo-strip::-webkit-scrollbar {
    display: none;
}

.travel-thumb,
.travel-thumb-add {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    flex: 0 0 auto;
    overflow: hidden;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: #0b1220;
}

.travel-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.travel-thumb-add {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(148, 163, 184, 0.28);
    color: #7dd3fc;
    font-size: 0.68rem;
    font-weight: 750;
    text-align: center;
    line-height: 1.2;
    background: rgba(14, 165, 233, 0.08);
}

.travel-map {
    margin-top: 10px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.18);
    min-height: 160px;
}

.travel-map iframe {
    width: 100%;
    height: 160px;
    border: 0;
}

.travel-day-nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin: 0 -4px 14px;
    padding: 2px 4px 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.travel-day-nav::-webkit-scrollbar {
    display: none;
}

.travel-day-nav button {
    border: 0;
    background: rgba(148, 163, 184, 0.1);
    color: #cbd5e1;
    border-radius: 14px;
    padding: 8px 12px;
    cursor: pointer;
    min-width: 64px;
    flex: 0 0 auto;
    line-height: 1.15;
}

.travel-day-nav button small {
    display: block;
    color: #94a3b8;
    font-size: 0.68rem;
}

.travel-day-nav button.is-active {
    background: #e2e8f0;
    color: #0f172a;
}

.travel-day-nav button.is-active small {
    color: #475569;
}

.travel-balance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
}

.travel-balance-card {
    border-radius: 16px;
    padding: 12px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.travel-balance-card strong {
    display: block;
    margin-top: 4px;
    font-size: 1.05rem;
}

.travel-balance-card.is-pos strong {
    color: #4ade80;
}

.travel-balance-card.is-neg strong {
    color: #fb7185;
}

.travel-expense-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.travel-expense-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.travel-expense-row strong {
    display: block;
    font-size: 0.92rem;
}

.travel-expense-amount {
    font-weight: 750;
    white-space: nowrap;
}

.travel-check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 4px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    min-height: 48px;
}

.travel-check-item input {
    width: 18px;
    height: 18px;
}

.travel-check-item.is-done span {
    text-decoration: line-through;
    color: #94a3b8;
}

.travel-check-item span {
    flex: 1;
}

.travel-check-form {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.travel-check-form input {
    flex: 1;
    min-width: 0;
}

.travel-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.travel-form-grid .full {
    grid-column: 1 / -1;
}

.travel-form-grid label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.82rem;
    color: #cbd5e1;
}

.travel-cover-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.82rem;
    color: #cbd5e1;
}

.travel-cover-picker {
    display: flex;
    align-items: center;
    gap: 12px;
}

.travel-cover-preview {
    width: 112px;
    height: 72px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0ea5e9, #0f172a);
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(148, 163, 184, 0.18);
    flex: 0 0 auto;
}

.travel-cover-preview.has-image {
    background-color: #0b1220;
}

.travel-cover-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.travel-members {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}

.travel-member {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 4px 10px;
    background: rgba(148, 163, 184, 0.12);
    font-size: 0.8rem;
}

#travel-import-json,
#travel-trip-notes,
#travel-stop-tips,
#travel-stop-notes,
.travel-prompt-box {
    white-space: pre-wrap;
    background: rgba(2, 6, 23, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 12px;
    padding: 12px;
    font-size: 0.8rem;
    line-height: 1.45;
    max-height: 280px;
    overflow: auto;
}

.travel-now-bar {
    --travel-now-bar-height: 58px;
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: var(--fab-dock-height, 64px);
    z-index: 7940;
    align-items: center;
    gap: 4px;
    min-height: var(--travel-now-bar-height);
    margin: 0;
    padding: 6px 8px;
    background: rgba(15, 23, 42, 0.96);
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    border-bottom: 0;
    box-shadow: none;
}

.travel-now-bar[hidden] {
    display: none !important;
}

body.travel-trip-open .travel-now-bar:not([hidden]) {
    display: flex;
}

body.travel-translate-open .travel-now-bar {
    display: none !important;
}

.travel-translate-sheet {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: var(--fab-dock-height, 64px);
    z-index: 7945;
    flex-direction: column;
    gap: 10px;
    padding: 12px 14px 14px;
    background: rgba(15, 23, 42, 0.98);
    border-top: 1px solid rgba(52, 211, 153, 0.28);
    box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.32);
    pointer-events: auto;
}

.travel-translate-sheet[hidden] {
    display: none !important;
}

.travel-translate-sheet.is-open,
body.travel-translate-open .travel-translate-sheet:not([hidden]) {
    display: flex !important;
}

.travel-translate-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.travel-translate-head h2 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 750;
}

.travel-translate-head-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.travel-translate-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.travel-translate-field-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.travel-translate-field textarea {
    width: 100%;
    min-height: 72px;
    resize: vertical;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(2, 6, 23, 0.55);
    color: #e2e8f0;
    padding: 10px 12px;
    font: inherit;
}

.travel-translate-mic {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(52, 211, 153, 0.16);
    color: #6ee7b7;
    cursor: pointer;
}

.travel-translate-mic.is-listening {
    background: #ef4444;
    color: #fff;
    animation: travel-mic-pulse 1s ease-in-out infinite;
}

@keyframes travel-mic-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

#travel-translate-feedback {
    min-height: 1.1em;
    margin: 0;
}

.travel-now-nav {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 12px;
    background: rgba(148, 163, 184, 0.12);
    color: #e2e8f0;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.travel-now-bar .travel-stop-time {
    flex: 0 0 auto;
}

.travel-now-bar .travel-stop-time[hidden] {
    display: none !important;
}

.travel-now-main {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    padding: 2px 6px;
    cursor: pointer;
}

.travel-now-kicker {
    display: block;
    color: #7dd3fc;
    font-size: 0.64rem;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.travel-now-title {
    display: block;
    font-size: 0.92rem;
    font-weight: 750;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.travel-now-when {
    display: block;
    color: #94a3b8;
    font-size: 0.74rem;
    margin-top: 1px;
}

.travel-stop-detail-header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.travel-stop-detail-when {
    color: #94a3b8;
    font-size: 0.86rem;
    margin-bottom: 8px;
}

.travel-stop-detail-block {
    margin: 10px 0 0;
}

.travel-stop-detail-block strong {
    display: block;
    margin-bottom: 4px;
}

.travel-stop-detail-block p {
    margin: 0;
    white-space: pre-wrap;
}

.travel-fab {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(22px, env(safe-area-inset-bottom));
    z-index: 20;
    border: 0;
    background: #e2e8f0;
    color: #0f172a;
    min-height: 52px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: -0.02em;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    cursor: pointer;
}

.travel-album-head {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.travel-album-filters {
    display: flex;
    gap: 6px;
}

.travel-album-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
}

.travel-album-cell {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border: 0;
    padding: 0;
    background: #0b1220;
    cursor: pointer;
}

.travel-album-cell img,
.travel-album-cell video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.travel-album-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(2, 6, 23, 0.28);
    color: #fff;
    font-size: 1.4rem;
    pointer-events: none;
}

.travel-upload-banner {
    border-radius: 14px;
    padding: 10px 12px;
    background: rgba(14, 165, 233, 0.14);
    color: #7dd3fc;
    font-size: 0.84rem;
    margin-bottom: 10px;
}

.travel-lightbox[hidden] {
    display: none !important;
}

.travel-lightbox {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(2, 6, 23, 0.94);
    display: flex;
    flex-direction: column;
}

.travel-lightbox-stage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 8px 48px;
}

.travel-lightbox-stage img,
.travel-lightbox-stage video {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
}

.travel-lightbox-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px calc(14px + env(safe-area-inset-bottom));
    color: #e2e8f0;
    font-size: 0.84rem;
}

.travel-lightbox-nav,
.travel-lightbox-close {
    position: absolute;
    border: 0;
    background: rgba(15, 23, 42, 0.7);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    cursor: pointer;
}

.travel-lightbox-close {
    top: 12px;
    right: 12px;
    z-index: 2;
}

.travel-lightbox-nav.is-prev {
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
}

.travel-lightbox-nav.is-next {
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
}

.travel-inline-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.travel-display-title {
    background: linear-gradient(120deg, #f8fafc 0%, #7dd3fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.travel-date-range {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.travel-cal {
    min-width: 52px;
    padding: 6px 8px 7px;
    border-radius: 12px;
    background: linear-gradient(180deg, #fb7185 0%, #e11d48 38%, rgba(15, 23, 42, 0.92) 38%);
    text-align: center;
    line-height: 1;
    box-shadow: 0 6px 16px rgba(225, 29, 72, 0.18);
}

.travel-cal-month {
    display: block;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #fff;
}

.travel-cal-day {
    display: block;
    margin-top: 10px;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #f8fafc;
}

.travel-cal-week {
    display: block;
    margin-top: 2px;
    font-size: 0.62rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
}

.travel-cal-sep {
    width: 18px;
    height: 2px;
    border-radius: 99px;
    background: rgba(148, 163, 184, 0.45);
}

.travel-day-head {
    align-items: center;
}

.travel-day-badge {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(180deg, #38bdf8, #0ea5e9);
    color: #0f172a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(14, 165, 233, 0.22);
}

.travel-day-num {
    font-size: 1.2rem;
    font-weight: 850;
    letter-spacing: -0.04em;
}

.travel-day-mon {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.travel-day-copy {
    flex: 1;
    min-width: 0;
}

.travel-day-copy h3 {
    font-size: 1.05rem;
    letter-spacing: -0.03em;
}

.travel-day-subtitle {
    margin-top: 2px;
    font-size: 0.84rem;
    color: #e2e8f0;
    font-weight: 600;
}

.travel-day-desc-btn {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.travel-day-head .travel-icon-tool {
    flex: 0 0 auto;
    margin-top: 2px;
}

.travel-day-nav button strong {
    display: block;
    font-size: 1.05rem;
    letter-spacing: -0.03em;
}

.travel-fx {
    border-radius: 18px;
    padding: 14px;
    margin-bottom: 14px;
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.16), rgba(15, 23, 42, 0.72));
    border: 1px solid rgba(125, 211, 252, 0.2);
}

.travel-fx-head {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 10px;
}

.travel-fx-head strong {
    font-size: 0.95rem;
}

.travel-fx-head span,
.travel-fx-note {
    color: #94a3b8;
    font-size: 0.76rem;
}

.travel-fx-note {
    margin: 8px 0 0;
}

.travel-fx-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.travel-fx label,
.travel-fx-rate {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.74rem;
    color: #cbd5e1;
}

.travel-fx-rate {
    margin-top: 8px;
}

.travel-fx input {
    width: 100%;
    min-height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(2, 6, 23, 0.55);
    color: #f8fafc;
    padding: 8px 10px;
    font-size: 1rem;
    font-weight: 700;
}

.travel-money-pair {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    line-height: 1.15;
}

.travel-money-pair strong {
    font-size: 0.95rem;
}

.travel-money-pair span {
    font-size: 0.74rem;
    color: #7dd3fc;
    font-weight: 650;
}

.travel-balance-card .travel-money-pair {
    align-items: flex-start;
    margin: 6px 0 4px;
}

.travel-expense-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding: 12px 4px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    font-weight: 700;
}

.travel-user-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
    max-height: 280px;
    overflow: auto;
}

.travel-user-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: left;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(15, 23, 42, 0.65);
    color: inherit;
    border-radius: 14px;
    padding: 10px;
    cursor: pointer;
}

.travel-user-row.is-member {
    opacity: 0.55;
    cursor: default;
}

.travel-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    color: #0f172a;
    font-weight: 800;
    flex: 0 0 auto;
}

.travel-user-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.travel-user-copy small {
    color: #94a3b8;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.travel-ai-launch,
#travel-open-ai-btn {
    display: none !important;
}

.travel-stop-ai-assist {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    margin-bottom: 4px;
    border-radius: 14px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(129, 140, 248, 0.28);
}

.travel-stop-ai-assist label {
    margin: 0;
}

.travel-stop-ai-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #c7d2fe;
    font-size: 0.78rem;
    font-weight: 750;
}

.travel-ai-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

#travel-stop-ai-fill-btn {
    background: linear-gradient(135deg, #818cf8 0%, #6366f1 100%);
    color: #fff;
    border: none;
}

.travel-ai-preview {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.travel-ai-preview-title {
    margin: 8px 0 0;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8;
}

.travel-ai-summary {
    margin: 0;
    font-size: 0.9rem;
}

.travel-ai-card {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

#travel-ai-message {
    width: 100%;
    min-height: 96px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(2, 6, 23, 0.55);
    color: #f8fafc;
    padding: 10px 12px;
}

@media (min-width: 720px) {
    .travel-trip-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .travel-hero {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }

    .travel-fab {
        position: static;
        box-shadow: none;
        min-height: 40px;
    }
}

@media (max-width: 720px) {
    .travel-form-grid {
        grid-template-columns: 1fr;
    }

    .travel-expense-table {
        display: none;
    }

    #travel-new-trip-btn.travel-fab {
        display: none !important;
    }

    body.has-mobile-fab-dock #travel-album-upload-btn.travel-fab {
        bottom: calc(var(--fab-dock-height, 64px) + 16px);
    }

    body.has-mobile-fab-dock.travel-trip-open #travel-album-upload-btn.travel-fab {
        bottom: calc(var(--fab-dock-height, 64px) + var(--travel-now-bar-height, 58px) + 16px);
    }

    .travel-stop-list {
        padding-left: 14px;
    }

    .travel-stop-card {
        padding: 10px;
    }

    .travel-stop-title-row {
        gap: 8px;
    }

    .travel-stop-title {
        font-size: 0.95rem;
    }

    .travel-stop-time {
        min-width: 48px;
        padding: 6px 6px;
        font-size: 0.78rem;
    }

    .travel-stop-done {
        margin-top: 6px;
    }

    .travel-icon-tool {
        width: 28px;
        height: 28px;
    }
}

@media (hover: hover) {
    .travel-trip-card:hover {
        border-color: rgba(14, 165, 233, 0.45);
    }
}
