/* About you (assets/aboutyou.js): the editors (on the account page and in the guided questions) and the guided
   questions overlay. Built on app.css tokens, so every colour scheme and dark mode work. */
.ay-ed { --ay-ease: cubic-bezier(0.32, 0.72, 0, 1); }
.ay-ed + .ay-ed { margin-top: 20px; }
.ay-ed > h5 { margin: 0 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ay-ed > h5 small { font-weight: 700; letter-spacing: 0; text-transform: none; margin-left: 4px; color: var(--faint); }
.ay-chs { display: flex; flex-wrap: wrap; gap: 8px; }
.ay-ch { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--paper); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: background-color .2s, border-color .2s, transform .2s cubic-bezier(0.32, 0.72, 0, 1); }
.ay-ch:hover { border-color: rgba(var(--fg-rgb), .32); }
.ay-ch:active { transform: scale(.97); }
.ay-ch.is-on { background: var(--orange); border-color: var(--orange); color: var(--on-accent, #fff); }
.ay-ch small { font-size: 11px; font-weight: 800; opacity: .75; margin-right: 2px; }
.ay-ch i { font-style: normal; font-size: 15px; line-height: 1; opacity: .7; }
.ay-add { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ay-add input, .ay-add select, .ay-flds input, .ay-flds select { height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--paper); font: inherit; font-size: 14.5px; min-width: 0; }
.ay-add input { flex: 1 1 200px; }
.ay-add select { flex: 0 1 auto; }
.ay-add--act input[data-ay-new] { flex: 2 1 200px; }
.ay-add--act input[data-ay-role] { flex: 1 1 150px; }
.ay-add--act input[data-ay-hrs] { flex: 0 1 130px; }
.ay-add input:focus, .ay-add select:focus, .ay-flds input:focus, .ay-flds select:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 22%, transparent); }
.ay-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 16px; border: 0; border-radius: 12px; background: var(--navy); color: var(--paper); font: inherit; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap; transition: filter .2s, transform .2s cubic-bezier(0.32, 0.72, 0, 1); }
.ay-btn:hover { filter: brightness(1.12); }
.ay-btn:active { transform: scale(.97); }
.ay-btn--go { background: var(--orange); color: var(--on-accent, #fff); padding: 0 22px; }
.ay-btn--ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.ay-flds { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.ay-flds--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ay-flds label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.ay-flds input, .ay-flds select { width: 100%; }
.ay-list { display: grid; gap: 8px; margin-bottom: 4px; }
.ay-item { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 14px; background: rgba(var(--fg-rgb), .045); }
.ay-item > b { flex: 1; font-size: 14.5px; }
.ay-item select { height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--paper); font: inherit; font-size: 13.5px; }
.ay-item--act > span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ay-item--act b { font-size: 14.5px; }
.ay-item--act small { font-size: 12.5px; color: var(--muted); }
.ay-x { flex: none; width: 32px; height: 32px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; }
.ay-x:hover { background: rgba(var(--fg-rgb), .08); color: var(--paper); }
.ay-note { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); }
.ay-err { margin: 12px 0 0; font-size: 13px; font-weight: 700; color: #C0313F; }
.ay-err:empty { display: none; }
html[data-theme="dark"] .ay-err { color: var(--t-rose, #FF9DB0); }
/* row summaries (account page) */
.ay-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ay-tag { display: inline-flex; align-items: baseline; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(var(--fg-rgb), .07); color: var(--paper); font-size: 13px; font-weight: 600; line-height: 1.35; }
.ay-tag small { font-size: 11px; font-weight: 800; color: var(--muted); }

/* ---------- the guided questions ---------- */
html.ay-lock { overflow: hidden; }
.ay-ov { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 20px; background: rgba(var(--scrim-rgb, 10, 12, 18), .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s; }
.ay-ov.is-in { opacity: 1; }
.ay-g { width: min(780px, 100%); max-height: calc(100dvh - 40px); overflow-y: auto; overscroll-behavior: contain; padding: 30px 34px 24px; border-radius: 30px; background: var(--card); color: var(--paper); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .55); transform: translateY(14px) scale(.985); transition: transform .4s cubic-bezier(0.32, 0.72, 0, 1); }
.ay-ov.is-in .ay-g { transform: none; }
.ay-g__top { display: flex; align-items: center; gap: 14px; font-size: 13px; font-weight: 700; color: var(--muted); }
.ay-g__bar { flex: 1; height: 6px; border-radius: 9px; background: rgba(var(--fg-rgb), .1); overflow: hidden; }
.ay-g__bar i { display: block; height: 100%; border-radius: 9px; background: var(--orange); transition: width .4s cubic-bezier(0.32, 0.72, 0, 1); }
.ay-g__x { border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; padding: 6px 4px; }
.ay-g__x:hover { color: var(--paper); }
.ay-g h2 { margin: 22px 0 6px; font-size: clamp(24px, 3.4vw, 32px); font-weight: 900; letter-spacing: -0.025em; line-height: 1.15; }
.ay-g__sub { margin: 0 0 22px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.ay-g__foot { display: flex; align-items: center; gap: 10px; margin-top: 26px; }
.ay-g__foot > span { flex: 1; }
.ay-g__foot--c { justify-content: center; }
.ay-g__skip { border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; padding: 8px; }
.ay-g__skip:hover { color: var(--paper); }
.ay-g__steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 20px; }
.ay-g__steps button { width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(var(--fg-rgb), .06); color: var(--faint); font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.ay-g__steps button.is-ok { background: color-mix(in srgb, #1E8A55 18%, transparent); color: #1E8A55; }
html[data-theme="dark"] .ay-g__steps button.is-ok { color: #8FD9A8; }
.ay-g__steps button.is-cur { background: var(--paper); color: var(--card); }
.ay-g__done { text-align: center; padding: 10px 0 4px; }
.ay-tick { display: inline-grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; background: var(--orange); }
.ay-tick svg { width: 38px; height: 38px; fill: none; stroke: var(--on-accent, #fff); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 640px) {
  .ay-ov { padding: 0; place-items: end stretch; }
  .ay-g { max-height: 92dvh; border-radius: 26px 26px 0 0; padding: 22px 18px 18px; }
  .ay-flds--3 { grid-template-columns: 1fr; }
  .ay-g__foot { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { .ay-ov, .ay-g, .ay-g__bar i, .ay-ch, .ay-btn { transition: none; } }
