/* values.io v10-duo: every shared component, rebuilt 1:1 from duolingo.com (measured on their live pages and read from their
   own CSS files, 2026-10-21). Colours come only from tokens.css (dark.css re-colours them). Link tokens.css first, then this file.
   Class prefix: u-. How to use each piece: UI.md. */

/* ================================================================ component tokens */
:root {
  --u-lip: 4px;                                   /* the thick bottom edge of buttons */
  --u-radius-btn: var(--web-ui_button-border-radius, 16px);
  --u-toast-bg: var(--color-wolf);                /* .eob-w */
  --u-toast-fg: var(--color-snow);
  --u-scrim: rgba(var(--color-black-rgb), .3);    /* ._2zxQ8 */
  --u-menu-w: 256px;                              /* ._3P5E_ at >= 1160px: 224 + 32 */
  --u-knob: var(--color-snow);                    /* the switch knob: white with its swan lip */
  --u-knob-edge: var(--color-swan);
  /* everything that drops over the page (popovers and menus, the account menu, search's answers): an edge a step
     darker than a card's and a soft shadow, so it stands off what is under it and the eye goes to it */
  --u-drop-edge: color-mix(in srgb, var(--color-swan) 60%, var(--color-hare));
  --u-drop-shadow: 0 4px 0 rgba(var(--color-black-rgb), .06), 0 12px 32px rgba(var(--color-black-rgb), .14);
}

/* ================================================================ base (their app.css: body 400 17px/20px, snow, black-text) */
/* no grey tap flash on phones: iOS draws it over the nearest element with a click listener (pages listen on #main,
   so a tap on empty space greyed the whole page); every control has its own press look. The scroll bar's room is always
   kept, even while a window locks the page (overflow: hidden takes the bar away): on a computer whose bars always show,
   the page would slide sideways by the bar's width as each window opens and closes */
html { box-sizing: border-box; overflow-y: scroll; scrollbar-gutter: stable; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
*, *::before, *::after { box-sizing: inherit; }
body {
  margin: 0; background: var(--color-snow); color: var(--color-black-text);
  font: 400 17px/20px var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img { border-style: none; }
button, input, select, textarea { font-family: inherit; font-size: 100%; line-height: 1.15; margin: 0; }
/* iPhones fade a disabled control on top of the off colours it already has; any rule of ours still wins (no weight) */
:where(button, input, select, textarea):where(:disabled) { opacity: 1; }
a { color: inherit; }
[hidden] { display: none !important; }
/* a name inside an uppercase label or button ("Ask for Harvester"): as written, never in capitals (spec/nav/UX.md rule 21) */
.u-asis { text-transform: none; letter-spacing: 0; }
.u-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.u-sr[data-announce] { position: fixed; left: 0; top: 0; }   /* UI.announce's region, at the end of <body>: never a pixel more page */

.u-label { font: 700 15px/20px var(--font); color: var(--color-label); text-transform: uppercase; margin: 0; } /* ._3iQBv */

/* ================================================================ page shell: left menu + centre column + right column */
.u-shell { padding-left: var(--u-menu-w); min-height: calc(100vh / var(--zoom, 1)); }            /* ._19E80 */
 /* .AkzqY */
 /* .wl71D */
 /* ._3hqQW ._1GhPE */

/* ================================================================ 1. left menu (._3P5E_) */
.u-menu {
  position: fixed; left: 0; top: 0; z-index: 200; width: var(--u-menu-w); height: calc(100vh / var(--zoom, 1)); overflow-y: auto;
  background: var(--color-snow); border-right: 2px solid var(--color-swan); color: var(--color-hare);
  padding: 0 16px; font: 400 17px/25px var(--font); -webkit-user-select: none; user-select: none; scrollbar-width: none; -ms-overflow-style: none;
}
.u-menu::-webkit-scrollbar { display: none; }
.u-logo { display: inline-flex; align-items: center; height: 30px; gap: 2px; text-decoration: none; color: var(--color-owl); }
.u-logo__coin { width: 26px; height: 32px; display: block; margin-top: -4px; }
.u-logo__word { font: 800 28px/30px var(--font); letter-spacing: -.02em; color: var(--color-owl); white-space: nowrap; }
.u-menu__row {                                                                              /* ._22Pme._33YLo.p3liX.YAEPa */
  display: flex; align-items: center; justify-content: flex-start; position: relative; width: 100%; height: 52px;
  padding: 4px 8px; border: 2px solid transparent; border-radius: 12px; background: none; cursor: pointer;
  text-decoration: none; color: inherit; font: inherit; text-align: left;
}
@media (hover: hover) { .u-menu__row:not(.is-active):hover { background-color: var(--color-polar); } }
.u-menu__row.is-active { background-color: var(--color-iguana); border-color: var(--color-blue-jay); }   /* ._348_2 */
.u-menu__row:focus-visible { outline: 2px solid var(--color-macaw); outline-offset: 2px; }
.u-menu__ic { display: flex; position: relative; margin-right: 20px; flex-shrink: 0; }     /* ._4fxfA */
.u-menu__ic > svg, .u-menu__ic > img, .u-menu__ic > .u-avatar { width: 32px; height: 32px; margin-left: 6px; display: block; } /* ._101n8 */
.u-menu__ic > .u-avatar { --s: 32px; }
.u-menu__label { color: var(--color-wolf); font-size: 15px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; line-height: 25px; white-space: nowrap; } /* ._1AZJt */
.u-menu__row.is-active .u-menu__label { color: var(--color-macaw); }                       /* ._3glZ0 ._1AZJt */

  /* ._3tK_c:hover:after bridge */

.u-art.is-off { filter: grayscale(1); opacity: .5; }                                       /* the grey "nothing yet" icon (their streak at 0) */

  /* ._1f9p8 */

/* ================================================================ 2. right column: stats row, cards, footer links */
 /* ._2gxqo */

 /* .jNMwi */

 /* ._3Kmn9 */

 /* .k5zYn */

/* the bordered card (._1T_BQ ._2cnFr) */
.u-card { position: relative; background: var(--color-snow); border: 2px solid var(--color-swan); border-radius: 16px; padding: 18px; }
  /* ._1TPVU */
 /* ._3iQBv */

.u-card .u-btn + .u-btn { margin-top: 10px; }                                               /* .cta8B */

  /* ._1wn3h */
  /* bold: white on their purple is 4.1:1 */         /* ._3DnHA */

/* the small section head over a list ("Daily Quests ... 19 HOURS", ._1TPVU) */
.u-sechead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 12px; }
.u-sechead__title { color: var(--color-eel); font-size: 24px; font-weight: 700; line-height: 30px; margin: 0; }   /* the app's section heading: 24/30 eel */          /* ._2QGcV */
 /* ._9ozg3 */

 /* ._1oCct */

/* ================================================================ 3. buttons (web-ui ._7jW2t._1ursp._1VYyp and friends) */
.u-btn {
  --bg: var(--color-macaw); --edge: var(--color-whale); --fg: var(--color-on-bright); --fg-on: var(--fg);
  --bg-off: var(--color-swan); --edge-off: var(--color-swan); --fg-off: var(--color-hare);
  --h: 50px; --pad: 0 16px; --r: var(--u-radius-btn); --lip: var(--u-lip); --fs: 15px; --ls: .8px; --lh: 1.2; --hover: brightness(1.1);
  -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; touch-action: manipulation;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex-shrink: 0;
  transform: translateZ(0); cursor: pointer; -webkit-user-select: none; user-select: none; outline: none; text-decoration: none; white-space: nowrap;
  font: 700 var(--fs)/var(--lh) var(--font); letter-spacing: var(--ls); text-transform: uppercase;
  height: var(--h); padding: var(--pad); margin: 0; color: var(--fg);
  background: none; border: solid transparent; border-width: 0 0 var(--lip); border-radius: var(--r);
}
.u-btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: var(--r);
  background-color: var(--bg); box-shadow: 0 var(--lip) 0 var(--edge);
  transition: background-color var(--m-fast) var(--m-ease-out), box-shadow var(--m-fast) var(--m-ease-out);   /* hovers fade as the rows do (motion.css) */
}
@media (hover: hover) { .u-btn:hover:not(:disabled):not(.is-off) { filter: var(--hover); } }
.u-btn:active:not(:disabled):not(.is-off), .u-btn.is-pressed { color: var(--fg-on); transform: translateY(var(--lip)) translateZ(0); }
.u-btn:active:not(:disabled):not(.is-off)::before, .u-btn.is-pressed::before { box-shadow: none; }
.u-btn:disabled, .u-btn.is-off, .u-btn[aria-disabled="true"] { cursor: default; color: var(--fg-off); transform: translateY(var(--lip)) translateZ(0); }
.u-btn:disabled::before, .u-btn.is-off::before, .u-btn[aria-disabled="true"]::before { background-color: var(--bg-off); box-shadow: none; }
.u-btn:focus-visible { outline: 2px solid var(--color-macaw); outline-offset: 3px; }
.u-btn > svg, .u-btn > img { flex-shrink: 0; }
.u-btn > .u-coin { width: 20px; height: 24px; margin: -6px 0; }
/* colours */
.u-btn--green { --bg: var(--color-owl); --edge: var(--color-owl-lip); --fg: var(--color-on-bright); }          /* ._3gxMJ */
.u-btn--blue { --bg: var(--color-macaw); --edge: var(--color-whale); --fg: var(--color-on-bright); }             /* ._1i82L */
.u-btn--red { --bg: var(--color-cardinal); --edge: var(--color-fire-ant); --fg: var(--color-on-bright); }        /* lesson "wrong" CONTINUE */
  /* ._22qMf */
 /* ._2noWf */
 /* .dr7xn: on coloured cards */
/* the white / outlined button (._2V6ug): 2px border all round, 4px at the bottom, presses 2px */
.u-btn--white {
  --bg: var(--color-snow); --edge: var(--color-swan); --fg: var(--color-hare); --hover: brightness(.9);
  --bg-off: var(--color-swan); --edge-off: var(--edge); --fg-off: var(--color-hare);
  border-width: 2px 2px 4px;
}
.u-btn--white::before { inset: -2px; border: 2px solid var(--edge); box-shadow: 0 2px 0 var(--edge); }
.u-btn--white:active:not(:disabled):not(.is-off), .u-btn--white.is-pressed, .u-btn--white:disabled, .u-btn--white.is-off { transform: translateY(2px) translateZ(0); }
.u-btn--white:disabled::before, .u-btn--white.is-off::before { border-color: var(--edge-off); }
 /* ._3U5_i (shop "FULL") */
.u-btn--t-blue { --fg: var(--color-macaw); }      /* ._3xDVI */
.u-btn--t-dark { --fg: var(--color-eel); }        /* ._2ZO5y */
.u-btn--t-red { --fg: var(--color-fire-ant); }    /* ._2FLDK, in the one error red */

/* ghost (text) button (.c1Mv-) and the "VIEW ALL" link (._1nf6U) */
.u-btn--ghost { --fg: var(--color-macaw); --h: 48px; --pad: 0 16px; border: 0; }
.u-btn--ghost::before { display: none; }
.u-btn--ghost:active:not(:disabled), .u-btn--ghost:disabled, .u-btn--ghost.is-off { transform: none; }
.u-btn--ghost:disabled, .u-btn--ghost.is-off { opacity: .4; color: var(--fg); }
.u-btn--link { --h: auto; --pad: 0; }
.u-btn--ghost.u-btn--t-red { --fg: var(--color-fire-ant); }
.u-btn--ghost.u-btn--t-grey { --fg: var(--color-label); }
/* sizes */
.u-btn--md { --h: 48px; --fs: 16px; --ls: .04em; --pad: 0 12px; --lh: 44px; }                                /* ._20olS */
.u-btn--sm { --h: 32px; --fs: 14px; --pad: 0 8px; --r: 8px; --ls: 0; text-transform: none; }   /* capitals only on the big buttons (UX.md rule 17) */                                                /* ._1W_p8 */
.u-btn--xs { --h: 26px; --fs: 14px; --pad: 0 9px; --lip: 2px; }                                              /* ._17LYs */
.u-btn--lg { --fs: 17px; min-width: 150px; }                                                                 /* lesson CHECK / CONTINUE (._1QY-b) */
.u-btn--block { width: 100%; }
/* the main buttons' light (Offer, Bump, Send offer, Post trade: class u-shine): a soft band of light runs across the face
   once as the pointer comes onto it, or as a finger presses it on a touch screen. It lies on the face, under the words
   (the face is ::before; the light ::after, both behind the button's content), so the lip and the words stay as they
   are; never on a button that can't be pressed, never with reduced motion */
.u-shine::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: var(--r); pointer-events: none; opacity: 0;
  background: linear-gradient(105deg, transparent 36%, rgba(255, 255, 255, .55) 50%, transparent 64%) no-repeat 100% 0 / 260% 100%;
}
/* the band enters at the left edge and leaves at the right (background-position 100% to 0% of a 260% band): an even
   sweep (an ease-out crossed the face in a tenth of a second, too fast to see) */
@media (prefers-reduced-motion: no-preference) {
  @media (hover: hover) { .u-shine:hover:not(:disabled, .is-off, [aria-disabled="true"])::after { animation: u-shine .9s cubic-bezier(.45, 0, .55, 1); } }
  @media (hover: none) { .u-shine:active:not(:disabled, .is-off, [aria-disabled="true"])::after { animation: u-shine .7s cubic-bezier(.45, 0, .55, 1); } }
}
@keyframes u-shine { from { background-position: 100% 0; opacity: 1; } to { background-position: 0% 0; opacity: 1; } }
.u-btn--wide { width: 256px; }                                                                               /* .lDFYc */

/* a square icon-only white button (.GEQ3b) */
.u-iconbtn { --hover: none; width: 48px; --h: 48px; --pad: 0; --r: 12px; }

/* ================================================================ 4. form parts */
/* text field (._1Um2j + input._298F2) */
/* clip, not hidden: hidden makes it a scroll area, which a column with too little room (a window with the phone's
   keyboard up) may squash to a sliver; clipped it keeps its height (the column scrolls instead) */
.u-field { display: flex; align-items: center; background: var(--color-polar); border: 2px solid var(--color-swan); border-radius: 12px; overflow: hidden; overflow: clip; }
.u-field:focus-within { border-color: var(--color-macaw); }
.u-field.is-error { border-color: var(--color-fire-ant); }
.u-field.is-off { background: var(--color-polar); border-color: var(--color-polar); }       /* .GNpHC */
.u-field > input, .u-field > textarea {
  flex: 1; min-width: 0; width: 100%; appearance: none; background: none; border: 0; outline: none; box-sizing: border-box;
  caret-color: var(--color-macaw); color: var(--color-eel);
  font: 400 17px/25px var(--font); padding: 9.5px 14px;                                         /* .r-Tne sizing (48px tall field) */
}
.u-field > input::placeholder, .u-field > textarea::placeholder { color: var(--color-placeholder); }
.u-field > input:disabled { color: var(--color-hare); -webkit-text-fill-color: var(--color-hare); }
.u-field > input:disabled::placeholder { color: var(--color-hare); }
.u-field > input[type=search]::-webkit-search-cancel-button, .u-field > input[type=search]::-webkit-search-decoration { display: none; -webkit-appearance: none; }   /* Safari's own clear button and search look */
/* Safari's AutoFill buttons (a contact card, a key) inside a field it takes for a name: its own look, not ours (a rule
   of its own: other browsers drop a rule with a part they don't know) */
.u-field > input::-webkit-contacts-auto-fill-button, .u-field > input::-webkit-credentials-auto-fill-button { visibility: hidden; display: none !important; pointer-events: none; position: absolute; right: 0; }
.u-field > svg { flex-shrink: 0; color: var(--color-hare); margin-left: 14px; }
.u-field > svg + input { padding-left: 8px; }                                                 /* ._298F2[type=search] */
.u-field__clear { display: none; align-self: center; margin-right: 10px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--color-swan); color: var(--color-wolf); cursor: pointer; align-items: center; justify-content: center; padding: 0; }
.u-field:focus-within.has-text .u-field__clear { display: inline-flex; }                    /* ._1Um2j:not(:focus-within) ._3as_M{display:none} */
.u-formrow { display: inline-flex; flex-direction: column; gap: 4px; width: 100%; }           /* ._3zSI5 */
.u-formrow__label { color: var(--color-wolf); font: var(--text-caption-weight) var(--text-caption-size)/var(--text-caption-line-height) var(--font); } /* ._3c2kP */
.u-formrow__error { color: var(--color-fire-ant); font: var(--text-caption-weight) var(--text-caption-size)/var(--text-caption-line-height) var(--font); }

/* toggle / switch (._1F5b7 + ._1hiPr) */
.u-switch { display: inline-flex; align-items: center; cursor: pointer; outline: 0; -webkit-user-select: none; user-select: none; }
.u-switch > input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.u-switch__track { position: relative; display: inline-flex; align-items: center; flex-shrink: 0; width: 57px; height: 24px; border-radius: 12px; background: var(--color-swan); transition: background-color var(--m-fast) var(--m-ease-out); }
.u-switch__track::before {
  content: ""; position: absolute; left: 0; height: 34px; width: 32px; box-sizing: border-box;
  background: var(--u-knob); border: solid var(--u-knob-edge); border-width: 2px 2px 4px; border-radius: 10px; transition: translate var(--m-base) var(--m-spring);
}
.u-switch > input:checked + .u-switch__track { background: var(--color-macaw); }
.u-switch > input:checked + .u-switch__track::before { translate: 25px 0; border-color: var(--color-macaw); }
.u-switch > input:focus-visible + .u-switch__track { outline: 2px solid var(--color-macaw); outline-offset: 6px; }
.u-switch__text { margin-left: 16px; color: var(--color-eel); font: 400 17px/25px var(--font); }   /* ._3fIkT */
.u-switch.is-off { cursor: default; }
.u-switch.is-off .u-switch__text { color: var(--color-hare); }
.u-switch.is-off .u-switch__track { background: var(--color-polar); }
.u-switch.is-off .u-switch__track::before { border-color: var(--color-polar); }

/* checkbox (.MCwf-) and the 3D checkbox used in choice lists (._16OvB) */
.u-check { display: inline-flex; align-items: center; gap: 16px; cursor: pointer; color: var(--color-eel); font: 400 17px/25px var(--font); -webkit-user-select: none; user-select: none; }
.u-check > input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.u-check__box { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 32px; height: 32px; border: 2px solid var(--color-swan); border-radius: 8px; color: transparent; background: var(--color-snow); }
.u-check__box > svg { width: 18px; height: 18px; }
.u-check > input:checked + .u-check__box { background: var(--color-macaw); border-color: var(--color-macaw); color: var(--color-on-bright); }
.u-check > input:disabled + .u-check__box { background: var(--color-swan); border-color: var(--color-swan); }
.u-check > input:focus-visible + .u-check__box { outline: 2px solid var(--color-macaw); outline-offset: 2px; }
.u-check.is-off { color: var(--color-hare); cursor: default; }
.u-check--3d .u-check__box {
  position: relative; width: 40px; height: 42px; border: solid transparent; border-width: 2px 2px 4px; border-radius: 9px; background: none;
}
.u-check--3d .u-check__box::before { content: ""; position: absolute; inset: -2px; background: var(--color-snow); border: 2px solid var(--color-swan); border-radius: 9px; box-shadow: 0 2px 0 var(--color-swan); }
.u-check--3d .u-check__box > svg { position: relative; width: 16px; height: 16px; }
.u-check--3d > input:checked + .u-check__box { background: none; color: var(--color-owl); }
.u-check--3d > input:checked + .u-check__box::before { background: var(--color-sea-sponge); border-color: var(--color-turtle); box-shadow: 0 2px 0 var(--color-turtle); }
.u-check--3d:active .u-check__box { transform: translateY(2px); }
.u-check--3d:active .u-check__box::before { box-shadow: none; }

/* tab bar (.eUXKx / .FDKtw) */
.u-tabs { display: flex; border-bottom: 2px solid var(--color-swan); position: relative; }
.u-tab {
  flex: 1; min-width: 58px; height: 64px; white-space: nowrap; padding: 0 12px; display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: -2px;
  border: 0; border-bottom: 2px solid var(--color-swan); background: none; cursor: pointer; text-decoration: none;
  color: var(--color-label); font: 700 15px/18px var(--font); letter-spacing: .8px; text-transform: uppercase;
}
@media (hover: hover) { .u-tab:not(.is-active):hover { color: var(--color-eel); } }
.u-tab.is-active { border-color: var(--color-macaw); color: var(--color-macaw); }
.u-tab .u-count { margin-left: 2px; }
/* segmented control: joined 3D options, the picked one is the list "selected" style (._1uPk5._2eK7m) */
.u-seg { display: inline-flex; position: relative; border-radius: 12px; }
.u-seg__opt {
  position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 64px; height: 44px; padding: 0 16px;
  background: var(--color-snow); color: var(--color-wolf); cursor: pointer; text-decoration: none;
  font: 700 15px/18px var(--font); letter-spacing: .8px; text-transform: uppercase;
  border: 2px solid var(--color-swan); border-bottom-width: 4px; margin-left: -2px;
}
.u-seg__opt:first-child { margin-left: 0; border-radius: 12px 0 0 12px; }
.u-seg__opt:last-child { border-radius: 0 12px 12px 0; }
@media (hover: hover) { .u-seg__opt:not(.is-active):hover { background: var(--color-polar); } }
.u-seg__opt.is-active { background: var(--color-iguana); border-color: var(--color-blue-jay); color: var(--color-whale); z-index: 1; }
.u-seg__opt:active:not(.is-active) { border-bottom-width: 2px; margin-top: 2px; height: 42px; }
.u-seg__opt:focus-visible { outline: 2px solid var(--color-macaw); outline-offset: 2px; z-index: 2; }
.u-seg--sm .u-seg__opt { height: 36px; min-width: 52px; padding: 0 12px; font-size: 14px; }
.u-seg--sm .u-seg__opt:active:not(.is-active) { height: 34px; }

/* select-like dropdown trigger (._3QwUP) */
.u-select {
  position: relative; display: inline-flex; align-items: center; height: 50px; padding: 0 41px 0 12px; cursor: pointer;
  background: none; border: solid transparent; border-width: 2px 2px 4px; border-radius: 12px; color: var(--color-wolf);
  font: 700 15px/18px var(--font); letter-spacing: .8px; text-transform: uppercase; white-space: nowrap; transform: translateZ(0);
}
.u-select::before { content: ""; position: absolute; inset: -2px; z-index: -1; background: var(--color-snow); border: 2px solid var(--color-swan); border-radius: 12px; box-shadow: 0 2px 0 var(--color-swan); }
.u-select__chev { position: absolute; right: 16px; width: 15px; height: 9px; color: var(--color-hare); transition: transform var(--m-base) var(--m-ease-out); }
.u-select.is-open .u-select__chev { transform: rotate(-180deg); }                                /* .pgWY0 */
.u-select:active, .u-select.is-open { transform: translateY(2px); color: var(--color-hare); }
.u-select:active::before, .u-select.is-open::before { background: var(--color-swan); box-shadow: none; }  /* ._2MogS */
.u-select > img, .u-select > .u-pic { margin-right: 8px; }

/* list of options (._3GqlE._3xLU4 + ._1uPk5): used inside dropdowns */
.u-list { display: flex; flex-direction: column; border: 2px solid var(--color-swan); border-radius: 14px; overflow: hidden; margin: 0; padding: 0; list-style: none; }
/* a list held short (a results list over the keyboard) scrolls: its rows never shrink to fit */
.u-list > * { flex-shrink: 0; }
.u-pop .u-list { border: 0; border-radius: 0; }
.u-list__opt {
  display: grid; grid-template-columns: min-content 1fr min-content; align-items: center; column-gap: 16px;
  padding: 14px 16px; border-bottom: 2px solid var(--color-swan); background: var(--color-snow); color: var(--color-eel);
  font: 400 17px/25px var(--font); cursor: pointer; text-decoration: none; text-align: left; border-left: 0; border-right: 0; border-top: 0; width: 100%;
}
.u-list__opt:last-child { border-bottom: 0; }
@media (hover: hover) { .u-list__opt:hover:not(.is-active) { background: var(--color-polar); } }
.u-list__opt.is-active { background: var(--color-iguana); color: var(--color-whale); }
.u-list__opt.is-off { color: var(--color-swan); cursor: default; }
.u-list__opt b { font-weight: 700; }
/* a colour choice's swatch (UI.dropdown option.swatch: Settings → Theme): the page's colour in a ring that shows on any
   page, the accent as a dot on its edge */
.u-list__sw { position: relative; display: block; width: 24px; height: 24px; border-radius: 50%; background: var(--sw-face); box-shadow: inset 0 0 0 2px rgba(var(--color-hare-rgb), .55); }
.u-list__sw::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 10px; height: 10px; border-radius: 50%; background: var(--sw-dot, transparent); }
.u-list__end { color: var(--color-macaw); display: flex; }
/* a plain dropdown's menu (UI.dropdown { plain: true }): words only, the pick in bold on white and marked by its check
   (Values' Sort, Settings' choices, the admin's selects; each page sets its own padding and type) */
.u-pop--plain .u-list__opt { grid-template-columns: minmax(0, 1fr) 20px; column-gap: 8px; }
.u-pop--plain .u-list__opt > span:first-child { display: none; }
/* ...but a colour choice keeps its swatch (Settings → Theme) */
.u-pop--plain .u-list__opt:has(> span > .u-list__sw) { grid-template-columns: 24px minmax(0, 1fr) 20px; column-gap: 12px; }
.u-pop--plain .u-list__opt > span:first-child:has(> .u-list__sw) { display: block; }
.u-pop--plain .u-list__opt.is-active { background: var(--color-snow); color: var(--color-eel); font-weight: 700; }
@media (hover: hover) { .u-pop--plain .u-list__opt.is-active:hover { background: var(--color-polar); } }

/* chips: the swan status pill (._2I6Qk._2tJ-w) and the small 3D item chip */
.u-pill { display: inline-flex; align-items: center; justify-content: center; height: 25px; padding: 8px; border-radius: 16px; white-space: nowrap; background: var(--color-swan); color: var(--color-eel); font: 700 15px/20px var(--font); }   /* status words in sentence case (rule 17) */
.u-pill--green { background: var(--color-sea-sponge); color: var(--color-on-soft-green); }                              /* "2 / 2 EQUIPPED" */
.u-pill--blue { background: var(--color-iguana); color: var(--color-macaw); }
.u-chip {
  position: relative; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px 0 8px; cursor: pointer; transform: translateZ(0);
  background: none; border: solid transparent; border-width: 2px 2px 4px; border-radius: 12px; color: var(--color-eel);
  font: 700 15px/18px var(--font); white-space: nowrap; text-decoration: none; -webkit-user-select: none; user-select: none;
}
.u-chip::before { content: ""; position: absolute; inset: -2px; z-index: -1; background: var(--color-snow); border: 2px solid var(--color-swan); border-radius: 12px; box-shadow: 0 2px 0 var(--color-swan); transition: background-color var(--m-fast) var(--m-ease-out), border-color var(--m-fast) var(--m-ease-out); }
@media (hover: hover) { .u-chip:hover:not(.is-on)::before { background: var(--color-polar); } }
.u-chip:active { transform: translateY(2px); }
.u-chip:active::before { box-shadow: none; }
.u-chip.is-on { color: var(--color-whale); }
.u-chip.is-on::before { background: var(--color-iguana); border-color: var(--color-blue-jay); box-shadow: 0 2px 0 var(--color-blue-jay); }
.u-chip__x { display: inline-flex; color: var(--color-hare); margin-left: 2px; }

/* badges */
.u-count {                                                                                     /* red count: their dot (._3niSR._2O71O) grown to fit a number */
  display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 11px; border: 2px solid var(--color-snow); background: var(--color-count); color: var(--color-snow-always-light);
  font: 700 12px/1 var(--font); box-sizing: border-box;
}
.u-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--color-snow); background: var(--color-cardinal); } /* ._2O71O 8px + border */
.u-new { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 6px; background: var(--color-iguana-always-light); color: var(--color-macaw-always-light); font: 700 15px/18px var(--font); white-space: nowrap; } /* ._3LDH7, in sentence case (rule 17) */
.u-new--solid { background: var(--color-whale); color: var(--color-snow-always-light); }        /* .I8k9I */
.u-new--green { background: var(--color-sea-sponge); color: var(--color-on-soft-green); height: 24px; line-height: 16px; }
.u-new--green > svg { color: var(--color-owl); }                                          /* eel words, the green check icon */   /* ._12f9L */
 /* lesson "NEW WORD" label row */

/* tooltip: wolf popover, radius 8, caption text (._3tr73 + ._12Izw) */
.u-tip { position: fixed; z-index: 600; pointer-events: none; opacity: 0; transition: opacity var(--m-fast) var(--m-ease-out); }
.u-tip.is-open { opacity: 1; }
.u-tip__box { background: var(--color-label); border: 2px solid var(--color-label); border-radius: 8px; color: var(--color-snow); padding: 5px 10px; white-space: nowrap; font: var(--text-caption-weight) var(--text-caption-size)/var(--text-caption-line-height) var(--font); }
.u-tip .u-pop__arrow::before { background: var(--color-label); border-color: var(--color-label); }   /* their wolf, a touch deeper (pop.css): white on it 5.3:1, wolf itself 4.48 */

/* a popover comes out of its button: a fade and a 4px glide from the button's side (above it: from below), quick and
   never floaty; it goes the same way, a little quicker, and only then stops taking the pointer and the keys (its
   visibility waits for the fade). transform, not translate: a page may nudge one into line with `translate` (Values'
   Sort menu). Reduced motion: motion.css's durations are 1ms, so it just shows and goes. */
.u-pop {
  position: fixed; z-index: 400; visibility: hidden; pointer-events: none; opacity: 0; transform: translateY(-4px);
  transition: opacity var(--m-fast) var(--m-ease-in), transform var(--m-fast) var(--m-ease-in), visibility 0s linear var(--m-fast);
}
.u-pop.is-above { transform: translateY(4px); }
.u-pop.is-open {
  visibility: visible; pointer-events: auto; opacity: 1; transform: none;
  transition: opacity var(--m-fast) var(--m-ease-out), transform var(--m-base) var(--m-ease-out), visibility 0s;
}

.u-pop__box { background: var(--color-snow); border: 2px solid var(--u-drop-edge); border-radius: 15px; box-shadow: var(--u-drop-shadow); overflow: hidden; transform: translateZ(0); }
.u-pop__arrow { position: absolute; top: -8px; width: 20px; height: 10px; overflow: hidden; }
.u-pop__arrow::before {
  content: ""; position: absolute; left: 50%; top: 0; width: 14.14px; height: 14.14px; box-sizing: border-box;
  background: var(--color-snow); border: 2px solid var(--u-drop-edge); border-radius: 2px; transform: translateZ(0) rotate(45deg); transform-origin: top left;
}
.u-pop.is-above .u-pop__arrow { top: auto; bottom: -8px; transform: rotate(180deg); }

/* progress bar (web-ui ._3yKMC + ._27NV6 + shine ._1EFTr): green, or blue (--blue) */
.u-bar { --h: 16px; --v: 0%; --c: var(--color-owl); position: relative; width: 100%; height: var(--h); border-radius: calc(var(--h) / 2); background: var(--color-swan); }
.u-bar__fill { position: absolute; left: 0; top: 0; height: 100%; width: var(--v); max-width: 100%; min-width: calc(var(--h) * 1.5); border-radius: inherit; background: var(--c); transition: width var(--m-slow) var(--m-ease-out), background-color var(--m-slow); }   /* width: Duolingo's own bar does it, a 16px absolute box (no page layout) */
.u-bar__shine { position: absolute; left: calc(var(--h) / 4); top: 25%; height: 3px; width: max(0px, calc(var(--v) - var(--h) / 2)); border-radius: 9999px; background: var(--color-snow-always-light); opacity: .2; transition: width var(--m-slow) var(--m-ease-out); }
.u-bar.is-empty .u-bar__fill, .u-bar.is-empty .u-bar__shine { opacity: 0; }
.u-bar--blue { --c: var(--color-macaw); }

/* loading: their three pulsing dots (._2dejf) and skeleton bars */
.u-dots { display: inline-grid; grid-template-columns: repeat(3, min-content); gap: 6px; }
.u-dots > i { width: 8px; height: 8px; border-radius: 50%; background: var(--color-hare); animation: u-dot 1.2s ease-in-out infinite; }
.u-dots > i:nth-child(2) { animation-name: u-dot2; }
.u-dots > i:nth-child(3) { animation-name: u-dot3; }
@keyframes u-dot { 0% { opacity: 1 } 33.33% { opacity: .3 } 66.67% { opacity: .3 } to { opacity: 1 } }   /* _3IjuS */
@keyframes u-dot2 { 0% { opacity: .3 } 33.33% { opacity: 1 } 66.67% { opacity: .3 } to { opacity: .3 } } /* T-gio */
@keyframes u-dot3 { 0% { opacity: .3 } 33.33% { opacity: .3 } 66.67% { opacity: 1 } to { opacity: .3 } } /* _2eBze */
@media (prefers-reduced-motion: reduce) { .u-dots > i { animation: none; opacity: .6; } }   /* still: three quiet dots */
.u-skel { display: block; background: var(--color-swan); border-radius: 8px; height: 16px; animation: u-skel 1.2s ease-in-out infinite; }
.u-skel--circle { border-radius: 50%; width: 48px; height: 48px; flex-shrink: 0; }
.u-skel--pic { border-radius: 12px; width: 64px; height: 64px; }
@keyframes u-skel { 0%, to { opacity: 1 } 50% { opacity: .5 } }
.u-skelrow { display: flex; align-items: center; gap: 20px; padding: 8px 24px 8px 16px; height: 64px; }
.u-skelrow .u-skel--dot { width: 16px; height: 16px; border-radius: 50%; }

/* empty state: the centred "Unlock Leaderboards!" block (._3M54a) */
.u-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 24px 0; }
.u-empty__title { color: var(--color-eel); font-size: 25px; font-weight: 700; line-height: 26px; margin: 0 0 16px; }    /* ._2umk- */
.u-empty__text { color: var(--color-wolf); font-size: 19px; line-height: 24px; margin: 0 0 24px; max-width: 420px; }      /* ._2_-1p */
.u-empty .u-btn { margin-bottom: 24px; }

/* dividers: a plain 2px swan line, and the line with a heading in the middle (._2A6o6) */
.u-divider { border: 0; height: 2px; background: var(--color-swan); margin: 16px 0; }
.u-divider--text { display: block; height: auto; background: none; overflow: hidden; overflow: clip; text-align: center; padding-top: 20px; color: var(--color-eel); font: var(--text-heading-weight-small) var(--text-heading-size-small)/var(--text-heading-line-height-small) var(--font); }
.u-divider--text::before, .u-divider--text::after { content: ""; display: inline-block; position: relative; vertical-align: middle; width: 180px; height: 2px; background: var(--color-swan); }
.u-divider--text::before { margin-left: -50%; right: 8px; }
.u-divider--text::after { margin-right: -50%; left: 8px; }
.u-divider--quiet { color: var(--color-label); font-size: 17px; }

/* ================================================================ values, coin, change */
/* the number sits on the text's baseline (next to words it lines up with them); the coin centres on it, 3px away */
.u-val { display: inline-flex; align-items: baseline; gap: 3px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.u-val > .u-coin { align-self: center; }
.u-coin { display: inline-block; width: .95em; height: 1.15em; flex-shrink: 0; vertical-align: -.2em; }
.u-chg { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; white-space: nowrap; }
.u-chg > svg { width: 12px; height: 12px; }
.u-chg.is-up { color: var(--color-up); }
.u-chg.is-down { color: var(--color-down); }
.u-chg.is-flat { color: var(--color-label); }

/* ================================================================ item pictures, avatars, online dot */
.u-pic { --s: 48px; position: relative; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: var(--s); height: var(--s); border-radius: 12px; }
.u-pic > img { width: 100%; height: 100%; object-fit: contain; display: block; position: relative; }
.u-pic__code { color: var(--color-hare); font: 700 calc(var(--s) * .34)/1 var(--font); letter-spacing: .02em; }
.u-pic.has-img .u-pic__code { display: none; }
.u-pic:not(.has-img) { background: var(--color-polar); border: 2px solid var(--color-swan); }
/* the boxed picture: a white 3D card (characters tile ._2V6ug._3Dsa-) */
.u-pics { display: inline-flex; align-items: center; }
.u-pics > .u-pic + .u-pic { margin-left: -6px; }
.u-avatar { --s: 48px; --bg: var(--color-macaw); position: relative; display: inline-flex; flex-shrink: 0; width: var(--s); height: var(--s); }
.u-avatar__img { position: relative; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: var(--bg); color: var(--color-snow-always-light); display: flex; align-items: center; justify-content: center; font: 700 calc(var(--s) * .42)/1 var(--font); } /* ._203Xm / letter avatar ._1N32S */
.u-avatar__img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.u-avatar__dot { position: absolute; right: calc(var(--s) * .06); bottom: 1px; width: 12px; height: 12px; border-radius: 50%; background: var(--color-owl); border: 2px solid var(--color-snow); } /* ._2NNBf */
.u-online { display: inline-flex; align-items: center; gap: 6px; color: var(--color-up); font: 700 15px/20px var(--font); white-space: nowrap; }
.u-online::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--color-owl); flex-shrink: 0; }
.u-online.is-off { color: var(--color-label); }
.u-online.is-off::before { background: var(--color-swan); }

/* ================================================================ 5. lists */

 /* ._3SKx_ */

.u-lhead__title { color: var(--color-eel); font-size: 28px; font-weight: 700; line-height: 34px; margin: 20px 0 14px; }   /* the app's page title: 28/34 eel, phones too (UX.md rule 20) */

.u-lhead__time { display: flex; align-items: center; justify-content: center; height: 26px; margin-bottom: 16px; color: var(--color-label); font-size: 17px; font-weight: 700; line-height: 20px; }
.u-lhead__time.is-soon { color: var(--color-label); }
/* their gold clock in front (the words are grey: gold words on white are 1.6:1) */
.u-lhead__time::before {
  content: ""; width: 18px; height: 18px; margin-right: 6px; flex-shrink: 0; background: var(--color-bee);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat;
}
.u-lhead__time.is-soon::before { background: var(--color-fox); }

  /* ._32enP */

 /* ._3d6BP */

 /* ._3WYpp: written in capitals (full white: 70% read 1.7:1) */

/* the big statement box from the lesson-complete screen (._23WOw + ._5KPRI) */
.u-statbox { --c: var(--color-bee); position: relative; width: 163px; border-radius: 16px; background: var(--c); padding: 2px; text-align: center; }
.u-statbox__label { color: var(--color-snow-always-light); font: 700 13px/22px var(--font); text-transform: uppercase; letter-spacing: .04em; padding: 2px 6px 4px; white-space: nowrap; }
.u-statbox__value { display: flex; align-items: center; justify-content: center; gap: 8px; height: 70px; border-radius: 14px; background: var(--color-snow); color: var(--c); font: 700 20px/1 var(--font); }
.u-statbox__value .u-coin { width: 22px; height: 26px; }
.u-statbox--blue { --c: var(--color-macaw); }
.u-statboxes { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ================================================================ 6. modal, full-screen overlay, toast */
.u-scrim { position: fixed; inset: 0; z-index: 320; background: var(--u-scrim); animation: u-fade var(--m-base) var(--m-ease-out) both; }
.u-scrim.is-closing { animation: u-fade-out var(--m-fast) var(--m-ease-in) both; pointer-events: none; }
@keyframes u-fade { from { opacity: 0 } }
@keyframes u-fade-out { to { opacity: 0 } }
.u-modal-pos { position: fixed; inset: 0; z-index: 322; display: flex; align-items: center; align-items: safe center; justify-content: center; overflow: auto; pointer-events: none; } /* ._3Mzt6; safe: a window taller than the screen starts at its top and scrolls (older browsers keep center) */
/* typing on a touch screen (app/viewport.js html.kb): a window sits in the part the keyboard leaves (iOS keeps the page
   its full height under the keyboard), centred there or scrolling there when taller, so the box being typed in and the
   window's buttons can be reached; app/viewport.js scrolls the box into sight */
html.kb .u-modal-pos { top: var(--vv-top, 0px); bottom: auto; height: var(--vv-h, 100%); overscroll-behavior: contain; }
.u-modal {                                                                                                                 /* ._3fFQQ._1yFTM + ._2qzZD */
  --pad: 40px 24px 16px; pointer-events: auto; position: relative; width: 384px; max-width: calc(100vw / var(--zoom, 1) - 48px); margin: 24px;
  padding: var(--pad); border-radius: 16px; background: var(--color-snow); text-align: center; display: flex; flex-direction: column; justify-content: center;
  animation: u-pop-in var(--m-base) var(--m-spring) both;
}
.u-modal.is-closing { animation: u-pop-out var(--m-fast) var(--m-ease-in) both; pointer-events: none; }
@keyframes u-pop-in { from { opacity: 0; transform: scale(.92) } }
@keyframes u-pop-out { to { opacity: 0; transform: scale(.96) } }
.u-modal--wide { width: 480px; }
.u-modal--left { text-align: left; --pad: 24px; }
.u-modal__art { display: flex; justify-content: center; gap: 8px; margin-bottom: 16px; }
.u-modal__title { color: var(--color-eel); font-size: 25px; font-weight: 700; line-height: 34px; margin: 0; }            /* .opacv */
.u-modal__text { color: var(--color-wolf); font-size: 17px; line-height: 24px; margin: 12px 0 0; }                        /* ._118N9 */
/* every window's words: no word left alone on the last line ("know." / "anymore."). The short centred title and text
   balance their lines (iOS 17.4+); a window's own paragraphs (left-aligned bodies) keep a last line of two words */
.u-modal__title, .u-modal__text { text-wrap: balance; }
.u-modal--left .u-modal__text, .u-modal__body p { text-wrap: pretty; }
.u-modal__body { margin-top: 16px; text-align: left; }
.u-modal__actions { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }                                /* .ctsS0 / .QCwEC */
.u-modal__actions > .u-btn { width: 100%; }
/* the X sits inside the window's corner, as the offer, scan and post windows have theirs (half outside, Duolingo's
   place, a phone's edge cut it) */
.u-modal__close {                                                                                                          /* .rXoiv */
  position: absolute; right: 12px; top: 12px; z-index: 10; width: 35px; height: 35px; padding: 0;
  display: flex; align-items: center; justify-content: center; border-radius: 98px; border: 2px solid var(--color-swan); background: var(--color-snow); color: var(--color-hare); cursor: pointer;
}
@media (hover: hover) { .u-modal__close:hover { background: var(--color-swan); } }
.u-modal__close > svg { width: 16px; height: 16px; }
/* what comes first under it (the title, a picture) starts below it, so a long title keeps the window's whole width */
.u-modal__close + :is(.u-modal__art, .u-modal__title, .u-modal__text) { margin-top: 12px; }
/* a finger needs more than the 35px circle (and the field's 24px clear): an invisible ring makes them 44px to tap */
.u-modal__close::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; }
.u-field__clear { position: relative; }
.u-field__clear::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; }
/* full-screen overlay (.H-DGD.FohH5): the lesson-style screens. Close X sits top left at the padding (._1sSQy) */
.u-sheet { position: fixed; inset: 0; z-index: 310; background: var(--color-snow); display: flex; flex-direction: column; animation: u-sheet-in var(--m-base) var(--m-ease-out) both; }
/* iOS Safari (26) shows the page through its own bars: the sheet's colour reaches past the screen's edges */
.u-sheet::before, .u-sheet::after { content: ""; position: absolute; left: 0; right: 0; height: calc(100vh / var(--zoom, 1)); background: inherit; pointer-events: none; }
.u-sheet::before { bottom: 100%; }
.u-sheet::after { top: 100%; }
.u-sheet.is-closing { animation: u-sheet-out var(--m-fast) var(--m-ease-in) both; pointer-events: none; }
@keyframes u-sheet-in { from { opacity: 0; transform: translateY(16px) } }
@keyframes u-sheet-out { to { opacity: 0; transform: translateY(16px) } }
.u-sheet__x { position: absolute; top: 30px; left: 30px; z-index: 10; width: 32px; height: 32px; padding: 0; border: 0; background: none; color: var(--color-hare); cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: 8px; }
@media (hover: hover) { .u-sheet__x:hover { filter: brightness(1.1); } }
.u-sheet__x { transition: filter var(--m-fast); }
.u-sheet__x::after { content: ""; position: absolute; inset: -6px; border-radius: 12px; }   /* 44px to tap */
.u-sheet__x > svg { width: 18px; height: 18px; }
/* toasts (.eob-w): wolf box, radius 12, bottom 45px, centred */
.u-toasts { position: fixed; left: 50%; bottom: 45px; transform: translateX(-50%); z-index: 500; display: flex; flex-direction: column-reverse; align-items: center; gap: 12px; pointer-events: none; }
.u-toast { pointer-events: auto; user-select: none; -webkit-user-select: none; display: flex; align-items: center; min-width: 360px; max-width: 640px; padding: 20px; border-radius: 12px; background: var(--u-toast-bg); color: var(--u-toast-fg); animation: u-toast-in var(--m-slow) var(--m-spring) both; }
.u-toast.is-closing { animation: u-toast-out var(--m-fast) var(--m-ease-in) both; pointer-events: none; }
@keyframes u-toast-in { from { opacity: 0; transform: translateY(24px) } }
@keyframes u-toast-out { to { opacity: 0; transform: translateY(24px) } }
.u-toast__ic { display: flex; margin-right: 20px; flex-shrink: 0; }                                                         /* ._1r0OB */
.u-toast__ic > svg { width: 28px; height: 28px; }
.u-toast__ic > .u-pic, .u-toast__ic > .u-avatar { --s: 40px; }
.u-toast__text { flex-grow: 1; font-size: 17px; line-height: 24px; display: flex; flex-direction: column; text-wrap: balance; }                  /* ._3C1w1 */
.u-toast__text b { font-weight: 700; }
.u-toast__act { margin-left: 40px; }                                                                                         /* ._19Bdj */
.u-toast__act .u-btn { --fg: var(--u-toast-fg); }
.u-toast--good .u-toast__ic { color: var(--color-owl); }
.u-toast--bad .u-toast__ic { color: var(--color-cardinal); }
.u-toast--info .u-toast__ic { color: var(--color-macaw); }

/* ================================================================ 7. lesson screens: the Post a trade and Make an offer windows */
.u-lesson { overflow: hidden; }
.u-lesson__top { flex-shrink: 0; display: flex; align-items: center; gap: 24px; width: 100%; max-width: 1080px; margin: 0 auto; padding: 50px 40px 0; } /* lesson header: X, progress, right status */
.u-lesson__top .u-sheet__x { position: static; flex-shrink: 0; }
.u-lesson__top .u-bar { flex: 1; }

.u-lesson__body { flex: 1; min-height: 0; overflow-y: auto; }
.u-lesson__in { width: 100%; max-width: 1080px; margin: 0 auto; padding: 40px 40px 32px; }
.u-lesson__title { color: var(--color-black-text); font: 700 32px/40px var(--font); margin: 8px 0 24px; }   /* lesson h1: 32/40 700, answer area 24px under */

/* their picture-choice card shell (web-ui card ._8dMUn; picked = ._1pRZ7): now only the answer cards (.u-choice below);
   items are the item tile (.u-item, the end of this file) */
.u-tile {
  --bc: var(--color-swan); --bgc: var(--color-snow);
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px; min-height: 150px; padding: 16px 12px 12px;
  border: solid transparent; border-width: 2px 2px 4px; border-radius: 12px; background: none; cursor: pointer; transform: translateZ(0);
  color: var(--color-eel); font: inherit; text-align: center; -webkit-user-select: none; user-select: none; outline: 0; -webkit-tap-highlight-color: transparent;
}
.u-tile::before { content: ""; position: absolute; inset: -2px; z-index: -1; background-color: var(--bgc); border: 2px solid var(--bc); border-radius: 12px; box-shadow: 0 2px 0 var(--bc); }
@media (hover: hover) { .u-tile:hover:not(:active):not(.is-picked):not(:disabled)::before { background-color: var(--color-polar); } }
.u-tile:active:not(:disabled), .u-tile.is-picked { --bc: var(--color-blue-jay); --bgc: var(--color-iguana); color: var(--color-whale); }
.u-tile:active:not(:disabled) { transform: translateY(2px) translateZ(0); }
.u-tile:active:not(:disabled)::before { box-shadow: none; }
.u-tile:disabled:not(.is-picked) { cursor: default; color: var(--color-swan); transform: translateY(2px) translateZ(0); }
.u-tile:disabled:not(.is-picked)::before { box-shadow: none; }
.u-tile:disabled:not(.is-picked) .u-pic { opacity: .45; }
.u-tile:focus-visible { outline: 2px solid var(--color-macaw); outline-offset: 3px; }

/* choice card: their onboarding answer card (same web-ui card ._8dMUn shell as .u-tile), icon left, bold label right.
   Measured live on duolingo.com/welcome?welcomeStep=hdyhau (1440, dark): 364 x 78, 2px border + 2px drop, radius 12,
   icon 40 at 18,18, label 17/24 700 at x 74, two per row with a 16px gap. */
.u-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 364px)); gap: 16px; }
.u-choice { flex-direction: row; align-items: center; justify-content: flex-start; gap: 16px; min-height: 0; height: 78px; padding: 16px; text-align: left; }
.u-choice .u-pic { --s: 40px; flex: none; }
.u-choice__ic { width: 40px; height: 40px; flex: none; display: flex; align-items: center; justify-content: center; }
.u-choice__ic > img, .u-choice__ic > svg { max-width: 40px; max-height: 40px; }
.u-choice__label { min-width: 0; color: var(--color-eel); font: 700 17px/24px var(--font); overflow-wrap: break-word; }
.u-tile.u-choice.is-picked .u-choice__label, .u-tile.u-choice:active:not(:disabled) .u-choice__label { color: var(--color-whale); }

/* the CHECK footer bar and its correct / wrong states (._2i9lj / ._3rB4d; ._3dPu- correct, ._1nNH7 wrong) */
.u-footbar { flex-shrink: 0; position: relative; min-height: 140px; border-top: 2px solid var(--color-swan); background: var(--color-snow); }   /* colour swaps in one frame, like theirs: motion.barUp slides it */
.u-footbar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; max-width: 1000px; min-height: 140px; margin: 0 auto; padding: 16px 40px; } /* .jHbiF: max 1000, padding 0 40px */
.u-footbar__left { display: flex; align-items: center; gap: 16px; min-width: 0; flex: 1; }

.u-footbar.is-correct { background: var(--color-sea-sponge); border-top-color: var(--color-turtle); }
.u-footbar.is-wrong { background: var(--color-walking-fish); border-top-color: var(--color-walking-fish); }
.u-feedback { display: grid; grid-template-columns: min-content 1fr; align-items: center; gap: 16px; }   /* desktop: the bar swaps in one frame, no slide */
@keyframes u-pop-icon { 0% { opacity: 0; transform: scale(.7) } 33% { opacity: 1; transform: scale(1.1) } 66% { transform: scale(.9) } to { transform: scale(1) } } /* _3qS6D */
.u-feedback__ic { width: 80px; height: 80px; border-radius: 98px; background: var(--color-snow); display: flex; align-items: center; justify-content: center; flex-shrink: 0; animation: u-pop-icon var(--m-slow) var(--m-ease-in-out) both; } /* 80px circle */
.u-feedback__ic > svg { width: 38px; height: 38px; }
.is-correct .u-feedback__ic { color: var(--color-owl); }
.is-wrong .u-feedback__ic { color: var(--color-cardinal); }
.u-feedback__title { font: 700 24px/30px var(--font); margin: 0; }
.u-feedback__text { font-size: 17px; line-height: 26px; margin: 0; }
.is-correct .u-feedback__title, .is-correct .u-feedback__text { color: var(--color-tree-frog); }
.is-wrong .u-feedback__title, .is-wrong .u-feedback__text { color: var(--color-fire-ant); }

/* ================================================================ 8. charts */
.u-chart { --line: var(--color-macaw); position: relative; }
.u-chart__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.u-chart__value { display: flex; align-items: center; gap: 8px; color: var(--color-eel); font-size: 32px; font-weight: 700; line-height: 40px; }
.u-chart__value .u-coin { width: 28px; height: 34px; }
.u-chart__meta { display: flex; align-items: center; gap: 10px; color: var(--color-wolf); font-size: 17px; line-height: 24px; margin-top: 2px; min-height: 24px; }
/* the change line and, on a zoomed chart, its Reset (the site's small text link, a 44px tap round it) */
.u-chart__sum { min-width: 0; }
.u-chart__row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.u-chart__reset {
  position: relative; flex-shrink: 0; padding: 0; margin: 0; border: 0; border-radius: 4px; background: none; cursor: pointer;
  color: var(--color-link, var(--color-macaw)); font: 700 15px/20px var(--font); -webkit-tap-highlight-color: transparent;
}
.u-chart__reset::after { content: ""; position: absolute; inset: -12px -8px; }
.u-chart__reset[hidden] { display: none; }
@media (hover: hover) { .u-chart__reset:hover { text-decoration: underline; } }
.u-chart__reset:focus-visible { outline: 2px solid var(--color-macaw); outline-offset: 2px; }
/* the plot: its height fixed (lineChart sets it), up and down on it scrolls the page, sideways and pinches are the
   chart's; a zoomed chart can be grabbed */
.u-chart__plot {
  position: relative; border-radius: 4px; outline: none; touch-action: pan-y;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent;
}
.u-chart__plot:focus-visible { outline: 2px solid var(--color-macaw); outline-offset: 4px; }
.u-chart.is-zoomed .u-chart__plot { cursor: grab; }
.u-chart.is-dragging .u-chart__plot { cursor: grabbing; }
.u-chart__svg { display: block; width: 100%; overflow: visible; }
.u-chart__grid { stroke: var(--color-swan); stroke-width: 2; }
.u-chart__line { fill: none; stroke: var(--line); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.u-chart__area { fill: var(--line); opacity: .12; }
.u-chart__ylabel, .u-chart__xlabel { fill: var(--color-hare); font: 700 13px/16px var(--font); font-variant-numeric: tabular-nums; }
.u-chart__xlabel { text-transform: uppercase; }
.u-chart__cross { stroke: var(--color-swan); stroke-width: 2; }
.u-chart__dot { fill: var(--color-snow); stroke: var(--line); stroke-width: 4; }
/* the tooltip over the point read (under it near the top), kept inside the plot: lineChart moves it by a transform */
.u-chart__tip { position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; background: var(--color-label); color: var(--color-snow); border-radius: 8px; padding: 5px 10px; white-space: nowrap; font: 700 15px/20px var(--font); font-variant-numeric: tabular-nums; }
.u-chart__tip small { display: block; font-weight: 400; font-size: 13px; line-height: 16px; opacity: .92; }   /* 4.7:1 on the tip */
.u-spark { display: block; overflow: visible; }
.u-spark path { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* ================================================================ the item tile (UI.tile): its tier tile is its only box
   (spec/cards/PICK.md, spec/nav/UX.md rule 15); the name and the value sit under it as plain text. The tile's face and
   its tier colours are pop.css (.u-pic--fill); here the grid, the words, the corner marks and the states. */
.u-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 16px 10px; align-items: stretch; margin: 0; padding: 0; list-style: none; }
.u-tiles > li { display: flex; min-width: 0; }
/* in a grid of items the values of one row sit on one line ("Elderwood Scythe" next to "Batwing"): a row's tiles are as
   tall as its tallest, and each name pushes what follows it (the value) to its tile's foot. A row of one-line names
   stays tight (no empty second line under them) */
.u-tiles .u-item__name { margin-bottom: auto; }
.u-item {
  position: relative; display: flex; flex-direction: column; width: 100%; min-width: 0; margin: 0; padding: 0; border: 0; background: none;
  color: var(--color-eel); font: inherit; text-align: left; text-decoration: none; cursor: pointer; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
}
.u-item > .u-pic { transition: box-shadow var(--m-fast) var(--m-ease-out), transform var(--m-fast) var(--m-ease-out); }
.u-item__name { margin-top: 8px; font: 700 15px/18px var(--font); overflow-wrap: normal; word-break: normal; hyphens: manual; }   /* whole names, wrapped at spaces only */
.u-wb { display: inline-block; hyphens: manual; }   /* a long word of a name (UI.tileName): whole on the next line, else broken where a person would, with a hyphen */
.u-item__val { margin-top: 2px; color: var(--color-label); font: 700 15px/18px var(--font); white-space: nowrap; font-variant-numeric: tabular-nums; }
.u-item__val .u-val { gap: 3px; color: inherit; }   /* the coin glued to its number (UX.md rule 16) */
.u-item__val .u-coin { width: 12px; height: 15px; }
.u-item__why, .u-item__hint { display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; color: var(--color-label); font: 700 14px/18px var(--font); }
.u-item__hint { color: var(--color-ok); }
.u-item__why > svg { flex-shrink: 0; width: 14px; height: 14px; margin-top: -1px; }
/* marks inside the tile's corners: you have it (green), picked (blue), how many (a snow plate, like a game's stack) */
.u-item__own, .u-item__key {
  position: absolute; top: 6px; right: 6px; z-index: 2; display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%; color: var(--color-on-bright); box-shadow: 0 0 0 2px var(--color-snow);
}
.u-item__own { background: var(--color-owl); }
.u-item__key { display: none; background: var(--color-macaw); }
.u-item__own > svg, .u-item__key > svg { width: 14px; height: 14px; }
.u-item__qty {
  position: absolute; right: 6px; bottom: 6px; z-index: 2; padding: 1px 6px; border-radius: 8px;
  background: var(--color-snow); color: var(--color-eel); font: 700 13px/18px var(--font); font-variant-numeric: tabular-nums;
}
/* hover (a ring in the tier's line colour), press (down 2px), focus (the blue outline around the tile) */
@media (hover: hover) { :is(a.u-item, button.u-item:not(:disabled)):not(.is-picked, .is-hit):hover > .u-pic { box-shadow: inset 0 0 0 2px var(--tier-line, var(--color-swan)); } }
:is(a.u-item, button.u-item:not(:disabled)):active > .u-pic { transform: translateY(2px); }
.u-item:focus-visible { outline: none; }
.u-item:focus-visible > .u-pic { outline: 2px solid var(--color-macaw); outline-offset: 3px; }
/* picked (and the item a list is about): the tile's own edge turns blue, the blue check, blue words; no second frame */
:is(.u-item.is-picked, .u-item.is-hit) > .u-pic { box-shadow: inset 0 0 0 3px var(--color-macaw); }
.u-item.is-picked .u-item__key { display: flex; }
.u-item.is-picked :is(.u-item__name, .u-item__val) { color: var(--color-whale); }
/* can't trade: a plain face, the picture grey, the reason in words. The state selectors stay this strong: the tier
   faces would win over a plainer rule. */
:root { --item-off-face: var(--color-polar); --item-off-img: .5; --item-off-filter: grayscale(1); }
.u-item:is(:disabled:not(.is-picked), .is-keep) > .u-pic { background: var(--item-off-face); }
.u-item:is(:disabled:not(.is-picked), .is-keep) > .u-pic > img { opacity: var(--item-off-img); filter: var(--item-off-filter); }
.u-item:disabled:not(.is-picked) .u-item__name { color: var(--color-label); }
.u-item:disabled, div.u-item, .u-item--extra { cursor: default; }
/* "a little extra": a dashed slot the size of a tile; its words under it may take two lines (a phone's tile is ~75px:
   "More, smaller items" never runs into the next tile) */
.u-item--extra .u-item__val { white-space: normal; }
.u-item__slot { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1; border: 2px dashed var(--color-swan); border-radius: 16px; color: var(--color-hare); font: 700 40px/1 var(--font); }
/* a trade's ask (UI.extraTile, adcard-markup.js openTile: "Open to offers", "Upgrade", "Downgrade", "Adds"): a blue
   mystery tile with the tile's lip, not an empty dashed slot: it is part of the trade, not a place to fill */
.u-item--extra .u-item__slot { border: 2px solid var(--color-blue-jay); border-bottom-width: 4px; background: var(--color-iguana); color: var(--color-macaw); }
/* small grids (a profile's finished trades): 84px columns, 13px words (Deathspeaker is 77px at 13px bold) */
.u-tiles--sm { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 12px 8px; }
.u-tiles--sm .u-item__name, .u-tiles--sm :is(.u-item__val, .u-item__why, .u-item__hint) { font-size: 13px; line-height: 16px; }
@media (max-width: 699px) {
  .u-tiles:not(.u-tiles--sm) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 8px; }
  .u-item__name { font-size: 14px; line-height: 17px; }
  .u-item__val, .u-item__why, .u-item__hint { font-size: 14px; }
}
