/* ═══════════════════════════════════════════════════════════════════════════
   CROCKY Brief — Styles
   iOS 26 Liquid Glass Design System
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────────────
   CSS Variables — iOS 26 Liquid Glass Theme
   ───────────────────────────────────────────────────────────────────────────── */
:root {
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);

  /* Colors */
  --c-bg: #f5f5f7;
  --c-surface: rgba(255, 255, 255, 0.72);
  --c-surface-solid: #ffffff;
  --c-text: #1c1c1e;
  --c-text-secondary: #8e8e93;
  --c-text-muted: #aeaeb2;
  --c-border: rgba(0, 0, 0, 0.04);
  --c-separator: rgba(60, 60, 67, 0.12);
  
  /* iOS 26 System Colors */
  --c-blue: #007aff;
  --c-blue-light: rgba(0, 122, 255, 0.12);
  --c-green: #34c759;
  --c-green-light: rgba(52, 199, 89, 0.12);
  --c-orange: #ff9500;
  --c-red: #ff3b30;
  --c-red-light: rgba(255, 59, 48, 0.03);
  --c-purple: #af52de;
  --c-teal: #5ac8fa;
  
  /* Liquid Glass Materials */
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-bg-thick: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  --glass-blur: blur(20px);
  
  /* Gradients */
  --grad-blue: linear-gradient(135deg, #007aff 0%, #5ac8fa 100%);
  --grad-green: linear-gradient(135deg, #34c759 0%, #30d158 100%);
  --grad-orange: linear-gradient(135deg, #ff9500 0%, #ffb340 100%);
  --grad-purple: linear-gradient(135deg, #af52de 0%, #bf5af2 100%);
  
  /* Typography — SF Pro style */
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', sans-serif;
  
  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  
  /* Border Radius */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0, 0, 0, 0.04);
  --shadow-fab: 0 8px 24px rgba(0, 122, 255, 0.35), 0 4px 8px rgba(0, 122, 255, 0.2);
  
  /* Transitions */
  --trans-fast: 180ms cubic-bezier(0.25, 0.1, 0.25, 1);
  --trans-normal: 300ms cubic-bezier(0.25, 0.1, 0.25, 1);
  --trans-slow: 450ms cubic-bezier(0.25, 0.1, 0.25, 1);
  --trans-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─────────────────────────────────────────────────────────────────────────────
   Reset & Base
   ───────────────────────────────────────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

a {
  text-decoration: none;
  color: inherit;
}

input, select, textarea {
  font-family: inherit;
  font-size: 17px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   App Container
   ───────────────────────────────────────────────────────────────────────────── */
.app-container {
  height: 100svh;
  height: 100dvh;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  background: var(--c-surface-solid);
  position: relative;
  overflow: hidden;
}


/* ─────────────────────────────────────────────────────────────────────────────
   Screen System
   ───────────────────────────────────────────────────────────────────────────── */
.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateX(30px);
  transition: 
    opacity var(--trans-normal),
    visibility var(--trans-normal),
    transform var(--trans-normal);
}

.screen.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.screen.exit {
  transform: translateX(-30px);
}

/* ═══════════════════════════════════════════════════════════════════════════
   SCREEN 1: Needs Selection (Multi-select)
   ═══════════════════════════════════════════════════════════════════════════ */
.screen--needs {
  background: var(--c-bg);
}

.needs {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: calc(var(--space-md) + var(--safe-top)) var(--space-md) calc(92px + var(--safe-bottom));
  overflow: hidden;
}


/* Header */
.needs__header {
  text-align: center;
  margin-bottom: var(--space-md);
}

.needs__logo {
  margin-bottom: var(--space-sm);
}

.needs__logo-img {
  width: 65px;
  height: 65px;
  object-fit: contain;
}

.needs__brand {
  font-size: 29px;
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.needs__tagline {
  font-size: 15px;
  color: var(--c-text-secondary);
  font-weight: 400;
}


.needs__time{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;

  padding: 10px 14px; /* ~20% smaller */
  margin-top: var(--space-md);

  background: rgba(52, 199, 89, 0.12);
  border: 1px solid rgba(52, 199, 89, 0.18);
  border-radius: var(--radius-full);

  color: #1d7a34;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.needs__time-icon{
  font-size: 15px;
  line-height: 1;
  color: #1d7a34;
}

.needs__time-text{
  line-height: 1;
}


/* Content */
.needs__content {
  flex: 1;
  background: var(--c-surface-solid);
  border-radius: var(--radius-lg);
  padding: 18px;
box-shadow: var(--shadow-sm);
}

.needs__title {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  color: var(--c-text);
  line-height: 1.25;
  margin-bottom: var(--space-sm);

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.needs__subtitle {
  font-size: 14px;
  color: var(--c-text-secondary);
  text-align: center;
  margin-bottom: var(--space-lg);
  line-height: 1.4;
}

/* Need Cards List */
.needs__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Need Card — Multi-select */
.need-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  width: 100%;
  padding: 14px;
  background: var(--c-bg);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  text-align: left;
  transition: 
    transform var(--trans-fast),
    border-color var(--trans-fast),
    background var(--trans-fast),
    box-shadow var(--trans-fast);

  min-height: 74px;
}

.need-card:hover {
  background: #f0f0f2;
}

.need-card:active {
  transform: scale(0.98);
}

.need-card.selected {
  border-color: var(--c-green);
  background: var(--c-green-light);
}

.need-card__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: var(--c-surface-solid);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.need-card__text {
  flex: 1;
  min-width: 0;
}

.need-card__title {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.25;
  margin-bottom: 2px;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.need-card__desc {
  display: block;
  font-size: 12.5px;
  color: var(--c-text-secondary);
  line-height: 1.35;
}

/* Checkmark */
.need-card__check {
  flex-shrink: 0;
  font-size: 22px;
  opacity: 0;
  transform: scale(0.5);
  transition: 
    opacity var(--trans-fast),
    transform var(--trans-spring);
}

.need-card.selected .need-card__check {
  opacity: 1;
  transform: scale(1);
}

/* Primary variant */
.need-card--primary {
  background: linear-gradient(135deg, #f8f4ff 0%, #f0e8ff 100%);
}

.need-card--primary .need-card__icon {
  background: linear-gradient(135deg, #efe5ff 0%, #e8daff 100%);
}

.need-card--primary.selected {
  background: linear-gradient(135deg, rgba(52, 199, 89, 0.15) 0%, rgba(52, 199, 89, 0.1) 100%);
  border-color: var(--c-green);
}

/* ─────────────────────────────────────────────────────────────────────────────
   Floating Action Button (FAB)
   ───────────────────────────────────────────────────────────────────────────── */
.fab {
  position: fixed;
  bottom: calc(22px + var(--safe-bottom));
  right: 28px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: 
    transform var(--trans-spring),
    opacity var(--trans-normal),
    box-shadow var(--trans-normal),
    background var(--trans-normal);
  z-index: 100;
}

.fab--continue {
  background: linear-gradient(135deg, rgba(174, 174, 178, 0.9) 0%, rgba(142, 142, 147, 0.9) 100%);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.fab:disabled {
  cursor: not-allowed;
}

.fab:not(:disabled) {
  background: var(--grad-blue);
  box-shadow: var(--shadow-fab);
  cursor: pointer;
}

.fab:not(:disabled):hover {
  transform: scale(1.08);
  box-shadow: 0 10px 32px rgba(0, 122, 255, 0.45);
}

.fab:not(:disabled):active {
  transform: scale(0.94);
}

.fab__icon {
  width: 26px;
  height: 26px;
  transition: transform var(--trans-fast);
}

.fab:not(:disabled) .fab__icon {
  transform: translateX(1px);
}

/* Pulse animation */
.fab:not(:disabled)::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: var(--c-blue);
  opacity: 0;
  animation: fab-pulse 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  z-index: -1;
}

@keyframes fab-pulse {
  0% {
    transform: scale(0.85);
    opacity: 0.5;
  }
  50% {
    opacity: 0.25;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SCREEN 2: Questions
   ═══════════════════════════════════════════════════════════════════════════ */
.screen--questions {
  background: var(--c-bg);
}

/* Question Header — Fixed */
.q-header {
  position: sticky;
  top: 0;
  z-index: 10;
  flex-shrink: 0;
  padding: var(--space-md);
  background: var(--c-surface-solid);
  border-bottom: 1px solid var(--c-separator);
}

.q-header__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.q-header__logo {
  font-size: 26px;
}

.q-header__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--c-text);
}

/* Progress Bar — Fixed */
.progress {
  position: sticky;
  top: 60px;
  z-index: 10;
  flex-shrink: 0;
  padding: var(--space-md);
  background: var(--c-surface-solid);
  border-bottom: 1px solid var(--c-separator);
}

.progress__info {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--c-text-secondary);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.progress__bar {
  height: 6px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress__fill {
  height: 100%;
  width: 0%;
  background: var(--grad-blue);
  border-radius: var(--radius-full);
  transition: width var(--trans-normal);
}

/* Question Main Area */
.q-main {
  flex: 1;
  min-height: 0;
  padding: var(--space-md);
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
}

/* Question Card */
.q-card {
  width: 100%;
  background: var(--c-surface-solid);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  animation: card-in var(--trans-normal);
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.q-card__section {
  font-size: 12px;
  font-weight: 600;
  color: var(--c-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: var(--space-sm);
}

.q-card__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.3;
  margin-bottom: var(--space-lg);
}

/* Input Styles */
.q-card__input-group {
  margin-bottom: var(--space-md);
}

.q-card input,
.q-card select,
.q-card textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--c-separator);
  border-radius: var(--radius-sm);
  background: var(--c-surface-solid);
  color: var(--c-text);
  outline: none;
  transition: 
    border-color var(--trans-fast), 
    box-shadow var(--trans-fast),
    background var(--trans-fast);
}

.q-card input:focus,
.q-card select:focus,
.q-card textarea:focus {
  border-color: var(--c-blue);
  box-shadow: 0 0 0 4px var(--c-blue-light);
}

.q-card input.error,
.q-card select.error,
.q-card textarea.error {
  border-color: rgba(255, 59, 48, 0.55);
  background: rgba(255, 59, 48, 0.03);
}

.q-card input.error:focus,
.q-card select.error:focus,
.q-card textarea.error:focus {
  box-shadow: 0 0 0 4px rgba(255, 59, 48, 0.08);
}

.q-card input::placeholder,
.q-card textarea::placeholder {
  color: var(--c-text-muted);
}

.q-card select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 44px;
}

.q-card textarea {
  resize: none;
  min-height: 100px;
  max-height: 150px;
}

/* Error Message */
.q-card__error {
  display: none;
  color: var(--c-red);
  font-size: 13px;
  font-weight: 600;
  margin-top: var(--space-sm);
}

.q-card__error.visible {
  display: block;
}

/* Button Groups */
.q-card__buttons {
  display: flex;
  gap: 10px;
  margin-top: var(--space-md);
}

.q-card__buttons--secondary {
  margin-top: var(--space-sm);
}

/* Buttons */
.btn {
  flex: 1;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  transition: 
    background var(--trans-fast),
    transform var(--trans-fast),
    box-shadow var(--trans-fast);
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: var(--grad-blue);
  color: white;
}

.btn--primary:hover {
  box-shadow: 0 4px 16px rgba(0, 122, 255, 0.35);
}

.btn--secondary {
  background: rgba(0, 0, 0, 0.05);
  color: var(--c-text);
}

.btn--secondary:hover {
  background: rgba(0, 0, 0, 0.08);
}

.btn--ghost {
  background: transparent;
  color: var(--c-text-secondary);
  font-weight: 600;
  font-size: 15px;
}

.btn--ghost:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--c-text);
}

/* ═══════════════════════════════════════════════════════════════════════════
   SCREEN 3: Completion
   ═══════════════════════════════════════════════════════════════════════════ */
.screen--complete {
  background: var(--c-bg);
}

.complete {
  flex: 1;
  padding: calc(14px + var(--safe-top)) 14px calc(14px + var(--safe-bottom));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}


.complete__icon {
  width: 72px;
  height: 72px;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  color: var(--c-green);
  background: var(--c-green-light);
  border-radius: 50%;
}

.complete__title {
  text-align: center;
  font-size: clamp(22px, 5.5vw, 28px);
  font-weight: 800;
  color: var(--c-text);
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}

.complete__text {
  text-align: center;
  font-size: 15px;
  color: var(--c-text-secondary);
}

.complete__date {
  text-align: center;
  font-size: 14px;
  color: var(--c-text-muted);
  margin-top: var(--space-xs);
}

/* Score Box */
.complete__score {
  margin: 14px auto;
  padding: 14px;
  background: var(--c-surface-solid);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.score__header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.score__icon {
  font-size: 24px;
}

.score__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.score__value {
  font-size: clamp(30px, 7vw, 44px);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}

.score__description {
  font-size: 15px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  display: inline-block;
}

/* Tier Colors */
.complete__score.tier-a .score__value {
  font-size: clamp(30px, 7vw, 44px);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}
.complete__score.tier-a .score__description {
  background: var(--c-green-light);
  color: #1d7a34;
}

.complete__score.tier-b .score__value {
  font-size: clamp(30px, 7vw, 44px);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}
.complete__score.tier-b .score__description {
  background: rgba(255, 149, 0, 0.12);
  color: #b36800;
}

.complete__score.tier-c .score__value {
  font-size: clamp(30px, 7vw, 44px);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}
.complete__score.tier-c .score__description {
  background: var(--c-red-light);
  color: #c41c13;
}

/* Action Buttons */
.complete__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 14px;
  border-radius: var(--radius-md);
  color: white;
  transition:
    transform var(--trans-fast),
    box-shadow var(--trans-fast);
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.action-btn:active {
  transform: scale(0.98);
}

.action-btn__icon {
  font-size: 24px;
  width: 32px;
  text-align: center;
}

.action-btn__icon-svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.action-btn__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.action-btn__label {
  font-size: 16px;
  font-weight: 600;
}

.action-btn__sub {
  font-size: 13px;
  opacity: 0.85;
}

.action-btn--telegram {
  background: linear-gradient(135deg, #0088cc 0%, #229ed9 100%);
}

.action-btn--email {
  background: var(--grad-green);
}

/* Restart Button */
.complete__restart {
  display: block;
  width: 100%;
  margin-top: var(--space-xl);
  padding: var(--space-md);
  background: transparent;
  color: var(--c-text-secondary);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: background var(--trans-fast), color var(--trans-fast);
}

.complete__restart:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--c-text);
}

/* ─────────────────────────────────────────────────────────────────────────────
   Toast Notification
   ───────────────────────────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%) translateY(100px);
  padding: 14px 24px;
  background: rgba(28, 28, 30, 0.92);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  color: white;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-full);
  opacity: 0;
  pointer-events: none;
  transition: 
    transform var(--trans-spring),
    opacity var(--trans-normal);
  z-index: 1000;
}

.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─────────────────────────────────────────────────────────────────────────────
   Responsive
   ───────────────────────────────────────────────────────────────────────────── */
@media (max-height: 700px) {


  .needs__logo-img {
    width: 56px;
    height: 56px;
  
  .needs__content{ padding: 16px; }
  .needs__title{ font-size: 18px; }
  .needs__subtitle{ font-size: 13px; }
  .need-card__icon{ width: 38px; height: 38px; font-size: 20px; }
  .need-card__title{ font-size: 15px; 
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
  .need-card__desc{ font-size: 12px; }
  .fab{ width: 54px; height: 54px; bottom: calc(14px + var(--safe-bottom)); right: 18px; }

}

  
  .needs__brand {
    font-size: 26px;
  }
  
  .needs__title {
    font-size: 20px;
  }
.need-card {
    padding: 12px;
  }
  
  .need-card__icon {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }
  
  .q-card {
    padding: var(--space-md);
  }
  
  .q-card__title {
    font-size: 18px;
    margin-bottom: var(--space-md);
  }
  
  .fab {
    width: 54px;
    height: 54px;
    bottom: 20px;
    right: 20px;
  }
  .needs__time{ padding: 9px 12px; font-size: 14px; }
  .needs__time-icon{ font-size: 16px; }
}


@media (min-width: 481px) {
  .app-container {
    margin-top: 24px;
    margin-bottom: 24px;
    height: calc(100dvh - 48px);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
  }
  
  .fab {
    right: calc(50% - 240px + 28px);
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   Accessibility
   ───────────────────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .fab::before {
    display: none;
  }
}

.need-card:focus-visible,
.fab:focus-visible,
.btn:focus-visible,
.action-btn:focus-visible {
  outline: 3px solid var(--c-blue);
  outline-offset: 3px;
}

/* Selected Needs Chips (sticky) */
.q-needs{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap: 8px;
  padding-top: 10px;
}

.chip{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-full);
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(60,60,67,.12);
  color: var(--c-text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.1px;
}

.chip__icon{
  font-size: 14px;
  line-height: 1;
}

/* Completion ultra-compact for very small heights */
@media (max-height: 620px) {
  .complete {
  flex: 1;
  padding: calc(14px + var(--safe-top)) 14px calc(14px + var(--safe-bottom));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

  .complete__icon{ width: 60px; height: 60px; font-size: 30px; margin-bottom: 10px; }
  .complete__score{ margin: 10px auto; padding: 12px; }
  .score__value{ font-size: 34px; }
  .action-btn{ padding: 12px; }
  .action-btn__label{ font-size: 15px; }
  .action-btn__sub{ font-size: 12px; }
  .complete__restart{ margin-top: 14px; padding: 12px; }
}
