/* Familiar working files, connected to a traceable estimate. */
.file-knowledge-section .fk-grid {
  gap: 28px;
}
.fk-card.ui-card {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 442px;
  overflow: hidden;
  border: 1px solid #dedfe5;
  border-radius: 18px;
  background: #f7f7f9;
  color: #363840;
  box-shadow:
    0 10px 28px -20px #22283a30,
    inset 0 1px #fff;
}
.fk-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 47px;
  flex-shrink: 0;
  padding: 0 20px;
  border-bottom: 1px solid #e5e6eb;
  background: #ffffffb3;
  font-size: 12px;
}
.fk-toolbar > span:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.fk-toolbar svg {
  stroke-width: 1.6;
  flex-shrink: 0;
}
.fk-toolbar-note {
  color: #7a7d88;
  font-size: 11px;
  white-space: nowrap;
}
.fk-import-scene {
  position: relative;
  flex: 1;
  min-height: 0;
  background: radial-gradient(ellipse at 50% 80%, #e9ecf2a6, transparent 65%);
}
.fk-connections {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.fk-connection-base {
  stroke: #ccd0db;
  stroke-width: 1;
  stroke-dasharray: 3 5;
}
.fk-connection-signal {
  stroke: #8795af;
  stroke-width: 1.6;
  stroke-dasharray: 12 290;
  animation: fk-source-flow 5s linear infinite paused;
  opacity: 0;
}
.fk-connections g[data-active="true"] .fk-connection-signal {
  opacity: 1;
}
.file-knowledge-section[data-visible="true"] .fk-connection-signal {
  animation-play-state: running;
}
.fk-file-choices {
  position: absolute;
  inset: 32px 5% auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.fk-file-choice {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  min-width: 0;
  min-height: 142px;
  padding: 0 3px;
  border: 0;
  background: none;
  color: #6e717d;
  cursor: pointer;
}
.fk-file-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 104px;
  height: 116px;
  max-width: 100%;
  border: 1px solid #dce0e9;
  border-radius: 13px;
  background: linear-gradient(155deg, #fff 20%, #f6f7fa);
  box-shadow:
    0 4px 0 #e0e4ec,
    0 5px 0 1px #c6cdd9,
    0 18px 25px -14px #56617a40,
    inset 0 1px #fff;
  transform: rotate(-8deg) translateY(8px);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}
.fk-file-choice:nth-child(2) .fk-file-tile {
  transform: translateY(-3px);
}
.fk-file-choice:nth-child(3) .fk-file-tile {
  transform: rotate(8deg) translateY(8px);
}
.fk-file-tile img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.fk-file-tile > span {
  font-size: 11px;
  font-weight: 500;
  color: #555965;
}
.fk-file-choice[aria-pressed="true"] .fk-file-tile {
  border-color: #a3aebe;
  box-shadow:
    0 4px 0 #dce2eb,
    0 5px 0 1px #aab5c6,
    0 20px 26px -14px #56617a50,
    inset 0 1px #fff;
}
.fk-file-choice:hover .fk-file-tile {
  transform: translateY(-7px) rotate(0);
}
.fk-file-name {
  max-width: 100%;
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
  overflow-wrap: anywhere;
}
.fk-file-choice[aria-pressed="true"] .fk-file-name {
  color: #363c4a;
}
.fk-file-choice:focus-visible {
  outline: 2px solid #8394b2;
  outline-offset: 6px;
  border-radius: 10px;
}
.fk-knowledge-destination {
  position: absolute;
  bottom: 25px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 13px;
  width: calc(100% - 100px);
  max-width: 350px;
  min-height: 76px;
  padding: 12px 16px;
  transform: translateX(-50%);
  border: 1px dashed #bdc5d3;
  border-radius: 13px;
  background: #ffffffc9;
  box-shadow: 0 5px 12px -9px #39466338;
}
.fk-midra-node {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 1px solid #e0e3eb;
  border-radius: 11px;
  background: linear-gradient(#fff, #f3f4f7);
  box-shadow: 0 2px 2px #252c4205;
  color: #3d4452;
}
.fk-midra-node .midra-lockup {
  display: flex;
}
.fk-midra-node .midra-symbol {
  width: 29px;
  height: 29px;
}
.fk-midra-node .midra-letters {
  display: none;
}
.fk-knowledge-destination strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
}
.fk-knowledge-destination small {
  display: block;
  margin-top: 4px;
  color: #7a7f8a;
  font-size: 10px;
}
.fk-destination-check {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  margin-left: auto;
  flex-shrink: 0;
  border: 1px solid #dce1e9;
  border-radius: 50%;
  color: #747f92;
  background: #f4f6f9;
}
.fk-explore-hint {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 50px;
  border-top: 1px solid #e6e8ee;
  background: #ffffff80;
  color: #727884;
  font-size: 11px;
}
.fk-source-body {
  padding: 20px 24px 13px;
  animation: fk-source-appear 0.24s ease both;
}
.fk-source-window {
  min-width: 0;
  border: 1px solid #dce0e7;
  border-radius: 9px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 4px 9px -6px #30364c1c;
}
.fk-source-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 11px;
  border-bottom: 1px solid #e6e8ed;
  font-size: 11px;
  font-weight: 500;
}
.fk-source-heading img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}
.fk-source-heading small {
  margin-left: auto;
  font-size: 10px;
  font-weight: 400;
  color: #818591;
  white-space: nowrap;
}
.fk-formula-bar {
  display: flex;
  align-items: center;
  gap: 11px;
  height: 25px;
  border-bottom: 1px solid #e7e9ed;
  color: #858b98;
  font-size: 10px;
}
.fk-formula-bar > span:first-child {
  min-width: 49px;
  padding-left: 10px;
  align-self: stretch;
  display: flex;
  align-items: center;
  border-right: 1px solid #e7e9ed;
  color: #4e5667;
}
.fk-formula-bar strong {
  color: #5f6674;
  font-size: 10px;
  font-weight: 400;
}
.fk-sheet table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 10px;
  line-height: 1.5;
  color: #5e6470;
}
.fk-sheet :is(th, td) {
  height: 25px;
  border: 1px solid #eaecf0;
  padding: 3px 9px;
  text-align: left;
  font-weight: 400;
}
.fk-sheet thead th {
  text-align: center;
  height: 20px;
  padding-block: 1px;
  background: #f4f5f7;
  font-size: 9px;
  color: #858b98;
}
.fk-sheet th:first-child {
  width: 29px;
  padding-inline: 3px;
  background: #f4f5f7;
  color: #858b98;
  text-align: center;
  font-size: 9px;
  border-left: 0;
}
.fk-sheet th:nth-child(2) {
  width: 49%;
}
.fk-sheet th:nth-child(3) {
  width: 13%;
}
.fk-sheet td:last-child {
  text-align: right;
}
.fk-sheet-labels td {
  font-size: 9px;
  font-weight: 500;
  color: #8a8e98;
}
.fk-sheet .fk-selected-cell {
  position: relative;
  background: #eef1f7;
  color: #35445b;
  outline: 1.5px solid #8293ae;
  outline-offset: -1.5px;
  font-weight: 600;
}
.fk-selected-cell > span {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 4px;
  height: 4px;
  background: #8293ae;
}
.fk-sheet-footer {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 23px;
  padding: 0 12px;
  background: #f9f9fb;
  color: #9498a3;
  font-size: 9px;
}
.fk-sheet-footer > span:first-child {
  align-self: stretch;
  display: flex;
  align-items: center;
  color: #505b70;
  border-bottom: 2px solid #8594ad;
}
.fk-document {
  height: 168px;
  padding: 18px 20px;
  color: #69707e;
  font-size: 11px;
}
.fk-document-meta {
  margin-bottom: 9px;
  color: #959aa5;
  font-size: 8px;
  letter-spacing: 0.07em;
}
.fk-document > strong {
  display: block;
  font-size: 12px;
  font-weight: 550;
  color: #414855;
  margin-bottom: 9px;
}
.fk-document p {
  max-width: 365px;
  font-size: 11px;
  line-height: 1.8;
  margin: 0;
}
.fk-document mark {
  background: #edf0f7;
  color: #485b7c;
  border-radius: 2px;
  padding: 1px 2px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.fk-document-lines {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}
.fk-document-lines span {
  height: 3px;
  width: 85%;
  background: #eef0f3;
  border-radius: 2px;
}
.fk-document-lines span:last-child {
  width: 60%;
}
.fk-extraction {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 36px;
  font-size: 10px;
  color: #9197a3;
}
.fk-extraction > span {
  display: flex;
  gap: 5px;
  align-items: center;
}
.fk-extraction > strong {
  color: #56637b;
  font-weight: 500;
}
.fk-estimate-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 64px;
  padding: 11px 14px;
  border: 1px solid #dce0e7;
  border-radius: 9px;
  background: #fff;
}
.fk-estimate-line > div:first-child > span {
  font-size: 12px;
  font-weight: 500;
}
.fk-estimate-line small {
  display: block;
  color: #9095a0;
  font-size: 10px;
  line-height: 1.6;
}
.fk-estimate-line b {
  font-weight: 400;
}
.fk-estimate-line b[data-active="true"] {
  color: #4c5d7c;
  font-weight: 500;
}
.fk-estimate-line > div:last-child {
  flex-shrink: 0;
  text-align: right;
}
.fk-estimate-line strong {
  display: block;
  font:
    550 23px/1.25 "Inter Tight",
    Inter,
    sans-serif;
  letter-spacing: -0.03em;
  color: #323742;
}
.fk-source-div:where(.site-page) .source-citation {
  min-height: 40px;
  padding-block: 7px;
  margin-top: 3px;
  color: #69778f;
  font-size: 11px;
}
.fk-source-div:where(.site-page) .source-citation svg {
  width: 12px;
  height: 12px;
}
.file-knowledge-section .context-feature-copy {
  padding-top: 24px;
}
@keyframes fk-source-flow {
  to {
    stroke-dashoffset: -302;
  }
}
@keyframes fk-source-appear {
  from {
    opacity: 0.5;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (min-width: 901px) and (max-width: 1190px) {
  .fk-toolbar {
    padding-inline: 15px;
  }
  .fk-toolbar-note {
    font-size: 10px;
  }
  .fk-source-body {
    padding-inline: 16px;
  }
  .fk-file-tile {
    width: 85px;
    height: 107px;
  }
  .fk-file-name {
    font-size: 9px;
  }
  .fk-knowledge-destination {
    width: calc(100% - 50px);
    padding-inline: 12px;
    gap: 9px;
  }
  .fk-knowledge-destination small {
    font-size: 9px;
  }
}
@media (max-width: 480px) {
  .fk-card.ui-card {
    height: 426px;
    border-radius: 15px;
  }
  .fk-toolbar {
    height: 44px;
    padding-inline: 14px;
    gap: 7px;
    font-size: 11px;
  }
  .fk-toolbar-note {
    font-size: 9px;
  }
  .fk-file-choices {
    inset: 34px 3% auto;
    gap: 2px;
  }
  .fk-file-tile {
    width: 78px;
    height: 98px;
    border-radius: 11px;
  }
  .fk-file-tile img {
    width: 40px;
    height: 40px;
  }
  .fk-file-tile > span {
    font-size: 10px;
  }
  .fk-file-name {
    max-width: 85px;
    font-size: 9px;
    line-height: 1.6;
  }
  .fk-file-choice {
    gap: 17px;
  }
  .fk-knowledge-destination {
    width: calc(100% - 36px);
    min-height: 70px;
    padding: 10px 12px;
    gap: 10px;
    bottom: 21px;
  }
  .fk-knowledge-destination strong {
    font-size: 12px;
  }
  .fk-knowledge-destination small {
    font-size: 9px;
  }
  .fk-midra-node {
    width: 39px;
    height: 39px;
  }
  .fk-destination-check {
    display: none;
  }
  .fk-explore-hint {
    height: 47px;
    font-size: 10px;
  }
  .fk-source-body {
    padding: 16px 13px 10px;
  }
  .fk-source-heading {
    font-size: 10px;
    padding-inline: 9px;
    gap: 6px;
  }
  .fk-source-heading small {
    font-size: 9px;
  }
  .fk-source-heading img {
    width: 18px;
    height: 18px;
  }
  .fk-sheet :is(th, td) {
    padding-inline: 6px;
  }
  .fk-document {
    padding: 17px 14px;
  }
  .fk-sheet-labels td {
    font-size: 8px;
  }
  .fk-estimate-line {
    padding-inline: 11px;
  }
  .fk-estimate-line > div:first-child > span {
    font-size: 11px;
  }
  .fk-estimate-line small {
    font-size: 9px;
  }
  .fk-estimate-line strong {
    font-size: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .fk-connection-signal {
    animation: none;
    stroke-dasharray: none;
    opacity: 0;
  }
  .fk-connections g[data-active="true"] .fk-connection-signal {
    opacity: 0.5;
  }
  .fk-source-body {
    animation: none;
  }
  .fk-file-tile {
    transition: none;
  }
}

.fk-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
