@media screen {
  body { background: #f4f6f8; }
  .portal-app { min-height: 100dvh; background: none; display: flex; flex-direction: column; }
  .portal-app .portal-shell { width: 100%; max-width: none; display: block; padding: 0; margin: 0; flex: 1; }
  .portal-app .portal-main { width: min(1120px, calc(100% - 64px)); padding: 0; margin: 0 auto; min-width: 0; }
  .desk-topbar { height: 76px; flex: 0 0 76px; display: flex; align-items: center; gap: 40px; padding: 0 max(32px, calc((100% - 1280px) / 2)); background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
  .desk-brand { border: 0; background: transparent; padding: 0; display: flex; align-items: center; gap: 9px; color: var(--text); cursor: pointer; white-space: nowrap; }
  .desk-brand > img { width: 34px; height: 34px; object-fit: contain; }
  .desk-wordmark { font-size: 25px; font-weight: 750; line-height: 1; }
  .desk-brand-copy { display: flex; flex-direction: column; gap: 1px; border-left: 1px solid var(--line); margin-left: 7px; padding-left: 16px; text-align: left; font-size: 11px; line-height: 1.6; color: var(--muted); }
  .desk-brand-copy strong { font-size: 13px; color: var(--text); font-weight: 600; }
  .desk-nav { height: 100%; display: flex; margin-left: 20px; }
  .desk-nav a { display: flex; gap: 8px; align-items: center; color: var(--text); text-decoration: none; border-bottom: 2px solid var(--red); padding: 2px 6px 0; font-size: 14px; font-weight: 600; }
  .desk-nav svg, .desk-icon-button svg, .desk-section-title svg, .desk-search svg, .desk-open svg, .desk-recent svg { width: 18px; height: 18px; flex: 0 0 18px; }
  .desk-header-actions { margin-left: auto; display: flex; gap: 7px; }
  .desk-icon-button { width: 36px; height: 36px; display: grid; place-items: center; background: #fff; border: 1px solid transparent; border-radius: 6px; padding: 0; cursor: pointer; color: var(--muted); }
  .desk-icon-button:hover { color: var(--text); background: var(--paper-soft); border-color: var(--line); }
  .desk { padding: 40px 0 32px; scroll-margin-top: 96px; }
  .desk-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 32px; }
  .desk-greeting { color: var(--muted); font-size: 13px; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
  .desk-greeting > span { width: 6px; height: 6px; background: var(--red); border-radius: 50%; }
  .desk-heading h1 { font-size: 30px; line-height: 1.4; margin: 0; font-weight: 650; }
  .desk-date { display: grid; gap: 2px; border-left: 1px solid var(--line-strong); padding-left: 22px; min-width: 110px; color: var(--muted); font-size: 12px; }
  .desk-date strong { font-size: 15px; color: var(--text); font-weight: 550; }
  .desk-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 0 18px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
  .desk-section-title { display: flex; align-items: center; gap: 9px; }
  .desk-section-title > svg { color: var(--muted); }
  .desk-section-title h2 { font-size: 15px; margin: 0; font-weight: 650; }
  .desk-section-title > span { font-size: 11px; color: var(--muted); background: #e9edf1; border-radius: 4px; padding: 1px 6px; }
  .desk-search { display: flex; align-items: center; gap: 10px; width: 300px; height: 38px; padding: 0 12px; background: #fff; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); }
  .desk-search:focus-within { outline: 2px solid var(--red); outline-offset: 2px; }
  .desk-search input { width: 100%; min-width: 0; border: 0 !important; padding: 0; height: 100%; font-size: 13px; outline: none !important; box-shadow: none; }
  .desk-search button { width: 24px; height: 24px; padding: 3px; border: 0; background: none; color: var(--muted); cursor: pointer; }
  .desk-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .desk-tool { --tool-color: #be443b; --tool-soft: #fff1ed; min-width: 0; background: #fff; border: 1px solid #dde3e8; border-radius: 8px; padding: 24px 24px 0; overflow: hidden; transition: border-color 180ms, box-shadow 180ms; animation: desk-enter 300ms ease-out both; animation-delay: calc(var(--item-index) * 40ms); }
  .desk-tool-payroll-tool { --tool-color: #307b67; --tool-soft: #eef7f3; }
  .desk-tool-cheque-consistency { --tool-color: #3c6fa6; --tool-soft: #eff4fa; }
  .desk-tool-atm-card-expiry-reminder { --tool-color: #9a711e; --tool-soft: #fcf6e9; }
  .desk-tool:hover, .desk-tool:focus-within { border-color: #b9c4ce; box-shadow: 0 6px 18px rgba(35, 49, 61, .055); }
  .desk-tool-top { display: flex; align-items: center; gap: 17px; position: relative; min-height: 58px; }
  .portal-app .desk-artwork { width: 58px; height: 58px; flex: 0 0 58px; display: grid; place-items: center; padding: 0; background: none; border-radius: 8px; }
  .portal-app .desk-artwork > img { width: 100%; height: 100%; transform: none; filter: none; }
  .desk-tool-title { min-width: 0; }
  .desk-tool-title > span { font-size: 11px; color: var(--tool-color); font-weight: 600; }
  .desk-tool h3 { margin: 3px 0 0; font-size: 20px; font-weight: 650; line-height: 1.4; }
  .desk-tool-index { font-size: 12px; color: #9ba5ae; margin-left: auto; align-self: flex-start; font-variant-numeric: tabular-nums; }
  .desk-tool-description { margin: 20px 0 12px; color: #68727d; font-size: 13px; line-height: 1.8; min-height: 24px; }
  .desk-tool-tags { display: flex; flex-wrap: wrap; list-style: none; gap: 0; margin: 0 0 21px; padding: 0; color: #555f69; font-size: 12px; }
  .desk-tool-tags li + li::before { content: ""; display: inline-block; width: 1px; height: 10px; background: #d6dde3; vertical-align: -1px; margin: 0 12px; }
  .desk-tool-bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0 -24px; padding: 12px 24px; border-top: 1px solid #edf0f3; background: #fcfdfd; }
  .desk-tool-note { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #79838e; }
  .desk-tool-note > span { height: 4px; width: 4px; border-radius: 50%; background: #a4afb7; }
  .desk-open { display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid transparent; border-radius: 5px; min-height: 36px; min-width: 118px; padding: 7px 11px; color: var(--tool-color); background: var(--tool-soft); font-size: 13px; font-weight: 600; cursor: pointer; transition: background 150ms, color 150ms; }
  .desk-open:hover { color: #fff; background: var(--tool-color); }
  .desk-recent { margin-top: 30px; display: flex; gap: 24px; align-items: center; padding: 20px 0 0; border-top: 1px solid var(--line); }
  .desk-recent h2 { display: flex; gap: 7px; align-items: center; color: var(--muted); font-size: 12px; font-weight: 500; flex-shrink: 0; margin: 0; }
  .desk-recent > div { display: flex; gap: 22px; flex-wrap: wrap; }
  .desk-recent button { display: flex; gap: 8px; align-items: center; color: #525e69; font-size: 12px; padding: 0; min-height: 36px; background: none; border: 0; cursor: pointer; }
  .desk-recent button:hover { color: var(--red); }
  .portal-app .desk-recent-artwork { width: 24px; height: 24px; flex: 0 0 24px; }
  .desk-recent button > svg { width: 14px; height: 14px; opacity: .5; }
  .desk-empty { min-height: 350px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
  .desk-empty > svg { width: 32px; height: 32px; color: var(--muted); }
  .desk-empty h3 { margin: 15px 0 0; font-size: 18px; }
  .desk-empty p { color: var(--muted); font-size: 13px; }
  .portal-app .site-record-footer { width: 100%; margin: 0; padding: 20px 24px; border-top: 1px solid var(--line); background: none; font-size: 11px; gap: 8px 18px; color: #879099; }
  .portal-app .site-record-footer a { color: #79838b; }
  .portal-app[data-density="compact"] .desk { padding-top: 26px; }
  .portal-app[data-density="compact"] .desk-tool { padding-top: 18px; }
  .portal-app[data-density="compact"] .desk-tool-description { margin-top: 12px; }
  .portal-app[data-density="compact"] .desk-tool-tags { margin-bottom: 14px; }
  .app-modal-backdrop { background: rgba(28, 35, 42, .4); backdrop-filter: blur(4px); padding: 24px; }
  .portal-app .app-modal { border: 1px solid #d9dfe5; border-radius: 8px; background: #fff; box-shadow: 0 24px 80px rgba(16, 29, 39, .2); }
  .portal-app .app-modal-head { min-height: 68px; padding: 12px 68px 12px 24px; background: #fff; border-bottom: 1px solid var(--line); justify-content: flex-start; }
  .portal-app .app-modal-title { justify-content: flex-start; text-align: left; gap: 12px; margin: 0; width: 100%; }
  .portal-app .modal-artwork { width: 38px; height: 38px; flex: 0 0 38px; }
  .portal-app .app-modal-title-copy h2 { margin: 0; font-size: 19px; line-height: 1.4; }
  .portal-app .app-modal-title-copy p, .portal-app .app-modal-title-copy > span { display: none; }
  .portal-app .app-modal-head .icon-button { width: 34px; height: 34px; border-radius: 6px; background: #f5f7f9; border: 1px solid var(--line); color: var(--muted); right: 20px; box-shadow: none; }
  .app-modal-head .icon-button svg { width: 18px; height: 18px; }
  .corporate-screen .corporate-toolbar { background: #f8f9fb; }
  .corporate-step-body .choice-panel-head { padding: 0 0 20px; }
  .portal-app .corporate-step-body .start-selector-head h2 { font-size: 24px; line-height: 1.4; }
  .portal-app .corporate-step-body .start-choice > span { font-weight: 400; font-size: 13px; }
  .corporate-step-body .choice-panel-head h2, .corporate-step-body .screen-header h1 { font-size: 24px; line-height: 1.4; margin-bottom: 6px; }
  .corporate-step-body .screen-copy, .corporate-step-body .choice-panel-head p { font-size: 13px; line-height: 1.7; color: var(--muted); }
  .corporate-step-body .start-selector-section { padding: 0; border: 0; background: transparent; box-shadow: none; }
  .corporate-step-body .start-choice { min-height: 94px; padding: 16px; border-radius: 6px; border: 1px solid var(--line); background: #fff; box-shadow: none; }
  .corporate-step-body .start-choice.active { border-color: var(--red); background: var(--red-soft); box-shadow: inset 0 0 0 1px var(--red); }
  .corporate-step-body .start-choice:disabled { background: #f7f8fa; }
  .corporate-step-body .choice-card-portal { border-radius: 6px; border: 1px solid var(--line); box-shadow: none; background: #fff; padding: 18px; }
  .corporate-step-body .choice-card-portal:hover { border-color: var(--red); background: var(--red-soft); }
  .corporate-step-body .choice-title { font-size: 16px; }
  .corporate-step-body .choice-desc { font-size: 13px; }
  .corporate-step-body .module-icon { border-radius: 6px; box-shadow: none; }
  .corporate-step-body .corporate-progress { border-radius: 6px; background: var(--green-soft); border-color: #d7e8df; color: var(--green); }
  .portal-app .corporate-step-body .corporate-group { border: 0; padding: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .corporate-step-body .corporate-check { border-radius: 4px; padding: 12px; }
  .corporate-step-body .material-title { font-size: 14px; }
  .portal-app .corporate-step-body .material-note { font-size: 12px; font-weight: 400; line-height: 1.65; }
  .corporate-dialog-footer { background: #fff; }
  .command-palette { border-radius: 8px; border-color: var(--line); }
  .command-result { border-radius: 6px; }
  .brand-easter-egg { background: #fff; color: var(--text); border-color: var(--line); border-radius: 8px; box-shadow: var(--shadow); }
  .brand-easter-copy strong { color: var(--text); font-size: 21px; }
  .brand-easter-label { color: var(--red); }
  @keyframes desk-enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
  @media (max-width: 760px) {
    .desk-topbar { height: 64px; flex-basis: 64px; padding: 0 20px; gap: 14px; }
    .desk-nav { display: none; }
    .desk-brand-copy { padding-left: 12px; }
    .portal-app .portal-main { width: calc(100% - 40px); }
    .desk { padding-top: 28px; }
    .desk-heading { padding-bottom: 26px; }
    .desk-heading h1 { font-size: 25px; }
    .desk-date { min-width: auto; padding-left: 14px; }
    .desk-toolbar { flex-wrap: wrap; gap: 14px; margin-bottom: 16px; }
    .desk-search { width: 100%; height: 42px; }
    .desk-tools { gap: 14px; }
    .desk-tool { padding: 20px 18px 0; }
    .desk-tool h3 { font-size: 18px; }
    .desk-tool-top { gap: 12px; }
    .desk-tool-index { display: none; }
    .portal-app .desk-artwork { width: 48px; height: 48px; flex-basis: 48px; }
    .desk-tool-bottom { margin: 0 -18px; padding: 10px 18px; }
    .desk-tool-description { min-height: 47px; }
    .desk-tool-note { display: none; }
    .desk-open { margin-left: auto; }
    .desk-recent { flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 22px; }
    .desk-recent > div { gap: 8px 16px; }
    .portal-app .app-modal-backdrop { padding: 10px; }
    .portal-app .app-modal { max-height: calc(100dvh - 20px); }
    .portal-app .app-modal-head { padding-left: 16px; }
  }
  @media (max-width: 560px) {
    .desk-tools { grid-template-columns: 1fr; }
    .desk-header-actions { gap: 2px; }
    .desk-density { display: none; }
    .desk-topbar { padding: 0 16px; gap: 6px; }
    .desk-brand > img { width: 29px; height: 29px; }
    .desk-wordmark { font-size: 22px; }
    .desk-brand-copy { margin-left: 4px; padding-left: 12px; }
    .portal-app .portal-main { width: calc(100% - 32px); }
    .desk-heading h1 { font-size: 23px; }
    .desk-date { display: none; }
    .desk-tool-description { min-height: 0; margin-top: 16px; }
    .desk-tool-note { display: flex; font-size: 11px; }
    .desk-open { min-height: 40px; min-width: 110px; }
    .desk-tool-tags { margin-bottom: 16px; }
    .desk-recent > div { flex-direction: column; width: 100%; gap: 0; }
    .desk-recent button { width: 100%; min-height: 44px; border-bottom: 1px solid var(--line); }
    .desk-recent button > svg { margin-left: auto; }
    .portal-app .app-modal-backdrop { padding: 0; }
    .portal-app .app-modal { width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 0; border: 0; }
    .portal-app .app-modal-head { min-height: 62px; }
    .portal-app .app-modal-title-copy h2 { font-size: 17px; }
    .corporate-step-body .choice-panel-head h2, .corporate-step-body .screen-header h1, .portal-app .corporate-step-body .start-selector-head h2 { font-size: 21px; }
    .portal-app .corporate-step-body .start-choice > span { display: block; font-size: 12px; line-height: 1.5; }
    .portal-app .corporate-step-body .customer-grid .start-choice { min-height: 108px; }
    .portal-app .corporate-step-body .choice-desc { display: block; font-size: 12px; line-height: 1.6; }
  }
}
