/* Trial look "Night" for Practice library (#/path?practice), phones: matched to the owner's mockup (16 Nov 2026) the way the Songs tab
   was (css/look-night.css): the mockup's own top as a picture, words erased, the rest placed to its pixels at 375px.
   Only with html.look-night (#/songs?look=night). */

/* The switch's pictures and the featured card exist in the markup for every look; only Night shows them. */
.seg-switch .seg-ic, .px-hero-chev, .px-feature { display: none; }

@media (max-width: 759px) {
  /* Page: the mockup's top (Bud, notes, waves; words and switch erased) over the mockup's navy. */
  html.look-night body:has(.page.practice) .app-main { background: url("../media/practice-sing-hero.jpg") 50% var(--safe-t, 0px) / 100% auto no-repeat, #071530 !important; }
  html.look-night body:has(.page.practice) .app-main::before { display: none !important; }
  html.look-night .page.practice > .page-hero {
    display: block !important; box-sizing: border-box; min-height: 0 !important; height: auto !important;
    margin: calc(-14px - var(--safe-t, 0px)) calc(-1 * var(--gutter)) 0 !important; padding: calc(19.3px + var(--safe-t, 0px)) 0 0 !important;
    background: none !important; border-radius: 0 !important; box-shadow: none !important; overflow: visible !important;
  }
  html.look-night .page.practice > .page-hero > .ph-deco, html.look-night .page.practice > .page-hero > .ph-bud, html.look-night .page.practice > .page-hero > .page-lede { display: none !important; }

  /* PRACTICE: a yellow sticker with a thin navy rim, tipped a little. */
  html.look-night .page.practice > .page-hero > .eyebrow {
    display: block !important; box-sizing: border-box; width: 79px; height: 27px; margin: -1.5px 0 0 20.3px !important; padding: 0 0 0 1px !important;
    border-radius: 999px; background: #fce454 !important; box-shadow: inset 0 0 0 1.4px #0c192b !important; transform: rotate(-2.5deg);
    font: 800 11.9px/27px var(--font-head) !important; letter-spacing: -0.9px !important; text-align: center; color: #0c192b !important;
  }
  /* A longer word than PRACTICE (French ENTRAÎNEMENT) widens the sticker instead of spilling out of it. */
  html.look-night[lang="fr"] .page.practice > .page-hero > .eyebrow { width: max-content; min-width: 79px; padding: 0 9px 0 10px !important; }
  html.look-night .page.practice > .page-hero > .page-title {
    position: relative; margin: 4.7px 0 0 20.7px !important; padding: 0 !important; width: 250px;
    font: 800 27px/28.2px var(--font-head) !important; letter-spacing: -0.75px !important; color: #f1ffff !important;
  }
  /* The cyan stroke under "any time", thick at the left, rising a little to the right. */
  html.look-night .page.practice > .page-hero > .page-title::after {
    content: ''; position: absolute; left: -0.6px; top: 56px; width: 107.4px; height: 14.5px; pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 107 12.5'%3E%3Cpath d='M2.9 7.6 C30 6.5 70 4.4 104.2 1.7 C106.3 1.5 106.8 4.1 104.8 4.4 C70 8.2 32 10.6 3.3 11.8 A2.1 2.1 0 0 1 2.9 7.6 Z' fill='%2301d5e4'/%3E%3C/svg%3E") no-repeat 0 0 / 100% 100%;
  }

  /* Practice library / Your path: a pale track, the open page in a yellow pill, each with its picture. */
  html.look-night .page.practice .seg-switch {
    position: relative; display: grid !important; grid-template-columns: 56.2% 1fr; box-sizing: border-box; width: auto !important; height: 46.3px !important; min-height: 0 !important;
    margin: 31.1px 15.9px 0 15.9px !important; padding: 0 !important; border: 0 !important; border-radius: 999px !important;
    background: #eaf6fd !important; box-shadow: 0 6px 18px -10px rgba(0, 0, 0, 0.6) !important;
  }
  html.look-night .page.practice .seg-switch a {
    display: flex !important; align-items: center; justify-content: center; gap: 7.1px; box-sizing: border-box; height: 46.3px !important; min-height: 0 !important; padding: 0 0 0 4px !important; margin: 0 !important; border-radius: 999px !important;
    background: none !important; box-shadow: none !important; color: #0a1948 !important; font: 700 16.1px/1 var(--font-head) !important; letter-spacing: -0.45px; text-decoration: none;
  }
  html.look-night .page.practice .seg-switch a + a { gap: 8px; padding: 0 4.5px 0 0 !important; }
  html.look-night .page.practice .seg-switch a[aria-current="page"] {
    background: linear-gradient(180deg, #fee35a 0%, #fedd4d 100%) !important; color: #181d17 !important; box-shadow: 0 3px 10px -4px rgba(120, 80, 0, 0.5) !important;
  }
  html.look-night .page.practice .seg-switch .seg-ic { flex: none; stroke-width: 2.2; }
  html.look-night .page.practice .seg-switch .seg-ic .ic-fill { fill: currentColor; }
  html.look-night .page.practice .seg-switch .seg-ic-grid { display: block; width: 24.1px; height: 24.1px; transform: scale(0.9); }
  html.look-night .page.practice .seg-switch .seg-label { transform: translate(-0.3px, -1.4px); }
  html.look-night .page.practice .seg-switch a + a .seg-label { transform: translate(-1.4px, -1.4px); letter-spacing: -0.6px; }
  html.look-night .page.practice .seg-switch .seg-ic-target { display: block; width: 26px; height: 26px; transform: translateX(1.6px) scale(0.9); }

  /* The two quick cards: 168.8 x 104, blue and violet, a cyan picture, two lines of words, a chevron. */
  html.look-night .page.practice .px-heroes { display: grid !important; grid-template-columns: 1fr 1fr; gap: 9.2px; margin: 16.8px calc(14.1px - var(--gutter)) 0 !important; }
  html.look-night .page.practice .px-hero {
    position: relative; display: block !important; box-sizing: border-box; height: 104px; min-height: 0 !important; margin: 0 !important; padding: 0 !important;
    border: 1.5px solid transparent !important; border-radius: 20px !important; text-align: left; color: #f2fcff !important; overflow: hidden;
    background: linear-gradient(140deg, #0178c8 0%, #134bb1 52%, #043ea8 100%) padding-box, linear-gradient(180deg, #2073e9, #0a8be2 50%, #1c58d0) border-box !important;
    box-shadow: 0 8px 20px -12px rgba(0, 0, 0, 0.7) !important;
  }
  html.look-night .page.practice .px-hero.px-mirror {
    background: linear-gradient(140deg, #5836cf 0%, #2e39be 52%, #0d36a6 100%) padding-box, linear-gradient(180deg, #4c59e6, #3b4ad8 50%, #2a44c8) border-box !important;
  }
  html.look-night .page.practice .px-hero .due-icon { position: absolute; left: 12.9px; top: 7.1px; width: 39.5px; height: 39.5px; margin: 0; padding: 0; border-radius: 0; background: none !important; box-shadow: none !important; color: #02f2fc; }
  html.look-night .page.practice .px-hero .due-icon .ic { width: 100%; height: 100%; transform: scale(0.907); color: #02f2fc; filter: drop-shadow(0 0 6px rgba(2, 242, 252, 0.55)); }
  html.look-night .page.practice .px-hero .due-icon .ic .ic-fill { fill: #02f2fc; }
  html.look-night .page.practice .px-hero.px-mirror .due-icon { left: 13.5px; top: 7.8px; width: 37.8px; height: 37.8px; }
  html.look-night .page.practice .px-hero.px-mirror .due-icon .ic { transform: scale(0.895); }
  html.look-night .page.practice .px-hero-text { position: absolute; left: 14.8px; top: 49px; width: 122px; display: block; }
  html.look-night .page.practice .px-hero.px-mirror .px-hero-text { left: 15.4px; }
  html.look-night .page.practice .px-hero-text b { display: block; font: 700 18.7px/19px var(--font-head) !important; letter-spacing: -0.85px !important; color: #f2fcff !important; }
  html.look-night .page.practice .px-hero-text small, html.look-night .page.practice .px-hero > .btn { display: none !important; }
  html.look-night .page.practice .px-hero-chev { display: block; position: absolute; right: 6.9px; top: 54.3px; width: 24px; height: 24px; color: #43bafd; }
  html.look-night .page.practice .px-hero-chev .ic { width: 24px; height: 24px; stroke-width: 2.6; transform: translateX(1.35px) scale(0.88); }

  /* Group chips: the open one white, the others navy pills; each with its cyan picture. */
  html.look-night .page.practice .px-cats { display: flex !important; gap: 6.2px; margin: 18.5px calc(-1 * var(--gutter)) 0 !important; padding: 0 12px 0 12.3px !important; overflow-x: auto; scrollbar-width: none; }
  html.look-night .page.practice .px-chip {
    flex: none; display: flex !important; align-items: center; gap: 4px; box-sizing: border-box; height: 36.1px; min-height: 0 !important; padding: 0 12.3px 0 10px !important;
    border: 0 !important; border-radius: 999px !important; background: #0f2254 !important; box-shadow: inset 0 0 0 1.5px #2a3f78, 0 4px 12px -8px rgba(0, 0, 0, 0.7) !important;
    color: #f8f9fd !important; font: 600 14.2px/1 var(--font-head) !important; letter-spacing: -0.5px;
  }
  html.look-night .page.practice .px-chip[aria-pressed="true"] { background: #f7fbfe !important; color: #0b1940 !important; box-shadow: 0 0 14px rgba(160, 220, 255, 0.35) !important; }
  html.look-night .page.practice .px-chip .ic { width: 23.5px; height: 23.5px; color: #18e0fc !important; stroke-width: 2.1; transform: scale(0.93); }
  html.look-night .page.practice .px-chip[data-cat="warmup"] .ic { transform: scale(0.88); }
  html.look-night .page.practice .px-chip[data-cat="tune"] { padding: 0 10.2px 0 11.5px !important; gap: 2.5px; }
  html.look-night .page.practice .px-chip[data-cat="steady"] { margin-left: 1.7px; padding-left: 11.2px !important; gap: 2.8px; }
  html.look-night .page.practice .px-chip .ic .ic-fill { fill: #18e0fc !important; }

  /* The group's heading: a big glowing picture, the name and one line under it. */
  html.look-night .page.practice .px-cat { margin-top: 0 !important; }
  html.look-night .page.practice .px-cat-head { display: grid !important; grid-template-columns: 48.1px 1fr; align-items: start; gap: 0 !important; margin: 15.8px 0 0 0 !important; padding: 0 !important; background: none !important; box-shadow: none !important; border: 0 !important; }
  html.look-night .page.practice .px-cat-icon { display: block; width: 38.4px; height: 38.4px; margin: 2.7px 0 0 -1.5px; padding: 0; border-radius: 0; background: none !important; box-shadow: none !important; color: #02f2fc; }
  html.look-night .page.practice .px-cat-icon .ic { width: 38.4px; height: 38.4px; transform: scale(0.907); color: #02f2fc; filter: drop-shadow(0 0 7px rgba(2, 242, 252, 0.5)); }
  html.look-night .page.practice .px-cat-icon .ic .ic-fill { fill: #02f2fc; }
  html.look-night .page.practice .px-cat-head h2 { margin: 0 !important; font: 700 21.2px/24px var(--font-head) !important; letter-spacing: -0.15px !important; color: #fcf7fb !important; }
  html.look-night .page.practice .px-cat-head p { margin: 1px 0 0 !important; font: 400 14.5px/19px var(--font-head) !important; letter-spacing: -0.17px !important; color: #90adde !important; white-space: nowrap; }

  /* The featured card: the mockup's own picture for the five-minute warm-up, and a yellow start button. */
  html.look-night .page.practice .px-feature {
    display: block; position: relative; box-sizing: border-box; height: 202.3px; margin: 11.6px calc(12.8px - var(--gutter)) 0 calc(13.2px - var(--gutter)) !important;
    border-radius: 22px; background: linear-gradient(180deg, #0a2a86, #1d36b8 70%, #3434c6);
  }
  html.look-night .page.practice .px-feature.px-feature-quick { background: url("../media/practice-warmup-sing.jpg") 0 0 / 100% 100% no-repeat; border-radius: 0; }
  html.look-night .page.practice .px-feature-art { position: absolute; left: 0; right: 0; top: 0; height: 132px; padding: 0; margin: 0; border: 0; background: none !important; box-shadow: none !important; cursor: pointer; border-radius: 22px 22px 0 0; overflow: hidden; }
  html.look-night .page.practice .px-feature-art svg { width: 100%; height: 100%; }
  html.look-night .page.practice .px-feature-go {
    position: absolute; left: 14.1px; right: 13.6px; top: 138.8px; height: 46.3px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; gap: 10.1px; padding: 0 3.9px 0 0;
    border: 0; border-radius: 999px; cursor: pointer;
    background: linear-gradient(180deg, #fdef62 0%, #fde051 48%, #fed045 100%); box-shadow: 0 6px 14px -8px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    color: #091334; font: 600 17.4px/1 var(--font-head); letter-spacing: -0.38px;
  }
  html.look-night .page.practice .px-feature-go .ic { width: 22px; height: 22px; stroke-width: 2.1; color: #091334; transform: translateX(1.1px) scale(1.12); }
  html.look-night .page.practice .px-feature-go span { transform: translateY(-1.5px); }
  html.look-night .page.practice .px-feature-go:active { transform: translateY(1px); }

  /* The full cards of the group under it, in the same night colours. */
  html.look-night .page.practice .px-list { margin-top: 24px !important; }
  html.look-night .page.practice .px-card {
    border: 1.5px solid transparent !important; border-radius: 22px !important; overflow: hidden;
    background: linear-gradient(180deg, #13307a, #142a6c) padding-box, linear-gradient(180deg, #2e5ad8, #2a3f9a) border-box !important; box-shadow: 0 8px 20px -12px rgba(0, 0, 0, 0.7) !important;
  }
  html.look-night .page.practice .px-card .px-top, html.look-night .page.practice .px-card .px-bottom { background: none !important; }
  html.look-night .page.practice .px-card .px-text b { color: #f2fcff !important; }
  html.look-night .page.practice .px-card .px-text small, html.look-night .page.practice .px-card .px-meta { color: #90adde !important; }
  html.look-night .page.practice .px-card .px-how { color: #43bafd !important; }
  html.look-night .page.practice .px-card .px-go { background: linear-gradient(180deg, #fdef62, #fed045) !important; color: #091334 !important; box-shadow: none !important; }
  html.look-night .page.practice .px-card .px-go .ic, html.look-night .page.practice .px-card .px-go .ic .ic-fill { color: #091334 !important; fill: #091334 !important; }
  html.look-night .page.practice .px-card .px-levels { background: #0f2254 !important; box-shadow: inset 0 0 0 1.5px #2a3f78 !important; }
  html.look-night .page.practice .px-card .px-levels button { color: #c4d2fe !important; background: none !important; box-shadow: none !important; }
  html.look-night .page.practice .px-card .px-levels button[aria-pressed="true"] { background: #fedf4e !important; color: #181d17 !important; }
}
/* Narrower phones (the Galaxy is 360 wide): the title a touch smaller so it clears Bud, who shrinks with the picture. */
@media (max-width: 370px) {
  html.look-night .page.practice > .page-hero > .page-title { font-size: 25.6px !important; letter-spacing: -0.8px !important; }
}

/* A locked exercise (16 Nov 2026, owner: "lock doesn't look good"): the yellow disc's fill flooded the padlock's
   shackle into a blob. Locked now reads as the full plan's gold: a navy disc with a gold rim and a crisp gold padlock
   (body filled, shackle drawn), the same gold as the upgrade card. */
html.look-night .page.practice .px-card.is-locked .px-go {
  background: radial-gradient(circle at 35% 30%, #1a2a66 0%, #0d1a44 70%) !important;
  box-shadow: inset 0 0 0 2px #f5c044, 0 0 16px rgba(253, 200, 70, 0.35) !important; color: #ffd95a !important;
}
html.look-night .page.practice .px-card.is-locked .px-go .ic { width: 24px; height: 24px; fill: none !important; stroke: #ffd95a !important; stroke-width: 2.2; color: #ffd95a !important; }
html.look-night .page.practice .px-card.is-locked .px-go .ic .ic-fill { fill: #ffd95a !important; fill-opacity: 1; stroke: #ffd95a !important; }
html.look-night .page.practice .px-card.is-locked .px-go:active { transform: scale(0.96); }

/* "For you" (practice.js, 18 Nov 2026): one full-width card under the two quick cards, with its reason showing. */
@media (max-width: 759px) {
  html.look-night .page.practice .px-hero.px-foryou {
    display: flex !important; align-items: center; gap: 12px; height: auto; margin: 10px calc(14.1px - var(--gutter)) 0 !important; padding: 12px 40px 12px 14px !important;
    background: linear-gradient(140deg, #0a6a8f 0%, #0d4a9a 60%, #0b3a92 100%) padding-box, linear-gradient(180deg, #1fb3d8, #1c58d0) border-box !important;
  }
  html.look-night .page.practice .px-foryou .due-icon { position: static; flex: none; width: 34px; height: 34px; }
  html.look-night .page.practice .px-foryou .px-hero-text { position: static; width: auto; display: grid; gap: 2px; }
  html.look-night .page.practice .px-foryou .px-hero-text b { font: 700 17px/20px var(--font-head) !important; letter-spacing: -0.4px !important; }
  html.look-night .page.practice .px-foryou .px-hero-text small { display: block !important; font: 400 13.5px/18px var(--font-head) !important; color: #b9d3f5 !important; }
  html.look-night .page.practice .px-foryou .px-hero-text .px-foryou-k { font: 700 11px/14px var(--font-head) !important; letter-spacing: 0.08em !important; text-transform: uppercase; color: #5fe6f2 !important; }
  html.look-night .page.practice .px-foryou .px-hero-chev { top: 50%; margin-top: -12px; }
  html.look-night .page.practice .px-foryou::after { display: none; }
}
