/* Rowebot, in All Star Grenada's colours: the deep blue and cyan of the star logo, one amber accent
   for things that need attention, Caslon for display and Open Sans for everything else.
   Layout: an airy reading column of fee schedules on a pale ground, with the assistant as a
   floating panel beside it. */
:root {
  --navy: #0d3f7a; --ink: #1c2a3f; --sky: #0ab0e6; --sky-deep: #0a72b8; --sea: #094fa3; --amber: #e2a93b;
  --muted: #667588; --faint: #93a1b1; --line: #e2e8ee; --ground: #f4f7f9; --surface: #ffffff;
  --sky-wash: #e6f6fd; --amber-wash: #fcf2dc; --amber-ink: #7d5606; --red-wash: #fbe6e3; --red-ink: #a12a20;
  --display: "Libre Caslon Text", "Adobe Caslon Pro", "Big Caslon", Georgia, serif;
  --sans: "Open Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --r-lg: 18px; --r-md: 12px; --r-sm: 8px;
  --lift: 0 1px 2px rgba(34,58,94,.05), 0 10px 30px rgba(34,58,94,.07);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 15.5px; line-height: 1.6; color: var(--ink); background: var(--ground); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; color: var(--navy); text-wrap: balance; }
p { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--sky-deep); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.only-mobile { display: none; }
.quiet-btn { background: none; border: 0; padding: 7px 12px; border-radius: 999px; color: var(--muted); font-size: .84rem; font-weight: 600; }
.quiet-btn:hover { background: var(--ground); color: var(--navy); }
.btn { background: var(--navy); color: #fff; border: 0; border-radius: 999px; padding: 13px 22px; font-weight: 600; transition: background .15s; }
.btn:hover { background: var(--sky-deep); }
.btn:disabled { opacity: .55; cursor: default; }

/* ---------- Sign-in ---------- */
.login { min-height: 100%; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); background: var(--surface); }
.login-art { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; padding: 56px;
  color: #fff; background:
    radial-gradient(120% 80% at 80% 0%, rgba(255,255,255,.28), transparent 60%),
    linear-gradient(165deg, #0fbced 0%, #0a8fd4 38%, #094fa3 72%, #0b2f66 100%); }
.login-quote { font-family: var(--display); font-style: italic; font-size: clamp(1.9rem, 3.4vw, 3rem); line-height: 1.2; max-width: 20ch; text-shadow: 0 1px 18px rgba(6,32,72,.35); }
.login-place { font-size: .9rem; opacity: .9; }
.login-form { align-self: center; justify-self: center; width: 100%; max-width: 380px; padding: 40px 28px; display: flex; flex-direction: column; gap: 10px; }
.login-logo { max-width: 230px; max-height: 84px; object-fit: contain; align-self: flex-start; margin-bottom: 26px; }
.login-form h1 { font-family: var(--display); font-weight: 400; font-size: 2.5rem; line-height: 1.1; }
.login-sub { color: var(--muted); margin-bottom: 22px; }
.login-form label { font-size: .82rem; font-weight: 600; color: var(--navy); }
.login-form input { padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--ground); }
.login-form input:focus { background: var(--surface); border-color: var(--sky); outline: 3px solid var(--sky-wash); }
.login-form .btn { margin-top: 8px; }
.form-error { color: var(--red-ink); background: var(--red-wash); padding: 10px 14px; border-radius: var(--r-sm); font-size: .9rem; }
.login-note { font-size: .8rem; color: var(--faint); margin-top: 14px; }

/* ---------- Header ---------- */
.app { height: 100%; display: flex; flex-direction: column; }
.top { flex: none; background: var(--surface); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px 28px; padding: 0 28px; min-height: 72px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 16px; min-width: 0; padding-block: 10px; }
.brand-logo { height: 46px; max-width: 200px; object-fit: contain; }
.brand-name { font-family: var(--display); font-style: italic; font-size: 1.3rem; color: var(--sea); padding-left: 16px; border-left: 1px solid var(--line); line-height: 1.6; }
.brand-logo[hidden] + .brand-name { padding-left: 0; border-left: 0; color: var(--navy); font-size: 1.5rem; }
/* The firm's own navigation: small capitals in grey, a sky bar above the current page. */
.tabs { display: flex; align-self: stretch; gap: 4px; margin-left: auto; }
.tab { background: none; border: 0; border-top: 3px solid transparent; padding: 0 14px; font-size: .8rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); transition: color .15s; }
.tab:hover { color: var(--navy); }
.tab[aria-current="page"] { color: var(--navy); font-weight: 600; border-top-color: var(--sky); }

/* ---------- Layout ---------- */
.layout { --chat-w: clamp(440px, 38vw, 600px); flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) var(--chat-w); transition: grid-template-columns .2s; }
body.chat-wide .layout { --chat-w: min(62vw, 960px); }
.content { overflow-y: auto; padding: 44px 36px 72px; min-width: 0; }
.pane { max-width: 920px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.pane-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 4px; }
.pane-head h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 3.2vw, 2.7rem); line-height: 1.12; letter-spacing: -.01em; }
.lede { color: var(--muted); max-width: 62ch; font-size: 1rem; }
.stack { display: flex; flex-direction: column; gap: 24px; }
.card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--lift); min-width: 0; overflow: hidden; }
.scroll { overflow-x: auto; }

/* ---------- Tables ---------- */
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; font-size: .93rem; }
th, td { padding: 13px 16px; text-align: right; vertical-align: top; white-space: nowrap; }
tbody tr + tr td { border-top: 1px solid var(--line); }
th:first-child, td:first-child { text-align: left; white-space: normal; min-width: 210px; padding-left: 26px; }
th:last-child, td:last-child { padding-right: 26px; }
thead th { font-size: .78rem; font-weight: 600; color: var(--faint); padding-block: 16px 10px; border-bottom: 1px solid var(--line); }
tr.sub td:first-child { padding-left: 46px; color: var(--muted); }
tr.subtotal td { color: var(--faint); font-size: .86rem; }
tr.total td { font-weight: 700; color: var(--navy); background: var(--sky-wash); border-top: 0; padding-block: 16px; }
.fn { display: block; font-size: .82rem; color: var(--faint); line-height: 1.45; margin-top: 2px; font-weight: 400; }
.chip { display: inline-block; font-size: .7rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; margin-left: 8px; vertical-align: 1px; white-space: nowrap; background: var(--amber-wash); color: var(--amber-ink); }

/* Overview matrix: every figure is a button; the open one is filled. */
#overview td { padding-block: 9px; vertical-align: middle; }
.row-btn { background: none; border: 0; padding: 0; text-align: left; color: var(--navy); font-weight: 600; }
.row-btn:hover { color: var(--sky-deep); }
.cell-btn { background: none; border: 0; padding: 7px 12px; margin-right: -12px; border-radius: 999px; color: var(--ink); font-variant-numeric: tabular-nums; transition: background .12s, color .12s; }
td:last-child .cell-btn { margin-right: -12px; }
.cell-btn:hover { background: var(--sky-wash); color: var(--sky-deep); }
.cell-btn[aria-pressed="true"] { background: var(--navy); color: #fff; font-weight: 600; }

/* ---------- Schedule detail ---------- */
.sched-head { padding: 30px 26px 8px; display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: flex-end; justify-content: space-between; }
.sched-head h2 { font-family: var(--display); font-weight: 400; font-size: 1.6rem; line-height: 1.2; }
.sched-head .who { color: var(--muted); font-size: .9rem; margin-top: 6px; max-width: 52ch; }
.figure { text-align: right; flex: none; }
.figure span { display: block; font-size: .8rem; color: var(--faint); }
.figure strong { display: inline-block; font-family: var(--display); font-weight: 400; font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1.15; color: var(--navy); font-variant-numeric: lining-nums; border-bottom: 3px solid var(--amber); padding-bottom: 2px; }
.controls { padding: 18px 26px 10px; display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.seg { display: inline-flex; flex-wrap: wrap; background: var(--ground); border-radius: 999px; padding: 4px; gap: 2px; }
.seg button { border: 0; background: none; border-radius: 999px; padding: 7px 15px; font-size: .86rem; font-weight: 600; color: var(--muted); transition: background .12s, color .12s; }
.seg button:hover { color: var(--navy); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--navy); box-shadow: 0 1px 3px rgba(34,58,94,.16); }
.ask-btn { margin-left: auto; background: var(--sky-wash); color: var(--sky-deep); border: 0; border-radius: 999px; padding: 9px 16px; font-size: .86rem; font-weight: 600; white-space: nowrap; transition: background .12s, color .12s; }
.ask-btn:hover { background: var(--sky); color: #fff; }
.card-head { padding: 26px 26px 6px; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.card-head h2 { font-family: var(--display); font-weight: 400; font-size: 1.4rem; line-height: 1.25; }
.card-head .who { color: var(--faint); font-size: .86rem; }
.card-head .ask-btn { margin-left: 0; }
.notes { padding: 14px 26px 22px; font-size: .83rem; color: var(--faint); display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--line); }
.caution { margin: 8px 26px 6px; padding: 11px 16px; background: var(--amber-wash); color: var(--amber-ink); border-radius: var(--r-md); font-size: .88rem; }

/* ---------- Courses ---------- */
.search { display: flex; align-items: center; gap: 10px; max-width: 520px; background: var(--surface); border-radius: 999px; padding: 0 18px; box-shadow: var(--lift); color: var(--faint); }
.search:focus-within { outline: 2px solid var(--sky); }
.search svg { width: 18px; height: 18px; flex: none; }
.search input { flex: 1; min-width: 0; border: 0; background: none; padding: 14px 0; color: var(--ink); outline: none; }
.course-group { font-family: var(--display); font-style: italic; font-size: 1.15rem; color: var(--sea); margin-top: 10px; }
.course-list { margin: 0; padding: 6px 26px 24px 48px; display: flex; flex-direction: column; gap: 6px; color: var(--ink); }
.course-list li::marker { color: var(--faint); font-size: .85em; }
.empty { color: var(--muted); padding: 8px 0; }

/* ---------- Assistant ---------- */
.chat { display: flex; flex-direction: column; min-height: 0; background: var(--surface); margin: 18px 18px 18px 0; border-radius: var(--r-lg); box-shadow: var(--lift); overflow: hidden; }
.chat-head { flex: none; padding: 16px 16px 14px 20px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.avatar { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-family: var(--display); font-style: italic; font-size: 1.2rem; background: linear-gradient(140deg, var(--sky), var(--sea)); }
.chat-title { flex: 1; min-width: 0; }
.chat-title h2 { font-size: 1rem; font-weight: 700; }
.chat-title p { font-size: .78rem; color: var(--faint); line-height: 1.35; }
.chat-log { flex: 1; min-height: 0; overflow-y: auto; padding: 22px 16px; display: flex; flex-direction: column; gap: 20px; }
.msg { display: flex; flex-direction: column; min-width: 0; }
.msg.user { align-items: flex-end; }
.bubble { font-size: .94rem; min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.msg.user .bubble { background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 18px 18px 4px 18px; max-width: 86%; white-space: pre-wrap; }
.msg.error .bubble { background: var(--red-wash); color: var(--red-ink); padding: 11px 16px; border-radius: var(--r-md); }
.bubble > * + * { margin-top: 12px; }
.bubble h4 { margin: 0; font-size: .98rem; color: var(--navy); }
.bubble ul, .bubble ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.bubble li > ul, .bubble li > ol { margin-top: 4px; }
.bubble strong { color: var(--navy); }
.bubble code { background: var(--ground); padding: 1px 5px; border-radius: 4px; font-size: .88em; }
.bubble .tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
.bubble table { font-size: .8rem; }
.bubble th, .bubble td { padding: 8px 8px; min-width: 0; white-space: normal; text-align: left; }
.bubble th:not(:first-child) { text-align: right; }
.bubble td.num { white-space: nowrap; text-align: right; }
.bubble th, .bubble td { overflow-wrap: normal; word-break: normal; hyphens: none; }
.bubble th:first-child, .bubble td:first-child { min-width: 84px; padding-left: 12px; }
.bubble th:last-child, .bubble td:last-child { padding-right: 12px; }
.bubble thead th { padding-block: 10px 8px; background: var(--ground); }
.typing { display: inline-flex; gap: 5px; padding: 6px 0; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--sky); animation: blink 1.2s infinite both; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .typing i { animation: none; } * { transition: none !important; } }
.welcome { margin: auto 0; display: flex; flex-direction: column; gap: 10px; color: var(--muted); font-size: .94rem; }
.welcome strong { font-family: var(--display); font-style: italic; font-weight: 400; font-size: 1.9rem; line-height: 1.15; color: var(--navy); }
.chips { flex: none; padding: 0 20px 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips:empty { display: none; }
.chips button { border: 0; background: var(--sky-wash); color: var(--sky-deep); border-radius: 999px; padding: 8px 14px; font-size: .84rem; font-weight: 600; text-align: left; line-height: 1.35; transition: background .12s, color .12s; }
.chips button:hover { background: var(--sky); color: #fff; }
.chat-form { flex: none; display: flex; gap: 8px; margin: 4px 16px 16px; padding: 6px 6px 6px 18px; background: var(--ground); border-radius: 26px; align-items: flex-end; border: 1px solid transparent; }
.chat-form:focus-within { background: var(--surface); border-color: var(--sky); box-shadow: 0 0 0 3px var(--sky-wash); }
.chat-form textarea { flex: 1; min-width: 0; resize: none; max-height: 140px; padding: 9px 0; border: 0; background: none; outline: none; line-height: 1.45; }
.chat-form button { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--navy); color: #fff; display: grid; place-items: center; transition: background .15s; }
.chat-form button:hover { background: var(--sky-deep); }
.chat-form button:disabled { background: var(--faint); cursor: default; }
.chat-form button svg { width: 19px; height: 19px; }
.fab { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); background: var(--navy); color: #fff; border: 0; border-radius: 999px; padding: 14px 22px; font-weight: 600; box-shadow: 0 8px 26px rgba(34,58,94,.38); z-index: 4; }

@media (max-width: 1500px) {
  .content { padding-inline: 24px; }
  #overview th, #overview td { padding-inline: 8px; }
  #overview .cell-btn { padding-inline: 8px; margin-right: -8px; }
  #overview td:last-child { padding-right: 26px; }
  #overview th:first-child, #overview td:first-child { padding-left: 22px; min-width: 170px; }
}
@media (max-width: 1360px) {
  body:not(.chat-wide) .bubble table { font-size: .74rem; }
  body:not(.chat-wide) .bubble th, body:not(.chat-wide) .bubble td { padding-inline: 5px; }
  body:not(.chat-wide) .bubble th:first-child, body:not(.chat-wide) .bubble td:first-child { padding-left: 10px; min-width: 0; }
  body:not(.chat-wide) .bubble th:last-child, body:not(.chat-wide) .bubble td:last-child { padding-right: 10px; }
}
@media (max-width: 1020px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .chat { position: fixed; inset: 0; z-index: 10; margin: 0; border-radius: 0; display: none; }
  .chat.open { display: flex; }
  .only-mobile { display: inline-block; }
  .not-mobile { display: none; }
  body.chat-open .fab { display: none; }
  .content { padding: 28px 16px 100px; }
}
@media (max-width: 720px) {
  .login { grid-template-columns: minmax(0, 1fr); }
  .login-art { display: none; }
  .top { padding: 0 16px; }
  .tabs { order: 3; width: 100%; margin-left: 0; overflow-x: auto; }
  .tab { padding: 10px 12px 12px; white-space: nowrap; border-top: 0; border-bottom: 3px solid transparent; }
  .tab[aria-current="page"] { border-bottom-color: var(--sky); }
  #logoutBtn { margin-left: auto; }
  .brand-logo { height: 38px; }
  th, td { padding: 11px 10px; }
  th:first-child, td:first-child { min-width: 168px; padding-left: 18px; }
  th:last-child, td:last-child { padding-right: 18px; }
  .sched-head, .controls, .card-head, .notes { padding-inline: 18px; }
  .caution { margin-inline: 18px; }
  .figure { text-align: left; }
  .ask-btn { margin-left: 0; }
  .course-list { padding-inline: 40px 18px; }
}

/* ---------- Quotes ---------- */
.ghost-btn { background: var(--sky-wash); color: var(--sky-deep); border: 0; border-radius: 999px; padding: 8px 15px; font-size: .84rem; font-weight: 600; white-space: nowrap; transition: background .12s, color .12s; }
.ghost-btn:hover { background: var(--sky); color: #fff; }
.ghost-btn.danger { background: var(--red-wash); color: var(--red-ink); }
.link-btn { background: none; border: 0; padding: 0; color: var(--sky-deep); font-size: .78rem; font-weight: 600; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.muted { color: var(--muted); } .small { font-size: .82rem; }
.confirm { font-size: .84rem; color: var(--red-ink); white-space: normal; }
.qpane-head { align-items: flex-end; }
.qpane-head { flex-direction: row; flex-wrap: wrap; justify-content: space-between; gap: 16px 24px; }
.qactions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.qactions .btn { padding: 10px 20px; }
.qstatus { color: var(--muted); font-size: .86rem; margin-top: -8px; min-height: 1.4em; }
.qform { padding: 22px 26px; display: flex; flex-direction: column; gap: 18px; overflow: visible; }
.qgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; align-items: end; }
.qform label { display: flex; flex-direction: column; gap: 6px; font-size: .8rem; font-weight: 600; color: var(--navy); min-width: 0; }
.qform input, .qform select { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--ground); font-weight: 400; min-width: 0; width: 100%; }
.qform input:focus, .qform select:focus { background: var(--surface); border-color: var(--sky); outline: 3px solid var(--sky-wash); }
.qform .qcheck { flex-direction: row; align-items: center; gap: 10px; font-weight: 500; padding-bottom: 10px; }
.qform .qcheck input { width: auto; accent-color: var(--navy); }
.qpeople { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.qpeople legend { font-size: .8rem; font-weight: 600; color: var(--navy); padding: 0; margin-bottom: 8px; }
#qMembers { display: flex; flex-wrap: wrap; gap: 8px; }
.qmember { display: flex; align-items: center; gap: 6px; background: var(--ground); border: 1px solid var(--line); border-radius: 999px; padding: 4px 6px 4px 14px; }
.qmember .qrole { font-weight: 600; color: var(--navy); font-size: .88rem; padding-right: 4px; }
.qform .qmember select { width: auto; border: 0; background: none; padding: 6px 2px; font-weight: 600; color: var(--navy); font-size: .88rem; }
.qform .qmember .qage input { width: 4.6em; padding: 6px 8px; border-radius: 999px; background: var(--surface); text-align: center; }
.qform .qmember .qage input.needs { border-color: var(--amber); }
.qyrs { font-size: .78rem; color: var(--muted); }
.qrm { border: 0; background: none; width: 28px; height: 28px; border-radius: 50%; color: var(--muted); font-size: 1.1rem; line-height: 1; }
.qrm:hover { background: var(--red-wash); color: var(--red-ink); }
.qaddrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.qaddrow > span { font-size: .8rem; color: var(--muted); font-weight: 600; margin-right: 4px; }

.qdoc { padding: 30px 32px 26px; display: flex; flex-direction: column; gap: 14px; }
.qdoc .caution { margin: 0; }
.qhead { display: flex; flex-direction: column; gap: 8px; border-bottom: 3px solid var(--amber); padding-bottom: 14px; }
.qhead > div:first-child { min-width: 0; }
.qheading { width: 100%; resize: none; field-sizing: content; min-height: 1.6em; line-height: 1.35; border: 1px dashed transparent; border-radius: 6px; padding: 4px 6px; margin-left: -7px; font-family: var(--display); font-size: 1.3rem; color: var(--navy); background: none; }
.qheading:hover, .qheading:focus { border-color: var(--line); background: var(--ground); outline: none; }
.qsched { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; font-size: .82rem; color: var(--muted); align-items: baseline; }
.qsched strong { font-family: var(--display); font-weight: 400; font-size: 1.05rem; color: var(--navy); }
.qlines { display: flex; flex-direction: column; }
.qline { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 4px 12px; padding: 10px 0; border-top: 1px solid var(--line); align-items: start; }
.qline:first-child { border-top: 0; }
.qline.sub { border-top: 0; padding: 4px 0; }
.qline.sub .qmain { padding-left: 18px; }
.qletter { font-weight: 700; color: var(--navy); padding-top: 6px; }
.qmain { min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.qlabelrow { flex: 1 1 240px; display: flex; align-items: baseline; min-width: 0; }
.qlabelrow .qlabel { flex: 1 1 auto; }
.qstar { color: var(--navy); font-weight: 700; margin-left: -4px; padding-right: 4px; cursor: help; }
.qlabel { flex: 1 1 240px; min-width: 0; border: 1px solid transparent; border-radius: 6px; padding: 5px 6px; margin-left: -7px; background: none; font-weight: 600; color: var(--ink); }
.qline.sub .qlabel { font-weight: 400; }
.qlabel:hover, .qamt:hover { border-color: var(--line); background: var(--ground); }
.qlabel:focus, .qamt:focus { border-color: var(--sky); background: var(--surface); outline: 3px solid var(--sky-wash); }
.qstar { color: var(--muted); }
.qdetails { flex-basis: 100%; display: flex; flex-direction: column; font-size: .82rem; color: var(--muted); line-height: 1.5; padding-left: 0; white-space: pre-wrap; }
.qflag { flex-basis: 100%; font-size: .74rem; font-weight: 600; color: var(--amber-ink); }
.qnum { position: relative; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.qamt { width: 9.5em; text-align: right; font-variant-numeric: tabular-nums; border: 1px solid transparent; border-radius: 6px; padding: 5px 8px; background: none; font-weight: 600; }
.qline.sub .qamt { font-weight: 400; }
.qline.is-edited .qamt { background: var(--amber-wash); }
.qbtns { display: flex; gap: 10px; position: absolute; top: 100%; right: 0; white-space: nowrap; z-index: 1; background: var(--surface); padding: 2px 0 2px 8px; opacity: 0; pointer-events: none; transition: opacity .12s; }
.qline:hover .qbtns, .qline:focus-within .qbtns { opacity: 1; pointer-events: auto; }
.qline.is-edited .qbtns { position: static; opacity: 1; pointer-events: auto; padding: 0; }
.qadd { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; padding-top: 4px; }
.qtotal { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 2px solid var(--navy); padding-top: 14px; }
.qtotal span { font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: .04em; font-size: .86rem; }
.qtotal strong { font-family: var(--display); font-weight: 400; font-size: 2rem; color: var(--navy); font-variant-numeric: lining-nums tabular-nums; }
.qfoot { display: flex; flex-direction: column; gap: 4px; font-size: .82rem; color: var(--muted); }
.qfoot .qnote { color: var(--ink); }
.qnoteform { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.qnoteform input { flex: 1 1 260px; min-width: 0; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--ground); }
.qassume { background: var(--sky-wash); border-radius: var(--r-md); padding: 12px 16px; font-size: .84rem; color: var(--ink); display: flex; flex-direction: column; gap: 4px; }
.qassume strong { color: var(--navy); }
#qList td.act { width: 1%; white-space: nowrap; }
@media (hover: none) { .qbtns { position: static; opacity: 1; pointer-events: auto; padding: 0; } }

/* Quote card in the chat */
.qcard { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; border: 1px solid var(--line); border-left: 4px solid var(--amber); border-radius: var(--r-md); padding: 12px 14px; background: var(--surface); }
.qcard > div { flex: 1 1 160px; display: flex; flex-direction: column; min-width: 0; }
.qcard strong { color: var(--navy); font-size: .9rem; }
.qcard span { color: var(--muted); font-size: .8rem; }
.qcard b { font-family: var(--display); font-weight: 400; font-size: 1.25rem; color: var(--navy); }
.working { font-size: .8rem; color: var(--muted); margin-left: 8px; }

@media (max-width: 720px) {
  .qform, .qdoc { padding-inline: 18px; }
  .qline { grid-template-columns: 22px minmax(0, 1fr); }
  .qnum { grid-column: 2; align-items: flex-start; }
  .qamt { text-align: left; margin-left: -9px; }
}

/* ---------- Quote statuses and register ---------- */
.qviews { display: inline-flex; background: var(--surface); border-radius: 999px; padding: 4px; box-shadow: var(--lift); align-self: flex-end; }
.qviews button { border: 0; background: none; border-radius: 999px; padding: 8px 18px; font-weight: 600; font-size: .88rem; color: var(--muted); }
.qviews button[aria-selected="true"] { background: var(--navy); color: #fff; }
.qview { display: flex; flex-direction: column; gap: 18px; }
.qbar { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 5; background: var(--ground); margin: 0 -12px; padding: 12px 12px 10px; box-shadow: 0 8px 12px -10px rgba(34, 58, 94, .25); }
.qback { border: 0; background: var(--surface); color: var(--navy); font-weight: 600; font-size: .85rem; border-radius: 999px; padding: 7px 14px 7px 12px; box-shadow: var(--lift); }
.qback:hover { background: var(--navy); color: #fff; }
.qbar-id { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; min-width: 0; }
#qNumber { font-family: var(--display); font-size: 1.35rem; color: var(--navy); }
.qbar .qstatus { margin: 0; }
.qchip { display: inline-block; font-size: .74rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; background: var(--ground); color: var(--muted); }
.qchip.sent { background: var(--sky-wash); color: var(--sky-deep); }
.qchip.accepted { background: #e3f4e8; color: #1e6b39; }
.qchip.declined { background: var(--red-wash); color: var(--red-ink); }
.qchip.draft { background: var(--amber-wash); color: var(--amber-ink); border: 1px dashed var(--amber); }
.qchip.final { background: var(--navy); color: #fff; }
.btn.small { padding: 8px 16px; font-size: .86rem; }
.qlock { background: var(--sky-wash); color: var(--ink); border-left: 4px solid var(--sky); border-radius: var(--r-md); padding: 12px 16px; font-size: .9rem; }
.is-locked .qbtns, .is-locked .qadd, .is-locked .qnoteform, .is-locked .qaddrow, .is-locked .qrm, .is-locked [data-rm-note] { display: none !important; }
.is-locked input, .is-locked select, .is-locked textarea { color: var(--ink); opacity: 1; -webkit-text-fill-color: var(--ink); }
.qhistory details { font-size: .84rem; color: var(--muted); }
.qhistory summary { cursor: pointer; font-weight: 600; color: var(--sky-deep); }
.qhistory ul { margin: 8px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 3px; }
.qhistory li span { color: var(--faint); margin-right: 6px; }
.qstats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.qlist-head h2 { font-family: var(--display); font-weight: 400; font-size: 1.5rem; }
.qlist-head p { font-size: .9rem; }
.qstat { background: var(--surface); border: 0; border-radius: var(--r-lg); box-shadow: var(--lift); padding: 16px 18px; display: flex; flex-direction: column; text-align: left; gap: 2px; min-width: 0; }
.qstat:hover { box-shadow: 0 0 0 2px var(--sky-wash), var(--lift); }
.qstat[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--sky), var(--lift); }
.qstat span { font-size: .8rem; font-weight: 600; color: var(--muted); }
.qstat strong { font-family: var(--display); font-weight: 400; font-size: 1.9rem; color: var(--navy); line-height: 1.2; }
.qstat em { font-style: normal; font-size: .82rem; color: var(--faint); font-variant-numeric: tabular-nums; }
.qfilters { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.qsearch { display: flex; align-items: center; gap: 8px; flex: 1 1 220px; background: var(--ground); border-radius: 999px; padding: 0 14px; color: var(--faint); min-width: 0; }
.qsearch svg { width: 16px; height: 16px; flex: none; }
.qsearch input { flex: 1; min-width: 0; border: 0; background: none; padding: 9px 0; outline: none; }
.qsearch:focus-within { outline: 2px solid var(--sky); }
.qfilters .seg button { padding: 6px 12px; font-size: .82rem; }
.qselect, .qdates input { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 12px; font-size: .84rem; }
.qdates { display: flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; color: var(--muted); }
#qList table td { vertical-align: middle; }
tr.superseded td { color: var(--faint); }
@media (max-width: 1100px) { .qstats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .qstats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
#qList th.l, #qList td.l { text-align: left; white-space: normal; }
#qList td:first-child { white-space: nowrap; }
#qList th, #qList td { padding-inline: 10px; }
#qList th:first-child, #qList td:first-child { min-width: 0; padding-left: 22px; }
#qList td .fn { display: block; font-size: .78rem; color: var(--faint); margin-top: 3px; white-space: nowrap; }
#qList td:nth-child(7), #qList td:nth-child(5) { white-space: nowrap; }

.qsaved { font-size: .74rem; font-weight: 700; color: #1e6b39; background: #e3f4e8; border-radius: 999px; padding: 3px 10px; opacity: 0; transform: translateY(2px); transition: opacity .2s, transform .2s; }
.qsaved.show { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .qsaved { transition: none; } }

/* Step-by-step quote builder */
.qstep { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.qstep legend, .qreview { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 1.15rem; color: var(--navy); padding: 0; margin-bottom: 10px; font-weight: 400; }
.qreview { margin: 8px 0 -6px; flex-wrap: wrap; }
.qreview .muted { font-family: var(--sans); }
.qstepnum { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--sans); font-size: .8rem; font-weight: 700; flex: none; }
.qroutes { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.qroute { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--surface); cursor: pointer; transition: border-color .12s, background .12s; }
.qroute:hover { border-color: var(--sky); }
.qroute input { position: absolute; opacity: 0; pointer-events: none; }
.qroute strong { color: var(--navy); font-size: .95rem; }
.qroute span { color: var(--muted); font-size: .8rem; line-height: 1.4; font-weight: 400; }
.qroute.on { border-color: var(--navy); background: var(--sky-wash); box-shadow: inset 0 0 0 1px var(--navy); }
.qroute:has(input:focus-visible) { outline: 2px solid var(--sky-deep); outline-offset: 2px; }
.qform .qroute { flex-direction: column; }
/* Status selector */
.qstatusbar { display: inline-flex; align-items: center; background: var(--surface); border-radius: 999px; padding: 4px; box-shadow: var(--lift); gap: 2px; flex-wrap: wrap; }
.qstatuslabel { font-size: .74rem; font-weight: 700; color: var(--faint); padding: 0 8px 0 10px; text-transform: uppercase; letter-spacing: .05em; }
.qst { border: 0; background: none; border-radius: 999px; padding: 7px 13px; font-size: .84rem; font-weight: 600; color: var(--muted); }
.qst:hover:not(:disabled) { background: var(--ground); color: var(--navy); }
.qst:disabled { opacity: .35; cursor: not-allowed; }
.qst[aria-pressed="true"].draft { background: var(--amber-wash); color: var(--amber-ink); }
.qst[aria-pressed="true"].final { background: var(--navy); color: #fff; }
.qst[aria-pressed="true"].sent { background: var(--sky); color: #fff; }
.qst[aria-pressed="true"].accepted { background: #1e6b39; color: #fff; }
.qst[aria-pressed="true"].declined { background: var(--red-ink); color: #fff; }
.qst.nudge { box-shadow: 0 0 0 2px var(--sky); color: var(--sky-deep); }
.qanswer { margin-left: 4px; }
.qanswer .qchip { margin: 0 4px 0 6px; }
.qawait { font-size: .82rem; color: var(--muted); padding: 0 8px 0 4px; font-style: italic; }
.qanswer .qst.accepted:hover { background: #e3f4e8; color: #1e6b39; }
.qanswer .qst.declined:hover { background: var(--red-wash); color: var(--red-ink); }
.qrow-answer { display: inline-flex; gap: 6px; }
.ghost-btn.small.ok:hover { background: #1e6b39; color: #fff; }
.ghost-btn.small.no:hover { background: var(--red-ink); color: #fff; }
.qstsel { border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; font-size: .82rem; font-weight: 600; background: var(--surface); color: var(--navy); }
.qstsel.draft { background: var(--amber-wash); color: var(--amber-ink); border-color: var(--amber); }
.qstsel.final { background: var(--navy); color: #fff; border-color: var(--navy); }
.qstsel.sent { background: var(--sky-wash); color: var(--sky-deep); border-color: var(--sky); }
.qstsel.accepted { background: #e3f4e8; color: #1e6b39; border-color: #9fd3b0; }
.qstsel.declined { background: var(--red-wash); color: var(--red-ink); border-color: #efb4ad; }
.qok { margin: 14px 22px 0; padding: 10px 14px; background: #e3f4e8; color: #1e6b39; border-radius: var(--r-md); font-size: .88rem; font-weight: 600; }
#qList .caution { margin: 14px 22px 0; }
.qlist-head { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: flex-end; justify-content: space-between; }
.sched-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.sched-btns .btn.small { padding: 9px 16px; font-size: .86rem; }

/* ---------- fee editing ---------- */
.fee-head { flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; }
.fee-head > div:first-child { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.fee-tools { display: flex; align-items: center; gap: 10px; }
.fee-badge, .chip.fee-edited { background: var(--sky-wash); color: var(--sky-deep); }
.fee-badge { font-size: .74rem; font-weight: 700; padding: 4px 11px; border-radius: 999px; }
.chip.fee-edited { margin-left: 0; margin-top: 6px; }
.chip.editing { background: var(--navy); color: #fff; }
.qrates { background: var(--amber-wash); border-left-color: var(--amber); display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.fee-editor { padding: 26px; display: flex; flex-direction: column; gap: 22px; overflow: visible; }
.fe-top h2 { font-family: var(--display); font-weight: 400; font-size: 1.5rem; }
.fe-top p { font-size: .9rem; max-width: 760px; margin-top: 4px; }
.fe-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.fe-group { border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.fe-group h3 { font-size: .95rem; font-weight: 700; color: var(--navy); }
.fe-note { font-size: .8rem; color: var(--muted); line-height: 1.45; }
.fe-field { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; font-size: .86rem; }
.fe-field .fe-was { grid-column: 2; text-align: right; }
.fe-in { display: inline-flex; align-items: center; gap: 3px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); padding: 0 9px; transition: border-color .12s, background .12s; }
.fe-in i { font-style: normal; color: var(--faint); font-size: .85rem; }
.fe-in input { border: 0; background: none; width: 7.5em; padding: 7px 0; font: inherit; font-variant-numeric: tabular-nums; text-align: right; color: var(--ink); outline: none; }
.fe-in.pct input, .fe-in.count input { width: 3.6em; }
.fe-in.date input { width: auto; text-align: left; }
.fe-in:focus-within { border-color: var(--sky); box-shadow: 0 0 0 3px var(--sky-wash); }
.fe-in.changed { background: var(--amber-wash); border-color: var(--amber); }
.fe-in.bad { border-color: var(--red-ink); background: var(--red-wash); }
.fe-was { display: block; font-size: .74rem; color: var(--amber-ink); min-height: 0; }
.fe-was:empty { display: none; }
.fe-grid { font-size: .84rem; }
.fe-grid th, .fe-grid td { padding: 4px 6px; min-width: 0; white-space: normal; }
.fe-grid th:first-child, .fe-grid td:first-child { padding-left: 0; min-width: 0; }
.fe-grid th:last-child, .fe-grid td:last-child { padding-right: 0; }
.fe-grid thead th { padding-block: 0 6px; }
.fe-grid tbody th { text-align: left; font-weight: 400; color: var(--ink); }
.fe-grid .fe-in input { width: 5.6em; }
.fe-preview h3 { font-size: .95rem; font-weight: 700; color: var(--navy); }
.fe-preview .scroll { margin-top: 10px; border: 1px solid var(--line); border-radius: var(--r-md); }
.fe-preview table { font-size: .86rem; }
.fe-preview th, .fe-preview td { padding: 9px 12px; }
.fe-preview td:first-child, .fe-preview th:first-child { padding-left: 16px; min-width: 180px; }
.fe-delta { display: block; font-size: .74rem; font-weight: 700; }
.fe-delta.up { color: var(--red-ink); }
.fe-delta.down { color: #1e6b39; }
.fe-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; position: sticky; bottom: -72px; background: var(--surface); padding: 14px 0 4px; border-top: 1px solid var(--line); }
.card.is-editing .fe-actions { position: static; margin: 6px 26px 22px; }
.fe-restore { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .86rem; }
.fe-msg { font-size: .86rem; color: var(--muted); }
.card.is-editing { box-shadow: 0 0 0 2px var(--sky), var(--lift); overflow: visible; }
.se-status { display: flex; flex-direction: column; gap: 6px; margin: 10px 26px; font-size: .84rem; color: var(--muted); align-items: flex-start; }
.se-status textarea, .se-bd { width: 100%; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 10px; font: inherit; font-size: .88rem; color: var(--ink); resize: vertical; }
.se-status textarea:focus, .se-bd:focus, .se-label:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px var(--sky-wash); }
.ghost-btn.small { padding: 6px 12px; font-size: .8rem; }
.se-table td { vertical-align: middle; }
.se-label { width: 100%; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 7px 10px; font: inherit; font-size: .9rem; color: var(--ink); }
.se-bd { margin-top: 6px; font-size: .8rem; color: var(--muted); }
.se-table tr.subtotal .se-label { font-weight: 600; background: var(--ground); }
.se-amt { white-space: nowrap; }
.se-amt .fe-in.pct { margin-right: 8px; }
.se-calc { font-variant-numeric: tabular-nums; color: var(--muted); }
.se-act { width: 1%; white-space: nowrap; }
.se-act button { border: 0; background: none; color: var(--faint); width: 28px; height: 28px; border-radius: 999px; font-size: .95rem; }
.se-act button:hover { background: var(--sky-wash); color: var(--sky-deep); }
.se-act .se-del:hover { background: var(--red-wash); color: var(--red-ink); }
.se-add { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 26px 4px; font-size: .84rem; color: var(--muted); }
.card.is-editing > .fe-note { margin: 4px 26px 6px; }
.fee-history summary { cursor: pointer; padding: 18px 26px; font-weight: 600; color: var(--navy); }
.fee-history table { font-size: .84rem; }
.fee-history td { white-space: normal; }
.fee-history .fe-note { padding: 12px 26px 20px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 12px); background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: .9rem; font-weight: 600; box-shadow: var(--lift); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50; max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }
@media (max-width: 700px) {
  .fee-editor { padding: 18px 16px; }
  .fe-groups { grid-template-columns: 1fr; }
  .se-status, .se-add, .card.is-editing > .fe-note { margin-inline: 16px; }
  .card.is-editing .fe-actions { margin-inline: 16px; }
  .se-table th:first-child, .se-table td:first-child { min-width: 170px; padding-left: 16px; }
}

/* ---------- Loading message ---------- */
.boot { margin: 0; min-height: 100vh; display: grid; place-items: center; color: var(--muted); font-size: .95rem; }
.boot[hidden] { display: none; }

/* ---------- Phones and tablets: the whole page scrolls (not a panel inside it), so the browser bar can tuck
   away and nothing is trapped in a small box. ---------- */
@media (max-width: 1020px) {
  html, body { height: auto; }
  .app { height: auto; min-height: 100vh; }
  .layout { display: block; }
  .content { overflow: visible; }
  .login { min-height: 100vh; }
}
@media (max-width: 720px) {
  .top { padding: 0 14px; gap: 0 12px; flex-wrap: wrap; }
  .brand { flex: 1 1 auto; gap: 10px; padding-block: 8px; }
  .brand-logo { height: 30px; max-width: 130px; }
  .brand-name { font-size: 1.05rem; padding-left: 10px; }
  #logoutBtn { order: 2; margin-left: auto; padding-inline: 4px; }
  .tabs { order: 3; }
  .content { padding: 20px 12px 100px; }
  /* The quote toolbar stays where it is rather than covering half the screen while scrolling. */
  .qbar { position: static; margin: 0; padding: 10px 0; box-shadow: none; }
  .qbar .qstatus { flex-basis: 100%; font-size: .82rem; }
  .qactions { flex-wrap: wrap; gap: 8px; }
}

/* ---------- Quote list: fits its column without sideways scrolling ---------- */
#qList table.qreg { width: 100%; table-layout: auto; font-size: .9rem; }
#qList .qreg th, #qList .qreg td { padding: 12px 10px; vertical-align: top; }
#qList .qreg th:first-child, #qList .qreg td:first-child { padding-left: 22px; min-width: 0; }
#qList .qreg td.act { padding-right: 18px; vertical-align: top; }
#qList .qreg .qn { min-width: 150px; }
#qList .qreg .qn .row-btn { white-space: nowrap; text-align: left; }
#qList .qreg .qcl { display: block; color: var(--ink); font-size: .85rem; margin-top: 2px; }
#qList .qreg .qn .fn { white-space: normal; }
#qList .qreg .qf { min-width: 180px; width: 100%; }
#qList .qreg .qf-head { display: block; font-weight: 600; color: var(--ink); }
#qList .qreg td .fn.wrap { white-space: normal; line-height: 1.4; }
#qList .qreg .qt { white-space: nowrap; font-variant-numeric: tabular-nums; }
#qList .qreg .qs { white-space: nowrap; }
#qList .qreg .qrow-answer { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
/* Narrow column (a phone, or a small laptop with the assistant open): each quote becomes a compact card. */
#qList { container-type: inline-size; }
@container (max-width: 700px) {
  #qList .qreg thead { display: none; }
  #qList .qreg, #qList .qreg tbody { display: block; width: 100%; }
  #qList .qreg tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "qn qt" "qf qs" "act act"; gap: 2px 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
  #qList .qreg td { display: block; padding: 0 !important; border: 0; min-width: 0; width: auto; text-align: left; }
  #qList .qreg .qn { grid-area: qn; } #qList .qreg .qn .fn { display: inline; margin-left: 8px; }
  #qList .qreg .qcl { display: inline; margin-left: 8px; }
  #qList .qreg .qf { grid-area: qf; }
  #qList .qreg .qt { grid-area: qt; text-align: right; font-weight: 600; color: var(--navy); }
  #qList .qreg .qs { grid-area: qs; text-align: right; }
  #qList .qreg .qs .fn { text-align: right; }
  #qList .qreg .qrow-answer { justify-content: flex-end; }
  #qList .qreg .act { grid-area: act; text-align: right; }
  #qList .qreg .act:empty { display: none; }
}
}
