.treeid-app,
.treeid-app * {
  box-sizing: border-box;
}

.treeid-app {
  width: 100%;
  max-width: 100%;
  color: #122023;
  font-family: inherit;
}

.treeid-hero-banner,
.treeid-main-card,
.treeid-result-card {
  width: 100%;
  max-width: 100%;
}

.treeid-hero-banner {
  display: grid;
  position: relative;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .72fr);
  gap: clamp(18px, 3vw, 38px);
  align-items: center;
  min-height: clamp(270px, 24vw, 360px);
  padding: clamp(26px, 3.4vw, 42px) clamp(24px, 4vw, 48px);
  border: 1px solid rgba(183, 255, 179, .24);
  border-radius: 30px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(3, 25, 15, .82) 0%, rgba(5, 42, 28, .64) 42%, rgba(17, 30, 80, .64) 100%),
    radial-gradient(circle at 78% 52%, rgba(36, 240, 218, .22), transparent 28%),
    url("treeid-hero-bg.jpg") center / cover no-repeat;
  box-shadow: 0 24px 64px rgba(8, 37, 28, .24), inset 0 0 0 1px rgba(255, 255, 255, .12);
  color: #ffffff;
}

.treeid-hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .14), transparent 22%),
    radial-gradient(circle at 100% 100%, rgba(122, 74, 255, .35), transparent 30%);
}

.treeid-hero-copy,
.treeid-hero-visual {
  position: relative;
  z-index: 1;
}

.treeid-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  margin-bottom: 10px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(34, 211, 238, .14);
  color: #0f8ea0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.treeid-main-card .treeid-kicker {
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid rgba(132, 202, 107, .32);
  background: rgba(235, 252, 223, .78);
  color: #2e7a30;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
  font-size: 15px;
  letter-spacing: .03em;
}

.treeid-main-card .treeid-kicker::before {
  content: "";
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  background: url("treeid-leaf-badge.png") center / contain no-repeat;
}

.treeid-hero-banner .treeid-kicker {
  min-height: 38px;
  margin-bottom: 16px;
  padding: 0 18px;
  border: 1px solid rgba(233, 255, 194, .28);
  background: rgba(255, 255, 255, .13);
  color: #f0ffe7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16);
  backdrop-filter: blur(14px);
  font-size: 13px;
  letter-spacing: .02em;
}

.treeid-hero-copy h2,
.treeid-card-head h3,
.treeid-result-head h3,
.treeid-limit h3,
.treeid-modal-panel h3 {
  margin: 0;
  color: inherit;
  line-height: 1.08;
}

.treeid-hero-copy h2 {
  max-width: 760px;
  color: #ffffff;
  font-size: clamp(40px, 4.8vw, 66px);
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 18px 44px rgba(0, 0, 0, .32);
}

.treeid-hero-copy p {
  max-width: 690px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, .88);
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.55;
  text-shadow: 0 8px 24px rgba(0, 0, 0, .3);
}

.treeid-hero-actions,
.treeid-actions,
.treeid-result-actions,
.treeid-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.treeid-hero-visual {
  display: grid;
  justify-items: end;
  align-content: center;
  gap: 18px;
  min-width: 0;
}

.treeid-hero-app-icon {
  display: grid;
  place-items: center;
  width: clamp(118px, 10vw, 162px);
  height: clamp(118px, 10vw, 162px);
  margin: 0 auto 8px;
  border: 1px solid rgba(170, 255, 242, .32);
  border-radius: clamp(34px, 4vw, 56px);
  background: linear-gradient(145deg, rgba(172, 255, 244, .2), rgba(18, 69, 76, .34));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), 0 26px 58px rgba(0, 0, 0, .34), 0 0 42px rgba(24, 210, 238, .18);
  backdrop-filter: blur(14px);
}

.treeid-hero-app-icon img {
  width: 122%;
  height: 122%;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .26));
}

.treeid-hero-stat {
  display: grid;
  grid-template-columns: 46px minmax(48px, .34fr) minmax(110px, 1fr) 16px;
  align-items: center;
  gap: 14px;
  width: min(380px, 100%);
  min-height: 62px;
  padding: 10px 16px;
  border: 1px solid rgba(220, 247, 255, .24);
  border-radius: 18px;
  background: linear-gradient(105deg, rgba(255, 255, 255, .15), rgba(101, 92, 176, .24));
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 18px 48px rgba(0, 0, 0, .22);
  backdrop-filter: blur(18px);
}

.treeid-hero-stat-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 15px;
  background: rgba(210, 255, 208, .16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
}

.treeid-hero-stat-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.treeid-hero-stat strong {
  color: #ffffff;
  font-size: clamp(26px, 2.35vw, 36px);
  line-height: 1;
  text-shadow: 0 10px 24px rgba(0, 0, 0, .24);
}

.treeid-hero-stat > span:not(.treeid-hero-stat-icon) {
  color: rgba(255, 255, 255, .88);
  font-size: clamp(14px, 1.05vw, 18px);
  font-weight: 700;
  text-align: right;
}

.treeid-hero-stat i {
  width: 13px;
  height: 13px;
  border-top: 2px solid rgba(255, 255, 255, .8);
  border-right: 2px solid rgba(255, 255, 255, .8);
  transform: rotate(45deg);
}

.treeid-main-card,
.treeid-result-card {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid rgba(16, 104, 118, .13);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 52px rgba(15, 48, 55, .11);
}

.treeid-main-card {
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid rgba(97, 166, 77, .42);
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 0%, rgba(221, 255, 200, .52), transparent 30%),
    radial-gradient(circle at 90% 8%, rgba(224, 249, 236, .62), transparent 32%),
    linear-gradient(180deg, #fffef8 0%, #fafff7 100%);
  box-shadow: 0 22px 64px rgba(62, 113, 68, .16), inset 0 1px 0 rgba(255, 255, 255, .9);
}

.treeid-card-head,
.treeid-result-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.treeid-card-head {
  gap: clamp(18px, 6vw, 80px);
  margin-bottom: 26px;
}

.treeid-card-head h3,
.treeid-result-head h3 {
  font-size: 26px;
  color: #13292e;
}

.treeid-card-head h3 {
  font-size: clamp(30px, 3.2vw, 44px);
  letter-spacing: 0;
}

.treeid-card-head p,
.treeid-result-head p {
  max-width: 430px;
  margin: 0;
  color: #597279;
  line-height: 1.5;
}

.treeid-card-head p {
  max-width: 600px;
  padding-top: 18px;
  color: #4f6770;
  font-size: clamp(17px, 1.55vw, 24px);
  line-height: 1.38;
}

.treeid-form {
  display: grid;
  gap: 16px;
}

.treeid-form-simple {
  gap: 20px;
  grid-template-columns: minmax(220px, 420px) minmax(0, 1fr);
  align-items: end;
}

.treeid-upload-panel {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(0, 1fr);
  gap: 16px;
}

.treeid-upload-panel-simple {
  grid-column: 1 / -1;
  grid-template-columns: 1fr;
}

.treeid-preview {
  position: relative;
  height: clamp(280px, 28vw, 390px);
  min-height: 0;
  max-height: 390px;
  overflow: hidden;
  border: 2px dashed rgba(38, 186, 102, .72);
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(255, 255, 246, .25), rgba(255, 255, 255, .68), rgba(255, 255, 246, .25)),
    url("treeid-upload-bg.jpg") center / cover no-repeat,
    linear-gradient(135deg, #f2fff8, #f8fffb);
  box-shadow: 0 18px 42px rgba(56, 125, 70, .16), inset 0 0 0 1px rgba(255, 255, 255, .48);
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.treeid-preview:hover {
  border-color: rgba(16, 185, 129, .88);
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, .12), 0 16px 36px rgba(15, 48, 55, .08);
  transform: translateY(-1px);
}

.treeid-dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.treeid-preview img {
  display: none;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  background: #f6fffb;
}

.treeid-preview.has-image img {
  display: block;
}

.treeid-preview.has-image {
  border-style: solid;
  border-color: rgba(16, 185, 129, .34);
  background: #f6fffb;
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, .08);
}

.treeid-preview.has-image .treeid-preview-empty {
  display: none;
}

.treeid-preview-empty {
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 0;
  padding: clamp(22px, 4vw, 42px);
  text-align: center;
  color: #587178;
}

.treeid-upload-visual {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.treeid-upload-visual img {
  display: block;
  width: clamp(112px, 11vw, 164px);
  height: clamp(112px, 11vw, 164px);
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 18px 26px rgba(61, 128, 65, .22));
}

.treeid-upload-visual em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  min-width: 134px;
  padding: 0 28px;
  border: 1px solid rgba(58, 210, 124, .22);
  border-radius: 999px;
  background: linear-gradient(180deg, #e8fff0, #d9ffe7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 10px 24px rgba(45, 190, 98, .13);
  color: #11a65d;
  font-style: normal;
  font-size: 22px;
  font-weight: 900;
}

.treeid-preview-empty strong {
  display: block;
  color: #13292e;
  font-size: clamp(24px, 2.15vw, 34px);
  line-height: 1.18;
}

.treeid-preview-empty small {
  display: block;
  margin-top: 14px;
  color: #6f858b;
  font-size: clamp(15px, 1.2vw, 19px);
}

.treeid-simple-actions {
  grid-column: 2;
  justify-content: flex-end;
  margin-top: 0;
}

.treeid-language-field {
  display: grid;
  grid-column: 1;
  gap: 8px;
  width: min(420px, 100%);
  justify-self: start;
}

.treeid-language-field span {
  color: #25474f;
  font-size: 13px;
  font-weight: 900;
}

.treeid-language-field select {
  width: 100%;
  min-height: 50px;
  padding: 0 42px 0 14px;
  border: 1px solid rgba(20, 128, 145, .18);
  border-radius: 15px;
  background: #fbfefe;
  color: #152d33;
  font: inherit;
  font-weight: 700;
  outline: none;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.treeid-language-field select:focus {
  border-color: #22c7d9;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(34, 199, 217, .14);
}

.treeid-upload-actions {
  display: grid;
  gap: 12px;
  align-content: start;
}

.treeid-upload-btn {
  display: grid;
  gap: 4px;
  min-height: 112px;
  padding: 18px;
  border: 1px solid rgba(20, 128, 145, .16);
  border-radius: 18px;
  background: #f7fcfc;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.treeid-upload-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(20, 128, 145, .4);
  box-shadow: 0 14px 30px rgba(15, 48, 55, .09);
}

.treeid-upload-btn input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.treeid-upload-btn span {
  color: #11343b;
  font-size: 18px;
  font-weight: 800;
}

.treeid-upload-btn small {
  color: #668188;
}

.treeid-grid {
  display: grid;
  gap: 14px;
}

.treeid-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.treeid-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.treeid-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.treeid-field span {
  color: #25474f;
  font-size: 13px;
  font-weight: 800;
}

.treeid-field input,
.treeid-field select,
.treeid-field textarea,
.treeid-result-textarea {
  width: 100%;
  max-width: 100%;
  border: 1px solid rgba(20, 128, 145, .18);
  border-radius: 14px;
  background: #fbfefe;
  color: #152d33;
  font: inherit;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.treeid-field input,
.treeid-field select {
  min-height: 50px;
  padding: 0 14px;
}

.treeid-field textarea,
.treeid-result-textarea {
  padding: 14px;
  resize: vertical;
  line-height: 1.55;
}

.treeid-field input::placeholder,
.treeid-field textarea::placeholder {
  color: #9fb0b5;
}

.treeid-field input:focus::placeholder,
.treeid-field textarea:focus::placeholder {
  color: transparent;
}

.treeid-field input:focus,
.treeid-field select:focus,
.treeid-field textarea:focus,
.treeid-result-textarea:focus {
  border-color: #22c7d9;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(34, 199, 217, .14);
}

.treeid-wide {
  width: 100%;
}

.treeid-primary-btn,
.treeid-secondary-btn,
.treeid-play-link,
.treeid-report-btn,
.treeid-limit a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.treeid-primary-btn {
  background: linear-gradient(135deg, #0fb5c8, #4f46e5);
  color: #ffffff;
  box-shadow: 0 14px 24px rgba(15, 181, 200, .24);
}

.treeid-secondary-btn {
  border: 1px solid rgba(20, 128, 145, .18);
  background: #ffffff;
  color: #173941;
}

.treeid-simple-actions .treeid-primary-btn,
.treeid-simple-actions .treeid-secondary-btn {
  gap: 12px;
  min-height: 62px;
  min-width: 220px;
  padding: 0 30px;
  border-radius: 999px;
  font-size: 20px;
  box-shadow: 0 12px 28px rgba(20, 42, 49, .13);
}

.treeid-simple-actions .treeid-secondary-btn {
  border-color: rgba(21, 58, 66, .12);
}

.treeid-simple-actions .treeid-primary-btn {
  background: linear-gradient(135deg, #19c4c6 0%, #22b9d9 42%, #5147ee 100%);
  box-shadow: 0 16px 32px rgba(35, 107, 207, .26);
}

.treeid-simple-actions .treeid-secondary-btn::before,
.treeid-simple-actions .treeid-primary-btn::before {
  content: "";
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.treeid-simple-actions .treeid-secondary-btn::before {
  background-image: url("treeid-clear-trash.png");
}

.treeid-simple-actions .treeid-primary-btn::before {
  background-image: url("treeid-identify-sparkles.png");
}

.treeid-simple-actions button:disabled {
  opacity: .58;
  cursor: not-allowed;
  transform: none;
}

.treeid-play-link,
.treeid-limit a {
  background: #dffafd;
  color: #0f5964;
}

.treeid-report-btn {
  border: 1px solid rgba(219, 39, 119, .22);
  background: #fff1f7;
  color: #9d174d;
}

.treeid-limit,
.treeid-loader,
.treeid-error {
  margin-top: 18px;
  border-radius: 18px;
  padding: 18px;
}

.treeid-limit {
  border: 1px solid rgba(79, 70, 229, .16);
  background: #f6f5ff;
}

.treeid-limit p {
  margin: 8px 0 14px;
  color: #56636f;
}

.treeid-loader {
  position: fixed;
  z-index: 9997;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 22px;
  background: rgba(7, 24, 29, .58);
  color: #173941;
}

.treeid-loader > div:last-child {
  width: min(430px, 100%);
  padding: 24px;
  border: 1px solid rgba(34, 199, 217, .18);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .28);
}

.treeid-loader[hidden],
.treeid-limit[hidden],
.treeid-error[hidden],
.treeid-result-card[hidden],
.treeid-modal[hidden],
.treeid-download-menu[hidden] {
  display: none !important;
}

.treeid-loader-ring {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 4px solid rgba(34, 199, 217, .2);
  border-top-color: #0fb5c8;
  border-radius: 50%;
  animation: treeid-spin .8s linear infinite;
}

.treeid-loader span {
  display: block;
  margin-top: 3px;
  color: #668188;
}

.treeid-error {
  border: 1px solid rgba(220, 38, 38, .18);
  background: #fff1f2;
  color: #9f1239;
}

.treeid-result-card {
  position: fixed;
  z-index: 9998;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 18px;
  border: 0;
  border-radius: 0;
  background: rgba(7, 24, 29, .62);
  box-shadow: none;
}

.treeid-result-panel {
  width: min(1120px, 100%);
  max-height: min(860px, 94vh);
  overflow: auto;
  padding: 22px;
  border: 1px solid rgba(34, 199, 217, .16);
  border-radius: 26px;
  background:
    radial-gradient(circle at 100% 0%, rgba(34, 211, 238, .12), transparent 28%),
    #ffffff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .32);
}

.treeid-result-head {
  align-items: center;
  margin-bottom: 18px;
}

.treeid-result-close {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid rgba(20, 128, 145, .16);
  border-radius: 999px;
  background: #f4fbfb;
  color: #173941;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.treeid-result-layout {
  display: grid;
  grid-template-columns: minmax(230px, 340px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.treeid-result-photo-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(20, 128, 145, .12);
  border-radius: 20px;
  background: #f6fffb;
}

.treeid-result-photo-card span {
  color: #0f8ea0;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.treeid-result-photo-card img {
  width: 100%;
  height: 280px;
  border-radius: 16px;
  object-fit: contain;
  background: #ffffff;
}

.treeid-result-content {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.treeid-result-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.treeid-result-summary div {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(79, 70, 229, .12);
  border-radius: 16px;
  background: linear-gradient(135deg, #f7fbff, #f8f7ff);
}

.treeid-result-summary strong,
.treeid-result-summary span {
  display: block;
}

.treeid-result-summary strong {
  overflow: hidden;
  color: #13292e;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.treeid-result-summary span {
  margin-top: 4px;
  color: #71868c;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.treeid-result-sections {
  display: grid;
  gap: 12px;
}

.treeid-section-card {
  padding: 15px 16px;
  border: 1px solid rgba(20, 128, 145, .12);
  border-left: 5px solid #0fb5c8;
  border-radius: 16px;
  background: #fbfefe;
}

.treeid-section-card h4 {
  margin: 0 0 8px;
  color: #0f5964;
  font-size: 15px;
}

.treeid-section-card p {
  margin: 0;
  color: #25474f;
  line-height: 1.58;
  white-space: pre-line;
}

.treeid-edit-box {
  border: 1px solid rgba(20, 128, 145, .12);
  border-radius: 16px;
  background: #f8fcfd;
}

.treeid-edit-box summary {
  padding: 13px 15px;
  color: #173941;
  font-weight: 900;
  cursor: pointer;
}

.treeid-result-textarea {
  min-height: 240px;
  border: 0;
  border-top: 1px solid rgba(20, 128, 145, .12);
  border-radius: 0 0 16px 16px;
  background: #ffffff;
}

.treeid-result-actions {
  position: sticky;
  bottom: -22px;
  z-index: 2;
  margin: 18px -22px -22px;
  padding: 14px 22px;
  border-top: 1px solid rgba(20, 128, 145, .12);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
}

.treeid-download {
  position: relative;
}

.treeid-download-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  left: 0;
  min-width: 190px;
  padding: 8px;
  border: 1px solid rgba(20, 128, 145, .16);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 48, 55, .18);
}

.treeid-download-menu button {
  display: block;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #173941;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.treeid-download-menu button:hover {
  background: #effbfc;
}

.treeid-status {
  min-height: 22px;
  margin-top: 10px;
  color: #0f8a5f;
  font-size: 14px;
  font-weight: 700;
}

.treeid-modal {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(7, 24, 29, .58);
}

.treeid-modal-panel {
  width: min(560px, 100%);
  max-height: min(760px, 92vh);
  overflow: auto;
  padding: 22px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 26px 80px rgba(0, 0, 0, .28);
}

.treeid-modal-panel p {
  color: #597279;
  line-height: 1.5;
}

.treeid-loader {
  z-index: 10000;
  padding: clamp(10px, 2vw, 24px);
  background: rgba(11, 28, 20, .52);
  backdrop-filter: blur(16px);
}

.treeid-loader-panel {
  position: relative;
  width: min(1820px, 100%);
  max-height: min(820px, 94vh);
  overflow: auto;
  padding: clamp(28px, 4vw, 62px) clamp(24px, 4.6vw, 82px) clamp(28px, 3.6vw, 54px);
  border: 1px solid rgba(80, 118, 77, .28);
  border-radius: clamp(24px, 3vw, 52px);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .88), rgba(255, 255, 255, .78)),
    url("screen4_background.png") center / cover no-repeat;
  box-shadow:
    0 32px 120px rgba(10, 34, 20, .34),
    inset 0 1px 0 rgba(255, 255, 255, .82);
  color: #14262c;
}

.treeid-loader-close {
  position: absolute;
  top: clamp(18px, 3vw, 42px);
  right: clamp(18px, 3vw, 54px);
  display: grid;
  place-items: center;
  width: clamp(48px, 4.8vw, 72px);
  height: clamp(48px, 4.8vw, 72px);
  border: 1px solid rgba(55, 148, 98, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 12px 32px rgba(27, 70, 45, .12);
  cursor: pointer;
}

.treeid-loader-close img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.treeid-loader-title {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  margin: 0 auto 34px;
  padding-right: 70px;
  text-align: center;
}

.treeid-loader-title > img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.treeid-loader-title strong {
  display: block;
  color: #14272d;
  font-size: clamp(34px, 3.5vw, 60px);
  font-weight: 900;
  line-height: 1.02;
}

.treeid-loader-title span {
  display: block;
  margin-top: 12px;
  color: #60717d;
  font-size: clamp(17px, 1.35vw, 27px);
  font-weight: 600;
}

.treeid-loader-grid {
  display: grid;
  grid-template-columns: minmax(260px, 470px) minmax(330px, 1fr) minmax(300px, 560px);
  gap: clamp(24px, 4vw, 74px);
  align-items: center;
}

.treeid-loader-photo {
  position: relative;
  align-self: center;
  overflow: hidden;
  border: 1px solid rgba(51, 118, 63, .24);
  border-radius: 30px;
  background: #eef7e9;
  box-shadow: 0 22px 60px rgba(21, 55, 28, .22);
}

.treeid-loader-photo > img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / .92;
  min-height: 280px;
  object-fit: cover;
}

.treeid-loader-photo span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 20px;
  border: 1px solid rgba(54, 138, 77, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .84);
  box-shadow: 0 12px 28px rgba(13, 44, 25, .2);
  color: #203840;
  font-size: 20px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.treeid-loader-photo span img {
  width: 28px;
  height: 28px;
}

.treeid-loader-orbit {
  position: relative;
  display: grid;
  place-items: center;
  width: min(38vw, 530px);
  min-width: 320px;
  aspect-ratio: 1;
  justify-self: center;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, .95) 0 31%, rgba(246, 252, 247, .86) 32% 49%, rgba(214, 245, 226, .36) 50% 68%, transparent 70%),
    conic-gradient(from 12deg, #0ac67c 0 27%, #1cc9e7 27% 48%, rgba(255, 255, 255, .35) 48% 100%);
  box-shadow: inset 0 0 0 10px rgba(255, 255, 255, .54), 0 28px 70px rgba(36, 142, 87, .14);
}

.treeid-loader-ring-outer,
.treeid-loader-ring-progress {
  position: absolute;
  inset: 9%;
  border-radius: inherit;
  pointer-events: none;
}

.treeid-loader-ring-outer {
  border: 2px dashed rgba(21, 197, 217, .46);
  animation: treeid-spin 10s linear infinite;
}

.treeid-loader-ring-progress {
  border: 12px solid transparent;
  border-top-color: #13c46f;
  border-right-color: #19d6e5;
  animation: treeid-spin 3.2s linear infinite;
}

.treeid-loader-core {
  display: grid;
  place-items: center;
  width: 38%;
  aspect-ratio: 1;
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .92), 0 20px 50px rgba(15, 74, 47, .14);
}

.treeid-loader-core img {
  width: 56%;
  height: 56%;
  object-fit: contain;
}

.treeid-loader-steps {
  display: grid;
  gap: 20px;
}

.treeid-loader-step {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 34px;
  gap: 22px;
  align-items: center;
  min-height: 138px;
  padding: 22px 26px;
  border: 1px solid rgba(70, 114, 82, .16);
  border-radius: 24px;
  background: rgba(255, 255, 255, .74);
  box-shadow: 0 18px 44px rgba(15, 40, 25, .12), inset 0 1px 0 rgba(255, 255, 255, .8);
  backdrop-filter: blur(12px);
}

.treeid-loader-step.is-active {
  border-color: rgba(41, 183, 112, .34);
  background: rgba(239, 253, 242, .78);
}

.treeid-loader-step > img {
  width: 78px;
  height: 78px;
  border-radius: 24px;
  object-fit: contain;
  filter: drop-shadow(0 14px 22px rgba(27, 118, 58, .16));
}

.treeid-loader-step strong {
  display: block;
  color: #172b31;
  font-size: clamp(19px, 1.35vw, 26px);
  font-weight: 900;
}

.treeid-loader-step span {
  display: block;
  margin-top: 8px;
  color: #5d6d78;
  font-size: clamp(16px, 1.1vw, 22px);
  line-height: 1.35;
}

.treeid-loader-step i {
  display: block;
  width: 28px;
  height: 28px;
  border: 4px dotted #7890a0;
  border-radius: 999px;
  animation: treeid-spin 1.2s linear infinite;
}

.treeid-loader-step.is-active i {
  border-color: #16a765;
}

.treeid-loader-progress-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 34px;
  color: #14272d;
  font-size: clamp(17px, 1.25vw, 26px);
  font-weight: 800;
}

.treeid-loader-progress {
  height: 25px;
  margin-top: 16px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .86);
  border-radius: 999px;
  background: rgba(215, 224, 219, .68);
  box-shadow: inset 0 2px 10px rgba(25, 48, 34, .08);
}

.treeid-loader-progress i {
  display: block;
  width: 8%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #13bc66, #26d9ef);
  box-shadow: 0 0 18px rgba(29, 209, 189, .48);
  transition: width .45s ease;
}

.treeid-loader-panel > p {
  margin: 24px 0 0;
  color: #657783;
  font-size: clamp(15px, 1vw, 20px);
  font-weight: 600;
  text-align: center;
}

.treeid-result-card {
  z-index: 9998;
  padding: clamp(10px, 1.5vw, 22px);
  background: rgba(11, 28, 20, .55);
  backdrop-filter: blur(14px);
}

.treeid-result-panel {
  position: relative;
  width: min(1820px, 100%);
  max-height: min(820px, 94vh);
  padding: clamp(26px, 3vw, 58px);
  border: 1px solid rgba(70, 104, 60, .26);
  border-radius: clamp(24px, 3vw, 48px);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .78)),
    url("screen3_background.png") center / cover no-repeat;
  box-shadow: 0 32px 120px rgba(10, 34, 20, .34), inset 0 1px 0 rgba(255, 255, 255, .86);
}

.treeid-result-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.treeid-result-head .treeid-kicker {
  min-height: 48px;
  margin-bottom: 18px;
  padding: 0 22px;
  border: 1px solid rgba(105, 188, 96, .26);
  background: rgba(232, 252, 226, .76);
  color: #2e8b35;
  font-size: 17px;
  letter-spacing: .03em;
}

.treeid-result-head .treeid-kicker::before {
  content: "";
  width: 27px;
  height: 27px;
  background: url("screen3_icon_01_result_leaf_badge.png") center / contain no-repeat;
}

.treeid-result-head h3 {
  color: #13292f;
  font-size: clamp(42px, 4.2vw, 68px);
  font-weight: 900;
  letter-spacing: 0;
}

.treeid-result-close {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 19px 0 24px;
  border: 1px solid rgba(20, 83, 96, .2);
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 14px 32px rgba(20, 47, 55, .1);
  color: #23434d;
  font-size: 17px;
  backdrop-filter: blur(12px);
}

.treeid-result-close img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.treeid-result-layout {
  grid-template-columns: minmax(280px, 575px) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 36px);
}

.treeid-result-photo-card {
  padding: 21px;
  border-color: rgba(67, 160, 71, .18);
  border-radius: 25px;
  background: rgba(255, 255, 255, .68);
  box-shadow: 0 18px 48px rgba(34, 74, 40, .12);
  backdrop-filter: blur(10px);
}

.treeid-result-photo-card span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
  color: #308236;
  font-size: 18px;
  letter-spacing: .03em;
}

.treeid-result-photo-card span::before {
  content: "";
  width: 24px;
  height: 24px;
  background: url("screen3_icon_01_result_leaf_badge.png") center / contain no-repeat;
}

.treeid-result-photo-card img {
  height: auto;
  aspect-ratio: 1.08 / 1;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 12px 34px rgba(21, 54, 30, .14);
}

.treeid-result-content {
  gap: 18px;
}

.treeid-result-summary {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: clamp(14px, 1.5vw, 22px);
}

.treeid-result-summary .treeid-result-metric {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 110px;
  padding: 18px 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 14px 36px rgba(19, 47, 35, .1), inset 0 1px 0 rgba(255, 255, 255, .8);
  backdrop-filter: blur(10px);
}

.treeid-result-metric-match {
  border-color: rgba(64, 156, 70, .24);
}

.treeid-result-metric-ai {
  border-color: rgba(30, 161, 214, .24);
}

.treeid-result-metric-review {
  border-color: rgba(125, 90, 227, .2);
}

.treeid-result-summary .treeid-result-metric > img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.treeid-result-summary strong {
  color: #172b32;
  font-size: clamp(17px, 1.15vw, 23px);
}

.treeid-result-summary span {
  color: #2e8a2f;
  font-size: clamp(12px, .85vw, 15px);
}

.treeid-result-metric-ai span {
  color: #048dc2;
}

.treeid-result-metric-review span {
  color: #7863e9;
}

.treeid-result-sections {
  padding: clamp(20px, 2.2vw, 32px);
  border: 1px solid rgba(45, 145, 158, .18);
  border-left: 6px solid #26b9c9;
  border-radius: 25px;
  background: rgba(255, 255, 255, .7);
  box-shadow: 0 16px 46px rgba(30, 66, 64, .1);
  backdrop-filter: blur(10px);
}

.treeid-section-card {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.treeid-section-card + .treeid-section-card {
  margin-top: 10px;
}

.treeid-section-card h4 {
  color: #0a8492;
  font-size: clamp(17px, 1vw, 22px);
}

.treeid-section-card p {
  color: #263f49;
  font-size: clamp(15px, 1vw, 21px);
  line-height: 1.55;
}

.treeid-edit-box {
  overflow: hidden;
  border-color: rgba(33, 91, 102, .16);
  border-radius: 22px;
  background: rgba(255, 255, 255, .64);
  box-shadow: 0 10px 30px rgba(30, 66, 64, .08);
}

.treeid-edit-box summary {
  padding: 15px 22px;
  font-size: 19px;
}

.treeid-result-actions {
  position: static;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 28px 0 0;
  padding: 0 0 0 clamp(70px, 6vw, 100px);
  border: 0;
  background: transparent;
  backdrop-filter: none;
}

.treeid-result-actions button,
.treeid-result-actions .treeid-secondary-btn,
.treeid-result-actions .treeid-report-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 60px;
  padding: 0 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .74);
  box-shadow: 0 14px 34px rgba(21, 55, 40, .1);
  font-size: 18px;
  backdrop-filter: blur(10px);
}

.treeid-result-actions button::before {
  content: "";
  width: 28px;
  height: 28px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.treeid-result-actions [data-treeid-copy]::before {
  background-image: url("screen3_icon_07_copy.png");
}

.treeid-result-actions [data-treeid-download-toggle]::before {
  background-image: url("screen3_icon_08_download.png");
}

.treeid-result-actions [data-treeid-print]::before {
  background-image: url("screen3_icon_09_print.png");
}

.treeid-result-actions [data-treeid-share-result]::before {
  background-image: url("screen3_icon_10_share.png");
}

.treeid-result-actions [data-treeid-report-open]::before {
  background-image: url("screen3_icon_11_report_flag.png");
}

.treeid-download-menu {
  top: auto;
  bottom: calc(100% + 10px);
}

@keyframes treeid-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1080px) {
  .treeid-hero-banner {
    grid-template-columns: minmax(0, 1fr) minmax(260px, .72fr);
    min-height: 300px;
    padding: 34px 28px;
  }

  .treeid-hero-copy h2 {
    font-size: clamp(42px, 6vw, 66px);
  }

  .treeid-hero-copy p {
    font-size: 18px;
  }

  .treeid-hero-stat {
    grid-template-columns: 50px minmax(52px, .3fr) minmax(112px, 1fr) 16px;
    gap: 14px;
    padding: 13px 18px;
  }
}

@media (max-width: 960px) {
  .treeid-form-simple {
    grid-template-columns: 1fr;
  }

  .treeid-language-field,
  .treeid-simple-actions {
    grid-column: 1;
  }

  .treeid-simple-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .treeid-mobile-host,
  .treeid-mobile-host.content-panel,
  .treeid-mobile-host.app-stage-panel,
  .app-stage-container.treeid-mobile-host,
  .app-stage-section.treeid-mobile-host {
    width: 100%;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
  }

  .treeid-app {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: 12px;
    padding-right: 12px;
    overflow-x: hidden;
  }

  .treeid-hero-banner {
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: auto;
    padding: 28px 16px 22px;
    border-radius: 22px;
    background-position: 58% center;
  }

  .treeid-hero-banner::after {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, .05), rgba(0, 0, 0, .16)),
      radial-gradient(circle at 100% 100%, rgba(122, 74, 255, .28), transparent 42%);
  }

  .treeid-hero-banner .treeid-kicker {
    min-height: 40px;
    margin-bottom: 18px;
    padding: 0 16px;
    font-size: 12px;
  }

  .treeid-hero-copy h2 {
    font-size: clamp(34px, 11vw, 48px);
  }

  .treeid-hero-copy p {
    margin-top: 16px;
    font-size: 16px;
    line-height: 1.5;
  }

  .treeid-hero-visual {
    justify-items: stretch;
    gap: 12px;
  }

  .treeid-hero-app-icon {
    width: 132px;
    height: 132px;
    margin: 0 auto 4px;
    border-radius: 34px;
  }

  .treeid-hero-stat {
    grid-template-columns: 44px 52px minmax(0, 1fr) 14px;
    gap: 12px;
    width: 100%;
    min-height: 66px;
    padding: 10px 14px;
    border-radius: 18px;
  }

  .treeid-hero-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 15px;
  }

  .treeid-hero-stat-icon img {
    width: 28px;
    height: 28px;
  }

  .treeid-hero-stat strong {
    font-size: 28px;
  }

  .treeid-hero-stat > span:not(.treeid-hero-stat-icon) {
    font-size: 15px;
    text-align: right;
  }

  .treeid-main-card,
  .treeid-result-card {
    padding: 16px;
    border-radius: 18px;
  }

  .treeid-result-card {
    padding: 10px;
    border-radius: 0;
  }

  .treeid-result-panel {
    max-height: 94vh;
    padding: 14px;
    border-radius: 20px;
  }

  .treeid-result-layout,
  .treeid-result-summary {
    grid-template-columns: 1fr;
  }

  .treeid-result-photo-card img {
    height: 210px;
  }

  .treeid-result-actions {
    position: static;
    margin: 14px 0 0;
    padding: 0;
    border-top: 0;
    background: transparent;
    backdrop-filter: none;
  }

  .treeid-preview {
    height: 310px;
    max-height: 310px;
  }

  .treeid-card-head,
  .treeid-result-head,
  .treeid-upload-panel,
  .treeid-grid.two,
  .treeid-grid.three {
    grid-template-columns: 1fr;
  }

  .treeid-card-head,
  .treeid-result-head {
    display: grid;
  }

  .treeid-main-card .treeid-kicker {
    min-height: 38px;
    padding: 0 14px;
    font-size: 12px;
  }

  .treeid-card-head h3 {
    font-size: clamp(28px, 8vw, 36px);
  }

  .treeid-card-head p {
    padding-top: 0;
    font-size: 15px;
  }

  .treeid-upload-visual {
    gap: 9px;
    margin-bottom: 14px;
  }

  .treeid-upload-visual img {
    width: 104px;
    height: 104px;
  }

  .treeid-upload-visual em {
    min-height: 40px;
    min-width: 112px;
    padding: 0 22px;
    font-size: 18px;
  }

  .treeid-preview-empty strong {
    font-size: clamp(21px, 6vw, 27px);
  }

  .treeid-preview-empty small {
    font-size: 14px;
  }

  .treeid-card-head p,
  .treeid-result-head p {
    max-width: none;
  }

  .treeid-field,
  .treeid-wide,
  .treeid-language-field,
  .treeid-language-field select,
  .treeid-field input,
  .treeid-field select,
  .treeid-field textarea,
  .treeid-actions,
  .treeid-actions button,
  .treeid-result-actions,
  .treeid-result-actions button,
  .treeid-primary-btn,
  .treeid-secondary-btn,
  .treeid-report-btn,
  .treeid-play-link,
  .treeid-limit a {
    width: 100%;
  }

  .treeid-result-actions {
    display: grid;
  }

  .treeid-download {
    width: 100%;
  }

  .treeid-download-menu {
    position: static;
    width: 100%;
    min-width: 0;
    margin-top: 8px;
  }
}

@media (max-width: 1180px) {
  .treeid-loader-grid {
    grid-template-columns: minmax(240px, .85fr) minmax(280px, 1fr);
  }

  .treeid-loader-steps {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .treeid-loader-step {
    grid-template-columns: 64px minmax(0, 1fr);
    min-height: 116px;
  }

  .treeid-loader-step i {
    display: none;
  }

  .treeid-result-layout {
    grid-template-columns: minmax(250px, .8fr) minmax(0, 1fr);
  }

  .treeid-result-summary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .treeid-loader,
  .treeid-result-card {
    padding: 8px;
  }

  .treeid-loader-panel,
  .treeid-result-panel {
    max-height: 96vh;
    padding: 18px;
    border-radius: 24px;
  }

  .treeid-loader-close {
    top: 12px;
    right: 12px;
    width: 46px;
    height: 46px;
  }

  .treeid-loader-title {
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    padding-right: 48px;
    text-align: left;
  }

  .treeid-loader-title > img {
    width: 42px;
    height: 42px;
  }

  .treeid-loader-title strong {
    font-size: clamp(26px, 8vw, 36px);
  }

  .treeid-loader-title span {
    margin-top: 6px;
    font-size: 15px;
  }

  .treeid-loader-grid,
  .treeid-result-layout {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .treeid-loader-photo > img {
    min-height: 210px;
    aspect-ratio: 1.25 / 1;
  }

  .treeid-loader-orbit {
    width: min(78vw, 360px);
    min-width: 0;
  }

  .treeid-loader-steps {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .treeid-loader-step {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 14px;
    min-height: 92px;
    padding: 14px;
    border-radius: 18px;
  }

  .treeid-loader-step > img {
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }

  .treeid-loader-step strong {
    font-size: 17px;
  }

  .treeid-loader-step span {
    font-size: 14px;
  }

  .treeid-loader-progress-row {
    margin-top: 18px;
    font-size: 17px;
  }

  .treeid-loader-progress {
    height: 18px;
  }

  .treeid-result-head {
    display: grid;
    gap: 14px;
  }

  .treeid-result-head h3 {
    font-size: clamp(30px, 9vw, 44px);
  }

  .treeid-result-close {
    width: fit-content;
    min-height: 46px;
    font-size: 15px;
  }

  .treeid-result-photo-card {
    padding: 14px;
  }

  .treeid-result-photo-card img {
    aspect-ratio: 1.35 / 1;
  }

  .treeid-result-summary {
    grid-template-columns: 1fr !important;
  }

  .treeid-result-summary .treeid-result-metric {
    grid-template-columns: 58px minmax(0, 1fr);
    min-height: 88px;
    padding: 14px 16px;
    border-radius: 18px;
  }

  .treeid-result-summary .treeid-result-metric > img {
    width: 54px;
    height: 54px;
  }

  .treeid-result-sections {
    padding: 16px;
    border-radius: 18px;
  }

  .treeid-section-card p {
    font-size: 15px;
  }

  .treeid-result-actions {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 0;
  }

  .treeid-result-actions button,
  .treeid-result-actions .treeid-secondary-btn,
  .treeid-result-actions .treeid-report-btn {
    width: 100%;
    min-height: 52px;
    font-size: 16px;
  }

  .treeid-download-menu {
    position: static;
    width: 100%;
    min-width: 0;
    margin-top: 8px;
  }
}

/* v20260706c: compact adaptive result/wait modals */
.treeid-result-panel,
.treeid-loader-panel {
  width: min(1880px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: clamp(18px, 2.25vw, 38px);
}

.treeid-result-head {
  margin-bottom: clamp(14px, 1.6vw, 22px);
}

.treeid-result-head .treeid-kicker {
  min-height: 40px;
  margin-bottom: 10px;
  padding: 0 17px;
  font-size: clamp(12px, .9vw, 15px);
}

.treeid-result-head h3 {
  font-size: clamp(32px, 3.3vw, 56px);
  line-height: 1.02;
}

.treeid-result-close {
  min-height: 46px;
  padding: 0 16px 0 20px;
  font-size: 15px;
}

.treeid-result-layout {
  display: grid;
  grid-template-columns: minmax(250px, 34%) minmax(0, 1fr);
  gap: clamp(16px, 1.8vw, 28px);
  align-items: start;
  min-width: 0;
}

.treeid-result-photo-card,
.treeid-result-content,
.treeid-result-summary,
.treeid-result-sections,
.treeid-edit-box {
  min-width: 0;
}

.treeid-result-photo-card {
  padding: clamp(12px, 1.2vw, 18px);
  border-radius: 22px;
}

.treeid-result-photo-card span {
  margin-bottom: 10px;
  font-size: clamp(13px, 1vw, 17px);
}

.treeid-result-photo-card img {
  width: 100%;
  max-height: min(48vh, 430px);
  aspect-ratio: 1.08 / .92;
  object-fit: cover;
}

.treeid-result-content {
  gap: clamp(10px, 1vw, 16px);
}

.treeid-result-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(8px, 1vw, 14px);
}

.treeid-result-summary .treeid-result-metric {
  grid-template-columns: clamp(38px, 3.7vw, 56px) minmax(0, 1fr);
  gap: clamp(8px, .9vw, 14px);
  min-height: 76px;
  padding: clamp(10px, 1.1vw, 16px);
  border-radius: 18px;
}

.treeid-result-summary .treeid-result-metric > img {
  width: clamp(38px, 3.7vw, 54px);
  height: clamp(38px, 3.7vw, 54px);
}

.treeid-result-summary strong {
  font-size: clamp(14px, 1vw, 18px);
  white-space: normal;
}

.treeid-result-summary span {
  margin-top: 3px;
  font-size: clamp(10px, .78vw, 13px);
  line-height: 1.25;
}

.treeid-result-sections {
  padding: clamp(14px, 1.5vw, 24px);
  border-radius: 20px;
}

.treeid-section-card h4 {
  margin-bottom: 5px;
  font-size: clamp(14px, 1vw, 18px);
}

.treeid-section-card p {
  font-size: clamp(14px, .98vw, 18px);
  line-height: 1.48;
}

.treeid-edit-box {
  border-radius: 18px;
}

.treeid-edit-box summary {
  padding: 11px 16px;
  font-size: clamp(15px, 1vw, 18px);
}

.treeid-result-textarea {
  min-height: 170px;
}

.treeid-result-actions {
  display: flex !important;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  padding: 0;
}

.treeid-result-actions button,
.treeid-result-actions .treeid-secondary-btn,
.treeid-result-actions .treeid-report-btn {
  width: auto;
  min-width: 132px;
  min-height: 48px;
  padding: 0 18px;
  font-size: 15px;
}

.treeid-result-actions button::before {
  width: 22px;
  height: 22px;
}

.treeid-loader-title {
  margin-bottom: clamp(18px, 2vw, 30px);
}

.treeid-loader-title strong {
  font-size: clamp(30px, 3vw, 50px);
}

.treeid-loader-title span {
  font-size: clamp(15px, 1.1vw, 22px);
}

.treeid-loader-grid {
  grid-template-columns: minmax(230px, 32%) minmax(280px, 1fr) minmax(260px, 35%);
  gap: clamp(16px, 2.5vw, 44px);
}

.treeid-loader-photo > img {
  min-height: 220px;
  max-height: min(44vh, 390px);
}

.treeid-loader-orbit {
  width: min(30vw, 430px);
  min-width: 260px;
}

.treeid-loader-step {
  grid-template-columns: 58px minmax(0, 1fr) 24px;
  gap: 14px;
  min-height: 92px;
  padding: 14px 16px;
  border-radius: 19px;
}

.treeid-loader-step > img {
  width: 54px;
  height: 54px;
  border-radius: 18px;
}

.treeid-loader-step strong {
  font-size: clamp(15px, 1.05vw, 19px);
}

.treeid-loader-step span {
  margin-top: 4px;
  font-size: clamp(13px, .95vw, 17px);
}

@media (max-width: 1180px) {
  .treeid-result-panel,
  .treeid-loader-panel {
    width: min(1160px, calc(100vw - 20px));
    padding: clamp(16px, 2vw, 26px);
  }

  .treeid-result-layout {
    grid-template-columns: minmax(220px, 31%) minmax(0, 1fr) !important;
  }

  .treeid-result-photo-card img {
    max-height: 330px;
  }

  .treeid-result-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .treeid-result-summary .treeid-result-metric {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    min-height: 68px;
    padding: 10px;
  }

  .treeid-result-summary .treeid-result-metric > img {
    width: 40px;
    height: 40px;
  }

  .treeid-result-summary strong {
    font-size: 13px;
  }

  .treeid-result-summary span {
    font-size: 10px;
  }

  .treeid-loader-grid {
    grid-template-columns: minmax(220px, 34%) minmax(260px, 1fr);
  }

  .treeid-loader-steps {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .treeid-result-layout {
    grid-template-columns: 1fr !important;
  }

  .treeid-result-photo-card {
    display: grid;
    grid-template-columns: minmax(150px, 34%) minmax(0, 1fr);
    gap: 12px;
    align-items: center;
  }

  .treeid-result-photo-card span {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }

  .treeid-result-photo-card img {
    max-height: 230px;
    aspect-ratio: 1.3 / 1;
  }

  .treeid-result-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .treeid-result-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .treeid-result-actions button,
  .treeid-result-actions .treeid-secondary-btn,
  .treeid-result-actions .treeid-report-btn,
  .treeid-download {
    width: 100%;
    min-width: 0;
  }

  .treeid-loader-grid {
    grid-template-columns: 1fr;
  }

  .treeid-loader-orbit {
    width: min(62vw, 330px);
    justify-self: center;
  }

  .treeid-loader-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .treeid-result-card,
  .treeid-loader {
    padding: 6px;
  }

  .treeid-result-panel,
  .treeid-loader-panel {
    width: calc(100vw - 12px);
    max-height: calc(100dvh - 12px);
    padding: 14px;
    border-radius: 18px;
  }

  .treeid-result-head {
    gap: 10px;
    margin-bottom: 12px;
  }

  .treeid-result-head h3 {
    font-size: clamp(28px, 8vw, 36px);
  }

  .treeid-result-close {
    min-height: 42px;
  }

  .treeid-result-photo-card {
    display: block;
    padding: 10px;
  }

  .treeid-result-photo-card img {
    max-height: 210px;
  }

  .treeid-result-summary {
    grid-template-columns: 1fr !important;
  }

  .treeid-result-summary .treeid-result-metric {
    grid-template-columns: 46px minmax(0, 1fr);
    min-height: 62px;
    padding: 10px 12px;
  }

  .treeid-result-summary strong {
    font-size: 15px;
  }

  .treeid-result-summary span {
    font-size: 11px;
  }

  .treeid-section-card p {
    font-size: 14px;
  }

  .treeid-result-actions {
    grid-template-columns: 1fr;
  }
}

/* v20260706d: viewport modal width, compact desktop intro, cleaner controls */
.treeid-hero-banner {
  min-height: clamp(210px, 18vw, 280px) !important;
  padding: clamp(20px, 2.4vw, 32px) clamp(20px, 3vw, 38px) !important;
  gap: clamp(14px, 2vw, 28px) !important;
  border-radius: 24px !important;
}

.treeid-hero-copy h2 {
  max-width: 640px !important;
  font-size: clamp(34px, 3.55vw, 52px) !important;
}

.treeid-hero-copy p {
  max-width: 610px !important;
  margin-top: 12px !important;
  font-size: clamp(15px, 1.05vw, 18px) !important;
  line-height: 1.46 !important;
}

.treeid-hero-app-icon {
  width: clamp(92px, 7vw, 122px) !important;
  height: clamp(92px, 7vw, 122px) !important;
  border-radius: clamp(24px, 2.5vw, 38px) !important;
}

.treeid-hero-stat {
  width: min(320px, 100%) !important;
  min-height: 54px !important;
  grid-template-columns: 40px minmax(40px, .32fr) minmax(94px, 1fr) 12px !important;
  gap: 10px !important;
  padding: 8px 12px !important;
  border-radius: 16px !important;
}

.treeid-hero-stat-icon {
  width: 36px !important;
  height: 36px !important;
  border-radius: 12px !important;
}

.treeid-hero-stat-icon img {
  width: 24px !important;
  height: 24px !important;
}

.treeid-hero-stat strong {
  font-size: clamp(22px, 1.75vw, 30px) !important;
}

.treeid-hero-stat > span:not(.treeid-hero-stat-icon) {
  font-size: clamp(12px, .9vw, 15px) !important;
}

.treeid-main-card {
  margin-top: 14px !important;
  padding: clamp(18px, 2.2vw, 28px) !important;
  border-radius: 24px !important;
}

.treeid-card-head {
  gap: clamp(14px, 3vw, 46px) !important;
  margin-bottom: 18px !important;
}

.treeid-card-head h3 {
  font-size: clamp(26px, 2.35vw, 36px) !important;
}

.treeid-card-head p {
  max-width: 560px !important;
  padding-top: 10px !important;
  font-size: clamp(14px, 1.05vw, 18px) !important;
  line-height: 1.42 !important;
}

.treeid-preview {
  height: clamp(210px, 19vw, 300px) !important;
  max-height: 300px !important;
  border-radius: 20px !important;
}

.treeid-preview-empty {
  padding: clamp(18px, 2.6vw, 30px) !important;
}

.treeid-upload-visual img {
  width: clamp(88px, 8vw, 126px) !important;
  height: clamp(88px, 8vw, 126px) !important;
}

.treeid-preview-empty strong {
  font-size: clamp(22px, 2.2vw, 32px) !important;
}

.treeid-preview-empty small {
  font-size: clamp(13px, 1vw, 17px) !important;
}

.treeid-result-card,
.treeid-loader {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9998 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100vw !important;
  max-width: none !important;
  min-width: 0 !important;
  height: 100dvh !important;
  margin: 0 !important;
  padding: 16px !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
}

.treeid-loader {
  z-index: 10000 !important;
}

.treeid-result-panel,
.treeid-loader-panel {
  width: min(1560px, calc(100vw - 32px)) !important;
  max-width: calc(100vw - 32px) !important;
  min-width: min(1024px, calc(100vw - 32px)) !important;
  max-height: calc(100dvh - 32px) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  padding: clamp(18px, 2vw, 32px) !important;
  border-radius: clamp(22px, 2.4vw, 38px) !important;
}

.treeid-result-head {
  position: relative !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 14px !important;
  margin-bottom: 16px !important;
}

.treeid-result-head .treeid-kicker {
  min-height: 36px !important;
  margin-bottom: 10px !important;
  padding: 0 15px !important;
  font-size: 12px !important;
}

.treeid-result-head h3 {
  font-size: clamp(30px, 3vw, 48px) !important;
  line-height: 1.03 !important;
}

.treeid-result-close {
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-width: 0 !important;
  min-height: 42px !important;
  padding: 0 13px 0 16px !important;
  border-radius: 999px !important;
  font-size: 14px !important;
  line-height: 1 !important;
}

.treeid-result-close img {
  width: 20px !important;
  height: 20px !important;
}

.treeid-result-layout {
  grid-template-columns: minmax(260px, 30%) minmax(0, 1fr) !important;
  gap: clamp(14px, 1.6vw, 24px) !important;
  align-items: start !important;
}

.treeid-result-photo-card {
  padding: 14px !important;
  border-radius: 20px !important;
}

.treeid-result-photo-card span {
  margin-bottom: 8px !important;
  font-size: 13px !important;
}

.treeid-result-photo-card img {
  width: 100% !important;
  height: auto !important;
  max-height: min(46dvh, 360px) !important;
  aspect-ratio: 1.12 / 1 !important;
  object-fit: contain !important;
}

.treeid-result-content {
  gap: 10px !important;
}

.treeid-result-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

.treeid-result-summary .treeid-result-metric {
  grid-template-columns: 38px minmax(0, 1fr) !important;
  gap: 9px !important;
  min-height: 64px !important;
  padding: 9px !important;
  border-radius: 15px !important;
}

.treeid-result-summary .treeid-result-metric > img {
  width: 36px !important;
  height: 36px !important;
}

.treeid-result-summary strong {
  font-size: 13px !important;
}

.treeid-result-summary span {
  margin-top: 2px !important;
  font-size: 10px !important;
}

.treeid-result-sections {
  gap: 8px !important;
  padding: 10px !important;
  border-radius: 18px !important;
}

.treeid-section-card {
  padding: 10px 12px !important;
  border-radius: 14px !important;
}

.treeid-section-card h4 {
  margin-bottom: 4px !important;
  font-size: clamp(14px, .95vw, 16px) !important;
}

.treeid-section-card p {
  font-size: clamp(13px, .9vw, 16px) !important;
  line-height: 1.42 !important;
}

.treeid-edit-box summary {
  padding: 9px 13px !important;
  font-size: 14px !important;
}

.treeid-result-textarea {
  min-height: 130px !important;
}

.treeid-result-actions {
  position: sticky !important;
  bottom: 0 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 12px -12px -12px !important;
  padding: 10px 12px !important;
  border-top: 1px solid rgba(20, 128, 145, .12) !important;
  background: rgba(255, 255, 255, .93) !important;
  backdrop-filter: blur(12px) !important;
}

.treeid-result-actions button,
.treeid-result-actions .treeid-secondary-btn,
.treeid-result-actions .treeid-report-btn {
  width: auto !important;
  min-width: 118px !important;
  min-height: 42px !important;
  padding: 0 13px !important;
  border-radius: 999px !important;
  font-size: 14px !important;
  white-space: nowrap !important;
}

.treeid-result-actions button::before {
  width: 19px !important;
  height: 19px !important;
}

.treeid-download {
  position: relative !important;
  width: auto !important;
  min-width: 118px !important;
  flex: 0 0 auto !important;
}

.treeid-download > button {
  width: 100% !important;
}

.treeid-download-menu {
  position: absolute !important;
  z-index: 40 !important;
  top: auto !important;
  right: 50% !important;
  bottom: calc(100% + 8px) !important;
  left: auto !important;
  display: grid !important;
  gap: 5px !important;
  width: 210px !important;
  min-width: 210px !important;
  max-width: calc(100vw - 40px) !important;
  margin: 0 !important;
  padding: 8px !important;
  border-radius: 14px !important;
  transform: translateX(50%) !important;
}

.treeid-download-menu[hidden] {
  display: none !important;
}

.treeid-download-menu button {
  min-width: 0 !important;
  min-height: 38px !important;
  width: 100% !important;
  padding: 0 11px !important;
  border-radius: 10px !important;
  justify-content: flex-start !important;
  text-align: left !important;
}

.treeid-download-menu button::before {
  display: none !important;
}

.treeid-loader-title strong {
  font-size: clamp(26px, 2.55vw, 42px) !important;
}

.treeid-loader-title span {
  font-size: clamp(14px, 1vw, 18px) !important;
}

.treeid-loader-grid {
  grid-template-columns: minmax(220px, 28%) minmax(250px, 1fr) minmax(240px, 31%) !important;
  gap: clamp(14px, 1.8vw, 28px) !important;
}

.treeid-loader-photo > img {
  min-height: 180px !important;
  max-height: min(38dvh, 300px) !important;
}

.treeid-loader-orbit {
  width: min(24vw, 330px) !important;
  min-width: 220px !important;
}

.treeid-loader-step {
  min-height: 74px !important;
  padding: 10px 12px !important;
}

@media (max-width: 1180px) {
  .treeid-result-panel,
  .treeid-loader-panel {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    min-width: 0 !important;
  }

  .treeid-result-layout {
    grid-template-columns: minmax(230px, 32%) minmax(0, 1fr) !important;
  }

  .treeid-loader-grid {
    grid-template-columns: minmax(220px, 32%) minmax(0, 1fr) !important;
  }

  .treeid-loader-steps {
    grid-column: 1 / -1 !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  .treeid-hero-banner {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
  }

  .treeid-result-card,
  .treeid-loader {
    padding: 10px !important;
  }

  .treeid-result-panel,
  .treeid-loader-panel {
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
    min-width: 0 !important;
    max-height: calc(100dvh - 20px) !important;
  }

  .treeid-result-layout,
  .treeid-loader-grid {
    grid-template-columns: 1fr !important;
  }

  .treeid-result-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .treeid-result-photo-card {
    display: grid !important;
    grid-template-columns: minmax(130px, 30%) minmax(0, 1fr) !important;
    gap: 10px !important;
    align-items: center !important;
  }

  .treeid-result-photo-card span {
    grid-column: 1 / -1 !important;
  }

  .treeid-result-photo-card img {
    max-height: 210px !important;
  }

  .treeid-loader-steps {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 620px) {
  .treeid-hero-banner,
  .treeid-main-card {
    border-radius: 18px !important;
  }

  .treeid-preview {
    height: 220px !important;
    max-height: 220px !important;
  }

  .treeid-result-card,
  .treeid-loader {
    padding: 6px !important;
  }

  .treeid-result-panel,
  .treeid-loader-panel {
    width: calc(100vw - 12px) !important;
    max-width: calc(100vw - 12px) !important;
    max-height: calc(100dvh - 12px) !important;
    padding: 12px !important;
    border-radius: 18px !important;
  }

  .treeid-result-head {
    display: block !important;
    padding-right: 46px !important;
  }

  .treeid-result-head h3 {
    font-size: clamp(25px, 7vw, 32px) !important;
  }

  .treeid-result-close {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    padding: 0 !important;
  }

  .treeid-result-close-text {
    display: none !important;
  }

  .treeid-result-close img {
    width: 19px !important;
    height: 19px !important;
  }

  .treeid-result-photo-card {
    display: block !important;
  }

  .treeid-result-photo-card img {
    max-height: 180px !important;
  }

  .treeid-result-summary {
    grid-template-columns: 1fr !important;
  }

  .treeid-result-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    margin: 10px -8px -8px !important;
    padding: 8px !important;
  }

  .treeid-result-actions button,
  .treeid-result-actions .treeid-secondary-btn,
  .treeid-result-actions .treeid-report-btn,
  .treeid-download {
    width: 100% !important;
    min-width: 0 !important;
  }

  .treeid-report-btn {
    grid-column: 1 / -1 !important;
  }

  .treeid-download-menu {
    position: static !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin-top: 6px !important;
    transform: none !important;
  }
}

/* v20260706e: compact adaptive upload card */
.treeid-main-card {
  padding: clamp(14px, 1.65vw, 22px) !important;
}

.treeid-card-head {
  display: grid !important;
  grid-template-columns: minmax(280px, .95fr) minmax(280px, .9fr) !important;
  align-items: start !important;
  gap: clamp(14px, 2vw, 30px) !important;
  margin-bottom: 12px !important;
}

.treeid-main-card .treeid-kicker {
  min-height: 36px !important;
  padding: 0 15px !important;
  font-size: 12px !important;
}

.treeid-main-card .treeid-kicker::before {
  width: 18px !important;
  height: 18px !important;
}

.treeid-card-head h3 {
  margin-top: 8px !important;
  font-size: clamp(25px, 2.15vw, 34px) !important;
  line-height: 1.08 !important;
}

.treeid-card-head p {
  max-width: none !important;
  padding-top: 8px !important;
  font-size: clamp(14px, 1.05vw, 17px) !important;
  line-height: 1.38 !important;
}

.treeid-form-simple {
  display: grid !important;
  grid-template-columns: minmax(240px, 420px) minmax(320px, 1fr) !important;
  gap: 12px clamp(14px, 2vw, 24px) !important;
  align-items: end !important;
}

.treeid-upload-panel-simple {
  grid-column: 1 / -1 !important;
}

.treeid-preview {
  height: clamp(185px, 17vw, 250px) !important;
  max-height: 250px !important;
  min-height: 185px !important;
  border-radius: 18px !important;
}

.treeid-preview-empty {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 14px 18px !important;
}

.treeid-upload-visual {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 7px !important;
  margin: 0 !important;
}

.treeid-upload-visual img {
  width: clamp(58px, 5.5vw, 86px) !important;
  height: clamp(58px, 5.5vw, 86px) !important;
  filter: drop-shadow(0 10px 16px rgba(61, 128, 65, .18)) !important;
}

.treeid-upload-visual em {
  min-width: 0 !important;
  min-height: 34px !important;
  padding: 0 22px !important;
  font-size: clamp(15px, 1.25vw, 20px) !important;
}

.treeid-preview-empty strong {
  max-width: 720px !important;
  font-size: clamp(20px, 2vw, 30px) !important;
  line-height: 1.12 !important;
}

.treeid-preview-empty small {
  max-width: 560px !important;
  margin-top: 0 !important;
  font-size: clamp(12px, .95vw, 15px) !important;
  line-height: 1.25 !important;
}

.treeid-language-field {
  width: min(420px, 100%) !important;
  gap: 6px !important;
}

.treeid-language-field span {
  font-size: 12px !important;
}

.treeid-language-field select {
  min-height: 42px !important;
  padding-left: 14px !important;
  border-radius: 13px !important;
  font-size: 14px !important;
}

.treeid-simple-actions {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: flex-end !important;
  align-items: end !important;
  gap: 10px !important;
  width: 100% !important;
}

.treeid-simple-actions .treeid-primary-btn,
.treeid-simple-actions .treeid-secondary-btn {
  gap: 8px !important;
  min-width: 150px !important;
  min-height: 42px !important;
  padding: 0 18px !important;
  font-size: 15px !important;
  box-shadow: 0 8px 18px rgba(20, 42, 49, .11) !important;
}

.treeid-simple-actions .treeid-primary-btn::before,
.treeid-simple-actions .treeid-secondary-btn::before {
  width: 18px !important;
  height: 18px !important;
}

@media (max-width: 980px) {
  .treeid-card-head {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .treeid-card-head p {
    padding-top: 0 !important;
  }

  .treeid-form-simple {
    grid-template-columns: 1fr !important;
  }

  .treeid-language-field,
  .treeid-simple-actions {
    grid-column: 1 !important;
    width: 100% !important;
  }

  .treeid-language-field {
    max-width: none !important;
  }

  .treeid-simple-actions {
    justify-content: stretch !important;
  }

  .treeid-simple-actions .treeid-primary-btn,
  .treeid-simple-actions .treeid-secondary-btn {
    flex: 1 1 0 !important;
    min-width: 0 !important;
  }
}

@media (max-width: 620px) {
  .treeid-main-card {
    padding: 12px !important;
  }

  .treeid-card-head h3 {
    font-size: clamp(24px, 7vw, 32px) !important;
  }

  .treeid-preview {
    height: auto !important;
    min-height: 230px !important;
    max-height: none !important;
  }

  .treeid-preview-empty {
    min-height: 230px !important;
    padding: 16px 12px !important;
  }

  .treeid-preview-empty strong {
    font-size: clamp(20px, 6vw, 26px) !important;
  }

  .treeid-simple-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  .treeid-simple-actions .treeid-primary-btn,
  .treeid-simple-actions .treeid-secondary-btn {
    width: 100% !important;
    min-height: 40px !important;
    padding: 0 10px !important;
    font-size: 13px !important;
  }
}

/* v20260706f: real logo asset, compact uploaded preview, readable result facts */
.app-icon.app-icon-hero[src$="/assets/icon.svg"],
.treeid-hero-app-icon img[src$="icon.svg"] {
  object-fit: cover !important;
  border-radius: 28% !important;
}

.treeid-preview.has-image {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 10px !important;
  background: linear-gradient(135deg, #f8fffb, #eefcf2) !important;
}

.treeid-preview.has-image img[data-treeid-preview-img] {
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: min(32vh, 220px) !important;
  border-radius: 15px !important;
  object-fit: contain !important;
  object-position: center !important;
  background: #ffffff !important;
  box-shadow: 0 10px 24px rgba(30, 83, 44, .12) !important;
}

.treeid-result-sections {
  gap: 10px !important;
  padding: 10px !important;
  border: 1px solid rgba(29, 142, 120, .12) !important;
  border-radius: 18px !important;
  background: rgba(248, 255, 251, .72) !important;
}

.treeid-section-card {
  padding: 12px !important;
  border: 1px solid rgba(20, 128, 145, .12) !important;
  border-left: 4px solid #16b7ba !important;
  border-radius: 15px !important;
  background: rgba(255, 255, 255, .88) !important;
  box-shadow: 0 10px 22px rgba(18, 79, 53, .07) !important;
}

.treeid-section-card h4 {
  margin: 0 0 9px !important;
  color: #0b7f7b !important;
  font-size: clamp(14px, 1vw, 17px) !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
}

.treeid-section-card p {
  color: #24444a !important;
}

.treeid-result-facts {
  display: grid !important;
  gap: 7px !important;
  white-space: normal !important;
}

.treeid-result-fact {
  display: grid !important;
  grid-template-columns: minmax(138px, .36fr) minmax(0, 1fr) !important;
  gap: 8px !important;
  align-items: start !important;
  padding: 7px 9px !important;
  border: 1px solid rgba(22, 183, 186, .09) !important;
  border-radius: 12px !important;
  background: rgba(240, 252, 247, .68) !important;
  font-size: clamp(13px, .92vw, 15px) !important;
  line-height: 1.35 !important;
}

.treeid-result-fact strong {
  color: #0b6f68 !important;
  font-style: normal !important;
  font-weight: 900 !important;
}

.treeid-result-fact em {
  min-width: 0 !important;
  color: #263f45 !important;
  font-style: normal !important;
  font-weight: 500 !important;
}

@media (max-width: 620px) {
  .treeid-preview.has-image {
    padding: 8px !important;
  }

  .treeid-preview.has-image img[data-treeid-preview-img] {
    max-height: 165px !important;
    border-radius: 13px !important;
  }

  .treeid-result-sections {
    padding: 8px !important;
  }

  .treeid-section-card {
    padding: 10px !important;
  }

  .treeid-result-fact {
    grid-template-columns: 1fr !important;
    gap: 3px !important;
    padding: 7px 8px !important;
  }
}

/* v20260706g: active limit button and Google Play popup */
.treeid-app.treeid-limit-reached .treeid-simple-actions .treeid-primary-btn,
.treeid-app.treeid-limit-reached .treeid-simple-actions .treeid-primary-btn:disabled {
  opacity: 1 !important;
  cursor: pointer !important;
  filter: none !important;
  background: linear-gradient(135deg, #13c8c4 0%, #22b8db 48%, #5147ee 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 14px 28px rgba(35, 107, 207, .25) !important;
}

.treeid-limit:not([hidden]) {
  position: fixed !important;
  z-index: 10030 !important;
  top: 50% !important;
  left: 50% !important;
  width: min(560px, calc(100vw - 28px)) !important;
  margin: 0 !important;
  padding: 24px !important;
  border: 1px solid rgba(28, 181, 160, .22) !important;
  border-radius: 24px !important;
  background:
    radial-gradient(circle at 8% 0%, rgba(150, 255, 197, .35), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(243, 255, 250, .96)) !important;
  box-shadow:
    0 0 0 100vmax rgba(8, 30, 25, .48),
    0 30px 90px rgba(12, 48, 42, .34),
    inset 0 1px 0 rgba(255, 255, 255, .9) !important;
  transform: translate(-50%, -50%) !important;
}

.treeid-limit h3 {
  max-width: calc(100% - 42px) !important;
  margin: 0 0 10px !important;
  color: #10292e !important;
  font-size: clamp(24px, 2.4vw, 34px) !important;
  line-height: 1.08 !important;
}

.treeid-limit p {
  margin: 0 0 18px !important;
  color: #4d6369 !important;
  font-size: 15px !important;
  line-height: 1.48 !important;
}

.treeid-limit a {
  min-height: 46px !important;
  padding: 0 22px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #dffcf8, #c8f7ff) !important;
  color: #075d65 !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  box-shadow: 0 14px 30px rgba(18, 161, 177, .16) !important;
}

.treeid-limit-close {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  display: grid !important;
  place-items: center !important;
  width: 38px !important;
  height: 38px !important;
  border: 1px solid rgba(20, 128, 145, .16) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .84) !important;
  color: #173941 !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  cursor: pointer !important;
}

.treeid-limit-close:hover {
  background: #ffffff !important;
}

@media (max-width: 620px) {
  .treeid-limit:not([hidden]) {
    width: calc(100vw - 18px) !important;
    padding: 18px !important;
    border-radius: 20px !important;
  }

  .treeid-limit h3 {
    font-size: 24px !important;
  }

  .treeid-limit p {
    font-size: 14px !important;
  }

  .treeid-limit a {
    width: 100% !important;
  }
}
