/* Inter (SIL Open Font License, see /fonts/OFL.txt), self-hosted: variable font, latin subset */
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/fonts/inter-latin-var.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* AI-Apply For You — shared site styles */
:root {
  --blue: #2f5bea;
  --purple: #6d4df2;
  --grad: linear-gradient(135deg, var(--blue), var(--purple));
  --ink: #1b1f2a;
  --ink-2: #4a5263;
  --ink-3: #606879;
  --link: #2f5bea;
  --accent-ink: #6040d0;
  --warn-ink: #785200;
  --bg: #ffffff;
  --bg-2: #f6f7fb;
  --bg-3: #eef0f8;
  --line: #e2e5ef;
  --control-line: #858ea5;   /* border of outlined controls: 3:1 on white (WCAG 1.4.11) */
  --ghost-bg: #f1f3f9;      /* faint fill so a ghost button reads as a button */
  --card: #ffffff;
  --ok: #16794a;
  --ok-bg: #e7f6ee;
  --warn-bg: #fff6e0;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(27, 31, 42, .06), 0 8px 24px rgba(27, 31, 42, .06);
  --max: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #eef0f7; --ink-2: #c3c8d6; --ink-3: #9aa1b3;
    --link: #a5bbff; --accent-ink: #c2aaff; --warn-ink: #dcb565;
    --bg: #0f1220; --bg-2: #151a2c; --bg-3: #1c2238; --line: #2a3150; --card: #161b2e;
    --control-line: #5a6388; --ghost-bg: #1c2238;
    --ok: #5fd39a; --ok-bg: #12301f; --warn-bg: #33290f;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #eef0f7; --ink-2: #c3c8d6; --ink-3: #9aa1b3;
  --link: #a5bbff; --accent-ink: #c2aaff; --warn-ink: #dcb565;
  --bg: #0f1220; --bg-2: #151a2c; --bg-3: #1c2238; --line: #2a3150; --card: #161b2e;
  --control-line: #5a6388; --ghost-bg: #1c2238;
  --ok: #5fd39a; --ok-bg: #12301f; --warn-bg: #33290f;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
/* every control uses the site's font (a bare browser button falls back to Arial) */
button, input, select, textarea { font-family: inherit; }
a { color: var(--link); }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; color: var(--ink-2); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-theme="dark"] .grad-text { background-image: linear-gradient(90deg, #9fb5ff, #c2aaff); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .grad-text { background-image: linear-gradient(90deg, #9fb5ff, #c2aaff); } }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: .6em; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--card); padding: 8px 12px; border-radius: 8px; z-index: 99; }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(1.4) blur(10px);
  background: color-mix(in srgb, var(--bg) 85%, transparent); border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.1rem; white-space: nowrap; }
.brand img { width: 34px; height: 34px; }
nav.main { margin-left: auto; display: flex; align-items: center; gap: 22px; }
nav.main a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: .95rem; }
nav.main a:not(.btn):hover { color: var(--ink); text-decoration: underline; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--control-line); border-radius: 10px; padding: 6px 10px; color: var(--ink); font: inherit; }
@media (max-width: 820px) {
  .menu-btn { display: block; }
  nav.main { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch;
             gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
  nav.main.open { display: flex; }
  nav.main a { padding: 10px 0; }
  nav.main a.btn { margin-top: 8px; padding: 10px 16px; }  /* Sign In and Request access: apart, full width */
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 12px;
       font-weight: 650; text-decoration: none; border: 1px solid transparent; cursor: pointer; font: inherit; font-weight: 650; }
.btn.primary { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(79, 83, 238, .28); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { background: var(--ghost-bg); color: var(--ink); border-color: var(--control-line); }
.btn.ghost:hover { background: var(--bg-3); }
.btn.small { padding: 8px 14px; font-size: .9rem; min-height: 40px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
button[disabled] { cursor: not-allowed; opacity: .55; }

/* Hero */
.hero { padding: 72px 0 56px; background:
  radial-gradient(800px 380px at 85% -10%, color-mix(in srgb, var(--purple) 16%, transparent), transparent 70%),
  radial-gradient(700px 320px at 0% 0%, color-mix(in srgb, var(--blue) 12%, transparent), transparent 70%); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.hero .lead { font-size: 1.2rem; color: var(--ink-2); max-width: 36em; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 14px; }
.hero .fine { font-size: .9rem; color: var(--ink-3); }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.hero .eyebrow::before { content: ""; width: 7px; height: 7px; background: var(--ok); border-radius: 50%; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding-top: 48px; } }

.hero .free { display: block; width: fit-content; max-width: 100%; margin: 0 0 6px; padding: 6px 14px; border-radius: 16px; line-height: 1.4; background: var(--ok-bg); color: var(--ok); font-weight: 700; }
.hero .who { font-size: 1rem; color: var(--ink-2); margin: 0 0 18px; }
/* phones: nothing under 15 px on the public pages (audit 2026-11-08) */
@media (max-width: 600px) {
  body .eyebrow, body .hero .fine, body .chip, body header.site .btn.small, body .phone-nav, body .phone-next small,
  body .phone-next b, body .phone .jc-btns .btn, body .jc-head small, body .match small, body .phone-intro strong,
  body .demo-link span, body .demo-link small, body .divider, body .plan-alt { font-size: 15px; }
  .phone-nav { gap: 4px; }
}

/* Mock panel in the hero */
.mock { background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 18px; }
.mock .bar { display: flex; gap: 6px; margin-bottom: 14px; }
.mock .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock .row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); margin-bottom: 10px; background: var(--bg); }
.mock .row b { display: block; font-size: .95rem; }
.mock .row small { color: var(--ink-3); }
.mock .score { margin-left: auto; min-width: 44px; text-align: center; font-weight: 800; border-radius: 10px; padding: 4px 8px; background: var(--bg-3); }
.mock .score.hi { background: var(--ok-bg); color: var(--ok); }
.chip { display: inline-block; font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--bg-3); color: var(--ink-2); }
.chip.ok { background: var(--ok-bg); color: var(--ok); }
.chip.warn { background: var(--warn-bg); color: var(--warn-ink); }

/* Sections */
section { padding: 72px 0; }
section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.grid { display: grid; gap: 18px; }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid.c3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid.c3, .grid.c2 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card p:last-child { margin-bottom: 0; }
.icon { width: 42px; height: 42px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; margin-bottom: 14px; }
.icon svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Steps */
ol.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
ol.steps li { counter-increment: s; position: relative; padding: 22px 22px 22px 22px; }
ol.steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
                      background: var(--grad); color: #fff; font-weight: 800; margin-bottom: 12px; }
@media (max-width: 960px) { ol.steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { ol.steps { grid-template-columns: 1fr; } }

/* Checklist */
ul.check { list-style: none; padding: 0; margin: 0; }
ul.check li { padding-left: 30px; position: relative; margin-bottom: 10px; color: var(--ink-2); }
ul.check li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--ok-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316794a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat; }

/* FAQ */
details.faq { border: 1px solid var(--line); border-radius: 12px; background: var(--card); margin-bottom: 10px; }
details.faq summary { cursor: pointer; padding: 16px 18px; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--ink-3); }
details.faq[open] summary::after { content: "–"; }
details.faq div { padding: 0 18px 16px; }

/* CTA band */
.band { background: var(--grad); color: #fff; border-radius: 24px; padding: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px; justify-content: space-between; }
.band h2, .band p { color: #fff; margin: 0; }
.band p { opacity: .9; margin-top: 6px; }
.band .btn { background: #fff; color: var(--blue); }

/* Forms / auth */
.auth { max-width: 440px; margin: 56px auto; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field input { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--control-line); background: var(--bg); color: var(--ink); font: inherit; }
select { padding: 9px 12px; border-radius: 10px; border: 1px solid var(--control-line); background: var(--bg); color: var(--ink); font: inherit; min-height: 40px; max-width: 100%; }
.notice { border-radius: 12px; padding: 12px 14px; background: var(--bg-3); color: var(--ink-2); font-size: .93rem; margin-bottom: 16px; }
.notice.warn { background: var(--warn-bg); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: .85rem; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.hidden { display: none !important; }

/* Legal pages */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 20px 80px; }
.doc.center-doc { text-align: center; padding-top: 96px; min-height: 50vh; }
.doc h2 { font-size: 1.35rem; margin-top: 1.8em; }
.doc li { color: var(--ink-2); margin-bottom: 6px; }
/* Field landing pages (public/for/*.html) */
.doc.field { max-width: 800px; }
.doc.field .lead { font-size: 1.15rem; }
.doc.field .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 12px; }
.doc.field .fine { font-size: .95rem; color: var(--ink-3); }
.doc.field ul.check { columns: 2; column-gap: 28px; }
.doc.field ul.check li { break-inside: avoid; }
.doc.field .band { margin: 40px 0 8px; padding: 28px; }
.doc.field .fieldlinks { display: flex; flex-wrap: wrap; gap: 8px; }
.doc.field .fieldlinks .chip { font-size: .95rem; padding: 6px 14px; text-decoration: none; border: 1px solid var(--control-line); color: var(--ink); }
@media (max-width: 600px) { .doc.field ul.check { columns: 1; } .doc.field .fieldlinks .chip { font-size: 15px; } }
/* Login */
.remember-note, .notmember { font-size: .9375rem; }
.notmember { margin: 0 0 16px; }
/* Home: who we help */
.help-card { display: block; text-decoration: none; color: var(--ink); }
.help-card:hover { border-color: var(--blue); }
.help-card h3 { margin-bottom: .3em; }
.help-card p { margin: 0; font-size: .95rem; }
.help-card .more { display: inline-block; margin-top: 10px; color: var(--link); font-weight: 650; font-size: .95rem; }

/* Footer */
footer.site { border-top: 1px solid var(--line); padding: 40px 0; color: var(--ink-3); font-size: .9rem; }
footer.site .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
footer.site a { color: var(--ink-2); text-decoration: none; display: block; margin-bottom: 6px; }
footer.site a:hover { color: var(--ink); }
footer.site .social { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
footer.site .social a { display: inline-block; margin-bottom: 0; }
footer.site .social span { color: var(--ink-3); }
footer.site .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; font-size: .82rem; }
@media (max-width: 700px) { footer.site .wrap { grid-template-columns: 1fr; } }
/* phones: 15 px is the smallest type anywhere on the site, the footer included */
@media (max-width: 600px) { footer.site, footer.site .legal { font-size: 15px; } }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

/* ───────────── Home page (sample of the member account) */
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.phone { background: var(--card); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); padding: 18px;
         max-width: 400px; width: 100%; justify-self: center; }
.phone-top { display: flex; justify-content: space-between; align-items: center; font-weight: 700; margin: 2px 4px 14px; }
.phone-brand { font-size: 1.05rem; letter-spacing: -.02em; }
.phone-nav { display: flex; justify-content: space-between; gap: 6px; border-bottom: 1px solid var(--line); margin: 0 -18px 15px; padding: 0 18px; color: var(--ink-3); font-size: .7rem; font-weight: 650; }
.phone-nav span { padding: 0 0 9px; }
.phone-nav span:first-child { color: var(--link); border-bottom: 2px solid var(--blue); }
.phone-intro { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.phone-intro strong { font-size: .9rem; }
.jobcard { border: 1px solid var(--line); border-radius: 18px; padding: 18px; background: var(--bg); }
.jc-head { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.jc-head b { display: block; font-size: 1.08rem; line-height: 1.3; }
.jc-head small { color: var(--ink-3); font-size: .9rem; }
.match { flex: none; font-weight: 800; font-size: 1.3rem; color: var(--ok); background: var(--ok-bg); border-radius: 12px; padding: 4px 10px; }
.match small { font-size: .7rem; font-weight: 700; }
.match.mid { color: var(--warn-ink); background: var(--warn-bg); }
.jc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.jc-why { font-size: .95rem; margin: 0 0 16px; }
.jc-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.phone .jc-btns .btn { padding: 8px; font-size: .82rem; }
.phone-next { display: flex; gap: 10px; margin: 14px 4px 2px; align-items: flex-start; }
.phone-dot { flex: none; width: 11px; height: 11px; margin-top: 5px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px var(--bg-3); }
.phone-next b, .phone-next small { display: block; }
.phone-next b { font-size: .82rem; }
.phone-next small { color: var(--ink-3); font-size: .75rem; line-height: 1.4; }
.demo-section { background: var(--bg-2); border-block: 1px solid var(--line); }
.demo-journey { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.demo-link { display: flex; flex-direction: column; gap: 5px; min-height: 130px; padding: 19px; color: var(--ink); text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .18s ease, border-color .18s ease; }
.demo-link:hover { transform: translateY(-3px); border-color: var(--blue); }
.demo-link span { color: var(--link); font-size: .83rem; font-weight: 800; }
.demo-link b { font-size: 1.14rem; }
.demo-link small { color: var(--ink-2); font-size: .88rem; line-height: 1.45; }
@media (max-width: 800px) { .demo-journey { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .demo-journey { grid-template-columns: 1fr; } .demo-link { min-height: 0; } }
.fields { list-style: none; padding: 0; margin: 0 auto; max-width: 900px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.fields li { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); font-weight: 550; }
.modes { max-width: 1080px; margin: 0 auto; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .demo-link { transition: none; } }

/* ───────────── Member app */
.app { max-width: 760px; margin: 0 auto; padding: 28px 16px 80px; }
.demo-bar { background: var(--warn-bg); color: var(--ink); text-align: center; font-size: .88rem; padding: 8px 16px; }
.demo-bar a { font-weight: 650; }
.userbox .btn { white-space: nowrap; }
@media (max-width: 440px) { header.site .wrap:has(.userbox) .brand > span { display: none; } }
.userbox { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; display: grid; place-items: center;
          text-decoration: none; font-size: .95rem; }
.hello { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 6px; }
.hello h1 { font-size: 1.8rem; margin: 0; }
.sub { color: var(--ink-3); font-size: .93rem; margin: 0 0 18px; }
.sub-row { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 12px; margin-bottom: 18px; }
.sub-row .sub { flex: 1 1 280px; margin: 0; }
.account-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.seg { display: inline-flex; background: var(--bg-3); border-radius: 12px; padding: 4px; gap: 2px; }
.seg button { border: 0; background: none; font: inherit; font-weight: 650; font-size: .9rem; color: var(--ink-3); padding: 8px 14px; border-radius: 9px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.seg button#modeAuto[aria-pressed="true"] { background: var(--grad); color: #fff; }
/* Today: what Auto mode is doing (owner, 2026-10-04: "hard to see which one I am even on, or if it was started") */
.mode-card .mode-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mode-card h2 { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 1.25rem; }
.mode-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--ink-3); flex: none; }
.mode-card.on .mode-dot { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-bg); }
.mode-card.on { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); }
.mode-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 14px 0 6px; }
.mode-stats div { background: var(--bg-2); border-radius: 12px; padding: 10px 12px; }
.mode-stats b { display: block; font-size: 1.4rem; color: var(--ink); }
.mode-stats span { font-size: .85rem; color: var(--ink-3); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs button { border: 0; background: none; font: inherit; font-weight: 650; color: var(--ink-3); padding: 12px 14px; cursor: pointer; white-space: nowrap;
               border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--blue); }
.count { display: inline-block; min-width: 22px; padding: 1px 7px; margin-left: 6px; border-radius: 999px; background: var(--bg-3); color: var(--ink-2); font-size: .78rem; text-align: center; }
.tabs button[aria-selected="true"] .count { background: var(--blue); color: #fff; }
.focus { padding: 22px; }
.match-list { display: grid; gap: 14px; }
.focus .jc-head b { font-size: 1.25rem; }
.focus .jc-btns .btn { padding: 14px; font-size: 1.02rem; }
.focus a.post { font-size: .9rem; font-weight: 600; display: inline-block; margin-bottom: 16px; }
.left { color: var(--ink-3); font-size: .9rem; margin: 0 0 10px; }
.why { margin-top: 14px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); padding: 14px 16px; }
.why p { margin: 0 0 10px; font-size: .93rem; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { border: 1px solid var(--line); background: var(--card); color: var(--ink-2); font: inherit; font-size: .88rem; font-weight: 550; padding: 6px 12px; min-height: 40px; border-radius: 999px; cursor: pointer; }
.pill[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.pill:disabled { cursor: wait; opacity: .7; }
.about-card { margin-bottom: 18px; scroll-margin-top: 24px; }
.about-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.about-head h2 { font-size: 1.35rem; margin: 0 0 6px; }
.about-head p { color: var(--ink-3); font-size: .93rem; margin: 0 0 16px; }
.about-count { white-space: nowrap; border-radius: 999px; background: var(--bg-3); color: var(--ink-2); padding: 5px 10px; font-size: .8rem; font-weight: 650; }
.keyword-pills { margin-bottom: 8px; }
.keyword-pill { padding: 10px 14px; font-size: .93rem; }
.about-feedback { color: var(--ink-2); min-height: 1.4em; font-size: .86rem; margin: 8px 0; }
.about-future { margin-bottom: 0; }
@media (max-width: 520px) { .about-head { display: block; } .about-count { display: inline-block; margin-bottom: 14px; } }
.why input, .viewer textarea { width: 100%; margin-top: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-size: .93rem; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--link); cursor: pointer; font-weight: 600; font-size: .9rem; }
.empty { text-align: center; padding: 40px 20px; }
.empty .big { font-size: 2.2rem; margin-bottom: 6px; }
.list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.item { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.item .t { min-width: 0; flex: 1; }
.item .t b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .t small { color: var(--ink-3); display: block; }
/* a note from us on an application handed back to them (Resumes > For you to apply yourself) */
/* handed back to them: the note and their login take the whole width, the buttons go under them (2026-10-15: on a
   wide screen the buttons squeezed a 450-character note into a narrow column) */
.item.yours { flex-wrap: wrap; }
.item.yours .t { flex: 1 1 100%; }
.item.yours .end { flex: 1 1 100%; justify-content: flex-start; flex-wrap: wrap; }
.login-box { display: grid; gap: 6px; margin-top: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.login-box .lrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.login-box .lk { min-width: 76px; color: var(--ink-3); font-size: .88rem; }
.login-box code { font-size: .95rem; padding: 2px 6px; border-radius: 6px; background: var(--bg-2, rgba(127,127,127,.08)); overflow-wrap: anywhere; }
.login-box small { color: var(--ink-3); }
.reply-box .yours-text { white-space: pre-wrap; }
.stuck { display: block; margin-top: 6px; }
.stuck > span { display: block; margin-top: 3px; color: var(--ink); font-size: max(.92em, 15px); line-height: 1.45; }
.stuck .stuck-link { margin-top: 8px; }
.item .t .yours-note .stuck { margin-top: 0; white-space: normal; }
.item .t .yours-note { display: block; margin-top: 6px; padding: 8px 10px; border-radius: 8px; background: var(--bg-2, rgba(127,127,127,.08)); white-space: pre-wrap; font-size: .92em; }
.item.yours { flex-wrap: wrap; } .item.yours .end { flex-wrap: wrap; }
.item .end { display: flex; gap: 8px; align-items: center; flex: none; }
.item.flag { border-color: var(--ok); box-shadow: 0 0 0 1px var(--ok) inset; }
.item .end .chip { white-space: normal; max-width: 260px; text-align: right; line-height: 1.35; }
/* Phones: the status goes under the title, so a long status never squeezes the title or widens the page */
@media (max-width: 600px) {
  .item { flex-wrap: wrap; }
  .item .t { flex: 1 1 100%; }
  .item .t b { white-space: normal; }
  .item .end { flex: 1 1 100%; justify-content: flex-start; flex-wrap: wrap; }
  .item .end .chip { max-width: 100%; text-align: left; }
  .item .end .btn { white-space: nowrap; }  /* a whole button moves to the next line, never "Send this / first" */
}
.note { font-size: .9rem; color: var(--ink-3); margin: 0 0 14px; }
.stars { display: inline-flex; gap: 2px; }
.stars button { background: none; border: 0; padding: 2px; cursor: pointer; font-size: 1.6rem; line-height: 1; color: var(--line); }
.stars button.on { color: #f0a500; }
.starline { font-size: .9rem; color: #f0a500; letter-spacing: 1px; }
details.more { margin-top: 22px; }
details.more summary { cursor: pointer; color: var(--ink-3); font-size: .9rem; font-weight: 600; margin-bottom: 10px; }
dialog.viewer { border: 0; border-radius: 20px; padding: 0; width: min(720px, calc(100vw - 24px)); max-height: calc(100vh - 32px); background: var(--card); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.35); }
dialog.viewer::backdrop { background: rgba(10, 12, 24, .55); }
.viewer .vh { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--card); z-index: 1; }
.viewer .vh div { flex: 1; min-width: 0; }
.viewer .vh small { color: var(--ink-3); display: block; }
.viewer .vb { padding: 20px; }
.resume { background: #fff; color: #1b1f2a; border: 1px solid var(--line); border-radius: 10px; padding: 26px 28px; font-size: .92rem; line-height: 1.5; }
.resume h3 { font-size: 1.3rem; margin: 0; color: #1b1f2a; }
.resume h4 { margin: 16px 0 6px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: #2f5bea; border-bottom: 1px solid #e2e5ef; padding-bottom: 4px; }
.resume p { color: #1b1f2a; margin: 0 0 6px; }
.resume ul { margin: 0 0 8px; padding-left: 18px; }
@media (max-width: 520px) { .resume { padding: 18px 16px; } }
.viewer .rate { margin-top: 18px; }
.viewer .vmore { margin-top: 18px; }
.viewer .vmore > :first-child { margin-top: 0; }
.viewer .rate .score10-box { margin: 0 0 16px; }
.viewer .rate p { margin: 0 0 4px; font-weight: 650; color: var(--ink); }
.viewer .rate .note { font-weight: 400; margin: 4px 0 14px; }
.review-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.review-actions .btn { flex: 1 1 180px; }
#vChanges { margin-top: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
#vChanges label { display: block; font-weight: 650; }
#vChanges textarea { display: block; margin-bottom: 10px; }
.viewer .vf { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 14px 20px; border-top: 1px solid var(--line);
  position: sticky; bottom: 0; background: var(--card); z-index: 1; }  /* Approve always in reach, desktop too (2026-11-06: the top Approve went) */
.viewer .vf > .note { flex: 1 1 200px; margin: 0; }
.viewer .review-actions .btn { white-space: nowrap; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px;
         font-size: .92rem; box-shadow: var(--shadow); z-index: 50; display: flex; gap: 14px; align-items: center; max-width: calc(100vw - 32px); }
.app-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 10px 0 4px; }
.app-tools .field:first-child { flex: 1 1 240px; margin: 0; }
.app-show { display: flex; align-items: center; gap: 6px; margin: 0; white-space: nowrap; }
.app-show[hidden] { display: none; }
/* Matches: sort and filter (2026-10-20) */
/* the sort and filter controls sit behind one "Filter" button (2026-11-06): open on wide screens, shut on a phone until something is set */
.mf-wrap { margin: 8px 0; }
.mf-wrap > summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; min-height: 44px; }
.mf-wrap > summary::-webkit-details-marker { display: none; }
.mf-wrap .mf-btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-weight: 650; }
.mf-wrap .mf-btn::after { content: "▾"; margin-left: 8px; font-size: .8em; }
.mf-wrap[open] .mf-btn::after { content: "▴"; }
.mf-wrap .mf-hint { color: var(--ink-3); font-size: 15px; }
.mf-wrap > .match-filters { margin-top: 2px; }
.match-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0 8px; }
.match-filters input { flex: 1 1 220px; min-height: 40px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; }
.match-filters select { flex: 0 1 auto; }
@media (max-width: 600px) { .match-filters input { flex-basis: 100%; } .match-filters select { flex: 1 1 calc(50% - 4px); } }
.more-row { text-align: center; margin: 12px 0; }
details.not-forward { margin-top: 14px; }
details.not-forward > summary { cursor: pointer; list-style: none; }
details.not-forward > summary::-webkit-details-marker { display: none; }
details.not-forward > summary h3::before { content: "▸ "; }
details.not-forward[open] > summary h3::before { content: "▾ "; }
.toast button { background: none; border: 0; color: inherit; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.kv { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: 8px 14px; font-size: .95rem; margin: 0; }
.kv dt { color: var(--ink-3); } .kv dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; white-space: pre-line; }
@media (max-width: 520px) { .kv { grid-template-columns: 1fr; gap: 2px; } .kv dd { margin-bottom: 8px; } .hello h1 { font-size: 1.5rem; } }
.track { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 14px; padding: 0; list-style: none; }
.track li { font-size: .82rem; font-weight: 650; padding: 5px 10px; border-radius: 999px; background: var(--bg-3); color: var(--ink-3); }
.track li.done { background: var(--ok-bg); color: var(--ok); }
.track li.now { background: var(--grad); color: #fff; }
.sec + .sec { margin-top: 18px; }
.sec h3 { margin-bottom: 10px; }


/* ───────────── Member pages v2: menu, Today, Matches, Resumes, Applications */
/* sticks just under the sticky header (64px + its 1px line): at top: 0 it slid under the header and the menu was gone
   on a long page (owner, 2026-10-20: "the top of this should be floating downward so I can swap") */
.appnav { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 65px; z-index: 9; }
.appnav .wrap { display: flex; gap: 4px; overflow-x: auto; max-width: 760px; padding: 0 12px; }
.appnav a { padding: 12px 12px; color: var(--ink-3); text-decoration: none; font-weight: 650; font-size: .95rem; white-space: nowrap;
            border-bottom: 2px solid transparent; }
.appnav a:hover { color: var(--ink); }
.appnav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--blue); }
.app h1 { font-size: 1.8rem; margin: 0 0 6px; }
.today-date { color: var(--ink-3); margin: 2px 0 0; font-size: .95rem; }
.app > #me > .card, .app > #me > section.card { margin-bottom: 16px; }
.app .card h2 { font-size: 1.2rem; margin: 0 0 10px; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.card-top h2 { margin: 0; }
.today-line { margin: 8px 0 14px; color: var(--ink-2); }
.today-card .actions { margin-top: 14px; }
.item-btn { width: 100%; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.item-btn:hover { border-color: var(--blue); }
/* Matches > Choose more: tick several jobs at once (2026-10-03) */
.qtop { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; margin: 4px 0 12px; }
.qtop .note { margin: 0; }
.qrow { align-items: flex-start; }
.qpick { display: flex; align-items: center; padding: 9px; margin: -7px -4px -7px -9px; cursor: pointer; flex: none; }
.qpick input { width: 22px; height: 22px; accent-color: var(--blue); cursor: pointer; margin: 0; }
.qopen { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.qopen:hover b { color: var(--link); }
.item .t small.qwhy { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 4px; }
.qbar { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between;
  padding: 12px 14px; margin-top: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 -6px 18px rgba(0, 0, 0, .08); }
.qbar .end { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 600px) {
  .qrow .t { flex: 1 1 calc(100% - 40px); }
  .qrow .end { padding-left: 34px; }
  .item .t small.qwhy { overflow: hidden !important; }
  .qbar .end, .qbar .end .btn { flex: 1 1 auto; }
}
.new { color: var(--accent-ink); font-weight: 700; }
.flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.flow-tile { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px; border-radius: 12px; background: var(--bg-2);
             border: 1px solid var(--line); text-decoration: none; color: var(--ink-2); text-align: center; font-size: .82rem; }
.flow-tile b { font-size: 1.5rem; color: var(--ink); }
.flow-tile:hover { border-color: var(--blue); }
@media (max-width: 560px) { .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.updates { list-style: none; margin: 0; padding: 0; }
.updates li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.updates li:last-child { border-bottom: 0; }
.updates small { color: var(--ink-3); white-space: nowrap; }
.upd { text-align: left; color: var(--ink); font-weight: 550; }
details.how summary { cursor: pointer; }
.how-steps { margin: 12px 0 0; padding-left: 20px; }
.how-steps li { margin-bottom: 8px; color: var(--ink-2); }
.dh { margin: 14px 0 4px; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.about-text { white-space: pre-line; font-size: .93rem; }
details.about { margin: 4px 0 12px; }
details.about summary { cursor: pointer; font-weight: 650; color: var(--link); font-size: .92rem; }
/* What we sent: the form's answers and the emails about the job (2026-10-23) */
dl.answers { margin: 8px 0 0; font-size: .93rem; }
dl.answers dt { color: var(--ink-3); margin-top: 8px; overflow-wrap: anywhere; }
dl.answers dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
ol.mails { list-style: none; margin: 8px 0 0; padding: 0; font-size: .93rem; }
ol.mails li { border-left: 3px solid var(--line); padding: 4px 0 4px 10px; margin: 0 0 10px; overflow-wrap: anywhere; }
ol.mails li.mine { border-left-color: var(--link); }
ol.mails li small { display: block; color: var(--ink-3); }
ol.mails li p { margin: 2px 0 0; }
.rate-box { margin: 14px 0 16px; padding: 14px 16px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.rate-box p { margin: 0 0 4px; }
.rate-label { margin-top: 10px !important; font-weight: 650; color: var(--ink); }
.rate-box input { width: 100%; margin-top: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-size: .93rem; }
.jc-btns.three { grid-template-columns: 1fr auto 1.3fr; }
@media (max-width: 480px) { .jc-btns.three { grid-template-columns: 1fr 1fr; } .jc-btns.three .btn.primary { grid-column: 1 / -1; order: -1; } }
.limit-note { margin: 10px 0 0; text-align: center; }
.sec-h { font-size: 1.1rem; margin: 18px 0 10px; display: flex; align-items: center; gap: 4px; }
.filters { margin: 4px 0 16px; }
.journey { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 4px 0 14px; counter-reset: step; }
.journey li { font-size: .8rem; font-weight: 650; padding: 5px 10px; border-radius: 999px; background: var(--bg-3); color: var(--ink-3); }
.journey li.done { background: var(--ok-bg); color: var(--ok); }
.journey li.done::before { content: "✓ "; }
.journey li.now { background: var(--grad); color: #fff; }
@media (max-width: 420px) { .appnav .wrap { gap: 0; padding: 0 4px; } .appnav a { padding: 12px 8px; font-size: .9rem; } .appnav .count { margin-left: 3px; padding: 1px 5px; min-width: 0; } }
.match { white-space: nowrap; }
.views { margin: 0 0 14px; }
.pick-count { margin: 0 0 8px; font-weight: 650; color: var(--ink-2); }
.toast { font-size: .88rem; padding: 8px 14px; max-width: min(460px, calc(100vw - 32px)); }
@media (max-width: 600px) {  /* a phone: one slim line along the bottom, never a box over the next job's buttons */
  .toast { left: 12px; right: 12px; transform: none; max-width: none; bottom: calc(10px + env(safe-area-inset-bottom));
           padding: 6px 6px 6px 14px; min-height: 44px; border-radius: 10px; z-index: 60; justify-content: space-between; }
  .toast span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .toast button { flex: none; min-height: 40px; padding: 0 12px; }
}

/* Profile (2026-09-30): photo, searches, questions, requests */
.who { display: flex; gap: 18px; align-items: center; margin: 4px 0 18px; }
.who .photo { width: 88px; height: 88px; border-radius: 50%; flex: none; overflow: hidden; background: var(--grad); color: #fff;
  font-weight: 800; font-size: 2rem; display: grid; place-items: center; }
.who .photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.avatar { overflow: hidden; }
section.card { margin-bottom: 18px; }
section.card h2 { font-size: 1.3rem; margin: 0 0 6px; }
.sub-h { font-size: 1rem; margin: 16px 0 6px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.tags .tag { display: inline-flex; align-items: center; gap: 2px; padding: 5px 4px 5px 12px; border-radius: 999px; background: var(--bg-3); color: var(--ink); font-size: .9rem; }
.tags .tag.plain { padding: 5px 12px; }
.tags .tag button { border: 0; background: none; cursor: pointer; font-size: 1.1rem; line-height: 1; padding: 2px 7px; color: var(--ink-3); border-radius: 50%; }
.tags .tag button:hover { color: var(--ink); background: var(--line); }
@media (pointer: coarse) { .tags .tag { padding: 3px 2px 3px 12px; } .tags .tag button { min-width: 36px; min-height: 36px; } }
.tag-more { align-self: center; padding: 4px 6px; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.inline-form input { flex: 1 1 240px; min-width: 0; }
/* every text box on the member pages looks the same (the browser's default boxes were tiny and unstyled) */
.inline-form input, .pw-form input, .qa textarea, .ts-form input, .code-form input, .pw-wrap input {
  padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-size: .95rem; }
.inline-form input:focus, .pw-form input:focus, .qa textarea:focus, .ts-form input:focus, .code-form input:focus, .pw-wrap input:focus { border-color: var(--blue); outline: 2px solid color-mix(in srgb, var(--blue) 25%, transparent); outline-offset: 0; }
.inline-form .btn { padding-top: 10px; padding-bottom: 10px; }
.inline-form select { flex: 1 1 100%; min-width: 0; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card, #fff); color: var(--ink); }
/* Profile > Kinds of work you want: a kind is an ordinary row (.item); its change form takes the row's whole width */
.item.kind .t h3 { margin: 0 0 2px; font-size: 1.05rem; }
.item.kind { flex-wrap: wrap; align-items: flex-start; }
.item.kind > .t { flex: 1 1 100%; }
.item.kind > .end { flex: 1 1 100%; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 600px) { .item.kind { padding: 12px; } .item.kind > .end { justify-content: stretch; } .item.kind > .end .btn { flex: 1 1 0; } }
.item.kind .t small { margin-top: 2px; }
.item.kind .tags { margin: 8px 0 0; }
.item.kind .inline-form { margin-top: 8px; }
.item.kind .inline-form input { flex: 1 1 200px; }
.item > .kind-form { flex: 1 1 100%; display: grid; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.kind-form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--ink-2); }
.kind-form input[type=text] { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-size: .95rem; font-weight: 400; min-width: 0; width: 100%; }
.kind-form input[type=text]:focus { border-color: var(--blue); outline: 2px solid color-mix(in srgb, var(--blue) 25%, transparent); outline-offset: 0; }
.kind-form fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px 10px; margin: 0; min-width: 0; }
.kind-form legend { font-size: .9rem; font-weight: 600; padding: 0 4px; }
.kind-form label.check { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; margin: 6px 0 0; font-weight: 400; color: var(--ink); }
.kind-form label.check.own { flex-wrap: wrap; }
.kind-form label.check input[type=radio], .kind-form label.check input[type=checkbox] { flex: none; }
.kind-form label.check input[type=text] { width: 9em; flex: none; }
.kind-form .row-btns { margin-top: 0; }
.never-h { margin: 8px 0 0; }
.qa { border-top: 1px solid var(--line, #e3e7ee); padding: 12px 0; }
.qa:first-child { border-top: 0; }
.qa p { margin: 0 0 6px; }
.qa textarea { width: 100%; }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
/* phones: long job titles wrap instead of being cut off, and the page menu scrolls sideways */
@media (max-width: 600px) {
  .item .t b, .item .t small { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; }
  .appnav .wrap { overflow-x: auto; white-space: nowrap; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .appnav .wrap::-webkit-scrollbar { display: none; }
  .who .photo { width: 68px; height: 68px; font-size: 1.6rem; }
}

/* Profile v3 (2026-10-01): section shortcuts, status card, Sign-in & security, two-step sign-in */
.who-text { min-width: 0; }
.who h1 { font-size: 1.8rem; margin: 0; overflow-wrap: anywhere; }
.who .sub { margin: 2px 0 8px; overflow-wrap: anywhere; }
.who .note { margin: 6px 0 0; }
.status-card h2 { font-size: 1.1rem !important; margin: 0 0 4px !important; }
.status-card p { margin: 0; }
.jump { margin: 0 0 18px; }
.jump .pill { text-decoration: none; font-size: .85rem; padding: 6px 12px; }
.jump .pill:hover { border-color: var(--blue); color: var(--ink); }
section.card { scroll-margin-top: 64px; }
.sec-kv { margin-bottom: 6px; }
.sec-block { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.sec-block h3 { font-size: 1rem; margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
.sec-block .note { margin: 0; }
.sec-row { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.sec-row .btn { flex: none; }
@media (max-width: 520px) { .sec-row { flex-direction: column; } }
.pw-form { display: grid; gap: 6px; max-width: 440px; margin-top: 12px; }
.pw-form label { font-size: .9rem; font-weight: 650; margin-top: 6px; }
.pw-form .row-btns { margin-top: 10px; }
.pw-wrap { position: relative; display: flex; }
.pw-wrap input { width: 100%; padding-right: 64px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--blue); font: inherit; font-size: .82rem; font-weight: 650; cursor: pointer; padding: 6px 8px; border-radius: 8px; }
.field .pw-wrap input { padding: 12px 64px 12px 14px; }
.meter { height: 6px; border-radius: 999px; background: var(--bg-3); overflow: hidden; margin-top: 4px; }
.meter i { display: block; height: 100%; width: 0; background: #d64545; transition: width .2s ease; }
.meter i.fair { background: #e0a100; } .meter i.good { background: var(--ok); }
.pw-rules { list-style: none; padding: 0; margin: 4px 0 2px; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .82rem; color: var(--ink-3); }
.pw-rules li::before { content: "○ "; }
.pw-rules li.ok { color: var(--ok); } .pw-rules li.ok::before { content: "✓ "; }
.pw-rules li.bad { color: #c03434; } .pw-rules li.bad::before { content: "✕ "; }
.form-err { color: #c03434; font-size: .9rem; margin: 8px 0 0; }
.ts-form, .code-form { margin-top: 12px; }
/* "Remember this computer for 30 days" (twostep.js rememberBox): the same box on setup, Confirm it's you and the code step */
label.remember, .ts-form > label.remember { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0; font-size: .95rem; font-weight: 400; color: var(--ink); max-width: none; }
label.remember input { margin-top: 3px; flex: none; width: auto; padding: 0; }
.ts-steps { padding-left: 20px; margin: 8px 0 12px; }
.ts-steps li { margin-bottom: 12px; color: var(--ink-2); }
.ts-steps label { display: block; font-weight: 650; color: var(--ink); margin-bottom: 6px; }
.ts-form > label { display: grid; gap: 4px; font-weight: 650; max-width: 360px; margin-bottom: 10px; }
.ts-qr { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 10px; }
.ts-qr img { background: #fff; border-radius: 10px; border: 1px solid var(--line); image-rendering: pixelated; max-width: 100%; height: auto; }
.ts-qr > div { flex: 1 1 200px; min-width: 0; }
.ts-key { display: inline-block; font-size: 1rem; letter-spacing: .06em; padding: 6px 10px; border-radius: 8px; background: var(--bg-3); color: var(--ink); overflow-wrap: anywhere; }
.code-input { font-size: 1.4rem !important; letter-spacing: .3em; width: 9em; text-align: center; font-variant-numeric: tabular-nums; }
.code-form label { display: grid; gap: 4px; margin-bottom: 8px; }
#codeBox { margin-top: 6px; }

/* 1-10 score (2026-10-01) */
.score10-box { margin: 10px 0 12px; }
.score10-box p { margin: 0 0 6px; }
.score10 { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; max-width: 460px; }
.score10 button { font: inherit; font-weight: 700; padding: 8px 0; border-radius: 8px; border: 1px solid var(--line, #e3e7ee); background: var(--card, #fff); cursor: pointer; color: inherit; }
.score10 button:hover { border-color: var(--blue, #2f5bea); }
.score10 button.on { background: var(--blue, #2f5bea); border-color: var(--blue, #2f5bea); color: #fff; }

/* Fixes 2026-10-01 */
/* the job's progress: the next step is outlined (it hasn't happened), not filled like a done one */
.journey li.now { background: transparent; color: var(--blue); box-shadow: inset 0 0 0 1.5px var(--blue); }
.journey li.now::before { content: "Next: "; font-weight: 550; }
/* job / resume window header: the score stays "8/10" on one line; title gets the room */
.viewer .vh .match { display: inline-flex; align-items: baseline; flex: none; }
.viewer .vb > p { font-size: .95rem; }
.viewer .reply-box { border-radius: 12px; padding: 12px 14px; background: var(--ok-bg); margin: 4px 0 12px; }
.viewer .reply-box.warn { background: var(--warn-bg); }
.viewer .reply-box p { margin: 4px 0 0; color: var(--ink); }
.viewer .reply-box .dh { margin-top: 0; }
@media (max-width: 520px) {
  .viewer .vh { padding: 12px 14px; gap: 8px; }
  .viewer .vh b { font-size: 1rem; }
  .viewer .vb { padding: 14px; }
  .viewer .vf { padding: 12px 14px; }
}
/* phones: all five page links fit across the screen */
@media (max-width: 440px) {
  .appnav .wrap { justify-content: space-between; }
  .appnav a { padding: 12px 5px; font-size: .86rem; }
  .appnav .count { margin-left: 2px; padding: 0 5px; font-size: .72rem; }
}

/* the hidden attribute always hides, even on elements given a display above (e.g. .pw-form) */
[hidden] { display: none !important; }
/* the home page gives every <section> 72px of padding; the member pages' plain sections need none */
.app section.sec { padding: 0; }

/* a choose button at the member's limit: clearly greyed, with the reason under it */
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; box-shadow: none; filter: grayscale(.6); }
.limit-note.limit-hit { color: var(--warn-ink); font-weight: 600; }

/* "Still there?" before an idle sign-out */
.idle-warn { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 60; display: flex; gap: 12px; align-items: center;
  background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 10px 40px rgba(0,0,0,.25); border-radius: 14px;
  padding: 12px 14px; max-width: min(520px, calc(100vw - 24px)); font-size: .93rem; }
.activity { list-style: none; padding: 0; margin: 8px 0 0; }
.activity li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.activity li:last-child { border-bottom: 0; }
.activity small { color: var(--ink-3); white-space: nowrap; }

/* Download the resume PDF (resume window) */
.resume-tools { margin: 0 0 8px; display: flex; justify-content: flex-end; }

/* Profile > Emails: which updates (checkboxes) */
.em-kinds { border: 1px solid var(--line, #e3e6ee); border-radius: 10px; padding: 8px 12px 10px; margin: 10px 0 0; }
.em-kinds legend { font-size: .9rem; font-weight: 600; padding: 0 4px; }
.em-kinds label.check { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; font-weight: 400; }
.em-kinds[disabled] { opacity: .5; }

/* "Today" limits bar under the menu (jobs.js limitBar) */
.limitbar { border-bottom: 1px solid var(--line, #e3e6ee); background: var(--bg-2, #f7f8fb); font-size: .85rem; }
.limitbar .wrap { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; padding-top: 6px; padding-bottom: 6px; }
.limitbar .lb-title { font-weight: 700; }
.limitbar .lb-item { display: inline-flex; align-items: center; gap: 6px; }
.limitbar .lb-track { display: inline-block; width: 60px; height: 6px; border-radius: 4px; background: var(--line, #e3e6ee); overflow: hidden; }
.limitbar .lb-track span { display: block; height: 100%; background: var(--accent, #4f46e5); }
.limitbar .lb-item.full .lb-track span { background: var(--warn, #d97706); }
.limitbar .muted { opacity: .75; }
/* "N tried today, not sent": each one and why, opened under the bar (2026-10-20) */
.limitbar .lb-why { position: relative; }
.limitbar .lb-why summary { cursor: pointer; color: var(--warn-ink); font-weight: 600; min-height: 32px; display: inline-flex; align-items: center; }
.limitbar .lb-why ul { position: absolute; left: 0; top: 100%; z-index: 30; margin: 4px 0 0; padding: 10px 14px; list-style: none;
  width: min(380px, calc(100vw - 32px)); background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.limitbar .lb-why li { padding: 6px 0; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.limitbar .lb-why li:first-child { border-top: 0; }
.limitbar .lb-why li span { color: var(--ink-2); }

/* Highlight-to-change in the resume window */
.edit-tip { margin: 8px 0 4px; }
.resume { user-select: text; }
.resume mark.edit-mark { background: #fff3a8; color: inherit; border-radius: 3px; padding: 0 1px; }
.edit-float { position: fixed; z-index: 10; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.edit-box { border: 1px solid var(--accent, #4f46e5); border-radius: 10px; padding: 10px 12px; margin: 8px 0; background: var(--bg-2, #f7f8fb); }
.edit-box .edit-quote { font-size: .9rem; margin-bottom: 6px; }
.edit-box textarea { width: 100%; }
.edit-box .actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.edits .edit-item { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line, #e3e6ee); font-size: .9rem; }
.edits q { background: #fff3a8; border-radius: 3px; padding: 0 2px; }
.qa.qa-hold { border-left: 4px solid var(--warn, #d97706); }
.own { margin-top: 18px; }
.own .fields { display: grid; gap: 12px; margin: 12px 0 0; max-width: none; justify-content: stretch; }
.own .fields label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--ink-2); }
.own .fields input { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-weight: 400; }
.own .fields input:focus { border-color: var(--blue); outline: 2px solid color-mix(in srgb, var(--blue) 25%, transparent); outline-offset: 0; }
.own-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.own-list .t b { white-space: normal; word-break: break-all; font-weight: 600; font-size: .9rem; }
/* Profile: sections open and close */
.fold-btn { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 10px; width: 100%; cursor: pointer; flex-wrap: wrap; }
.fold-btn h2 { margin: 0; flex: 1 1 auto; }
.fold-btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; border-radius: 8px; }
.fold-icon { width: 10px; height: 10px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); transition: transform .15s; margin: 0 6px 4px; }
section.folded .fold-icon { transform: rotate(-45deg); margin-bottom: 0; }
section.folded .fold-body { display: none; }
.fold-body { margin-top: 12px; }
@media (prefers-reduced-motion: reduce) { .fold-icon { transition: none; } }
/* Profile: a gentle heads-up (2026-10-14): light yellow on what could use them, nothing alarming */
section.card.needs { border-color: color-mix(in srgb, var(--warn-ink) 30%, var(--line)); }  /* edge only: 2026-10-22, the whole card was yellow */
/* Jump to (2026-10-22): one scrollable row on a phone, wrapping on a desktop; a dot where something waits. Sections
   land just under the sticky header + menu. */
.jump { display: flex; align-items: center; }
.jump-l { font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); margin-right: 4px; white-space: nowrap; }
.jump a.pill { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.jump .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--warn-ink); }
.jump .dot.n { width: auto; min-width: 18px; height: 18px; padding: 0 5px; font-size: .75rem; font-weight: 700; line-height: 18px; text-align: center; color: var(--warn-bg); }
#me section.card[id] { scroll-margin-top: 48px; }  /* + html scroll-padding-top 84px = header and menu */
@media (max-width: 700px) {
  .jump { flex-wrap: nowrap; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none;
    scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
  .jump::-webkit-scrollbar { display: none; }
  .jump .pill { flex: 0 0 auto; scroll-snap-align: start; }
  .jump-l { display: none; }
}
.req-seen { border: 1px solid var(--line); border-radius: 14px; background: var(--card); padding: 10px 16px; }
.req-seen summary { cursor: pointer; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; list-style: none; min-height: 28px; }
.req-seen summary::-webkit-details-marker { display: none; }
.req-seen small { display: block; color: var(--ink-3); margin-top: 6px; overflow-wrap: anywhere; }
.jump a.pill.needs { background: var(--warn-bg); color: var(--warn-ink); border-color: color-mix(in srgb, var(--warn-ink) 30%, var(--line)); }
.headsup { background: var(--warn-bg); color: var(--warn-ink); border-radius: 12px; padding: 10px 14px; margin: 12px 0; line-height: 1.6; }
.headsup a { color: inherit; font-weight: 600; }
.pay-now { margin: 4px 0 6px; }
.src-list { display: grid; gap: 8px; margin: 12px 0; padding: 0; }
.act-fold summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
.act-fold[open] summary { margin-bottom: 8px; }
/* Home: the rotating field in the headline */
.rotor { display: inline-block; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; transition: opacity .3s, transform .3s; }
.rotor.out { opacity: 0; transform: translateY(-8px); }
@media (prefers-reduced-motion: reduce) { .rotor { transition: none; } }

/* Today > sticky notes (2026-10-03) */
.notes-board .sticky-new { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin: 8px 0 14px; }
.notes-board .sticky-new textarea { flex: 1 1 260px; background: #fff8c5; border: 1px solid #e8d77a; border-radius: 4px;
  font-family: inherit; padding: 10px 12px; box-shadow: 0 2px 6px rgba(0, 0, 0, .06); color: #3d3500; }
.stickies { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.sticky { position: relative; padding: 18px 16px 12px; min-height: 120px; border-radius: 2px 2px 14px 2px; color: #2b2b2b;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .12); transform: rotate(-1.2deg); transition: transform .15s ease; }
.sticky:nth-child(even) { transform: rotate(1.1deg); }
.sticky:hover { transform: rotate(0) scale(1.02); }
.sticky::before { content: ""; position: absolute; top: -8px; left: 50%; width: 56px; height: 16px; margin-left: -28px;
  background: rgba(255, 255, 255, .55); box-shadow: 0 1px 2px rgba(0, 0, 0, .1); transform: rotate(-3deg); }
.sticky p { margin: 0 0 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.sticky small { color: rgba(0, 0, 0, .55); font-weight: 600; }
.sticky .sticky-ans { font-size: .9rem; border-top: 1px dashed rgba(0, 0, 0, .2); padding-top: 6px; }
.sticky.s0 { background: #fff59d; } .sticky.s1 { background: #ffd1dc; } .sticky.s2 { background: #c8f0ff; } .sticky.s3 { background: #d4f8c4; }
.sticky.done { opacity: .8; }
.sticky.empty { opacity: .7; font-style: italic; }
@media (prefers-reduced-motion: reduce) { .sticky, .sticky:nth-child(even), .sticky:hover { transform: none; transition: none; } }

/* Colour switch in the header (js/theme.js): Auto / Light / Dark */
.theme-btn { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  margin-left: 4px; padding: 0; border: 1px solid var(--control-line); border-radius: 10px; background: var(--card);
  color: var(--ink-2); cursor: pointer; }
.theme-btn:hover { color: var(--ink); border-color: var(--ink-3); }
.theme-btn svg { width: 20px; height: 20px; }
header.site .wrap:not(:has(nav.main, .userbox)) .theme-btn { margin-left: auto; }

/* Sticky notes on every member page (js/notes.js): a side tab, a panel that minimizes, notes pinned on the page */
.notes-tab { position: fixed; right: 0; top: 42%; z-index: 30; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 8px; border: 1px solid var(--line); border-right: 0; border-radius: 12px 0 0 12px; background: var(--card);
  color: var(--ink); font: inherit; font-size: .8rem; font-weight: 650; cursor: pointer; box-shadow: var(--shadow); }
.notes-tab .lbl { writing-mode: vertical-rl; transform: rotate(180deg); }
.notes-tab .badge, .bell .badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #d64545; color: #fff;
  font-size: .7rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.notes-tab.pulse { animation: notes-pulse 1.6s ease-in-out 3; }
@keyframes notes-pulse { 50% { transform: translateX(-6px); } }
/* phones: a slimmer tab, so it covers less of the page under it (2026-10-11: it hid the end of lines and the "Up to 5 sent a day" label) */
/* the Notes tab sits on the right edge: on a phone, keep page text out from under it (2026-10-15: it covered the
   ends of lines) */
@media (max-width: 600px) { main.app { padding-right: 30px; } }
@media (max-width: 600px) { .notes-tab { padding: 8px 3px; gap: 3px; font-size: .7rem; border-radius: 10px 0 0 10px; } .notes-tab .badge { min-width: 16px; height: 16px; padding: 0 4px; font-size: .65rem; } }
.notes-panel { position: fixed; right: 0; top: 80px; bottom: 16px; z-index: 31; width: min(340px, calc(100vw - 32px)); overflow: auto;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px 0 0 16px; box-shadow: var(--shadow); padding: 14px 16px;
  transform: translateX(105%); transition: transform .2s ease; }
.notes-panel.open { transform: none; }
.np-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.np-min { border: 1px solid var(--line); background: var(--bg-2); color: var(--ink); border-radius: 8px; width: 40px; height: 40px; font-size: 1.2rem; cursor: pointer; }
.np-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.np-list li { background: #fff6c2; color: #3b3200; border-radius: 10px; padding: 10px 12px; }
.np-list li p { margin: 0 0 4px; color: inherit; }
.np-list li.ans { outline: 2px solid #e2b400; }
.np-list li small { color: #6b5d12; }
.np-list li.empty { background: var(--bg-2); color: var(--ink-3); }
.np-ans { font-size: 15px; }
.notes-placing, .notes-placing * { cursor: crosshair !important; }
.notes-hint { position: fixed; left: 50%; top: 76px; transform: translateX(-50%); z-index: 40; background: var(--ink); color: var(--bg);
  padding: 8px 12px; border-radius: 12px; display: flex; gap: 10px; align-items: center; font-size: .9rem; box-shadow: var(--shadow); }
.notes-hint .btn { color: var(--bg); border-color: color-mix(in srgb, var(--bg) 40%, transparent); }
/* z-index: a note being written sits above the sticky header, bars and to-top (owner, 2026-10-20: "this sticky is
   behind everything"); windows and toasts stay above it. An answer shown in the page flow stacks normally. */
.sticky-pin { position: absolute; z-index: 45; width: 280px; max-width: calc(100vw - 24px); background: #fff6c2; color: #3b3200;
  border-radius: 4px 14px 14px 14px; padding: 10px 12px; box-shadow: 0 8px 24px rgba(0,0,0,.25); transition: opacity .3s, transform .3s; }
.sticky-pin::before { content: "📌"; position: absolute; left: -8px; top: -12px; }
.sticky-pin p { margin: 0 0 6px; color: inherit; font-size: 15px; }
.sticky-pin p.mine { color: #6b5d12; font-style: italic; }
.sticky-pin textarea { width: 100%; border: 1px solid #e2c94f; border-radius: 8px; background: #fffbe0; color: #3b3200; font: inherit; padding: 6px 8px; }
.sticky-pin .row { display: flex; gap: 6px; margin-top: 6px; }
.sticky-pin.gone { opacity: 0; transform: scale(.85) translateY(-10px); }

/* Notification bell in the header (js/bell.js) */
.bell-wrap { position: relative; }
.bell { position: relative; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--card);
  color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.bell svg { width: 20px; height: 20px; }
.bell .badge { position: absolute; top: -6px; right: -6px; }
.bell-list { position: absolute; right: 0; top: 46px; z-index: 40; width: min(360px, calc(100vw - 24px)); max-height: 70vh; overflow: auto;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 10px; }
.bell-list .bl-head { padding: 4px 6px 8px; }
.bell-list ul { list-style: none; margin: 0; padding: 0; }
.bell-list li a { display: flex; justify-content: space-between; gap: 10px; padding: 8px 6px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .9rem; }
.bell-list li a:hover { background: var(--bg-2); }
.bell-list li.new a { font-weight: 650; }
.bell-list li.new a::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--blue); }
.bell-list li small { color: var(--ink-3); white-space: nowrap; }
@media (max-width: 440px) { .bell-list { position: fixed; left: 12px; right: 12px; width: auto; top: 70px; } }
.bell-list .bl-head { display: flex; justify-content: space-between; align-items: center; }
.bell-list li { display: flex; align-items: flex-start; }
.bell-list li a { flex: 1; min-width: 0; }
.bl-x { flex: none; border: 0; background: none; color: var(--ink-3); cursor: pointer; padding: 8px 6px; font-size: .85rem; border-radius: 6px; }
.bl-x:hover { color: var(--ink); background: var(--bg-2); }
/* Applications (2026-10-07): the jobs applied to, with what we know about each and the posting link */
.app-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 14px 0 16px; }
.app-stats div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.app-stats b { display: block; font-size: 1.5rem; line-height: 1.1; }
.app-stats span { color: var(--ink-3); font-size: .85rem; }
@media (max-width: 600px) { .app-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.app-row { align-items: flex-start; }
.app-row .t b { white-space: normal; }
.app-facts { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; color: var(--ink-2); font-size: .86rem; }
.app-row .end { flex-direction: column; align-items: flex-end; gap: 8px; }
.app-row .end .row { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 600px) { .app-row .end { align-items: flex-start; } }
.good-news { margin-bottom: 18px; }
.good-news .note { margin: 4px 0 10px; }
.week-h { font-size: .95rem; color: var(--ink-2); margin: 18px 0 8px; font-weight: 700; }

/* Dream job (dream.html, 2026-10-08): their wishes in their own words; a Today card until they've answered */
.dream-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border: 1px solid color-mix(in srgb, var(--blue) 35%, var(--line)); }
.dream-card > div { flex: 1 1 320px; }
.dream-card h2 { margin: 0 0 4px; }
.dream-card .note { margin: 0; }
.dream label.qa { display: block; }
.dream .qa textarea { resize: vertical; }
.dream .pills { display: flex; flex-wrap: wrap; gap: 8px; }
.dream-hint { margin: 8px 0 0; }
/* how complete their dream job is (dream.html) */
.dream-meter { margin-bottom: 14px; }
.dream-meter .meter-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.dream-meter .meter-top span { color: var(--ink-3); font-size: .9rem; }
.meter-bar { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; margin: 8px 0 4px; }
.meter-bar span { display: block; height: 100%; background: #a855f7; transition: width .3s; }
.dream-meter.ok .meter-bar span { background: var(--ok, #16a34a); }
.dream-save { align-items: center; margin: 4px 0 24px; }
.dream-save .note { margin: 0; }
#suggestions .item .end { display: flex; gap: 6px; flex-wrap: wrap; }
.chip.dream-chip { background: color-mix(in srgb, #a855f7 16%, var(--card)); color: color-mix(in srgb, #7e22ce 85%, var(--ink)); }
.pill.dream-pill[aria-pressed="false"] { border-color: color-mix(in srgb, #a855f7 45%, var(--line)); }
.dream-list .item .end { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
/* "What are dream jobs?" (2026-10-10): one folded explainer on the dream pages */
.dream-explain { margin-bottom: 14px; border: 1px solid color-mix(in srgb, #a855f7 35%, var(--line)); }
.dream-explain summary { cursor: pointer; }
.dream-explain ul { margin: 8px 0 0; padding-left: 20px; }
.dream-explain li { margin: 6px 0; }
.dream-explain p { margin: 10px 0 0; }

/* Welcome tour (welcome.html, 2026-10-09): a new member's first visit */
.wsteps { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 16px; counter-reset: w; }
.wsteps li { counter-increment: w; font-size: .85rem; color: var(--ink-3); padding: 5px 12px 5px 8px; border-radius: 999px; background: var(--bg-3); }
.wsteps li::before { content: counter(w); display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 6px; border-radius: 50%; background: var(--line); color: var(--ink-2); font-size: .75rem; font-weight: 700; }
.wsteps li.on { background: var(--blue); color: #fff; }
.wsteps li.on::before { background: #fff; color: var(--blue); }
.wsteps li.done::before { content: "✓"; background: var(--ok); color: #fff; }
.wlist { padding-left: 20px; margin: 0 0 18px; }
.wlist li { margin: 0 0 8px; }
.lockbox { border-left: 4px solid var(--ok); background: var(--ok-bg); border-radius: 10px; padding: 12px 14px; margin: 12px 0 16px; font-size: .93rem; }
details.faq div.lockbox { padding: 12px 14px; }
#gmailPrivacy { margin-top: 14px; }
.welcome .field { display: block; }
.welcome .field > span:first-child { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.welcome .field input { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; }
.welcome .wnav { justify-content: space-between; margin-top: 14px; }
.tourgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-bottom: 14px; }
.tourcard { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; background: var(--card); }
.tourcard:hover { border-color: var(--blue); }
.tourcard span { font-size: .88rem; color: var(--ink-3); }
/* "New: Dream jobs" line under the menu (2026-10-09) */
.dream-banner { border-bottom: 1px solid color-mix(in srgb, #a855f7 30%, var(--line)); background: color-mix(in srgb, #a855f7 7%, var(--bg)); font-size: .9rem; }
.dream-banner .wrap { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding-top: 8px; padding-bottom: 8px; }
.dream-banner .db-text { flex: 1 1 320px; color: var(--ink-2); }
.dream-banner .db-acts { display: flex; gap: 6px; }

/* Dream jobs in the menu, on Today and at the top of Matches > Dream jobs (2026-10-10: easy to find on a phone) */
.dream-card > .row-btns { flex: 0 1 auto; max-width: 100%; margin-top: 0; }
.dream-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.dream-head h2 { margin: 0; }
.appnav .nl-short { display: none; }
/* phones: six links across the screen, counts as small badges on the corner (no extra width) */
@media (max-width: 440px) {
  .appnav .nl-long, .appnav .nl-icon { display: none; }
  .appnav .nl-short { display: inline; }
  .appnav a { position: relative; padding: 14px 4px 12px; }
  .appnav .count { position: absolute; top: 1px; right: -6px; margin: 0; min-width: 0; padding: 0 4px; font-size: .64rem; line-height: 1.35; }
}
.appnav a[data-nav="dream"] { color: color-mix(in srgb, #a855f7 75%, var(--ink-3)); }
.appnav a[data-nav="dream"][aria-current="page"] { color: var(--ink); border-bottom-color: #a855f7; }

/* Two Auto modes on Today (2026-10-10): pick jobs for me / approve resumes for me, each a switch */
.auto-rows { display: grid; gap: 4px; margin-top: 10px; }
.auto-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.auto-row .t { display: grid; gap: 2px; }
.auto-row small { color: var(--ink-3); }
.switch { flex: 0 0 auto; width: 64px; height: 40px; border-radius: 999px; border: 0; padding: 3px; cursor: pointer;
  background: var(--line); transition: background .2s; display: inline-flex; align-items: center; }
.switch span { width: 34px; height: 34px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.switch[aria-checked="true"] { background: var(--ok, #16a34a); }
.switch[aria-checked="true"] span { transform: translateX(24px); }
.switch:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.switch:disabled { opacity: .6; cursor: wait; }
.appnav .count.warn { background: var(--warn, #d97706); color: #fff; }
.add-job-row { margin: 0 0 12px; }
.hello #addJobSlot:empty, .add-job-row:empty { display: none; }
#needs .item.urgent { border-left: 3px solid var(--warn, #d97706); padding-left: 10px; }
#addJobDlg .own-list { margin: 0; padding: 0; }
.co-form { flex-wrap: wrap; }
.co-form input { flex: 1 1 200px; }
.co-list .item .end { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pw-user { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
@media (max-width: 440px) { .appnav a:last-child .count { right: 0; } }

/* A shorter, easier Today (2026-10-10: "improve the UI ... easier to navigate and use", on a phone) */
.card-tools { display: inline-flex; align-items: center; gap: 8px; }
.icon-btn { min-width: 40px; padding-left: 10px; padding-right: 10px; font-size: 1.1rem; line-height: 1; }
.more-info { font-size: .9rem; color: var(--blue); }
.how-pick { color: var(--ink-3); font-size: .9rem; }
.more-link { margin: 10px 0 0; font-size: .92rem; font-weight: 600; }
.mode-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.mode-head h2 { margin: 0; }
.mode-sum { color: var(--ink-3); font-size: .88rem; }
.mode-more { margin-top: 6px; border-top: 1px solid var(--line); padding-top: 10px; }
.mode-more > summary { cursor: pointer; font-weight: 600; color: var(--ink-2); font-size: .95rem; }
.mode-more[open] > summary { margin-bottom: 4px; }
/* top picks stay one row each, even on a phone: title on the left, score on the right */
.item.compact { flex-wrap: nowrap; padding: 10px 14px; }
.item.compact .t { flex: 1 1 auto; }
.item.compact .end { flex: 0 0 auto; }
@media (max-width: 600px) {
  .today-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .today-actions > .btn.primary { grid-column: 1 / -1; justify-content: center; text-align: center; }
  .today-actions > .btn, .today-actions [data-addjob] { width: 100%; justify-content: center; text-align: center; padding-left: 8px; padding-right: 8px; }
  .today-actions #addJobSlot { display: contents; }
  .today-actions .hidden + #addJobSlot [data-addjob] { grid-column: 1 / -1; }
  #needs .item { padding: 10px 12px; }
  #needs .item .end .btn { padding-top: 6px; padding-bottom: 6px; }
  .hello h1 { font-size: 1.55rem; }
  .card { padding: 18px; }
}
/* Matches: the how-to folds away and the views are one row you swipe on a phone (2026-10-10) */
.intro-more { margin: 4px 0 12px; }
.intro-more > summary { cursor: pointer; color: var(--blue); font-weight: 600; font-size: .92rem; }
.intro-more .note { margin: 6px 0 0; }
@media (max-width: 600px) {
  .views { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -16px; margin-right: -16px; padding: 2px 16px 4px;
    scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
  .views::-webkit-scrollbar { display: none; }
  .views .pill { flex: 0 0 auto; scroll-snap-align: start; }
}
@media (max-width: 600px) {
  .dream-card > .row-btns:has(> .btn:not(.hidden) + .btn:not(.hidden)) { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
  .dream-card > .row-btns > .btn { justify-content: center; text-align: center; padding-left: 8px; padding-right: 8px; }
}

/* Auto mode folded to one line when every switch is on (2026-10-11), "Change" opens the switches */
.mode-folded { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.mode-folded .note { margin: 0; }
/* Dream jobs: their dream line, chosen and on their way, in about the order they go out (2026-10-11) */
.dream-line { margin: 12px 0 16px; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--violet, #7c3aed) 30%, var(--line)); border-radius: 14px; background: var(--bg-2, var(--bg-3)); }
.dream-line h3 { margin: 0 0 8px; font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.dream-line .note { margin: 8px 0 0; }
@media (max-width: 600px) { .mode-folded { flex-wrap: wrap; } }
.limitbar .lb-short { display: none; }
@media (max-width: 600px) {
  .limitbar .lb-long, .limitbar .lb-track { display: none; }
  .limitbar .lb-short { display: inline; }
  .limitbar .wrap { gap: 4px 12px; font-size: .82rem; }
  .limitbar .lb-item.full .lb-short b { color: var(--warn, #d97706); }
}

/* Pricing (home page) and plans on the Profile, 2026-10-11 */
.free-start { max-width: 760px; margin: 0 auto 24px; padding: 14px 18px; border-radius: var(--radius); background: var(--ok-bg); color: var(--ink); text-align: center; }
.free-start b { color: var(--ok); }
.plans .plan h3 { margin-bottom: 4px; }
.plan-price { font-size: 2.2rem; font-weight: 800; margin: 4px 0 0; line-height: 1.1; }
.plan-price span { font-size: 1rem; font-weight: 600; color: var(--ink-3); }
.plan-alt { color: var(--ink-3); margin: 2px 0 10px; font-size: .92rem; }
.plan ul { margin: 0 0 10px; padding-left: 1.2em; }
.plan ul li { margin: 3px 0; }
.plan.featured { border: 2px solid var(--blue); }
.packs { margin-top: 18px; }
.center.note { text-align: center; margin-top: 14px; }
.buy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 10px 0; }
.buy-grid .plan { padding: 14px; }
.buy-grid .plan-price { font-size: 1.5rem; }
.buy-grid .row-btns { display: flex; flex-wrap: wrap; gap: 8px; }
/* Interview prep in the job window (2026-10-13, beta) */
.viewer .prep { border: 1px solid var(--line); border-left: 4px solid var(--purple); border-radius: 12px; padding: 12px 14px; margin: 4px 0 12px; background: var(--bg-2); }
.viewer .prep summary { cursor: pointer; }
.viewer .prep h5 { margin: 14px 0 4px; font-size: .9rem; color: var(--accent-ink); }
.viewer .prep p { margin: 4px 0; }
.viewer .prep ul, .viewer .prep ol { margin: 4px 0; padding-left: 20px; }
.viewer .prep li { margin: 3px 0; }
.viewer .prep .prep-q li span { display: block; color: var(--ink-2); font-size: .92rem; margin-top: 2px; }
.viewer .prep .btn { margin-top: 6px; }
.chip.beta-chip { background: var(--purple); color: #fff; font-size: .68rem; vertical-align: middle; }
/* the section a Today button sent them to (2026-10-15) */
.sec.flash { animation: sec-flash 2.4s ease-out 1; border-radius: 12px; }
/* the exact row / card / question a notice sent them to (js/land.js, 2026-11-09) */
.land-flash { animation: sec-flash 2.4s ease-out 1; border-radius: 12px; }
@keyframes sec-flash { 0%, 30% { box-shadow: 0 0 0 3px var(--warn, #e2b400); } 100% { box-shadow: 0 0 0 0 transparent; } }
/* Matches: Regular jobs | Dream jobs first, the regular lane's views under it (2026-10-15) */
.views { display: block; }
.lane-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 3px; background: var(--bg-2, rgba(127,127,127,.06)); margin-bottom: 10px; }
.lane-switch button { border: 0; background: none; font: inherit; font-weight: 650; color: var(--ink-2); padding: 8px 16px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.lane-switch button[aria-selected="true"] { background: var(--blue); color: #fff; }
.lane-switch .count { margin-left: 4px; }
.sub-views { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
/* a card that wants them (owner, 2026-10-15: "it was not yellow or anything"): a thin yellow edge on the left and its
   "To do" chip. Not a yellow frame: on Jana's phone (2026-10-23, "still all yellow, does not look correct") the 5 px bar
   plus an outline around every card that wanted something turned the whole Profile yellow, and it beat the 10-22 rule above */
section.card.needs { border-left: 3px solid var(--warn, #e2b400); }

/* 2026-10-16: one label ("Applications") on every screen; every tappable control at least 40 px high (B-20) */
.appnav .nl-short { display: none !important; }
@media (max-width: 440px) {
  .appnav .nl-long, .appnav .nl-icon { display: none; }
  .appnav a { font-size: .8rem; padding: 14px 3px 12px; min-height: 44px; }
}
.linkbtn, .appnav a, .updates .upd { min-height: 40px; }
.linkbtn { display: inline-flex; align-items: center; }
.updates .upd { text-align: left; }
.switch.locked { cursor: not-allowed; opacity: .55; }
.item .t small.hold-why, .item .t small.rewrite-sum { color: var(--ink-2); margin-top: 3px; }
.limit-note-small, #limitNote { margin: 6px 0 0; }
#limitNote span + span::before { content: "· "; }
@media (pointer: coarse), (max-width: 600px) { .tags .tag button { min-width: 40px; min-height: 40px; } .pw-eye { min-height: 40px; } }
details > summary { min-height: 40px; box-sizing: border-box; padding-top: 7px; }

/* ───────────── 2026-10-16 mobile first + one Auto switch + one match card */
/* nav labels: "Matches" on wide screens, "Jobs" on a phone, where Dream and Profile leave the menu (Matches | Dream is a
   segmented control on the page; Profile is in the header's user menu) */
.appnav .nl-phone { display: none; }
.appnav a[data-nav="dream"] { display: none; }
@media (min-width: 441px) { .appnav a[data-nav="dream"] { display: inline-block; } }
@media (max-width: 440px) {
  .appnav .nl-desk { display: none; }
  .appnav .nl-phone { display: inline; }
  .appnav a[data-nav="dream"], .appnav a[data-nav="profile"] { display: none; }
  .appnav .wrap { padding: 0 8px; justify-content: space-around; }
  .appnav a { flex: 1 1 0; text-align: center; font-size: 15px; padding: 12px 2px; }
  .appnav a[data-also] { color: var(--ink); border-bottom-color: var(--blue); }
  .appnav .count { font-size: 15px; line-height: 1.2; top: 2px; right: 0; }
}
/* header user menu (phone) */
.userbox { position: relative; }
.avatar { position: relative; overflow: visible; }
.avatar img { overflow: hidden; }
.avatar .dot { position: absolute; top: -2px; right: -2px; width: 12px; height: 12px; border-radius: 50%; background: var(--warn, #d97706); border: 2px solid var(--bg); font-size: 0; min-width: 0; padding: 0; }
.user-menu { position: absolute; right: 0; top: 46px; z-index: 40; min-width: 200px; display: grid; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow); padding: 6px; }
.user-menu a, .user-menu button { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 8px 12px; border: 0; border-radius: 10px;
  background: none; color: var(--ink); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; text-align: left; }
.user-menu a:hover, .user-menu button:hover { background: var(--bg-2); }
.avatar .dot.hidden, .user-menu .count.hidden { display: none; }
@media (min-width: 441px) { .user-menu, .avatar .dot { display: none !important; } }
@media (max-width: 440px) { header.site #out, header.site #teamLink { display: none; } }

/* the one match card: title, one line of details, two lines of why, then a row of buttons */
.item.mcard { flex-wrap: wrap; align-items: flex-start; gap: 6px 12px; }
.item.mcard .t, .item.mcard .qopen { flex: 1 1 0; min-width: 0; }
.item.mcard .t b { white-space: normal; overflow: visible; }
.item .t small.mc-meta { display: flex !important; flex-wrap: wrap; align-items: center; gap: 2px 6px; white-space: nowrap !important; overflow: hidden !important; }
.item .t small.mc-meta > .mc-where { flex: 0 1 auto; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
/* phones: one line when the tags fit beside ~9em of details ("New" always does); a wide tag ("Dream match 9/10")
   goes under it rather than squeezing the company name to "Fl…" */
@media (max-width: 600px) { .item .t small.mc-meta > .mc-where { flex: 1 1 9em; } }
.item .t small.mc-meta > :not(.mc-where) { flex: none; }
.item.mcard .qwhy { margin-top: 4px; }
/* how fresh it is (2026-10-20): its own row under the details, so the details stay on one line and a tag never squeezes the company name */
.item.mcard .mc-fresh { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 4px; }
.mc-score { flex: none; }
.mc-score:empty { display: none; }
.mc-acts { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 8px; }
.mc-acts:empty { display: none; }
.item.mcard.has-pick .mc-acts { padding-left: 34px; }
.mc-acts .btn { white-space: nowrap; min-height: 40px; }
/* where it is, on-site/remote and pay (2026-11-06): its own line under the company, so a city is never cut off on a phone */
.item.mcard .mc-facts { display: flex; flex-wrap: wrap; align-items: baseline; gap: 1px 12px; margin-top: 3px; font-size: .9rem; color: var(--ink-2); overflow-wrap: anywhere; }
.item.mcard .mc-kind::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--ink-3); vertical-align: middle; margin-right: 6px; }
@media (max-width: 440px) { .item.mcard .mc-facts { font-size: 15px; } }
.item.mcard .mc-pay { color: var(--ink); font-weight: 650; white-space: nowrap; }
/* the dream flip is second place: a small ✨ (or "Not a dream job") after Choose, never as big as the main button */
.mc-acts > .btn.flip-on { flex: 0 0 auto; width: 40px; padding: 0; margin-left: auto; justify-content: center; font-size: 1.05rem; }
/* a resume row (Resumes): Review (or the row's one main button) alone on top, the rest small and quiet under it */
.item.res-row .end.res-end { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.item.res-row .end.res-end > .btn:first-child:not(.ghost) { min-width: 120px; }
.item.res-row .end-more { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.item.res-row .end-more:empty { display: none; }
.item.res-row .end-more .btn { min-height: 40px; padding-left: 12px; padding-right: 12px; font-weight: 600; }
.item.res-row .end-more .btn[data-remove] { border-color: transparent; background: none; color: var(--ink-2); }
.item.res-row .end-more .btn.flip-on { width: 40px; padding: 0; margin-left: 0; }
@media (max-width: 600px) {
  .item.res-row .end.res-end:has(.btn + .btn) { display: flex; }
  .item.res-row .end.res-end > .btn:first-child:not(.ghost) { flex: 1 1 100%; }
  .item.res-row .end-more { flex: 1 1 100%; }
  .item.res-row .end-more .btn { flex: 0 1 auto; width: auto; }
}
.mc-acts > .btn.flip-off { flex: 0 0 auto; margin-left: auto; border-color: transparent; background: none; color: var(--ink-2); }
.focus .mc-acts { margin: 0 0 12px; }
.empty-line { display: block; margin-bottom: 8px; }
.hold-form { flex: 1 1 100%; display: grid; gap: 8px; }
.hold-form textarea { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; }
.item:has(> .hold-form:not([hidden])) { flex-wrap: wrap; }

/* Auto mode: one switch, Fine-tune folded */
.auto-row.main { border-top: 0; padding-top: 12px; }
.auto-row.main .t b { font-size: 1.05rem; }
.switch.partly { background: color-mix(in srgb, var(--ok) 45%, var(--line)); }
.switch.partly span { transform: translateX(12px); }
.mode-dream { margin: 0 0 8px; }
.mode-fine { margin-top: 6px; border-top: 1px solid var(--line); padding-top: 10px; }
.mode-fine > summary { cursor: pointer; font-weight: 600; color: var(--ink-2); }
.mode-fine .auto-rows { margin-top: 6px; }
#flow { grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); }
@media (max-width: 560px) { #flow { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Matches | Dream: a segmented control on every width (replaces two nav entries on a phone) */
.lane-switch { display: flex; width: 100%; max-width: 420px; }
.lane-switch button { flex: 1 1 0; min-height: 40px; }

/* desktop polish: one chip look, one card width, consistent spacing */
.chip { font-size: .78rem; line-height: 1.4; padding: 3px 10px; }
.app .card, .app section.card, .app details.card { margin-bottom: 16px; padding: 22px; }
.app .card.empty { padding: 32px 22px; }
.app .list { gap: 10px; }
.app .sec { margin-bottom: 4px; }

/* the Matches action bar sticks to the bottom of a phone, only while something is ticked */
@media (max-width: 600px) {
  .qbar:not(.show) { display: none; }
  .qbar.show { position: fixed; left: 0; right: 0; bottom: 0; margin: 0; border-radius: 14px 14px 0 0; z-index: 25; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
  .qbar.show .end { flex: 1 1 auto; }
  body:has(.qbar.show) main.app { padding-bottom: 150px; }
  body:has(.qbar.show) .toast { bottom: 96px; }
}

/* one-line limit bar on a phone: sent and chosen; the rest shows only when it matters */
@media (max-width: 600px) {
  .limitbar .wrap { flex-wrap: nowrap; overflow: hidden; white-space: nowrap; gap: 4px 12px; }
  .limitbar .lb-item.opt:not(.full) { display: none; }
  /* the why list shows on phones too: hung from the whole bar, not the clipped row, full width and wrapping */
  .limitbar { position: relative; }
  .limitbar .lb-why { position: static; }
  .limitbar .lb-why summary { min-height: 40px; margin: -6px 0; }  /* a 40 px tap that doesn't make the one-line bar taller */
  .limitbar .lb-why ul { left: 16px; right: 16px; width: auto; white-space: normal; }
}

/* phones: dialogs fill the screen with a visible Close; nothing under 15px; no sideways scroll */
@media (max-width: 600px) {
  dialog.viewer { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .viewer .vh { padding: 10px 12px; flex-wrap: wrap; }
  .viewer .vh .btn.small { min-height: 44px; white-space: nowrap; flex: none; }
  .viewer .vf { position: sticky; bottom: 0; background: var(--card); z-index: 1; }
  .viewer .review-actions .btn { flex: 1 1 140px; white-space: nowrap; }
  /* Approve first and full width in the bar that stays at the bottom; the two quieter choices side by side under it */
  .viewer .review-actions { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
  .viewer .review-actions #vUp { order: -1; flex: 1 1 100%; }
  .viewer .review-actions #vLater, .viewer .review-actions #vDown { flex: 1 1 calc(50% - 8px); min-height: 44px; padding-left: 8px; padding-right: 8px; }
  .viewer .vb, .viewer .vb * { max-width: 100%; }
  .viewer .vb { overflow-wrap: anywhere; }
}
/* The window's header on a phone (2026-10-20, owner: the dream-job resume squeezed the title into a narrow strip beside its
   chips and Approve): job and company take the full row with Close beside them; the chips and the main button wrap under.
   One rule for the job window and the resume window. */
@media (max-width: 700px) {
  .viewer .vh { flex-wrap: wrap; }
  .viewer .vh > div:first-child { flex: 1 1 calc(100% - 88px); }
  .viewer .vh #vClose { order: 1; align-self: flex-start; }
  .viewer .vh > :not(div):not(#vClose) { order: 2; }
}
@media (max-width: 440px) {
  body { font-size: 16px; }
  .note, .sub, .today-date, small, .chip, .count, .pill, .jump-l, .jump .dot.n, .btn.small, .lb-item, .mode-sum, .dh, .tabs button, .flow-tile, .journey li, .track li,
  .updates small, .app-stats span, .mode-stats span, .kv, .linkbtn, .more-info, .how-pick, .toast, .toast button, summary, label, .field label, .demo-bar, .idle-warn,
  .app-facts, .meter-top span, .about-count, .pw-rules, .wsteps li, .tourcard span, .notes-tab, .notes-tab .badge, .bell .badge, .np-min, .pw-eye, .em-kinds legend, .kind-form legend, .kind-form label, .kind-form .about-feedback,
  .qa small, .login-box small, .login-box .lk, .score10 button, .stars button, .item .t small, .item .t small.qwhy, .match small, .week-h, .jc-head small, .jc-why,
  .resume h4, .edit-box .edit-quote, .edits .edit-item, .activity li, .bell-list li a, .bell-list li small, .dream-banner, .about-text, .headsup { font-size: 15px !important; }
  .resume { font-size: 15px; }
  .match { font-size: 1.1rem; }
  .flow-tile span, .more-link, .more-link a, .lb-title, .limitbar, .notes-panel *, .sticky-pin, .sticky-pin *, .sticky *, .np-list li *, .bell-list *, .user-menu * { font-size: 15px !important; }
  .item .t .yours-note, .item .t .yours-note *, .login-box *, .hold-form *, .reply-box *, .edit-box *, .rewrite-sum { font-size: 15px !important; }
  .avatar .dot { font-size: 0 !important; }
  .app { padding-left: 12px; padding-right: 30px; }
  .card, .app .card, .app section.card { padding: 16px; }
  .mc-acts .btn { padding-left: 12px; padding-right: 12px; }
  .score10 { gap: 3px; }
  .lane-switch { max-width: none; }
}
@media (max-width: 600px) { .viewer .vf > .note { display: none; } }
@media (max-width: 380px) { .viewer .review-actions #vLater, .viewer .review-actions #vDown { white-space: normal; line-height: 1.2; } }

/* Phone pass 2026-10-16 (owner: "the UI is broken for the phone, especially the dream jobs and applying").
   1. Notes: a round button in the bottom corner, not a tab over the middle of every page, so the page gets its full
      width back (the 30 px kept free for the tab made every card lopsided and still left text under it).
   2. The four-item menu: equal tabs, the count beside the word, never on top of it.
   3. Card buttons share the row instead of leaving one alone on a line. */
@media (max-width: 600px) {
  main.app, .app { padding-left: 12px; padding-right: 12px !important; padding-bottom: 104px; }
  .notes-tab { top: auto; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); right: 12px; width: 52px; height: 52px;
    padding: 0 !important; border: 1px solid var(--line) !important; border-radius: 50% !important; flex-direction: row;
    justify-content: center; gap: 0 !important; font-size: 1.25rem !important; }
  .notes-tab .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .notes-tab .badge { position: absolute; top: -4px; right: -4px; }
  .notes-tab.pulse { animation: notes-pop 1.6s ease-in-out 3; }
  .notes-panel { top: auto; bottom: 80px; max-height: calc(100vh - 160px); border-radius: 16px; right: 12px; width: calc(100vw - 24px); }
  /* our answers to their notes: a column at the top of the page (notes.js), not floating over its buttons */
  .app-row .end .row > .btn, .mc-acts > .btn:not(.flip) { flex: 1 1 auto; justify-content: center; text-align: center; }
  .views { margin-left: -12px !important; margin-right: -12px !important; padding-left: 12px !important; padding-right: 12px !important; }
}
@keyframes notes-pop { 50% { transform: scale(1.1); } }
@media (max-width: 440px) {
  .appnav .wrap { padding: 0 4px; gap: 0; }
  .appnav .wrap { justify-content: space-between; }
  .appnav a { flex: 0 1 auto; min-width: 0; text-align: center; padding: 14px 3px 12px !important; }
  .appnav .count { position: static !important; display: inline-block; margin: 0 !important; padding: 0 5px !important; line-height: 1.35; }
  .appnav .count.hidden { display: none !important; }
}

/* "I fixed it: try again" on a held-up application (2026-10-17) */
.fix-box { display: grid; gap: 8px; margin: 8px 0 4px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.fix-box label { display: grid; gap: 4px; }
.fix-box input { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; }
.fix-login summary { cursor: pointer; font-weight: 600; }
.fix-login[open] { display: grid; gap: 8px; }

/* our answers to their notes sit at the top of the page (notes.js), on every screen */
.sticky-pin.answer.inline { position: relative !important; z-index: auto; left: auto !important; top: auto !important; width: auto; max-width: none; margin: 0 0 12px; }

/* phone type: nothing under 15 px (site audit 2026-10-17: job-title chips, status notices, home labels) */
@media (max-width: 520px) {
  .tags .tag, .notice, .eyebrow, .hero .fine { font-size: .9375rem; }
}

/* Tap targets (2026-10-18): stand-alone controls get a >= 40 px touch area; inline links inside a sentence are exempt */
.more-link a, .demo-bar a, .focus a.post { display: inline-block; padding: 11px 6px; margin: -11px -6px; }
.focus a.post { margin-bottom: 5px; }
@media (max-width: 520px) {
  .score10 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .score10 button { padding: 12px 0; min-height: 44px; }
}

/* "Back to top" (js/totop.js), 2026-10-18: bottom-right, above the phone's round Notes button (52 px at 16 px from the bottom) */
.to-top { position: fixed; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 29; width: 48px; height: 48px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--line); background: var(--card);
  color: var(--ink); font-size: 1.35rem; font-weight: 700; line-height: 1; cursor: pointer; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.to-top[hidden] { display: none; }
.to-top:hover { border-color: var(--blue); color: var(--blue); }
@media (max-width: 600px) {
  .to-top { right: 14px; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  body:has(.qbar.show) .to-top { bottom: calc(148px + env(safe-area-inset-bottom, 0px)); }  /* clear of the "Choose selected" bar */
}

/* Today: the numbers at a glance, each one a link to its section or page (2026-10-18) */
.today-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 4px 0 16px; }
.today-sum a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 64px; padding: 8px 4px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); text-decoration: none; text-align: center; font-size: .9375rem; line-height: 1.2; }
.today-sum a b { font-size: 1.4rem; color: var(--ink); }
.today-sum a:hover { border-color: var(--blue); }
.today-sum a.dream b { color: #7c3aed; }
.today-sum a.zero b { color: var(--ink-3); }
.dream-today { border-color: color-mix(in srgb, #a855f7 35%, var(--line)); }
.dream-today .today-line { margin: 8px 0 12px; }

/* Today, 2026-10-18: one card style, clear headings. Your applications sits under matches and dream jobs since 2026-10-20. */
.apps-card { border-top: 4px solid var(--blue); }
.apps-card .card-top { margin-bottom: 12px; }
.more-top { display: inline-flex; align-items: center; min-height: 40px; font-weight: 600; font-size: .9375rem; text-decoration: none; }
.flow-tile.hot { background: color-mix(in srgb, #16a34a 12%, var(--card)); border-color: color-mix(in srgb, #16a34a 55%, var(--line)); }
.flow-tile.hot b { color: #15803d; }
.flow-tile.zero b { color: var(--ink-3); }
.flow-tile { min-height: 72px; justify-content: center; font-size: .9375rem; }
.flow { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.sub-h { margin: 18px 0 8px; font-size: .95rem; letter-spacing: .02em; color: var(--ink-3); font-weight: 650; }
.app-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.app-card { display: grid; gap: 4px; width: 100%; height: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; padding: 14px;
  border-radius: 14px; border: 1px solid var(--line); background: var(--bg-2); min-height: 40px; }
.app-card:hover { border-color: var(--blue); }
.app-card.good { border-color: color-mix(in srgb, #16a34a 55%, var(--line)); background: color-mix(in srgb, #16a34a 8%, var(--card)); }
.app-card .ac-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.app-card .ac-top b { font-size: 1.02rem; overflow-wrap: anywhere; }
.app-card .ac-role { color: var(--ink-2); font-size: .9375rem; overflow-wrap: anywhere; }
.app-card small { color: var(--ink-3); font-size: .9375rem; }
.app-card .ac-next { margin-top: 4px; font-size: .9375rem; color: var(--ink); font-weight: 550; }
.empty-apps { grid-column: 1 / -1; padding: 10px 0; }
.sum-block { margin: 0 0 16px; }
.sum-block .today-sum { margin: 0 0 8px; }
.limits-line { margin: 0; text-align: center; color: var(--ink-2); font-size: .9375rem; font-weight: 600; }
/* Today, 2026-11-06: shorter. Held-up ones we are handling fold into one line; the ones the member can help with sit in Needs you. */
.held-sum { padding: 0; }
.held-sum > summary { cursor: pointer; padding: 14px 18px; list-style: none; display: block; min-height: 44px; }
.held-sum > summary::-webkit-details-marker { display: none; }
.held-sum > summary::after { content: "▾"; float: right; color: var(--ink-3); }
.held-sum[open] > summary::after { content: "▴"; }
.held-sum > .list, .held-sum > .note { padding: 0 14px 14px; }
#stuckNeeds .sub-h { margin: 16px 0 6px; }
#needsQs:not(:empty) { margin-top: 12px; }
#me .hello { margin-bottom: 2px; }
#me .hello h1 { font-size: 1.5rem; }
#me .sub { margin-bottom: 12px; }
.app > #me > section.card h2 { font-size: 1.2rem; }
@media (max-width: 700px) { .app-cards { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); } .flow-tile b { font-size: 1.4rem; } }

/* One status block on a sent application (2026-10-19): status + their latest email + Change status */
.status-box .status-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.status-box .status-head .dh { margin: 0; }
.status-box p { margin: 8px 0 0; }
.status-box .status-note { color: var(--muted, #555); }
.status-box .status-email { font-size: .95em; }

/* Today > Your applications, compact (owner, 2026-10-19: "far too big and clunky"): the counts as one slim row of
   chips, recent applications as one line each (company, role, status, date); the next step only on good news. */
.apps-card .card-top { margin-bottom: 8px; }
.apps-card .flow { display: flex; flex-wrap: wrap; gap: 6px; grid-template-columns: none; }
.apps-card .flow-tile { flex-direction: row; align-items: baseline; gap: 6px; min-height: 34px; padding: 5px 12px; border-radius: 999px;
  font-size: .9375rem; justify-content: flex-start; }
.apps-card .flow-tile b { font-size: 1rem; }
.apps-card .flow-tile.zero { opacity: .7; }
.apps-card .sub-h { margin: 14px 0 6px; font-size: .9375rem; }
.apps-card .app-cards { display: block; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.apps-card .app-cards li + li { border-top: 1px solid var(--line); }
/* each recent card has its own "Got it" beside it (owner, 2026-10-20: "remove those if I already know about it") */
.apps-card .app-cards li { display: flex; align-items: center; gap: 4px; padding-right: 8px; background: var(--card); }
.apps-card .app-cards li .app-card { flex: 1 1 0; width: auto; min-width: 0; background: none; box-shadow: none; }
.apps-card .app-cards li:hover { background: var(--bg-2); }
.apps-card .app-cards li:has(.app-card.good) { background: color-mix(in srgb, #16a34a 7%, var(--card)); box-shadow: inset 3px 0 0 #16a34a; }
.apps-card .app-got { flex: none; padding-inline: 10px; }
.apps-card .app-cards .empty-apps { display: block; margin: 0; padding: 12px; background: none; }
.apps-card .app-cards:has(.empty-apps) { border: 0; }
.apps-card .app-cards:has(.empty-apps) .empty-apps { padding: 2px 0 4px; }
/* a computer: one line (company, role, status, date), the next step under good news */
.apps-card .app-card { display: grid; grid-template-columns: max-content minmax(0, 1fr) auto auto;
  grid-template-areas: "co role st date" "next next next next"; align-items: center; gap: 2px 12px; padding: 10px 12px;
  border: 0; border-radius: 0; background: var(--card); min-height: 48px; height: auto; }
.apps-card .app-card:hover { background: var(--bg-2); }
.apps-card .app-card.good { background: color-mix(in srgb, #16a34a 7%, var(--card)); box-shadow: inset 3px 0 0 #16a34a; }
.apps-card .ac-co { grid-area: co; font-size: .975rem; white-space: nowrap; }
.apps-card .ac-role { grid-area: role; color: var(--ink-2); font-size: .9375rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.apps-card .ac-st { grid-area: st; display: flex; gap: 6px; align-items: center; }
.apps-card .ac-date { grid-area: date; color: var(--ink-3); font-size: .9375rem; white-space: nowrap; }
.apps-card .app-card .ac-next { grid-area: next; margin: 0; font-size: .9375rem; font-weight: 550; color: #15803d; }
/* a phone (2026-10-19, owner: "handle mobile differently"): company and date on top, the role under it on one line,
   then the status; tight rows, and the counts as one row that slides sideways instead of wrapping */
@media (max-width: 600px) {
  .apps-card .app-card { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "co date" "role role" "st st" "next next";
    gap: 1px 8px; padding: 9px 12px; }
  .apps-card .ac-co { white-space: normal; overflow-wrap: anywhere; }
  .apps-card .ac-st { margin-top: 3px; }
  .apps-card .flow { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -4px; padding: 0 4px 2px;
    scroll-snap-type: x proximity; }
  .apps-card .flow::-webkit-scrollbar { display: none; }
  .apps-card .flow-tile { flex: 0 0 auto; scroll-snap-align: start; white-space: nowrap; }
  /* the job window: the steps as one line that slides, the long parts folded (prep, description) */
  .viewer .journey { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .viewer .journey::-webkit-scrollbar { display: none; }
  .viewer .journey li { flex: 0 0 auto; white-space: nowrap; padding: 4px 9px; }
  .status-box .status-head .btn { min-height: 40px; }
}
.status-box details { margin-top: 8px; }

/* A row's text never gets squeezed by its buttons (2026-10-19, owner: Resumes > Held up showed one word per line and
   no title, next to six buttons): the text keeps at least ~300px, the buttons go under it when they don't fit. */
.item { flex-wrap: wrap; }
.item .t { flex: 1 1 300px; }
.item .end { flex: 0 1 auto; flex-wrap: wrap; justify-content: flex-end; margin-left: auto; }
/* The row standard (2026-10-19, owner: "we should have a template and keep to it"): a row with two or more buttons
   always shows them on their own line under the text, at the right; a row with one button or a tag keeps it beside
   the text. Before, short titles put the buttons beside the text and long ones under it, so rows jumped around. */
.item:has(> .end .btn + .btn) > .t { flex-basis: 100%; }
@media (max-width: 600px) { .item .end { margin-left: 0; justify-content: flex-start; } }
@media (max-width: 600px) {
  /* a phone: a row's buttons in two even columns, not a ragged pile */
  .item .end:has(.btn + .btn) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; }
  .item .end:has(.btn + .btn) > .btn, .item .end:has(.btn + .btn) > a.btn { width: 100%; min-width: 0; justify-content: center;
    white-space: normal; text-align: center; line-height: 1.25; }
  .item .end:has(.btn + .btn) > .chip, .item .end:has(.btn + .btn) > .row { grid-column: 1 / -1; }
}

/* ─── Side panel, menu drawer, top-bar search, right column (owner, 2026-10-20: "lots of room left and right", a
   Reddit-style side panel, search in the top bar). The side panel is the page menu (#appnav, jobs.js nav()) shown as a
   column on wide screens; side.js adds the search, the drawer for smaller screens and the right column. */
.side-only, .appnav .nl-side, .rail { display: none; }
/* The search (owner, 2026-10-22: "just a search bar that looks cleaner ... open or close ... on my phone"). Wide screens: a plain
   rounded field in the header (magnifier inside, x to clear). Phones: a magnifier button in the header; it opens the field
   over the whole header with a Close button, the results drop under it, and the page behind is dimmed. */
.site-search { position: relative; flex: 1 1 260px; max-width: 420px; margin: 0 auto; }
.sq-field { position: relative; display: flex; align-items: center; min-width: 0; flex: 1; }
.sq-ico { position: absolute; left: 13px; top: 50%; translate: 0 -50%; display: grid; color: var(--ink-3); pointer-events: none; }
.sq-ico svg { width: 18px; height: 18px; }
.site-search input { width: 100%; min-height: 40px; padding: 8px 38px 8px 38px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg-2); color: var(--ink); font: inherit; font-size: 15px; appearance: none; -webkit-appearance: none; }
.site-search input::-webkit-search-cancel-button, .site-search input::-webkit-search-decoration { display: none; -webkit-appearance: none; }
.site-search input:focus { background: var(--card); outline: 2px solid color-mix(in srgb, var(--blue) 55%, transparent); outline-offset: 0; border-color: transparent; }
.sq-clear { position: absolute; right: 5px; top: 50%; translate: 0 -50%; width: 30px; height: 30px; display: grid; place-items: center; border: 0;
  border-radius: 50%; background: var(--bg-3); color: var(--ink-2); font: inherit; font-size: 13px; line-height: 1; cursor: pointer; padding: 0; }
.sq-clear[hidden], .sq-close, .sq-btn { display: none; }
header.site .site-search { display: none; }
@media (min-width: 760px) { header.site .site-search { display: block; } }
.sq-results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60; max-height: min(70vh, 520px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; }
.sq-results[hidden] { display: none; }
.sq-group { margin: 8px 10px 2px; font-size: 13px; font-weight: 700; color: var(--ink-3); }
.sq-hit { display: grid; gap: 1px; padding: 8px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; min-height: 40px; overflow-wrap: anywhere; }
.sq-hit small { color: var(--ink-3); font-size: 13px; }
.sq-hit:hover, .sq-hit:focus { background: var(--bg-3); }
.sq-hit:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.sq-none { margin: 10px; color: var(--ink-3); overflow-wrap: anywhere; }
@media (max-width: 759px) {
  .sq-btn { display: inline-flex; flex: none; min-width: 40px; min-height: 40px; padding: 0; margin-left: auto; }
  .sq-btn svg { width: 20px; height: 20px; }
  .sq-btn + .userbox { margin-left: 0; }
  /* open: the field takes the whole header (the header is the positioned box it sits in) */
  header.site .site-search.open { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; gap: 8px; max-width: none; margin: 0;
    padding: 0 12px; background: var(--bg); }
  header.site .site-search.open input { min-height: 44px; font-size: 16px; }  /* 16 px so iOS does not zoom in */
  header.site .site-search.open .sq-clear { width: 34px; height: 34px; }
  header.site .site-search.open .sq-close { display: inline-flex; flex: none; align-items: center; min-height: 44px; padding: 0 6px; border: 0; background: none;
    color: var(--blue); font: inherit; font-size: 16px; font-weight: 650; cursor: pointer; }
  header.site .site-search.open .sq-results { left: 0; right: 0; top: 100%; margin: 0; border-radius: 0 0 14px 14px; border-width: 0 0 1px; z-index: 3;
    max-height: calc(100vh - 80px); max-height: calc(100dvh - 80px); padding: 6px 8px 12px; }
  header.site .site-search.open .sq-hit { min-height: 48px; padding: 9px 10px; }
  header.site .site-search.open .sq-hit b { font-size: 16px; }
  header.site .site-search.open .sq-hit small, header.site .site-search.open .sq-group { font-size: 15px; }
  header.site:has(.site-search.open)::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 100vh; background: rgb(0 0 0 / .35); z-index: 2; }
  body.sq-open { overflow: hidden; }
}
.side-btn { min-width: 40px; min-height: 40px; padding: 0 10px; font-size: 1.15rem; line-height: 1; flex: none; }
header.site .wrap .side-btn + .brand { margin-left: -6px; }

/* the drawer (screens under 1100px) */
.side-shade { position: fixed; inset: 0; z-index: 70; background: rgb(0 0 0 / .35); }
.side-drawer { position: fixed; top: 0; left: 0; bottom: 0; z-index: 71; width: min(320px, 86vw); overflow-y: auto; display: flex;
  flex-direction: column; gap: 2px; padding: 10px 12px calc(24px + env(safe-area-inset-bottom, 0px)); background: var(--bg);
  border-right: 1px solid var(--line); box-shadow: var(--shadow); }
.side-shade[hidden], .side-drawer[hidden] { display: none; }
.sd-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 10px; }
.sd-head .btn { min-width: 40px; min-height: 40px; }
.side-drawer a { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 12px; border-radius: 10px; color: var(--ink-2);
  text-decoration: none; font-weight: 600; font-size: 16px; }
.side-drawer a:hover { background: var(--bg-2); color: var(--ink); }
.side-drawer a[aria-current] { background: color-mix(in srgb, var(--blue) 12%, transparent); color: var(--ink); }
.side-group { margin: 14px 12px 4px; font-size: 15px; font-weight: 700; color: var(--ink-3); }
a.side-group { display: block; text-decoration: none; cursor: pointer; }
a.side-group:hover { color: var(--ink); text-decoration: underline; }
.side-drawer .side-sub { padding-left: 26px; font-weight: 500; font-size: 15px; }
body.drawer-open { overflow: hidden; }

@media (min-width: 1100px) {
  body.has-menu { --side: 240px; --rail: 0px; }
  body.has-menu .side-btn { display: none; }
  body.has-menu #appnav { position: fixed; top: var(--hdr, 65px); left: 0; bottom: 0; width: var(--side); z-index: 9; overflow-y: auto;
    padding: 14px 12px 32px; border-bottom: 0; border-right: 1px solid var(--line); background: var(--bg); }
  body.has-menu #appnav .wrap { display: flex; flex-direction: column; align-items: stretch; gap: 2px; max-width: none; padding: 0;
    overflow: visible; white-space: normal; justify-content: flex-start; }
  body.has-menu #appnav a, body.has-menu #appnav a[data-nav="dream"] { display: flex; align-items: center; gap: 6px; min-height: 40px;
    padding: 8px 12px; border-bottom: 0; border-radius: 10px; color: var(--ink-2); font-size: .95rem; }
  body.has-menu #appnav a:hover { background: var(--bg-2); color: var(--ink); }
  body.has-menu #appnav a[aria-current]:not([data-top-only]) { background: color-mix(in srgb, var(--blue) 12%, transparent); color: var(--ink); }
  body.has-menu #appnav a[data-nav="dream"][aria-current] { background: color-mix(in srgb, #a855f7 14%, transparent); }
  body.has-menu #appnav .count { margin-left: auto; }
  body.has-menu #appnav .side-only { display: flex; }
  body.has-menu #appnav .side-group { display: block; margin: 16px 12px 4px; min-height: 0; padding: 0; border-radius: 0;
    font-size: 15px; font-weight: 700; color: var(--ink-3); }
  body.has-menu #appnav a.side-group:hover { background: none; color: var(--ink); text-decoration: underline; }
  body.has-menu #appnav .side-sub { padding-left: 26px; font-weight: 500; font-size: .92rem; }
  body.has-menu #appnav .nl-side { display: inline; }
  body.has-menu #appnav .nl-top, body.has-menu #appnav .nl-phone { display: none; }
  body.has-menu #appnav .nl-desk, body.has-menu #appnav .nl-icon { display: inline; }
  /* the page column sits in the room right of the panel (centred there when there's space) */
  body.has-menu main.app { margin-left: calc(var(--side) + max(24px, (100vw - var(--side) - var(--rail) - 760px) / 2)); margin-right: auto; }
  body.has-menu #limitbar, body.has-menu #dreamBanner { margin-left: var(--side); }
}
/* the right column: wide screens only, clear of the Notes tab on the right edge and the corner buttons */
@media (min-width: 1400px) {
  body.has-menu { --rail: 320px; }
  body.has-menu .rail { display: flex; flex-direction: column; gap: 12px; position: fixed; top: calc(var(--hdr, 65px) + 16px); right: 44px; z-index: 8;
    width: calc(var(--rail) - 60px); max-height: calc(100vh - var(--hdr, 65px) - 110px); overflow-y: auto; }
  body.has-menu #limitbar, body.has-menu #dreamBanner { margin-right: var(--rail); }
}
.rail-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.rail-card h2 { margin: 0 0 10px; font-size: 1rem; }
.rail-note { margin: 0 0 8px; font-size: .92rem; }
.rail-link { font-weight: 600; font-size: .92rem; text-decoration: none; }
.rail-bars { display: grid; gap: 10px; margin-bottom: 10px; }
.rb { display: grid; grid-template-columns: 84px 1fr auto; align-items: center; gap: 4px 8px; font-size: .9rem; }
.rb-l { color: var(--ink-2); }
.rb-t { height: 8px; border-radius: 4px; background: var(--bg-3); overflow: hidden; }
.rb-t span { display: block; height: 100%; min-width: 2px; background: var(--blue); }
.rb small { grid-column: 2 / 4; color: var(--ok); font-size: .8rem; }
.rail-list { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: .92rem; }
.rail-list small { display: block; color: var(--ink-3); }
/* Rate your jobs: swipe on phones (review.js swipe) */
.focus.swipeable { position: relative; touch-action: pan-y; user-select: none; will-change: transform; }
.swipe-hint { position: absolute; top: 14px; z-index: 2; padding: 6px 12px; border-radius: 999px; font-weight: 700; opacity: 0; transition: opacity .12s; pointer-events: none; }
.swipe-hint.yes { left: 14px; background: var(--ok-bg); color: var(--ok); }
.swipe-hint.no { right: 14px; background: var(--warn-bg); color: var(--warn-ink); }
.focus[data-swipe="yes"] .swipe-hint.yes, .focus[data-swipe="no"] .swipe-hint.no { opacity: 1; }
.swipe-tip { display: none; }
@media (pointer: coarse) { .swipe-tip { display: block; } }
/* a shortcut's target clears the sticky header when jumped to (the menu is beside it) */
@media (min-width: 1100px) { body.has-menu main.app [id] { scroll-margin-top: 84px; } }

/* Where your matches are (2026-10-21): each place a link to Matches with that place picked */
.rail .rb-link { color: inherit; text-decoration: none; border-radius: 6px; }
.rail .rb-link:hover, .rail .rb-link:focus-visible { background: var(--bg-3); }

/* Upcoming interview (2026-10-22, owner: "I got a date for a job interview and it didn't see it"): the card on Today, the
   line in a job's window and on its Applications row. */
.iv-card { border-color: var(--ok); box-shadow: 0 0 0 1px var(--ok) inset; }
.iv-card .iv-box + .iv-box { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.iv-box p { margin: 0 0 6px; overflow-wrap: anywhere; }
.iv-line { font-size: 1.02rem; }
.iv-in { color: var(--ink-2); white-space: nowrap; }
.iv-with, .iv-opts { color: var(--ink-2); }
.iv-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px !important; }
.viewer .iv-box { border-radius: 12px; padding: 12px 14px; background: var(--ok-bg); margin: 4px 0 12px; }
.viewer .iv-box p { color: var(--ink); }
.app-facts + .iv-row, .iv-row { display: block; margin-top: 6px; color: var(--ink); font-size: .9rem; overflow-wrap: anywhere; }
.iv-row b { color: var(--ok); }
@media (max-width: 440px) {
  .iv-box, .iv-box *, .iv-row, .iv-row * { font-size: 15px !important; }
  .iv-acts .btn { flex: 1 1 auto; justify-content: center; text-align: center; }
}
/* How did your interview go? (2026-10-23): under the upcoming interview on Today, after one */
.iv-fb { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue) inset; }
.iv-fb h2 { overflow-wrap: anywhere; }
.iv-fb .iv-job { margin: -6px 0 14px; overflow-wrap: anywhere; }
.iv-fb .qa { border-top: 0; padding-top: 0; }
.iv-fb .qa textarea { font-size: 1rem; }
@media (max-width: 440px) {
  .iv-fb .qa p, .iv-fb .note, .iv-fb .btn, .iv-fb textarea { font-size: 15px !important; }
  .iv-fb .iv-acts .btn { flex: 1 1 calc(50% - 8px); justify-content: center; text-align: center; }
}

/* Resume questions (owner, 2026-10-22: "all yellow ... I can't really see what it's asking or ... to say yes"): neutral
   items, big one-tap buttons first, the typed answer behind "Add details"; only a question that holds an application is marked */
.q-lead { margin: 0 0 10px; font-weight: 650; color: var(--ink); }
#questions .qa-item, #assumed .qa-item { border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 14px; margin: 0 0 12px; }
#questions .qa-item:first-child, #assumed .qa-item:first-of-type { border-top: 1px solid var(--line); }
#questions .qa-item.qa-hold { border-left: 4px solid var(--warn, #d97706); }
#questions .q-text, #assumed .q-text { font-size: 1.05rem; line-height: 1.4; margin: 0 0 4px; }
#questions .qa-item .note, #assumed .qa-item .note { color: var(--ink-3); margin: 0 0 10px; }
/* "What we added from your work": folds when there are many, below the open questions */
#assumed { margin-top: 14px; }
.assumed-fold > summary { cursor: pointer; display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 1.05rem; }
.assumed-fold[open] > summary { margin-bottom: 6px; }
.q-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 8px 0 0; }
.q-acts .btn { min-height: 48px; justify-content: center; text-align: center; }
.q-acts .btn.small { min-height: 44px; }
.q-more { margin-top: 6px; min-height: 44px; }
.q-detail { margin-top: 6px; }
.q-detail textarea { min-height: 84px; }
/* the number a "how many" question asks for, next to Yes (2026-11-12) */
.q-num { display: grid; gap: 4px; margin: 8px 0 0; max-width: 420px; }
.q-num > span { font-weight: 600; }
.q-num > span .note { font-weight: 400; display: block; }
.q-num input { min-height: 44px; }
.q-done { padding: 10px 14px; margin: 0 0 12px; border-radius: 12px; background: var(--ok-bg); color: var(--ok); font-weight: 600; }
@media (max-width: 600px) {
  .q-acts { display: grid; grid-template-columns: 1fr 1fr; }
  .q-acts .q-skip { grid-column: 1 / -1; }
  .q-acts.q-one { grid-template-columns: 1fr; }
  .q-acts.q-one .btn { width: 100%; }
  .q-acts .btn { width: 100%; padding-left: 8px; padding-right: 8px; }
  /* What we added: Got it / Change it / Remove it in one even row (2026-10-23) */
  #assumed .q-acts:not(.q-one) { grid-template-columns: repeat(3, 1fr); gap: 6px; }
}

/* Adding a job (2026-10-23): the note box, jobs they added, a note on any job's window */
#addJobDlg form.fields { display: grid; gap: 12px; margin: 0 0 12px; max-width: none; justify-content: stretch; }
#addJobDlg form.fields label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--ink-2); }
#addJobDlg form.fields input, #addJobDlg form.fields textarea { width: 100%; margin: 0; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-weight: 400; }
#addJobDlg form.fields textarea { resize: vertical; min-height: 72px; }
.job-note { margin-top: 14px; }
.job-note .job-note-saved { margin: 0 0 8px; padding: 8px 10px; border-left: 3px solid var(--blue); background: color-mix(in srgb, var(--blue) 7%, transparent); border-radius: 6px; overflow-wrap: anywhere; }
.job-note textarea { width: 100%; margin: 6px 0 8px; }
.added-row .app-facts span { white-space: normal; }
/* Profile > Questions employers asked (Jana, 2026-10-29): search, New / All / Answers differ, one row per question; a row is
   an ordinary .item whose change box takes the row's whole width (like Kinds of work) */
.asked-sum { margin: 0 0 10px; font-weight: 650; color: var(--ink-2); }
.asked-find { margin: 0 0 10px; }
#asked .filters { margin: 0 0 12px; }
.asked-co { margin: 0 0 12px; }
#asked .list { gap: 10px; }
.item.asked { flex-wrap: wrap; align-items: flex-start; }
.item.asked > .t { flex: 1 1 100%; }
.item.asked > .end { flex: 1 1 100%; justify-content: flex-start; flex-wrap: wrap; }
.item.asked .t b.asked-q { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
.item.asked .asked-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.item.asked .asked-tags:not(:empty) { margin-top: 6px; }
.item.asked .asked-a { margin-top: 6px; color: var(--ink-2); overflow-wrap: anywhere; }
.item.asked .asked-a strong { color: var(--ink); font-weight: 650; }
.item.asked .t small { margin-top: 3px; overflow-wrap: anywhere; }
.item.asked .t small .linkbtn { font-size: inherit; min-height: 32px; padding: 0 4px; }
/* an answer we assumed for them (contract 3, owner 2026-11-06): a calm highlight, the suggestion, Yes / No side by side */
.item.asked.asked-check { background: var(--warn-bg); border-color: transparent; }
.item.asked .asked-sugg { margin-top: 4px; color: var(--warn-ink); }
.item.asked .asked-sugg strong { font-weight: 650; }
.item.asked > .end.asked-acts { gap: 8px; }
.item.asked > .asked-edit { flex: 1 1 100%; border-top: 1px solid var(--line); padding: 12px 0 0; }
.asked-edit label { display: block; font-weight: 600; font-size: .92rem; color: var(--ink-2); }
.asked-edit textarea { display: block; margin-top: 6px; font-weight: 400; min-height: 76px; resize: vertical; }
.asked-edit .asked-msg { margin: 8px 0 0; }
@media (max-width: 600px) {
  .item.asked { padding: 12px; }
  .item.asked > .end .btn { flex: 1 1 100%; }
  #asked .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -16px; margin-right: -16px; padding: 2px 16px 4px; }
  #asked .filters::-webkit-scrollbar { display: none; }
  #asked .filters .pill { flex: 0 0 auto; }
}
@media (max-width: 440px) { .asked-sum, .asked-edit label, .asked-co .tag, .item.asked .asked-a strong { font-size: 15px !important; } }

/* ═══ TEAM PORTAL (team.html, 2026-10-27): a dashboard. Everything is scoped under .team ═══════════════════════════ */
main.app.team { max-width: 1280px; padding: 20px 20px 80px; margin: 0 auto; font-size: 1rem; }
.team h1 { font-size: 1.5rem; margin: 0; }
.team h2 { font-size: 1.4rem; margin: 0 0 8px; }
.team .note, .team .tp-sm { color: var(--ink-2); font-size: .95rem; margin: 0 0 14px; }
.team .tp-sm { margin: 2px 0 0; }
.team .tp-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 16px 20px; margin-bottom: 14px; }
.team .tp-who { margin: 4px 0 0; color: var(--ink-2); font-size: 1rem; }
.team .tp-fresh { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: .95rem; }
.team .chip { font-size: .9375rem; padding: 4px 10px; }
.team .tp-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.team .tp-main { min-width: 0; }
.team .tp-nav { position: sticky; top: 84px; display: grid; gap: 4px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.team .tp-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 14px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1rem; }
.team .tp-link:hover { background: var(--bg-3); }
.team .tp-link.on { background: var(--blue); color: #fff; }
.team .tp-badge { min-width: 24px; padding: 1px 8px; border-radius: 999px; background: var(--bg-3); color: var(--ink); font-size: .9375rem; text-align: center; }
.team .tp-link.on .tp-badge { background: rgba(255, 255, 255, .25); color: #fff; }
.team .tp-sec { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.team .tp-h3 { font-size: 1.08rem; margin: 22px 0 10px; display: flex; align-items: center; gap: 8px; }
.team .tp-count { font-size: .9375rem; font-weight: 700; padding: 1px 9px; border-radius: 999px; background: var(--bg-3); color: var(--ink-2); }
.team .tp-empty { color: var(--ink-2); padding: 14px 4px; margin: 0; }
.team .tp-warn { color: var(--warn-ink); font-weight: 700; }
.team .tp-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.team .tp-kpi { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); color: var(--ink); text-decoration: none; }
.team a.tp-kpi:hover { border-color: var(--blue); }
.team .tp-kpi b { font-size: 1.9rem; line-height: 1.1; font-weight: 800; }
.team .tp-kpi span { color: var(--ink-2); font-size: .95rem; }
.team .tp-kpi.warn { background: var(--warn-bg); border-color: var(--warn-ink); }
.team .tp-kpi.warn b { color: var(--warn-ink); }
.team .tp-kpi.ok { background: var(--ok-bg); }
.team .tp-kpi.ok b { color: var(--ok); }
.team .tp-kpis-s { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); margin-bottom: 16px; }
.team .tp-kpis-s .tp-kpi b { font-size: 1.4rem; }
.team .tp-list { display: grid; gap: 10px; }
.team .tp-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.team .tp-row.warn { border-left: 5px solid var(--warn-ink); }
.team .tp-row.ok { border-left: 5px solid var(--ok); }
.team .tp-row-t { flex: 1 1 320px; min-width: 0; display: grid; gap: 2px; }
.team .tp-row-t b { font-size: 1.02rem; overflow-wrap: anywhere; }
.team .tp-row-t span { color: var(--ink-2); font-size: .95rem; overflow-wrap: anywhere; }
.team .tp-row-t .tp-tag { justify-self: start; font-size: .9375rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--accent-ink); }
.team .tp-row-b, .team .tp-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.team .tp-row .tp-form, .team .tp-row > .desk-pic { flex: 1 1 100%; }
.team .tp-row-b .btn, .team .tp-btns .btn { white-space: nowrap; }
.team .tp-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-bottom: 14px; }
.team .tp-sel { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink-2); }
.team select, .team input[type=text], .team input[type=number], .team input[type=date], .team textarea { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-size: 1rem; min-height: 44px; max-width: 100%; }
.team textarea { width: 100%; }
.team .pill { font-size: .95rem; padding: 8px 14px; color: var(--ink); }
.team .pill[aria-pressed="true"] { color: #fff; }
.team .tp-form { display: grid; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.team .tp-form label, .team .tp-adj label { display: grid; gap: 6px; font-weight: 600; color: var(--ink-2); }
.team .form-err { color: var(--warn-ink); font-weight: 600; margin: 6px 0 0; }
.team .sr { position: absolute; left: -9999px; }
.team .tp-table-wrap { overflow-x: auto; }
.team .tp-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.team .tp-table th, .team .tp-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.team .tp-table thead th { color: var(--ink-2); font-size: .9375rem; text-transform: uppercase; letter-spacing: .04em; }
.team .tp-table tbody tr:hover { background: var(--bg-2); }
.team .tp-table th[scope=row] a { font-weight: 700; font-size: 1.05rem; }
.team .tp-mhead { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.team .tp-mhead h3 { margin: 0; font-size: 1.4rem; }
.team .tp-card { padding: 18px; margin-top: 16px; box-shadow: none; }
.team .tp-card h3 { margin: 0 0 10px; font-size: 1.1rem; }
.team .tp-card .tp-row { margin-top: 8px; }
.team .tp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; align-items: end; }
.team .tp-grid .tp-wide { grid-column: 1 / -1; }
.team .tp-plan { border: 1px solid var(--line); margin: 12px 0 0; }
.team .tp-plan legend { padding: 0 6px; }
.team .tp-pack { padding: 12px 0; border-top: 1px solid var(--line); }
.team .tp-check { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink-2); }
.team .tp-check input { width: auto; }
.team .tp-chips { display: flex; flex-wrap: wrap; gap: 8px 16px; border: 0; margin: 0; padding: 0; }
.team .tp-chips legend { font-weight: 600; color: var(--ink-2); padding: 0; margin-bottom: 6px; }
.team .tp-photo { width: 96px; height: 96px; border-radius: 12px; object-fit: cover; margin-top: 6px; }
.team .tp-adj { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.team .tp-adj-col { display: grid; justify-content: stretch; }
.team .tp-inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.team .tp-inline input[type=number] { width: 110px; }
.team .tp-inline input[type=text] { width: min(360px, 100%); }
.team .tp-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.team .tp-tag-t { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 12px; border-radius: 999px; background: var(--bg-3); color: var(--ink); font-size: .95rem; }
.team .tp-tag-t button { border: 0; background: transparent; color: var(--ink-2); font-size: 1.2rem; line-height: 1; cursor: pointer; width: 30px; height: 30px; border-radius: 50%; }
.team .tp-tag-t button:hover { background: var(--line); color: var(--ink); }
.team .tp-tray { display: grid; gap: 8px; margin-bottom: 14px; }
.team .tp-tray:empty { display: none; }
.team .tp-tray-i { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-3); color: var(--ink); }
.team .tp-tray-i span { color: var(--ink-2); flex: 1 1 200px; }
.team .tp-tray-i.wait, .team .tp-tray-i.wait2 { background: var(--warn-bg); border-color: var(--warn-ink); }
.team .tp-tray-i.wait b::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 8px; border-radius: 50%; border: 2px solid var(--warn-ink); border-right-color: transparent; animation: tpspin .9s linear infinite; vertical-align: -1px; }
.team .tp-tray-i.ok { background: var(--ok-bg); border-color: var(--ok); }
.team .tp-tray-i.no { border-color: var(--warn-ink); }
.team .tp-x { border: 0; background: transparent; color: var(--ink-2); font-size: 1.4rem; cursor: pointer; width: 32px; height: 32px; }
@keyframes tpspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .team .tp-tray-i.wait b::before { animation: none; } }
.team .tp-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; align-items: start; margin-top: 12px; }
.team .tp-col { padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); min-width: 0; }
.team .tp-col .tp-h3 { margin-top: 2px; }
.team .tp-col.hot { border: 2px solid var(--ok); background: var(--ok-bg); }
.team .tp-post { padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); margin-bottom: 10px; }
.team .tp-post-h { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.team .tp-post-h span { color: var(--ink-2); font-size: .9375rem; }
.team .tp-post p { margin: 6px 0 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
.team #socialNew { margin-bottom: 8px; }
.team .tp-status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 1rem; }
.team .desk-pic { position: relative; width: min(100%, 640px); line-height: 0; }
.team .desk-pic img { width: 100%; height: auto; min-height: 220px; display: block; cursor: crosshair; border: 2px solid var(--line); border-radius: 12px; background: var(--bg-3); }
.team .desk-dot { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: #e5484d; border: 3px solid #fff; pointer-events: none; box-shadow: 0 0 0 1px rgba(0, 0, 0, .4); }
.team .desk-say { flex: 1 1 100%; margin: 0; font-weight: 600; color: var(--ink-2); }
@media (max-width: 859px) {
  main.app.team { padding: 12px 12px 80px !important; }
  .team .tp-body { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .team .tp-nav { position: sticky; top: 0; z-index: 5; display: flex; overflow-x: auto; gap: 6px; padding: 8px; -webkit-overflow-scrolling: touch; }
  .team .tp-link { flex: none; white-space: nowrap; padding: 10px 14px; }
  .team .tp-sec { padding: 14px; }
  .team .tp-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .team .tp-kpi { padding: 12px; }
  .team .tp-kpi b { font-size: 1.6rem; }
  .team .tp-row-b, .team .tp-row-b .btn { flex: 1 1 auto; }
  .team .tp-table thead { position: absolute; left: -9999px; }
  .team .tp-table, .team .tp-table tbody, .team .tp-table tr, .team .tp-table th, .team .tp-table td { display: block; }
  .team .tp-table tr { border: 1px solid var(--line); border-radius: 14px; padding: 6px 12px; margin-bottom: 10px; background: var(--card); }
  .team .tp-table th, .team .tp-table td { border: 0; padding: 6px 0; display: flex; justify-content: space-between; gap: 12px; }
  .team .tp-table td::before { content: attr(data-l); color: var(--ink-2); }
  .team .tp-table th[scope=row] { font-size: 1.1rem; }
}

/* Team portal round 3 (2026-10-28): a compact work tool. Inbox rows, member workspace, the AI helper panel. */
.team .tp-slim { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 12px; color: var(--ink-2); font-size: 1rem; }
.team .tp-slim b { color: var(--ink); font-size: 1.15rem; }
.team .tp-ilist { display: grid; gap: 8px; }
.team .tp-irow { border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.team .tp-irow.warn { border-left: 5px solid var(--warn-ink); }
.team .tp-irow.ok { border-left: 5px solid var(--ok); }
.team .tp-ihead { display: flex; align-items: center; gap: 8px 12px; padding: 6px 10px 6px 4px; min-height: 52px; }
.team .tp-itog { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 8px 8px; border: 0; background: transparent; color: var(--ink); font: inherit; text-align: left; border-radius: 10px; min-height: 44px; align-content: center; }
.team button.tp-itog { cursor: pointer; }
.team button.tp-itog:hover { background: var(--bg-2); }
.team .tp-itog b { font-size: 1.02rem; overflow-wrap: anywhere; }
.team .tp-im { font-weight: 700; color: var(--blue); }
.team .tp-isub { flex: 1 1 100%; color: var(--ink-2); font-size: .95rem; overflow-wrap: anywhere; }
.team .tp-itog .tp-tag { font-size: .9375rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--accent-ink); }
.team .tp-age { flex: none; color: var(--ink-2); font-size: .9375rem; white-space: nowrap; }
.team .tp-iprim { flex: none; }
.team .tp-iprim .btn, .team .tp-ihead .chip { white-space: nowrap; }
.team .tp-irow:has(.tp-itog[aria-expanded="true"]) .tp-iprim { display: none; }  /* open: its buttons are in the body, never twice */
.team .tp-ibody { padding: 2px 14px 14px; border-top: 1px dashed var(--line); }
.team .tp-ibody .tp-form:first-child { border-top: 0; margin-top: 6px; }
.team .tp-post-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 8px 0; }
.team .btn.small { min-height: 40px; }
.team .tp-msearch { margin-bottom: 12px; }
.team .tp-msearch input { width: min(420px, 100%); }
.team .tp-mlist { display: grid; gap: 8px; }
.team .tp-mrow { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); text-decoration: none; min-height: 52px; }
.team .tp-mrow:hover { border-color: var(--blue); }
.team .tp-mrow.warn { border-left: 5px solid var(--warn-ink); }
.team .tp-mrow > b { font-size: 1.05rem; }
.team .tp-mnums { flex: 1 1 260px; color: var(--ink-2); font-size: .95rem; }
.team .tp-go { color: var(--blue); font-weight: 700; margin-left: auto; order: 2; }
.team .tp-back { margin: 0 0 6px; }
.team .tp-mhead { flex-wrap: wrap; }
.team .tp-mai { margin-left: auto; }
.team .tp-tabs { display: flex; gap: 4px; overflow-x: auto; margin: 0 0 14px; border-bottom: 1px solid var(--line); -webkit-overflow-scrolling: touch; }
.team .tp-tab { flex: none; padding: 11px 16px; min-height: 44px; border-bottom: 3px solid transparent; color: var(--ink-2); font-weight: 650; text-decoration: none; }
.team .tp-tab.on { color: var(--blue); border-bottom-color: var(--blue); }
.team .tp-pending { padding: 10px 14px; border-radius: 12px; background: var(--warn-bg); margin-bottom: 8px; }
.team .tp-res { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; background: var(--card); }
.team .tp-res > .tp-ihead { padding-right: 12px; }
.team .tp-restext { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: 1rem; line-height: 1.5; max-height: 360px; overflow: auto; margin: 8px 0; padding: 12px; border-radius: 10px; background: var(--bg-2); }
.team .tp-wsbody textarea { min-height: 80px; }
.team input[type=search] { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-size: 1rem; min-height: 44px; max-width: 100%; }
/* the AI helper: slides in from the right, full screen on a phone */
.tp-ai { position: fixed; z-index: 60; top: 0; right: 0; bottom: 0; width: min(430px, 100vw); display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; background: var(--card); color: var(--ink); border-left: 1px solid var(--line); box-shadow: -8px 0 30px rgba(0, 0, 0, .18); animation: tpslide .18s ease-out; }
.tp-ai.hidden { display: none; }
.tp-ai-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tp-ai-h b { display: block; font-size: 1.15rem; }
.tp-ai-h span { color: var(--ink-2); font-size: .95rem; }
.tp-ai .tp-sm { color: var(--ink-2); font-size: .95rem; margin: 0; }
.tp-ai-thread { flex: 1 1 auto; overflow-y: auto; display: grid; align-content: start; gap: 10px; padding: 4px 0; }
.tp-ai-msg { max-width: 92%; padding: 10px 14px; border-radius: 14px; background: var(--bg-3); }
.tp-ai-msg p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.tp-ai-msg.you { justify-self: end; background: var(--blue); color: #fff; }
.tp-ai-msg.wait { color: var(--ink-2); font-style: italic; }
.tp-ai-act { margin-top: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); display: grid; gap: 6px; justify-items: start; }
.tp-ai-act .tp-sm { margin: 0; }
.tp-ai-st.ok { color: var(--ok); font-weight: 650; }
.tp-ai-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.tp-ai-form textarea { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-size: 1rem; min-height: 56px; width: 100%; }
.tp-ai .sr { position: absolute; left: -9999px; }
@keyframes tpslide { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .tp-ai { animation: none; } }
@media (max-width: 859px) {
  .tp-ai { width: 100vw; border-left: 0; }
  .team .tp-ihead { flex-wrap: wrap; }
  .team .tp-iprim { flex: 1 1 100%; }
  .team .tp-iprim .btn { width: 100%; min-height: 44px; }
  .team .tp-iprim .btn, .team .tp-ihead .chip, .team .tp-ibody .btn { min-height: 44px; }
  .team .tp-age { order: 3; }
  .team .btn.small, .team .pill { min-height: 44px; }
  .team .chip, .team .tp-badge, .team .tp-count, .team .tp-itog .tp-tag, .team .tp-row-t .tp-tag { font-size: .95rem; }
  .team .tp-age { font-size: .95rem; }
  .team .tp-link { min-height: 44px; }
  .team .tp-tab { padding: 11px 14px; }
}
.tp-ai-msg.you p { color: #fff; }
.team #aiOpen { white-space: nowrap; }
.tp-ai .btn { min-height: 44px; }
/* confirmations are toasts, not banners: bottom right (full width on a phone), at most 3, a done one fades */
.team .tp-tray { position: fixed; z-index: 55; right: 16px; bottom: 16px; width: min(380px, calc(100vw - 32px)); margin: 0; pointer-events: none; }
.team .tp-tray-i { pointer-events: auto; box-shadow: 0 6px 24px rgba(0, 0, 0, .18); background-color: var(--card); }
.team .tp-tray-i.wait, .team .tp-tray-i.wait2 { background-color: var(--warn-bg); }
.team .tp-tray-i.ok { background-color: var(--ok-bg); }
.team .tp-tray-i.fade { animation: tpfade .45s ease-out forwards; }
@keyframes tpfade { to { opacity: 0; transform: translateY(8px); } }
.team .tp-res-line { margin: 6px 14px 10px; font-weight: 650; color: var(--ink-2); }
.team .tp-res-line.ok { color: var(--ok); }
.team .tp-res-line.no { color: var(--warn-ink); }
body.tp-ai-open .team .tp-tray { right: min(446px, 100vw); }
@media (max-width: 859px) { .team .tp-tray { left: 8px; right: 8px; bottom: 8px; width: auto; } body.tp-ai-open .team .tp-tray { display: none; } }
@media (prefers-reduced-motion: reduce) { .team .tp-tray-i.fade { animation: none; opacity: 0; } }

/* Team portal on a phone (owner 2026-10-28: "ensure ... is optimized for the phone"): every part and every tab of a
   member's page in view (they wrapped out of sight to the right), the Inbox filters in one row you swipe, "Show more" */
.team .tp-more { margin: 10px 0 0; text-align: center; }
@media (max-width: 640px) {
  .team .tp-nav { position: static; flex-wrap: wrap; overflow: visible; gap: 6px; }
  .team .tp-link { padding: 10px 12px; }
  .team .tp-tabs { flex-wrap: wrap; overflow: visible; gap: 6px; border-bottom: 0; }
  .team .tp-tab { min-height: 44px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; }
  .team .tp-tab.on { border-color: var(--blue); background: var(--blue); color: #fff; }
  .team #inboxFilters { gap: 8px; }
  .team #inboxFilters .pills { flex: 1 1 100%; min-width: 0; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .team #inboxFilters .pill { flex: none; }
}
.team .tp-pmore { display: none; }
@media (max-width: 640px) {
  .team .tp-post .tp-ptext:not(.full) { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; line-clamp: 5; overflow: hidden; margin-bottom: 4px; }
  .team .tp-pmore { display: inline-block; margin: 0 0 6px; padding: 10px 0; min-height: 44px; border: 0; background: none; color: var(--blue); font: inherit; font-weight: 650; cursor: pointer; }
}

/* ═══ Team portal round 4 (2026-10-28): a calmer work tool. Inbox queues + Today, grouped stuck, Grow pipeline, Social tabs and media,
   the Team part, My notes. Rows are one line; a tap opens them in place. Every control is 44 px on a phone. ═══ */
.team .tp-ibar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin: 0 0 10px; min-height: 32px; }
.team .tp-ibar .tp-sm { margin: 0; }
/* a row is one line: who, what, how old, one button */
.team .tp-itog { flex-wrap: nowrap; align-items: center; gap: 8px; overflow: hidden; align-content: center; }
.team .tp-im, .team .tp-itog .tp-tag { flex: none; }
.team .tp-ititle { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team .tp-itog .tp-isub { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team .tp-idet b { display: block; overflow-wrap: anywhere; }
.team .tp-idet p { margin: 2px 0 0; }
.team .tp-apdet { max-height: 200px; }
@media (min-width: 641px) { .team .tp-idet:not(.tp-long) { display: none; } }
/* stuck applications grouped by why */
.team .tp-grp { border: 1px solid var(--line); border-radius: 14px; background: var(--card); margin-bottom: 12px; padding: 4px 14px 12px; }
.team .tp-gh { margin: 0; font-size: 1.05rem; }
.team .tp-gtog { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 8px 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
.team .tp-gtog::after { content: "+"; margin-left: auto; color: var(--ink-2); font-size: 1.4rem; line-height: 1; }
.team .tp-gtog[aria-expanded="true"]::after { content: "\2212"; }
.team .tp-gsub { margin: 0 0 10px; color: var(--ink-2); font-size: .98rem; }
.team .tp-gact { margin-bottom: 10px; }
.team .tp-gbody { display: grid; gap: 8px; }
.team .tp-gbody > div.hidden { display: none; }
.team .tp-gbody > div:not(.hidden):not(.tp-irow) { display: grid; gap: 8px; }
/* members: why one is off */
.team .tp-off { order: 5; flex: 1 1 100%; color: var(--warn-ink); font-weight: 650; font-size: .95rem; }
.team .tp-mrow.off { border-left: 5px solid var(--warn-ink); }
.team #mFilters { margin-bottom: 12px; }
.team .tp-mai { margin-left: auto; display: inline-flex; gap: 8px; flex-wrap: wrap; }
.team .tp-okline { margin: 0 0 12px; padding: 8px 12px; border-radius: 10px; background: var(--warn-bg); color: var(--ink); }
.team .tp-note-text { white-space: pre-wrap; }
/* CAPTCHA desk */
.team #deskTop { margin-bottom: 6px; }
.team #deskTop .btn.primary { white-space: normal; text-align: left; }
.team .tp-stools { margin-bottom: 12px; }
/* Grow: pipeline, deals, plans, invite */
.team .tp-subtabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.team .tp-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; align-items: start; }
.team .tp-bcol { padding: 10px 12px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); min-width: 0; }
.team .tp-bcol .tp-h3 { margin: 4px 0 10px; }
.team .tp-bnone { margin: 4px 0; }
.team .tp-lcard { display: block; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); text-decoration: none; }
.team .tp-lcard.warn { border-left: 5px solid var(--warn-ink); }
.team a.tp-lcard { padding: 10px 12px; }
.team a.tp-lcard:hover { border-color: var(--blue); }
.team .tp-ltog { display: grid; gap: 2px; width: 100%; min-height: 52px; padding: 10px 12px; border: 0; background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; border-radius: 12px; }
.team .tp-ltog:hover { background: var(--bg-2); }
.team .tp-ltog b { overflow-wrap: anywhere; }
.team .tp-ltog .tp-sm { margin: 0; }
.team .tp-lchips { display: flex; flex-wrap: wrap; gap: 6px; }
.team .tp-lchips:empty { display: none; }
.team .tp-lbody { padding: 0 12px 12px; border-top: 1px dashed var(--line); }
.team .tp-bpassed { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 0 14px; }
.team .tp-dh { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 14px; }
.team .tp-dh p { margin: 2px 0 0; }
.team .tp-dsum { margin: 8px 0 4px; font-size: 1.05rem; }
.team .tp-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; align-items: start; }
.team .tp-plan2 { margin-top: 0; }
.team .tp-plan2 ul { margin: 6px 0; padding-left: 1.2em; }
.team .tp-price { margin: 0 0 6px; }
.team .tp-price b { font-size: 1.5rem; }
.team .tp-custom { border: 2px dashed var(--blue); }
.team .tp-callout { margin: 10px 0 14px; padding: 12px 16px; border-left: 5px solid var(--warn-ink); border-radius: 10px; background: var(--warn-bg); }
.team .tp-callout ul { margin: 6px 0; padding-left: 1.2em; }
.team .tp-callout li { margin: 4px 0; }
.team textarea[readonly] { background: var(--bg-2); }
/* Social: tabs, composer, media */
.team #socialTabs { margin-top: 4px; }
.team .tp-composer { margin: 0 0 16px; }
.team .tp-composer h3 { margin-top: 0; }
.team .tp-mpicker { display: flex; flex-wrap: wrap; gap: 8px; border: 0; margin: 0; padding: 0; }
.team .tp-mpicker legend { font-weight: 600; color: var(--ink-2); padding: 0; margin-bottom: 6px; }
.team .tp-mpick { position: relative; display: grid; justify-items: center; gap: 2px; width: 92px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); cursor: pointer; font-weight: 400; }
.team .tp-mpick:has(input:checked) { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue); }
.team .tp-mpick input { position: absolute; opacity: 0; pointer-events: none; }
.team .tp-mpick img, .team .tp-mvideo, .team .tp-mnone { width: 78px; height: 56px; object-fit: cover; border-radius: 8px; display: grid; place-items: center; background: var(--bg-3); color: var(--ink-2); font-size: .9375rem; }
.team .tp-mpick .tp-sm { font-size: .9375rem; text-align: center; overflow-wrap: anywhere; }
.team .tp-media { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-top: 12px; }
.team .tp-mtile { display: grid; gap: 6px; align-content: start; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); min-width: 0; }
.team .tp-mthumb { aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--bg-3); display: grid; place-items: center; }
.team .tp-mthumb img { width: 100%; height: 100%; object-fit: cover; }
.team .tp-mtile b { overflow-wrap: anywhere; }
.team .tp-mtile .tp-sm { margin: 0; }
.team .tp-mtile select { width: 100%; }
.team .tp-mhelp { margin: 4px 0 8px; }
.team .tp-pmedia { margin: 0 0 6px; }
/* the Team part */
.team .tp-staff { margin-top: 12px; }
.team .tp-sbody { margin-top: 8px; }
.team .tp-staff > .btn { margin-top: 6px; }
.team .tp-perm { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 6px 0; border-top: 1px dashed var(--line); }
.team .tp-perm > span:first-child { flex: 1 1 200px; min-width: 0; }
/* My notes (slides in like the AI helper, the same on a phone) */
.tp-notes-text { flex: 1 1 auto; width: 100%; min-height: 40vh; padding: 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-size: 1rem; resize: none; }
@media (max-width: 859px) {
  .team .tp-ihead { flex-wrap: nowrap; gap: 6px; padding: 2px 8px 2px 2px; }
  .team .tp-iprim { flex: none; }
  .team .tp-iprim .btn { width: auto; min-height: 44px; padding-left: 12px; padding-right: 12px; }
  .team .tp-age { order: 0; font-size: .9375rem; }
  .team .tp-gtog, .team .tp-ltog, .team .tp-check, .team .tp-mpick { min-height: 44px; }
  .team .tp-board, .team .tp-plans, .team .tp-bpassed { grid-template-columns: minmax(0, 1fr); }
  .team .tp-mai { margin-left: 0; width: 100%; }
}
@media (max-width: 640px) {
  .team .tp-itog .tp-tag, .team .tp-itog .tp-isub { display: none; }
  .team .tp-itog { gap: 6px; }
  .team .tp-age { font-size: .95rem; }
  .team .tp-mpick { width: calc(33.3% - 6px); }
  .team .tp-media { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .team .tp-stools .btn { flex: 1 1 100%; }
  .team .tp-gtog { font-size: 1.05rem; }
}
.team .tp-ilist, .team .tp-gbody { grid-template-columns: minmax(0, 1fr); }
.team .tp-irow, .team .tp-ihead { min-width: 0; }
.team .tp-fresh .btn { white-space: nowrap; }
@media (max-width: 640px) { .team .tp-fresh { flex-wrap: wrap; } }
.team a.tp-lcard { display: grid; gap: 2px; }
.team .tp-form label.tp-check, .team .tp-adj label.tp-check { display: flex; align-items: center; }
.team .tp-ailine { margin: 0 0 10px; }
.team .tp-radios { display: grid; justify-items: start; gap: 2px; border: 0; margin: 0; padding: 0; }
.team .tp-radios legend { font-weight: 600; color: var(--ink-2); padding: 0; margin-bottom: 4px; }
.team label.hidden { display: none; }
.team .tp-ailast { margin: 0 0 10px; }
.team .tp-chips { align-items: center; }
.team .tp-dh { align-items: flex-start; }
.team .tp-dh .chip { flex: none; align-self: flex-start; }
/* the Custom plan on the home page (2026-10-28: "we should have a custom tier. Must contact us for."): after the plan cards, with no price */
.custom-plan { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px 24px; align-items: center; margin-top: 18px; border: 2px dashed var(--blue); }
.custom-plan h3 { margin: 0 0 2px; }
.custom-plan p { margin: 0; }
.custom-price { font-size: 1.4rem; font-weight: 800; }
@media (max-width: 700px) { .custom-plan { grid-template-columns: minmax(0, 1fr); } .custom-plan .btn { justify-self: start; } }

/* ═══ Team portal round 5 (S1, 2026-10-29): the Inbox filter bar (whose turn, person, sort; a "Filter" sheet on a phone), the CAPTCHAs queue inside the
   Inbox, a typed code on the desk. And on the member's Today page: a nudge from the team with its job link and description. ═══ */
.team .tp-filter { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 0 0 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); }
.team .tp-fgroup { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-width: 0; }
.team .tp-flabel { flex: none; min-width: 88px; font-weight: 650; color: var(--ink-2); font-size: .95rem; }
.team .tp-fchips { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; flex: 1 1 auto; }
.team .tp-fchips .pill b { margin-left: 6px; padding: 0 7px; border-radius: 999px; background: var(--bg-3); color: var(--ink-2); font-size: .9375rem; }
.team .tp-fchips .pill[aria-pressed="true"] b { background: rgba(255, 255, 255, .25); color: #fff; }
.team .tp-desk { min-width: 0; }
.team .tp-desk .tp-h3:first-of-type { margin-top: 14px; }
.team .desk-code { flex: 1 1 100%; display: grid; gap: 6px; }
.team .desk-code label { font-weight: 650; color: var(--ink-2); }
.team .desk-code input { font-size: 1.15rem; letter-spacing: .06em; width: min(260px, 100%); }
.team .desk-code .tp-sm { margin: 0; }
.team .desk-typed .desk-pic img { cursor: default; }
.team .tp-row-b .btn + .btn { margin-left: 0; }
@media (max-width: 859px) {
  .team .tp-fgroup { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 6px; }
  .team .tp-flabel { min-width: 0; }
  .team .tp-pchips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .team .tp-pchips .pill { flex: none; white-space: nowrap; }
  .team .tp-fchips .pill b { font-size: .95rem; }
}

/* the team's nudge on the member's Today page: the job link and the job description are on the notice */
.notice-desc { margin: 8px 0 0; }
.notice-desc summary { cursor: pointer; font-weight: 650; padding: 6px 0; min-height: 44px; display: flex; align-items: center; }
.notice-desc p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink-2); }

/* round 5 (S1), spot checks / answers / result cards: a sent application opens to its answers, resume and the AI's check; answers that differ; the Do it with me card in the toast */
.team .tp-sbody { flex: 1 1 100%; min-width: 0; padding-top: 8px; border-top: 1px dashed var(--line); }
.team .tp-h5 { margin: 12px 0 4px; font-size: 1rem; }
.team .tp-qa { margin: 0; display: grid; gap: 8px; }
.team .tp-qa dt { font-weight: 650; overflow-wrap: anywhere; }
.team .tp-qa dd { margin: 2px 0 0; color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.team .tp-diffs { margin: 6px 0; padding-left: 1.2em; }
.team .tp-diffs li { margin: 3px 0; overflow-wrap: anywhere; }
.team .tp-spotline { display: block; }
.team .tp-acv { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; padding: 10px 0; border-top: 1px solid var(--line); }
.team .tp-acv-t { display: grid; gap: 2px; min-width: 0; flex: 1 1 200px; overflow-wrap: anywhere; }
.team .tp-tray-i .tp-cardline { flex: 1 1 100%; margin: 4px 0 0; }
.team .tp-resline a { overflow-wrap: anywhere; }

/* ═══ Team portal round 5, part B (2026-10-29): Grow people and custom plans, Social pictures and the drop box, add a team member, sticky notes ═══ */
.team .tp-gbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 12px; }
.team .tp-gbar .tp-msearch { flex: 1 1 260px; margin: 0; }
.team .tp-gbar .tp-msearch input { width: 100%; max-width: 520px; }
.team .tp-stagepills { margin: 0 0 14px; }
.team .tp-cplan { margin-top: 12px; }
.team .tp-pfeat { margin: 6px 0; padding-left: 1.2em; }
.team .tp-pfeat li { margin: 2px 0; }
/* a post shows the picture or video it will go out with */
.team .tp-pbody { display: flex; gap: 12px; align-items: flex-start; }
.team .tp-pmain { flex: 1 1 auto; min-width: 0; }
.team .tp-pthumb { position: relative; flex: none; width: 132px; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--bg-3); display: grid; place-items: center; }
.team .tp-pthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team .tp-pnoframe { color: var(--ink-2); font-size: .9375rem; }
.team .tp-play { position: absolute; inset: 0; margin: auto; width: 40px; height: 40px; border-radius: 50%; background: rgba(0, 0, 0, .6); }
.team .tp-play::after { content: ""; position: absolute; left: 15px; top: 11px; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff; }
.team .tp-allbar { align-items: center; margin: 0 0 12px; }
.team .tp-babout { margin: 0 0 8px; }
.team .tp-noacct { margin: 4px 0; }
.team .tp-drop { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 0 0 14px; border: 2px dashed var(--blue); }
.team .tp-drop h3 { margin: 0 0 4px; }
.team .tp-drop p { margin: 0; max-width: 62ch; }
.team .tp-post .tp-btns { margin-top: 10px; }
@media (max-width: 859px) { .team .tp-bempty { display: none; } }
@media (max-width: 640px) {
  .team .tp-pbody { flex-direction: column; }
  .team .tp-pthumb { width: 100%; max-width: 240px; }
  .team .tp-stagepills { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .team .tp-stagepills .pill { flex: none; }
  .team .tp-drop .btn { width: 100%; }
  .team .tp-gbar .btn { flex: 1 1 100%; }
}

/* ═══ Team portal round 6 (2026-11-05): Today (the Inbox without its queue column), History in an aside, a video you can play. ═══ */
.team .tp-tgroup { margin: 0 0 22px; padding: 0; min-width: 0; }
.team .tp-th { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; padding-bottom: 6px; border-bottom: 2px solid var(--line); font-size: 1.15rem; }
.team .tp-th .tp-count { font-size: .9375rem; }
.team .tp-tgroup .tp-grp .tp-gh { font-size: 1.02rem; }
.team a.tp-im { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
.team a.tp-im:hover, .team a.tp-im:focus-visible { text-decoration: underline; }
.team .tp-ihead > .tp-im { flex: none; }
.team .tp-history { overflow-y: auto; align-content: start; }
.team .tp-history .tp-list { display: grid; gap: 10px; }
.team .tp-due { margin: 0 0 16px; padding: 14px 16px; border-left: 5px solid var(--warn-ink); }
.team .tp-pcol { flex: none; width: 132px; display: grid; gap: 6px; align-content: start; }
.team .tp-pcol .tp-pthumb { width: 100%; }
.team a.tp-pthumb { text-decoration: none; color: inherit; }
.team a.tp-pthumb:hover .tp-play { background: var(--blue); }
.team .tp-playbtn, .team .tp-openbtn { justify-self: start; min-height: 44px; }
.team .tp-novideo { margin: 0; color: var(--ink-2); font-size: .95rem; }
.team .tp-mtile .tp-btns { margin-top: 2px; }
@media (max-width: 640px) {
  .team .tp-pcol { width: 100%; max-width: 240px; }
}

/* ═══ Team portal round 6b (2026-11-05, S4-S7): easier on the eyes. The portal sits on the page's second background with white cards and a clearly visible
   line (a darker line token of its own), headings in the ink colour with a dot per kind, every button solid or with a visible border, details text never lighter
   than --ink-2, nothing under 15 px. The dark theme keeps the same structure. ═══ */
body:has(main.app.team) { background: var(--bg-2); }
main.app.team { --tp-line: #cfd5e3; --tp-btn: #7d879f; }
:root[data-theme="dark"] main.app.team { --tp-line: #394266; --tp-btn: #8a94b8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) main.app.team { --tp-line: #394266; --tp-btn: #8a94b8; } }
.team .tp-sec, .team .tp-head, .team .tp-nav, .team .tp-row, .team .tp-irow, .team .tp-grp, .team .tp-card, .team .card, .team .tp-lcard, .team .tp-post, .team .tp-mtile,
.team .tp-mrow, .team .tp-filter, .team .tp-res, .team .tp-staff, .team .tp-pack, .team .tp-plan, .team .tp-pending, .team .tp-tray-i { border-color: var(--tp-line); }
.team .tp-th, .team .tp-th ~ *, .team .tp-sec { border-color: var(--tp-line); }
.team input, .team select, .team textarea { border-color: var(--tp-btn); }
.team .btn.ghost, .team .pill, .team .tp-q { border-color: var(--tp-btn); color: var(--ink); }
.team .pill[aria-pressed="true"] { border-color: var(--blue); }
.team .tp-sm, .team .note, .team .tp-isub, .team .tp-age, .team .tp-gsub, .team .tp-flabel, .team .tp-empty, .team .tp-row-t span, .team .tp-tray-i span, .team .tp-who { color: var(--ink-2); }
.team h1, .team h2, .team h3, .team h4, .team .tp-th, .team .tp-gh { color: var(--ink); }
.team .tp-sec > h2 { display: flex; align-items: center; gap: 10px; }
.team .tp-sec > h2::before, .team .tp-th::before { content: ""; flex: none; width: 11px; height: 11px; border-radius: 50%; background: var(--tp-dot, var(--blue)); }
.team .tp-tgroup[data-tg="ok"] { --tp-dot: var(--warn-ink); }
.team .tp-tgroup[data-tg="owner"] { --tp-dot: var(--blue); }
.team .tp-tgroup[data-tg="stuck"] { --tp-dot: var(--warn-ink); }
.team .tp-tgroup[data-tg="question"] { --tp-dot: var(--blue); }
.team .tp-tgroup[data-tg="reply"] { --tp-dot: var(--ok); }
.team .tp-tgroup[data-tg="request"] { --tp-dot: var(--warn-ink); }
.team .tp-tgroup[data-tg="note"] { --tp-dot: var(--ink-2); }
.team .tp-tgroup[data-tg="checks"] { --tp-dot: var(--ok); }
.team .tp-eyes { margin: 2px 0 0; font-size: 1rem; }
.team .tp-linkbtn { border: 0; background: none; padding: 6px 4px; min-height: 40px; color: var(--blue); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.team .tp-idet { margin: 0 0 8px; }
.team .tp-ibody > .tp-btns { margin: 6px 0; }
.team .btn.small, .tp-ai .btn.small { font-size: .9375rem; }
/* on a phone the sticky-notes button sits bottom right: the tray (confirmations) stands above it, never over it */
@media (max-width: 600px) { .team .tp-tray { bottom: calc(16px + 52px + 12px + env(safe-area-inset-bottom, 0px)); } }
@media (max-width: 640px) {
  .team .tp-ihead > .tp-itog { flex: 1 1 0; min-width: 0; }
  .team a.tp-im { padding: 0 2px; }
  .team .tp-age { flex: none; }
}
@media (max-width: 640px) {
  .team .tp-iprim .btn { white-space: normal; max-width: 150px; line-height: 1.2; text-align: center; padding-top: 6px; padding-bottom: 6px; }
}

/* Portal fixes 2026-11-08: the floating tray only carries short "Sent. Waiting..." notes now; leave room so the last row is never under it. */
.team .tp-main { padding-bottom: 160px; }
.team #captchaOpen { border-color: var(--warn-ink); color: var(--warn-ink); font-weight: 700; }

/* ───────────── Member pages polish (2026-11-08) */
/* Contrast: the counts, red badges and a few muted greens/blues were under 4.5:1 (audit 2026-11-08). */
.count.warn, .appnav .count.warn { background: #9a4a00; color: #fff; }
.notes-tab .badge, .bell .badge { background: #b42323; color: #fff; }
.more-info, .linkbtn { color: var(--link); }
.apps-card .app-card .ac-next, .app-card .ac-next { color: var(--ok); }
:root[data-theme="dark"] .chip.dream-chip { background: color-mix(in srgb, #a855f7 28%, var(--card)); color: #e4d4ff; }
:root[data-theme="dark"] details.more summary, :root[data-theme="dark"] details.how summary { color: var(--ink-2); }
.flow-tile.hot b { color: var(--ok); }
:root[data-theme="dark"] .intro-more > summary, :root[data-theme="dark"] .more-info { color: var(--link); }
:root[data-theme="dark"] .today-sum a.dream b { color: var(--accent-ink); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .intro-more > summary, :root:not([data-theme="light"]) .more-info { color: var(--link); }
  :root:not([data-theme="light"]) .today-sum a.dream b { color: var(--accent-ink); }
  :root:not([data-theme="light"]) .chip.dream-chip { background: color-mix(in srgb, #a855f7 28%, var(--card)); color: #e4d4ff; }
  :root:not([data-theme="light"]) details.more summary, :root:not([data-theme="light"]) details.how summary { color: var(--ink-2); }
}
/* Phone: every button, pill and tab is at least 44 px tall; fields are 16 px so iOS does not zoom; badges stay readable */
@media (max-width: 600px) {
  main.app .btn, main.app .pill, main.app .tabs button, main.app .seg button, main.app button.pill, main.app .jump a.pill,
  main.app .flip, main.app select, .appnav a { min-height: 44px !important; }
  main.app summary { min-height: 44px !important; align-content: center; }
  main.app .linkbtn { min-height: 44px !important; display: inline-flex; align-items: center; }
  main.app .switch { height: 44px; }
  main.app .fold-btn, [role=tab], .tabs button, main.app .tag button { min-height: 44px !important; min-width: 44px; }
  .theme-btn, .bell, .np-min, .menu-btn, header.site .btn.small { width: 44px; height: 44px; min-width: 44px; }
  header.site .btn.small:not(.side-btn):not(.sq-btn) { width: auto; }
  .side-btn, .sq-btn { min-height: 44px; min-width: 44px; }
  main.app input:not([type=checkbox]):not([type=radio]), main.app select, main.app textarea { font-size: 16px !important; }
  main.app input:not([type=checkbox]):not([type=radio]), main.app select { min-height: 44px; }
  .notes-tab .badge, .bell .badge { font-size: .9375rem; min-width: 20px; height: 20px; }
  .count, .appnav .count { font-size: .9375rem; }
  main.app .dot.n { font-size: .9375rem; min-width: 22px; height: 22px; line-height: 22px; }
}
/* ═══ Team portal polish (2026-11-08, team-ux): dark-mode contrast, rows that look clickable, a calmer phone header ═══ */
main.app.team { --tp-link: var(--blue); --tp-hover: var(--bg-3); --tp-ring: var(--blue); }
:root[data-theme="dark"] main.app.team { --tp-link: #9db0ff; --tp-ring: #9db0ff; }  /* 7.5:1 on the dark page; --link itself is only 3.1:1 there */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) main.app.team { --tp-link: #9db0ff; --tp-ring: #9db0ff; } }
.team a.tp-im, .team .tp-im, .team .tp-linkbtn, .team .tp-go, .team .tp-pmore { color: var(--tp-link); }
.team .tp-tab.on { color: var(--tp-link); border-bottom-color: var(--tp-link); }
.team .tp-link.on .tp-badge, .team .tp-fchips .pill[aria-pressed="true"] b, .team .pill[aria-pressed="true"] b, .team .pill[aria-pressed="true"] .tp-count { background: rgba(0, 0, 0, .28); color: #fff; }
/* clickable rows and group heads: a visible edge, a hover, a turning chevron, a focus ring */
.team button.tp-itog { border: 1px solid var(--tp-line); background: var(--bg-2); }
.team button.tp-itog:hover { background: var(--tp-hover); border-color: var(--tp-btn); }
.team button.tp-itog::after { content: ""; flex: none; order: 9; width: 9px; height: 9px; margin: 0 4px 0 auto; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(-45deg); transition: transform .15s; }
.team button.tp-itog[aria-expanded="true"]::after { transform: rotate(45deg); }

.team .tp-gtog { border-radius: 10px; padding-left: 8px; padding-right: 8px; margin: 0 -8px; width: calc(100% + 16px); }
.team .tp-gtog:hover { background: var(--tp-hover); }
.team .tp-gtog::after { display: inline-grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--tp-btn); border-radius: 50%; font-size: 1.2rem; color: var(--ink); }
.team .tp-itog:focus-visible, .team .tp-gtog:focus-visible, .team .tp-ltog:focus-visible, .team .tp-linkbtn:focus-visible, .team a.tp-im:focus-visible, .team .tp-tab:focus-visible, .team .tp-mrow:focus-visible {
  outline: 3px solid var(--tp-ring); outline-offset: -3px; box-shadow: 0 0 0 2px var(--card); }
.team .tp-age { min-width: 4.5em; text-align: right; }
@media (max-width: 859px) {
  .team .tp-head { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; padding: 14px; }
  .team .tp-head > div:first-child { grid-column: 1 / -1; }
  .team .tp-head .tp-fresh { display: contents; }
  .team .tp-head #teamFresh { grid-column: 1 / -1; }
  .team .tp-head .tp-fresh .btn { grid-column: span 2; min-height: 44px; padding-left: 6px; padding-right: 6px; justify-content: center; }
  .team .tp-head #captchaOpen, .team .tp-head #aiOpen { grid-column: span 3; }
  .team .tp-head #captchaOpen.hidden + #aiOpen { grid-column: span 6; }
  .team .tp-tabs { flex-wrap: nowrap !important; overflow-x: auto !important; border-bottom: 1px solid var(--tp-line) !important; }
  .team .tp-tab, .team .tp-tab.on { border-radius: 0 !important; border: 0 !important; border-bottom: 3px solid transparent !important; background: transparent !important; flex: none; }
  .team .tp-tab.on { border-bottom-color: var(--tp-link) !important; color: var(--tp-link) !important; }
  .team .tp-chips-row, .team .tp-filter { max-width: 100%; }
  .team .desk-pic, .team .desk-pic img { max-width: 100%; }
  .team .tp-age { min-width: 0; }
}
@media (max-width: 640px) {
  /* a row on a phone: who and what on the first line (the title wraps, never cut to nothing), age and the one button under it */
  .team .tp-ihead { flex-wrap: wrap; padding: 6px 8px; }
  .team .tp-ihead > .tp-itog { flex: 1 1 calc(100% - 90px); flex-wrap: nowrap; overflow: visible; min-height: 44px; }
  .team .tp-itog .tp-ititle { flex: 1 1 0; min-width: 0; white-space: normal; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .team .tp-ihead > .tp-age { order: 2; margin-right: auto; padding-left: 8px; }
  .team .tp-ihead > .tp-iprim { order: 3; }
  .team .tp-iprim .btn { max-width: none; }
}
@media (max-width: 640px) {
  /* the kind label says what the row needs: a small line under the title, never hidden */
  .team .tp-ihead > .tp-itog { flex-wrap: wrap; row-gap: 0; }
  .team .tp-itog .tp-ititle { order: 1; flex: 1 1 0; }
  .team .tp-itog::after { order: 2; }
  .team .tp-itog .tp-tag { display: block; order: 3; flex: 1 1 100%; font-size: .95rem; line-height: 1.3; letter-spacing: .03em; margin-top: 2px; }
}

/* === today helper, 2026-11-09 (Today overhaul: short, current, first things first) === */
.sub-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; margin: 0 0 12px; }
.sub-row .sub { margin: 0; flex: 1 1 260px; }
.fresh-wrap { display: inline-flex; align-items: center; gap: 8px; }
.fresh { color: var(--ink-3); font-size: .9375rem; }
.fresh.stale { color: var(--warn-ink, #b45309); font-weight: 600; }
.fresh:empty { display: none; }
#needsCard { padding-top: 16px; padding-bottom: 16px; }
#needsCard h2 { margin: 0 0 10px; }
#needsQs:empty { display: none; }
#needsQs, #needs { display: grid; gap: 8px; }
#needsQs + #needs:not(:empty), #needs + #teamNotes:not(:empty), #needsQs + #teamNotes:not(:empty) { margin-top: 8px; }
#needs:empty { display: none; }
.item.need { padding: 8px 12px; min-height: 52px; }
.item.need .t small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item.need.urgent { border-left: 3px solid var(--warn, #d97706); padding-left: 10px; }
.need-group { display: grid; gap: 0; }
.need-group.open > .item.need { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.need-group .qg-body { border: 1px solid var(--line); border-top: 0; border-radius: 0 0 14px 14px; padding: 4px 14px 10px; background: var(--card); }
.need-group .qg-body .qa:first-child { border-top: 0; }
.need-more { justify-self: start; }
.today-sum { grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); margin: 0 0 8px; }
.today-sum a { min-height: 56px; padding: 6px 4px; }
@media (max-width: 600px) { .today-sum { grid-template-columns: repeat(3, minmax(0, 1fr)); } .today-sum a { min-height: 60px; } }
.sum-block { margin: 0 0 12px; }
/* compact match row (Today): title; company · place · fit on one line; buttons at the right (a computer) or under (a phone) */
.item.mcard.mc-compact { flex-wrap: nowrap; align-items: center; padding: 10px 12px; gap: 8px 12px; }
.item.mcard.mc-compact .qopen { flex: 1 1 0; min-width: 0; }
.mc-compact .mc-meta { margin-top: 2px; }
.mc-compact .mc-score-inline .match { font-size: .95rem; padding: 1px 8px; border-radius: 10px; }
.mc-compact .mc-acts { flex: 0 0 auto; flex-wrap: nowrap; }
.mc-compact .mc-acts .btn { min-height: 44px; }
.mc-compact .mc-acts .flip-off { white-space: nowrap; }
@media (max-width: 700px) {
  .item.mcard.mc-compact { flex-wrap: wrap; }
  .mc-compact .qopen { flex: 1 1 100%; }
  .mc-compact .mc-acts { flex: 1 1 100%; flex-wrap: wrap; }
}
#matchesCard, #dreamJobs { padding-top: 16px; padding-bottom: 16px; }
#matchesCard .today-line, #dreamJobs .today-line { margin: 4px 0 10px; }
#matchesCard .card-top h2, #dreamJobs .card-top h2 { font-size: 1.2rem; }
/* Auto-apply: one line, "Change" unfolds the switches */
.mode-card.slim { padding-top: 10px; padding-bottom: 10px; }
.mode-card .mode-head { flex-wrap: nowrap; align-items: center; }
.mode-card .mode-head h2 { font-size: 1.1rem; flex: none; }
.mode-card .mode-sum { flex: 1 1 0; min-width: 0; }
.mode-card .mode-head .btn { flex: none; }
.mode-card .mode-body { margin-top: 10px; }
@media (max-width: 600px) { .mode-card .mode-head { flex-wrap: wrap; } .mode-card .mode-sum { flex: 1 1 100%; order: 3; } .mode-card .mode-head .btn { margin-left: auto; } }
/* Held up: as short as a normal row */
.held-sum.slim { padding: 0; border: 0; background: none; box-shadow: none; }
.held-sum.slim .item { padding: 8px 12px; min-height: 52px; }
#appsCard { padding-top: 16px; padding-bottom: 12px; }
#appsCard .card-top { margin-bottom: 8px; }
.tip-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 16px; color: var(--ink-3); font-size: .9375rem; }
.tip-line.hidden { display: none; }
details.updates-card > summary { cursor: pointer; font-size: 1.05rem; min-height: 32px; }
details.updates-card[open] > summary { margin-bottom: 8px; }
details.updates-card { padding-top: 14px; padding-bottom: 14px; }

/* ── lists helper (2026-11-09): short Resumes / Applications / Matches / Dream pages ─────────────────────────────── */
.paged .more-rows { margin-top: 10px; }
.more-row[hidden] { display: none; }
.fold-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.fold-line .sec-h { margin: 8px 0; }
.fold-body { margin-top: 4px; }
.held-row { flex-wrap: wrap; padding: 12px 14px; }
.held-row .t b .held-co { font-weight: 500; color: var(--ink-2); }
.held-row .held-line { margin-top: 2px; }
.held-row > .fix-box, .held-row > .hold-form { flex: 1 1 100%; }
.held-row .rowwhy { margin-top: 4px; }
.held-row .rowwhy > summary { cursor: pointer; color: var(--link); font-weight: 650; font-size: max(.92rem, 15px); display: inline-flex; align-items: center; min-height: 32px; }
.held-row .rowwhy-body { margin-top: 4px; }
.held-row .rowwhy-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.app-row .app-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 4px; color: var(--ink-3); font-size: max(.92rem, 15px); }
.app-row .app-line .chip { white-space: normal; }
.app-row .iv-one { display: block; margin-top: 4px; color: var(--ink); font-size: max(.92rem, 15px); }
.app-row .rowwhy { margin-top: 4px; }
.app-row .rowwhy > summary { cursor: pointer; color: var(--link); font-weight: 650; font-size: max(.92rem, 15px); display: inline-flex; align-items: center; min-height: 32px; }
.app-row .end.end-bar { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
@media (max-width: 600px) { .app-row .end.end-bar { justify-content: flex-start; } }
.fold-card { padding: 0; }
.fold-card > summary { cursor: pointer; list-style: none; padding: 14px 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; min-height: 44px; }
.fold-card > summary::-webkit-details-marker { display: none; }
.fold-card > summary h2 { margin: 0; font-size: 1.1rem; }
.fold-card > summary::after { content: "Show"; color: var(--link); font-weight: 650; font-size: max(.92rem, 15px); margin-left: auto; }
.fold-card[open] > summary::after { content: "Hide"; }
.fold-card > .fold-in { padding: 0 18px 16px; }
.fold-card .fold-sum { color: var(--ink-3); font-size: max(.9rem, 15px); }
@media (max-width: 600px) {
  .held-row .end .btn, .held-row .rowwhy-btns .btn, .app-row .end .btn, .more-row .btn, .fold-line .btn { min-height: 44px; }
  .held-row .rowwhy > summary, .app-row .rowwhy > summary { min-height: 44px; }
  .held-row .end { flex: 1 1 100%; }
  .more-row .btn { width: 100%; justify-content: center; }
}
/* Today's compact rows: text and buttons on ONE line on a computer (a phone keeps the two even columns under the text) */
@media (min-width: 601px) {
  .item.need:has(> .end .btn + .btn) > .t, .held-sum.slim .item:has(> .end .btn + .btn) > .t { flex: 1 1 0; min-width: 0; }
  .item.need > .end, .held-sum.slim .item > .end { flex-wrap: nowrap; }
}
.item .t small.mc-meta .mc-score-inline { display: inline-flex; align-items: baseline; flex: none; }
.item .t small.mc-meta .mc-score-inline .match { display: inline-block; white-space: nowrap; }
.item .t small.mc-meta .mc-score-inline .match small { display: inline; font-size: .75rem; color: inherit; }
.item .t small.mc-meta .mc-score-inline .chip { white-space: nowrap; }
.item.need .t b, .held-sum.slim .t b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.apps-card .app-cards li:not(:first-child) .ac-next { display: none; }

/* ── Profile overhaul, 2026-11-09 (profile helper): every card folds to its title + one line; "Needs you here" strip; compact inner groups */
.fold-sum { flex: 1 0 100%; order: 9; font-size: .95rem; font-weight: 400; line-height: 1.35; color: var(--ink-3); overflow-wrap: anywhere; }
section.card:not(.folded) .fold-sum, section.card.folded .about-count { display: none; }
#me section.card.folded { padding-top: 12px; padding-bottom: 12px; }
.fold-btn { min-height: 44px; }
.needs-strip { border: 1px solid color-mix(in srgb, var(--warn-ink) 35%, var(--line)); border-left: 4px solid var(--warn-ink); border-radius: 14px; background: var(--card); padding: 12px 14px 14px; margin: 0 0 14px; }
.needs-strip h2 { font-size: 1.1rem; margin: 0 0 8px; }
.needs-strip .list { display: grid; gap: 8px; }
.needs-strip .item { padding: 10px 12px; }
.needs-strip .item .t b { white-space: normal; overflow-wrap: anywhere; }
.sec-fold { border-top: 1px solid var(--line); padding: 2px 0; }
.sec-fold > summary, .never-fold > summary, .iv-why > summary { cursor: pointer; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 44px; list-style: none; }
.sec-fold > summary::-webkit-details-marker, .never-fold > summary::-webkit-details-marker, .iv-why > summary::-webkit-details-marker { display: none; }
.sec-fold > summary h3, .never-fold > summary h3 { margin: 0; }
.sec-fold > summary::after, .never-fold > summary::after, .iv-why > summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(-45deg); }
.sec-fold[open] > summary::after, .never-fold[open] > summary::after, .iv-why[open] > summary::after { transform: rotate(45deg); }
.sec-fold > summary small, .never-fold > summary small { color: var(--ink-3); }
.sec-fold .kv { margin: 4px 0 12px; }
.iv-why { margin-top: 8px; }
.iv-why > summary { color: var(--link); font-weight: 600; }
#ivTips { margin-top: 8px; }
#ivTips .item { padding: 10px 12px; }
#ivTips .item .t small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item.kind { padding: 10px 14px; gap: 6px; }
.item.kind .t small { margin-top: 0; }
.item.kind .tags { margin-top: 6px; gap: 6px; }
.item.kind .tag-more { padding: 0 4px; }
#kindList { gap: 8px; }
#requests .row-btns, #questions > .row-btns, #ivBody > .row-btns, #kindList > .row-btns { margin-top: 8px; }
@media (max-width: 700px) { .fold-sum { font-size: 15px; } .needs-strip { padding: 10px 12px 12px; } }
#me section.card.folded { margin-bottom: 8px; }
#me section.card.folded .fold-btn { row-gap: 0; min-height: 0; }
/* status card at the last step: one slim line */
.status-card.slim { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 10px 14px; margin-bottom: 10px; }
.status-card.slim .track { margin: 0; flex: 0 1 auto; }
.status-card.slim h2 { margin: 0 !important; flex: 1 1 auto; }
.status-card.slim #statusDetail { display: none; }
.status-card.slim .note { flex: 1 0 100%; margin: 0; font-size: .9rem; }
@media (max-width: 700px) { .status-card.slim .track li:not(.now) { display: none; } .status-card.slim .note { display: none; } .status-card.slim { gap: 6px 10px; } }
.needs-strip .item { flex-wrap: nowrap; align-items: center; }
.needs-strip .item .t { flex: 1 1 auto; min-width: 0; }
.needs-strip .item .end { flex: 0 0 auto; }
@media (max-width: 600px) { .item.res-row .end.res-end > .btn.ghost { flex: 1 1 calc(50% - 8px); justify-content: center; } }
/* lists round 2: compact Applications rows and slim number tiles */
.app-stats { gap: 8px; margin: 10px 0 12px; }
.app-stats div { padding: 8px 12px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.app-stats b { display: inline; font-size: 1.2rem; }
.app-row .app-meta { display: block; }
.app-row .app-meta .chip { vertical-align: middle; margin-left: 4px; }
@media (min-width: 761px) {
  .item.app-row { flex-wrap: nowrap; align-items: center; padding: 10px 14px; }
  .item.app-row .t { flex: 1 1 auto; min-width: 0; }
  .item.app-row .t b { white-space: nowrap; }
  .item.app-row .end.end-bar { flex: 0 0 auto; flex-wrap: nowrap; justify-content: flex-end; }
}
@media (max-width: 600px) {
  .app-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .item.app-row .end.end-bar { display: flex !important; flex-wrap: nowrap !important; gap: 6px; }
  .item.app-row .end.end-bar .btn { flex: 1 1 0; min-width: 0; padding-left: 4px; padding-right: 4px; min-height: 44px; font-size: 15px; justify-content: center; }
}

/* === today helper, round 2, 2026-11-09 (director's fixes: numbers strip fills its rows, team note clamp, spacing) === */
.today-sum { display: flex; flex-wrap: wrap; gap: 8px; }
.today-sum a { flex: 1 1 100px; min-width: 0; }
@media (max-width: 600px) { .today-sum a { flex: 1 1 calc(33.333% - 8px); } }
#teamNotes .note-text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; overflow-wrap: anywhere; }
#teamNotes .note-text.open { display: block; -webkit-line-clamp: unset; }
#teamNotes .note-more { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
#dreamJobs .today-actions, #matchesCard .today-actions { margin-top: 12px; }
#stuckToday .held-sum.slim { margin: 0 0 16px; padding: 0; }
#stuckToday .held-sum.slim .item { padding-left: 18px; padding-right: 18px; }
.rail-list a { text-decoration: none; }
.rail-list a b { text-decoration: underline; }
.rail-list a:hover small, .rail-list a small { text-decoration: none; }
.about-head > div { flex: 1 1 auto; min-width: 0; }
.about-head .fold-btn h2 { margin: 0; }
@media (max-width: 600px) { .item.app-row .end.end-bar .btn[data-upd] { flex: 1.8 1 0; white-space: nowrap; } }

/* matches helper (2026-11-09): compact Matches rows */
.mlist { gap: 8px; }
.mlist .item.mcard { flex-wrap: wrap; align-items: center; padding: 10px 12px; gap: 4px 12px; }
.mlist .item.mcard .qpick { flex: none; align-self: center; }
.mlist .item.mcard .qopen { flex: 1 1 0; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; }
.mlist .item.mcard .qopen > b { flex: 0 1 auto; min-width: 0; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mlist .item .t small.mc-meta { display: inline-flex !important; flex: 1 1 auto; flex-wrap: wrap; min-width: 0; margin-top: 0; overflow: visible !important; white-space: normal !important; }
.mlist .item.mcard .mc-facts { flex: 1 0 100%; display: block; margin-top: 1px; font-size: max(.9rem, 15px); color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mlist .item.mcard .mc-score { align-self: center; }
.mlist .item.mcard .mc-acts { flex: 0 0 auto; flex-wrap: nowrap; padding-left: 0; gap: 6px; }
.mlist .item.mcard .mc-acts .btn { min-height: 40px; }
.mlist .item.mcard .mc-why-btn { border-color: transparent; background: none; color: var(--link); font-weight: 650; }
.mlist .item.mcard .mc-why-body { flex: 1 1 100%; margin: 0; padding: 6px 0 2px 34px; color: var(--ink-2); font-size: max(.92rem, 15px); overflow-wrap: anywhere; }
.mlist .item.mcard .mc-why-body[hidden] { display: none; }
.how-more { margin: 0 0 8px; }
@media (max-width: 600px) {
  .mlist .item.mcard .mc-facts { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .mlist .item.mcard .qopen > b { flex: 1 0 100%; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; }
  .mlist .item .t small.mc-meta { flex: 1 0 100%; flex-wrap: wrap; overflow: visible !important; white-space: nowrap !important; }
  .mlist .item .t small.mc-meta > .mc-where { white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; }
  .mlist .item .t small.mc-meta > .mc-where { flex: 0 1 auto; max-width: 48%; }
  .mlist .item.mcard .mc-acts { flex: 1 1 100%; padding-left: 34px; }
  .mlist .item.mcard .mc-acts .btn { min-height: 44px; font-size: 15px; }
  .mlist .item.mcard .mc-acts > .btn:not(.flip) { flex: 1 1 auto; justify-content: center; }
  .mlist .item.mcard .mc-acts > .btn.flip-on { flex: 0 0 44px; width: 44px; margin-left: 0; }
  .mlist .item.mcard .mc-why-body { padding-left: 0; }
}
@media (max-width: 600px) {
  #matchesCard, #dreamJobs { padding: 12px 12px 12px; }
  #matchesCard .today-line, #dreamJobs .today-line { line-height: 1.35; margin: 2px 0 8px; }
  #topMatches, #dreamList { gap: 6px; }
  .item.mcard.mc-compact { padding: 8px 10px; gap: 6px 8px; }
  .today-actions { margin-top: 10px; }
}

/* lists3 helper (2026-11-09): Resumes on a phone, Dream suggestions */
.item.res-row .more-tog { display: none; }
.item.yours .y-main, .item.yours .y-rest { display: contents; }
.item.yours .lbl-short { display: none; }
.yours-how { margin: 0 0 10px; }
.yours-how .rowwhy { display: inline-block; vertical-align: baseline; }
.yours-how .rowwhy > summary, .item.yours .rowwhy > summary { cursor: pointer; color: var(--link); font-weight: 650; font-size: max(.92rem, 15px); display: inline-flex; align-items: center; min-height: 32px; }
.item.yours .rowwhy { margin-top: 2px; }
.item.sug { flex-wrap: wrap; padding: 10px 14px; gap: 6px 12px; }
.item.sug .t b { display: inline; white-space: normal; margin-right: 6px; }
.sug-why { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 4px 0; margin: 0; font: inherit; font-size: max(.92rem, 15px); color: var(--ink-3); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sug-why[aria-expanded="true"] { white-space: normal; }
.sug-why:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.sug-done { margin-top: 10px; }
.sug-done > summary { cursor: pointer; color: var(--link); font-weight: 650; min-height: 44px; display: flex; align-items: center; }
.sug-done .list { margin-top: 6px; }
details.fu-q > summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
details.fu-q:not([open]) > summary { display: block; line-height: 44px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
details.fu-q.fu-done > summary::after { content: " \2713"; color: var(--ok); }
details.fu-q[open] > textarea { margin-top: 4px; }
@media (max-width: 600px) {
  #sections .item.res-row:not(.held-row) { padding: 10px 12px; gap: 6px; }
  #sections .item.res-row .end.res-end { display: flex; flex-wrap: wrap; gap: 8px; }
  #sections .item.res-row .end.res-end > .btn { flex: 1 1 0; width: auto; min-width: 0; min-height: 44px; font-size: 15px; justify-content: center; }
  #sections .item.res-row .end.res-end > .more-tog { display: inline-flex; flex: 0 0 auto; padding-left: 14px; padding-right: 14px; }
  #sections .item.res-row:not(.open) .end-more { display: none; }
  #sections .item.res-row.open .end-more { flex: 1 1 100%; }
  #sections .item.res-row .end-more .btn { min-height: 44px; font-size: 15px; }
  #sections .item.res-row:not(.held-row):not(.open) .t .rowwhy, #sections .item.res-row:not(.held-row):not(.open) .t .rewrite-sum { display: none; }
  #sections .item.res-row:not(.held-row) .t small:first-of-type { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden !important; }
  #sections .item.yours { padding: 10px 12px; gap: 4px; }
  .item.yours .lbl-long { display: none; }
  .item.yours .lbl-short { display: inline; }
  #sections .item.yours .y-end { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
  #sections .item.yours .y-main, #sections .item.yours .y-rest { display: flex; gap: 8px; width: 100%; }
  .item.yours .y-main > a.btn { flex: 1 1 auto; }
  .item.yours .y-main > .btn.primary, .item.yours .y-main > .btn:not(a) { flex: 0 0 auto; }
  .item.yours .y-rest > .btn { flex: 1 1 0; min-width: 0; }
  .item.yours .y-end .btn { min-height: 44px; font-size: 15px; justify-content: center; padding-left: 10px; padding-right: 10px; }
  .item.yours .rowwhy > summary, .yours-how .rowwhy > summary { min-height: 44px; }
  .sug-why { min-height: 44px; padding: 10px 0; }
  .item.sug .end { flex: 1 1 100%; flex-wrap: nowrap; }
  .item.sug .end .pill { flex: 1 1 0; min-height: 44px; font-size: 15px; padding: 6px 8px; }
}

/* Notes pin on a phone (2026-11-09): docked in the top bar beside the bell, never over a row (js/pin-dock.js) */
@media (max-width: 600px) {
  .notes-tab.docked { position: relative; top: auto; right: auto; bottom: auto; width: 44px; height: 44px; flex: none; margin-right: 6px;
    border-radius: 10px !important; font-size: 1.1rem !important; box-shadow: none; }
  .notes-tab.docked .badge { top: -6px; right: -6px; }
  .notes-tab.docked.pulse { animation: none; }
  .userbox { gap: 0; }
}

/* Contract 7 (2026-11-09): earlier interviews and "Held up N days" */
.held-days { display: block; color: var(--muted, inherit); font-size: .9rem; }
.stuck-box .held-days { margin: 0 0 6px; font-weight: 600; color: var(--ink); }
.iv-past { margin: 10px 0; }
.iv-past-list { list-style: none; margin: 4px 0 0; padding: 0; }
.iv-past-list li { padding: 3px 0; }
.iv-pastfold { margin-top: 10px; }
.iv-pastfold > summary, .iv-past-more > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 8px; }
.iv-prow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.iv-prow .t { display: flex; flex-direction: column; min-width: 0; }
.iv-prow small { color: var(--muted, inherit); overflow-wrap: anywhere; }

/* Phone top bar (2026-11-11, owner: "the mobile UI is all messed up"): every button keeps its own space, the logo is
   never squeezed away, and a word on a button stays inside its box. Appended last so it wins over the rules above. */
@media (max-width: 600px) {
  header.site .wrap { gap: 8px; padding: 0 12px; }
  header.site .brand { flex: none; }
  header.site .menu-btn { width: auto; min-width: 44px; padding: 6px 12px; white-space: nowrap; }
  header.site .userbox { gap: 8px; }
  header.site .userbox .btn.small { padding: 0 10px; white-space: nowrap; }
  header.site .notes-tab.docked { margin-right: 0; }
  header.site .avatar { flex: none; width: 40px; height: 40px; }
  header.site .wrap .side-btn + .brand { margin-left: 0; }
}
@media (max-width: 340px) {
  header.site .wrap { gap: 6px; padding: 0 10px; }
  header.site .userbox { gap: 6px; }
  header.site .wrap:has(.userbox) .brand { display: none; }
  header.site .brand { font-size: .92rem; gap: 6px; }
  header.site .brand img { width: 28px; height: 28px; }
}

/* Phone layout fixes (2026-11-11) */
@media (max-width: 600px) {
  /* 1. a job title wraps onto as many lines as it needs; only the company/meta line keeps an ellipsis */
  .mlist .item.mcard .qopen > b, .item.mcard .qopen > b, .item .t .qopen > b, button.t.qopen > b {
    white-space: normal !important; overflow: visible !important; text-overflow: clip !important; overflow-wrap: anywhere; word-break: normal;
  }
  /* 2. the CAPTCHA chip gets two thirds of the row so its words fit; the header stays two rows of buttons */
  .team .tp-head #captchaOpen { grid-column: span 4; white-space: nowrap; padding-left: 6px; padding-right: 6px; }
  .team .tp-head #aiOpen { grid-column: span 2; white-space: nowrap; padding-left: 6px; padding-right: 6px; }
  /* 3. the home page's first column may shrink to the screen instead of growing to its widest sample content */
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero .wrap > * { min-width: 0; }
  /* 8. a heading that only script can focus shows no ring; real controls keep theirs */
  [tabindex="-1"]:focus { outline: none; }
  /* 3b. the sample phone's tab row fits the narrowest screens */
  .phone-nav { gap: 2px; padding-left: 10px; padding-right: 10px; }
  /* 4. Profile: the arrow sits at the right edge of every card row, the chip under the title (the jump chips stay one scrolling row) */
  #me .fold-btn { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 10px; }
  #me .fold-btn > h2 { grid-column: 1; grid-row: 1; min-width: 0; }
  #me .fold-btn > .fold-icon { grid-column: 2; grid-row: 1; margin: 0 6px 4px; }
  #me section.card.folded .fold-btn > .fold-icon { margin: 0 6px; }
  #me .fold-btn > .fold-count { grid-column: 1; grid-row: 2; justify-self: start; }
  #me .fold-btn > .fold-sum { grid-column: 1 / -1; grid-row: 3; }
  /* 5-7. a button keeps its label on one line; buttons in one row have one height (the row wraps instead) */
  main.app .end .btn, main.app .end .pill, main.app .row > .btn, .today-actions .btn, .actions .btn { white-space: nowrap; }
  main.app .end, main.app .end .row, main.app .res-end, main.app .end-bar { align-items: stretch; flex-wrap: wrap; }
  main.app .end > .btn, main.app .end > .pill, main.app .end .row > .btn, main.app .res-end > .btn, main.app .end-bar > .btn { flex: 1 1 auto; }
  main.app .item.app-row .end.end-bar .btn, main.app #sections .item.res-row .end.res-end > .btn { flex: 1 1 auto; width: auto; min-width: max-content; white-space: nowrap; }
  main.app .item.app-row .end.end-bar, main.app #sections .item.res-row .end.res-end { flex-wrap: wrap !important; align-items: stretch; }
  /* 7b. the "How?" fold in a sentence keeps its 44 px tap box but adds nothing to the line spacing */
  .yours-how .rowwhy > summary { margin-top: -10px; margin-bottom: -10px; }
}
/* 1b. the company name gets the line before it is cut: it was held to 48% of the row with empty space beside it
   ("Riverbend F..."); the New tag keeps its place, and the date chip drops to the next line as before */
@media (max-width: 600px) {
  .mlist .item .t small.mc-meta > .mc-where { max-width: calc(100% - 46px); }
}

/* Phone tap targets (2026-11-15 walk-through): footer links, the Matches tick box, "All applications →",
   the dream-job star and the Team portal's person links are all at least 44 x 44 px */
@media (max-width: 600px) {
  footer.site a { display: flex; align-items: center; min-height: 44px; margin-bottom: 0; }
  footer.site .social a { display: inline-flex; }
  .qpick { padding: 11px; margin: -9px -6px -9px -11px; }
  .more-top { min-height: 44px; }
  .mc-acts > .btn.flip-on, .item.res-row .end-more .btn.flip-on { width: 44px; }
  .team a.tp-im { min-width: 44px; justify-content: center; }
}
/* the amber badge on the avatar: white on #9a4a00 is 6.4:1 in light and dark (was 3.19:1 on #d97706) */
.avatar .dot, .avatar .dot.warn { background: #9a4a00; color: #fff; }
