/* Joblin's components (internal/ui), one file after another: made at startup, never edited by hand. */

/* askbar/askbar.css */
/* The Ask band's bar (askbar.templ): a frosted pill up to 880px, the field
   with "Ask Joblin AI anything", and an ink circle with a yellow arrow that
   sends. Focused, the ring goes round the whole pill. The band it sits in,
   sticky under the page over a yellow fade, is the layout's (app.css). */
joblin-ask-bar { position: relative; display: block; max-width: 880px; }
/* What Joblin AI said while the chat was closed, for a moment, over the
   bar; pressed, it opens the chat. */
.askbar-peek { position: absolute; bottom: calc(100% + 8px); left: 0; max-width: min(360px, 100%); padding: 12px 16px; border: 1px solid var(--hair); border-radius: var(--r-bubble) var(--r-bubble) var(--r-bubble) 6px; background: var(--cream-hi); box-shadow: var(--shadow); color: var(--ink); font: var(--type-message); text-align: left; cursor: pointer; }
.askbar-form { display: flex; align-items: center; gap: 8px; width: 100%; margin: 0; padding: 8px 8px 8px 24px; border: 1px solid var(--glass-edge); border-radius: var(--r-pill); background: var(--glass); box-shadow: var(--shadow); -webkit-backdrop-filter: var(--blur-ask); backdrop-filter: var(--blur-ask); }
.askbar-form:focus-within { outline: var(--focus); outline-offset: var(--focus-offset); }
.askbar-in { flex: 1 1 auto; min-width: 0; height: 44px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: 400 17px/24px var(--sans); }
.askbar-in:focus-visible { outline: none; }
.askbar-in::placeholder { color: var(--ink-muted); }
.askbar-send { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: var(--r-round); background: var(--ink); color: var(--ground); cursor: pointer; transition: transform var(--t-fast) var(--ease); }
.askbar-send:active { transform: scale(0.92); }
.askbar-send:focus-visible { outline-offset: 2px; }
.askbar-send .icon { stroke-width: 2.2; }

/* autosave/autosave.css */
/* The element adds nothing to the layout: its Saved line and Save button
   sit in the form's own column. The line is the prototype's quiet "Saved"
   at the end of a section (spec 6.7): muted, until something goes wrong. */
joblin-autosave { display: contents; }
joblin-autosave > .saved:not(.error) { color: var(--ink-muted); font-weight: 500; }

/* badge/badge.css */
/* A company's badge (badge.templ): its initials on one of four tints, the
   brand's, the accent's, the information blue's and paper's. */
.cobadge { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: var(--brand-tint); color: var(--ink); font: 600 14px/1 var(--font-sans); }
.cobadge-1 { background: var(--accent-tint); }
.cobadge-2 { background: var(--info-tint); }
.cobadge-3 { background: var(--neutral-tint); }
.cobadge-lg { width: 44px; height: 44px; border-radius: 12px; font-size: 15px; }
.cobadge-sm { width: 32px; height: 32px; border-radius: 8px; font-size: 12px; }

/* button/button.css */
/* from uikit css/button.css */
/* The pill button (button.templ): a <button>, a link or a menu's
   <summary>. Its look is a variant (.btn-primary, .btn-secondary, .btn-quiet,
   .btn-danger, .btn-on-brand, .btn-text, .btn-text-danger) and a size
   (.btn-sm, .btn-lg, .btn-wide); .btn-secondary is the plain .btn: frosted
   cream, an ink edge. Pressed, it gives a little. Where a page puts one, and
   how wide it is there, is the page's. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 28px; border: 1px solid var(--edge); border-radius: var(--r-pill); background: var(--glass); color: var(--ink); font: 600 17px/24px var(--sans); text-align: center; text-decoration: none; cursor: pointer; transition: background-color var(--t-fast), transform var(--t-fast) var(--ease); }
.btn:hover { background: var(--cream-hi); }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); box-shadow: var(--shadow-brand); }
.btn-primary:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.btn-quiet { border-color: transparent; background: transparent; }
.btn-quiet:hover { background: var(--press); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #ffffff; }
.btn-danger:hover { background: #8f1c13; border-color: #8f1c13; }
/* On a card in the brand colour (the interview card): ink, white words, a
   white focus ring. */
.btn-on-brand { background: var(--ink); border-color: var(--ink); color: #ffffff; }
.btn-on-brand:hover { background: #000000; border-color: #000000; }
.btn-on-brand:focus-visible { outline-color: #ffffff; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.4; box-shadow: none; cursor: not-allowed; transform: none; }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 15px; line-height: 21px; }
.btn-lg { min-height: 56px; padding: 0 36px; font-size: 18px; }
.btn-wide { width: 100%; }
.btn .icon { flex: none; }
/* Text: reads like a link, no box. */
.btn-text { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; color: var(--ink); font: 500 15px/21px var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.btn-text:hover { color: var(--brand); }
.btn-text-danger { color: var(--danger); }
.btn-text-danger:hover { color: #8f1c13; }

/* card/card.css */
/* from uikit css/card.css */
/* The cards (card.templ): frosted cream glass with a light edge and a soft
   shadow, blurred over the ground. Green is the brand's fill with white
   words; a focus ring on it is white. */
.gcard { display: flex; flex-direction: column; gap: var(--s-4); padding: var(--s-6); border: 1px solid var(--glass-edge); border-radius: var(--r-card); background: var(--glass); box-shadow: var(--shadow); -webkit-backdrop-filter: var(--blur-card); backdrop-filter: var(--blur-card); }
.gcard-big { gap: var(--s-5); padding: 28px 32px; border-radius: var(--r-xl); }
.gcard-banner { flex-direction: row; flex-wrap: wrap; align-items: center; gap: var(--s-3); padding: var(--s-4) var(--s-5); border-radius: var(--r-banner); }
.gcard-banner > :first-child { flex: 1 1 240px; min-width: 0; }
.gcard-green { gap: var(--s-3); padding: 28px 32px; border: 0; border-radius: var(--r-xl); background: var(--brand); box-shadow: var(--shadow-alert); color: var(--on-brand); -webkit-backdrop-filter: none; backdrop-filter: none; }
.gcard-green a { color: inherit; }
.gcard-green :focus-visible { outline-color: #ffffff; }
@media (max-width: 860px) {
  .gcard-big, .gcard-green { padding: var(--s-6); }
}

/* chip/chip.css */
/* from uikit css/chip.css */
/* The chips (chip.templ, chip.js): pills, 48px high, frosted cream with an
   ink edge; on, they're ink with white words. A row of toggles (.chip), of
   radio chips (.chip-radio) or of filters (.chip-filter); .chip-sm is the
   chat's size. Something chosen in a picker is a .wf-chip, on, with a
   cross (.wf-chip-x) and, for the first job title, Main (.wf-chip-main); a
   suggestion to tap is a .wf-pick, off, with its count (.wf-pick-n). Where
   a row sits on a page is the page's. */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 1px solid var(--edge); border-radius: var(--r-pill); background: var(--glass); color: var(--ink); font: 500 16px/22px var(--sans); text-decoration: none; cursor: pointer; transition: background-color var(--t-fast), transform var(--t-fast) var(--ease); }
.chip:hover { background: var(--cream-hi); }
.chip:active { transform: scale(0.97); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #ffffff; }
.chip-sm { min-height: 44px; padding: 0 16px; font-size: 14px; line-height: 20px; }
/* A row of filters (LinkRow): small links, the one in force in ink; a gap
   between the groups. */
.chip-filter { min-height: 36px; padding: 0 14px; font-size: 14px; line-height: 20px; }
.chip-filter[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #ffffff; font-weight: 600; }
.chip-filter[aria-current="true"]:hover { background: var(--ink); }
.chip-apart { margin-left: 8px; }
.chip-radio { position: relative; }
.chip-radio input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip-radio:has(input:checked) { background: var(--ink); border-color: var(--ink); color: #ffffff; }
.chip-radio:has(input:focus-visible) { outline: var(--focus); outline-offset: var(--focus-offset); }

.wf-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.wf-chips:empty { display: none; }
.wf-chip { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; min-height: 48px; padding: 4px 6px 4px 22px; border-radius: var(--r-pill); background: var(--ink); color: #ffffff; font: 500 16px/22px var(--sans); }
.wf-chip-label { overflow-wrap: anywhere; }
.wf-chip-x { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer; }
.wf-chip-x:hover { background: rgba(255, 255, 255, 0.18); }
.wf-chip-x:focus-visible { outline: 2px solid #ffffff; outline-offset: -2px; }
.wf-chip-main { margin-left: 4px; padding: 0 8px; border-radius: var(--r-pill); background: var(--ground); color: var(--ink); font: 700 11px/18px var(--sans); letter-spacing: var(--caps-track); text-transform: uppercase; }
.wf-pick { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-height: 48px; padding: 0 22px; border: 1px solid var(--edge); border-radius: var(--r-pill); background: var(--glass); color: var(--ink); font: 500 16px/22px var(--sans); text-align: left; cursor: pointer; transition: background-color var(--t-fast), transform var(--t-fast) var(--ease); }
.wf-pick:hover { background: var(--cream-hi); }
.wf-pick:active { transform: scale(0.97); }
.wf-pick-n { color: var(--ink-muted); font-size: 14px; white-space: nowrap; }

/* combobox/combobox.css */
/* The typeahead (combobox.js): its list drops over what's under it as the
   prototype's menus do (spec 6.5), cream on a glass edge with the card's
   shadow, and the option Enter takes is marked yellow. */
.wf-combo { position: relative; }
.wf-list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; max-height: 296px; margin: 0; padding: 6px; overflow-y: auto; overscroll-behavior: contain; list-style: none; background: var(--cream-hi); border: 1px solid var(--glass-edge); border-radius: var(--r-banner); box-shadow: var(--shadow); }
.wf-opt { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border-radius: var(--r-nav); color: var(--ink); cursor: pointer; font: 400 16px/22px var(--sans); }
.wf-opt:hover { background: var(--glass); }
.wf-opt[aria-selected="true"] { background: var(--ground-soft); }
.wf-opt mark { background: none; color: var(--brand); font-weight: 600; }
.wf-opt-flag { flex: none; font-size: 20px; line-height: 22px; }
.wf-opt-label { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.wf-opt-note { flex: none; color: var(--ink-muted); font-size: 13px; line-height: 18px; white-space: nowrap; }
.wf-opt-tag { flex: none; padding: 0 10px; border-radius: var(--r-pill); background: var(--ink); color: var(--ground); font: 600 12px/20px var(--sans); white-space: nowrap; }

/* confirm/confirm.css */
/* What will go, and the second press. The element adds nothing to the
   layout: its parts sit in the form's column. The second press opens in
   place as the prototype's page error does (spec 6.7, 6.8): a cream banner
   with a danger edge on its left. */
joblin-confirm { display: contents; }
.danger-zone { display: flex; flex-direction: column; gap: 14px; padding: 18px 20px; border: 1px solid var(--hair); border-left: 3px solid var(--danger); border-radius: var(--r-banner); background: var(--cream-hi); }
.danger-zone p { margin: 0; }
.danger-zone .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }

/* disclosure/disclosure.css */
/* The opened item's one Details, its quiet rows, and the "⋯" menu. */
.dsc { border-top: 1px solid var(--hair); }
.dsc-sum, .dsc-row-sum { display: flex; align-items: center; gap: var(--s-2); min-height: 44px; cursor: pointer; list-style: none; }
.dsc-sum::-webkit-details-marker, .dsc-row-sum::-webkit-details-marker, .dsc-menu > summary::-webkit-details-marker { display: none; }
.dsc-sum { color: var(--ink-muted); font: var(--type-caps); letter-spacing: var(--caps-track); text-transform: uppercase; }
.dsc-sum:hover { color: var(--ink); }
.dsc-sum::after, .dsc-row-sum::after { content: ""; flex: none; width: 7px; height: 7px; margin-top: -3px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform var(--t-fast) var(--ease); }
.dsc[open] > .dsc-sum::after, .dsc-row[open] > .dsc-row-sum::after { margin-top: 3px; transform: rotate(-135deg); }
.dsc-sum:focus-visible, .dsc-row-sum:focus-visible { outline: var(--focus); outline-offset: 2px; border-radius: 8px; }
.dsc-body { display: flex; flex-direction: column; padding-bottom: var(--s-2); }
.dsc-row { border-top: 1px solid var(--hair); }
.dsc-body > .dsc-row:first-child { border-top: 0; }
.dsc-row-sum { justify-content: space-between; font: 500 15px/21px var(--sans); }
.dsc-row-label { flex: 1 1 auto; min-width: 0; }
.dsc-row-value { flex: none; color: var(--ink-muted); font: var(--type-sm); font-weight: 400; }
.dsc-row-body { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-1) 0 var(--s-4); }
.dsc-row-body p { margin: 0; }
.dsc-menu { position: relative; flex: none; }
.dsc-menu-btn { min-width: 44px; padding: 0; justify-content: center; }
.dsc-dots { font: 600 20px/1 var(--sans); letter-spacing: 1px; }
/* Under its button, right-aligned to it; where that runs past the screen's
   edge (a "⋯" near a phone's left edge), app.js moves it back on. */
.dsc-menu-list { position: absolute; top: calc(100% + 6px); right: 0; z-index: 5; display: flex; flex-direction: column; align-items: stretch; gap: var(--s-1); min-width: 240px; max-width: min(320px, calc(100vw - 48px)); padding: var(--s-2); border: 1px solid var(--glass-edge); border-radius: 20px; background: var(--cream-hi); box-shadow: var(--shadow); }
.dsc-menu-list > form, .dsc-menu-list > a, .dsc-menu-list > button, .dsc-menu-list > div { margin: 0; }
.dsc-menu-list .btn-text, .dsc-menu-list .act-more-item { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 0 var(--s-3); border-radius: 12px; text-align: left; text-decoration: none; }
.dsc-menu-list .btn-text:hover, .dsc-menu-list .act-more-item:hover { background: var(--press, rgba(20, 23, 15, .06)); }
.dsc-menu-list .pick-own { display: flex; flex-wrap: wrap; gap: var(--s-2); padding: var(--s-2) var(--s-3); }
.dsc-menu-list .dsc-menu-h { margin: var(--s-2) var(--s-3) 0; color: var(--ink-muted); font: var(--type-caps); letter-spacing: var(--caps-track); text-transform: uppercase; }

/* dropzone/dropzone.css */
/* The drop zone: the file field covers it, so dropping a file works
   without a script; with the script, the file's name shows. */
joblin-drop-zone { display: block; }
.drop { position: relative; }
.drop-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop-face { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 32px 24px; border: 2px dashed var(--border); border-radius: var(--radius-md); background: var(--surface-raised); text-align: center; color: var(--ink); }
.drop-face svg { color: var(--brand); }
.drop:hover .drop-face, .drop.dragging .drop-face { border-color: var(--brand); background: #fbfdfc; }
.drop:focus-within .drop-face { outline: 2px solid var(--brand); outline-offset: 2px; }
.drop-title { font-size: 18px; line-height: 26px; font-weight: 600; }
.drop-sub { color: var(--ink-muted); font-size: 14px; line-height: 20px; }
.drop-done { display: none; color: var(--brand); font-weight: 600; }
.drop-input:valid + .drop-face { border-style: solid; border-color: var(--brand); background: var(--brand-tint); }
.drop-input:valid + .drop-face .drop-done { display: block; }
.drop-input:valid + .drop-face .drop-title, .drop-input:valid + .drop-face .drop-sub { display: none; }
.drop[data-error] .drop-face { border-color: var(--danger); }
a.drop-face { text-decoration: none; }
a.drop-face:hover { border-color: var(--brand); background: #fbfdfc; }
a.drop-face:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* fills/fills.css */
/* The applicant's one-click fills (fills.templ): one small card, only while
   they have to act in a fill's tab now, with an accent dot and the button
   that brings the tab forward. In the sidebar's foot on a computer; under
   the top bar on a phone. */
joblin-fills { display: flex; flex-direction: column; gap: 8px; }
joblin-fills[hidden] { display: none !important; }
.fills-card { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1px solid var(--glass-edge); border-radius: var(--r-banner); background: var(--cream-hi); box-shadow: var(--shadow-raise); color: var(--ink); font: var(--type-small); }
.fills-line { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-weight: 600; }
.fills-dot { flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: var(--r-round); background: var(--ink); }
.fills-act { display: flex; flex-wrap: wrap; gap: 4px 12px; padding-left: 16px; }
/* The phone's board sits under the top bar while the page scrolls. */
.fills-phone { display: none; }
@media (max-width: 899px) {
  .fills-phone { display: flex; position: sticky; top: 56px; z-index: 23; padding: 8px 12px 0; }
  .fills-phone .fills-card { box-shadow: var(--shadow); }
}

/* filterbar/filterbar.css */
/* The sort and filter bar (filterbar.templ, filterbar.js): one row of
   small labelled controls (.fbar-btn: the name muted, the value in ink),
   each opening its menu (.fbar-list) under it; the filters in force under
   the row as pills (.fbar-pill) with a cross. On a phone the controls wrap
   and an open menu spans the bar, so nothing runs off the screen. Where
   the bar sits on a page is the page's. */
.fbar { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fbar-row { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.fbar-menu { position: relative; }
.fbar-btn { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 44px; padding: 0 14px 0 18px; border: 1px solid var(--edge); border-radius: var(--r-pill); background: var(--glass); color: var(--ink); font: 400 15px/21px var(--sans); cursor: pointer; list-style: none; user-select: none; white-space: nowrap; transition: background-color var(--t-fast), transform var(--t-fast) var(--ease); }
.fbar-btn::-webkit-details-marker { display: none; }
.fbar-btn::marker { content: ""; }
.fbar-btn:hover { background: var(--cream-hi); }
.fbar-btn:active { transform: scale(0.97); }
.fbar-btn:focus-visible { outline: var(--focus); outline-offset: var(--focus-offset); }
.fbar-menu[open] > .fbar-btn { border-color: var(--ink); background: var(--cream-hi); }
.fbar-name { color: var(--ink-muted); }
.fbar-value { overflow: hidden; max-width: 16ch; font-weight: 600; text-overflow: ellipsis; }
.fbar-chev { flex: none; color: var(--ink-muted); transition: transform var(--t-fast) var(--ease); }
.fbar-menu[open] .fbar-chev { transform: rotate(180deg); }
.fbar-list { position: absolute; top: calc(100% + 8px); left: 0; z-index: 30; display: flex; flex-direction: column; min-width: 220px; max-width: min(320px, calc(100vw - 32px)); max-height: min(60vh, 360px); margin: 0; padding: 6px; overflow-y: auto; border: 1px solid var(--hair); border-radius: var(--r-banner); background: var(--cream-hi); box-shadow: var(--shadow); list-style: none; }
.fbar-opt { display: flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: var(--r-nav); color: var(--ink); font: var(--type-sm); text-decoration: none; overflow-wrap: anywhere; }
.fbar-opt:hover, .fbar-opt:focus-visible { background: var(--press); }
.fbar-opt[aria-current="true"] { font-weight: 600; }
.fbar-opt[aria-current="true"]::after { content: ""; flex: none; box-sizing: content-box; width: 4px; height: 9px; margin: 0 4px 3px auto; padding-left: 0; border: solid var(--brand); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.fbar-opt { gap: 12px; }
.fbar-pills { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.fbar-pill { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 40px; padding: 0 12px 0 16px; border-radius: var(--r-pill); background: var(--ink); color: #ffffff; font: 500 14px/20px var(--sans); text-decoration: none; }
.fbar-pill:hover { background: #000000; }
.fbar-pill:focus-visible { outline: var(--focus); outline-offset: var(--focus-offset); }
.fbar-pill-name { opacity: 0.75; }
.fbar-pill-value { overflow: hidden; max-width: 24ch; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.fbar-x { flex: none; }
.fbar-clear { display: inline-flex; align-items: center; min-height: 40px; color: var(--ink); font: 500 14px/20px var(--sans); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) {
  /* A menu spans the bar under the row, not the control it opened from. */
  .fbar-menu { position: static; }
  .fbar-list { right: 0; max-width: none; top: auto; margin-top: 4px; }
}

/* Folded (Ready): one Filters button that says how many are on; open, the
   controls and the pills under it. */
.fbar-fold > summary::-webkit-details-marker { display: none; }
.fbar-fold-btn { gap: 8px; }
.fbar-n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--r-pill); background: var(--ink); color: var(--cream-hi); font: 600 12px/1 var(--sans); }
.fbar-fold-body { display: flex; flex-direction: column; gap: 8px; padding-top: var(--s-3); }

/* flowers/flowers.css */
/* from uikit css/flowers.css */
/* The flowers (flowers.templ): a fixed layer behind the page (z -1, above the ground only), at the
   screen's edges, turned; three on any screen, d and e from 1500px. */
.fl { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.fl-defs { position: absolute; width: 0; height: 0; }
.fl-f { position: absolute; display: block; height: auto; aspect-ratio: 120 / 220; filter: drop-shadow(0 6px 10px rgba(20, 23, 15, 0.14)); }
.fl-a { bottom: -30px; left: -62px; width: 170px; transform: rotate(-8deg); }
.fl-b { top: -30px; right: -44px; width: 150px; transform: rotate(168deg); }
.fl-c { right: -40px; bottom: -24px; width: 140px; transform: rotate(12deg); }
.fl-d { top: 34%; left: -48px; display: none; width: 120px; transform: rotate(80deg); }
.fl-e { top: 38%; right: -44px; display: none; width: 110px; transform: rotate(-82deg); }
@media (min-width: 1500px) {
  .fl-d, .fl-e { display: block; }
  .fl-a { left: -34px; width: 200px; }
}
@media (max-width: 860px) {
  .fl-a { bottom: -18px; left: -26px; width: 120px; }
  .fl-b { width: 110px; }
  .fl-c { width: 100px; }
}
@media print { .fl { display: none; } }

/* form/form.css */
/* from uikit css/form.css */
/* The line that says what went wrong with a form, and the one under a field. */
.error { margin: 0; color: var(--danger); font-weight: 600; }
.error-field { margin: 4px 0 0; color: var(--danger); font-size: 15px; line-height: 21px; font-weight: 600; }
/* The Saved line. What went wrong, said in it, is in the error line's red. */
.saved { min-height: 20px; margin: 0; color: var(--brand); font-weight: 600; }
.saved.error { color: var(--danger); }

/* A field with its label above it: the field 56px high, cream, an ink
   edge, 16px round; the label 600; a hint in the muted ink under it. */
.sect-row { display: flex; flex-direction: column; gap: 8px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 21px; font-weight: 600; }
.field-hint { font-weight: 400; color: var(--ink-muted); font-size: 14px; line-height: 20px; }
.input, .field input, .field textarea, .field select { width: 100%; min-height: 56px; padding: 0 18px; border: 1px solid var(--edge); border-radius: var(--r-input); background: var(--cream-hi); color: var(--ink); font: 400 18px/26px var(--sans); }
.field textarea { padding: 14px 18px; resize: vertical; }
.input::placeholder, .field input::placeholder, .field textarea::placeholder { color: var(--ink-muted); }
.field input[aria-invalid="true"], .input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--danger); }
.legend { margin-bottom: 8px; font-size: 15px; line-height: 21px; font-weight: 600; }

/* Radio cards are the option cards: a big frosted target with a title and
   a line. On, a 3px brand ring round it and a brand circle with a white
   tick in its corner. */
.radio-cards fieldset, fieldset.radio-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 0; padding: 0; border: 0; }
.radio-card { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 22px 56px 22px 22px; border: 1px solid var(--glass-edge); border-radius: var(--r-card); background: var(--glass); box-shadow: var(--shadow); cursor: pointer; transition: transform var(--t-mid) var(--ease); }
.radio-card:active { transform: scale(0.985); }
.radio-card input { position: absolute; opacity: 0; width: 18px; height: 18px; margin: 2px 0 0; }
.radio-ring { position: absolute; top: 18px; right: 18px; width: 24px; height: 24px; border: 1.5px solid var(--edge); border-radius: 50%; background: var(--cream-hi); }
.radio-card:has(input:checked) { box-shadow: 0 0 0 3px var(--brand), var(--shadow); }
.radio-card input:checked + .radio-ring { border: 0; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 14px no-repeat; }
.radio-card:has(input:focus-visible) { outline: var(--focus); outline-offset: var(--focus-offset); }
.radio-card:has(input:disabled) { cursor: not-allowed; opacity: 0.6; box-shadow: none; }
.radio-text { display: flex; flex-direction: column; gap: 6px; }
.radio-label { font: var(--type-option); letter-spacing: -0.01em; }
.radio-sub { color: var(--ink-muted); font-size: 15px; line-height: 21px; }

/* Switches: a 52 by 32 track, the knob sliding 20px when on; always with
   a word beside them. */
.switch-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--hair); }
.switch-row:first-child { border-top: 0; }
.switch-row-plain { border-top: 0; }
.switch-text { display: flex; flex-direction: column; gap: 2px; }
.switch-label { font-weight: 600; }
.switch-sub { color: var(--ink-muted); font-size: 15px; line-height: 21px; }
.switch { position: relative; flex: none; width: 52px; height: 32px; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.switch-track { position: absolute; inset: 0; border-radius: var(--r-round); background: var(--switch-off); transition: background-color var(--t-fast); }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: var(--cream-hi); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); transition: transform var(--t-mid) var(--ease); }
.switch input:checked + .switch-track { background: var(--brand); }
.switch input:checked + .switch-track::after { transform: translateX(20px); }
.switch input:focus-visible + .switch-track { outline: var(--focus); outline-offset: var(--focus-offset); }
.switch input:disabled + .switch-track { opacity: 0.45; }
.switch input:disabled { cursor: not-allowed; }

/* heading/heading.css */
/* The head of a part of a page (heading.templ): the title at 17px, then
   the count, the line about it in the muted colour, and what can be done
   to all of it at the end of the line. */
.heading-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.heading-title { margin: 0; font: 600 17px/24px var(--font-sans); }
.heading-n { color: var(--border); font-weight: 500; }
.heading-pill { min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--radius-pill); background: var(--accent); color: var(--ink); font: 600 12px/22px var(--font-sans); text-align: center; }
.heading-line { flex: 1 1 240px; min-width: 0; margin: 0; color: var(--ink-muted); font-size: 14px; line-height: 20px; }
.heading-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }
.heading-actions form { margin: 0; }

/* icon/icon.css */
/* The icons (icon.templ): line drawings in the words' colour, never shrunk
   by the row they sit in. */
.icon { flex: none; display: block; }

/* inbox/inbox.css */
/* An application in Interviewing, open in place: the insights card (the
   panel's blocks on a glass card) and its emails, each a glass disclosure
   with the text set for reading. Tokens only. */
.ibx { display: flex; flex-direction: column; gap: var(--s-6); }
.ibx-h { margin: 0; font: var(--type-h2); letter-spacing: var(--track-h2); }
.ibx-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--s-2) var(--s-4); margin: 0; }
.ibx-fact { display: contents; }
.ibx-facts dt { padding-top: 2px; color: var(--ink-muted); font: var(--type-caps); letter-spacing: var(--caps-track); text-transform: uppercase; }
.ibx-facts dd { margin: 0; font: var(--type-sm); overflow-wrap: anywhere; }
.ibx-times { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ibx-time { padding: 2px 12px; border: 1px solid var(--hair); border-radius: var(--r-pill); background: var(--cream-hi); font: var(--type-small); overflow-wrap: anywhere; }
.ibx-acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); }

.ibx-n { color: var(--ink-muted); font: var(--type-small); letter-spacing: 0; }
.ibx-list { display: flex; flex-direction: column; gap: var(--s-3); margin: 0; padding: 0; list-style: none; }
.ibx-item { scroll-margin-top: 24px; }
.ibx-mail { overflow: hidden; border: 1px solid var(--glass-edge); border-radius: var(--r-card); background: var(--glass); box-shadow: var(--shadow); -webkit-backdrop-filter: var(--blur-card); backdrop-filter: var(--blur-card); }
.ibx-sum { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-4); min-height: 44px; padding: var(--s-4) 52px var(--s-4) var(--s-5); cursor: pointer; list-style: none; transition: background-color var(--t-fast); }
.ibx-sum::-webkit-details-marker { display: none; }
.ibx-sum::after { content: ""; position: absolute; top: 26px; right: 24px; width: 8px; height: 8px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform var(--t-fast) var(--ease); }
.ibx-mail[open] > .ibx-sum::after { top: 30px; transform: rotate(-135deg); }
.ibx-sum:hover { background: var(--cream-hi); }
.ibx-sum-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ibx-subject { font: var(--type-row); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.ibx-from { color: var(--ink-muted); font: var(--type-sm); overflow-wrap: anywhere; }
.ibx-sum-end { display: flex; flex: none; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.ibx-when { color: var(--ink-muted); font: var(--type-small); white-space: nowrap; }
.ibx-body { padding: var(--s-1) var(--s-5) var(--s-5); border-top: 1px solid var(--hair); }
.ibx-body p { max-width: 68ch; margin: var(--s-4) 0 0; color: var(--ink); font: 400 16px/26px var(--sans); overflow-wrap: anywhere; }
/* The link look (.link): no box, ink 500, underlined 3px below; in a line
   of text it stays in the line. */
.ibx .link { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.ibx .link:hover { color: var(--brand); }
.ibx-body .ibx-gone { color: var(--ink-muted); font: var(--type-small); }
/* An opened email's first line: the sender's address and, on the right, its
   own "⋯". The menu's list opens over the emails below it: while it's open,
   the email stops clipping and comes above the glass of the next ones. */
.ibx-mail-head { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-3); }
.ibx-addr { min-width: 0; color: var(--ink-muted); font: var(--type-small); overflow-wrap: anywhere; }
.ibx-mail-head > :not(.ibx-addr) { flex: none; margin-left: auto; }
.ibx-mail:has(.ibx-mail-head [open]) { overflow: visible; }
.ibx-item:has(.ibx-mail-head [open]) { position: relative; z-index: 6; }

@media (max-width: 560px) {
  .ibx-sum { flex-direction: column; gap: var(--s-2); padding: var(--s-4) 48px var(--s-4) var(--s-4); }
  .ibx-sum-end { flex-direction: row; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); text-align: left; }
  .ibx-body { padding: var(--s-1) var(--s-4) var(--s-4); }
  .ibx-body p { font-size: 16px; line-height: 25px; }
  .ibx-facts { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .ibx-facts dd + dt, .ibx-fact + .ibx-fact dt { margin-top: var(--s-2); }
}
@media (prefers-reduced-motion: reduce) {
  .ibx-sum, .ibx-sum::after { transition: none; }
}

/* What matters now: the latest email, the invitation's facts, the action. */
.ibx-now { display: flex; flex-direction: column; gap: var(--s-4); }
.ibx-latest { display: flex; flex-direction: column; gap: var(--s-1); }
.ibx-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 var(--s-3); }
.ibx-latest .ibx-from { font: 600 15px/21px var(--sans); }
.ibx-latest .ibx-when { color: var(--ink-muted); font: var(--type-sm); }
.ibx-latest .ibx-subject { margin: 0; font: 600 17px/24px var(--sans); overflow-wrap: anywhere; }
.ibx-read-sum { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-1); cursor: pointer; list-style: none; }
.ibx-read-sum::-webkit-details-marker { display: none; }
.ibx-read-sum:focus-visible { outline: var(--focus); outline-offset: 2px; border-radius: 8px; }
.ibx-peek { display: -webkit-box; overflow: hidden; color: var(--ink-muted); font: var(--type-sm); -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.ibx-read-more, .ibx-read-less { min-height: 32px; }
.ibx-read-less, .ibx-read[open] .ibx-peek, .ibx-read[open] .ibx-read-more { display: none; }
.ibx-read[open] .ibx-read-less { display: inline-flex; }
.ibx-now .ibx-facts { margin: 0; }
.ibx-acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }

/* interview/interview.css */
/* Home's interview card, on the green card (card.Green): the kick, the
   title, the line and Prepare me under them. */
.interview-card { display: grid; justify-items: start; gap: 0; }
.interview-kick { margin: 0 0 var(--s-2); padding: 3px 10px; border-radius: var(--r-pill); background: var(--ground); color: var(--ink); font-size: 12px; font-weight: 700; line-height: 16px; letter-spacing: .06em; text-transform: uppercase; }
.interview-title { margin: 0; font-size: 28px; line-height: 34px; font-weight: 700; letter-spacing: -.01em; }
.interview-line { margin: 4px 0 var(--s-5); font-size: 18px; line-height: 26px; }
.interview-arrow { margin-left: var(--s-2); }
.interview-prepare form { margin: 0; }
@media (max-width: 600px) {
  .interview-title { font-size: 24px; line-height: 30px; }
  .interview-line { font-size: 17px; line-height: 24px; }
}

/* The prep in the chat's message: four numbered parts, each text with its
   Copy button under it. */
.prep { display: grid; gap: var(--s-3); margin: var(--s-2) 0 var(--s-3); padding-left: 1.4em; }
.prep-part > strong { display: block; }
.prep-text { display: block; margin-top: 4px; }
.prep-say { margin: 0; overflow-wrap: anywhere; }
.prep-say + .prep-say { margin-top: 4px; }
.prep-q { margin: var(--s-2) 0 0; font-weight: 600; }
.prep-none { margin: 2px 0 0; color: var(--ink-muted); }
.prep-copy { min-height: 32px; font-size: 14px; }

/* joblist/joblist.css */
/* A list of applications (joblist.templ, joblist.js), as the prototype's
   list card: rows on frosted glass, 28px round, a hairline between. A row:
   the title (17/24, 600) over its muted line on the left; what's at the
   end (the match, when, the status in capitals) and its one action on the
   right; on a phone the action goes under the words. An open row keeps its
   line, with everything about it on a cream card under it, inside the
   glass. In select mode each row has its tick, and the form for many shows
   above. */
joblin-job-list { display: block; }
.jl-tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); margin-bottom: var(--s-3); }
.jl-tools > .chips, .jl-tools > .fbar { flex: 1 1 auto; }
.jl-acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); margin-left: auto; }
.jl-rows { border: 1px solid var(--glass-edge); border-radius: var(--r-lg); background: var(--glass); box-shadow: var(--shadow); -webkit-backdrop-filter: var(--blur-card); backdrop-filter: var(--blur-card); }
.jl-empty { padding: 24px; border: 1px solid var(--glass-edge); border-radius: var(--r-lg); background: var(--glass); box-shadow: var(--shadow); color: var(--ink-muted); }
.jl-empty p { margin: 0; }

.jr { position: relative; border-top: 1px solid var(--hair); }
.jr:first-child { border-top: 0; }
.jr-line { display: flex; align-items: center; gap: var(--s-2) 14px; min-height: 76px; padding: 14px 24px; border-radius: var(--r-lg); transition: background-color var(--t-fast); }
.jr:not(:first-child) > .jr-line { border-top-left-radius: 0; border-top-right-radius: 0; }
.jr:not(:last-child) > .jr-line { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.jr:not(.is-open):hover > .jr-line, .jr:not(.is-open):focus-within > .jr-line { background: rgba(255, 249, 221, 0.7); }
.jr-text { display: flex; flex: 1 1 0; flex-wrap: wrap; align-items: center; gap: 0 10px; min-width: 0; }
.jr-title, .jr-note { flex: 1 1 100%; }
.jr-sub { flex: 0 1 auto; min-width: 0; }
.jr-badges { order: 2; }
.jr-note { order: 3; }
.jr-title { overflow: hidden; color: var(--ink); font: var(--type-row); letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; text-overflow: ellipsis; }
.jr-title:focus-visible { outline-offset: 2px; }
.jr-title::after { content: ""; position: absolute; inset: 0; }
.jr-sub { overflow: hidden; color: var(--ink-muted); font: var(--type-sm); white-space: nowrap; text-overflow: ellipsis; }
.jr-note { color: var(--ink-muted); font: var(--type-small); overflow-wrap: anywhere; }
.jr-badges { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.jr-badge { max-width: 100%; padding: 0 10px; border-radius: var(--r-pill); background: var(--press); color: var(--ink); font: 500 12px/20px var(--sans); overflow-wrap: anywhere; }
.jr-badge-handoff { background: color-mix(in srgb, var(--info) 14%, transparent); color: var(--info); }
.jr-badge-good { background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); }
.jr-badge-warn { background: var(--ink); color: var(--ground); }
.jr-end { display: flex; flex: none; align-items: center; gap: var(--s-4); }
.jr-slot { position: relative; white-space: nowrap; pointer-events: none; }
.jr-match { min-width: 44px; font: 600 15px/21px var(--sans); text-align: right; }
.jr-match:has(.jr-aside) { max-width: 168px; line-height: 18px; white-space: normal; }
.jr-aside { color: var(--ink-muted); font-size: 13px; font-weight: 400; }
.jr-when { min-width: 64px; color: var(--ink-muted); font: var(--type-small); text-align: right; }
.jr-due { font: 600 14px/20px var(--sans); }
.jr-stage { min-width: 112px; justify-content: flex-end; }
.jr-check, .jr-action, .jr-close { position: relative; z-index: 1; }
.jr-check { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--brand); }
.jr-action { display: flex; flex: none; align-items: center; gap: var(--s-2); }
.jr-action form { margin: 0; }
.jr-action .btn { min-width: 0; white-space: nowrap; }

/* Open: the row's line stays, its title the way to close it; under it
   everything about it, on cream, 22px round, inside the list's glass. */
.jr.is-open { padding-bottom: var(--s-4); }
.jr.is-open > .jr-line { background: none; }
.jr.is-open .jr-action { display: none; }
.jr.is-open .jr-title { white-space: normal; }
.jr.is-open .jr-title::after { content: none; }
.jr-close { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--r-round); background: var(--press); color: var(--ink); }
.jr-close:hover { background: rgba(20, 23, 15, 0.12); }
.jr-open { display: flex; flex-direction: column; gap: var(--s-5); margin: 0 var(--s-4); padding: var(--s-6); border: 1px solid var(--glass-edge); border-radius: var(--r-bubble); background: var(--cream-hi); box-shadow: var(--shadow-raise); }
.jr-open:focus { outline: none; }

/* Select mode: the ticks and the form for many, instead of Select. */
.jr-check, .jl-bulk { display: none; }
joblin-job-list[selecting] .jr-check { display: block; }
joblin-job-list[selecting] .jl-bulk { display: flex; }
joblin-job-list[selecting] .jl-select { display: none; }
.jl-bulk { flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); margin: 0 0 var(--s-3); padding: 10px 10px 10px 20px; border: 1px solid var(--glass-edge); border-radius: var(--r-pill); background: var(--glass); box-shadow: var(--shadow); }
.jl-bulk-n { flex: 1 1 200px; color: var(--ink-muted); font: var(--type-sm); }
.jl-bulk .btn { min-width: 0; }

/* A row a refresh brought in (shell.js) pops in. */
.jr.is-new > .jr-line { animation: pop 0.8s var(--ease); }

/* Phones: what's at the end in a column of its own, the one action under
   the words; no select mode (Ready is a stack there, and the chat does many
   at once). */
@media (max-width: 640px) {
  .jr-line { flex-wrap: wrap; gap: 6px 12px; padding: 16px 20px; }
  .jr-text { flex: 1 1 0; }
  .jr-end { flex-direction: column; align-items: flex-end; gap: 2px; }
  .jr-match, .jr-when, .jr-stage { min-width: 0; }
  .jr-match:has(.jr-aside) { max-width: 150px; }
  .jr-action { order: 9; flex-basis: 100%; }
  .jr.is-open { padding-bottom: var(--s-3); }
  .jr-open { margin: 0 var(--s-2); padding: var(--s-5) var(--s-4); }
  .jl-select, .jl-bulk, .jr-check { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .jr.is-new > .jr-line { animation: none; }
}

/* list/list.css */
/* from uikit css/list.css */
/* A list of rows (list.templ) on a glass card, 28px round, rows divided by
   a hairline. A row: the title (17/24, 600) and its line (15/21, muted) on
   the left, growing from 240px; the status or the badge and one action on
   the right; it wraps, so on a phone the action goes under the words. */
.rows { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; border: 1px solid var(--glass-edge); border-radius: var(--r-lg); background: var(--glass); box-shadow: var(--shadow); -webkit-backdrop-filter: var(--blur-card); backdrop-filter: var(--blur-card); overflow: hidden; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 16px 24px; border-top: 1px solid var(--hair); }
.row:first-child { border-top: 0; }
.row.is-new { animation: pop 0.8s var(--ease); }
.row-who { display: flex; flex: 1 1 240px; flex-direction: column; min-width: 0; }
.row-title { font: var(--type-row); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.row-line { color: var(--ink-muted); font: var(--type-sm); overflow-wrap: anywhere; }
.row-end { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.row-empty { display: block; padding: 24px; color: var(--ink-muted); }

/* A status: a dot in the word's colour and the word, in capitals. Not
   selected and the like have no dot. */
.st { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-muted); font: var(--type-caps); letter-spacing: var(--caps-track); text-transform: uppercase; white-space: nowrap; }
.st::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: var(--r-round); background: currentColor; }
.st-progress { color: var(--info); }
.st-success { color: var(--brand); }
.st-danger { color: var(--danger); }
.st-quiet::before { display: none; }
/* Needs you: the ink badge with yellow words. "New": the yellow kick. */
.need { display: inline-flex; align-items: center; padding: 2px 12px; border-radius: var(--r-pill); background: var(--ink); color: var(--ground); font: 600 12px/20px var(--sans); letter-spacing: var(--caps-track); text-transform: uppercase; white-space: nowrap; }
.kick { display: inline-flex; align-self: flex-start; padding: 0 12px; border-radius: var(--r-pill); background: var(--ground); color: var(--ink); font: 700 12px/22px var(--sans); letter-spacing: var(--caps-track); text-transform: uppercase; }
@media (max-width: 560px) {
  .row { padding: 16px 20px; }
  .row-end { flex: 1 1 100%; }
}

/* navitem/navitem.css */
/* A place in the navigation (navitem.templ): a row of 44px, the word, the
   count at the end in the muted ink, tabular. The page that's open is
   cream, raised, 600. Needs you's count, when something needs the person,
   is the ink badge with yellow figures. On a phone the same item is a tab
   in the top bar's row (shell.css). */
.nav-item { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 0 14px; border-radius: var(--r-nav); color: var(--ink); font: 500 17px/24px var(--sans); text-decoration: none; transition: background-color var(--t-fast); }
.nav-item .icon { color: var(--ink-muted); }
.nav-item:hover { background: rgba(255, 244, 196, 0.55); }
.nav-item[aria-current="page"] { background: var(--cream-hi); box-shadow: var(--shadow-raise); font-weight: 600; }
.nav-label { flex-grow: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.nav-n { color: var(--ink-muted); font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.nav-pill { min-width: 24px; padding: 2px 9px; border-radius: var(--r-pill); background: var(--ink); color: var(--ground); font: 600 12px/20px var(--sans); font-variant-numeric: tabular-nums; text-align: center; }

/* needs/needs.css */
/* What needs the person (needs.templ). The most urgent one is a card in
   the accent's colours: its badge on the accent's tint, what it needs in
   bold, the job under it, by when at the end; what to do about it under
   that, in line with the words, on one row where it fits (the code's box,
   its button, a link). The application's block of actions is drawn by the
   page (partials.html); here it's laid out as one row. On a phone, a strip
   with the count and which comes first. */
.urgent { display: flex; flex-direction: column; gap: 14px; padding: 18px 20px; border: 1px solid var(--accent-line); border-radius: 14px; background: var(--accent-wash); }
.urgent-head { display: flex; align-items: center; gap: 14px; }
.urgent .cobadge { background: var(--accent-tint); }
.urgent-text { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; }
.urgent-cause { margin: 0; font: 600 15px/22px var(--font-sans); }
.urgent-sub { overflow: hidden; color: var(--ink-muted); font-size: 14px; line-height: 20px; white-space: nowrap; text-overflow: ellipsis; }
.urgent-due { flex: none; font-size: 13px; font-weight: 600; white-space: nowrap; }
.urgent-body { display: flex; flex-direction: column; gap: 8px; padding-left: 54px; }
.urgent-more { align-self: flex-start; font-size: 14px; font-weight: 600; }
/* The block of actions, as one row: no sentence (the card says it), the
   code's box beside its button, the links after. */
.urgent .act { display: flex; flex-flow: row wrap; align-items: center; gap: 8px 16px; }
.urgent .act > .act-line:first-child { display: none; }
.urgent .act-main { flex-direction: row; flex-wrap: wrap; align-items: center; }
.urgent .act-main .btn, .urgent .stop-actions .btn { width: auto; }
.urgent .code-box { flex-direction: row; flex-wrap: wrap; align-items: center; }
.urgent .code-box .sect-row { flex-direction: row; }
.urgent .code-box .field { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.urgent .code-input { width: 180px; height: 40px; padding: 0 14px; border-radius: 10px; font-size: 16px; letter-spacing: 0.15em; }
.urgent .code-box .btn-primary { min-width: 0; min-height: 40px; border-radius: 10px; }
.urgent .code-note { flex-basis: 100%; }
.urgent .act-links { gap: 0 16px; }

.strip { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--accent-line); border-radius: 14px; background: var(--accent-wash); color: var(--ink); text-decoration: none; }
.strip-n { min-width: 26px; height: 26px; padding: 0 7px; border-radius: var(--radius-pill); background: var(--accent); font: 600 13px/26px var(--font-sans); text-align: center; }
.strip-text { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; }
.strip-title { font-weight: 600; }
.strip-line { overflow: hidden; color: var(--ink-muted); font-size: 13px; line-height: 18px; white-space: nowrap; text-overflow: ellipsis; }

@media (max-width: 640px) {
  .urgent { padding: 16px; }
  .urgent-head { flex-wrap: wrap; }
  .urgent-due { flex-basis: 100%; padding-left: 54px; }
  .urgent-body { padding-left: 0; }
}

/* notice/notice.css */
/* The notice (notice.templ): a box that tells the person something.
   Calm is the white box, Ready the green banner, Slot and Good the
   dashboard's notice at the top, Line one line in a box, Warn a warning.
   Busy puts the spinner before a title. Where a page puts a notice is the
   page's (app.css); the email-to-sort card on the dashboard (track-card,
   partials.html) borrows .calm's look until the dashboard's own
   components come. */
.calm { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; padding: 20px 24px; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); }
.calm-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 320px; }
.calm-title { font-size: 17px; line-height: 24px; font-weight: 600; }
.calm-body { color: var(--ink-muted); font-size: 14px; line-height: 20px; }
.banner-ready { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 24px; border-radius: var(--radius-md); background: var(--brand-tint); }
.banner-text { display: flex; flex-direction: column; gap: 2px; }
.banner-title { color: var(--brand); font-weight: 600; }
.notice-slot { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; padding: 16px 20px; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); }
.notice-good { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.notice-good .calm-body { color: var(--on-brand); }
.notice { margin: 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-raised); }
.price-warn { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; border-left: 4px solid var(--danger, #b3261e); background: var(--surface); border-radius: var(--radius-sm, 8px); }
.spinner { display: inline-block; width: 14px; height: 14px; margin-right: 6px; border: 2px solid var(--brand-tint); border-top-color: var(--brand); border-radius: 50%; vertical-align: -2px; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .spinner { animation: none; }
}

/* placepicker/placepicker.css */
/* The place picker (placepicker.templ, placepicker.js), as the prototype's
   places (spec 2.2, 2.4): its hint, the places as chips, and its field with
   a default pill, Add, beside it. In Settings it's as wide as the
   fields around it. The chips themselves (.wf-chip) are app.css's, shared
   with the welcome steps' other pickers, until chips are a component. */
joblin-place-picker { display: block; }
.pp-hint { margin: 0 0 10px; color: var(--ink-muted); font: var(--type-small); }
.pp-chips { margin-bottom: 14px; }
.pp-add { display: flex; align-items: center; gap: 8px; }
.pp-add .wf-combo { flex: 1 1 auto; min-width: 0; }
joblin-place-picker .wf-combo > input { width: 100%; }
.sect .pp-add, .sect joblin-place-picker > .wf-combo { max-width: 520px; }

/* search/search.css */
/* The search box (search.templ): a 48px glass pill, the magnifier inside it on the
   left, the key that finds it ("/") on the right until it's used. Its
   list of applications (search.js) drops under it, as wide as a phone
   allows. */
joblin-search { display: block; position: relative; }
joblin-search .search-form { position: relative; display: flex; flex-direction: row; gap: 0; margin: 0; }
joblin-search .search-form .icon { position: absolute; z-index: 1; top: 16px; left: 18px; color: var(--ink-muted); pointer-events: none; }
.search-in { width: 280px; max-width: 100%; height: 48px; padding: 0 48px 0 44px; border: 1px solid var(--glass-edge); border-radius: var(--r-pill); background: var(--glass); box-shadow: var(--shadow); color: var(--ink); font: 400 16px/22px var(--sans); -webkit-backdrop-filter: var(--blur-ask); backdrop-filter: var(--blur-ask); }
.search-in::placeholder { color: var(--ink-muted); opacity: 1; }
.search-in:focus { background: var(--cream-hi); }
.search-in:focus-visible { outline: var(--focus); outline-offset: var(--focus-offset); }
.search-key { position: absolute; top: 13px; right: 14px; padding: 0 7px; border: 1px solid var(--edge); border-radius: 8px; background: var(--cream-hi); color: var(--ink-muted); font: 500 12px/20px var(--sans); pointer-events: none; }
.search-form:focus-within .search-key, .search-in:not(:placeholder-shown) ~ .search-key { display: none; }
.search-list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; width: min(400px, calc(100vw - 32px)); max-height: min(60vh, 420px); margin: 0; padding: 6px; overflow-y: auto; overscroll-behavior: contain; list-style: none; background: var(--cream-hi); border: 1px solid var(--hair); border-radius: var(--r-banner); box-shadow: var(--shadow); }
.search-list[hidden] { display: none; }
.search-opt { border-radius: var(--r-nav); }
.search-opt[aria-selected="true"] { background: var(--press); }
.search-link { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 10px; color: var(--ink); text-decoration: none; }
.search-main { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.search-co { overflow: hidden; font: 600 15px/21px var(--sans); text-overflow: ellipsis; white-space: nowrap; }
.search-title { overflow: hidden; color: var(--ink-muted); font: var(--type-small); text-overflow: ellipsis; white-space: nowrap; }
.search-list mark { background: none; color: var(--brand); font-weight: 700; }
.search-state { flex: none; color: var(--ink-muted); font: 500 13px/18px var(--sans); white-space: nowrap; }
.search-none { padding: 12px 10px; color: var(--ink-muted); font: var(--type-small); }
@media (hover: none) {
  .search-key { display: none; }
  .search-in { padding-right: 18px; }
}

/* section/section.css */
/* The section card: Settings and the tracking page are made of them. */
.sect { scroll-margin-top: 24px; display: flex; flex-direction: column; gap: 16px; padding: 24px; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); }
.sect-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.sect-head h2 { margin: 0; font: 600 24px/30px var(--font-display); }
.sect-lead { margin: 0; color: var(--ink-muted); }
.sect form { display: flex; flex-direction: column; gap: 16px; margin: 0; }

@media (max-width: 640px) {
  .sect { padding: 16px; }
}

/* shell/shell.css */
/* The frame of a signed-in page (shell.templ). Which part shows at which
   width, and the columns they make with the page, are the layout's
   (app.css, the frame). */

/* The sidebar: 260px of the sidebar's yellow, frosted, a hairline at its
   right; the sign at the top, the places, then at the bottom the "Applying
   for you" card and the account with its bell. */
.side { position: sticky; z-index: 2; top: 0; display: flex; flex-direction: column; gap: 22px; height: 100vh; height: 100dvh; padding: 24px 14px 20px max(20px, env(safe-area-inset-left, 0px)); overflow-y: auto; background: var(--side); border-right: 1px solid rgba(20, 23, 15, 0.08); -webkit-backdrop-filter: var(--blur-side); backdrop-filter: var(--blur-side); }
.side > .sign { align-self: center; margin-bottom: 6px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-h { padding: 0 14px 6px; color: var(--ink-muted); font: var(--type-caps); letter-spacing: var(--caps-track); text-transform: uppercase; }
.side-foot { display: flex; flex-direction: column; gap: 12px; margin-top: auto; }
.side-me { display: flex; align-items: center; gap: 4px; }
.side-me .acct { flex: 1 1 auto; min-width: 0; }

/* "Applying for you": a cream card, raised; its switch a button that sends
   its form, 52 by 32, the brand's green when applying goes on. On a phone
   it's a pill in the top bar, without its line. */
.applying { display: block; }
.applying-form { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 16px; border-radius: var(--r-banner); background: var(--cream-hi); box-shadow: var(--shadow-raise); }
.applying-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.applying-title { font-weight: 600; }
.applying-line { margin: 0; color: var(--ink-muted); font: var(--type-small); }
.applying-line.error { color: var(--danger); font-weight: 600; }
.switch-btn { position: relative; flex: none; width: 52px; height: 32px; padding: 0; border: 0; border-radius: var(--r-round); background: var(--switch-off); cursor: pointer; transition: background-color var(--t-fast); }
.switch-btn[aria-checked="true"] { background: var(--brand); }
.switch-knob { position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: var(--cream-hi); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); transition: transform var(--t-mid) var(--ease); }
.switch-btn[aria-checked="true"] .switch-knob { transform: translateX(20px); }
.switch-btn:disabled, .switch-btn[aria-busy="true"] { cursor: progress; }

/* The account: the ink avatar with a yellow initial, a glass menu. On a
   computer it opens upwards, from the bottom of the sidebar. */
.acct > summary { list-style: none; }
.acct > summary::-webkit-details-marker { display: none; }
.acct-who { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 8px; border-radius: var(--r-nav); cursor: pointer; }
.acct-who:hover { background: rgba(255, 244, 196, 0.55); }
.acct .avatar { width: 32px; height: 32px; background: var(--ink); color: var(--ground); font-size: 13px; }
.acct-name { min-width: 0; overflow: hidden; font-size: 15px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.acct-panel { display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow); }
.acct-panel form { margin: 0; }
.acct-side .acct-panel { top: auto; right: auto; bottom: calc(100% + 8px); left: 0; }
.acct-phone .acct-panel { z-index: 30; width: min(300px, calc(100vw - 32px)); }

/* The updates: a bell, with an ink dot while some are new. */
.bell { position: relative; display: inline-flex; flex: none; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--r-round); color: var(--ink); }
.bell:hover { background: rgba(255, 244, 196, 0.55); }
.bell-dot { position: absolute; top: 10px; right: 11px; width: 8px; height: 8px; border: 2px solid var(--side); border-radius: 50%; background: var(--ink); box-sizing: content-box; }

/* The phone's top bar: the sign top left, the tools on its right, the row
   of places under them, full width. */
.pbar { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0 16px 10px; background: var(--side); border-bottom: 1px solid rgba(20, 23, 15, 0.08); }
.pbar .sign-board { padding-right: 12px; padding-left: 12px; }
.pbar-tools { display: flex; flex: 1 1 auto; align-items: center; justify-content: flex-end; gap: 4px; min-width: 0; padding-top: 12px; }
.pbar .applying { flex: 0 1 auto; min-width: 0; }
.pbar .applying-form { padding: 6px 6px 6px 12px; border-radius: var(--r-pill); }
.pbar .applying-title { overflow: hidden; font-size: 15px; white-space: nowrap; text-overflow: ellipsis; }
.pbar .applying-line { display: none; }
.pbar .acct-who { min-height: 40px; padding: 2px; }
.pbar .bell { width: 40px; height: 40px; }
/* On phones the pill says "Applying" and its switch, so the sign, the pill,
   the bell and the account fit on one row down to 360px; screen readers
   still hear "Applying for you". Narrower, the tools go under the sign. */
@media (max-width: 440px) {
  .pbar .applying-for { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.pbar .fills-phone { position: static; flex: 1 1 100%; padding: 0; }

/* The row of places: it scrolls sideways under the finger, snapping, with
   no scrollbar; an edge fades while there's more to see past it
   (data-more-left, data-more-right, kept by shell.js). The "more" button
   scrolls it on. */
.ptabs { position: relative; display: block; flex: 1 1 100%; min-width: 0; margin: 0 -16px; }
/* The row's 7px of padding above and below holds the focus ring, which
   the scroller would clip; its scroll padding keeps a focused place clear
   of the fade and the "more" button. */
.ptabs-row { display: flex; gap: 4px; margin: -7px 0; padding: 7px 16px; overflow-x: auto; scroll-padding-inline: 16px 64px; scroll-snap-type: x proximity; scrollbar-width: none; overscroll-behavior-x: contain; }
.ptabs-row::-webkit-scrollbar { display: none; }
.ptabs-row .nav-item { flex: none; gap: 10px; white-space: nowrap; scroll-snap-align: start; }
.ptabs-row .nav-label { overflow: visible; }
.ptabs[data-more-right]:not([data-more-left]) .ptabs-row { -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 56px), transparent 100%); mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 56px), transparent 100%); }
.ptabs[data-more-left]:not([data-more-right]) .ptabs-row { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 100%); mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 100%); }
.ptabs[data-more-left][data-more-right] .ptabs-row { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 calc(100% - 56px), transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 calc(100% - 56px), transparent 100%); }
.ptabs-more { position: absolute; z-index: 2; top: 0; right: max(10px, env(safe-area-inset-right, 0px)); display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--edge); border-radius: var(--r-round); background: var(--cream-hi); box-shadow: 0 4px 14px rgba(20, 23, 15, 0.18); color: var(--ink); cursor: pointer; }
.ptabs-more.is-nudging { animation: nudge 1.6s ease-in-out 3; }

/* sign/sign.css */
/* from uikit css/sign.css */
/* The sign (sign.templ): a wooden board with two screws, hanging from two
   twisted ropes, swaying 1.4° either way over 7s around a point above it.
   Big on the landing and the setup steps, smaller in the sidebar, smallest
   and still in the phone's top bar. */
.sign { position: relative; display: inline-block; flex: none; color: var(--ink); text-decoration: none; transform-origin: 50% -40px; animation: sway 7s ease-in-out infinite alternate; }
.sign-big { margin-top: 30px; }
.sign-side { margin-top: 20px; }
.sign-bar { margin-top: 14px; animation: none; }
.sign-rope { position: absolute; z-index: 0; bottom: calc(100% - 6px); width: 5px; height: 90px; border-radius: 3px; background: repeating-linear-gradient(160deg, #D8BC8A 0 3px, #8C6B3C 3px 6px); box-shadow: 1px 0 2px rgba(20, 23, 15, 0.3); transform-origin: 50% 100%; }
.sign-rope-l { left: 9%; transform: rotate(5deg); }
.sign-rope-r { right: 9%; transform: rotate(-5deg); }
.sign-side .sign-rope { height: 40px; }
.sign-bar .sign-rope { height: 24px; }
.sign-board { position: relative; z-index: 1; display: inline-flex; align-items: center; padding: 10px 24px 12px; border: 2px solid #7a5128; border-radius: var(--r-board);
  background: repeating-linear-gradient(92deg, rgba(94, 58, 24, 0) 0 9px, rgba(94, 58, 24, 0.10) 9px 10px, rgba(94, 58, 24, 0) 10px 19px, rgba(94, 58, 24, 0.06) 19px 20px), linear-gradient(180deg, #EBC888 0%, #DDAE6C 55%, #CF9D5A 100%);
  box-shadow: inset 0 2px 0 rgba(255, 244, 214, 0.55), inset 0 -3px 0 rgba(94, 58, 24, 0.25), 0 14px 22px rgba(20, 23, 15, 0.28); }
.sign-board::before, .sign-board::after { content: ""; position: absolute; top: 6px; width: 7px; height: 7px; border-radius: var(--r-round); background: radial-gradient(circle at 35% 35%, #8d8d86, #3b3b36); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35); }
.sign-board::before { left: 9%; margin-left: -2px; }
.sign-board::after { right: 9%; margin-right: -2px; }
.sign-bar .sign-board { padding: 6px 16px 8px; }
.sign:focus-visible { outline: none; }
.sign:focus-visible .sign-board { outline: var(--focus); outline-offset: var(--focus-offset); }

/* The wordmark: the J (1.02em high) tucked into "oblin". */
.wm { display: inline-flex; align-items: baseline; color: var(--ink); font: var(--type-mark); letter-spacing: -0.01em; white-space: nowrap; }
.wm-j { display: block; flex: none; align-self: baseline; width: auto; height: 1.02em; aspect-ratio: 118 / 182; margin-right: -0.15em; }
.sign-bar .wm { font-size: 20px; line-height: 26px; }
.wm-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* story/story.css */
/* The promise line on a job's row, under the employer and place: green when
   it ranks the job up, muted when down. It wraps, never cut short. */

/* The company's story in the job's panel. */
.story-block h4 { margin: var(--s-3) 0 var(--s-1); color: var(--ink-muted); font: var(--type-caps); }
.story-what { margin: 0 0 var(--s-2); }
.story-facts { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 0 0 var(--s-2); padding: 0; list-style: none; }
.story-facts li { max-width: 100%; padding: 0 10px; border-radius: var(--r-pill); background: var(--press); color: var(--ink); font: 500 12px/20px var(--sans); overflow-wrap: anywhere; }
.story-growth { margin: 0 0 var(--s-2); color: var(--brand); }
.story-line { margin: 0 0 var(--s-2); }
.story-down { color: var(--ink-muted); }
.story-thin { margin: 0 0 var(--s-2); padding: var(--s-2) var(--s-3); border-radius: var(--r-input); background: var(--press); color: var(--ink-muted); }
.story-sources ul { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.story-sources li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; min-width: 0; font: var(--type-small); overflow-wrap: anywhere; }
.story-sources a { min-width: 0; color: var(--ink); overflow-wrap: anywhere; }
.story-kind { flex: none; color: var(--ink-muted); font-weight: 600; }
.story-when { flex: none; color: var(--ink-muted); }
.story-made { margin: var(--s-2) 0 0; color: var(--ink-muted); font: var(--type-small); }

/* swipe/swipe.css */
/* Ready on a phone (swipe.templ, swipe.js): the top card frosted cream
   glass, 32px round, two cards peeking out behind it; the company over the job's title
   in the display face, what Joblin made for it, then Skip and Send, Send
   twice as wide. Without a script every card is there, one under another. */
joblin-swipe-stack { display: flex; flex-direction: column; gap: var(--s-3); }
.sw-deck { position: relative; display: grid; gap: 12px; }
.sw-back { display: none; }
.sw-card { display: flex; flex-direction: column; gap: 14px; min-height: 374px; padding: var(--s-6); border: 1px solid var(--glass-edge); border-radius: var(--r-xl); background: var(--glass); box-shadow: var(--shadow); -webkit-backdrop-filter: var(--blur-card); backdrop-filter: var(--blur-card); touch-action: pan-y; user-select: none; transition: transform 0.2s ease, opacity 0.2s ease; }
.sw-head { display: flex; align-items: center; gap: 12px; }
.sw-who { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; }
.sw-company { font-weight: 600; }
.sw-place { overflow: hidden; color: var(--ink-muted); font: var(--type-small); white-space: nowrap; text-overflow: ellipsis; }
.sw-match { flex: none; max-width: 52%; font-size: 15px; font-weight: 600; line-height: 20px; text-align: right; overflow-wrap: anywhere; }
.sw-fn { color: var(--ink-muted); font-size: 13px; font-weight: 400; }
.sw-note { margin: 0; color: var(--ink-muted); font: var(--type-small); }
.sw-title { margin: 0; font: 700 24px/30px var(--sans); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.sw-title a { color: inherit; text-decoration: none; }
.sw-tailored { margin: 0; font: var(--type-sm); }
.sw-tailored b { font-weight: 600; }
.sw-tag { align-self: flex-start; padding: 0 10px; border-radius: var(--r-pill); background: var(--press); color: var(--ink); font: 500 12px/20px var(--sans); }
.sw-actions { display: flex; gap: 10px; margin-top: auto; }
.sw-actions form { display: flex; flex: 1 1 0; margin: 0; }
.sw-actions form[data-stack-send] { flex-grow: 2; }
.sw-actions .btn { flex: 1 1 auto; min-width: 0; min-height: 52px; }
.sw-fill { flex: 2 1 0; min-width: 0; }
.sw-fill .browser, .sw-fill .btn { width: 100%; }
.sw-hold { flex: 2 1 0; margin: 0; align-self: center; color: var(--ink-muted); font: var(--type-small); }
.sw-hint, .sw-done { margin: 0; color: var(--ink-muted); font: var(--type-small); text-align: center; }
.sw-undo { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: 8px 8px 8px 22px; border-radius: var(--r-pill); background: var(--ink); box-shadow: var(--shadow-toast); color: #ffffff; font: 500 15px/21px var(--sans); }
.sw-undo[hidden] { display: none; }
.sw-undo .btn-text { min-height: 36px; padding: 0 14px; color: #ffffff; text-decoration: underline; text-underline-offset: 3px; }
.sw-undo .btn-text:focus-visible { outline-color: #ffffff; }

/* With the script: a stack. Only the top card shows, over two backing
   cards while more wait under it. */
joblin-swipe-stack:defined .sw-deck { display: block; min-height: 392px; padding-top: 18px; }
joblin-swipe-stack:defined .sw-card { position: relative; z-index: 1; height: auto; min-height: 374px; }
joblin-swipe-stack:defined .sw-card:not(.is-top) { display: none; }
joblin-swipe-stack:defined.has-more .sw-back { display: block; position: absolute; border-radius: var(--r-xl); }
joblin-swipe-stack:defined .sw-back-2 { top: 0; right: 24px; left: 24px; height: 360px; background: rgba(255, 244, 196, 0.5); }
joblin-swipe-stack:defined .sw-back-1 { top: 9px; right: 12px; left: 12px; height: 370px; border: 1px solid var(--glass-edge); background: rgba(255, 244, 196, 0.72); }
.sw-card.go-right { transform: translateX(110%) rotate(6deg); opacity: 0; }
.sw-card.go-left { transform: translateX(-110%) rotate(-6deg); opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .sw-card { transition: none; }
}

/* threads/threads.css */
/* The chat's tabs and what Needs you lists (threads.templ), and the bar over
   an application's conversation. Which view shows, and where they sit in the
   chat, is the chat's own (app.css). */
joblin-threads { display: contents; }
.dock-tabs { display: flex; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--hair); }
.dock-tab { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 1px solid var(--edge); border-radius: var(--r-pill); background: var(--glass); color: var(--ink); font: 600 14px/20px var(--sans); text-decoration: none; transition: background-color var(--t-fast); }
.dock-tab:hover { background: var(--cream-hi); }
.dock-tab[aria-current="true"] { border-color: var(--ink); background: var(--ink); color: #ffffff; }
.dock-tab-n { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 7px; border-radius: var(--r-pill); background: var(--ink); color: var(--ground); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.dock-tab[aria-current="true"] .dock-tab-n { background: var(--ground); color: var(--ink); }
/* The lists, as the prototype's (spec 6.4): Needs you is a card of rows
   on cream, a conversation a row with its company's badge on the left,
   divided by hairlines; the conversations that need nothing are one row,
   "Other conversations (N)", with a yellow dot when one has news, that
   opens on the same card. */
.threads-list { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.threads-h { display: flex; align-items: center; gap: 6px; margin: 0 4px; color: var(--ink-muted); font: var(--type-caps); letter-spacing: var(--caps-track); text-transform: uppercase; }
.threads-none { margin: 0; padding: 18px 20px; border: 1px solid var(--hair); border-radius: var(--r-bubble); background: var(--cream-hi); color: var(--ink-muted); font: var(--type-sm); }
.threads-items { display: flex; flex-direction: column; margin: 0; padding: 0; overflow: hidden; border: 1px solid var(--hair); border-radius: var(--r-bubble); background: var(--cream-hi); box-shadow: var(--shadow-row); list-style: none; }
.threads-items > li + li { border-top: 1px solid var(--hair); }
.threads-other { margin: 0; }
.threads-other > summary { display: flex; align-items: center; gap: 8px; min-height: 52px; margin: 0; padding: 0 18px; border: 1px solid var(--hair); border-radius: var(--r-bubble); background: var(--cream-hi); box-shadow: var(--shadow-row); color: var(--ink); font: 600 15px/21px var(--sans); letter-spacing: 0; text-transform: none; cursor: pointer; list-style: none; transition: background-color var(--t-fast); }
.threads-other > summary:hover { background: #ffffff; }
.threads-other > summary::-webkit-details-marker { display: none; }
.threads-other > summary::after { content: ""; flex: none; width: 8px; height: 8px; margin: 0 4px 0 auto; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(-45deg); transition: transform var(--t-fast); }
.threads-other[open] > summary::after { transform: rotate(45deg); }
.threads-other > summary:focus-visible { outline: var(--focus); outline-offset: 2px; }
.threads-other[open] > summary { border-radius: var(--r-bubble) var(--r-bubble) 0 0; box-shadow: none; }
.threads-other[open] > .threads-items { border-top: 0; border-radius: 0 0 var(--r-bubble) var(--r-bubble); }
.threads-n { color: var(--ink-muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.thread { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 16px; color: var(--ink); text-decoration: none; transition: background-color var(--t-fast); }
.thread:hover { background: #ffffff; }
.thread:focus-visible { outline: var(--focus); outline-offset: -3px; }
.thread.is-current { background: #ffffff; box-shadow: inset 3px 0 0 var(--brand); }
.thread-text { display: flex; flex: 1 1 auto; flex-direction: column; gap: 2px; min-width: 0; }
.thread-title { overflow: hidden; font: 600 15px/21px var(--sans); letter-spacing: -0.01em; white-space: nowrap; text-overflow: ellipsis; }
.thread.is-unread .thread-title { font-weight: 700; }
.thread-line { overflow: hidden; color: var(--ink-muted); font: var(--type-small); white-space: nowrap; text-overflow: ellipsis; }
.thread-end { display: flex; flex: none; flex-direction: column; align-items: flex-end; gap: 6px; }
.thread-when { color: var(--ink-muted); font-size: 12px; line-height: 16px; font-variant-numeric: tabular-nums; }
.thread-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--ground); box-shadow: 0 0 0 1.5px var(--ink); }
.thread-bar { display: flex; align-items: center; gap: 10px; min-height: 72px; padding: 14px 68px 14px 14px; border-bottom: 1px solid var(--hair); }
.thread-back { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--r-round); background: var(--press); color: var(--ink); }
.thread-back:hover { background: rgba(20, 23, 15, 0.12); }
.thread-name { flex: 1 1 auto; min-width: 0; margin: 0; overflow: hidden; font: 600 16px/22px var(--sans); white-space: nowrap; text-overflow: ellipsis; }
.thread-job { flex: none; color: var(--brand); font-size: 14px; line-height: 20px; }
@media (prefers-reduced-motion: reduce) {
  .threads-other > summary, .threads-other > summary::after, .thread { transition: none; }
}

/* toast/toast.css */
/* from uikit css/toast.css */
/* Toasts (toast.templ, toast.js): an ink pill, white 500 words, centred.
   Without a script it sits at the top of the page, in the flow; with one it
   floats above the Ask band (z 40) and goes after 5.2s. With the chat open
   on a phone, it sits above the chat's form. */
.toasts { display: flex; justify-content: center; padding: 0 16px; pointer-events: none; }
.toast { max-width: min(92vw, 460px); margin: 16px 0 0; padding: 14px 22px; border-radius: var(--r-pill); background: var(--ink); box-shadow: var(--shadow-toast); color: #ffffff; font-weight: 500; text-align: center; pointer-events: auto; }
.js .toasts { position: fixed; z-index: 40; right: 0; bottom: calc(104px + env(safe-area-inset-bottom, 0px)); left: 0; padding: 0 16px; }
.js .toast { margin: 0; animation: rise 0.35s var(--ease); }
@media (max-width: 860px) {
  .js body:has(.dock[open]) .toasts { bottom: calc(180px + env(safe-area-inset-bottom, 0px)); }
}
@media print { .toasts { display: none; } }
