
:root {
    --app-bg: #f6f2ea;
    --app-surface: rgba(255, 252, 248, 0.8);
    --app-surface-strong: #fffaf3;
    --app-border: rgba(17, 24, 39, 0.1);
    --app-text: #18212b;
    --app-muted: #5f6875;
    --app-primary: #0e776f;
    --app-primary-dark: #0a5d57;
    --app-secondary: #152033;
    --app-accent: #f07a56;
    --app-highlight: #f2c66c;
    --app-shadow: 0 28px 60px rgba(17, 24, 39, 0.12);
    --app-radius-xl: 28px;
    --app-radius-lg: 22px;
    --app-radius-md: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--app-text);
    background: radial-gradient(circle at top left, rgba(240, 122, 86, 0.15), transparent 34%), radial-gradient(circle at 85% 15%, rgba(14, 119, 111, 0.18), transparent 24%), linear-gradient(180deg, #fcfaf6 0%, var(--app-bg) 100%);
}
h1,h2,h3,h4,h5,h6,.navbar-brand,.btn { font-family: 'Manrope', 'Inter', sans-serif; }
a { color: var(--app-primary); text-decoration: none; }
a:hover { color: var(--app-primary-dark); }
.site-shell { position: relative; overflow: hidden; }
.hero-grid {
    position: fixed; inset: 0;
    background-image: linear-gradient(rgba(17, 24, 39, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(17, 24, 39, 0.03) 1px, transparent 1px);
    background-size: 42px 42px; mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 75%);
    pointer-events: none; z-index: -2;
}
.hero-orb { position: fixed; border-radius: 50%; pointer-events: none; z-index: -1; }
.orb-1 { width: 320px; height: 320px; top: -96px; right: -90px; background: radial-gradient(circle, rgba(240, 122, 86, 0.28), rgba(240, 122, 86, 0) 68%); }
.orb-2 { width: 400px; height: 400px; bottom: -160px; left: -120px; background: radial-gradient(circle, rgba(14, 119, 111, 0.18), rgba(14, 119, 111, 0) 70%); }
.site-header { padding: 1rem 0; backdrop-filter: blur(20px); background: rgba(250, 245, 238, 0.72); border-bottom: 1px solid rgba(17, 24, 39, 0.05); }
.app-navbar { padding: 0; }
.brand-lockup { display: inline-flex; align-items: center; gap: 0.85rem; }
.brand-badge { width: 42px; height: 42px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; background: linear-gradient(135deg, var(--app-primary), #18a298); box-shadow: 0 16px 34px rgba(14, 119, 111, 0.22); }
.brand-name,.brand-tag { display: block; line-height: 1.05; }
.brand-name { font-size: 1rem; font-weight: 800; color: var(--app-secondary); }
.brand-tag { font-size: 0.75rem; color: var(--app-muted); letter-spacing: 0.04em; text-transform: uppercase; margin-top: 0.2rem; }
.nav-link { color: var(--app-muted); font-weight: 600; }
.nav-link:hover,.nav-link:focus { color: var(--app-secondary); }
.nav-toggle { border: 1px solid rgba(17, 24, 39, 0.08); border-radius: 14px; }
.hero-section,.page-hero-sm,.section-shell { position: relative; }
.hero-section { padding: 4.5rem 0 2rem; }
.page-hero-sm { padding: 3rem 0 1.25rem; }
.section-shell { padding: 1.5rem 0 3rem; }
.section-tight { padding-top: 0.5rem; }
.eyebrow,.section-kicker { display: inline-block; margin-bottom: 1rem; padding: 0.45rem 0.8rem; border-radius: 999px; color: var(--app-primary-dark); background: rgba(14, 119, 111, 0.12); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.hero-title,.section-title { font-size: clamp(2.4rem, 4vw, 4.7rem); line-height: 0.98; letter-spacing: -0.04em; color: var(--app-secondary); margin-bottom: 1rem; }
.page-hero-sm .section-title,.h4.section-title { font-size: clamp(2rem, 3vw, 3rem); }
.hero-copy,.section-subtitle { max-width: 46rem; font-size: 1.05rem; color: var(--app-muted); line-height: 1.75; }
.hero-actions,.form-actions { margin-top: 2rem; }
.hero-note,.audit-caption,.table-muted,.field-help,.distance-status { color: var(--app-muted); font-size: 0.92rem; line-height: 1.55; }
.hero-note { margin-top: 1.15rem; }
.glass-panel,.metric-card,.feature-card,.action-card,.side-card,.trip-stream-item,.empty-state-card,.panel-solid { background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 250, 244, 0.78)); border: 1px solid var(--app-border); box-shadow: var(--app-shadow); border-radius: var(--app-radius-xl); }
.glass-panel { padding: clamp(1.25rem, 3vw, 2rem); backdrop-filter: blur(18px); }
.showcase-top,.section-heading-wrap,.trip-stream-footer,.distance-action-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.status-pill,.trip-badge { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.8rem; border-radius: 999px; background: rgba(21, 32, 51, 0.08); color: var(--app-secondary); font-size: 0.8rem; font-weight: 700; }
.metric-stack,.side-stack,.action-list,.feature-grid,.trip-stream { display: grid; gap: 1rem; }
.metric-card,.feature-card,.side-card,.panel-solid { padding: 1.35rem; }
.metric-card h2 { font-size: clamp(2rem, 3.8vw, 3rem); line-height: 1; margin: 0.5rem 0; }
.metric-card p,.metric-card span,.feature-card p,.side-card p,.action-card span,.trip-stream-item p,.delete-box p { margin: 0; color: var(--app-muted); }
.metric-card p,.feature-card h3,.side-card h3,.action-card strong,.empty-state-card h3,.delete-box h3 { color: var(--app-secondary); }
.accent-card { background: linear-gradient(135deg, rgba(240, 122, 86, 0.16), rgba(242, 198, 108, 0.16)); }
.panel-solid { background: linear-gradient(180deg, #fffaf3, #fffdfa); }
.feature-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-top: 1.5rem; }
.feature-icon { width: 42px; height: 42px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1rem; font-size: 0.82rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--app-secondary), #334155); }
.action-card { display: block; padding: 1.1rem 1.15rem; transition: transform 0.2s ease, border-color 0.2s ease; }
.action-card:hover { transform: translateY(-2px); border-color: rgba(14, 119, 111, 0.3); }
.trip-stream-item { padding: 1.2rem; }
.trip-stream-meta,.trip-stream-route,.trip-stream-footer { display: flex; gap: 0.85rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.trip-stream-route { margin: 0.9rem 0; font-size: 1rem; }
.route-arrow { color: var(--app-accent); font-weight: 700; }
.empty-state-card { position: relative; text-align: center; padding: clamp(2rem, 5vw, 3rem); }
.empty-orb { width: 92px; height: 92px; margin: 0 auto 1rem; border-radius: 28px; background: linear-gradient(135deg, rgba(14, 119, 111, 0.18), rgba(240, 122, 86, 0.2)); }
.compact-empty { text-align: left; }
.form-label { font-weight: 700; color: var(--app-secondary); margin-bottom: 0.5rem; }
.form-control,.form-select { min-height: 3.2rem; border-radius: 16px; border: 1px solid rgba(17, 24, 39, 0.1); background: rgba(255, 255, 255, 0.94); padding: 0.85rem 1rem; color: var(--app-text); }
textarea.form-control { min-height: 8.5rem; }
.form-control:focus,.form-select:focus,.form-check-input:focus,.btn:focus { border-color: rgba(14, 119, 111, 0.52); box-shadow: 0 0 0 0.22rem rgba(14, 119, 111, 0.15); }
.field-error { color: #b42318; font-size: 0.9rem; margin-top: 0.35rem; }
.app-check { display: flex; align-items: center; gap: 0.7rem; }
.form-check-input { width: 1.15rem; height: 1.15rem; margin-top: 0; }
.form-check-input:checked { background-color: var(--app-primary); border-color: var(--app-primary); }
.distance-status { padding: 0.85rem 1rem; border-radius: 16px; background: rgba(21, 32, 51, 0.06); }
.distance-status.is-success { color: var(--app-primary-dark); background: rgba(14, 119, 111, 0.12); }
.distance-status.is-error { color: #b42318; background: rgba(212, 59, 48, 0.1); }
.timestamp-panel,.delete-box { padding: 1.2rem; border-radius: 22px; background: rgba(21, 32, 51, 0.04); border: 1px solid rgba(17, 24, 39, 0.06); }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.detail-grid article,.detail-copy p { line-height: 1.65; }
.detail-grid span { display: block; color: var(--app-muted); font-size: 0.88rem; margin-bottom: 0.35rem; }
.detail-grid strong,.detail-copy h2,.delete-box h3 { color: var(--app-secondary); }
.app-btn-primary,.app-btn-secondary { min-height: 3rem; padding: 0.85rem 1.25rem; border-radius: 999px; font-weight: 800; letter-spacing: -0.01em; }
.app-btn-primary { border: none; color: #fff; background: linear-gradient(135deg, var(--app-primary), #18a298); box-shadow: 0 16px 32px rgba(14, 119, 111, 0.22); }
.app-btn-primary:hover,.app-btn-primary:focus { color: #fff; background: linear-gradient(135deg, var(--app-primary-dark), #0e8c84); }
.app-btn-secondary { color: var(--app-secondary); border-color: rgba(21, 32, 51, 0.14); background: rgba(255, 255, 255, 0.72); }
.app-btn-secondary:hover,.app-btn-secondary:focus { color: var(--app-secondary); border-color: rgba(14, 119, 111, 0.32); background: rgba(255, 255, 255, 0.9); }
.app-alert { border-radius: 18px; border: 1px solid rgba(17, 24, 39, 0.06); }
.section-link { color: var(--app-secondary); font-weight: 700; }
.table-panel { overflow: hidden; }
.app-table { --bs-table-bg: transparent; --bs-table-border-color: rgba(17, 24, 39, 0.08); }
.app-table thead th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--app-muted); border-bottom-width: 1px; padding-top: 1.1rem; padding-bottom: 1.1rem; }
.app-table tbody td { padding-top: 1rem; padding-bottom: 1rem; color: var(--app-text); }
.no-print { display: initial; }
@media (max-width: 991.98px) {
    .hero-section { padding-top: 3rem; }
    .hero-title,.section-title { max-width: 16ch; }
    .site-header { padding: 0.85rem 0; }
}
@media (max-width: 767.98px) {
    .hero-section,.page-hero-sm { padding-top: 2rem; }
    .glass-panel,.metric-card,.feature-card,.side-card,.trip-stream-item,.panel-solid { border-radius: 22px; }
    .distance-action-bar,.section-heading-wrap,.trip-stream-footer,.trip-stream-route,.trip-stream-meta { align-items: flex-start; flex-direction: column; }
    .table-responsive { border-radius: 22px; }
}
@media print {
    body { background: #fff; }
    .site-header,.hero-orb,.hero-grid,.no-print,.app-alert { display: none !important; }
    .glass-panel,.panel-solid,.metric-card { box-shadow: none; background: #fff; border: 1px solid #d6d6d6; }
    .section-shell,.page-hero-sm { padding: 0; }
    .report-table th,.report-table td { font-size: 0.78rem; }
}
