/* Shared component styles — loaded by all pages after shared.css. */

/* ── Site logo header ── */

.site-header {
  max-width: 1416px; /* 1360px content + 28px padding each side */
  padding: 20px 28px 0;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-logo {
  height: 36px;
  width: auto;
  display: block;
}

.logo-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-accent {
  background: var(--color-accent);
}

/* ── Profile menu ── */

.header-profile-wrap {
  position: relative;
  display: inline-flex;
}

.header-profile-btn {
  width: 38px;
  height: 38px;
  min-height: 38px;
  border-radius: 50%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9375rem;
  font-family: var(--font-display);
  font-weight: var(--font-weight-bold);
  background: var(--ink);
  color: var(--accent);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-hard-sm);
  cursor: pointer;
  transition: transform 0.1s;
}

.header-profile-btn:hover {
  transform: translate(-1px, -1px);
}

.header-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 192px;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-hard);
  z-index: 1000;
  padding: 6px;
}

.header-menu[hidden] { display: none; }

.header-menu-user {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: var(--font-weight-bold);
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px 6px;
}

.header-menu-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border: none;
  border-radius: var(--radius-xl);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: var(--font-weight-bold);
  font-size: 0.875rem;
  cursor: pointer;
  box-shadow: none;
  min-height: unset;
  line-height: 1.2;
}

.header-menu-item:hover {
  background: var(--paper);
  box-shadow: none;
}

.header-menu-item--danger {
  color: var(--warm);
}

.header-menu-divider {
  height: 1px;
  background: var(--line, #e0ddf5);
  margin: 4px 0;
  border: none;
}

.version-tag {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: var(--font-weight-bold);
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ── Buttons ── */

button {
  min-height: 44px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-xl);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: var(--font-weight-bold);
  padding: 0 16px;
  box-shadow: var(--shadow-hard);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

button.primary {
  background: var(--accent);
}

button.small {
  min-height: 36px;
  padding: 0 12px;
}

button.icon {
  align-items: center;
  box-shadow: none;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  min-height: 34px;
  padding: 0;
  width: 34px;
}

button.danger {
  color: var(--warm);
}

/* ── Typography ── */

.eyebrow {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: var(--font-size-label);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-none);
  text-transform: uppercase;
}

.lede {
  color: var(--color-text-soft);
  font-size: var(--font-size-lg);
  margin: 0;
  max-width: 780px;
}

/* ── Step checklist loading state ─────────────────────────────────────── */

.step-checklist {
  display: flex;
  flex-direction: column;
  gap: 3px;
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
}

.step-item {
  align-items: center;
  display: flex;
  font-family: var(--font-display);
  font-size: var(--font-size-sm);
  gap: 6px;
  line-height: 1.5;
  transition: opacity 0.4s;
}

.step-icon {
  flex-shrink: 0;
  font-size: 0.8em;
  text-align: center;
  width: 14px;
}

.step-done {
  color: var(--muted);
  opacity: 0.45;
}

.step-active {
  color: var(--ink);
  font-weight: var(--font-weight-semibold);
}

.step-active .step-icon {
  animation: step-pulse 1.1s ease-in-out infinite;
  color: var(--warm);
}

.step-pending {
  color: var(--muted);
  opacity: 0.2;
}

@keyframes step-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.15; }
}

/* ── Responsive header ── */

@media (max-width: 640px) {
  .site-header { padding: 14px 16px 0; }
  .header-nav  { margin-right: 0; gap: 6px; }
  .site-logo   { height: 30px; }
}

@media (max-width: 480px) {
  .site-header { padding: 10px 12px 0; }
}

/* ── Chat bubbles ── */

.chatBubble {
  max-width: 88%;
  padding: 10px 13px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink);
  line-height: 1.45;
}

.chatBubbleUser {
  align-self: flex-end;
  background: var(--accent);
  border-bottom-right-radius: 4px;
}

.chatBubbleAi {
  align-self: flex-start;
  background: var(--surface);
  border-bottom-left-radius: 4px;
}

/* ── Questionnaire (QNA) ── */

.qnaLoading {
  align-items: center;
  color: var(--muted);
  display: flex;
  gap: 12px;
  padding: 24px 0;
}

.qnaEmpty {
  color: var(--muted);
  font-size: 14px;
  padding: 20px 0;
}

.qnaList {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.qnaQuestionHead {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.qnaQuestionTitle {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.qnaQuestionSub {
  color: var(--muted);
  font-size: 12px;
}

.qnaCardList {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.qnaCard {
  align-items: center;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 10px;
  box-shadow: 2px 2px 0 0 var(--ink);
  cursor: pointer;
  display: flex;
  gap: 12px;
  min-height: unset;
  padding: 13px 16px;
  text-align: left;
  transition: background 120ms, transform 120ms, box-shadow 120ms;
  width: 100%;
}

.qnaCard:hover { background: #ece8de; }

.qnaCardActive {
  background: var(--accent) !important;
  box-shadow: 3px 3px 0 0 var(--ink);
  transform: translate(-1px, -1px);
}

.qnaCardCheck {
  align-items: center;
  border: 2px solid var(--ink);
  border-radius: 6px;
  color: var(--surface);
  display: flex;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  height: 22px;
  justify-content: center;
  width: 22px;
}

.qnaCardCheckActive {
  background: var(--ink);
  color: var(--accent);
}

.qnaCardLabel {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.qnaPillRow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.qnaPill {
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  min-height: unset;
  padding: 7px 14px;
  transition: background 120ms, transform 120ms, box-shadow 120ms;
}

.qnaPill:hover { background: #ece8de; }

.qnaPillActive {
  background: var(--accent);
  box-shadow: 2px 2px 0 0 var(--ink);
  transform: translate(-1px, -1px);
}

.qnaTextarea {
  border: 2px solid var(--ink);
  border-radius: var(--radius-xl);
  font-family: Inter, sans-serif;
  font-size: 14px;
  min-height: 72px;
  padding: 10px 12px;
  resize: vertical;
  width: 100%;
}

.qnaOtherInput {
  border: 2px solid var(--ink);
  border-radius: var(--radius-xl);
  font-family: Inter, sans-serif;
  font-size: 14px;
  margin-top: 8px;
  padding: 9px 12px;
  width: 100%;
}

/* ── Secondary button ── */

.btnSecondary {
  height: 46px;
  padding: 0 18px;
  font-size: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  background: var(--surface);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 10px;
  box-shadow: 3px 3px 0 0 var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 120ms cubic-bezier(.4,0,.2,1), box-shadow 120ms cubic-bezier(.4,0,.2,1);
  white-space: nowrap;
}

.btnSecondary:not(:disabled):hover {
  box-shadow: 5px 5px 0 0 var(--ink);
  transform: translate(-2px, -2px);
}

.btnSecondary:not(:disabled):active {
  box-shadow: 0 0 0 0;
  transform: translate(3px, 3px);
}

.btnSecondary:disabled { opacity: 0.45; cursor: not-allowed; }

/* ── ChunkyInput ── */

.chunkyInput {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  background: var(--surface);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: box-shadow 120ms, transform 120ms;
  box-shadow: 3px 3px 0 0 var(--ink);
}

.chunkyInput:focus {
  box-shadow: 3px 3px 0 0 var(--accent);
  transform: translate(-1px, -1px);
}

textarea.chunkyInput {
  resize: vertical;
  min-height: 120px;
}

/* ── Alert ── */

.alert {
  background: var(--color-alert-bg);
  border: 2px solid var(--ink);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-hard);
  margin-bottom: 16px;
  padding: 14px 16px;
}

/* ── LuxQuestionCard ── */

.luxQCard {
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 12px;
  box-shadow: 3px 3px 0 0 var(--ink);
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
}

.luxQCardHeader {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.45;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--line);
}

.luxQCardSuggestions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 10px 8px;
}

.luxQCardSuggestions .qnaCard {
  border-radius: 8px;
  box-shadow: none;
  border: 1.5px solid transparent;
  font-size: 13px;
  padding: 10px 12px;
}

.luxQCardSuggestions .qnaCard:hover {
  border-color: var(--ink);
}

.luxQCardInput {
  border-top: 1px solid var(--line);
  display: flex;
  gap: 6px;
  padding: 8px 10px 10px;
}

.luxQCardSkeleton {
  box-shadow: none;
  opacity: 0.5;
}

.luxQCardSkeletonLine {
  background: var(--line);
  border-radius: 4px;
  height: 14px;
  margin: 10px 16px 4px;
}

/* ── LuxCheckinChat ── */

.luxCheckinChat {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
  min-height: 0;
}

.luxCheckinMessages {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.luxCheckinQuestion {
  flex-shrink: 0;
}

.luxCheckinBubble {
  align-items: flex-end;
  display: flex;
  gap: 10px;
}

.luxCheckinBubble--user {
  flex-direction: row-reverse;
}

.luxCheckinBubble--user .luxCheckinBubbleText {
  background: var(--accent);
  border-bottom-right-radius: 4px;
}

.luxCheckinBubbleText {
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 12px;
  border-bottom-left-radius: 4px;
  font-size: 0.875rem;
  line-height: 1.5;
  max-width: 85%;
  padding: 8px 12px;
}

.luxCheckinBubbleText p:first-child { margin-top: 0; }
.luxCheckinBubbleText p:last-child { margin-bottom: 0; }

@media (max-width: 560px) {
  .lux-recap-modal.chat-active {
    height: 92vh;
  }
}
