/* Admin: tabs, overview, forms and the client / agreement / session / money screens. Loads after admin.css. */

/* ---------- tabs ---------- */
.tabnav { order: 3; flex: 0 0 100%; display: flex; gap: .2rem; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin: 0 -.4rem; padding: 0 .1rem; }
.tabnav::-webkit-scrollbar { display: none; }
.tab-b { flex: none; display: inline-flex; align-items: center; gap: .4rem; border: 0; background: none; color: var(--muted); font-weight: 700; font-size: .95rem; padding: .55rem .7rem .65rem; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.tab-b:hover { color: var(--bone); }
.tab-b[aria-current="page"] { color: var(--bone); border-bottom-color: var(--sand); }
.tab-b__n { min-width: 1.3rem; height: 1.3rem; padding: 0 .35rem; display: inline-grid; place-items: center; border-radius: 999px; background: var(--sand); color: var(--ink); font-size: .74rem; font-weight: 800; }

/* ---------- overview ---------- */
.overview { max-width: 78rem; margin: 0 auto; padding: 1rem 1rem 0; display: grid; gap: .9rem; }
.insights { display: grid; grid-template-columns: repeat(auto-fit, minmax(6.6rem, 1fr)); gap: .4rem; }
.insights .tile { padding: .45rem .6rem .5rem .7rem; border-radius: 10px; gap: .05rem; }
.insights .tile::before { width: 2px; }
.insights .tile__n { font-size: 1.25rem; }
.insights .tile__l { font-size: .68rem; line-height: 1.2; }
.insights .tile__s { font-size: .64rem; }
.insights--4 { grid-template-columns: repeat(2, 1fr); margin-bottom: .9rem; }
.tile { cursor: pointer; transition: background .2s, border-color .2s, transform .18s cubic-bezier(.2, .8, .3, 1.2), box-shadow .18s; color: var(--bone); }
.tile:hover { background: var(--ink-3); border-color: rgba(243, 239, 230, .28); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .tile:hover, .tile:focus-visible { transform: translateY(-3px) scale(1.04); box-shadow: 0 10px 22px -6px rgba(0, 0, 0, .65); z-index: 1; }
  .tile:active { transform: translateY(-1px) scale(1.01); }
}
.tile__n { overflow-wrap: anywhere; }
.tile__s { font-size: .72rem; color: var(--muted); }
.funnel { margin: 0; color: var(--muted); font-size: .9rem; }
.funnel:empty { display: none; }
.sect { display: flex; align-items: baseline; gap: .6rem; font: 400 1.35rem/1 var(--display); text-transform: uppercase; letter-spacing: .02em; margin: 0; }
.sect__n { font: 700 .75rem/1 var(--body); background: var(--sand); color: var(--ink); border-radius: 999px; padding: .22rem .5rem; letter-spacing: 0; }
.attn { background: var(--ink-2); border: 1px solid var(--line); border-radius: 12px; padding: 0; display: grid; margin-bottom: .8rem; overflow: hidden; }
.attn__head { display: flex; align-items: center; gap: .65rem; width: 100%; padding: .65rem .85rem; border: 0; background: none; color: var(--bone); text-align: left; font: inherit; cursor: pointer; }
.attn__head:hover { background: rgba(243, 239, 230, .04); }
.attn__title { flex: 1 1 auto; font-weight: 700; }
.attn__chev { display: grid; color: var(--muted); transition: transform .2s; }
.attn--open .attn__chev { transform: rotate(180deg); }
.attn--open .attn__head { border-bottom: 1px solid var(--line); }
.attn--open .attn__list, .attn > .linkbtn { padding: 0 .85rem; }
.attn > .linkbtn { justify-self: start; margin-bottom: .4rem; }
.attn__list { list-style: none; margin: 0; padding: 0; display: grid; }
.attn__row { width: 100%; display: grid; grid-template-columns: auto 1fr auto; gap: .8rem; align-items: center; text-align: left; border: 0; background: none; padding: .7rem .2rem; border-top: 1px solid var(--line); color: var(--bone); }
.attn__list li:first-child .attn__row { border-top: 0; }
.attn__row:hover { background: rgba(243, 239, 230, .04); }
.attn__row > svg { color: var(--muted); }
.attn__dot { width: .65rem; height: .65rem; border-radius: 50%; background: var(--moss); }
.attn__dot--bad { background: var(--danger); box-shadow: 0 0 0 4px rgba(229, 119, 107, .2); }
.attn__dot--warn { background: var(--gold); box-shadow: 0 0 0 4px rgba(226, 194, 106, .18); }
.attn__main { display: grid; gap: .1rem; min-width: 0; }
.attn__t { font-weight: 700; }
.attn__s { color: var(--muted); font-size: .86rem; }
.attn__ok { margin: 0; display: flex; align-items: center; gap: .6rem; color: var(--moss); font-weight: 700; padding: .65rem .85rem; }
.lhead { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; margin-bottom: .8rem; }
.lhead .sect { flex: 1 1 auto; }
.list-pane > .sect { margin-bottom: .8rem; }
.btn svg { flex: none; }
.btn--sm { min-height: 2.3rem; padding: .45rem .9rem; font-size: .86rem; gap: .35rem; }
.linkbtn { border: 0; background: none; color: var(--moss); font-weight: 700; font-size: .85rem; letter-spacing: 0; text-transform: none; padding: .2rem 0; }
.linkbtn:hover { text-decoration: underline; }
.d-h { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }

/* ---------- forms inside the detail pane ---------- */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem .8rem; margin-bottom: .4rem; }
.f { display: grid; gap: .3rem; align-content: start; min-width: 0; }
.f--wide, .form > .d-saved { grid-column: 1 / -1; }
.f label { font-size: .84rem; color: var(--muted); font-weight: 600; }
.f small { color: var(--muted); font-size: .78rem; }
.f--check label { display: flex; align-items: center; gap: .65rem; color: var(--bone); font-size: .95rem; cursor: pointer; }
.f--check input { width: 1.2rem; height: 1.2rem; flex: none; accent-color: var(--moss); }
select { font: inherit; color: var(--bone); background-color: var(--ink); border: 1.5px solid rgba(243, 239, 230, .2); border-radius: 12px; padding: .8rem 2.4rem .8rem .9rem; width: 100%; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2714%27 height=%2714%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23A8B0A0%27 stroke-width=%272.4%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27m6 9 6 6 6-6%27/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .85rem center; }
select:focus { outline: 3px solid rgba(200, 121, 75, .55); outline-offset: 0; border-color: var(--sand); }
select option { background: var(--ink-2); color: var(--bone); }
input[type="date"], input[type="datetime-local"] { color-scheme: dark; min-height: 3rem; }
.is-bad { border-color: var(--danger) !important; }
textarea { resize: vertical; line-height: 1.55; }
.form .d-saved { margin: 0; }
.chips--wrap { flex-wrap: wrap; overflow: visible; }
@media (max-width: 30rem) { .form { grid-template-columns: 1fr; } }

/* ---------- small cards, notes, steps, folds ---------- */
.mini { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: .8rem; text-align: left; background: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: .7rem .85rem; margin-bottom: .4rem; transition: background .2s; }
.mini:hover { background: var(--ink-3); }
.mini__main { display: grid; gap: .05rem; min-width: 0; }
.mini__t { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini__s { color: var(--muted); font-size: .84rem; }
.agready { background: var(--ink); border: 1px dashed var(--line); border-radius: 12px; padding: .85rem .9rem .9rem; margin-bottom: .4rem; }
.agready__t { margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.agready__s { margin: .1rem 0 .75rem; font-weight: 700; font-size: 1.02rem; }
.agready .d-actions { margin-top: .7rem; }
.d-empty { margin: 0 0 .4rem; color: var(--muted); font-size: .93rem; }
.d-sum { margin: 0 0 .5rem; font-weight: 600; }
.note { margin: .2rem 0 .8rem; padding: .6rem .8rem; border-radius: 12px; font-size: .9rem; font-weight: 600; border: 1px solid var(--line); background: var(--ink); color: var(--muted); }
.note--ok { color: var(--moss); border-color: rgba(141, 181, 139, .35); }
.note--warn { color: var(--gold); border-color: rgba(226, 194, 106, .4); }
.note--bad { color: var(--danger); border-color: rgba(229, 119, 107, .45); }
.danger--sm { margin-top: .9rem; padding: .5rem .9rem; font-size: .84rem; }
.d-actions--end { margin: 1rem 0 0; gap: .6rem; }
.d-actions--end .danger { margin-top: 0; }
.fold { border: 1px solid var(--line); border-radius: 14px; background: var(--ink); margin-bottom: .6rem; }
.fold > summary { cursor: pointer; padding: .8rem 1rem; font-weight: 700; list-style: none; display: flex; justify-content: space-between; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: "+"; color: var(--muted); font-size: 1.2rem; line-height: 1; }
.fold[open] > summary::after { content: "\2212"; }
.fold > :not(summary) { margin: 0 1rem 1rem; }
.doc h4 { font: 700 .76rem/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--moss); margin: 1.2rem 0 .4rem; }
.doc p { margin: 0 0 .7rem; white-space: pre-line; overflow-wrap: anywhere; font-size: .96rem; }
.doc ul { margin: 0 0 .7rem; padding-left: 1.1rem; }
.steps { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .1rem; }
.steps li { display: grid; grid-template-columns: auto 1fr auto; gap: .7rem; align-items: center; padding: .35rem 0; color: var(--muted); }
.steps__dot { width: .8rem; height: .8rem; border-radius: 50%; border: 2px solid var(--line); }
.steps li.is-done { color: var(--bone); }
.steps li.is-done .steps__dot { background: var(--moss); border-color: var(--moss); }
.steps__t { font-size: .82rem; color: var(--muted); }
.signed { background: var(--ink); border: 1px solid rgba(141, 181, 139, .4); border-radius: 14px; padding: 1rem; }
.signed__who { margin: 0; font: italic 700 1.3rem var(--body); }
.signed__when { margin: .1rem 0 .6rem; color: var(--muted); font-size: .9rem; }
.sigbox { min-height: 4rem; background: #fff; border-radius: 10px; padding: .4rem; margin-bottom: .7rem; width: min(100%, 20rem); }
.sigbox img { width: 100%; }
.tl { list-style: none; margin: 0 0 .4rem .35rem; padding: 0 0 0 .2rem; display: grid; border-left: 2px solid var(--line); }
.tl li { display: grid; gap: .05rem; padding: .35rem 0 .35rem .9rem; position: relative; }
.tl li::before { content: ""; position: absolute; left: -.43rem; top: .75rem; width: .6rem; height: .6rem; border-radius: 50%; background: var(--moss); }
.tl__x { font-weight: 600; }
.tl__t { font-size: .8rem; color: var(--muted); }

/* ---------- dogs ---------- */
.dog { background: var(--ink); border: 1px solid var(--line); border-radius: 14px; margin-bottom: .6rem; overflow: hidden; }
.dog__sum { display: grid; grid-template-columns: auto 1fr auto; gap: .8rem; align-items: center; padding: .7rem .85rem; cursor: pointer; list-style: none; }
.dog__sum::-webkit-details-marker { display: none; }
.dog[open] > .dog__sum { border-bottom: 1px solid var(--line); }
.dog__t { display: grid; min-width: 0; }
.dog__n { font-weight: 800; font-size: 1.05rem; }
.dog__s { color: var(--muted); font-size: .85rem; }
.dog__body { padding: 1rem .85rem; }
.dog__photo { display: flex; align-items: center; gap: 1rem; margin-bottom: .9rem; }
.avatar { display: grid; place-items: center; flex: none; border-radius: 50%; background: var(--ink-3); border: 1px solid var(--line); color: var(--moss); overflow: hidden; }
.avatar--s { width: 2.8rem; height: 2.8rem; }
.avatar--l { width: 5.2rem; height: 5.2rem; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
label.btn { cursor: pointer; }
.is-busy { opacity: .6; pointer-events: none; }

/* ---------- statuses ---------- */
.pill--care { background: var(--danger); border-color: var(--danger); color: #1b0a08; }
.pill--none, .pill--ag-draft { color: var(--muted); }
.pill--owed { color: var(--muted); border-color: rgba(168, 176, 160, .45); }
.pill--wait, .pill--ag-sent, .pill--s-planned { color: var(--gold); border-color: rgba(226, 194, 106, .5); }
.pill--ag-viewed { color: var(--sand-hi); border-color: rgba(217, 139, 93, .55); }
.pill--ag-signed, .pill--paid, .pill--s-done { color: #7CCB86; border-color: rgba(124, 203, 134, .5); }
.pill--ag-void, .pill--s-cancelled { color: var(--muted); text-decoration: line-through; }
.pill--late { background: var(--danger); border-color: var(--danger); color: #1b0a08; }

/* Enquiries filter row: a magnifier pill first. Tapping it grows the pill to the right and pushes the filters out of the row. */
.tools--row { display: flex; align-items: center; gap: .3rem; }
.tools--row.is-searching, .tools--row.is-anim { overflow: hidden; }
.tools--row .chips { flex: 0 0 auto; padding: .1rem 0; gap: .3rem; }
.searchpill { flex: 0 0 2.4rem; min-width: 0; height: 2.4rem; display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); overflow: hidden; }
.searchpill:hover { color: var(--bone); border-color: rgba(243, 239, 230, .35); background: rgba(243, 239, 230, .05); }
.tools--row.is-searching .searchpill { flex-basis: 100%; color: var(--bone); background: var(--ink); border-color: var(--sand); }
.searchpill:focus-within { box-shadow: 0 0 0 3px rgba(200, 121, 75, .3); }
.searchbtn { flex: none; display: grid; place-items: center; width: 2.4rem; height: 100%; margin: 0 0 0 -1px; border: 0; background: none; color: inherit; cursor: pointer; border-radius: 999px; }
.searchpill input { flex: 1 1 auto; min-width: 0; width: auto; height: 100%; padding: 0 .2rem; border: 0; border-radius: 0; background: none; outline: 0; box-shadow: none; opacity: 0; visibility: hidden; }
.searchpill input:focus { outline: 0; border: 0; }
.searchpill input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.search__x { flex: none; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; margin-right: .25rem; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; opacity: 0; visibility: hidden; }
.search__x:hover { color: var(--bone); background: rgba(243, 239, 230, .08); }
.tools--row.is-searching .searchpill input, .tools--row.is-searching .search__x { opacity: 1; visibility: visible; }
.tools--row.is-searching .chips { opacity: 0; visibility: hidden; pointer-events: none; }

/* "More" filter chip + its small menu */
.tools--row .chips { overflow: visible; }
.tools--row .chip { padding: .5rem .62rem; font-size: .84rem; }
.more { position: relative; flex: none; }
.more__btn { display: inline-flex; align-items: center; gap: .3rem; }
.more__btn svg { margin-right: -.2rem; transition: transform .15s; }
.more__btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.more__menu { position: absolute; top: calc(100% + .4rem); right: 0; z-index: 20; min-width: 10rem; display: grid; padding: .3rem; background: var(--ink-3); border: 1px solid rgba(243, 239, 230, .2); border-radius: 12px; box-shadow: 0 14px 30px -8px rgba(0, 0, 0, .7); }
.more__menu[hidden] { display: none; }
.more__item { text-align: left; border: 0; background: none; color: var(--bone); font: inherit; font-weight: 600; font-size: .9rem; padding: .6rem .8rem; border-radius: 8px; cursor: pointer; }
.more__item:hover { background: rgba(243, 239, 230, .08); }
.more__item.is-on { color: var(--sand-hi); }

/* Filter row animations: the filter buttons drop in with a little overshoot. The magnifier's move is the pill growing right (above). Off for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .tools--row .chip, .more__item { transition: transform .16s cubic-bezier(.3, 1.4, .5, 1), background .2s, color .2s, border-color .2s; }
  .tools--row .chip:hover { transform: translateY(-2px); }
  .tools--row .chip:active { transform: scale(.92); }
  .chip.is-pop, .more__menu:not([hidden]) { animation: chipDrop .42s cubic-bezier(.3, 1.5, .5, 1); }
  .searchpill { transition: flex-basis .42s cubic-bezier(.3, 1, .35, 1), color .2s, border-color .2s, background .2s, box-shadow .2s, transform .16s cubic-bezier(.3, 1.4, .5, 1); }
  .tools--row:not(.is-searching) .searchpill:hover { transform: translateY(-2px); }
  .tools--row:not(.is-searching) .searchpill:active { transform: scale(.92); }
  .searchpill input, .search__x { transition: opacity .2s .18s, visibility 0s; }
  .tools--row.is-searching .chips { transition: opacity .22s, visibility 0s .42s; }
  .tools--row .chips { transition: opacity .22s .2s, visibility 0s; }
  .search__x:hover { transform: rotate(90deg); }
}
@keyframes chipDrop { 0% { transform: translateY(-10px) scale(.9); opacity: .5; } 100% { transform: none; opacity: 1; } }

/* One row: all the filters when there's room, otherwise New, Contacted and a More menu */
.tools--row { container-type: inline-size; }
.tools--row .more { display: none; }
@container (max-width: 25.5rem) {
  .tools--row .chip--extra { display: none; }
  .tools--row .more { display: block; }
}

/* Enquiry rows: a long name is cut with "…" instead of pushing the time under the status pill */
.row { grid-template-columns: auto minmax(0, 1fr) auto; }
.row__main { grid-template-columns: minmax(0, 1fr); }
.row__top { min-width: 0; }

/* WhatsApp button: the logo, in WhatsApp green */
.btn--wa { background: #25D366; border-color: #25D366; color: #06311a; }
.btn--wa:hover { background: #3be07a; border-color: #3be07a; }
.btn--wa svg { flex: none; }

/* Client status, top right of a client's page */
.d-head--row { display: flex; align-items: flex-start; justify-content: space-between; gap: .8rem; }
.d-head__main { min-width: 0; }
.cstat { position: relative; flex: none; display: inline-flex; align-items: center; gap: .5rem; margin-top: .35rem; padding: .35rem .7rem .35rem .65rem; border: 1px solid var(--line); border-radius: 999px; background: var(--ink-2); color: var(--muted); font-weight: 700; font-size: .82rem; cursor: pointer; }
.cstat:hover { border-color: rgba(243, 239, 230, .3); }
.cstat:focus-within { outline: 3px solid rgba(200, 121, 75, .55); }
.cstat--live { color: #7CE0A0; border-color: rgba(61, 220, 132, .4); background: rgba(61, 220, 132, .08); }
.cstat__dot { position: relative; width: .6rem; height: .6rem; border-radius: 50%; background: #7a8473; }
.cstat--live .cstat__dot { background: #3DDC84; box-shadow: 0 0 .5rem rgba(61, 220, 132, .8); }
.cstat--live .cstat__dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #3DDC84; }
@media (prefers-reduced-motion: no-preference) {
  .cstat--live .cstat__dot::after { animation: livePulse 1.8s ease-out infinite; }
}
@keyframes livePulse { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(3.2); opacity: 0; } }
.cstat__sel { appearance: none; -webkit-appearance: none; border: 0; background: none; color: inherit; font: inherit; padding: 0 .1rem; width: auto; cursor: pointer; outline: 0; }
.cstat__sel option { background: var(--ink-3); color: var(--bone); }

/* Client list: a status dot on every row. Pulsing green = active, still grey = past. */
.row__dot--live, .row__dot--past { position: relative; }
.row__dot--live { background: #3DDC84; box-shadow: 0 0 .5rem rgba(61, 220, 132, .7); }
.row__dot--live::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #3DDC84; }
.row__dot--past { background: #7a8473; }
@media (prefers-reduced-motion: no-preference) {
  .row__dot--live::after { animation: livePulse 1.8s ease-out infinite; }
}

/* Call / Email drop-downs under the contact buttons (only WhatsApp opens an app) */
.d-contact { display: grid; gap: .6rem; }
.btn--drop { cursor: pointer; }
.btn__chev { display: grid; margin-left: -.15rem; opacity: .7; transition: transform .2s; }
.btn--drop.is-open { background: var(--ink-3); border-color: rgba(243, 239, 230, .4); }
.btn--drop.is-open .btn__chev { transform: rotate(180deg); }
.d-reveal { display: flex; align-items: center; gap: .8rem; padding: .7rem .9rem; background: var(--ink-2); border: 1px solid rgba(243, 239, 230, .2); border-radius: 14px; animation: chipDrop .3s cubic-bezier(.3, 1.4, .5, 1); }
.d-reveal[hidden] { display: none; }
.d-reveal__k { flex: none; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--moss); }
.d-reveal__v { flex: 1 1 auto; min-width: 0; font-weight: 700; font-size: 1.05rem; overflow-wrap: anywhere; user-select: all; }
.d-reveal__copy { flex: none; display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .75rem; border: 1px solid var(--line); border-radius: 999px; background: var(--ink-3); color: var(--bone); font: inherit; font-weight: 700; font-size: .82rem; cursor: pointer; }
.d-reveal__copy:hover { border-color: rgba(243, 239, 230, .4); }
@media (max-width: 30rem) { .d-reveal { flex-wrap: wrap; } .d-reveal__v { flex-basis: 100%; order: 3; } .d-reveal__copy { margin-left: auto; } }

/* Drop-down open: blur and dim everything behind, keep the buttons + panel sharp */
.scrim { position: fixed; inset: 0; z-index: 80; background: rgba(6, 9, 6, .45); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); animation: scrimIn .22s ease-out; }
.d-contact.is-focus { position: relative; z-index: 90; }
.d-reveal:focus { outline: 0; }
.d-contact.is-focus .d-reveal { box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .8); border-color: rgba(243, 239, 230, .35); }
@keyframes scrimIn { from { opacity: 0; } to { opacity: 1; } }
.dim-away { filter: blur(3px); opacity: .5; transition: filter .22s, opacity .22s; pointer-events: none; }

/* Pre-questionnaire (enquiry detail) */
.d-q { margin-top: .2rem; }
.d-q__hint { margin: 0 0 .7rem; color: var(--muted, #A8B0A0); }
.d-q__state { display: flex; align-items: center; gap: .45rem; margin: 0 0 .8rem; font-weight: 700; }
.d-q__state.is-done { color: #7FD99A; }
.qa__h { margin: 1rem 0 .4rem; font-weight: 700; font-size: .72rem; line-height: 1.2; letter-spacing: .12em; text-transform: uppercase; color: var(--muted, #A8B0A0); }
.qa__l { margin: 0; display: grid; gap: .7rem; }
.qa__l dt { font-size: .82rem; color: var(--muted, #A8B0A0); }
.qa__l dd { margin: .1rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Questionnaire tab */
.qe { border: 1px solid var(--line); border-radius: 14px; padding: .8rem .9rem; margin: 0 0 .8rem; display: grid; gap: .65rem; background: rgba(255,255,255,.02); }
.qe__top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.qe__n { font-weight: 700; font-size: .72rem; line-height: 1.2; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.qe__acts { display: flex; gap: .3rem; }
.qe__ib { display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--bone); transition: background .15s, transform .15s; }
.qe__ib:hover:not(:disabled) { background: rgba(255,255,255,.08); transform: translateY(-1px); }
.qe__ib:disabled { opacity: .3; cursor: default; }
.qe__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; align-items: end; }
.qe__f { display: grid; gap: .25rem; min-width: 0; }
.qe__f--wide { grid-column: 1 / -1; margin-bottom: .6rem; }
.qe__f--blank .qe__l { visibility: hidden; }
.qe__l { font-size: .8rem; color: var(--muted); font-weight: 600; }
.qe input[type="text"], .qe textarea, .qe select, .qe__f--wide input, .qe__f--wide textarea { font: inherit; width: 100%; color: var(--bone); background: rgba(0,0,0,.28); border: 1px solid var(--line); border-radius: 10px; padding: .6rem .7rem; }
.qe input[type="text"]:focus, .qe textarea:focus, .qe select:focus, .qe__f--wide input:focus, .qe__f--wide textarea:focus { outline: 2px solid var(--sand); outline-offset: 1px; }
.qe__chk { display: flex; align-items: center; gap: .5rem; padding-bottom: .55rem; font-weight: 600; cursor: pointer; }
.qe__chk input { width: 1.15rem; height: 1.15rem; accent-color: var(--sand); }
.qe__steps { margin: 0 0 1rem; padding-left: 1.2rem; color: var(--muted); display: grid; gap: .4rem; }
@media (max-width: 30rem) { .qe__row { grid-template-columns: 1fr; } .qe__f--blank { display: none; } }
