/* Desktop presentation only. Phone rules remain in theme.css.
   Neutral wrappers preserve the existing mobile reading order. */
.character-summary-column,
.character-detail-layout,
.today-layout,
.today-summary,
.today-feed { display: contents; }
.character-summary-column > .weekly-growth { margin: 0; }

/* Compact navigation for tablets and narrow desktop windows. */
@media (min-width: 761px) and (max-width: 1099px) {
  .sidebar { width: 80px; padding: 26px 12px; }
  .brand { margin: 0 0 34px; justify-content: center; }
  .brand > div, .nav .label, .sidebar-bottom { display: none; }
  .nav button { justify-content: center; padding: 14px; }
  .nav button.active:after { display: none; }
  .workspace { margin-left: 80px; width: calc(100% - 80px); }
  .topbar { padding-inline: 24px; }
  .breadcrumb { font-size: 11px; }
  .app-main { padding-inline: 24px; }
}

@media (min-width: 761px) {
  .app-main { width: 100%; max-width: 1640px; }
  .app-main .intro h1 { font-size: clamp(34px, 3vw, 46px); }
  .app-main .intro { margin-bottom: 28px; }
  .topbar-right { margin-left: auto; gap: 12px; }
  .profile-button { max-width: 240px; min-width: 0; }
  .profile-button > div:not(.avatar) { min-width: 0; }
  .profile-button strong, .profile-button span {
    display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .app-main .card { border-radius: 12px; }
  .app-main .loadout-grid { grid-template-columns: repeat(auto-fit, minmax(225px, 1fr)); gap: 12px; }
  .app-main .loadout-slot { min-height: 104px; padding: 16px; }
  .app-main .loadout-copy strong { font-size: 13px; }
  .app-main .loadout-label, .app-main .loadout-status { font-size: 11px; }
  .app-main .loadout-group { padding: 8px 24px 24px; }
  .app-main .loadout-group + .loadout-group { border-top: 1px solid #39526c60; padding-top: 24px; }
  .app-main .loadout-foot { max-width: none; }
  .app-main .soul-help-card { margin-top: 24px; padding: 26px; }
  .app-main .soul-help-card h2 { font-size: 25px; }

  /* A gallery of square, chronological timers, sized for the available width. */
  .app-main .timer-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
  .app-main .timer-card.timer-tile { padding: 22px; border-radius: 14px; }
  .app-main .timer-tile h3 { font-size: clamp(18px, 8cqi, 24px); }
  .app-main .timer-tile .big-count { font-size: clamp(32px, 18cqi, 52px); }
  .app-main .timer-tile .timer-tile-art { opacity: .24; }
  .app-main .timer-tile .timer-count-row > span { font-size: 13px; }
  .app-main .timer-tile .timer-start-time { font-size: 13px; line-height: 1.5; }
  .app-main .timer-card:hover { border-color: #89bdd4; }
  .app-main .timer-page-head h1 { font-size: 42px; }
  .app-main .timer-server { margin-bottom: 16px; }
  .app-main .timer-toolbar { margin-bottom: 22px; padding-bottom: 8px; }
  .app-main .timer-reset-heading { margin: 34px 0 18px; font-size: 28px; }
  .app-main .timer-page-footer { flex-direction: row; justify-content: space-between; gap: 24px; }
  .app-main .timer-method { max-width: 620px; }

  /* Shopping cards stay readable instead of spanning the monitor. */
  .app-main .buy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
  .app-main .weekly-shop { display: flex; flex-direction: column; padding: 24px; }
  .app-main .weekly-shop-top { align-items: center; }
  .app-main .weekly-shop-top h3 { font-size: 18px; line-height: 1.4; }
  .app-main .weekly-shop-actions { margin-top: auto; padding-top: 20px; }
  .app-main .buy-card { display: flex; flex-direction: column; }
  .app-main .buy-head { padding: 24px; }
  .app-main .buy-head h2 { font-size: 25px; }
  .app-main .buy-card li { padding-block: 18px; }
  .app-main .buy-card li strong { font-size: 14px; }
  .app-main .buy-card li p, .app-main .weekly-shop > p { font-size: 13px; }
  .app-main .currency-section-title { margin-top: 36px; }
  .app-main .settings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .app-main .settings-card { padding: 28px; }
  .app-main .settings-card h2 { font-size: 26px; }
  .app-main .app-foot { margin-top: 40px; padding-bottom: 12px; }
  .link-gate-card { width: min(100%, 480px); padding: 40px; }
  .link-gate-card h1 { font-size: 36px; }
  .link-gate-card > p { font-size: 16px; }
}

@media (min-width: 1100px) {
  .sidebar { width: 220px; padding: 30px 18px; }
  .brand { gap: 10px; margin: 0 0 38px; }
  .brand strong { font-size: 23px; }
  .brand span { font-size: 9px; letter-spacing: 1px; }
  .nav { gap: 8px; }
  .nav button { min-height: 52px; border-radius: 8px; padding: 14px; }
  .sidebar-bottom { padding-inline: 10px; }
  .workspace { margin-left: 220px; width: calc(100% - 220px); }
  .topbar { height: 78px; padding-inline: clamp(28px, 2.5vw, 48px); }
  .app-main { padding: 34px clamp(28px, 2.5vw, 48px) 64px; }
  .breadcrumb { font-size: 11px; letter-spacing: .5px; }
  .profile-button strong { font-size: 14px; }
  .profile-button span { font-size: 12px; }

  /* One ordered daily queue, with accomplishments in a separate desktop column. */
  .today-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
  .today-summary { display: block; grid-column: 2; grid-row: 1; min-width: 0; }
  .today-feed { display: block; grid-column: 1; grid-row: 1; min-width: 0; }
  .today-summary .task-progress { margin: 0; padding: 24px; }
  .today-summary .growth-heading { flex-wrap: wrap; gap: 18px; padding-right: 20px; }
  .today-summary .growth-heading h2 { font-size: 24px; }
  .today-summary .growth-stats, .today-summary .task-progress-stats { gap: 12px; }
  .today-summary .growth-stat + .growth-stat { padding-left: 12px; }
  .today-summary .growth-stat strong { font-size: 34px; }
  .today-summary .growth-stat > span { font-size: 12px; }
  .today-summary .adventurer-badge { font-size: 12px; }
  .today-summary .task-progress-help { font-size: 12px; }
  .today-summary .guest-save-prompt { display: block; margin-top: 20px; }
  .today-summary .guest-save-prompt .button-row { margin-top: 16px; flex-wrap: wrap; }
  .today-summary .guest-save-prompt .button { white-space: normal; }
  .today-feed .reset-strip { min-height: 48px; gap: 10px 20px; padding: 0 0 18px; margin: 0 0 22px; }
  .today-feed .queue-list { gap: 18px; }
  .today-feed .queue-list .queue-row { padding: 24px; gap: 14px; }
  .today-feed .queue-heading h3 { font-size: 19px; }
  .today-feed .queue-copy .task-how { font-size: 14px; }
  .today-feed .queue-copy .task-why { font-size: 13px; }
  .today-feed .queue-actions { grid-template-columns: minmax(0, 1fr) 120px; padding-top: 4px; }
  .today-feed .queue-actions > button { font-size: 13px; min-height: 48px; }
  .today-feed .all-resources { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1280px) {
  /* Character and weekly growth anchor the left; the next upgrade owns the right. */
  .character-overview { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 24px; align-items: start; }
  .character-summary-column { display: grid; gap: 24px; min-width: 0; }
  .character-profile { grid-template-columns: 142px minmax(0, 1fr); }
  .character-profile .character-portrait { margin: 26px 0 0 24px; }
  .character-profile .character-identity { padding: 26px 24px 0 20px; }
  .character-profile .character-identity > .eyebrow { padding-right: 94px; font-size: 10px; letter-spacing: 1px; line-height: 1.6; min-height: 32px; }
  .character-profile .character-identity > h2 { padding-right: 0; font-size: clamp(30px, 2.4vw, 40px); margin: 10px 0; }
  .character-profile .character-identity p { font-size: 14px; }
  .character-profile .character-identity > .small { font-size: 12px; }
  .character-profile-tools { top: 20px; right: 20px; }
  .character-profile-tools .button { font-size: 11px; min-height: 36px; padding: 8px; gap: 5px; }
  .character-profile .character-numbers { grid-column: 1 / -1; margin: 24px; padding-top: 20px; gap: 24px; }
  .character-profile .character-numbers > div + div { border-left: 1px solid #38516970; padding-left: 24px; }
  .character-profile .character-numbers strong { font-size: clamp(30px, 2.5vw, 40px); }
  .character-profile .character-numbers span { font-size: 10px; }
  .character-sync-note { padding: 16px 24px; }
  .character-summary-column .weekly-growth { padding: 24px; }
  .character-summary-column .growth-heading { gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
  .character-summary-column .growth-heading h2 { font-size: 27px; }
  .character-summary-column .growth-stats { gap: 12px; }
  .character-summary-column .growth-stat + .growth-stat { padding-left: 12px; }
  .character-summary-column .growth-stat strong { font-size: clamp(24px, 2vw, 34px); }
  .character-summary-column .growth-stat > span { font-size: 11px; }
  .character-summary-column .growth-footer { flex-wrap: wrap; }
  .character-overview .upgrade-feature { padding: 28px; }
  .character-overview .upgrade-feature > h2 { font-size: 32px; margin-bottom: 20px; }
  .character-overview .upgrade-dungeon { gap: 18px; padding-block: 20px; }
  .character-overview .upgrade-dungeon h3 { font-size: 18px; }
  .character-overview .upgrade-dungeon p { font-size: 12px; }
  .character-overview .dungeon-target-row { padding: 14px; }
  .character-overview .upgrade-target-actions { gap: 12px; }
  .character-overview .upgrade-target-actions > .button { min-height: 48px; }
  .app-main .soul-help-card { display: block; }
  .app-main .soul-help-card .material-guides { margin-top: 0; }
}

@media (min-width: 1600px) {
  .today-layout { grid-template-columns: minmax(0, 1fr) 370px; gap: 32px; }
  .app-main .buy-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .app-main .settings-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .character-overview { gap: 28px; }
  .character-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
  .character-detail-layout > .power-upgrade { grid-column: 2; grid-row: 1; margin: 0; }
  .character-detail-layout > .loadout-card { grid-column: 1; grid-row: 1; min-width: 0; }
  .character-detail-layout:not(:has(.power-upgrade)) > .loadout-card { grid-column: 1 / -1; }
  .character-detail-layout .power-heading h2 { font-size: 25px; }
  .character-profile { grid-template-columns: 178px minmax(0, 1fr); }
  .character-profile .character-identity { padding-left: 24px; }
  .character-summary-column .growth-stat > span { font-size: 12px; }
}
