:root {
  --kb-background: #f6fbff;
  --kb-surface: #ffffff;
  --kb-surface-muted: #fff2ec;
  --kb-fill: #f3f4f5;
  --kb-primary: #ff6600;
  --kb-primary-pressed: #e14d00;
  --kb-primary-tint: #fff2ec;
  --kb-on-primary: #ffffff;
  --kb-ink: #1a1c20;
  --kb-body: #555d6d;
  --kb-caption: #868b94;
  --kb-placeholder: #b0b3ba;
  --kb-border: rgba(255, 102, 0, 0.16);
  --kb-border-muted: #dcdee3;
  --kb-border-subtle: rgba(0, 0, 0, 0.08);
  --kb-divider-subtle: rgba(0, 0, 0, 0.06);
  --kb-focus: #ff6600;
  --kb-verified: #4cc9f0;
  --kb-korean: #ffe5d9;
  --kb-korean-strong: #e0603c;
  --kb-international: #d8e2dc;
  --kb-international-strong: #5c8a70;
  --kb-safety: #f2b8bc;
  --kb-safety-deep: #f04452;
  --kb-radius-card: 16px;
  --kb-radius-control: 12px;
  --kb-shadow-card: 0 2px 10px rgba(0, 0, 0, 0.06);
  --kb-shadow-float: 0 4px 16px rgba(0, 0, 0, 0.10);
  --kb-font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", Roboto, "Noto Sans KR", sans-serif;
}

html {
  background: var(--kb-background);
}

body {
  margin: 0;
  background: var(--kb-background);
  color: var(--kb-ink);
  font-family: var(--kb-font);
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body,
button,
input,
textarea,
select {
  font-family: var(--kb-font);
  letter-spacing: 0;
}

.material-symbols-outlined {
  display: inline-flex;
  width: 1em;
  height: 1em;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  white-space: nowrap;
  text-transform: none;
  font-feature-settings: "liga";
}

main:not([data-welcome-splash]):not([data-call-canvas]) {
  background: var(--kb-background) !important;
  color: var(--kb-ink) !important;
  font-family: var(--kb-font) !important;
}

main:not([data-welcome-splash]):not([data-call-canvas]) .font-semibold {
  font-weight: 500 !important;
}

main:not([data-welcome-splash]):not([data-call-canvas]) :is(.text-6xl, .text-4xl, .text-3xl) {
  font-size: 26px !important;
  line-height: 35px !important;
}

main:not([data-welcome-splash]):not([data-call-canvas]) .text-2xl {
  font-size: 24px !important;
  line-height: 32px !important;
}

main:not([data-welcome-splash]):not([data-call-canvas]) .text-xl {
  font-size: 20px !important;
  line-height: 27px !important;
}

main:not([data-welcome-splash]):not([data-call-canvas]) .text-lg {
  font-size: 18px !important;
  line-height: 24px !important;
}

main:not([data-welcome-splash]):not([data-call-canvas]) :is(p, span, h1, h2, h3, h4, label, a, button, .uppercase, [style*="letter-spacing"]) {
  letter-spacing: 0 !important;
}

main:not([data-welcome-splash]):not([data-call-canvas]) :is(input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]):not(.bg-transparent), textarea:not(.bg-transparent), select:not(.bg-transparent)) {
  min-height: 40px;
  border: 1px solid var(--kb-border-muted) !important;
  border-radius: 8px !important;
  background: var(--kb-surface-muted) !important;
  color: var(--kb-ink) !important;
}

main:not([data-welcome-splash]):not([data-call-canvas]) :is(input, textarea)::placeholder {
  color: var(--kb-placeholder) !important;
}

main:not([data-welcome-splash]):not([data-call-canvas]) :is(a, button) {
  -webkit-tap-highlight-color: transparent;
}

main:not([data-welcome-splash]):not([data-call-canvas]) :is(a, button, input, textarea, select):focus-visible {
  outline: 2px solid var(--kb-focus);
  outline-offset: 2px;
}

main:not([data-welcome-splash]):not([data-call-canvas]) :is(a, button)[style*="background: #ff6600"],
main:not([data-welcome-splash]):not([data-call-canvas]) :is(a, button)[style*="background:#ff6600"],
main:not([data-welcome-splash]):not([data-call-canvas]) :is(a, button)[style*="background: var(--kb-primary)"],
main:not([data-welcome-splash]):not([data-call-canvas]) :is(a, button)[style*="background:var(--kb-primary)"] {
  color: var(--kb-on-primary) !important;
}

.kb-main-nav {
  bottom: 0 !important;
  left: 50% !important;
  width: min(100%, 430px) !important;
  max-width: 430px;
  padding-top: 0 !important;
  padding-bottom: calc(8px + env(safe-area-inset-bottom)) !important;
  transform: translateX(-50%) !important;
  border: 1px solid var(--kb-border-subtle);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  box-shadow: var(--kb-shadow-float);
}

.kb-main-nav__link {
  width: auto;
  min-width: 0;
  min-height: 56px;
  flex: 1 1 0;
  flex-direction: column;
  gap: 2px;
  border-radius: 8px;
  text-decoration: none;
}

.kb-main-nav__label {
  font-size: 11px;
  font-weight: 500;
  line-height: 15px;
}

.kb-main-nav__icon {
  display: inline-flex;
  width: 23px;
  height: 23px;
  align-items: center;
  justify-content: center;
}

.kb-main-nav__icon svg {
  width: 23px;
  height: 23px;
}

.kb-main-nav__badge {
  box-sizing: border-box;
  position: absolute;
  top: 6px;
  right: auto;
  left: calc(50% + 4px);
  display: inline-flex;
  min-width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 2px solid var(--kb-surface);
  border-radius: 9999px;
  background: var(--kb-safety-deep);
  color: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.kb-main-nav a[style*="#ff6600"] .kb-main-nav__icon {
  font-variation-settings: "FILL" 1, "wght" 600;
}

.kb-scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.kb-scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.kb-top-tab-header {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  min-height: 56px;
}

.kb-top-tab-title {
  min-width: 0;
  margin: 0;
  color: var(--kb-ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}

.kb-top-tab-action,
.kb-top-tab-spacer,
.kb-top-profile-link {
  width: 48px;
  height: 48px;
}

.kb-top-tab-action,
.kb-top-profile-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.kb-top-tab-action {
  justify-content: flex-end;
}

.kb-top-profile-link {
  justify-content: flex-start;
  color: inherit;
}

.kb-top-profile-link:focus-visible {
  border-radius: 8px;
  outline: 2px solid var(--kb-focus);
  outline-offset: 2px;
}

.kb-avatar.kb-top-profile-avatar {
  height: 40px;
  width: 40px;
  border-radius: 8px;
  background: var(--kb-fill);
  color: var(--kb-primary);
  font-size: 13px;
  line-height: 1;
  overflow: hidden;
}

.kb-avatar.kb-top-profile-avatar img {
  height: 100%;
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.kb-events-screen {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 22px 12px 0;
  background: var(--kb-background);
  color: var(--kb-ink);
  font-family: var(--kb-font);
}

.kb-events-shell {
  display: flex;
  width: 100%;
  max-width: 430px;
  min-height: calc(100vh - 22px);
  min-height: calc(100dvh - 22px);
  margin: 0 auto;
  padding: 0 14px 96px;
  flex-direction: column;
}

.kb-events-header {
  display: grid;
  justify-items: stretch;
  gap: 6px;
  margin-bottom: 6px;
}

.kb-events-header__bar {
  width: 100%;
}

.kb-events-header__title {
  justify-self: center;
}

.kb-events-header__meta {
  grid-column: 1 / -1;
  margin: 14px 0 0;
  color: var(--kb-caption);
  font-size: 11px;
  font-weight: 400;
  line-height: 15px;
}

.kb-events-location-pill {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-self: center;
  gap: 4px;
  padding: 0 10px;
  flex: none;
  border: 1px solid var(--kb-border-muted);
  border-radius: 9999px;
  background: var(--kb-surface);
  color: var(--kb-ink);
  font-size: 11px;
  font-weight: 700;
  line-height: 15px;
  box-shadow: var(--kb-shadow-card);
}

.kb-events-location-pill__icon {
  color: var(--kb-primary);
  font-size: 15px;
  font-variation-settings: "FILL" 0, "wght" 500;
}

.kb-events-saved-button {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  justify-self: end;
  border: 1px solid var(--kb-border-muted);
  border-radius: 12px;
  background: var(--kb-surface);
  color: var(--kb-ink);
  text-decoration: none;
}

.kb-events-saved-button .material-symbols-outlined {
  color: var(--kb-primary);
  font-size: 22px;
  font-variation-settings: "FILL" 0, "wght" 600;
}

.kb-events-saved-button:focus-visible {
  outline: 2px solid var(--kb-focus);
  outline-offset: 2px;
}

.kb-events-period-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 8px 0 10px;
  padding: 3px;
  border: 1px solid var(--kb-border-muted);
  border-radius: 12px;
  background: var(--kb-fill);
}

.kb-events-period-tabs__tab {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  color: var(--kb-body);
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
  text-decoration: none;
}

.kb-events-period-tabs__tab.is-active {
  background: var(--kb-surface);
  color: var(--kb-ink);
  box-shadow: var(--kb-shadow-card);
}

.kb-events-period-tabs__tab:focus-visible {
  outline: 2px solid var(--kb-focus);
  outline-offset: 2px;
}

.kb-events-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin: 0 0 10px;
  align-items: center;
}

.kb-events-search__field {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 0 12px;
  border: 1px solid var(--kb-border-muted);
  border-radius: 12px;
  background: var(--kb-surface);
}

.kb-events-search__field .material-symbols-outlined {
  flex: none;
  color: var(--kb-caption);
  font-size: 20px;
}

.kb-events-search__input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--kb-ink);
  font: inherit;
  font-size: 14px;
  line-height: 20px;
}

.kb-events-search__input::placeholder {
  color: var(--kb-caption);
}

.kb-events-search__field:focus-within {
  border-color: var(--kb-focus);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--kb-focus) 12%, transparent);
}

.kb-events-search__submit {
  min-width: 76px;
}

.kb-events-search__clear {
  grid-column: 1 / -1;
  width: fit-content;
  color: var(--kb-primary);
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
  text-decoration: none;
}

.kb-events-region-filter {
  display: flex;
  gap: 8px;
  margin: 8px -14px 14px;
  padding: 0 14px 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-color: var(--kb-border-muted) transparent;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent 100%);
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent 100%);
}

.kb-events-region-filter::-webkit-scrollbar {
  height: 3px;
}

.kb-events-region-filter::-webkit-scrollbar-track {
  background: transparent;
}

.kb-events-region-filter::-webkit-scrollbar-thumb {
  border-radius: 9999px;
  background: var(--kb-border-muted);
}

.kb-events-region-filter__chip {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  flex: 0 0 auto;
  border: 1px solid var(--kb-border-muted);
  border-radius: 9999px;
  background: var(--kb-surface);
  color: var(--kb-ink);
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  scroll-snap-align: start;
  text-decoration: none;
}

.kb-events-region-filter__chip.is-active {
  border-color: var(--kb-ink);
  background: var(--kb-ink);
  color: var(--kb-surface);
}

.kb-events-region-filter__chip:focus-visible {
  outline: 2px solid var(--kb-focus);
  outline-offset: 2px;
}

@media (min-width: 480px) {
  .kb-events-region-filter {
    flex-wrap: wrap;
    margin: 8px 0 14px;
    padding: 0;
    overflow-x: visible;
    scrollbar-width: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

.kb-events-list {
  display: grid;
  gap: 12px;
  padding-bottom: 12px;
}

.kb-events-infinite-scroll__sentinel {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  justify-self: center;
  padding: 4px 12px calc(12px + env(safe-area-inset-bottom));
  color: var(--kb-caption);
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
  text-decoration: none;
}

.kb-events-infinite-scroll__sentinel:focus-visible {
  border-radius: 10px;
  outline: 2px solid var(--kb-focus);
  outline-offset: 2px;
}

.kb-events-infinite-scroll__spinner {
  width: 24px;
  height: 24px;
  border: 2px solid color-mix(in srgb, var(--kb-primary) 24%, transparent);
  border-top-color: var(--kb-primary);
  border-radius: 9999px;
  animation: kb-events-infinite-scroll-spin 800ms linear infinite;
}

@keyframes kb-events-infinite-scroll-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .kb-events-infinite-scroll__spinner {
    animation: none;
  }
}

.kb-event-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--kb-border);
  border-radius: 12px;
  background: var(--kb-surface);
  box-shadow: var(--kb-shadow-card);
  color: inherit;
  text-decoration: none;
  transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.kb-event-card-stack {
  display: grid;
  gap: 6px;
}

.kb-event-card:active {
  transform: scale(0.985);
}

.kb-event-card:focus-visible {
  outline: 2px solid var(--kb-focus);
  outline-offset: 2px;
}

.kb-event-card__media {
  aspect-ratio: 2.28 / 1;
  overflow: hidden;
  background: var(--kb-fill);
}

.kb-event-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kb-event-card__body {
  padding: 5px 12px 6px;
  background: var(--kb-surface);
}

.kb-event-card__schedule {
  margin: 0;
  color: var(--kb-caption);
  font-size: 10px;
  font-weight: 700;
  line-height: 13px;
}

.kb-event-card__title {
  margin: 2px 0 0;
  color: var(--kb-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 17px;
}

.kb-event-card__translation {
  margin: 2px 0 0;
  color: var(--kb-caption);
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
}

.kb-event-card__entry {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  margin: 6px 0 0;
  padding: 0 8px;
  border-radius: 9999px;
  background: var(--kb-primary-container);
  color: var(--kb-ink);
  font-size: 11px;
  font-weight: 700;
  line-height: 15px;
}

.kb-event-card__buddy-link {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--kb-border-muted);
  border-radius: 10px;
  background: var(--kb-surface);
  color: var(--kb-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
  text-decoration: none;
}

.kb-event-card__buddy-link .material-symbols-outlined {
  color: var(--kb-primary);
  font-size: 19px;
  font-variation-settings: "FILL" 0, "wght" 600;
}

.kb-event-card__buddy-link:active {
  transform: scale(0.985);
}

.kb-event-card__buddy-link:focus-visible {
  outline: 2px solid var(--kb-focus);
  outline-offset: 2px;
}

/* ============================================================
   Component layer — token-mapped saii system.
   Use these instead of inline hex / ad-hoc shadows in views.
   ============================================================ */

/* App bar: sticky top chrome, centered title */
.kb-app-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--kb-background);
}
.kb-app-bar__icon {
  display: flex;
  height: 40px;
  width: 40px;
  align-items: center;
  justify-content: center;
  color: var(--kb-ink);
  text-decoration: none;
}
.kb-app-bar__title {
  flex: 1;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
  color: var(--kb-ink);
}

/* Card surface */
.kb-card {
  background: var(--kb-surface);
  border: 1px solid var(--kb-border);
  border-radius: var(--kb-radius-card);
  box-shadow: var(--kb-shadow-card);
}

/* Buttons */
.kb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 20px;
  border-radius: var(--kb-radius-control);
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.kb-btn:active { transform: scale(0.98); }
.kb-btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 8px; }
.kb-btn--block { width: 100%; }
.kb-btn--primary { background: var(--kb-primary); color: var(--kb-on-primary); }
.kb-btn--primary:active { background: var(--kb-primary-pressed); }
.kb-btn--neutral { background: var(--kb-fill); color: var(--kb-ink); }
.kb-btn--outline { background: transparent; color: var(--kb-ink); border-color: var(--kb-border-muted); }
.kb-btn--critical { background: var(--kb-safety-deep); color: #fff; }
.kb-btn--ink { background: var(--kb-ink); color: #fff; }
.kb-btn:disabled, .kb-btn[aria-disabled="true"] { background: var(--kb-fill); color: #d1d3d8; pointer-events: none; }

.kb-topic-chip {
  background: var(--kb-primary-tint);
  color: var(--kb-ink);
}

.peer:checked ~ .kb-topic-chip {
  background: var(--kb-ink);
  color: var(--kb-surface);
}

.peer:focus-visible ~ .kb-topic-chip {
  box-shadow: 0 0 0 2px var(--kb-focus);
}

.kb-create-post-submit {
  color: var(--kb-on-primary) !important;
}

.kb-create-post-submit:active {
  background: var(--kb-primary-pressed) !important;
}

.kb-event-detail-main {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 12px 9px 32px;
}

.kb-event-detail-shell {
  max-width: 640px;
  margin: 0 auto;
}

.kb-event-detail-nav {
  display: flex;
  min-height: 44px;
  align-items: center;
  margin: 0 6px 8px;
}

.kb-event-detail-back {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 4px;
  padding: 0 10px 0 6px;
  border-radius: 8px;
  color: var(--kb-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 19px;
  text-decoration: none;
}

.kb-event-detail-back:active {
  background: var(--kb-fill);
}

.kb-event-detail-back .material-symbols-outlined {
  color: inherit;
  font-size: 22px;
}

.kb-event-hero {
  position: relative;
  min-height: clamp(136px, 36vw, 180px);
  overflow: hidden;
  border-radius: 24px 24px 0 0;
  background: var(--kb-ink);
  box-shadow: var(--kb-shadow-card);
}

.kb-event-hero__image-button {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.kb-event-hero__image-button:focus-visible {
  outline: 3px solid var(--kb-focus);
  outline-offset: -6px;
}

.kb-event-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kb-event-hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.30), rgba(0, 0, 0, 0.04) 34%),
    linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.06) 68%);
  pointer-events: none;
}

.kb-event-hero__copy {
  position: absolute;
  right: 20px;
  bottom: 14px;
  left: 20px;
  color: #fff;
  pointer-events: none;
}

.kb-event-hero__date {
  margin: 0 0 4px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 11px;
  font-weight: 700;
  line-height: 15px;
  text-transform: uppercase;
}

.kb-event-hero__copy h1 {
  max-width: 420px;
  margin: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 24px;
}

.kb-event-hero__translation {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 18px;
}

.kb-event-hero__view-hint {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 4px;
  padding: 0 10px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--kb-ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  box-shadow: var(--kb-shadow-card);
  pointer-events: none;
}

.kb-event-hero__view-hint .material-symbols-outlined {
  font-size: 16px;
}

.kb-event-primary-actions {
  margin: 0;
  padding: 14px 16px 16px;
  border: 1px solid var(--kb-border);
  border-top: 0;
  border-radius: 0 0 16px 16px;
  background: var(--kb-surface);
  box-shadow: var(--kb-shadow-card);
}

.kb-event-primary-actions__controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 8px;
  align-items: center;
}

.kb-event-primary-actions__match {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 18px;
}

.kb-event-primary-actions__state {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin: 0;
  border-radius: 10px;
  background: var(--kb-fill);
  color: var(--kb-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
}

.kb-event-bookmark-form {
  width: 44px;
  margin: 0;
}

.kb-event-bookmark-button {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--kb-border-muted);
  border-radius: 10px;
  background: var(--kb-surface);
  color: var(--kb-primary);
  text-decoration: none;
}

.kb-event-bookmark-button.is-saved {
  border-color: color-mix(in srgb, var(--kb-primary) 34%, var(--kb-border-muted));
  background: var(--kb-primary-tint);
}

.kb-event-bookmark-button .material-symbols-outlined {
  font-size: 22px;
  font-variation-settings: "FILL" 0, "wght" 600;
}

.kb-event-bookmark-button.is-saved .material-symbols-outlined {
  font-variation-settings: "FILL" 1, "wght" 600;
}

.kb-event-bookmark-button:active {
  transform: scale(0.98);
}

.kb-event-bookmark-button:focus-visible {
  outline: 2px solid var(--kb-focus);
  outline-offset: 2px;
}

.kb-event-gallery {
  display: grid;
  grid-auto-columns: minmax(112px, 34%);
  grid-auto-flow: column;
  gap: 8px;
  margin: 10px 16px 0;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.kb-event-gallery::-webkit-scrollbar {
  display: none;
}

.kb-event-gallery__item {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--kb-border);
  border-radius: 12px;
  background: var(--kb-fill);
  box-shadow: var(--kb-shadow-card);
  cursor: zoom-in;
}

.kb-event-gallery__item:focus-visible {
  outline: 2px solid var(--kb-focus);
  outline-offset: 2px;
}

.kb-event-gallery__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kb-event-image-viewer[hidden] {
  display: none;
}

.kb-event-image-viewer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 56px 16px 28px;
  background: rgba(0, 0, 0, 0.82);
}

.kb-event-image-viewer__image {
  display: block;
  width: min(100%, 980px);
  max-height: 82vh;
  border-radius: 12px;
  background: var(--kb-ink);
  object-fit: contain;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.kb-event-image-viewer__close {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  right: 16px;
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--kb-ink);
  box-shadow: var(--kb-shadow-card);
}

.kb-event-image-viewer__close:focus-visible {
  outline: 2px solid var(--kb-focus);
  outline-offset: 2px;
}

.kb-event-image-viewer__close .material-symbols-outlined {
  font-size: 22px;
}

.kb-event-image-viewer-lock {
  overflow: hidden;
}

.kb-event-facts {
  display: grid;
  gap: 12px;
  margin: 18px 16px 0;
  padding: 17px 16px 16px;
  border: 1px solid var(--kb-border);
  border-radius: 12px;
  background: var(--kb-surface);
  box-shadow: var(--kb-shadow-card);
}

.kb-event-fact-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 4px;
  align-items: start;
  color: var(--kb-ink);
  font-size: 14px;
  line-height: 20px;
}

.kb-event-icon {
  width: 18px;
  height: 18px;
  flex: none;
}

.kb-event-fact-row > :is(.material-symbols-outlined, .kb-event-icon) {
  padding-top: 1px;
  color: var(--kb-caption);
  font-size: 18px;
}

.kb-event-fact-row__text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.kb-event-fact-row__text small {
  color: var(--kb-caption);
  font-size: 11px;
  line-height: 15px;
}

.kb-event-interest-form {
  margin: 8px 0 0;
}

.kb-event-interest-cta {
  min-height: 43px;
  border-radius: 8px;
  font-size: 14px;
}

.kb-event-interest-cta :is(.material-symbols-outlined, .kb-event-icon) {
  color: var(--kb-ink);
  font-size: 18px;
}

.kb-event-interest-hint {
  margin: -2px 0 0;
  color: var(--kb-caption);
  font-size: 12px;
  line-height: 16px;
}

.kb-event-interest-link {
  width: fit-content;
  color: var(--kb-primary);
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
  text-decoration: none;
}

.kb-event-sign-in {
  display: grid;
  gap: 12px;
  margin-top: 4px;
  padding: 12px;
  border-radius: 12px;
  background: var(--kb-fill);
}

.kb-event-sign-in p,
.kb-event-state-note {
  margin: 0;
  color: var(--kb-body);
  font-size: 13px;
  line-height: 18px;
}

.kb-event-description {
  display: grid;
  gap: 8px;
  margin: 15px 16px 0;
  padding: 15px 16px 16px;
  border: 1px solid var(--kb-border);
  border-radius: 12px;
  background: var(--kb-surface);
  box-shadow: var(--kb-shadow-card);
}

.kb-event-description__eyebrow {
  color: var(--kb-caption) !important;
  font-size: 10px !important;
  font-weight: 700;
  line-height: 14px !important;
  text-transform: uppercase;
}

.kb-event-description__content {
  display: grid;
  gap: 8px;
}

.kb-event-description__text,
.kb-event-description__translation,
.kb-event-description__content :where(p, li, blockquote, pre, h1, h2, h3) {
  margin: 0;
  color: var(--kb-ink);
  font-size: 14px;
  line-height: 22px;
  overflow-wrap: anywhere;
  text-wrap: pretty;
  word-break: keep-all;
}

.kb-event-description__content :where(ul, ol) {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 20px;
}

.kb-event-description__content a {
  color: var(--kb-primary);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.kb-event-description__content :where(strong, b) {
  font-weight: 700;
}

.kb-event-description__content blockquote {
  padding-left: 12px;
  border-left: 3px solid var(--kb-border);
  color: var(--kb-body);
}

.kb-event-description__content pre {
  padding: 12px;
  border-radius: 8px;
  background: var(--kb-fill);
  color: var(--kb-body);
  white-space: pre-wrap;
}

.kb-event-description__text--note {
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--kb-primary-tint);
  color: var(--kb-body);
  font-size: 13px;
  line-height: 20px;
}

.kb-event-description__translation {
  padding-top: 8px;
  border-top: 1px solid var(--kb-divider-subtle);
  color: var(--kb-body) !important;
}

.kb-event-buddy-card {
  margin: 15px 16px 0;
  padding: 15px 16px 13px;
  border: 1px solid var(--kb-border);
  border-radius: 12px;
  background: var(--kb-surface);
  box-shadow: var(--kb-shadow-card);
}

.kb-event-buddy-card__eyebrow {
  margin: 0;
  color: var(--kb-caption);
  font-size: 10px;
  font-weight: 700;
  line-height: 14px;
  text-transform: uppercase;
}

.kb-event-buddy-card h2 {
  margin: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.kb-event-buddy-card--entry h2 {
  width: auto;
  height: auto;
  margin-top: 4px;
  clip: auto;
  color: var(--kb-ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
  white-space: normal;
}

.kb-event-buddy-card__body {
  margin: 11px 0 0;
  color: var(--kb-body);
  font-size: 13px;
  line-height: 20px;
}

.kb-event-buddy-card__cta {
  margin-top: 13px;
  min-height: 46px;
  border-radius: 10px;
}

.kb-event-request-form {
  margin: 13px 0 0;
}

.kb-event-request-form .kb-btn {
  min-height: 46px;
  border-radius: 10px;
}

.kb-event-buddy-status-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(76px, 1fr));
  gap: 6px;
  margin-top: 13px;
}

.kb-event-buddy-status-tabs__tab {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 8px 6px;
  border: 1px solid var(--kb-border);
  border-radius: 8px;
  background: var(--kb-fill);
  color: var(--kb-caption);
  font-size: 11px;
  font-weight: 700;
  line-height: 14px;
  text-align: center;
  text-decoration: none;
}

.kb-event-buddy-status-tabs__tab span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kb-event-buddy-status-tabs__tab--active {
  border-color: var(--kb-primary);
  background: var(--kb-primary-tint);
  color: var(--kb-ink);
}

.kb-event-buddy-list {
  display: grid;
  gap: 0;
  margin-top: 13px;
  border-top: 1px solid var(--kb-border);
}

.kb-event-buddy-row {
  display: grid;
  gap: 12px;
  padding: 12px 0 0;
}

.kb-event-buddy-row + .kb-event-buddy-row {
  margin-top: 12px;
  border-top: 1px solid var(--kb-border);
}

.kb-event-buddy-profile {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.kb-event-buddy-profile__copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.kb-event-buddy-profile__name {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 4px;
  color: var(--kb-ink);
  font-size: 13px;
  line-height: 18px;
}

.kb-event-buddy-profile__name h3 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
}

.kb-event-buddy-profile__name .material-symbols-outlined {
  flex: none;
  color: var(--kb-verified);
  font-size: 16px;
}

.kb-event-buddy-profile__meta {
  overflow: hidden;
  color: var(--kb-caption);
  font-size: 10px;
  line-height: 14px;
  display: -webkit-box;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.kb-event-buddy-actions {
  display: grid;
  gap: 8px;
}

.kb-event-buddy-actions p {
  margin: 0;
  color: var(--kb-primary);
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
}

.kb-event-buddy-actions--split {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}

.kb-event-buddy-actions .kb-btn--sm {
  min-height: 42px;
}

.kb-event-review-note {
  margin: -2px 0 0;
  color: var(--kb-caption);
  font-size: 12px;
  line-height: 16px;
}

.kb-event-match-note {
  margin: -2px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--kb-fill);
  color: var(--kb-body);
  font-size: 13px;
  line-height: 18px;
}

.kb-event-buddy-actions form,
.kb-event-review-actions form {
  min-width: 0;
}

.kb-event-review-actions {
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--kb-border);
}

.kb-event-review-actions p {
  margin: 0;
  color: var(--kb-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
}

.kb-event-review-actions > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}

@media (min-width: 480px) {
  .kb-event-detail-main {
    padding: 16px 14px 32px;
  }

  .kb-event-hero {
    min-height: 220px;
    border-radius: 24px;
  }

  .kb-event-facts,
  .kb-event-buddy-card,
  .kb-event-description,
  .kb-event-gallery {
    margin-right: 24px;
    margin-left: 24px;
  }
}

/* Chips */
.kb-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 12px;
  border-radius: 9999px;
  background: var(--kb-fill);
  color: var(--kb-body);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
}
.kb-chip--selected { background: var(--kb-ink); color: #fff; }
.kb-chip--brand { background: var(--kb-primary-tint); color: var(--kb-primary); }
.kb-chip--korean { background: var(--kb-korean); color: var(--kb-ink); }
.kb-chip--international { background: var(--kb-international); color: var(--kb-ink); }

/* Radio pill — visual selected state for sr-only radios inside <label>.
   Lets the user see which option is checked without a re-render. */
.kb-radio-pill:has(:checked) {
  background: var(--kb-primary-tint) !important;
  border-color: var(--kb-primary) !important;
  color: var(--kb-primary) !important;
}

/* Avatars */
.kb-avatar {
  position: relative;
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: var(--kb-fill);
  color: var(--kb-primary);
  font-weight: 700;
  overflow: visible;
}
.kb-avatar img {
  height: 100%;
  width: 100%;
  border-radius: 9999px;
  object-fit: cover;
}
.kb-avatar--sm { height: 40px; width: 40px; font-size: 14px; }
.kb-avatar--md { height: 56px; width: 56px; font-size: 18px; }
.kb-avatar--lg { height: 96px; width: 96px; font-size: 28px; }
.kb-avatar--xl { height: 128px; width: 128px; font-size: 36px; }
.kb-avatar__badge {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  height: 24px;
  width: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 2px solid var(--kb-surface);
  background: var(--kb-primary);
  color: #fff;
}
.kb-avatar__badge--verified { background: var(--kb-verified); }

/* Segmented tabs (two-up) */
.kb-segmented {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: var(--kb-fill);
}
.kb-segmented__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--kb-caption);
  text-decoration: none;
}
.kb-segmented__item[aria-current="page"],
.kb-segmented__item[aria-selected="true"] {
  background: var(--kb-surface);
  color: var(--kb-ink);
  font-weight: 700;
  box-shadow: var(--kb-shadow-card);
}

.kb-messages-hub {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
  background: var(--kb-background);
  color: var(--kb-ink);
}

.kb-messages-hub__shell {
  display: flex;
  width: 100%;
  max-width: 390px;
  min-height: calc(100dvh - 32px);
  flex-direction: column;
  gap: 20px;
  margin: 0 auto;
}

.kb-messages-hub__header {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  min-height: 56px;
  padding-top: 2px;
}

.kb-messages-hub__header h1 {
  margin: 0;
  color: var(--kb-ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}

.kb-messages-hub__profile-link,
.kb-messages-hub__header-spacer {
  width: 48px;
  height: 48px;
}

.kb-messages-hub__profile-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  color: inherit;
  text-decoration: none;
}

.kb-messages-hub__profile-link:focus-visible {
  border-radius: 8px;
  outline: 2px solid var(--kb-focus);
  outline-offset: 2px;
}

.kb-messages-hub__profile-avatar {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--kb-fill);
  color: var(--kb-primary);
  font-size: 13px;
  line-height: 1;
}

.kb-messages-hub__profile-avatar img {
  border-radius: 8px;
}

.kb-message-primary-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 4px;
  border: 1px solid var(--kb-border-subtle);
  border-radius: 12px;
  background: var(--kb-fill);
}

.kb-message-primary-tabs__item {
  display: inline-flex;
  min-width: 0;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--kb-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 19px;
  text-decoration: none;
}

.kb-message-primary-tabs__item[aria-current="page"] {
  border-color: var(--kb-border-subtle);
  background: var(--kb-surface);
  color: var(--kb-ink);
  box-shadow: var(--kb-shadow-subtle);
}

.kb-message-primary-tabs__item:focus-visible {
  outline: 2px solid var(--kb-focus);
  outline-offset: 2px;
}

.kb-message-primary-tabs__count {
  display: inline-flex;
  min-width: 24px;
  height: 20px;
  flex: none;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  border-radius: 9999px;
  background: var(--kb-primary-tint);
  color: var(--kb-primary);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.kb-message-primary-tabs__item[aria-current="page"] .kb-message-primary-tabs__count {
  background: var(--kb-primary);
  color: var(--kb-on-primary);
}

.kb-message-filter-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 4px;
  scrollbar-width: none;
}

.kb-message-filter-tabs::-webkit-scrollbar {
  display: none;
}

.kb-message-filter-tabs__item {
  display: inline-flex;
  min-height: 36px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 14px;
  border: 1px solid var(--kb-border-muted);
  border-radius: 10px;
  background: var(--kb-surface);
  color: var(--kb-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 19px;
  text-decoration: none;
  white-space: nowrap;
}

.kb-message-filter-tabs__item[aria-current="page"] {
  border-color: var(--kb-primary);
  background: var(--kb-primary-tint);
  color: var(--kb-primary);
}

.kb-message-filter-tabs__item:focus-visible {
  outline: 2px solid var(--kb-focus);
  outline-offset: 2px;
}

.kb-message-filter-tabs__icon {
  width: 16px;
  height: 16px;
  flex: none;
  fill: currentColor;
}

.kb-message-section {
  display: grid;
  gap: 12px;
}

.kb-message-section__label {
  margin: 0;
  color: var(--kb-caption);
  font-size: 11px;
  font-weight: 700;
  line-height: 15px;
  text-transform: uppercase;
}

.kb-message-section__stack {
  display: grid;
  gap: 12px;
}

.kb-request-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--kb-border-muted);
  border-radius: 14px;
  background: var(--kb-surface);
  box-shadow: var(--kb-shadow-card);
}

.kb-request-card__intro {
  display: flex;
  min-width: 0;
  gap: 12px;
}

.kb-request-card__avatar {
  width: 48px;
  height: 48px;
  background: var(--kb-fill);
  color: var(--kb-primary);
  font-size: 14px;
}

.kb-request-card__content {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 4px;
}

.kb-request-card__meta {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 4px;
  color: var(--kb-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 19px;
}

.kb-request-card__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kb-request-card__verified {
  display: inline-flex;
  width: 15px;
  height: 15px;
  flex: none;
  align-items: center;
  justify-content: center;
  color: var(--kb-verified);
}

.kb-request-card__verified svg {
  width: 15px;
  height: 15px;
}

.kb-request-card__role {
  display: inline-flex;
  min-height: 20px;
  flex: none;
  align-items: center;
  padding: 0 8px;
  border-radius: 9999px;
  color: var(--kb-ink);
  font-size: 11px;
  font-weight: 500;
  line-height: 15px;
}

.kb-request-card__role--international {
  background: var(--kb-international);
}

.kb-request-card__role--korean {
  background: var(--kb-korean);
}

.kb-request-card__preview,
.kb-request-card__notice {
  margin: 0;
  color: var(--kb-body);
  font-size: 12px;
  font-weight: 400;
  line-height: 17px;
}

.kb-request-card__preview {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.kb-request-card__notice {
  color: var(--kb-caption);
}

.kb-request-card__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}

.kb-request-card__actions .kb-btn {
  min-width: 0;
  padding-inline: 12px;
  white-space: nowrap;
}

.kb-message-list {
  margin-inline: -8px;
}

.kb-message-list__card,
.kb-message-list__empty {
  overflow: hidden;
  border: 1px solid var(--kb-border-subtle);
  border-radius: 14px;
  background: var(--kb-surface);
  box-shadow: var(--kb-shadow-card);
}

.kb-message-list__row {
  display: grid;
  min-height: 76px;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  color: inherit;
  text-decoration: none;
  transition: background 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.kb-message-list__row + .kb-message-list__row {
  border-top: 1px solid var(--kb-divider-subtle);
}

.kb-message-list__row:active {
  background: var(--kb-fill);
}

.kb-message-list__row:focus-visible {
  outline: 2px solid var(--kb-focus);
  outline-offset: -2px;
}

.kb-message-list__avatar {
  width: 48px;
  height: 48px;
  background: var(--kb-fill);
  color: var(--kb-primary);
  font-size: 14px;
}

.kb-message-list__content {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.kb-message-list__headline,
.kb-message-list__body-row {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.kb-message-list__name {
  min-width: 0;
  overflow: hidden;
  color: var(--kb-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kb-message-list__time {
  flex: none;
  color: var(--kb-caption);
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  white-space: nowrap;
}

.kb-message-list__preview {
  min-width: 0;
  overflow: hidden;
  color: var(--kb-body);
  font-size: 12.5px;
  font-weight: 400;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kb-message-list__unread {
  display: inline-flex;
  min-width: 28px;
  height: 20px;
  flex: none;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: 9999px;
  background: var(--kb-safety-deep);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.kb-message-list__empty {
  padding: 16px;
}

.kb-message-list__empty p {
  margin: 0;
  color: var(--kb-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 19px;
}

.kb-message-list__empty span {
  display: block;
  margin-top: 4px;
  color: var(--kb-body);
  font-size: 13px;
  line-height: 18px;
}

@media (min-width: 480px) {
  .kb-message-list {
    margin-inline: 0;
  }
}

/* Empty / inline states */
.kb-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 56px 16px;
  text-align: center;
}
.kb-empty__text { font-size: 14px; color: var(--kb-caption); }

/* Onboarding profile-photo capture */
.kb-onboarding-photo-screen {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--kb-surface);
  color: var(--kb-ink);
  font-family: var(--kb-font);
}

.kb-onboarding-photo-shell {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 430px;
  margin: 0 auto;
  padding: 48px 32px calc(24px + env(safe-area-inset-bottom));
  flex-direction: column;
}

.kb-onboarding-photo-progress {
  width: 100%;
  height: 6px;
  overflow: hidden;
  border-radius: 9999px;
  background: var(--kb-fill);
}

.kb-onboarding-photo-progress > div {
  height: 100%;
  border-radius: inherit;
  background: var(--kb-primary);
  transition: width 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.kb-onboarding-photo-header {
  margin-top: 96px;
  margin-bottom: 56px;
}

.kb-onboarding-photo-header h1 {
  margin: 0;
  color: var(--kb-ink);
  font-size: 44px;
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: 0;
}

.kb-onboarding-photo-header p {
  margin: 24px 0 0;
  color: var(--kb-caption);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0;
}

.kb-onboarding-photo-error {
  margin-bottom: 16px;
  padding: 12px 16px;
  border: 1px solid var(--kb-safety);
  border-radius: 12px;
  background: var(--kb-safety);
  color: var(--kb-safety-deep);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}

.kb-onboarding-photo-form {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.kb-onboarding-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 12px;
}

.kb-onboarding-photo-slot {
  position: relative;
  display: flex;
  aspect-ratio: 1 / 1;
  min-width: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 24px;
  background: var(--kb-border-muted);
}

.kb-onboarding-photo-slot--primary {
  grid-column: span 2;
  grid-row: span 2;
}

.kb-onboarding-photo-slot img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.kb-onboarding-photo-placeholder {
  display: flex;
  height: 100%;
  width: 100%;
  align-items: center;
  justify-content: center;
  color: var(--kb-surface);
}

.kb-onboarding-photo-placeholder .material-symbols-outlined {
  font-size: 56px;
  font-variation-settings: "wght" 300;
}

.kb-onboarding-photo-slot:not(.kb-onboarding-photo-slot--primary) .kb-onboarding-photo-placeholder .material-symbols-outlined {
  font-size: 44px;
}

.kb-onboarding-photo-warning {
  margin: 24px 0 0;
  color: var(--kb-caption);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0;
}

.kb-onboarding-photo-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: auto;
  padding-top: 28px;
}

.kb-onboarding-photo-actions__previous,
.kb-onboarding-photo-actions__next {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
}

.kb-onboarding-photo-actions__previous {
  border: 1px solid var(--kb-border-muted);
  background: var(--kb-surface);
  color: var(--kb-ink);
}

.kb-onboarding-photo-actions__next {
  border: 1px solid transparent;
  background: var(--kb-primary);
  color: var(--kb-on-primary);
}

.kb-onboarding-photo-actions__next:disabled {
  background: var(--kb-fill);
  color: #d1d3d8;
  cursor: default;
}

@media (max-width: 380px) {
  .kb-onboarding-photo-shell {
    padding-right: 24px;
    padding-left: 24px;
  }

  .kb-onboarding-photo-header {
    margin-top: 72px;
    margin-bottom: 48px;
  }

  .kb-onboarding-photo-header h1 {
    font-size: 38px;
  }

  .kb-onboarding-photo-actions {
    gap: 12px;
  }
}

/* MBTI bottom sheet — DESIGN.md §5 (20px sheet radius), §6 (s3 shadow),
   §15 (rise from y+40 / ease-enter / motion-standard; backdrop to
   rgba(0,0,0,0.5); dismissal lighter at motion-fast / ease-exit). */
.kb-mbti-sheet__backdrop,
.kb-mbti-sheet__panel {
  display: none;
}

.kb-mbti-sheet--open .kb-mbti-sheet__backdrop {
  opacity: 1;
}

.kb-mbti-sheet--open .kb-mbti-sheet__panel {
  transform: translateY(0);
  opacity: 1;
}

.kb-mbti-sheet__backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 250ms cubic-bezier(0.0, 0.0, 0.2, 1); /* motion-standard / ease-enter */
}

.kb-mbti-sheet__panel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 61;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  background: var(--kb-surface);
  border-radius: 20px 20px 0 0;
  box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.12); /* s3 */
  transform: translateY(40px);
  opacity: 0;
  /* Enter rides ease-enter / motion-standard (250ms); when the --open class
     drops, the same transition reverses on the lighter ease-exit curve. */
  transition:
    transform 250ms cubic-bezier(0.4, 0.0, 1, 1),
    opacity 150ms cubic-bezier(0.4, 0.0, 1, 1);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.kb-mbti-sheet__handle {
  width: 36px;
  height: 4px;
  border-radius: 9999px;
  background: var(--kb-border-muted);
  margin: 12px auto 4px;
  flex: none;
}

.kb-mbti-sheet__header {
  padding: 12px 20px 8px;
}

.kb-mbti-sheet__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--kb-ink);
}

.kb-mbti-sheet__list {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px 12px 16px;
}

.kb-mbti-sheet__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 8px;
  border-radius: 12px;
  cursor: pointer;
}

.kb-mbti-sheet__row:focus-visible {
  outline: 2px solid var(--kb-focus);
  outline-offset: -2px;
}

.kb-mbti-sheet__row:hover {
  background: var(--kb-surface-muted);
}

.kb-mbti-sheet__row + .kb-mbti-sheet__row {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.kb-mbti-sheet__code {
  font-size: 15px;
  font-weight: 700;
  color: var(--kb-ink);
  min-width: 48px;
}

.kb-mbti-sheet__name {
  font-size: 14px;
  color: var(--kb-body);
}

/* Trigger field — reads like the Icebreaker <select> on the same card:
   fill background, soft border, 12px control radius, 13px caption label. */
.kb-mbti-sheet__trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-radius: 12px;
  border: 1px solid var(--kb-border);
  background: var(--kb-fill);
  color: var(--kb-placeholder);
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.kb-mbti-sheet__trigger:focus-visible {
  outline: 2px solid var(--kb-focus);
  outline-offset: 2px;
}

.kb-mbti-sheet__trigger--filled {
  color: var(--kb-ink);
}

.kb-mbti-sheet__chevron {
  flex: none;
  color: var(--kb-caption);
}

@media (prefers-reduced-motion: reduce) {
  .kb-mbti-sheet__backdrop,
  .kb-mbti-sheet__panel {
    transition: none;
  }

  .kb-mbti-sheet--open .kb-mbti-sheet__panel {
    transform: none;
  }
}

/* Admin launch readiness */
.kb-launch {
  min-height: 100dvh;
  padding: 32px 20px 40px;
  background: var(--kb-background);
  color: var(--kb-ink);
  font-family: var(--kb-font);
}

.kb-launch__shell {
  width: min(100%, 1040px);
  margin: 0 auto;
}

.kb-launch__stack > * + * {
  margin-top: 24px;
}

.kb-launch__header,
.kb-launch__overview {
  display: grid;
  gap: 16px;
}

.kb-launch__eyebrow,
.kb-launch__label {
  color: var(--kb-primary);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  text-transform: uppercase;
}

.kb-launch__label--muted {
  color: var(--kb-caption);
}

.kb-launch__title {
  margin-top: 8px;
  color: var(--kb-ink);
  font-size: 26px;
  font-weight: 700;
  line-height: 35px;
}

.kb-launch__body {
  margin-top: 8px;
  max-width: 640px;
  color: var(--kb-body);
  font-size: 14px;
  line-height: 22px;
}

.kb-launch__actions,
.kb-launch__nav {
  display: flex;
  gap: 8px;
}

.kb-launch__actions {
  flex-wrap: wrap;
}

.kb-launch__nav {
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.kb-launch__nav::-webkit-scrollbar {
  display: none;
}

.kb-launch__button,
.kb-launch__nav-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.kb-launch__nav-link {
  flex: 0 0 auto;
}

.kb-launch__button:active,
.kb-launch__nav-link:active {
  transform: scale(0.98);
}

.kb-launch__button {
  background: var(--kb-primary);
  color: var(--kb-surface);
}

.kb-launch__button:hover {
  background: var(--kb-primary-pressed);
}

.kb-launch__nav-link {
  border: 1px solid var(--kb-border);
  background: var(--kb-surface);
  color: var(--kb-primary);
}

.kb-launch__nav-link[aria-current="page"] {
  border-color: var(--kb-primary);
  background: var(--kb-primary);
  color: var(--kb-surface);
}

.kb-launch__summary,
.kb-launch__section,
.kb-launch__item {
  border: 1px solid var(--kb-border);
  border-radius: var(--kb-radius-card);
  background: var(--kb-surface);
  box-shadow: var(--kb-shadow-card);
}

.kb-launch__summary {
  padding: 20px;
}

.kb-launch__summary-title {
  color: var(--kb-ink);
  font-size: 20px;
  font-weight: 700;
  line-height: 27px;
}

.kb-launch__summary-count {
  color: var(--kb-ink);
  font-size: 26px;
  font-weight: 700;
  line-height: 35px;
}

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

.kb-launch__stat {
  border-radius: 12px;
  padding: 12px;
  background: var(--kb-fill);
}

.kb-launch__stat-number {
  color: var(--kb-ink);
  font-size: 20px;
  font-weight: 700;
  line-height: 27px;
}

.kb-launch__stat-label {
  margin-top: 4px;
  color: var(--kb-caption);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
}

.kb-launch__section {
  padding: 16px;
}

.kb-launch__section-header {
  display: grid;
  gap: 8px;
}

.kb-launch__section-title {
  color: var(--kb-ink);
  font-size: 20px;
  font-weight: 700;
  line-height: 27px;
}

.kb-launch__section-body {
  max-width: 640px;
  color: var(--kb-body);
  font-size: 14px;
  line-height: 22px;
}

.kb-launch__list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.kb-launch__item {
  padding: 16px;
}

.kb-launch__item-main {
  display: grid;
  gap: 12px;
}

.kb-launch__item-title {
  margin-top: 4px;
  color: var(--kb-ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
}

.kb-launch__item-summary {
  margin-top: 8px;
  color: var(--kb-body);
  font-size: 14px;
  line-height: 22px;
}

.kb-launch__status {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  padding: 0 12px;
  background: var(--kb-fill);
  color: var(--kb-body);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.kb-launch__status--configured {
  background: var(--kb-international);
  color: var(--kb-primary);
}

.kb-launch__status--mocked-mvp {
  background: var(--kb-korean);
  color: var(--kb-primary);
}

.kb-launch__status--post-mvp {
  background: var(--kb-primary-tint);
  color: var(--kb-primary);
}

.kb-launch__status--needs-credentials,
.kb-launch__status--needs-review {
  background: var(--kb-safety);
  color: var(--kb-safety-deep);
}

.kb-launch__action {
  margin-top: 12px;
  border-left: 3px solid var(--kb-primary);
  border-radius: 8px;
  padding: 12px;
  background: var(--kb-fill);
  color: var(--kb-ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
}

.kb-launch__text-link {
  color: var(--kb-primary);
  font-weight: 700;
  text-decoration: none;
}

.kb-launch__text-link:hover {
  text-decoration: underline;
}

.kb-launch__details {
  margin-top: 12px;
  border-top: 1px solid var(--kb-border);
  padding-top: 12px;
}

.kb-launch__details > summary {
  cursor: pointer;
  color: var(--kb-caption);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
}

.kb-launch__detail-grid {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.kb-launch__env-row,
.kb-launch__meta-row {
  display: grid;
  gap: 8px;
  border-radius: 8px;
  padding: 12px;
  background: var(--kb-background);
}

.kb-launch__env-key,
.kb-launch__meta-key {
  overflow-wrap: anywhere;
  color: var(--kb-ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
}

.kb-launch__env-expected,
.kb-launch__meta-value {
  overflow-wrap: anywhere;
  color: var(--kb-body);
  font-size: 12px;
  line-height: 18px;
}

.kb-launch__empty {
  border-radius: 12px;
  padding: 16px;
  background: var(--kb-background);
  color: var(--kb-body);
  font-size: 14px;
  line-height: 22px;
}

@media (min-width: 768px) {
  .kb-launch__header,
  .kb-launch__overview {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
  }

  .kb-launch__item-main,
  .kb-launch__env-row,
  .kb-launch__meta-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }
}
