:root {
  color-scheme: dark;
  --ink: #eef1f2;
  --muted: #929ca1;
  --faint: #6f797e;
  --canvas: #101316;
  --surface: #171b1e;
  --surface-raised: #1c2125;
  --surface-hover: #242b30;
  --line: #2a3135;
  --line-soft: #22292d;
  --yellow: #f4c436;
  --yellow-soft: rgba(244, 196, 54, .14);
  --green: #62c998;
  --green-soft: rgba(98, 201, 152, .12);
  --blue: #78b8ed;
  --blue-soft: rgba(120, 184, 237, .13);
  --red: #ef8585;
  --red-soft: rgba(239, 133, 133, .12);
  --orange: #efa85c;
  --orange-soft: rgba(239, 168, 92, .13);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; color: var(--ink); background: var(--canvas); font-size: 14px; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
a { color: inherit; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
.demo-banner { height: 37px; display: flex; align-items: center; gap: 18px; padding: 0 23px; background: #202529; border-bottom: 1px solid #30383d; color: #cbd1d3; font-size: 11px; letter-spacing: .02em; }
.demo-banner__label { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; color: var(--yellow); letter-spacing: .1em; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 3px rgba(244,196,54,.13); }
.demo-banner a { margin-left: auto; color: #d4d9db; text-decoration: none; }
.demo-banner a:hover { color: var(--yellow); }
.app-shell { min-height: calc(100vh - 37px); }
.sidebar { position: fixed; z-index: 20; top: 37px; bottom: 0; left: 0; width: 248px; display: flex; flex-direction: column; padding: 22px 15px 16px; background: #15191c; border-right: 1px solid var(--line); overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 10px 24px; }
.brand img { width: 38px; height: 38px; object-fit: contain; }
.brand-name { font-size: 17px; font-weight: 800; letter-spacing: -.04em; }
.brand-name span { color: var(--yellow); }
.brand-caption { margin-top: 3px; color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.workspace-card { margin: 0 4px 22px; padding: 12px; border: 1px solid #31393e; border-radius: 10px; background: #1b2024; }
.workspace-card__label { color: var(--faint); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.workspace-card__name { margin-top: 6px; font-size: 12px; font-weight: 700; }
.workspace-card__tag { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; padding: 4px 7px; border-radius: 4px; color: var(--yellow); background: var(--yellow-soft); font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.nav-label { padding: 0 10px 8px; color: var(--faint); font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.side-nav { display: grid; gap: 4px; }
.nav-item { width: 100%; display: flex; align-items: center; gap: 11px; padding: 10px 11px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #aab3b7; text-align: left; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.nav-item:hover { background: #20262a; color: var(--ink); }
.nav-item.is-active { border-color: rgba(244,196,54,.2); background: var(--yellow-soft); color: var(--yellow); font-weight: 700; }
.nav-icon { width: 18px; height: 18px; flex: 0 0 18px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 5px; font-size: 9px; font-weight: 800; }
.sidebar-bottom { margin-top: auto; padding: 16px 8px 0; border-top: 1px solid var(--line-soft); }
.sidebar-bottom__role { color: var(--muted); font-size: 11px; }
.sidebar-bottom__hint { margin-top: 8px; color: var(--faint); font-size: 10px; line-height: 1.55; }
.sidebar-scrim { display: none; }
.main-column { min-height: calc(100vh - 37px); margin-left: 248px; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 10; min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 32px; border-bottom: 1px solid var(--line-soft); background: rgba(16,19,22,.95); backdrop-filter: blur(10px); }
.workspace-heading { display: grid; gap: 3px; }
.workspace-heading__eyebrow { color: var(--faint); font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.workspace-heading strong { font-size: 13px; }
.topbar-actions { display: flex; align-items: center; gap: 16px; }
.role-picker { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 11px; }
.role-picker select { min-width: 190px; max-width: 250px; padding: 9px 32px 9px 11px; border: 1px solid #3b4449; border-radius: 7px; color: var(--ink); background: #1b2024; cursor: pointer; }
.role-picker select:hover { border-color: #59646a; }
.user-avatar { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: #181b1d; background: var(--yellow); font-weight: 800; }
.menu-toggle { display: none; }
.content { width: min(100%, 1540px); margin: 0 auto; padding: 30px 32px 46px; flex: 1; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 23px; }
.page-head__copy { max-width: 760px; }
.eyebrow { color: var(--yellow); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.page-head h1 { margin: 7px 0 6px; font-size: clamp(24px, 3vw, 31px); line-height: 1.15; letter-spacing: -.045em; }
.page-head p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.date-chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 7px; color: #c2c9cc; background: #171b1e; font-size: 11px; white-space: nowrap; }
.date-chip span { color: var(--yellow); }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.metric-card { min-height: 113px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.metric-card__top { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 11px; }
.metric-icon { width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid #3a4246; border-radius: 7px; color: var(--yellow); font-size: 10px; font-weight: 800; }
.metric-card__value { margin-top: 12px; font-size: 27px; font-weight: 750; letter-spacing: -.05em; }
.metric-card__note { margin-top: 3px; color: var(--faint); font-size: 10px; }
.metric-card__note strong { color: var(--green); font-weight: 700; }
.panel-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .85fr); gap: 15px; align-items: start; }
.panel { min-width: 0; margin-bottom: 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow: hidden; }
.panel__head { min-height: 53px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
.panel__title { font-size: 12px; font-weight: 750; }
.panel__subtitle { margin-top: 3px; color: var(--faint); font-size: 10px; }
.panel__body { padding: 15px 16px; }
.text-button { border: 0; padding: 4px 0; background: transparent; color: var(--yellow); font-size: 10px; font-weight: 700; cursor: pointer; }
.text-button:hover { color: #ffdc70; }
.data-table-wrap { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
.data-table th { padding: 10px 13px; color: var(--faint); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.data-table td { padding: 11px 13px; border-top: 1px solid var(--line-soft); color: #d5dbdd; font-size: 11px; }
.data-table tr:hover td { background: rgba(255,255,255,.015); }
.cell-primary { color: var(--ink); font-weight: 650; }
.cell-secondary { display: block; margin-top: 3px; color: var(--faint); font-size: 9px; }
.status { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 5px; font-size: 9px; font-weight: 750; }
.status::before { width: 5px; height: 5px; border-radius: 50%; background: currentColor; content: ""; }
.status--approved, .status--active, .status--completed, .status--available { color: var(--green); background: var(--green-soft); }
.status--pending, .status--expected, .status--scheduled, .status--review { color: var(--orange); background: var(--orange-soft); }
.status--arrived, .status--in-progress, .status--unloading { color: var(--blue); background: var(--blue-soft); }
.status--issue, .status--restricted, .status--rejected { color: var(--red); background: var(--red-soft); }
.status--departed, .status--closed { color: #a9b2b7; background: rgba(169,178,183,.1); }
.inline-action { padding: 6px 9px; border: 1px solid #4a5153; border-radius: 5px; background: transparent; color: var(--yellow); font-size: 9px; font-weight: 700; cursor: pointer; }
.inline-action:hover { border-color: var(--yellow); background: var(--yellow-soft); }
.approval-list { display: grid; }
.approval-item { display: flex; align-items: flex-start; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.approval-item:last-child { border-bottom: 0; padding-bottom: 0; }
.approval-mark { width: 27px; height: 27px; flex: 0 0 27px; display: grid; place-items: center; border-radius: 7px; color: var(--orange); background: var(--orange-soft); font-size: 10px; font-weight: 800; }
.approval-copy { min-width: 0; flex: 1; }
.approval-copy strong { display: block; font-size: 11px; }
.approval-copy small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.approval-item .status { margin-left: auto; }
.site-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.site-card { padding: 16px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.site-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.site-card h3 { margin: 0; font-size: 13px; }
.site-card p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.site-card__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 18px; padding-top: 13px; border-top: 1px solid var(--line-soft); }
.site-card__stats span { display: block; color: var(--faint); font-size: 9px; }
.site-card__stats strong { display: block; margin-top: 4px; color: var(--ink); font-size: 15px; }
.progress-row { display: grid; grid-template-columns: minmax(88px, .7fr) minmax(120px, 1.4fr) 34px; align-items: center; gap: 10px; margin: 13px 0; color: #c4ccce; font-size: 10px; }
.progress-track { height: 6px; border-radius: 8px; background: #30373b; overflow: hidden; }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: var(--yellow); }
.progress-row strong { color: var(--muted); text-align: right; font-size: 10px; }
.schedule-list { display: grid; }
.schedule-row { display: grid; grid-template-columns: 51px minmax(120px, 1fr) minmax(110px, .8fr) auto; align-items: center; gap: 11px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.schedule-row:last-child { border-bottom: 0; }
.schedule-time { color: var(--yellow); font-size: 11px; font-weight: 750; }
.schedule-main strong { display: block; font-size: 10px; }
.schedule-main small, .schedule-meta { color: var(--muted); font-size: 9px; }
.schedule-main small { display: block; margin-top: 4px; }
.schedule-meta { line-height: 1.5; }
.notice-card { padding: 13px 14px; border: 1px solid rgba(244,196,54,.18); border-radius: 8px; background: rgba(244,196,54,.06); color: #d7d1bd; font-size: 10px; line-height: 1.55; }
.notice-card strong { display: block; margin-bottom: 4px; color: var(--yellow); font-size: 10px; }
.action-list { display: grid; gap: 8px; }
.action-row { display: flex; align-items: flex-start; gap: 9px; padding: 10px; border: 1px solid var(--line-soft); border-radius: 7px; background: #191e21; }
.action-row__dot { width: 7px; height: 7px; flex: 0 0 7px; margin-top: 4px; border-radius: 50%; background: var(--orange); }
.action-row__copy { flex: 1; }
.action-row__copy strong { display: block; font-size: 10px; line-height: 1.4; }
.action-row__copy small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.action-row .inline-action { margin-left: auto; }
.resource-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.resource-card { padding: 15px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.resource-card__head { display: flex; justify-content: space-between; gap: 8px; }
.resource-card__head strong { font-size: 11px; }
.resource-card__type { margin-top: 4px; color: var(--muted); font-size: 9px; }
.resource-card .progress-row { grid-template-columns: 78px 1fr 30px; margin: 16px 0 7px; }
.resource-card__foot { display: flex; justify-content: space-between; gap: 8px; color: var(--faint); font-size: 9px; }
.instruction-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.instruction-card { padding: 16px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.instruction-card__icon { width: 30px; height: 30px; display: grid; place-items: center; margin-bottom: 12px; border-radius: 8px; color: var(--yellow); background: var(--yellow-soft); font-weight: 800; }
.instruction-card h3 { margin: 0; font-size: 11px; }
.instruction-card p { margin: 7px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.form-field { display: grid; gap: 6px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { color: #c8ced0; font-size: 10px; font-weight: 700; }
.form-field input, .form-field select, .form-field textarea { width: 100%; min-height: 39px; padding: 9px 10px; border: 1px solid #384146; border-radius: 6px; color: var(--ink); background: #111518; }
.form-field input::placeholder, .form-field textarea::placeholder { color: #677176; }
.form-field textarea { min-height: 78px; resize: vertical; }
.form-actions { display: flex; align-items: center; gap: 12px; margin-top: 17px; }
.primary-button { padding: 10px 14px; border: 1px solid #f4c436; border-radius: 6px; background: var(--yellow); color: #1a1c1d; font-size: 10px; font-weight: 800; cursor: pointer; }
.primary-button:hover { background: #ffda61; }
.secondary-button { padding: 9px 12px; border: 1px solid #3c464b; border-radius: 6px; background: #1c2125; color: #cbd1d3; font-size: 10px; font-weight: 700; cursor: pointer; }
.form-note { color: var(--faint); font-size: 9px; line-height: 1.5; }
.empty-state { padding: 30px 18px; color: var(--muted); text-align: center; }
.demo-footer { display: flex; justify-content: space-between; gap: 12px; padding: 13px 32px; border-top: 1px solid var(--line-soft); color: var(--faint); font-size: 9px; }
.toast { position: fixed; z-index: 50; right: 22px; bottom: 22px; max-width: min(410px, calc(100vw - 32px)); padding: 12px 15px; border: 1px solid #53615e; border-radius: 8px; background: #1c2925; color: #dcece4; box-shadow: 0 10px 32px rgba(0,0,0,.32); font-size: 11px; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.is-visible { opacity: 1; transform: translateY(0); }
@media (max-width: 1100px) {
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content { padding-right: 22px; padding-left: 22px; }
  .topbar { padding-right: 22px; padding-left: 22px; }
}
@media (max-width: 860px) {
  .sidebar { z-index: 31; width: 270px; transform: translateX(-105%); transition: transform .2s ease; }
  .sidebar.is-open { transform: translateX(0); }
  .sidebar-scrim { position: fixed; z-index: 30; inset: 37px 0 0; display: block; background: rgba(0,0,0,.55); opacity: 0; pointer-events: none; transition: opacity .2s; }
  .sidebar-scrim.is-visible { opacity: 1; pointer-events: auto; }
  .main-column { margin-left: 0; }
  .menu-toggle { width: 34px; height: 34px; flex: 0 0 34px; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 7px; border: 1px solid var(--line); border-radius: 7px; background: #181d20; cursor: pointer; }
  .menu-toggle span { display: block; width: 100%; height: 2px; border-radius: 2px; background: #c8d0d2; }
  .panel-grid { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 600px) {
  .demo-banner { height: auto; min-height: 37px; flex-wrap: wrap; gap: 5px 12px; padding: 7px 12px; font-size: 9px; }
  .demo-banner a { font-size: 9px; }
  .sidebar { top: 49px; }
  .sidebar-scrim { inset: 49px 0 0; }
  .app-shell, .main-column { min-height: calc(100vh - 49px); }
  .topbar { min-height: 61px; gap: 10px; padding: 0 13px; }
  .workspace-heading { margin-right: auto; }
  .workspace-heading__eyebrow { font-size: 8px; }
  .workspace-heading strong { font-size: 11px; }
  .topbar-actions { gap: 8px; }
  .role-picker { display: block; }
  .role-picker span { display: none; }
  .role-picker select { width: 148px; min-width: 0; max-width: 148px; padding: 8px 24px 8px 7px; font-size: 9px; }
  .user-avatar { width: 27px; height: 27px; font-size: 11px; }
  .content { padding: 22px 13px 34px; }
  .page-head { align-items: flex-start; flex-direction: column; margin-bottom: 17px; }
  .page-head h1 { font-size: 25px; }
  .page-head p { font-size: 11px; }
  .date-chip { font-size: 9px; }
  .metric-grid { gap: 8px; margin-bottom: 11px; }
  .metric-card { min-height: 98px; padding: 11px; }
  .metric-card__top { font-size: 9px; }
  .metric-icon { width: 22px; height: 22px; }
  .metric-card__value { margin-top: 9px; font-size: 23px; }
  .metric-card__note { font-size: 8px; }
  .panel { margin-bottom: 11px; }
  .panel__head { padding: 11px 12px; }
  .panel__body { padding: 12px; }
  .site-card-grid, .resource-grid, .instruction-grid { grid-template-columns: 1fr; }
  .schedule-row { grid-template-columns: 42px minmax(100px, 1fr) auto; gap: 8px; }
  .schedule-meta { display: none; }
  .form-grid { grid-template-columns: 1fr; gap: 11px; }
  .form-field--full { grid-column: auto; }
  .demo-footer { flex-direction: column; padding: 12px 14px; font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}