/* banda app pages: page styles from the design preview (profile.html), used as they are.
   Fonts come from auth.css. */

    html { scroll-behavior: smooth; scroll-padding-top: 100px; }
    .no-scrollbar::-webkit-scrollbar { display: none; }
    .no-scrollbar { scrollbar-width: none; }

    /* ---------- banda logo (HTML/CSS, crisp at any size) ---------- */
    .logo { display: inline-flex; flex-direction: column; align-items: flex-start; font-size: 36px; line-height: 1; text-decoration: none; }
    .logo-word { font-family: Inter, system-ui, sans-serif; font-weight: 800; line-height: .82; letter-spacing: -.035em; color: var(--logo-word, #1C1712); }
    .logo-b { position: relative; display: inline-block; }
    .logo-dot { position: absolute; left: .215em; top: .43em; width: .18em; height: .18em; border-radius: 50%; background: #D9662E; transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
    .logo:hover .logo-dot { transform: scale(1.18); }
    .logo-tag { font-family: Inter, system-ui, sans-serif; font-weight: 600; font-size: .2em; letter-spacing: .5em; margin-top: .55em; white-space: nowrap; color: var(--logo-tag, #33397F); }
    .logo-tag .amp { color: #D9662E; letter-spacing: .3em; }
    .logo--light { --logo-word: #FDFBF6; --logo-tag: #B8BBE6; }
    /* large lockup (hero/brand use) keeps the original airy tagline */
    .logo--lg .logo-tag { font-weight: 500; font-size: .172em; letter-spacing: .66em; margin-top: .62em; }

    /* ---------- motion ---------- */
    .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
    .reveal.in { opacity: 1; transform: none; }
    .bar { width: 0; transition: width 1.2s cubic-bezier(.22,1,.36,1) .3s; }
    .float { animation: float 7s ease-in-out infinite; }
    @keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-6px) } }
    .hero-underline path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s cubic-bezier(.22,1,.36,1) .5s; }
    .reveal.in .hero-underline path { stroke-dashoffset: 0; }
    details > summary { list-style: none; cursor: pointer; }
    details > summary::-webkit-details-marker { display: none; }
    details[open] .faq-plus { transform: rotate(45deg); }
    /* Square grid: thin lines forming squares, faded out towards the edges. */
    .grid-lines {
      --gl: rgba(51,57,127,.12);
      --cell: 64px;
      background-image:
        linear-gradient(to right, var(--gl) 1px, transparent 1px),
        linear-gradient(to bottom, var(--gl) 1px, transparent 1px);
      background-size: var(--cell) var(--cell);
      background-position: center top;
    }
    .grid-lines--light { --gl: rgba(255,255,255,.085); }
    .grid-fade {
      -webkit-mask-image: radial-gradient(ellipse 72% 68% at 50% 42%, #000 35%, transparent 78%);
              mask-image: radial-gradient(ellipse 72% 68% at 50% 42%, #000 35%, transparent 78%);
    }
    /* a few squares filled in, like the reference */
    .grid-cell { position: absolute; width: var(--cell, 64px); height: var(--cell, 64px); background: rgba(51,57,127,.035); }
    .dot-grid { background-image: radial-gradient(rgba(51,57,127,.13) 1px, transparent 1px); background-size: 18px 18px; }

    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      *, *::before, *::after { animation: none !important; transition: none !important; }
      .reveal { opacity: 1; transform: none; }
      .hero-underline path { stroke-dashoffset: 0; }
    }

    /* ---------- dashboard ---------- */
    [hidden] { display: none !important; }
    body { background: #EFEAE1; }
    .panel { background: #fff; border-radius: 22px; }
    .side-link:focus-visible { outline: 2px solid #F0A77C; outline-offset: -2px; }
    .ring-focus:focus-visible, .btn:focus-visible { outline: 2px solid #33397F; outline-offset: 2px; }

    /* sidebar: a light card that always fits the screen height */
    #sidebar { top: 12px; bottom: 12px; background: linear-gradient(140deg, #3A41935e 0%, transparent 60%), linear-gradient(160deg, #33397F, #22265A); color: #fff; }
    .side-label { font-size: 11.5px; font-weight: 600; letter-spacing: .14em; color: rgba(184,187,230,.75); padding: 0 22px; margin-bottom: clamp(2px, .6vh, 6px); }
    .side-link { position: relative; display: flex; align-items: center; gap: 13px; height: clamp(34px, 4.7vh, 44px); padding: 0 22px; font-size: 15px; font-weight: 500; color: rgba(255,255,255,.68); transition: color .15s, background .15s; }
    .side-link svg { width: 20px; height: 20px; flex-shrink: 0; }
    .side-link:hover { color: #fff; background: rgba(255,255,255,.06); }
    .side-link[aria-current="page"] { color: #fff; font-weight: 600; background: rgba(255,255,255,.1); }
    .side-link[aria-current="page"] svg { color: #F0A77C; }
    .side-link[aria-current="page"]::before { content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 5px; border-radius: 0 6px 6px 0; background: #D9662E; }
    .side-badge { margin-left: auto; border-radius: 6px; background: rgba(255,255,255,.16); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 7px; }
    .side-group + .side-group { margin-top: clamp(12px, 3vh, 34px); }
    /* the help card steps aside on short screens so the menu never scrolls */
    /* the help card lives in the phone menu only */
    @media (min-width: 1024px) { .side-help { display: none !important; } }
    .side-help.is-compact .help-extra { display: none; }
    .side-help.is-compact { padding: 12px 14px; }
    .side-help.is-compact .help-title { margin-top: 0; }

    /* stat cards */
    .stat { position: relative; display: block; border-radius: 20px; background: #fff; padding: 18px 20px; transition: transform .2s, box-shadow .2s; }
    .stat:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -26px rgba(51,57,127,.55); }
    .stat-go { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; border: 1.5px solid #241A15; transition: background .2s, color .2s; }
    .stat:hover .stat-go { background: #241A15; color: #fff; }
    .stat--hero { background: linear-gradient(140deg, #3A41935e 0%, transparent 60%), linear-gradient(160deg, #33397F, #22265A); color: #fff; }
    .stat--hero .stat-go { border: 0; background: #fff; color: #33397F; }
    .trend { display: inline-flex; align-items: center; gap: 3px; border: 1px solid currentColor; border-radius: 6px; padding: 0 5px; font-size: 11px; font-weight: 700; line-height: 17px; }

    .chip-status { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; border-radius: 6px; padding: 2px 8px; font-size: 11.5px; font-weight: 600; }
    .stripes { background: repeating-linear-gradient(135deg, #A5A8CF 0 3px, transparent 3px 9px); box-shadow: inset 0 0 0 1px #DADCEE; }
    .day-bar { transition: height .9s cubic-bezier(.22,1,.36,1); }
    .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; font-weight: 600; transition: background .15s, color .15s, border-color .15s; }
    .rings { background: repeating-radial-gradient(circle at 115% 120%, transparent 0 16px, rgba(240,167,124,.16) 16px 17px); }

    @media (max-width: 639px) {
      .stat { padding: 14px 15px; }
      .stat > span:first-child > span:first-child { font-size: 14px; }
      .stat-go { width: 30px; height: 30px; }
    }
    @media (max-width: 1023px) {
      #sidebar { transform: translateX(-110%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; }
      #sidebar.is-open { transform: none; visibility: visible; transition: transform .25s ease, visibility 0s; }
    }
    /* ---------- motion ---------- */
    .js-anim .anim { opacity: 0; transform: translateY(18px) scale(.985); }
    .js-anim .anim.in { animation: rise .75s cubic-bezier(.22,1,.36,1) var(--d, 0ms) both; }
    @keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
    /* bars grow from the floor, the busiest day bounces, its label pops */
    .day-bar { clip-path: inset(100% 0 0 0); transition: clip-path 1s cubic-bezier(.22,1,.36,1) var(--d, 0ms); }
    .week-in .day-bar { clip-path: inset(-40px 0 0 0); }
    .day-tip { opacity: 0; transform: translate(-50%, 6px) scale(.8); transition: opacity .35s ease 1.2s, transform .45s cubic-bezier(.34,1.56,.64,1) 1.2s; }
    .week-in .day-tip { opacity: 1; transform: translate(-50%, 0) scale(1); }
    .stripes { background-size: 12.7px 12.7px; }
    .week-in .stripes { animation: drift 1.6s linear infinite; }
    @keyframes drift { to { background-position: 12.7px 0; } }
    /* the active menu bar and notification dot */
    .ping::after { content: ""; position: absolute; inset: -3px; border-radius: 999px; background: #D9662E; animation: ping 2.2s cubic-bezier(0,0,.2,1) infinite; }
    @keyframes ping { 0% { transform: scale(.6); opacity: .7; } 70%, 100% { transform: scale(2.4); opacity: 0; } }
    /* dark cards: slow ripple of rings */
    .rings { background-size: 100% 100%; animation: ripple 9s ease-in-out infinite alternate; }
    @keyframes ripple { from { background-position: 0 0; } to { background-position: -26px -18px; } }
    /* hero stat: a light sweep once it lands */
    .stat--hero { overflow: hidden; }
    .stat--hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.18) 50%, transparent 65%); transform: translateX(-120%); pointer-events: none; }
    .stat--hero.in::after { animation: sweep 1.4s ease .9s; }
    @keyframes sweep { to { transform: translateX(120%); } }
    .stat-go svg { transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
    .stat:hover .stat-go svg { transform: rotate(45deg); }
    /* main call to action breathes every few seconds */
    .nudge { position: relative; }
    .nudge::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(51,57,127,.45); animation: nudge 3.2s ease-out 2s infinite; }
    @keyframes nudge { 0% { box-shadow: 0 0 0 0 rgba(51,57,127,.45); } 45%, 100% { box-shadow: 0 0 0 12px rgba(51,57,127,0); } }
    /* list rows lift on hover; icons tilt */
    .row-hover { transition: background .2s, transform .25s cubic-bezier(.22,1,.36,1); }
    .row-hover:hover { transform: translateX(4px); }
    .row-hover:hover > span:first-child { transform: rotate(-8deg) scale(1.06); }
    .row-hover > span:first-child { transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
    .panel-lift { transition: box-shadow .3s, transform .3s cubic-bezier(.22,1,.36,1); }
    @media (hover: hover) { .panel-lift:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -30px rgba(36,26,21,.45); } }
    #gaugeSvg path + path { transition: none; }

    @media (prefers-reduced-motion: reduce) {
      .js-anim .anim { opacity: 1 !important; transform: none !important; animation: none !important; }
      .day-bar { clip-path: none !important; }
      .day-bar, .stat, .row-hover, .panel-lift, .day-tip { transition: none !important; }
      .rings, .ping::after, .nudge::after, .stat--hero::after, .stripes { animation: none !important; }
      .day-tip { opacity: 1; transform: translate(-50%, 0); }
    }
    /* ---------- submit a task ---------- */
    .step-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 12.5px; color: #736C66; }
    .step-item:not(:last-child)::after { content: ""; position: absolute; top: 15px; left: calc(50% + 22px); right: calc(-50% + 22px); height: 2px; border-radius: 2px; background: #ECE5DA; }
    .step-item.is-done:not(:last-child)::after { background: #33397F; }
    .step-dot { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 999px; border: 1.5px solid #D9D2C6; background: #fff; font-weight: 600; font-size: 13px; transition: background .25s, border-color .25s, color .25s; }
    .step-item.is-current { color: #241A15; font-weight: 600; }
    .step-item.is-current .step-dot { border-color: #33397F; background: #33397F; color: #fff; box-shadow: 0 0 0 5px #ECEDF8; }
    .step-item.is-done .step-dot { border-color: #33397F; background: #33397F; color: transparent; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); background-size: 15px; background-repeat: no-repeat; background-position: center; }
    .step-item.is-done { color: #33397F; }

    .cat { position: relative; display: block; cursor: pointer; border-radius: 18px; border: 1.5px solid #ECE5DA; background: #fff; padding: 16px; transition: border-color .2s, box-shadow .2s, transform .2s; }
    .cat:hover { border-color: #B8BBE6; transform: translateY(-1px); }
    .cat:has(input:checked) { border-color: #33397F; box-shadow: 0 0 0 3px #ECEDF8; }
    .cat:has(input:focus-visible) { outline: 2px solid #33397F; outline-offset: 2px; }
    .cat-check { position: absolute; right: 14px; top: 14px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 999px; border: 1.5px solid #D9D2C6; color: transparent; transition: all .2s; }
    .cat:has(input:checked) .cat-check { border-color: #33397F; background: #33397F; color: #fff; }

    .lbl { display: block; font-size: 13.5px; font-weight: 600; }
    .field { display: block; width: 100%; border-radius: 12px; border: 1.5px solid #ECE5DA; background: #fff; padding: 11px 14px; font-size: 14.5px; color: #241A15; transition: border-color .15s, box-shadow .15s; }
    .field::placeholder { color: #8A817A; }
    .field:focus { outline: none; border-color: #33397F; box-shadow: 0 0 0 3px #ECEDF8; }
    .field:disabled { background: #FBF9F5; color: #736C66; cursor: not-allowed; }
    .field[aria-invalid="true"] { border-color: #C2410C; }
    .err { font-size: 12.5px; font-weight: 500; color: #B42318; }
    .choice { display: block; cursor: pointer; }
    .choice span { display: block; border-radius: 12px; border: 1.5px solid #ECE5DA; background: #fff; padding: 10px; text-align: center; font-size: 14px; font-weight: 500; transition: all .15s; }
    .choice input:checked + span { border-color: #33397F; background: #ECEDF8; color: #33397F; font-weight: 600; }
    .choice input:focus-visible + span { outline: 2px solid #33397F; outline-offset: 2px; }
    @media (max-width: 639px) {
      .cat { display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; padding: 12px 40px 12px 12px; }
      .cat > :nth-child(3) { grid-row: 1 / 3; }
      .cat > :nth-child(4) { margin-top: 0; }
      .cat > :nth-child(5) { margin-top: 2px; }
      .cat > :nth-child(6) { display: none; }
      .cat-check { top: 50%; transform: translateY(-50%); }
    }
    #drop.is-over { border-color: #33397F; background: #ECEDF8; }

    .btn-next, .btn-ghost, .btn-outline { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; font-size: 14px; font-weight: 600; transition: background .15s, color .15s, border-color .15s; }
    .btn-next { background: #33397F; color: #fff; padding: 12px 22px; }
    .btn-next:hover { background: #282D68; }
    .btn-ghost { padding: 12px 16px; color: #736C66; }
    .btn-ghost:hover { background: #F5F0E8; color: #241A15; }
    .btn-outline { border: 1.5px solid #33397F; color: #33397F; padding: 10.5px 20px; }
    .btn-outline:hover { background: #33397F; color: #fff; }
    .btn-next:focus-visible, .btn-ghost:focus-visible, .btn-outline:focus-visible { outline: 2px solid #33397F; outline-offset: 2px; }
    .rv-k { font-size: 12px; color: #736C66; }
    .rv-v { margin-top: 2px; font-weight: 600; }
    .step-title:focus { outline: none; }

    .js-steps .step:not([hidden]) { animation: stepIn .45s cubic-bezier(.22,1,.36,1); }
    @keyframes stepIn { from { opacity: 0; transform: translateY(10px); } }
    .done-burst::before { content: ""; position: absolute; inset: 0; border-radius: 999px; box-shadow: 0 0 0 0 rgba(30,119,97,.35); animation: burst 1.4s ease-out .2s 2; }
    @keyframes burst { to { box-shadow: 0 0 0 22px rgba(30,119,97,0); } }
    .step:not([hidden]) .done-burst { animation: pop .6s cubic-bezier(.34,1.56,.64,1); }
    @keyframes pop { from { transform: scale(.4); opacity: 0; } }
    @media (prefers-reduced-motion: reduce) { .js-steps .step, .done-burst, .done-burst::before { animation: none !important; } .cat, .step-dot { transition: none; } }
    /* ---------- my tasks / request detail ---------- */
    .stat-f { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 12px; row-gap: 2px; border-radius: 20px; background: #fff; padding: 16px 18px; text-align: left; border: 1.5px solid transparent; transition: border-color .2s, transform .2s, box-shadow .2s; }
    .stat-f:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -26px rgba(51,57,127,.5); }
    .stat-f[aria-pressed="true"], .stat-f[aria-current="true"] { border-color: #33397F; }
    .stat-f:focus-visible { outline: 2px solid #33397F; outline-offset: 2px; }
    .stat-ic { grid-row: span 1; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; }
    .stat-label { font-size: 14.5px; font-weight: 500; }
    .stat-num { grid-column: 1 / -1; margin-top: 10px; font-family: Lexend, system-ui, sans-serif; font-size: 32px; font-weight: 600; line-height: 1; }
    .stat-sub { grid-column: 1 / -1; margin-top: 6px; font-size: 12.5px; color: #736C66; }
    .th { border-bottom: 1px solid #ECE5DA; padding: 10px 12px; font-weight: 600; white-space: nowrap; }
    .td { border-bottom: 1px solid #F1ECE3; padding: 12px; vertical-align: middle; }
    .row:last-child .td { border-bottom: 0; }
    .row:hover .td { background: #FBF9F5; }
    .page-b { display: grid; place-items: center; min-width: 36px; height: 36px; padding: 0 8px; border-radius: 10px; border: 1px solid #ECE5DA; background: #fff; font-size: 13.5px; font-weight: 600; }
    .page-b:hover:not(:disabled) { border-color: #33397F; }
    .page-b[aria-current="page"] { background: #33397F; border-color: #33397F; color: #fff; }
    .page-b:disabled { opacity: .4; cursor: not-allowed; }
    .page-b:focus-visible { outline: 2px solid #33397F; outline-offset: 2px; }
    .qa { display: flex; flex-direction: column; gap: 2px; border-radius: 16px; border: 1px solid #ECE5DA; padding: 12px; transition: border-color .2s, background .2s; }
    .qa:hover { border-color: #B8BBE6; background: #FBF9F5; }
    .qa:focus-visible { outline: 2px solid #33397F; outline-offset: 2px; }
    .qa-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 999px; margin-bottom: 8px; }
    .qa-t { font-size: 13.5px; font-weight: 600; line-height: 1.25; }
    .qa-s { font-size: 11.5px; color: #736C66; }
    .menu-i { display: flex; align-items: center; gap: 10px; padding: 9px 14px; text-align: left; }
    .menu-i:hover, .menu-i:focus-visible { background: #F5F0E8; outline: none; }
    .toast { position: fixed; left: 50%; bottom: 20px; z-index: 70; max-width: min(92vw, 460px); transform: translateX(-50%); border-radius: 14px; background: #1C1712; color: #fff; padding: 12px 16px; font-size: 13.5px; box-shadow: 0 18px 40px -18px rgba(0,0,0,.5); animation: toastIn .3s cubic-bezier(.22,1,.36,1); }
    @keyframes toastIn { from { opacity: 0; transform: translate(-50%, 10px); } }
    dialog[open] { animation: dlgIn .25s cubic-bezier(.22,1,.36,1); }
    @keyframes dlgIn { from { opacity: 0; transform: translateY(8px) scale(.98); } }
    @media (prefers-reduced-motion: reduce) { dialog[open], .stat-f { animation: none; transition: none; } }
    /* ---------- plan & billing ---------- */
    .tile { border-radius: 20px; background: #fff; padding: 16px 18px; }
    .tile-label { display: flex; align-items: center; gap: 12px; font-size: 14.5px; font-weight: 500; }
    .tile-num { margin-top: 10px; font-family: Lexend, system-ui, sans-serif; font-size: 26px; font-weight: 600; line-height: 1.15; }
    .tile-sub { margin-top: 6px; font-size: 12.5px; color: #736C66; }
    .meter { display: block; height: 8px; border-radius: 999px; background: #ECEDF8; overflow: hidden; }
    .meter > span { display: block; height: 100%; border-radius: 999px; background: #33397F; }
    .switch { position: relative; width: 44px; height: 26px; flex-shrink: 0; border-radius: 999px; background: #D9D2C6; transition: background .2s; }
    .switch span { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
    .switch[aria-checked="true"] { background: #33397F; }
    .switch[aria-checked="true"] span { transform: translateX(18px); }
    .switch:focus-visible { outline: 2px solid #33397F; outline-offset: 2px; }
    .plan-opt { display: block; cursor: pointer; border-radius: 16px; border: 1.5px solid #ECE5DA; padding: 16px; transition: border-color .15s, box-shadow .15s; }
    .plan-opt:hover { border-color: #B8BBE6; }
    .plan-opt:has(input:checked) { border-color: #33397F; box-shadow: 0 0 0 3px #ECEDF8; }
    .plan-opt:has(input:focus-visible) { outline: 2px solid #33397F; outline-offset: 2px; }
    @media (prefers-reduced-motion: reduce) { .switch, .switch span { transition: none; } }
    /* ---------- team & help ---------- */
    .ttab { display: inline-flex; flex-shrink: 0; align-items: center; gap: 8px; margin-bottom: -1px; border-bottom: 2px solid transparent; padding: 10px 12px; font-size: 14px; font-weight: 600; color: #736C66; white-space: nowrap; }
    .ttab:hover { color: #241A15; }
    .ttab[aria-selected="true"] { border-color: #33397F; color: #33397F; }
    .ttab:focus-visible { outline: 2px solid #33397F; outline-offset: -2px; border-radius: 8px; }
    .tcount { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #ECEDF8; font-size: 11.5px; color: #33397F; }
    .tcount[hidden] { display: none; }
    [role="tabpanel"]:focus-visible { outline: 2px solid #33397F; outline-offset: 4px; border-radius: 12px; }
    .way { display: flex; flex-direction: column; gap: 4px; border-radius: 20px; background: #fff; padding: 18px; transition: transform .2s, box-shadow .2s; }
    .way:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -26px rgba(51,57,127,.5); }
    .way:focus-visible { outline: 2px solid #33397F; outline-offset: 2px; }
    .way-t { margin-top: 10px; font-family: Lexend, system-ui, sans-serif; font-size: 16px; font-weight: 600; }
    .way-s { font-size: 13px; color: #736C66; }
    .way-l { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: #33397F; overflow-wrap: anywhere; }
    .faq summary::-webkit-details-marker { display: none; }
    .faq summary:focus-visible { outline: 2px solid #33397F; outline-offset: 2px; border-radius: 8px; }
    @media (prefers-reduced-motion: reduce) { .way { transition: none; } }

    /* ---------- profile ---------- */
    .pill-link { border-radius: 999px; border: 1px solid #ECE5DA; background: #fff; padding: 6px 12px; font-size: 13px; font-weight: 600; color: #33397F; }
    .pill-link:hover { background: #ECEDF8; }
    .pill-link:focus-visible { outline: 2px solid #33397F; outline-offset: 2px; }
    .step-n { display: grid; place-items: center; flex-shrink: 0; width: 22px; height: 22px; border-radius: 999px; background: #33397F; color: #fff; font-size: 12px; font-weight: 600; }
  
/* On/off switch: a real checkbox, so it works without JavaScript and in forms. */
.sw { appearance: none; -webkit-appearance: none; position: relative; flex-shrink: 0; width: 44px; height: 26px; margin: 0; border-radius: 999px; background: #D9D2C6; cursor: pointer; transition: background .2s; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.sw:checked { background: #33397F; }
.sw:checked::after { transform: translateX(18px); }
.sw:focus-visible { outline: 2px solid #33397F; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .sw, .sw::after { transition: none; } }
@media (forced-colors: active) { .sw { border: 1px solid CanvasText; } .sw:checked { background: Highlight; } }

/* Category cards on Submit a Task are links (no JavaScript): the chosen one is aria-current. */
a.cat { color: inherit; text-decoration: none; }
.cat[aria-current="true"] { border-color: #33397F; box-shadow: 0 0 0 3px #ECEDF8; }
.cat[aria-current="true"] .cat-check { border-color: #33397F; background: #33397F; color: #fff; }
a.cat:focus-visible { outline: 2px solid #33397F; outline-offset: 2px; }
.cat.is-soon { cursor: default; background: #FBF9F5; }
.cat.is-soon:hover { border-color: #ECE5DA; transform: none; }

/* Help & Support: ways to get help, topic pills, questions. */
.way { display: flex; flex-direction: column; gap: 4px; border-radius: 20px; background: #fff; padding: 18px; color: inherit; text-decoration: none; transition: transform .2s, box-shadow .2s; }
a.way:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -26px rgba(51,57,127,.5); }
.way:focus-visible { outline: 2px solid #33397F; outline-offset: 2px; }
.way-t { margin-top: 10px; font-family: Lexend, system-ui, sans-serif; font-size: 16px; font-weight: 600; }
.way-s { font-size: 13px; color: #736C66; }
.way-l { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: #33397F; overflow-wrap: anywhere; }
.choice-pill { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid #ECE5DA; border-radius: 999px; background: #fff; padding: 6px 12px; font-size: 13px; font-weight: 600; color: #241A15; text-decoration: none; }
.choice-pill:hover { border-color: #33397F; }
.choice-pill.is-on { border-color: #33397F; background: #ECEDF8; color: #33397F; }
.choice-pill:focus-visible { outline: 2px solid #33397F; outline-offset: 2px; }
.topics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .topics-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1536px) { .topics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
details.faq > summary { list-style: none; cursor: pointer; }
details.faq > summary::-webkit-details-marker { display: none; }
details.faq > summary:focus-visible { outline: 2px solid #33397F; outline-offset: 2px; border-radius: 8px; }
details.faq .faq-plus { transition: transform .2s; }
details.faq[open] .faq-plus { transform: rotate(45deg); }

/* Messages: conversation list and the open thread. */
.convo { display: flex; width: 100%; gap: 12px; align-items: flex-start; padding: 12px 10px; border-radius: 14px; color: inherit; text-decoration: none; transition: background .15s; }
.convo:hover { background: #FBF9F5; }
.convo[aria-current="true"] { background: #ECEDF8; }
.convo:focus-visible { outline: 2px solid #33397F; outline-offset: -2px; }
.convo-list > li + li { margin-top: 2px; }
.tab-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #D9662E; color: #fff; font-size: 11px; font-weight: 700; }
.thread-scroll { flex: 1 1 auto; min-height: 260px; max-height: clamp(360px, calc(100dvh - 360px), 640px); overflow-y: auto; }
@media (min-width: 1024px) { .convo-list { max-height: clamp(360px, calc(100dvh - 360px), 680px); overflow-y: auto; } }
@media (prefers-reduced-motion: reduce) { .way, .convo, details.faq .faq-plus { transition: none; } }
.prio { border: 1.5px solid #ECE5DA; border-radius: 14px; background: #fff; }
.prio:hover { border-color: #33397F; }
.prio:has(input:checked) { border-color: #33397F; background: #ECEDF8; }
.prio:has(input:focus-visible) { outline: 2px solid #33397F; outline-offset: 2px; }
