* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #fafafa;
  color: #333;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  /* Prevent horizontal scroll on mobile */
  position: relative;
}

/* Login Modal */
.login-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.login-modal-content {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.login-modal-content h2 {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 24px 0;
  color: #111;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.login-field label {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.login-field input {
  padding: 12px 16px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s;
}

.login-field input:focus {
  border-color: #111;
}

.login-error {
  color: #d32f2f;
  font-size: 14px;
  min-height: 20px;
  display: none;
}

.login-error.show {
  display: block;
}

.login-submit-btn {
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 600;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.login-submit-btn:hover {
  background: #333;
}

.login-submit-btn:active {
  background: #000;
}

/* App content - hidden until logged in */
.app-content.hidden {
  display: none;
}

.app-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100vh;
  overflow: hidden;
}


.logout-btn {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  background: transparent;
  color: #666;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.logout-btn:hover {
  background: #f6f6f6;
  color: #111;
  border-color: #999;
}

header {
  padding: 16px 24px;
  border-bottom: 1px solid #e0e0e0;
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

header h1 {
  font-size: 18px;
  font-weight: 600;
  color: #111;
  word-wrap: break-word;
}

.container {
  display: flex;
  flex: 1;
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.main {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}

.input-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.input-row input {
  flex: 1;
  padding: 12px 16px;
  font-size: 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  outline: none;
  min-height: 44px;
  /* Ensure touch targets are at least 44x44px */
}

.input-row input:focus {
  border-color: #888;
}

.input-row button {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  min-height: 44px;
  /* Ensure touch targets are at least 44x44px */
}

/* Secondary style for less-primary actions (e.g., Regenerate) */
.input-row .btn-secondary {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  background: #fff;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  min-height: 44px;
  /* Ensure touch targets are at least 44x44px */
}

.input-row .btn-secondary:hover {
  background: #f6f6f6;
}

.input-row .btn-secondary.copied {
  background: #eef7ff;
  /* subtle feedback */
}

.input-row button:hover {
  background: #333;
}

.input-row button:disabled {
  background: #999;
  cursor: not-allowed;
}

.email-output {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  /* anchoring for inline onboarding card */
  min-height: 300px;
}

.email-output label {
  font-size: 13px;
  color: #666;
}

.email-output textarea {
  flex: 1;
  padding: 16px;
  font-size: 15px;
  line-height: 1.6;
  border: 1px solid #ddd;
  border-radius: 6px;
  resize: none;
  outline: none;
  font-family: inherit;
  -webkit-appearance: none;
  /* Remove iOS default styling */
}

.email-output textarea:focus {
  border-color: #888;
}

.email-draft-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 200px;
}

.email-draft-wrapper textarea {
  flex: 1;
  min-height: 0;
}

.loading-spinner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 100;
  border-radius: 6px;
  min-height: 100%;
}

.loading-spinner.hidden {
  display: none;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #e0e0e0;
  border-top-color: #111;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading-text {
  margin-top: 16px;
  font-size: 18px;
  font-weight: 500;
  color: #333;
}

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

.copy-btn {
  align-self: flex-start;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  min-height: 44px;
  /* Ensure touch targets are at least 44x44px */
}

.copy-btn:hover {
  background: #333;
}

.copy-btn.copied {
  background: #28a745;
}

.sidebar {
  width: 300px;
  background: #fff;
  border-left: 1px solid #e0e0e0;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Tablet and below */
@media (max-width: 900px) {
  .app-body {
    flex-direction: column;
    max-width: 100%;
  }

  .left-nav {
    display: none !important;
    /* Completely hide left nav on mobile - use bottom nav instead */
    width: 0 !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    flex: 0 0 0 !important;
  }

  .container {
    flex-direction: column;
    max-width: 100%;
    margin-left: 0;
    width: 100%;
  }

  .sidebar {
    width: 100%;
    border-left: none;
    border-top: 1px solid #e0e0e0;
    padding: 20px;
    max-height: 40vh;
    /* Limit sidebar height on tablet */
    overflow-y: auto;
  }

  .main {
    padding: 16px;
  }

  .input-row {
    gap: 8px;
  }

  .input-row input {
    flex: 1;
    min-width: 0;
  }

  .input-row button {
    flex-shrink: 0;
  }

  .settings-panel {
    padding: 20px 16px;
    max-width: 100%;
  }

  .settings-form {
    max-width: 100%;
  }

  .settings-footer {
    max-width: 100%;
  }
}

/* Mobile phones */
@media (max-width: 600px) {
  body {
    padding-bottom: 56px;
    /* Space for bottom nav - reduced */
  }

  .app-body {
    max-width: 100%;
  }

  .left-nav {
    display: none !important;
    /* Completely hide left nav on mobile */
    width: 0;
    min-width: 0;
    padding: 0;
    margin: 0;
    border: none;
    overflow: hidden;
  }

  .container {
    width: 100%;
    margin-left: 0;
  }

  header {
    padding: 14px 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
  }

  header h1 {
    font-size: 17px;
    line-height: 1.3;
    font-weight: 600;
  }

  .main {
    padding: 16px;
    gap: 16px;
  }

  .input-row {
    flex-direction: column;
    gap: 10px;
  }

  .input-row input {
    padding: 14px 16px;
    font-size: 16px;
    /* Prevent zoom on iOS - must be at least 16px */
    width: 100%;
    box-sizing: border-box;
    border-radius: 8px;
  }

  .input-row .btn-secondary {
    order: -1;
    /* Put regenerate button first */
    width: 100%;
    padding: 14px 20px;
    font-size: 15px;
    border-radius: 8px;
  }

  .input-row button {
    width: 100%;
    padding: 14px 20px;
    font-size: 15px;
    border-radius: 8px;
    font-weight: 600;
  }

  .email-output {
    gap: 10px;
  }

  .email-output label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
  }

  .email-output textarea {
    padding: 14px;
    font-size: 16px;
    /* Prevent zoom on iOS - must be at least 16px */
    width: 100%;
    box-sizing: border-box;
    border-radius: 8px;
    min-height: 200px;
  }

  .copy-btn {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border-radius: 8px;
    font-weight: 600;
  }

  .sidebar {
    display: none;
    /* Hide sidebar by default on mobile */
  }

  .sidebar.mobile-visible {
    display: flex;
    position: fixed;
    bottom: 64px;
    left: 0;
    right: 0;
    top: 60px;
    /* Start below header */
    background: #fff;
    border-top: 1px solid #e0e0e0;
    border-left: none;
    padding: 16px;
    gap: 20px;
    overflow-y: auto;
    z-index: 200;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.2s ease-out;
  }

  @keyframes slideUp {
    from {
      transform: translateY(100%);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }

  .panel h3 {
    font-size: 11px;
    margin-bottom: 12px;
  }

  .reco-item {
    font-size: 13px;
    padding: 10px 0 10px 20px;
    line-height: 1.5;
  }

  .settings-panel {
    padding: 16px;
    max-width: 100%;
  }

  .settings-header {
    margin-bottom: 8px;
  }

  .settings-header h2 {
    font-size: 20px;
    font-weight: 600;
  }

  .settings-form {
    max-width: 100%;
    gap: 20px;
  }

  .settings-footer {
    max-width: 100%;
    padding-top: 20px;
  }

  .setting-control textarea {
    font-size: 16px;
    /* Prevent zoom on iOS - must be at least 16px */
    width: 100%;
    box-sizing: border-box;
    border-radius: 8px;
  }

  .btn-primary,
  .btn-secondary {
    min-height: 44px;
    padding: 12px 16px;
    font-size: 15px;
    border-radius: 8px;
  }

  .onboarding-inline {
    max-width: 100%;
    padding: 12px;
    border-radius: 8px;
    margin-top: 0;
  }

  .onboarding-content .onboarding-head {
    font-size: 14px;
    font-weight: 600;
  }

  .onboarding-content .onboarding-body {
    font-size: 13px;
  }

  .data-toggle {
    min-height: 44px;
    padding: 12px 8px;
  }

  /* Bottom navigation bar for mobile - more subtle */
  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
    z-index: 150;
    box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease;
  }

  .mobile-nav.hidden {
    transform: translateY(100%);
  }

  .mobile-nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 4px;
    background: transparent;
    border: none;
    color: #888;
    cursor: pointer;
    min-height: 50px;
    font-size: 10px;
    font-weight: 500;
    transition: color 0.2s ease;
  }

  .mobile-nav-btn svg {
    width: 22px;
    height: 22px;
    opacity: 0.8;
    transition: opacity 0.2s ease;
  }

  .mobile-nav-btn.active {
    color: #111;
  }

  .mobile-nav-btn.active svg {
    opacity: 1;
  }

  .mobile-nav-btn:active {
    background: rgba(0, 0, 0, 0.04);
  }

  /* Hide sidebar toggle on mobile - use bottom nav instead */
  .sidebar-toggle {
    display: none;
  }
}

/* Very small phones */
@media (max-width: 400px) {
  header {
    padding: 12px 14px;
  }

  header h1 {
    font-size: 15px;
  }

  .main {
    padding: 14px;
  }

  .email-output label {
    font-size: 11px;
  }

  .data-list {
    font-size: 12px;
  }

  .mobile-nav-btn {
    font-size: 9px;
    padding: 5px 3px;
    min-height: 48px;
  }

  .mobile-nav-btn svg {
    width: 20px;
    height: 20px;
  }

  body {
    padding-bottom: 52px;
  }
}

/* Desktop - hide mobile nav */
@media (min-width: 601px) {
  .mobile-nav {
    display: none;
  }
}

/* App body to hold left nav and main container */
.app-body {
  display: flex;
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  overflow-x: hidden;
  /* Prevent horizontal scroll on mobile */
}

.left-nav {
  width: 88px;
  border-right: 1px solid #eee;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 6px;
  background: #fff;
}

.nav-btn {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #444;
  cursor: pointer;
  font-size: 18px;
  position: relative;
  min-width: 44px;
  min-height: 44px;
  /* Ensure touch targets are at least 44x44px */
}

.nav-btn:hover {
  background: #f6f6f6;
}

.nav-btn svg {
  display: block;
  color: inherit;
}

.nav-btn .nav-label {
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
}

.nav-btn.active {
  background: #f6f6f6;
}

/* Show labels on hover for discoverability */
.nav-btn:hover .nav-label {
  opacity: 1;
}

/* Settings panel styles */
.settings-panel {
  flex: 1;
  padding: 24px;
  border-right: 1px solid #eee;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.settings-panel.hidden {
  display: none;
}

/* When settings is active, make it the sole visible content area in the container
   so the settings panel appears full-width and other panels are hidden. */
.container.settings-view .sidebar,
.container.settings-view .main {
  display: none;
}

.container.settings-view #settingsPanel {
  display: flex;
  flex: 1;
  border-right: none;
}

.settings-header {
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}

.settings-header h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 540px;
  overflow-y: auto;
}

.settings-footer {
  padding-top: 16px;
  max-width: 540px;
}

.btn-primary {
  background: #111;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  min-height: 44px;
  /* Ensure touch targets are at least 44x44px */
}

.btn-primary:hover {
  background: #333;
}

.btn-primary.copied {
  background: #28a745;
}

.setting-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.setting-row label {
  font-weight: 600;
}

.setting-control {
  display: flex;
  align-items: center;
  gap: 12px;
}

.setting-control textarea {
  width: 100%;
  min-height: 92px;
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  resize: vertical;
  font-family: inherit;
}

.setting-control textarea#repSignature {
  min-height: 50px;
}

.helper {
  font-size: 12px;
  color: #666;
}

/* Toggle switch */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  display: none;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  border-radius: 34px;
  transition: 0.2s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.2s;
}

.switch input:checked+.slider {
  background-color: #111;
}

.switch input:checked+.slider:before {
  transform: translateX(20px);
}

.switch input:disabled+.slider {
  opacity: 0.6
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.checkbox-label:has(input:disabled) {
  cursor: not-allowed;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #000;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: 2px solid #333;
  border-radius: 3px;
  background: #fff;
  position: relative;
}

.checkbox-label input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.checkbox-label input[type="checkbox"]:checked::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #000;
  font-size: 14px;
  font-weight: bold;
  line-height: 1;
}

.checkbox-label span {
  font-weight: 600;
}

.permanent-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: default;
}

.permanent-checkmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: #000;
  font-size: 14px;
  font-weight: bold;
  line-height: 1;
}

.permanent-feature span:not(.permanent-checkmark) {
  font-weight: 600;
}

.panel h3 {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #999;
  margin-bottom: 12px;
}

.reco-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  /* make children full width */
  width: 100%;
  counter-reset: reco-counter;
}

/* Ensure the recommendations container itself is full width and left aligned */
#recommendations {
  width: 100%;
  text-align: left;
  padding: 0;
}

.reco-item {
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  text-align: left;
  /* text aligned left */
  font-style: normal;
  /* ensure not italic */
  width: 100%;
  padding: 6px 0 6px 20px;
  margin: 0;
  position: relative;
  counter-increment: reco-counter;
}

.reco-item::before {
  content: counter(reco-counter) ")";
  position: absolute;
  left: 0;
  color: #666;
  font-weight: 600;
}

.reco-item strong {
  color: #666;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}

.reco-text {
  margin-bottom: 4px;
}

.reco-match {
  font-size: 12px;
  color: #666;
  font-style: italic;
  margin-top: 6px;
  padding-left: 8px;
  border-left: 2px solid #ddd;
}

.reco-match-none {
  color: #999;
  font-style: normal;
}

/* Keep children left-aligned and non-italic */
#recommendations .reco-list,
#recommendations .reco-item {
  text-align: left;
  font-style: normal;
}

.data-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  padding: 10px 6px;
  /* larger click target */
  min-height: 44px;
  /* hit area height */
  border-radius: 6px;
}

.data-toggle:hover {
  background: #f6f6f6;
}

.data-toggle h3 {
  margin-bottom: 0;
}

.caret {
  font-size: 12px;
  color: #999;
  transition: transform 0.2s;
}

.data-toggle.open .caret {
  transform: rotate(180deg);
}

.data-content {
  display: none;
  margin-top: 12px;
}

.data-content.open {
  display: block;
}

.data-list {
  font-size: 13px;
  line-height: 1.6;
  color: #666;
}

.data-item {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.data-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.data-item .source {
  font-size: 12px;
  color: #999;
  margin-bottom: 2px;
}

.placeholder {
  color: #999;
  font-style: italic;
  text-align: center;
  padding: 40px;
}

/* Left-align recommendations and data placeholders for readability */
#recommendations.placeholder,
#dataList.placeholder {
  text-align: left;
}

.hidden {
  display: none;
}

.item-title {
  font-weight: 600;
  font-size: 14px;
  color: #222;
}

.item-body {
  margin-top: 8px;
  font-size: 13px;
  color: #444;
}

.item-rating {
  font-size: 12px;
  color: #666;
  margin-top: 6px;
}

.provenance {
  margin-top: 8px;
  font-size: 11px;
  color: #999;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}


/* Inline onboarding card (non-blocking) */
.main {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  position: relative;
  /* allow absolute positioning of inline card */
}

.onboarding-inline {
  position: absolute;
  /* place relative to the .email-output container: a few pixels left of its right edge */
  right: -12px;
  /* slightly above the top of the draft label/area */
  top: -10px;
  max-width: 360px;
  width: 340px;
  background: #ffe5e5;
  /* updated per design request */
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  z-index: 200;
  display: none;
}

.onboarding-inline.open {
  display: block;
}

/* Squiggly arrow from modal to email input */
.onboarding-arrow {
  position: absolute;
  right: 270px;
  top: -120px;
  width: 280px;
  height: auto;
  z-index: 199;
  display: none;
  pointer-events: none;
  object-fit: contain;
  transform: rotate(190deg);
  transform-origin: center;
}

.onboarding-inline.open ~ .onboarding-arrow,
.onboarding-arrow.open {
  display: block;
}

/* Responsive arrow positioning */
@media (max-width: 1100px) {
  .onboarding-arrow {
    right: 240px;
    top: -100px;
    width: 250px;
    transform: rotate(190deg);
  }
}

@media (max-width: 900px) {
  .onboarding-arrow {
    display: none !important;
  }
}

/* Make onboarding Close button show pointer and a subtle hover */
.onboarding-actions .btn-secondary {
  cursor: pointer;
}

.onboarding-actions .btn-secondary:hover {
  background: #f6f6f6;
}

/* Slightly adjust placement when the draft container is narrower */
@media (max-width: 1100px) {
  .onboarding-inline {
    right: -8px;
    top: -8px;
    width: 320px;
  }
}

/* For small screens, stack inline card below the input row (static flow)
   -- kept from previous responsive rule */
@media (max-width: 900px) {
  .onboarding-inline {
    position: static;
    width: 100%;
    margin-top: 12px;
    box-shadow: none;
    border-left: 3px solid #111;
  }
}

.onboarding-content .onboarding-head {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.onboarding-content .onboarding-body {
  font-size: 13px;
  color: #555;
  margin-bottom: 10px;
}

.onboarding-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-start;
}

/* small button variant */
.btn-sm {
  padding: 8px 10px;
  font-size: 13px;
  min-height: 36px;
  /* Smaller but still touch-friendly */
}

/* responsive: move inline card under input on small screens */
@media (max-width: 900px) {
  .onboarding-inline {
    position: static;
    width: 100%;
    margin-top: 12px;
    box-shadow: none;
    border-left: 3px solid #111;
  }
}

.hidden-item {
  opacity: 0.35;
}