/* Desktop customer workspace. Below 1024px the existing mobile UI is unchanged. */
.desktop-sidebar, .desktop-header, .desktop-home, .customer-login-intro { display: none; }
.customer-login { display: contents; }
.login-desktop-only, .login-intro-eyebrow { display: none; }
.company-entry-notice { display:grid; gap:6px; margin:0 0 20px; padding:13px 14px; border:1px solid #ded0e8; border-radius:11px; background:#f7f2fa; }
.company-entry-notice strong { color:var(--green); font-size:13px; }
.company-entry-notice span { color:var(--muted); font-size:11px; line-height:1.65; }

@media (min-width: 1024px) {
  body.customer-login-entry { min-height: 100vh; padding: 0; background: #f7f6f3; }
  .customer-login-entry .app-shell { width: 100%; max-width: none; min-height: 100vh; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .customer-login-entry .topbar { display: none; }
  .customer-login-entry #screen { min-height: 100vh; padding: 0; animation: none; }
  .customer-login-entry .customer-login { display: grid; grid-template-columns: minmax(440px,46%) minmax(480px,54%); min-height: 100vh; }
  .customer-login-entry .customer-login-intro { position: relative; display: flex; flex-direction: column; min-height: 100vh; padding: clamp(38px,5vw,72px); overflow: hidden; color: #fff; background: linear-gradient(145deg,#261036 0%,#3b1754 52%,#51236d 100%); }
  .customer-login-entry .customer-login-intro::before { content:''; position:absolute; width:520px; height:520px; right:-250px; top:-220px; border:1px solid rgba(255,255,255,.12); border-radius:50%; box-shadow:0 0 0 65px rgba(255,255,255,.025),0 0 0 130px rgba(255,255,255,.018); }
  .customer-login-entry .customer-login-intro::after { content:''; position:absolute; inset:auto 0 0; height:34%; opacity:.14; background:linear-gradient(160deg,transparent 10%,rgba(255,255,255,.08)),radial-gradient(ellipse at 50% 100%,#b896c9 0%,transparent 68%); pointer-events:none; }
  .customer-login-brand { position:relative; z-index:1; display:flex; align-items:center; gap:14px; }
  .customer-login-brand .brand-mark { width:46px; height:46px; flex:0 0 46px; border:1px solid rgba(255,255,255,.16); background:rgba(255,255,255,.12); font-size:28px; }
  .customer-login-brand strong { display:block; font-size:22px; letter-spacing:.04em; }
  .customer-login-brand small { display:block; margin-top:4px; color:rgba(255,255,255,.66); font-size:11px; }
  .customer-login-message { position:relative; z-index:1; width:min(520px,100%); margin:auto 0; padding:70px 0; }
  .customer-login-message .eyebrow { color:#d6ba83; font-size:10px; }
  .customer-login-message h1 { margin:18px 0 20px; font-family:Georgia,'Songti SC',serif; font-size:clamp(38px,3.6vw,54px); font-weight:600; line-height:1.3; letter-spacing:.02em; }
  .customer-login-message>p:not(.eyebrow) { max-width:450px; margin:0; color:rgba(255,255,255,.72); font-size:15px; line-height:1.85; }
  .customer-login-message ul { display:grid; gap:14px; margin:35px 0 0; padding:0; list-style:none; color:rgba(255,255,255,.86); font-size:13px; }
  .customer-login-message li { display:flex; align-items:center; gap:11px; }
  .customer-login-message li span { display:grid; place-items:center; width:21px; height:21px; border:1px solid rgba(255,255,255,.28); border-radius:50%; color:#e2c994; font-size:11px; }
  .customer-login-footnote { position:relative; z-index:1; margin:0; color:rgba(255,255,255,.42); font-size:10px; letter-spacing:.16em; }
  .customer-login-entry .customer-login-form { display:grid; place-items:center; min-width:0; padding:48px clamp(48px,8vw,132px); }
  .customer-login-entry .auth-card { width:min(440px,100%); max-width:none; margin:0; padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; }
  .customer-login-entry .auth-card .eyebrow { margin-bottom:12px; color:#9a7b3d; }
  .customer-login-entry .login-desktop-only, .customer-login-entry .login-intro-eyebrow { display:inline; }
  .customer-login-entry .login-mobile-only { display:none; }
  .customer-login-entry .auth-card h2 { margin:0 0 12px; color:var(--green); font-family:inherit; font-size:31px; letter-spacing:.01em; }
  .customer-login-entry .auth-card>p { margin:0; color:#817487; font-size:13px; }
  .customer-login-entry .auth-card .stack { gap:18px; margin-top:34px; }
  .customer-login-entry .auth-card .stack label { gap:9px; font-size:12px; }
  .customer-login-entry .auth-card .stack input { min-height:52px; padding:14px 16px; border-radius:11px; border-color:#ded5e4; font-size:14px; transition:border-color .16s,box-shadow .16s; }
  .customer-login-entry .auth-card .stack input:focus { outline:0; border-color:#6d3b89; box-shadow:0 0 0 3px #eee5f4; }
  .customer-login-entry .auth-card .primary { min-height:52px; border-radius:11px; box-shadow:0 10px 24px rgba(50,22,79,.16); font-size:14px; }
  .customer-login-entry .auth-card>small { margin-top:22px; padding-top:20px; border-top:1px solid #ebe5ed; color:#978d9c; font-size:11px; }
  .customer-login-entry .dev-code { margin-top:22px; }

  body.customer-company-entry { min-height:100vh; padding:0; background:radial-gradient(circle at 15% 12%,#eee6f3 0,transparent 31%),#f7f6f3; }
  .customer-company-entry .app-shell { width:100%; max-width:none; min-height:100vh; margin:0; padding:0 0 64px; border-radius:0; background:transparent; box-shadow:none; }
  .customer-company-entry .topbar { position:static; width:min(720px,calc(100% - 48px)); margin:0 auto; padding:32px 0 20px; background:transparent; backdrop-filter:none; }
  .customer-company-entry .topbar .icon-button { display:none; }
  .customer-company-entry #screen { width:min(720px,calc(100% - 48px)); margin:0 auto; padding:0; animation:none; }
  .customer-company-entry .auth-card.onboarding { width:100%; max-width:none; margin:8px 0 0; padding:38px 42px 34px; border:1px solid #e5dfe8; border-radius:18px; background:#fffefa; box-shadow:0 18px 55px rgba(50,22,79,.08); }
  .customer-company-entry .company-entry-notice { display:grid; gap:6px; margin:0 0 28px; padding:15px 17px; border:1px solid #ded0e8; border-radius:11px; background:#f7f2fa; }
  .customer-company-entry .company-entry-notice strong { color:var(--green); font-size:13px; }
  .customer-company-entry .company-entry-notice span { color:var(--muted); font-size:11px; line-height:1.65; }
  .customer-company-entry .company-entry-tabs { max-width:420px; margin:0 auto 34px; }
  .customer-company-entry .auth-card.onboarding h2 { margin:12px 0 10px; color:var(--green); font-family:inherit; font-size:29px; }
  .customer-company-entry .auth-card.onboarding>p { max-width:600px; font-size:13px; }
  .customer-company-entry .auth-card.onboarding .stack { grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px 16px; }
  .customer-company-entry .auth-card.onboarding .stack>label:first-child,
  .customer-company-entry .auth-card.onboarding .stack>.primary,
  .customer-company-entry .auth-card.onboarding .stack>small { grid-column:1/-1; }
  .customer-company-entry .auth-card.onboarding .stack input,
  .customer-company-entry .auth-card.onboarding .stack select { min-height:48px; }
  .customer-company-entry .auth-card.onboarding .stack>.primary { max-width:360px; min-height:50px; margin:8px auto 0; }
  .customer-company-entry .logout-link { display:block; width:auto; margin:22px auto 0; }
  body.customer-workspace { --desktop-sidebar-width: 228px; padding: 0; background: #f7f6f3; }
  .customer-workspace .app-shell { max-width: none; min-height: 100vh; margin-left: var(--desktop-sidebar-width); padding-bottom: 0; border-radius: 0; overflow: visible; box-shadow: none; background: transparent; }
  .customer-workspace .topbar, .customer-workspace .bottom-nav, .customer-workspace .mobile-home, .customer-workspace .company-toolbar { display: none; }
  .customer-workspace .desktop-home { display: block; }
  .customer-workspace button:focus-visible, .customer-workspace select:focus-visible, .customer-workspace a:focus-visible { outline: 3px solid #9573b5; outline-offset: 4px; }
  .customer-workspace button:disabled { cursor: wait; opacity: .55; }
  .desktop-sidebar { position: fixed; z-index: 15; inset: 0 auto 0 0; width: var(--desktop-sidebar-width); height: 100dvh; display: flex; flex-direction: column; gap: 32px; padding: 28px 16px 18px; border-right: 1px solid var(--line); background: #fffefa; overflow-y: auto; }
  .desktop-skip { position: absolute; left: 12px; top: -100px; padding: 12px; color: white; background: var(--green); border-radius: 8px; z-index: 20; }
  .desktop-skip:focus { top: 8px; }
  .desktop-brand { display: flex; align-items: center; gap: 12px; padding: 0 7px; }
  .desktop-brand .brand-mark { flex: 0 0 42px; height: 44px; border-radius: 11px; font-size: 29px; }
  .desktop-brand strong { display: block; color: var(--green); font-size: 21px; letter-spacing: .03em; }
  .desktop-brand small { display: block; max-width: 128px; margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.6; text-wrap: balance; }
  .desktop-navigation { display: grid; gap: 9px; }
  .desktop-navigation button { position: relative; display: flex; align-items: center; gap: 17px; width: 100%; min-height: 52px; padding: 13px 20px; border: 0; border-radius: 9px; color: #51425f; background: transparent; text-align: left; font-size: 15px; }
  .desktop-navigation svg { width: 22px; height: 22px; flex-shrink: 0; }
  .desktop-navigation button:hover { background: #f7f3fa; }
  .desktop-navigation button[aria-current] { background: #f0e9f6; color: var(--green); font-weight: 700; }
  .desktop-navigation button[aria-current]::before { content: ''; position: absolute; width: 3px; height: 23px; left: 0; top: 15px; border-radius: 4px; background: #744295; }
  .desktop-company { margin-top: auto; padding: 19px 6px 0; border-top: 1px solid var(--line); }
  .desktop-company-label { color: var(--muted); font-size: 11px; }
  .desktop-company-current { display: grid; grid-template-columns: 29px minmax(0,1fr) 32px; align-items: center; gap: 9px; margin: 9px 0 14px; }
  .desktop-company-current>svg { width: 29px; height: 29px; padding: 4px; color: var(--green-2); background: var(--mint); border-radius: 7px; }
  .desktop-company-current>strong { min-width: 0; overflow: hidden; color: var(--ink); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
  .desktop-company-current>button { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid #ddd1e5; border-radius: 8px; color: #69417e; background: #faf7fc; }
  .desktop-company-current>button:hover { border-color: #bca5ca; background: #f2eaf7; }
  .desktop-company-current>button svg { width: 17px; height: 17px; }
  .desktop-company-actions { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 12px; }
  .desktop-company-actions button { min-height: 32px; padding: 0; border: 0; color: var(--muted); background: transparent; font-size: 11px; }
  .desktop-company-actions button:hover { color: var(--green); }
  .desktop-company-dialog { width: min(440px,calc(100vw - 40px)); max-height: min(680px,calc(100dvh - 64px)); padding: 0; border: 1px solid #e2d9e7; border-radius: 16px; color: var(--ink); background: #fffefa; box-shadow: 0 24px 70px rgba(35,18,49,.24); overflow: auto; }
  .desktop-company-dialog::backdrop { background: rgba(28,17,35,.35); backdrop-filter: blur(2px); }
  .desktop-company-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px 17px; border-bottom: 1px solid var(--line); }
  .desktop-company-dialog-head small { display: block; margin-bottom: 4px; color: #9c854f; font-size: 10px; letter-spacing: .12em; }
  .desktop-company-dialog-head h2 { margin: 0; color: var(--green); font-size: 20px; }
  .desktop-company-dialog-head>button { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; color: #796887; background: #f3edf6; font-size: 22px; }
  .desktop-company-list { display: grid; gap: 9px; padding: 18px 20px; }
  .desktop-company-list>button { display: grid; grid-template-columns: 36px minmax(0,1fr) auto; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 11px 14px; border: 1px solid #e8e0eb; border-radius: 11px; color: var(--ink); background: #fff; text-align: left; }
  .desktop-company-list>button:hover { border-color: #c9b3d5; background: #faf6fc; }
  .desktop-company-list>button[aria-current] { border-color: #bca4cb; background: #f4edf8; }
  .desktop-company-list>button>svg:first-child { width: 36px; height: 36px; padding: 7px; border-radius: 9px; color: #71448e; background: #eee5f4; }
  .desktop-company-list>button>svg:last-child { width: 15px; height: 15px; color: #704287; }
  .desktop-company-list span { display: grid; min-width: 0; gap: 4px; }
  .desktop-company-list strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
  .desktop-company-list small { color: var(--muted); font-size: 10px; }
  .desktop-company-list em { color: #71448e; font-size: 10px; font-style: normal; }
  .desktop-company-create { width: calc(100% - 40px); min-height: 42px; margin: 0 20px 20px; border: 1px dashed #cbb7d7; border-radius: 10px; color: #674079; background: #faf7fc; font-weight: 600; }
  .desktop-header { display: flex; justify-content: space-between; align-items: center; width:100%; max-width:none; height:88px; margin:0; padding:0 40px; }
  .desktop-header h1 { margin: 0; font-size: 24px; letter-spacing: .03em; color: var(--green); }
  .desktop-header-actions { display: flex; align-items: center; gap: 20px; }
  .desktop-header-actions button { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border: 0; background: transparent; color: var(--green); border-radius: 50%; }
  .desktop-header-actions svg { width: 22px; height: 22px; }
  .desktop-header-actions .desktop-account { background: #ece6f2; color: #6d597e; }
  .desktop-notifications.has-unread::after { content: ''; position: absolute; top: 3px; right: 5px; width: 7px; height: 7px; border: 2px solid #f7f6f3; border-radius: 50%; background: #cd5347; }
  .customer-workspace #screen { width: 100%; max-width: 1440px; min-width: 0; margin: 0 auto; padding: 0 32px 36px; animation: none; }
  .desktop-welcome { display: flex; justify-content: space-between; align-items: center; gap: 28px; min-height: 234px; padding: 30px 36px; margin-bottom: 20px; border: 1px solid #eae5ed; border-radius: 14px; background: radial-gradient(ellipse at 78% 110%,#f0e8f6,transparent 65%),linear-gradient(110deg,#fffefa,#fff); box-shadow: 0 3px 16px #33214004; }
  .desktop-welcome-copy { min-width: 0; }
  .desktop-eyebrow { margin: 0 0 14px; color: #9c854f; font-size: 10px; letter-spacing: .18em; font-weight: 700; }
  .desktop-welcome h2 { margin: 0 0 14px; color: var(--green); font-size: clamp(23px,2.2vw,34px); font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
  .desktop-welcome-copy>p:not(.desktop-eyebrow) { margin: 0; color: #7a6a86; font-size: 15px; }
  .desktop-health { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 25px; color: #6d5979; font-size: 12px; }
  .desktop-health>span { width: 6px; height: 6px; border-radius: 50%; background: #8e7d9a; }
  .desktop-health>span.attention { background: #c47649; }
  .desktop-health small { padding-left: 5px; color: #958a9c; font-size: 10px; }
  .desktop-completion { flex-shrink: 0; display: grid; justify-items: center; gap: 14px; padding: 0; border: 0; color: var(--green); background: transparent; }
  .desktop-ring { display: grid; place-items: center; width: 138px; height: 138px; border-radius: 50%; background: conic-gradient(#703b8e var(--completion),#ece6f2 0); }
  .desktop-ring>span { display: grid; place-content: center; gap: 4px; width: 116px; height: 116px; background: #fffdfa; border-radius: 50%; }
  .desktop-ring strong { font-size: 36px; line-height: 1.1; font-weight: 700; }
  .desktop-ring strong small { font-size: 15px; margin-left: 3px; }
  .desktop-ring em { color: #84738f; font-size: 11px; font-style: normal; }
  .desktop-completion>small { display: flex; align-items: center; color: #93859c; font-size: 10px; }
  .desktop-completion svg { width: 12px; height: 12px; }
  .desktop-home-grid { display: grid; grid-template-columns: minmax(0,1.8fr) minmax(280px,1fr); gap: 20px; align-items: start; }
  .desktop-home-column { display: grid; align-content: start; gap: 20px; min-width: 0; }
  .desktop-panel { min-width: 0; padding: 22px; border: 1px solid #eae5ed; border-radius: 13px; background: #fffefa; box-shadow: 0 3px 16px #33214004; }
  .desktop-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 18px; }
  .desktop-panel h3 { position: relative; margin: 0; padding-left: 13px; color: var(--green); font-size: 17px; white-space: nowrap; }
  .desktop-panel h3::before { content: ''; position: absolute; left: 0; top: 2px; bottom: 1px; width: 3px; background: #703b8e; border-radius: 4px; }
  .desktop-text-link { display: inline-flex; justify-content: flex-end; align-items: center; gap: 4px; flex-shrink: 0; padding: 4px 0; border: 0; color: #6b467c; background: transparent; font-size: 11px; white-space: nowrap; }
  .desktop-text-link svg { width: 12px; height: 12px; }
  .desktop-attention-row { display: flex; align-items: center; width: 100%; gap: 12px; margin-top: 10px; padding: 16px 13px; border: 1px solid #ece6ef; border-radius: 9px; color: var(--ink); background: #fff; text-align: left; }
  .desktop-attention-row:hover, .desktop-service-row:hover { border-color: #d1bfdf; background: #fcf9fe; }
  .desktop-risk-icon { display: grid; place-items: center; flex: 0 0 33px; height: 33px; border-radius: 50%; background: #fbf4e6; color: #a5722a; font-size: 18px; font-weight: 700; }
  .desktop-risk-icon.high { color: #b6473b; background: #faeae7; }
  .desktop-risk-icon svg { width: 18px; height: 18px; }
  .desktop-row-copy { flex: 1; display: grid; min-width: 0; gap: 7px; }
  .desktop-row-copy strong { font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
  .desktop-row-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #96849f; font-size: 11px; line-height: 1.6; }
  .desktop-severity { padding: 4px 7px; color: #9c723b; background: #fbf1e3; font-size: 10px; white-space: nowrap; border-radius: 5px; }
  .desktop-severity.high { color: #b44e40; background: #fbe9e5; }
  .desktop-row-action { display: inline-flex; align-items: center; gap: 2px; color: #6d3d86; font-size: 11px; white-space: nowrap; }
  .desktop-row-action svg { width: 13px; height: 13px; }
  .desktop-shortcuts { display: grid; gap: 12px; }
  .desktop-shortcuts button { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 47px; padding: 12px; border-radius: 8px; font-size: 13px; box-shadow: none; }
  .desktop-shortcuts svg { width: 20px; height: 20px; }
  .desktop-outline { border: 1px solid #b49ac8; background: transparent; color: var(--green); font-weight: 600; }
  .desktop-outline:hover { background: #f6f0fa; }
  .desktop-home .activity-list { border: 0; border-radius: 0; box-shadow: none; margin: 0; }
  .desktop-home .activity-row { padding: 15px 0; gap: 12px; }
  .desktop-home .activity-row:first-child { padding-top: 6px; }
  .desktop-home .activity-row:last-child { padding-bottom: 3px; }
  .desktop-home .activity-icon { border-radius: 50%; font-weight: 600; }
  .desktop-home .activity-copy strong { font-size: 13px; }
  .desktop-home .activity-copy span { color: #96849f; }
  .desktop-home .activity-chevron { display: none; }
  .desktop-home .activity-row { grid-template-columns: 38px minmax(0,1fr) auto; }
  .desktop-service-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 17px 12px; margin-top: 10px; border: 1px solid #ece6ef; border-radius: 9px; text-align: left; color: var(--ink); background: #fff; }
  .desktop-service-symbol { display: grid; place-items: center; width: 35px; height: 35px; flex-shrink: 0; border-radius: 50%; color: #71448e; background: #f2eaf8; }
  .desktop-service-symbol svg { width: 20px; height: 20px; }
  .desktop-service-row>svg { flex: 0 0 13px; width: 13px; height: 13px; color: #71448e; }
  .desktop-empty { padding: 22px 4px; color: #887b90; font-size: 12px; line-height: 1.8; }
  .desktop-empty strong { font-size: 13px; color: #6e5e79; font-weight: 500; }
  .desktop-empty p { margin: 7px 0 0; font-size: 11px; }
  .desktop-note { font-size: 11px; line-height: 1.6; color: var(--muted); }
  .desktop-footer { text-align: right; font-size: 10px; letter-spacing: .15em; color: #aaa0af; margin: 24px 0 0; }

  /* Reuse the same customer forms and actions, with readable desktop widths. */
  .customer-workspace #screen:not([data-layout="home"]) { max-width: 1080px; padding-top: 12px; }
  .customer-workspace #screen[data-layout="form"], .customer-workspace #screen[data-layout="conversation"], .customer-workspace #screen[data-layout="detail"] { max-width: 860px; }
  .customer-workspace .page-title { font-family: inherit; font-size: 25px; margin-bottom: 10px; }
  .customer-workspace .card { border-radius: 13px; padding: 22px; }
  .customer-workspace .card p { font-size: 13px; }
  .customer-workspace .section-head h3 { font-family: inherit; font-size: 18px; }
  .customer-workspace #screen:not([data-layout="home"])>.primary, .customer-workspace #screen:not([data-layout="home"])>.secondary { max-width: 360px; display: block; margin-top: 16px; }
  .customer-workspace .consult-message { font-size: 14px; line-height: 1.85; padding: 22px 26px; }
  .customer-workspace .consult-thread-detail .consult-message.is-customer { margin-left: 60px; }
  .customer-workspace .consult-thread-detail .consult-message.is-staff { margin-right: 40px; }
  .customer-workspace .consult-form textarea { min-height: 125px; }
  .customer-workspace .consult-focus .consult-new-form { min-height: 0; }
  .customer-workspace .consult-focus .consult-question-label { font-family: inherit; font-size: 15px; }
  .customer-workspace .consult-focus .consult-question-label textarea { min-height: 240px; font-size: 14px; font-weight: 400; }
  .customer-workspace .consult-focus .consult-new-form>.primary { align-self: flex-end; width: auto; min-width: 180px; margin-top: 4px; }
  .customer-workspace [data-service-catalog-list] { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; align-items: stretch; }
  .customer-workspace .service-product-card { margin: 0; }
  .customer-workspace .service-catalog-note { margin-top: 20px; }
  .customer-workspace .enterprise-profile { display: block; }
  .customer-workspace .profile-groups { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; align-items: start; }
  .customer-workspace .profile-column { display: grid; align-content: start; gap: 16px; min-width: 0; }
  .customer-workspace .enterprise-profile .profile-group { margin: 0; padding: 0; }
  .customer-workspace .profile-group-body { padding: 0 20px 8px; }
  .customer-workspace .profile-group-summary { padding: 18px 20px; }
  .customer-workspace .risk-actions { grid-template-columns: repeat(var(--risk-action-count),minmax(0,1fr)); gap: 12px; margin-top: 16px; --risk-action-count: 3; }
  .customer-workspace .risk-actions[data-count="1"] { --risk-action-count: 1; max-width: 360px; }
  .customer-workspace .risk-actions[data-count="2"] { --risk-action-count: 2; }
  .customer-workspace .risk-actions button { width: 100%; min-height: 50px; margin: 0; padding: 12px 16px; border-radius: 10px; }
  .customer-workspace .pwa-prompt { left: auto; right: 24px; margin: 0; }
  .customer-workspace .toast { left: calc(50% + var(--desktop-sidebar-width)/2); bottom: 28px; }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  body.customer-workspace { --desktop-sidebar-width: 204px; }
  .desktop-sidebar { padding-left: 12px; padding-right: 12px; }
  .desktop-header { padding: 0 28px; }
  .customer-workspace #screen { padding-left: 24px; padding-right: 24px; }
  .desktop-home-grid { grid-template-columns: minmax(0,1.5fr) minmax(255px,1fr); gap: 16px; }
  .desktop-panel { padding: 17px; }
  .desktop-severity { display: none; }
  .desktop-attention-row { flex-wrap: wrap; gap: 8px; }
  .desktop-attention-row .desktop-row-action { margin-left: auto; }
  .desktop-completion { max-width: 175px; }
  .desktop-welcome { padding: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .customer-workspace #screen { animation: none; }
}
