/* ===========================================================================
   Yumee house style — components.  CANONICAL FILE.

   The 2026-09-23 edition (the yumee.org look). Each block is one thing an app
   or the site draws, named. An app uses these classes as they are and adds a
   size or a state class of its own beside them; it never redefines a border,
   radius, shadow or colour these already set.

   The rules of the look, in one place:
     - paper on paper: a card is separated by a lavender hairline and a soft
       lavender-tinted shadow, never by a fill or an ink outline;
     - print: headings and figures in Unageo SemiBold, tracked tight;
     - the purple lowercase wordmark with nothing beside it;
     - sentence case for navigation, tabs and buttons; the 11px wide-set
       uppercase label names cards and fields;
     - an app draws no doodles, margin notes, squiggles or speech bubbles.
       Those classes live at the end of this file for the marketing site.
   =========================================================================== */

/* ---------------------------------------------------------------- cards --- */

.yu-card {
    position: relative;
    background: var(--yu-surface-card);
    border: 1px solid var(--yu-line-card);
    border-radius: var(--yu-r-lg);
    padding: clamp(18px, 2vw, 24px);
    box-shadow: var(--yu-shadow-card);
}

/* The one card on a screen that leads: the first figure, the "how it goes"
   note. Palest lavender, same hairline. Not every card. */
.yu-card--tint  { background: var(--yu-surface-accent); }
/* A quiet panel inside a card or a sheet: no lift of its own. */
.yu-card--soft  { box-shadow: none; }
.yu-card--mist  { background: var(--yu-surface); border-color: transparent; box-shadow: none; }
/* The dark band (the site's closing call to action). Not in apps. */
.yu-card--ink   {
    background: var(--yu-contrast);
    color: var(--yu-contrast-ink);
    border-color: var(--yu-contrast);
    box-shadow: var(--yu-shadow-hover);
}
.yu-card--ink .yu-label { color: var(--yu-rail-muted); }
/* The "add one" slot. */
.yu-card--dashed {
    background: transparent;
    border: 1.5px dashed var(--yu-lav-300);
    box-shadow: none;
    color: var(--yu-primary-ink);
    display: grid;
    place-items: center;
}
/* A card you can press: it lifts a little and its hairline darkens. */
.yu-card--action {
    cursor: pointer;
    transition: border-color var(--yu-fast) var(--yu-ease), box-shadow var(--yu-slow) var(--yu-ease),
                transform var(--yu-fast) var(--yu-ease);
}
.yu-card--action:hover { border-color: var(--yu-lav-300); box-shadow: var(--yu-shadow-hover); }
.yu-card--pad-lg { padding: clamp(24px, 3vw, 36px); }

.yu-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--yu-gap);
    margin-bottom: 12px;
}

/* "Details →": sentence case, purple, the arrow nudges on hover. */
.yu-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    min-height: 32px;
    font-family: var(--yu-font);
    font-size: .8125rem;
    font-weight: var(--yu-w-ui);
    color: var(--yu-primary-ink);
    text-decoration: none;
}
.yu-more:hover { color: var(--yu-ink); }
.yu-more svg { width: 1.1em; height: 1.1em; transition: transform var(--yu-fast) var(--yu-ease); }
.yu-more:hover svg { transform: translateX(2px); }

/* Rows inside a card: a straight hairline between them (inset, so it never
   curves round a row's corner), pale lavender when current or hovered. */
.yu-list { display: flex; flex-direction: column; }
.yu-list__row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 10px;
    min-height: 48px;
    border-radius: var(--yu-r-md);
    text-align: left;
    color: inherit;
    text-decoration: none;
}
.yu-list__row + .yu-list__row::before {
    content: '';
    position: absolute;
    left: 10px;
    right: 10px;
    top: 0;
    height: 1px;
    background: var(--yu-line-card);
}
.yu-list__row:hover, .yu-list__row.is-current { background: var(--yu-lav-50); }
.yu-list__row:hover::before, .yu-list__row:hover + .yu-list__row::before,
.yu-list__row.is-current::before, .yu-list__row.is-current + .yu-list__row::before { display: none; }

/* -------------------------------------------------------------- buttons --- */
/* Pills. Outlined paper (default), primary (ink), secondary (lavender),
   purple (the landing page's call), quiet (text only). Sentence case; add
   `.yu-btn--caps` only for a landing page's tracked uppercase call. */

.yu-btn {
    -webkit-appearance: none;
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--yu-font);
    font-weight: var(--yu-w-ui);
    font-size: .9375rem;
    line-height: 1;
    padding: 0 22px;
    min-height: 46px;
    border-radius: var(--yu-r-pill);
    border: 1px solid var(--yu-line-card);
    background: var(--yu-surface-card);
    color: var(--yu-ink);
    box-shadow: var(--yu-shadow-card);
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color var(--yu-fast) var(--yu-ease),
                border-color var(--yu-fast) var(--yu-ease),
                box-shadow var(--yu-slow) var(--yu-ease),
                transform var(--yu-fast) var(--yu-ease),
                color var(--yu-fast) var(--yu-ease);
}
.yu-btn:hover { background: var(--yu-surface-card); border-color: var(--yu-lav-300); box-shadow: var(--yu-shadow-hover); }
.yu-btn:active { transform: translateY(1px); }
.yu-btn[disabled], .yu-btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.yu-btn svg { width: 1.15em; height: 1.15em; flex: none; }

.yu-btn--primary,
.yu-btn--contrast {
    background: var(--yu-contrast);
    border-color: var(--yu-contrast);
    color: var(--yu-contrast-ink);
}
.yu-btn--primary:hover,
.yu-btn--contrast:hover { background: var(--yu-rail-hover); border-color: var(--yu-rail-hover); color: var(--yu-contrast-ink); }

.yu-btn--secondary {
    background: var(--yu-lavender);
    border-color: var(--yu-lavender);
    color: var(--yu-ink);
    box-shadow: none;
}
.yu-btn--secondary:hover { background: var(--yu-lav-300); border-color: var(--yu-lav-300); box-shadow: none; }

.yu-btn--purple {
    background: var(--yu-purple);
    border-color: var(--yu-purple);
    color: var(--yu-on-primary);
    box-shadow: var(--yu-shadow-purple);
}
.yu-btn--purple:hover { background: var(--yu-lav-500); border-color: var(--yu-lav-500); color: var(--yu-on-primary); box-shadow: var(--yu-shadow-purple); }

.yu-btn--quiet,
.yu-btn--quiet:hover { border-color: transparent; box-shadow: none; }
.yu-btn--quiet { background: transparent; color: var(--yu-ink-soft); }
.yu-btn--quiet:hover { background: var(--yu-lav-50); color: var(--yu-ink); }

/* A verdict or a destructive action fills with its own meaning. */
.yu-btn--danger { color: var(--yu-danger); border-color: var(--yu-danger); box-shadow: none; }
.yu-btn--danger:hover { background: var(--yu-danger-soft); border-color: var(--yu-danger); box-shadow: none; }

.yu-btn--sm   { min-height: 38px; padding: 0 16px; font-size: .875rem; }
.yu-btn--lg   { min-height: 54px; padding: 0 30px; font-size: 1rem; }
.yu-btn--block{ display: flex; width: 100%; }
.yu-btn--icon { padding: 0; width: 44px; min-height: 44px; }
.yu-btn--icon.yu-btn--sm { width: 38px; min-height: 38px; }
/* After the sizes, so a large tracked call keeps its small caps. */
.yu-btn--caps { font-size: .75rem; font-weight: 600; letter-spacing: var(--yu-track-caps); text-transform: uppercase; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .yu-btn:not(.yu-btn--quiet):not(.yu-btn--secondary):not([disabled]):hover { transform: translateY(-1px); }
}
@media (prefers-reduced-motion: reduce) {
    .yu-btn:active { transform: none; }
}

/* A text link that is a button: "or press Enter to scan the path above". */
.yu-link {
    background: none;
    border: 0;
    padding: 6px 0;
    font: inherit;
    font-size: .8125rem;
    font-weight: var(--yu-w-ui);
    color: var(--yu-primary-ink);
    text-align: left;
    cursor: pointer;
}
.yu-link:hover { color: var(--yu-ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- pills --- */
/* Soft pale fills, no outline. Lavender by default; mint, pink, warn and
   danger for meaning. A state dot goes first with `.yu-chip__dot`. */

.yu-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--yu-font);
    font-size: .75rem;
    font-weight: var(--yu-w-ui);
    line-height: 1;
    padding: 7px 12px;
    border-radius: var(--yu-r-pill);
    background: var(--yu-lavender);
    color: var(--yu-ink);
    white-space: nowrap;
}
.yu-chip--mist   { background: var(--yu-surface); color: var(--yu-ink-soft); }
.yu-chip--lav    { background: var(--yu-lav-50); color: var(--yu-primary-ink); }
.yu-chip--pink   { background: var(--yu-pink-soft); color: var(--yu-pink-ink); }
.yu-chip--mint   { background: var(--yu-mint-soft); color: var(--yu-mint-ink); }
.yu-chip--warn   { background: var(--yu-warn-soft); color: var(--yu-warn); }
.yu-chip--danger { background: var(--yu-danger-soft); color: var(--yu-danger); }
.yu-chip--ink    { background: var(--yu-contrast); color: var(--yu-contrast-ink); }
.yu-chip--purple { background: var(--yu-purple); color: var(--yu-on-primary); }
.yu-chip--outline{ background: var(--yu-surface-card); border: 1px solid var(--yu-line-card); color: var(--yu-ink-soft); }
.yu-chip--dashed { background: transparent; color: var(--yu-ink-faint); border: 1.5px dashed var(--yu-lav-300); }
.yu-chip__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }

/* The small squared tag: MAT / SJL / BIO. */
.yu-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    padding: 6px 10px;
    border-radius: var(--yu-r-xs);
    border: 1px solid var(--yu-line-card);
    background: var(--yu-lav-50);
    color: var(--yu-primary-ink);
    font-family: var(--yu-font);
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    line-height: 1;
}
.yu-tag--mint { background: var(--yu-mint-soft); border-color: var(--yu-mint); color: var(--yu-mint-ink); }
.yu-tag--pink { background: var(--yu-pink-soft); border-color: var(--yu-pink); color: var(--yu-pink-ink); }

/* A circle holding one number: a step, a grade, a lesson period. */
.yu-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--yu-line-card);
    background: var(--yu-surface-card);
    color: var(--yu-primary-ink);
    font-family: var(--yu-font-head);
    font-weight: var(--yu-w-head);
    font-size: .9375rem;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    flex: none;
}
.yu-badge--lav  { background: var(--yu-lav-50); }
.yu-badge--mint { background: var(--yu-mint-soft); border-color: var(--yu-mint); color: var(--yu-mint-ink); }
.yu-badge--pink { background: var(--yu-pink-soft); border-color: var(--yu-pink); color: var(--yu-pink-ink); }
.yu-badge--ink  { background: var(--yu-contrast); border-color: var(--yu-contrast); color: var(--yu-contrast-ink); }
.yu-badge--sm   { width: 24px; height: 24px; font-size: .75rem; }
.yu-badge--lg   { width: 44px; height: 44px; font-size: 1.25rem; }

/* ---------------------------------------------------------------- forms --- */

.yu-field { display: block; margin-bottom: 16px; }
.yu-field > .yu-label { display: block; margin-bottom: 6px; }

.yu-input, .yu-select, .yu-textarea {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    width: 100%;
    font-family: var(--yu-font);
    font-size: 1rem;
    color: var(--yu-ink);
    background: var(--yu-surface-card);
    border: 1px solid var(--yu-line-card);
    border-radius: var(--yu-r-sm);
    padding: 12px 16px;
    min-height: 46px;
    transition: border-color var(--yu-fast) var(--yu-ease), box-shadow var(--yu-fast) var(--yu-ease);
}
.yu-input::placeholder, .yu-textarea::placeholder { color: var(--yu-ink-faint); }
.yu-input:hover, .yu-select:hover, .yu-textarea:hover { border-color: var(--yu-lav-300); }
.yu-input:focus, .yu-select:focus, .yu-textarea:focus { border-color: var(--yu-purple); box-shadow: var(--yu-ring); outline: none; }
.yu-input[aria-invalid="true"] { border-color: var(--yu-danger); }
.yu-textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.yu-select {
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23181526' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9.5l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
}
.yu-input--sm, .yu-select--sm { min-height: 38px; padding: 6px 14px; font-size: .875rem; }
.yu-select--sm { padding-right: 38px; background-position: right 12px center; }

/* A search box with the icon inside: a paper pill. */
.yu-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    min-height: 44px;
    border-radius: var(--yu-r-pill);
    border: 1px solid var(--yu-line-card);
    background: var(--yu-surface-card);
    color: var(--yu-ink-faint);
    transition: border-color var(--yu-fast) var(--yu-ease), box-shadow var(--yu-fast) var(--yu-ease);
}
.yu-search:hover { border-color: var(--yu-lav-300); }
.yu-search:focus-within { border-color: var(--yu-purple); box-shadow: var(--yu-ring); }
.yu-search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font: inherit; font-size: .9375rem; color: var(--yu-ink); }
.yu-search svg { width: 18px; height: 18px; flex: none; }
/* Under 16px iOS zooms into the field and the page starts panning sideways. */
@media (max-width: 760px) { .yu-search input { font-size: max(16px, 1em); } }

/* A checkbox: a rounded box that fills purple with a paper tick. */
.yu-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: .9375rem;
    line-height: 1.4;
    user-select: none;
}
.yu-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.yu-check__box {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 1.5px solid var(--yu-lav-300);
    background: var(--yu-surface-card);
    display: grid;
    place-items: center;
    color: transparent;
    flex: none;
    transition: background-color var(--yu-fast) var(--yu-ease), border-color var(--yu-fast) var(--yu-ease);
}
.yu-check__box svg { width: 14px; height: 14px; }
.yu-check:hover .yu-check__box { border-color: var(--yu-purple); }
.yu-check input:checked + .yu-check__box { background: var(--yu-purple); border-color: var(--yu-purple); color: var(--yu-on-primary); }
.yu-check input:focus-visible + .yu-check__box { outline: 2px solid var(--yu-purple); outline-offset: 2px; }

/* The slider: a lavender track with a purple thumb. */
.yu-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: var(--yu-r-pill);
    background: var(--yu-lavender);
    outline: none;
}
.yu-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--yu-purple);
    border: 3px solid var(--yu-surface-card);
    box-shadow: 0 0 0 1px var(--yu-purple), var(--yu-shadow-card);
    cursor: pointer;
}
.yu-range::-moz-range-thumb {
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--yu-purple);
    border: 3px solid var(--yu-surface-card);
    box-shadow: 0 0 0 1px var(--yu-purple);
    cursor: pointer;
}

/* A progress bar: paper track in a hairline, purple fill. With no number to
   show yet, `.is-indeterminate` crawls instead of inventing one. */
.yu-progress {
    display: block;
    height: 10px;
    border-radius: var(--yu-r-pill);
    background: var(--yu-surface-card);
    border: 1px solid var(--yu-lav-300);
    overflow: hidden;
}
.yu-progress > span { display: block; height: 100%; width: 0; background: var(--yu-purple); border-radius: var(--yu-r-pill); transition: width .5s var(--yu-ease); }
.yu-progress.is-indeterminate > span { width: 20%; animation: yu-crawl 1.6s var(--yu-ease) infinite; opacity: .75; }
.yu-progress--thin { height: 4px; border: 0; background: var(--yu-lavender); }
@keyframes yu-crawl { 0% { margin-left: 0; width: 14% } 50% { margin-left: 60%; width: 26% } 100% { margin-left: 100%; width: 6% } }

/* ----------------------------------------------------------- status line --- */
/* What something is doing, in one line: a turning ring while it works, a
   check when it lands, a red dot when it failed. Use it instead of a
   character or a speech bubble next to a running job. */

.yu-status { display: flex; align-items: center; gap: 12px; min-width: 0; font-size: .9375rem; color: var(--yu-ink); }
.yu-status > p, .yu-status__text { margin: 0; min-width: 0; }
.yu-status__icon {
    flex: none;
    position: relative;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--yu-surface-card);
    border: 1px solid var(--yu-line-card);
}
.yu-status[data-state="busy"] .yu-status__icon::after {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    border: 2px solid var(--yu-lav-300);
    border-top-color: var(--yu-purple);
    animation: yu-turn 1s linear infinite;
}
.yu-status[data-state="done"] .yu-status__icon { background: var(--yu-ok-soft); border-color: var(--yu-mint); }
.yu-status[data-state="done"] .yu-status__icon::after {
    content: '';
    position: absolute;
    left: 10px;
    top: 6px;
    width: 6px;
    height: 11px;
    border: solid var(--yu-mint-ink);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.yu-status[data-state="error"] .yu-status__icon { background: var(--yu-danger-soft); border-color: var(--yu-danger); }
.yu-status[data-state="error"] .yu-status__icon::after {
    content: '';
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    background: var(--yu-danger);
}
@keyframes yu-turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .yu-status[data-state="busy"] .yu-status__icon::after { animation: none; }
}

/* ------------------------------------------------------ steps ("how") ---- */
/* Three short numbered steps that say how a screen goes. The start screen's
   right-hand card; the character may peek up from its foot. */

.yu-steps { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.yu-steps > li { display: flex; gap: 12px; align-items: flex-start; font-size: .875rem; line-height: 1.5; color: var(--yu-ink-soft); }
.yu-steps > li > .yu-badge { margin-top: -1px; }
.yu-steps > li b, .yu-steps > li strong { color: var(--yu-ink); }

/* ---------------------------------------------------------- navigation --- */
/* The rail: a floating paper panel with a soft shadow — the site header's
   twin, standing on its end. Wordmark at the top, the pages, a divider, the
   tools, the account at the foot. It sits in its own column with
   --yu-float-gap of paper around it. */

.yu-rail {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--yu-surface-card);
    border: 1px solid var(--yu-line-card);
    border-radius: var(--yu-r-xl);
    box-shadow: var(--yu-shadow-float);
    padding: 22px 12px 12px;
    color: var(--yu-ink);
}
/* Pinned beside the page: sticky, the window's height less the gap. */
.yu-rail--sticky {
    position: sticky;
    top: var(--yu-float-gap);
    height: calc(100dvh - 2 * var(--yu-float-gap));
    margin: var(--yu-float-gap) 0 var(--yu-float-gap) var(--yu-float-gap);
    overflow-y: auto;
    scrollbar-width: none;
    z-index: 50;
}
.yu-rail--sticky::-webkit-scrollbar { display: none; }
.yu-rail__brand { padding: 0 10px 22px; }
.yu-rail__brand yumee-logo { --yu-logo-size: 2rem; }
.yu-rail__rule { height: 1px; background: var(--yu-line-card); margin: 8px 4px; border: 0; }
.yu-rail__foot { margin-top: auto; padding-top: 16px; display: flex; flex-direction: column; gap: 12px; }

/* The app shell: the rail's column and the page. */
.yu-app {
    display: grid;
    grid-template-columns: var(--yu-rail-w) minmax(0, 1fr);
    min-height: 100dvh;
}
.yu-app__main { min-width: 0; padding: 24px clamp(16px, 3vw, 36px) 40px; }

.yu-nav { display: flex; flex-direction: column; gap: 4px; }
.yu-nav__item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: var(--yu-r-md);
    border: 0;
    background: transparent;
    color: var(--yu-ink-soft);
    font-family: var(--yu-font);
    font-size: .875rem;
    font-weight: var(--yu-w-ui);
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: background-color var(--yu-fast) var(--yu-ease), color var(--yu-fast) var(--yu-ease);
}
.yu-nav__item svg { width: 20px; height: 20px; flex: none; color: var(--yu-ink-faint); transition: color var(--yu-fast) var(--yu-ease); }
.yu-nav__item:hover { background: var(--yu-lav-50); color: var(--yu-ink); }
.yu-nav__item:hover svg { color: var(--yu-purple); }
.yu-nav__item.is-active,
.yu-nav__item[aria-current="page"] { background: var(--yu-lav-50); color: var(--yu-primary-ink); }
.yu-nav__item.is-active svg,
.yu-nav__item[aria-current="page"] svg { color: var(--yu-purple); }
.yu-nav__count {
    margin-left: auto;
    font-size: .75rem;
    font-weight: 600;
    color: var(--yu-ink-faint);
    font-variant-numeric: tabular-nums;
}

/* The account and its credits at the foot of the rail: the site's credits
   pill, grown into a small card. A button: it opens the account. */
.yu-account {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    width: 100%;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid var(--yu-line-card);
    border-radius: var(--yu-r-md);
    background: var(--yu-lav-50);
    color: var(--yu-ink);
    font-family: var(--yu-font);
    text-align: left;
    cursor: pointer;
    transition: border-color var(--yu-fast) var(--yu-ease);
}
.yu-account:hover { border-color: var(--yu-lav-300); }
.yu-account .yu-label { margin: 0; }
.yu-account__figure {
    font-family: var(--yu-font-head);
    font-weight: var(--yu-w-head);
    font-size: 1.25rem;
    line-height: 1.25;
    letter-spacing: var(--yu-track-head);
    color: var(--yu-primary-ink);
    overflow-wrap: anywhere;
}
.yu-account__who { font-size: .75rem; color: var(--yu-ink-soft); overflow-wrap: anywhere; min-width: 0; }

/* Filter tabs over a list: sentence case, each with a count in a small pill;
   the current one is pale lavender with a hairline. */
.yu-tabs { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.yu-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: var(--yu-r-pill);
    background: none;
    color: var(--yu-ink-soft);
    font-family: var(--yu-font);
    font-size: .875rem;
    font-weight: var(--yu-w-ui);
    cursor: pointer;
    transition: background-color var(--yu-fast) var(--yu-ease), color var(--yu-fast) var(--yu-ease), border-color var(--yu-fast) var(--yu-ease);
}
/* A count sits closer to the pill's end. (Chromium 88, Captionee's, ignores :has() and keeps 14px.) */
.yu-tab:has(.yu-tab__count) { padding-right: 8px; }
.yu-tab:hover { background: var(--yu-lav-50); color: var(--yu-ink); }
.yu-tab.is-active, .yu-tab[aria-selected="true"] { background: var(--yu-lav-50); border-color: var(--yu-line-card); color: var(--yu-primary-ink); }
.yu-tab__count {
    font-style: normal;
    font-size: .75rem;
    font-weight: 600;
    line-height: 1;
    min-width: 24px;
    padding: 4px 7px;
    border-radius: var(--yu-r-pill);
    background: var(--yu-surface);
    color: var(--yu-ink-soft);
    text-align: center;
    font-variant-numeric: tabular-nums;
}
.yu-tab.is-active .yu-tab__count, .yu-tab[aria-selected="true"] .yu-tab__count { background: var(--yu-lavender); color: var(--yu-primary-ink); }

/* The phone tab bar: an ink pill with the current page in a lavender circle.
   The only large ink surface an app keeps. */
.yu-tabbar {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 4px;
    padding: 10px 8px;
    background: var(--yu-rail);
    color: var(--yu-rail-muted);
    border-radius: var(--yu-r-xl);
    box-shadow: var(--yu-shadow-hover);
}
.yu-tabbar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 4px 2px;
    border: 0;
    background: none;
    color: inherit;
    font-family: var(--yu-font);
    font-size: .6875rem;
    font-weight: var(--yu-w-ui);
    cursor: pointer;
    min-width: 0;
    text-decoration: none;
}
.yu-tabbar__icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}
.yu-tabbar__icon svg { width: 22px; height: 22px; }
.yu-tabbar__item.is-active { color: var(--yu-rail-ink); }
.yu-tabbar__item.is-active .yu-tabbar__icon { background: var(--yu-lav-300); color: var(--yu-ink); }

/* A round avatar: an initial, or the character on a start screen. */
.yu-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--yu-lav-50);
    border: 1px solid var(--yu-line-card);
    color: var(--yu-primary-ink);
    font-family: var(--yu-font-head);
    font-weight: var(--yu-w-head);
    display: grid;
    place-items: center;
    overflow: hidden;
    flex: none;
}
.yu-avatar yumee-mascot { --yu-mascot-size: 78%; width: 78%; height: 78%; }
.yu-avatar--lg { width: 96px; height: 96px; }

/* ------------------------------------------------------ desktop window --- */
/* A Yumee desktop app's window has no Windows title bar: the page is the
   window. `<yumee-window-controls>` (yumee-window.js) draws minimise,
   maximise and close at the top right, and any element with `data-yu-drag`
   moves the window when its empty part is dragged (double-click maximises).
   Outside the desktop shell none of it is drawn. */

.yu-winctl { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.yu-winctl[hidden] { display: none; }
.yu-winctl__btn {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--yu-line-card);
    background: var(--yu-surface-card);
    color: var(--yu-ink-soft);
    box-shadow: var(--yu-shadow-card);
    cursor: pointer;
    transition: background-color var(--yu-fast) var(--yu-ease), border-color var(--yu-fast) var(--yu-ease),
                color var(--yu-fast) var(--yu-ease);
}
.yu-winctl__btn svg { width: 12px; height: 12px; display: block; }
.yu-winctl__btn:hover { background: var(--yu-lav-50); border-color: var(--yu-lav-300); color: var(--yu-ink); }
.yu-winctl__btn--close:hover { background: var(--yu-danger); border-color: var(--yu-danger); color: var(--yu-on-primary); }
.yu-winctl__btn:focus-visible { outline: 2px solid var(--yu-purple); outline-offset: 2px; }

/* A drag region is not text to select. */
[data-yu-drag] { -webkit-user-select: none; user-select: none; }
[data-yu-drag] :where(input, textarea, [contenteditable]) { -webkit-user-select: text; user-select: text; }

/* The top bar of an app page: what is open on the left, the state, the
   account and the window's buttons on the right. It is the window's drag
   handle in the desktop apps. */
.yu-topbar {
    display: flex;
    align-items: center;
    gap: 10px 12px;
    flex-wrap: wrap;
    min-height: 44px;
    margin-bottom: 18px;
}
.yu-topbar__end { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-wrap: wrap; }

/* A path or a file name in the top bar: a mist pill, clipped from the left
   so the end of the path stays visible. */
.yu-path {
    flex: 0 1 auto;
    min-width: 0;
    font-size: .8125rem;
    color: var(--yu-ink-soft);
    background: var(--yu-surface);
    border-radius: var(--yu-r-pill);
    padding: 8px 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    direction: rtl;
    text-align: left;
}

/* The bar docked at the bottom of a working page: what is selected on the
   left, the actions on the right. */
.yu-dock {
    position: fixed;
    left: var(--yu-rail-w);
    right: 0;
    bottom: 0;
    z-index: 45;
    background: var(--yu-surface-card);
    border-top: 1px solid var(--yu-line-card);
    box-shadow: var(--yu-shadow-dock);
}
.yu-dock__in { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; padding: 12px clamp(16px, 3vw, 36px); }
.yu-dock__actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* --------------------------------------------------------------- mascot --- */
/* The character (the starry fox) is drawn only through <yumee-mascot>. In an
   app it appears only where a screen would otherwise be empty: at the foot
   of a start screen's "how it goes" card, and in an empty list. Never beside
   a warning, an error or a refusal; never next to a running job. */

yumee-mascot {
    display: inline-block;
    width: var(--yu-mascot-size, 96px);
    height: var(--yu-mascot-size, 96px);
    flex: none;
    line-height: 0;
}
yumee-mascot[hidden] { display: none !important; }

.yu-mascot--xs { --yu-mascot-size: 40px; }
.yu-mascot--sm { --yu-mascot-size: 64px; }
.yu-mascot--md { --yu-mascot-size: 120px; }
.yu-mascot--lg { --yu-mascot-size: 170px; }
.yu-mascot--xl { --yu-mascot-size: 240px; }

/* The character peeking up from the foot of a card, cut at the paws: put the
   `peeking` pose in this wrapper as the card's last child (card bottom
   padding 0). The pose leaves its lower third empty, hence the cut. */
.yu-mascot-foot {
    --m: clamp(120px, 11vw, 150px);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    height: calc(var(--m) * .66);
    overflow: hidden;
    margin-top: 6px;
    line-height: 0;
}
.yu-mascot-foot yumee-mascot { --yu-mascot-size: var(--m); display: block; flex: none; }

/* The character peeking over the top edge of a card (the site). */
.yu-mascot-peek {
    position: absolute;
    top: -60px;
    right: 22px;
    --yu-mascot-size: 110px;
    height: 80px;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}
.yu-mascot-peek > svg, .yu-mascot-peek > img { height: 110px !important; }
.yu-card--peeked { margin-top: 0; }

/* Sitting in the lower right corner of a card, on the fill (the site). */
.yu-mascot-corner {
    position: absolute;
    right: 12px;
    bottom: 8px;
    --yu-mascot-size: 104px;
    pointer-events: none;
}

/* ------------------------------------------------------------- wordmark --- */
/* The product name, lowercase, in Unageo Black, purple, tracked tight — and
   nothing beside it: no curl, no sparkle, no star. Every product, the same
   way (owner, 2026-09-23). `tone="ink"` or `tone="contrast"` only where the
   purple cannot stand (on ink). */

.yu-logo {
    font-family: var(--yu-font-logo);
    font-weight: var(--yu-w-logo);
    font-size: var(--yu-logo-size, 2rem);
    line-height: 1;
    letter-spacing: var(--yu-track-display);
    color: var(--yu-purple);
    text-decoration: none;
    display: inline-flex;
    align-items: baseline;
    white-space: nowrap;
}
.yu-logo--ink      { color: var(--yu-ink); }
.yu-logo--contrast { color: var(--yu-contrast-ink); }
.yu-logo--lg       { --yu-logo-size: clamp(2.6rem, 1.6rem + 4vw, 4.4rem); }
.yu-logo__spark    { display: none; }
/* The app's version after the name in a desktop app's rail (the one thing
   allowed beside the wordmark, owner 2026-09-30): very small, quiet, plain. */
.yu-logo__version {
    font-family: var(--yu-font);
    font-weight: var(--yu-w-ui);
    font-size: 11px;
    letter-spacing: 0;
    color: var(--yu-ink-faint);
    margin-left: 6px;
    user-select: none;
}

/* ------------------------------------------------------------ app tile ---- */
/* The site's app tile: an icon square, the name, two lines, a link. */

.yu-tile {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
    border: 1px solid var(--yu-line-card);
    border-radius: var(--yu-r-lg);
    background: var(--yu-surface-card);
    box-shadow: var(--yu-shadow-card);
    color: inherit;
    text-decoration: none;
    transition: box-shadow var(--yu-slow) var(--yu-ease), transform var(--yu-slow) var(--yu-ease),
                border-color var(--yu-fast) var(--yu-ease);
}
.yu-tile:hover { border-color: var(--yu-lav-300); box-shadow: var(--yu-shadow-hover); }
.yu-tile--tint { background: var(--yu-surface-accent); }
.yu-tile__icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--yu-lav-50);
    color: var(--yu-primary-deep);
    display: grid;
    place-items: center;
    flex: none;
}
.yu-tile__icon svg { width: 28px; height: 28px; }
.yu-tile__icon--pink { background: var(--yu-pink-soft); color: var(--yu-pink-ink); }
.yu-tile__icon--mint { background: var(--yu-mint-soft); color: var(--yu-mint-ink); }
.yu-tile__icon--mist { background: var(--yu-surface); }
.yu-tile__title { font-family: var(--yu-font-head); font-weight: var(--yu-w-head); font-size: 1.125rem; letter-spacing: var(--yu-track-head); line-height: 1.2; margin: 0; }
.yu-tile__body  { font-size: .875rem; color: var(--yu-ink-soft); margin: 0; }

/* ------------------------------------------------------------ stat card --- */
/* A row of figures: an uppercase label over a big number. The first card of
   the row may lead (`.yu-stat--accent`): palest lavender, purple figure. */

.yu-stats { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr)); }
.yu-stat { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 16px 20px 18px; }
.yu-stat .yu-label { margin: 0; }
.yu-stat__figure {
    font-family: var(--yu-font-head);
    font-weight: var(--yu-w-head);
    font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem);
    line-height: 1;
    letter-spacing: var(--yu-track-display);
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
    margin: 0;
}
.yu-stat__caption { font-size: .8125rem; color: var(--yu-ink-soft); margin: 0; }
.yu-stat--accent { background: var(--yu-surface-accent); }
.yu-stat--accent .yu-stat__figure { color: var(--yu-primary-ink); }

/* ---------------------------------------------------------------- empty --- */

.yu-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: clamp(28px, 6vw, 56px) 20px;
    color: var(--yu-ink-soft);
}
.yu-empty yumee-mascot { --yu-mascot-size: 132px; margin-bottom: 6px; }
.yu-empty__title {
    font-family: var(--yu-font-head);
    font-weight: var(--yu-w-head);
    font-size: 1.375rem;
    letter-spacing: var(--yu-track-head);
    line-height: 1.2;
    color: var(--yu-ink);
    margin: 0;
}
.yu-empty__body { margin: 0; max-width: 42ch; font-size: .9375rem; }

/* A stated problem: a quiet amber or red block. The character leaves the
   screen while one is showing. */
.yu-notice {
    padding: 13px 16px;
    border-radius: var(--yu-r-md);
    background: var(--yu-warn-soft);
    color: var(--yu-warn);
    font-size: .875rem;
    line-height: 1.55;
}
.yu-notice--danger { background: var(--yu-danger-soft); color: var(--yu-danger); }
.yu-notice--info   { background: var(--yu-lav-50); color: var(--yu-ink-soft); }
.yu-notice b { font-weight: 600; }

/* ------------------------------------------------------------ divider ----- */

.yu-rule {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--yu-line-card);
    margin-block: clamp(20px, 4vw, 40px);
}
.yu-rule::before, .yu-rule::after { content: ''; flex: 1; height: 1px; background: currentColor; }

/* ----------------------------------------------------------- overlays ----- */

.yu-scrim {
    position: fixed;
    inset: 0;
    background: var(--yu-scrim);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(12px, 3vw, 28px);
    z-index: 90;
}
.yu-modal {
    position: relative;
    width: min(560px, 100%);
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    background: var(--yu-surface-card);
    border: 1px solid var(--yu-line-card);
    border-radius: var(--yu-r-xl);
    box-shadow: var(--yu-shadow-lift);
}
.yu-modal__head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 14px;
    padding: 18px clamp(18px, 3vw, 26px);
    background: var(--yu-surface-card);
    border-bottom: 1px solid var(--yu-line-card);
}
.yu-modal__head h2, .yu-modal__head .yu-h3 { margin: 0; }
.yu-modal__body { display: flex; flex-direction: column; gap: 18px; padding: 20px clamp(18px, 3vw, 26px) 26px; }
.yu-modal__actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* A toast: paper, a hairline, a coloured dot for its meaning. */
.yu-toasts { position: fixed; right: 22px; bottom: 96px; z-index: 100; display: flex; flex-direction: column; gap: 10px; }
.yu-toast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 370px;
    padding: 12px 16px;
    background: var(--yu-surface-card);
    color: var(--yu-ink);
    border: 1px solid var(--yu-line-card);
    border-radius: var(--yu-r-md);
    box-shadow: var(--yu-shadow-hover);
    font-size: .875rem;
    line-height: 1.5;
}
.yu-toast::before { content: ''; flex: none; width: 9px; height: 9px; margin-top: .45em; border-radius: 50%; background: var(--yu-purple); }
.yu-toast--ok::before   { background: var(--yu-ok); }
.yu-toast--warn::before { background: var(--yu-warn); }
.yu-toast--err::before  { background: var(--yu-danger); }
@media (max-width: 700px) { .yu-toasts { left: 12px; right: 12px; } .yu-toast { max-width: none; } }

/* ------------------------------------------------------------ sign-in ----- */
/* The front door every app shares: the wordmark, the waving character over
   the card, a title, one plain line, one form or one button. */

.yu-auth {
    min-height: 100dvh;
    display: grid;
    /* minmax(0, 1fr), not an auto column: an unbroken word in a reason or an
       error (a link, an e-mail) would otherwise widen the column past a phone. */
    grid-template-columns: minmax(0, 1fr);
    place-items: center;
    padding: clamp(20px, 5vw, 56px) var(--yu-gutter);
    background: var(--yu-bg);
}
.yu-auth > * { width: min(440px, 100%); }
.yu-auth__card { width: 100%; }
.yu-auth__sub, .yu-auth__reason, .yu-auth__error, .yu-auth__foot { overflow-wrap: anywhere; }
.yu-auth__brand { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 8px; text-align: center; }
.yu-auth__mascot { display: flex; justify-content: center; margin-bottom: -26px; position: relative; z-index: 1; }
.yu-auth__mascot yumee-mascot { --yu-mascot-size: 150px; }
.yu-auth__title { font-family: var(--yu-font-head); font-weight: var(--yu-w-head); letter-spacing: var(--yu-track-head); font-size: 1.75rem; line-height: 1.15; margin: 14px 0 0; text-align: center; }
.yu-auth__sub { margin: 8px 0 22px; text-align: center; color: var(--yu-ink-soft); font-size: .9375rem; }
.yu-auth__foot { margin-top: 20px; text-align: center; font-size: .875rem; color: var(--yu-ink-soft); }
.yu-auth__foot a { color: var(--yu-primary-ink); }
.yu-auth__reason { margin: 0 0 18px; padding: 12px 14px; border-radius: var(--yu-r-sm); background: var(--yu-warn-soft); color: var(--yu-warn); font-size: .875rem; line-height: 1.5; }
.yu-auth__error  { margin: 0 0 18px; padding: 12px 14px; border-radius: var(--yu-r-sm); background: var(--yu-danger-soft); color: var(--yu-danger); font-size: .875rem; }
.yu-auth.is-locked .yu-auth__mascot { display: none; }

.yu-code {
    font-family: var(--yu-font-mono);
    font-size: 1.75rem;
    letter-spacing: .18em;
    text-align: center;
    padding: 16px;
    border-radius: var(--yu-r-sm);
    background: var(--yu-surface);
    border: 1px solid var(--yu-line-card);
    user-select: all;
}

kbd, .yu-kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    padding: 0 9px;
    font: 500 .75rem/1 var(--yu-font);
    color: var(--yu-ink);
    background: var(--yu-surface-card);
    border: 1px solid var(--yu-line-card);
    border-bottom-width: 2px;
    border-radius: var(--yu-r-sm);
}

/* =========================================================================
   THE MARKETING SITE ONLY — never in an app.

   The site (yumee.org) keeps a few drawn touches around its landing page and
   its hero: doodles (<yumee-mark>), a scribbled margin note, the squiggle
   underline, a speech bubble. An app draws none of them (owner, 2026-09-23:
   "apps = functionality, user efficiency, user friendly"); check-style.py
   refuses them in an app.
   ========================================================================= */

.yu-mark {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -.12em;
    color: var(--yu-purple);
    flex: none;
    pointer-events: none;
    line-height: 0;
}
.yu-mark--lg   { width: 2em; height: 2em; }
.yu-mark--xl   { width: 3em; height: 3em; }
.yu-mark--ink  { color: var(--yu-ink); }
.yu-mark--pink { color: var(--yu-pink); }
.yu-mark--mint { color: var(--yu-mint); }
.yu-mark--paper{ color: var(--yu-paper); }

.yu-doodle {
    position: absolute;
    pointer-events: none;
    color: var(--yu-purple);
    width: 44px;
    height: 44px;
}
.yu-doodle--tr { top: 14px; right: 16px; }
.yu-doodle--br { bottom: 14px; right: 16px; }
.yu-doodle--tl { top: 14px; left: 16px; }
.yu-doodle--out-tr { top: -18px; right: -10px; }
.yu-doodle--out-br { bottom: -16px; right: -8px; }
.yu-doodle--lg { width: 64px; height: 64px; }

.yu-margin-note {
    display: inline-block;
    font-family: var(--yu-font-scribble);
    font-weight: 500;
    font-size: .9375rem;
    line-height: 1.25;
    color: var(--yu-ink);
    transform: rotate(-8deg);
    max-width: 12ch;
}
.yu-margin-note--purple { color: var(--yu-purple); }

.yu-underline { position: relative; display: inline-block; }
.yu-underline::after {
    content: '';
    position: absolute;
    left: 4%;
    right: 0;
    bottom: -.12em;
    height: .32em;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none' fill='none' stroke='%238B6FD6' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M3 13C40 6 90 4 197 9'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
    pointer-events: none;
}

.yu-say {
    position: relative;
    display: inline-block;
    background: var(--yu-surface-card);
    border: 1px solid var(--yu-line-card);
    border-radius: 18px 22px 18px 20px;
    padding: 10px 16px;
    font-family: var(--yu-font-scribble);
    font-weight: 500;
    font-size: 1.0625rem;
    line-height: 1.3;
    color: var(--yu-ink);
    max-width: 24ch;
    box-shadow: var(--yu-shadow-card);
}

.yu-hill {
    position: relative;
    display: block;
    height: 46px;
    width: 100%;
    overflow: hidden;
}
.yu-hill::before {
    content: '';
    position: absolute;
    left: -30%;
    right: -30%;
    top: 8px;
    height: 320px;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    background: var(--yu-surface-tint);
}
