.ci-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
  gap: 24px;
  align-items: start;
}
.ci-body {
  padding: 28px;
  display: grid;
  gap: 24px;
}
.ci-body h2 {
  font-size: 22px;
  margin: 0;
  color: #294b3c;
}
.ci-upload {
  display: flex;
  gap: 22px;
  align-items: center;
}
.ci-logo-preview {
  width: 144px;
  height: 118px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background:
    linear-gradient(45deg, #edf4ef 25%, transparent 25%),
    linear-gradient(-45deg, #edf4ef 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #edf4ef 75%),
    linear-gradient(-45deg, transparent 75%, #edf4ef 75%);
  background-size: 20px 20px;
  background-position:
    0 0,
    0 10px,
    10px -10px,
    -10px 0px;
  border: 1px solid #d4e4da;
  border-radius: 20px;
  padding: 18px;
  color: #177c72;
  font-size: 30px;
  font-weight: 700;
}
.ci-logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.ci-upload-label {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.ci-upload-label input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.ci-upload p {
  font-size: 12px;
  line-height: 1.6;
}
.ci-preview {
  position: sticky;
  top: 95px;
  display: grid;
  gap: 20px;
}
.ci-identity-card {
  padding: 28px;
  background: linear-gradient(125deg, #e6f3ec, #f8fbf9);
  border: 1px solid #cee3d7;
  border-radius: 22px;
}
.ci-identity-card > strong {
  display: block;
  font-size: 26px;
  letter-spacing: -0.6px;
  margin-top: 13px;
  overflow-wrap: anywhere;
}
.ci-identity-card p {
  color: #6e8779;
  line-height: 1.6;
}
.ci-identity-card > span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #177c72;
}
.ci-identity-card .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.ci-document-preview {
  padding: 25px;
  background: white;
  overflow-wrap: anywhere;
}
.ci-document-preview .ci-document-header {
  flex-wrap: wrap;
}
.ci-document-preview .ci-document-header img {
  width: 75px !important;
  height: 65px !important;
}
.ci-document-preview h3 {
  font-size: 19px;
}
.ci-document-preview p {
  font-size: 14px;
  color: #82948b;
}
.ci-savebar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-top: 24px;
  padding: 20px 24px;
  background: #edf6f0;
  border: 1px solid #d7e7dd;
  border-radius: 18px;
}
.ci-savebar p {
  font-size: 14px;
  color: #6d897a;
  margin: 0;
}
.ci-savebar .btn {
  min-height: 48px;
}
.ci-sidebar-logo img,
.ci-header-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.ci-sidebar-logo {
  background: white !important;
  padding: 4px;
  border: 1px solid #dce8e0;
}
.ci-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #3b5b4b;
  min-width: 0;
  max-width: 165px;
  text-decoration: none;
}
.ci-header-logo {
  display: grid;
  place-items: center;
  background: #eef5f0;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 10px;
  padding: 3px;
  font-weight: 650;
  font-size: 12px;
  color: #177c72;
}
.ci-topbar strong {
  font-size: 12px;
  line-height: 1.4;
  max-width: 118px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ci-topbar:focus-visible {
  outline: 2px solid #177c72;
  outline-offset: 4px;
  border-radius: 8px;
}
.ci-logo-preview {
  grid-template-rows: minmax(0, 1fr);
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
}
.ci-logo-preview img {
  display: block;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
}
@media (max-width: 1150px) {
  .ci-topbar {
    max-width: 34px;
  }
  .ci-topbar strong {
    display: none;
  }
}
@media (max-width: 900px) {
  .ci-layout {
    grid-template-columns: 1fr;
  }
  .ci-preview {
    position: static;
  }
  .ci-preview .ci-identity-card {
    display: none;
  }
}
@media (max-width: 767px) {
  .ci-topbar {
    display: none;
  }
  .ci-body {
    padding: 20px;
  }
  .ci-upload {
    flex-wrap: wrap;
    gap: 15px;
  }
  .ci-logo-preview {
    width: 120px;
    height: 104px;
  }
  .ci-savebar {
    flex-direction: column;
    align-items: stretch;
  }
  .ci-savebar .btn {
    justify-content: center;
  }
  .ci-document-preview {
    padding: 20px;
  }
}
