:root { color-scheme: light; --blue: #003f5f; --blue-2: #0b5577; --orange: #f78e1e; --grey: #807f83; --bg: #eef2f5; --line: #e1e7ec; --ok: #1e7b4a; --ok-bg: #e6f4ec; --warn: #a14a00; --err: #b3261e; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0; background: var(--bg); color: #2c2c2c;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
}
h1 { font-size: 22px; margin: 0 0 6px; color: var(--blue); }
h2 { font-size: 16px; margin: 0 0 10px; color: var(--blue); }
.lead { font-size: 15px; line-height: 1.55; color: #4a4a4a; margin: 0 0 18px; }
.small { font-size: 13px; color: #5a5a5a; line-height: 1.5; margin: 0; }
label { display: block; font-size: 13px; font-weight: 600; color: #4a4a4a; margin-bottom: 6px; }
input[type=email], input[type=text], input[type=tel], input[type=date], input[type=number], input[type=url], input[type=search], textarea, select {
  width: 100%; font: inherit; font-size: 16px; padding: 11px 13px; border: 1px solid #c8d1d9; border-radius: 8px; margin-bottom: 14px; background: #fff; color: #2c2c2c;
}
textarea { resize: vertical; min-height: 110px; line-height: 1.45; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--orange); outline-offset: 1px; }
#code { letter-spacing: 6px; font-size: 22px; text-align: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 10px 20px; border: 0; border-radius: 8px; text-decoration: none;
  background: var(--blue); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.btn[disabled] { opacity: .6; cursor: default; }
.btn.secondary { background: #fff; color: var(--blue); border: 1px solid var(--blue); }
.btn--orange { background: var(--orange); color: #fff; }
.btn--block, form .btn { width: 100%; }
.btn--sm { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.link { background: none; border: 0; padding: 0; color: var(--blue); text-decoration: underline; font-size: 13px; cursor: pointer; font-family: inherit; }
.msg { min-height: 20px; font-size: 14px; color: var(--err); margin: 10px 0 0; }
.msg.ok { color: var(--ok); }
.accent { background: var(--orange); height: 4px; }
.state { padding: 40px 0; text-align: center; color: #666; font-size: 14px; }
.footer { text-align: center; padding: 22px 0 0; }
.footer .name { font-size: 13px; font-weight: 700; color: var(--blue); }
.footer .tag { font-size: 12px; color: var(--grey); font-style: italic; margin-top: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── signed out ── */
.signin { max-width: 480px; margin: 0 auto; padding: 32px 16px 60px; }
.card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.header { background: var(--blue); padding: 22px 24px; text-align: center; }
.header img { width: 160px; height: auto; }
.body { padding: 24px; }
.privacy { margin-top: 22px; font-size: 13px; color: #4a4a4a; }
.privacy summary { cursor: pointer; color: var(--blue); }
.privacy p { line-height: 1.55; }

/* ── signed in ── */
.topbar { background: var(--blue); }
.topbar__in { max-width: 1160px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.topbar__logo { width: 150px; height: auto; display: block; }
.topbar__right { display: flex; align-items: center; gap: 16px; }
.topbar__link { background: none; border: 0; color: #d5e3ec; font-size: 14px; cursor: pointer; font-family: inherit; padding: 6px 0; }
.topbar__link:hover { color: #fff; text-decoration: underline; }
.page { max-width: 1160px; margin: 0 auto; padding: 28px 24px 60px; }
.greeting { margin-bottom: 20px; }
.greeting h1 { font-size: 26px; }
.greeting .lead { margin: 0; }
.grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.main { min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.aside { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 16px; }
.panel { background: #fff; border-radius: 12px; padding: 18px; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.panel--soft { background: #f8fafb; box-shadow: none; border: 1px solid var(--line); }
.tips { margin: 0; padding-left: 18px; font-size: 13px; color: #4a4a4a; line-height: 1.5; }
.tips li { margin-bottom: 6px; }

.person { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.person + .person { border-top: 1px solid #eef2f5; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.person--uw .avatar { background: #5d7b8c; }
.person__name { font-size: 15px; font-weight: 600; color: #2c2c2c; }
.person__role { font-size: 12.5px; color: var(--grey); }
.person__links { font-size: 13px; margin-top: 2px; display: flex; gap: 12px; flex-wrap: wrap; }
.person__links a { color: var(--blue); }
#team { margin-bottom: 12px; }
.office { margin-top: 12px; font-size: 13px; color: #4a4a4a; display: flex; flex-direction: column; gap: 4px; }
.office a { color: var(--blue); }
.office strong { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--grey); }

/* a file */
.deal { background: #fff; border-radius: 12px; box-shadow: 0 1px 4px rgba(0,0,0,.05); overflow: hidden; }
.deal__head { padding: 18px 20px 14px; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.deal__head h2 { font-size: 18px; margin: 0; }
.badge { display: inline-block; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 3px 10px; background: #eef2f5; color: var(--blue); white-space: nowrap; }
.badge--ok { background: var(--ok-bg); color: var(--ok); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact { background: #fbfcfd; padding: 10px 20px; }
.fact__label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--grey); }
.fact__value { font-size: 15px; font-weight: 600; color: #2c2c2c; margin-top: 2px; }
.deal__body { padding: 18px 20px 20px; }

/* progress */
.progress { list-style: none; margin: 4px 0 14px; padding: 0; display: flex; }
.progress li { flex: 1 1 0; position: relative; text-align: center; font-size: 12px; color: var(--grey); padding-top: 30px; min-width: 0; }
.progress li::before { content: ''; position: absolute; top: 9px; left: -50%; width: 100%; height: 3px; background: #dbe3e9; z-index: 0; }
.progress li:first-child::before { display: none; }
.progress li .dot { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 21px; height: 21px; border-radius: 50%; background: #fff; border: 3px solid #dbe3e9; z-index: 1; box-sizing: border-box; }
.progress li.done { color: #4a4a4a; }
.progress li.done::before, .progress li.now::before { background: var(--blue); }
.progress li.done .dot { background: var(--blue); border-color: var(--blue); }
.progress li.done .dot::after { content: ''; position: absolute; left: 5px; top: 2px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.progress li.now { color: var(--blue); font-weight: 700; }
.progress li.now .dot { border-color: var(--orange); background: #fff3e6; box-shadow: 0 0 0 4px rgba(247,142,30,.18); }
.progress span { display: block; padding: 0 2px; overflow-wrap: anywhere; }
.callout { background: #f1f6f9; border-left: 4px solid var(--blue); border-radius: 6px; padding: 11px 14px; font-size: 14.5px; line-height: 1.5; color: #2c2c2c; margin: 0 0 18px; }

.section-title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--blue); margin: 0 0 6px; }
.count { background: var(--orange); color: #fff; border-radius: 999px; font-size: 12px; padding: 1px 8px; }
.allset { display: flex; gap: 14px; align-items: center; background: var(--ok-bg); border-radius: 10px; padding: 14px 16px; margin-bottom: 14px; }
.allset__icon { width: 36px; height: 36px; border-radius: 50%; background: var(--ok); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; flex: 0 0 auto; }
.allset strong { display: block; color: var(--ok); font-size: 15px; }
.allset span { font-size: 13.5px; color: #2f4f3c; }

.items { list-style: none; margin: 0 0 14px; padding: 0; }
.item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 12px 0; border-top: 1px solid #eef2f5; }
.item:first-child { border-top: 0; }
.item .name { font-size: 15px; font-weight: 600; flex: 1 1 220px; min-width: 0; overflow-wrap: anywhere; display: flex; flex-direction: column; gap: 2px; }
.who { font-size: 12px; font-weight: 400; color: var(--grey); }
.item .name .help { font-size: 12.5px; font-weight: 400; color: var(--grey); line-height: 1.45; }
.pill { display: inline-block; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 2px 9px; background: #eef2f5; color: #4a4a4a; }
.pill.needed { background: #fff3e6; color: var(--warn); }
.pill.again { background: #fde8e7; color: var(--err); }
.pill.got { background: var(--ok-bg); color: var(--ok); }
.note { flex-basis: 100%; font-size: 13px; color: var(--err); margin: 0; }
.status { flex-basis: 100%; font-size: 13px; margin: 0; }
.status.ok { color: var(--ok); }
.status.err { color: var(--err); }
.bar { flex-basis: 100%; height: 6px; background: #eef2f5; border-radius: 3px; overflow: hidden; }
.bar > i { display: block; height: 100%; width: 0; background: var(--orange); transition: width .2s; }
.other { border: 1px dashed #c8d1d9; border-radius: 10px; padding: 4px 14px; }
.sent { margin-top: 14px; font-size: 13px; color: #4a4a4a; }
.sent summary { cursor: pointer; color: var(--blue); }
.sent ul { list-style: none; padding: 0; margin: 8px 0 0; }
.sent li { padding: 6px 0; border-top: 1px solid #eef2f5; display: flex; justify-content: space-between; gap: 8px; }
.sent li span:first-child { overflow-wrap: anywhere; }

/* nothing open */
.welcome { background: #fff; border-radius: 12px; box-shadow: 0 1px 4px rgba(0,0,0,.05); padding: 28px; }
.welcome__top { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.welcome__icon { width: 48px; height: 48px; border-radius: 12px; background: #f1f6f9; color: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 24px; flex: 0 0 auto; }
.welcome h2 { font-size: 19px; margin: 0 0 4px; }
.ideas { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 0 0 20px; }
.idea { border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.idea strong { display: block; color: var(--blue); font-size: 14.5px; margin-bottom: 4px; }
.idea span { font-size: 13px; color: #5a5a5a; line-height: 1.45; }
.welcome__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* contact dialog */
.overlay { position: fixed; inset: 0; background: rgba(0, 30, 46, .55); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 50; }
.dialog { background: #fff; border-radius: 14px; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 24px; position: relative; box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.dialog h2 { font-size: 19px; margin-bottom: 12px; padding-right: 30px; }
.dialog__x { position: absolute; top: 12px; right: 14px; background: none; border: 0; font-size: 28px; line-height: 1; color: var(--grey); cursor: pointer; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 18px; }
.quick .btn { flex: 1 1 140px; }
.sent-ok { text-align: center; padding: 18px 0 6px; }
.sent-ok .allset__icon { margin: 0 auto 10px; width: 48px; height: 48px; font-size: 26px; }

@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; }
  .aside { position: static; }
}
@media (max-width: 560px) {
  .topbar__in { padding: 12px 16px; }
  .topbar__logo { width: 112px; }
  .topbar__right { gap: 10px; }
  .topbar .btn { min-height: 38px; padding: 8px 12px; font-size: 14px; }
  .page { padding: 20px 16px 48px; }
  .greeting h1 { font-size: 22px; }
  .body { padding: 18px 16px; }
  .deal__head, .deal__body { padding-left: 16px; padding-right: 16px; }
  .fact { padding: 9px 16px; }
  .progress li { font-size: 10.5px; }
  .welcome { padding: 20px 16px; }
}

/* File status: monitoring (a mortgage with another lender we watch) and closed files */
.badge--watch { background: #fff4e5; color: #9a5b00; }
.badge--closed { background: #ececec; color: #5f5f5f; }
.callout--watch { border-left-color: #e08a00; background: #fff8ee; }
.past { background: #fff; border-radius: 12px; box-shadow: 0 1px 4px rgba(0,0,0,.05); padding: 18px 20px; margin-top: 18px; }
.past__title { font-size: 16px; margin: 0 0 6px; color: #5f5f5f; }
.past__row { border-top: 1px solid #eee; padding: 12px 0 4px; }
.past__row:first-of-type { border-top: 0; }
.past__row .deal__head { padding: 0; background: none; border: 0; }
.past__row h3 { font-size: 15px; margin: 0; color: #444; }
.past__row .small { margin: 6px 0 2px; }
.past__facts { font-size: 13px; color: #777; margin: 2px 0 6px; }

/* Several files at once: the box above "What we still need" and the sorting popup */
.batch { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; border: 2px dashed #b8c7d3; border-radius: 12px; background: #f6f9fb; padding: 14px 16px; margin: 0 0 18px; transition: border-color .15s, background .15s; }
.batch.over { border-color: var(--orange); background: #fff3e6; }
.batch__icon { width: 40px; height: 40px; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 20px; flex: 0 0 auto; }
.batch__txt { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.batch__txt strong { color: var(--blue); font-size: 15px; }
.batch__txt span { font-size: 13px; color: #4a4a4a; line-height: 1.45; }
.batch__done { background: var(--ok-bg); color: var(--ok); border-radius: 8px; padding: 10px 14px; font-size: 14px; font-weight: 600; margin: 0 0 14px; }
.sorter { background: #fff; border-radius: 14px; width: 100%; max-width: 780px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.sorter__head { background: var(--blue); padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sorter__head h2 { color: #fff; margin: 0; font-size: 17px; }
.sorter__x { background: none; border: 0; color: #fff; font-size: 28px; line-height: 1; cursor: pointer; padding: 0 2px; }
.sorter__intro { margin: 0; padding: 12px 18px 4px; font-size: 14px; color: #4a4a4a; line-height: 1.45; }
.sorter__bulk { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #fff3e6; border-top: 1px solid #f3d3ad; border-bottom: 1px solid #f3d3ad; padding: 10px 18px; margin-top: 8px; }
.sorter__bulk label { margin: 0; font-weight: 600; }
.sorter__bulk select { flex: 1 1 220px; width: auto; margin: 0; }
.sorter__rows { overflow-y: auto; flex: 1 1 auto; min-height: 0; padding: 4px 0; }
.srow { display: grid; grid-template-columns: 24px 50px minmax(0, 1fr) minmax(0, 280px) 28px; gap: 10px; align-items: center; padding: 10px 18px; border-top: 1px solid #eef2f5; }
.srow:first-child { border-top: 0; }
.srow--ticked { background: #fbf6ef; }
.srow input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--blue); margin: 0; }
.srow select { margin: 0; font-size: 15px; padding: 9px 10px; }
.srow select.unset { border-color: var(--orange); background: #fff3e6; }
.srow__name { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.srow__name b { font-size: 14.5px; font-weight: 600; overflow-wrap: anywhere; }
.srow__name small { font-size: 12.5px; color: var(--grey); }
.srow__name small.guess { color: var(--ok); }
.srow__name small.err, .sorter__plan .err { color: var(--err); }
.srow__x { background: none; border: 0; font-size: 22px; line-height: 1; color: var(--grey); cursor: pointer; padding: 4px; }
.ftag { font-size: 10px; font-weight: 700; letter-spacing: .03em; border-radius: 5px; padding: 6px 0; text-align: center; }
.ftag--pdf { background: #fbe9e7; color: #a33a2c; }
.ftag--photo { background: #e3edf4; color: var(--blue); }
.ftag--bad { background: #ececec; color: #666; }
.sorter__plan { background: #f6f9fb; border-top: 1px solid var(--line); padding: 10px 18px; font-size: 13.5px; color: #4a4a4a; }
.sorter__plan ul { margin: 4px 0 0; padding-left: 18px; line-height: 1.55; }
.sorter__plan b { color: #2c2c2c; }
.sorter__foot { border-top: 1px solid var(--line); padding: 12px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.sorter__why { font-size: 13.5px; font-weight: 600; color: var(--warn); }
.sorter__why.ready { color: var(--ok); }
.sorter__acts { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 640px) {
  .srow { grid-template-columns: 24px 50px minmax(0, 1fr) 28px; padding: 10px 14px; }
  .srow select { grid-column: 3 / 5; grid-row: 2; }
  .srow__x { grid-column: 4; grid-row: 1; }
  .sorter__head, .sorter__intro, .sorter__bulk, .sorter__plan, .sorter__foot { padding-left: 14px; padding-right: 14px; }
  .sorter__acts, .sorter__acts .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) { .batch { transition: none; } }

/* Questions (information requests, migration 136) */
.qa { flex-basis: 100%; display: flex; flex-direction: column; gap: 2px; margin: 4px 0 0; }
.qa__help { font-size: 13px; color: #5a5a5a; margin: 0 0 8px; }
.qa__f { margin: 0; }
.qa__f input, .qa__f textarea { margin-bottom: 10px; }
.qa__f textarea { width: 100%; font: inherit; font-size: 16px; padding: 11px 13px; border: 1px solid #c8d1d9; border-radius: 8px; box-sizing: border-box; }
.qa__choice { border: 0; padding: 0; margin: 0 0 10px; }
.qa__choice legend { font-size: 13px; font-weight: 600; color: #4a4a4a; margin-bottom: 8px; padding: 0; }
.qa__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.qa__opt { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; padding: 8px 14px; border: 1px solid #c8d1d9; border-radius: 999px; background: #fff; font-size: 14px; font-weight: 500; cursor: pointer; }
.qa__opt input { width: auto; margin: 0; accent-color: var(--blue); }
.qa__opt:has(input:checked) { border-color: var(--blue); background: #e8f0f5; font-weight: 600; }
.qa__opt:focus-within { outline: 2px solid var(--orange); outline-offset: 2px; }
.qa .btn { align-self: flex-start; }

/* Your mortgage options (option_shares.py, migration 141) */
.optbanner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; border-radius: 12px; background: #fff3e6; border: 1px solid #f3c48f; padding: 14px 16px; margin: 0 0 18px; }
.optbanner__txt { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.optbanner__txt strong { color: var(--blue); font-size: 15.5px; }
.optbanner__txt span { font-size: 13.5px; color: #4a4a4a; }
.opts-page { display: flex; flex-direction: column; gap: 16px; }
.opts-page > .link { align-self: flex-start; font-size: 14px; }
.opts-page h1 { margin: 0; }
.opts-page > .small { margin: -8px 0 0; }
.opts-today { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.opts-today > div { background: #f6f9fb; border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.opts-today b { font-size: 18px; color: var(--blue); font-variant-numeric: tabular-nums; }
.opts-rec { display: flex; gap: 14px; align-items: flex-start; border-left: 4px solid var(--orange); background: #fff; border-radius: 0 12px 12px 0; padding: 16px 18px; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.opts-rec strong { color: var(--blue); }
.opts-rec p { margin: 4px 0 0; line-height: 1.55; white-space: pre-wrap; }
.opts-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.opts-card { background: #fff; border-radius: 12px; box-shadow: 0 1px 4px rgba(0,0,0,.06); border: 2px solid transparent; display: flex; flex-direction: column; min-width: 0; }
.opts-card.picked { border-color: var(--orange); }
.opts-card header { padding: 14px 16px 8px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.opts-card header b { font-size: 16.5px; color: var(--blue); }
.opts-card dl { margin: 0; padding: 4px 16px 12px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 7px 12px; font-size: 14px; }
.opts-card dt { color: var(--grey); }
.opts-card dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.opts-card ul { margin: 0; padding: 10px 16px 0 34px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 1.45; }
.opts-card__act { margin-top: auto; padding: 14px 16px 16px; }
.pro { color: var(--ok); }
.con { color: var(--err); }
.opts-try { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; margin: 8px 0; }
.opts-try label { margin-top: 8px; }
.opts-try input[type=range] { width: 100%; accent-color: var(--orange); }
.opts-try select { margin-bottom: 8px; }
.opts-ticks { display: flex; justify-content: space-between; font-size: 12px; color: var(--grey); margin-bottom: 6px; }
.opts-result { background: #f6f9fb; border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.opts-big { font-size: 20px; font-weight: 700; color: var(--blue); }
.opts-bars { display: flex; flex-direction: column; gap: 6px; }
.opts-bar { display: grid; grid-template-columns: 120px minmax(0, 1fr) 70px; gap: 8px; align-items: center; font-size: 13px; }
.opts-track { height: 12px; border-radius: 6px; background: var(--line); overflow: hidden; }
.opts-track i { display: block; height: 100%; border-radius: 6px; background: var(--blue); transition: width .25s; }
.opts-track i.fx { background: var(--orange); }
.opts-amt { font-variant-numeric: tabular-nums; text-align: right; }
.opts-verdict { font-weight: 600; }
.opts-table summary { cursor: pointer; font-weight: 600; color: var(--blue); }
.opts-scroll { overflow-x: auto; margin-top: 10px; }
.opts-table table { border-collapse: collapse; width: 100%; font-size: 14px; }
.opts-table th, .opts-table td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); }
.opts-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--grey); }
.opts-fine { margin-top: 12px; }
@media (max-width: 900px) { .opts-cards, .opts-try { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .opts-track i { transition: none; } }

/* Installable app panel (app.js) */
#app-panel .btn { margin-top: 4px; }

/* Placeholders light enough not to look like a filled-in value. */
input::placeholder, textarea::placeholder { color: #a9b4be; opacity: 1; }

/* Messages with the team */
.msgs { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 14px 0; display: flex; flex-direction: column; gap: 8px; }
.msgs .section-title { margin: 0; }
.msgs__new { background: var(--orange); color: #1b2e3c; }
.msgs__note { margin: 0; font-size: 13px; color: var(--grey); }
.msgs__list { display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow-y: auto; }
.msgs__m { background: var(--bg); border-radius: 10px; padding: 8px 11px; max-width: 88%; align-self: flex-start; overflow-wrap: anywhere; }
.msgs__m--client { background: #e4eef4; align-self: flex-end; }
.msgs__who { font-size: 12px; color: var(--grey); }
.msgs__body { white-space: pre-wrap; font-size: 14px; }
.msgs__file { font-size: 13px; color: var(--blue-2); margin-top: 3px; }
.msgs__form { display: flex; flex-direction: column; gap: 6px; }
.msgs__text { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 8px; padding: 8px; font: inherit; font-size: 14px; resize: vertical; }
.msgs__acts { display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ── Open file: list with the team's messages beside (2026-11-04) ── */
.has-files .grid { grid-template-columns: 1fr; }
.has-files .aside { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; }
.deal2 { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; }
.deal2--folded { grid-template-columns: minmax(0, 1fr) 52px; }
.deal2__main { min-width: 0; }
.deal2__line { font-size: 13.5px; color: var(--grey); margin-top: 2px; }
.tabs2 { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 4px -20px 12px; padding: 0 20px; overflow-x: auto; }
.tabs2__t { border: none; background: none; font: inherit; font-size: 14px; color: var(--grey); padding: 9px 12px; cursor: pointer; white-space: nowrap; border-bottom: 2px solid transparent; }
.tabs2__t.on { color: #1b2e3c; font-weight: 700; border-bottom-color: var(--orange); }
.tabs2__t--phone { display: none; }
.sum2 { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; color: #4a4a4a; margin: 0 0 10px; }
.sum2__warn { color: #b86e00; font-weight: 600; }
.grp2 { font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--grey); margin: 16px 0 0; }
.grp2--warn { color: #b86e00; }
.sent2 { list-style: none; padding: 0; margin: 6px 0 0; font-size: 14px; }
.sent2 li { padding: 8px 0; border-top: 1px solid #eef2f5; display: flex; justify-content: space-between; gap: 8px; }
.sent2 li span:first-child { overflow-wrap: anywhere; }
.facts2 { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.msgs2 { margin: 0; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.05); position: sticky; top: 16px; max-height: calc(100vh - 32px); }
.msgs2 .msgs__list { flex: 1 1 auto; max-height: none; min-height: 120px; }
.msgs2__hd { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.msgs2__fold { border: none; background: none; color: var(--blue-2, #2a6496); cursor: pointer; font: inherit; font-size: 13px; padding: 2px 0; white-space: nowrap; }
.msgs2__lbl { font-size: 13px; font-weight: 700; color: #1b2e3c; }
.deal2--folded .msgs2 { display: none; }
.msgs-rail { display: none; }
.deal2--folded .msgs-rail { display: flex; flex-direction: column; align-items: center; gap: 10px; position: sticky; top: 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 0; cursor: pointer; font: inherit; color: #1b2e3c; }
.msgs-rail__ic { font-size: 18px; }
.msgs-rail__n { background: var(--orange); color: #fff; border-radius: 10px; font-size: 11px; font-weight: 700; padding: 1px 6px; }
.msgs-rail__t { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 13px; font-weight: 700; }
/* Messages as letters, not chat bubbles */
.letter { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; overflow-wrap: anywhere; }
.letter--mine { background: #f7f9fb; }
.letter--new { border-left: 3px solid var(--orange); }
.letter__hd { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; }
.letter__hd b { flex: 1 1 auto; min-width: 0; }
.letter__hd .letter__when { flex: 0 0 auto; }
.letter__about { display: inline-block; max-width: 100%; margin-top: 4px; font-size: 11px; font-weight: 700; color: var(--blue-2); background: #eef3f7; border-radius: 6px; padding: 1px 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; box-sizing: border-box; }
.letter--mine .letter__about { background: #fff; }
.msgs2 .msgs__list { overflow-x: hidden; }
.mupload { margin-top: 16px; border: 1px dashed var(--line); border-radius: 12px; padding: 14px 16px; }
.mupload__t { font-weight: 700; color: #1b2e3c; }
.mupload__p { margin: 4px 0 10px; font-size: 14px; color: var(--grey); }
.mupload__acts { display: flex; flex-wrap: wrap; gap: 8px; }
.mupload__hint { margin: 8px 0 0; font-size: 12px; color: var(--grey); }
.letter__hd b { font-size: 14px; color: #1b2e3c; }
.letter__hd span { color: var(--grey); white-space: nowrap; font-size: 12px; }
.letter__org { font-size: 12px; color: var(--grey); }
.letter .msgs__body { margin-top: 6px; }
@media (max-width: 820px) {
  .deal2, .deal2--folded { grid-template-columns: 1fr; }
  .deal2 .msgs-rail { display: none !important; }
  .deal2--folded .msgs2 { display: flex; }
  .msgs2__fold { display: none; }
  .tabs2__t--phone { display: inline-block; order: 1; }
  .tabs2 { scrollbar-width: none; margin-left: -20px; margin-right: -20px; padding: 0 12px; }
  .tabs2::-webkit-scrollbar { display: none; }
  .tabs2__t { padding: 9px 8px; font-size: 13.5px; order: 2; }
  .tabs2__t:first-child { order: 0; }
  .tabs2__t.tabs2__t--phone { order: 1; }
  /* Narrow screens: only the current step is named, so labels don't break mid-word. */
  .progress li:not(.now) span { visibility: hidden; }
  .progress li.now span { white-space: nowrap; }
  .deal2:not(.deal2--msgs) .msgs2 { display: none; }
  .deal2--msgs .pane2, .deal2--msgs .deal2__main .callout, .deal2--msgs .deal2__main .progress { display: none; }
  .msgs2 { position: static; max-height: none; }
  .msgs2 .msgs__list { max-height: 60vh; }
}

/* Several open files (2026-11-10): summary line, a tab per file, one thread */
.need { display: flex; gap: 12px; align-items: center; border-radius: 12px; padding: 14px 16px; }
.need--todo { background: #fff4e2; border: 1px solid #f6c98f; }
.need--ok { background: var(--ok-bg); }
.need__ic { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; flex: 0 0 auto; }
.need--todo .need__ic { background: var(--orange); }
.need--ok .need__ic { background: var(--ok); }
.need strong { display: block; font-size: 15px; color: #1b2e3c; }
.need span { font-size: 13.5px; color: #4a5a66; }
.ftabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 4px; scrollbar-width: thin; }
.ftab { flex: 0 0 auto; min-width: 170px; max-width: 260px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; cursor: pointer; font: inherit; color: #1b2e3c; }
.ftab strong { font-size: 14.5px; }
.ftab small { font-size: 12px; color: var(--grey); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.ftab.on { border-color: var(--blue-2); box-shadow: 0 0 0 2px var(--blue-2) inset; }
.ftab:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.ftab__st { margin-top: 4px; font-size: 12px; font-weight: 700; }
.ftab__st--todo { color: var(--warn); }
.ftab__st--ok { color: var(--ok); }
.ftab__new { font-size: 11.5px; font-weight: 700; color: #fff; background: var(--orange); border-radius: 10px; padding: 1px 8px; margin-top: 2px; }
.fsplit { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 16px; align-items: start; }
.ftabs--side { flex-direction: column; overflow: visible; padding: 0; }
.ftabs--side .ftab { min-width: 0; max-width: none; }
.fsplit .deal2, .fsplit .deal2--folded { grid-template-columns: 1fr; }
.fsplit .msgs-rail { display: none !important; }
.fsplit .deal2--folded .msgs2 { display: flex; }
.fsplit .msgs2__fold { display: none; }
.fsplit .msgs2 { position: static; max-height: none; }
.nothing2 { color: var(--ok); font-size: 14px; font-weight: 600; margin: 4px 0 14px; }
.mchips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.mchip { border: 1px solid var(--line); background: #fff; color: #4a5a66; border-radius: 999px; padding: 3px 10px; font: inherit; font-size: 12.5px; cursor: pointer; }
.mchip.on { border-color: var(--blue-2); color: #1b2e3c; font-weight: 700; }
.letter__hd .about { margin-right: auto; font-size: 11px; font-weight: 700; color: var(--blue-2); background: #eef3f7; border-radius: 6px; padding: 1px 7px; white-space: nowrap; }
.letter--mine .letter__hd .about { background: #fff; }
.msgs2__about { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font: inherit; font-size: 14px; background: #fff; margin-bottom: 6px; }
@media (max-width: 760px) {
  .fsplit { grid-template-columns: 1fr; }
  .ftabs--side { flex-direction: row; overflow-x: auto; }
  .ftabs--side .ftab { min-width: 170px; }
}

/* Face ID sign-in section in the app panel (app.js bioSection) */
.faceid { margin-bottom: 18px; }

/* Your coming meetings (meeting agendas) */
.meet-ag + .meet-ag { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; }
.meet-ag__t { font-weight: 600; }
.meet-ag__sec { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted, #5d6b7a); margin: 10px 0 4px; }
.meet-ag__list { margin: 0; padding-left: 18px; }
.meet-ag__list li { margin: 3px 0; }
.meet-ag__list li.is-done { color: var(--muted, #5d6b7a); text-decoration: line-through; }
.meet-ag__add { display: flex; gap: 8px; margin-top: 10px; }
.meet-ag__add input { flex: 1 1 auto; min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
