@font-face {
  font-family: "DM Sans";
  src: url("./fonts/dm-sans.woff") format("woff");
  font-weight: 100 1000;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("./fonts/instrument-serif-italic.woff") format("woff");
  font-style: italic;
  font-display: swap;
}
:root {
  --ink: #172923;
  --muted: #53665f;
  --green: #08644d;
  --line: #dbe3df;
  --bg: #f5f7f6;
  --card: #fff;
  --aqua: #a9f4d4;
  --rail: #fcfdfc;
  --red: #983d2b;
  font:
    16px/1.5 "DM Sans",
    Arial,
    sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #13a87c;
  outline-offset: 3px;
}
.skip {
  position: fixed;
  z-index: 5;
  left: 12px;
  top: -70px;
  background: white;
  padding: 12px;
}
.skip:focus {
  top: 6px;
}
.shell {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  min-height: 100vh;
}
.rail {
  background: var(--rail);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 23px 15px 19px;
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow-y: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  line-height: 1.3;
  letter-spacing: -0.065em;
  font-weight: 750;
  padding: 3px 8px;
}
.mark {
  width: 33px;
  height: 33px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2px;
  border-radius: 10px;
  background: linear-gradient(140deg, #174e3d, #082e25);
  box-shadow: inset 0 0 0 1px #0e3126;
}
.mark i {
  height: 11px;
  width: 4px;
  background: #bdffcf;
  transform: skew(-13deg);
  border-radius: 1px;
}
.mark i:nth-child(2) {
  height: 17px;
}
.mark i:nth-child(3) {
  height: 22px;
}
.workspace,
.rail-bottom {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.89rem;
  line-height: 1.35;
}
.workspace {
  margin: 37px 0 20px;
  padding: 0 6px 21px;
  border-bottom: 1px solid var(--line);
  font-weight: 650;
}
.workspace-mark {
  width: 33px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #e8efeb;
  color: #416652;
}
.workspace small,
.rail-bottom small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 450;
  margin-top: 3px;
}
.rail nav {
  display: grid;
  gap: 5px;
}
.rail nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  width: 100%;
  padding: 11px 13px;
  background: none;
  color: #4b5b54;
  border: 0;
  border-radius: 8px;
  font-weight: 540;
  font-size: 0.91rem;
}
.rail nav button.active {
  background: #deeee4;
  color: #174b35;
  font-weight: 680;
}
.rail nav button:hover {
  background: #eaf1ec;
}
.rail-bottom {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 19px 5px 0;
  font-weight: 600;
}
.rail-bottom > .glyph,
.rail-bottom > [data-icon] {
  color: #537263;
}
.glyph {
  width: 19px;
  height: 19px;
  display: inline-block;
  vertical-align: middle;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.stage {
  min-width: 0;
}
.top {
  height: 55px;
  border-bottom: 1px solid var(--line);
  background: #ffffffb3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 3.2vw, 56px);
  font-size: 0.84rem;
}
.top strong {
  font-weight: 570;
}
.crumb {
  color: var(--muted);
}
.top-brand {
  display: none;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #476256;
  font-size: 0.8rem;
}
.status i {
  width: 6px;
  height: 6px;
  background: #4d9474;
  border-radius: 50%;
}
main {
  max-width: 1570px;
  margin: auto;
  padding: 29px clamp(20px, 3.2vw, 56px) 65px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(2.05rem, 3vw, 3rem);
  font-weight: 620;
  letter-spacing: -0.067em;
  line-height: 1.07;
}
h2 {
  font-size: 1.23rem;
  line-height: 1.3;
  letter-spacing: -0.04em;
  font-weight: 650;
}
h3 {
  font-size: 1rem;
  font-weight: 660;
}
.page-head,
.section-head,
.drawer-head,
.line-between {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}
.page-head {
  margin: 0 0 23px;
}
.page-head p,
.section-head p,
.subtext {
  color: var(--muted);
  font-size: 0.94rem;
  margin-top: 5px;
}
.date-chip,
.chip,
.link-btn,
.secondary,
.close,
.pager button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  background: white;
  font-size: 0.875rem;
  border-radius: 8px;
  padding: 7px 11px;
}
.date-chip {
  white-space: nowrap;
  color: #46584f;
  font-size: 0.83rem;
  font-variant-numeric: tabular-nums;
}
.date-chip .glyph {
  width: 15px;
  height: 15px;
}
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: #032d24;

  color: #fff;
  border-radius: 17px;
  margin-bottom: 18px;
  box-shadow: 0 6px 17px -12px #193e35a6;
}
.hero-content {
  width: min(72%, 790px);
  padding: clamp(24px, 2.3vw, 36px);
}
.hero h2 {
  font-size: clamp(2.7rem, 3.9vw, 4.3rem);
  font-weight: 480;
  line-height: 1.03;
  letter-spacing: -0.067em;
  margin: 0 0 19px;
}
.hero h2 em {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.025em;
  color: #c5f5dc;
}
.composer {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #fff6;
  padding: 5px 6px 5px 13px;
  background: #f6faf7;
  border-radius: 9px;
  color: #387459;
  box-shadow: 0 2px 9px #052f215e;
}
.composer input {
  background: none;
  border: 0;
  outline: 0;
  min-width: 0;
  flex: 1;
  padding: 7px 0;
  color: var(--ink);
  font-size: 0.94rem;
}
.composer input::placeholder {
  color: #53665c;
}
.composer input:focus-visible {
  outline: 0;
}
.composer:focus-within {
  outline: 3px solid #8cdeb6;
  outline-offset: 3px;
}
.primary {
  border: 0;
  background: #123e32;
  color: white;
  border-radius: 6px;
  padding: 8px 17px;
  font-weight: 650;
  font-size: 0.875rem;
}
.primary:hover {
  background: #20614a;
}
.prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.prompts button {
  border: 1px solid #85b29a7a;
  background: #153e32db;
  color: #e4f8eb;
  border-radius: 999px;
  font-size: 0.81rem;
  padding: 4px 10px;
}
.prompts button:hover {
  background: #2d5a45;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin: 0 0 21px;
}
.metric {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  row-gap: 12px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
  padding: 16px 18px;
  text-align: left;
  box-shadow: 0 2px 5px #142f2410;
}
.metric:hover {
  border-color: #9bbbac;
  box-shadow: 0 4px 12px #164b3314;
}
.metric .m-label {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #485c52;
  font-size: 0.88rem;
  font-weight: 570;
}
.metric .tile {
  display: grid;
  place-items: center;
  color: #357458;
}
.metric .tile .glyph {
  width: 17px;
  height: 17px;
}
.metric b {
  font-size: clamp(1.85rem, 2.5vw, 2.7rem);
  line-height: 1.03;
  letter-spacing: -0.065em;
  font-weight: 560;
  font-variant-numeric: tabular-nums;
}
.microchart {
  width: clamp(48px, 5.6vw, 94px);
  height: 27px;
  display: flex;
  gap: 1px;
  align-items: flex-end;
  opacity: 0.82;
}
.microchart i {
  background: #58a582;
  flex: 1;
  min-width: 0;
  height: max(2px, calc(var(--level) * 100%));
  border-radius: 1px 1px 0 0;
}
.metric:nth-child(2) .microchart i {
  background: #8a93c6;
}
.metric:nth-child(3) .microchart i {
  background: #bf946b;
}
.columns {
  display: grid;
  grid-template-columns: minmax(0, 1.52fr) minmax(248px, 1fr);
  gap: 16px;
  align-items: start;
}
.card {
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 2px 6px #1b332409;
  border-radius: 14px;
  overflow: hidden;
  min-width: 0;
}
.section-head {
  padding: 19px 20px 17px;
  border-bottom: 1px solid var(--line);
}
.section-head p {
  font-size: 0.855rem;
}
.link-btn {
  color: #375848;
  background: #fff;
  font-size: 0.82rem;
  font-weight: 620;
  white-space: nowrap;
  padding: 6px 10px;
}
.link-btn:hover,
.secondary:hover,
.chip:hover,
.pager button:hover {
  background: #f0f6f1;
}
.table-wrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 0.91rem;
}
th {
  font-size: 0.76rem;
  font-weight: 600;
  color: #566860;
  background: #f7f9f7;
}
th,
td {
  padding: 10px 16px;
  border-bottom: 1px solid #e7ede8;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #f9fbf9;
}
.plain {
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  font: inherit;
  color: #21583f;
  font-weight: 600;
  text-decoration: none;
}
.plain:hover {
  text-decoration: underline;
}
.vendor-name {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #23362c;
}
.monogram {
  width: 29px;
  height: 29px;
  display: inline-grid;
  place-items: center;
  flex: none;
  border-radius: 8px;
  font-size: 0.71rem;
  font-weight: 720;
  letter-spacing: 0.01em;
}
.tone-0 {
  color: #4b5488;
  background: #eeedf9;
}
.tone-1 {
  color: #795035;
  background: #f8ecdc;
}
.tone-2 {
  color: #32644d;
  background: #e2f0e6;
}
.tone-3 {
  color: #466378;
  background: #e5eff5;
}
.tone-4 {
  color: #7d485c;
  background: #f4e8ed;
}
.num {
  font-variant-numeric: tabular-nums;
  font-weight: 630;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 0.78rem;
  font-weight: 600;
  background: #eff2ef;
  color: #485d51;
  white-space: nowrap;
}
.tag.final,
.tag.problem {
  background: #fff0ea;
  color: #93442d;
}
.tag.escalate,
.tag.warn {
  background: #fff2d5;
  color: #795419;
}
.tag.good {
  color: #2c674e;
  background: #e4f4ea;
}
.tag.blue {
  color: #3d6183;
  background: #e9f0f9;
}
.feed {
  padding: 0 18px;
}
.feed button {
  display: block;
  position: relative;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid #e4ebe5;
  background: none;
  padding: 13px 1px;
}
.feed button:hover {
  background: #f7faf7;
}
.feed button:last-child {
  border-bottom: 0;
}
.feed-title {
  display: block;
  font-size: 0.94rem;
  font-weight: 640;
  line-height: 1.35;
  margin: 5px 0 2px;
}
.feed button > .mini {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mini {
  color: var(--muted);
  font-size: 0.79rem;
}
.foot {
  font-size: 0.82rem;
  color: var(--muted);
  padding: 12px 19px;
  border-top: 1px solid var(--line);
}
.activity {
  display: flex;
  align-items: end;
  gap: 3px;
  height: 47px;
  margin: 9px 0 4px;
  background: repeating-linear-gradient(
    0deg,
    #d9e7dd 0 1px,
    transparent 1px 16px
  );
}
.activity span {
  background: linear-gradient(#558b6f, #96c8ac);
  flex: 1;
  min-height: 1px;
  border-radius: 2px 2px 0 0;
}
.activity-note {
  padding: 15px 19px;
  background: #f8faf8;
  border-top: 1px solid var(--line);
}
.activity-note .line-between {
  font-size: 0.8rem;
  color: var(--muted);
}
.answer {
  margin: -4px 0 22px;
  border-left: 4px solid #548a63;
}
.answer-body {
  padding: 18px 20px;
}
.answer-body h2 {
  margin: 8px 0 6px;
}
.answer-body p {
  color: #435a4c;
  font-size: 0.94rem;
}
.asked {
  color: #5a6b5f;
  font-size: 0.83rem;
}
.toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.toolbar input,
.toolbar select {
  padding: 9px 12px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 7px;
  min-width: 0;
}
.toolbar input {
  width: min(100%, 410px);
  flex: 1 1 230px;
}
.pager {
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: flex-end;
  padding: 12px 15px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
.record {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.record small {
  display: block;
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 3px;
}
.report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.pad {
  padding: 18px 20px;
}
.report-grid p {
  color: var(--muted);
  font-size: 0.9rem;
}
.big {
  font-size: 2.5rem;
  font-weight: 650;
  letter-spacing: -0.065em;
  margin: 8px 0;
}
.bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  font-size: 0.88rem;
}
.bar-row span:first-child {
  min-width: 95px;
}
.bar {
  height: 7px;
  flex: 1;
  border-radius: 5px;
  background: #edf2eb;
  overflow: hidden;
}
.bar i {
  height: 100%;
  display: block;
  background: #739f78;
}
.muted-box {
  background: #f4f7f2;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.9rem;
  color: #42594b;
}
.empty,
.loading {
  padding: 30px;
  color: var(--muted);
}
.close {
  height: 34px;
  width: 34px;
  flex: none;
}
.drawer-head {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
  padding: 17px 21px;
  border-bottom: 1px solid var(--line);
}
dialog {
  border: 0;
  padding: 0;
  color: var(--ink);
  margin: 0 0 0 auto;
  height: 100dvh;
  max-height: none;
  width: min(620px, 100vw);
  max-width: 100vw;
  box-shadow: -12px 0 48px #183f2b26;
}
dialog::backdrop {
  background: #102b2577;
}
.drawer-main {
  padding: 23px;
  overflow-wrap: anywhere;
}
.drawer-main > section {
  margin: 21px 0;
}
.drawer-main h2 {
  font-size: 1.6rem;
  line-height: 1.16;
  margin: 9px 0;
}
.drawer-main h3 {
  margin-bottom: 8px;
}
.drawer-main blockquote {
  margin: 0;
  border-left: 3px solid #82b48b;
  padding: 10px 14px;
  background: #f4f8f2;
  font-size: 0.95rem;
}
.drawer-main code,
.code {
  font:
    0.8rem ui-monospace,
    monospace;
}
.file {
  border: 1px solid var(--line);
  border-radius: 7px;
  margin-top: 7px;
  padding: 10px 12px;
}
.file summary {
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 550;
}
.field-grid {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 5px 12px;
  font-size: 0.89rem;
  margin: 10px 0;
}
.field-grid dt {
  color: var(--muted);
}
.field-grid dd {
  margin: 0;
}
.tag-list {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.spaced {
  margin-top: 16px;
}
.doc-why,
.evidence-lines {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 7px;
}
.history {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.history button {
  font-size: 0.77rem;
}
.answer .table-wrap {
  max-height: 350px;
  overflow: auto;
}
.asset-note {
  font-size: 0.83rem;
  color: var(--muted);
  padding-top: 8px;
}
.code {
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
.case-trail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 8px;
  margin-top: 14px;
}
.case-trail button {
  text-align: left;
  background: #f7faf5;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}
.case-trail button:hover {
  border-color: #7eae88;
}
.case-trail strong {
  font-size: 0.89rem;
}
.trail-quote {
  font-size: 0.84rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.case-trail .code {
  margin-top: auto;
}

.repo-link {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #405c4c;
  font-size: 0.83rem;
  padding: 12px 7px;
  text-decoration: none;
}
.repo-link:hover {
  text-decoration: underline;
}
.repo-link:not([hidden]) + .rail-bottom {
  margin-top: 0;
}
@media (min-width: 1500px) {
  main {
    padding-top: 38px;
  }
}
@media (max-width: 1160px) {
  .shell {
    grid-template-columns: 197px minmax(0, 1fr);
  }
  .rail {
    padding-inline: 10px;
  }
  .section-head {
    padding: 15px;
  }
  .hero-content {
    width: 76%;
  }
  .columns {
    grid-template-columns: minmax(0, 1.4fr) minmax(221px, 1fr);
  }
  th,
  td {
    padding: 9px 11px;
  }
  .metric {
    padding: 14px;
  }
  .metric .m-label {
    font-size: 0.84rem;
  }
}
@media (max-width: 900px) {
  .shell {
    display: block;
  }
  .rail {
    position: relative;
    height: auto;
    display: block;
    border: 0;
    border-bottom: 1px solid var(--line);
    padding: 13px 20px 0;
    overflow: visible;
  }
  .brand {
    font-size: 1.29rem;
    padding: 0;
  }
  .mark {
    width: 28px;
    height: 28px;
    border-radius: 8px;
  }
  .workspace,
  .rail-bottom,
  .top {
    display: none;
  }
  .rail nav {
    display: flex;
    overflow-x: auto;
    gap: 4px;
    margin-top: 10px;
  }
  .rail nav button {
    width: auto;
    flex: none;
    white-space: nowrap;
    padding: 9px 12px;
    font-size: 0.86rem;
    gap: 7px;
    border-radius: 7px 7px 0 0;
  }
  .rail nav button.active {
    box-shadow: inset 0 -2px #297a54;
  }
  .rail nav button .glyph {
    width: 16px;
  }
  .rail .repo-link {
    position: absolute;
    right: 20px;
    top: 15px;
    margin: 0;
    padding: 3px;
  }
  .repo-link .glyph {
    width: 15px;
  }
  main {
    padding: 23px 20px 48px;
  }
  .hero-content {
    width: 74%;
  }
}
@media (max-width: 650px) {
  .page-head {
    display: block;
    margin: 0 0 15px;
  }
  .date-chip {
    margin-top: 8px;
    padding: 0;
    border: 0;
    background: none;
  }
  .hero {
    border-radius: 12px;
    background-position: 65% top;
    background-size: auto 100%;
    margin-bottom: 10px;
  }
  .hero-content {
    width: 100%;
    padding: 19px 15px 14px;
    background: linear-gradient(90deg, #00291fed 0%, #00291f8c 60%, #00291f45);
  }
  .hero h2 {
    font-size: 2.8rem;
    margin-bottom: 14px;
  }
  .composer {
    padding-left: 8px;
    gap: 5px;
  }
  .composer input {
    font-size: 1rem;
  }
  .composer > .glyph {
    display: none;
  }
  .prompts {
    gap: 5px;
    margin-top: 9px;
  }
  .prompts button {
    font-size: 0.77rem;
    padding: 5px 8px;
  }
  .metrics {
    gap: 6px;
    margin-bottom: 13px;
  }
  .metric {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 7px;
    padding: 10px 8px;
    border-radius: 8px;
  }
  .metric .m-label {
    display: block;
    font-size: 0.77rem;
    line-height: 1.25;
    min-height: 2.5em;
  }
  .metric .tile,
  .microchart {
    display: none;
  }
  .metric b {
    font-size: 1.75rem;
  }
  .columns,
  .report-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .rail {
    padding-inline: 14px;
  }
  .rail nav {
    margin-inline: -6px;
    gap: 2px;
  }
  .rail nav button {
    padding: 10px 7px;
    font-size: 0.8rem;
  }
  .rail nav button span {
    display: none;
  }
  main {
    padding: 19px 13px 40px;
  }
  .toolbar {
    gap: 6px;
  }
  .toolbar select {
    max-width: 100%;
  }
  .drawer-main {
    padding: 17px;
  }
  .answer-body,
  .section-head {
    padding: 14px;
  }
  .monogram {
    width: 25px;
    height: 25px;
  }
  .vendor-name {
    gap: 6px;
  }
  .page-head p {
    font-size: 0.9rem;
  }
}

/*
 * Ledgerdesk AI conversation layer.
 * Model prose and deterministic tool output are presented as two distinct things:
 * the prose is interpretation, the tool cards are evidence.
 */
.ai-availability {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 2px 2px;
  border-top: 1px solid var(--line);
  margin-top: 16px;
}
.ai-availability .mini {
  flex: 1 1 240px;
  min-width: 0;
}
.ai-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.ai-meta .mini {
  min-width: 0;
}
.ai-prose {
  margin: 12px 0 0;
  line-height: 1.62;
  color: var(--ink);
}
.ai-prose:first-of-type {
  margin-top: 14px;
}
.ai-progress {
  color: var(--muted);
}
.ai-error {
  margin-top: 12px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  border-radius: 8px;
  background: var(--bg);
  color: var(--red);
}
.ai-sources {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.ai-sources > b {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.ai-sources .chip {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  max-width: 100%;
  text-align: left;
}
.ai-sources .chip .mini {
  color: var(--muted);
  font-size: 0.72rem;
}
