:root {
	--ink: #18232b;
	--muted: #73808a;
	--line: #dfe6e8;
	--surface: #ffffff;
	--canvas: #f3f6f5;
	--teal: #007f82;
	--teal-soft: #e6f3f1;
	--amber: #e5a63d;
	--red: #d95d55;
	--shadow: 0 12px 30px rgba(28, 52, 57, 0.06);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: 'Trebuchet MS', 'Segoe UI', sans-serif; }
a { color: inherit; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 48px 20px; background-color: #17383b; background-image: radial-gradient(circle at 15% 20%, rgba(217,240,106,.16) 0 2px, transparent 3px), radial-gradient(circle at 78% 32%, rgba(143,212,202,.14) 0 1px, transparent 2px), linear-gradient(135deg, rgba(255,255,255,.06), transparent 45%), repeating-linear-gradient(115deg, rgba(217,240,106,.06) 0 1px, transparent 1px 13px); background-size: 31px 31px, 43px 43px, auto, auto; }
.login-card { width: min(100%, 430px); padding: 34px; border: 1px solid rgba(143,212,202,.3); background: rgba(255,255,246,.97); box-shadow: 0 22px 55px rgba(8,31,32,.38); }
.login-header { margin-bottom: 27px; text-align: center; }
.login-header .eyebrow { margin-bottom: 14px; color: #527c47; }
.login-header h1 { margin: 0; color: #183b2e; font-size: 31px; }
.login-header > p:last-child { margin: 10px 0 0; color: #65704b; font-size: 13px; line-height: 1.5; }
.login-mark { width: 46px; height: 46px; display: grid; place-items: center; margin: 0 auto 19px; border: 1px solid #7b9f2c; background: #183b2e; color: #d9f06a; font-family: Georgia, serif; font-size: 25px; }
.login-form { display: grid; gap: 17px; }
.login-form label { display: block; margin-bottom: 7px; color: #35522d; font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.login-input { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid #c7d79a; background: #fffef8; color: #183b2e; font-family: inherit; font-size: 13px; outline: none; }
.login-input:focus { border-color: #527c47; box-shadow: 0 0 0 3px rgba(217,240,106,.55); }
.login-button { min-height: 44px; border: 0; background: #183b2e; color: #e3f673; font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.login-button:hover { background: #24543e; }
.login-footer { margin-top: 21px; text-align: center; }
.login-footer p { margin: 0; color: #65704b; font-size: 12px; }
.login-footer a { color: #527314; font-weight: 700; text-decoration: none; }
.login-demo { margin-top: 22px; padding: 14px; border-left: 3px solid #a3c642; background: #f2f7d7; color: #65704b; font-size: 11px; line-height: 1.55; }
.login-demo p { margin: 0; }
.login-demo strong { color: #35522d; }
.topbar { min-height: 76px; background: #17383b; color: #f6fbf8; }
.nav-shell { min-height: 76px; padding: 0 4.5vw; display: flex; align-items: center; gap: 42px; }
.brand-lockup { display: flex; align-items: center; gap: 11px; min-width: 225px; font-family: Georgia, serif; font-size: 18px; white-space: nowrap; }
.brand-lockup em { color: #95d6cb; font-style: normal; }
.brand-mark { width: 31px; height: 31px; display: inline-grid; place-items: center; border: 1px solid #8fd4ca; color: #8fd4ca; font-family: Georgia, serif; font-size: 20px; }
.primary-nav { display: flex; align-items: stretch; align-self: stretch; gap: 27px; flex: 1; }
.primary-nav a { display: flex; align-items: center; border-bottom: 3px solid transparent; color: #bed0ce; font-size: 13px; text-decoration: none; }
.primary-nav a:hover, .primary-nav a.active { border-color: #a7ded4; color: white; }
.user-menu { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.notification-button { position: relative; color: #8fd4ca; font-size: 13px; text-decoration: none; }
.notification-button span { position: absolute; top: -10px; right: -10px; width: 16px; height: 16px; border-radius: 50%; background: var(--red); color: white; display: grid; place-items: center; font-size: 10px; }
.user-name { color: #d4e0de; font-size: 12px; }
.avatar { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; background: #d0e9e2; color: #1d5d5d; font-size: 11px; font-weight: 700; }
.fleet-dashboard { max-width: 1440px; margin: 0 auto; padding: 42px 4.5vw 70px; }
.dashboard-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 25px; margin-bottom: 31px; }
.eyebrow { margin: 0 0 8px; color: var(--teal); font-size: 10px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; }
h1, h2 { font-family: Georgia, serif; font-weight: 400; }
h1 { margin: 0; font-size: clamp(28px, 3vw, 42px); letter-spacing: 0; }
h2 { margin: 0; font-size: 21px; }
.header-copy { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.fleet-slogan { margin: 11px 0 0; color: var(--teal); font-family: Georgia, serif; font-size: 17px; }
.header-actions { display: flex; align-items: center; gap: 23px; }
.sync-status { color: var(--muted); font-size: 11px; white-space: nowrap; }
.status-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: var(--amber); margin-right: 7px; }
.status-dot-live { background: #36ab84; }
.button { padding: 12px 17px; text-decoration: none; font-size: 12px; font-weight: 700; }
.button-primary { background: var(--teal); color: white; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 19px; }
.metric-card { min-height: 134px; padding: 22px; border: 1px solid var(--line); border-top: 3px solid transparent; background: var(--surface); box-shadow: var(--shadow); }
.metric-card-accent { border-top-color: var(--teal); }
.metric-label, .metric-note { display: block; color: var(--muted); font-size: 11px; }
.metric-card strong { display: block; margin: 13px 0 8px; font-family: Georgia, serif; font-size: 31px; font-weight: 400; }
.metric-card strong small { color: #9ba7aa; font-family: 'Trebuchet MS', sans-serif; font-size: 14px; }
.metric-alert { color: var(--red); }
.metric-positive { color: #2c9371; }
.metric-negative { color: var(--red); }
.dashboard-columns, .bottom-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 19px; margin-bottom: 19px; }
.bottom-grid { grid-template-columns: 1fr 1.55fr; }
.panel { border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; padding: 23px 25px 18px; }
.text-link { color: var(--teal); font-size: 11px; text-decoration: none; white-space: nowrap; }
.text-link span { padding-left: 5px; font-size: 15px; }
.route-row { display: grid; grid-template-columns: 90px 1fr 65px; align-items: center; gap: 17px; padding: 17px 25px; border-top: 1px solid #edf1f1; text-decoration: none; }
.route-row:hover { background: #f7fbfa; }
.route-id, .route-meta, .route-main span, .route-status { font-size: 11px; }
.route-id { color: var(--ink); font-weight: 700; }
.route-status { display: block; margin-top: 8px; color: var(--muted); font-weight: 400; white-space: nowrap; }
.route-main strong { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; }
.route-main span, .route-meta span { color: var(--muted); }
.progress-track, .mini-bar { height: 4px; margin-top: 12px; overflow: hidden; background: #e8eeed; }
.progress-track span { display: block; height: 100%; background: var(--teal); }
.route-meta { text-align: right; }
.route-meta strong { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 600; }
.alert-panel { background: #fbfcfb; }
.count-badge { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-left: 5px; border-radius: 50%; background: #f6e3df; color: var(--red); font-family: 'Trebuchet MS', sans-serif; font-size: 11px; vertical-align: middle; }
.alert-item { display: grid; grid-template-columns: 26px 1fr 14px; gap: 11px; align-items: center; padding: 17px 25px; border-top: 1px solid #edf1f1; text-decoration: none; }
.alert-item:hover { background: white; }
.alert-icon { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; background: #e9efee; color: var(--teal); font-size: 12px; font-weight: 700; }
.alert-critical .alert-icon { background: #fae4e1; color: var(--red); }
.alert-warning .alert-icon { background: #fbf0db; color: #b57b21; }
.alert-item strong, .alert-item small { display: block; }
.alert-item strong { font-size: 12px; font-weight: 600; }
.alert-item small { margin-top: 5px; color: var(--muted); font-size: 10px; }
.alert-arrow { color: var(--teal); font-size: 16px; }
.temperature-summary { display: flex; align-items: center; gap: 25px; padding: 0 25px 25px; }
.temperature-gauge { width: 91px; height: 91px; display: flex; flex-direction: column; justify-content: center; align-items: center; border: 8px solid var(--teal-soft); border-right-color: var(--teal); border-radius: 50%; }
.temperature-gauge span { font-family: Georgia, serif; font-size: 22px; }
.temperature-gauge small, .temperature-copy small { color: var(--muted); font-size: 10px; }
.temperature-copy { flex: 1; }
.temperature-copy strong { display: block; font-size: 12px; font-weight: 600; }
.mini-bar { margin: 12px 0 7px; }
.mini-bar span { display: block; width: 91%; height: 100%; background: #4aac84; }
.activity-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0 25px 25px; background: var(--line); }
.activity-stats div { min-height: 73px; padding: 15px; background: #fbfcfb; }
.activity-stats strong, .activity-stats span { display: block; }
.activity-stats strong { margin-bottom: 5px; font-family: Georgia, serif; font-size: 24px; font-weight: 400; }
.activity-stats span { color: var(--muted); font-size: 10px; line-height: 1.3; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 25px; margin-bottom: 31px; }
.button-secondary { border: 1px solid #a9c3c0; background: transparent; color: var(--teal); }
.table-panel { overflow: hidden; }
.table-caption { margin: 7px 0 0; color: var(--muted); font-size: 11px; }
.fleet-table-wrap { overflow-x: auto; }
.fleet-table { width: 100%; border-collapse: collapse; min-width: 760px; text-align: left; }
.fleet-table th { padding: 12px 25px; background: #f8faf9; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; }
.fleet-table td { padding: 16px 25px; border-top: 1px solid #edf1f1; color: #47545a; font-size: 12px; vertical-align: middle; }
.fleet-table td > span, .fleet-table td > small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.fleet-table tbody tr:hover { background: #f8fbfa; }
.table-id { display: block; color: var(--teal); font-weight: 700; text-decoration: none; }
.table-id + span { color: var(--ink); }
.table-id b { color: var(--teal); font-weight: 400; }
.table-progress { width: 84px; height: 5px; display: inline-block; margin-right: 6px; overflow: hidden; background: #e4ece9; vertical-align: middle; }
.table-progress span { display: block; height: 100%; background: var(--teal); }
.pill { display: inline-block; padding: 5px 8px; border-radius: 20px; font-size: 10px; white-space: nowrap; }
.pill-green { background: #e4f3ed; color: #237b61; }
.pill-amber { background: #fbf0dc; color: #9d6d1e; }
.pill-red { background: #fae3e0; color: #b74a44; }
.pill-neutral { background: #edf1f0; color: #657478; }
.text-alert { color: var(--red); }
.text-good { color: #2d9471; }
.table-action { color: var(--teal); font-size: 11px; text-decoration: none; }
.alert-page-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 19px; }
.alert-guide { min-height: 270px; padding: 25px; background: #eaf4f1; }
.alert-guide h2 { margin-bottom: 13px; }
.alert-guide p:not(.eyebrow) { max-width: 350px; margin: 0 0 25px; color: #52666a; font-size: 13px; line-height: 1.65; }
.alert-feed .alert-item { padding-top: 20px; padding-bottom: 20px; }
.monitor-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 19px; }
.monitoring-metrics-panel { margin-top: 19px; }
.monitoring-metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #edf1f1; }
.monitoring-metrics-grid article { min-height: 108px; padding: 18px 24px; border-right: 1px solid #edf1f1; }
.monitoring-metrics-grid article:last-child { border-right: 0; }
.monitoring-metrics-grid strong { display: block; margin: 8px 0 5px; font-family: Georgia, serif; font-size: 25px; font-weight: 400; }
.chart-period { color: var(--muted); font-size: 10px; }
.bar-chart { height: 190px; display: flex; align-items: flex-end; gap: 16px; padding: 10px 28px 25px; border-top: 1px solid #edf1f1; }
.chart-column { height: 100%; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 10px; }
.chart-column span { width: 100%; min-height: 12px; background: #78c2ad; }
.chart-column:nth-child(6) span, .chart-column:nth-child(7) span { background: var(--teal); }
.chart-column small { color: var(--muted); font-size: 10px; }
.donut-metric { display: flex; align-items: center; gap: 35px; min-height: 190px; padding: 15px 28px; border-top: 1px solid #edf1f1; }
.donut { width: 125px; height: 125px; display: flex; flex-direction: column; justify-content: center; align-items: center; border: 13px solid var(--teal); border-left-color: #ddede8; border-radius: 50%; }
.donut strong { font-family: Georgia, serif; font-size: 19px; font-weight: 400; }
.donut small { color: var(--muted); font-size: 10px; }
.legend { display: grid; gap: 13px; }
.legend span { color: var(--muted); font-size: 11px; }
.legend i { width: 8px; height: 8px; display: inline-block; margin-right: 7px; border-radius: 50%; background: var(--teal); }
.legend .legend-alert { background: var(--red); }
.legend b { display: block; margin: 4px 0 0 15px; color: var(--ink); font-size: 15px; }
.scan-layout { display: grid; grid-template-columns: 1.45fr 1fr; gap: 19px; margin-bottom: 19px; }
.scan-control-panel, .scan-summary-panel { padding-bottom: 24px; }
.scan-control-panel .panel-heading, .scan-summary-panel { padding-left: 25px; padding-right: 25px; }
.scan-pulse { width: 10px; height: 10px; display: block; border-radius: 50%; background: #42ad83; box-shadow: 0 0 0 5px #e4f3ed; }
.scan-form { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 12px; padding: 0 25px; }
.scan-form label { display: grid; gap: 7px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.scan-form select { min-height: 39px; padding: 0 10px; border: 1px solid var(--line); background: white; color: var(--ink); font-family: inherit; font-size: 12px; }
.scan-form .button { min-height: 39px; border: 0; cursor: pointer; }
.scan-form .button:disabled { cursor: wait; opacity: .65; }
.scan-helper { max-width: 560px; margin: 17px 25px 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.scan-summary-panel { display: grid; align-content: start; }
.scan-summary-panel > strong { margin: 4px 0 5px; font-family: Georgia, serif; font-size: 26px; font-weight: 400; }
.scan-summary-panel > span { color: var(--muted); font-size: 11px; }
.scan-summary-line { display: flex; justify-content: space-between; margin-top: 19px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.scan-summary-line b { color: var(--ink); }
.scan-summary-line i { width: 7px; height: 7px; display: inline-block; margin-right: 7px; border-radius: 50%; background: #42ad83; }
.scan-results-empty { display: grid; gap: 6px; justify-items: center; padding: 45px 25px; border-top: 1px solid #edf1f1; color: var(--muted); font-size: 12px; text-align: center; }
.scan-results-empty strong { color: var(--ink); font-size: 13px; }
.scan-error strong { color: var(--red); }
.scan-results { border-top: 1px solid #edf1f1; }
.scan-result-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 20px; align-items: center; padding: 18px 25px; border-bottom: 1px solid #edf1f1; }
.scan-result-row:last-child { border-bottom: 0; }
.scan-result-row > div { display: grid; gap: 6px; }
.scan-result-row strong { font-size: 12px; font-weight: 600; }
.scan-result-row strong b { color: var(--teal); font-weight: 400; }
.scan-result-row div > span { color: var(--muted); font-size: 10px; }
.scan-result-row .table-action { justify-self: start; }
.traffic-layout { display: grid; grid-template-columns: 1.45fr 1fr; gap: 19px; margin-bottom: 19px; }
.traffic-control-panel, .provider-status-panel { padding-bottom: 24px; }
.traffic-control-panel .panel-heading, .provider-status-panel { padding-left: 25px; padding-right: 25px; }
.traffic-form { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 12px; padding: 0 25px; }
.traffic-form label { display: grid; gap: 7px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.traffic-form select { min-height: 39px; padding: 0 10px; border: 1px solid var(--line); background: white; color: var(--ink); font-family: inherit; font-size: 12px; }
.traffic-form .button { min-height: 39px; border: 0; cursor: pointer; }
.traffic-form .button:disabled { cursor: wait; opacity: .65; }
.provider-status-panel h2 { margin-bottom: 18px; }
.provider-status { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.provider-status b { color: #2d9471; font-size: 11px; }
.provider-status-panel > small { display: block; margin-top: 16px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.traffic-results-empty { display: grid; gap: 6px; justify-items: center; padding: 45px 25px; border-top: 1px solid #edf1f1; color: var(--muted); font-size: 12px; text-align: center; }
.traffic-results-empty strong { color: var(--ink); font-size: 13px; }
.traffic-results { border-top: 1px solid #edf1f1; }
.traffic-source-row { display: grid; grid-template-columns: 1fr 1fr 1.35fr; gap: 20px; align-items: center; padding: 18px 25px; border-bottom: 1px solid #edf1f1; }
.traffic-source-row > div { display: grid; gap: 6px; }
.traffic-source-row strong { font-size: 12px; font-weight: 600; }
.traffic-source-row span, .traffic-source-row small { color: var(--muted); font-size: 10px; }
.traffic-severity { color: #b57b21 !important; font-weight: 700; }
.traffic-severity-alert { color: var(--red) !important; }
.traffic-severity-muted { color: var(--muted) !important; }
.traffic-recommendation { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; margin: 18px 25px; padding: 16px; background: var(--teal-soft); }
.recommendation-badge { padding: 5px 8px; background: var(--teal); color: white; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.traffic-recommendation div { display: grid; gap: 5px; }
.traffic-recommendation div span { color: #52666a; font-size: 10px; }
.traffic-recommendation > b { font-family: Georgia, serif; font-size: 20px; font-weight: 400; }
.detail-status { color: var(--teal); font-size: 24px !important; }
.detail-name { font-size: 20px !important; }
.detail-notice { display: flex; gap: 10px; padding: 16px 25px; margin-bottom: 19px; background: #fbf0dc; color: #8f681f; font-size: 12px; }
.detail-notice span { color: #9c8453; }
.detail-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 19px; }
.detail-panel { min-height: 260px; }
.timeline { display: grid; gap: 0; padding: 0 25px 25px; }
.timeline > div { position: relative; display: grid; gap: 5px; min-height: 66px; padding: 0 0 18px 27px; border-left: 1px solid #cbdcda; }
.timeline > div:last-child { min-height: auto; border-left-color: transparent; }
.timeline-dot { position: absolute; top: 0; left: -5px; width: 9px; height: 9px; border: 2px solid white; border-radius: 50%; background: #bdccca; box-shadow: 0 0 0 1px #bdccca; }
.timeline-dot.done { background: #43aa84; box-shadow: 0 0 0 1px #43aa84; }
.timeline-dot.active { background: var(--teal); box-shadow: 0 0 0 4px var(--teal-soft); }
.timeline strong { font-size: 12px; font-weight: 600; }
.timeline small { color: var(--muted); font-size: 10px; }
.detail-actions { display: grid; gap: 10px; padding: 0 25px 25px; }
.detail-actions .button { text-align: center; }
.delivery-time { color: var(--teal); }
.delivery-form-panel { padding: 25px; }
.delivery-form { display: grid; gap: 17px; }
.delivery-form label { display: grid; gap: 7px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.delivery-form input, .delivery-form textarea { min-height: 42px; padding: 10px; border: 1px solid var(--line); font-family: inherit; }
.delivery-form textarea { min-height: 100px; resize: vertical; }
.delivery-form .button { width: fit-content; border: 0; cursor: pointer; }
.delivery-confirmed { display: flex; align-items: center; gap: 20px; padding: 30px; background: var(--teal-soft); }
.delivery-confirmed h2 { margin: 0 0 8px; }
.delivery-confirmed p:not(.eyebrow) { margin: 0 0 6px; color: #52666a; font-size: 13px; }
.delivery-confirmed span:last-child { color: var(--muted); font-size: 11px; }
.delivery-check { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: #43aa84; color: white; font-size: 26px; }
.delivery-form small { color: var(--muted); font-size: 10px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.proof-photo { display: block; width: min(100%, 360px); max-height: 260px; margin-top: 18px; object-fit: cover; border: 1px solid var(--line); }
.management-placeholder { display: grid; gap: 8px; padding: 30px 25px; border-top: 1px solid #edf1f1; color: var(--muted); font-size: 12px; }
.management-placeholder strong { color: var(--ink); font-size: 14px; }
.export-panel { padding: 25px; }
.export-form { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 14px; }
.export-form label { display: grid; gap: 7px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.export-form select { min-height: 42px; padding: 0 10px; border: 1px solid var(--line); background: white; font-family: inherit; }
.export-form .button { border: 0; cursor: pointer; }
.export-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.export-options b { padding: 6px 9px; background: var(--teal-soft); color: var(--teal); font-weight: 600; }
@media (max-width: 560px) { .export-panel { padding: 16px; } .export-form { grid-template-columns: 1fr; } }
.form-panel { padding: 25px; }
.fleet-form { display: grid; gap: 24px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.form-grid label:last-child:nth-child(odd) { grid-column: 1 / -1; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.form-actions .button { border: 0; cursor: pointer; }
.profile-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 19px; margin-bottom: 19px; }
.profile-card, .role-card, .profile-edit-panel { padding: 25px; }
.profile-identity { display: flex; align-items: center; gap: 17px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.profile-avatar { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: var(--teal-soft); color: var(--teal); font-family: Georgia, serif; font-size: 21px; }
.profile-identity h2 { margin: 0 0 5px; font-size: 22px; }
.profile-identity p { margin: 0 0 9px; color: var(--muted); font-size: 11px; text-transform: capitalize; }
.profile-facts { display: grid; gap: 16px; padding-top: 22px; }
.profile-facts div, .role-data div { display: grid; gap: 5px; }
.profile-facts span, .role-data span { color: var(--muted); font-size: 10px; }
.profile-facts strong, .role-data strong { font-size: 12px; font-weight: 600; }
.role-data { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); }
.role-data div { min-height: 77px; padding: 15px; background: #fbfcfb; }
.role-data strong { font-family: Georgia, serif; font-size: 19px; font-weight: 400; }
.profile-form { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 14px; }
.profile-form label { display: grid; gap: 7px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.profile-form input { min-height: 42px; padding: 0 11px; border: 1px solid var(--line); font-family: inherit; }
.profile-form button { border: 0; cursor: pointer; }
.profile-form-status { grid-column: 1 / -1; margin: 0; color: #2d9471; font-size: 11px; }
.conversation-page > div { max-width: 900px; margin: 0 auto; }
.conversation-card { padding: 16px; }
.messages-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 19px; }
.conversation-list-panel { overflow: hidden; }
.conversation-list { border-top: 1px solid #edf1f1; }
.conversation-list-item { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 16px 25px; border-bottom: 1px solid #edf1f1; text-decoration: none; }
.conversation-list-item:hover, .conversation-unread { background: #f6fbfa; }
.conversation-avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--teal-soft); color: var(--teal); font-family: Georgia, serif; font-size: 13px; }
.conversation-summary, .conversation-meta { display: grid; gap: 4px; min-width: 0; }
.conversation-summary strong { color: var(--ink); font-size: 12px; }
.conversation-summary small, .conversation-summary > span, .conversation-meta small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.conversation-summary > span { margin-top: 4px; }
.conversation-meta { justify-items: end; align-self: stretch; }
.conversation-meta b { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: var(--teal); color: white; font-size: 10px; }
.messages-empty { display: grid; justify-items: center; gap: 9px; padding: 55px 25px; color: var(--muted); font-size: 12px; text-align: center; }
.messages-empty strong { color: var(--ink); font-size: 14px; }
.message-intro-panel { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 320px; padding: 35px; background: #eaf4f1; }
.message-intro-icon { width: 43px; height: 43px; display: grid; place-items: center; margin-bottom: 21px; border: 1px solid #91cfc4; color: var(--teal); font-size: 22px; }
.message-intro-panel h2 { margin-bottom: 12px; }
.message-intro-panel p:not(.eyebrow) { max-width: 320px; margin: 0 0 24px; color: #52666a; font-size: 13px; line-height: 1.65; }
.message-contact-groups { width: 100%; display: grid; gap: 14px; margin-bottom: 22px; }
.message-contact-group { display: grid; gap: 7px; }
.message-contact-group > strong { color: var(--teal); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; }
.message-contact-group > a { display: grid; grid-template-columns: 30px 1fr auto; gap: 9px; align-items: center; padding: 9px; background: rgba(255,255,255,.66); color: var(--ink); text-decoration: none; }
.message-contact-group > a:hover { background: white; }
.contact-avatar { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--teal-soft); color: var(--teal); font-family: Georgia, serif; font-size: 10px; }
.message-contact-group > a > span:nth-child(2) { display: grid; gap: 3px; min-width: 0; }
.message-contact-group b { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.message-contact-group small, .message-contact-group > a > span:last-child { color: var(--muted); font-size: 9px; }
.message-contact-group > a > span:last-child { color: var(--teal); white-space: nowrap; }
@media (max-width: 900px) { .nav-shell { flex-wrap: wrap; gap: 16px; padding: 17px 5vw; } .primary-nav { order: 3; width: 100%; min-height: 32px; gap: 20px; overflow-x: auto; } .primary-nav a { padding-bottom: 7px; white-space: nowrap; } .metric-grid { grid-template-columns: repeat(2, 1fr); } .dashboard-columns, .bottom-grid { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .page-heading, .alert-page-grid, .monitor-grid, .scan-layout, .traffic-layout, .detail-grid, .profile-grid, .messages-layout { align-items: flex-start; grid-template-columns: 1fr; flex-direction: column; } .scan-result-row, .traffic-source-row { grid-template-columns: 1fr; gap: 12px; } }
@media (max-width: 900px) { .monitoring-metrics-grid { grid-template-columns: repeat(2, 1fr); } .monitoring-metrics-grid article:nth-child(2) { border-right: 0; } }
@media (max-width: 560px) { .fleet-dashboard { padding-top: 28px; } .dashboard-header { align-items: flex-start; flex-direction: column; } .header-actions { align-items: flex-start; flex-direction: column; gap: 12px; } .metric-grid { gap: 9px; } .metric-card { min-height: 122px; padding: 15px; } .metric-card strong { font-size: 25px; } .panel-heading, .route-row, .alert-item { padding-left: 16px; padding-right: 16px; } .route-row { grid-template-columns: 67px 1fr 48px; gap: 9px; } .route-main strong { font-size: 11px; } .user-name { display: none; } .activity-stats { margin-left: 16px; margin-right: 16px; } .page-heading { align-items: flex-start; } .page-heading .header-actions { align-items: flex-start; } .donut-metric { gap: 18px; padding-left: 16px; padding-right: 16px; } .scan-form, .traffic-form { grid-template-columns: 1fr; padding: 0 16px; } .scan-helper { margin-left: 16px; margin-right: 16px; } .scan-control-panel .panel-heading, .scan-summary-panel, .traffic-control-panel .panel-heading, .provider-status-panel { padding-left: 16px; padding-right: 16px; } .traffic-recommendation { grid-template-columns: 1fr; margin-left: 16px; margin-right: 16px; } }
@media (max-width: 560px) { .form-panel { padding: 16px; } .form-grid { grid-template-columns: 1fr; } .form-grid label:last-child:nth-child(odd) { grid-column: auto; } .form-actions { justify-content: stretch; } .form-actions .button { flex: 1; text-align: center; } }
@media (max-width: 560px) { .profile-card, .role-card, .profile-edit-panel { padding: 16px; } .role-data { grid-template-columns: 1fr; } .profile-form { grid-template-columns: 1fr; } .profile-form-status { grid-column: auto; } }
@media (max-width: 560px) { .conversation-list-item { padding-left: 16px; padding-right: 16px; } .message-intro-panel { min-height: 240px; padding: 25px; } }