:root {
  --ink: #18201c;
  --muted: #75817a;
  --muted-2: #a1aaa4;
  --line: #e6ebe5;
  --surface: #ffffff;
  --canvas: #f5f8f4;
  --lime: #d8f15c;
  --lime-deep: #9abb23;
  --green: #2f7c5f;
  --green-soft: #e6f4e9;
  --orange: #f4ad72;
  --orange-soft: #fff0df;
  --blue: #d7eff1;
  --blue-deep: #3e8a8d;
  --purple: #e4dcf7;
  --purple-deep: #8262b5;
  --shadow: 0 14px 40px rgba(25, 43, 32, 0.06);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: "DM Sans", sans-serif; }
button, input, select { font: inherit; }
button { cursor: pointer; border: 0; }

.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 246px;
  display: flex;
  flex-direction: column;
  padding: 18px 16px 16px;
  background: #f0f5ee;
  border-right: 1px solid #e0e8df;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #cbd8c8 transparent;
}
.sidebar::-webkit-scrollbar {
  width: 5px;
}
.sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar::-webkit-scrollbar-thumb {
  background: #cbd8c8;
  border-radius: 4px;
}
.brand-lockup { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 0 7px 14px; flex-shrink: 0; }
.brand-logo { display: block; width: 185px; height: 85px; object-fit: contain; object-position: center; mix-blend-mode: multiply; }
.brand-tagline { max-width: 205px; color: #166b70; font-family: "Plus Jakarta Sans", sans-serif; font-size: 10px; line-height: 1.35; letter-spacing: .025em; font-weight: 700; }
.brand-mark { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; gap: 2px; border-radius: 10px; background: var(--ink); transform: rotate(-6deg); }
.brand-mark span { width: 4px; border-radius: 4px; background: var(--lime); display: block; }
.brand-mark span:nth-child(1) { height: 11px; }.brand-mark span:nth-child(2) { height: 18px; }.brand-mark span:nth-child(3) { height: 14px; }
.brand-name { font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; letter-spacing: -0.03em; font-size: 17px; }
.brand-caption { margin-top: 2px; color: var(--muted); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }
.workspace-switcher { position: relative; display: flex; align-items: center; gap: 9px; padding: 10px 10px; border: 1px solid #dfe8dd; border-radius: 13px; background: rgba(255,255,255,.75); cursor: pointer; transition: all .2s ease; user-select: none; flex-shrink: 0; }
.workspace-switcher:hover { background: #ffffff; border-color: #ccd9cb; box-shadow: 0 4px 12px rgba(22, 43, 29, .06); }
.switcher-dropdown { position: absolute; top: calc(100% + 8px); left: 0; width: 236px; background: #ffffff; border: 1px solid #dbe5da; border-radius: 14px; box-shadow: 0 14px 34px rgba(18, 38, 22, 0.18); padding: 8px; z-index: 1000; display: flex; flex-direction: column; gap: 4px; }
.switcher-dropdown[hidden] { display: none; }
.switcher-header { padding: 6px 8px 4px; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #8c978e; }
.switcher-item { display: flex; align-items: center; gap: 10px; padding: 8px 9px; border-radius: 9px; background: transparent; border: 0; text-align: left; cursor: pointer; width: 100%; transition: background .15s ease; }
.switcher-item:hover { background: #eff7ec; }
.switcher-item strong { display: block; font-size: 11px; color: var(--ink); }
.switcher-item small { display: block; font-size: 9px; color: #79877d; margin-top: 1px; }
.switch-role-btn { padding: 6px 10px; color: #446f41; border: 1px solid #cde4ca; border-radius: 8px; background: #f1f9ef; font-size: 9px; font-weight: 700; cursor: pointer; transition: all .15s ease; }
.switch-role-btn:hover { background: #e3f2e0; border-color: #badbb6; }
.workspace-avatar, .profile-avatar, .avatar-button { display: grid; place-items: center; flex: 0 0 auto; color: #51602a; background: var(--lime); font-weight: 700; }
.workspace-avatar { width: 28px; height: 28px; border-radius: 9px; font-size: 9px; }
.workspace-copy { min-width: 0; flex: 1; }.workspace-copy strong, .workspace-copy span, .profile-row strong, .profile-row span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }.workspace-copy strong { font-size: 11px; }.workspace-copy span { color: var(--muted); font-size: 10px; margin-top: 3px; }
.icon-button { position: relative; display: inline-grid; place-items: center; width: 37px; height: 37px; color: var(--muted); border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }.icon-button:hover { color: var(--ink); border-color: #ccd6ca; }.icon-button.tiny { width: 21px; height: 21px; border: 0; background: transparent; font-size: 13px; }
.sidebar-label { margin: 18px 11px 7px; color: #9aa59c; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; flex-shrink: 0; }.sidebar-label-spaced { margin-top: 18px; }
.sidebar-nav { display: grid; gap: 4px; flex-shrink: 0; }.nav-item, .quick-action { display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 11px; color: #6d786f; border-radius: 11px; background: transparent; text-align: left; font-size: 12px; transition: .2s ease; }.nav-item:hover, .quick-action:hover { color: var(--ink); background: rgba(255,255,255,.8); }.nav-item.active { color: var(--ink); background: var(--surface); box-shadow: 0 4px 14px rgba(22, 43, 29, .06); font-weight: 700; }.nav-icon { width: 18px; color: #829086; font-size: 17px; text-align: center; }.nav-item.active .nav-icon { color: var(--green); }.nav-count { margin-left: auto; min-width: 22px; padding: 3px 5px; color: #6d8170; border-radius: 7px; background: #e9f0e8; font-size: 10px; text-align: center; }.nav-count.amber { color: #a26f28; background: #fff0d8; }.live-dot { display: inline-block; width: 7px; height: 7px; margin-left: auto; border-radius: 50%; background: #77bb55; box-shadow: 0 0 0 3px rgba(119,187,85,.12); }
.quick-action-list { display: grid; gap: 4px; flex-shrink: 0; }
.quick-action { padding-left: 9px; font-size: 11px; }.quick-icon { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; font-size: 16px; }.quick-icon.green { color: #467749; background: #dcefd8; }.quick-icon.orange { color: #a46428; background: #ffe5cb; }
.sidebar-footer { margin-top: auto; padding-top: 18px; flex-shrink: 0; }.system-card { padding: 12px; border-radius: 13px; background: #e5f0e2; }.system-card-top { display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 700; }.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #62a644; }.latency { margin-left: auto; color: #80a07b; font-weight: 500; }.system-meter { height: 4px; margin: 10px 0 8px; overflow: hidden; border-radius: 5px; background: #d1e3cc; }.system-meter span { display: block; width: 92%; height: 100%; border-radius: inherit; background: #78b657; }.system-card-copy { color: #7b9176; font-size: 9px; }.profile-row { display: flex; align-items: center; gap: 9px; width: 100%; margin-top: 14px; padding: 8px; color: var(--ink); background: transparent; text-align: left; cursor: pointer; border-radius: 10px; }.profile-row:hover { background: rgba(255,255,255,.6); }.profile-avatar { width: 27px; height: 27px; border-radius: 50%; font-size: 9px; }.profile-row strong { font-size: 11px; }.profile-row span { color: var(--muted); font-size: 9px; margin-top: 2px; }.profile-row .more { margin-left: auto; color: #a1aaa4; letter-spacing: 2px; font-size: 11px; }

.main-content { width: calc(100% - 246px); margin-left: 246px; }.topbar { height: 75px; display: flex; align-items: center; justify-content: space-between; padding: 0 42px; border-bottom: 1px solid var(--line); background: rgba(250,252,249,.75); }.breadcrumbs { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 11px; }.breadcrumbs strong { color: var(--ink); }.crumb-separator { color: #c2cac3; }.topbar-actions { display: flex; align-items: center; gap: 11px; }.simulation-pill { display: flex; align-items: center; gap: 7px; height: 35px; padding: 0 12px; color: #647068; border: 1px solid #dfe8dd; border-radius: 9px; background: var(--surface); font-size: 10px; }.simulation-pill strong { margin-left: 4px; color: var(--ink); font-family: "Plus Jakarta Sans", sans-serif; font-size: 11px; }.pulse-ring { width: 7px; height: 7px; border-radius: 50%; background: #6cab54; box-shadow: 0 0 0 4px #e1f0dc; }.notification-badge { position: absolute; top: -5px; right: -5px; width: 14px; height: 14px; display: grid; place-items: center; color: white; background: #eb8961; border: 2px solid var(--canvas); border-radius: 50%; font-size: 8px; }.avatar-button { width: 34px; height: 34px; border-radius: 50%; font-size: 10px; }
.content-wrap { max-width: 1520px; margin: 0 auto; padding: 36px 42px 60px; }.page-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 31px; }.eyebrow, .section-kicker { color: #89948b; font-size: 10px; text-transform: uppercase; letter-spacing: .11em; font-weight: 700; }.eyebrow { display: flex; align-items: center; gap: 8px; }.eyebrow-line { width: 20px; height: 1px; background: #b1bcb2; }.page-intro h1 { margin: 11px 0 9px; font-family: "Plus Jakarta Sans", sans-serif; font-size: clamp(31px, 3vw, 44px); line-height: 1.06; letter-spacing: -.055em; }.page-intro h1 em { color: #7a9b27; font-style: normal; }.page-intro p { margin: 0; color: var(--muted); font-size: 13px; }.intro-actions { display: flex; align-items: center; gap: 10px; padding-bottom: 3px; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 39px; padding: 0 15px; border-radius: 10px; font-size: 11px; font-weight: 700; transition: transform .15s, box-shadow .15s; }.primary-button { color: #273214; background: var(--lime); box-shadow: 0 5px 14px rgba(161,190,47,.18); }.primary-button:hover { transform: translateY(-1px); box-shadow: 0 8px 17px rgba(161,190,47,.25); }.secondary-button { color: #68746b; border: 1px solid #dfe7dc; background: var(--surface); }.secondary-button:hover { color: var(--ink); border-color: #c4d0c3; }.primary-button span { font-size: 15px; line-height: 0; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 25px; }.metric-card { position: relative; min-height: 136px; padding: 19px 19px 16px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }.metric-card::after { content: ""; position: absolute; width: 86px; height: 86px; right: -25px; bottom: -33px; border-radius: 50%; opacity: .65; }.accent-lime::after { background: var(--lime); }.accent-orange::after { background: var(--orange-soft); }.accent-blue::after { background: var(--blue); }.accent-purple::after { background: var(--purple); }.metric-card-header { display: flex; justify-content: space-between; color: #7c887e; font-size: 10px; }.metric-icon { display: grid; place-items: center; width: 23px; height: 23px; color: #68756c; border-radius: 7px; background: #f3f7f1; font-size: 12px; }.metric-value { margin-top: 13px; font-family: "Plus Jakarta Sans", sans-serif; font-size: 30px; font-weight: 700; letter-spacing: -.07em; }.metric-unit { margin-left: 2px; color: #69756d; font-size: 16px; letter-spacing: -.04em; }.metric-foot { display: flex; gap: 7px; margin-top: 8px; color: #9aa59d; font-size: 9px; }.trend { font-weight: 700; }.trend.up { color: #63a14e; }.trend.warning { color: #d78852; }.trend.neutral { color: #6f89aa; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.58fr) minmax(310px, .84fr); gap: 18px; align-items: start; }.panel-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }.dispatch-panel { padding: 23px 23px 17px; }.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }.panel-heading h2, .scenario-card h2 { margin: 5px 0 0; font-family: "Plus Jakarta Sans", sans-serif; font-size: 16px; letter-spacing: -.04em; }.panel-heading.compact h2 { font-size: 14px; }.filter-button { display: flex; align-items: center; gap: 9px; padding: 8px 10px; color: #758078; border: 1px solid var(--line); border-radius: 8px; background: #fbfdfb; font-size: 10px; }.filter-row { display: flex; gap: 6px; margin: 20px 0 13px; }.filter-chip { padding: 7px 10px; color: #89938b; border: 1px solid transparent; border-radius: 8px; background: transparent; font-size: 10px; }.filter-chip span { margin-left: 5px; color: #b0b9b1; }.filter-chip.active { color: #3f643f; border-color: #d9e8d3; background: #eff7e9; font-weight: 700; }.filter-chip.active span { color: #72a369; }.operation-list { display: grid; gap: 8px; }.operation-card { padding: 14px 14px 12px; border: 1px solid #edf0ed; border-radius: 13px; transition: border .2s, box-shadow .2s; }.operation-card:hover { border-color: #d8e4d4; box-shadow: 0 5px 15px rgba(37,67,41,.05); }.operation-card-head { display: flex; align-items: center; gap: 9px; }.aid-icon { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 9px; font-size: 14px; }.aid-icon.meals { background: #fff0d8; }.aid-icon.medical { background: #def1f1; }.aid-icon.ration { background: #e8e3f7; }.operation-name { min-width: 0; flex: 1; }.operation-name strong { display: block; font-size: 11px; }.operation-name span { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }.status-pill { padding: 4px 7px; border-radius: 6px; font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; white-space: nowrap; }.status-pill.transit { color: #3c7c80; background: #e4f5f4; }.status-pill.reserving { color: #a9742d; background: #fff0da; }.status-pill.action { color: #a05e4c; background: #ffe9df; }.status-pill.ready { color: #638b4a; background: #eaf4e2; }.status-pill.rerouted { color: #7358a0; background: #ede8fa; }.status-pill.delivered { color: #6e7d75; background: #eef3ed; }.operation-route { display: flex; align-items: center; gap: 8px; margin: 13px 0 10px 38px; color: #738078; font-size: 10px; }.route-point { display: flex; align-items: center; gap: 4px; min-width: 0; }.route-point span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }.route-dot { width: 6px; height: 6px; flex: 0 0 auto; border: 2px solid #a8bb9f; border-radius: 50%; }.route-arrow { color: #c0c9c0; font-size: 13px; }.operation-progress { height: 5px; overflow: hidden; margin: 0 0 11px 38px; border-radius: 5px; background: #edf1ec; }.operation-progress span { display: block; height: 100%; border-radius: inherit; background: #a9ca4c; }.operation-progress.orange span { background: #e7a36b; }.operation-progress.blue span { background: #81bfc1; }.operation-meta { display: flex; align-items: center; gap: 13px; margin-left: 38px; color: #8c978f; font-size: 9px; }.meta-item { display: flex; align-items: center; gap: 4px; }.meta-item strong { color: #5f6c63; font-weight: 700; }.meta-spacer { margin-left: auto; }.operation-action { color: #5d7860; background: transparent; font-size: 9px; font-weight: 700; }.operation-action:hover { color: #2b5e35; }.view-all-button { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; margin-top: 15px; padding: 10px; color: #78907a; border-top: 1px solid #eff2ee; background: transparent; font-size: 10px; font-weight: 700; }.view-all-button span { font-size: 14px; }
.right-rail { display: grid; gap: 16px; }.pulse-card, .attention-card, .scenario-card { padding: 19px; }.pulse-score { color: #759838; font-family: "Plus Jakarta Sans", sans-serif; font-size: 19px; font-weight: 700; letter-spacing: -.05em; }.pulse-score span { color: #9ca99e; font-size: 9px; font-weight: 500; letter-spacing: 0; }.pulse-chart { position: relative; height: 100px; margin: 20px 0 13px; padding: 0 3px 16px; }.chart-grid { position: absolute; inset: 0 0 16px; display: flex; flex-direction: column; justify-content: space-between; }.chart-grid span { display: block; border-top: 1px dashed #e5ebe4; }.chart-bars { position: absolute; inset: 6px 5px 17px; display: flex; align-items: end; justify-content: space-between; gap: 6px; }.chart-bars i { width: 100%; max-width: 14px; border-radius: 5px 5px 2px 2px; background: #d5e980; }.chart-bars i:nth-last-child(-n+4) { background: #a8ca4c; }.chart-labels { position: absolute; inset: auto 2px 0; display: flex; justify-content: space-between; color: #a8b1aa; font-size: 8px; }.pulse-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 13px; border-top: 1px solid #edf1ed; }.pulse-stats strong, .pulse-stats span { display: block; }.pulse-stats strong { font-family: "Plus Jakarta Sans", sans-serif; font-size: 14px; letter-spacing: -.04em; }.pulse-stats span { margin-top: 3px; color: #94a098; font-size: 9px; }
.text-button { padding: 2px 0; color: #88a07f; background: transparent; font-size: 9px; font-weight: 700; }.text-button:hover { color: #49714f; }.attention-list { display: grid; gap: 10px; margin-top: 16px; }.attention-item { display: flex; align-items: flex-start; gap: 9px; padding-bottom: 10px; border-bottom: 1px solid #f0f2ef; }.attention-item:last-child { padding-bottom: 0; border-bottom: 0; }.attention-marker { width: 25px; height: 25px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 8px; color: #a75f3f; background: #ffebe0; font-size: 12px; }.attention-marker.yellow { color: #a27329; background: #fff0d3; }.attention-copy { min-width: 0; flex: 1; }.attention-copy strong { display: block; font-size: 10px; }.attention-copy span { display: block; margin-top: 3px; color: #929d95; font-size: 9px; line-height: 1.35; }.attention-action { padding: 3px 0; color: #719174; background: transparent; font-size: 9px; font-weight: 700; }
.scenario-card { position: relative; overflow: hidden; background: #1e2923; color: white; border-color: #1e2923; }.scenario-card::after { content: ""; position: absolute; width: 170px; height: 170px; right: -77px; bottom: -95px; border-radius: 50%; border: 1px solid rgba(216,241,92,.22); box-shadow: 0 0 0 22px rgba(216,241,92,.04), 0 0 0 44px rgba(216,241,92,.03); }.scenario-header { position: relative; z-index: 1; display: flex; align-items: center; gap: 9px; }.scenario-icon { display: grid; place-items: center; width: 28px; height: 28px; color: #273214; border-radius: 9px; background: var(--lime); }.scenario-card .section-kicker { color: #9aab9f; }.scenario-card h2 { color: white; margin-top: 4px; }.beta-tag { margin-left: auto; padding: 4px 6px; color: #b9ca8c; border: 1px solid #526150; border-radius: 5px; font-size: 7px; letter-spacing: .11em; }.scenario-card p { position: relative; z-index: 1; margin: 14px 0 13px; color: #b3beb5; font-size: 10px; line-height: 1.45; }.scenario-actions { position: relative; z-index: 1; display: grid; gap: 6px; }.scenario-actions button { display: flex; align-items: center; justify-content: space-between; padding: 8px 9px; color: #dbe4dc; border: 1px solid #37463b; border-radius: 8px; background: #28362d; text-align: left; font-size: 9px; }.scenario-actions button:hover { color: var(--lime); border-color: #596c49; }.scenario-actions span { color: #96a994; font-size: 13px; }
.activity-section { margin-top: 18px; padding: 20px 23px 13px; }.activity-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 16px; }.activity-item { display: flex; gap: 9px; padding: 0 17px; border-right: 1px solid #edf0ec; }.activity-item:first-child { padding-left: 0; }.activity-item:last-child { padding-right: 0; border-right: 0; }.activity-dot { width: 8px; height: 8px; margin-top: 4px; flex: 0 0 auto; border-radius: 50%; background: #a7c849; box-shadow: 0 0 0 4px #f0f7dc; }.activity-dot.orange { background: #e7a36b; box-shadow: 0 0 0 4px #fff2e6; }.activity-dot.blue { background: #7bb9be; box-shadow: 0 0 0 4px #e5f5f6; }.activity-copy strong { display: block; font-size: 10px; }.activity-copy span { display: block; margin-top: 4px; color: #8d9890; font-size: 9px; line-height: 1.35; }.activity-time { display: block; margin-top: 6px; color: #b0b8b2; font-size: 8px; }
.modal-backdrop { position: fixed; inset: 0; z-index: 20; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(20,30,24,.43); backdrop-filter: blur(5px); }.modal-backdrop.open { display: flex; }.modal { width: min(540px, 100%); padding: 25px; border-radius: 20px; background: var(--surface); box-shadow: 0 25px 80px rgba(12,24,17,.22); animation: modal-in .2s ease-out; }.modal-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 22px; }.modal-header h2 { margin: 5px 0 0; font-family: "Plus Jakarta Sans", sans-serif; font-size: 21px; letter-spacing: -.05em; }.close-button { width: 30px; height: 30px; color: #89968c; border-radius: 8px; background: #f3f6f2; font-size: 20px; line-height: 1; }.close-button:hover { color: var(--ink); }.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }.field { display: grid; gap: 6px; }.field.full { grid-column: 1 / -1; }.field span { color: #748078; font-size: 10px; font-weight: 700; }.field input, .field select { width: 100%; height: 39px; padding: 0 11px; color: var(--ink); outline: none; border: 1px solid #e0e7df; border-radius: 9px; background: #fbfdfb; font-size: 11px; }.field input:focus, .field select:focus { border-color: #adca63; box-shadow: 0 0 0 3px rgba(174,206,87,.15); }.form-note { display: flex; gap: 8px; margin-top: 17px; padding: 10px; color: #73816e; border-radius: 9px; background: #f1f7e9; font-size: 9px; line-height: 1.4; }.form-note span { color: #86a93b; }.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 23px; }
.toast { position: fixed; z-index: 30; right: 25px; bottom: 24px; display: flex; align-items: center; gap: 9px; padding: 11px 14px 11px 11px; color: #edf6e9; border: 1px solid #385842; border-radius: 11px; background: #25392a; box-shadow: 0 15px 35px rgba(17,33,21,.2); font-size: 10px; transform: translateY(20px); opacity: 0; pointer-events: none; transition: .25s ease; }.toast.show { transform: translateY(0); opacity: 1; }.toast-icon { display: grid; place-items: center; width: 20px; height: 20px; color: #2b3c1c; border-radius: 6px; background: var(--lime); font-weight: 800; }
.empty-state { padding: 28px 10px; color: #93a097; text-align: center; font-size: 11px; }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

[hidden] { display: none !important; }
.auth-screen { min-height: 100vh; display: grid; place-items: center; padding: 28px; background: radial-gradient(circle at 15% 12%, rgba(216,241,92,.24), transparent 30%), var(--canvas); }
.auth-layout { width: min(1040px, 100%); display: grid; grid-template-columns: 1.05fr .95fr; overflow: hidden; border: 1px solid var(--line); border-radius: 26px; background: var(--surface); box-shadow: 0 30px 90px rgba(29,54,34,.12); }
.auth-story { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 620px; padding: 38px; overflow: hidden; color: #f7fff3; background: #1d2b23; }
.auth-story::after { content: ""; position: absolute; width: 420px; height: 420px; right: -170px; bottom: -190px; border-radius: 50%; border: 1px solid rgba(216,241,92,.25); box-shadow: 0 0 0 35px rgba(216,241,92,.06), 0 0 0 70px rgba(216,241,92,.04); }
.auth-logo { width: min(300px, 100%); padding: 10px; border-radius: 16px; background: rgba(255,255,255,.96); mix-blend-mode: screen; }
.auth-story h1 { position: relative; z-index: 1; max-width: 420px; margin: auto 0 14px; font-family: "Plus Jakarta Sans", sans-serif; font-size: clamp(34px, 4vw, 54px); line-height: 1.02; letter-spacing: -.07em; }.auth-story h1 em { color: var(--lime); font-style: normal; }.auth-story p { position: relative; z-index: 1; max-width: 410px; margin: 0; color: #b9c9bb; font-size: 14px; line-height: 1.6; }.auth-story-footer { position: relative; z-index: 1; display: flex; gap: 9px; margin-top: 35px; color: #b9c9bb; font-size: 10px; }.auth-story-footer span { padding: 6px 9px; border: 1px solid #465c4b; border-radius: 20px; }
.auth-panel { padding: 43px 46px; }.auth-panel h2 { margin: 7px 0 6px; font-family: "Plus Jakarta Sans", sans-serif; font-size: 28px; letter-spacing: -.06em; }.auth-subtitle { margin: 0 0 25px; color: var(--muted); font-size: 12px; line-height: 1.5; }.auth-form { display: grid; gap: 14px; }.auth-field { display: grid; gap: 7px; }.auth-field span { color: #647068; font-size: 10px; font-weight: 700; }.auth-field input { width: 100%; height: 44px; padding: 0 12px; color: var(--ink); border: 1px solid #dfe7dd; border-radius: 10px; outline: none; background: #fbfdfb; font-size: 12px; }.auth-field input:focus { border-color: #aeca59; box-shadow: 0 0 0 3px rgba(174,206,87,.16); }.password-row { position: relative; }.password-row input { padding-right: 68px; }.password-toggle { position: absolute; right: 8px; top: 7px; height: 30px; padding: 0 8px; color: #7b8b7d; border-radius: 7px; background: #eef4eb; font-size: 9px; font-weight: 700; }.auth-error { min-height: 16px; color: #ad6449; font-size: 10px; }.auth-submit { width: 100%; min-height: 44px; margin-top: 2px; }.demo-login { margin-top: 27px; padding-top: 18px; border-top: 1px solid #edf1ed; }.demo-login h3 { margin: 0 0 8px; font-family: "Plus Jakarta Sans", sans-serif; font-size: 11px; }.demo-login p { margin: 0 0 12px; color: #8b978e; font-size: 9px; line-height: 1.45; }.demo-role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }.demo-role-button { display: flex; align-items: center; gap: 7px; padding: 9px; color: #657268; border: 1px solid #e6ece5; border-radius: 9px; background: #fbfdfb; text-align: left; font-size: 9px; }.demo-role-button:hover { color: var(--ink); border-color: #c5d6bd; background: #f3f9ed; }.demo-role-button strong { display: block; font-size: 10px; }.demo-role-button small { display: block; margin-top: 2px; color: #a0aba3; font-size: 8px; }.role-dot { width: 19px; height: 19px; display: grid; place-items: center; flex: 0 0 auto; color: #537636; border-radius: 6px; background: #e7f4d7; font-size: 10px; }
.backend-banner { display: flex; align-items: center; gap: 8px; margin: 0 42px; padding: 8px 11px; color: #7c6a41; border: 1px solid #f2dfb9; border-radius: 9px; background: #fff8e9; font-size: 9px; }.backend-banner strong { color: #9b6d23; }.backend-banner .banner-action { margin-left: auto; color: #8a6a34; background: transparent; font-size: 9px; font-weight: 700; }
.session-user { display: flex; align-items: center; gap: 8px; }.session-user-copy { display: none; }.logout-button { padding: 7px 9px; color: #7c887e; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-size: 9px; font-weight: 700; }.logout-button:hover { color: #a45e45; border-color: #e7cfc7; }
.page-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: -8px 0 22px; }.page-toolbar h2 { margin: 0; font-family: "Plus Jakarta Sans", sans-serif; font-size: 22px; letter-spacing: -.06em; }.page-toolbar p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }.toolbar-actions { display: flex; gap: 8px; }.small-button { min-height: 34px; padding: 0 11px; border-radius: 8px; font-size: 10px; font-weight: 700; }.small-button.primary { color: #273214; background: var(--lime); }.small-button.secondary { color: #6d796f; border: 1px solid var(--line); background: var(--surface); }.small-button.danger { color: #a35640; border: 1px solid #f1d9d0; background: #fff4f0; }.role-chip { padding: 5px 8px; color: #4d7547; border-radius: 7px; background: #edf7e7; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.data-table-card { padding: 0; overflow: hidden; }.data-table { width: 100%; border-collapse: collapse; }.data-table th { padding: 11px 14px; color: #9aa59d; border-bottom: 1px solid #edf1ed; background: #fbfdfb; text-align: left; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }.data-table td { padding: 13px 14px; color: #647068; border-bottom: 1px solid #f0f3ef; font-size: 10px; }.data-table tr:last-child td { border-bottom: 0; }.data-table td strong { color: var(--ink); }.table-actions { display: flex; gap: 7px; }.table-action { padding: 5px 7px; color: #547c56; border-radius: 6px; background: #eff7eb; font-size: 8px; font-weight: 700; }.table-action:hover { background: #e1f0d9; }.status-text { font-weight: 700; }.status-text.good { color: #65964d; }.status-text.warn { color: #c57a42; }.status-text.info { color: #4e8a8e; }.status-text.danger { color: #ad634b; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }.stat-tile { padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }.stat-tile span, .stat-tile strong { display: block; }.stat-tile span { color: #909c93; font-size: 9px; }.stat-tile strong { margin-top: 8px; font-family: "Plus Jakarta Sans", sans-serif; font-size: 24px; letter-spacing: -.06em; }
.map-card { min-height: 480px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }.map-container { width: 100%; height: 480px; background: #e7efe4; }.map-legend { display: flex; flex-wrap: wrap; gap: 12px; padding: 11px 14px; color: #7f8b82; border-top: 1px solid var(--line); font-size: 9px; }.legend-item { display: flex; align-items: center; gap: 5px; }.legend-dot { width: 8px; height: 8px; border-radius: 50%; }.legend-dot.green { background: #75b75a; }.legend-dot.orange { background: #e5a064; }.legend-dot.blue { background: #69aab0; }.map-fallback { display: grid; place-items: center; height: 100%; padding: 20px; color: #7e8d82; text-align: center; font-size: 11px; }

/* Rider Map HUD & Turn-by-Turn Delivery Navigation */
.rider-map-hud { margin-bottom: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 13px; }
.hud-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.hud-title-wrap { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.hud-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.hud-badge.transit { background: #d7eecb; color: #1e5c2b; }
.hud-badge.action { background: #fee8d8; color: #9c4c1e; }
.hud-badge.ready { background: #e0f2f3; color: #1e636b; }
.hud-badge.delayed { background: #fde8e8; color: #9e2a2b; }
.hud-safe-pill { font-size: 10px; font-weight: 600; color: #7b887e; background: #f2f5f2; padding: 4px 10px; border-radius: 6px; }
.hud-safe-pill strong { color: var(--ink); }
.hud-route-grid { display: grid; grid-template-columns: 1.2fr 1.2fr 1fr; gap: 12px; background: #fbfdfb; border: 1px solid #ebf0ea; border-radius: 12px; padding: 12px 16px; }
@media (max-width: 860px) { .hud-route-grid { grid-template-columns: 1fr; } }
.hud-step-card { display: flex; align-items: flex-start; gap: 10px; }
.hud-step-icon { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; font-size: 13px; }
.hud-step-icon.pickup { background: #fef3e2; color: #b46b1a; }
.hud-step-icon.dest { background: #e3f5e1; color: #2e7d32; }
.hud-step-icon.cargo { background: #e0f0f5; color: #1f657a; }
.hud-step-info strong { display: block; font-size: 11px; color: var(--ink); }
.hud-step-info span { display: block; font-size: 9px; color: #7f8c82; margin-top: 2px; }
.hud-step-info .hud-tag { display: inline-block; margin-top: 4px; font-size: 8px; font-weight: 700; text-transform: uppercase; padding: 2px 6px; border-radius: 4px; }
.hud-tag.active { background: #d7eecb; color: #1e5c2b; }
.hud-tag.pending { background: #edf1ed; color: #7f8c82; }
.hud-tag.done { background: #cfe7ff; color: #124d80; }
.hud-actions-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid #f0f4ef; padding-top: 12px; }
.hud-telemetry { display: flex; align-items: center; gap: 12px; font-size: 10px; color: #77857a; }
.hud-telemetry strong { color: var(--ink); }
.hud-action-btns { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* Custom Leaflet Map Pins */
.custom-leaflet-icon { background: transparent !important; border: none !important; }
.rider-marker-pin { position: relative; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; }
.rider-pulse { position: absolute; top: 0; left: 0; width: 36px; height: 36px; border-radius: 50%; background: rgba(46, 125, 50, 0.4); animation: radarPulse 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite; }
@keyframes radarPulse { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(2.4); opacity: 0; } }
.rider-icon-inner { position: relative; width: 32px; height: 32px; border-radius: 50%; background: #1b5327; border: 2px solid #ffffff; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25); display: grid; place-items: center; font-size: 16px; z-index: 2; }
.rider-marker-label { position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%); background: #14351a; color: #ffffff; font-size: 8px; font-weight: 700; padding: 1px 6px; border-radius: 6px; white-space: nowrap; box-shadow: 0 2px 4px rgba(0,0,0,0.25); z-index: 3; pointer-events: none; }
.pickup-marker-pin, .dest-marker-pin { position: relative; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; }
.pickup-marker-pin .pin-badge { width: 30px; height: 30px; border-radius: 50%; background: #d97706; border: 2px solid #ffffff; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2); display: grid; place-items: center; font-size: 14px; }
.dest-marker-pin .pin-badge { width: 30px; height: 30px; border-radius: 50%; background: #0284c7; border: 2px solid #ffffff; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2); display: grid; place-items: center; font-size: 14px; }
.pin-label { position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%); background: #252e27; color: #ffffff; font-size: 8px; font-weight: 700; padding: 1px 5px; border-radius: 4px; white-space: nowrap; box-shadow: 0 2px 4px rgba(0,0,0,0.2); pointer-events: none; }
.detail-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; }.detail-card { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }.detail-card h3 { margin: 0 0 14px; font-family: "Plus Jakarta Sans", sans-serif; font-size: 14px; }.detail-row { display: flex; justify-content: space-between; gap: 15px; padding: 9px 0; border-bottom: 1px solid #eff2ee; color: #849087; font-size: 10px; }.detail-row:last-child { border-bottom: 0; }.detail-row strong { color: var(--ink); text-align: right; }
.notice-card { display: flex; align-items: flex-start; gap: 10px; padding: 13px; margin-bottom: 16px; border: 1px solid #dcebd6; border-radius: 12px; background: #f2f9ed; color: #6f846c; font-size: 10px; line-height: 1.4; }.notice-card.warning { border-color: #f0dcb9; background: #fff8e9; color: #8d764c; }.notice-icon { font-size: 15px; }.action-stack { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.log-list { display: grid; gap: 9px; }.log-item { display: flex; gap: 10px; padding: 12px; border: 1px solid #edf1ec; border-radius: 10px; background: #fcfdfc; }.log-icon { width: 23px; height: 23px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 7px; color: #537a50; background: #e9f5e4; font-size: 11px; }.log-copy strong { display: block; font-size: 10px; }.log-copy span { display: block; margin-top: 3px; color: #909b92; font-size: 9px; }.log-copy time { display: block; margin-top: 6px; color: #b2bbb3; font-size: 8px; }
.empty-panel { padding: 40px 18px; color: #95a098; border: 1px dashed #dce5da; border-radius: 13px; background: #fbfdfb; text-align: center; font-size: 11px; }.empty-panel strong { display: block; margin-bottom: 5px; color: #66746a; font-size: 13px; }
.sim-lab { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.scenario-control { display: flex; align-items: center; justify-content: space-between; gap: 13px; padding: 14px; border: 1px solid #edf1ec; border-radius: 12px; background: var(--surface); }.scenario-control strong { display: block; font-size: 10px; }.scenario-control span { display: block; margin-top: 4px; color: #919c94; font-size: 9px; line-height: 1.35; }.scenario-control button { flex: 0 0 auto; }
.mobile-nav { display: none; }
@media (max-width: 900px) { .auth-layout { grid-template-columns: 1fr; }.auth-story { min-height: auto; gap: 30px; }.auth-story h1 { margin-top: 25px; }.auth-panel { padding: 32px; }.detail-grid { grid-template-columns: 1fr; }.stat-grid { grid-template-columns: repeat(2, 1fr); }.backend-banner { margin: 0 26px; } }
@media (max-width: 760px) { .auth-screen { padding: 12px; }.auth-story { padding: 25px; }.auth-panel { padding: 25px 20px; }.demo-role-grid { grid-template-columns: 1fr; }.backend-banner { margin: 0 16px; }.page-toolbar { display: block; }.toolbar-actions { margin-top: 13px; }.stat-grid { gap: 8px; }.stat-tile { padding: 12px; }.sim-lab { grid-template-columns: 1fr; }.data-table { min-width: 700px; }.data-table-card { overflow-x: auto; }.map-container { height: 330px; } }

@media (max-width: 1150px) { .content-wrap { padding: 31px 26px 50px; }.topbar { padding: 0 26px; }.metric-grid { grid-template-columns: repeat(2, 1fr); }.dashboard-grid { grid-template-columns: 1fr; }.right-rail { grid-template-columns: repeat(2, 1fr); }.scenario-card { grid-column: 1 / -1; }.activity-list { grid-template-columns: 1fr; gap: 14px; }.activity-item, .activity-item:first-child, .activity-item:last-child { padding: 0; border: 0; } }
@media (max-width: 760px) { .sidebar { position: static; width: 100%; height: auto; padding: 12px; border-bottom: 1px solid var(--line); }.app-shell { display: block; }.brand-lockup { padding-bottom: 8px; }.workspace-switcher, .sidebar-label, .quick-action-list, .sidebar-footer { display: none; }.sidebar-nav { display: flex; overflow-x: auto; gap: 6px; padding: 4px 0 6px; -webkit-overflow-scrolling: touch; }.nav-item { white-space: nowrap; flex: 0 0 auto; padding: 7px 11px; }.main-content { width: 100%; margin-left: 0; }.topbar { height: auto; padding: 12px 16px; }.breadcrumbs { display: none; }.topbar-actions { width: 100%; justify-content: flex-end; }.content-wrap { padding: 20px 14px 40px; }.page-intro { display: block; }.intro-actions { margin-top: 18px; }.metric-grid { gap: 9px; }.metric-card { min-height: 122px; padding: 14px; }.metric-value { font-size: 26px; }.right-rail { grid-template-columns: 1fr; }.scenario-card { grid-column: auto; }.simulation-pill { margin-right: auto; }.page-intro h1 { font-size: 32px; }.dispatch-panel, .pulse-card, .attention-card, .scenario-card, .activity-section { padding: 17px; }.operation-route { margin-left: 0; }.operation-progress, .operation-meta { margin-left: 0; }.status-pill { font-size: 7px; }.form-grid { grid-template-columns: 1fr; }.field.full { grid-column: auto; }.modal { padding: 19px; }.modal-actions { flex-direction: column-reverse; }.modal-actions button { width: 100%; } }
