:root {
  --ink: #18221f;
  --muted: #66736e;
  --line: #dce5df;
  --canvas: #f3f6f2;
  --surface: #ffffff;
  --forest: #173a35;
  --green: #2d6d59;
  --lime: #d8ee6b;
  --amber: #efad3d;
  --red: #bf4f4a;
  --blue: #3e6eaa;
  --radius: 13px;
  --shadow: 0 10px 28px rgba(24, 34, 31, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); }
button, input, select { font: inherit; }
button { cursor: pointer; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 254px minmax(0, 1fr); }
.sidebar { background: var(--forest); color: #e7f0ec; display: flex; flex-direction: column; padding: 20px 14px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; padding: 3px 8px 25px; }
.brand-mark { background: var(--lime); color: var(--forest); width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-weight: 900; }
.brand strong, .brand small { display: block; }.brand strong { font-size: 14px; }.brand small { color: #9db6ac; font-size: 11px; margin-top: 1px; }
.role-switcher { margin: 0 4px 18px; }.role-switcher label { color: #a9bdb5; display: block; text-transform: uppercase; letter-spacing: .08em; font-size: 10px; margin-bottom: 6px; }
.role-switcher select { width: 100%; border: 1px solid #40665c; background: #244b43; color: #f4fbf7; border-radius: 8px; padding: 9px 8px; font-size: 12px; }
.sidebar-nav { display: grid; gap: 3px; }.nav-item { border: 0; background: transparent; color: #c4d4ce; display: flex; align-items: center; gap: 10px; padding: 10px 9px; border-radius: 8px; text-align: left; font-size: 13px; }.nav-item:hover { background: #244b43; color: #fff; }.nav-item.active { background: #e5f1ea; color: #173a35; font-weight: 700; }.nav-icon { width: 18px; text-align: center; font-size: 15px; }.nav-badge { margin-left: auto; border-radius: 99px; background: #d8ee6b; color: #173a35; font-size: 10px; padding: 2px 6px; font-weight: 800; }
.sidebar-footer { margin-top: auto; color: #b8cac3; padding: 12px 8px 2px; font-size: 11px; display: flex; align-items: center; gap: 7px; }.sync-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(216, 238, 107, .12); }

.main-content { min-width: 0; }.topbar { height: 61px; display: flex; align-items: center; justify-content: space-between; background: rgba(255, 255, 255, .82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); padding: 0 30px; position: sticky; top: 0; z-index: 3; }.crumbs { color: var(--muted); display: flex; gap: 8px; font-size: 12px; }.crumbs strong { color: var(--ink); }.top-actions { display: flex; align-items: center; gap: 8px; }.icon-button { border: 1px solid transparent; background: transparent; color: var(--ink); width: 34px; height: 34px; border-radius: 8px; display: inline-grid; place-items: center; }.icon-button:hover { background: #edf2ee; }.notification { position: relative; }.notification span { color: var(--red); font-size: 11px; position: absolute; top: 6px; right: 6px; }.user-chip { display: flex; align-items: center; gap: 7px; font-size: 12px; margin-left: 7px; }.avatar { width: 28px; height: 28px; display: grid; place-items: center; background: #d8e5de; color: var(--forest); border-radius: 50%; font-size: 10px; font-weight: 800; }
.page-header { display: flex; justify-content: space-between; gap: 20px; align-items: flex-end; padding: 27px 30px 19px; }.eyebrow { font-size: 10px; letter-spacing: .1em; color: var(--green); font-weight: 800; margin: 0 0 7px; }.page-header h1 { font-size: 25px; margin: 0; letter-spacing: -.035em; }.page-header p:not(.eyebrow) { margin: 6px 0 0; color: var(--muted); font-size: 13px; }.header-actions { display: flex; gap: 8px; }
.button { min-height: 36px; border-radius: 8px; border: 1px solid var(--line); padding: 0 13px; font-size: 12px; font-weight: 700; }.button-quiet { background: #fff; color: var(--ink); }.button-primary { background: var(--forest); color: #fff; border-color: var(--forest); }.button-primary:hover { background: #285349; }.button-danger { background: #fff5f4; color: #a83f3a; border-color: #efcecb; }
.filter-row { display: flex; align-items: center; gap: 7px; padding: 0 30px 18px; border-bottom: 1px solid var(--line); overflow: auto; }.filter-chip { white-space: nowrap; background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 6px 10px; color: #42524b; font-size: 11px; }.filter-chip.active { color: var(--forest); background: #eaf3ed; border-color: #9dbcae; }.filter-summary { margin-left: auto; white-space: nowrap; color: var(--muted); font-size: 11px; }

.workspace { padding: 18px 30px 38px; }.control-grid { display: grid; grid-template-columns: minmax(240px, .9fr) minmax(330px, 1.25fr) minmax(250px, .85fr); gap: 14px; align-items: start; }.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(20, 30, 24, .02); overflow: hidden; }.panel-heading { padding: 15px 15px 11px; display: flex; justify-content: space-between; align-items: start; border-bottom: 1px solid #edf1ee; }.panel-heading h2 { font-size: 13px; margin: 0; letter-spacing: -.015em; }.panel-heading p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }.count { color: var(--green); background: #edf6ef; border-radius: 99px; font-size: 10px; padding: 4px 7px; font-weight: 800; }
.queue-item { width: 100%; border: 0; background: #fff; text-align: left; padding: 12px 14px; border-bottom: 1px solid #edf1ee; position: relative; }.queue-item:hover, .queue-item.selected { background: #f5faf6; }.queue-item.selected::before { content: ""; width: 3px; border-radius: 0 3px 3px 0; background: var(--green); position: absolute; inset: 0 auto 0 0; }.item-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; }.item-id { font-weight: 800; font-size: 11px; }.item-route { font-size: 12px; margin: 5px 0; }.item-meta { color: var(--muted); font-size: 10px; }.priority { font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 3px 6px; border-radius: 4px; }.priority.critical { color: #9e3430; background: #fae7e5; }.priority.urgent { color: #925e00; background: #fff1d9; }.priority.normal { color: #28604f; background: #e6f4e9; }
.recommendation { padding: 15px; }.route-strip { display: flex; gap: 6px; align-items: center; color: #385148; background: #f3f7f4; border: 1px solid #e2ece5; border-radius: 8px; padding: 10px; font-size: 11px; }.route-strip strong { color: var(--ink); }.route-arrow { color: var(--green); font-weight: 900; }.recommendation-list { display: grid; gap: 8px; margin-top: 13px; }.option { border: 1px solid var(--line); border-radius: 9px; padding: 11px; cursor: pointer; }.option:hover, .option.selected { border-color: #75a18b; background: #f5faf6; box-shadow: inset 3px 0 var(--green); }.option-top { display: flex; justify-content: space-between; gap: 10px; }.option-title { font-size: 12px; font-weight: 800; }.option-tag { color: #1e624e; background: #dff0e3; border-radius: 4px; padding: 3px 5px; font-size: 9px; font-weight: 800; text-transform: uppercase; }.option-data { margin-top: 8px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }.option-data span { color: var(--muted); font-size: 9px; }.option-data b { display: block; color: var(--ink); margin-top: 2px; font-size: 11px; }.panel-footer { padding: 12px 15px; border-top: 1px solid #edf1ee; display: flex; gap: 7px; }.panel-footer .button { flex: 1; }
.decision-detail { padding: 15px; }.detail-status { display: flex; align-items: center; gap: 7px; color: var(--green); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }.detail-status::before { content: ""; width: 7px; height: 7px; background: var(--green); border-radius: 50%; }.detail-title { font-size: 17px; margin: 10px 0 4px; letter-spacing: -.035em; }.detail-copy { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 0; }.detail-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 16px 0; }.fact { border-top: 1px solid var(--line); padding-top: 7px; }.fact span { font-size: 9px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }.fact b { display: block; margin-top: 3px; font-size: 12px; }.note { background: #fff8e9; border: 1px solid #f6dfaa; border-radius: 8px; padding: 10px; color: #6e5316; font-size: 11px; line-height: 1.4; }

.mobile-workspace { max-width: 620px; margin: 0 auto; display: grid; gap: 12px; }.mobile-hero { background: var(--forest); color: #fff; border-radius: 14px; padding: 17px; }.mobile-hero .eyebrow { color: var(--lime); }.mobile-hero h2 { margin: 0; font-size: 20px; letter-spacing: -.04em; }.mobile-hero p { color: #c6dbd1; font-size: 12px; margin: 7px 0 0; }.task-card { display: flex; align-items: center; gap: 12px; padding: 13px; }.task-icon { min-width: 35px; height: 35px; border-radius: 10px; background: #eaf3ed; color: var(--forest); display: grid; place-items: center; font-weight: 800; }.task-main { min-width: 0; flex: 1; }.task-main b { display: block; font-size: 12px; }.task-main span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.task-action { color: var(--green); font-size: 11px; font-weight: 800; }
.trip-card { overflow: hidden; }.trip-head { background: #edf6ef; padding: 14px; }.trip-head small { color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: .06em; }.trip-head h2 { margin: 4px 0 0; font-size: 17px; }.step-list { padding: 4px 14px 13px; }.step { display: grid; grid-template-columns: 20px 1fr auto; gap: 9px; padding: 12px 0; border-bottom: 1px solid #edf1ee; align-items: center; }.step:last-child { border-bottom: 0; }.step-dot { width: 15px; height: 15px; border: 2px solid #9bb9aa; border-radius: 50%; }.step.current .step-dot { border-color: var(--green); background: var(--green); box-shadow: 0 0 0 4px #e1f0e5; }.step b { font-size: 12px; }.step span { display: block; color: var(--muted); font-size: 10px; margin-top: 2px; }.step button { border: 0; background: transparent; color: var(--green); font-weight: 800; font-size: 11px; }

.mobile-nav { display: none; }.mobile-only { display: none; }
.request-dialog { border: 0; border-radius: 16px; box-shadow: var(--shadow); max-width: 540px; width: calc(100% - 30px); padding: 0; }.request-dialog::backdrop { background: rgba(15, 33, 28, .45); }.dialog-card { padding: 20px; }.dialog-heading { display: flex; justify-content: space-between; align-items: start; }.dialog-heading h2 { margin: 0; font-size: 19px; }.quick-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0; }.quick-form label { color: #52625a; font-size: 11px; font-weight: 700; }.quick-form select, .quick-form input { width: 100%; margin-top: 5px; border: 1px solid var(--line); border-radius: 7px; padding: 9px; color: var(--ink); background: #fff; font-size: 12px; }.dialog-card details { color: var(--green); font-size: 12px; }.dialog-card details p { color: var(--muted); line-height: 1.5; }.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.more-dialog { max-width: 420px; }.more-nav { display: grid; gap: 6px; margin-top: 18px; }.more-nav button { display: flex; align-items: center; gap: 10px; width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 11px; color: var(--ink); text-align: left; font-size: 12px; font-weight: 700; }.more-nav button:hover { background: #f3f7f4; border-color: #a8c4b5; }.dialog-copy { color: var(--muted); line-height: 1.5; font-size: 13px; }

@media (max-width: 1023px) { .app-shell { grid-template-columns: 1fr; }.sidebar { display: none; }.topbar { padding: 0 18px; }.page-header { padding: 22px 18px 16px; }.filter-row, .workspace { padding-left: 18px; padding-right: 18px; }.user-name { display: none; }.mobile-only { display: inline-grid; }.mobile-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); border-top: 1px solid var(--line); z-index: 4; padding: 5px 8px calc(5px + env(safe-area-inset-bottom)); }.mobile-nav button { border: 0; background: transparent; color: var(--muted); display: grid; gap: 2px; place-items: center; min-height: 48px; font-size: 9px; }.mobile-nav .nav-icon { font-size: 16px; }.mobile-nav button.active { color: var(--forest); font-weight: 800; }.workspace { padding-bottom: 88px; }.control-grid { grid-template-columns: minmax(0, 1fr) minmax(270px, .9fr); }.control-grid > :last-child { grid-column: 1 / -1; }.page-header h1 { font-size: 23px; } }
@media (max-width: 639px) { .topbar { height: 54px; }.crumbs span:first-child, .crumbs span:nth-child(2) { display: none; }.page-header { align-items: flex-start; }.header-actions .button-quiet { display: none; }.page-header p:not(.eyebrow) { max-width: 260px; }.filter-row { padding-bottom: 13px; }.filter-summary { display: none; }.workspace { padding-top: 13px; }.control-grid { display: none; }.quick-form { grid-template-columns: 1fr; }.dialog-actions .button { flex: 1; }.request-dialog { width: 100%; max-width: none; border-radius: 16px 16px 0 0; margin: auto 0 0; }.request-dialog::backdrop { background: rgba(15, 33, 28, .5); }.request-dialog { transform: translateY(0); }.top-actions { gap: 2px; }.notification { display: none; } }
@media (min-width: 640px) and (max-width: 1023px) { .mobile-workspace { display: none; } }
@media (min-width: 1024px) { .mobile-workspace { display: none; } }
