/* The You tab (Progress and Profile) on laptops, in Home's look (owner, 5 Dec 2026: "polished and premium").
   Markup: views/progress.js and views/profile.js; js/you-desk.js arranges Progress (.yd-stats, .yd-cols). Night look,
   >= 960 px only; phones untouched. Cards are Home's cards (css/home-desk.css .dk-card): deep blue, a soft rim. */

@media (min-width: 960px) {
  html.look-night .view:has(> .page:is(.progress, .profile)) { padding: 16px 26px 32px 40px !important; }
  html.look-night .page:is(.progress, .profile) { max-width: 1400px !important; margin: 0 auto !important; }

  /* ---------- The band's Progress / Profile switch: smaller, quieter (white for the page you're on) ---------- */
  html.look-night .page:is(.progress, .profile) > .page-hero .seg-switch {
    width: 360px !important; max-width: 100% !important; height: 44px !important; margin-top: 18px !important; padding: 4px !important; box-sizing: border-box;
    background: rgba(0, 30, 80, 0.38) !important; border: 1.5px solid rgba(160, 215, 255, 0.45) !important; box-shadow: none !important; border-radius: 999px !important;
  }
  html.look-night .page:is(.progress, .profile) > .page-hero .seg-switch :is(a, button, span, label) { font-size: 15px !important; }
  html.look-night .page:is(.progress, .profile) > .page-hero .seg-switch :is(.is-on, [aria-current="page"], [aria-selected="true"]) {
    background: #fff !important; color: #0a1a4a !important; box-shadow: none !important;
  }
  html.look-night .page:is(.progress, .profile) > .page-hero .seg-switch :is(a, button):not(.is-on):not([aria-current="page"]) { color: #fff !important; background: transparent !important; }

  /* ---------- Cards: Home's ---------- */
  html.look-night body .page:is(.progress, .profile) :is(section.card, details.card, .cm-voice > summary.card) {
    margin: 0 !important; padding: 22px 24px !important; border-radius: 19px !important; color: #fff;
    border: 1.5px solid transparent !important;
    background: linear-gradient(180deg, #14306f 0%, #112762 100%) padding-box, linear-gradient(180deg, #2c4f96 0%, #1b3170 100%) border-box !important;
    box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(150, 190, 255, 0.06) !important;
  }
  html.look-night body .page:is(.progress, .profile) .card :is(.card-title, h2) { margin: 0 0 4px !important; font: 700 19px/1.2 var(--font-head) !important; letter-spacing: -0.005em; color: #fff !important; }
  html.look-night body .page:is(.progress, .profile) .card .card-note { font: 400 14px/1.45 var(--font-head) !important; color: #aebbe0 !important; }
  html.look-night body .page:is(.progress, .profile) .card .card-meta { font: 500 13px/1 var(--font-head) !important; color: #8fd6ff !important; }

  /* ---------- Progress: Bud's line, the tiles, the two columns ---------- */
  html.look-night .page.progress[data-yd] { display: flex; flex-direction: column; gap: 18px; }
  html.look-night .page.progress[data-yd] > * { margin: 0 !important; }
  html.look-night .page.progress[data-yd] .bud-says { align-items: center; gap: 12px; }
  html.look-night .page.progress[data-yd] .bud-says-bud { width: 46px; height: 46px; flex: none; }
  html.look-night .page.progress[data-yd] .bud-says-bubble {
    margin: 0 !important; padding: 12px 18px !important; border-radius: 16px 16px 16px 4px !important; border: 0 !important;
    background: rgba(111, 220, 255, 0.1) !important; box-shadow: none !important; font: 500 15.5px/1.35 var(--font-head) !important; color: #e8f6ff !important;
  }

  html.look-night .yd-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0 !important; padding: 0; list-style: none; }
  html.look-night .yd-stats .yd-tile {
    display: grid !important; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; column-gap: 14px; row-gap: 2px;
    padding: 16px 18px !important; border-radius: 17px !important; text-align: left !important; color: #fff;
    border: 1.5px solid transparent !important;
    background: linear-gradient(180deg, #14306f 0%, #112762 100%) padding-box, linear-gradient(180deg, #2c4f96 0%, #1b3170 100%) border-box !important;
    box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.8) !important;
  }
  html.look-night .yd-tile-ic { grid-row: 1 / 3; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(111, 220, 255, 0.12); color: #6fdcff; }
  html.look-night .yd-tile.is-streak .yd-tile-ic { background: rgba(255, 170, 60, 0.14); color: #ffb347; }
  html.look-night .yd-ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  html.look-night .yd-ic .f { fill: currentColor; stroke: none; }
  html.look-night .yd-tile b { font: 800 26px/1 var(--font-head) !important; color: #fff !important; font-variant-numeric: tabular-nums; }
  html.look-night .yd-tile > span:last-child { font: 500 13.5px/1.25 var(--font-head) !important; color: #aebbe0 !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  html.look-night .yd-cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start; }
  html.look-night .yd-cols.is-one { grid-template-columns: minmax(0, 1fr); }
  html.look-night .yd-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
  html.look-night .yd-col > * { margin: 0 !important; }
  html.look-night .page.progress .yd-spent { display: none !important; }
  html.look-night .page.progress .yd-foot { margin: 4px 0 0 !important; text-align: center; font: 400 13px/1.4 var(--font-head) !important; color: #7f90bb !important; }

  /* Rows inside cards: a quiet inset, one style for songs, voice over time, takes and plain words. */
  html.look-night .page.progress :is(.cm-song, .vt-song, .plain li) {
    border-radius: 14px !important; background: rgba(255, 255, 255, 0.04) !important; border: 1px solid rgba(160, 190, 255, 0.12) !important; box-shadow: none !important;
  }
  html.look-night .page.progress .plain li { font: 400 15px/1.45 var(--font-head) !important; color: #dbe5ff !important; }
  html.look-night .page.progress .plain ul { display: grid !important; grid-template-columns: 1fr; gap: 10px; }
  html.look-night .page.progress .vt-week { margin-top: 14px; }

  /* Voice details: a row like the cards that open somewhere. */
  html.look-night body .page.progress .cm-voice > summary.card { display: flex !important; align-items: center; gap: 14px; cursor: pointer; }
  html.look-night .page.progress .cm-voice > summary .due-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: rgba(111, 220, 255, 0.12) !important; color: #6fdcff !important; }
  html.look-night .page.progress .cm-voice-text b { font: 700 17px/1.2 var(--font-head) !important; color: #fff !important; }
  html.look-night .page.progress .cm-voice-text small { font: 400 13.5px/1.35 var(--font-head) !important; color: #aebbe0 !important; }
  html.look-night body .page.progress .cm-voice[open] > :is(section.card, .card):not(summary) { margin-top: 14px !important; }

  /* ---------- Profile ---------- */
  html.look-night .page.profile .profile-grid { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; margin-top: 18px !important; }
  html.look-night .page.profile .profile-grid > div { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
  html.look-night .page.profile .profile-grid > div > * { margin: 0 !important; }

  /* You: a bigger name, the plan as a small pill, the buttons in a row. */
  html.look-night body .page.profile .user-card { display: grid !important; grid-template-columns: 72px minmax(0, 1fr); column-gap: 18px; align-items: center; }
  html.look-night .page.profile .user-card .avatar-lg { grid-row: 1 / 3; width: 72px !important; height: 72px !important; font-size: 28px !important; }
  html.look-night .page.profile .user-name { margin: 0 !important; font: 800 24px/1.15 var(--font-head) !important; color: #fff !important; }
  html.look-night .page.profile .user-sub { margin: 4px 0 0 !important; font: 400 14px/1.4 var(--font-head) !important; color: #aebbe0 !important; }
  html.look-night .page.profile .user-actions { grid-column: 2; margin-top: 14px !important; display: flex; gap: 10px; }

  /* Choices: one calm segmented control everywhere (time a day, Bud's style, playback). */
  html.look-night body .page.profile .seg-ctl {
    padding: 4px !important; border-radius: 14px !important; background: rgba(0, 12, 40, 0.35) !important; border: 1px solid rgba(160, 190, 255, 0.14) !important; box-shadow: none !important;
  }
  html.look-night body .page.profile .seg-ctl label span { border-radius: 10px !important; font: 600 14.5px/1 var(--font-head) !important; color: #c9d4f5 !important; border: 0 !important; box-shadow: none !important; }
  html.look-night body .page.profile .seg-ctl input:checked + span { background: #fff !important; color: #0a1a4a !important; }

  /* Goals, reminders, language: quieter rows and fields. */
  html.look-night .page.profile .goal-chips li { border-radius: 14px !important; background: rgba(255, 255, 255, 0.04) !important; border: 1px solid rgba(160, 190, 255, 0.14) !important; }
  html.look-night .page.profile .goal-chips li small { color: #8fd6ff !important; }
  html.look-night body .page.profile :is(select.input, .input-time) { border-radius: 12px !important; background: rgba(0, 12, 40, 0.35) !important; border: 1px solid rgba(160, 190, 255, 0.22) !important; box-shadow: none !important; color: #fff !important; font: 500 15px/1.2 var(--font-head) !important; }

  /* Switch rows and the instruments: insets like Progress's rows. */
  html.look-night .page.profile .switch-row { border-radius: 14px !important; background: rgba(255, 255, 255, 0.04) !important; border: 1px solid rgba(160, 190, 255, 0.12) !important; box-shadow: none !important; }
  html.look-night .page.profile .switch-text b { font: 600 15px/1.25 var(--font-head) !important; color: #fff !important; }
  html.look-night .page.profile .switch-text small { font: 400 13px/1.4 var(--font-head) !important; color: #aebbe0 !important; }
  html.look-night .page.profile .inst-opt { border-radius: 12px !important; }

  /* Privacy: a plain line with the lock, not a big bold box. */
  html.look-night body .page.profile .privacy-line { display: flex; align-items: flex-start; gap: 10px; margin: 8px 0 10px !important; padding: 0 !important; background: none !important; border: 0 !important; font: 400 14.5px/1.5 var(--font-head) !important; color: #c9d4f5 !important; }
  html.look-night body .page.profile .privacy-line .ic { flex: none; width: 18px; height: 18px; margin-top: 2px; color: #6fdcff; }
  html.look-night body .page.profile .card .btn-link { font: 600 14.5px/1.3 var(--font-head) !important; color: #8fd6ff !important; }

}
html.look-night body .page.profile details.card.pf-more { padding: 0 !important; overflow: hidden; }
/* More sound settings (views/profile.js): a row that opens, on phones and laptops. */
html.look-night .page.profile .pf-more-sum { display: flex; align-items: center; gap: 14px; padding: 20px 22px; cursor: pointer; list-style: none; }
html.look-night .page.profile .pf-more-sum::-webkit-details-marker { display: none; }
html.look-night .page.profile .pf-more-ic { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: rgba(111, 220, 255, 0.12); color: #6fdcff; }
html.look-night .page.profile .pf-more-ic .ic { width: 22px; height: 22px; }
html.look-night .page.profile .pf-more-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
html.look-night .page.profile .pf-more-text b { font: 700 17px/1.2 var(--font-head); color: #fff; }
html.look-night .page.profile .pf-more-text small { font: 400 13.5px/1.35 var(--font-head); color: #aebbe0; }
html.look-night .page.profile .pf-more-sum > .ic:last-child { width: 18px; height: 18px; color: #c9d4f5; transition: transform 200ms ease; }
html.look-night .page.profile .pf-more[open] .pf-more-sum > .ic:last-child { transform: rotate(90deg); }
html.look-night .page.profile .pf-more-body { display: flex; flex-direction: column; gap: 10px; padding: 0 22px 22px; }
html.look-night .page.profile .pf-sub { margin: 10px 0 0; font: 700 14px/1.2 var(--font-head); letter-spacing: 0.02em; color: #8fd6ff; }
html.look-night .page.profile .pf-more-body .credit-note { margin-top: 6px !important; font-size: 12px !important; color: #7f90bb !important; }

@media (prefers-reduced-motion: reduce) { html.look-night .page.profile .pf-more-sum > .ic:last-child { transition: none; } }
