/* Wishly · fonts/fonts.css — the app's fonts, served from the app itself (16/10/2026).
   Before, they came from Google Fonts, which sent every visitor's IP address to Google.
   Files: Fontsource builds of the Google Fonts (SIL Open Font License, LICENSE-*.txt), latin + latin-ext only.
   font-display as before: swap for the text, block for the "Wishly" wordmark (never shown in a fallback font). */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/manrope-latin-ext-400-normal-CMDvPJRp.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/manrope-latin-ext-500-normal-dm74KBQw.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/manrope-latin-ext-600-normal-_gBojHdJ.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/manrope-latin-400-normal-PaqtzbVb.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/manrope-latin-500-normal-BYYD-dBL.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/manrope-latin-600-normal-4f0koTD-.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Sometype Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/sometype-mono-latin-ext-400-normal-D_9xs0pD.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Sometype Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/sometype-mono-latin-400-normal-DbqYDHio.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lobster';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url('/assets/lobster-latin-ext-400-normal-CBN1Kyd4.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lobster';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url('/assets/lobster-latin-400-normal-VmWungf4.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
    /* ==== Design system (21/10) · read this before adding styles ====
       1 · Semantic colours. Screens use ONLY these (or the list theme vars). A mode (Christmas, a future light/dark)
           redefines them in one block, e.g. :root[data-xmas="on"] { --accent: … }, never inside selectors. */
    --surface: #0D1612;       /* screens outside a list (home, login, splash, settings) */
    --on-surface: #E8D8C5;    /* text and icons on --surface (Candy cream) */
    --accent: #233D32;        /* primary (filled) button outside a list: the letters' fir green (Ònia 25/10, v107; was #376953). 8.4:1 with --on-accent; 1.6:1 against --surface, no outline (her choice) */
    --on-accent: #E8D8C5;
    --danger: #FF3B30;        /* the one red (Ònia 21/10): errors, delete account, remove-link circle, delete icon. 5.2:1 on --surface */
    --on-danger: #FFFFFF;     /* icon on a --danger fill (3.6:1, enough for an icon) */
    /* 2 · Type scale. Every font-size uses one of these. Weights: 400 regular, 500 medium (pills), 600 bold (primary buttons, titles).
           Outside the scale on purpose: brand type (Lobster wordmarks, splash claim, onboarding name). */
    --separator: rgba(232,216,197,0.12); /* v235: the thin line between the rows of a list (Profile, Language, Currency) */
    --fs-display: 36px;       /* screen and list titles, wish name */
    --fs-title: 24px;         /* home card titles, profile name */
    --fs-subtitle: 20px;      /* sheet titles, thanks message */
    --fs-body: 16px;          /* body, inputs, buttons, pills */
    --fs-small: 14px;         /* secondary text, notes, meta */
    --fs-label: 12px;         /* mono labels (sentence case since v135) */
    /* 3 · Buttons: see "Buttons (design system)" at the end of this file. */
    /* Color Palette - Updated per request */
    --bg-primary: var(--surface);
    --text-primary: #1A202C;
    --text-secondary: #4A5568;

    /* List themes: 12 Christmas pairings, ordered by hue of the background
       (pink → reds → greens → blue), then by hue of the text.
       v166 (Ònia 4/11): no exceptions. Text on its background, the placeholders (4.5:1 on the field and on the glass pill,
       3:1 for the big name/title ones, which are 24 px or more) and the text of each theme pass WCAG AA, and the placeholder
       is at least 1.6:1 away from the text colour, so it reads as a placeholder by colour alone (no italics). The numbers are
       checked by tests/v166.test.js on every theme. */
    --theme-1-bg: #F5E4EA;
    --theme-1-text: #813232; /* rosa / vermell fosc */
    --theme-2-bg: #E3B4C4;
    --theme-2-text: #233D32; /* rosa / verd avet */
    --theme-3-bg: #652727;
    --theme-3-text: #E8D8C5; /* vermell / crema clar */
    /* There is no theme 4: removed by Ònia on 4/11 (it was retired on 17/10; the app hasn't launched, so no list has it). The numbers stay. */
    --theme-5-bg: #551C18;
    --theme-5-text: #A6B9EF; /* granat / blau clar */
    --theme-6-bg: #233D32;
    --theme-6-text: #E5B9C9; /* verd avet / rosa */
    --theme-7-bg: #233D32;
    --theme-7-text: #E2CEB6; /* verd avet / crema */
    --theme-8-bg: #233D32;
    --theme-8-text: #E2F57C; /* verd avet / llima (el mateix que l'accent, 8/10) */
    --theme-9-bg: #233D32;
    --theme-9-text: #AACCC0; /* verd avet / verd sàlvia clar */
    --theme-10-bg: #233D32;
    --theme-10-text: #B3C3F1; /* verd avet / blau */
    --theme-11-bg: #64A28D;
    --theme-11-text: #111E19; /* verd sàlvia / gairebé negre (v166: it was verd avet #233D32, 3.97, below AA) */
    --theme-12-bg: #B3C3F1;
    --theme-12-text: #622626; /* blau / bordeus */

    /* Lists saved with an index above 12 (old palettes) fall back to a current theme */
    --theme-13-bg: var(--theme-1-bg);
    --theme-13-text: var(--theme-1-text);
    --theme-14-bg: var(--theme-1-bg);
    --theme-14-text: var(--theme-1-text);
    --theme-15-bg: var(--theme-1-bg);
    --theme-15-text: var(--theme-1-text);
    --theme-16-bg: var(--theme-1-bg);
    --theme-16-text: var(--theme-1-text);
    /* Placeholders and the wish detail fields (17/10, a11y): placeholder = the theme text blended into the field until it
       just passes AA (4.5:1 small, 3:1 for the big title/name ones). Fields: dark themes darken (black 18%), light ones
       lighten (white 20%): white over a dark theme pushed even the typed text below AA. (v166: no more exceptions, see above.) */
    --theme-1-ph: #9A5B5C; /* v214: a touch darker (was #9E5F60) so it stays 4.5:1 on the pill over the darker panel */ --theme-1-ph-lg: #AD7678; --theme-1-field: rgba(255, 255, 255, 0.6);
    --theme-2-ph: #4F5854; --theme-2-ph-lg: #646362; --theme-2-field: rgba(255, 255, 255, 0.2);
    --theme-3-ph: #B8978B; --theme-3-ph-lg: #A57D74; --theme-3-field: rgba(0, 0, 0, 0.18);
    --theme-5-ph: #908EB4; --theme-5-ph-lg: #827390; --theme-5-field: rgba(0, 0, 0, 0.18);
    --theme-6-ph: #AC959C; --theme-6-ph-lg: #917F84; --theme-6-field: rgba(0, 0, 0, 0.18);
    --theme-7-ph: #9F9B88; --theme-7-ph-lg: #828674; --theme-7-field: rgba(0, 0, 0, 0.18);
    --theme-8-ph: #8DA35B; --theme-8-ph-lg: #758C52; --theme-8-field: rgba(0, 0, 0, 0.18);
    --theme-9-ph: #82A296; --theme-9-ph-lg: #5E8D7C; --theme-9-field: rgba(0, 0, 0, 0.18);
    --theme-10-ph: #899BB9; --theme-10-ph-lg: #6B84B4; --theme-10-field: rgba(0, 0, 0, 0.18);
    --theme-11-ph: #29443A; --theme-11-ph-lg: #2E4E41; --theme-11-field: rgba(255, 255, 255, 0.2);
    --theme-12-ph: #764C58; --theme-12-ph-lg: #816273; --theme-12-field: rgba(255, 255, 255, 0.2);
    --theme-13-ph: var(--theme-1-ph); --theme-13-ph-lg: var(--theme-1-ph-lg); --theme-13-field: var(--theme-1-field);
    --theme-14-ph: var(--theme-1-ph); --theme-14-ph-lg: var(--theme-1-ph-lg); --theme-14-field: var(--theme-1-field);
    --theme-15-ph: var(--theme-1-ph); --theme-15-ph-lg: var(--theme-1-ph-lg); --theme-15-field: var(--theme-1-field);
    --theme-16-ph: var(--theme-1-ph); --theme-16-ph-lg: var(--theme-1-ph-lg); --theme-16-field: var(--theme-1-field);

    /* Login screen: dark + beige (Ònia 18/10: no lime text left outside the lists) */
    --login-bg: var(--surface);
    --login-text: var(--on-surface);
    /* Filled (primary) buttons outside a list: green with beige text (Ònia 17/10; #376953 = her #488B6E darkened to pass AA, 4,55:1) */
    --btn-bg: var(--accent);
    --btn-text: var(--on-accent);
    /* Filled elements (sheet buttons, chosen options, icon tiles, initials) take the screen's fill: green + beige outside
       lists (Ònia 17/10: everything that was lime goes green), the theme's text colour inside a list (setFill in config.js) */
    --fill-bg: var(--btn-bg);
    --fill-text: var(--btn-text);
    /* Glass (17/10, approved; v2 inside lists): Apple-style glass for every translucent, blurred element. Strong blur with extra saturation,
       a thin bright rim, a highlight along the top edge and a soft shadow. The fill depends on the screen: outside
       lists a light veil; inside a list the theme's own --theme-N-field (dark themes darken, light ones lighten) so the
       text on the glass keeps AA (white over the dark themes pushed it under 4.5:1). */
    --glass-fill: rgba(255, 255, 255, 0.08);
    /* glass v2 (17/10): the quieter glass inside lists, set by setListGlass() in js/config.js */
    --theme-1-glass: rgba(255, 255, 255, 0.6); /* v166: pale pink card: a clearly whiter pill, with a ring in the text colour (--theme-1-ring) */
    --theme-1-ring: 0 0 0 0.5px rgba(129, 50, 50, 0.3);
    --theme-2-glass: rgba(255, 255, 255, 0.15);
    --theme-3-glass: rgba(0, 0, 0, 0.1);
    --theme-5-glass: rgba(0, 0, 0, 0.1);
    --theme-6-glass: rgba(0, 0, 0, 0.1);
    --theme-7-glass: rgba(0, 0, 0, 0.1);
    --theme-8-glass: rgba(0, 0, 0, 0.1);
    --theme-9-glass: rgba(0, 0, 0, 0.1);
    --theme-10-glass: rgba(0, 0, 0, 0.1);
    --theme-11-glass: rgba(255, 255, 255, 0.15);
    --theme-12-glass: rgba(255, 255, 255, 0.15);
    /* v167 (Ònia 4/11): the glass of everything that floats over a letter (alerts, tooltips, bottom sheets). One material:
       dark letters: the letter's colour with 55 % black at 70 %, beige text (button: beige with the letter's colour as its text);
       pale letters (1, 2, 11, 12): white at 60 %, text and button in a dark shade of the letter. All pass AA (tests/v167.test.js). */
    --theme-3-ov-glass: color-mix(in srgb, color-mix(in srgb, var(--theme-3-bg) 45%, black) 70%, transparent); --theme-3-ov-ink: var(--on-surface); --theme-3-ov-onbtn: var(--theme-3-bg); --theme-3-ov-chip: color-mix(in srgb, var(--on-surface) 12%, transparent);
    --theme-5-ov-glass: color-mix(in srgb, color-mix(in srgb, var(--theme-5-bg) 45%, black) 70%, transparent); --theme-5-ov-ink: var(--on-surface); --theme-5-ov-onbtn: var(--theme-5-bg); --theme-5-ov-chip: color-mix(in srgb, var(--on-surface) 12%, transparent);
    --theme-6-ov-glass: color-mix(in srgb, color-mix(in srgb, var(--theme-6-bg) 45%, black) 70%, transparent); --theme-6-ov-ink: var(--on-surface); --theme-6-ov-onbtn: var(--theme-6-bg); --theme-6-ov-chip: color-mix(in srgb, var(--on-surface) 12%, transparent);
    --theme-7-ov-glass: color-mix(in srgb, color-mix(in srgb, var(--theme-7-bg) 45%, black) 70%, transparent); --theme-7-ov-ink: var(--on-surface); --theme-7-ov-onbtn: var(--theme-7-bg); --theme-7-ov-chip: color-mix(in srgb, var(--on-surface) 12%, transparent);
    --theme-8-ov-glass: color-mix(in srgb, color-mix(in srgb, var(--theme-8-bg) 45%, black) 70%, transparent); --theme-8-ov-ink: var(--on-surface); --theme-8-ov-onbtn: var(--theme-8-bg); --theme-8-ov-chip: color-mix(in srgb, var(--on-surface) 12%, transparent);
    --theme-9-ov-glass: color-mix(in srgb, color-mix(in srgb, var(--theme-9-bg) 45%, black) 70%, transparent); --theme-9-ov-ink: var(--on-surface); --theme-9-ov-onbtn: var(--theme-9-bg); --theme-9-ov-chip: color-mix(in srgb, var(--on-surface) 12%, transparent);
    --theme-10-ov-glass: color-mix(in srgb, color-mix(in srgb, var(--theme-10-bg) 45%, black) 70%, transparent); --theme-10-ov-ink: var(--on-surface); --theme-10-ov-onbtn: var(--theme-10-bg); --theme-10-ov-chip: color-mix(in srgb, var(--on-surface) 12%, transparent);
    --theme-1-ov-glass: rgba(255, 255, 255, 0.6); --theme-1-ov-ink: #4A1C2C; --theme-1-ov-onbtn: var(--on-surface); --theme-1-ov-chip: var(--theme-1-bg);
    --theme-2-ov-glass: rgba(255, 255, 255, 0.6); --theme-2-ov-ink: var(--theme-2-text) /* v169: pink with green letter → green ink (was burgundy) */; --theme-2-ov-onbtn: var(--on-surface); --theme-2-ov-chip: color-mix(in srgb, var(--theme-2-bg) 45%, white);
    --theme-11-ov-glass: rgba(255, 255, 255, 0.6); --theme-11-ov-ink: #264037; --theme-11-ov-onbtn: var(--on-surface); --theme-11-ov-chip: color-mix(in srgb, var(--theme-11-bg) 45%, white);
    --theme-12-ov-glass: rgba(255, 255, 255, 0.6); --theme-12-ov-ink: var(--theme-12-text); --theme-12-ov-onbtn: var(--on-surface); --theme-12-ov-chip: color-mix(in srgb, var(--theme-12-bg) 45%, white);
    --theme-13-ov-glass: var(--theme-1-ov-glass); --theme-13-ov-ink: var(--theme-1-ov-ink); --theme-13-ov-onbtn: var(--theme-1-ov-onbtn); --theme-13-ov-chip: var(--theme-1-ov-chip);
    --theme-14-ov-glass: var(--theme-1-ov-glass); --theme-14-ov-ink: var(--theme-1-ov-ink); --theme-14-ov-onbtn: var(--theme-1-ov-onbtn); --theme-14-ov-chip: var(--theme-1-ov-chip);
    --theme-15-ov-glass: var(--theme-1-ov-glass); --theme-15-ov-ink: var(--theme-1-ov-ink); --theme-15-ov-onbtn: var(--theme-1-ov-onbtn); --theme-15-ov-chip: var(--theme-1-ov-chip);
    --theme-16-ov-glass: var(--theme-1-ov-glass); --theme-16-ov-ink: var(--theme-1-ov-ink); --theme-16-ov-onbtn: var(--theme-1-ov-onbtn); --theme-16-ov-chip: var(--theme-1-ov-chip);
    /* outside a letter (home, settings, login): the same material in the app's dark green */
    --ov-glass: color-mix(in srgb, var(--accent) 80%, transparent); --ov-ink: var(--on-surface); --ov-onbtn: var(--surface); /* v167: the fir green of the app, not the near-black: over the pink and blue cards the black went grey */ --ov-chip: color-mix(in srgb, var(--on-surface) 12%, transparent);
    /* v169 (Ònia 4/11): the sheets outside a letter (home, settings) are darker: the fir green turned too green over the pink and blue cards. Inside a letter the sheet keeps the letter's glass (setListGlass). */
    --ov-sheet-glass: color-mix(in srgb, color-mix(in srgb, var(--accent) 45%, black) 94%, transparent);
    --theme-13-glass: var(--theme-1-glass);
    --theme-14-glass: var(--theme-1-glass);
    --theme-15-glass: var(--theme-1-glass);
    --theme-16-glass: var(--theme-1-glass);
    /* The panel of a list (mine and a friend's): Ònia 18/10, on the light themes white 6 % hardly showed: white 22 %
       there (the dark text gains contrast too). Dark themes keep white 6 %. Set by setListGlass(). */
    /* v214 (Ònia 9/11): pale pink with burgundy: the panel under the pills is a little DARKER than the background (the text colour at 10 %: 5 % first, then Ònia asked for 5 % more), not whiter */
    --theme-1-panel: rgba(129, 50, 50, 0.10);
    --theme-2-panel: rgba(255, 255, 255, 0.22);
    --theme-11-panel: rgba(255, 255, 255, 0.22);
    --theme-12-panel: rgba(255, 255, 255, 0.22);
    --theme-13-panel: var(--theme-1-panel);
    --theme-14-panel: var(--theme-1-panel);
    --theme-15-panel: var(--theme-1-panel);
    --theme-16-panel: var(--theme-1-panel);
    --glass-list-blur: blur(15px);
    /* Glass rim "B" (Ònia 21/10, v90): one fine 0.5 px thread, white 42 %, the same everywhere (inside lists too), drawn
       as a shadow ring; the 1 px borders stay, transparent, so no size changes. Before: white 24 % + a top sheen outside
       the lists, white 35 % inside. */
    --glass-ring-base: 0 0 0 0.5px rgba(255, 255, 255, 0.42);
    --glass-ring: var(--glass-ring-base);
    --glass-list-rim: transparent;
    --glass-list-shadow: var(--glass-ring), 0 4px 12px rgba(0, 0, 0, 0.05);
    --glass-blur: blur(24px) saturate(170%);
    --glass-rim: transparent;
    --glass-shadow: var(--glass-ring), 0 4px 12px rgba(0, 0, 0, 0.05);
    /* Splash (sticker screen, also shown while loading) */
    --splash-bg: var(--surface);
    --splash-wordmark: var(--on-surface); /* Figma: Illustration/Candy cream */

    /* Gradients (Keep for items if needed or fallback) */
    --gradient-card-1: linear-gradient(135deg, #D4B5FF 0%, #F3E5F5 100%);
    /* Purple */
    --gradient-card-2: linear-gradient(135deg, #F29AA0 0%, #FECFEF 100%);
    /* Pink/Peach */
    --gradient-card-3: linear-gradient(135deg, #A8E6CF 0%, #DCEDC1 100%);
    /* Green */
    --gradient-card-4: linear-gradient(135deg, #09203F 0%, #537895 100%);
    /* Dark Blue */

    /* Font Families */
    --font-main: 'Manrope', sans-serif;
    --font-list-title: 'Manrope', sans-serif;
    --font-initials: 'Sometype Mono', monospace;

    /* Decoration */
    --radius-sm: 12px;
    --radius-md: 24px;
    --radius-lg: 32px;
    --radius-xl: 40px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    padding-bottom: 40px;
}

button {
    font-family: var(--font-main);
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    background: var(--glass-fill);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-rim);
    box-shadow: var(--glass-shadow);
}

/* v235 (audit 15): on the phone a tap leaves :hover stuck (the shadow stays after the finger leaves). The app only has it with a real pointer (iPad mouse);
   the web keeps it exactly as it was. :where() keeps the specificity at (0,1,1), same as before, so every `.x:hover` override still wins. */
:where(html:not(.native)) button:hover {
    background: var(--glass-fill);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
@media (hover: hover) {
    :where(html.native) button:hover {
        background: var(--glass-fill);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    }
}

button:active {
    transform: scale(0.96);
    background: var(--glass-fill);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

.slide-up {
    animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Specific Component Styles */
.glass-btn {
    background: var(--glass-fill);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-rim);
    box-shadow: var(--glass-shadow);
}

.card-stack {
    display: grid;
    grid-gap: 0;
    padding-top: 20px;
}

.card-wrapper {
    position: relative;
    z-index: 1;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.wishlist-card {
    border-radius: var(--radius-lg);
    padding: 24px;
    min-height: 300px;
    box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    will-change: transform;
}

.wishlist-card:first-child {
    margin-top: 0;
}

/* Scroll Hover Effects Removed */

.wishlist-card:active {
    transform: scale(0.98);
}
/* v214 (Ònia 9/11): a home card moved when pressed (this rule dropped its tilt): it keeps its tilt and stays where it is */
.wishlist-card.hm-card:active { transform: rotate(var(--card-rotate)); }

.item-pill {
    position: relative;
    overflow: hidden;
}

.item-pill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 100%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.item-pill:hover::after {
    transform: translateX(100%);
}

/* Inputs */
input,
textarea {
    font-family: var(--font-main);
    background: transparent;
    border: none;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none;
}

input:focus,
textarea:focus {
    outline: none;
}

/* Layout Utilities */
.container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
}

.avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: var(--fs-label);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Scrollbar hide */
::-webkit-scrollbar {
    display: none;
    width: 0px;
    height: 0px;
    background: transparent;
}
* { scrollbar-width: none; -ms-overflow-style: none; }

/* Notes Pill - Dynamic Glass */
.notes-pill {
    background: var(--glass-fill) !important;
    backdrop-filter: var(--glass-blur) !important;
    -webkit-backdrop-filter: var(--glass-blur) !important;
    border: 1px solid var(--glass-rim) !important;
    border-radius: 50px !important;
    padding: 8px 16px !important;
    width: auto !important;
    min-width: 2px !important;
    min-height: 40px;
    overflow: hidden;
    resize: none !important;
    font-size: var(--fs-body);
    line-height: 1.5;
    transition: background 0.3s ease, border 0.3s ease, transform 0.2s ease;
    display: inline-block;
    vertical-align: top;
    box-shadow: var(--glass-shadow);
    field-sizing: content;
}

.notes-pill:focus {
    background: var(--glass-fill) !important;
    border: 1px solid var(--glass-rim) !important;
    transform: scale(1.02);
}

/* Balloon Animation */
@keyframes balloonFlyAway {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    30% {
        transform: translate(15px, -60px) rotate(5deg) scale(1.05);
    }

    60% {
        transform: translate(-10px, -200px) rotate(-5deg) scale(0.8);
        opacity: 1;
    }

    70% {
        transform: translate(0px, -250px) rotate(0deg) scale(0.7);
        opacity: 0;
    }

    71% {
        transform: translate(0px, 150px) rotate(0deg) scale(0.7);
        opacity: 0;
    }

    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 1;
    }
}

.fly-away .balloon-group {
    animation: balloonFlyAway 3s ease-in-out forwards;
}

/* --- Desktop Responsiveness --- */
@media (min-width: 600px) {
    .container {
        max-width: 800px;
        margin: 0 auto;
        position: relative;
    }

    .theme-modal-overlay {
        align-items: center !important;
    }
}

/* ---- Splash: stickers + "Wishly" (login and loading screens) ---- */
.splash {
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--splash-bg);
    overflow: hidden; /* stickers bleed past the screen edges, as in Figma */
    display: flex;
    justify-content: center;
}
.splash-column {
    width: 100%;
    max-width: 430px; /* desktop: a phone-sized column on the same background */
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: env(safe-area-inset-top) 0 max(40px, env(safe-area-inset-bottom));
}
/* 375×430 drawing area; on short screens it gets narrower (and so shorter) so "Wishly" and the buttons still fit */
.splash-stage {
    position: relative;
    width: min(100%, calc((100vh - 470px) * 375 / 430));
    width: min(100%, calc((100dvh - 470px) * 375 / 430));
    aspect-ratio: 375 / 430;
    margin: 0 auto;
    flex-shrink: 0;
}
/* Landscape phones and other very short screens: no room for the stickers, keep "Wishly" and the buttons in view */
@media (max-height: 540px) {
    .splash-stage { display: none; }
}
.splash-stage img {
    position: absolute;
    height: auto;
    max-width: none;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}
.splash-bottom {
    margin-top: auto; /* "Wishly" and the buttons sit at the bottom; the gap above grows on tall screens */
    padding: 32px 24px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}
.splash-wordmark {
    font-family: 'Lobster', cursive;
    font-weight: 400;
    font-size: min(73px, 21vw); /* 73px from 348px wide ("Northpost" is 276px at 73px); smaller only on very narrow or zoomed-in screens */
    line-height: 0.96;
    color: var(--splash-wordmark);
    text-align: center;
    margin: 0;
}
/* Name + seasonal claim under it (proposal 15/10) */
.splash-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px; /* clears the descender of the "p" */
}
.splash-claim {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    font-size: var(--fs-body);
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: 0.1px;
    text-align: center;
    color: var(--splash-wordmark);
    opacity: 0.8;
}
.splash-actions {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
/* While loading: the message is for screen readers only, and an invisible copy of the buttons holds their place
   so "Wishly" doesn't move when the real ones appear */
.splash-loading {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
.splash-placeholder {
    width: 100%;
    display: flex;
    justify-content: center;
    visibility: hidden;
}
.splash-placeholder .splash-actions {
    animation: none;
}

/* Sign-in buttons on the splash (email first, then Google and Apple in glass) and the "Log in" link under them */
.splash-btn {
    width: 100%;
    padding: 18px;
    border-radius: var(--btn-radius);
    font-size: var(--fs-body);
    font-weight: var(--btn-weight-primary);
    font-family: 'Manrope', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    background: var(--glass-fill);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(232,216,197,0.2);
    color: var(--current-text);
    box-shadow: none;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease;
}
.splash-btn--primary {
    background: var(--btn-bg);
    color: var(--btn-text);
    border: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.splash-btn--primary:hover { background: var(--btn-bg); }
.splash-btn:active { transform: scale(0.97); }
.splash-btn svg { flex-shrink: 0; }
.splash-login {
    margin: 4px 0 0;
    text-align: center;
    font-family: 'Manrope', sans-serif;
    font-size: var(--fs-body);
    color: var(--current-text);
}
.auth-link {
    background: none;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 6px;
    vertical-align: middle;
    font: inherit;
    font-weight: 600;
    color: var(--current-text);
    text-decoration: underline;
    text-underline-offset: 4px;
    cursor: pointer;
}
.auth-link:hover, .auth-link:active { background: none; box-shadow: none; transform: none; }
/* Short screens (landscape phones): smaller "Wishly" and buttons so everything fits without scrolling */
@media (max-height: 540px) {
    .splash-column { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
    .splash-bottom { padding-top: 12px; gap: 12px; }
    .splash-wordmark { font-size: 48px; }
    .splash-brand { gap: 4px; }
    .splash-claim { font-size: var(--fs-small); }
    .splash-actions { gap: 8px; }
    .splash-btn { padding: 11px; font-size: var(--fs-body); }
    .splash-login { margin: 0; font-size: var(--fs-small); }
}

/* Email sign-up and log-in steps: back arrow + centred title on top, one question per screen */
.auth {
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--current-bg);
    display: flex;
    justify-content: center;
}
.auth-column {
    width: 100%;
    max-width: 430px;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: max(12px, env(safe-area-inset-top)) 24px max(32px, env(safe-area-inset-bottom));
    box-sizing: border-box;
    font-family: 'Manrope', sans-serif;
    color: var(--current-text);
}
/* v221: Android's status bar is ~24px: the back button was stuck to the clock and the icons. A bit of air below it (iPhone and web unchanged). */
html.android .auth-column { padding-top: calc(env(safe-area-inset-top) + 16px); }
/* v221 (Ònia 11/11): no «Continue with Apple» in the Android app (Google Play doesn't ask for it, and on Android it goes through a web page: the riskiest sign-in). iPhone and web keep it. */
html.android .splash-btn--apple { display: none; }
.auth-header {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    min-height: 44px;
    margin: 0 -12px 28px;
}
/* v101 (Ònia 22/10, p95r603): the same round glass button as every other screen's back (.nav-btn, like Settings) */
.auth-back, .auth-back:hover, .auth-back:active { padding: 0; color: var(--current-text); }
.auth-heading {
    margin: 0;
    text-align: center;
    font-size: var(--fs-body);
    font-weight: 600;
    letter-spacing: -0.2px;
}
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}
.auth-label {
    font-size: var(--fs-title);
    font-weight: 600;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin: 0 0 16px; /* v101 (Ònia 22/10, 0eqsyfk): more room between the question and the field (was 4) */
}
/* "Check your email" after "Forgot your password?" */
.auth-text {
    margin: 0;
    font-size: var(--fs-body);
    line-height: 1.5;
    overflow-wrap: anywhere;
}
/* v215 (Ònia 10/11): «Check your email» — Special Delivery on top, the title and the text centred */
.auth-form--sent { text-align: center; }
.auth-sent-art { display: block; width: min(300px, 100%); height: auto; margin: 0 auto 20px; pointer-events: none; user-select: none; } /* 20 + the 12 gap = 32 to the title */
.auth-form--sent .auth-label { margin-bottom: 0; } /* title → text: just the 12 gap (was 16 + 12) */
.auth-sub {
    margin: -8px 0 4px;
    font-size: var(--fs-body);
    opacity: 0.8;
    word-break: break-word;
}
.auth-field { position: relative; }
.auth-input {
    width: 100%;
    padding: 17px 20px; /* 2 px taller than v23 (Ònia, 15/10: "es veuen esquifits") */
    font-size: var(--fs-body);
    font-family: 'Manrope', sans-serif;
    border: 1px solid rgba(232,216,197,0.2);
    border-radius: 20px;
    background: var(--glass-fill);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: none;
    box-sizing: border-box;
    color: var(--current-text);
}
.auth-input:focus { outline: none; border-color: rgba(232,216,197,0.7); }
.auth-field .auth-input { padding-right: 56px; }
.auth-eye {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: none;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    color: var(--current-text);
}
.auth-eye:hover { background: rgba(255,255,255,0.08); box-shadow: none; }
.auth-eye:active { transform: translateY(-50%) scale(0.94); }
.auth-hint {
    margin: -2px 0 0 4px; /* 2 px further from the field (Ònia, 15/10) */
    font-size: var(--fs-small);
    opacity: 0.7;
}
/* v169 (Ònia 4/11): the password rule gets a check that fills in when the password is long enough */
.auth-hint--rule { display: flex; align-items: center; gap: 8px; transition: opacity 0.2s ease; }
.auth-hint-check { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid currentColor; display: inline-flex; align-items: center; justify-content: center; color: inherit; transition: background-color 0.2s ease, border-color 0.2s ease; }
.auth-hint-check svg { width: 11px; height: 11px; opacity: 0; transform: scale(0.6); transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); }
.auth-hint--ok { opacity: 1; }
.auth-hint--ok .auth-hint-check { background: var(--on-surface); border-color: var(--on-surface); color: var(--surface); }
.auth-hint--ok .auth-hint-check svg { opacity: 1; transform: scale(1); }
@media (prefers-reduced-motion: reduce) { .auth-hint--rule, .auth-hint-check, .auth-hint-check svg { transition: none; } }
/* "Next", "Log in", "Send link"… (v101, Ònia 22/10): the same filled green button as the splash (.splash-btn--fill),
   the same size, centred; always active — pressing it says what's missing, under the field (4v72dsv; replaces d031) */
.auth-next {
    align-self: center;
    width: 100%;
    max-width: 290px;
    margin-top: 28px;
}
.auth-notice {
    font-size: var(--fs-small);
    line-height: 1.5;
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(232,216,197,0.25);
}
.auth-notice .auth-link { font-size: var(--fs-small); }
.auth-card {
    margin-top: 16px;
    font-size: var(--fs-body);
    line-height: 1.5;
    padding: 18px;
    border-radius: 20px;
    /* Settings groups and profile (Ònia 18/10): the same Apple glass as the rest outside lists */
    background: var(--glass-fill);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-rim);
    box-shadow: var(--glass-shadow);
}
.auth-secondary {
    width: 100%;
    margin-top: 14px;
    padding: 14px;
    border-radius: var(--btn-radius);
    background: transparent;
    color: var(--current-text);
    border: 1px solid rgba(232,216,197,0.4);
    font-size: var(--fs-body);
    font-weight: var(--btn-weight-primary);
    font-family: 'Manrope', sans-serif;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.auth-links {
    display: flex;
    justify-content: center;
    margin-top: 12px;
    font-size: var(--fs-body);
}
/* Log in: "Log in to Wishly" with the ways in (centred), then email + password on one screen */
.auth-options {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding-bottom: 44px; /* optically centred, like the header's height */
}
.auth-options-title {
    outline: none;
    margin: 0 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-align: center;
}
/* v101 (Ònia 22/10, zmqwszy): "Log in to" and, under it, "Northpost" in Lobster, smaller than before (56 px) */
.auth-options-to {
    font-size: var(--fs-subtitle);
    font-weight: 500;
    letter-spacing: -0.3px;
}
.auth-wordmark {
    /* v212 (Ònia 8/11): the new logo (img/Northpost-logo.svg) instead of the Lobster text; the text stays for screen readers */
    display: inline-block; vertical-align: middle; width: 138px; height: 48px;
    background: var(--splash-wordmark);
    -webkit-mask: url(/assets/Northpost-logo-CPJ7gbOi.svg) center / contain no-repeat; mask: url(/assets/Northpost-logo-CPJ7gbOi.svg) center / contain no-repeat;
    font-size: 0; color: transparent; overflow: hidden;
}
/* The same buttons as the splash, at the same width */
.auth-options .splash-actions { max-width: 290px; gap: 14px; }
.auth-switch {
    margin: 12px 0 0;
    text-align: center;
    font-size: var(--fs-body);
    opacity: 0.9;
    line-height: 1.2;
}
.auth-fields {
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: opacity 0.2s ease;
}
.auth-fields--busy { opacity: 0.4; }
.auth-field-label {
    margin: 24px 0 0; /* v101 (Ònia 22/10, lsyuuhz): more room between the two fields (was 12) */
    font-size: var(--fs-body);
    font-weight: 600;
    letter-spacing: -0.3px;
}
.auth-field-label:first-child { margin-top: 0; }
.auth-input:disabled { cursor: default; }
/* One error under the password (one app red, --danger, Ònia 21/10) */
.auth-error {
    margin: 2px 0 0 4px;
    font-size: var(--fs-small);
    line-height: 1.4;
    color: var(--danger);
}
/* Sign-up and reset (v101): the error sits where the hint was, at the same distance from the field */
.auth-form > .auth-error { margin: -2px 0 0 4px; }
/* Sign-up steps (Ònia 22/10; variant A, 25/10): three segments, filled up to the current step */
.auth-steps { display: flex; gap: 6px; height: 3px; margin: -12px 0 28px; }
.auth-steps span { flex: 1; border-radius: 3px; background: color-mix(in srgb, var(--current-text) 22%, transparent); transition: background 0.35s ease; }
.auth-steps span.is-done { background: var(--current-text); }
@media (prefers-reduced-motion: reduce) { .auth-steps span { transition: none; } }
@media (max-height: 540px) { .auth-steps { margin: -4px 0 12px; } }
/* "This email already has a Northpost account." with "Log in" on the line below (a 44 px target inside a 14 px line) */
.auth-error .auth-link { display: flex; width: fit-content; margin-left: -6px; }
.auth-forgot { margin: -4px 0 0 -6px; font-size: var(--fs-small); }
.auth-spinner {
    align-self: center;
    margin-top: 20px;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.auth-spinner::before {
    content: '';
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 3px solid rgba(232,216,197,0.25);
    border-top-color: var(--current-text);
    animation: authSpin 0.8s linear infinite;
}
@keyframes authSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .auth-spinner::before { animation: authSpin 1.6s linear infinite !important; animation-duration: 1.6s !important; animation-iteration-count: infinite !important; }
}

/* Short screens: "Log in to Wishly" without the wordmark, so the buttons fit without scrolling */
@media (max-height: 600px) {
    .auth-options { padding-bottom: 0; gap: 12px; }
}
@media (max-height: 540px) {
    .auth-options-title { flex-direction: row; align-items: baseline; justify-content: center; gap: 6px; }
    .auth-wordmark { width: 75px; height: 26px; vertical-align: baseline; }
    .auth-options-to { font-size: var(--fs-body); }
    .auth-options { justify-content: flex-start; gap: 8px; }
    .auth-options-title { margin-bottom: 4px; }
    .auth-options .splash-actions { gap: 8px; }
    .auth-switch { margin-top: 4px; }
    .auth-header { margin-bottom: 8px; }
}
/* Creating the account: three dots in the middle of the screen */
.auth-dots {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.auth-dots span {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--fill-bg);
    animation: authDot 1.2s ease-in-out infinite;
}
.auth-dots span:nth-child(2) { animation-delay: 0.15s; }
.auth-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes authDot {
    0%, 80%, 100% { transform: scale(0.7); opacity: 0.5; }
    40% { transform: scale(1.15); opacity: 1; }
}
/* Keyboard focus on the sign-in screens */
.splash-btn:focus-visible, .auth-link:focus-visible, .auth-back:focus-visible, .auth-eye:focus-visible,
.auth-next:focus-visible, .auth-secondary:focus-visible {
    outline: 2px solid var(--current-text);
    outline-offset: 3px;
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Bottom sheets (share, save, delete, log out) — Apple style. Ònia (17/10): the sheet keeps the colours of the screen
   below (set inline); only the screen behind dims and blurs a little. */
.sheet-scrim {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; align-items: flex-end; justify-content: center;
    /* v167 (Ònia 4/11): the sheet floats, 12 px from the sides and the bottom (+ the safe area), and what's behind blurs a little more */
    padding: 0 12px 12px; /* v227 (Ònia 15/11): 12 px from the bottom too, like from the sides (it also added the iPhone's safe area: more space below than at the sides); Android below */
    bottom: var(--kb, 0px); /* v212: above the keyboard when it is up */
    background: rgba(0, 0, 0, 0.10); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
}
html.android .sheet-scrim { padding-bottom: max(12px, env(safe-area-inset-bottom)); } /* the 3-button bar of Android holds buttons: the sheet stays above it */
.sheet {
    position: relative; width: 100%; max-width: 560px; box-sizing: border-box;
    padding: 10px 24px 28px;
    /* v227 (Ònia 15/11): the corners follow the phone's: the safe area at the top (the notch or the Dynamic Island) grows with the screen's corner radius, so the sheet's radius is about that minus the gap; 28 px where there is none (web, Android) */
    border-radius: clamp(28px, calc(env(safe-area-inset-top, 0px) * 0.95 - 10px), 50px);
    /* the same glass as the alerts and tooltips (--ov-*, set by setListGlass; the app's green outside a letter) */
    background: var(--ov-sheet-glass); color: var(--ov-ink);
    backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
    --fill-bg: var(--ov-ink); --fill-text: var(--ov-onbtn); /* filled things inside (buttons, chosen options) */
    box-shadow: 0 0 0 0.5px color-mix(in srgb, var(--ov-ink) 24%, transparent), inset 0 1px 0 color-mix(in srgb, var(--ov-ink) 12%, transparent), 0 14px 34px rgba(0, 0, 0, 0.26);
    display: flex; flex-direction: column; align-items: stretch; gap: 14px;
    font-family: 'Manrope', sans-serif; text-align: center;
    max-height: calc(100vh - 36px); max-height: calc(100dvh - 36px - env(safe-area-inset-bottom) - var(--kb, 0px)); overflow-y: auto; overscroll-behavior: contain;
    transition: transform 0.25s cubic-bezier(0.32, 0.72, 0, 1);
}
.sheet--enter { animation: sheetUp 0.42s cubic-bezier(0.32, 0.72, 0, 1); }
@keyframes sheetUp { from { transform: translateY(calc(100% + 24px)); } to { transform: translateY(0); } }
.sheet-grabber { width: 36px; height: 5px; border-radius: 3px; opacity: 0.35; margin: 0 auto 12px; background: currentColor; }
.sheet-art { display: block; width: min(200px, 60%); height: auto; margin: 4px auto 6px; pointer-events: none; user-select: none; }
@media (max-height: 540px) { .sheet-art { display: none; } } /* landscape phones: keep the text and the button in view */
.sheet-title { margin: 0; overflow-wrap: anywhere; font-size: var(--fs-title); font-weight: 600; letter-spacing: -0.5px; line-height: 1.2; }
.sheet-text { margin: 0 0 10px; font-size: var(--fs-body); line-height: 1.5; } /* full colour: the theme pairs only just pass AA */
.sheet-btn {
    width: auto; min-height: var(--btn-min-h); padding: 0 var(--btn-pad-x); border-radius: var(--btn-radius); border: none; align-self: center;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    font-family: 'Manrope', sans-serif; font-size: var(--fs-body); font-weight: var(--btn-weight-primary);
    box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
}
.sheet-btn:hover { box-shadow: none; }
@media (max-width: 359px) { .sheet-btn { padding: 0 18px; } } /* 21/10: Catalan/Spanish pairs stay on one line at 320 px */
#share-sheet .sheet-btn { min-width: 168px; } /* "Copy Link" → "Copied!" doesn't change width */
.sheet-btn:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.sheet-btn--secondary, .sheet-btn--secondary:hover { background: transparent !important; border: var(--btn-border); }
/* Ònia (15/10): buttons hug their text, side by side — Cancel on the left, the action on the right (in that order
   in the page too, so Tab goes the way you read). They wrap if the text doesn't fit. */
.sheet-actions { display: flex; flex-direction: row; flex-wrap: wrap-reverse; justify-content: center; /* stacked: main button on top */ gap: 12px 16px; margin-top: 18px; }
/* Short "are you sure?" sheets: a smaller title with room around it */
.sheet--confirm { padding-top: 14px; padding-bottom: 28px; }
.sheet--confirm .sheet-title { font-size: var(--fs-subtitle); letter-spacing: -0.3px; margin-top: 10px; }
.sheet--confirm .sheet-text { margin: 0; font-size: var(--fs-small); } /* full colour, like .sheet-text: the theme pairs only just pass AA */
/* Delete account (proposal 16/10): password field, error and "working" dots inside the sheet, in the sheet's colours */
.sheet-form { display: flex; flex-direction: column; gap: 12px; margin: 4px 0 0; }
.sheet-input {
    width: 100%; box-sizing: border-box; min-height: 52px; padding: 0 20px; border-radius: 20px;
    border: 1.5px solid currentColor; background: transparent; color: inherit;
    font-family: 'Manrope', sans-serif; font-size: var(--fs-body); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
}
.sheet-input::placeholder { color: inherit; opacity: 0.6; }
.sheet-input:focus { outline: 2px solid currentColor; outline-offset: 2px; }
.sheet-error { margin: 0; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: var(--fs-small); font-weight: 600; line-height: 1.4; }
.sheet-error svg { flex: none; }
.sheet-btn[aria-disabled="true"] { opacity: 0.4; cursor: default; }
.sheet:focus { outline: none; }
.sheet-dots { flex: none; padding: 14px 0 6px; }
.sheet-dots span { background: currentColor; }
.sheet--busy .sheet-grabber { visibility: hidden; } /* can't be dragged away while deleting */

/* Delete account: at the bottom of the profile screen, apart from everything else, in the destructive red */
/* My Account: the email, shown like a field but not one (can't be edited, selected for editing or focused) */
.settings-readonly { margin-top: 28px; }
.settings-readonly-value {
    margin: 0; padding: 17px 20px; min-height: 58px; display: flex; align-items: center; border-radius: 20px; box-sizing: border-box; /* like the name field (6pbmtg8) */
    border: 1px solid rgba(232,216,197,0.15); background: transparent;
    color: var(--current-text); opacity: 0.7; font-size: var(--fs-body); overflow-wrap: anywhere; cursor: default;
}

/* Ònia (16/10): it has to look like a button, hugging its text (not full width), red text and border */
.settings-danger { margin-top: 72px; display: flex; flex-direction: column; align-items: center; gap: 16px; } /* gap 10 → 16, a medium space (Ònia 22/10, 1kb53im) */
.settings-delete {
    width: auto; min-height: 48px; padding: 0 24px; border-radius: 50px;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    background: color-mix(in srgb, var(--danger) 8%, transparent); border: 1px solid color-mix(in srgb, var(--danger) 45%, transparent);
    box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
    color: var(--danger); font-family: 'Manrope', sans-serif; font-size: var(--fs-body); font-weight: 400; cursor: pointer;
    transition: background 0.2s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@media (hover: hover) { .settings-delete:hover { background: color-mix(in srgb, var(--danger) 14%, transparent); box-shadow: none; } }
.settings-delete:active { transform: scale(0.98); }
.settings-delete:focus-visible { outline: 2px solid var(--danger); outline-offset: 3px; }
.settings-danger-hint { margin: 0; padding: 0 4px; text-align: center; font-size: var(--fs-small); line-height: 1.4; color: var(--current-text); opacity: 0.7; }

/* Glass alert (Apple style, Ònia 16/10): floats at the bottom over everything (like other apps' alerts, Ònia 16/10),
   just above a bottom sheet if one is open, then goes away by itself */
.glass-toast {
    position: fixed; z-index: 10001; left: 50%; bottom: max(16px, calc(env(safe-area-inset-bottom) + 12px));
    /* v167 (Ònia 4/11): narrower than the buttons (24 px each side, plus 40 more), 16 px corners, a light shadow */
    width: min(380px, calc(100% - 128px)); min-width: min(230px, calc(100% - 32px)); box-sizing: border-box; transform: translateX(-50%);
    display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 16px;
    /* One material for everything over the letter (alerts, tooltips, sheets): style.css --theme-N-ov-*, set by setListGlass */
    background: var(--ov-glass); color: var(--ov-ink);
    backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: none;
    box-shadow: 0 0 0 0.5px color-mix(in srgb, var(--ov-ink) 24%, transparent), inset 0 1px 0 color-mix(in srgb, var(--ov-ink) 12%, transparent), 0 6px 16px rgba(0, 0, 0, 0.14);
    font-family: 'Manrope', sans-serif; text-align: left; cursor: pointer;
    animation: glassIn 0.45s cubic-bezier(0.32, 0.72, 0, 1);
    transition: bottom 0.25s cubic-bezier(0.32, 0.72, 0, 1); /* follows the sheet when it opens, closes or grows */
}
.glass-toast--out { animation: glassOut 0.25s ease-in forwards; }
.glass-toast-icon {
    flex: none; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: var(--ov-chip); box-shadow: none; /* v167: the letter's own colour (softer on the pale ones) */
}
.glass-toast-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1 1 auto; }
/* An action on the alert ("Undo", 3/11): plain text on the right, a 44 px tap area */
.glass-toast-action {
    flex: none; min-height: 44px; margin: -6px -8px -6px 0; padding: 0 10px; border: 0; border-radius: 22px; background: transparent;
    box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; /* not the app's glass button */
    color: inherit; font-family: inherit; font-size: var(--fs-body); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.glass-toast-action:hover, .glass-toast-action:active { background: transparent; box-shadow: none; }
.glass-toast-action:focus-visible { outline: 2px solid currentColor; outline-offset: 0; }
.glass-toast-title { font-size: var(--fs-body); font-weight: 600; letter-spacing: -0.2px; }
.glass-toast-text { font-size: var(--fs-small); line-height: 1.35; } /* full colour: 13 px needs the whole 4.5:1 */
@keyframes glassIn { from { opacity: 0; transform: translate(-50%, 16px) scale(0.96); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
@keyframes glassOut { to { opacity: 0; transform: translate(-50%, 12px) scale(0.97); } }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .glass-toast, .np-tip { background: var(--ov-glass); filter: none; } .sheet { background: var(--ov-sheet-glass); filter: none; } }
.glass-toast:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .glass-toast, .glass-toast--out { animation-duration: 0.01ms !important; } }

/* Desktop: the same sheet, floating a little above the bottom with all corners rounded */
@media (min-width: 600px) {
    .sheet-scrim { padding-bottom: 24px; align-items: flex-end; }
    .sheet { border-radius: 28px; max-width: 440px; padding: 28px 24px; }
    .sheet-grabber { display: none; } /* nothing to drag with a mouse */
}

/* A friend's wish, full screen (wireframe 15/10): name and price · GIFTED BY · NOTES, each block under a thin line;
   the buttons stay at the bottom of the screen and long notes scroll under them. Only the theme's two colours. */
.gd-page { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; background: transparent; font-family: 'Manrope', sans-serif; }
.gd-body { flex: 1 0 auto; display: flex; flex-direction: column; padding: 12px 24px 32px; max-width: 560px; box-sizing: border-box; }
.gd-title { white-space: pre-line; /* v166: Shift+Enter line breaks in the name */ font-weight: 400; font-size: var(--fs-display); line-height: 1.2; margin: 0; overflow-wrap: anywhere; }
.gd-price { font-size: var(--fs-body); margin: 8px 0 0; overflow-wrap: anywhere; }
.gd-shop, .gd-shop:hover { display: block; max-width: 100%; margin: 8px 0 0; padding: 0; border: 0; background: none; font: inherit; font-size: var(--fs-body); font-weight: 400; color: inherit; opacity: 0.75; text-align: left; text-decoration: underline; text-underline-offset: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.gd-shop:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }
/* Ònia (16/10): the same room above and below each line (24px) */
.gd-block { margin-top: 28px; } /* Ònia 21/11: no lines between Links, Notes… */
.gd-body > :is(.gd-title, .gd-price) + .gd-block { border-top: 1px solid color-mix(in srgb, currentColor 35%, transparent); margin-top: 24px; padding-top: 24px; } /* the line under name + price stays */
#gd-who, .gd-block--empty { border-top: 1px solid color-mix(in srgb, currentColor 35%, transparent); margin-top: 24px; padding-top: 24px; } /* …only one, above «Who is gifting it», which is always the last block */
.gd-label { margin: 0 0 12px; font-family: 'Sometype Mono', monospace; font-size: var(--fs-small); font-weight: 400; letter-spacing: 1px; line-height: 1.4; } /* Ònia 2/11: Notes, not NOTES */
.gd-giver { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 4px 16px; outline: none; } /* Ònia 17/10: the link right next to "You" */
.gd-giver:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 8px; }
.gd-who { display: inline-flex; align-items: center; gap: 12px; min-width: 0; font-size: var(--fs-body); overflow-wrap: anywhere; }
/* The Settings icon square: 30px, 8px corners, the text colour with the icon in the background colour */
.gd-link, .gd-link:hover {
    background: none; border: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
    min-height: 44px; padding: 0; color: inherit; font: 500 15px/1.2 'Manrope', sans-serif;
    text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
}
.gd-link:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }
.gd-empty { font-size: var(--fs-body); line-height: 1.5; margin: 0; overflow-wrap: anywhere; } /* Ònia 26/10 */
.gd-notes { font-size: var(--fs-body); line-height: 1.5; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.gd-bar {
    position: sticky; bottom: 0; z-index: 10; pointer-events: none; /* the fade above the buttons doesn't catch taps */ max-width: 560px; box-sizing: border-box;
    display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; /* Ònia: one button hugs its text, centred (16-17/10) */
    padding: 16px 24px calc(24px + env(safe-area-inset-bottom)); /* v229: 16 at the top (it was 24: with the commission line the bar got tall) */
    isolation: isolate; /* its background is the ::before layer below */
}
/* v229 (Ònia 17/11): the blur under the buttons is the same material as the navigation bars' (v222): a tinted, blurred layer a bit taller than the bar that fades out over its top 28 px.
   (Before: a plain gradient, and the text scrolling under it showed through.) 80%: the line under the button is text, so it needs a calm background. */
.gd-bar::before {
    content: ''; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; top: -28px; pointer-events: none;
    background: color-mix(in srgb, var(--current-bg) 80%, transparent);
    backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
    -webkit-mask-image: linear-gradient(to top, black calc(100% - 28px), transparent);
    mask-image: linear-gradient(to top, black calc(100% - 28px), transparent);
}
.gd-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px; box-sizing: border-box;
    width: auto; max-width: 100%; min-height: 52px; padding: 14px 26px; border-radius: 50px;
    font-family: 'Manrope', sans-serif; font-size: var(--fs-body); font-weight: 600; line-height: 1.2;
    text-decoration: none; text-align: center; cursor: pointer; overflow-wrap: anywhere;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease;
}
.gd-btn svg { flex: none; }
.gd-bar > * { pointer-events: auto; }
.gd-btn:active { transform: scale(0.97); }
/* No white wash: on the dark themes it took the label below the theme's own contrast (review 15/10) */
.gd-btn-glass, .gd-btn-glass:hover {
    font-weight: 400; /* secondary: regular text (Ònia, 16/10) */
    background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none;
    border: 1px solid var(--current-text); color: var(--current-text); box-shadow: none;
}
@media (hover: hover) { .gd-btn-glass:hover { text-decoration: underline; text-underline-offset: 4px; } }
.gd-btn-fill, .gd-btn-fill:hover { background: var(--current-text); color: var(--current-bg); border: none; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); }
.gd-btn:focus-visible { outline: 2px solid var(--current-text); outline-offset: 3px; }
.gd-bar--two > .gd-btn { flex: 1 1 auto; min-width: 0; padding-left: 18px; padding-right: 18px; white-space: nowrap; } /* Ònia 17/10: two buttons share the whole width; 21/11: by content, so «Visita el web» fits on one line (on a 320 px screen they stack) */
.gd-bar--two > .gd-btn-buy { gap: 8px; }
.gd-bar > .gd-btn-buy, .gd-bar > .gd-btn-gift { flex: 1 1 0; } /* Ònia 2/11: Buy on its own fills the width too (v166: I'll gift this alone fills it too) */
/* Ònia (2/11): "You're gifting it", a light box at the bottom of the text, just above the buttons (the letter's panel colour) */
.gd-gifting-text { margin: 10px 0 0; font-size: var(--fs-small); line-height: 1.5; }
.sheet-actions--pair { gap: 12px; } /* v167: «I'll gift this» + «Discover» side by side, even in Catalan, from 360 px */
.sheet-actions--pair .sheet-btn { padding: 0 16px; gap: 6px; min-width: 0; }
.sheet-check { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; margin-top: 10px; font-size: var(--fs-small); cursor: pointer; } /* v167: «Don't show this again» in a sheet */
.sheet-check input { -webkit-appearance: none; appearance: none; flex: none; width: 22px; height: 22px; margin: 0; padding: 0; box-sizing: border-box; border: 1.5px solid currentColor; border-radius: 7px; background: transparent; box-shadow: none; display: grid; place-content: center; cursor: pointer; } /* the app's inputs have no native look: drawn here */
.sheet-check input::after { content: ''; width: 12px; height: 12px; background: var(--ov-onbtn); clip-path: polygon(14% 52%, 0 66%, 38% 100%, 100% 22%, 86% 8%, 38% 72%); transform: scale(0); transition: transform 0.15s ease; }
.sheet-check input:checked { background: var(--ov-ink); border-color: var(--ov-ink); }
.sheet-check input:checked::after { transform: scale(1); }
.sheet-check input:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
/* Narrow phones (review 21/10, longer Catalan/Spanish labels): less side padding, so a word never breaks in two */
@media (max-width: 359px) { .gd-bar--two > .gd-btn { padding-left: 14px; padding-right: 14px; gap: 6px; } }
.gd-btn { overflow-wrap: normal; word-break: normal; }
.gd-msg { margin: 0; flex: 1 0 100%; font-size: var(--fs-small); line-height: 1.4; text-align: left; }
.gd-msg-left { text-align: left; margin-top: 4px; }
/* Tab to a control near the bottom: it scrolls into view above the buttons, not under them */
html:has(.gd-bar) { scroll-padding-bottom: 180px; }
.gt-bar { margin: 0 -20px; color: var(--on-surface); } /* v229: Buy at the bottom of one of my own gifts (Gift Hub): the page has 20px of padding, the bar its own */
/* v229 (Ònia 17/11): the commission line is centred and has 8px at each side wherever it appears (a letter's gift, a kid's gift, «Where to buy», the Gift Hub, my own wish) */
.aff-note { box-sizing: border-box; padding-left: 8px; padding-right: 8px; text-align: center; font-size: var(--fs-label); line-height: 1.4; } /* v229: 8px at each side and 12px type (--fs-label) */
.gd-bar > .aff-note { margin-top: -4px; } /* closer to the button (the bar's gap is 12) */
.it-aff .aff-note { margin: 40px 0 0; } /* v229: the commission line at the bottom of my own wish's page */
.gt-bar .gd-msg { color: color-mix(in srgb, var(--on-surface) 75%, transparent); } /* 75%: ≈7.8:1 on --surface (AA needs 4.5:1) */
/* A short screen (landscape phone, big zoom): the buttons go after the text instead of covering it */
@media (max-height: 480px) { .gd-bar { position: static; } .gd-bar::before { display: none; } } /* v229: static, it has nothing under it to blur */

/* A friend's list (wireframe 15/10): header, then one lighter panel that reaches at least the bottom of the screen,
   with the wishes in three groups. Everything in the theme's two colours. */
.gl-page { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; background: transparent; font-family: 'Manrope', sans-serif; }
.gl-head { padding: 0 24px 32px; }
/* My own list (Ònia 18/10): the same panel as a friend's list, filling the screen below the title */
.list-page { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
/* Room above the iPhone keyboard for "New wish" on a long list (the old 200 px of space under it are gone) */
html:has(.list-page) { scroll-padding-bottom: 120px; }
/* A new list (Ònia 18/10): "LIST NAME" over the title, like the friend's list labels; the date appears and the label
   folds away when she moves on to the wishes (0.45 s, LIST_REVEAL_MS in actions.js). Existing lists: no label, date shown. */
.list-label { display: block; overflow: hidden; max-height: 40px; margin: 32px 0 8px; font-family: 'Sometype Mono', monospace; font-size: var(--fs-small); letter-spacing: 1px; line-height: 1.4; color: var(--current-text); opacity: 0.8; }
.list-label--out { animation: listLabelOut 0.45s cubic-bezier(0.32, 0.72, 0, 1) both; }
@keyframes listLabelOut { from { max-height: 40px; margin-top: 32px; margin-bottom: 8px; opacity: 0.8; } to { max-height: 0; margin-top: 32px; margin-bottom: 0; opacity: 0; } }
.list-date { opacity: 0.7; }
.list-date--hidden { opacity: 0; visibility: hidden; }
.list-date--in { animation: listDateIn 0.45s cubic-bezier(0.32, 0.72, 0, 1) both; }
@keyframes listDateIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 0.7; transform: none; } }
.gl-panel {
    flex: 1 0 auto; box-sizing: border-box; margin: 0 16px 16px; padding: 32px 20px 48px;
    border-radius: 32px; background: var(--panel-fill, rgba(255, 255, 255, 0.06));
}
.gl-section + .gl-section { margin-top: 40px; }
.gl-label { margin: 0 0 16px; font-family: 'Sometype Mono', monospace; font-size: var(--fs-small); opacity: 0.8; font-weight: 400; /* Ònia: the colour of "Written by" (16/10), back to 14px, 80 % (17/10) */ letter-spacing: 1px; line-height: 1.4; } /* Ònia 2/11: Notes, not NOTES */
.gl-items { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.gl-empty { margin: 0; font-size: var(--fs-body); line-height: 1.5; }
.gl-pill {
    display: inline-flex; align-items: center; gap: 4px 12px; box-sizing: border-box;
    max-width: 100%; min-height: 48px; padding: 6px 8px 6px 20px;
    border-radius: 50px; border: 1px solid currentColor; outline: none; cursor: pointer;
    font-size: var(--fs-body); line-height: 1.5; transition: transform 0.2s ease, background 0.3s ease;
}
.gl-name { flex: 0 1 auto; min-width: 0; overflow-wrap: anywhere; font-weight: 500; } /* medium (Ònia's question, 17/10) */
.gl-price { flex: none; margin-left: 4px; font-size: var(--fs-small); font-weight: 400; opacity: 0.7; white-space: nowrap; } /* Ònia 21/11: like .mg-price in the Gift Hub */
.gl-end { flex: none; display: flex; align-items: center; max-width: 100%; } /* the name gives way, not the chip */
/* Ònia (16/10): still-available wishes get back the glass fill of the app's pills */
.gl-free { background: var(--glass-fill); box-shadow: var(--glass-shadow); padding-right: 12px; }
.gl-mine { background: var(--current-text); color: var(--current-bg); border-color: var(--current-text); padding-right: 12px; } /* Ònia 3/11: filled in the letter's text colour, no chip; + the arrow */
/* Ònia (17/10): every wish pill in medium (my lists, the new-wish pill, a friend's list) */
.existing-pill, .empty-pill { font-weight: 500; }
.gl-taken { border-style: dashed; background: transparent; }
/* v235 (Ònia 21/11): the dashed outline of a taken / bought pill is an SVG whose dashes always close the ring (a CSS dashed border left an uneven gap on the right
   of the curve). The border stays (transparent) so the pill keeps its size. */
.gl-pill.gl-taken:has(> .gl-dash) { border-color: transparent; position: relative; }
.gl-dash { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); overflow: visible; pointer-events: none; color: inherit; }
.gl-dash rect { x: 0.5px; y: 0.5px; width: calc(100% - 1px); height: calc(100% - 1px); rx: 26px; ry: 26px; fill: none; stroke: currentColor; stroke-width: 1px; stroke-dasharray: 2 2; }
.mg-row.mg-two .gl-dash rect, .gl-pill.is-multi .gl-dash rect { rx: 24px; ry: 24px; }
.gl-arrow { display: flex; }
.gl-skel { cursor: default; pointer-events: none; border-color: transparent; background: color-mix(in srgb, var(--current-text) 14%, transparent); animation: gl-skel-pulse 1.8s ease-in-out infinite; }
.gl-skel:nth-child(2) { animation-delay: 0.15s; } .gl-skel:nth-child(3) { animation-delay: 0.3s; } .gl-skel:nth-child(n+4) { animation-delay: 0.45s; }
@keyframes gl-skel-pulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .gl-skel { animation: none; opacity: 0.8; } }
.gl-chip {
    display: inline-flex; align-items: center; gap: 6px; box-sizing: border-box; min-width: 0; max-width: 100%;
    min-height: 32px; padding: 4px 14px; border-radius: 50px;
    font-size: var(--fs-small); font-weight: 600; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gl-chip svg { flex: none; }
/* Ònia 21/11: a friend's letter: every pill full width, shaped like the Gift Hub's (name · price · arrow) */
.gl-page .gl-items { align-items: stretch; }
.gl-page .gl-pill { display: flex; width: 100%; padding: 10px 16px; gap: 16px; }
.gl-page .gl-name { flex: 1 1 auto; }
.gl-taken .gl-chip { background: var(--current-text); color: var(--current-bg); display: block; line-height: 24px; padding: 4px 14px; max-width: 10.5em; font-weight: 400; } /* Ònia 3/11: "Taken", regular weight */
.gl-pill:focus-visible { outline: 2px solid var(--current-text); outline-offset: 3px; }
@media (hover: hover) { .gl-free:hover { background: var(--glass-fill); } .gl-mine:hover { background: var(--current-text); } }
.gl-pill:active { transform: scale(0.98); }
/* Very narrow (200% zoom on a phone): the chip goes below the name instead of squeezing it */
@media (max-width: 260px) { .gl-pill { flex-wrap: wrap; } .gl-chip { padding-left: 8px; padding-right: 8px; } .gl-taken .gl-chip { max-width: 100%; } }

/* People who ask their system for less motion: no entrance animations, balloon flight or sliding transitions.
   Everything ends in the same place as with motion; nothing changes for everyone else. */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        animation-delay: 0s !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
        scroll-behavior: auto !important;
    }
}

/* Ònia (16/10): every secondary button (outline or glass) has regular text; only the main action is bold.
   Sheets (Cancel, Discard…), Google/Apple on the start screens, "Log in" on an existing email, "Discover product" / "I won't gift it". */
.sheet-btn--secondary, .splash-btn:not(.splash-btn--primary):not(.splash-btn--fill), .auth-secondary, .guest-btn-outline { font-weight: var(--btn-weight-secondary); }
/* Feedback (approved 16/10, v46) — the "How's Wishly going?" sheet (feedback.js) and Settings → Send feedback.
   In the sheet: --fb-ink = the sheet's text colour, --fb-paper = the sheet's colour (set inline). */
.sheet--feedback [hidden] { display: none !important; }
.sheet--feedback button.visually-hidden { padding: 0; margin: -1px; border: 0; min-width: 0; min-height: 0; } /* the screen-reader-only "Not now" */
.sheet--feedback .fb-intro { margin-top: 10px; } /* Ònia (16/10): a line between the title and the answers */
/* Ònia (16/10): more room between the blocks (title · text · answers · "tell us more" · Send) */
.sheet--feedback .fb-choices { margin-top: 28px; }
.sheet--feedback .fb-more { margin-top: 24px; }
.sheet--feedback .sheet-actions { margin-top: 28px; }
/* Sent (Ònia 27/10): same height as the form; the stamp takes what's left and shrinks, text and button stay whole */
.sheet--feedback .fb-body--sent { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 0; }
.fb-sent-art { flex: 0 1 auto; min-height: 0; max-height: 270px; width: auto; max-width: min(220px, 70%); object-fit: contain; margin: 0 auto 12px; /* Ònia 27/10: closer to the text (was 20 + the title's 10) */ pointer-events: none; user-select: none; }
.sheet--feedback .fb-body--sent .sheet-title, .sheet--feedback .fb-body--sent .fb-sent-text { flex: none; }
.sheet--feedback .fb-body--sent .sheet-title { margin-top: 0; } /* 12 px under the stamp, as in Settings */
.sheet--feedback .fb-sent-text { margin: 8px 0 0; max-width: 34ch; }
.sheet--feedback .fb-sent-actions { flex: none; margin-top: 24px; }
.fb-choices { display: flex; gap: 10px; margin-top: 18px; }
.fb-choice {
    flex: 1 1 0; min-width: 0; min-height: 76px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    padding: 12px 6px; border-radius: 18px; border: 1.5px solid currentColor; background: transparent; color: inherit;
    box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
    font-family: var(--font-main); font-size: var(--fs-small); font-weight: 500; line-height: 1.2; overflow-wrap: anywhere; text-align: center;
}
.fb-choice:hover { background: transparent; box-shadow: none; }
/* Ònia (18/10, "perfecte amb el vidre"): the answers not chosen and the text box are glass, like the rest of the app;
   the chosen answer stays filled. In a list the quiet list glass (setListGlass), elsewhere the full one. */
.fb-choice:not([aria-pressed="true"]), .fb-choice:not([aria-pressed="true"]):hover {
    border: 1px solid color-mix(in srgb, currentColor 45%, transparent); background: var(--glass-fill); /* edge in the text colour: the white rim vanished on the light themes */
    backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); box-shadow: var(--glass-shadow);
}
.fb-choice[aria-pressed="true"], .fb-choice[aria-pressed="true"]:hover { background: var(--fill-bg); color: var(--fill-text); border-color: var(--fill-bg); }
.fb-choice:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.fb-choice[aria-pressed="true"]:focus-visible { outline-color: var(--fb-ink); }
.fb-more { margin-top: 18px; }
.fb-label { display: block; margin: 0 0 8px; font-size: var(--fs-body); font-weight: 600; }
.fb-optional { font-weight: 400; font-size: var(--fs-small); margin-left: 4px; }
.fb-text {
    display: block; width: 100%; box-sizing: border-box; min-height: 88px; padding: 12px 14px; border-radius: 16px;
    border: 1px solid color-mix(in srgb, currentColor 45%, transparent); background: var(--glass-fill); color: inherit; resize: none; /* glass (18/10) */
    backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); box-shadow: var(--glass-shadow);
    font-family: var(--font-main); font-size: var(--fs-body); line-height: 1.45; /* 16 px: iOS doesn't zoom in */
}
.fb-text:focus { outline: 2px solid currentColor; outline-offset: 2px; }
/* Settings → Send feedback: the screen's colours (like the Name field and the language rows) */
.fb-body--settings { --fb-ink: var(--current-text); --fb-paper: var(--current-bg); color: var(--current-text); }
.fb-body--settings .fb-choices { margin-top: 0; }
.fb-text--settings {
    min-height: 140px; color: var(--current-text); border: 1px solid var(--glass-rim); box-shadow: var(--glass-ring); /* v90 */
    background: var(--glass-fill); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
}
.fb-privacy { margin: 6px 2px 0; font-size: var(--fs-small); line-height: 1.4; } /* full colour: the theme pairs only just pass AA */

/* Placeholders that pass AA (17/10): colours per theme in :root (--theme-N-ph / -ph-lg), set on the screen as --ph / --ph-lg */
#list-title-input::placeholder, #itemForm #name::placeholder { color: var(--ph-lg, currentColor); opacity: 1; }
#itemForm #price::placeholder, #itemForm #link::placeholder, #itemForm #notes::placeholder { color: var(--ph, currentColor); opacity: 1; }


/* PROPOSAL splash-v2 (Ònia's wireframe, 17/10): envelope + "Northpost" + claim, centred; three filled green buttons */
.splash--v2 .splash-column { justify-content: center; padding-left: 24px; padding-right: 24px; }
.splash-hero { display: flex; flex-direction: column; align-items: center; text-align: center; }
.splash-art { display: block; width: min(285px, 76%); height: auto; margin: 0 auto 44px; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.splash-name { margin: 0; width: 100px; height: 35px; background: var(--splash-wordmark); -webkit-mask: url(/assets/Northpost-logo-CPJ7gbOi.svg) left center / contain no-repeat; mask: url(/assets/Northpost-logo-CPJ7gbOi.svg) left center / contain no-repeat; font-size: 0; color: transparent; overflow: hidden; } /* v212: the new logo (it was the Lobster text) */
.splash-claim { margin: 6px 0 0; opacity: 1; max-width: 11em; font-family: 'Manrope', sans-serif; font-weight: 400; font-size: min(40px, 10.5vw); line-height: 1.15; letter-spacing: -0.5px; color: var(--splash-wordmark); }
.splash--v2 .splash-bottom { margin-top: 56px; padding: 0; gap: 16px; }
.splash--v2 .splash-actions { max-width: 290px; gap: 14px; }
.splash-btn.splash-btn--fill { background: var(--btn-bg); color: var(--btn-text); border: none; font-weight: 500; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 8px 24px rgba(0,0,0,0.25); }
.splash-btn--fill:hover { background: var(--btn-bg); }
/* v101 (Ònia 22/10, q0ovbook): Google and Apple are secondary — the design system's outline (.btn--secondary),
   regular text, the same size as the filled one */
.splash-btn.splash-btn--line, .splash-btn.splash-btn--line:hover {
    background: transparent; color: var(--current-text); border: none; font-weight: var(--btn-weight-secondary);
    box-shadow: inset 0 0 0 1.5px currentColor; /* the outline of --btn-border, drawn inside: exactly the filled one's size */
    backdrop-filter: none; -webkit-backdrop-filter: none;
}
.splash-btn--line svg { margin: 0; }
@media (forced-colors: active) { .splash-btn.splash-btn--line { border: 1.5px solid ButtonText; } } /* box-shadow is dropped there */
/* Landscape phones: Log in fits without scrolling */
@media (max-height: 540px) {
    .auth-field-label { margin-top: 12px; }
    .auth-next { margin-top: 16px; }
    .auth-label { margin-bottom: 10px; }
}
.splash--v2 .splash-login, .splash--v2 .splash-login .auth-link { color: var(--splash-wordmark); }
/* v214 (Ònia 9/11): «or» was lower than the two links (they are 44 px tall, inline-flex). One flex row, everything centred on the same line. */
.splash-login-row { display: flex; align-items: center; justify-content: center; gap: 4px; }
.splash-login-row .auth-link { vertical-align: baseline; }
/* Shorter phones: smaller envelope and claim so everything fits without scrolling */
@media (max-height: 720px) {
    .splash-art { width: min(210px, 58%); margin-bottom: 28px; }
    .splash-claim { font-size: min(34px, 10vw); }
    .splash--v2 .splash-bottom { margin-top: 32px; }
    .splash--v2 .splash-column { padding-bottom: max(24px, env(safe-area-inset-bottom)); }
}
@media (max-height: 600px) {
    .splash-art { width: min(160px, 46%); margin-bottom: 18px; }
    .splash-claim { font-size: min(30px, 9.5vw); }
    .splash--v2 .splash-bottom { margin-top: 24px; }
    .splash--v2 .splash-actions { gap: 10px; }
}
/* Landscape phones: no envelope */
@media (max-height: 540px) {
    .splash-art { display: none; }
    .splash-name { font-size: 22px; }
    .splash-claim { font-size: var(--fs-title); max-width: none; }
    .splash--v2 .splash-column { padding-top: max(12px, env(safe-area-inset-top)); padding-bottom: max(12px, env(safe-area-inset-bottom)); }
    .splash--v2 .splash-bottom { margin-top: 14px; gap: 6px; }
    .splash--v2 .splash-actions { gap: 8px; }
}

/* Price field (Ònia 17/10): currency dropdown in front of the number, in the same type and size */
.price-cur {
    position: absolute; left: 0; top: 0; bottom: 0; z-index: 1; width: 86px;
    padding: 0 24px 0 24px; border: none; border-radius: 50px 0 0 50px; background: transparent; box-shadow: none;
    -webkit-appearance: none; appearance: none; backdrop-filter: none; -webkit-backdrop-filter: none;
    font-family: var(--font-main); font-size: var(--fs-body); font-weight: 400; cursor: pointer;
}
.price-cur:focus-visible { outline: 2px solid currentColor; outline-offset: -4px; }
.price-cur option { color: var(--surface); background: #ffffff; }
.price-cur-chevron { position: absolute; left: 60px; /* v235: 20 px / 1.75 like the other dropdown chevrons (it was 12 px) */ top: 50%; transform: translateY(-50%); pointer-events: none; z-index: 1; opacity: 0.8; }

/* Links of a wish (Ònia 17/10): a grouped list like the iPhone's Contacts, in the wish editor and in «Where to buy».
   Every row starts at the same edge; the separators run the full width of the group. */
.links-label { margin: 10px 0 14px 4px; /* v166 (Ònia 4/11): a bit more air between a label and its field */ font-family: 'Sometype Mono', monospace; font-size: var(--fs-small); letter-spacing: 1px; } /* v166 (Ònia 4/11): 14px like the friend's labels, it was 12px */
.links-group {
    border-radius: 20px; overflow: hidden;
    background: var(--glass-fill); border: 1px solid var(--glass-rim); box-shadow: var(--glass-shadow);
    backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
}
.links-row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 12px 0 16px; box-sizing: border-box; width: 100%; }
.links-row + .links-row { border-top: 1px solid color-mix(in srgb, currentColor 20%, transparent); }
.links-circ {
    flex: none; width: 22px; height: 22px; padding: 0; border-radius: 50%; border: none; box-shadow: none;
    backdrop-filter: none; -webkit-backdrop-filter: none; display: inline-flex; align-items: center; justify-content: center;
    font: 600 17px/1 'Manrope', sans-serif;
}
.links-minus { background: var(--danger); color: var(--on-danger); cursor: pointer; }
.links-plus { background: var(--btn-bg); color: var(--btn-text); }
.links-input {
    flex: 1; min-width: 0; padding: 14px 0; border: none; background: transparent; box-shadow: none; outline: none;
    color: inherit; font-family: var(--font-main); font-size: var(--fs-body);
}
.links-input::placeholder { color: var(--ph, currentColor); opacity: 1; }
.links-open { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; color: inherit; border-radius: 50%; }
.links-add, .links-add:hover {
    background: none; border: none; border-radius: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
    color: inherit; font: 500 16px 'Manrope', sans-serif; text-align: left; cursor: pointer;
}
.links-add:focus-visible, .links-minus:focus-visible, .links-open:focus-visible, .links-shop:focus-visible { outline: 2px solid currentColor; outline-offset: -3px; }
/* «Where to buy» sheet */
.sheet--content .sheet-text { margin-bottom: 4px; }
.links-group--sheet { width: 100%; text-align: left; }
.links-shop { justify-content: space-between; color: inherit; text-decoration: none; font: 500 16px 'Manrope', sans-serif; }
.links-host { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.links-group .links-row + .links-add { border-top: 1px solid color-mix(in srgb, currentColor 20%, transparent); }

/* First-list screen of a new account (Ònia 18/10, proposal "D"): an airmail envelope that turns over into the list
   card. Home colours around it. The card sits in the middle of what is visible (onboardingLayout sets its top). */
.onboarding {
    --onb-paper: #F3ECE3; /* under the corners of Ònia's envelope picture */
    position: fixed; left: 0; right: 0; top: var(--onb-top, 0px); /* pinned to the visible part of the screen (onboardingLayout) */
    height: 100vh; height: var(--onb-h, 100dvh); box-sizing: border-box; max-width: 430px; margin: 0 auto; overflow: hidden;
    padding: 16px 24px calc(20px + env(safe-area-inset-bottom)); display: flex; flex-direction: column;
    z-index: 1; background: transparent; color: var(--on-surface); font-family: 'Manrope', sans-serif; /* the home's dark body shows through, with the snow */
}
/* v199 (Ònia 8/11): in the app the page goes edge to edge (viewport-fit=cover); the first-list screen keeps its close button clear of
   the status bar and the Dynamic Island, like the other screens (64 px = the same safety margin as .view-nav / .hm-topbar / .gs-nav) */
html.native .onboarding { padding-top: max(64px, env(safe-area-inset-top)); }
.onboarding-snow { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
/* Ònia 21/10 (Nadal): the short snowfall when Christmas mode is switched on (home.js xmasSnowBurst), over the screen */
.xmas-snow { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 9000; pointer-events: none; opacity: 0; transition: opacity 600ms ease-out; }
.xmas-snow.is-on { opacity: 1; }
.onboarding-top { display: flex; justify-content: flex-end; min-height: 44px; margin-right: -10px; flex: none; }
.onboarding-close {
    width: 44px; height: 44px; padding: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%;
    color: var(--on-surface); cursor: pointer; background: var(--glass-fill); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-rim); box-shadow: var(--glass-shadow);
}
.onboarding-close:hover { box-shadow: var(--glass-shadow); } /* v90: the rim is in the shadow; the generic button:hover shadow would hide it */
.onboarding-mid { position: relative; flex: 1; min-height: 0; }
.onboarding-pos { position: absolute; left: 0; right: 0; top: 0; }
.onboarding.just-opened .onboarding-pos { transition: top 0.32s cubic-bezier(0.22, 0.8, 0.24, 1); } /* only while it turns: a redraw places it at once */
.onboarding-intro { position: absolute; left: 0; right: 0; bottom: calc(100% + 18px); display: grid; gap: 10px; visibility: hidden; }
.onboarding.is-open .onboarding-intro { visibility: visible; }
.onboarding.just-opened .onboarding-intro { animation: onbRise 0.5s cubic-bezier(0.22, 0.8, 0.24, 1) 0.22s both; }
.onboarding-title { margin: 0; font-size: var(--fs-title); font-weight: 600; line-height: 1.2; text-wrap: balance; }
.onboarding-sub { margin: 0; font-size: var(--fs-body); line-height: 1.4; opacity: 0.62; }
.onboarding-hint {
    position: absolute; left: 0; right: 0; top: calc(100% + 24px); margin: 0; text-align: center;
    font-size: var(--fs-body); line-height: 1.3; animation: onbTint 2.6s ease-in-out infinite; transition: opacity 0.25s ease;
}
.onboarding.is-open .onboarding-hint { opacity: 0; animation: none; pointer-events: none; }
@keyframes onbTint { 0%, 100% { color: var(--on-surface); } 50% { color: rgba(232, 216, 197, 0.3); } } /* light to dark and back (Ònia's pick, 1) */
@keyframes onbRise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

.onboarding-flip { transform: rotate(-2deg); margin: 0 auto; width: calc(100% - 8px); max-width: 319px; perspective: 1400px; container-type: inline-size; } /* v99: the card keeps the envelope picture's shape (957×552): no wider than 319 px at 184 px high, and lower on narrow screens */
.onboarding.is-tight .onboarding-flip { max-width: 260px; }
.onboarding-flipper { display: grid; transform-style: preserve-3d; }
.onboarding-flipper.flipped { transform: rotateY(180deg); }
.onboarding-flipper.turning { transition: transform 0.8s cubic-bezier(0.3, 0.7, 0.2, 1); }
/* Redrawn while it turns (20/10): the same motions as animations started --onb-ago in the past */
.onboarding.resuming .onboarding-flipper { animation: onbTurn 0.8s cubic-bezier(0.3, 0.7, 0.2, 1) calc(-1 * var(--onb-ago)) both; }
.onboarding.resuming .onboarding-intro { animation: onbRise 0.5s cubic-bezier(0.22, 0.8, 0.24, 1) calc(0.22s - var(--onb-ago)) both; }
.onboarding.resuming .onboarding-create { animation: onbRise 0.45s cubic-bezier(0.22, 0.8, 0.24, 1) calc(0.4s - var(--onb-ago)) both; }
@keyframes onbTurn { from { transform: rotateY(0deg); } to { transform: rotateY(180deg); } }
.onboarding-face {
    grid-area: 1 / 1; box-sizing: border-box; height: min(184px, 100cqw * 552 / 957); border-radius: 28px; overflow: hidden; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.onboarding-front { position: relative; cursor: pointer; background: var(--onb-paper) center / 100% 100% no-repeat; } /* v99: Ònia's envelope picture (set in home.js) */
.onboarding-back { --radius-lg: 28px; } /* the Christmas airmail band (xmas-card-art) follows this card's corners */
:root[data-xmas="on"] .onboarding-back :is(.xmas-card-art--airmail, .xmas-card-art--trees, .xmas-card-art--snow) { top: 0; } /* no 1 px top border to cover here (home cards have one) */
.onboarding-stamp { position: absolute; display: block; }
.onboarding-back {
    position: relative; transform: rotateY(180deg); display: flex; flex-direction: column; justify-content: flex-end;
    padding: 24px 28px 26px; cursor: text;
}
.onboarding-back .onboarding-stamp { top: 22px; right: 26px; }
.onboarding-label { font-family: 'Sometype Mono', monospace; font-size: var(--fs-small); letter-spacing: 1px; line-height: 1.4; margin-bottom: 6px; } /* full theme colour: at 80 % it fell under 4.5:1 */
.onboarding-input {
    display: block; width: 100%; box-sizing: border-box; height: 1.3em; padding: 0; margin: 0; border: none; border-radius: 0; background: transparent; box-shadow: none;
    font-family: 'Manrope', sans-serif; font-size: var(--fs-title); font-weight: 400; line-height: 1.3; color: inherit; caret-color: currentColor; resize: none; overflow: hidden;
}
.onboarding-input:focus { outline: none; }
.onboarding-input::placeholder { color: var(--ph); opacity: 1; }
.onboarding-create {
    flex: none; width: 100%; min-height: 54px; padding: 16px; margin-top: 12px; border-radius: 50px; border: none;
    background: var(--btn-bg); color: var(--btn-text); font-family: 'Manrope', sans-serif; font-size: var(--fs-body); font-weight: 600;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); cursor: pointer;
}
.onboarding.just-opened .onboarding-create { animation: onbRise 0.45s cubic-bezier(0.22, 0.8, 0.24, 1) 0.4s both; }
.onboarding-create[hidden] { display: none; }
.onboarding-create:hover, .onboarding-create:active { background: var(--btn-bg); } /* the generic button:hover is glass */
.onboarding-create:disabled { background: rgba(255, 255, 255, 0.12); color: var(--on-surface); opacity: 0.55; box-shadow: none; cursor: default; }
.onboarding-create:disabled:active { transform: none; }
.onboarding-close:focus-visible, .onboarding-create:focus-visible, .onboarding-front:focus-visible { outline: 2px solid var(--on-surface); outline-offset: 3px; }
/* Little room (onboardingLayout): a smaller title and card, then only the card */
.onboarding.is-tight .onboarding-face { height: min(150px, 100cqw * 552 / 957); }
.onboarding.is-tight .onboarding-intro { gap: 4px; }
.onboarding.is-tight .onboarding-title { font-size: var(--fs-subtitle); }
.onboarding.is-tight .onboarding-sub { display: none; }
.onboarding.is-tighter .onboarding-intro, .onboarding.is-tighter .onboarding-create { display: none; }
.onboarding.is-tighter .onboarding-back { padding-top: 16px; padding-bottom: 16px; }
@media (max-width: 300px) { /* very narrow (zoom 200 %): the name gets the room, the stamps go */
    .onboarding { padding-left: 16px; padding-right: 16px; }
    .onboarding-back { padding: 20px; }
    .onboarding .stamp-badge { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .onboarding-hint { animation: none; color: rgba(232, 216, 197, 0.7); }
}

/* Bug (Ònia 18/10, Safari on the iPhone): after a lot of scrolling in a long list of mine, the top bar's buttons
   vanished. iOS can drop a sticky element's blurred layers while scrolling fast past many other blurred layers
   (every wish pill has one). The bar gets a compositing layer of its own so Safari keeps it. No visible change.
   If it still happens: plan B is taking the blur off the pills inside the panel (a subtle look change, for Ònia). */
.list-nav { -webkit-transform: translateZ(0); transform: translateZ(0); }

/* Reorder the wishes of a list (18/10): no text selection or iOS callout on a long press; the gap where the wish
   will land is a faint outline of it, and the wish being dragged is lifted a little */
/* align-self: the stack is a flex column, so without it the row (and the area that starts a drag) spans the whole width */
.wish-row { align-self: flex-start; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.wish-row.wish-ghost { opacity: 0.35; }
.wish-row.wish-chosen .existing-pill { transform: scale(1.04); box-shadow: var(--glass-shadow), 0 10px 24px rgba(0, 0, 0, 0.18); }
.wish-row.wish-drag { opacity: 0.95; }
@media (prefers-reduced-motion: reduce) { .wish-row.wish-chosen .existing-pill { transform: none; } }

/* ── Components shared by several screens (dev-css step 2, 20/10/2026). The per-screen classes below add
   or override what differs; they come later in the file, so they win. */
/* Round 44 px icon button of the screen headers (back, close, save, colour, share) */
.nav-btn, .nav-btn:hover, .nav-btn:active {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* v166 (Ònia, Base): the generic button:hover swapped the box-shadow for a plain drop shadow, which took the glass ring (the thin white outline) off the round header buttons: hover keeps it */
.nav-btn:hover { box-shadow: var(--glass-shadow); }
/* The glass look of the header buttons inside a list (colour, share) */
.nav-btn--glass, .nav-btn--glass:hover, .nav-btn--glass:active {
    background: var(--glass-fill);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-rim);
    box-shadow: var(--glass-ring); /* v90: the rim is a ring now */
}
/* Round 48 px buttons floating at the top of the home (+, Settings) */
.fab, .fab:hover, .fab:active {
    pointer-events: auto;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Quiet underlined action with an icon, centred under the content (Log out, Delete wish) */
.quiet-action, .quiet-action:hover, .quiet-action:active {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 10px 14px;
    background: none;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    font-family: var(--font-main);
    font-weight: 400;
    font-size: var(--fs-small);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
    cursor: pointer;
}
/* Header row of a screen: back on the left, actions on the right */
.view-nav {
    padding: max(20px, env(safe-area-inset-top)) 20px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
html.native .view-nav { padding-top: max(64px, env(safe-area-inset-top)); }
/* Big title of a screen (Settings pages, a friend’s list) */
.page-title {
    color: var(--current-text);
    font-weight: 400;
    font-size: var(--fs-display);
    font-family: 'Manrope', sans-serif;
    line-height: 1.2;
}
/* Empty home tabs: centred illustration, title and text */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}
/* Title of an empty state */
.empty-title {
    font-weight: 500;
    color: var(--on-surface);
    font-family: 'Manrope', sans-serif;
}
/* Text of an empty state */
.empty-text {
    font-size: var(--fs-body);
    line-height: 1.5;
    font-family: 'Manrope', sans-serif;
}

/* ── Views: what used to be inline style="…" in js/views/*.js (dev-css, 19/10/2026) ──
   One class per element, named by view (hm- home, ls- my list, gs- friend’s list, it- wish, st- Settings, fbx- feedback).
   Values that change with the theme or the state stay inline in the templates. On buttons, the rule also
   covers :hover and :active: the generic button:hover / button:active rules are more specific than one class. */

/* js/views/home.js */
.hm-topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: max(20px, env(safe-area-inset-top)) 20px 0 20px;
    height: 0;
    pointer-events: none;
    align-items: flex-start;
}
html.native .hm-topbar { padding-top: max(64px, env(safe-area-inset-top)); }
.hm-add, .hm-add:hover, .hm-add:active {
    color: var(--btn-text);
    background: var(--btn-bg);
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.hm-settings, .hm-settings:hover, .hm-settings:active {
    color: var(--on-surface);
    background: var(--glass-fill);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-rim);
    box-shadow: var(--glass-shadow);
    cursor: pointer;
    transition: transform 0.2s ease;
}
.hm-header {
    padding: 0 20px 20px; /* Ònia 21/10: the wordmark on the same line as + and Settings (the top bar already gives the 20 px) */
    display: flex;
    justify-content: flex-start;
    align-items: center;
}
.hm-tabs-wrap {
    padding: 0 20px 40px;
}
.hm-tabs {
    display: inline-flex;
    background: var(--glass-fill);
    border-radius: 50px;
    padding: 4px;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-rim);
    box-shadow: var(--glass-shadow);
}
.hm-stamp {
    position: relative;
    flex: none;
}
.hm-stamp-svg {
    position: absolute;
    inset: 0;
    overflow: visible;
}
.hm-stamp-initials {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-initials);
    font-size: var(--fs-body);
}
.hm-card-wrap {
    position: relative;
    height: var(--card-h);
}
/* Ònia 21/10 (Base): the cards are lower, like a long Christmas card: 200 px (300 before v90, 250 in v90; option C,
   21/10 night). v115 (Ònia 25/10, Base: «una mica més altes»; d090): 230 px, the same 50 px covered by the card above,
   so what shows of each card is its bottom 180 px (was 150). The stamp only shows on the first card: on the others it would peek
   out half-covered, so it's hidden (WishListCard marks them hm-card-wrap--under). */
.hm-stack { --card-strip: 180px; --card-h: 230px; }
@supports (width: 1cqw) { .hm-stack { container-type: inline-size; --card-strip: clamp(180px, calc(162px + 100cqw * 0.04), 194px); } } /* wide desktop cards tilt more at the edges: a little more shows */
.hm-card-wrap--under .hm-stamp { visibility: hidden; }
.hm-card.wishlist-card { min-height: 0; }
.hm-card-actions {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    align-items: flex-end; /* the Delete button sits in the part of the card that shows: the bottom (21/10) */
    justify-content: flex-end;
    padding-right: 25px;
    padding-bottom: 55px;
    z-index: -1;
    background: var(--glass-fill);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-rim);
    box-shadow: var(--glass-shadow);
    opacity: 0;
    transition: opacity 0.2s;
}
.hm-card-delete, .hm-card-delete:hover, .hm-card-delete:active {
    color: var(--danger);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.8);
    backdrop-filter: var(--glass-blur);
}
.hm-card-delete-icon {
    opacity: 1;
}
.hm-card {
    outline: none;
    transform: rotate(var(--card-rotate));
    cursor: pointer;
    touch-action: pan-y;
    position: relative;
    height: 100%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05); /* each card lies on the next one: its shadow falls downwards */
}
.hm-card--green-pair { box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2); } /* Ònia 18/11 (Base): two green cards in a row: a bit more shadow (subtle) so the colour doesn't stick together */
.hm-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; /* Ònia 21/10 (Base): name at the bottom of the card */
    height: 100%;
    pointer-events: none;
}
/* Ònia 21/10: the list name looked too small on the home cards → --fs-display (36), the same size it has when the
   list is open. At most 2 lines. It sits at the bottom of the card: a second line keeps the place of a single one and
   the first line goes up; the card above covers the top of this one (the name must stay visible). */
.hm-card-title {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
    font-size: var(--fs-display);
    line-height: 1.2;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    padding-bottom: 0.12em; margin-bottom: -0.12em; /* v91 (Ònia 21/10): p, q, g, y, j were cut by the 2-line clip; line-height 1.2 + this room keeps the descenders and never shows a 3rd line */
}
.hm-card-date { margin: 6px 0 0; font-family: 'Sometype Mono', monospace; font-size: var(--fs-small); letter-spacing: 0.5px; line-height: 1.3; } /* v167: under the name, like the date inside the letter (80 % of the card's text colour, set inline) */
.hm-card-new { display: inline-block; margin-left: 8px; padding: 0 8px; border: 1.5px solid; border-radius: 6px; font: 400 var(--fs-small)/1.3 'Sometype Mono', monospace; letter-spacing: 0.5px; vertical-align: 0.05em; } /* v235 (Ònia 21/11): the same type as the date and the author (Sometype Mono, regular); it was Manrope 600 11px */ /* v167: a small tag «New»: changed since you last opened it (like the stamp: the card's text colour on a flat card-coloured background, a solid thin edge; colours set inline) */
.hm-tab-count { display: inline-block; min-width: 18px; height: 18px; margin-left: 8px; padding: 0 5px; box-sizing: border-box; border-radius: 9px; background: var(--on-surface); color: var(--surface); font: 700 11px/18px 'Manrope', sans-serif; text-align: center; vertical-align: 0.1em; } /* v167: how many received letters have changed */
.hm-card-head { gap: 12px; } /* a 2-line name never touches the stamp */
.hm-card-head > .hm-stamp { align-self: flex-start; } /* Ònia 21/10 (v89): the stamp stays at the top right */
.hm-card-head > div:first-child { min-width: 0; }
/* v94 (Ònia 21/10, Base): the home cards no longer show the wish count (.hm-card-count is .visually-hidden: screen readers only) */
.hm-stack {
    isolation: isolate; /* the cards' z-index (first on top) stays inside the stack, under the header and sheets */
    padding: 0 20px;
    padding-bottom: 100px;
}
.hm-empty-friends {
    min-height: 50vh;
}
.hm-empty-art {
    display: block;
    width: min(220px, 70%);
    height: auto;
    margin-bottom: 28px;
    pointer-events: none;
    user-select: none;
}
.hm-empty-friends-title, .hm-empty-mine-title { /* Ònia 21/10: both empty states, the same title */
    font-size: var(--fs-title);
    margin-bottom: 12px;
    line-height: 1.3;
}
.hm-empty-friends-text {
    color: rgba(232, 216, 197, 0.7); /* same as My wishes */
    padding: 0 20px; /* Ònia 21/10: 40 px from the screen edge at most (20 here + 20 of .empty-state) */
}
.hm-empty-mine {
    min-height: 60vh; /* 20/10: room for Ònia's illustration (it was a fixed 60vh around the small balloon) */
}
.hm-empty-mine-text {
    color: rgba(232, 216, 197, 0.7);
    padding: 0 20px; /* Ònia 21/10: 40 px from the screen edge at most (20 here + 20 of .empty-state) */
    margin-bottom: 30px;
}
.hm-start, .hm-start:hover, .hm-start:active {
    background: var(--btn-bg);
    color: var(--btn-text);
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 600;
    font-size: var(--fs-body);
    border: none;
    font-family: 'Manrope', sans-serif;
    box-shadow: var(--glass-shadow);
    cursor: pointer;
}

/* js/views/settings.js */
.st-option, .st-option:hover, .st-option:active {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 52px;
    padding: 12px 18px;
    border: none;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    color: var(--current-text);
    font-family: 'Manrope', sans-serif;
    font-size: var(--fs-body);
    font-weight: 500;
    text-align: left;
}
.st-option-sub {
    display: block;
    font-size: var(--fs-small);
    opacity: 0.7;
    font-weight: 400;
    margin-top: 2px;
}
.st-back, .st-back:hover, .st-back:active {
    color: var(--current-text);
}
.st-save, .st-save:hover, .st-save:active {
    background: var(--btn-bg);
    color: var(--btn-text);
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
/* Ònia (22/10, qs2i78j): the title sits in the nav bar, centred between back and ✓ (like .auth-header on Create account) */
.st-header {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    gap: 8px;
}
.st-header .st-save { justify-self: end; }
.st-save-slot { width: 44px; height: 44px; }
.st-title {
    margin: 0;
    text-align: center;
    color: var(--current-text);
    font-family: 'Manrope', sans-serif;
    font-size: var(--fs-body);
    font-weight: 600;
    letter-spacing: -0.2px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}
.st-body > :first-child { margin-top: 16px; }
/* v128 (bug): the profile card is the first child too, but `.st-profile:hover/:active { margin-top: 0 }` (later, more specific)
   pulled it 16 px up under the pointer or finger, so on a computer it jumped up and down in a loop while hovered and on
   a phone it jumped while pressed. It keeps its 16 px in every state (what it shows at rest, unchanged). */
.st-body > .st-profile:first-child:is(:hover, :active) { margin-top: 16px; } /* the title used to give 44 px here; the bar's own 20 px + 16 */
.st-label {
    display: block;
    margin-bottom: -2px; /* v106 (Ònia 25/10): 10 px to the field, like Email's (the form's 12 px gap + this; was 22) */
}
/* Ònia (22/10, 6pbmtg8): the same field as sign-up's (.auth-input: 58 px, 20 px corners) */
.st-name-input {
    margin: 0;
}
.st-label-plain {
    display: block;
    margin: 0 0 10px;
}
.st-options {
    margin-top: 0;
    padding: 0;
    overflow: hidden;
}
.st-cur-symbol {
    font-family: 'Sometype Mono', monospace;
    font-weight: 400;
    opacity: 0.8;
}
.st-page {
    min-height: 100vh;
    background: transparent;
    color: var(--current-text);
    font-family: 'Manrope', sans-serif;
}
.st-body {
    padding: 0 24px 120px;
}
.st-chevron {
    flex: none;
    opacity: 0.7;
}
.st-profile, .st-profile:hover, .st-profile:active {
    width: 100%;
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 14px 16px 16px;
    border-radius: 20px;
    color: var(--current-text);
    font-family: 'Manrope', sans-serif;
    text-align: left;
}
.st-avatar {
    flex: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--fill-bg);
    color: var(--fill-text);
    font-size: var(--fs-subtitle);
    font-weight: 600;
    letter-spacing: 0.5px;
}
.st-profile-text {
    flex: 1;
    min-width: 0;
}
.st-profile-name {
    font-size: var(--fs-title);
    font-weight: 600;
    line-height: 1.25;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.st-profile-email {
    display: block;
    margin-top: 2px;
    font-size: var(--fs-small);
    font-weight: 400;
    opacity: 0.7;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.st-row, .st-row:hover, .st-row:active {
    width: 100%;
    display: flex;
    align-items: stretch;
    gap: 14px;
    min-height: 56px;
    padding: 0 14px 0 16px;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    color: var(--current-text);
    font-family: 'Manrope', sans-serif;
    font-size: var(--fs-body);
    font-weight: 500;
    text-align: left;
}
.st-row-icon {
    flex: none;
    align-self: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--fill-bg);
    color: var(--fill-text);
}
.st-row-title {
    flex: none;
}
.st-row-value {
    flex: 1;
    min-width: 0;
    text-align: right;
    opacity: 0.7;
    font-weight: 400;
    overflow-wrap: anywhere;
}
/* v221: big system text (up to 200 %) in the apps: «Automatic» was cut into «Autom/atic» and the value was squeezed. If title and value don't fit on one line,
   the value goes to the next line (whole words only). With normal text nothing changes. The website is not touched (html.native only). */
html.native .settings-row-body { flex-wrap: wrap; }
html.native .st-row-value { flex: 1 1 auto; } /* keeps the base overflow-wrap: anywhere, so a long value without spaces (an email) still breaks instead of overflowing */
.st-group {
    margin-top: 28px;
    padding: 0;
    overflow: hidden;
}
.st-logout-wrap {
    display: flex;
    justify-content: center;
    margin-top: 56px;
}
.st-logout, .st-logout:hover, .st-logout:active {
    color: var(--current-text);
}

/* Settings → Christmas mode switch (21/10, provisional place). iOS-style: on = the green of the avatar and row icons,
   off = a faint track; a cream ring around the track gives the edge 3:1 (WCAG 1.4.11) on the card in both states.
   Its own tokens, so a Christmas override of --accent can't change it (it's base: the same in both modes). */
:root { --switch-on: #233D32; --switch-knob: #E8D8C5; --switch-ring: rgba(232,216,197,0.55); } /* v167 (Ònia 4/11): darker (it was #376953, too bright next to the beige knob); now the fir green of the avatar and the icons */
.st-switch {
    flex: none;
    position: relative;
    width: 51px;
    height: 31px;
    border-radius: 31px;
    background: rgba(232,216,197,0.22);
    box-shadow: inset 0 0 0 1.5px var(--switch-ring);
    transition: background-color 0.2s ease;
}
.st-switch-knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: var(--switch-knob);
    box-shadow: 0 2px 4px rgba(0,0,0,0.25);
    transition: transform 0.2s ease;
}
.st-switch-row[aria-checked="true"] .st-switch { background: var(--switch-on); }
.st-switch-row[aria-checked="true"] .st-switch-knob { transform: translateX(20px); }
.st-switch-row:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; }
@media (prefers-reduced-motion: reduce) { .st-switch, .st-switch-knob { transition: none; } }

/* js/views/list.js */
.ls-wish-row {
    position: relative;
    margin-bottom: 12px;
    display: inline-block;
    clear: both;
    float: left;
    width: auto;
    max-width: 100%;
}
.ls-wish-link {
    outline: none;
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}
.ls-wish-pill {
    color: var(--current-text);
    margin: 0;
    padding-right: 52px !important;
    background: var(--glass-fill);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-rim);
}
.ls-wish-arrow {
    position: absolute;
    right: 12px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--current-text);
}
.ls-page {
    background: transparent;
}
.ls-nav {
    position: sticky;
    top: 0;
    z-index: 100;
}
.ls-back, .ls-back:hover, .ls-back:active {
    color: var(--current-text);
    pointer-events: auto;
}
.ls-nav-actions {
    display: flex;
    gap: 12px;
    pointer-events: auto;
}
.ls-colour-btn, .ls-colour-btn:hover, .ls-colour-btn:active {
    color: var(--current-text);
    cursor: pointer;
}
/* v115 (Ònia 25/10, Base): a letter with no title yet has no colour button (changing the colour of a blank letter was buggy) */
.ls-nav-actions .ls-colour-btn[hidden] { display: none; }
.ls-share-btn, .ls-share-btn:hover, .ls-share-btn:active {
    color: var(--current-text);
}
/* No wishes yet (21/10): the share button isn't there, but keeps its place so the colour button doesn't jump */
.ls-share-btn--off { opacity: 0.4; cursor: default; } /* Ònia 22/10 (v98): a fully blank list can't be shared: the button shows, disabled */
.ls-title {
    display: block;
    width: 100%;
    color: var(--current-text);
    font-weight: 400;
    font-size: var(--fs-display);
    line-height: normal;
    padding: 0;
    border: none;
    background: transparent;
    outline: none;
    resize: none;
    overflow: hidden;
    font-family: 'Manrope', sans-serif;
}
.ls-date-text {
    font-family: inherit;
}
.ls-wish-stack {
    display: flex;
    flex-direction: column;
    margin-bottom: 0px;
}
.ls-new-wrap {
    clear: both;
    padding-left: 2px;
    transition: opacity 0.2s ease;
}
.ls-new-pill {
    color: var(--current-text);
    margin: 0;
    padding: 12px 20px;
    background: var(--glass-fill) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: var(--new-pill-ring, none) !important;
    border-color: transparent !important;
    outline: none;
    cursor: text;
    min-width: 60px;
    display: inline-block;
    border-radius: 30px;
}
/* "New wish" example text (Ònia 21/10): a contenteditable div has no placeholder, so it's drawn while the field is empty.
   Same per-theme placeholder colour as the other fields (--ph). Once there's text it's gone, so the pill fits
   what you type (v139, Ònia: keeping the example's width looked wrong). The "/ ''" keeps screen
   readers from saying "New wish" twice (the field's aria-label already says it); browsers without it use the first. */
.ls-new-pill::before {
    content: attr(data-placeholder);
    content: attr(data-placeholder) / '';
    /* v139 (Ònia, backlog 8mg77vtl): once you type, the pill fits the text instead of keeping the example's width */
    display: none;
    height: 0;
    overflow: hidden;
    visibility: hidden;
    color: var(--ph, currentColor);
    pointer-events: none;
}
.ls-new-pill:empty::before { display: inline; height: auto; visibility: visible; }
/* v167 (Ònia 4/11): a long text (a link) wraps inside the letter's panel instead of sticking out of the pill, and with two lines or more
   it has 24 px corners (markMultilinePills adds .is-multi), like the wishes */
.ls-new-pill { max-width: 100%; box-sizing: border-box; overflow-wrap: anywhere; }
.notes-pill.ls-new-pill.is-multi { border-radius: 24px !important; }
.ls-swatch-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}
.ls-picker-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9998;
}
.ls-picker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    padding: 40px 0 40px;
    /* v169 (Ònia 4/11): no veil under the swatches (the white gradient with blur and a shadow read as a strange band) */
    background: none;
    z-index: 9999;
}
/* v169c (Ònia 4/11): progressive blur like the iOS nav bar: very subtle at the top, much blurrier towards the bottom, no tint.
   Two layers (a light one, a strong one), each faded in over a different stretch. They live on the backdrop, not on the picker:
   the picker is animated (slide-up), and an animated element is a backdrop root that blurs nothing behind it. */
.ls-picker-backdrop::before, .ls-picker-backdrop::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 200px; pointer-events: none; }
.ls-picker-backdrop::before { backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 45%); mask-image: linear-gradient(to bottom, transparent 0%, black 45%); }
.ls-picker-backdrop::after { backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    -webkit-mask-image: linear-gradient(to bottom, transparent 30%, black 75%); mask-image: linear-gradient(to bottom, transparent 30%, black 75%); }
.ls-picker-row {
    display: flex;
    align-items: center;
    gap: 16px;
    overflow-x: auto;
    overflow-y: visible;
    width: 100%;
    padding: 24px 24px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
/* v214 (Ònia 9/11): endless; a circle is cut on both edges but never the first one (before: the first came out cut by half). The margin is set by initThemeCarousel() (list.js) */
.ls-picker-row { scrollbar-width: none; }
.ls-picker-row::-webkit-scrollbar { display: none; }

/* js/views/guest.js */
.gs-missing {
    min-height: 100vh;
    padding: 20px;
    color: var(--on-surface);
    font-family: 'Manrope', sans-serif;
}
.gs-missing-back, .gs-missing-back:hover, .gs-missing-back:active {
    color: var(--on-surface);
}
.gs-missing-text {
    padding: 60px 4px;
    text-align: center;
    opacity: 0.8;
    line-height: 1.5;
}
.gs-empty {
    margin-bottom: 24px;
}
/* A link to a list that isn't there (Ònia 25/10, Figma 2124-4566): the same layout as the home's empty My lists tab */
.gs-gone {
    display: flex;
    flex-direction: column;
}
.gs-gone .gs-missing-back {
    align-self: flex-start;
}
.gs-gone-body {
    flex: 1;
    padding-bottom: 60px;
}
.gs-gone-art {
    display: block;
    width: min(220px, 70%);
    height: auto;
    margin-bottom: 28px;
    pointer-events: none;
    user-select: none;
}
.gs-gone-title {
    font-size: var(--fs-title);
    margin: 0 0 12px;
    line-height: 1.3;
}
.gs-gone-text {
    color: rgba(232, 216, 197, 0.7); /* same as the home's empty states */
    padding: 0 20px; /* 40 px from the screen edge at most, like the home */
    margin: 0 0 30px;
}
.gs-gone-home, .gs-gone-home:hover, .gs-gone-home:active { /* the only button on the screen: the primary one, like «Start wishing» */
    background: var(--btn-bg);
    color: var(--btn-text);
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 600;
    font-size: var(--fs-body);
    border: none;
}
/* A friend's list with no wishes (Ònia 22/10): the elf boot, like the home's empty states */
.gs-empty-list {
    padding: 8px 0 0;
}
.gs-empty-art {
    display: block;
    width: min(220px, 70%);
    height: auto;
    margin-bottom: 28px;
    pointer-events: none;
    user-select: none;
}
.gs-empty-title {
    font-size: var(--fs-title);
    color: var(--current-text);
    margin: 0 0 12px;
    line-height: 1.3;
}
.gs-empty-text {
    color: var(--current-text); /* full colour: some themes are at 4.5:1 already */
    margin: 0;
    overflow-wrap: anywhere; /* a long first name with no spaces mustn't push the page sideways */
}
.gs-page {
    color: var(--current-text);
}
.gs-nav {
    padding: max(20px, env(safe-area-inset-top)) 20px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}
html.native .gs-nav { padding-top: max(64px, env(safe-area-inset-top)); }
.gs-back, .gs-back:hover, .gs-back:active {
    color: var(--current-text);
}
.gs-title {
    margin: 32px 0 12px;
    overflow-wrap: anywhere;
}
.gs-date {
    font-size: var(--fs-small);
    color: var(--current-text);
    opacity: 0.8;
    margin: 0;
    letter-spacing: 0.5px;
    font-family: 'Sometype Mono', monospace;
}
.gs-notes {
    font-size: var(--fs-body);
    color: var(--current-text);
    line-height: 1.5;
    margin: 24px 0 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.gs-wish-nav {
    padding: 20px;
}
.gs-wish-back, .gs-wish-back:hover, .gs-wish-back:active {
    color: var(--current-text);
}
/* v156 (Ònia 3/11, B): a friend's wish that's gone: the "letter gone" screen (elf reading), in the letter's colours */
.gs-gone--letter {
    min-height: 100vh;
    min-height: 100dvh;
    background: transparent;
    color: var(--current-text);
    font-family: 'Manrope', sans-serif;
}
.gs-gone--letter .gs-gone-title, .gs-gone--letter .gs-gone-text { color: var(--current-text); }
.gs-gone--letter .gs-gone-home, .gs-gone--letter .gs-gone-home:hover, .gs-gone--letter .gs-gone-home:active {
    background: var(--current-text);
    color: var(--current-bg);
}
.gs-detail {
    color: var(--current-text);
}

/* js/views/item.js */
.it-page {
    min-height: 100vh;
    padding: 20px;
}
.it-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}
.it-save, .it-save:hover, .it-save:active {
    display: none;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.it-name {
    display: block; resize: none; overflow: hidden; line-height: 1.2; overflow-wrap: anywhere; /* v166: 2+ lines, never cut */
    field-sizing: content;
    width: 100%;
    font-weight: 400;
    font-size: var(--fs-display);
    padding: 0 0 0.2em; /* v214: the descender of a g, p, y or j on the last line was cut (the height is measured before the font loads) */
    border: none;
    background: transparent;
    outline: none;
    font-family: 'Manrope', sans-serif;
    margin-bottom: 30px;
    box-sizing: border-box;
    box-shadow: none;
}
.it-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.it-price-field {
    position: relative;
}
.it-delete-wrap {
    text-align: center;
    margin-top: 56px;
}

/* js/views/feedback.js */
.fbx-label-first {
    margin-top: 0;
}
.fbx-label-next {
    margin-top: 24px;
}
.fbx-hint-full {
    opacity: 1;
}
/* Settings → Send feedback, once sent (Ònia 26/10): the same layout as «Reading the wrong page!» */
.fbx-sent { padding-bottom: 60px; }
.fbx-sent-art { display: block; width: min(220px, 70%); height: auto; margin-bottom: 12px; /* Ònia 27/10: closer to the text (was 28) */ pointer-events: none; user-select: none; }
.fbx-sent-title { font-size: var(--fs-title); margin: 0 0 12px; line-height: 1.3; }
.fbx-sent-text { color: rgba(232, 216, 197, 0.7); padding: 0 20px; margin: 0 0 30px; } /* same as the home's empty states */
.fbx-sent-back, .fbx-sent-back:hover, .fbx-sent-back:active { /* the only button on the screen: the primary one */
    min-height: 44px; background: var(--btn-bg); color: var(--btn-text); padding: 14px 32px; border-radius: 30px;
    font-weight: 600; font-size: var(--fs-body); border: none;
}
.fbx-sent-back:focus-visible { outline: 2px solid var(--current-text); outline-offset: 3px; }

/* js/render.js */
.rd-error {
    padding: 40px 20px;
    color: var(--on-surface);
}

/* The page's live regions (render.js announce): out of the flow, so they never add a pixel of scroll */
#glass-toast-live, #sr-alert { position: fixed; top: 0; left: 0; }

/* Loading screen (Ònia 21/10): only the Northpost wordmark, centred, fading in gently. Also drawn by index.html
   before the scripts arrive. Lobster is font-display: block (fonts.css), so it never shows in another font. */
.splash-load {
    position: fixed; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--splash-bg);
}
.splash-load-name {
    margin: 0;
    /* v212 (Ònia 8/11): the new logo (img/Northpost-logo.svg, 203×70: the same size as the app's native splash) instead of the Lobster text */
    width: min(203px, 80vw); aspect-ratio: 203 / 70;
    background: var(--splash-wordmark);
    -webkit-mask: url(/assets/Northpost-logo-CPJ7gbOi.svg) center / contain no-repeat; mask: url(/assets/Northpost-logo-CPJ7gbOi.svg) center / contain no-repeat;
    font-size: 0; color: transparent; overflow: hidden;
    animation: splashLoadIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes splashLoadIn { from { opacity: 0; transform: translateY(6px); letter-spacing: 0.02em; } to { opacity: 1; transform: none; letter-spacing: 0; } }
@media (prefers-reduced-motion: reduce) { .splash-load-name { animation: none; } }

/* ---- Christmas mode (Ònia 21/10): exception to "Christmas only adds". List titles in Lobster ----
   Home cards, the list screen and a friend's list. Lobster only has one weight (400, the same as now). */
:root[data-xmas="on"] .hm-card-title,
:root[data-xmas="on"] .onboarding-input,
:root[data-xmas="on"] .ls-title,
:root[data-xmas="on"] .gs-title { font-family: 'Lobster', 'Manrope', sans-serif; } /* letters Lobster hasn't got (Greek, Cyrillic…) stay Manrope */
/* v102 (Ònia 25/10, Nadal): Lobster's f, j and p reach up to 0.22 em left of where the line starts, and these two clip
   (the textarea and the 2-line clamp hide what's outside): the tail of a line that starts "fantàstics" was cut flat.
   Room on the left, given back by moving the box left as much, so the text stays exactly where it was. */
:root[data-xmas="on"] .ls-title { padding-left: 0.25em; position: relative; left: -0.25em; width: calc(100% + 0.25em); } /* its margin is inline (list.js): moved with left */
:root[data-xmas="on"] .hm-card-title { padding-left: 0.25em; margin-left: -0.25em; }
/* v139 (Ònia, backlog 5z6uaiis, Nadal): in Lobster the letter's name looks smaller than in Manrope, so on the letter
   screen (mine and a friend's) it's 4 px bigger in Christmas mode. Base keeps --fs-display. */
:root[data-xmas="on"] .ls-title,
:root[data-xmas="on"] .gs-title { font-size: calc(var(--fs-display) + 8px); } /* v167 (Ònia 4/11): 4 px more than before (it was +4); the home cards are not touched */

/* ---- Christmas mode (Nadal, Ònia 21/10): art on the home's list cards (config.js THEME_XMAS_ART) ----
   One overlay per card background colour (v108, Ònia 25/10: Figma frames 1000004946-4965, vectors in img/Motius Cards):
   holly (pine sprig top left + holly bottom right), airmail stripes, and tree / snow patterns. Behind the name and stamp;
   can't be touched. Base: not there. */
:root { --xmas-holly-leaf-sage: #2E6755; --xmas-airmail-pink: #DC8E9F; /* v113 (Ònia 25/10) */
    --xmas-airmail-rose: #E1AEC0; --xmas-airmail-white: #FFFFFF; /* v166 (Ònia 4/11): the stripes of theme 1 (rose) and theme 2 (white) */
    --xmas-holly-leaf: #1B2E25; /* v111: Ònia's updated vectors (was #172720) */ --xmas-berry: #912220; --xmas-airmail-deep: color-mix(in srgb, var(--theme-5-bg) 80%, black); /* v166 (Ònia 4/11): the card's colour with 20 % black */
    --xmas-trees: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='136' viewBox='0 0 120 136'%3E%3Cdefs%3E%3Cpath id='t' d='M15.3297 0.416199C15.0896 0.640221 14.6736 1.24829 14.4016 1.74434C14.1135 2.25639 13.8255 2.70444 13.7295 2.75245C13.6495 2.81646 13.5855 2.99247 13.5855 3.15249C13.5855 3.32851 13.4414 3.53653 13.2654 3.63254C13.0894 3.72855 12.9454 3.87257 12.9454 3.96858C12.9454 4.1446 11.9373 5.76077 11.5532 6.19282C11.4412 6.32083 11.1052 6.72087 10.8172 7.05691C10.3371 7.63297 9.32901 8.67309 7.96886 9.96922C7.64882 10.2573 7.31279 10.5133 7.23278 10.5133C7.15277 10.5133 6.88074 10.7213 6.65672 10.9933C6.41669 11.2494 6.12866 11.4734 6.00065 11.4734C5.87263 11.4734 5.74462 11.5694 5.69661 11.6974C5.64861 11.8254 5.44059 11.9534 5.24857 11.9854C5.02454 12.0174 4.84852 12.1775 4.78452 12.4335C4.6085 13.0736 4.84852 13.4736 5.52059 13.6656C6.28868 13.8896 7.69683 14.1137 7.90485 14.0497C8.00086 14.0177 8.46491 13.9056 8.94496 13.7936C9.42502 13.6816 10.0011 13.5376 10.2091 13.4736C10.5451 13.3616 10.5291 13.4096 10.0011 14.1457C9.68104 14.5937 9.42502 15.0738 9.42502 15.2338C9.42502 15.3778 9.297 15.5378 9.13698 15.5858C8.97697 15.6178 8.70494 15.9059 8.54492 16.2099C8.3849 16.5139 8.04887 16.978 7.79284 17.234C7.55281 17.506 7.34479 17.7781 7.34479 17.8581C7.34479 17.9381 7.20078 18.0341 7.02476 18.0821C6.84874 18.1301 6.70472 18.2581 6.70472 18.3861C6.70472 18.4981 6.41669 18.7702 6.08066 18.9942C5.72862 19.2022 5.37658 19.5383 5.28057 19.7463C5.18456 19.9543 5.00854 20.1143 4.88053 20.1143C4.73651 20.1143 4.48048 20.3223 4.27246 20.5944C4.08044 20.8504 3.84041 21.0744 3.7284 21.0744C3.61639 21.0744 3.31236 21.2504 3.05633 21.4745C2.7843 21.6985 2.51227 21.8745 2.43226 21.8745C2.24024 21.8745 1.8882 22.7546 1.98421 23.0106C2.03222 23.1386 2.41626 23.3947 2.83231 23.6027C3.61639 23.9707 5.42458 24.1307 6.22467 23.8907C7.36079 23.5547 8.59293 22.8826 9.20099 22.2906C9.39301 22.0825 9.52103 22.0665 9.64904 22.1945C9.77705 22.3226 9.71305 22.4666 9.40901 22.7386C9.18499 22.9306 9.02497 23.1706 9.05698 23.2667C9.08898 23.3627 8.81695 23.7467 8.44891 24.1307C8.08087 24.5148 7.69683 25.0108 7.60082 25.2349C7.48881 25.4589 7.12077 25.9549 6.78473 26.339C5.96864 27.2511 3.82441 29.3953 3.7124 29.3953C3.6804 29.3953 3.45637 29.6193 3.23235 29.8754C3.00832 30.1474 2.54427 30.5154 2.20824 30.6915C1.8562 30.8675 1.58417 31.0595 1.58417 31.1395C1.58417 31.2195 1.37615 31.3635 1.12012 31.4595C0.880095 31.5715 0.528057 31.8596 0.336036 32.0996L0 32.5477L0.352038 33.0437C0.56006 33.3317 0.848091 33.5558 1.04011 33.5558C1.21613 33.5558 1.50416 33.6998 1.66418 33.8758C1.8242 34.0518 2.11223 34.1958 2.30425 34.1958C2.51227 34.1958 2.7523 34.3078 2.86431 34.4359C2.97632 34.5639 3.20034 34.6759 3.37636 34.6759C3.53638 34.6759 3.87242 34.7719 4.11244 34.8999C4.35247 35.0279 4.84852 35.1719 5.18456 35.2359C5.5366 35.3 5.93664 35.38 6.06465 35.444C7.13677 35.876 11.7773 35.604 12.2253 35.0919C12.3213 34.9799 12.6894 34.8199 13.0734 34.7079C13.4414 34.5959 13.9695 34.2918 14.2255 34.0358C14.4976 33.7638 14.7536 33.5558 14.7856 33.5558C14.8816 33.5558 14.7376 35.94 14.6096 36.3401C14.5456 36.5161 14.4336 36.7721 14.3375 36.9001C14.2415 37.0121 14.0655 37.3642 13.9535 37.6842C13.6175 38.6923 13.7295 38.7243 16.9778 38.6283C18.546 38.5803 19.9061 38.4843 19.9862 38.4363C20.1942 38.3083 20.1942 37.8282 19.9702 37.6042C19.6501 37.2842 19.1701 35.732 19.1701 34.9959C19.1701 34.5959 19.0901 34.0358 18.994 33.7478C18.786 33.0437 18.882 32.9797 19.4421 33.4438C20.0022 33.9078 20.8342 34.2918 21.5863 34.4359C21.8904 34.4999 22.2744 34.6599 22.4184 34.7879C22.5624 34.9159 22.7545 34.9799 22.8345 34.9319C22.9145 34.8839 23.2825 34.9479 23.6826 35.0599C24.9147 35.428 27.907 35.2039 28.9471 34.6599C29.3312 34.4519 29.7312 34.3558 29.9552 34.4199C30.2113 34.4839 30.3713 34.4039 30.5153 34.1798C30.6433 33.9878 30.8193 33.8918 30.9633 33.9398C31.2354 34.0518 33.5556 32.8517 33.9397 32.4036C34.1637 32.1636 34.1797 32.0196 34.0357 31.7156C33.9397 31.4915 33.7156 31.2835 33.5396 31.2195C32.9155 31.0275 30.6433 29.4593 29.8432 28.6592C29.4912 28.3072 29.0591 27.9712 28.9151 27.9072C28.7551 27.8592 28.6271 27.7151 28.6271 27.5871C28.6271 27.4751 28.4191 27.2191 28.163 27.0271C27.907 26.851 27.3629 26.243 26.9469 25.6829C26.5309 25.1229 26.0188 24.5468 25.8108 24.3868C25.2827 23.9867 25.4747 23.7627 26.1148 24.0347C26.4028 24.1468 26.8989 24.2268 27.2029 24.1948C29.0111 24.0027 29.3472 23.9227 29.4752 23.7147C29.5392 23.5867 29.7632 23.4747 29.9712 23.4747C30.1793 23.4747 30.4353 23.3627 30.5473 23.2347C30.6593 23.1066 30.8353 22.9946 30.9313 22.9946C31.0273 22.9946 31.2354 22.7866 31.3794 22.5466C31.6354 22.1305 31.6354 22.0505 31.4114 21.7465C31.2834 21.5545 31.0273 21.3945 30.8513 21.3945C30.6913 21.3945 30.5473 21.3304 30.5473 21.2504C30.5473 21.1704 30.4193 21.0584 30.2593 21.0104C29.9712 20.9144 28.3711 19.9383 28.035 19.6343C27.923 19.5543 27.731 19.4742 27.587 19.4742C27.459 19.4742 27.3469 19.3782 27.3469 19.2662C27.3469 19.0102 26.1628 18.0341 25.8428 18.0341C25.6988 18.0341 25.5868 17.9381 25.5868 17.8101C25.5868 17.6821 25.2667 17.298 24.8827 16.962C24.5146 16.6259 24.1466 16.1939 24.0826 16.0019C24.0186 15.8099 23.8106 15.6338 23.6185 15.6018C23.4265 15.5698 23.2505 15.4098 23.2185 15.2498C23.1865 15.0738 22.6264 14.4017 21.9704 13.7296C21.3143 13.0576 20.7862 12.3855 20.7862 12.2415C20.7862 11.8414 20.8822 11.8734 21.6823 12.5775C22.2904 13.1216 22.5304 13.2176 23.4265 13.3136C24.0026 13.3616 24.4666 13.4896 24.4666 13.5856C24.4666 13.6816 24.6107 13.6336 24.7867 13.4736C24.9467 13.3296 25.2027 13.2336 25.3307 13.2816C25.7788 13.4576 27.667 12.2895 27.667 11.8414C27.667 11.5214 26.8829 10.8333 26.5149 10.8333C26.3548 10.8333 26.1788 10.7213 26.1308 10.5933C26.0668 10.4653 25.9388 10.3533 25.8268 10.3533C25.7148 10.3533 25.5388 10.2413 25.4267 10.1132C25.3147 9.98523 25.1067 9.87321 24.9467 9.87321C24.8027 9.87321 24.5466 9.7292 24.3866 9.55318C24.2266 9.37716 24.0346 9.23314 23.9546 9.23314C23.8746 9.23314 23.5225 8.96112 23.1865 8.62508C22.8665 8.30505 22.0344 7.50496 21.3623 6.86489C20.6902 6.20882 20.1462 5.61676 20.1462 5.55275C20.1462 5.47274 20.0022 5.31273 19.8421 5.20071C19.6661 5.0727 19.4421 4.78467 19.3301 4.54464C19.2181 4.30462 18.962 4.00058 18.754 3.87257C18.562 3.72855 18.386 3.53653 18.386 3.42452C18.386 3.2965 18.146 2.92847 17.8419 2.59243C17.5379 2.25639 17.2019 1.79234 17.0738 1.56832C16.9618 1.3443 16.6098 0.896248 16.3058 0.576214L15.7457 0.000152588L15.3297 0.416199ZM18.354 14.5457C18.258 14.8337 17.9059 14.8818 17.9059 14.6097C17.9059 14.4657 18.0179 14.3537 18.162 14.3537C18.306 14.3537 18.386 14.4337 18.354 14.5457ZM13.8095 17.154C13.7135 17.41 13.4254 17.49 13.4254 17.266C13.4254 17.09 13.6015 16.914 13.7615 16.914C13.8415 16.914 13.8575 17.026 13.8095 17.154ZM14.1455 18.8182C14.0015 18.9622 13.5855 18.4661 13.5855 18.1301C13.5855 17.8261 13.6175 17.8421 13.9055 18.2741C14.0655 18.5301 14.1775 18.7702 14.1455 18.8182ZM23.3465 23.0426C23.3465 23.1706 23.2025 23.3947 23.0265 23.5547C22.7224 23.8267 22.7064 23.8267 22.6104 23.5547C22.5304 23.3627 22.5944 23.1866 22.7865 23.0586C23.1705 22.7706 23.3465 22.7706 23.3465 23.0426ZM17.8099 25.9709C17.9699 26.371 17.8259 26.403 17.5059 26.035C17.2659 25.7629 17.2499 25.7149 17.4579 25.7149C17.6019 25.7149 17.7619 25.8269 17.8099 25.9709ZM15.5537 27.6031C15.5217 27.8111 15.6017 27.9552 15.7297 27.9552C16.0017 27.9552 16.3858 28.4032 16.2417 28.5472C16.0977 28.6912 15.0256 27.6351 15.0256 27.3471C15.0256 27.2191 15.1536 27.1551 15.3136 27.1871C15.4897 27.2351 15.5697 27.3791 15.5537 27.6031Z'/%3E%3C/defs%3E%3Cg fill='%231B2E25'%3E%3Cuse href='%23t' transform='translate%2848.625 21.325%29 scale%280.65%29'/%3E%3Cuse href='%23t' transform='translate%28-11.375 89.325%29 scale%280.65%29'/%3E%3Cuse href='%23t' transform='translate%28108.625 89.325%29 scale%280.65%29'/%3E%3C/g%3E%3C/svg%3E");
    --xmas-snow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='188' height='171.613' viewBox='0 0 188 171.613'%3E%3Cdefs%3E%3Cpath id='s' d='M28.4633 19.1948C35.2451 18.2899 38.3752 17.7963 39.5009 17.4672C40.6541 17.1382 41.2307 16.4252 40.6541 16.0688C40.2697 15.8494 36.2885 15.1913 30.9893 14.5058C28.3534 14.1493 26.1294 13.8477 26.0745 13.8202C26.0196 13.7654 26.3491 13.0799 26.7884 12.2847C28.2161 9.78934 30.7147 5.01806 30.7147 4.82612C30.7147 4.74385 30.4951 4.66159 30.2205 4.66159C29.8086 4.66159 27.3101 6.52623 22.9719 10.091C22.56 10.4474 22.2031 10.6394 22.2031 10.5571C22.2031 10.3378 20.3909 2.57759 19.9791 1.042C19.8418 0.46616 19.5947 8.56511e-07 19.4574 8.5051e-07C19.1279 8.36107e-07 18.9083 0.877477 17.81 6.22459L16.9039 10.6668L15.229 9.43286C12.8952 7.73275 9.24342 5.48422 8.83157 5.48422C8.63937 5.48422 8.47462 5.59391 8.47462 5.73101C8.47462 5.86812 9.60035 7.67791 10.9732 9.73449C12.3186 11.8185 13.4169 13.546 13.3619 13.5734C13.307 13.6283 10.9457 14.1219 8.06277 14.6703C0.15518 16.1785 -1.0804 16.6172 0.731759 17.3027C1.72021 17.6866 8.58445 18.8383 11.3027 19.0851C12.4559 19.1948 13.4169 19.3867 13.4169 19.5238C13.4169 19.6884 12.5932 21.1691 11.5772 22.8418C9.46307 26.3791 8.63936 27.9695 8.85902 28.1889C9.13359 28.4357 10.177 27.8324 13.4718 25.3919C15.2565 24.1032 16.7941 23.0337 16.9314 23.0337C17.0686 23.0337 17.7001 25.5016 18.3591 28.5454C19.5672 34.0022 19.9791 35.2361 20.5007 34.6877C20.638 34.5506 21.1048 31.973 21.5441 28.9841C21.956 26.0226 22.3953 23.445 22.5051 23.2805C22.5875 23.116 23.9603 23.9935 25.7999 25.3645C29.1222 27.8873 31.1815 29.2309 31.4286 28.9841C31.6483 28.7647 30.6049 26.8178 28.5182 23.5822C25.6626 19.0851 25.6626 19.5787 28.4633 19.1948Z'/%3E%3C/defs%3E%3Cg fill='%239BB9FF'%3E%3Cuse href='%23s' x='0' y='0'/%3E%3Cuse href='%23s' x='0' y='171.613'/%3E%3Cuse href='%23s' x='188' y='0'/%3E%3Cuse href='%23s' x='188' y='171.613'/%3E%3Cuse href='%23s' x='77' y='85.806'/%3E%3Ccircle cx='114.5' cy='17.5' r='3.5'/%3E%3Ccircle cx='3.5' cy='103.307' r='3.5'/%3E%3Ccircle cx='191.5' cy='103.307' r='3.5'/%3E%3C/g%3E%3C/svg%3E"); }
.xmas-card-art { display: none; }
:root[data-xmas="on"] .xmas-card-art { display: block; position: absolute; inset: 0; pointer-events: none; z-index: -1; } /* the card (transformed) is its own stacking context: -1 paints over the card's colour and under the name and stamp */
/* v108 (Ònia 25/10, Nadal): new sprigs at Figma size, each its own drawing (pine + berries top left, holly bottom right, not turned) */
.xmas-card-art-tl, .xmas-card-art-br { position: absolute; line-height: 0; }
.xmas-card-art-tl { top: 17px; left: 18px; width: 58px; height: 42px; } /* Ònia 25/10: smaller (Figma 78×56) */
.xmas-card-art-br { bottom: 18px; right: 19px; width: 61px; height: 60px; } /* Figma 81×80 */
/* v110: theme 10's sprig (Figma 82×89), at the same 75 % as the holly; the top one is the same turned 180° */
.xmas-card-art--sprig .xmas-card-art-tl, .xmas-card-art--sprig .xmas-card-art-br { width: 62px; height: 67px; }
.xmas-card-art--sprig .xmas-card-art-tl { transform: rotate(180deg); } /* v111: Ònia's export is the bottom-right one (dot at the bottom right) */
.xmas-card-art svg { display: block; width: 100%; height: 100%; }
.xmas-card-art .xmas-leaf { fill: var(--xmas-holly-leaf); }
.xmas-card-art[data-theme="11"] { --xmas-holly-leaf: var(--xmas-holly-leaf-sage); } /* v113 (Ònia 25/10): softer leaf on the sage card */
.xmas-card-art .xmas-berry { fill: var(--xmas-berry); }
/* Berries are red; theme 6 (Ònia's design) and, until their own art arrives, 9 and 10 use the card's text colour */
.xmas-card-art[data-theme="6"], .xmas-card-art[data-theme="9"], .xmas-card-art[data-theme="10"] { --xmas-berry: currentColor; }
/* The bottom-right sprig (61 px) is wider than the stamp column: a long name stops 8 px before it (v108 review: on
   theme 11 the fir-green name over the dark leaf can't be read) */
:root[data-xmas="on"] .hm-card:has(> :is(.xmas-card-art--holly, .xmas-card-art--sprig)) .hm-card-head > div:first-child { margin-right: 6px; }
/* The first-list card is smaller than a home card and its name field runs along the bottom: smaller sprigs, closer to
   the corners, and the field stops before the bottom one (v108) */
.onboarding-back .xmas-card-art-tl { top: 10px; left: 12px; width: 41px; height: 29px; }
.onboarding-back .xmas-card-art-br { bottom: 10px; right: 12px; width: 42px; height: 41px; }
.onboarding-back .xmas-card-art--sprig :is(.xmas-card-art-tl, .xmas-card-art-br) { width: 42px; height: 46px; }
:root[data-xmas="on"] .onboarding-back:has(> :is(.xmas-card-art--holly, .xmas-card-art--sprig)) .onboarding-input { padding-right: 34px; }
/* Patterns over the whole card (v108, Nadal): trees on theme 8, snow on theme 12. Tiles built from Ònia's vectors
   (img/Motius Cards); the colours are in the tile because a background image can't read CSS variables. */
.xmas-card-art--trees, .xmas-card-art--snow { border-radius: inherit; background-repeat: repeat; }
:root[data-xmas="on"] .xmas-card-art--trees, :root[data-xmas="on"] .xmas-card-art--snow { top: -1px; } /* over the card's 1 px border-top, like the airmail */
/* v113 (Ònia 25/10): trees at 65 % (23×25) and further apart; v114: a bit more (120 px across, rows 68 px apart) */
.xmas-card-art--trees { background-image: var(--xmas-trees); background-position: -22px 4px; }
/* v113 (Ònia 25/10): the snow is a repeating tile again, built from her 306×208 drawing (img/Motius Cards/xmas-card-blue.svg):
   stars 188 px apart, rows 85.8 px apart, every other row shifted; a dot between the stars. At its own size, never
   stretched or cut, whatever the card's width. */
.xmas-card-art--snow { background-image: none; background-color: color-mix(in srgb, var(--theme-12-bg) 55%, white); /* v166 (Ònia 4/11): the card's colour, whiter */
    -webkit-mask: var(--xmas-snow) 0 0 / 188px 171.613px repeat; mask: var(--xmas-snow) 0 0 / 188px 171.613px repeat; }
/* Airmail (Nadal, Ònia 21/10; Figma Wishly26 "Letter" 2108:4525): white stripes all round the pink (1, 2) and red (3, 5) cards,
   the same stripes as the first-list envelope (135°, 11 px on 22), an 11 px band and the card's colour inside, rounded.
   top: -1px = over the card's 1 px border-top, so the band is 11 px from the card's outer edge on every side. */
/* v103 (Ònia 22/10, fdr3cib + fvr4zdk, Nadal): the stripes are the card's text colour (were white), and the name and
   stamp come 8 px further in, so they don't sit right against the band. */
:root { --xmas-airmail-stripe: currentColor; --xmas-airmail-band: 11px; --xmas-airmail-inset: 8px;
    --xmas-airmail-strength: 22%; } /* v113 (Ònia 25/10): much subtler stripes on the pink and red cards, like the other patterns */
:root[data-xmas="on"] .hm-card:has(> .xmas-card-art--airmail) { padding: calc(24px + var(--xmas-airmail-inset)); }
/* The first-list card only with room to spare: when it's short (.is-tight) or very narrow (zoom 200 %), its own smaller
   paddings win, so the name keeps its room (the 11 px band stays clear of the text anyway). */
@media (min-width: 301px) {
    :root[data-xmas="on"] .onboarding:not(.is-tight):not(.is-tighter) .onboarding-back:has(> .xmas-card-art--airmail) { padding: calc(24px + var(--xmas-airmail-inset)) calc(28px + var(--xmas-airmail-inset)) calc(26px + var(--xmas-airmail-inset)); }
    :root[data-xmas="on"] .onboarding:not(.is-tight):not(.is-tighter) .onboarding-back:has(> .xmas-card-art--airmail) .onboarding-stamp { top: calc(22px + var(--xmas-airmail-inset)); right: calc(26px + var(--xmas-airmail-inset)); }
}
.xmas-card-art--airmail { border-radius: inherit; background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--xmas-airmail-stripe) var(--xmas-airmail-strength), transparent) 0 11px, transparent 11px 22px); }
:root[data-xmas="on"] .xmas-card-art--airmail { top: -1px; } /* over the card's 1 px border-top (the rule above sets inset: 0) */
/* v108 (Ònia 25/10): theme 5 (garnet) gets dark red stripes #6B1715, not its blue text colour */
.xmas-card-art[data-theme="3"] { --xmas-airmail-stripe: color-mix(in srgb, var(--theme-3-bg) 80%, black); --xmas-airmail-strength: 100%; } /* v166 (Ònia 4/11): the card's colour with 20 % black */
.xmas-card-art[data-theme="5"] { --xmas-airmail-stripe: var(--xmas-airmail-deep); --xmas-airmail-strength: 100%; }
/* v113 (Ònia 25/10): on the pink cards (1, 2; 13-16 are drawn as 1) the stripes are a soft darker pink */
.xmas-card-art:is([data-theme="1"], [data-theme="13"], [data-theme="14"], [data-theme="15"], [data-theme="16"]) { --xmas-airmail-stripe: var(--xmas-airmail-rose); --xmas-airmail-strength: 100%; } /* v166 (Ònia 4/11): rose #E1AEC0 */
.xmas-card-art[data-theme="2"] { --xmas-airmail-stripe: var(--xmas-airmail-white); --xmas-airmail-strength: 100%; } /* v166: white */
.xmas-card-art-inner { position: absolute; inset: var(--xmas-airmail-band); border-radius: calc(var(--radius-lg) - var(--xmas-airmail-band)); }

/* ==== Buttons (design system, 21/10) ====
   For any NEW button: <button class="btn btn--primary|btn--secondary|btn--ghost [btn--block]">.
   primary   filled (the screen's fill: --accent outside lists, theme text colour inside), bold 600; the only button when a screen has one
   secondary outline, regular 400
   ghost     text only, underlined, regular 400
   Older classes (.splash-btn, .sheet-btn, .auth-secondary, .auth-link) keep their sizes and read the same tokens. */
:root {
    --btn-radius: 50px;
    --btn-min-h: 48px;
    --btn-pad-x: 26px;
    --btn-border: 1.5px solid currentColor;
    --btn-weight-primary: 600;
    --btn-weight-secondary: 400;
}
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: var(--btn-min-h); padding: 0 var(--btn-pad-x); border-radius: var(--btn-radius); border: none;
    font-family: var(--font-main); font-size: var(--fs-body); font-weight: var(--btn-weight-primary);
    color: var(--current-text); background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
    cursor: pointer;
}
.btn:hover { box-shadow: none; }
.btn:active { transform: scale(0.97); }
.btn:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.4; cursor: default; transform: none; }
.btn--primary, .btn--primary:hover, .btn--primary:active { background: var(--fill-bg); color: var(--fill-text); }
.btn--secondary, .btn--secondary:hover, .btn--secondary:active { background: transparent; border: var(--btn-border); font-weight: var(--btn-weight-secondary); }
.btn--ghost, .btn--ghost:hover, .btn--ghost:active { background: none; padding: 0 6px; text-decoration: underline; text-underline-offset: 4px; font-weight: var(--btn-weight-secondary); }
.btn--block { width: 100%; }

/* v125 (Ònia 31/10, approved) · Base: a link typed in "New wish" while the shop page is read. A light passes across the
   text, from the letter's text colour to its placeholder colour and back (--ph is set on the pill, like "New wish").
   One line, cut with an ellipsis. Reduced motion: no movement, just dimmed. */
.ls-pending-link { cursor: default; }
.ls-wish-pill--thinking { max-width: 100%; overflow: hidden; }
.ls-thinking-text {
    display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    background: linear-gradient(90deg, var(--current-text) 0%, var(--current-text) 35%, color-mix(in srgb, var(--current-text) 30%, transparent) 50%, var(--current-text) 65%, var(--current-text) 100%);
    background-size: 250% 100%; background-position: 100% 0;
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
    animation: lsThinking 1.4s ease-in-out infinite;
}
/* v214 (Ònia 9/11): it did not show that the link was loading. Now a clear light sweeps across the whole pill, over the text (as well as the dimmed band in the text) */
.ls-wish-pill--thinking { position: relative; }
.ls-wish-pill--thinking::after {
    content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: linear-gradient(100deg, transparent 0%, transparent 30%, color-mix(in srgb, var(--current-text) 24%, transparent) 50%, transparent 70%, transparent 100%);
    background-size: 250% 100%; background-position: 100% 0;
    animation: lsThinking 1.4s ease-in-out infinite;
}
@keyframes lsThinking { from { background-position: 100% 0; } to { background-position: 0% 0; } }
@media (prefers-reduced-motion: reduce) {
    .ls-thinking-text { animation: none; background: none; -webkit-text-fill-color: currentColor; color: inherit; opacity: 0.6; }
    .ls-wish-pill--thinking::after { animation: none; background: none; }
}

/* ---- Tips (v129, Ònia 1/11: style C of «Northpost tooltips») ----
   A filled bubble in the screen's text colour, the screen's background colour as its text, an arrow and a ring
   around what it points at. Outside #app (redraws don't remove it), fixed, placed by placeTip() in actions.js.
   v228 (Ònia 16/11): it stays until she closes it with its ✕ (a 28 px circle, 44 px to tap) or taps what it points at. */
.np-tip {
    position: fixed; z-index: 9000; left: 0; top: 0; box-sizing: border-box; max-width: min(294px, calc(100vw - 32px)); /* v228: 32 px wider, the room the ✕ takes, so the text breaks as before */
    padding: 12px 48px 12px 16px; background: var(--ov-glass); color: var(--ov-ink);
    backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
    font-family: 'Manrope', sans-serif; pointer-events: auto; /* v228: a tap on the bubble does nothing (it doesn't reach what's under it) */
    animation: npTipIn 0.32s cubic-bezier(0.32, 0.72, 0, 1);
    /* v167 (Ònia 4/11): bubble and arrow are ONE shape: placeTip() cuts it with a mask (corners 16 px). Same glass and shadow as the alerts. */
}
.np-tip-text { margin: 0; font-size: var(--fs-body); font-weight: 500; line-height: 1.4; }
.np-tip-text strong { font-weight: 700; }
.np-tip-close { position: absolute; top: 9px; right: 0; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; background: none; color: inherit;
    display: flex; align-items: center; justify-content: center; cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent;
    box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; } /* top 9 px: the arrow's height when the bubble hangs below; no glass of its own (the global button has one) */
.np-tip-close:hover, .np-tip-close:active { background: none; box-shadow: none; }
.np-tip--above .np-tip-close { top: 0; }
.np-tip-close span { width: 28px; height: 28px; border-radius: 50%; background: var(--ov-chip); display: flex; align-items: center; justify-content: center; }
.np-tip-close:focus-visible span { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
/* the shadow is a separate box under the bubble (a mask would cut a box-shadow off), same as the alerts' */
.np-tip-shd {
    position: fixed; z-index: 8998; box-sizing: border-box; border-radius: 16px; pointer-events: none;
    box-shadow: 0 0 0 0.5px color-mix(in srgb, var(--ov-ink) 24%, transparent), 0 6px 16px rgba(0, 0, 0, 0.14);
    animation: npTipIn 0.32s cubic-bezier(0.32, 0.72, 0, 1);
}
.np-tip-ring {
    position: fixed; z-index: 8999; box-sizing: border-box; border-radius: 999px; pointer-events: none;
    border: 2px solid color-mix(in srgb, var(--ov-ink) 85%, transparent);
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--ov-ink) 18%, transparent);
    animation: npTipIn 0.32s cubic-bezier(0.32, 0.72, 0, 1);
}
@keyframes npTipIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .np-tip, .np-tip-ring, .np-tip-shd { animation: none; } }

/* v147 (Ònia 3/11, approved): the splash shows her illustrated envelope with "Northpost" on it, instead of the old
   envelope and the Lobster name; the claim is smaller and sits with the buttons. The h1 stays for screen readers
   (hidden; landscape phones, with no image, show it). */
.splash-art.splash-art--logo { width: min(320px, 84%); margin: 0 auto 28px; }
.splash-name--with-logo { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.splash--v2 .splash-hero .splash-claim { font-size: min(28px, 7.5vw); line-height: 1.2; letter-spacing: -0.3px; text-wrap: balance; }
.splash--v2 .splash-bottom { margin-top: 28px; }
@media (max-height: 720px) {
    .splash-art.splash-art--logo { width: min(250px, 66%); margin-bottom: 20px; }
    .splash--v2 .splash-hero .splash-claim { font-size: min(26px, 7vw); }
    .splash--v2 .splash-bottom { margin-top: 22px; }
}
@media (max-height: 600px) {
    .splash-art.splash-art--logo { width: min(190px, 52%); margin-bottom: 14px; }
    .splash--v2 .splash-hero .splash-claim { font-size: min(22px, 6.5vw); }
    .splash--v2 .splash-bottom { margin-top: 18px; }
}
@media (max-height: 540px) {
    .splash-name--with-logo { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }
    .splash--v2 .splash-hero .splash-claim { font-size: var(--fs-subtitle); }
    .splash--v2 .splash-bottom { margin-top: 14px; }
}

/* v150 (Ònia 3/11, Base): the wish detail's field labels (Price, Links, Notes) sit above their fields, like Links did */
label.it-label { display: block; }

/* v155: the privacy policy row is a link (opens the web page), drawn like the other Settings rows */
a.st-row { box-sizing: border-box; text-decoration: none; }
a.st-row:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; border-radius: 12px; }

/* v161 (Ònia 3/11): an alert whose action goes under the text, on the right (like Google's alerts) */
.glass-toast--stack { flex-wrap: wrap; row-gap: 2px; padding-bottom: 6px; }
.glass-toast--stack .glass-toast-body { flex: 1 1 calc(100% - 60px); }
.glass-toast--stack .glass-toast-action { margin: 0 -8px 0 auto; }

/* v166 (Ònia, Base): a link typed or shown (New wish, Links, notes) is the letter's text colour, never the system's purple/blue.
   iOS' own detector wraps text in <a x-apple-data-detectors>; the meta tag turns it off and this undoes it if it ever runs. */
a[x-apple-data-detectors], a[href^="x-apple-data-detectors:"], .ls-new-pill a, .links-group a:not(.links-open), .gd-notes a {
    color: inherit !important; -webkit-text-fill-color: currentColor; text-decoration: none !important; font: inherit !important;
}
.ls-new-pill, .links-input, .links-input:-webkit-autofill { color: var(--current-text, inherit); -webkit-text-fill-color: currentColor; }
.links-input { color: inherit; }
/* v166 (Ònia, Base): a wish that takes 2+ lines is a card (24px), not a full pill (set by markMultilinePills, render.js) */
.notes-pill.existing-pill.is-multi, .gl-pill.is-multi { border-radius: 24px !important; }

/* ---- v167 (Ònia 4/11): Settings, the centred header (proposal 3). The profile is a big stamp, the name and the email, centred, with no
   box; the groups are flat (no glass, no green squares); pressing a row lights it softly instead of squeezing it (no scale). ---- */
.st-profile, .st-profile:hover, .st-profile:active {
    flex-direction: column; text-align: center; gap: 26px; padding: 16px 0 0; /* v167: air between the stamp and the name */
    background: transparent; border: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
    transform: none; transition: opacity 0.2s ease;
}
.st-profile:active { opacity: 0.7; }
.st-profile .st-chevron { display: none; }
.st-avatar, .st-avatar:hover {
    position: relative; width: 84px; height: 106px; border-radius: 0; background: none; color: var(--theme-8-text); /* the lime accent (Ònia 4/11, option A: the stamp) */
    font-size: 26px; font-weight: 600; letter-spacing: 0;
}
.st-avatar svg { position: absolute; inset: 0; overflow: visible; }
.st-avatar-initials { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-initials); font-weight: 500; }
.st-profile-text { flex: none; text-align: center; }
.st-profile-email { display: block; margin-top: 8px; }
.st-profile-edit { display: block; margin-top: 18px; font-size: var(--fs-small); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; opacity: 0.8; }
.st-profile-name { font-size: 30px; font-weight: 400; letter-spacing: -0.4px; } /* Manrope regular, fine (Ònia 4/11: not Lobster) */
.auth-card.st-group { background: color-mix(in srgb, var(--on-surface) 6%, var(--surface)); border: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.st-row-icon { background: transparent; color: var(--on-surface); width: 24px; }
.st-row, .st-row:hover, .st-row:active { transform: none; transition: background 0.2s ease; }
.st-row:active { background: color-mix(in srgb, var(--on-surface) 10%, transparent); }
.st-aff { margin: 28px 0 0; padding: 0 8px; box-sizing: border-box; text-align: center; font-size: var(--fs-label); line-height: 1.4; opacity: 0.75; } /* Ònia 16/11: Amazon's affiliate sentence; v229: above the version, 12px, 75% (≈7.8:1 on --surface: AA) */
.st-aff + .st-version { margin-top: 12px; }
.sheet-text.aff-note { margin: 14px 0 0; } /* the affiliate line under the shops of «Where to buy» */
.st-version { margin: 28px 0 0; text-align: center; font: 400 13px 'Manrope', sans-serif; opacity: 0.55; } /* v167: «Version 0.167.0» */

/* ---- v168 (Ònia 4/11, accessibility): the keyboard focus is visible everywhere. One thin ring (2 px, 3 px away) in the screen's text colour
   (--current-text; in a sheet, an alert or a tip: its own text colour), only when the focus comes from the keyboard (:focus-visible), so a
   tap or a click shows nothing new. `:where` keeps this rule weak: any control with its own :focus-visible keeps its own ring. ---- */
:where(a[href], button, select, summary, [role="button"], [role="link"], [role="radio"], [role="switch"], [role="checkbox"], [tabindex]:not([tabindex="-1"])):focus-visible {
    outline: 2px solid var(--focus-ring, var(--current-text, var(--on-surface)));
    outline-offset: 3px;
}
.sheet, .glass-toast, .np-tip { --focus-ring: var(--ov-ink); }

/* ===== v169 (Ònia 4/11): My gifts ===== */
/* Settings card (compact): title + «2 of 7 bought», «5 to buy» in lime, thin bar */
.st-gifts { display: block; width: 100%; box-sizing: border-box; margin-top: 16px; padding: 16px 18px; border: none; border-radius: 24px; text-align: left; font: inherit; color: var(--on-surface); cursor: pointer;
    background: color-mix(in srgb, var(--on-surface) 6%, var(--surface)); }
.st-gifts:active { background: color-mix(in srgb, var(--on-surface) 10%, var(--surface)); }
.st-gifts-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.st-gifts-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.st-gifts-label { font-size: var(--fs-small); font-weight: 400; opacity: 0.75; }
.st-gifts-title { font-size: var(--fs-body); font-weight: 600; letter-spacing: -0.2px; }
.st-gifts-sub { font-size: var(--fs-small); font-weight: 400; opacity: 0.7; }
.st-gifts-left { display: flex; align-items: center; gap: 12px; flex: none; font-size: var(--fs-small); font-weight: 500; color: var(--theme-8-text); }
.st-gifts-left .st-chevron { color: var(--on-surface); }
.st-gifts-top { gap: 14px; }
.st-gifts-icon { flex: none; display: grid; place-content: center; width: 18px; }
.st-gifts-text { flex: 1; }
.st-gifts-bar { display: block; height: 6px; margin-top: 12px; border-radius: 3px; overflow: hidden; background: color-mix(in srgb, var(--on-surface) 14%, transparent); }
.st-gifts-bar i { display: block; height: 100%; border-radius: 3px; background: var(--theme-8-text); }
.st-gifts + .st-group { margin-top: 16px; }

/* The screen: a flat shopping list */
.mg-page .st-body > :first-child { margin-top: 8px; }
.mg-head { margin: 28px 4px 8px; font-size: var(--fs-small); font-weight: 600; letter-spacing: 0.2px; opacity: 0.7; }
.mg-empty { margin: 24px 4px; font-size: var(--fs-body); line-height: 1.4; opacity: 0.75; }
.mg-list { display: flex; flex-direction: column; }
.mg-row { display: flex; align-items: center; gap: 14px; }
.mg-row.sortable-chosen { background: color-mix(in srgb, var(--on-surface) 8%, var(--surface)); }
.mg-check { flex: none; display: grid; place-content: center; width: 26px; height: 26px; padding: 0; margin: 0; border-radius: 50%; border: 1.5px solid currentColor; background: transparent; color: var(--on-surface); cursor: pointer; }
.mg-row.is-bought .mg-check { background: var(--theme-8-text); border-color: var(--theme-8-text); color: var(--surface); }
.mg-main { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 6px 0; border: none; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.mg-name { font-size: var(--fs-body); font-weight: 500; overflow-wrap: anywhere; }
.mg-for { font-size: var(--fs-small); font-weight: 400; opacity: 0.7; overflow-wrap: anywhere; }
.mg-price { flex: none; font-size: var(--fs-small); font-weight: 400; opacity: 0.7; }
.mg-row.is-bought .mg-name { text-decoration: line-through; opacity: 0.7; } /* AA (v166): never below 0.7 */
.mg-row.is-bought .mg-for, .mg-row.is-bought .mg-price { opacity: 0.7; }
.mg-add { display: flex; align-items: center; gap: 12px; min-height: 52px; margin: 8px 4px 0; padding: 0; border: none; background: transparent; color: var(--on-surface); font: inherit; font-size: var(--fs-body); font-weight: 400; cursor: pointer; }
.mg-sort { display: flex; flex-direction: column; margin-top: 8px; }
.mg-sort-opt { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 4px; border: none; background: transparent; color: inherit; font: inherit; font-size: var(--fs-body); font-weight: 400; text-align: left; cursor: pointer; }
/* Add / edit a gift: the wish form's pill fields, in the sheet's colours. The placeholder is clearly paler than the text but stays AA (v166) */
.mg-fields { text-align: left; --ph: color-mix(in srgb, var(--ov-ink) 68%, transparent); }
.mg-fields .links-label { margin: 14px 0 10px 4px; }
.mg-input { width: 100%; box-sizing: border-box; padding: 18px 24px; border: 1px solid color-mix(in srgb, var(--ov-ink) 28%, transparent); border-radius: 50px; outline: none; box-shadow: none;
    background: color-mix(in srgb, var(--ov-ink) 9%, transparent); color: var(--ov-ink); font-family: var(--font-main); font-size: var(--fs-body); backdrop-filter: none; -webkit-backdrop-filter: none; }
.mg-input::placeholder { color: var(--ph); opacity: 1; }
.mg-input:focus { border-color: var(--ov-ink); }
.mg-fields .price-cur { color: var(--ov-ink); }
.mg-check, .mg-main, .mg-add, .mg-sort-opt, .st-gifts, .mg-inline-add { box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; } /* flat: the global button glass is for the glass buttons only */
.mg-main:hover, .mg-add:hover, .mg-sort-opt:hover, .mg-check:hover, .mg-inline-add:hover { box-shadow: none; background: transparent; }
.mg-row.is-bought .mg-check:hover { background: var(--theme-8-text); }
.mg-main:active, .mg-add:active, .mg-sort-opt:active, .mg-check:active, .mg-inline-add:active { transform: none; background: transparent; }
.st-gifts:hover { box-shadow: none; background: color-mix(in srgb, var(--on-surface) 6%, var(--surface)); }
.st-gifts:active { transform: none; }
/* v214: no left padding: it moved the icon + text 2 px off the centre */
/* v169 (Ònia 4/11, a trial): the icons of the Profile rows in lime, like the avatar */
.st-row-icon, .st-gifts-icon { color: var(--theme-8-text); }
/* My gifts: drag handle (the pattern of other apps: a grip at the end of the row) and the person blocks */
.mg-grip { flex: none; display: grid; place-content: center; width: 32px; height: 40px; margin-right: -6px; color: var(--on-surface); opacity: 0.6; cursor: grab; touch-action: none; }
.mg-person { margin-top: 24px; } /* v214: 4 px more between the blocks (was 20) */
/* v174 */
.mg-todo-empty { padding: 4px 4px 16px; }
.mg-todo-empty-text { margin: 0; font-size: var(--fs-body); line-height: 1.55; opacity: 0.7; }
.mg-inline-add, .mg-inline-add:hover, .mg-inline-add:active, .mg-inline-add:focus { background: none; border: none; border-radius: 0; padding: 0; min-height: 0; width: auto; display: inline; font: inherit; font-size: var(--fs-body); color: var(--on-surface); text-decoration: underline; cursor: pointer; }
.mg-person-head { display: flex; align-items: center; justify-content: space-between; margin: 0 4px; min-height: 40px; margin-bottom: 6px; }
.mg-person-name { font-size: var(--fs-body); font-weight: 600; letter-spacing: -0.2px; overflow-wrap: anywhere; }
.mg-person.sortable-chosen .mg-person-head { opacity: 0.8; }
.mg-hint { margin: 6px 4px 0; font-size: var(--fs-small); opacity: 0.7; }

/* v169 (Ònia 4/11): the card is set apart from the profile; its icon sits on the title's line; «Add a gift» centred */
.st-gifts { margin-top: 44px; }
.st-gifts-top { align-items: flex-start; }
.st-gifts-icon, .st-gifts-left { display: flex; align-items: center; min-height: calc(var(--fs-body) * 1.3); }
.mg-add { justify-content: center; width: calc(100% - 8px); margin: 12px 4px 0; }
.mg-empty-state { margin-top: 24px; }
/* v169 (Ònia 4/11): the headings «To buy» / «Bought» look like the friends' letter headings («You're gifting», «More gifts») */
.mg-head { margin: 32px 4px 12px; font-family: 'Sometype Mono', monospace; font-size: var(--fs-small); font-weight: 400; letter-spacing: 1px; line-height: 1.4; opacity: 0.8; }
/* v169 (Ònia 4/11): the gift pills have 24px corners (a pill with two lines is not a full capsule) */
.mg-arrow { flex: none; display: flex; padding: 0; margin: 0; border: none; background: transparent; color: inherit; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; cursor: pointer; }
.mg-arrow:hover, .mg-arrow:active { background: transparent; box-shadow: none; transform: none; }
/* v169: the gift is the letters' pill (gl-pill) with a variant: full width, two lines, 24px corners, no pointer on the whole pill */
.gl-pill.gl-gift { display: flex; width: 100%; min-height: 48px; padding: 4px 8px 4px 14px; gap: 12px; border-radius: 24px; cursor: default; color: var(--on-surface); } /* v177: una mica més petit */
.gl-pill.gl-gift:active { transform: none; }
.mg-page .gl-pill .gl-name { font-weight: 500; }
.mg-page .mg-list { gap: 16px; } /* v214 (Ònia 9/11): 4 px more between the gifts (was 12) */
.mg-arrow { flex: none; display: flex; padding: 0; margin: 0; border: none; background: transparent; color: inherit; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; cursor: pointer; }
.mg-arrow:hover, .mg-arrow:active { background: transparent; box-shadow: none; transform: none; }
.gl-pill.gl-gift.sortable-chosen { background: var(--glass-fill); }
/* the reorder handle sits outside the pill */
.mg-row { display: flex; align-items: center; gap: 4px; }
.gl-pill.gl-gift { flex: 1 1 auto; width: auto; min-width: 0; }
.mg-grip { margin-right: 0; width: 36px; }

/* v169 (Ònia 4/11): the dashboard on top of My gifts: the progress card (like the one in the profile) and four figures */
.mg-dash { margin: 4px 0 8px; }
.mg-card { padding: 16px 18px; border-radius: 24px; background: color-mix(in srgb, var(--on-surface) 6%, var(--surface)); }
.mg-card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.mg-card-title { font-size: var(--fs-body); font-weight: 600; letter-spacing: -0.2px; }
.mg-card-left { font-size: var(--fs-small); font-weight: 400; opacity: 0.75; }
.mg-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.mg-tile { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: 20px; background: color-mix(in srgb, var(--on-surface) 6%, var(--surface)); min-width: 0; }
.mg-tile-k { font-family: 'Sometype Mono', monospace; font-size: var(--fs-small); letter-spacing: 1px; font-weight: 400; opacity: 0.8; line-height: 1.3; }
.mg-tile-v { font-size: var(--fs-title); font-weight: 500; letter-spacing: -0.5px; line-height: 1.1; overflow-wrap: anywhere; }
.mg-tile--accent .mg-tile-v { color: var(--theme-8-text); }
.mg-dash-note { margin: 10px 4px 0; font-size: var(--fs-small); opacity: 0.75; }

/* My gifts empty state: two actions (main + secondary in regular weight) */
/* v203 (Ònia 8/11): two buttons one above the other are as wide as the wider one */
.mg-empty-actions { display: grid; grid-template-columns: max-content; justify-content: center; max-width: 100%; gap: 12px; margin-top: 24px; }
.mg-empty-actions > button { width: 100%; justify-content: center; text-align: center; box-sizing: border-box; }
.mg-btn2, .mg-btn2:hover, .mg-btn2:active { background: transparent; color: var(--on-surface); padding: 14px 32px; border-radius: 30px; font-weight: var(--btn-weight-secondary, 400); font-size: var(--fs-body); border: 1px solid currentColor; font-family: 'Manrope', sans-serif; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; cursor: pointer; }
.mg-empty-actions .hm-start, .mg-empty-actions .hm-start:hover, .mg-empty-actions .hm-start:active { background: var(--on-surface); color: var(--surface); box-shadow: none; } /* the main button is filled in the page's text colour (the home's one is dark green, lost on this dark page) */

/* the money block sits in the Profile, above the My gifts card */
.mg-money { margin-top: 44px; }
.mg-money + .st-gifts { margin-top: 10px; }
.mg-page .st-body > :first-child { margin-top: 8px; }
.mg-money .mg-dash-note { margin-bottom: 14px; }

/* v169 (Ònia 4/11): the Profile card: no icon, a bigger title; the gift pill's arrow has more room; the pills can be dragged without a handle */
.st-gifts-title { font-size: var(--fs-title); font-weight: 600; letter-spacing: -0.4px; line-height: 1.2; }
.st-gifts-top { gap: 12px; }
.st-gifts-text { gap: 6px; }
.st-gifts-left, .st-gifts-text { min-height: 0; }
.gl-pill.gl-gift { padding: 6px 14px 6px 14px; }
.mg-row, .mg-person-head { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.mg-row.sortable-chosen { opacity: 0.9; }
/* v169 (Ònia 4/11): the gift pill looks like the letters' pill: just the outline, no fill and no glow */
.gl-pill.gl-gift.gl-free { background: transparent; box-shadow: var(--glass-ring); }
.gl-pill.gl-gift.sortable-chosen { background: transparent; }
/* v169 (Ònia 4/11): the gift pill's fill: a little lighter than the page, less than the glass fill it had */
.gl-pill.gl-gift.gl-free, .gl-pill.gl-gift.sortable-chosen { background: color-mix(in srgb, var(--on-surface) 4%, transparent); }

/* the Profile card: text and bar on the left, the arrow centred vertically on the card */
.st-gifts { display: flex; align-items: center; gap: 12px; }
.st-gifts-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.st-gifts-main .st-gifts-bar { margin-top: 14px; }
.st-gifts-left { align-self: center; min-height: 0; }

/* the tip's ring hugs a person's name */
.mg-person-name { display: inline-block; padding: 2px 8px; margin-left: -8px; border-radius: 12px; }

/* v171: the app lock screen (js/lock.js) and the note under its switch */
.np-lock { position: fixed; inset: 0; z-index: 10050; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px 28px; box-sizing: border-box; background: var(--surface); color: var(--on-surface); }
.np-lock-art { display: block; width: min(220px, 70%); height: auto; margin-bottom: 28px; pointer-events: none; user-select: none; }
.np-lock-title { margin: 0 0 12px; font-size: var(--fs-title); font-weight: 400; letter-spacing: -0.3px; }
.np-lock-text { margin: 0 0 28px; max-width: 300px; font-size: var(--fs-body); line-height: 1.45; opacity: 0.75; }
.np-lock-actions { display: grid; grid-template-columns: max-content; justify-content: center; max-width: 100%; gap: 12px; } /* v212: the buttons, one over the other, the same width (v215: only one left) */
.np-lock-actions > button { width: 100%; justify-content: center; text-align: center; box-sizing: border-box; }
.np-lock .hm-start, .np-lock .hm-start:hover, .np-lock .hm-start:active { background: var(--on-surface); color: var(--surface); box-shadow: none; }
.st-lock-note { margin: 10px 8px 0; font-size: var(--fs-small); line-height: 1.4; opacity: 0.75; }

/* v172 (review): the lock screen scrolls when it doesn't fit (sideways, big text) and drops the picture on short screens, so the
   buttons are always reachable; the «bought» check has a 44 px target; the pill's text button has a rounded focus ring */
.np-lock { overflow-y: auto; justify-content: safe center; overscroll-behavior: contain; }
@media (max-height: 600px) { .np-lock-art { display: none; } }
.mg-check { position: relative; }
.mg-check::after { content: ""; position: absolute; inset: -9px; }
.mg-main:focus-visible { border-radius: 16px; outline-offset: -2px; }

/* v172 (Ònia 5/11): adding a gift by hand copies the letters' wish form: the name is the big left-aligned title (with its placeholder) */
.sheet--content .sheet-title:has(.visually-hidden) { margin: 0; }
.mg-title.it-name { color: var(--ov-ink); text-align: left; margin: 6px 0 4px; font-size: var(--fs-display); letter-spacing: -0.5px; }
.mg-title.it-name::placeholder { color: var(--ph); opacity: 1; }

/* v172 (QA): a wish with one very long word (no spaces) stays inside the screen, the arrow too */
.ls-wish-link { max-width: 100%; min-width: 0; }
.ls-wish-pill { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }

/* v173 (N29): in the app, no web long-press (magnifier, selection, «Copy», link preview) on the interface; fields and notes still select */
html.is-native body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
html.is-native a { -webkit-touch-callout: none; }
html.is-native input, html.is-native textarea, html.is-native [contenteditable="true"], html.is-native .gd-notes, html.is-native .gd-notes * { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }

/* v201 (Ònia 8/11): swipe on a gift in the Gift Hub → the trash button shows up behind the row, like the home's cards (.hm-card-actions / .hm-card-delete) */
.mg-row { position: relative; isolation: isolate; }
.mg-row .gl-pill { position: relative; z-index: 1; }
.mg-row-actions {
    position: absolute; top: 0; bottom: 0; left: 0; right: 0; z-index: 0;
    display: flex; align-items: center; justify-content: flex-end; padding-right: 12px;
    background: var(--glass-fill); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 50px; border: 1px solid var(--glass-rim); box-shadow: var(--glass-shadow); /* the same pill shape as .gl-pill */
    opacity: 0; transition: opacity 0.2s; pointer-events: none;
}
.mg-row.revealed .mg-row-actions { pointer-events: auto; }
.mg-row-delete, .mg-row-delete:hover, .mg-row-delete:active {
    color: var(--danger); border-radius: 50%; width: 40px; height: 40px; padding: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.8); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 0;
}

/* v204 (Ònia 8/11): the free gift pill has the same glass as the letters' free pill (.gl-free): glass fill + glass shadow */
.gl-pill.gl-gift.gl-free, .gl-pill.gl-gift.sortable-chosen { background: var(--glass-fill); box-shadow: var(--glass-shadow); }

/* v205 (Ònia 8/11): the gift pill's outline is the letters' one: same capsule shape (radius 50px, it was 24px), 1px line in the text colour */
.gl-pill.gl-gift { border-radius: 50px; }

/* v206 (Ònia 8/11): the free gift pill's outline is the one of the letters' own pills (.notes-pill): the 1px border is transparent (--glass-rim)
   and what shows is the fine 0.5px glass ring, with the glass blur. Before: a 1px solid line in the text colour (the guest view's pill). */
.gl-pill.gl-gift.gl-free, .gl-pill.gl-gift.sortable-chosen { border: 1px solid var(--glass-rim); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); }

/* v207 (Ònia 8/11): the layer behind the row (where the trash button shows up) has no outline nor stroke: no border, no glass ring, no shadow.
   A pill with two lines («For …» under the name) has 24px corners (the layer too); one line stays a capsule (50px). */
.mg-row-actions { border: 0; box-shadow: none; }
.mg-row.mg-two .gl-pill.gl-gift, .mg-row.mg-two .mg-row-actions { border-radius: 24px; }

/* v208 (Ònia 8/11): the layer behind the row (where the trash button shows up) has no fill at all: only the button is seen */
.mg-row-actions { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }

/* v209 (Ònia 8/11): the big text of the Gift Hub access in the Profile («1 of 2 bought») is as fine as the profile name (regular) and a bit smaller (24 → 20px) */
.st-gifts-title { font-size: var(--fs-subtitle); font-weight: 400; letter-spacing: -0.4px; }

/* v212 (Ònia 8/11): the app feels native (everything under html.native; the published web stays as it was).
   · A screen whose content fits does not scroll (the body's padding under the page — 40 px, 120 px on the home — was added to the 100vh: every page was too tall).
   · The home's top bar, logo and tabs are one fixed header; the cards go under it with the blur of the iPhone's navigation bar.
   · The navigation bar of Profile, Feedback and the other settings pages (and the Gift Hub) stays when scrolling, with the same blur. */
.hm-chrome { display: contents; }
html.native body { box-sizing: border-box; min-height: 100dvh; } /* the padding under the page counts inside the screen height */
html.native body:has(.hm-stack) { padding-bottom: 0 !important; } /* the home sets 120 px by script on top of the screen height (the stack has its own 100 px at the bottom) */
html.native .hm-chrome { display: block; position: sticky; top: 0; z-index: 1000; --nav-tint: var(--bg-primary); }
html.native .hm-header { padding-bottom: 12px; }
html.native .hm-tabs-wrap { padding-bottom: 12px; }
html.native .hm-stack { padding-top: 24px; } /* the first card is tilted -2°: its top-right corner rose under the fixed header and looked cut; now there is room */
/* v212 (Ònia 9/11): in the app the system clock and battery must not sit over any screen's top buttons: the screens that still had a 20 px top
   padding (a friend's gift page, the «gone» screens, a wish's edit page) start below the status bar like the others (64 px, or the real inset if bigger). */
html.native .gs-wish-nav { padding-top: max(64px, env(safe-area-inset-top)); }
html.native .gs-missing { padding-top: max(64px, env(safe-area-inset-top)); }
/* v212 (N33): room under the page for the keyboard, so the field being typed in can scroll above it (v224: at the end of the scroller, see below) */
html.native .sheet { max-height: calc(100dvh - max(64px, env(safe-area-inset-top)) - 12px - env(safe-area-inset-bottom) - var(--kb, 0px)); } /* a tall sheet stops below the status bar */
/* v222 (Ònia 12/11): web and app alike — the navigation bar of Profile, the Gift Hub, a wish's edit page and a friend's wish stays when scrolling */
.view-nav.st-header { position: sticky; top: 0; z-index: 900; --nav-tint: var(--bg-primary); }
.it-page { padding-top: 0; }
html.native .it-page { padding-top: 0; }
.it-nav {
    position: sticky; top: 0; z-index: 900;
    margin: 0 -20px 10px; padding: max(20px, env(safe-area-inset-top)) 20px 20px;
    --nav-tint: var(--nav-bg, var(--bg-primary));
}
html.native .it-nav { padding-top: max(64px, env(safe-area-inset-top)); }
.gs-wish-nav { position: sticky; top: 0; z-index: 900; --nav-tint: var(--current-bg); }
.ls-nav, .gs-nav { --nav-tint: var(--current-bg); }

/* v222 (Ònia 12/11): the blur under every navigation bar fades out like Apple's (no hard edge between the bar and the content): the bar's own
   background is a layer a bit taller than the bar (28 px), blurred and tinted, and a mask makes it fade to nothing over that last stretch. */
:is(html.native .hm-chrome, .view-nav.st-header, .it-nav, .gs-wish-nav, .ls-nav, .gs-nav) { isolation: isolate; }
:is(html.native .hm-chrome, .view-nav.st-header, .it-nav, .gs-wish-nav, .ls-nav, .gs-nav)::before {
    content: ''; position: absolute; z-index: -1; left: 0; right: 0; top: 0; bottom: -28px; pointer-events: none;
    background: linear-gradient(to bottom, color-mix(in srgb, var(--nav-tint) 55%, transparent) calc(100% - 28px), transparent);
    backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
    -webkit-mask-image: linear-gradient(to bottom, black calc(100% - 28px), transparent);
    mask-image: linear-gradient(to bottom, black calc(100% - 28px), transparent);
}

/* Ònia 19/11 (home): a progressive blur under the header, like Apple's. Two layers instead of one: ::before is the strong blur (24 px) and fades out
   over 28 px; ::after is a light blur (6 px) that goes on for 64 px, so the blur doesn't stop at once but thins out. Both masks are eased (smoothstep)
   and the tint under them fades the same way. The selector has 16 px of air before the fade starts. */
html.native .hm-tabs-wrap { padding-bottom: 16px; }
html.native .hm-chrome::before, html.native .hm-chrome::after {
    content: ''; position: absolute; z-index: -1; left: 0; right: 0; top: 0; pointer-events: none;
}
html.native .hm-chrome::before {
    bottom: -28px;
    background: linear-gradient(to bottom, color-mix(in srgb, var(--nav-tint) 66%, transparent) calc(100% - 28px), color-mix(in srgb, var(--nav-tint) 40%, transparent) calc(100% - 14px), transparent);
    backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
    -webkit-mask-image: linear-gradient(to bottom, black calc(100% - 28px), rgba(0,0,0,.93) calc(100% - 24px), rgba(0,0,0,.78) calc(100% - 20px), rgba(0,0,0,.58) calc(100% - 16px), rgba(0,0,0,.37) calc(100% - 12px), rgba(0,0,0,.19) calc(100% - 8px), rgba(0,0,0,.06) calc(100% - 4px), transparent);
    mask-image: linear-gradient(to bottom, black calc(100% - 28px), rgba(0,0,0,.93) calc(100% - 24px), rgba(0,0,0,.78) calc(100% - 20px), rgba(0,0,0,.58) calc(100% - 16px), rgba(0,0,0,.37) calc(100% - 12px), rgba(0,0,0,.19) calc(100% - 8px), rgba(0,0,0,.06) calc(100% - 4px), transparent);
}
html.native .hm-chrome::after {
    bottom: -64px; z-index: -2;
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    -webkit-mask-image: linear-gradient(to bottom, black calc(100% - 64px), rgba(0,0,0,.95) calc(100% - 56px), rgba(0,0,0,.8) calc(100% - 46px), rgba(0,0,0,.58) calc(100% - 36px), rgba(0,0,0,.34) calc(100% - 26px), rgba(0,0,0,.15) calc(100% - 16px), rgba(0,0,0,.04) calc(100% - 8px), transparent);
    mask-image: linear-gradient(to bottom, black calc(100% - 64px), rgba(0,0,0,.95) calc(100% - 56px), rgba(0,0,0,.8) calc(100% - 46px), rgba(0,0,0,.58) calc(100% - 36px), rgba(0,0,0,.34) calc(100% - 26px), rgba(0,0,0,.15) calc(100% - 16px), rgba(0,0,0,.04) calc(100% - 8px), transparent);
}

/* v222 (Ònia 12/11): the home's selector: one pill that glides under the option (placeTabPill in home.js) */
.hm-tabs { position: relative; }
.hm-tab-pill { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 40px; background: var(--btn-bg); box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.42s cubic-bezier(0.32, 0.72, 0, 1), width 0.42s cubic-bezier(0.32, 0.72, 0, 1); will-change: transform; }
.hm-tab { position: relative; z-index: 1; padding: 8px 24px; border-radius: 40px; background: transparent; border: none; cursor: pointer; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none;
    font-family: 'Manrope', sans-serif; font-size: var(--fs-small); font-weight: 500; color: var(--on-surface); opacity: 0.6; transition: color 0.3s ease, opacity 0.3s ease; }
.hm-tab:hover, .hm-tab:active { background: transparent; box-shadow: none; transform: none; }
.hm-tab.is-on { color: var(--btn-text); font-weight: 600; opacity: 1; }
.hm-tabs.is-still .hm-tab-pill, .hm-tabs.is-still .hm-tab { transition: none; }
@media (prefers-reduced-motion: reduce) { .hm-tab-pill, .hm-tab { transition: none; } }

/* v212 (Ònia 8/11): the home's wordmark is the new logo (img/Northpost-logo.svg, 203×70, the splash's one), on the web and in the app: painted in
   the text colour with a mask; the text stays for screen readers. (It was the text «Northpost» in Lobster.) */
.hm-wordmark {
    width: 126px; height: 48px;
    background: var(--splash-wordmark);
    -webkit-mask: url(/assets/Northpost-logo-CPJ7gbOi.svg) left center / contain no-repeat;
    mask: url(/assets/Northpost-logo-CPJ7gbOi.svg) left center / contain no-repeat;
    font-size: 0; color: transparent; overflow: hidden;
}

/* v212 (Ònia 8/11): the lock screen without the sentence under the title: the title keeps the space the sentence had */
.np-lock-title--solo { margin-bottom: 28px; }

/* v212: the lock screen takes the focus itself (no ring around it); the button's own ring only shows when it is reached with Tab */
#np-lock:focus, #np-lock:focus-visible { outline: none; }

/* v212 (N38, Ònia 9/11): iPhone text size. --ts is the system size (1 = 100 %, up to 1.5), set by js/native.js; the web never has it (stays 1). */
html.native {
    --fs-display: calc(36px * var(--ts, 1));
    --fs-title: calc(24px * var(--ts, 1));
    --fs-subtitle: calc(20px * var(--ts, 1));
    --fs-body: calc(16px * var(--ts, 1));
    --fs-small: calc(14px * var(--ts, 1));
    --fs-label: calc(12px * var(--ts, 1));
}
html.native .st-profile-name { font-size: calc(30px * var(--ts, 1)); }
html.native .splash-name { font-size: calc(22px * var(--ts, 1)); }

/* v214 (Ònia 9/11): while the first link's price is being looked up, the price field «thinks» (the same light as the link in «New wish») */
.it-price-field.is-loading::after {
    content: ''; position: absolute; inset: 0; border-radius: 50px; pointer-events: none;
    background: linear-gradient(100deg, transparent 0%, transparent 30%, color-mix(in srgb, var(--current-text) 24%, transparent) 50%, transparent 70%, transparent 100%);
    background-size: 250% 100%; background-position: 100% 0; animation: lsThinking 1.4s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .it-price-field.is-loading::after { animation: none; background: color-mix(in srgb, var(--current-text) 10%, transparent); } }

/* v222 (Ònia 12/11): the trash button behind a swiped wish of my own letter (the same button as the Gift Hub's rows) */
.ls-wish-row { isolation: isolate; }
.ls-wish-link { z-index: 1; }
.ls-wish-actions { position: absolute; inset: 0; z-index: 0; display: flex; align-items: center; justify-content: flex-end; padding-right: 12px; opacity: 0; transition: opacity 0.2s; pointer-events: none; }
.ls-wish-row.revealed .ls-wish-actions { pointer-events: auto; }
/* v222 (Ònia 12/11): a swiped wish slides under the edge of the letter's panel: what goes past the rectangle is cut (clip, not hidden: nothing scrolls, the vertical shadows stay) */
.list-panel { overflow-x: clip; }

/* v223 (Ònia 14/11): add / edit a gift of my own = the wish page in the Gift Hub's colours (GiftEditView, gifts.js). The fields are the sheet's pills (.mg-input), so the contrast is the same as before (v166) */
.gt-page { --ov-ink: var(--on-surface); --ph: color-mix(in srgb, var(--on-surface) 68%, transparent); --ph-lg: var(--ph); text-align: left; }
.gt-page .it-name { color: var(--on-surface); }
.gt-page .links-group { background: color-mix(in srgb, var(--on-surface) 9%, transparent); border-color: color-mix(in srgb, var(--on-surface) 28%, transparent); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.gt-page .price-cur { color: var(--on-surface); }
/* v223 (Ònia 14/11): «For» suggests the names already used: a list under the field, in the page's colours (like the pills' fields), over the fields below */
.gt-who { position: relative; }
.gt-suggest { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 8px); display: flex; flex-direction: column; padding: 6px; border-radius: 24px;
    background: var(--surface); border: 1px solid color-mix(in srgb, var(--on-surface) 28%, transparent); box-shadow: none; }
.gt-suggest[hidden] { display: none; }
.gt-sug, .gt-sug:hover, .gt-sug:active { display: block; width: 100%; min-height: 48px; padding: 0 18px; border: none; border-radius: 18px; background: transparent; color: var(--on-surface); text-align: left;
    font-family: var(--font-main); font-size: var(--fs-body); font-weight: 400; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; cursor: pointer; }
.gt-sug:hover, .gt-sug:focus-visible { background: color-mix(in srgb, var(--on-surface) 9%, transparent); }

/* v223 (Ònia 14/11): received letters: «date · author» on one line; the date and the «New» tag keep their size, the name is shortened with … when it doesn't fit */
.hm-card-date--by { display: flex; align-items: baseline; min-width: 0; white-space: nowrap; }
.hm-card-date--by .hm-card-day { flex: none; }
.hm-card-date--by .hm-card-by { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: pre; }
.hm-card-date--by .hm-card-new { flex: none; }
.hm-card-wrap, .hm-card { min-width: 0; } /* a long author name must shorten (…), never widen the card */
.hm-card-date--by { max-width: 100%; }

/* v223 (Ònia 14/11): «Add a surprise»: a row under the lists with the shape of a gift's pill, outlined and without fill */
.mg-add-row, .mg-add-row:hover, .mg-add-row:active { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; box-sizing: border-box; margin: 16px 0 0; padding: 6px 14px; border-radius: 24px;
    border: 1px solid color-mix(in srgb, var(--on-surface) 28%, transparent); background: transparent; color: var(--on-surface); text-align: left; font: inherit; line-height: 1.5; cursor: pointer; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; transform: none; }
.mg-add-plus { flex: none; display: grid; place-content: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid currentColor; }
.mg-add-text { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 6px 0; } /* the same padding as a gift's pill (.gl-gift) and its text (.mg-main) */

.mg-add-name { font-size: var(--fs-body); font-weight: 500; overflow-wrap: anywhere; }
.mg-add-sub { font-size: var(--fs-small); font-weight: 400; opacity: 0.7; overflow-wrap: anywhere; }

/* v223 (Ònia 14/11): room under every fixed bar. The bar's blur fades out over the 28 px under it (see above), so the first thing on a screen must start
   below that band (32 px from the bar's bottom), or it looks blurred at rest. (Before: 8 to 18 px on most screens.) */
html.native .hm-stack { padding-top: 38px; }
.st-body > :first-child, .st-body > .st-profile:first-child:is(:hover, :active) { margin-top: 32px; }
.mg-page .st-body > :first-child { margin-top: 32px; }
.it-nav { margin-bottom: 32px; }
.gs-wish-nav { margin-bottom: 20px; }

/* v224 (Ònia 14/11): only the CONTENT scrolls and bounces, like a native screen: the page doesn't scroll, the bar at the top stays still, and everything under it
   is .scroll-body (render.js: wrapScrollBody). Screens without a bar (sign-in, onboarding…) scroll in #app itself. The web keeps the page scroll. */
html.native, html.native body { height: 100%; overflow: hidden; }
html.native #app { position: fixed; inset: 0; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; }
html.native #app > .container.has-bar { height: 100dvh; min-height: 0; overflow: hidden; }
html.native .has-bar > :is(.it-nav, .view-nav, .list-nav, .gs-nav, .gs-wish-nav, .hm-chrome) { position: absolute; top: 0; left: var(--sb-pl, 0px); right: var(--sb-pr, 0px); z-index: 900; }
html.native .has-bar > .scroll-body { position: absolute; inset: 0; box-sizing: border-box; padding-top: var(--bar-h, 128px); overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; scroll-padding-top: var(--bar-h, 128px); scroll-padding-bottom: 180px; }
html.native .has-bar > .scroll-body--flex { display: flex; flex-direction: column; }
html.native .scroll-body::after { content: ''; display: block; flex: none; height: env(safe-area-inset-bottom); }
/* v229: the buttons' bar is pinned to the bottom of the screen, outside the scroller (render.js: wrapScrollBody); the scroller leaves room for it; it hides while the keyboard is up */
html.native .has-bottom-bar > .gd-bar { position: absolute; left: 0; right: 0; bottom: 0; margin: 0 auto; }
html.native .has-bottom-bar > .scroll-body::after { height: var(--gb-h, 0px); }
html.native.kb-open .has-bottom-bar > .gd-bar { display: none; }
html.native.kb-open .scroll-body::after { height: calc(var(--kb, 0px) + 24px); } /* room under the content for the keyboard */
html.native.kb-open #app:not(:has(> .has-bar))::after { content: ''; display: block; height: calc(var(--kb, 0px) + 24px); }
html.native .has-bar > .it-nav, html.native .has-bar > .gs-wish-nav { margin-bottom: 0; } /* the room under these bars (v223: 32 / 20 px) is the scroller's own top padding, so the content scrolls under the bar's blur */
html.native .it-page.has-bar > .scroll-body { padding-top: calc(var(--bar-h, 128px) + 32px); }
html.native .gd-page.has-bar > .scroll-body { padding-top: calc(var(--bar-h, 128px) + 20px); }


/* v226 (Ònia 15/11): occasion tags in the Gift Hub (tabs on top, tags under the name) and on the gift's edit page (picker). Colours: tokens only. */
.mg-tabs { display: flex; gap: 8px; overflow-x: auto; margin: -8px -20px -4px; padding: 8px 20px 14px; scrollbar-width: none; } /* pills at the top; they scroll sideways when there are many occasions */
.mg-tabs::-webkit-scrollbar { display: none; }
.gt-tag { flex: none; min-height: 36px; padding: 0 14px; display: inline-flex; align-items: center; gap: 6px; border-radius: 50px; border: 1px solid color-mix(in srgb, var(--on-surface) 28%, transparent);
    background: transparent; color: var(--on-surface); font: inherit; font-size: var(--fs-small); font-weight: 500; cursor: pointer; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.mg-tabs .gt-tag[aria-pressed="true"] { font-weight: 700; } /* the chosen pill in bold */
.mg-n { margin-left: 2px; opacity: .8; font-variant-numeric: tabular-nums; }
.gt-tag:hover { background: transparent; box-shadow: none; }
.gt-tag[aria-pressed="true"], .gt-tag[aria-pressed="true"]:hover { background: var(--on-surface); color: var(--surface); border-color: var(--on-surface); }
.mg-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.mg-tag { padding: 2px 8px; border-radius: 50px; border: 1px solid color-mix(in srgb, var(--theme-8-text) 55%, transparent); color: var(--theme-8-text); font-family: 'Sometype Mono', monospace; font-size: var(--fs-label); line-height: 1.4; }
.gt-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.gt-tag { min-height: 40px; padding: 0 16px; font-size: var(--fs-body); }
.gt-tag-add { border-style: dashed; font-weight: 400; }
.gt-newtag { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.gt-newtag .mg-input { padding: 10px 18px; }
.gt-newtag-ok { flex: none; min-height: 44px; padding: 0 20px; border-radius: 50px; border: 1.5px solid var(--on-surface); background: transparent; color: var(--on-surface); font: inherit; font-size: var(--fs-body); font-weight: 400; cursor: pointer; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.gt-newtag-ok:hover { background: transparent; box-shadow: none; }
.gt-newtag[hidden] { display: none; }
.gt-hint { margin: 8px 4px 0; font-size: var(--fs-small); color: var(--on-surface); }
.gt-hint[hidden] { display: none; }
.gt-tag.is-match { border-color: var(--on-surface); outline: 1px solid var(--on-surface); } /* the existing tag you are typing */
/* v226 (Ònia 15/11): more air in the Gift Hub pill (it was all stuck together): between the check, the text and the price, and between name, «For» and tags */
.gl-pill.gl-gift { padding: 10px 16px 10px 16px; gap: 16px; }
.mg-main { gap: 4px; padding: 4px 0; }
.mg-tags { gap: 8px 10px; margin-top: 8px; }
.mg-tag { padding: 3px 12px; }
.mg-price { margin-left: 4px; }
/* v226: tick = the ✓ draws itself; tabs = the rows slide in */
.mg-check { transition: background 0.25s ease, border-color 0.25s ease; }
.mg-check svg.mg-draw polyline { stroke-dasharray: 24; stroke-dashoffset: 24; animation: mgDraw 0.5s 0.1s cubic-bezier(0.4, 0, 0.4, 1) forwards; }
@keyframes mgDraw { to { stroke-dashoffset: 0; } }
.mg-row.mg-enter { animation: slideUp 0.42s cubic-bezier(0.32, 0.72, 0, 1) both; animation-delay: var(--d, 0ms); }
@media (prefers-reduced-motion: reduce) { .mg-check svg.mg-draw polyline { animation: none; stroke-dashoffset: 0; } .mg-row.mg-enter { animation: none; } }

/* v226 (Ònia 15/11): the links editor = pills like «For» and «Price» (no title). Used by the letter's wish page and «My gifts» (LinksEditor, item.js).
   The sheet «Where to buy» keeps .links-group / .links-row. */
.links-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.links-pill { display: flex; align-items: center; gap: 4px; width: 100%; box-sizing: border-box; min-height: 58px; padding: 0 8px 0 24px; border-radius: 50px;
    border: 1px solid color-mix(in srgb, var(--ov-ink, currentColor) 28%, transparent); background: color-mix(in srgb, var(--ov-ink, currentColor) 9%, transparent); }
.links-pill .links-input { flex: 1; min-width: 0; padding: 14px 0; margin-right: 8px; } /* v229: room between the end of the link and the ↗ circle (8 + the pill's 4 = 12 px) */
.links-clear, .links-pill .links-open { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: none; border-radius: 50%; background: transparent; color: inherit;
    box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; cursor: pointer; }
.links-clear:hover { background: transparent; box-shadow: none; }
/* v229 (Ònia 17/11): the ↗ that opens a link is a button in a circle (a soft fill and a thin ring, in the page's ink); the ✕ next to it stays plain, so opening reads as the main action */
.links-pill .links-open { box-sizing: border-box; background: color-mix(in srgb, var(--ov-ink, currentColor) 14%, transparent); border: 1px solid color-mix(in srgb, var(--ov-ink, currentColor) 40%, transparent); transition: background 0.15s ease, transform 0.15s ease; }
@media (hover: hover) { .links-pill .links-open:hover { background: color-mix(in srgb, var(--ov-ink, currentColor) 24%, transparent); } }
.links-pill .links-open:active { transform: scale(0.94); }
.links-pill .links-open svg { width: 18px; height: 18px; }
.links-clear[hidden], .links-addtxt[hidden] { display: none; }
.links-addtxt { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 6px; border: none; background: none; color: inherit; font: 400 var(--fs-body) var(--font-main);
    text-decoration: underline; text-underline-offset: 4px; cursor: pointer; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.links-addtxt:hover { background: none; box-shadow: none; }
.links-clear:focus-visible, .links-addtxt:focus-visible, .links-pill .links-open:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* v227 (Ònia 15/11): kids' letters (js/views/kid.js). The «Which wishlist do you want to create?» sheet and the name step use the home's colours; the control view is a received letter's
   screen (gl-*) with full-width pills. */
.kid-choices { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.kid-choice, .kid-choice:hover, .kid-choice:active { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 72px; padding: 12px 18px; box-sizing: border-box; border-radius: 28px; border: 1px solid color-mix(in srgb, var(--on-surface) 28%, transparent); background: color-mix(in srgb, var(--on-surface) 9%, transparent); color: var(--on-surface); text-align: left; font-family: var(--font-main); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; cursor: pointer; }
.kid-choice > svg { flex: none; }
.kid-choice-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kid-choice-title { font-size: var(--fs-body); font-weight: 500; line-height: 1.35; }
.kid-choice-sub { font-size: var(--fs-small); font-weight: 400; line-height: 1.4; opacity: 0.85; }
.kid-choice:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.ls-eye-btn, .ls-eye-btn:hover, .ls-eye-btn:active { color: var(--current-text); cursor: pointer; }
.kc-page .gl-items { align-items: stretch; }
.kc-page .gl-pill { display: flex; width: 100%; box-sizing: border-box; }
.kc-page .gl-name { flex: 1 1 auto; }
.kc-page .gl-end { margin-left: auto; gap: 8px; }
/* v227: the closed control (padlock, «Press and hold to see») and the lock on the open one */
.kc-gate-page { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; color: var(--current-text); font-family: 'Manrope', sans-serif; }
.kc-gate-full { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 32px 24px; }
.kc-art { display: block; width: min(220px, 70%); height: auto; margin: 0 auto 24px; pointer-events: none; user-select: none; }
@media (max-height: 600px) { .kc-art { display: none; } }
.kc-gate-title { font-size: var(--fs-title); font-weight: 600; line-height: 1.2; margin: 0 0 10px; }
.kc-gate-text { font-size: var(--fs-body); line-height: 1.5; margin: 0; max-width: 290px; }
.kc-hold { position: relative; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; margin-top: 30px; /* Ònia 21/11: structure A, the button hugs its content right under the text */ }
.kc-hold span { position: relative; }
.kc-hold-fill { position: absolute; inset: 0; width: 0; background: color-mix(in srgb, var(--current-bg) 22%, transparent); }

/* v227: one gift for the parents (the field «Who is gifting it» with its list) and the guest's «Who is gifting it: You · Change» */
.kd-combo { position: relative; }
.kd-who { width: 100%; height: 56px; padding: 0 48px 0 18px; box-sizing: border-box; border-radius: 28px; border: 1px solid color-mix(in srgb, var(--current-text) 28%, transparent); background: color-mix(in srgb, var(--current-text) 9%, transparent); color: var(--current-text); outline: none; font-family: var(--font-main); font-size: var(--fs-body); }
.kd-who:focus-visible { outline: 2px solid var(--current-text); outline-offset: 2px; }
.kd-chev { position: absolute; right: 16px; top: 18px; color: var(--current-text); pointer-events: none; }
.kd-list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 8px); display: flex; flex-direction: column; padding: 6px; border-radius: 24px; background: var(--current-bg); border: 1px solid color-mix(in srgb, var(--current-text) 28%, transparent); }
.kd-list[hidden] { display: none; }
.kd-opt, .kd-opt:hover, .kd-opt:active { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 48px; padding: 0 18px; border: none; border-radius: 18px; background: transparent; color: var(--current-text); text-align: left; font-family: var(--font-main); font-size: var(--fs-body); font-weight: 400; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; cursor: pointer; }
.kd-opt:hover, .kd-opt[aria-selected="true"], .kd-opt:focus-visible, .kd-opt.is-active { background: color-mix(in srgb, var(--current-text) 9%, transparent); }
.gd-giver-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; font-size: var(--fs-body); }
.gd-block .gd-gifting-text { margin: 10px 0 0; font-size: var(--fs-small); line-height: 1.5; }

/* v227: the child's name step (its own field, not the letter's title) */
.kid-label { display: block; margin: 18px 0 10px; font-size: var(--fs-body); font-weight: 600; letter-spacing: -0.3px; } /* like the labels above the fields of the other screens (auth-field-label) */
.kid-hint { margin: -4px 0 0; font-size: var(--fs-small); line-height: 1.5; opacity: 0.85; } /* v229: like the hint under «Who is gifting» (.gd-gifting-text): 10px under the field (the sheet is a flex column with a 14px gap: 14 - 4 = 10), aligned with the label */
.kid-input { display: block; } /* an inline input leaves a gap under it (the line's descender): the hint was further from the field than in the other screens */
.kid-actions { flex-wrap: nowrap; margin-top: 24px; }
.kid-actions .sheet-btn { flex: 1 1 0; min-width: 0; }
.sheet--left, .sheet--left .sheet-title { text-align: left; } /* the name step: everything to the left */
.kid-input, .kid-input:focus, .kid-input:focus-visible { outline: none; box-shadow: none; text-align: left; } /* the text and the caret start at the left (the sheet's centring made the caret sit in the middle of the placeholder) */

/* v227: the dot on the eye of a kid's letter: the guests' reservations changed since the parents last looked */
.ls-eye-btn { position: relative; }
.ls-eye-dot { position: absolute; top: 9px; right: 9px; width: 10px; height: 10px; border-radius: 50%; background: var(--current-text); box-shadow: 0 0 0 2px var(--current-bg); pointer-events: none; }
.ls-eye-dot[hidden] { display: none; }

/* v227: the «···» menu of a kid's letter (a sheet with two rows) */
.ls-dots-btn, .ls-dots-btn:hover, .ls-dots-btn:active { color: var(--current-text); cursor: pointer; }
.kid-menu { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.kid-menu-row, .kid-menu-row:hover, .kid-menu-row:active { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 0 18px; box-sizing: border-box; border-radius: 28px; border: 1px solid color-mix(in srgb, var(--current-text) 28%, transparent); background: color-mix(in srgb, var(--current-text) 9%, transparent); color: var(--current-text); text-align: left; font-family: var(--font-main); font-size: var(--fs-body); font-weight: 500; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; cursor: pointer; }
.kid-menu-row > svg { flex: none; }
.kid-menu-row[aria-disabled="true"] { opacity: 0.4; cursor: default; }
.kid-menu-row:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.sheet--left .sheet-input, .sheet--left .sheet-input::placeholder { text-align: left; text-indent: 0; } /* inputs inherit the sheet's centring: the name field, its text, its placeholder and its caret all start at the left */
.kid-horse { flex: none; display: block; width: 22px; height: 22px; background: currentColor; -webkit-mask: url(/assets/Horse-DT1yetXi.svg) center / contain no-repeat; mask: url(/assets/Horse-DT1yetXi.svg) center / contain no-repeat; } /* Ònia's rocking horse (img/Horse.svg), in the text colour */

/* v227: the «Which wishlist do you want to create?» sheet: two rows to choose from (the first is chosen) and «Continue» */
.kid-choice[aria-checked="true"], .kid-choice[aria-checked="true"]:hover { border-color: var(--on-surface); box-shadow: inset 0 0 0 1px var(--on-surface); }
.kid-radio { margin-left: auto; flex: none; width: 22px; height: 22px; box-sizing: border-box; border-radius: 50%; border: 1.5px solid currentColor; opacity: 0.7; }
.kid-choice[aria-checked="true"] .kid-radio { opacity: 1; background: radial-gradient(circle, currentColor 0, currentColor 4.5px, transparent 5px); }
.kid-continue-wrap { margin-top: 20px; }
.kid-continue-wrap .sheet-btn { width: 100%; }
.sheet--left { padding-bottom: 24px; } /* the same space under the button as at the sides (24 px; the other sheets keep 28 below) */

/* PROVA (18/11, Ònia): the egg (native.js): under a screen pulled past its end, the green of the buttons with the hidden cat; the screen ends rounded (::before) */
.np-egg { position: fixed; left: 0; right: 0; bottom: 0; height: 0; overflow: hidden; background: var(--accent); z-index: 1; pointer-events: none; }
.np-egg::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: var(--r, 0px); background: var(--egg-page, var(--surface)); border-radius: 0 0 var(--r, 0px) var(--r, 0px); }
.np-egg img { position: absolute; right: 16px; top: calc(var(--r, 0px) + 20px); width: 110px; height: auto; user-select: none; -webkit-user-drag: none; }

/* Ònia (18/11): the home and a friend's letter can be pulled (bounce) even with few cards / wishes: the scroller is 1 px taller than its screen
   (an invisible absolute box; the scroller is absolute itself, so it counts as scrollable height). Nothing changes in the look. */
html.native .container.has-bar:has(.hm-stack) > .scroll-body::before,
html.native .container.gl-page.has-bar > .scroll-body::before { content: ''; position: absolute; left: 0; top: 0; width: 1px; height: calc(100% + 1px); visibility: hidden; pointer-events: none; }

/* PROVA (Ònia 18/11, Nadal): the car with the tree on a new letter (list.js): a zero-height strip on the top edge of the panel; the car (50 px, flipped: the art faces left)
   is already driving when the letter opens: it goes along the flat part of the edge (16 px margin + 32 px corner radius on each side) from left to right, wheels on the edge,
   slowing down and stopping at the end, while its 5 frames loop. When she moves on to the first wish (.ls-car--out) it fades out in 0.2 s and is removed.
   Only in Christmas mode; with prefers-reduced-motion it doesn't show. */
.ls-car { position: relative; height: 0; margin: 0 48px; z-index: 3; pointer-events: none; }
.ls-car--out { animation: carOut 0.2s ease-out both; }
.ls-car-lane { position: absolute; left: 0; right: 0; bottom: -2px; height: 60px; container-type: inline-size; }
.ls-car-in { position: absolute; left: 0; bottom: 0; width: 50px; aspect-ratio: 260 / 253; animation: carDrive 3.5s cubic-bezier(0.25, 0.6, 0.35, 1) var(--car-ago, 0ms) both; }
/* the frames loop only in the first 1.5 s of the drive (the fast part); from there, while it brakes and when it stops, only frame 1 is shown and the PNG just moves (carFrameLast ends visible, the others end hidden) */
.ls-car-in img { position: absolute; inset: 0; width: 100%; height: 100%; visibility: hidden; transform: scaleX(-1); user-select: none; -webkit-user-drag: none; animation: carFrame 0.5s steps(1, end) both; }
.ls-car-in img:nth-child(1) { animation-name: carFrameLast; animation-iteration-count: 3;   animation-delay: var(--car-ago, 0ms); }
.ls-car-in img:nth-child(2) { animation-iteration-count: 2.8; animation-delay: calc(var(--car-ago, 0ms) + 0.1s); }
.ls-car-in img:nth-child(3) { animation-iteration-count: 2.6; animation-delay: calc(var(--car-ago, 0ms) + 0.2s); }
.ls-car-in img:nth-child(4) { animation-iteration-count: 2.4; animation-delay: calc(var(--car-ago, 0ms) + 0.3s); }
.ls-car-in img:nth-child(5) { animation-iteration-count: 2.3; animation-delay: calc(var(--car-ago, 0ms) + 0.4s); }
@keyframes carDrive { from { transform: translateX(0); } to { transform: translateX(calc(100cqw - 50px)); } }
@keyframes carOut { to { opacity: 0; } }
@keyframes carFrame { 0% { visibility: visible; } 20%, 100% { visibility: hidden; } }
@keyframes carFrameLast { 0% { visibility: visible; } 20%, 99.9% { visibility: hidden; } 100% { visibility: visible; } }
:root:not([data-xmas="on"]) .ls-car { display: none; }
@media (prefers-reduced-motion: reduce) { .ls-car { display: none; } }

/* v235 (Ònia 20/11, audit 1–3): the iPhone's own navigation (js/native.js, initEdgeSwipeBack). Only the content of a screen slides; the bar stays and cross-fades.
   The screen underneath is a copy (inert, no ids, every animation at its end) that moves a third as far, with a light dim; the sliding page is opaque with a soft shadow. */
html.native .np-layer { position: fixed; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
html.native .np-layer--under { background: var(--np-bg); }
html.native .np-layer--top { z-index: 4; }
html.native .np-layer *, html.native .np-layer *::before, html.native .np-layer *::after { animation-duration: 0s !important; animation-delay: 0s !important; animation-fill-mode: both !important; transition: none !important; }
html.native .np-layer > .container.has-bar { height: 100dvh; min-height: 0; overflow: hidden; }
html.native.np-navigating #app { z-index: 2; }
html.native .np-slide { background: var(--np-bg); box-shadow: -10px 0 30px rgba(0, 0, 0, 0.16); will-change: transform; }
html.native .np-dim { position: absolute; inset: 0; z-index: 9999; background: rgba(0, 0, 0, 0.12); pointer-events: none; }
html.native .np-dim--between { position: fixed; z-index: 3; }
html.native.np-navigating #app, html.native.np-navigating #app * { animation-duration: 0s !important; animation-delay: 0s !important; animation-fill-mode: both !important; } /* the screen that slides is already complete (no fade-in on top of the motion) */

/* v235 (Ònia 20/11): in the app, buttons stay still when pressed (no shrinking). The web keeps its scale. Cards (.wishlist-card) keep their own press. */
:where(html.native) button:active { transform: none; }
html.native :is(.splash-btn, .gd-btn, .gl-pill, .settings-delete, .btn, .links-pill .links-open):active { transform: none; }
html.native .auth-eye:active { transform: translateY(-50%); }
html.native .hm-settings { transform: none !important; } /* its onmousedown scale(0.95) (home.js) also fires on a touch */
/* v235 (Ònia 20/11): the press feedback of the app is a light dim, like iOS's (the button doesn't move). Not on disabled ones or the home's selector (they have their own opacity). */
html.native button:not(:disabled, .hm-tab):active { opacity: 0.85; }

/* v235 (audit 9): small controls reach 44 pt without looking bigger (an invisible margin around them), and the note under a group lines up with the rows' text. Only the apps. */
html.native .mg-grip, html.native .gt-tag { position: relative; } /* (.mg-check already has its own 44 pt area) */
html.native .mg-grip::after { content: ''; position: absolute; inset: 2px -6px; }
html.native .gt-tag::after { content: ''; position: absolute; inset: -2px 0; }
html.native .st-lock-note { margin-left: 16px; margin-right: 16px; }

