/* ═══════════════════════════════════════════════════════
   inline-styles.css
   Extracted inline styles that were violating CSP
═══════════════════════════════════════════════════════ */

/* ───────────────────────────────────────────────────────
   Responsive Design System
   ─────────────────────────────────────────────────────── */

/* Unified Breakpoint System */
:root {
  --mobile: 375px;      /* Mobile baseline */
  --tablet-sm: 480px;   /* Larger phones */
  --tablet: 768px;      /* Tablets */
  --desktop: 1024px;    /* Small desktop */
  --desktop-lg: 1280px; /* Large desktop */

  /* Responsive base font size */
  --base-font: 16px;

  /* Touch target minimum */
  --touch-min: 44px;
}

/* Fluid typography using clamp() */
html {
  font-size: clamp(14px, 2vw, 18px);
}

body {
  font-size: 1rem;
}

/* Toast system styles */
.pyng-toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.pyng-toast-item {
  background: var(--toast-success-bg);
  color: var(--toast-success-fg);
  padding: 0.625rem 1.125rem; /* 10px 18px */
  border-radius: 0.5rem; /* 8px */
  font-family: inherit;
  font-size: 0.8125rem; /* 13px */
  font-weight: var(--weight-medium);
  letter-spacing: 0.01em;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  pointer-events: auto;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
  max-width: min(360px, calc(100vw - 2rem)); /* Prevents 100vw overflow */
  display: flex;
  align-items: center;
  gap: 0.5rem; /* 8px */
}

.pyng-toast-item.success {
  background: var(--toast-success-bg);
  color: var(--toast-success-fg);
}

.pyng-toast-item.error {
  background: var(--toast-error-bg);
  color: var(--toast-error-fg);
}

.pyng-toast-item.info {
  background: var(--toast-info-bg);
  color: var(--toast-info-fg);
}

.pyng-toast-item.warn {
  background: var(--toast-warning-bg);
  color: var(--toast-warning-fg);
}

.pyng-toast-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.pyng-toast-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
}

/* Notification badge styles */
.notif-badge-visible {
  display: flex !important;
}

.notif-badge-hidden {
  display: none !important;
}

/* ───────────────────────────────────────────────────────
   Display & Layout Utilities
   ─────────────────────────────────────────────────────── */

.hidden { display: none !important; }
.inline-block { display: inline-block; }

/* Flexbox layouts */
.flex-row { display: flex; align-items: center; }
.flex-col { display: flex; flex-direction: column; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-start { display: flex; align-items: flex-start; }
.flex-end { display: flex; align-items: flex-end; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }

/* Grid layouts */
.grid-4-col { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* Gaps */
.gap-2 { gap: 8px; }
.gap-4 { gap: 12px; }
.gap-6 { gap: 16px; }
.gap-8 { gap: 24px; }

/* ───────────────────────────────────────────────────────
   Spacing Utilities
   ─────────────────────────────────────────────────────── */

/* Margins */
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 6px; }
.mb-3 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 12px; }
.mb-5 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 20px; }
.mb-7 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 28px; }

.mt-4 { margin-top: 12px; }
.mt-5 { margin-top: 16px; }
.mt-8 { margin-top: 28px; }

/* Padding */
.p-2 { padding: 8px; }
.p-4 { padding: 12px; }
.p-6 { padding: 16px 18px; }

/* ───────────────────────────────────────────────────────
   Typography Utilities (rem-based for responsiveness)
   ─────────────────────────────────────────────────────── */

.text-9px { font-size: 0.5625rem; /* 9px */ }
.text-10px { font-size: 0.625rem; /* 10px */ }
.text-12px { font-size: 0.75rem; /* 12px */ }
.text-13px { font-size: 0.8125rem; /* 13px */ }
.text-14px { font-size: 0.875rem; /* 14px */ }

.font-500 { font-weight: var(--weight-medium); }
.font-600 { font-weight: var(--weight-semibold); }

.text-ink { color: var(--ink); }
.text-ink-2 { color: var(--ink-2); }
.text-ink-3 { color: var(--ink-3); }
.text-gold { color: var(--gold-dark); }
.text-success { color: var(--success); }
.text-error { color: var(--error); }
.text-paper { color: var(--paper); }

.uppercase { text-transform: uppercase; letter-spacing: 0.04em; }
.text-center { text-align: center; }

/* ───────────────────────────────────────────────────────
   Section & Container Styles
   ─────────────────────────────────────────────────────── */

.section-header {
  font-size: 0.8125rem; /* 13px */
  font-weight: var(--weight-semibold);
  color: var(--ink-2);
  margin-bottom: 0.75rem; /* 12px */
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.section-box {
  margin-bottom: 1.75rem; /* 28px */
}

.section-box-top {
  margin-top: 1.75rem; /* 28px */
  margin-bottom: 1rem; /* 16px */
}

/* ───────────────────────────────────────────────────────
   Form Elements
   ─────────────────────────────────────────────────────── */

/* .form-field-input-flex — canonical in theme.css */
/* Horizontal form group — for multi-column layouts (landing page, settings).
   Detail page vertical stacks use .form-group from theme.css. */
.form-group-h {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.form-error-text {
  color: #c0392b;
  font-size: var(--text-base);
  margin-top: 4px;
  display: none;
}

.form-error-text.visible {
  display: block;
}

.form-info-text {
  font-size: var(--text-sm);
  color: var(--ink-3);
}

.form-info-text-small {
  font-size: var(--text-base);
  color: var(--ink-3);
  margin-bottom: 14px;
}

/* ───────────────────────────────────────────────────────
   Card & Surface Styles
   ─────────────────────────────────────────────────────── */

.card-default {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 32px;
  margin: 40px 0;
  text-align: center;
}

.card-warm {
  background: #fef9f3;
  border: 1px solid #d4cdbf;
  border-radius: 12px;
  padding: 32px;
  margin: 40px 0;
}

.card-gold-bg {
  background: rgba(184, 154, 106, 0.1);
  border: 1px solid rgba(184, 154, 106, 0.2);
  border-radius: 6px;
  padding: 8px;
  font-size: 10px;
}

.card-gold-bg-sm {
  background: rgba(184, 154, 106, 0.1);
  border: 1px solid rgba(184, 154, 106, 0.2);
  border-radius: 6px;
  padding: 8px;
}

.card-surface {
  background: var(--paper-2);
  border-radius: 4px;
  padding: 8px;
  font-size: 9px;
  color: var(--ink-2);
  line-height: 1.4;
}

.card-surface-md {
  background: var(--paper-2);
  padding: 6px;
  border-radius: 4px;
  font-size: 10px;
  color: var(--ink-2);
}

.card-surface-lg {
  background: var(--paper-2);
  padding: 6px;
  border-radius: 4px;
  font-size: var(--text-sm);
}

.card-box {
  background: #f5f3ee;
  border: 1px solid #e8e4d8;
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 20px;
}

.card-white {
  background: #fff;
  border-radius: 0.75rem; /* 12px */
  width: 30rem; /* 480px - responsive */
  max-width: calc(100vw - 2rem); /* Prevents overflow, leaves safe margin */
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 64px rgba(14, 14, 12, 0.22);
  animation: custModalIn 0.2s cubic-bezier(0.22, 0.68, 0, 1.15);
}

/* ───────────────────────────────────────────────────────
   Border & Divider Styles
   ─────────────────────────────────────────────────────── */

.border-bottom { border-bottom: 1px solid var(--border-solid); }
.border-bottom-2 { border-bottom: 2px solid var(--border-solid); }
.border-top { border-top: 1px solid var(--border); }

/* ───────────────────────────────────────────────────────
   Button & Interactive Styles
   ─────────────────────────────────────────────────────── */

.btn-close {
  background: none;
  border: none;
  color: var(--ink-3);
  cursor: pointer;
  font-size: var(--text-base);
  padding: 8px;
  margin: -8px;
  font-weight: var(--weight-semibold);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s;
}

.btn-close:hover {
  color: var(--ink);
}

.cursor-pointer { cursor: pointer; }
.cursor-default { cursor: default; }

/* ───────────────────────────────────────────────────────
   Color Social Media Styles
   ─────────────────────────────────────────────────────── */

.color-linkedin { color: #0a66c2; }
.color-facebook { color: #1877f2; }
.color-instagram { color: #e4405f; }
.color-wechat { color: #07c160; }
.color-black { color: #000000; }
.color-light-gray { color: #ccc; }

/* ───────────────────────────────────────────────────────
   Link Styles
   ─────────────────────────────────────────────────────── */

.link-gold {
  color: var(--gold-dark);
  text-decoration: none;
  font-weight: var(--weight-medium);
}

.link-gold:hover {
  color: var(--gold-hover);
}

/* ───────────────────────────────────────────────────────
   Admin Dashboard Specific
   ─────────────────────────────────────────────────────── */

.admin-header {
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-timestamp {
  font-size: var(--text-sm);
  color: var(--ink-3);
}

.admin-label {
  font-size: var(--text-base);
  color: var(--ink-3);
  margin-bottom: 14px;
}

.admin-label-small {
  font-size: var(--text-base);
  color: var(--ink-3);
}

/* ───────────────────────────────────────────────────────
   Status & Feedback Styles
   ─────────────────────────────────────────────────────── */

.status-success {
  color: var(--success);
  font-weight: var(--weight-semibold);
  font-size: 10px;
  margin-bottom: 4px;
}

.status-success-md {
  color: var(--success);
  font-weight: var(--weight-semibold);
  margin-bottom: 4px;
}

/* ───────────────────────────────────────────────────────
   Background Color Utilities
   ─────────────────────────────────────────────────────── */

.bg-paper { background: #f5f3ee; }
.bg-paper-light { background: #f5f3ee; color: #3a3936; margin-top: 8px; }

/* ───────────────────────────────────────────────────────
   Complex Layout Utilities
   ─────────────────────────────────────────────────────── */

.flex-start-wrap { display: flex; align-items: flex-start; gap: 20px; flex: 1; min-width: 0; flex-wrap: wrap; }
.flex-col-reverse { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; padding-top: 4px; }
.flex-col-gap-0 { display: flex; flex-direction: column; gap: 0; }
.flex-wrap-gap-2 { display: flex; flex-wrap: wrap; gap: 6px; min-height: 22px; }
.flex-gap-6-center { display: flex; gap: 20px; align-items: center; margin-bottom: 28px; }
.flex-gap-2-center { display: flex; gap: 6px; align-items: center; }
.flex-gap-2-wrap-center { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.grid-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.inline-flex-gap-2 { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; }
.inline-block-circle { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #b89a6a; flex-shrink: 0; }

.flex-basis-160 { flex: 0 0 160px; }
.flex-1-min-0 { flex: 1; min-width: 0; }

/* ───────────────────────────────────────────────────────
   Badge & Tag Styles
   ─────────────────────────────────────────────────────── */

.badge-hidden {
  display: none;
  height: 22px;
  padding: 0 9px;
  border-radius: 11px;
  background: #fdf4e7;
  color: #8a5200;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-decoration: none;
  align-items: center;
  gap: 5px;
}

.badge-hidden.visible {
  display: flex;
}

/* ───────────────────────────────────────────────────────
   Text & Display Utilities
   ─────────────────────────────────────────────────────── */

.hidden-text { display: none; font-size: var(--text-xs); color: var(--ink-3); }
.hidden-margin { display: none; margin-bottom: 14px; }
.hidden-margin-top { display: none; margin-top: 10px; }

/* ───────────────────────────────────────────────────────
   Width & Min-width Utilities
   ─────────────────────────────────────────────────────── */

.w-full { width: 100%; }
.w-18 { width: 72px; }
.min-w-0 { min-width: 0; }
.max-w-sm { max-width: 320px; }

/* ───────────────────────────────────────────────────────
   Button & CTA Styles
   ─────────────────────────────────────────────────────── */


.btn-action {
  padding: 12px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-action-hidden {
  display: none;
  padding: 12px 20px 16px;
  display: none;
  flex-direction: column;
  gap: 10px;
}

/* ───────────────────────────────────────────────────────
   Size Utilities
   ─────────────────────────────────────────────────────── */

.h-2 { height: 8px; }
.size-8 { width: 32px; height: 32px; }

/* ───────────────────────────────────────────────────────
   Padding Utilities
   ─────────────────────────────────────────────────────── */

.px-5 { padding-left: 20px; padding-right: 20px; }
.py-3 { padding-top: 12px; padding-bottom: 12px; }
.pt-5 { padding-top: 20px; }
.pb-5 { padding-bottom: 20px; }
.pb-1 { padding-bottom: 2px; }

/* ───────────────────────────────────────────────────────
   Rounding Utilities
   ─────────────────────────────────────────────────────── */

.rounded-lg { border-radius: 12px; }

/* ───────────────────────────────────────────────────────
   Text Alignment & Display
   ─────────────────────────────────────────────────────── */

.justify-center { justify-content: center; }
.align-middle { vertical-align: middle; }

/* ───────────────────────────────────────────────────────
   Text Typography Sizes
   ─────────────────────────────────────────────────────── */

.text-11px { font-size: var(--text-xs); }
.leading-relaxed { line-height: 1.5; }
.leading-snug { line-height: 1.55; }

/* ───────────────────────────────────────────────────────
   Background & Color Utilities
   ─────────────────────────────────────────────────────── */

.bg-gold-dim { background: rgba(184, 154, 106, 0.1); }
.bg-wechat { background: #25d366; }
.bg-gray-200 { background: #eee; color: #333; }
.rounded-full { border-radius: 50%; }

/* ───────────────────────────────────────────────────────
   Display Block/Inline
   ─────────────────────────────────────────────────────── */

.block { display: block; }

/* ───────────────────────────────────────────────────────
   Notification & Toast Component Styles
   ─────────────────────────────────────────────────────── */

.notification-toast {
  display: none;
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  background: rgba(184, 154, 106, 0.92);
  backdrop-filter: blur(6px);
  border-radius: 20px;
  padding: 7px 16px;
  display: none;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.notification-toast.visible {
  display: flex;
}

/* ───────────────────────────────────────────────────────
   Animation & Transform Utilities
   ─────────────────────────────────────────────────────── */

.rotate-toggle {
  display: none;
  transform: rotate(0deg);
  transition: transform 0.3s;
}

.rotate-toggle.active {
  transform: rotate(180deg);
  display: block;
}

/* ───────────────────────────────────────────────────────
   Input Field Sizes
   ─────────────────────────────────────────────────────── */

/* .form-field-input-sm — canonical in theme.css */
/* ───────────────────────────────────────────────────────
   Text Truncation Utilities
   ─────────────────────────────────────────────────────── */

.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ───────────────────────────────────────────────────────
   Margin Utilities (Additional)
   ─────────────────────────────────────────────────────── */

.ml-1 { margin-left: 4px; }
.mr-1 { margin-right: 6px; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 4px; }

/* ───────────────────────────────────────────────────────
   Width Fractions (Skeleton Loaders)
   ─────────────────────────────────────────────────────── */

.w-1\/5 { width: 20%; }
.w-2\/5 { width: 40%; }
.w-3\/10 { width: 30%; }
.w-4\/5 { width: 80%; }

/* ───────────────────────────────────────────────────────
   Height Skeleton Utilities
   ─────────────────────────────────────────────────────── */

.h-3 { height: 12px; }
.h-4 { height: 14px; }
.h-8 { height: 32px; }
.h-24 { height: 90px; }

/* ───────────────────────────────────────────────────────
   Padding Fractions
   ─────────────────────────────────────────────────────── */

.py-1 { padding-top: 3px; padding-bottom: 3px; }

/* ───────────────────────────────────────────────────────
   Text Decoration
   ─────────────────────────────────────────────────────── */

.underline { text-decoration: underline; }

/* ───────────────────────────────────────────────────────
   Display Flex Utilities
   ─────────────────────────────────────────────────────── */

.flex-start-gap { display: flex; align-items: flex-start; gap: 12px; padding: 4px 0 16px; }

/* ───────────────────────────────────────────────────────
   Badge Styles
   ─────────────────────────────────────────────────────── */

.badge-pill {
  padding: 2px 8px;
  border-radius: 10px;
  display: none;
}

.badge-pill.visible {
  display: inline-block;
}

/* ───────────────────────────────────────────────────────
   Additional Utilities (from Page-Specific Styles)
   ─────────────────────────────────────────────────────── */

.font-cormorant { font-family: 'Cormorant Garamond', serif; }
.text-20 { font-size: 20px; }
.text-22 { font-size: 22px; }
.text-36 { font-size: 36px; }
.text-14px { font-size: var(--text-md); }

.container { max-width: 1200px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-6 { padding-left: 24px; padding-right: 24px; }
.pb-20 { padding-bottom: 80px; }

.w-640 { max-width: 640px; width: 100%; }
.relative { position: relative; }
.z-1 { z-index: 1; }

.text-gray-600 { color: #666; }
.m-0 { margin: 0; }

.leading-relaxed { line-height: 1.7; }

.mb-10 { margin-bottom: 40px; }
.mb-8 { margin-bottom: 32px; }
.mb-6 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 16px; }
.mb-2 { margin-bottom: 8px; }

.mt-6 { margin-top: 24px; }

.p-3 { padding: 12px; }

.border-collapse { border-collapse: collapse; }

/* ───────────────────────────────────────────────────────
   Card & Modal Styles (Specific Variants)
   ─────────────────────────────────────────────────────── */

.card-box-sm {
  background: #f5f3ee;
  border: 1px solid #e8e4d8;
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 20px;
}

.card-box-light {
  background: #f5f3ee;
  color: #3a3936;
  margin-top: 8px;
}

.modal-panel {
  background: #fff;
  border-radius: 0.75rem; /* 12px */
  width: 30rem; /* 480px - responsive */
  max-width: calc(100vw - 2rem); /* Prevents overflow, leaves safe margin */
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 64px rgba(14, 14, 12, 0.22);
  animation: custModalIn 0.2s cubic-bezier(0.22, 0.68, 0, 1.15);
}

.modal-overlay-bg {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(14, 14, 12, 0.55);
  z-index: 400;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay-bg.visible {
  display: flex;
}

/* .btn-icon-only — canonical in app.css */
/* ───────────────────────────────────────────────────────
   Grid Layouts (Specific Variations)
   ─────────────────────────────────────────────────────── */

.grid-2-col-gap-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ───────────────────────────────────────────────────────
   Flex Wrap Variations
   ─────────────────────────────────────────────────────── */

.flex-wrap-gap-2-end { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.flex-end-small { display: flex; align-items: center; gap: 8px; font-size: var(--text-base); color: #3a3936; }
.flex-col-gap-2-mb { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.flex-wrap-gap-1-mb { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.flex-wrap-gap-2-mb-2 { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.flex-gap-2-mb-4 { display: flex; gap: 8px; align-items: center; margin-bottom: 16px; }
.flex-gap-2-mb-7 { display: flex; gap: 8px; margin-bottom: 28px; }
.flex-between-mb-2 { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }

/* ───────────────────────────────────────────────────────
   Text & Color Combinations
   ─────────────────────────────────────────────────────── */

.text-gold-link { font-size: var(--text-sm); color: var(--gold-dark); text-decoration: none; font-weight: var(--weight-semibold); display: inline-flex; align-items: center; gap: 4px; }
.text-555 { font-size: var(--text-base); color: #555; margin-bottom: 12px; line-height: 1.5; }
.text-error-hidden { font-size: var(--text-base); color: var(--hot); display: none; margin-top: 8px; }
.text-13px-ink-2-mb-2 { font-size: var(--text-base); color: var(--ink-2); margin-bottom: 10px; }
.text-13px-ink-3-mb { font-size: var(--text-base); color: var(--ink-3); margin-bottom: 12px; }
.text-13px-bold-mb-1 { font-size: var(--text-base); font-weight: var(--weight-semibold); color: #0e0e0c; margin-bottom: 12px; }
.text-13px-bold-flex { font-size: var(--text-base); font-weight: var(--weight-semibold); color: #222; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.text-15px-bold { font-size: 15px; font-weight: var(--weight-semibold); margin-bottom: 6px; color: var(--ink); }
.text-15px-medium { font-size: 15px; font-weight: var(--weight-medium); }
.text-36px-mb { font-size: 36px; margin-bottom: 12px; }

/* ───────────────────────────────────────────────────────
   Typography Utilities
   ─────────────────────────────────────────────────────── */

.uppercase-sm { font-size: 10px; font-weight: var(--weight-semibold); letter-spacing: 0.12em; text-transform: uppercase; color: #b89a6a; margin-bottom: 6px; }
.text-11px-gold { font-size: var(--text-xs); color: #7a7975; border-top: 1px solid #e8e4d8; padding-top: 10px; }
.text-11px-gray { font-size: var(--text-xs); color: #999; margin-bottom: 12px; }
.text-11px-link { font-size: var(--text-xs); text-decoration: none; }
.font-normal { font-weight: var(--weight-regular); font-size: 10px; text-transform: none; letter-spacing: 0; }

/* ───────────────────────────────────────────────────────
   Inline & Display Utilities
   ─────────────────────────────────────────────────────── */

.inline-middle { display: inline; vertical-align: middle; margin-right: 4px; }

/* ───────────────────────────────────────────────────────
   Skeleton & Placeholder Styles
   ─────────────────────────────────────────────────────── */

.skeleton-box { background: #eee; border-radius: 12px; }
.skeleton-h-30 { height: 110px; border-radius: 12px; margin-bottom: 14px; }
.skeleton-h-11-w-14 { height: 11px; width: 14%; margin-bottom: 14px; }
.skeleton-h-11-w-16 { height: 11px; width: 16%; margin-bottom: 14px; }
.skeleton-h-11-w-22 { height: 11px; width: 22%; margin-bottom: 16px; }
.skeleton-h-11-w-60-mb-10 { height: 11px; width: 60%; margin-bottom: 10px; }
.skeleton-h-11-w-70 { height: 11px; width: 70%; margin-bottom: 8px; }
.skeleton-h-10-w-60 { height: 10px; width: 60%; }
.skeleton-h-32 { height: 120px; }
.skeleton-h-32-rounded { height: 120px; border-radius: 12px; }
.skeleton-h-32-rounded-mb { height: 120px; border-radius: 12px; margin-bottom: 14px; }

/* ───────────────────────────────────────────────────────
   Error & Alert Messages
   ─────────────────────────────────────────────────────── */

.error-message-hidden { display: none; margin-top: 10px; font-size: var(--text-base); color: var(--ink-2); text-align: center; }
.error-message-hidden.visible { display: block; }

.warning-banner { display: none; margin: 18px 0 4px; background: linear-gradient(135deg, #fff5f5, #fff0f7); border: 1px solid rgba(184, 0, 255, 0.15); border-radius: 12px; padding: 16px; text-align: left; }
.warning-banner.visible { display: block; }

/* ───────────────────────────────────────────────────────
   Flex Utilities (Additional)
   ─────────────────────────────────────────────────────── */

.flex-1-no-margin { flex: 1; margin-bottom: 0; }

/* ───────────────────────────────────────────────────────
   Empty State & Placeholder
   ─────────────────────────────────────────────────────── */

.empty-state-hidden { display: none; text-align: center; padding: 24px 0; }
.empty-state-hidden.visible { display: block; }

/* ───────────────────────────────────────────────────────
   Final Catch-All Utilities
   ─────────────────────────────────────────────────────── */

.text-12px-gray { margin-top: 12px; font-size: var(--text-sm); color: #999; }
.wrapper-md { margin-top: 32px; max-width: 500px; margin-left: auto; margin-right: auto; }
.wrapper-lg { margin-top: 32px; max-width: 600px; margin-left: auto; margin-right: auto; }
.content-full { max-width: 100%; margin: 40px 0; }
.card-prose { max-width: 500px; margin: 0 auto; padding: 24px; background: #f9f9f9; border: 1px solid #e0e0e0; border-radius: 12px; }
.p-3-base { padding: 12px; }

/* Special Cormorant Font Classes */
.heading-cormorant { font-family: 'Cormorant Garamond', serif; }
.heading-lg { font-family: 'Cormorant Garamond', serif; font-size: 36px; }
.heading-md { font-family: 'Cormorant Garamond', serif; font-size: 32px; }

/* Final Margin & Padding Utilities */
.mr-1 { margin-right: 4px; }
.mr-2 { margin-right: 5px; }
.mr-auto { margin-right: auto; }
.mt-2 { margin-top: 6px; }
.mt-3 { margin-top: 10px; }
.mt-3-pt-2 { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; }
.pt-2 { padding-top: 10px; }
.p-1-2 { padding: 6px 12px; }
.p-1-2-opacity { padding: 6px 12px; opacity: 0.6; }

/* Layout & Display Final Utilities */
.flex-wrap-gap-1-mt { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px; }
.flex-wrap-gap-1-mt-hidden { margin-top: 6px; display: none; }
.vertical-align-up { vertical-align: -2px; margin-right: 4px; }
.w-72-circle { width: 72px; height: 72px; border-radius: 50%; flex-shrink: 0; }

/* .form-field-input-area — canonical in theme.css */
/* Last catch - text styles */
.text-11px-bold-block { font-size: var(--text-xs); color: var(--ink-3); display: block; margin-bottom: 4px; font-weight: var(--weight-semibold); }
.text-13px-ink-2-only { font-size: var(--text-base); color: var(--ink-2); }
.text-13px-ink-3-only { font-size: var(--text-base); color: var(--ink-3); }
.text-center-mb-2 { text-align: center; padding: 12px 0 16px; }
.link-inherit { text-decoration: none; color: inherit; }

/* Avatar/Circle Variants */
.avatar-22 { height: 22px; width: 60px; border-radius: 99px; }
.avatar-22-lg { height: 22px; width: 70px; border-radius: 99px; }
.avatar-30-sm { height: 30px; width: 50px; border-radius: 20px; }
.avatar-30-md { height: 30px; width: 70px; border-radius: 20px; }
.avatar-30-lg { height: 30px; width: 75px; border-radius: 20px; }
.avatar-30-xl { height: 30px; width: 80px; border-radius: 20px; }
.avatar-16 { width: 16px; height: 16px; border-radius: 50%; background: #edf7f2; color: #2d6a4f; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.avatar-30 { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; }
.avatar-48 { width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; }

/* Skeleton - specific sizes */
.skeleton-h-12-w-55 { height: 12px; width: 55%; }
.skeleton-h-12-w-60-mb { height: 12px; width: 60%; margin-bottom: 6px; }
.skeleton-h-13-w-30 { height: 13px; width: 30%; margin-bottom: 8px; }
.skeleton-h-13-w-40-mb { height: 13px; width: 40%; margin-bottom: 6px; }
.skeleton-h-14-w-65 { height: 14px; width: 65%; margin-bottom: 36px; }
.skeleton-h-14-w-80-mb { height: 14px; width: 80%; margin-bottom: 6px; }
.skeleton-h-14-w-80-mb-sm { height: 14px; width: 80%; margin-bottom: 4px; }
.skeleton-h-22-w-55 { height: 22px; width: 55%; margin-bottom: 12px; }
.skeleton-h-28-w-50 { height: 28px; width: 50%; }
.skeleton-h-36-w-50 { height: 36px; width: 50%; }
.skeleton-h-38 { height: 38px; }
.skeleton-h-38-w-45 { height: 38px; width: 45%; margin-bottom: 12px; }
.skeleton-h-42 { height: 42px; width: 100%; margin-bottom: 20px; }
.skeleton-h-46 { height: 46px; width: 100%; }
.skeleton-h-60 { height: 60px; }
.skeleton-h-80 { height: 80px; }
.skeleton-h-90 { height: 90px; width: 100%; margin-bottom: 24px; }
.skeleton-h-160 { height: 160px; border-radius: 12px; margin-bottom: 14px; }

/* Specific Layout Patterns */
.form-btn-select { height: 40px; padding: 0 10px; border: 1px solid var(--border-md); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); font-size: var(--text-base); cursor: pointer; flex-shrink: 0; }
.sticky-header { position: absolute; top: 0; left: 0; right: 0; padding: 12px 16px; border-bottom: 1px solid rgba(14, 14, 12, 0.08); display: flex; align-items: center; justify-content: space-between; background: var(--surface); z-index: 10; height: 44px; box-sizing: border-box; }
.close-btn-absolute { position: absolute; top: 16px; left: 24px; background: none; border: none; color: var(--muted); cursor: pointer; font-size: var(--text-md); padding: 8px; margin: -8px; font-weight: var(--weight-semibold); display: flex; align-items: center; gap: 6px; transition: color 0.15s; }
.wrapper-content { padding: 16px 24px 0; max-width: 420px; width: 100%; margin: 0 auto; }
.max-w-560 { max-width: 560px; }
.overflow-auto { overflow-x: auto; }

/* Flex layouts - final */
.flex-col-gap-2-w-100 { width: 100%; display: flex; flex-direction: column; gap: 10px; font-size: var(--text-xs); }
.flex-col-gap-2-w-100-ink-2 { width: 100%; font-size: var(--text-xs); color: var(--ink-2); display: flex; flex-direction: column; gap: 8px; }
.flex-col-w-100-ink-2 { width: 100%; font-size: var(--text-xs); color: var(--ink-2); }
.flex-col-center { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; }

/* Margins - final catch */
.mb-2-ink-3 { margin-bottom: 10px; color: var(--ink-3); }
.mb-3-only { margin-bottom: 12px; }
.mb-3-sm { margin-bottom: 14px; }
.mt-3 { margin-top: 12px; }
.mt-3-sm { margin-top: 14px; }
.mt-4 { margin-top: 16px; }
.mt-4-sm { margin-top: 18px; }
.mt-6 { margin-top: 24px; }
.m-0-mb-2-text { margin: 0 0 10px; font-size: var(--text-base); color: var(--ink); }

/* Additional text styles */
.text-13-ink-2 { font-size: var(--text-base); color: var(--ink-2); }
.text-13-ink-3 { font-size: var(--text-base); color: var(--ink-3); }
.text-11-block-ink-3 { font-size: var(--text-xs); color: var(--ink-3); display: block; margin-bottom: 4px; font-weight: var(--weight-semibold); }
.text-decoration-none { text-decoration: none; }
.text-color-inherit { color: inherit; }
.text-center-pad { text-align: center; padding: 12px 0 16px; }
.text-align-left-m14 { margin: 14px 0 0; text-align: left; }

/* Utility classes - display & visibility */
.display-none { display: none; }
.display-flex-end { display: flex; align-items: flex-end; }

/* Additional overflow utilities */
.overflow-x-auto { overflow-x: auto; }

/* Badge/indicator styles */
.badge-success-16 { width: 16px; height: 16px; border-radius: 50%; background: #edf7f2; color: #2d6a4f; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* Touch Target Sizing — 44×44px minimum hit area */
.touch-target {
  min-height: var(--touch-min);
  min-width: var(--touch-min);
  display: flex;
  align-items: center;
  justify-content: center;
}

.touch-target-sm {
  min-height: var(--touch-min);
  padding: 0.75rem 0.5rem; /* 12px 8px */
} /* For icon buttons */

.touch-spacing { gap: 0.5rem; } /* Minimum spacing between touch targets */


/* ───────────────────────────────────────────────────────
   Mobile-First Responsive Utilities
   ─────────────────────────────────────────────────────── */

/* Mobile: 375px and up (default styles above) */

/* Tablet Small: 480px */
@media (min-width: 480px) {
  .px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .container { padding: 0 1rem; }
}

/* Tablet: 768px */
@media (min-width: 768px) {
  .grid-4-col { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
  .grid-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .px-6 { padding-left: 2rem; padding-right: 2rem; }

  .text-20 { font-size: 1.25rem; }
  .text-22 { font-size: 1.375rem; }
  .text-36 { font-size: 2.25rem; }
}

/* Desktop: 1024px */
@media (min-width: 1024px) {
  .container { max-width: 75rem; }
}

/* Loading & Feedback States */
.loading { opacity: 0.6; pointer-events: none; }
.loading::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 8px;
  border: 2px solid rgba(14,14,12,0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Skeleton Loaders */
.skeleton {
  background: linear-gradient(90deg, var(--paper-2) 25%, var(--paper) 50%, var(--paper-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Error & Success States */
.input-error {
  border-color: var(--error) !important;
  background-color: var(--error-bg);
}

.input-success {
  border-color: var(--success) !important;
  background-color: var(--success-bg);
}

.error-message {
  color: var(--error);
  font-size: var(--text-sm);
  margin-top: 4px;
  display: block;
}

.success-message {
  color: var(--success);
  font-size: var(--text-sm);
  margin-top: 4px;
  display: block;
}

/* Empty States */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--ink-3);
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.4;
}

.empty-state-title {
  font-size: 18px;
  font-weight: var(--weight-semibold);
  color: var(--ink-2);
  margin-bottom: 8px;
}

.empty-state-text {
  font-size: var(--text-md);
  color: var(--ink-3);
  margin-bottom: 24px;
}

.empty-state-action {
  display: inline-block;
  padding: 10px 20px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
  text-decoration: none;
  font-weight: var(--weight-medium);
}
.m-0-text-left { margin: 0.875rem 0 0; text-align: left; }

/* ───────────────────────────────────────────────────────
   Extended Responsive Media Queries
   ─────────────────────────────────────────────────────── */

/* Prevent layout shift on mobile - normalize padding */
@media (max-width: 479px) {
  .px-6 { padding-left: 1rem; padding-right: 1rem; }

  /* Scale down large text on small mobile */
  .text-36 { font-size: 1.5rem; }
  .text-22 { font-size: 1.125rem; }
  .text-20 { font-size: 1rem; }

  /* Responsive card sizing */
  .card-white,
  .modal-panel {
    width: 100%;
    border-radius: 0.5rem;
  }

  /* Responsive button stacking */
  .form-group-h {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
}

/* Tablet adjustments */
@media (min-width: 480px) and (max-width: 767px) {
  .px-6 { padding-left: 1.25rem; padding-right: 1.25rem; }

  .card-white,
  .modal-panel {
    width: calc(100vw - 2rem);
  }
}

/* Desktop enhancements */
@media (min-width: 1024px) {
  .container { padding: 0 2rem; }

  /* Restore full sizing on desktop */
  .card-white,
  .modal-panel {
    width: 30rem;
    max-width: none;
  }
}

/* Print styles */
@media print {
  .pyng-toast-container,
  .notification-toast,
  .modal-overlay-bg {
    display: none !important;
  }
}

/* Accessibility: Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .pyng-toast-item,
  .modal-overlay-bg,
  .notification-toast,
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Dark mode: Ensure light theme forced */
@media (prefers-color-scheme: dark) {
  /* Override any dark mode colors on landing page */
  body { background: #f5f3ee; color: #0e0e0c; }
}

/* Voice log styles moved to app.css */

/* ══════════════════════════════════════════════════════
   SHARED BADGES & PILLS — canonical definitions
   Page CSS files should not redefine these.
   Stage colours (qualified/won/lost etc.) stay in page files
   since they map to product-specific stage slugs.
═══════════════════════════════════════════════════════ */

/* Stage badge — base shell. Colour modifiers (.stage-qualified etc.) in page CSS */
.stage-badge {
  display: inline-flex; align-items: center; padding: 3px 10px;
  border-radius: 20px; font-size: var(--text-sm); font-weight: var(--weight-semibold);
  border: 1px solid transparent; cursor: pointer; user-select: none;
  white-space: nowrap; transition: opacity .15s;
}
.stage-badge:hover { opacity: .8; }

/* Confidence badge */
.conf-badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px;
  border-radius: 20px; font-size: var(--text-xs); font-weight: var(--weight-bold);
  letter-spacing: 0.04em; white-space: nowrap;
}
.conf-badge::before { content: '●'; font-size: 7px; }
.conf-high { background: var(--green-bg); color: var(--green); }
.conf-mid  { background: var(--gold-bg); color: var(--gold-dark); }
.conf-low  { background: var(--paper-2); color: var(--ink-3); }

/* Customer / contact type badge */
.type-badge {
  height: 22px; padding: 0 9px; border-radius: 11px;
  font-size: var(--text-sm); font-weight: var(--weight-semibold);
  display: inline-flex; align-items: center;
}
