/* Try Designs (owner 27 Nov 2026; trydesigns.js, test builds only): each variant is scoped to html.try-<id>, so with every
   switch off nothing here applies. Names = the open picks on the polish page (owner #589). */
@import url("fonts/fonts.css");   /* For Hosts (#8): the app's own fonts, bundled */

/* The panel in Your Profile */
html #app .try-box .opt .sw { flex: 0 0 auto; }

/* 1. Home: Buttons Up */
html.try-home-up #app .bl-acts { margin-top: 8px; }
html.try-home-up #app .bl-home .bl-two { margin-top: 0; }
html.try-home-up #app .bl-home .bl-promise { margin-top: auto; }

/* 2. Picker: Show All Languages Button */
html.try-all-btn #app details > summary.try-allbtn { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 999px; border: 1.5px solid currentColor; font: 700 1rem/1.2 var(--body); list-style: none; cursor: pointer; }
html.try-all-btn #app details > summary.try-allbtn::-webkit-details-marker { display: none; }
html.try-all-btn #app details[open] > summary.try-allbtn { margin-bottom: 12px; }

/* 3. Textbook: Same With 1 Or 3 Languages (the lone link; Start Over is in the options strip, designopt.js) */
html.try-book-same #app main [data-restart-ask] { display: none; }

/* 4. Verbs: No Language Chips (trydesigns.js marks the row and follows the first lit language) */
html.try-verbs-dots #app .try-vbchips { display: none; }

/* 6. Script: Even Tiles (the Script tab's letter packs: the chip row that holds "All Hiragana"-type packs) */
html.try-script-tiles #app .chips.fc-themes:has(> [data-v^="all:"]) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
html.try-script-tiles #app .chips.fc-themes:has(> [data-v^="all:"]) > .chip { display: flex; flex-direction: column; align-items: stretch; justify-content: space-between; gap: 8px; min-width: 0; min-height: 64px; margin: 0; padding: 10px 12px; border-radius: 14px; text-align: start; white-space: normal; line-height: 1.2; }
html.try-script-tiles #app .chips.fc-themes:has(> [data-v^="all:"]) > .chip > span:first-child small { display: block; margin-top: 4px; }
html.try-script-tiles #app .chips.fc-themes:has(> [data-v^="all:"]) > .chip .fc-mini { width: 100%; margin: 0; }
html.try-script-tiles #app .chips.fc-themes:has(> [data-v^="all:"]) > .chip:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* 7. Profile: One Done Button */
html.try-profile-done #app [data-profile-cancel] { display: none; }
html.try-profile-done #app .pf-foot { display: grid; grid-template-columns: 1fr; }
html.try-profile-done #app .bw-pick + p.small { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }   /* the note: one line */
html.try-profile-done #app .bw-pick + p.small + p.small { display: none; }   /* the iPhone Settings path */

/* 8. For Hosts: Tidier Page (host.html loads this file too) */
html.try-host-tidy body { font-family: "Source Sans 3", system-ui, -apple-system, sans-serif; }
html.try-host-tidy h1, html.try-host-tidy h2 { font-family: "Source Serif 4", Georgia, serif; letter-spacing: 0; }
html.try-host-tidy .site-head nav a:not(:first-child) { display: none; }
html.try-host-tidy .intro > p.sub { display: none; }
html.try-host-tidy .ans-chips:has(> [data-kind]) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
html.try-host-tidy .ans-chips > [data-kind] { margin: 0; min-width: 0; justify-content: center; text-align: center; white-space: normal; line-height: 1.2; }

/* ---------- Whole Look (owner 27 Nov: the 5 morning designs, artifact SnEDEvgShKRu7Ru2wVQuze), one at a time ----------
   Rough CSS-only versions over the main screens: tokens, fonts, card shapes, buttons, tab bar. Selectors carry [data-look][class]
   so they win over sky.css / blend.css. Light colours (a quick try, not dark-mode ready). */
html[data-look][class].trylook-paper { --bg: #f5efe2; --surface: #fbf7ee; --ink: #2b241b; --muted: #6b5f4e; --line: #d9ccb4; --accent: #6a3f1c; --accent-ink: #fff; --accent-soft: #efe4d0; --band: #f5efe2; --band-ink: #2b241b; --head: #6a3f1c; --logo: #6a3f1c; --sky: #efe4d0; --sky-ink: #6a3f1c; }
html.trylook-paper[class] body, html.trylook-paper[class] #app { font-family: "Source Serif 4", Georgia, serif; }
html.trylook-paper[class] #app main :is(.opt, .bl-tile, .fc-chip, .card, .chip, .yb-ch, .bl-cover) { border-radius: 4px; box-shadow: none; border: 1px solid var(--line); }
html.trylook-paper[class] #app :is(.btn, .bl-open, .bl-change) { border-radius: 4px; box-shadow: none; }
html.trylook-paper[class] #app .tabs-band { box-shadow: none; border-top: 1px solid var(--line); background: var(--bg); }
html.trylook-paper[class] #app .tabs-band [role=tab]::before { display: none; }   /* words-only tabs (the icons are ::before masks, blend.css) */
html.trylook-paper[class] #app .bar { border-radius: 0; border-bottom: 1px solid var(--line); }

html[data-look][class].trylook-skysimple { --bg: #e8f4fb; --surface: #ffffff; --line: transparent; --band: #e8f4fb; }
html.trylook-skysimple[class] #app main :is(.opt, .bl-tile, .fc-chip, .card, .yb-ch) { border-radius: 20px; border-color: transparent; box-shadow: 0 2px 10px -6px rgba(29, 79, 107, .35); }
html.trylook-skysimple[class][class]:not([data-study]) #app main > .tabs-band { left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); max-width: 456px; padding: 6px 4px; border: 0; border-radius: 26px; box-shadow: 0 8px 24px -10px rgba(16, 38, 26, .45); }
html.trylook-skysimple[class] #app .bar { border-radius: 0 0 26px 26px; }

html[data-look][class].trylook-evengrid { --bg: #eceff1; --surface: #ffffff; --line: #d5dadd; --band: #eceff1; --sky: #eceff1; }
html.trylook-evengrid[class] #app main :is(.opt, .bl-tile, .fc-chip, .card, .chip, .yb-ch) { border-radius: 10px; box-shadow: none; border: 1px solid var(--line); }
html.trylook-evengrid[class] #app :is(.btn, .bl-open, .bl-change) { border-radius: 10px; }
html.trylook-evengrid[class] #app main .chips:not(.grid4):not(.pl-most):not(.fc-grid) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
html.trylook-evengrid[class] #app main .chips:not(.grid4):not(.pl-most):not(.fc-grid) > .chip { margin: 0; min-width: 0; justify-content: center; text-align: center; white-space: normal; }
html.trylook-evengrid[class] #app .bar { border-radius: 0; }

html[data-look][class].trylook-ink { --bg: #ffffff; --surface: #ffffff; --ink: #000000; --muted: #444444; --line: #000000; --accent: #000000; --accent-ink: #ffffff; --accent-soft: #f0f0f0; --band: #ffffff; --band-ink: #000000; --head: #000000; --logo: #000000; --sky: #f0f0f0; --sky-ink: #000000; --t-trip: #f0f0f0; --trip-ink: #000; --t-traveler: #f0f0f0; }
html.trylook-ink[class] #app main :is(.opt, .bl-tile, .fc-chip, .card, .chip, .yb-ch) { border: 1.5px solid #000; border-radius: 8px; box-shadow: none; }
html.trylook-ink[class] #app :is(.btn, .bl-open, .bl-change) { border-radius: 8px; box-shadow: none; }
html.trylook-ink[class] #app .tabs-band { border-top: 1.5px solid #000; box-shadow: none; }
html.trylook-ink[class] #app .bar { border-radius: 0; border-bottom: 1.5px solid #000; }

html[data-look][class].trylook-green { --bg: #f2f6f1; --surface: #ffffff; --line: #d6e3d4; --accent: #1f4d2b; --accent-soft: #dfeadc; --band: #1f4d2b; --band-ink: #ffffff; --logo: #ffffff; --head: #1f4d2b; --sky: #dfeadc; --sky-ink: #1f4d2b; }
html.trylook-green[class] #app .bar { background: #1f4d2b; color: #fff; border-radius: 0 0 22px 22px; }
html.trylook-green[class] #app .bar :is(a, button, .brand, svg) { color: #fff; }
html.trylook-green[class] #app main :is(.opt, .bl-tile, .fc-chip, .card, .yb-ch) { border-radius: 16px; }
