.home-kicker {
    margin: 0 0 12px;
    color: #d8bc8d;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 12px;
}
.home-landing-hero h1,
.home-dashboard-hero h2 {
    margin: 0;
    font-size: clamp(40px, 7vw, 72px);
    line-height: 0.95;
}
.home-dashboard-hero h2 {
    font-size: clamp(32px, 4vw, 56px);
}
.home-landing-copy,
.home-dashboard-copy {
    max-width: 740px;
    margin: 18px 0 0;
    color: #d6e0dc;
    font-size: 20px;
    line-height: 1.6;
}
.home-landing-actions,
.home-dashboard-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}
.home-primary-link,
.home-secondary-link,
.home-dashboard-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 22px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
}
.home-primary-link {
    background: linear-gradient(135deg, #e5bb73, #83cfbf);
    color: #0d1214;
    box-shadow: 0 14px 30px rgba(131, 207, 191, 0.18);
}
.home-secondary-link,
.home-dashboard-link {
    border: 1px solid rgba(226, 235, 240, 0.18);
    background: rgba(12, 17, 21, 0.6);
    color: #edf3ef;
}
.home-landing-summary,
.home-dashboard-panel,
.home-dashboard-metric {
    border: 1px solid rgba(132, 157, 168, 0.2);
    border-radius: 22px;
    background: rgba(10, 15, 19, 0.84);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.2);
}
.home-landing-summary {
    padding: 22px;
    position: relative;
    overflow: hidden;
}
.home-landing-summary strong {
    display: block;
    margin-bottom: 12px;
    color: #f4e0ba;
    position: relative;
    z-index: 1;
}
.home-landing-summary-feature::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(124, 200, 190, 0.2), transparent 34%),
        linear-gradient(155deg, rgba(229, 187, 115, 0.12), rgba(73, 121, 164, 0.08));
    pointer-events: none;
}
.home-landing-summary-feature::after {
    content: "";
    position: absolute;
    top: 18px;
    right: 18px;
    width: 96px;
    height: 96px;
    border-radius: 24px;
    border: 1px solid rgba(236, 212, 168, 0.18);
    background:
        linear-gradient(180deg, rgba(17, 28, 34, 0.92), rgba(11, 18, 24, 0.82)),
        linear-gradient(135deg, rgba(224, 181, 111, 0.22), rgba(105, 157, 192, 0.12));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    pointer-events: none;
}
.home-landing-summary-copy {
    margin: 0 0 16px;
    max-width: 28rem;
    color: #d8e1de;
    line-height: 1.55;
    position: relative;
    z-index: 1;
}
.home-landing-summary dl,
.home-mini-metrics {
    display: grid;
    gap: 12px;
    margin: 0;
    position: relative;
    z-index: 1;
}
.home-landing-summary dl div,
.home-mini-metrics div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(121, 143, 152, 0.18);
}
.home-landing-summary dl div:first-child,
.home-mini-metrics div:first-child {
    padding-top: 0;
    border-top: none;
}
.home-landing-summary dt,
.home-mini-metrics dt {
    color: #aebdc0;
}
.home-landing-summary dd,
.home-mini-metrics dd {
    margin: 0;
    text-align: right;
    color: #f4f8f6;
}
.home-landing-grid,
.home-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 24px;
}
.home-app-card {
    display: grid;
    gap: 8px;
    padding: 22px;
    border-radius: 22px;
    border: 1px solid rgba(160, 179, 186, 0.16);
    background: linear-gradient(180deg, rgba(17, 25, 30, 0.92), rgba(12, 18, 22, 0.92));
    text-decoration: none;
    color: #f2f6f5;
    transition: transform 0.16s ease, border-color 0.16s ease;
}
.home-app-card strong {
    font-size: 22px;
}
.home-app-card p {
    margin: 0;
    color: #b6c4c6;
    line-height: 1.5;
}
.home-app-card:hover,
.home-primary-link:hover,
.home-secondary-link:hover,
.home-dashboard-link:hover,
.home-action-card:hover,
.home-routine-row:hover {
    transform: translateY(-1px);
}
.home-app-card:hover {
    border-color: rgba(220, 186, 125, 0.4);
}
.home-dashboard-hero {
    padding: 10px 0 0;
}
.home-dashboard-metrics {
    display: grid;
    gap: 14px;
}
.home-dashboard-metric {
    display: grid;
    gap: 6px;
    padding: 18px;
}
.home-dashboard-metric span {
    color: #a4b7bc;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
}
.home-dashboard-metric strong {
    font-size: 34px;
    color: #f4f8f5;
}
.home-dashboard-metric small {
    color: #b8c5c8;
}
.home-dashboard-panel {
    padding: 20px;
}
.home-panel-head {
    margin-bottom: 14px;
}
.home-panel-head h3 {
    margin: 0 0 6px;
}
.home-panel-head p,
.home-empty-note {
    margin: 0;
    color: #adbcbf;
}
.home-action-stack,
.home-routine-list {
    display: grid;
    gap: 10px;
}
.home-action-card,
.home-routine-row {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(124, 145, 153, 0.18);
    background: #11191d;
    color: #edf3ef;
    text-decoration: none;
}
.home-action-card span,
.home-routine-row span {
    color: #b5c4c6;
}
.home-action-card.tone-danger {
    border-left: 4px solid #c85f66;
}
.home-action-card.tone-warn {
    border-left: 4px solid #d1a457;
}
.home-action-card.tone-info {
    border-left: 4px solid #5fa7cf;
}
.home-action-card.tone-calm {
    border-left: 4px solid #6bb592;
}
.home-dashboard-table {
    margin-top: 10px;
}
.home-dashboard-table td:last-child,
.home-dashboard-table th:last-child {
    white-space: nowrap;
}
.home-dashboard-grid-secondary {
    margin-bottom: 28px;
}
@media (max-width: 900px) {
    .home-landing-shell {
        padding: 28px 16px 48px;
    }
    .home-landing-hero,
    .home-dashboard-hero,
    .home-landing-grid,
    .home-dashboard-grid {
        grid-template-columns: 1fr;
    }
    .home-landing-hero {
        padding: 24px;
    }
    .home-landing-hero h1,
    .home-dashboard-hero h2 {
        font-size: clamp(34px, 12vw, 56px);
    }
}

.trip-hero,
.trip-detail-hero,
.trip-form-shell {
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(0, 1.6fr) minmax(240px, 0.8fr);
    padding: 24px;
    border-radius: 24px;
    background: linear-gradient(145deg, #182028 0%, #20323d 48%, #173e44 100%);
    border: 1px solid rgba(126, 158, 172, 0.18);
    margin-bottom: 24px;
}
.trip-hero h2,
.trip-detail-hero h2,
.trip-form-intro h2 {
    margin: 0 0 8px;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 0.98;
}
.trip-hero-copy {
    margin: 0;
    color: #c8d7d8;
    max-width: 58ch;
}
.trip-primary-link {
    align-self: start;
    justify-self: end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 20px;
    border-radius: 16px;
    background: #f5b86f;
    color: #172126;
    text-decoration: none;
    font-weight: 700;
}
.trip-primary-link-muted {
    background: #1f2c33;
    color: #ecf4f2;
    border: 1px solid rgba(126, 158, 172, 0.18);
}
.trip-grid,
.trip-detail-grid,
.trip-metric-row {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    margin-bottom: 24px;
}
.trip-card,
.trip-panel,
.trip-metric-card,
.trip-form-panel {
    padding: 20px;
    border-radius: 20px;
    background: #131b20;
    border: 1px solid rgba(126, 158, 172, 0.14);
}
.trip-card-head,
.trip-panel-head,
.trip-settlement-row,
.trip-balance-row,
.trip-category-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.trip-card-head h3,
.trip-panel-head h3 {
    margin: 0 0 4px;
}
.trip-card-head p,
.trip-panel-head p,
.trip-empty,
.trip-form-intro p {
    margin: 0;
    color: #b3c3c7;
}
.trip-card-state {
    padding: 6px 10px;
    border-radius: 999px;
    background: #2a3137;
    color: #cfdadd;
    font-size: 13px;
}
.trip-card-state-live {
    background: #1e4a4b;
    color: #b8f3ea;
}
.trip-card-metrics,
.trip-balance-stack,
.trip-settlement-list,
.trip-timeline,
.trip-category-list,
.trip-travelers-list {
    display: grid;
    gap: 10px;
}
.trip-card-metrics {
    margin: 18px 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.trip-card-metrics dt,
.trip-metric-card span {
    color: #8fa5a8;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.trip-card-metrics dd,
.trip-metric-card strong {
    margin: 6px 0 0;
    font-size: 24px;
}
.trip-metric-card strong {
    display: block;
    margin-top: 8px;
}
.trip-positive {
    color: #7ed0ab;
}
.trip-negative {
    color: #ee8e8e;
}
.trip-balance-row,
.trip-settlement-row,
.trip-category-row,
.trip-timeline-item,
.trip-traveler-chip {
    padding: 12px 14px;
    border-radius: 16px;
    background: #1a242a;
}
.trip-balance-row-large {
    font-size: 18px;
}
.trip-settlement-row span,
.trip-timeline-item span,
.trip-timeline-item small {
    color: #bccacd;
}
.trip-timeline-item p {
    margin: 8px 0 0;
    color: #dfe8e5;
}
.trip-travelers-list h4 {
    margin: 12px 0 0;
}
.trip-traveler-chip {
    display: inline-flex;
    width: fit-content;
    background: #233139;
}
.trip-table {
    margin-top: 12px;
}
.trip-detail-actions {
    display: grid;
    gap: 12px;
    justify-items: end;
}
.trip-form-panel p {
    display: grid;
    gap: 6px;
    margin-bottom: 14px;
}
.trip-form-panel-structured {
    display: grid;
    gap: 18px;
}
.trip-form-panel label {
    font-weight: 600;
}
.trip-form-panel input,
.trip-form-panel select,
.trip-form-panel textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(126, 158, 172, 0.2);
    background: #0f161a;
    color: #edf3ef;
}
.trip-form-intro .home-kicker a {
    color: #9cd6e2;
    text-decoration: none;
}
.trip-form-intro .home-kicker a:hover {
    text-decoration: underline;
}
.trip-form-card-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.trip-form-field,
.trip-form-checkbox-panel {
    display: grid;
    gap: 8px;
    padding: 14px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(30, 42, 49, 0.92) 0%, rgba(21, 31, 37, 0.95) 100%);
    border: 1px solid rgba(126, 158, 172, 0.18);
}
.trip-form-field-span-2 {
    grid-column: span 2;
}
.trip-form-field small,
.trip-form-checkbox-head small {
    color: #9eb3b7;
}
.trip-form-field ul.errorlist,
.trip-form-checkbox-panel ul.errorlist,
.trip-form-errors ul.errorlist {
    list-style: none;
    margin: 0;
    padding: 0;
    color: #ffb2ae;
    display: grid;
    gap: 4px;
    font-size: 14px;
}
.trip-form-errors {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(241, 122, 111, 0.35);
    background: rgba(102, 35, 32, 0.65);
}
.trip-form-field-error {
    border-color: rgba(241, 122, 111, 0.42);
}
.trip-form-checkbox-panel {
    gap: 12px;
}
.trip-form-checkbox-head {
    display: grid;
    gap: 4px;
}
.trip-form-checkbox-grid ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.trip-form-checkbox-grid li {
    list-style: none;
}
.trip-map-panel {
    display: grid;
    gap: 16px;
}
.trip-map-canvas {
    width: 100%;
    min-height: 380px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(126, 158, 172, 0.18);
}
.trip-map-iframe {
    display: block;
    background: #0f1c22;
}
.trip-map-legend {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.trip-map-place {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #1a242a;
}
.trip-map-place span,
.trip-map-place small {
    color: #bccacd;
}
@media (max-width: 900px) {
    .trip-map-canvas {
        min-height: 300px;
    }
}
    margin: 0;
}
.trip-form-checkbox-grid label {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 12px 14px;
    border-radius: 16px;
    background: #121b20;
    border: 1px solid rgba(126, 158, 172, 0.16);
    font-weight: 600;
}
.trip-form-checkbox-grid input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: #f5b86f;
}
.trip-form-submit {
    width: 100%;
    min-height: 56px;
    padding: 14px 18px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, #f5b86f 0%, #ffcf8f 100%);
    color: #172126;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(245, 184, 111, 0.18);
}
.trip-form-submit:hover {
    filter: brightness(1.03);
}
.trip-form-panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}
@media (max-width: 900px) {
    .trip-hero,
    .trip-detail-hero,
    .trip-form-shell {
        grid-template-columns: 1fr;
    }
    .trip-primary-link,
    .trip-detail-actions {
        justify-self: stretch;
    }
    .trip-detail-actions {
        justify-items: stretch;
    }
    .trip-card-metrics {
        grid-template-columns: 1fr;
    }
    .trip-form-card-grid,
    .trip-form-checkbox-grid ul {
        grid-template-columns: 1fr;
    }
    .trip-form-field-span-2 {
        grid-column: auto;
    }
    .trip-form-shell {
        padding: 18px;
        border-radius: 20px;
    }
    .trip-form-intro h2 {
        font-size: clamp(30px, 10vw, 42px);
    }
    .trip-form-panel {
        padding: 16px;
        border-radius: 18px;
    }
    .trip-form-field,
    .trip-form-checkbox-panel {
        padding: 12px;
        border-radius: 16px;
    }
    .trip-form-panel input,
    .trip-form-panel select,
    .trip-form-panel textarea {
        font-size: 16px;
    }
}
.trip-panel-head-inline {
    margin-top: 18px;
}
.trip-inline-form {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}
.trip-inline-form p {
    display: grid;
    gap: 6px;
    margin: 0;
}
.trip-inline-form input,
.trip-inline-form select,
.trip-inline-form textarea,
.trip-settlement-form-inline button,
.trip-task-row button {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(126, 158, 172, 0.2);
    background: #0f161a;
    color: #edf3ef;
}
.trip-inline-form button,
.trip-task-row button,
.trip-settlement-form-inline button {
    background: #29414a;
    cursor: pointer;
}
.trip-settlement-form-inline {
    display: grid;
    grid-template-columns: repeat(5, auto) 120px;
    align-items: center;
}
.trip-settlement-history,
.trip-task-list {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}
.trip-task-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: #1a242a;
}
.trip-task-row span {
    color: #b8c7ca;
    display: block;
    margin-top: 4px;
}
.trip-task-row-done {
    opacity: 0.8;
}
.trip-task-list-done h4,
.trip-settlement-history h4 {
    margin: 8px 0 0;
}
@media (max-width: 900px) {
    .trip-settlement-form-inline {
        grid-template-columns: 1fr;
    }
    .trip-task-row {
        align-items: stretch;
        flex-direction: column;
    }
    .trip-task-row button,
    .trip-settlement-form-inline button,
    .trip-inline-form button {
        width: 100%;
    }
}
.workbench-tag-browser {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}
.workbench-tag-browser-card {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #11191d;
    border: 1px solid rgba(124, 145, 153, 0.18);
    color: #edf3ef;
    text-decoration: none;
}
.workbench-tag-browser-card span {
    color: #b8c7ca;
}
.workbench-field-row ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}
.workbench-field-row ul li label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}
.trip-inline-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.trip-inline-head a,
.trip-inline-map-link {
    color: #9cd6e2;
    text-decoration: none;
}
.trip-place-card {
    display: grid;
    gap: 6px;
    padding: 12px 14px;
    border-radius: 16px;
    background: #1a242a;
}
.trip-place-card span,
.trip-place-card small {
    color: #b8c7ca;
}
.trip-place-card p {
    margin: 0;
    color: #dce6e4;
}
.trip-travelers-list-links {
    gap: 12px;
}
.trip-travelers-list-links .trip-traveler-chip {
    display: grid;
    gap: 4px;
    width: auto;
    text-decoration: none;
    color: #edf3ef;
}
.trip-travelers-list-links .trip-traveler-chip span {
    color: #b8c7ca;
}
@media (max-width: 900px) {
