:root {
  color: #17211d;
  background: #f2efe7;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    sans-serif;
  --ink: #17211d;
  --muted: #66716b;
  --paper: #f8f6ef;
  --line: #d7d7ce;
  --green: #245f49;
  --lime: #d8ef74;
  --sky: #9fc7ff;
  --coral: #f49a78;
}
* {
  box-sizing: border-box;
}
body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 78% 4%, #d8ef7447, transparent 23rem), #f2efe7;
}
.topbar {
  position: sticky;
  z-index: 5;
  top: 0;
  display: flex;
  height: 64px;
  align-items: center;
  gap: 18px;
  padding: 0 max(4vw, 24px);
  border-bottom: 1px solid #17211d1f;
  background: #f8f6efe8;
  backdrop-filter: blur(14px);
  font-size: 11px;
}
.brand {
  color: var(--ink);
  font-size: 15px;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-decoration: none;
}
.topbar > span:nth-child(2) {
  color: var(--muted);
}
.count {
  margin-left: auto;
  color: #7b847f;
  font-variant-numeric: tabular-nums;
}
main {
  width: min(1240px, calc(100% - 48px));
  margin: auto;
  padding: 78px 0 104px;
}
.page-heading {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.55fr);
  align-items: end;
  gap: 8vw;
  margin-bottom: 74px;
  padding-bottom: 64px;
  border-bottom: 1px solid #17211d36;
}
.page-heading::after {
  position: absolute;
  right: 2%;
  bottom: -8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--coral);
  content: "";
  box-shadow:
    -26px 0 0 var(--sky),
    -52px 0 0 var(--lime);
}
.heading-actions {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 26px;
  padding-bottom: 4px;
}
.eyebrow {
  margin: 0 0 22px;
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
}
h1 {
  max-width: 850px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(54px, 7.2vw, 98px);
  font-weight: 620;
  letter-spacing: -0.07em;
  line-height: 0.9;
}
.intro {
  max-width: 470px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}
.new-document,
.dialog-actions button,
.close-dialog {
  border: 0;
  font: inherit;
  cursor: pointer;
}
.new-document {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 17px;
  border-radius: 10px;
  color: #fff;
  background: var(--ink);
  box-shadow: 0 9px 24px #17211d25;
  font-size: 11px;
  font-weight: 750;
  transition:
    transform 160ms ease,
    background 160ms ease;
}
.new-document span {
  color: var(--lime);
  font-size: 17px;
  font-weight: 400;
  line-height: 0;
}
.new-document:hover,
.new-document:focus-visible {
  background: var(--green);
  outline: 3px solid #9fc7ff80;
  outline-offset: 3px;
  transform: translateY(-2px);
}
.agent-task {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: -24px 0 54px;
  padding: 18px 20px;
  border: 1px solid #8eb5a4;
  border-radius: 12px;
  background: #e4f0e8;
}
.agent-task[hidden],
.agent-task-actions[hidden] {
  display: none;
}
.agent-task-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}
.agent-task-copy p {
  margin: 0;
  color: var(--green);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
}
.agent-task-copy strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.agent-task-copy span {
  color: var(--muted);
  font-size: 10px;
}
.agent-task-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}
.agent-task-actions button {
  padding: 8px 11px;
  border: 1px solid #b8ccc1;
  border-radius: 7px;
  color: #355846;
  background: #fff;
  font:
    700 9px/1 system-ui,
    sans-serif;
  cursor: pointer;
}
.library-section + .library-section {
  margin-top: 60px;
}
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.section-heading h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.section-heading span {
  color: #7b847f;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.document-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.document-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: start;
  gap: 12px;
  overflow: hidden;
  padding: 12px;
  border: 1px solid #17211d1f;
  border-radius: 14px;
  color: inherit;
  background: var(--paper);
  box-shadow: 0 8px 30px #27352f0a;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border 180ms ease;
}
.document-row:hover,
.document-row:focus-visible {
  border-color: #17211d57;
  outline: none;
  box-shadow: 0 18px 45px #27352f1a;
  transform: translateY(-4px);
}
.document-row:focus-visible {
  outline: 3px solid #82b4f480;
  outline-offset: 3px;
}
.number {
  position: absolute;
  z-index: 1;
  top: 20px;
  left: 20px;
  padding: 4px 6px;
  border-radius: 5px;
  color: #fff;
  background: #17211db8;
  font-size: 8px;
  font-variant-numeric: tabular-nums;
}
.preview {
  position: relative;
  display: block;
  grid-column: 1 / -1;
  grid-row: 1;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-bottom: 2px;
  border: 1px solid #17211d21;
  border-radius: 9px;
  background: #fff;
}
.preview i {
  position: absolute;
  display: block;
}
.document-copy {
  display: flex;
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}
.document-type {
  color: var(--green);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.13em;
}
.document-copy strong {
  color: var(--ink);
  font-size: clamp(17px, 1.55vw, 21px);
  font-weight: 650;
  letter-spacing: -0.04em;
}
.description {
  max-width: 500px;
  color: var(--muted);
  display: -webkit-box;
  overflow: hidden;
  font-size: 10px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.features {
  display: flex;
  grid-column: 1 / -1;
  grid-row: 3;
  flex-wrap: wrap;
  gap: 5px;
  padding-top: 4px;
}
.features span {
  padding: 4px 7px;
  border: 1px solid #17211d1f;
  border-radius: 999px;
  color: #626d67;
  background: #ffffff99;
  font-size: 8px;
}
.open {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  color: var(--ink);
  font-size: 0;
  font-weight: 750;
  text-align: right;
}
.open b {
  display: inline-grid;
  width: 23px;
  height: 23px;
  margin-left: 0;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--lime);
  font-size: 12px;
}
.doc-standard .preview {
  background: #fff;
}
.preview-label {
  top: 16%;
  left: 10%;
  width: 24%;
  height: 3px;
  background: #839189;
}
.preview-title {
  top: 28%;
  left: 10%;
  width: 40%;
  height: 12%;
  background: var(--ink);
}
.preview-line {
  top: 56%;
  left: 10%;
  width: 54%;
  height: 3px;
  background: #cbd0cc;
}
.preview-line.wide {
  top: 49%;
  width: 77%;
}
.preview-table {
  right: 10%;
  bottom: 12%;
  left: 10%;
  height: 22%;
  border-top: 1px solid #818b85;
  border-bottom: 1px solid #c7cdc9;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 31%,
    #d8dcd9 31.5% 32%
  );
}
.doc-rich .preview {
  background: linear-gradient(135deg, #ef8f6f 0 32%, transparent 32%), #17211d;
}
.doc-rich .orbit {
  border: 1px solid #d8ef7470;
  border-radius: 50%;
}
.orbit.one {
  width: 43%;
  aspect-ratio: 1;
  top: 13%;
  right: 9%;
}
.orbit.two {
  width: 29%;
  aspect-ratio: 1;
  top: 25%;
  right: 16%;
}
.orbit.core {
  width: 12%;
  aspect-ratio: 1;
  top: 40%;
  right: 24.5%;
  border: 0;
  background: var(--lime);
  box-shadow: 0 0 24px #d8ef746b;
}
.rich-title {
  bottom: 18%;
  left: 9%;
  color: #fff;
  font-size: clamp(18px, 3vw, 32px);
  font-weight: 700;
}
.doc-slides .preview {
  background: #342e7a;
}
.deck-label {
  top: 18%;
  left: 9%;
  width: 26%;
  height: 3px;
  background: var(--sky);
}
.deck-title {
  top: 37%;
  left: 9%;
  width: 60%;
  height: 12%;
  background: #fffaf0;
}
.deck-title.second {
  top: 53%;
  width: 48%;
}
.deck-ring {
  top: 10%;
  right: 7%;
  width: 26%;
  aspect-ratio: 1;
  border: 2px solid #f49a7880;
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 12px #342e7a,
    inset 0 0 0 13px #d8ef7470;
}
.deck-page {
  right: 8%;
  bottom: 9%;
  color: #b9b4e1;
  font:
    6px system-ui,
    sans-serif;
}
.doc-ui .preview {
  background: #e8edf5;
}
.ui-top {
  top: 8%;
  right: 6%;
  left: 6%;
  height: 13%;
  border: 1px solid #cbd3e1;
  border-radius: 5px 5px 0 0;
  background: #fff;
}
.ui-canvas {
  top: 21%;
  bottom: 8%;
  left: 6%;
  width: 63%;
  border-left: 1px solid #cbd3e1;
  background: #fffaf0;
}
.ui-sidebar {
  top: 21%;
  right: 6%;
  bottom: 8%;
  width: 25%;
  border-right: 1px solid #cbd3e1;
  border-left: 1px solid #cbd3e1;
  background: #fff;
}
.ui-comment {
  right: 9%;
  width: 19%;
  height: 19%;
  border: 1px solid #6d9ee0;
  border-radius: 5px;
  background: #eff5ff;
}
.ui-comment.first {
  top: 33%;
}
.ui-comment.second {
  top: 58%;
  border-color: #d1d7df;
  background: #fff;
}
.doc-created .preview {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #dfeee6, #ffffff 58%);
}
.doc-created .preview::before {
  width: 23%;
  aspect-ratio: 0.78;
  border: 1px solid #9fb9aa;
  border-radius: 4px;
  background:
    linear-gradient(#245f49 0 0) 18% 19% / 48% 6% no-repeat,
    #fff;
  box-shadow: 0 10px 24px #17211d24;
  content: "";
}
.create-dialog {
  width: min(620px, calc(100% - 32px));
  max-height: calc(100vh - 40px);
  padding: 0;
  overflow: auto;
  border: 1px solid #17211d2b;
  border-radius: 18px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 28px 90px #17211d4d;
}
.create-dialog::backdrop {
  background: #17211db8;
  backdrop-filter: blur(5px);
}
.create-dialog form {
  padding: 30px;
}
.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
.dialog-heading .eyebrow {
  margin-bottom: 8px;
}
.dialog-heading h2 {
  margin: 0;
  font-size: 32px;
  letter-spacing: -0.04em;
}
.close-dialog {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: #64706a;
  background: #e8e8e1;
  font-size: 21px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
.field > span,
.format-field legend {
  color: #52615a;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.field small {
  color: #8c958f;
  font-weight: 400;
}
.field input,
.field textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #cfd3cc;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font: 13px/1.5 inherit;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  border-color: #5d8fbf;
  outline: 3px solid #82b4f433;
}
.format-field {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 0 0 24px;
  padding: 0;
  border: 0;
}
.format-field legend {
  grid-column: 1 / -1;
  margin-bottom: 3px;
}
.format-field label {
  position: relative;
  cursor: pointer;
}
.format-field input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.format-field label > span {
  display: flex;
  min-height: 65px;
  flex-direction: column;
  gap: 5px;
  padding: 12px 14px;
  border: 1px solid #d1d4ce;
  border-radius: 9px;
  background: #fff;
}
.format-field b {
  font-size: 11px;
}
.format-field small {
  color: #7c8781;
  font-size: 9px;
  line-height: 1.4;
}
.format-field input:checked + span {
  border-color: var(--green);
  background: #e9f2ed;
  box-shadow: inset 0 0 0 1px var(--green);
}
.format-field input:focus-visible + span {
  outline: 3px solid #82b4f44d;
  outline-offset: 2px;
}
.dialog-note {
  margin: -4px 0 24px;
  color: #7d8781;
  font-size: 9px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding-top: 18px;
  border-top: 1px solid #dcded7;
}
.dialog-actions button {
  padding: 10px 15px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 750;
}
.dialog-actions .secondary {
  border: 1px solid #d2d5cf;
  color: #616c66;
  background: #fff;
}
.dialog-actions .primary {
  color: #fff;
  background: var(--ink);
}
.dialog-actions .primary:disabled {
  cursor: wait;
  opacity: 0.55;
}
body > footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px max(4vw, 24px);
  border-top: 1px solid #17211d24;
  color: #747f79;
  background: #e9e6dd;
  font-size: 9px;
}
body > footer a {
  color: var(--green);
}
@media (max-width: 1050px) {
  .page-heading {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .document-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .topbar {
    height: 56px;
  }
  main {
    width: calc(100% - 28px);
    padding: 52px 0 76px;
  }
  .page-heading {
    margin-bottom: 48px;
    padding-bottom: 48px;
  }
  h1 {
    font-size: clamp(48px, 15vw, 68px);
  }
  .heading-actions {
    gap: 20px;
  }
  .agent-task {
    align-items: stretch;
    flex-direction: column;
    margin-top: -8px;
  }
  .agent-task-actions {
    width: 100%;
  }
  .agent-task-actions button:first-child {
    flex: 1;
  }
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
  .document-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .document-row {
    grid-template-columns: 104px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 100px;
    padding: 10px;
    border-radius: 12px;
  }
  .number {
    display: none;
  }
  .preview {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
  }
  .document-copy {
    grid-column: 2;
    grid-row: 1;
    gap: 5px;
  }
  .document-copy strong {
    font-size: 17px;
  }
  .description {
    font-size: 9px;
  }
  .features {
    display: none;
  }
  .open {
    grid-column: 3;
    grid-row: 1;
  }
  .open b {
    margin-left: 0;
  }
  .create-dialog form {
    padding: 22px;
  }
  .format-field {
    grid-template-columns: 1fr;
  }
  body > footer {
    flex-direction: column;
  }
}
