.package-intro {
  margin: 0 0 24px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 25px;
}
.package-intro h2 {
  font-size: 38px;
  letter-spacing: -1.7px;
  margin-top: 16px;
}
.package-intro p {
  font-size: 13px;
  line-height: 1.8;
  color: #687891;
  max-width: 320px;
}
.package-builder {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  border: 1px solid #dae3ef;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 20px 65px #1528470a;
}
.builder-left {
  padding: 30px;
}
.builder-steps {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid #e1e7f0;
  padding-bottom: 20px;
  margin-bottom: 24px;
}
.builder-steps span {
  font-size: 11px;
  color: #8390a4;
  display: flex;
  align-items: center;
  gap: 7px;
}
.builder-steps b {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  background: #edf1f8;
  border-radius: 50%;
  font-size: 10px;
}
.builder-steps .current {
  color: #2459ec;
}
.builder-steps .current b {
  background: #2459ec;
  color: #fff;
}
.builder-steps .complete b {
  background: #dff3e8;
  color: #26724d;
}
.package-form fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.package-form legend {
  font-family: Manrope;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.6px;
  margin-bottom: 8px;
}
.form-hint {
  font-size: 11px;
  color: #75859b;
  line-height: 1.7;
  margin-bottom: 20px;
}
.pkg-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.pkg-fields label,
.item-editor label {
  font-size: 11px;
  color: #4d607c;
  display: block;
}
.pkg-fields .full {
  grid-column: 1/-1;
}
.package-form input,
.package-form select,
.package-form textarea {
  width: 100%;
  padding: 11px 12px;
  font: inherit;
  font-size: 12px;
  color: #132843;
  background: #f9fbfe;
  border: 1px solid #cdd9e9;
  border-radius: 5px;
  margin-top: 7px;
}
.package-form textarea {
  resize: vertical;
  min-height: 68px;
}
.pkg-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 25px;
}
.pkg-actions .button {
  padding: 12px 18px;
}
.pkg-secondary {
  border: 1px solid #cdd9e9;
  border-radius: 5px;
  background: #fff;
  color: #4e637f;
  padding: 11px 15px;
  font-size: 12px;
}
.pkg-secondary:disabled {
  opacity: 0.35;
  cursor: default;
}
.builder-right {
  background: #101c36;
  color: #fff;
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
}
.builder-right:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(#ffffff05 1px, transparent 1px), linear-gradient(90deg, #ffffff05 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}
.builder-right > * {
  position: relative;
}
.builder-right h3 {
  font-size: 22px;
  font-family: Manrope;
  letter-spacing: -0.7px;
  margin: 18px 0 12px;
}
.builder-right p {
  font-size: 11px;
  color: #b5c6e1;
  line-height: 1.8;
}
.packet-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: grid;
  gap: 13px;
}
.packet-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: #d7e4f8;
}
.packet-list span {
  font-size: 10px;
  color: #83a8ef;
  border: 1px solid #385178;
  border-radius: 4px;
  width: 23px;
  height: 26px;
  display: grid;
  place-items: center;
}
.packet-mock {
  background: white;
  border-radius: 5px;
  color: #203653;
  padding: 15px 18px;
  transform: rotate(-3deg);
  margin: 20px 10px 28px;
  box-shadow: 8px 8px 0 #ffffff14;
  transition: transform 0.5s;
}
.package-builder:hover .packet-mock {
  transform: rotate(0);
}
.packet-mock b {
  font-size: 10px;
  color: #2459ec;
  display: block;
  border-top: 4px solid #2459ec;
  padding-top: 10px;
}
.packet-mock i {
  display: block;
  background: #e8edf5;
  height: 5px;
  margin: 8px 0;
  width: 90%;
}
.packet-mock i:nth-child(3) {
  width: 65%;
}
.packet-mock small {
  font-size: 7px;
  color: #6c7f9b;
}
.item-editor {
  display: grid;
  grid-template-columns: 2fr 0.65fr 0.8fr 1fr 26px;
  gap: 8px;
  align-items: end;
  padding: 12px 0;
  border-bottom: 1px solid #e1e7f0;
}
.item-editor input {
  padding: 10px 7px;
}
.item-editor .remove-item {
  width: 25px;
  height: 35px;
  border: 0;
  background: none;
  color: #9a5364;
  font-size: 18px;
  margin-bottom: 3px;
}
.item-editor .remove-item:disabled {
  opacity: 0.25;
}
.line-total {
  font-size: 10px;
  text-align: right;
  color: #6c7e96;
  margin-top: 7px;
}
.order-totals {
  background: #f0f5ff;
  padding: 14px;
  margin: 18px 0 0;
  border-radius: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}
.package-error {
  color: #ae3544;
  font-size: 12px;
  line-height: 1.6;
  margin-top: 12px;
  min-height: 18px;
}
.pkg-fineprint {
  font-size: 10px;
  color: #718198;
  margin: 15px 0 28px;
  line-height: 1.7;
}
.secondary-model {
  margin-top: 35px;
  border-top: 1px solid #e0e7ef;
  padding-top: 20px;
}
.secondary-model summary {
  cursor: pointer;
  color: #718199;
  font-size: 12px;
}
.secondary-model .simulator {
  margin-top: 20px;
}
.package-viewer {
  width: min(1160px, calc(100% - 24px));
  max-height: 94vh;
  border: 0;
  padding: 0;
  background: #edf1f7;
  border-radius: 12px;
  color: #172b49;
  box-shadow: 0 30px 100px #0006;
}
.package-viewer::backdrop {
  background: #08132acc;
  backdrop-filter: blur(4px);
}
.pkg-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 18px 24px;
  background: #101c36;
  color: white;
  position: sticky;
  top: 0;
  z-index: 6;
}
.pkg-toolbar h2 {
  font-size: 19px;
  letter-spacing: -0.4px;
}
.pkg-toolbar p {
  font-size: 10px;
  color: #a6bbdb;
  margin-top: 5px;
}
.pkg-toolbar .close {
  background: #243757;
  color: #fff;
}
.pkg-reader {
  display: grid;
  grid-template-columns: 205px 1fr;
}
.pkg-index {
  padding: 22px 12px;
  background: #f7f9fc;
  border-right: 1px solid #d9e2ef;
}
.pkg-index button {
  border: 0;
  background: none;
  text-align: left;
  color: #718099;
  display: block;
  width: 100%;
  padding: 12px;
  border-radius: 5px;
  font-size: 11px;
  line-height: 1.4;
  margin-bottom: 3px;
}
.pkg-index button[aria-current="page"] {
  background: #e1ebff;
  color: #2359db;
  font-weight: 600;
}
.pkg-index small {
  font-size: 9px;
  display: block;
  margin: 20px 12px;
  color: #7a8ba2;
  line-height: 1.7;
}
.pkg-paper-wrap {
  padding: 24px;
  min-width: 0;
}
.pkg-paper {
  background: #fff;
  padding: 32px;
  min-height: 670px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px #2034530b;
  user-select: none;
}
.pkg-watermarks {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  pointer-events: none;
  overflow: hidden;
}
.pkg-watermarks span {
  display: block;
  transform: rotate(-30deg);
  text-align: center;
  font: 800 clamp(24px, 3.6vw, 46px) Manrope;
  color: #2459ec18;
  white-space: nowrap;
  letter-spacing: 3px;
}
.pkg-document {
  position: relative;
  z-index: 1;
}
.doc-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 5px solid #2459ec;
  padding-bottom: 12px;
  margin-bottom: 24px;
  font-size: 10px;
  color: #73849c;
}
.doc-brand b {
  display: flex;
  gap: 8px;
  align-items: center;
  font-family: Manrope;
  font-size: 18px;
  color: #152944;
}
.doc-brand img {
  width: 26px;
  height: 26px;
}
.doc-title {
  font-family: Manrope;
  font-size: 29px;
  letter-spacing: -1px;
  line-height: 1.15;
  color: #2459ec;
  margin-bottom: 9px;
}
.doc-sub {
  font-size: 10px;
  color: #6b7f9e;
  line-height: 1.6;
  margin-bottom: 22px;
  overflow-wrap: anywhere;
}
.doc-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 20px;
}
.doc-box {
  padding: 15px;
  background: #f4f7fc;
  border: 1px solid #dbe4f1;
  border-radius: 5px;
  min-width: 0;
}
.doc-box h4 {
  font-size: 11px;
  margin: 0 0 10px;
}
.doc-field {
  font-size: 10px;
  line-height: 1.7;
  margin: 4px 0;
  overflow-wrap: anywhere;
}
.doc-field b {
  font-weight: 600;
}
.doc-notes {
  font-size: 10px;
  line-height: 1.7;
  border: 1px solid #dce5f3;
  border-radius: 5px;
  padding: 14px;
  margin: 18px 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.doc-scroll {
  overflow-x: auto;
}
.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 9px;
  margin: 16px 0;
  min-width: 420px;
}
.doc-table th {
  background: #edf3fc;
  text-align: left;
  padding: 10px 7px;
  border: 1px solid #d4dfee;
  font-weight: 600;
}
.doc-table td {
  padding: 10px 7px;
  border: 1px solid #d4dfee;
  vertical-align: top;
  overflow-wrap: anywhere;
  max-width: 200px;
}
.doc-table .money {
  text-align: right;
  white-space: nowrap;
}
.doc-totals {
  margin: 20px 0 20px auto;
  max-width: 300px;
  font-size: 11px;
}
.doc-totals div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #dce4ef;
}
.doc-totals .grand {
  color: #2459ec;
  font-size: 14px;
  font-weight: 700;
}
.doc-foot {
  margin-top: 30px;
  border-top: 1px solid #e0e7f0;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 8px;
  color: #8a98ac;
}
.doc-disclaimer {
  font-size: 9px;
  line-height: 1.7;
  color: #7d8ba1;
  margin: 15px 0;
}
.doc-evidence {
  border: 2px dashed #c7d6ec;
  padding: 26px 20px;
  text-align: center;
  margin: 20px 0;
  background: repeating-linear-gradient(45deg, #f9fbff, #f9fbff 10px, #f3f7fd 10px, #f3f7fd 11px);
}
.doc-evidence h4 {
  font-size: 14px;
  color: #54749f;
  margin: 0 0 10px;
}
.doc-evidence p {
  font-size: 10px;
  line-height: 1.8;
  color: #7d8fa9;
}
.claim-card {
  padding: 15px;
  border: 1px solid #d8e2f1;
  margin: 12px 0;
  border-radius: 5px;
}
.claim-card h4 {
  font-size: 11px;
  margin: 0 0 8px;
}
.claim-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.signature-placeholder {
  padding: 13px;
  border-bottom: 1px solid #cbd8e8;
  font-size: 10px;
  color: #8d9db4;
  margin-top: 10px;
  font-style: italic;
}
.reader-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding-top: 18px;
  font-size: 11px;
  color: #72859f;
}
.reader-nav button {
  border: 1px solid #c8d6e9;
  border-radius: 5px;
  background: white;
  color: #2459ec;
  padding: 10px 14px;
  font-size: 12px;
}
.reader-nav button:disabled {
  opacity: 0.3;
  cursor: default;
}
.pkg-generated {
  animation: packIn 0.45s ease;
}
@keyframes packIn {
  from {
    opacity: 0.2;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 900px) {
  .package-builder {
    grid-template-columns: 1fr 0.6fr;
  }
  .builder-left {
    padding: 24px;
  }
  .builder-right {
    padding: 27px 20px;
  }
  .pkg-reader {
    grid-template-columns: 160px 1fr;
  }
  .pkg-paper {
    padding: 24px;
  }
  .pkg-paper-wrap {
    padding: 18px;
  }
  .doc-title {
    font-size: 25px;
  }
}
@media (max-width: 760px) {
  .package-intro {
    display: block;
  }
  .package-intro h2 {
    font-size: 30px;
  }
  .package-intro p {
    margin-top: 18px;
    max-width: none;
  }
  .package-builder {
    grid-template-columns: 1fr;
  }
  .builder-right {
    display: none;
  }
  .pkg-fields {
    gap: 13px;
  }
  .package-form input,
  .package-form select,
  .package-form textarea {
    font-size: 16px;
  }
  .item-editor {
    grid-template-columns: 1fr 1fr 1fr 26px;
  }
  .item-editor label:first-child {
    grid-column: 1/-1;
  }
  .item-editor label {
    font-size: 10px;
  }
  .builder-left {
    padding: 23px 18px;
  }
  .pkg-toolbar {
    padding: 16px;
  }
  .pkg-toolbar h2 {
    font-size: 16px;
  }
  .pkg-reader {
    display: block;
  }
  .pkg-index {
    display: flex;
    overflow-x: auto;
    gap: 4px;
    padding: 10px;
    position: sticky;
    top: 75px;
    z-index: 5;
    border: 0;
  }
  .pkg-index button {
    min-width: 105px;
    font-size: 10px;
    padding: 8px;
  }
  .pkg-index small {
    display: none;
  }
  .pkg-paper-wrap {
    padding: 12px;
  }
  .pkg-paper {
    padding: 18px;
    min-height: 600px;
  }
  .doc-title {
    font-size: 24px;
  }
  .doc-two {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .doc-table {
    font-size: 9px;
  }
  .doc-box {
    padding: 12px;
  }
  .pkg-watermarks span {
    font-size: 27px;
  }
  .claim-grid {
    grid-template-columns: 1fr;
  }
  .doc-brand span {
    max-width: 100px;
    text-align: right;
  }
  .pkg-steps {
    gap: 6px;
  }
  .builder-steps span {
    font-size: 10px;
  }
  .pkg-toolbar p {
    max-width: 250px;
  }
}
@media print {
  body > * {
    display: none !important;
  }
  body:after {
    content: "Kordesk demo preview — printing and downloads are not provided.";
    display: block !important;
    font: 16px sans-serif;
  }
}

.pkg-toolbar small {
  display: block;
  margin-top: 5px;
  color: #b9c9e4;
  font-size: 11px;
}

.generated-attachment {
  position: relative;
  background: #fffef9;
  border: 1px solid #d8dce5;
  border-top: 4px solid #2459ec;
  padding: 24px;
  margin: 22px 0;
  box-shadow: 0 7px 20px #1829410a;
  overflow: hidden;
}
.attachment-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 9px;
  letter-spacing: 1px;
  color: #52627b;
  padding-bottom: 15px;
  border-bottom: 1px dashed #cbd2df;
}
.generated-attachment h4 {
  font-size: 22px;
  color: #173052;
  margin: 20px 0;
}
.receipt-amount {
  padding: 17px;
  background: #eff4fc;
  margin: 15px 0;
}
.receipt-amount small,
.receipt-amount strong {
  display: block;
}
.receipt-amount strong {
  font-size: 28px;
  color: #2459ec;
  margin-top: 5px;
}
.attachment-stamp {
  display: inline-block;
  color: #9a6026;
  border: 2px solid #ad753c;
  padding: 7px 12px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 2px;
  transform: rotate(-5deg);
  margin: 22px 0 8px;
}
.attachment-disclaimer {
  font-size: 10px;
  line-height: 1.6;
  color: #677387;
  border-top: 1px dashed #cbd2df;
  padding-top: 12px;
}
.sample-signature {
  margin: 20px 0 10px;
  padding: 16px;
  background: #f7f9fd;
  border: 1px solid #dfe5ef;
  break-inside: avoid;
}
.sample-signature svg {
  display: block;
  width: 210px;
  max-width: 100%;
  height: 60px;
  border-bottom: 1px solid #a4b3c9;
  margin: 8px 0;
}
.sample-signature b,
.sample-signature small {
  display: block;
  overflow-wrap: anywhere;
}
.sample-signature small {
  font-size: 9px;
  color: #65758c;
  margin-top: 5px;
}
.attachment-tag {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #52709b;
}

.claim-spotlight {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 18px;
  align-items: center;
  margin: 20px 0 28px;
}
.claim-target {
  border: 2px solid #d4263e;
  border-radius: 12px;
  background: #fff0f2;
  padding: 20px;
  color: #a41329;
  box-shadow: 0 0 0 5px #d4263e0b;
}
.claim-target span {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
}
.claim-target strong {
  display: block;
  font-size: 34px;
  line-height: 1.3;
  margin: 8px 0;
}
.claim-target b,
.claim-target small {
  display: block;
  overflow-wrap: anywhere;
}
.claim-target small {
  margin-top: 8px;
  font-size: 11px;
}
.claim-explainer {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #7c1826;
}
.point-arrow {
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
}
.claim-explainer b {
  font-size: 17px;
}
.claim-explainer p,
.claim-resolved p {
  font-size: 12px;
  line-height: 1.6;
  margin: 8px 0;
}
.resolve-demo {
  background: #fff;
  border: 1px solid currentColor;
  border-radius: 7px;
  color: inherit;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.resolve-demo:hover {
  background: #fce5e8;
}
.claim-resolved {
  background: #ecf9f1;
  color: #17643d;
  border: 2px solid #62a77f;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
}
.claim-pending {
  border: 2px solid #d4263e !important;
  background: #fff6f7 !important;
}
.pkg-index .index-alert {
  color: #b11d32;
  font-weight: 700;
}
.resolve-demo:focus-visible {
  outline: 3px solid #2459ec;
  outline-offset: 3px;
}
@media (max-width: 760px) {
  .claim-spotlight {
    grid-template-columns: 1fr;
  }
  .claim-explainer {
    align-items: flex-start;
  }
  .point-arrow {
    transform: rotate(90deg);
  }
  .claim-target strong {
    font-size: 28px;
  }
}

/* The real printed package (Request for Funding, P.O., canvass sheet), fanned like papers on a desk. */
.packet-real {
  position: relative;
  height: 300px;
  margin: 26px 0 18px;
}
.packet-real img {
  position: absolute;
  left: 50%;
  top: 0;
  width: 78%;
  height: auto;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 18px 40px #0008;
  transform-origin: 50% 100%;
  transition: transform 0.35s ease;
}
.packet-real img:nth-child(1) {
  transform: translateX(-50%) translate(26px, 18px) rotate(6deg);
}
.packet-real img:nth-child(2) {
  transform: translateX(-50%) translate(10px, 8px) rotate(2.5deg);
}
.packet-real img:nth-child(3) {
  transform: translateX(-50%) rotate(-2deg);
}
.builder-right:hover .packet-real img:nth-child(1) {
  transform: translateX(-50%) translate(60px, 24px) rotate(9deg);
}
.builder-right:hover .packet-real img:nth-child(3) {
  transform: translateX(-50%) translate(-30px, -6px) rotate(-5deg);
}
.packet-real span {
  position: absolute;
  right: 0;
  bottom: -14px;
  font-size: 9px;
  letter-spacing: 1.6px;
  color: #9fb3d6;
}
