:root {
  color-scheme: light;
  --kai-bg: #f1fbfc;
  --kai-surface: #ffffff;
  --kai-surface-raised: #ffffff;
  --kai-surface-input: #eef7f8;
  --kai-surface-muted: #edf6f7;
  --kai-border: rgba(13, 88, 91, 0.08);
  --kai-border-strong: rgba(13, 88, 91, 0.14);
  --kai-text: #083a3d;
  --kai-text-muted: #5c7678;
  --kai-text-subtle: #9aabad;
  --kai-accent: #14b9c4;
  --kai-accent-pressed: #0fa7b0;
  --kai-accent-soft: rgba(20, 185, 196, 0.14);
  --kai-success: #19c986;
  --kai-success-soft: rgba(25, 201, 134, 0.14);
  --kai-warning: #ffb300;
  --kai-warning-soft: rgba(255, 179, 0, 0.18);
  --kai-shadow-card: 0 18px 42px rgba(35, 95, 99, 0.08);
  --kai-shadow-floating: 0 20px 48px rgba(35, 95, 99, 0.18);
  --app-gutter: 18px;
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: page-fade-out 160ms ease both;
}

::view-transition-new(root) {
  animation: page-slide-in 260ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

body {
  min-height: 100vh;
  background: #ffffff;
  color: var(--kai-text);
  font-family: var(--kai-font);
  letter-spacing: 0;
}

.native-app {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  padding: max(46px, env(safe-area-inset-top)) var(--app-gutter) calc(112px + env(safe-area-inset-bottom));
  background:
    linear-gradient(180deg, rgba(232, 249, 251, 0.92) 0, #ffffff 150px),
    #ffffff;
  animation: page-slide-in 280ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@media (max-width: 390px) {
  :root {
    --app-gutter: 14px;
  }
}

.native-app.no-tab {
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}

.dashboard-app {
  padding-top: max(30px, env(safe-area-inset-top));
}

.app-loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  gap: 18px;
  place-content: center;
  justify-items: center;
  background: rgba(255, 255, 255, 0.96);
  opacity: 1;
  transition:
    opacity 220ms ease,
    visibility 220ms ease;
}

.app-loader.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.app-loader .summit-brand {
  margin: 0;
}

.app-loader-dot {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(20, 185, 196, 0.2);
  border-top-color: var(--kai-accent);
  border-radius: 50%;
  animation: app-loader-spin 820ms linear infinite;
}

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

.dashboard-app .screen-header {
  margin-bottom: 14px;
}

.screen-header {
  margin-bottom: 22px;
}

.summit-brand {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--kai-text);
  text-decoration: none;
}

.dashboard-app .summit-brand {
  width: 100%;
  margin-bottom: 10px;
}

.summit-mark {
  position: relative;
  width: 31px;
  height: 22px;
  flex: 0 0 auto;
  border: 3px solid var(--kai-accent);
  border-top-color: transparent;
  border-radius: 13px 13px 11px 11px;
}

.summit-mark::before,
.summit-mark::after {
  content: "";
  position: absolute;
  border: 3px solid var(--kai-accent);
  border-bottom: 0;
  background: #fff;
}

.summit-mark::before {
  left: -3px;
  top: -10px;
  width: 17px;
  height: 15px;
  border-radius: 16px 16px 0 0;
}

.summit-mark::after {
  right: -3px;
  top: -14px;
  width: 21px;
  height: 19px;
  border-radius: 20px 20px 0 0;
}

.summit-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: #4e5c62;
  font-size: 30px;
  line-height: 1;
  font-weight: var(--kai-weight-semibold);
  letter-spacing: 0;
}

.summit-wordmark > span {
  color: var(--kai-accent);
  font-size: 15px;
  font-weight: var(--kai-weight-semibold);
}

.screen-header p,
.compact-nav {
  margin: 0 0 6px;
  color: var(--kai-text-muted);
  font-size: 13px;
  font-weight: var(--kai-weight-medium);
}

.screen-header h1 {
  margin: 0;
  color: var(--kai-text);
  font-size: 38px;
  line-height: 1.04;
  font-weight: var(--kai-weight-semibold);
}

.compact-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.compact-nav a,
.compact-nav strong {
  color: var(--kai-text);
  font-weight: var(--kai-weight-semibold);
}

.stack {
  display: grid;
  gap: 16px;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.metric-card,
.native-list,
.person-row,
.connection-card,
.schedule-item,
.booth-card,
.kpi-panel,
.home-hero,
.next-program {
  border: 1px solid var(--kai-border);
  border-radius: 28px;
  background: var(--kai-surface);
  box-shadow: var(--kai-shadow-card);
}

.home-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(20, 185, 196, 0.08), rgba(255, 179, 0, 0.08)),
    #fff;
}

.home-status {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border-radius: var(--kai-radius-pill);
  padding: 0 10px;
  color: var(--kai-accent);
  background: var(--kai-accent-soft);
  font-size: 12px;
  font-weight: var(--kai-weight-medium);
}

.home-hero h2 {
  margin: 10px 0 4px;
  font-size: 26px;
}

.mini-profile {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(20, 185, 196, 0.2);
}

.metric-card {
  min-height: 70px;
  padding: 14px 12px;
}

.metric-card strong {
  display: block;
  color: var(--kai-text);
  font-size: 28px;
  line-height: 1;
  font-weight: var(--kai-weight-medium);
}

.metric-card span {
  display: block;
  margin-top: 7px;
  color: var(--kai-text-muted);
  font-size: 12px;
  font-weight: var(--kai-weight-regular);
}

.primary-action,
.secondary-action,
.small-action,
.contact-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--kai-radius-pill);
  color: #fff;
  background: var(--kai-accent);
  font-weight: var(--kai-weight-semibold);
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease,
    opacity 160ms ease;
}

.primary-action:active,
.secondary-action:active,
.small-action:active,
.contact-actions a:active,
.mini-profile:active,
.icon-action:active,
.recommend-row:active,
.person-row:active,
.native-list a:active,
.bottom-tab a:active {
  transform: scale(0.97);
}

.primary-action {
  width: min(100%, 232px);
  min-height: 48px;
  justify-self: center;
  margin-inline: auto;
  padding: 0 24px;
  border-radius: 999px;
  color: #fff;
  font-size: 16px;
  line-height: 1;
  background: #08b7c7;
  box-shadow: 0 12px 26px rgba(8, 183, 199, 0.22);
}

.secondary-action {
  width: 100%;
  min-height: 58px;
  color: var(--kai-text);
  background: var(--kai-surface-input);
  font-size: 15px;
}

.secondary-action.wide {
  grid-column: 1 / -1;
}

.home-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 10px;
}

.next-program {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px;
  background: #fff;
}

.next-program span {
  color: var(--kai-text-muted);
  font-size: 12px;
  font-weight: var(--kai-weight-medium);
}

.next-program h2 {
  margin: 4px 0 6px;
}

.text-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--kai-accent);
  font-size: 13px;
  font-weight: var(--kai-weight-medium);
  text-decoration: none;
}

.program-time {
  display: grid;
  min-height: 64px;
  place-items: center;
  border-radius: 20px;
  color: #fff;
  background: var(--kai-accent);
  font-size: 18px;
  font-weight: var(--kai-weight-semibold);
}

.small-action {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
  background: var(--kai-accent);
}

.small-action.warning {
  background: var(--kai-accent);
}

.native-card {
  padding: 20px;
}

.settings-card {
  display: grid;
  gap: 22px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.profile-edit-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.profile-edit-head h2 {
  margin: 0;
  font-size: 27px;
  line-height: 1.12;
  white-space: nowrap;
}

.profile-edit-head a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(20, 185, 196, 0.22);
  border-radius: var(--kai-radius-pill);
  padding: 0 18px;
  color: var(--kai-accent);
  background: rgba(255, 255, 255, 0.86);
  font-size: 16px;
  font-weight: var(--kai-weight-semibold);
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(32, 78, 82, 0.08);
}

.profile-photo-uploader {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 18px;
  gap: 16px;
  align-items: center;
  min-height: 116px;
  border-top: 1px solid rgba(8, 58, 61, 0.1);
  border-bottom: 1px solid rgba(8, 58, 61, 0.1);
  padding: 16px 2px 16px 0;
}

.profile-photo-uploader.is-uploading {
  cursor: wait;
}

.profile-photo-uploader::after {
  content: "";
  width: 13px;
  height: 13px;
  border-top: 3px solid rgba(8, 58, 61, 0.22);
  border-right: 3px solid rgba(8, 58, 61, 0.22);
  transform: rotate(45deg);
}

.profile-photo-uploader input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.profile-photo-preview {
  position: relative;
  display: grid;
  width: 86px;
  height: 86px;
  overflow: hidden;
  place-items: center;
  border-radius: 28px;
  background: var(--kai-surface-input);
}

.profile-photo-uploader.is-uploading .profile-photo-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.54);
}

.profile-photo-loader {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 30px;
  height: 30px;
  border: 3px solid rgba(20, 185, 196, 0.2);
  border-top-color: var(--kai-accent);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.profile-photo-uploader.is-uploading .profile-photo-loader {
  opacity: 1;
  animation: photo-loader-spin 820ms linear infinite;
}

.profile-photo-preview .mascot-avatar {
  width: 74px;
  height: 74px;
  margin: 0;
  border-radius: 24px;
}

.profile-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-photo-text {
  display: grid;
  gap: 6px;
}

.profile-photo-text strong {
  color: var(--kai-text);
  font-size: 19px;
  font-weight: var(--kai-weight-semibold);
}

.profile-photo-text em {
  color: var(--kai-accent);
  font-size: 16px;
  font-style: normal;
  font-weight: var(--kai-weight-medium);
}

.profile-photo-remove {
  justify-self: start;
  min-height: 32px;
  border: 0;
  border-radius: var(--kai-radius-pill);
  padding: 0 12px;
  color: var(--kai-text-muted);
  background: var(--kai-surface-input);
  font: inherit;
  font-size: 13px;
  font-weight: var(--kai-weight-semibold);
}

.profile-photo-remove[hidden] {
  display: none;
}

.avatar-picker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.avatar-picker[hidden] {
  display: none;
}

.avatar-choice {
  position: relative;
  display: grid;
  place-items: center;
  border: 2px solid transparent;
  border-radius: 22px;
  padding: 8px;
  background: var(--kai-surface-input);
}

.avatar-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.avatar-choice.selected,
.avatar-choice:has(input:checked) {
  border-color: var(--kai-accent);
  background: #fff;
}

.avatar-choice.is-disabled {
  opacity: 0.62;
  cursor: wait;
}

@keyframes photo-loader-spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.profile-edit-section {
  display: grid;
}

.profile-edit-section h2 {
  margin: 8px 0 12px;
  font-size: 26px;
}

.profile-edit-row {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  min-height: 74px;
  display: grid;
  grid-template-columns: minmax(92px, 34%) minmax(0, 1fr) 18px;
  column-gap: 12px;
  align-items: center;
  border: 0;
  border-top: 1px solid rgba(8, 58, 61, 0.1);
  padding: 0;
  color: var(--kai-text);
  background: transparent;
  text-align: left;
}

.profile-edit-row:last-child {
  border-bottom: 1px solid rgba(8, 58, 61, 0.1);
}

.profile-edit-row::after {
  content: "";
  width: 13px;
  height: 13px;
  border-top: 3px solid rgba(8, 58, 61, 0.22);
  border-right: 3px solid rgba(8, 58, 61, 0.22);
  transform: rotate(45deg);
}

.profile-edit-row span {
  color: var(--kai-text);
  font-size: 18px;
  font-weight: var(--kai-weight-semibold);
}

.profile-edit-row strong {
  min-width: 0;
  color: var(--kai-accent);
  font-size: 18px;
  line-height: 1.35;
  font-weight: var(--kai-weight-medium);
  overflow-wrap: anywhere;
  text-align: right;
}

.profile-edit-row.tall {
  min-height: 112px;
  grid-template-columns: minmax(0, 1fr) 18px;
  row-gap: 8px;
  align-items: start;
  padding: 18px 0;
}

.profile-edit-row.tall span,
.profile-edit-row.tall strong {
  grid-column: 1;
  text-align: left;
}

.profile-edit-row.tall::after {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
}

.profile-intro-preview {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  display: grid;
  gap: 14px;
  border: 0;
  padding: 8px 0 18px;
  color: var(--kai-text);
  background: transparent;
  text-align: left;
}

.profile-intro-preview + .profile-intro-preview {
  margin-top: 22px;
}

.profile-intro-preview::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 50%;
  width: 13px;
  height: 13px;
  border-top: 3px solid rgba(8, 58, 61, 0.22);
  border-right: 3px solid rgba(8, 58, 61, 0.22);
  transform: translateY(-50%) rotate(45deg);
}

.profile-intro-preview span {
  color: var(--kai-text);
  font-size: 18px;
  font-weight: var(--kai-weight-semibold);
}

.profile-intro-preview strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--kai-text);
  font-size: 17px;
  line-height: 1.65;
  font-weight: var(--kai-weight-medium);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.field-edit-open {
  overflow: hidden;
}

.field-edit-screen[hidden],
.field-picker[hidden] {
  display: none;
}

.field-edit-screen {
  position: fixed;
  inset: 0;
  z-index: 110;
  width: min(100%, 430px);
  margin: 0 auto;
  overflow: auto;
  padding: max(36px, env(safe-area-inset-top)) var(--app-gutter) calc(28px + env(safe-area-inset-bottom));
  background: #fff;
  animation: page-slide-in 220ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.field-edit-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 62px;
  margin-bottom: 34px;
  background: #fff;
}

.field-edit-header strong {
  color: #0b1114;
  font-size: 22px;
  font-weight: var(--kai-weight-semibold);
  text-align: center;
}

.field-edit-back {
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  color: var(--kai-text);
  background: rgba(247, 250, 250, 0.9);
  font-size: 42px;
  line-height: 1;
  box-shadow:
    0 18px 42px rgba(32, 78, 82, 0.09),
    0 4px 12px rgba(32, 78, 82, 0.04),
    inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.field-edit-save {
  min-width: 78px;
  min-height: 46px;
  border: 0;
  border-radius: var(--kai-radius-pill);
  color: #fff;
  background: var(--kai-accent);
  font-size: 17px;
  font-weight: var(--kai-weight-semibold);
}

.field-edit-save:disabled {
  color: rgba(8, 58, 61, 0.18);
  background: rgba(8, 58, 61, 0.06);
}

.field-edit-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  gap: 10px;
  align-items: center;
  border-bottom: 2px solid rgba(8, 58, 61, 0.18);
  padding-bottom: 12px;
}

.field-edit-input input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--kai-text);
  background: transparent;
  font-size: 22px;
  font: inherit;
}

.field-edit-input button {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(8, 58, 61, 0.22);
  font-size: 18px;
  line-height: 1;
}

.field-edit-textarea {
  width: 100%;
  min-height: 420px;
  border: 0;
  outline: 0;
  color: var(--kai-text);
  background: transparent;
  font: inherit;
  font-size: 23px;
  line-height: 1.55;
  resize: none;
}

.field-edit-hint {
  border-radius: 14px;
  padding: 16px;
  color: var(--kai-text-muted);
  background: var(--kai-surface-input);
  font-size: 14px;
  line-height: 1.55;
}

.field-edit-count {
  margin-top: 18px;
  color: var(--kai-text-subtle);
  font-size: 18px;
  text-align: right;
}

.field-picker {
  position: fixed;
  inset: 0;
  z-index: 115;
  display: grid;
  align-items: end;
  background: rgba(8, 8, 8, 0.24);
}

.field-picker-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
}

.field-picker-sheet {
  position: relative;
  width: min(calc(100% - 20px), 410px);
  min-height: 330px;
  margin: 0 auto 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(24px);
  box-shadow: 0 20px 48px rgba(32, 78, 82, 0.2);
  animation: modal-rise 220ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.field-picker-sheet header {
  position: relative;
  display: grid;
  min-height: 58px;
  place-items: center;
}

.field-picker-sheet header strong {
  color: var(--kai-text);
  font-size: 18px;
  font-weight: var(--kai-weight-semibold);
}

.field-picker-close {
  position: absolute;
  right: 16px;
  top: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  color: var(--kai-text);
  background: transparent;
  font-size: 28px;
  line-height: 1;
}

.field-picker-options {
  display: grid;
  padding: 40px 18px 58px;
}

.field-picker-options button {
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  color: rgba(8, 58, 61, 0.38);
  background: transparent;
  font-size: 20px;
}

.field-picker-options button.selected {
  color: #0b1114;
  background: rgba(8, 8, 8, 0.1);
  font-size: 20px;
}

.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.setting-field {
  min-width: 0;
  border-radius: 18px;
  padding: 13px 14px;
  background: var(--kai-surface-input);
}

.setting-field.wide {
  display: grid;
  gap: 5px;
}

.setting-field label,
.settings-topic label {
  display: block;
  margin-bottom: 6px;
  color: #111820;
  font-size: 12px;
  font-weight: var(--kai-weight-medium);
}

.setting-field div {
  min-width: 0;
  color: var(--kai-text);
  font-size: 15px;
  line-height: 1.48;
  overflow-wrap: anywhere;
}

.setting-field input,
.setting-field textarea {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0;
  color: var(--kai-text);
  background: transparent;
  font: inherit;
  line-height: 1.48;
  resize: vertical;
}

.setting-field textarea {
  min-height: 62px;
}

.settings-topic {
  display: grid;
  gap: 7px;
}

.save-status {
  min-height: 20px;
  margin: 0;
  color: var(--kai-accent);
  font-size: 13px;
  font-weight: var(--kai-weight-medium);
  text-align: center;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-head span {
  color: var(--kai-accent);
  font-size: 16px;
  font-weight: var(--kai-weight-medium);
}

.card-head a {
  color: var(--kai-accent);
  font-size: 13px;
  font-weight: var(--kai-weight-medium);
  text-decoration: none;
}

.recommend-list {
  display: grid;
  gap: 10px;
}

.recommend-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-radius: 20px;
  padding: 12px;
  color: var(--kai-text);
  background: var(--kai-surface-input);
  text-decoration: none;
}

.recommend-row h3 {
  margin-bottom: 4px;
  font-size: 16px;
}

.recommend-row p {
  font-size: 12px;
}

.recommend-row > span {
  color: var(--kai-text-subtle);
  font-size: 22px;
}

.phase-card {
  display: grid;
  gap: 8px;
  padding: 4px 0;
}

.phase-card span {
  color: var(--kai-accent);
  font-size: 12px;
  font-weight: var(--kai-weight-medium);
}

.phase-card h1,
.phase-card h2 {
  margin: 0;
  font-size: 24px;
}

.phase-card a {
  justify-self: start;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--kai-radius-pill);
  padding: 0 14px;
  color: #fff;
  background: var(--kai-accent);
  font-size: 13px;
  font-weight: var(--kai-weight-semibold);
  text-decoration: none;
}

.booth-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px;
}

.booth-card h2 {
  margin-bottom: 6px;
  font-size: 19px;
}

.booth-card .chips {
  margin-top: 10px;
}

.booth-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 18px;
  color: var(--kai-accent);
  background: var(--kai-accent-soft);
  font-size: 16px;
  font-weight: var(--kai-weight-semibold);
}

.booth-icon.green {
  color: var(--kai-success);
  background: var(--kai-success-soft);
}

.booth-icon.blue {
  color: var(--kai-info);
  background: var(--kai-info-soft);
}

.booth-icon.amber {
  color: #b77a00;
  background: var(--kai-warning-soft);
}

.kpi-panel {
  padding: 18px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.kpi-grid article {
  min-height: 78px;
  border-radius: 20px;
  padding: 13px;
  background: var(--kai-surface-input);
}

.kpi-grid strong {
  display: block;
  color: var(--kai-text);
  font-size: 24px;
  line-height: 1;
  font-weight: var(--kai-weight-medium);
}

.kpi-grid span {
  display: block;
  margin-top: 8px;
  color: var(--kai-text-muted);
  font-size: 12px;
}

h2,
h3,
p {
  margin-top: 0;
}

h2 {
  margin-bottom: 8px;
  color: var(--kai-text);
  font-size: 24px;
  line-height: 1.18;
  font-weight: var(--kai-weight-medium);
}

h3 {
  margin-bottom: 6px;
  color: var(--kai-text);
  font-size: 17px;
  line-height: 1.2;
  font-weight: var(--kai-weight-medium);
}

.furigana {
  margin: -2px 0 5px;
  color: var(--kai-text-subtle);
  font-size: 12px;
  line-height: 1.3;
}

p {
  margin-bottom: 0;
  color: var(--kai-text-muted);
  font-size: 14px;
  line-height: 1.65;
}

.brand-lockup {
  min-height: calc(100vh - 360px);
  display: grid;
  align-content: end;
  gap: 8px;
}

.brand-mark {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 20px;
  color: #fff;
  background: var(--kai-accent);
  font-size: 18px;
  font-weight: var(--kai-weight-medium);
  box-shadow: 0 18px 42px rgba(20, 185, 196, 0.2);
}

.login-app {
  display: grid;
  align-content: start;
}

.login-hero {
  min-height: 150px;
  align-items: center;
}

.login-hero h2 {
  max-width: 9em;
  line-height: 1.18;
}

.login-panel {
  display: grid;
  gap: 14px;
  border: 1px solid var(--kai-border);
  border-radius: 28px;
  padding: 22px 18px;
  background: var(--kai-surface);
  box-shadow: var(--kai-shadow-card);
}

.login-panel label {
  color: var(--kai-text);
  font-size: 15px;
  font-weight: var(--kai-weight-semibold);
}

.login-panel .primary-action {
  margin-top: 4px;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.login-panel .primary-action:disabled {
  opacity: 0.68;
  cursor: wait;
}

.login-panel p {
  text-align: center;
}

.auth-locked-app {
  min-height: 100svh;
  align-content: center;
  padding-bottom: max(28px, env(safe-area-inset-bottom));
}

.auth-locked-panel {
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
}

.auth-locked-panel .summit-brand {
  justify-content: center;
  margin-bottom: 8px;
}

.auth-locked-panel h1 {
  margin: 0;
  color: var(--kai-text);
  font-size: 28px;
  line-height: 1.18;
}

.auth-locked-panel p {
  max-width: 17em;
  margin: 0;
  color: var(--kai-text-muted);
  font-size: 15px;
  line-height: 1.65;
}

.admin-shell {
  width: min(1180px, 100%);
  min-height: 100svh;
  margin: 0 auto;
  padding: max(24px, env(safe-area-inset-top)) 20px 32px;
  color: var(--kai-text);
}

.admin-header {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(0, 1.2fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
}

.admin-header .summit-brand {
  justify-content: flex-start;
  margin: 0;
}

.admin-header .summit-brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.admin-header .summit-brand span {
  max-width: 150px;
  font-size: 14px;
  line-height: 1.15;
}

.admin-login-card[hidden],
.admin-console[hidden],
.admin-logout[hidden] {
  display: none !important;
}

.admin-header p,
.admin-panel-title p,
.admin-login-card p,
.admin-card p {
  margin: 0;
  color: var(--kai-text-muted);
  font-size: 14px;
  line-height: 1.55;
}

.admin-header h1,
.admin-panel-title h2,
.admin-login-card h2 {
  margin: 0;
  color: var(--kai-text);
  font-weight: var(--kai-weight-semibold);
}

.admin-header h1 {
  font-size: clamp(30px, 5vw, 44px);
  letter-spacing: 0;
}

.admin-login-card,
.admin-card,
.admin-panel {
  border: 1px solid var(--kai-border);
  border-radius: 28px;
  background: var(--kai-surface);
  box-shadow: var(--kai-shadow-card);
}

.admin-login-card {
  width: min(520px, 100%);
  display: grid;
  gap: 16px;
  margin: 72px auto 0;
  padding: 28px;
}

.admin-login-form {
  display: grid;
  gap: 12px;
}

.admin-logout,
.admin-copy,
.admin-row-actions button {
  min-height: 36px;
  border: 1px solid var(--kai-border);
  border-radius: var(--kai-radius-pill);
  padding: 0 14px;
  color: var(--kai-text);
  background: var(--kai-surface-input);
  font: inherit;
  font-size: 13px;
  font-weight: var(--kai-weight-medium);
}

.admin-console {
  display: grid;
  gap: 16px;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px;
  border: 1px solid var(--kai-border);
  border-radius: var(--kai-radius-pill);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 30px rgba(17, 59, 64, 0.08);
}

.admin-tab {
  flex: 0 0 auto;
  min-height: 40px;
  border: 0;
  border-radius: var(--kai-radius-pill);
  padding: 0 15px;
  color: var(--kai-text-muted);
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: var(--kai-weight-semibold);
}

.admin-tab.is-active {
  color: #fff;
  background: var(--kai-accent);
}

.admin-panel {
  display: none;
  gap: 18px;
  padding: 22px;
}

.admin-panel.is-active {
  display: grid;
}

.admin-panel-title,
.admin-toolbar,
.admin-inline-form,
.admin-upload {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.admin-toolbar .login-input {
  flex: 1 1 280px;
}

.admin-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-quick-actions button {
  min-height: 42px;
  border: 1px solid rgba(20, 185, 196, 0.2);
  border-radius: var(--kai-radius-pill);
  padding: 0 16px;
  color: var(--kai-accent);
  background: rgba(20, 185, 196, 0.08);
  font: inherit;
  font-size: 14px;
  font-weight: var(--kai-weight-semibold);
}

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

.admin-stat {
  min-height: 104px;
  display: grid;
  align-content: center;
  gap: 8px;
  border-radius: 24px;
  padding: 16px;
  background: var(--kai-surface-input);
}

.admin-stat strong {
  color: var(--kai-text);
  font-size: 34px;
  line-height: 1;
  font-weight: var(--kai-weight-semibold);
}

.admin-stat span {
  color: var(--kai-text-muted);
  font-size: 13px;
}

.admin-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  gap: 16px;
  align-items: start;
}

.admin-split.narrow {
  grid-template-columns: minmax(0, 1fr) 320px;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--kai-border);
  border-radius: 22px;
  background: #fff;
}

.admin-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--kai-border);
  padding: 12px 14px;
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  color: var(--kai-text-muted);
  background: var(--kai-surface-input);
  font-weight: var(--kai-weight-semibold);
}

.admin-table tr:last-child td {
  border-bottom: 0;
}

.admin-row-button {
  border: 0;
  padding: 0;
  color: var(--kai-accent);
  background: transparent;
  font: inherit;
  font-weight: var(--kai-weight-semibold);
  text-align: left;
}

.admin-edit-form {
  display: grid;
  gap: 14px;
  border: 1px solid var(--kai-border);
  border-radius: 22px;
  padding: 16px;
  background: #fff;
}

.admin-edit-form h3 {
  margin: 0;
  font-size: 20px;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-edit-form label,
.admin-login-form label {
  display: grid;
  gap: 7px;
  color: var(--kai-text);
  font-size: 13px;
  font-weight: var(--kai-weight-semibold);
}

.admin-wide {
  grid-column: 1 / -1;
}

.admin-textarea {
  min-height: 96px;
  align-items: start;
  resize: vertical;
  padding-top: 12px;
}

.admin-check {
  display: flex !important;
  grid-column: 1 / -1;
  grid-template-columns: none;
  align-items: center;
  gap: 8px !important;
}

.admin-check input {
  width: 18px;
  height: 18px;
}

.admin-card {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.admin-result {
  min-height: 110px;
  overflow: auto;
  border-radius: 18px;
  padding: 14px;
  color: var(--kai-text);
  background: var(--kai-surface-input);
  font-size: 13px;
  white-space: pre-wrap;
}

.admin-url {
  display: inline-block;
  max-width: 320px;
  margin-left: 8px;
  overflow: hidden;
  color: var(--kai-text-muted);
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}

.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-row-actions button:disabled {
  color: var(--kai-text-subtle);
  background: transparent;
  cursor: default;
}

.admin-inline-form .login-input {
  flex: 1 1 220px;
}

.admin-inline-form select.login-input {
  appearance: none;
}

.guide-inline-link {
  justify-self: center;
  text-align: center;
}

.guide-shell {
  display: grid;
  gap: 18px;
}

.guide-header {
  margin-bottom: 0;
}

.guide-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.guide-jump {
  position: sticky;
  top: 8px;
  z-index: 5;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  border: 1px solid var(--kai-border);
  border-radius: var(--kai-radius-pill);
  padding: 6px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 30px rgba(17, 59, 64, 0.08);
}

.guide-jump a {
  flex: 0 0 auto;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--kai-radius-pill);
  padding: 0 16px;
  color: var(--kai-text);
  font-size: 14px;
  font-weight: var(--kai-weight-semibold);
  text-decoration: none;
}

.guide-jump a:first-child {
  color: #fff;
  background: var(--kai-accent);
}

.guide-hero,
.guide-section {
  border: 1px solid var(--kai-border);
  border-radius: 28px;
  background: var(--kai-surface);
  box-shadow: var(--kai-shadow-card);
}

.guide-hero {
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(20, 185, 196, 0.1), rgba(255, 179, 0, 0.1)),
    #fff;
}

.guide-hero h2 {
  max-width: 820px;
  margin: 12px 0 8px;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: var(--kai-weight-semibold);
}

.guide-hero p {
  max-width: 760px;
}

.guide-section {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.guide-section-head p {
  margin-bottom: 4px;
  color: var(--kai-accent);
  font-size: 13px;
  font-weight: var(--kai-weight-semibold);
}

.guide-section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: var(--kai-weight-semibold);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.guide-card,
.guide-checklist,
.guide-list article {
  border-radius: 22px;
  padding: 18px;
  background: var(--kai-surface-input);
}

.guide-card {
  display: grid;
  gap: 8px;
  align-content: start;
}

.guide-card span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: var(--kai-accent);
  font-size: 13px;
  font-weight: var(--kai-weight-semibold);
}

.guide-card h3,
.guide-checklist h3,
.guide-list h3 {
  margin: 0;
  font-size: 20px;
  font-weight: var(--kai-weight-semibold);
}

.guide-card p,
.guide-list p {
  margin: 0;
}

.guide-checklist ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.guide-checklist li {
  position: relative;
  padding-left: 24px;
  color: var(--kai-text);
  font-size: 15px;
  line-height: 1.55;
}

.guide-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--kai-accent);
}

.guide-list {
  display: grid;
  gap: 12px;
}

.guide-list article {
  display: grid;
  gap: 8px;
}

@media (max-width: 860px) {
  .admin-header {
    grid-template-columns: 1fr;
  }

  .admin-logout {
    justify-self: start;
  }

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

  .admin-split,
  .admin-split.narrow {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .admin-shell {
    padding-inline: 12px;
  }

  .admin-panel,
  .admin-login-card {
    padding: 16px;
    border-radius: 22px;
  }

  .admin-form-grid,
  .admin-summary-grid {
    grid-template-columns: 1fr;
  }

  .guide-grid {
    grid-template-columns: 1fr;
  }

  .guide-section,
  .guide-hero {
    padding: 18px;
    border-radius: 22px;
  }
}

.logout-action {
  min-height: 48px;
  margin: 8px auto 0;
  border: 0;
  border-radius: var(--kai-radius-pill);
  padding: 0 26px;
  color: var(--kai-text-muted);
  background: var(--kai-surface-input);
  font: inherit;
  font-size: 15px;
  font-weight: var(--kai-weight-semibold);
}

.form-card {
  display: grid;
  gap: 10px;
}

.form-card label {
  color: var(--kai-text-muted);
  font-size: 13px;
  font-weight: var(--kai-weight-regular);
}

.input-preview,
.login-input,
.search-pill {
  min-height: 48px;
  display: flex;
  align-items: center;
  border-radius: 20px;
  padding: 0 14px;
  color: var(--kai-text-muted);
  background: var(--kai-surface-input);
  font-size: 14px;
}

.login-input {
  width: 100%;
  border: 0;
  outline: 0;
  font-family: inherit;
}

.login-input:focus {
  box-shadow: inset 0 0 0 2px rgba(20, 185, 196, 0.42);
}

.search-pill input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--kai-text);
  background: transparent;
  font: inherit;
}

.search-pill input::placeholder {
  color: var(--kai-text-muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chips .kai-badge,
.chip-button {
  min-height: 30px;
  border: 0;
  padding: 6px 11px;
  color: var(--kai-text-muted);
  background: var(--kai-surface-input);
  font-size: 12px;
  font-weight: var(--kai-weight-medium);
  border-radius: var(--kai-radius-pill);
}

.chips .selected,
.chip-button.selected {
  color: #fff;
  background: var(--kai-accent);
}

.person-row,
.connection-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 15px;
}

.connection-card {
  grid-template-columns: 44px minmax(0, 1fr) auto;
}

.person-row[hidden] {
  display: none;
}

.connected-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.connected-header h1 {
  margin: 0;
  color: var(--kai-text);
  font-size: 34px;
  line-height: 1.05;
  font-weight: var(--kai-weight-medium);
}

.icon-action,
.text-action {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--kai-text);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 26px rgba(35, 95, 99, 0.1);
  font-size: 18px;
  font-weight: var(--kai-weight-medium);
  text-decoration: none;
}

.text-action {
  width: auto;
  min-width: 58px;
  height: 38px;
  border-radius: var(--kai-radius-pill);
  padding: 0 14px;
  color: #fff;
  background: var(--kai-accent);
  font-size: 13px;
}

.search-action {
  display: inline-flex;
  gap: 6px;
  min-width: 84px;
  height: 42px;
  padding: 0 14px 0 13px;
  font-size: 14px;
  font-weight: var(--kai-weight-semibold);
  box-shadow: 0 12px 26px rgba(8, 183, 199, 0.2);
}

.action-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.connected-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 0 calc(var(--app-gutter) * -1) 24px;
  border-bottom: 1px solid rgba(13, 88, 91, 0.16);
  background: rgba(255, 255, 255, 0.72);
}

.connected-tabs button {
  min-height: 58px;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--kai-text-muted);
  background: transparent;
  font-size: 17px;
  font-weight: var(--kai-weight-medium);
}

.connected-tabs .active {
  color: var(--kai-accent);
  border-bottom: 3px solid var(--kai-accent);
}

.connected-feed {
  gap: 22px;
}

.view-toggle {
  justify-self: end;
  display: inline-grid;
  grid-template-columns: repeat(2, auto);
  gap: 3px;
  border-radius: var(--kai-radius-pill);
  padding: 3px;
  background: var(--kai-surface-input);
}

.view-toggle button {
  min-height: 32px;
  border: 0;
  border-radius: var(--kai-radius-pill);
  padding: 0 12px;
  color: var(--kai-text-muted);
  background: transparent;
  font-size: 12px;
  font-weight: var(--kai-weight-medium);
}

.view-toggle .active {
  color: #fff;
  background: var(--kai-accent);
}

.boost-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-radius: 18px;
  padding: 18px;
  background: #f3fbfc;
}

.boost-card h3 {
  margin-bottom: 3px;
  font-size: 20px;
}

.boost-card p {
  font-size: 13px;
}

.boost-card a {
  min-width: 64px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--kai-radius-pill);
  color: #fff;
  background: #ff5a36;
  font-size: 16px;
  font-weight: var(--kai-weight-semibold);
  text-decoration: none;
}

.boost-icon {
  color: #ff5a36;
  font-size: 32px;
  line-height: 1;
}

.free-like {
  justify-self: start;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border-radius: 7px;
  padding: 0 13px;
  color: #fff;
  background: var(--kai-accent);
  font-size: 15px;
  font-weight: var(--kai-weight-semibold);
}

.people-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.list-detail-filter {
  display: none;
  min-width: 0;
  border: 0;
  margin: -4px 0 4px;
  padding: 0;
}

.list-detail-filter.is-visible {
  display: grid;
  gap: 9px;
  overflow: visible;
  scrollbar-width: none;
}

.list-detail-filter.is-visible::-webkit-scrollbar {
  display: none;
}

.list-detail-filter legend {
  display: block;
  width: 100%;
  margin: 0;
  color: var(--kai-text-muted);
  font-size: 13px;
  font-weight: var(--kai-weight-medium);
}

.list-detail-options {
  display: flex;
  gap: 10px;
  width: calc(100vw - (var(--app-gutter) * 2));
  max-width: 402px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.list-detail-options::-webkit-scrollbar {
  display: none;
}

.list-detail-filter label {
  flex: 0 0 auto;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(20, 185, 196, 0.18);
  border-radius: var(--kai-radius-pill);
  padding: 0 14px;
  color: var(--kai-text-muted);
  background: #fff;
  font-size: 14px;
  font-weight: var(--kai-weight-medium);
}

.list-detail-filter input {
  width: 16px;
  height: 16px;
  accent-color: var(--kai-accent);
}

.list-detail-filter label:has(input:checked) {
  color: var(--kai-accent);
  border-color: rgba(20, 185, 196, 0.45);
  background: var(--kai-accent-soft);
}

.footprint-card {
  position: relative;
  min-width: 0;
  display: grid;
  justify-items: center;
  min-height: auto;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  text-decoration: none;
}

.footprint-card[hidden] {
  display: none;
}

.people-gallery:not(.is-list) .footprint-card {
  overflow: hidden;
  isolation: isolate;
  justify-items: center;
  align-content: end;
  min-height: 238px;
  border: 0;
  border-radius: 28px;
  padding: 18px 12px 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 42%, rgba(5, 52, 55, 0.72) 100%),
    linear-gradient(145deg, #dff8fb, #a9d9e9 48%, #bfdc93);
  box-shadow:
    0 20px 40px rgba(32, 78, 82, 0.14),
    0 4px 12px rgba(32, 78, 82, 0.08);
}

.people-gallery:not(.is-list) .footprint-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 24% 20%, rgba(255, 255, 255, 0.7), transparent 24%),
    linear-gradient(145deg, #e7fbff 0%, #a9d9e9 44%, #bfdc93 100%);
}

.people-gallery:not(.is-list) .footprint-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 54%;
  background: linear-gradient(180deg, rgba(5, 52, 55, 0), rgba(5, 52, 55, 0.78));
}

.people-gallery:not(.is-list) .footprint-card[data-person="tanaka"]::before {
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.65), transparent 25%),
    linear-gradient(145deg, #fff1c7, #ffc765 44%, #68c7c9 100%);
}

.people-gallery:not(.is-list) .footprint-card[data-person="nakamura"]::before {
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.68), transparent 25%),
    linear-gradient(145deg, #e6edff, #9fb8ff 44%, #79d8e0 100%);
}

.people-gallery:not(.is-list) .footprint-card[data-person="yamaguchi"]::before {
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.68), transparent 25%),
    linear-gradient(145deg, #dffcff, #69dce4 44%, #8bdc65 100%);
}

.people-gallery:not(.is-list) .footprint-card[data-person="mori"]::before {
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.68), transparent 25%),
    linear-gradient(145deg, #ecffe4, #a9e889 44%, #ffd16f 100%);
}

.people-gallery:not(.is-list) .footprint-card[data-person="matsuo"]::before {
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.68), transparent 25%),
    linear-gradient(145deg, #ecf3f8, #a9bdcc 44%, #71cfd4 100%);
}

.people-gallery.is-list {
  grid-template-columns: 1fr;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(20, 185, 196, 0.12);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--kai-shadow-card);
}

.people-gallery.is-list .footprint-card {
  width: 100%;
  min-height: auto;
  grid-template-columns: 58px minmax(0, 1fr);
  column-gap: 14px;
  row-gap: 0;
  justify-items: stretch;
  align-items: center;
  border: 0;
  border-radius: 0;
  padding: 13px 12px;
  background: transparent;
  box-shadow: none;
}

.people-gallery.is-list .footprint-card + .footprint-card {
  border-top: 1px solid rgba(20, 185, 196, 0.12);
}

.people-gallery.is-list .footprint-photo {
  display: none;
}

.people-gallery.is-list .footprint-meta {
  align-self: center;
  text-align: left;
}

.footprint-photo {
  position: absolute;
  inset: 0;
  text-decoration: none;
}

.photo-initial {
  color: rgba(8, 58, 61, 0.18);
  font-size: clamp(34px, 10vw, 54px);
  font-weight: var(--kai-weight-medium);
}

.footprint-meta {
  display: grid;
  justify-items: center;
  gap: 2px;
  color: var(--kai-text);
  font-size: 12px;
  line-height: 1.35;
  font-weight: var(--kai-weight-medium);
  position: relative;
  z-index: 1;
  text-align: center;
}

.connected-avatar {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  margin-bottom: 7px;
  border-radius: 15px;
}

.people-gallery:not(.is-list) > .footprint-card > .connected-avatar {
  width: min(86%, 132px);
  height: auto;
  align-self: center;
  margin: 18px 0 18px;
  border: 5px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  box-shadow: 0 18px 34px rgba(32, 78, 82, 0.2);
}

.footprint-meta strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.2;
  font-weight: var(--kai-weight-medium);
}

.footprint-meta small {
  color: var(--kai-text);
  font-size: 12px;
  font-weight: var(--kai-weight-medium);
}

.footprint-meta time {
  color: var(--kai-text-subtle);
  font-size: 11px;
  font-weight: var(--kai-weight-regular);
}

.people-gallery:not(.is-list) .footprint-meta time {
  display: none;
}

.people-gallery:not(.is-list) .footprint-meta {
  justify-items: center;
  width: 100%;
  color: #fff;
  text-align: center;
}

.people-gallery:not(.is-list) .footprint-meta > strong {
  max-width: 100%;
  color: #fff;
  font-size: 19px;
  line-height: 1.15;
  font-weight: var(--kai-weight-semibold);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.18);
}

.people-gallery:not(.is-list) .footprint-meta .furigana {
  margin: 2px 0 6px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
}

.people-gallery:not(.is-list) .footprint-meta small {
  display: none;
}

.people-gallery:not(.is-list) .list-meta-chips {
  min-width: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 7px;
  padding: 0 2px;
  box-sizing: border-box;
}

.people-gallery:not(.is-list) .list-meta-chips span {
  min-height: 24px;
  max-width: calc(100% - 4px);
  min-width: 0;
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border-radius: var(--kai-radius-pill);
  padding: 0 8px;
  color: var(--kai-text);
  background: rgba(255, 255, 255, 0.88);
  font-size: 10px;
  font-weight: var(--kai-weight-medium);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-place {
  display: none;
}

.people-gallery.is-list .gallery-place {
  display: none;
}

.people-gallery.is-list .list-place {
  display: inline;
}

.footprint-meta .furigana {
  margin: -1px 0 0;
}

.footprint-meta .list-only {
  display: none;
}

.footprint-meta .list-issue-note {
  display: none;
}

.list-meta-chips {
  display: none;
}

.footprint-meta p {
  margin: 0;
  color: var(--kai-text);
  font-size: 12px;
  line-height: 1.4;
}

.people-gallery.is-list .connected-avatar {
  width: 54px;
  height: 54px;
  margin: 0;
  border-radius: 50%;
}

.people-gallery.is-list .footprint-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  justify-items: start;
  column-gap: 10px;
  row-gap: 2px;
}

.people-gallery.is-list .footprint-meta > strong {
  grid-column: 1;
  grid-row: 1;
  font-size: 16px;
}

.people-gallery.is-list .footprint-meta .furigana {
  grid-column: 1;
  grid-row: 2;
}

.people-gallery.is-list .list-meta-chips {
  grid-column: 1 / -1;
  grid-row: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 5px;
}

.people-gallery.is-list .list-meta-chips span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--kai-radius-pill);
  padding: 0 9px;
  color: var(--kai-text);
  background: var(--kai-surface-input);
  font-size: 12px;
  font-weight: var(--kai-weight-medium);
  line-height: 1.35;
}

.people-gallery.is-list .footprint-meta .list-issue-note {
  grid-column: 1 / -1;
  grid-row: 4;
  display: block;
  margin-top: 2px;
  color: var(--kai-text-muted);
  font-size: 12px;
  line-height: 1.55;
}

.people-gallery.is-list .footprint-meta small {
  grid-column: 1;
  grid-row: 3;
  color: var(--kai-text-muted);
}

.people-gallery.is-list .footprint-meta small {
  display: none;
  margin-bottom: 0;
}

.people-gallery.is-list .footprint-meta time {
  grid-column: 2;
  grid-row: 1;
  min-height: auto;
  display: block;
  padding: 0;
  color: var(--kai-text-muted);
  background: transparent;
  font-size: 12px;
  white-space: nowrap;
}

.people-gallery.is-list .footprint-meta .list-only {
  display: none;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 6px;
  width: auto;
  margin-top: 9px;
  padding: 0;
  border-top: 0;
  color: var(--kai-text);
  font-size: 12px;
  line-height: 1.5;
  font-style: normal;
}

.people-gallery.is-list.show-detail-industry .footprint-meta [data-detail="industry"],
.people-gallery.is-list.show-detail-offer .footprint-meta [data-detail="offer"] {
  display: flex;
}

.people-gallery.is-list .footprint-meta .list-only span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--kai-radius-pill);
  padding: 0 8px;
  color: var(--kai-text-muted);
  background: var(--kai-surface-input);
  font-size: 11px;
  font-weight: var(--kai-weight-medium);
}

.people-gallery.is-list .footprint-meta .list-only strong {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border-radius: var(--kai-radius-pill);
  padding: 0 9px;
  color: var(--kai-text);
  background: var(--kai-surface-input);
  font-size: 12px;
  font-weight: var(--kai-weight-medium);
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: normal;
}

.person-row.highlight {
  border-color: rgba(255, 56, 100, 0.38);
  background: var(--kai-surface-raised);
}

.person-row .kai-badge {
  min-height: 28px;
  margin-top: 8px;
  padding: 5px 9px;
  font-size: 11px;
}

.avatar {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 16px;
  color: var(--kai-accent);
  background: var(--kai-accent-soft);
  font-weight: var(--kai-weight-medium);
}

.mascot-avatar {
  position: relative;
  display: block;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.22) 0 11%, transparent 12%),
    linear-gradient(135deg, #14b9c4, #a0f1f5);
  box-shadow:
    inset 0 -16px 28px rgba(8, 58, 61, 0.14),
    inset 0 12px 22px rgba(255, 255, 255, 0.12);
}

.mascot-avatar::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 16%;
  width: 46%;
  height: 46%;
  border-radius: 50% 50% 46% 46%;
  background:
    radial-gradient(circle at 38% 48%, #0b4a4d 0 5%, transparent 6%),
    radial-gradient(circle at 62% 48%, #0b4a4d 0 5%, transparent 6%),
    linear-gradient(#183e4f 0 24%, transparent 25%),
    #ffd8c1;
  box-shadow: 0 2px 0 rgba(8, 58, 61, 0.08);
  transform: translateX(-50%);
}

.mascot-avatar::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 9%;
  width: 62%;
  height: 34%;
  border-radius: 45% 45% 18% 18%;
  background:
    linear-gradient(90deg, transparent 0 36%, #ffd8c1 37% 63%, transparent 64%),
    radial-gradient(ellipse at 50% 100%, rgba(255, 255, 255, 0.93) 0 58%, transparent 59%),
    rgba(255, 255, 255, 0.72);
  transform: translateX(-50%);
}

.photo-avatar {
  background:
    linear-gradient(180deg, rgba(8, 58, 61, 0), rgba(8, 58, 61, 0.08)),
    var(--avatar-photo) center 28% / cover no-repeat,
    var(--kai-accent-soft);
  box-shadow: 0 12px 26px rgba(32, 78, 82, 0.16);
}

.photo-avatar::before,
.photo-avatar::after {
  content: none;
}

.mascot-avatar.xl {
  width: 82px;
  height: 82px;
  margin: 0 auto 12px;
  border-radius: 26px;
}

.mini-profile.mascot-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.mascot-mint {
  background: linear-gradient(135deg, #19c986, #b6f4d6);
}

.mascot-blue {
  background: linear-gradient(135deg, #5f8cff, #c7d8ff);
}

.mascot-amber {
  background: linear-gradient(135deg, #ffb300, #ffe2a3);
}

.mascot-teal {
  background: linear-gradient(135deg, #14b9c4, #a0f1f5);
}

.mascot-lime {
  background: linear-gradient(135deg, #8bdc65, #d8f7c8);
}

.mascot-slate {
  background: linear-gradient(135deg, #7a90a4, #d8e4ed);
}

.avatar.green {
  color: var(--kai-success);
  background: var(--kai-success-soft);
}

.avatar.blue {
  color: var(--kai-info);
  background: var(--kai-info-soft);
}

.avatar.xl {
  width: 78px;
  height: 78px;
  margin: 0 auto 12px;
  border-radius: var(--kai-radius-xl);
  font-size: 28px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 3px;
  border-radius: var(--kai-radius-pill);
  background: var(--kai-surface-input);
}

.segmented span {
  display: grid;
  min-height: 34px;
  place-items: center;
  border-radius: 11px;
  color: var(--kai-text-muted);
  font-size: 12px;
  font-weight: var(--kai-weight-medium);
}

.segmented .active {
  color: #fff;
  background: var(--kai-accent);
}

.native-list {
  overflow: hidden;
  padding: 12px 0;
}

.native-list h3 {
  padding: 0 14px 7px;
}

.native-list a,
.native-list button {
  min-height: 44px;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  border: 0;
  padding: 0 14px;
  color: var(--kai-text);
  background: transparent;
  font-size: 14px;
  font-weight: var(--kai-weight-medium);
  text-decoration: none;
}

.native-list a + a,
.native-list button + button {
  border-top: 1px solid var(--kai-border);
}

.notice {
  background: var(--kai-surface-raised);
}

.notice h3 {
  color: var(--kai-warning);
}

.profile-hero,
.match-hero {
  padding: 8px 0;
  text-align: center;
}

#profile-company {
  margin-bottom: 10px;
}

.profile-chip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-top: 10px;
}

.profile-chip-row span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--kai-radius-pill);
  padding: 0 10px;
  color: var(--kai-text);
  background: var(--kai-surface-input);
  font-size: 12px;
  font-weight: var(--kai-weight-medium);
}

.profile-sheet {
  display: grid;
  gap: 14px;
}

.profile-block {
  padding: 8px 0;
}

.profile-block + .profile-block {
  margin-top: 18px;
}

.profile-block h2 {
  margin-bottom: 22px;
  font-size: 24px;
}

.profile-block h3 {
  margin: 18px 0 14px;
  font-size: 17px;
}

.profile-block h2 + h3 {
  margin-top: 0;
}

.profile-long-text {
  color: var(--kai-text);
  font-size: 18px;
  line-height: 1.85;
}

.profile-long-text + .profile-long-text {
  margin-top: 22px;
}

.profile-table {
  display: grid;
  gap: 19px;
  margin: 0;
}

.profile-table div {
  display: grid;
  grid-template-columns: minmax(96px, 36%) minmax(0, 1fr);
  column-gap: 16px;
  align-items: start;
}

.profile-table div.long-field {
  grid-template-columns: minmax(0, 1fr);
  row-gap: 4px;
}

.profile-table dt {
  color: #9aabad;
  font-size: 15px;
  line-height: 1.6;
  font-weight: var(--kai-weight-regular);
}

.profile-table dd {
  margin: 0;
  color: var(--kai-text);
  font-size: 16px;
  line-height: 1.65;
  font-weight: var(--kai-weight-medium);
}

.locked {
  background: var(--kai-surface-raised);
}

.locked h3 {
  color: var(--kai-text-muted);
}

.modal-open {
  overflow: hidden;
}

.profile-modal[hidden] {
  display: none;
}

.profile-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  align-items: end;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(8, 58, 61, 0.28);
}

.modal-sheet {
  position: relative;
  width: min(100%, 430px);
  max-height: min(82vh, 760px);
  margin: 0 auto;
  overflow: auto;
  border-radius: 30px 30px 0 0;
  padding: 22px 22px calc(26px + env(safe-area-inset-bottom));
  background: #fff;
  box-shadow: 0 -18px 50px rgba(32, 78, 82, 0.22);
  animation: modal-rise 220ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.modal-close {
  position: absolute;
  right: 18px;
  top: 16px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: var(--kai-text-muted);
  background: var(--kai-surface-input);
  font-size: 20px;
}

.modal-head {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 15px;
  align-items: center;
  padding-right: 34px;
  margin-bottom: 18px;
}

.modal-head h2 {
  margin-bottom: 2px;
}

.profile-table.compact {
  gap: 16px;
  margin-bottom: 18px;
}

.profile-table.compact div {
  grid-template-columns: minmax(82px, 32%) minmax(0, 1fr);
}

.profile-table.compact div.long-field {
  grid-template-columns: minmax(0, 1fr);
}

.profile-table.compact dt {
  font-size: 13px;
}

.profile-table.compact dd {
  font-size: 14px;
}

@keyframes modal-rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 14px;
}

.contact-actions a {
  min-height: 40px;
  font-size: 12px;
}

.schedule-item {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 16px;
  gap: 12px;
  align-items: center;
  padding: 14px;
}

.schedule-item time {
  color: var(--kai-accent);
  font-size: 14px;
  font-weight: var(--kai-weight-semibold);
}

.schedule-item::after {
  content: "";
  width: 10px;
  height: 10px;
  border-top: 2px solid rgba(8, 58, 61, 0.52);
  border-right: 2px solid rgba(8, 58, 61, 0.52);
  transform: rotate(45deg);
}

.page-sheet-open {
  overflow: hidden;
}

.page-sheet-overlay[hidden] {
  display: none;
}

.page-sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  align-items: end;
  background: rgba(8, 58, 61, 0);
  transition: background 220ms ease;
}

.page-sheet-overlay.is-open {
  background: rgba(8, 58, 61, 0.18);
}

.page-sheet-backdrop {
  position: absolute;
  inset: 0;
}

.page-sheet-panel {
  position: relative;
  width: min(100%, 430px);
  height: min(92vh, 820px);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 32px 32px 0 0;
  background: #fff;
  box-shadow: 0 -20px 52px rgba(32, 78, 82, 0.24);
  transform: translateY(100%);
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.page-sheet-overlay.is-open .page-sheet-panel {
  transform: translateY(0);
}

.page-sheet-header {
  position: relative;
  z-index: 2;
  height: 78px;
  display: grid;
  place-items: center;
  border-bottom: 1px solid rgba(20, 185, 196, 0.1);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
}

.page-sheet-header strong {
  max-width: calc(100% - 128px);
  overflow: hidden;
  color: var(--kai-text);
  font-size: 18px;
  font-weight: var(--kai-weight-semibold);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-sheet-close {
  position: absolute;
  left: 18px;
  top: 50%;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  color: var(--kai-text);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px rgba(32, 78, 82, 0.12);
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
}

.page-sheet-close.is-back {
  font-size: 44px;
  line-height: 0.86;
  padding-bottom: 5px;
}

.page-sheet-frame {
  display: block;
  width: 100%;
  height: calc(100% - 78px);
  border: 0;
  background: #fff;
}

.page-sheet-open .bottom-tab {
  pointer-events: none;
  opacity: 0.3;
}

.sheet-child body,
body.sheet-child {
  overflow: auto;
  background: #fff;
}

.sheet-child .native-app {
  width: 100%;
  min-height: auto;
  padding-top: 24px;
  padding-bottom: calc(28px + env(safe-area-inset-bottom));
  animation: none;
}

.sheet-child .bottom-tab,
.sheet-child .compact-nav {
  display: none;
}

.bottom-tab {
  position: fixed;
  left: 50%;
  bottom: 8px;
  width: min(calc(100% - 36px), 394px);
  height: 70px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 9px 16px max(10px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--kai-border);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
  border-radius: 34px;
  box-shadow: 0 18px 42px rgba(32, 78, 82, 0.18);
  view-transition-name: bottom-tab;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.modal-open .bottom-tab {
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 22px);
}

.bottom-tab a {
  position: relative;
  display: grid;
  place-items: center;
  gap: 3px;
  color: var(--kai-text-subtle);
  font-size: 12px;
  font-weight: var(--kai-weight-medium);
  text-decoration: none;
  border-radius: var(--kai-radius-pill);
  transition:
    color 180ms ease,
    background-color 220ms ease,
    transform 180ms ease;
}

.tab-icon {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bottom-tab span,
.bottom-tab small {
  font-size: 12px;
  font-weight: var(--kai-weight-medium);
  transition: transform 180ms ease;
}

.bottom-tab .active {
  color: var(--kai-accent);
  background: #eef1f1;
}

.bottom-tab .active span,
.bottom-tab .active small,
.bottom-tab .active .tab-icon {
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root),
  .native-app {
    animation: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@keyframes page-slide-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes page-fade-out {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.995);
  }
}
