.library-page {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 32px 38px 44px;
  background: #f6f8f7;
  font-size: 16px;
  line-height: 1.65;
}
.library-hero {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  margin: 10px 0 30px;
}
.library-emblem {
  flex: 0 0 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: #dfede6;
  color: #2c6b4c;
}
.library-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #587365;
  font-size: 14px;
  font-weight: 500;
}
.library-hero h2 {
  margin: 8px 0 10px;
  font-size: clamp(23px, 2.4vw, 32px);
  font-weight: 600;
  letter-spacing: -0.7px;
  line-height: 1.35;
}
.library-hero p {
  max-width: 620px;
  color: #65716a;
  margin: 0;
}
.library-entry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 34px;
}
.library-entry-grid > button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  background: white;
  color: #365e49;
  border: 1px solid #dce5df;
  border-radius: 12px;
  padding: 20px 18px;
  min-width: 0;
}
.library-entry-grid strong {
  font-size: 16px;
  color: #293d32;
  font-weight: 600;
}
.library-entry-grid span {
  font-size: 14px;
  color: #67766d;
  line-height: 1.6;
}
.library-entry-grid > button:hover,
.library-card:hover {
  border-color: #80a88f;
  box-shadow: 0 3px 14px #193d2710;
}
.library-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 15px;
}
.library-section-heading h3 {
  font-size: 17px;
  margin: 0;
  font-weight: 600;
}
.library-section-heading > span {
  font-size: 14px;
  color: #69786d;
}
.library-card-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.library-card {
  display: block;
  text-align: left;
  color: var(--text);
  background: #fff;
  border: 1px solid #e0e6e2;
  padding: 21px;
  border-radius: 12px;
  min-width: 0;
}
.library-card-title {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.library-card-title > svg {
  color: #5a8268;
  flex-shrink: 0;
  margin-top: 3px;
}
.library-card-title > strong {
  flex: 1;
  font-size: 16px;
  font-weight: 550;
  line-height: 1.6;
}
.library-card-title > span {
  color: #6e7c72;
  font-size: 13px;
}
.library-card > p {
  color: #67736b;
  font-size: 15px;
  line-height: 1.8;
  margin: 14px 0 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.library-card footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #738176;
  font-size: 13px;
}
.library-card footer > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.library-card footer time {
  flex-shrink: 0;
}
.library-private-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 21px 0 3px;
  color: #607567;
}
.library-private-note svg {
  flex-shrink: 0;
  margin-top: 4px;
}
.library-private-note p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
}
.library-demo-note {
  color: #7b6d50;
  background: #f4f0e6;
  border: 1px solid #e9e2cf;
  border-radius: 8px;
  padding: 12px 15px;
  font-size: 14px;
  margin: 20px 0 0;
}
.library-sidebar-actions {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  padding: 9px 15px 13px;
}
.library-sidebar-actions .button {
  font-size: 14px;
}
.library-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 17px 14px;
}
.library-filters button {
  border: 1px solid #dce2de;
  border-radius: 6px;
  background: #f8faf8;
  color: #68776e;
  padding: 5px 9px;
  font-size: 14px;
}
.library-filters button.active {
  background: #dfede3;
  color: #315e43;
  border-color: #c7ddcf;
}
.library-more {
  margin: 18px auto;
  display: flex;
}
.library-detail {
  background: white;
}
.library-detail > h1 {
  font-size: clamp(23px, 2.8vw, 30px);
  line-height: 1.4;
  margin: 17px 0 13px;
  overflow-wrap: anywhere;
}
.library-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 23px;
}
.library-tags > span {
  background: #eef4f0;
  color: #5e7867;
  border-radius: 5px;
  padding: 3px 9px;
  font-size: 14px;
}
.library-content {
  color: #35463b;
  line-height: 1.9;
  font-size: 16px;
  overflow-wrap: anywhere;
}
.library-provenance {
  background: #f5f8f6;
  padding: 18px 20px;
  border: 1px solid #e2e9e4;
  border-radius: 10px;
  margin: 30px 0 23px;
}
.library-provenance > div {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #54705e;
}
.library-provenance strong {
  font-size: 15px;
  font-weight: 550;
}
.library-provenance p {
  font-size: 15px;
  margin: 9px 0 4px;
}
.library-provenance small {
  font-size: 14px;
  color: #718075;
}
.library-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.library-footnote {
  color: #6c7a70;
  font-size: 14px;
  line-height: 1.8;
  margin: 16px 0;
}
.library-preview,
.library-versions details {
  border: 1px solid #e1e8e3;
  border-radius: 8px;
  margin: 14px 0;
  padding: 14px 17px;
}
.library-preview summary,
.library-versions summary {
  cursor: pointer;
  font-size: 15px;
  color: #3f624c;
}
.library-preview .library-content,
.library-versions .library-content {
  margin-top: 17px;
  max-height: 42vh;
  overflow-y: auto;
}
.robot-reply-state {
  display: block;
  font-size: 16px;
  color: #3c614b;
  margin-bottom: 12px;
}
@media (max-width: 1100px) {
  .library-entry-grid {
    grid-template-columns: 1fr;
  }
  .library-entry-grid > button {
    display: grid;
    grid-template-columns: 28px 1fr;
    column-gap: 12px;
    row-gap: 3px;
    padding: 15px 18px;
  }
  .library-entry-grid > button > svg {
    grid-row: span 2;
    align-self: center;
  }
  .library-card-list {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 680px) {
  .library-page {
    padding: 22px 20px 35px;
  }
  .library-hero {
    gap: 14px;
  }
  .library-emblem {
    flex-basis: 48px;
    height: 48px;
    border-radius: 14px;
  }
  .library-emblem svg {
    width: 26px;
    height: 26px;
  }
  .library-eyebrow {
    font-size: 13px;
  }
  .library-hero p {
    font-size: 15px;
  }
  .library-detail-actions {
    flex-direction: column;
  }
  .library-section-heading {
    align-items: baseline;
  }
}

.demo-mode-label {
  color: #6c714e;
  font-size: 13px;
  padding: 4px 9px;
  background: #eef0e3;
  border-radius: 5px;
}
#library-edit-form,
#library-capture-form,
#library-attach-form {
  font-size: 16px;
}
@media (max-width: 520px) {
  .desktop-download-bar {
    gap: 5px;
    padding-inline: 10px;
  }
  .desktop-download-bar > span:first-child {
    display: none;
  }
  .demo-mode-label {
    font-size: 12px;
  }
}

/* The archive has one first action: bring a useful conversation, then review it. */
.library-page:not(.library-detail) {
  background: #f6f8f5;
}
.library-hero {
  padding: 6px 0 10px;
}
.library-hero .library-eyebrow {
  font-size: 11px;
  letter-spacing: 1.8px;
  color: #6f8978;
}
.library-hero h2 {
  font-size: clamp(26px, 2.5vw, 35px);
  font-weight: 600;
  margin: 11px 0 14px;
}
.library-hero p {
  font-size: 16px;
  line-height: 1.9;
  max-width: 590px;
}
.archive-mobile-break {
  display: none;
}
.archive-entry-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 15px;
}
.archive-entry-heading h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}
.archive-entry-heading > span {
  font-size: 13px;
  color: #7a897d;
}
.archive-entry-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
  margin-bottom: 8px;
}
.archive-entry-grid > button {
  padding: 21px 16px;
  border-radius: 13px;
  min-height: 150px;
  display: flex;
  gap: 12px;
}
.archive-entry-grid > button > svg {
  color: #5a8265;
}
.archive-entry-grid strong {
  margin-top: 4px;
}
.archive-entry-grid span {
  font-size: 13px;
  line-height: 1.75;
}
.archive-secondary-entry {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 15px;
  margin: 12px 0 31px;
}
.archive-secondary-entry .button {
  font-size: 13px;
  padding-inline: 1px;
  color: #587560;
}
.library-section-heading > div > span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: #768477;
}
.archive-view-switch {
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: 8px;
  background: #eaf0e9;
  gap: 3px;
}
.archive-view-switch button {
  border: 0;
  padding: 7px 13px;
  background: transparent;
  border-radius: 6px;
  font-size: 13px;
  color: #6a7f6c;
  min-height: 36px;
}
.archive-view-switch button.active {
  background: white;
  color: #3e6449;
  box-shadow: 0 1px 4px #2c482e12;
}
.library-card {
  border-color: #e0e7df;
  border-radius: 13px;
  padding: 21px 23px;
}
.library-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: #7b8b7f;
  margin-bottom: 13px;
}
.library-card-meta > span {
  display: block;
  color: #59765e;
  background: #f0f5ee;
  padding: 2px 8px;
  border-radius: 5px;
}
.library-card-meta time {
  padding-top: 2px;
}
.library-card footer > span:first-child {
  display: flex;
  align-items: center;
  gap: 6px;
}
.library-card footer > span > svg {
  flex-shrink: 0;
}
.library-card footer > .archive-tag-preview {
  flex: 0 0 auto;
  max-width: 25%;
  font-size: 12px;
  border: 1px solid #e7ece6;
  border-radius: 4px;
  padding: 0 5px;
}
.library-source-filter {
  padding: 0 17px 12px;
  font-size: 13px;
  color: #7b897e;
}
.library-source-filter summary {
  cursor: pointer;
  min-height: 24px;
}
.library-source-filter .library-filters {
  padding: 10px 0 0;
}
.library-source-filter .library-filters button {
  font-size: 12px;
}
.library-page button:focus-visible,
.library-filters button:focus-visible,
.archive-modal button:focus-visible {
  outline: 3px solid #599a72;
  outline-offset: 3px;
}
.library-detail .library-eyebrow {
  flex-wrap: wrap;
}
.archive-source-coverage {
  font-size: 14px !important;
  color: #6d7d71;
  line-height: 1.8;
}
.archive-timeline {
  padding: 4px 0;
}
.archive-timeline-event {
  display: grid;
  grid-template-columns: 130px 28px 1fr;
  column-gap: 18px;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 0 0 26px;
  position: relative;
  color: #324c3a;
}
.archive-timeline-event:before {
  content: '';
  width: 1px;
  position: absolute;
  left: 161px;
  top: 25px;
  bottom: 0;
  background: #dbe4d9;
}
.archive-timeline-event:last-child:before {
  display: none;
}
.archive-timeline-event time {
  padding-top: 4px;
  font-size: 12px;
  color: #7a8b7d;
  line-height: 1.7;
}
.archive-timeline-dot {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid #d3e1d2;
  border-radius: 50%;
  background: #ecf3e9;
  color: #5b8362;
  z-index: 1;
}
.archive-timeline-copy {
  display: block;
  padding: 17px 20px;
  background: white;
  border: 1px solid #e0e7de;
  border-radius: 11px;
}
.archive-timeline-copy strong {
  display: block;
  font-size: 16px;
  margin-top: 5px;
  font-weight: 550;
}
.archive-timeline-copy small {
  font-size: 12px;
  color: #78907a;
}
.archive-timeline-copy p {
  font-size: 14px;
  color: #6b7c6d;
  line-height: 1.75;
  margin: 9px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.archive-timeline-copy > span {
  display: block;
  font-size: 12px;
  margin-top: 9px;
  color: #8a988b;
}
.archive-modal {
  color: #364b3e;
  font-size: 16px;
  line-height: 1.7;
}
.archive-modal h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
}
.archive-lead {
  font-size: 16px;
  color: #64786a;
  line-height: 1.8;
  margin: 5px 0 21px;
}
.archive-credit-notice {
  padding: 15px 17px;
  border: 1px solid #dce7d8;
  border-radius: 9px;
  background: #f2f7ee;
  margin: 16px 0 22px;
  color: #5e7856;
}
.archive-credit-notice strong {
  display: block;
  font-size: 14px;
  font-weight: 550;
}
.archive-credit-notice p {
  font-size: 13px;
  line-height: 1.8;
  margin: 7px 0;
  color: #7a8c72;
}
.archive-credit-notice > span {
  display: block;
  font-size: 14px;
  font-weight: 500;
}
.archive-credit-notice small {
  display: block;
  color: #a28a59;
  margin-top: 8px;
  font-size: 13px;
}
.archive-credit-result {
  font-size: 13px;
  color: #6e845f;
  margin: 12px 0;
  line-height: 1.8;
}
.archive-mode-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  margin: 3px 0 18px;
}
.archive-mode-tabs > button {
  display: flex;
  flex-direction: column;
  gap: 7px;
  justify-content: center;
  align-items: center;
  min-height: 74px;
  padding: 10px 5px;
  border: 1px solid #e0e7e0;
  border-radius: 10px;
  background: white;
  color: #708073;
  font-size: 13px;
}
.archive-mode-tabs > button.active {
  background: #eef5ee;
  color: #3c6949;
  border-color: #7da789;
}
.archive-demo-banner {
  color: #7c6b4a;
  background: #f7f3e8;
  border: 1px solid #e8dfca;
  border-radius: 9px;
  font-size: 14px;
  padding: 13px 16px;
  line-height: 1.7;
  margin: 13px 0 20px;
}
.archive-field-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 14px;
}
.archive-modal .field input,
.archive-modal .field textarea,
.archive-modal .field select,
.archive-segment textarea,
.archive-segment select,
#library-edit-form input,
#library-edit-form select,
#library-edit-form textarea {
  font-size: 16px;
}
.archive-modal .field > span > small,
#library-edit-form .field > span > small {
  margin-left: 8px;
  color: #8b958d;
  font-size: 12px;
  font-weight: 400;
}
.archive-modal textarea {
  line-height: 1.8;
  resize: vertical;
}
.archive-dropzone {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 8px;
  padding: 26px 18px;
  border: 1.5px dashed #b8cdbb;
  border-radius: 12px;
  background: #f7faf5;
  position: relative;
  cursor: pointer;
  text-align: center;
  margin: 0 0 12px;
}
.archive-dropzone > span {
  color: #74947a;
  margin-bottom: 4px;
}
.archive-dropzone strong {
  font-size: 16px;
  font-weight: 550;
}
.archive-dropzone small {
  font-size: 13px;
  color: #809184;
  line-height: 1.6;
}
.archive-dropzone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.archive-dropzone:focus-within {
  outline: 3px solid #599a72;
  outline-offset: 3px;
}
.archive-file-notice {
  font-size: 13px;
  color: #64816b;
  margin: 8px 0 14px;
}
.archive-file-list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
}
.archive-file-list li {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 0;
  border-bottom: 1px solid #e9eee9;
}
.archive-file-list li > img {
  width: 42px;
  height: 56px;
  border-radius: 5px;
  object-fit: cover;
  border: 1px solid #e0e7df;
  flex-shrink: 0;
}
.archive-file-icon {
  width: 42px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #73907b;
  background: #f1f6ef;
  border-radius: 7px;
  flex-shrink: 0;
}
.archive-file-list li > div:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.archive-file-list strong {
  font-size: 14px;
  display: block;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.archive-file-list li > div > span {
  font-size: 12px;
  display: block;
  color: #89968b;
  margin-top: 4px;
}
.archive-file-actions {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
}
.archive-file-actions .button {
  font-size: 12px;
  padding: 8px;
  min-width: 38px;
  min-height: 40px;
}
.archive-file-actions button:disabled {
  opacity: 0.3;
  cursor: default;
}
.archive-privacy-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #7b8b7c;
  line-height: 1.8;
  margin: 15px 0 3px;
}
.archive-privacy-line > svg {
  flex-shrink: 0;
  margin-top: 4px;
}
.archive-handoff-inline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 17px;
  border: 1px solid #e0e8de;
  border-radius: 9px;
  background: #f5f8f2;
  font-size: 14px;
  margin-bottom: 20px;
}
.archive-simple-steps {
  list-style: none;
  margin: 8px 0 24px;
  padding: 0;
}
.archive-simple-steps li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0 0 19px;
}
.archive-simple-steps li > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e9f2e6;
  color: #668465;
  font-size: 13px;
  flex: 0 0 28px;
}
.archive-simple-steps strong {
  font-size: 16px;
  font-weight: 550;
}
.archive-simple-steps p {
  font-size: 14px;
  color: #7b887d;
  margin: 4px 0 0;
}
.archive-step-heading {
  margin: 4px 0 23px;
}
.archive-step-heading > span {
  font-size: 12px;
  color: #66856b;
  letter-spacing: 1px;
}
.archive-step-heading h3 {
  margin: 8px 0;
}
.archive-step-heading p {
  color: #7a887c;
  font-size: 14px;
  margin: 0;
}
.archive-coverage {
  background: #f4f7f1;
  border: 1px solid #e3e9de;
  border-radius: 9px;
  padding: 13px 16px;
  color: #72816e;
  font-size: 13px;
  line-height: 1.8;
  margin: 14px 0;
}
div.archive-coverage {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}
.archive-coverage > svg {
  flex-shrink: 0;
  margin-top: 3px;
}
.archive-coverage p {
  flex: 1;
  margin: 0;
  min-width: 160px;
}
.archive-warnings {
  border-left: 3px solid #dbbe7e;
  background: #faf7ee;
  padding: 12px 15px 12px 32px;
  margin: 14px 0;
  color: #8a764e;
  font-size: 14px;
  line-height: 1.8;
}
.archive-segments,
.archive-originals {
  border: 1px solid #e1e8dd;
  border-radius: 9px;
  padding: 13px 16px;
  margin: 16px 0;
}
.archive-segments summary,
.archive-originals summary {
  cursor: pointer;
  min-height: 24px;
  font-size: 14px;
  color: #577a5e;
}
.archive-segment {
  margin-top: 15px;
}
.archive-segment > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
  color: #7f8b80;
  font-size: 12px;
}
.archive-segment label {
  font-size: 13px;
}
.archive-segment select {
  padding: 5px 8px;
  border: 1px solid #dae4d5;
  border-radius: 6px;
  background: white;
  color: #566e55;
  margin-left: 8px;
}
.archive-segment textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #dfe7da;
  border-radius: 7px;
  color: #3d513e;
  padding: 10px 12px;
}
.archive-originals > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  font-size: 14px;
  margin-top: 10px;
  border-top: 1px solid #e7ede2;
  padding-top: 9px;
}
.archive-originals > div > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.archive-originals small {
  display: block;
  font-size: 12px;
  color: #8a9788;
}
.archive-processing {
  text-align: center;
  padding: 26px 14px 18px;
  color: #54745b;
}
.archive-processing-icon {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  margin: 0 auto 21px;
  border-radius: 20px;
  color: #6d9577;
  background: #edf4e9;
}
.archive-processing h3 {
  margin: 13px 0;
  font-size: 20px;
}
.archive-processing p {
  color: #7d8c7d;
  font-size: 15px;
  line-height: 1.8;
}
.archive-processing .field-hint {
  font-size: 13px;
  margin-top: 25px;
}
.archive-processing progress {
  display: block;
  width: 100%;
  max-width: 300px;
  height: 7px;
  margin: 20px auto 8px;
  accent-color: #75a27d;
}
.archive-indeterminate {
  height: 6px;
  max-width: 280px;
  margin: 23px auto;
  background: #e7efdf;
  overflow: hidden;
  border-radius: 8px;
}
.archive-indeterminate:after {
  content: '';
  display: block;
  height: 100%;
  width: 40%;
  border-radius: 8px;
  background: #84a876;
  animation: archive-loading 1.7s ease-in-out infinite alternate;
}
@keyframes archive-loading {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(150%);
  }
}
.archive-error-box {
  border: 1px solid #e5d5bd;
  background: #faf5ed;
  color: #846f50;
  border-radius: 10px;
  padding: 17px 20px;
  margin: 15px 0 22px;
}
.archive-error-box strong {
  display: block;
  font-size: 16px;
  font-weight: 550;
}
.archive-error-box p {
  font-size: 14px;
  line-height: 1.75;
  margin: 7px 0 12px;
}
.archive-draft-row > button:first-child {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 18px;
  gap: 5px 12px;
  text-align: left;
  width: 100%;
  border: 1px solid #e2e8df;
  border-radius: 10px;
  background: white;
  padding: 18px;
  margin: 0 0 11px;
  align-items: center;
}
.archive-draft-list strong {
  font-size: 16px;
  color: #3b5641;
  font-weight: 550;
}
.archive-draft-list small {
  grid-column: 2;
  font-size: 12px;
  color: #8b978b;
}
.archive-draft-list svg {
  grid-column: 3;
  grid-row: 1 / span 2;
  color: #a0b09d;
}
.archive-draft-status {
  grid-row: 1 / span 2;
  font-size: 12px;
  color: #788d70;
  background: #f0f5e9;
  padding: 5px 7px;
  border-radius: 6px;
  text-align: center;
}
.archive-draft-status.failed {
  color: #957546;
  background: #faf2e2;
}
.archive-draft-status.ready {
  color: #4f7c55;
  background: #e7f0e2;
}
.archive-proposal {
  border: 1px solid #dfe7d9;
  border-radius: 10px;
  margin: 14px 0;
  overflow: hidden;
}
.archive-proposal > label {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f5f8f0;
  padding: 12px 15px;
  cursor: pointer;
}
.archive-proposal > label strong {
  flex: 1;
  font-size: 15px;
  font-weight: 550;
}
.archive-proposal > label small {
  color: #829177;
  font-size: 12px;
}
.archive-proposal input,
.archive-insights input {
  width: 18px;
  height: 18px;
  accent-color: #678b59;
  flex-shrink: 0;
}
.archive-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.archive-comparison > div {
  padding: 15px;
  min-width: 0;
}
.archive-comparison > div:first-child {
  border-right: 1px solid #e8ede3;
}
.archive-comparison > div > span {
  display: block;
  font-size: 12px;
  color: #8a9781;
  margin-bottom: 7px;
}
.archive-comparison p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  overflow-wrap: anywhere;
  max-height: 230px;
  overflow-y: auto;
}
.archive-section-title {
  font-size: 17px !important;
  margin-top: 25px;
}
.archive-insights > label {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 16px 0;
  border-bottom: 1px solid #e5ecdf;
  cursor: pointer;
}
.archive-insights small {
  display: block;
  font-size: 12px;
  color: #88977d;
  margin-bottom: 5px;
}
.archive-insights strong {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: #4e6343;
  line-height: 1.75;
}
.archive-insights blockquote {
  margin: 9px 0 0;
  border-left: 2px solid #d7e4ca;
  padding: 5px 10px;
  font-size: 13px;
  color: #849077;
  background: #f7f9f3;
}
.archive-insights em {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: #a08b68;
  margin-top: 8px;
}
.archive-usage-list > div {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid #e2e8df;
  border-radius: 10px;
  padding: 17px;
  margin-bottom: 12px;
}
.archive-usage-list > div > div {
  flex: 1;
  min-width: 0;
}
.archive-usage-list strong {
  font-size: 16px;
  font-weight: 550;
}
.archive-usage-list p {
  font-size: 13px;
  margin: 5px 0;
  color: #7b8d74;
}
.archive-usage-list small {
  font-size: 12px;
  color: #94a08e;
}
.archive-usage-icon {
  color: #729064;
}
@media (max-width: 1250px) {
  .archive-entry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .archive-entry-grid > button {
    display: grid;
    grid-template-columns: 28px 1fr;
    column-gap: 12px;
    row-gap: 4px;
    padding: 18px;
    min-height: 90px;
  }
  .archive-entry-grid > button > svg {
    grid-row: span 2;
    align-self: center;
  }
  .archive-entry-grid strong {
    margin: 0;
  }
}
@media (max-width: 680px) {
  .library-hero {
    margin-top: 2px;
    gap: 12px;
  }
  .library-hero h2 {
    font-size: 28px;
  }
  .library-hero p {
    font-size: 16px;
  }
  .archive-mobile-break {
    display: block;
  }
  .archive-entry-grid {
    gap: 9px;
  }
  .archive-entry-grid > button {
    display: flex;
    min-height: 132px;
    padding: 16px 13px;
    gap: 8px;
  }
  .archive-entry-grid > button > svg {
    align-self: flex-start;
  }
  .archive-entry-grid strong {
    font-size: 16px;
    margin-top: 2px;
  }
  .archive-entry-grid span {
    font-size: 13px;
  }
  .archive-secondary-entry {
    gap: 2px 13px;
    margin-bottom: 24px;
  }
  .archive-secondary-entry .button {
    min-height: 44px;
    font-size: 13px;
  }
  .library-section-heading {
    align-items: center;
  }
  .library-section-heading h3 {
    font-size: 16px;
  }
  .archive-view-switch button {
    padding: 7px 9px;
    min-height: 38px;
  }
  .library-card {
    padding: 19px;
  }
  .library-card > p {
    font-size: 16px;
  }
  .archive-timeline-event {
    grid-template-columns: 25px 1fr;
    gap: 7px 13px;
    padding-bottom: 22px;
  }
  .archive-timeline-event time {
    grid-column: 2;
    font-size: 12px;
    padding-top: 0;
  }
  .archive-timeline-event:before {
    left: 13px;
    top: 32px;
  }
  .archive-timeline-dot {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 25px;
    height: 25px;
    margin-top: 1px;
  }
  .archive-timeline-copy {
    grid-column: 2;
    padding: 14px 16px;
  }
  .archive-mode-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }
  .archive-mode-tabs > button {
    min-height: 67px;
    font-size: 13px;
  }
  .archive-field-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .archive-file-list li {
    flex-wrap: wrap;
    gap: 9px;
  }
  .archive-file-actions {
    margin-left: 53px;
    width: calc(100% - 53px);
  }
  .archive-file-actions .button {
    font-size: 14px;
    min-height: 44px;
  }
  .archive-simple-steps p,
  .archive-step-heading p,
  .archive-error-box p {
    font-size: 15px;
  }
  .archive-comparison {
    grid-template-columns: 1fr;
  }
  .archive-comparison > div:first-child {
    border-right: 0;
    border-bottom: 1px solid #e8ede3;
  }
  .archive-comparison p {
    font-size: 16px;
  }
  .archive-draft-row > button:first-child {
    grid-template-columns: 76px minmax(0, 1fr) 16px;
    padding: 15px 12px;
    gap: 5px 9px;
  }
  .archive-usage-list > div {
    flex-wrap: wrap;
    gap: 10px;
  }
  .archive-usage-list > div > .button {
    margin-left: 32px;
    min-height: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .archive-indeterminate:after {
    animation: none;
  }
}

.archive-draft-row {
  border-bottom: 1px solid #e6ece1;
  padding-bottom: 9px;
  margin-bottom: 13px;
}
.archive-draft-row > .text-button {
  font-size: 13px;
  padding: 7px 12px;
  margin-left: 2px;
  color: #87917b;
}
