:root {
  --forest: #173a32;
  --forest-2: #224b41;
  --ink: #18201d;
  --paper: #f4f1e8;
  --paper-2: #ebe6d9;
  --white: #fffdf7;
  --mint: #20a37a;
  --mint-dark: #147356;
  --coral: #f47353;
  --gold: #dca84c;
  --muted: #68736f;
  --line: #d9d6ca;
  --danger: #bf3f3f;
  --radius: 22px;
  --shadow: 0 24px 60px rgba(24, 32, 29, .12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--paper); color: var(--ink); }
button, input, select, textarea { font: inherit; }
[hidden] { display: none !important; }
.eyebrow { margin: 0 0 6px; color: var(--mint-dark); font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.rental-brand { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 12px; }
.rental-brand > span:last-child { display: grid; line-height: 1.05; }
.rental-brand strong { font-size: 18px; letter-spacing: -.035em; }
.rental-brand small { color: var(--muted); margin-top: 4px; }
.wheel-mark { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--forest); color: #bff5de; font-weight: 950; position: relative; }
.wheel-mark::after { content: ''; position: absolute; inset: 8px; border: 2px dashed currentColor; border-radius: inherit; opacity: .45; }
.login-view { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 620px) 1fr; }
.login-panel { background: var(--white); padding: clamp(32px, 7vw, 90px); display: flex; flex-direction: column; justify-content: center; gap: 60px; }
.login-copy h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(44px, 6vw, 76px); line-height: .98; letter-spacing: -.055em; color: var(--forest); }
.login-copy > p:last-child { color: var(--muted); font-size: 17px; }
.stack-form { display: grid; gap: 15px; max-width: 420px; }
label { display: grid; gap: 7px; font-size: 13px; font-weight: 800; color: #35433e; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 13px; background: var(--white); color: var(--ink); padding: 13px 14px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(32, 163, 122, .12); }
.button { min-height: 43px; border: 0; border-radius: 13px; padding: 0 17px; font-weight: 900; cursor: pointer; }
.button-primary { background: var(--forest); color: white; box-shadow: 0 10px 26px rgba(23, 58, 50, .16); }
.button-primary:hover { background: var(--forest-2); transform: translateY(-1px); }
.button-subtle { background: var(--paper-2); color: var(--forest); }
.button-danger { background: #fde7df; color: var(--danger); }
.button-link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.form-error { color: var(--danger); margin: 0; }
.road-visual { position: relative; overflow: hidden; background: linear-gradient(145deg, rgba(32,163,122,.85), rgba(23,58,50,.95)), var(--forest); }
.road-visual::before { content: ''; position: absolute; width: 70%; height: 130%; right: -15%; top: -15%; background: #f7c55c; clip-path: polygon(45% 0, 100% 0, 62% 100%, 0 100%); opacity: .8; }
.road-line { position: absolute; width: 13px; height: 130%; background: repeating-linear-gradient(to bottom, #fff 0 45px, transparent 45px 85px); transform: rotate(20deg); left: 55%; top: -15%; opacity: .75; }
.visual-copy { position: absolute; left: 10%; bottom: 10%; display: grid; gap: 6px; color: white; }
.visual-copy span { text-transform: uppercase; font-size: 11px; letter-spacing: .13em; font-weight: 900; }
.visual-copy strong { font-family: Georgia, serif; font-size: clamp(34px, 4vw, 58px); max-width: 10ch; line-height: 1; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 252px 1fr; }
.sidebar { height: 100vh; position: sticky; top: 0; padding: 26px 18px; background: var(--white); border-right: 1px solid var(--line); display: flex; flex-direction: column; z-index: 20; }
.main-nav { margin-top: 42px; display: grid; gap: 6px; }
.main-nav button { border: 0; text-align: left; border-radius: 12px; padding: 12px 13px; background: transparent; color: var(--muted); font-weight: 800; cursor: pointer; }
.main-nav button:hover, .main-nav button.is-active { background: #e4f4ee; color: var(--forest); }
.sidebar-bottom { margin-top: auto; display: grid; gap: 14px; }
.signed-in { display: flex; align-items: center; gap: 10px; }
.signed-in > span { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--forest); color: white; font-weight: 900; }
.signed-in div { display: grid; min-width: 0; }
.signed-in strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.signed-in small { color: var(--muted); }
.workspace { min-width: 0; }
.topbar { min-height: 98px; position: sticky; top: 0; z-index: 10; padding: 22px clamp(20px, 4vw, 54px); display: flex; align-items: center; justify-content: space-between; gap: 18px; background: rgba(244, 241, 232, .9); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.topbar h1 { margin: 0; font-family: Georgia, serif; font-size: 31px; letter-spacing: -.04em; color: var(--forest); }
.topbar-actions { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.icon-button { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--forest); cursor: pointer; }
.menu-button { display: none; }
.page-content { padding: clamp(20px, 4vw, 54px); outline: 0; }
.hero { min-height: 300px; padding: clamp(27px, 4vw, 50px); border-radius: 30px; background: linear-gradient(110deg, rgba(23,58,50,.96), rgba(32,163,122,.82)); color: white; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.hero::after { content: ''; position: absolute; width: 370px; height: 370px; border: 72px solid rgba(255,255,255,.08); border-radius: 50%; right: -80px; top: -110px; }
.hero .eyebrow { color: #bff5de; }
.hero h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(38px, 6vw, 72px); line-height: .95; max-width: 9ch; letter-spacing: -.055em; }
.hero p { max-width: 56ch; color: rgba(255,255,255,.74); line-height: 1.6; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-top: 18px; }
.metric-card, .surface { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.metric-card { padding: 20px; display: grid; gap: 8px; }
.metric-card span { color: var(--muted); font-size: 12px; font-weight: 800; }
.metric-card strong { color: var(--forest); font-size: 26px; letter-spacing: -.04em; }
.metric-card small { color: var(--muted); }
.section { margin-top: 34px; }
.section-header { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.section-header h2 { margin: 0; font-family: Georgia, serif; font-size: 27px; color: var(--forest); }
.section-header p { margin: 5px 0 0; color: var(--muted); }
.section-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.surface { overflow: hidden; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { text-align: left; border-bottom: 1px solid var(--line); padding: 14px 15px; vertical-align: top; }
.data-table th { color: var(--muted); font-size: 11px; letter-spacing: .09em; text-transform: uppercase; }
.data-table tr:last-child td { border-bottom: 0; }
.status { display: inline-flex; border-radius: 999px; padding: 5px 9px; font-size: 11px; font-weight: 900; background: #e4f4ee; color: var(--mint-dark); }
.status-warn { background: #fff1d7; color: #9b6815; }
.status-danger { background: #fde7df; color: var(--danger); }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.vehicle-card { padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); position: relative; overflow: hidden; }
.vehicle-card::after { content: ''; position: absolute; width: 120px; height: 120px; border-radius: 50%; background: rgba(32,163,122,.08); right: -45px; bottom: -45px; }
.vehicle-card h3 { margin: 8px 0 4px; color: var(--forest); }
.vehicle-card p { color: var(--muted); margin: 3px 0; }
.vehicle-card footer { display: flex; gap: 8px; margin-top: 18px; position: relative; z-index: 1; }
.activity-list { display: grid; }
.activity-item { display: grid; grid-template-columns: 12px 1fr auto; gap: 12px; align-items: center; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.activity-item:last-child { border-bottom: 0; }
.activity-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }
.activity-item strong, .activity-item small { display: block; overflow-wrap: anywhere; }
.activity-item strong { margin-bottom: 3px; }
.activity-item small { color: var(--muted); }
.empty-state { padding: 42px 24px; text-align: center; color: var(--muted); }
.modal { width: min(700px, calc(100vw - 26px)); max-width: 100%; border: 0; padding: 0; background: transparent; color: var(--ink); }
.modal-wide { width: min(900px, calc(100vw - 26px)); }
.modal::backdrop { background: rgba(14,31,26,.66); backdrop-filter: blur(5px); }
.modal-card { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 23px; box-shadow: var(--shadow); }
.modal-card > header, .modal-card > footer { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.modal-card > header h2 { margin: 0; font-family: Georgia, serif; color: var(--forest); }
.modal-card > footer { justify-content: flex-end; margin-top: 22px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin-top: 20px; }
.span-two { grid-column: 1 / -1; }
.detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-top: 18px; }
.detail-box { background: var(--paper); border-radius: 15px; padding: 15px; }
.detail-box span { display: block; color: var(--muted); font-size: 11px; font-weight: 800; }
.detail-box strong { display: block; margin-top: 5px; color: var(--forest); }
.toast-host { position: fixed; right: 20px; bottom: 20px; display: grid; gap: 8px; z-index: 100; }
.toast { opacity: 0; transform: translateY(8px); transition: .2s; border-radius: 13px; padding: 13px 16px; background: var(--forest); color: white; box-shadow: var(--shadow); }
.toast.is-visible { opacity: 1; transform: none; }
.toast-error { background: #762f2f; }
@media (max-width: 1000px) { .metric-grid { grid-template-columns: repeat(2, 1fr); } .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 820px) {
  .login-view { grid-template-columns: 1fr; } .road-visual { display: none; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; width: 270px; transform: translateX(-105%); transition: .22s; box-shadow: var(--shadow); }
  .app-shell.menu-open .sidebar { transform: none; }
  .menu-button { display: inline-grid; place-items: center; }
  .card-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .login-panel { padding: 27px 20px; gap: 40px; }
  .login-copy h1 { font-size: 48px; }
  .topbar { min-height: 82px; padding: 15px 13px; }
  .topbar h1 { font-size: 24px; }
  #clock-label { display: none; }
  .page-content { padding: 18px 13px 40px; }
  .metric-grid { grid-template-columns: 1fr; }
  .form-grid, .detail-grid { grid-template-columns: 1fr; }
  .span-two { grid-column: auto; }
  .section-header { align-items: start; flex-direction: column; }
  .surface.table-wrap { overflow-x: auto; } .data-table { min-width: 720px; }
  .activity-item { grid-template-columns: 10px minmax(0, 1fr); gap: 8px 10px; align-items: start; }
  .activity-item > small { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
