/* CONAN-RESPONSIVE-DESKTOP-V1
 * Presentation only. Phone styles and existing event handlers remain authoritative.
 * All overrides are limited to wide viewports.
 */
@media (min-width:1024px) {
  body { background:#eef1f5; }
  body .phone { display:flex; flex-direction:column; width:calc(100% - 64px); max-width:1200px; min-height:100dvh; margin:0 auto; padding:0 0 24px; box-shadow:0 8px 48px #172b4908; }
  body:has(.points-page) .phone { max-width:1200px; }
  body .phone > #app { flex:1; min-width:0; width:100%; padding:32px; }
  body .phone > #bottom { position:sticky; order:-1; top:0; bottom:auto; left:auto; right:auto; transform:none; width:100%; max-width:none; min-height:76px; margin:0; padding:12px 28px; display:flex; align-items:center; gap:12px; border-top:0; border-bottom:1px solid #e4e9f0; background:#fff; z-index:50; }
  body .phone > #bottom::before { content:"\67EF\5357\7F51\7EDC" !important; margin-right:auto; font-size:22px; font-weight:750; letter-spacing:1px; color:#172b49; white-space:nowrap; }
  body .phone #bottom .nav-item { flex-direction:row; justify-content:center; gap:8px; min-width:104px; min-height:44px; padding:8px 16px; border-radius:12px; font-size:15px; color:#66748b; }
  body .phone #bottom .nav-item svg { width:22px; height:22px; padding:0; box-sizing:border-box; }
  body .phone #bottom .nav-item.active { color:#172b49; background:#fff4bf; font-weight:700; }
  body .phone #bottom .nav-item.active svg { width:22px; height:22px; padding:0; background:none; border-radius:0; }
  body .phone > #header { padding:20px 32px; }
  body .phone > .page-footer { padding:22px 32px; text-align:center; }
  body .phone > .float-support { position:fixed; right:max(22px,calc((100vw - 1200px)/2 + 22px)); left:auto; bottom:30px; z-index:55; }
  body .phone .cp-page { padding-bottom:24px; }

  /* Account: wallet and invite at left; shortcuts and help at right. */
  body .phone .cp-account-head { padding:36px 40px 54px; min-height:176px; gap:18px; }
  body .phone .cp-avatar { width:72px; height:72px; }
  body .phone .cp-identity h1 { font-size:30px; }
  body .phone .cp-identity p { font-size:14px; }
  body .phone .cp-account-body { display:grid; grid-template-columns:360px minmax(0,1fr); grid-template-areas:"wallet records" "invite tools" "logout tools"; gap:20px 24px; padding:0 32px; margin-top:-24px; align-items:start; }
  body .phone .cp-account-body > * { min-width:0; margin:0; }
  body .phone .cp-wallet { grid-area:wallet; padding:24px; }
  body .phone .cp-records { grid-area:records; padding:24px; min-height:100%; }
  body .phone .cp-invite { grid-area:invite; padding:20px; }
  body .phone .cp-tools { grid-area:tools; padding:24px; }
  body .phone .cp-logout { grid-area:logout; }
  body .phone .cp-card h2 { font-size:20px; }
  body .phone .cp-record-grid { padding-top:30px; gap:8px; }
  body .phone .cp-record { gap:14px; min-height:130px; font-size:15px!important; }
  body .phone .cp-shortcut-icon { width:60px; height:60px; border-radius:18px; }
  body .phone .cp-shortcut-icon svg { width:32px; height:32px; }
  body .phone .cp-link { min-height:62px; }

  /* Directory: a stable category rail and a multi-column content area. */
  body .phone .cp-directory-head { padding:32px 40px; display:grid; grid-template-columns:minmax(0,1fr) minmax(320px,440px); column-gap:40px; align-items:center; }
  body .phone .cp-directory-head .cp-brand { grid-column:1; }
  body .phone .cp-directory-head h1 { grid-column:1; font-size:38px; }
  body .phone .cp-directory-head > p { grid-column:1; }
  body .phone .cp-directory-head .cp-search { grid-column:2; grid-row:1 / span 3; margin:0; }
  body .phone .cp-services > .yu-services { padding:8px 32px 24px; }
  body .phone .cp-services .yu-directory { display:grid; grid-template-columns:192px minmax(0,1fr); margin-top:20px; min-height:560px; overflow:visible; border-radius:20px; }
  body .phone .cp-services .yu-sidebar { position:sticky; top:96px; align-self:start; padding:14px 0; max-height:calc(100dvh - 116px); overflow-y:auto; border-radius:20px 0 0 20px; }
  body .phone .cp-services .yu-sidebar button { width:100%; min-height:60px; justify-content:flex-start; padding:16px 22px; gap:12px; font-size:15px; }
  body .phone .cp-services .yu-sidebar svg { width:22px; height:22px; }
  body .phone .cp-services .yu-directory-content { padding:28px; border-radius:0 20px 20px 0; }
  body .phone .cp-services .yu-group-head h2 { font-size:25px; }
  body .phone .cp-services .yu-group-head small { font-size:12px; }
  body .phone .cp-services .yu-item-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin-top:18px; }
  body .phone .cp-services .yu-item-grid .cp-topic { min-height:108px; padding:18px 14px; gap:12px; flex-direction:row; text-align:left; }
  body .phone .cp-topic-copy strong { font-size:15px; }
  body .phone .cp-topic-icon { width:42px; height:42px; }
  body .phone .cp-reminder { padding:18px; margin-top:26px; }
  body .phone .cp-reminder strong,body .phone .cp-reminder span { font-size:13px; }
  body .phone .cp-directory-help { padding:16px 18px; font-size:14px!important; }

  /* Existing home and history use the same wider shell. */
  body .phone .hero { padding:36px; }
  body .phone .catalog-home-grid,body .phone .yu-category-grid { grid-template-columns:repeat(6,minmax(0,1fr)); gap:16px; }
  body .phone .service-grid { gap:20px; }
  body .phone .yu-home-categories { padding:24px; }
  body .phone .yu-category { min-height:100px; justify-content:center; font-size:14px; gap:12px; }
  body .phone .yu-service-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:28px; }
  body .phone .catalog-home-grid .service { min-height:112px; padding:18px 8px; background:#fff; border:1px solid #e8ecf2; }
  body .phone .tt-panel { width:100%; }
  body .phone .tt-scroll { overflow-x:auto; }
  body .phone .tt-table { width:100%; min-width:700px; }
  body .phone .tt-table th,body .phone .tt-table td { padding:18px 20px; }
  body .phone .tt-pagination { justify-content:flex-end; gap:18px; }
  body .phone .points-plans { grid-template-columns:repeat(3,minmax(0,1fr)); }
  #overlay .sheet { width:min(600px,calc(100vw - 64px)); max-width:600px; max-height:85dvh; border-radius:20px; margin:auto; }
}
@media (min-width:1400px) {
  body .phone .cp-services .yu-item-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
}
