
    body {
      background:
        radial-gradient(circle at 50% 25%, rgba(27, 140, 255, .20), transparent 24rem),
        linear-gradient(145deg, #0A1123 0%, var(--bg) 46%, var(--bg-deep) 100%);
    }
    a { color: inherit; text-decoration: none; }

    .site-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 1.25rem 2rem;
      border-bottom: 1px solid var(--line);
    }
    .brand-logo img { height: clamp(28px, 8vw, 40px); }
    .header-actions {
      display: flex;
      gap: .75rem;
    }
    
    /* Inventory button sizing and effects; the common foundation is in shared.css. */
    .button {
      padding: .75rem 1.2rem;
      font-size: .9rem;
      transition: transform .2s ease, background .2s ease;
    }
    
    .button-primary {
      box-shadow: 0 4px 15px rgba(27, 140, 255, .36);
    }
    .button-secondary {
      background: rgba(255, 255, 255, .05);
    }

    main {
      padding: 3rem 1.5rem;
      max-width: 900px;
      margin: 0 auto;
    }

    .dashboard {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 2rem;
    }
    @media (min-width: 768px) {
      .dashboard { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
    }

    .panel-card {
      min-width: 0;
      overflow: hidden;
      padding: 2rem;
      border: 1px solid var(--line);
      border-radius: 20px;
      background: var(--surface);
      backdrop-filter: blur(16px);
      box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
    }
    .panel-card h2 {
      margin: 0 0 1.5rem;
      font-family: var(--font-display);
      font-size: 1.4rem;
      color: #fff;
    }

    .form-group { min-width: 0; margin-bottom: 1.2rem; }
    .form-group input, .form-group select {
      width: 100%;
      max-width: 100%;
      min-width: 0;
      padding: .85rem 1.1rem;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: rgba(7, 11, 22, .6);
      color: var(--text);
      font-family: var(--font-body);
      font-size: .95rem;
      outline: none;
    }
    .form-group input[type="date"] {
      height: 3.3rem;
      padding-right: .5rem;
      padding-left: .75rem;
      -webkit-appearance: none;
      appearance: none;
    }
    .form-group input[type="date"]::-webkit-calendar-picker-indicator {
      filter: invert(1);
    }
    .form-group select { cursor: pointer; }
    .form-group input:focus, .form-group select:focus {
      border-color: var(--blue-bright);
    }
    .customer-suggestions {
      position: relative;
      z-index: 2;
      display: flex;
      max-height: 15rem;
      flex-direction: column;
      gap: .3rem;
      margin: .45rem 0 0;
      padding: .35rem;
      overflow-y: auto;
      border: 1px solid rgba(88, 166, 255, .4);
      border-radius: 12px;
      background: rgba(9, 15, 31, .98);
      box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
      list-style: none;
    }
    .customer-suggestions[hidden] { display: none; }
    .customer-suggestion-button {
      display: flex;
      width: 100%;
      align-items: flex-start;
      justify-content: space-between;
      gap: .75rem;
      padding: .65rem .75rem;
      border: 1px solid transparent;
      border-radius: 8px;
      background: transparent;
      color: var(--text);
      font: inherit;
      text-align: left;
      cursor: pointer;
    }
    .customer-suggestion-button:hover,
    .customer-suggestion-button:focus-visible {
      border-color: rgba(88, 166, 255, .6);
      background: rgba(88, 166, 255, .12);
      outline: none;
    }
    .customer-suggestion-main { display: flex; min-width: 0; flex-direction: column; gap: .2rem; }
    .customer-suggestion-name { font-size: .85rem; font-weight: 700; }
    .customer-suggestion-meta { color: var(--muted); font-size: .75rem; }
    .customer-suggestion-badge {
      flex: 0 0 auto;
      padding: .2rem .45rem;
      border: 1px solid rgba(255, 107, 107, .5);
      border-radius: 999px;
      color: #ffb4b4;
      font-size: .66rem;
      font-weight: 700;
    }
    .customer-suggestion-badges {
      display: flex;
      flex-wrap: wrap;
      gap: .35rem;
    }
    .customer-dispatch-status {
      margin: -.45rem 0 1rem;
      color: var(--muted);
      font-size: .78rem;
    }
    .customer-dispatch-status:empty { display: none; }
    .customer-dispatch-status.is-error { color: #ffb4b4; }
    #dispatch-form label {
      display: block;
      margin-bottom: .4rem;
      color: var(--muted);
      font-size: .85rem;
    }
    .customer-add-button { width: 100%; margin: -.45rem 0 1rem; }
    .customer-no-match {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: .7rem;
      margin: -.5rem 0 1rem;
      color: var(--muted);
      font-size: .78rem;
    }
    .customer-no-match[hidden] { display: none; }
    .customer-inline-add {
      padding: .35rem .5rem;
      border: 0;
      background: transparent;
      color: #8cc4ff;
      font: 700 .78rem/1.3 var(--font-body);
      text-align: right;
      cursor: pointer;
    }
    .customer-inline-add:hover,
    .customer-inline-add:focus-visible { color: #fff; text-decoration: underline; }
    .selected-customer-card {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: .8rem;
      margin: 0 0 1.1rem;
      padding: .8rem .9rem;
      border: 1px solid rgba(88, 166, 255, .35);
      border-radius: 12px;
      background: rgba(88, 166, 255, .08);
    }
    .selected-customer-card[hidden] { display: none; }
    .selected-customer-info {
      display: flex;
      min-width: 0;
      flex-direction: column;
      gap: .2rem;
    }
    .selected-customer-info strong { color: #fff; font-size: .9rem; }
    .selected-customer-info > span:not(.customer-suggestion-badges) {
      color: var(--muted);
      font-size: .78rem;
      overflow-wrap: anywhere;
    }
    .selected-customer-card .customer-inline-add { flex: 0 0 auto; }
    #job-site-group[hidden],
    #new-job-site-group[hidden] { display: none; }
    #new-job-site-group .customer-dispatch-status {
      margin: .45rem 0 0;
      line-height: 1.4;
    }

    .active-rentals-heading {
      display: flex;
      align-items: center;
      gap: .65rem;
    }
    .active-rental-count {
      display: flex;
      min-width: 1.7rem;
      height: 1.7rem;
      align-items: center;
      justify-content: center;
      padding: 0 .45rem;
      border: 1px solid rgba(88, 166, 255, .4);
      border-radius: 999px;
      background: rgba(88, 166, 255, .12);
      color: #b9dcff;
      font-size: .75rem;
    }
    #rentals-list {
      display: flex;
      max-height: 24rem;
      flex-direction: column;
      gap: .55rem;
      overflow-y: auto;
      overscroll-behavior: contain;
      padding-right: .25rem;
    }
    .rental-empty { margin: 0; color: var(--muted); }
    .rental-pill {
      display: flex;
      min-width: 0;
      align-items: center;
      justify-content: space-between;
      gap: .75rem;
      padding: .75rem .85rem;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: rgba(0, 0, 0, .2);
      color: var(--text);
      font: inherit;
      text-align: left;
      cursor: pointer;
      transition: border-color .18s ease, background .18s ease;
    }
    .rental-pill:hover,
    .rental-pill:focus-visible,
    .rental-pill[aria-expanded="true"] {
      border-color: rgba(88, 166, 255, .7);
      background: rgba(88, 166, 255, .1);
      outline: none;
    }
    .rental-pill-main {
      min-width: 0;
      overflow: hidden;
      font-size: .85rem;
      font-weight: 700;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .rental-pill-due {
      flex: 0 0 auto;
      color: var(--muted);
      font-size: .72rem;
      white-space: nowrap;
    }
    .rental-dialog {
      position: fixed;
      inset: 0;
      display: none;
      width: min(440px, calc(100vw - 2rem));
      max-width: none;
      max-height: min(calc(100vh - 2rem), 620px);
      flex-direction: column;
      margin: auto;
      padding: 0;
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: 18px;
      background: rgba(9, 15, 31, .98);
      color: var(--text);
      box-shadow: 0 22px 65px rgba(0, 0, 0, .6);
    }
    .rental-dialog[open] { display: flex; }
    .rental-dialog::backdrop {
      background: rgba(3, 6, 17, .68);
      backdrop-filter: blur(3px);
    }
    .rental-dialog-header {
      display: flex;
      flex: 0 0 auto;
      align-items: flex-start;
      justify-content: space-between;
      gap: 1rem;
      padding: 1.1rem 1.2rem .9rem;
      border-bottom: 1px solid var(--line);
    }
    .rental-dialog-header h3 {
      margin: 0;
      color: #fff;
      font-family: var(--font-display);
      font-size: 1rem;
      overflow-wrap: anywhere;
    }
    .rental-dialog-header p {
      margin: .25rem 0 0;
      color: var(--muted);
      font-size: .8rem;
      overflow-wrap: anywhere;
    }
    .rental-dialog-details {
      display: flex;
      min-height: 0;
      flex: 1 1 auto;
      flex-direction: column;
      gap: .7rem;
      overflow-y: auto;
      margin: 0;
      padding: 1rem 1.2rem;
      overscroll-behavior: contain;
    }
    .rental-detail-row {
      display: grid;
      grid-template-columns: minmax(6.5rem, .8fr) minmax(0, 1.5fr);
      gap: .65rem;
      font-size: .8rem;
      line-height: 1.4;
    }
    .rental-detail-row dt { color: var(--muted); }
    .rental-detail-row dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
    .rental-dialog-footer {
      display: flex;
      flex: 0 0 auto;
      justify-content: flex-end;
      padding: .85rem 1.2rem 1rem;
      border-top: 1px solid var(--line);
    }
    .rental-dialog-footer .button { min-height: 2.75rem; }

    .totals-row {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      padding: .75rem;
      background: rgba(0,0,0,.2);
      border-radius: 8px;
      border: 1px solid var(--line);
      font-size: .9rem;
    }

    .schedule-panel { position: relative; }
    .schedule-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      margin-bottom: 1.25rem;
    }
    .schedule-header h2 { margin: 0; }
    .schedule-toolbar {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: .45rem;
    }
    .schedule-month {
      min-width: 9.5rem;
      color: var(--text);
      font-size: .95rem;
      font-weight: 700;
      text-align: center;
    }
    .schedule-nav-button {
      display: inline-flex;
      flex: 0 0 auto;
      justify-content: center;
      align-items: center;
      min-width: 2.25rem;
      min-height: 2.25rem;
      padding: .35rem .65rem;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: rgba(255, 255, 255, .035);
      color: var(--text);
      font: 600 .85rem/1 var(--font-body);
      cursor: pointer;
      transition: border-color .2s ease, background .2s ease;
    }
    .schedule-nav-button:hover,
    .schedule-nav-button:focus-visible {
      border-color: rgba(88, 166, 255, .7);
      background: rgba(88, 166, 255, .12);
      outline: none;
    }
    #schedule-previous, #schedule-next { font-size: 1.3rem; }

    .schedule-weekdays,
    .schedule-grid {
      display: grid;
      grid-template-columns: repeat(7, minmax(0, 1fr));
    }
    .schedule-weekdays {
      margin-bottom: .45rem;
      color: var(--muted);
      font-size: .68rem;
      font-weight: 700;
      letter-spacing: .08em;
      text-align: center;
      text-transform: uppercase;
    }
    .schedule-weekdays span { padding: .3rem 0; }
    .schedule-grid { gap: .35rem; }
    .schedule-day {
      display: flex;
      min-width: 0;
      min-height: 4.65rem;
      flex-direction: column;
      align-items: center;
      gap: .45rem;
      padding: .45rem .2rem;
      border: 1px solid rgba(255, 255, 255, .1);
      border-radius: 9px;
      background: rgba(0, 0, 0, .18);
      color: var(--text);
      font: inherit;
      cursor: pointer;
      transition: border-color .18s ease, background .18s ease;
    }
    .schedule-day:hover,
    .schedule-day:focus-visible {
      border-color: rgba(88, 166, 255, .65);
      background: rgba(88, 166, 255, .08);
      outline: none;
    }
    .schedule-day.is-outside-month { color: rgba(169, 181, 207, .48); }
    .schedule-day.is-today { border-color: rgba(88, 166, 255, .75); }
    .schedule-day.is-selected { background: rgba(88, 166, 255, .16); }
    .schedule-day-number { font-size: .82rem; font-weight: 600; line-height: 1; }
    .schedule-day-events {
      display: flex;
      min-height: .45rem;
      align-items: center;
      justify-content: center;
      gap: .2rem;
    }
    .schedule-marker {
      display: inline-block;
      width: .42rem;
      height: .42rem;
      flex: 0 0 auto;
      border-radius: 50%;
    }
    .schedule-marker--delivery {
      background: var(--blue-bright);
      box-shadow: 0 0 7px rgba(88, 166, 255, .35);
    }
    .schedule-marker--pickup {
      border: 1px solid var(--blue-bright);
      background: transparent;
    }
    .schedule-overflow {
      color: var(--muted);
      font-size: .58rem;
      line-height: 1;
    }
    .schedule-footer {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: .8rem;
      margin-top: 1rem;
    }
    .schedule-legend { display: flex; flex-wrap: wrap; gap: 1rem; }
    .schedule-legend span {
      display: inline-flex;
      align-items: center;
      gap: .4rem;
      color: var(--muted);
      font-size: .75rem;
    }
    .schedule-status { margin: 0; color: var(--muted); font-size: .75rem; }

    .schedule-overlay {
      position: fixed;
      z-index: 1000;
      inset: 0;
      background: transparent;
    }
    .schedule-popover {
      position: fixed;
      z-index: 1001;
      display: flex;
      width: min(390px, calc(100vw - 2rem));
      max-height: min(calc(100vh - 2rem), 620px);
      flex-direction: column;
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: 18px;
      background: rgba(9, 15, 31, .97);
      box-shadow: 0 22px 65px rgba(0, 0, 0, .6);
      backdrop-filter: blur(18px);
    }
    #schedule-overlay[hidden], #schedule-popover[hidden] { display: none; }
    .schedule-popover-header {
      display: flex;
      flex: 0 0 auto;
      align-items: flex-start;
      justify-content: space-between;
      gap: 1rem;
      padding: 1.1rem 1.2rem .9rem;
      border-bottom: 1px solid var(--line);
    }
    .schedule-popover-header h3 {
      margin: 0;
      color: #fff;
      font-family: var(--font-display);
      font-size: 1rem;
    }
    .schedule-popover-header p { margin: .25rem 0 0; color: var(--muted); font-size: .76rem; }
    .schedule-close-button { width: 2.25rem; padding: 0; font-size: 1.25rem; }
    .schedule-events-list {
      display: flex;
      min-height: 0;
      flex-direction: column;
      gap: .7rem;
      overflow-y: auto;
      padding: .85rem 1.2rem 1.2rem;
    }
    .schedule-event-group { display: flex; flex-direction: column; gap: .4rem; }
    .schedule-event-button {
      display: flex;
      min-width: 0;
      align-items: center;
      gap: .55rem;
      padding: .5rem .7rem;
      border: 1px solid transparent;
      border-radius: 9px;
      color: #fff;
      font: 600 .76rem/1.25 var(--font-body);
      text-align: left;
      cursor: pointer;
      transition: border-color .18s ease, background .18s ease;
    }
    .schedule-event-button--delivery {
      background: linear-gradient(135deg, var(--blue-bright), var(--blue-dark));
      box-shadow: 0 3px 12px rgba(27, 140, 255, .2);
    }
    .schedule-event-button--pickup {
      border-color: rgba(88, 166, 255, .75);
      background: rgba(88, 166, 255, .045);
      color: #b9dcff;
    }
    .schedule-event-button:hover,
    .schedule-event-button:focus-visible { border-color: #fff; outline: none; }
    .schedule-event-type { flex: 0 0 auto; }
    .schedule-event-size { flex: 0 0 auto; opacity: .88; }
    .schedule-event-customer {
      overflow: hidden;
      color: inherit;
      opacity: .82;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .schedule-rental-details {
      display: none;
      grid-template-columns: minmax(0, 1fr);
      gap: .45rem;
      margin: 0;
      padding: .75rem .85rem;
      border: 1px solid rgba(255, 255, 255, .1);
      border-radius: 10px;
      background: rgba(0, 0, 0, .2);
    }
    .schedule-rental-details.is-expanded { display: grid; }
    .schedule-detail-row {
      display: grid;
      grid-template-columns: minmax(6.5rem, .8fr) minmax(0, 1.5fr);
      gap: .65rem;
      font-size: .76rem;
      line-height: 1.4;
    }
    .schedule-detail-row dt { color: var(--muted); }
    .schedule-detail-row dd { min-width: 0; margin: 0; color: var(--text); overflow-wrap: anywhere; }
    .schedule-no-events { margin: .4rem 0; color: var(--muted); font-size: .85rem; }
    body.schedule-dialog-open {
      overflow: hidden;
      padding-right: var(--schedule-scrollbar-width, 0px);
    }
    
    /* Loading overlay */
    #page-loader {
      position: fixed; top: 0; left: 0; width: 100%; height: 100%;
      background: var(--bg-deep); z-index: 999;
      display: flex; align-items: center; justify-content: center;
    }

    @media (max-width: 480px) {
      .site-header { padding: 1rem 1.25rem; }
      main { padding: 1.75rem 1rem; }
      .panel-card { padding: 1.25rem; }
      .form-group input, .form-group select { font-size: 1rem; }
      .form-group input[type="date"] { font-size: .8rem; padding-left: .6rem; padding-right: .4rem; }
      .button { min-height: 44px; }
      .totals-row { grid-template-columns: repeat(2, 1fr); row-gap: .35rem; }
    }

    @media (max-width: 600px) {
      .schedule-header { align-items: stretch; flex-direction: column; gap: .9rem; }
      .schedule-toolbar { justify-content: space-between; }
      .schedule-month { flex: 1; min-width: 0; }
      .schedule-grid { gap: .22rem; }
      .schedule-day { min-height: 3.45rem; gap: .35rem; padding: .4rem .1rem; border-radius: 7px; }
      .schedule-day-number { font-size: .75rem; }
      .schedule-marker { width: .36rem; height: .36rem; }
      .schedule-popover {
        top: auto !important;
        right: 0;
        bottom: 0;
        left: 0 !important;
        width: 100%;
        max-height: min(78vh, 660px);
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 20px 20px 0 0;
        padding-bottom: env(safe-area-inset-bottom);
      }
      .schedule-overlay { background: rgba(3, 6, 17, .58); backdrop-filter: blur(3px); }
      .schedule-popover-header { padding: 1rem 1.1rem .85rem; }
      .schedule-events-list { padding: .8rem 1.1rem 1rem; }
      .rental-dialog {
        inset: auto 0 0;
        width: 100%;
        max-height: min(78vh, 660px);
        margin: 0;
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 20px 20px 0 0;
        padding-bottom: env(safe-area-inset-bottom);
      }
      .rental-dialog-header { padding: 1rem 1.1rem .85rem; }
      .rental-dialog-details { padding: .9rem 1.1rem; }
      .rental-dialog-footer { padding: .8rem 1.1rem 1rem; }
    }
  