@media (max-width: 899px) {
  .desktop-procurement-home {
    display: none !important;
  }
}

@media (min-width: 900px) {
  html.desktop-procurement-home-active {
    --dph-bg: #f4f7fb;
    --dph-surface: #ffffff;
    --dph-surface-soft: #f7fbff;
    --dph-ink: #111827;
    --dph-muted: #6f7d93;
    --dph-border: #dfe8f2;
    --dph-blue: #2385f6;
    --dph-blue-dark: #1d5edf;
    --dph-green: #5cc65c;
    --dph-navy: #10273c;
    --dph-yellow: #ffd94d;
    --dph-shadow: 0 22px 55px rgba(29, 54, 82, 0.10);
    --dph-shadow-soft: 0 12px 28px rgba(29, 54, 82, 0.07);
    --dph-radius-xl: 28px;
    --dph-radius-lg: 20px;
    --dph-radius-md: 15px;
    background: var(--dph-bg);
  }

  html.desktop-procurement-home-active,
  html.desktop-procurement-home-active body {
    min-width: 0 !important;
    min-height: 100% !important;
    overflow-x: hidden !important;
    background:
      radial-gradient(circle at 78% 8%, rgba(255, 221, 79, 0.18), transparent 28%),
      linear-gradient(180deg, #fbfdff 0%, var(--dph-bg) 42%, #eef4fb 100%) !important;
    color: var(--dph-ink);
  }

  html.desktop-procurement-home-active body:has(.procurement-dashboard)::before,
  html.desktop-procurement-home-active body:has(.procurement-dashboard)::after {
    display: none !important;
  }

  html.desktop-procurement-home-active body:has(.procurement-dashboard) .workspace {
    width: 100vw !important;
    max-width: none !important;
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
  }

  html.desktop-procurement-home-active body:has(.procurement-dashboard) .topbar,
  html.desktop-procurement-home-active body:has(.procurement-dashboard) .liquid-mobile-workbench {
    display: none !important;
  }

  html.desktop-procurement-home-active body:has(.procurement-dashboard) .page.procurement-dashboard {
    width: 100vw !important;
    max-width: none !important;
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
  }

  html.desktop-procurement-home-active body:has(.procurement-dashboard) .page.procurement-dashboard > :not(.desktop-procurement-home) {
    display: none !important;
  }

  html.desktop-procurement-home-active body:has(.procurement-dashboard) .page.procurement-dashboard > .desktop-procurement-home {
    display: grid !important;
  }

  .desktop-procurement-home,
  .desktop-procurement-home * {
    box-sizing: border-box;
  }

  .desktop-procurement-home {
    width: 100vw;
    min-height: 100vh;
    display: grid !important;
    grid-template-columns: 282px minmax(0, 1fr);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
    letter-spacing: 0;
    color: var(--dph-ink);
  }

  .desktop-procurement-home svg {
    width: 24px;
    height: 24px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
  }

  .desktop-procurement-home button,
  .desktop-procurement-home select {
    font: inherit;
  }

  .dph-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 38px 16px 16px;
    background: rgba(255, 255, 255, 0.84);
    border-right: 1px solid var(--dph-border);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 2;
  }

  .dph-brand {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 0 2px;
  }

  .dph-brand > span,
  .dph-avatar {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #0f1828;
    color: #fff;
    font-weight: 900;
  }

  .dph-brand strong,
  .dph-profile strong {
    display: block;
    font-size: 20px;
    line-height: 1.1;
    font-weight: 900;
  }

  .dph-brand small,
  .dph-profile small,
  .dph-field > span {
    display: block;
    margin-top: 5px;
    color: var(--dph-muted);
    font-size: 14px;
    font-weight: 650;
  }

  .dph-field {
    display: grid;
    gap: 10px;
  }

  .dph-venue-select {
    width: 100%;
    height: 52px;
    padding: 0 36px 0 18px;
    border: 1px solid var(--dph-border);
    border-radius: 10px;
    background: #f6f8fb;
    color: #172033;
    font-size: 17px;
    font-weight: 750;
    outline: none;
    appearance: auto;
  }

  .dph-venue-select:focus {
    border-color: #b9d9ff;
    box-shadow: 0 0 0 4px rgba(35, 133, 246, 0.12);
  }

  .dph-nav {
    display: grid;
    gap: 7px;
  }

  .dph-nav-button {
    min-height: 48px;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #334056;
    text-align: left;
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease, color 160ms ease;
  }

  .dph-nav-button svg {
    width: 26px;
    height: 26px;
  }

  .dph-nav-button span {
    min-width: 0;
    font-size: 17px;
    font-weight: 760;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .dph-nav-button b {
    min-width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    padding: 0 8px;
    border-radius: 999px;
    background: #f0f4f8;
    color: #6a7689;
    font-size: 13px;
    font-weight: 850;
  }

  .dph-nav-button:hover {
    transform: translateX(2px);
    background: #f1f7ff;
    color: #148657;
  }

  .dph-nav-button.active {
    background: #eaf8f1;
    color: #0f9a62;
    box-shadow: inset 4px 0 0 #159768;
  }

  .dph-profile {
    margin-top: auto;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--dph-border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.78);
  }

  .dph-avatar {
    background: linear-gradient(135deg, #ef5c9a, #e75b3d);
  }

  .dph-profile button {
    grid-column: 1 / -1;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--dph-border);
    border-radius: 10px;
    background: #fff;
    color: #101827;
    font-weight: 850;
    cursor: pointer;
  }

  .dph-main {
    min-width: 0;
    display: grid;
    grid-template-rows: auto 1fr;
  }

  .dph-topbar {
    position: sticky;
    top: 0;
    z-index: 5;
    min-height: 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 28px 20px;
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid var(--dph-border);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
  }

  .dph-topbar h1 {
    margin: 0;
    font-size: clamp(25px, 2vw, 31px);
    line-height: 1.1;
    font-weight: 920;
  }

  .dph-topbar p {
    margin: 7px 0 0;
    color: var(--dph-muted);
    font-size: 15px;
    font-weight: 650;
  }

  .dph-top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .dph-top-actions button {
    height: 48px;
    border: 1px solid var(--dph-border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    cursor: pointer;
    box-shadow: 0 7px 18px rgba(15, 23, 42, 0.04);
  }

  .dph-icon-button {
    width: 48px;
    display: grid;
    place-items: center;
  }

  .dph-rule-button,
  .dph-exit-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 0 16px;
    font-size: 16px;
    font-weight: 850;
  }

  .dph-rule-button {
    background: #15946a !important;
    border-color: #15946a !important;
    color: #fff !important;
  }

  .dph-content {
    min-width: 0;
    padding: 20px 28px 36px;
  }

  .dph-weather-home {
    width: min(100%, 1460px);
    display: grid;
    gap: 18px;
  }

  .dph-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(390px, 0.85fr);
    gap: 22px;
    min-height: 392px;
    padding: 24px;
    border: 1px solid #d7e7f6;
    border-radius: var(--dph-radius-xl);
    background:
      linear-gradient(rgba(57, 130, 204, 0.035) 1px, transparent 1px),
      linear-gradient(90deg, rgba(57, 130, 204, 0.035) 1px, transparent 1px),
      linear-gradient(115deg, rgba(243, 250, 255, 0.94), rgba(226, 243, 255, 0.74) 48%, rgba(255, 251, 230, 0.72));
    background-size: 30px 30px, 30px 30px, auto;
    box-shadow: var(--dph-shadow-soft);
  }

  .dph-hero::after {
    content: "";
    position: absolute;
    right: 10%;
    top: -120px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 218, 69, 0.32), transparent 66%);
    pointer-events: none;
  }

  .dph-hero-copy,
  .dph-scene {
    position: relative;
    z-index: 1;
  }

  .dph-hero-copy {
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 28px;
  }

  .dph-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }

  .dph-kicker,
  .dph-theme-toggle,
  .dph-status-strip span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #dce8f5;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: #20304a;
    box-shadow: 0 8px 22px rgba(41, 72, 108, 0.08);
  }

  .dph-kicker {
    height: 38px;
    padding: 0 14px;
    font-size: 16px;
    font-weight: 850;
  }

  .dph-kicker b {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    border-radius: 7px;
    background: #121d2e;
    color: #fff;
    font-size: 14px;
  }

  .dph-theme-toggle {
    min-width: 170px;
    height: 56px;
    justify-content: center;
    padding: 0 22px 0 10px;
    border: 0;
    background: linear-gradient(135deg, #42a6ff, #1761e6);
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    font-style: italic;
    cursor: pointer;
  }

  .dph-theme-toggle span {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-left: -22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6bb6ff, #185ee6);
    box-shadow: 0 12px 26px rgba(22, 96, 230, 0.30);
  }

  .dph-current {
    display: grid;
    grid-template-columns: 134px minmax(0, 1fr);
    align-items: center;
    gap: 34px;
    max-width: 650px;
  }

  .dph-orb {
    width: 120px;
    height: 120px;
    display: grid;
    place-items: center;
    border-radius: 36px;
    background:
      radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.92), transparent 8%),
      linear-gradient(145deg, #5bb2ff, #1268ec 72%);
    color: #ffdc45;
    box-shadow: 0 20px 42px rgba(26, 104, 235, 0.22);
  }

  .dph-orb svg {
    width: 62px;
    height: 62px;
    stroke-width: 1.8;
  }

  .dph-current small {
    display: block;
    color: #65758d;
    font-size: 15px;
    font-weight: 850;
    letter-spacing: 0;
  }

  .dph-current h2 {
    margin: 8px 0 12px;
    color: #111827;
    font-size: clamp(46px, 5.5vw, 72px);
    line-height: 0.95;
    font-weight: 950;
  }

  .dph-current p {
    max-width: 620px;
    margin: 0;
    color: #5f7087;
    font-size: 18px;
    line-height: 1.65;
    font-weight: 650;
  }

  .dph-status-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .dph-status-strip span {
    height: 42px;
    padding: 0 16px;
    font-size: 16px;
    font-weight: 850;
  }

  .dph-status-strip svg {
    width: 22px;
    height: 22px;
  }

  .dph-scene {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 14px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.62);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
  }

  .dph-weather-card {
    min-height: 150px;
    display: grid;
    align-content: center;
    justify-items: start;
    gap: 6px;
    padding: 22px;
    border: 0;
    border-radius: 24px;
    color: #fff;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 16px 34px rgba(22, 71, 138, 0.12);
    transition: transform 180ms ease, box-shadow 180ms ease;
  }

  .dph-weather-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 42px rgba(22, 71, 138, 0.18);
  }

  .dph-weather-card span {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 19px;
    background: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.86);
  }

  .dph-weather-card svg {
    width: 40px;
    height: 40px;
  }

  .dph-weather-card strong {
    margin-top: 4px;
    font-size: 22px;
    line-height: 1.1;
    font-weight: 900;
  }

  .dph-weather-card small {
    color: rgba(255, 255, 255, 0.84);
    font-size: 14px;
    font-weight: 720;
  }

  .dph-weather-card.sunny {
    background: linear-gradient(135deg, #28a8ff, #2268ed);
  }

  .dph-weather-card.cloudy {
    background: linear-gradient(135deg, #3c8cff, #2b58d7);
  }

  .dph-weather-card.rain {
    background: linear-gradient(135deg, #a9cfe7, #88add0);
  }

  .dph-weather-card.storm {
    background: linear-gradient(135deg, #66718e, #222b51);
  }

  .dph-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 16px;
  }

  .dph-metric-card {
    min-height: 162px;
    display: grid;
    align-content: space-between;
    gap: 16px;
    padding: 22px;
    border: 1px solid var(--dph-border);
    border-radius: var(--dph-radius-lg);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--dph-shadow-soft);
  }

  .dph-metric-card > div {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
  }

  .dph-metric-card small {
    color: #66758c;
    font-size: 15px;
    font-weight: 820;
  }

  .dph-metric-card span {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: #eef6ff;
    color: #49647d;
  }

  .dph-metric-card strong {
    color: #0f1b2d;
    font-size: clamp(30px, 3vw, 44px);
    line-height: 1;
    font-weight: 940;
  }

  .dph-metric-card em {
    color: #6d7c92;
    font-style: normal;
    font-size: 15px;
    font-weight: 650;
  }

  .dph-metric-card.green span {
    background: #ebf9ef;
  }

  .dph-metric-card.red span {
    background: #fff0ee;
  }

  .dph-metric-card.yellow span {
    background: #fff7d8;
  }

  .dph-flow-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.85fr);
    gap: 18px;
  }

  .dph-panel {
    border: 1px solid var(--dph-border);
    border-radius: var(--dph-radius-lg);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--dph-shadow-soft);
  }

  .dph-panel header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 22px 14px;
  }

  .dph-panel h3 {
    margin: 0;
    color: #132033;
    font-size: 22px;
    line-height: 1.1;
    font-weight: 920;
  }

  .dph-panel p {
    margin: 8px 0 0;
    color: #687790;
    font-size: 15px;
    font-weight: 650;
  }

  .dph-risk-panel header > span {
    height: 32px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    border-radius: 999px;
    background: #fff7df;
    color: #9b6a07;
    font-size: 14px;
    font-weight: 850;
    white-space: nowrap;
  }

  .dph-risk-panel header > span svg {
    width: 19px;
    height: 19px;
  }

  .dph-alert-list,
  .dph-action-stack {
    display: grid;
    gap: 12px;
    padding: 0 22px 22px;
  }

  .dph-alert {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-height: 80px;
    padding: 13px 16px;
    border: 1px solid #e2ebf5;
    border-radius: 18px;
    background: #fff;
  }

  .dph-alert > span {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 17px;
    background: #fff1ee;
    color: #55728c;
  }

  .dph-alert strong {
    display: block;
    color: #172033;
    font-size: 16px;
    font-weight: 900;
  }

  .dph-alert small {
    display: block;
    margin-top: 4px;
    color: #708097;
    font-size: 14px;
    font-weight: 650;
  }

  .dph-alert b {
    display: grid;
    place-items: center;
    min-width: 58px;
    height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    background: #fff7df;
    color: #9b6a07;
    font-size: 13px;
    font-weight: 850;
  }

  .dph-alert.yellow > span,
  .dph-alert.yellow b {
    background: #fff8d8;
  }

  .dph-alert.blue > span,
  .dph-alert.blue b {
    background: #eaf5ff;
    color: #2f6b9c;
  }

  .dph-alert.green > span,
  .dph-alert.green b {
    background: #eaf9ef;
    color: #138354;
  }

  .dph-action {
    min-height: 78px;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 22px;
    align-items: center;
    gap: 14px;
    padding: 13px 16px;
    border: 0;
    border-radius: 17px;
    background: #eef6ff;
    color: #16314a;
    text-align: left;
    cursor: pointer;
  }

  .dph-action.primary {
    background: var(--dph-green);
    color: #fff;
  }

  .dph-action strong {
    display: block;
    font-size: 18px;
    line-height: 1.1;
    font-weight: 900;
  }

  .dph-action small {
    display: block;
    margin-top: 5px;
    font-size: 14px;
    font-weight: 680;
    opacity: 0.82;
  }

  .dph-action svg:last-child {
    width: 20px;
    height: 20px;
    justify-self: end;
  }

  @media (max-width: 1199px) {
    .desktop-procurement-home {
      grid-template-columns: 238px minmax(0, 1fr);
    }

    .dph-sidebar {
      padding-left: 12px;
      padding-right: 12px;
    }

    .dph-hero {
      grid-template-columns: 1fr;
    }

    .dph-scene {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .dph-weather-card {
      min-height: 130px;
    }

    .dph-metric-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dph-flow-grid {
      grid-template-columns: 1fr;
    }
  }

  @media (min-width: 1500px) {
    .desktop-procurement-home {
      grid-template-columns: 292px minmax(0, 1fr);
    }

    .dph-content {
      padding-right: 34px;
    }
  }

  html[data-theme="dark"].desktop-procurement-home-active {
    --dph-bg: #08111f;
    --dph-surface: #101a2b;
    --dph-surface-soft: #132238;
    --dph-ink: #f7fbff;
    --dph-muted: #9fb1c9;
    --dph-border: #223349;
    --dph-shadow: 0 22px 55px rgba(0, 0, 0, 0.28);
    --dph-shadow-soft: 0 12px 28px rgba(0, 0, 0, 0.20);
    background: var(--dph-bg);
  }

  html[data-theme="dark"].desktop-procurement-home-active,
  html[data-theme="dark"].desktop-procurement-home-active body {
    background:
      radial-gradient(circle at 75% 7%, rgba(63, 112, 255, 0.20), transparent 30%),
      linear-gradient(180deg, #0b1424 0%, #08111f 100%) !important;
  }

  html[data-theme="dark"].desktop-procurement-home-active .dph-sidebar,
  html[data-theme="dark"].desktop-procurement-home-active .dph-topbar {
    background: rgba(11, 20, 36, 0.82);
  }

  html[data-theme="dark"].desktop-procurement-home-active .dph-venue-select,
  html[data-theme="dark"].desktop-procurement-home-active .dph-profile,
  html[data-theme="dark"].desktop-procurement-home-active .dph-profile button,
  html[data-theme="dark"].desktop-procurement-home-active .dph-top-actions button,
  html[data-theme="dark"].desktop-procurement-home-active .dph-panel,
  html[data-theme="dark"].desktop-procurement-home-active .dph-metric-card,
  html[data-theme="dark"].desktop-procurement-home-active .dph-alert {
    background: rgba(15, 26, 44, 0.92);
    color: var(--dph-ink);
  }

  html[data-theme="dark"].desktop-procurement-home-active .dph-hero {
    background:
      linear-gradient(rgba(116, 160, 230, 0.05) 1px, transparent 1px),
      linear-gradient(90deg, rgba(116, 160, 230, 0.05) 1px, transparent 1px),
      linear-gradient(115deg, rgba(9, 19, 34, 0.95), rgba(18, 37, 70, 0.88) 54%, rgba(31, 42, 70, 0.82));
    background-size: 30px 30px, 30px 30px, auto;
  }

  html[data-theme="dark"].desktop-procurement-home-active .dph-current h2,
  html[data-theme="dark"].desktop-procurement-home-active .dph-topbar h1,
  html[data-theme="dark"].desktop-procurement-home-active .dph-panel h3,
  html[data-theme="dark"].desktop-procurement-home-active .dph-metric-card strong,
  html[data-theme="dark"].desktop-procurement-home-active .dph-alert strong {
    color: var(--dph-ink);
  }

  html[data-theme="dark"].desktop-procurement-home-active .dph-current p,
  html[data-theme="dark"].desktop-procurement-home-active .dph-topbar p,
  html[data-theme="dark"].desktop-procurement-home-active .dph-panel p,
  html[data-theme="dark"].desktop-procurement-home-active .dph-metric-card em,
  html[data-theme="dark"].desktop-procurement-home-active .dph-alert small {
    color: var(--dph-muted);
  }

  html[data-theme="dark"].desktop-procurement-home-active .dph-nav-button.active {
    background: rgba(22, 163, 116, 0.18);
  }
}
