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

/* The workflow numbers are operational order, not record counts. */
.nav-section-label {
  margin: 10px 13px 3px;
  color: #91a19f;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 1.1px;
}

.nav-section-label.secondary {
  margin-top: 15px;
}

.nav button.workflow-nav-item {
  gap: 8px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.workflow-nav-order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 23px;
  flex: 0 0 27px;
  border: 1px solid #d9e5e1;
  border-radius: 999px;
  background: #f4f8f6;
  color: #587169;
  font-size: 9px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.workflow-nav-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  line-height: 1.25;
}

.workflow-nav-copy b {
  overflow: hidden;
  color: inherit;
  font-size: 12px;
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-nav-copy small {
  margin-top: 2px;
  color: #91a19f;
  font-size: 8px;
  font-weight: 400;
}

.nav button.workflow-nav-item.active .workflow-nav-order {
  border-color: #147e74;
  background: #147e74;
  color: #fff;
}

.nav button.workflow-nav-item.active .workflow-nav-copy small {
  color: #548b80;
}

@media (max-width: 700px) {
  .nav-section-label,
  .workflow-nav-copy small {
    display: none;
  }

  .nav button.workflow-nav-item {
    gap: 6px;
  }

  .workflow-nav-order {
    width: 24px;
    height: 20px;
    flex-basis: 24px;
    font-size: 8px;
  }

  .workflow-nav-copy {
    display: block;
  }

  .workflow-nav-copy b {
    font-size: 11px;
  }
}

.supplier-candidate {
  display: flex;
  flex-direction: column;
}

.supplier-candidate .candidate-title {
  min-height: 55px;
}

.supplier-candidate .facts {
  margin-bottom: 12px;
}

.supplier-card-wide {
  grid-column: 1 / -1;
}

.supplier-candidate .actions {
  margin-top: auto;
}

.supplier-detail-heading {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.supplier-detail-heading > .thumb {
  width: 150px;
  height: 150px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.supplier-detail-heading h2 {
  font-size: 18px;
  margin: 9px 0 4px;
}

.supplier-detail-heading p {
  color: var(--muted);
  font-size: 12px;
}

.supplier-detail-facts,
.supplier-image-gallery {
  margin: 18px 0;
}

.supplier-image-gallery {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.supplier-offer-detail {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  margin: 12px 0;
  background: #fafcfc;
}

.supplier-offer-detail .source-link {
  display: inline-block;
  margin-bottom: 4px;
}

.supplier-attributes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.supplier-attributes > div {
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafcfc;
}

.supplier-attributes small,
.supplier-attributes b {
  display: block;
  overflow-wrap: anywhere;
}

.supplier-attributes small {
  color: var(--muted);
  font-size: 10px;
}

.supplier-attributes b {
  margin-top: 3px;
  font-size: 11px;
  font-weight: 550;
}

.supplier-filterbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(220px, 0.7fr) minmax(170px, 0.45fr);
  gap: 10px;
  margin: 0 0 18px;
}

.supplier-filterbar input,
.supplier-filterbar select {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
}

.confirmation-filterbar {
  grid-template-columns: minmax(230px, 1.8fr) repeat(4, minmax(130px, 1fr));
}

.supplier-parent-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.supplier-parent-group {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.supplier-parent-group > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 21px 23px;
  cursor: pointer;
  background: #fff;
}

.supplier-parent-group > summary::-webkit-details-marker,
.supplier-entry > summary::-webkit-details-marker {
  display: none;
}

.supplier-parent-group > summary:hover {
  background: #fafcfb;
}

.supplier-parent-group > summary h2 {
  font-size: 19px;
  margin: 1px 0 2px;
}

.supplier-parent-group > summary p {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}

.supplier-group-counts {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
}

.supplier-group-counts > span:not(.chevron) {
  padding: 5px 9px;
  border-radius: 6px;
  background: var(--light);
  color: var(--green);
  font-size: 11px;
  white-space: nowrap;
}

.supplier-parent-group[open] > summary .chevron {
  transform: rotate(180deg);
}

.compact-parent-list {
  gap: 9px;
}

.compact-parent-group {
  border-radius: 10px;
  box-shadow: none;
}

.compact-parent-group > summary {
  min-height: 58px;
  padding: 10px 14px;
}

.workflow-product-identity {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.workflow-product-identity > .thumb {
  width: 46px;
  height: 46px;
  border-radius: 8px;
}

.workflow-product-identity > .thumb .placeholder-image span {
  display: none;
}

.workflow-product-copy {
  min-width: 0;
}

.workflow-product-copy h3 {
  overflow: hidden;
  margin: 0;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-product-copy small,
.workflow-product-copy span {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-product-copy small {
  margin-top: 2px;
}

.workflow-product-copy .product-parent-label {
  margin-bottom: 1px;
  color: var(--green);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .75px;
}

/* Buyer analysis uses the same compact product identity as the supplier
   stages. The task body stays collapsed until an employee needs its data. */
.buyer-task-grid {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.buyer-task-card.buyer-task-group {
  overflow: hidden;
  padding: 0;
  border-radius: 10px;
  box-shadow: none;
}

.buyer-task-group > summary {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 14px;
  list-style: none;
  cursor: pointer;
}

.buyer-task-group > summary::-webkit-details-marker {
  display: none;
}

.buyer-task-group > summary:hover {
  background: #fafcfb;
}

.buyer-task-group > summary .workflow-product-identity {
  flex: 1;
}

.buyer-task-summary-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.buyer-task-summary-meta .chevron {
  color: var(--muted);
  font-size: 15px;
  transition: transform .18s ease;
}

.buyer-task-group[open] > summary .chevron {
  transform: rotate(180deg);
}

.buyer-task-body {
  padding: 13px 14px 15px;
  border-top: 1px solid var(--line);
  background: #f8fafb;
}

.buyer-task-body .buyer-task-head {
  margin-bottom: 11px;
}

.buyer-task-body .buyer-task-count {
  margin: 0;
}

.buyer-task-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.buyer-task-body .buyer-task-count b {
  font-size: 18px;
}

.compact-parent-identity {
  display: grid;
  grid-template-columns: auto minmax(70px, auto) minmax(140px, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.compact-parent-identity > span {
  color: var(--green);
  font-size: 9px;
  letter-spacing: .65px;
  white-space: nowrap;
}

.compact-parent-identity > b {
  font-size: 14px;
  line-height: 1.25;
  white-space: nowrap;
}

.compact-parent-identity > small {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.supplier-parent-body {
  border-top: 1px solid var(--line);
  padding: 18px 20px 21px;
  background: #f8fafb;
}

.compact-parent-body {
  padding: 12px 14px 14px;
}

.supplier-pool-group > summary,
.supplier-confirmation-group > summary {
  min-height: 68px;
}

.supplier-pool-group > summary .workflow-product-identity,
.supplier-confirmation-group > summary .workflow-product-identity {
  flex: 1;
}

.supplier-pool-group .supplier-parent-body {
  padding: 10px 12px 12px;
}

.supplier-pool-group .supplier-grid {
  gap: 10px;
}

.supplier-pool-group .supplier-candidate {
  padding: 11px;
}

.supplier-pool-group .supplier-candidate > .thumb {
  height: 100px;
}

.supplier-pool-group .supplier-candidate .candidate-title {
  min-height: 42px;
  font-size: 12px;
}

.supplier-pool-group .supplier-candidate .facts {
  gap: 10px;
}

.supplier-parent-body > .panel {
  margin-bottom: 14px;
}

.supplier-parent-body > .panel:last-child {
  margin-bottom: 0;
}

.supplier-subsection + .supplier-subsection {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.supplier-entry-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.supplier-entry {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.supplier-entry > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 14px 16px;
  cursor: pointer;
}

.supplier-entry > summary:hover {
  background: #fafcfb;
}

.supplier-entry > summary h3 {
  margin: 2px 0;
}

.supplier-entry > summary small {
  color: var(--muted);
  font-size: 10px;
}

.supplier-entry-type {
  color: var(--green);
  font-size: 10px;
  letter-spacing: .25px;
}

.supplier-entry-body {
  border-top: 1px solid var(--line);
  padding: 16px;
  background: #fcfdfd;
}

@media (max-width: 1100px) {
  .supplier-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .supplier-filterbar {
    grid-template-columns: 1fr 1fr;
  }

  .supplier-filterbar input {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .supplier-grid {
    grid-template-columns: 1fr;
  }

  .supplier-detail-heading {
    align-items: flex-start;
  }

  .supplier-detail-heading > .thumb {
    width: 105px;
    height: 105px;
  }

  .supplier-image-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .supplier-offer-detail {
    padding: 13px;
  }

  .supplier-attributes {
    grid-template-columns: 1fr 1fr;
  }

  .supplier-filterbar {
    grid-template-columns: 1fr;
  }

  .supplier-filterbar input {
    grid-column: auto;
  }

  .supplier-parent-group > summary {
    align-items: flex-start;
    padding: 17px;
  }

  .compact-parent-group > summary {
    align-items: center;
    padding: 10px 12px;
  }

  .compact-parent-identity {
    grid-template-columns: auto minmax(70px, auto);
    gap: 5px 8px;
  }

  .compact-parent-identity > small {
    grid-column: 1 / -1;
    max-width: 210px;
  }

  .supplier-parent-body {
    padding: 14px;
  }

  .supplier-group-counts {
    max-width: 140px;
  }

  .compact-parent-group .supplier-group-counts {
    gap: 4px;
    max-width: 115px;
  }

  .compact-parent-group .supplier-group-counts > span:not(.chevron) {
    padding: 3px 6px;
    font-size: 9px;
  }
}

/* Product pipeline: compact Parent SKU rows with progress visible before the
   product detail is opened. */
.product-filterbar {
  display: grid;
  grid-template-columns: minmax(250px, 1.8fr) minmax(190px, .8fr) minmax(150px, .65fr);
  gap: 10px;
  margin: 0 0 14px;
}

.product-filterbar input,
.product-filterbar select {
  width: 100%;
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.compact-product-list {
  gap: 8px;
}

.pipeline-product-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 96px;
  padding: 10px 13px;
  cursor: default;
}

.pipeline-product-row > .thumb {
  width: 46px;
  height: 46px;
  border-radius: 8px;
}

.pipeline-product-row > .thumb .placeholder-image span {
  display: none;
}

.pipeline-product-row > .body {
  display: grid;
  grid-template-columns: minmax(210px, .8fr) minmax(390px, 1.55fr);
  align-items: center;
  gap: 18px;
}

.product-row-copy {
  min-width: 0;
}

.product-parent-label {
  display: block;
  margin-bottom: 1px;
  color: var(--green);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: .75px;
}

.pipeline-product-row h3 {
  overflow: hidden;
  margin: 0;
  font-size: 15px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pipeline-product-row p.product-name {
  overflow: hidden;
  margin: 2px 0 1px;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-parent-secondary {
  overflow: hidden;
  margin: 2px 0 1px;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-task-row .product-parent-label {
  margin-bottom: 1px;
}

.product-task-row .body > p {
  color: var(--muted);
  font-size: 10px;
}

.detail-product-title {
  margin: 3px 0 5px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.product-row-meta {
  display: flex;
  min-width: 0;
  gap: 7px;
  color: var(--muted);
  font-size: 9px;
}

.product-row-meta .code {
  overflow: hidden;
  max-width: 190px;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pipeline-product-row .list-actions {
  margin: 0;
}

.supplier-acquire-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.supplier-acquire-row {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(360px, 1.35fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 76px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.supplier-acquire-progress {
  min-width: 0;
}

.supplier-acquire-progress .task-progress {
  margin: 0;
  padding: 7px 9px;
}

.supplier-acquire-progress .task-progress-head {
  margin-bottom: 5px;
}

.supplier-acquire-progress .task-progress-track {
  height: 6px;
}

.supplier-acquire-empty-progress {
  padding: 8px 10px;
  border: 1px dashed #d8e1e3;
  border-radius: 8px;
  color: var(--muted);
  font-size: 10px;
}

.supplier-acquire-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
  max-width: 340px;
}

.product-progress {
  min-width: 0;
}

.product-progress-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 9px;
}

.product-progress-caption b {
  overflow: hidden;
  color: var(--green);
  font-size: 10px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-progress-track {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

.product-progress-step {
  position: relative;
  min-width: 0;
  text-align: center;
}

.product-progress-step::before {
  position: absolute;
  top: 8px;
  right: 0;
  left: 0;
  height: 2px;
  background: #dce4e5;
  content: '';
}

.product-progress-step:first-child::before {
  left: 50%;
}

.product-progress-step:last-child::before {
  right: 50%;
}

.product-progress-step.done::before,
.product-progress-step.current::before {
  background: #b9ddd0;
}

.product-progress-step i {
  position: relative;
  z-index: 1;
  display: block;
  width: 17px;
  height: 17px;
  margin: 0 auto 2px;
  border-radius: 50%;
  background: #e2e9ec;
  color: #81939d;
  font-size: 8px;
  font-style: normal;
  line-height: 17px;
}

.product-progress-step.done i {
  background: #dcefe6;
  color: #2d765b;
}

.product-progress-step.current i {
  background: var(--green);
  color: #fff;
}

.product-progress-step small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-progress-step.current small {
  color: var(--green);
  font-weight: 650;
}

.pipeline-detail-list {
  gap: 8px;
}

.pipeline-detail-step {
  align-items: center;
  border-radius: 8px;
  padding: 7px 9px;
  background: #f7f9fa;
}

.pipeline-detail-step .number {
  background: #e2e9ec;
  color: #81939d;
}

.pipeline-detail-step.done .number {
  background: #dcefe6;
  color: #2d765b;
}

.pipeline-detail-step.current {
  background: #eef8f4;
  box-shadow: inset 0 0 0 1px #b9ddd0;
}

.pipeline-detail-step.current .number {
  background: var(--green);
  color: #fff;
  font-weight: 700;
}

.pipeline-detail-step.current b {
  color: var(--green);
}

@media (max-width: 1000px) {
  .pipeline-product-row > .body {
    grid-template-columns: minmax(180px, .7fr) minmax(330px, 1.3fr);
  }

  .supplier-acquire-row {
    grid-template-columns: minmax(230px, .8fr) minmax(300px, 1.2fr);
  }

  .supplier-acquire-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
    max-width: none;
  }
}

@media (max-width: 700px) {
  .product-filterbar {
    grid-template-columns: 1fr;
  }

  .pipeline-product-row {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 8px 10px;
    min-height: 0;
    padding: 10px;
  }

  .pipeline-product-row > .thumb {
    width: 40px;
    height: 40px;
  }

  .pipeline-product-row > .body {
    display: block;
  }

  .product-progress {
    margin-top: 7px;
  }

  .pipeline-product-row .list-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
    width: auto;
    padding-left: 0;
  }

  .supplier-acquire-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px;
  }

  .supplier-acquire-actions {
    grid-column: auto;
    justify-content: flex-start;
  }

  .supplier-pool-group > summary,
  .supplier-confirmation-group > summary {
    align-items: center;
    gap: 9px;
  }

  .workflow-product-identity {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 8px;
  }

  .workflow-product-identity > .thumb {
    width: 40px;
    height: 40px;
  }

  .workflow-product-copy h3 {
    font-size: 14px;
  }

  .buyer-task-group > summary {
    align-items: center;
    gap: 8px;
    padding: 10px;
  }

  .buyer-task-summary-meta > span:not(.chevron) {
    display: none;
  }

  .buyer-task-body .buyer-task-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .buyer-task-head-actions {
    justify-content: space-between;
    width: 100%;
  }
}

/* K-AI identity gateway */
.ai-auth {
  grid-template-columns: minmax(560px, 1.12fr) minmax(440px, .88fr);
  min-height: 100vh;
  overflow: hidden;
  background: #f4f7f6;
}

.ai-auth .auth-story {
  position: relative;
  z-index: 0;
  display: flex;
  min-height: 100vh;
  overflow: hidden;
  justify-content: flex-start;
  padding: clamp(34px, 5.2vw, 86px) clamp(40px, 6.3vw, 106px) 34px;
  background:
    radial-gradient(circle at 82% 16%, rgba(63, 229, 188, .19), transparent 31%),
    radial-gradient(circle at 16% 76%, rgba(34, 145, 195, .18), transparent 35%),
    linear-gradient(145deg, #071c22 0%, #082f32 45%, #075b50 100%);
  color: #f5fffb;
}

.ai-auth .auth-story::before {
  position: absolute;
  z-index: -3;
  inset: 0;
  background-image:
    linear-gradient(rgba(147, 255, 222, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147, 255, 222, .045) 1px, transparent 1px);
  background-size: 54px 54px;
  content: '';
  mask-image: linear-gradient(to bottom, #000 5%, transparent 92%);
}

.ai-auth .auth-story::after {
  position: absolute;
  z-index: -2;
  top: 9%;
  right: -16%;
  width: 52vw;
  height: 52vw;
  max-width: 760px;
  max-height: 760px;
  border: 1px solid rgba(130, 255, 220, .09);
  border-radius: 50%;
  box-shadow: 0 0 0 75px rgba(130, 255, 220, .025), 0 0 0 150px rgba(130, 255, 220, .018);
  content: '';
}

.auth-aurora {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(2px);
  opacity: .76;
  pointer-events: none;
}

.auth-aurora-one {
  top: -140px;
  right: -90px;
  width: 390px;
  height: 390px;
  background: radial-gradient(circle, rgba(62, 245, 197, .18), transparent 68%);
  animation: k-auth-float 9s ease-in-out infinite alternate;
}

.auth-aurora-two {
  bottom: -170px;
  left: -110px;
  width: 470px;
  height: 470px;
  background: radial-gradient(circle, rgba(42, 135, 207, .18), transparent 67%);
  animation: k-auth-float 11s ease-in-out -3s infinite alternate-reverse;
}

.ai-auth .auth-story .brand {
  position: relative;
  z-index: 2;
  margin: 0 0 clamp(38px, 6vh, 78px);
  padding: 0;
}

.ai-auth .auth-story .brand-logo {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(154, 255, 227, .32);
  background: linear-gradient(145deg, rgba(255,255,255,.14), rgba(71,239,194,.11));
  box-shadow: inset 0 0 20px rgba(133, 255, 224, .08), 0 0 24px rgba(35, 231, 182, .08);
  color: #d9fff3;
}

.ai-auth .auth-story .brand-logo::after {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #5fffc8;
  box-shadow: 0 0 10px #5fffc8;
  content: '';
}

.ai-auth .auth-story .brand b {
  color: #fff;
  letter-spacing: .2px;
}

.ai-auth .auth-story .brand small {
  color: rgba(202, 240, 229, .65);
  letter-spacing: .4px;
}

.auth-story-content {
  position: relative;
  z-index: 2;
  width: min(680px, 100%);
}

.auth-system-line {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 19px;
  color: #9fe8d2;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 1.6px;
}

.auth-system-line em {
  margin-left: 2px;
  padding: 2px 7px;
  border: 1px solid rgba(108, 255, 210, .22);
  border-radius: 999px;
  background: rgba(76, 252, 200, .07);
  color: #69f5c9;
  font-size: 8px;
  font-style: normal;
}

.auth-live-dot,
.auth-access-head i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #54f5bd;
  box-shadow: 0 0 0 4px rgba(84, 245, 189, .10), 0 0 14px rgba(84, 245, 189, .72);
  animation: k-auth-pulse 1.9s ease-out infinite;
}

.ai-auth .auth-story h1 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(38px, 4.25vw, 70px);
  font-weight: 680;
  line-height: 1.15;
  letter-spacing: -2.5px;
}

.ai-auth .auth-story h1 span {
  background: linear-gradient(90deg, #f8fffc 2%, #8affd8 53%, #65d9ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ai-auth .auth-story-content > p {
  max-width: 610px;
  margin: 22px 0 0;
  color: rgba(215, 241, 233, .74);
  font-size: 14px;
  line-height: 1.9;
}

.auth-intelligence {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 23px;
  align-items: center;
  margin-top: 30px;
  padding: 18px 21px;
  border: 1px solid rgba(137, 255, 222, .13);
  border-radius: 18px;
  background: linear-gradient(120deg, rgba(255,255,255,.065), rgba(70,235,190,.025));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 26px 70px rgba(0, 14, 19, .18);
  backdrop-filter: blur(14px);
}

.auth-neural {
  position: relative;
  display: grid;
  width: 100px;
  height: 100px;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(87, 249, 203, .18) 0 20%, transparent 22% 100%);
}

.auth-neural strong {
  position: relative;
  z-index: 2;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(124, 255, 218, .38);
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #1eac8d, #075346 72%);
  box-shadow: 0 0 30px rgba(70, 255, 199, .22), inset 0 0 13px rgba(255,255,255,.08);
  color: #effff9;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  letter-spacing: .7px;
}

.neural-ring {
  position: absolute;
  border: 1px solid rgba(115, 250, 211, .22);
  border-radius: 50%;
}

.ring-one {
  inset: 11px;
  border-right-color: #4ff2c2;
  animation: k-auth-spin 9s linear infinite;
}

.ring-two {
  inset: 0;
  border-top-color: rgba(95, 215, 255, .72);
  border-bottom-color: transparent;
  animation: k-auth-spin 14s linear infinite reverse;
}

.neural-node {
  position: absolute;
  z-index: 3;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7fffd7;
  box-shadow: 0 0 12px #66f7cd;
}

.node-one { top: 8px; left: 46px; }
.node-two { right: 8px; bottom: 26px; }
.node-three { bottom: 12px; left: 20px; background: #70dfff; }

.auth-intelligence-copy > small {
  color: #73dcbc;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 8px;
  letter-spacing: 1.4px;
}

.auth-intelligence-copy > b {
  display: block;
  margin-top: 3px;
  color: #f0fff9;
  font-size: 15px;
  font-weight: 610;
}

.auth-intelligence-copy > p {
  margin: 7px 0 11px;
  color: rgba(207, 238, 228, .63);
  font-size: 10px;
  line-height: 1.7;
}

.auth-intelligence-copy > div {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.auth-intelligence-copy > div span {
  padding: 3px 7px;
  border: 1px solid rgba(142, 252, 221, .12);
  border-radius: 5px;
  color: rgba(181, 237, 220, .72);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 7px;
  letter-spacing: .6px;
}

.ai-auth .ai-flow {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
  color: inherit;
}

.ai-auth .ai-flow > div {
  position: relative;
  min-width: 0;
  padding: 11px 9px 10px;
  border: 1px solid rgba(145, 249, 220, .11);
  border-radius: 11px;
  background: rgba(255,255,255,.035);
}

.ai-auth .ai-flow > div:not(:last-child)::after {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: -7px;
  width: 5px;
  height: 1px;
  background: #56bf9f;
  content: '';
}

.ai-auth .ai-flow i {
  display: block;
  margin-bottom: 8px;
  color: #65e5be;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 9px;
  font-style: normal;
}

.ai-auth .ai-flow b {
  display: block;
  padding: 0;
  border: 0;
  color: #e8faf4;
  font-size: 10px;
  font-weight: 550;
  white-space: nowrap;
}

.ai-auth .ai-flow small {
  display: block;
  margin-top: 3px;
  color: rgba(161, 218, 202, .45);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 6px;
  letter-spacing: .7px;
}

.auth-story-footer {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  width: min(680px, 100%);
  margin-top: auto;
  padding-top: 26px;
  color: rgba(162, 220, 204, .4);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 7px;
  letter-spacing: 1px;
}

.ai-auth .auth-main {
  position: relative;
  z-index: 0;
  display: flex;
  min-height: 100vh;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 5vw, 78px);
  background:
    radial-gradient(circle at 15% 15%, rgba(80, 209, 171, .11), transparent 28%),
    radial-gradient(circle at 90% 88%, rgba(59, 150, 202, .10), transparent 28%),
    #f5f8f7;
}

.auth-main-grid {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(12, 91, 77, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 91, 77, .035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, #000, transparent 72%);
}

.ai-auth-box {
  position: relative;
  width: min(455px, 100%);
  padding: clamp(28px, 3vw, 43px);
  border: 1px solid rgba(13, 100, 85, .13);
  border-radius: 24px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 32px 90px rgba(19, 63, 57, .13), inset 0 1px 0 #fff;
  backdrop-filter: blur(22px);
}

.ai-auth-box::before {
  position: absolute;
  top: -1px;
  left: 36px;
  width: 92px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #23b58d, transparent);
  content: '';
}

.auth-access-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 35px;
  color: #81958f;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 8px;
  letter-spacing: 1px;
}

.auth-access-head > span:first-child {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #147c67;
}

.auth-access-head i {
  display: inline-block;
  width: 6px;
  height: 6px;
}

.ai-auth-box .eyebrow {
  margin-bottom: 9px;
  color: #16846e;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 9px;
  letter-spacing: 1.3px;
}

.ai-auth-box h2 {
  margin: 0 0 7px;
  color: #102d31;
  font-size: clamp(26px, 2.2vw, 35px);
  font-weight: 680;
  letter-spacing: -1px;
}

.ai-auth-box > .sub {
  margin: 0 0 32px;
  color: #6b7f7c;
  font-size: 12px;
  line-height: 1.75;
}

.ai-auth-box .field {
  margin-bottom: 17px;
}

.ai-auth-box .field label {
  margin-bottom: 7px;
  color: #28433f;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .25px;
}

.ai-auth-box .field label span {
  margin-right: 7px;
  color: #17a27f;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 8px;
}

.ai-auth-box .field input {
  height: 49px;
  padding: 0 14px;
  border: 1px solid #dbe7e3;
  border-radius: 11px;
  background: rgba(247,250,249,.92);
  box-shadow: inset 0 1px 2px rgba(22, 72, 63, .025);
  color: #173c39;
  font-size: 12px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.ai-auth-box .field input:focus {
  border-color: #22a383;
  outline: none;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(32, 164, 130, .09), 0 12px 30px rgba(25, 96, 81, .05);
}

.ai-auth-box .field input::placeholder {
  color: #a3b1ae;
}

.ai-auth-box .field small {
  color: #8a9c98;
}

.ai-auth-box .auth-enter {
  display: flex;
  height: 51px;
  align-items: center;
  justify-content: space-between;
  margin-top: 7px;
  padding: 0 17px 0 19px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(105deg, #063f38, #0b7865 57%, #16a27f);
  box-shadow: 0 13px 30px rgba(7, 105, 87, .19);
  color: #fff;
  font-size: 12px;
  letter-spacing: .2px;
}

.ai-auth-box .auth-enter:hover {
  background: linear-gradient(105deg, #063f38, #0a6c5b 50%, #128e71);
  box-shadow: 0 16px 35px rgba(7, 105, 87, .25);
  transform: translateY(-1px);
}

.ai-auth-box .auth-enter i {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  font-size: 13px;
  font-style: normal;
}

.ai-auth-box .auth-footer {
  margin-top: 20px;
  color: #768a86;
  font-size: 10px;
}

.ai-auth-box .auth-footer button {
  color: #0e876e;
  font-size: 10px;
  font-weight: 650;
}

.auth-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 25px;
  padding-top: 18px;
  border-top: 1px solid #e4ece9;
}

.auth-trust span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #738681;
  font-size: 8px;
  white-space: nowrap;
}

.auth-trust i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #28a985;
  box-shadow: 0 0 6px rgba(40,169,133,.35);
}

.ai-auth-box .foot-info {
  margin: 14px 0 0;
  color: #98a6a3;
  font-size: 8px;
  line-height: 1.75;
  text-align: center;
}

@keyframes k-auth-spin { to { transform: rotate(360deg); } }
@keyframes k-auth-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes k-auth-float { to { transform: translate3d(-28px, 24px, 0) scale(1.08); } }

@media (max-width: 1180px) {
  .ai-auth {
    grid-template-columns: minmax(500px, 1fr) minmax(410px, .82fr);
  }

  .ai-auth .auth-story {
    padding-right: 45px;
    padding-left: 45px;
  }

  .ai-auth .ai-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ai-auth .ai-flow > div:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 880px) {
  .ai-auth {
    display: block;
    overflow: visible;
  }

  .ai-auth .auth-story {
    min-height: auto;
    padding: 30px 27px 32px;
  }

  .ai-auth .auth-story .brand {
    margin-bottom: 36px;
  }

  .ai-auth .auth-story h1 {
    max-width: 620px;
    font-size: clamp(31px, 7vw, 48px);
    letter-spacing: -1.6px;
  }

  .auth-intelligence {
    max-width: 650px;
  }

  .auth-story-footer {
    display: none;
  }

  .ai-auth .auth-main {
    min-height: auto;
    padding: 42px 22px 55px;
  }
}

@media (max-width: 560px) {
  .ai-auth .auth-story {
    padding: 22px 19px 25px;
  }

  .ai-auth .auth-story .brand {
    margin-bottom: 28px;
  }

  .auth-system-line {
    margin-bottom: 13px;
    font-size: 8px;
    letter-spacing: 1px;
  }

  .ai-auth .auth-story h1 {
    font-size: 30px;
    line-height: 1.22;
  }

  .ai-auth .auth-story-content > p {
    margin-top: 15px;
    font-size: 11px;
    line-height: 1.75;
  }

  .auth-intelligence {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 13px;
    margin-top: 21px;
    padding: 14px;
  }

  .auth-neural {
    width: 70px;
    height: 70px;
  }

  .auth-neural strong {
    width: 37px;
    height: 37px;
    font-size: 8px;
  }

  .node-one { top: 5px; left: 33px; }
  .node-two { right: 5px; bottom: 18px; }
  .node-three { bottom: 8px; left: 14px; }

  .auth-intelligence-copy > b {
    font-size: 12px;
  }

  .auth-intelligence-copy > p {
    display: none;
  }

  .auth-intelligence-copy > div {
    margin-top: 8px;
  }

  .ai-auth .ai-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .ai-auth .ai-flow > div {
    padding: 8px;
  }

  .ai-auth .auth-main {
    padding: 29px 14px 38px;
  }

  .ai-auth-box {
    padding: 25px 20px;
    border-radius: 18px;
  }

  .auth-access-head {
    margin-bottom: 26px;
  }

  .ai-auth-box h2 {
    font-size: 27px;
  }

  .ai-auth-box > .sub {
    margin-bottom: 25px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-aurora,
  .neural-ring,
  .auth-live-dot,
  .auth-access-head i {
    animation: none;
  }
}
