/* November 2026 supplied TruText screens. Layout stays fluid at mobile sizes. */
:root {
  --purple:#21133d;
  --ink:#251742;
  --violet:#5127a4;
  --orange:#ff7c29;
  --paper:#f7f4fc;
  --soft:#ece6f5;
  --line:#ded6ec;
  font-family:Arial,"Segoe UI",sans-serif;
}
body {
  background:var(--purple);
  color:#fff;
  margin:0;
}
button,input,select {
  font:inherit;
}
button,a,input,summary {
  touch-action:manipulation;
}
button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible {
  outline:3px solid #ffb777;
  outline-offset:4px;
}
h1,h2,h3 {
  font-family:inherit;
  letter-spacing:-.035em;
}
h1 {
  font-weight:750;
}
p {
  line-height:1.5;
}
.shell {
  width:100%;
  max-width:1400px;
  margin:auto;
  padding:0 4.65%;
}
.header {
  background:var(--purple);
  border:0;
}
.nav {
  height:138px;
}
.brand {
  padding:0;
  display:flex;
  align-items:center;
}
.brand img {
  width:214px;
  height:auto;
  image-rendering:auto;
}
.nav-right {
  gap:32px;
}
.nav-link {
  color:white;
}
.language {
  background:#17131e;
  border:0;
  border-radius:30px;
  padding:2px;
  gap:0;
}
.language button {
  height:24px;
  width:35px;
  color:white;
  font-size:16px;
  border-radius:30px;
}
.language button.active {
  background:white;
  color:#17131e;
}
.btn {
  border-radius:100px;
  background:var(--orange);
  color:#160b2d;
  font-weight:700;
  padding:14px 25px;
  min-height:48px;
  box-shadow:none;
  border:1px solid transparent;
}
.btn:hover {
  background:#ff984f;
}
.btn.small {
  font-size:16px;
  min-height:42px;
  padding:9px 22px;
  color:white;
}
.btn.secondary {
  background:var(--purple);
  color:white;
}
.btn.secondary:hover {
  background:var(--violet);
}
.btn.light-outline {
  background:white;
  border:1px solid var(--purple);
  color:var(--purple);
}
.btn.outline,.answer-actions .btn.light-outline {
  border:1px solid #fff;
  color:white;
  background:transparent;
}
.btn:disabled {
  opacity:.45;
  cursor:not-allowed;
}
.text-btn {
  color:inherit;
}
.hero {
  position:relative;
  grid-template-columns:1fr 1fr;
  padding-top:14px;
  padding-bottom:60px;
  gap:28px;
  min-height:650px;
  isolation:isolate;
}
.hero-copy {
  z-index:2;
}
.hero h1 {
  font-size:clamp(54px,5.8vw,82px);
  line-height:1.2;
  letter-spacing:-.04em;
  margin:0 0 28px;
  max-width:650px;
  color:white;
}
.hero-copy>p {
  font-size:clamp(19px,2vw,28px);
  line-height:1.3;
  max-width:620px;
  font-weight:600;
  color:white;
  margin:0 0 54px;
}
.hero-language {
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  margin-bottom:22px;
  max-width:430px;
}
.hero-language>span {
  display:flex;
  align-items:center;
  width:100%;
  font-size:16px;
  font-weight:600;
  margin-bottom:10px;
  gap:12px;
}
.hero-language button {
  width:calc(50% - 7px);
  border:1px solid #7b6c92;
  color:white;
  background:transparent;
  border-radius:100px;
  min-height:59px;
  font-size:18px;
  font-weight:700;
}
.hero-language button.active {
  background:white;
  color:#171124;
}
.hero-actions {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:12px;
}
.hero-actions>.btn {
  min-height:59px;
  width:min(100%,422px);
  font-size:18px;
}
.hero-actions>.text-btn {
  font-size:14px;
  margin-left:14px;
}
.hero-copy>p.micro {
  font-size:15px;
  font-weight:400;
  line-height:1.4;
  margin:20px 0 15px;
  max-width:420px;
  display:flex;
  align-items:flex-start;
  gap:14px;
}
.hero-copy .micro .icon {
  flex-shrink:0;
  width:23px;
  height:23px;
}
.preview-note {
  font-size:12px;
  color:#c3b4db;
  max-width:430px;
}
.preview-note button {
  display:inline;
  font-size:12px;
  padding:0 4px;
  min-height:30px;
  text-decoration:underline;
}
.hero-visual {
  position:relative;
  min-height:600px;
  height:auto;
  overflow:hidden;
  border-radius:0 65px 0 0;
  margin:-20px -7% 0 0;
  background:var(--purple);
}
.hero-reference {
  position:absolute;
  width:215%;
  max-width:none;
  height:auto;
  left:-115%;
  top:-18%;
  pointer-events:none;
}
.hero-photo-shade {
  position:absolute;
  inset:0;
  border-radius:0;
  background:linear-gradient(90deg,var(--purple),transparent 35%),linear-gradient(0deg,var(--purple) 0%,var(--purple) 17%,transparent 50%);
}
.hero-promise {
  position:absolute;
  bottom:30px;
  left:35px;
  color:white;
}
.hero-promise>span {
  font-size:12px;
  color:#c2a5f7;
  letter-spacing:.09em;
  font-weight:700;
}
.hero-promise strong {
  display:block;
  font-size:38px;
  line-height:1.12;
  margin:10px 0;
}
.hero-promise p {
  font-size:14px;
  color:#c3b4db;
}
.footer {
  background:var(--purple);
  border-top:1px solid #ffffff18;
  color:#c1b5d3;
  padding:24px 0;
}
.footer button {
  color:#d7cbe7;
}
.footer .shell {
  font-size:12px;
}
.workspace {
  width:100%;
  background:var(--purple);
  color:white;
  padding:4px 0 65px;
  min-height:calc(100vh - 210px);
}
.progress {
  display:flex;
  justify-content:flex-start;
  gap:16px;
  margin:0 0 40px;
  padding:0;
  list-style:none;
}
.progress li {
  background:var(--violet);
  border:0;
  border-radius:100px;
  padding:8px 21px;
  color:white;
  font-size:16px;
  font-weight:600;
  display:flex;
  gap:8px;
  flex:none;
}
.progress li.active {
  background:white;
  color:#130b24;
}
.progress li.done {
  background:var(--violet);
  color:white;
}
.progress li span {
  background:none!important;
  color:inherit!important;
  width:auto;
  height:auto;
  display:inline;
  font-size:inherit;
}
.progress li span:after {
  content:".";
}
.page-heading {
  margin:0 0 20px;
}
.page-heading h1 {
  font-size:48px;
  line-height:1.08;
  margin:0 0 8px;
  color:white;
  max-width:880px;
}
.page-heading p {
  color:white;
  font-size:20px;
  margin:0;
}
.page-heading p:empty {
  display:none;
}
.capture-tips {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:40px;
  margin:20px 0 42px;
}
.capture-tips>span {
  display:flex;
  align-items:center;
  gap:18px;
  background:var(--violet);
  border-left:4px solid var(--orange);
  padding:12px 22px;
  border-radius:12px;
  color:white;
}
.capture-tips .icon {
  color:var(--orange);
  flex-shrink:0;
}
.capture-tips b {
  display:block;
  font-size:22px;
  line-height:1.2;
}
.capture-tips small {
  display:block;
  font-size:15px;
  margin-top:3px;
}
.capture-layout {
  grid-template-columns:minmax(0,2.2fr) minmax(280px,1fr);
  gap:44px;
  align-items:start;
}
.panel {
  background:white;
  color:var(--ink);
  border:0;
  border-radius:30px;
  padding:30px;
  box-shadow:none;
}
.tabs {
  justify-content:center;
  border:0;
  gap:12px;
  padding:0;
  margin:0 0 28px;
}
.tab {
  border:1px solid var(--purple);
  border-radius:100px;
  flex:1;
  justify-content:center;
  min-height:50px;
  font-size:13px;
  color:#15101b;
  background:white;
  padding:10px 12px;
}
.tab.active {
  background:var(--violet);
  color:white;
  border-color:var(--violet);
}
.upload-zone,.camera-box {
  background:var(--soft);
  border:1px dashed #30223e;
  border-radius:12px;
  min-height:235px;
  padding:28px 16px;
  color:#110b1a;
}
.upload-zone h3,.camera-box h3 {
  font-size:23px;
  margin:12px 0 5px;
}
.upload-zone p,.camera-box p {
  color:#181020;
  font-size:15px;
  margin:0 0 18px;
}
.upload-zone .small-note {
  font-size:12px;
  margin:12px 0 0;
}
.upload-icon {
  background:none;
  width:auto;
  height:auto;
  color:#120c1e;
  margin:0;
}
.upload-icon .icon {
  width:30px;
  height:30px;
}
.upload-zone .btn {
  font-size:17px;
  padding:15px 38px;
}
.upload-zone.dragover {
  background:#d9c5fb;
  border:2px solid var(--violet);
}
.panel-bottom {
  font-size:11px;
  justify-content:center;
  color:#6b6078;
  margin:15px 0 0;
  display:flex;
  gap:6px;
  align-items:center;
}
.pages-panel {
  padding:26px 28px;
}
.panel-top h3 {
  font-size:14px;
  letter-spacing:0;
}
.page-count {
  background:none;
  padding:0;
  color:#21152e;
  font-size:12px;
}
.page-list {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
  margin:15px 0 12px;
  max-height:390px;
  overflow:auto;
}
.page-item {
  position:relative;
  display:flex;
  flex-direction:column;
  border:0;
  background:none;
  padding:0;
  gap:6px;
}
.page-thumb {
  width:100%;
  height:150px;
  background:linear-gradient(135deg,#f4effb,#dad1e8);
  border:0;
  border-radius:20px;
  overflow:hidden;
  padding:0;
  display:block;
  box-shadow:0 3px 3px #21133d33;
}
.page-thumb img {
  width:100%;
  height:100%;
  object-fit:contain;
}
.paper-lines {
  display:flex;
  flex-direction:column;
  gap:9px;
  padding:18px;
}
.paper-lines i {
  height:6px;
  background:#bcb1d2;
  display:block;
  border-radius:9px;
  width:100%;
}
.paper-lines i:nth-child(3n) {
  width:85%;
}
.paper-lines i:last-child {
  width:60%;
}
.remove-page {
  position:absolute;
  right:0;
  top:-1px;
  border-radius:50%;
  background:var(--purple);
  color:white;
  width:26px;
  height:26px;
  display:grid;
  place-items:center;
  border:2px solid white;
}
.remove-page .icon {
  width:15px;
  height:15px;
}
.page-info {
  text-align:center;
  min-width:0;
  width:100%;
}
.page-info b {
  font-size:12px;
}
.page-info small {
  font-size:10px;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.page-controls {
  flex-direction:row;
  gap:8px;
}
.page-controls .icon-btn {
  min-height:30px;
  min-width:30px;
  width:30px;
  padding:4px;
  border:1px solid #e7e0ee;
  border-radius:30px;
}
.empty-pages {
  min-height:165px;
  background:var(--soft);
  border:1px dashed #9f94b1;
  border-radius:12px;
  font-size:13px;
  margin:20px 0;
}
.empty-pages p {
  margin:10px 0 4px;
}
.empty-pages small {
  font-size:11px;
}
.pages-panel .btn {
  font-size:13px;
  padding:11px;
  min-height:44px;
  margin:12px 0 0;
}
.pages-panel .add-page {
  background:white;
  color:#18101e;
  border:1px dashed #28202f;
}
.pages-panel .small-note {
  font-size:11px;
  line-height:1.4;
  margin:14px 0 0;
  color:#716579;
}
.sample-strip {
  border:0;
  color:#d0bfeb;
  background:none;
  padding:16px 0;
  font-size:12px;
  justify-content:flex-start;
}
.sample-strip button {
  color:#e1cdfb;
  font-size:12px;
}
.camera-box {
  text-align:center;
}
.camera-box .text-btn {
  display:block;
  margin:10px auto 0;
  color:var(--purple);
}
.camera-viewport {
  position:relative;
  border-radius:12px;
  overflow:hidden;
  background:#100b1b;
}
.camera-viewport video {
  width:100%;
  max-height:380px;
  object-fit:cover;
  display:block;
}
.camera-frame {
  position:absolute;
  inset:12% 23%;
  border:2px solid #ffd44d;
  border-radius:10px;
  pointer-events:none;
}
.camera-hint {
  position:absolute;
  left:12px;
  top:12px;
  font-size:12px;
  background:#21133de6;
  color:white;
  padding:8px 12px;
  border-radius:30px;
}
.camera-error {
  padding:25px 10px;
}
.camera-error>.icon {
  color:var(--orange);
  width:38px;
  height:38px;
}
.error-box {
  background:#fff6e7;
  color:#663b11;
  border:1px solid #bd985e;
  border-radius:12px;
  padding:20px;
  display:flex;
  gap:14px;
  text-align:left;
  line-height:1.5;
  font-size:15px;
}
.upload-zone.has-error {
  background:#fff9ef;
  border-color:#b98b53;
}
.reading {
  display:grid;
  grid-template-columns:minmax(250px,.8fr) minmax(0,1.4fr);
  gap:75px;
  max-width:none;
  margin:65px 24px 0;
  text-align:left;
}
.reading-preview {
  text-align:center;
}
.scanning-paper {
  position:relative;
  min-height:430px;
  max-width:400px;
  margin:auto;
  background:#f9f7fc;
  border-radius:20px;
  transform:rotate(-3deg);
  box-shadow:0 0 65px #ff7c2922;
  overflow:visible;
}
.scanning-paper>img {
  width:100%;
  max-height:480px;
  object-fit:contain;
  border-radius:20px;
}
.paper-placeholder {
  padding:32px 22px;
  color:var(--ink);
}
.paper-placeholder>.icon {
  width:35px;
  height:35px;
}
.paper-placeholder>b {
  display:block;
  font-size:24px;
  margin:12px 18px;
}
.paper-placeholder .paper-lines {
  gap:15px;
}
.scan-line {
  position:absolute;
  left:0;
  right:0;
  height:3px;
  background:var(--orange);
  box-shadow:0 0 23px 5px #ff7c2966;
  animation:scan 3s ease-in-out infinite alternate;
  top:15%;
}
.scan-badge {
  position:absolute;
  right:-17px;
  top:-30px;
  background:var(--orange);
  color:white;
  width:70px;
  height:70px;
  border-radius:50%;
  display:grid;
  place-items:center;
}
.scan-badge .icon {
  width:35px;
  height:35px;
}
.reading-preview>p {
  font-size:17px;
  color:#ddd2ef;
  margin-top:25px;
}
.reading h1 {
  font-size:60px;
  line-height:1.03;
  color:white;
  margin:0 0 22px;
}
.reading-copy>p {
  font-size:18px;
  color:white;
}
.timeline {
  margin:24px 0;
  display:grid;
  gap:16px;
  padding:0;
}
.timeline li {
  background:var(--soft);
  color:var(--ink);
  padding:18px 23px;
  border-radius:10px;
  display:flex;
  align-items:center;
  gap:18px;
  font-size:20px;
}
.timeline li.current,.timeline li.complete {
  background:var(--orange);
  color:#100b1c;
}
.timeline .dot {
  width:30px;
  height:30px;
  border:2px solid currentColor;
  border-radius:50%;
  background:none;
  flex-shrink:0;
}
.timeline .complete .dot {
  background:#2cc357;
  color:white;
  border-color:white;
  display:grid;
  place-items:center;
}
.timeline .current .dot {
  border-top-color:transparent;
  animation:spin 1s linear infinite;
}
.timeline small {
  margin-left:auto;
  font-size:14px;
  white-space:nowrap;
}
.reading progress {
  width:100%;
  height:9px;
  border-radius:0;
  accent-color:var(--orange);
  background:var(--soft);
  margin:5px 0;
}
.reading progress::-webkit-progress-value {
  background:var(--orange);
}
.reading-copy>p.micro {
  font-size:13px;
  color:#d1c4e4;
}
.reading-copy .text-btn {
  text-decoration:underline;
  margin-left:8px;
}
@keyframes scan {
  to {
    top:85%;
  }
}
.result-note {
  font-size:12px;
  color:#cbbce0;
  display:flex;
  gap:8px;
  align-items:center;
  margin:0 0 22px;
}
.answer-layout,.checklist-layout {
  grid-template-columns:minmax(0,2.4fr) minmax(285px,1fr);
  gap:28px;
  align-items:start;
}
.fact-card {
  background:white;
  color:var(--ink);
  border:0;
  border-radius:28px;
  padding:22px 24px;
  margin-bottom:13px;
  box-shadow:none;
}
.fact-card header {
  gap:12px;
  margin-bottom:12px;
}
.fact-number {
  background:var(--violet);
  color:white;
  width:36px;
  height:36px;
  border-radius:50%;
  font-size:16px;
}
.fact-card h2 {
  font-size:19px;
  text-transform:uppercase;
  color:var(--violet);
  letter-spacing:-.02em;
}
.fact-card>p {
  font-size:19px;
  line-height:1.35;
  margin:12px 0;
}
.fact-line {
  padding:10px 0;
  border:0;
}
.fact-line p {
  font-size:17px;
  margin:0 0 5px;
}
.fact-line+.fact-line {
  border-top:1px solid #eee8f3;
}
.fact-line .micro {
  font-size:12px;
  color:#70617f;
}
.cite {
  border-radius:100px;
  background:var(--soft);
  color:var(--ink);
  padding:10px 17px;
  min-height:40px;
  font-size:14px;
  font-weight:700;
  text-decoration:none;
  display:inline-flex;
  gap:10px;
  align-items:center;
  margin:5px 0;
}
.cite:hover {
  background:#ded2f0;
}
.deadline-card {
  border:8px solid var(--orange);
  padding:17px 20px;
}
.date-value {
  font-size:36px;
  color:var(--ink);
  font-weight:750;
  line-height:1.1;
  margin:12px 0;
}
.date-extra {
  border-top:1px solid var(--line);
  padding-top:12px;
}
.tag {
  font-size:11px;
  border-radius:30px;
}
.answer-actions {
  margin:20px 0;
  gap:15px;
}
.answer-actions .btn {
  font-size:16px;
  padding:10px 24px;
}
.summary-sidebar {
  position:sticky;
  top:20px;
  display:grid;
  gap:20px;
  min-width:0;
}
.ask-trutext {
  display:flex;
  justify-content:center;
  align-items:center;
  gap:9px;
  background:white;
  border-radius:18px;
  min-height:56px;
  color:var(--purple);
  font-size:20px;
  font-weight:700;
}
.ask-symbol {
  display:grid;
  place-items:center;
  border-radius:50%;
  background:var(--orange);
  color:white;
  width:33px;
  height:33px;
}
.ask-symbol .icon {
  width:21px;
  height:21px;
}
.summary-panel {
  padding:24px 20px;
}
.summary-panel h2 {
  font-size:20px;
  letter-spacing:-.03em;
  margin:0 0 12px;
}
.summary-panel>p {
  font-size:13px;
  line-height:1.5;
  color:#625474;
  margin:0 0 15px;
}
.summary-file {
  display:flex;
  align-items:center;
  gap:16px;
  background:#f5f1fb;
  border-radius:18px;
  padding:18px 15px;
  margin:0 0 13px;
}
.summary-file strong {
  display:block;
  font-size:12px;
  font-weight:500;
}
.summary-file small {
  display:block;
  font-size:12px;
  color:#7b6d8a;
  line-height:1.4;
  margin-top:4px;
}
.mini-document {
  display:flex;
  flex-direction:column;
  gap:5px;
  width:65px;
  height:86px;
  flex-shrink:0;
  background:white;
  border-radius:3px;
  box-shadow:0 5px 10px #21133d33;
  padding:0 6px 10px;
  border-top:15px solid var(--purple);
}
.mini-document i {
  height:17px;
  background:var(--orange);
  border-radius:2px;
  margin:5px 0 0;
}
.mini-document b {
  height:3px;
  background:#ddd2ed;
}
.summary-panel .btn {
  font-size:13px;
  min-height:45px;
  padding:10px;
  margin:10px 0 0;
}
.original-letter {
  border:1px solid #ffffff22;
  background:#ffffff0a;
  color:white;
  padding:15px;
  border-radius:16px;
  display:flex;
  align-items:center;
  gap:14px;
  text-align:left;
}
.original-letter>.icon:first-child {
  width:27px;
  height:36px;
  flex-shrink:0;
}
.original-letter span {
  flex:1;
}
.original-letter b,.original-letter small {
  display:block;
  font-size:12px;
}
.original-letter small {
  font-weight:400;
  color:#d5c8e6;
  margin-top:4px;
}
.summary-sidebar>.text-btn {
  font-size:12px;
  justify-content:center;
  color:#d8c8ec;
}
.check-item {
  background:white;
  color:var(--ink);
  border:1px solid transparent;
  border-radius:28px;
  padding:22px 25px;
  margin-bottom:15px;
}
.check-item.is-ready {
  border-color:#40ca67;
}
.check-head h3 {
  font-size:25px;
  color:var(--ink);
}
.check-head p {
  color:#625474;
  font-size:14px;
  line-height:1.45;
}
.check-head .note-check {
  background:#ffcf00;
  color:var(--ink);
  width:31px;
  height:31px;
  flex-shrink:0;
}
.check-item.is-ready .note-check {
  background:#2cc357;
  color:white;
}
.check-actions {
  border-top:1px solid #eee7f5;
  padding-top:13px;
  margin-top:13px;
}
.have-check {
  color:var(--ink);
  font-size:13px;
}
.check-actions .btn {
  font-size:12px;
  min-height:40px;
}
.checklist-bottom {
  display:flex;
  gap:18px;
  align-items:center;
  margin:25px 0;
  font-size:14px;
  flex-wrap:wrap;
}
.checklist-layout+.checklist-bottom .btn {
  font-size:14px;
}
.workspace>.shell>.notice {
  background:#ffffff0c;
  color:#d8cbe9;
  border:1px solid #ffffff20;
  font-size:12px;
  max-width:100%;
  margin-bottom:22px;
}
.back {
  color:#ddc9f8;
}
.risk-view {
  color:var(--ink);
}
.risk-view h1 {
  color:var(--ink);
}
.risk-view .eyebrow {
  color:var(--violet);
}
.sent-card {
  color:var(--ink);
}
.sent-card h1 {
  color:var(--ink);
}
.chat-page {
  background:#f7f4fc;
  color:var(--ink);
  min-height:calc(100vh - 138px);
  padding:30px 0 65px;
}
.chat-page .page-heading {
  text-align:center;
  margin:0 0 32px;
}
.chat-page h1 {
  color:var(--ink);
  font-size:40px;
}
.chat-page .page-heading p {
  color:#5f5271;
  font-size:14px;
}
.chat-page .eyebrow {
  justify-content:center;
  color:var(--violet);
  font-size:11px;
}
.chat-layout {
  display:grid;
  grid-template-columns:minmax(0,2fr) minmax(230px,.8fr);
  gap:24px;
  max-width:1000px;
  margin:auto;
}
.chat-surface {
  background:white;
  border-radius:26px;
  padding:25px;
  min-height:470px;
  display:flex;
  flex-direction:column;
}
.chat-surface .messages {
  flex:1;
  max-height:430px;
  min-height:250px;
}
.chat-surface .chat-intro {
  background:var(--soft);
  border-radius:14px;
  padding:14px;
  font-size:14px;
}
.chat-surface .suggestions {
  margin:15px 0 0;
}
.chat-surface .suggestions button {
  font-size:12px;
  min-height:38px;
}
.chat-form {
  margin-top:15px;
}
.chat-form input {
  font-size:14px;
  padding:13px;
}
.chat-form button {
  background:var(--orange);
  color:#21133d;
  width:46px;
  flex-shrink:0;
}
.human-help {
  background:var(--purple);
  color:white;
  border-radius:23px;
  padding:25px;
  align-self:start;
}
.human-help h2 {
  font-size:23px;
  margin:13px 0;
}
.human-help p {
  font-size:13px;
  color:#e1d5ee;
  line-height:1.6;
}
.human-help .text-btn {
  color:white;
  text-decoration:underline;
  font-size:13px;
}
.chat-page .back {
  color:var(--violet);
}
.message.answer {
  font-size:14px;
}
.message.question {
  font-size:14px;
}
.chat-page .message a {
  color:var(--violet);
}
.summary-print {
  display:none;
}
.dialog-header h2 {
  font-size:22px;
}
.dialog-body {
  color:var(--ink);
}
.workspace-footer {
  padding:18px 0;
}
.workspace-footer .shell {
  display:flex;
  justify-content:space-between;
  gap:14px;
  color:#b9a9d0;
  font-size:11px;
}
.workspace-footer button {
  color:#d7c8eb;
  font-size:12px;
  padding:5px 10px;
  background:none;
}
.help-fab {
  display:none;
}
@media(min-width:1500px) {
  .hero-visual {
    min-height:650px;
  }
  .hero h1 {
    font-size:82px;
  }
}
@media(max-width:1100px) {
  .brand img {
    width:175px;
  }
  .nav {
    height:110px;
  }
  .hero {
    min-height:570px;
    gap:10px;
  }
  .hero-copy>p {
    font-size:21px;
    margin-bottom:35px;
  }
  .hero h1 {
    font-size:62px;
  }
  .hero-visual {
    min-height:570px;
  }
  .hero-reference {
    width:245%;
    left:-145%;
    top:-11%;
  }
  .capture-layout {
    gap:25px;
    grid-template-columns:minmax(0,1.8fr) minmax(260px,1fr);
  }
  .capture-tips {
    gap:25px;
  }
  .capture-tips b {
    font-size:18px;
  }
  .capture-tips small {
    font-size:13px;
  }
  .page-heading h1 {
    font-size:42px;
  }
  .reading {
    gap:45px;
    margin:55px 0 0;
  }
  .reading h1 {
    font-size:48px;
  }
  .timeline li {
    font-size:16px;
    padding:17px;
  }
  .answer-layout,.checklist-layout {
    grid-template-columns:minmax(0,1.8fr) minmax(270px,1fr);
  }
  .summary-panel {
    padding:22px 17px;
  }
  .fact-card>p {
    font-size:17px;
  }
  .summary-file {
    padding:14px 10px;
    gap:10px;
  }
  .date-value {
    font-size:30px;
  }
  .progress {
    gap:10px;
  }
  .progress li {
    font-size:14px;
    padding:8px 17px;
  }
}
@media(max-width:760px) {
  .shell {
    padding:0 20px;
  }
  .nav {
    height:92px;
    gap:15px;
  }
  .brand img {
    width:145px;
  }
  .nav-right {
    gap:14px;
  }
  .nav-right>.nav-link {
    display:none;
  }
  .nav-right>.btn {
    display:none;
  }
  .language button {
    width:30px;
    font-size:13px;
  }
  .hero {
    grid-template-columns:1fr;
    padding-top:15px;
    padding-bottom:30px;
    gap:25px;
  }
  .hero h1 {
    font-size:57px;
    line-height:1.12;
    margin-bottom:24px;
  }
  .hero-copy>p {
    font-size:21px;
    max-width:520px;
    margin-bottom:30px;
  }
  .hero-language {
    max-width:430px;
    margin-bottom:18px;
  }
  .hero-language>span {
    font-size:13px;
    gap:7px;
    width:100%;
  }
  .hero-language button {
    min-height:49px;
    font-size:16px;
  }
  .hero-actions>.btn {
    min-height:52px;
    font-size:16px;
  }
  .hero-copy>p.micro {
    font-size:13px;
  }
  .hero-visual {
    height:350px;
    min-height:350px;
    margin:0;
    border-radius:0 45px 0 0;
  }
  .hero-reference {
    width:200%;
    left:-100%;
    top:-20%;
  }
  .hero-photo-shade {
    background:linear-gradient(90deg,var(--purple),transparent 25%),linear-gradient(0deg,var(--purple) 0%,transparent 70%);
  }
  .hero-promise {
    bottom:0;
    left:20px;
  }
  .hero-promise strong {
    font-size:29px;
  }
  .hero-promise>span {
    font-size:10px;
  }
  .hero-promise p {
    margin:8px 0;
  }
  .workspace {
    padding:5px 0 30px;
  }
  .progress {
    gap:7px;
    flex-wrap:wrap;
    margin-bottom:28px;
  }
  .progress li {
    font-size:11px;
    padding:8px 12px;
    flex:none;
    gap:5px;
  }
  .progress li span {
    width:auto;
    font-size:11px;
  }
  .page-heading h1 {
    font-size:35px;
    line-height:1.12;
  }
  .page-heading p {
    font-size:15px;
  }
  .capture-tips {
    grid-template-columns:1fr;
    gap:10px;
    margin:20px 0 24px;
  }
  .capture-tips>span {
    padding:12px 15px;
    gap:12px;
  }
  .capture-tips b {
    font-size:17px;
  }
  .capture-tips small {
    font-size:12px;
  }
  .capture-layout,.answer-layout,.checklist-layout {
    grid-template-columns:1fr;
    gap:24px;
  }
  .panel {
    padding:22px;
    border-radius:25px;
  }
  .tabs {
    gap:8px;
    margin-bottom:20px;
  }
  .tab {
    font-size:11px;
    padding:10px;
    min-height:48px;
  }
  .tab .icon {
    display:none;
  }
  .upload-zone {
    min-height:220px;
    padding:22px 12px;
  }
  .upload-zone h3 {
    font-size:22px;
  }
  .upload-zone p {
    font-size:12px;
  }
  .upload-zone .btn {
    font-size:15px;
    padding:12px 25px;
  }
  .page-list {
    grid-template-columns:repeat(2,minmax(0,1fr));
    max-height:410px;
  }
  .page-thumb {
    height:165px;
  }
  .page-info small {
    font-size:11px;
  }
  .pages-panel .btn {
    font-size:14px;
    min-height:46px;
  }
  .page-controls .icon-btn {
    width:38px;
    min-height:38px;
  }
  .remove-page {
    width:32px;
    height:32px;
  }
  .empty-pages {
    min-height:135px;
  }
  .sample-strip {
    font-size:11px;
    flex-wrap:wrap;
  }
  .reading {
    grid-template-columns:1fr;
    gap:30px;
    margin:25px 0;
  }
  .reading-preview {
    display:none;
  }
  .reading h1 {
    font-size:43px;
  }
  .reading-copy>p {
    font-size:16px;
  }
  .timeline li {
    font-size:15px;
    padding:15px 13px;
    gap:12px;
  }
  .timeline small {
    font-size:11px;
  }
  .timeline .dot {
    width:26px;
    height:26px;
  }
  .summary-sidebar {
    position:static;
    gap:17px;
  }
  .summary-panel {
    padding:25px;
  }
  .summary-panel h2 {
    font-size:22px;
  }
  .summary-panel .btn {
    font-size:14px;
    min-height:48px;
  }
  .summary-file {
    padding:18px;
  }
  .fact-card {
    padding:20px;
    border-radius:23px;
  }
  .fact-card h2 {
    font-size:16px;
  }
  .fact-number {
    width:32px;
    height:32px;
  }
  .fact-card>p {
    font-size:16px;
  }
  .deadline-card {
    border-width:6px;
    padding:15px;
  }
  .date-value {
    font-size:29px;
  }
  .answer-actions {
    gap:10px;
    flex-wrap:wrap;
  }
  .answer-actions .btn {
    font-size:13px;
    padding:12px 18px;
  }
  .check-head h3 {
    font-size:23px;
  }
  .check-item {
    padding:20px;
    border-radius:23px;
  }
  .check-head {
    flex-wrap:nowrap;
  }
  .check-head p {
    font-size:13px;
  }
  .check-actions {
    flex-wrap:wrap;
    gap:10px;
  }
  .checklist-bottom {
    gap:12px;
  }
  .checklist-bottom>span {
    width:100%;
  }
  .chat-page {
    padding:20px 0 35px;
  }
  .chat-page h1 {
    font-size:34px;
  }
  .chat-layout {
    grid-template-columns:1fr;
  }
  .chat-surface {
    padding:18px;
    min-height:430px;
    border-radius:22px;
  }
  .chat-surface .messages {
    min-height:230px;
  }
  .human-help {
    padding:22px;
  }
  .chat-form input {
    font-size:13px;
  }
  .footer .shell {
    gap:15px;
  }
  .footer {
    padding:23px 0;
  }
  .workspace-footer .shell {
    flex-wrap:wrap;
  }
  .viewer-layout {
    grid-template-columns:1fr;
  }
  .hero-actions {
    gap:8px;
  }
  .hero-actions .text-btn {
    min-height:36px;
  }
}
@media(max-width:390px) {
  .shell {
    padding:0 15px;
  }
  .brand img {
    width:130px;
  }
  .hero h1 {
    font-size:49px;
  }
  .hero-copy>p {
    font-size:19px;
  }
  .progress {
    gap:5px;
  }
  .progress li {
    font-size:10px;
    padding:7px 9px;
  }
  .progress li span {
    font-size:10px;
  }
  .hero-visual {
    height:290px;
    min-height:290px;
  }
  .hero-reference {
    top:-14%;
  }
}
@media(prefers-reduced-motion:reduce) {
  .scan-line,.timeline .current .dot {
    animation:none;
  }
  .scan-line {
    top:50%;
  }
}
@media print {
  body {
    background:white!important;
    color:#111!important;
  }
  body>* {
    display:none!important;
  }
  body>.summary-print {
    display:block!important;
    padding:20px;
    font:12pt/1.5 Arial;
    color:#111;
  }
  .summary-print h1 {
    font-size:25pt;
    color:#21133d;
  }
  .summary-print h2 {
    font-size:17pt;
    color:#5127a4;
  }
  .summary-print section {
    break-inside:avoid;
    margin:20px 0;
  }
  .summary-print blockquote {
    border-left:3px solid #ff7c29;
    padding-left:12px;
    color:#444;
  }
  .summary-print footer {
    font-size:10pt;
    border-top:1px solid #ccc;
    margin-top:25px;
    padding-top:12px;
  }
}
.hero-reference {
  top:0;
  transform:translateY(-13.58%);
}
.capture-tips>span>span {
  display:block;
}
.timeline {
  max-width:none;
  width:100%;
}
.timeline li.complete .dot {
  background:#2cc357;
  border-color:white;
  color:white;
}
.paper-lines {
  min-height:90px;
}
.paper-lines i {
  flex-shrink:0;
}
.progress li.done span:after {
  content:"";
}
.fact-card header>.cite {
  margin-left:auto;
  font-size:12px;
  padding:8px 13px;
  white-space:nowrap;
}
.request-details summary,.other-dates summary {
  color:var(--violet);
  font-size:13px;
  cursor:pointer;
  padding:8px 0;
}
.deadline-line {
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
.deadline-line .date-value {
  flex:1;
  min-width:220px;
}
.deadline-line>.cite {
  margin:0;
}
.deadline-line .tag {
  margin:0;
}
.fact-card>p {
  color:var(--ink);
  font-weight:600;
}
.summary-panel>.btn {
  width:100%;
}
.check-head .tag {
  margin:7px 0;
}
@media(max-width:760px) {
  .fact-card header {
    flex-wrap:wrap;
  }
  .fact-card header>.cite {
    font-size:11px;
    margin-left:44px;
    min-height:35px;
  }
  .deadline-line .date-value {
    min-width:100%;
    font-size:28px;
  }
}
.deadline-line .date-value {
  flex-basis:100%;
  font-size:32px;
}
.review-candidates {
  border:1px solid #89749d;
  border-radius:14px;
  padding:13px 18px;
  margin:13px 0;
  color:#e7d8f6;
  font-size:13px;
}
.review-candidates summary {
  cursor:pointer;
}
.review-candidates p {
  font-size:12px;
  line-height:1.5;
}
.review-candidates .cite {
  font-size:12px;
}
.page-heading h1:focus:not(:focus-visible) {
  outline:0;
}
@media(max-width:450px) {
  .progress {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
  }
  .progress li {
    justify-content:center;
    font-size:12px;
    padding:9px;
  }
  .progress li span {
    font-size:12px;
  }
}
.hero-reference { clip-path: none; transform:none; mask-image:linear-gradient(to bottom,#000 0%,#000 64%,transparent 78%,transparent 100%); } h1[tabindex="-1"]:focus { outline: none; }
.hero-slide{position:absolute;inset:0;opacity:0;transition:opacity 1.2s ease;pointer-events:none}.hero-slide.active{opacity:1}.hero-photo-shade{background:linear-gradient(90deg,var(--purple),transparent 35%),linear-gradient(0deg,var(--purple) 0%,var(--purple) 23%,transparent 52%)}.example-date{position:absolute;bottom:55px;left:35px;width:198px}.example-date small{font-size:11px;color:#c2a5f7;letter-spacing:.04em}.example-date strong{display:block;font-size:42px;line-height:1.2}.example-date span{display:block;background:#56545e;border-radius:30px;text-align:center;font-size:11px;padding:6px;margin-top:5px}.hero-testimonial{position:absolute;right:20px;bottom:45px;width:200px;margin:0;text-align:right}.hero-testimonial p{font-size:24px;line-height:1.04;color:#bd9bf6;font-weight:700;margin:0 0 9px}.hero-testimonial strong{display:block;font-size:23px}.hero-testimonial>span{font-size:19px}.drag-handle{background:transparent;border:0;color:#5127a4;font-size:28px;cursor:grab;touch-action:none;min-width:44px;min-height:44px}.page-item[draggable]{cursor:grab}.page-item:active{cursor:grabbing}.tab:disabled{opacity:.45;cursor:not-allowed}.hero-copy{padding-top:0}.hero-visual{min-height:650px}.hero-reference{top:-18%}.brand img{width:214px;image-rendering:auto}@media(prefers-reduced-motion:reduce){.hero-slide{transition:none}}@media(max-width:700px){.hero-visual{min-height:510px;margin:0}.example-date{left:15px;bottom:60px;width:135px}.example-date strong{font-size:30px}.hero-testimonial{width:160px;right:10px;bottom:60px}.hero-testimonial p{font-size:19px}.hero-testimonial strong{font-size:18px}.hero-testimonial>span{font-size:14px}.hero-reference{width:225%;left:-125%;top:-12%}.hero-copy>p{margin-bottom:30px}}

/* Capture locks are visibly neutral, including hover and keyboard states. */
.tab:disabled,.tab:disabled:hover{background:#e6e3eb;color:#80798a;border-color:#d5cfdd;opacity:1;cursor:not-allowed}
.hero-visual{pointer-events:none;user-select:none}
.page-thumb .paper-lines{width:100%;max-width:none}
.upload-zone .upload-icon{height:auto;min-height:0;display:block;margin:0 0 12px;line-height:1}
.capture-panel .tabs{max-width:590px;margin:0 auto 28px}
.capture-tips b{font-size:24px;line-height:1.2}.capture-tips small{font-size:16px}
.capture-layout{grid-template-columns:minmax(0,2.22fr) minmax(300px,1fr);gap:46px}
.empty-pages{background:var(--soft);border:1px dashed var(--ink);border-radius:9px}
@media(max-width:900px){.capture-layout{grid-template-columns:1fr;gap:24px}.capture-tips b{font-size:18px}.capture-tips small{font-size:14px}}

.inline-source-image{position:relative;background:white;color:var(--ink)}
.inline-source-image>img{display:block;width:100%;height:auto}
.inline-source-image .highlight-box{position:absolute;border:4px solid var(--orange);border-radius:8px;background:#ff7c2925;pointer-events:none}
.inline-source blockquote{font-size:13px;margin:12px 0;border-left:3px solid var(--orange);padding-left:10px;line-height:1.5}
.inline-source-tools{display:flex;align-items:center;justify-content:space-between;padding:8px 0}
.inline-source-tools button{color:white}
.inline-source-tools .icon-btn:disabled{opacity:.35}
.progress li.done span:after{content:"."}

/* R34 supplied update: navigation, consolidated checklist and accessible states. */
.progress li {padding:0;overflow:hidden;}
.progress li button {border:0;background:transparent;color:inherit;padding:12px 20px;font-weight:700;border-radius:30px;min-height:44px;}
.progress li button:disabled {cursor:not-allowed;opacity:.68;}
.workspace-back {margin:-8px 0 18px;}
.workspace-back .text-btn {color:white;min-height:44px;}
.btn.small {color:var(--purple);}
.brand img {aspect-ratio:230/62;object-fit:contain;}
.summary-toolbar {display:flex;flex-wrap:wrap;align-items:center;gap:16px;margin:28px 0 18px;padding:24px;border-radius:24px;background:#fff;color:var(--ink);}
.summary-toolbar>div {flex:1;min-width:180px;}
.summary-toolbar p {margin:5px 0;color:#5e546c;font-size:14px;}
.summary-toolbar .light-outline {color:var(--ink);border-color:var(--ink);}
.sending-card details {padding:16px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere;}
.sending-card summary {cursor:pointer;line-height:1.5;font-weight:700;}
.checklist-main {min-width:0;}
.checklist-main .request-group {border-radius:28px;padding:28px;}
.check-item h3 {overflow-wrap:anywhere;}
.speech-controls {display:flex;gap:8px;margin:8px 0;}
.speech-controls .btn {flex:1;min-height:44px;}
.speech-controls .light-outline {color:var(--ink);border-color:var(--ink);}
.timeline .dot .icon {width:19px;height:19px;}
.summary-sidebar {min-width:0;}
.upload-zone.dragover {outline:3px solid var(--orange);outline-offset:-3px;}
@media(max-width:600px){.progress{gap:8px;flex-wrap:wrap;}.progress li button{font-size:13px;padding:10px 12px;}.summary-toolbar{padding:18px;}.summary-toolbar .btn{width:100%;}.checklist-main .request-group{padding:18px;}.brand img{max-width:170px;}.nav-right{gap:10px;}.page-heading h1{font-size:34px;}.check-actions{flex-wrap:wrap;}}
@media(max-height:760px){.summary-sidebar{position:static;}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important;}}
.fact-card>.review-candidates{margin:18px 0 0;padding:16px 0 0;border-top:1px solid #e7e2ef;background:transparent;color:var(--ink);}
.assistant-heading{display:grid;grid-template-columns:minmax(0,2.4fr) minmax(285px,1fr);align-items:end;gap:28px;}
.assistant-heading .chat-widget{margin-bottom:22px;}
@media(min-width:901px) and (max-width:1100px){.assistant-heading{grid-template-columns:minmax(0,1.8fr) minmax(270px,1fr);}}
.chat-widget{position:relative;z-index:5;min-width:0;}
.chat-badge{width:100%;border:0;padding:8px 16px;}
.chat-badge:hover,.chat-badge:focus-visible{background:var(--soft);}
.chat-widget .chat-panel{position:absolute;right:0;top:calc(100% + 8px);max-width:min(390px,calc(100vw - 32px));}
footer+.chat-widget{width:min(330px,calc(100% - 32px));margin:16px auto;}
footer+.chat-widget .chat-panel{top:auto;bottom:calc(100% + 8px);}
.chat-panel{width:390px;max-width:100%;max-height:min(680px,calc(100dvh - 110px));display:flex;flex-direction:column;background:white;color:var(--ink);border:1px solid #ded8e8;border-radius:22px;box-shadow:0 16px 50px #0005;overflow:hidden;}
.chat-panel>header{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;background:var(--purple);color:white;flex:none;}
.chat-panel>header>span{display:flex;align-items:center;gap:8px;font-weight:700;}
.chat-panel>header button{color:white;min-width:44px;min-height:44px;}
.chat-scroll{overflow:auto;overscroll-behavior:contain;padding:16px;}
.chat-panel .chat-intro{font-size:15px;margin:0 0 16px;line-height:1.5;}
.chat-panel .messages{max-height:none;overflow:visible;padding:0;}
.chat-panel .message{font-size:14px;line-height:1.5;overflow-wrap:anywhere;}
.chat-panel .message blockquote{margin:10px 0;padding-left:10px;border-left:3px solid var(--orange);font-size:13px;}
.chat-panel .suggestions{display:flex;flex-direction:column;gap:8px;}
.chat-panel .suggestions button{text-align:left;border:1px solid #d9cfeb;background:#f6f2fd;color:var(--ink);border-radius:12px;padding:11px 13px;min-height:44px;font-size:14px;}
.chat-panel .chat-form{flex:none;margin:0;padding:12px;border-top:1px solid #e7e2ef;}
@media(max-width:900px){.assistant-heading{grid-template-columns:minmax(0,1fr);gap:0;}.assistant-heading .chat-widget{justify-self:stretch;}.chat-widget .chat-panel{width:min(390px,100%);}}
.answer-layout>*{min-width:0;}
@media(max-width:900px){.answer-layout{grid-template-columns:minmax(0,1fr);}}
@media(max-width:450px){.fact-card header{flex-wrap:wrap;}.fact-card header h2{min-width:0;}.summary-sidebar .btn{white-space:normal;}.summary-file>div{min-width:0;}.summary-file strong{overflow-wrap:anywhere;}}
.startup-brand{min-height:40vh;display:grid;align-content:center;justify-items:center;gap:12px;color:white;background:var(--purple,#21133d)}
.startup-brand a{color:inherit}
.empty-pages>p,.empty-pages>small,.summary-file small,.checklist-layout .panel.review-candidates{color:#433650}

/* Original letter artwork and the guide layouts shared by the four stages. */
.brand img,.startup-brand img{height:auto;object-fit:contain}
.reading-assistant{display:flex;justify-content:flex-end;margin-bottom:1rem}
.reading-assistant .chat-widget{width:min(100%,340px)}
.chat-widget .chat-panel{width:min(365px,calc(100vw - 32px));background:white;color:#231342;border-radius:24px;z-index:40;transform-origin:top right}
.chat-panel>header{background:white;color:#231342;align-items:flex-start;padding:17px 18px 6px}
.chat-panel>header>span{display:grid;grid-template-columns:32px 1fr;gap:1px 8px;align-items:center}
.chat-panel>header>span>.icon{grid-row:span 2;width:32px;height:32px;border-radius:50%;padding:6px;background:#5225a3;color:white}
.chat-panel>header small{font-size:.78rem;font-weight:500}
.chat-panel>header .icon-btn{border-radius:50%;background:#231342;color:white;min-height:30px;min-width:30px;width:30px;height:30px;padding:6px}
.stage-pill{display:inline-block;border-radius:99px;background:#5225a3;color:#fff;padding:4px 10px}
.chat-scroll h3{font-size:1.16rem;line-height:1.25;margin:14px 0}
.chat-panel .suggestions{counter-reset:prompt}
.chat-panel .suggestions button{counter-increment:prompt;background:white;border-color:#d4c5ef;display:flex;align-items:center;gap:10px;color:#231342}
.suggestions button::before{content:counter(prompt);display:grid;place-items:center;flex:0 0 24px;height:24px;border-radius:50%;background:#f3effb;color:#482396}
.suggestions button::after{content:'›';margin-left:auto;color:#5225a3}
.chat-panel .chat-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px;margin:0 12px 5px;padding:8px;border:1px solid #8b799c;border-radius:14px}
.chat-form #question{width:100%;min-width:0}
.chat-form .voice-tools{display:flex;align-items:center;gap:6px;grid-column:1/-1}
.voice-tools>.text-btn{margin-right:auto;font-size:.8rem}.voice-tools>.icon-btn{border-radius:50%;background:#f0ebf7;color:#231342}
.voice-tools>.icon-btn[aria-pressed=true]{background:#231342;color:white}
.chat-disclaimer{text-align:center;line-height:1.3;padding:0 14px 10px;color:#57446a}
.voice-status{margin:3px 14px;color:#753900}
.export-options,.reminder-tabs{display:grid;gap:10px}.share-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.phone-field{display:grid;gap:6px;margin-top:16px}.phone-field input{border:1px solid #8b799c;border-radius:10px;padding:.8rem}
.share-preview{border-left:4px solid #ff8425;background:#f3eff9;padding:12px;max-height:38vh;overflow:auto}
.inline-source mark{background:#ffe2c8;color:#231342}.inline-source-image{overflow:auto;max-height:65vh}
@keyframes guide-open{from{opacity:0;transform:translateY(-10px) scaleY(.95)}to{opacity:1;transform:none}}
@keyframes guide-close{to{opacity:0;transform:translateY(-10px) scaleY(.95)}}
.chat-panel.opening{animation:guide-open .18s ease-out}.chat-panel.closing{animation:guide-close .14s ease-in both}
@media(max-width:700px){
 .chat-widget:has(.chat-panel){z-index:100}
 .chat-widget .chat-panel,footer+.chat-widget .chat-panel{position:fixed;inset:auto 0 0;width:100%;max-width:100%;max-height:min(85dvh,740px);border-radius:24px 24px 0 0;padding-bottom:env(safe-area-inset-bottom);transform-origin:bottom center}
 .chat-scroll{min-height:0}
 @keyframes guide-open{from{opacity:.5;transform:translateY(80px)}to{opacity:1;transform:none}}
 @keyframes guide-close{to{opacity:0;transform:translateY(80px)}}
}
@media(prefers-reduced-motion:reduce){.chat-panel.opening,.chat-panel.closing{animation:none}}

.chat-panel .voice-tools > .text-btn {
  width: auto;
  min-height: 36px;
  padding: 4px 10px;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  white-space: nowrap;
}
.sending-card summary .icon { width: 1em; height: 1em; vertical-align: middle; }
.workflow-popover { width: min(380px, calc(100vw - 32px)); }
.workflow-popover::backdrop { background: #23134214; backdrop-filter: none; }
.workflow-popover .dialog-header { align-items: flex-start; padding: 16px 18px 6px; }
.workflow-popover .dialog-header h2 { color: #5225a3; font-size: 1.15rem; }
.workflow-popover .dialog-header button { border-radius: 50%; color: white; background: #231342; }
.workflow-popover .dialog-body { padding: 0 18px 18px; }
.workflow-popover .export-options > button { justify-content: flex-start; background: #f3eff9; color: #231342; }
.workflow-popover .share-options { grid-template-columns: repeat(3, minmax(0,1fr)); }
.workflow-popover .share-options > button { border: 0; background: white; color: #231342; min-width: 0; padding: 5px 1px; display: flex; flex-direction: column; font-size: .82rem; }
.workflow-popover .share-options .icon { width: 42px; height: 42px; padding: 11px; border-radius: 50%; background: #f3eff9; }
.workflow-popover [data-channel=whatsapp] .icon { background: #e0f4e7; color: #087d3d; }
@media (min-width: 701px) {
  dialog.workflow-popover { position: fixed; margin: 0; inset: var(--popover-top,10vh) auto auto var(--popover-left,50vw); }
}
.speech-controls {
  display: grid;
  grid-template-columns: 36px minmax(24px,1fr) auto auto 30px;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 24px;
  background: #231342;
  color: white;
}
.speech-controls .audio-toggle, .speech-controls .audio-stop {
  display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%;
}
.audio-toggle { width: 34px; height: 34px; background: #ff8425; color: #231342; }
.audio-stop { width: 30px; height: 30px; color: white; background: transparent; }
.audio-stop .icon, .audio-toggle .icon { width: 15px; height: 15px; }
.audio-rate { color: white; background: transparent; border: 1px solid #9380ab; border-radius: 24px; padding: 2px 6px; }
.audio-wave { width: 100%; height: 24px; color: #b298e3; }
.speech-controls .audio-progress { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.summary-panel:has(.speech-controls) > [data-action=read-aloud],
.summary-toolbar:has(.speech-controls) > [data-action=read-aloud],
.summary-sidebar:has(> .speech-controls) > [data-action=read-aloud] { display: none; }

.camera-viewport { --guide-color:#ff8425; }
.camera-viewport:is([data-quality=dark],[data-quality=blur],[data-quality=align],[data-quality=close]) { --guide-color:#ffd54a; }
.camera-viewport[data-quality=ready] { --guide-color:#65db85; }
.camera-frame {
  border: 0; border-radius: 0;
  background:
    linear-gradient(var(--guide-color),var(--guide-color)) left top / 25px 4px,
    linear-gradient(var(--guide-color),var(--guide-color)) left top / 4px 25px,
    linear-gradient(var(--guide-color),var(--guide-color)) right top / 25px 4px,
    linear-gradient(var(--guide-color),var(--guide-color)) right top / 4px 25px,
    linear-gradient(var(--guide-color),var(--guide-color)) left bottom / 25px 4px,
    linear-gradient(var(--guide-color),var(--guide-color)) left bottom / 4px 25px,
    linear-gradient(var(--guide-color),var(--guide-color)) right bottom / 25px 4px,
    linear-gradient(var(--guide-color),var(--guide-color)) right bottom / 4px 25px;
  background-repeat: no-repeat;
}
.camera-hint { color: #231342; background: var(--guide-color); }
.phone-qr { width: min(200px,100%); height: auto; display: block; margin: auto; }

/* Candidate source review uses the original light-panel text palette. */
.typed-source-review { color:var(--ink); }
.typed-source-review summary { line-height:1.55; padding:12px 0; overflow-wrap:anywhere; }
