/* =========================================================
   AI First Mindset® Resources Hub — Stylesheet
   Brand: #f3af00 yellow, #207796 blue, #dff3fa light-blue
         #201600 charcoal, #ffffff white
   Font: Mulish
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Mulish:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,700&display=swap');

/* 1. CUSTOM PROPERTIES */
:root {
  --navy:        #201600;
  --navy-dark:   #150f00;
  --blue:        #207796;
  --blue-dark:   #1a6180;
  --blue-light:  #2a9bbf;
  --yellow:      #f3af00;
  --yellow-dark: #d99c00;
  --slate:       #201600;
  --slate-mid:   #3a2900;
  --gray-light:  #dff3fa;
  --gray-border: #b8dcea;
  --text-dark:   #201600;
  --text-mid:    #3a2900;
  --text-muted:  #6b5530;
  --white:       #ffffff;
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.06);
  --shadow-lg:   0 20px 60px rgba(0,0,0,0.12), 0 8px 24px rgba(0,0,0,0.08);
  --transition:  all 0.25s cubic-bezier(0.4,0,0.2,1);
}

/* 2. RESET & BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Mulish', 'Muli', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* 3. LAYOUT */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* 4. TYPOGRAPHY */
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blue); background: rgba(32,119,150,0.08);
  border: 1px solid rgba(32,119,150,0.2); padding: 6px 14px; border-radius: 100px; margin-bottom: 16px;
}
.section-label.yellow { color: #b37700; background: rgba(243,175,0,0.12); border-color: rgba(243,175,0,0.35); }
.section-label.white { color: rgba(255,255,255,0.85); background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); }

.section-title {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.15;
  letter-spacing: -0.02em; color: var(--text-dark);
}
.section-title span { color: var(--blue); }
.section-title.light { color: var(--white); }
.section-title.light span { color: var(--yellow); }

.section-subtitle { font-size: 1.1rem; color: var(--text-muted); max-width: 620px; line-height: 1.7; margin-top: 12px; }
.section-subtitle.light { color: rgba(255,255,255,0.75); }

/* 5. BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.95rem; font-weight: 600; padding: 14px 28px;
  border-radius: var(--radius-sm); border: 2px solid transparent;
  cursor: pointer; transition: var(--transition); white-space: nowrap;
  font-family: inherit;
}
.btn-primary { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(32,119,150,0.35); }
.btn-yellow { background: var(--yellow); color: var(--text-dark); border-color: var(--yellow); }
.btn-yellow:hover { background: var(--yellow-dark); border-color: var(--yellow-dark); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(243,175,0,0.45); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-ghost:hover { background: var(--blue); color: var(--white); }
.btn-sm { font-size: 0.82rem; padding: 8px 18px; }

/* External link indicator */
.nav-link[target="_blank"]::after,
.mobile-nav-link[target="_blank"]::after,
.footer-link[target="_blank"]::after,
.footer-brand a[target="_blank"]::after,
.social-link[target="_blank"]::after,
.btn-outline[target="_blank"]::after,
.btn-yellow[target="_blank"]::after,
.btn-primary[target="_blank"]::after,
.hub-card[target="_blank"] .hub-card-title::after {
  content: ' \2197';
  display: inline-block;
  margin-left: 4px;
  font-size: 0.85em;
  opacity: 0.7;
  font-weight: 600;
}

/* 6. NAVIGATION */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; transition: var(--transition); }
.nav.scrolled { background: rgba(32,22,0,0.97); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 2px 20px rgba(0,0,0,0.25); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; transition: padding 0.25s ease; }
.nav.scrolled .nav-inner { padding: 14px 0; }
.nav-logo { display: flex; align-items: center; }
.nav-logo-img { height: 44px; width: auto; display: block; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link { font-size: 0.9rem; font-weight: 500; color: rgba(255,255,255,0.8); padding: 8px 13px; border-radius: var(--radius-sm); transition: var(--transition); }
.nav-link:hover { color: var(--white); background: rgba(255,255,255,0.1); }
.nav-link.active { color: var(--white); background: rgba(255,255,255,0.12); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }

/* 7. MOBILE NAV */
.mobile-nav {
  display: none; position: fixed; top: 0; right: 0; bottom: 0;
  width: 300px; background: var(--slate); z-index: 1100;
  padding: 80px 32px 40px; flex-direction: column; gap: 4px;
  transform: translateX(100%); transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  box-shadow: -20px 0 60px rgba(0,0,0,0.4);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1090; }
.mobile-nav-close { position: absolute; top: 20px; right: 20px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--white); font-size: 1.5rem; background: none; border: none; }
.mobile-nav-link { font-size: 1rem; font-weight: 500; color: rgba(255,255,255,0.8); padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,0.06); transition: color 0.2s; display: block; }
.mobile-nav-link:hover, .mobile-nav-link.active { color: var(--white); }

/* 8. PAGE HERO (compact) */
.page-hero {
  padding: 96px 0 28px;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, #281a00 100%);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 80% at 80% 50%, rgba(32,119,150,0.25) 0%, transparent 60%),
              radial-gradient(ellipse 40% 60% at 10% 80%, rgba(243,175,0,0.07) 0%, transparent 50%);
}
.page-hero::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
                     linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}
.page-hero-content { position: relative; z-index: 2; max-width: 760px; }
.page-hero-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 900; line-height: 1.15;
  letter-spacing: -0.02em; color: var(--white); margin-bottom: 10px;
}
.page-hero-title span { background: linear-gradient(135deg, var(--yellow), #ffd966); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.page-hero-desc { font-size: 0.95rem; color: rgba(255,255,255,0.7); line-height: 1.65; max-width: 580px; margin-bottom: 16px; }

/* Breadcrumb */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: rgba(255,255,255,0.5); margin-bottom: 10px; }
.breadcrumb a { color: rgba(255,255,255,0.5); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb-sep { opacity: 0.4; }

/* User menu (nav avatar + dropdown + modal) */
.user-menu-wrap { position: relative; display: inline-flex; }
.user-avatar-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 4px 14px 4px 4px; border-radius: 100px;
  background: rgba(255,255,255,0.06);
  color: var(--white); border: 1px solid rgba(255,255,255,0.18);
  font-family: inherit; font-weight: 600; font-size: 0.88rem;
  cursor: pointer; transition: var(--transition); line-height: 1;
}
.user-avatar-btn:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.35); }
.user-avatar-circle {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.78rem; letter-spacing: 0.02em;
}
.user-avatar-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-avatar-caret { opacity: 0.6; font-size: 0.7rem; }
@media (max-width: 640px) {
  .user-avatar-name, .user-avatar-caret { display: none; }
  .user-avatar-btn { padding: 4px; border-color: transparent; background: transparent; }
}

.user-menu-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 1200;
  min-width: 240px; background: var(--white);
  border: 1px solid var(--gray-border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.user-menu-header { padding: 14px 16px; border-bottom: 1px solid var(--gray-border); background: var(--gray-light); }
.user-menu-name { font-size: 0.92rem; font-weight: 700; color: var(--text-dark); line-height: 1.3; }
.user-menu-email { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; word-break: break-all; }
.user-menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 12px 16px; background: none; border: none;
  font-family: inherit; font-size: 0.88rem; font-weight: 500; color: var(--text-dark);
  text-align: left; cursor: pointer; transition: background 0.15s;
}
.user-menu-item:hover { background: var(--gray-light); }
.user-menu-item--danger { color: #b3261e; border-top: 1px solid var(--gray-border); }
.user-menu-item--danger:hover { background: rgba(179,38,30,0.06); }
.user-menu-item-icon { font-size: 1rem; opacity: 0.75; }

/* Profile modal */
.profile-modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.profile-modal[hidden] { display: none; }
.profile-modal-overlay { position: absolute; inset: 0; background: rgba(32,22,0,0.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.profile-modal-card {
  position: relative; background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 36px 32px 28px;
  width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto;
}
.profile-modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px; border-radius: 50%;
  background: none; border: none; font-size: 1.6rem; line-height: 1;
  color: var(--text-muted); cursor: pointer; transition: var(--transition);
}
.profile-modal-close:hover { background: var(--gray-light); color: var(--text-dark); }
.profile-modal-title { font-size: 1.35rem; font-weight: 800; color: var(--text-dark); margin-bottom: 6px; }
.profile-modal-desc { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 20px; line-height: 1.55; }
.profile-modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }
.profile-modal-status { margin-top: 12px; font-size: 0.85rem; text-align: center; }

@media (max-width: 768px) {
  .user-menu-dropdown { right: -8px; min-width: 220px; }
  .profile-modal-card { padding: 28px 22px 22px; }
}

/* 9. GATED CONTENT */
main.gated { opacity: 0; transition: opacity 0.3s ease; }
main.gated.revealed { opacity: 1; }

/* Locked hub cards */
.hub-card--locked { position: relative; opacity: 0.6; cursor: pointer; }
.hub-card--locked::after {
  content: '🔒 Complete feedback to unlock';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.85);
  font-weight: 700; font-size: 0.85rem; color: var(--text-dark);
  border-radius: var(--radius-md);
  text-align: center; padding: 16px;
}

/* 10. CARDS */
.card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--gray-border); transition: var(--transition);
}
.card:hover { border-color: rgba(32,119,150,0.2); box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.tag-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.72rem; font-weight: 600; padding: 4px 10px;
  border-radius: 100px; background: rgba(32,119,150,0.08);
  color: var(--blue); border: 1px solid rgba(32,119,150,0.18);
}
.tag-pill.yellow { background: rgba(243,175,0,0.12); color: #8a5e00; border-color: rgba(243,175,0,0.3); }

/* 11. HUB DASHBOARD */
.hub-section { padding: 48px 0; }
.hub-section.alt { background: var(--gray-light); }

.hub-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 24px; margin-top: 24px;
}
.hub-card {
  padding: 36px; position: relative; overflow: hidden;
}
.hub-card-icon { font-size: 2rem; margin-bottom: 16px; display: block; }
.hub-card-title { font-size: 1.25rem; font-weight: 800; color: var(--text-dark); margin-bottom: 8px; }
.hub-card-desc { font-size: 0.95rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 20px; }
.hub-card-count { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; font-weight: 700; color: var(--blue); margin-bottom: 16px; }
.hub-card .btn { margin-top: auto; }

/* 12. TOOLS PAGE */
.tools-controls { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 32px; }

.search-input {
  flex: 1; min-width: 240px; padding: 12px 18px; font-size: 0.95rem;
  font-family: inherit; border: 1px solid var(--gray-border); border-radius: var(--radius-sm);
  background: var(--white); color: var(--text-dark); transition: var(--transition);
}
.search-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(32,119,150,0.1); }
.search-input::placeholder { color: var(--text-muted); opacity: 0.6; }

.filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 24px; }
.filter-tab {
  font-size: 0.82rem; font-weight: 600; padding: 8px 16px; border-radius: 100px;
  border: 1px solid var(--gray-border); background: var(--white); color: var(--text-muted);
  cursor: pointer; transition: var(--transition); font-family: inherit;
}
.filter-tab:hover { border-color: var(--blue); color: var(--blue); }
.filter-tab.active { background: var(--blue); color: var(--white); border-color: var(--blue); }

.tool-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tool-card { padding: 28px; display: flex; flex-direction: column; }
.tool-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.tool-card-name { font-size: 1.05rem; font-weight: 800; color: var(--text-dark); }
.tool-card-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; flex-grow: 1; }
.tool-card-footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.tool-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tool-card-meta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.verified-date { font-size: 0.72rem; color: var(--text-muted); opacity: 0.7; white-space: nowrap; }
.tool-card--deprecated { opacity: 0.55; }

.badge { font-size: 0.68rem; font-weight: 700; padding: 3px 8px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.05em; }
.badge--new { background: rgba(243,175,0,0.15); color: #8a5e00; }
.badge--deprecated { background: rgba(0,0,0,0.06); color: var(--text-muted); }
.badge--coming-soon { background: rgba(32,119,150,0.1); color: var(--blue); }

/* 13. FEATURED COLLECTIONS */
.collection-section { margin-bottom: 40px; }
.collection-title { font-size: 1.15rem; font-weight: 800; color: var(--text-dark); margin-bottom: 4px; }
.collection-desc { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 16px; }
.collection-row { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
.collection-card { min-width: 200px; max-width: 240px; padding: 20px; flex-shrink: 0; cursor: pointer; }
.collection-card:hover { transform: translateY(-2px); }
.collection-card-name { font-size: 0.95rem; font-weight: 700; color: var(--text-dark); display: block; margin-bottom: 6px; }
.collection-card-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; display: block; }

/* 14. FORMS */
.form-card {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 48px; max-width: 680px; margin: 0 auto;
}
.form-card-title { font-size: 1.5rem; font-weight: 800; color: var(--text-dark); margin-bottom: 8px; }
.form-card-desc { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 32px; line-height: 1.65; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--text-dark); margin-bottom: 6px; }
.form-label .required { color: #d32f2f; margin-left: 2px; }

.form-input, .form-select, .form-textarea {
  width: 100%; padding: 12px 16px; font-size: 0.95rem; font-family: inherit;
  border: 1px solid var(--gray-border); border-radius: var(--radius-sm);
  background: var(--white); color: var(--text-dark); transition: var(--transition);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(32,119,150,0.1);
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-error { font-size: 0.8rem; color: #d32f2f; margin-top: 4px; min-height: 1.2em; }

/* Rating buttons */
.rating-group { display: flex; gap: 8px; }
.rating-btn {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  border: 2px solid var(--gray-border); background: var(--white);
  font-size: 1.1rem; font-weight: 800; color: var(--text-muted);
  cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; justify-content: center; font-family: inherit;
}
.rating-btn:hover { border-color: var(--yellow); color: var(--yellow); }
.rating-btn.active { background: var(--yellow); border-color: var(--yellow); color: var(--text-dark); }

/* Rating scale (button + label aligned in 5 columns) */
.rating-scale {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 4px;
}
.rating-scale-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.rating-scale-item .rating-btn { width: 100%; max-width: 56px; }
.rating-scale-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  opacity: 0.75;
  text-align: center;
  line-height: 1.25;
  font-weight: 500;
}
@media (max-width: 480px) {
  .rating-scale-label { font-size: 0.65rem; }
}

/* Checkbox */
.form-checkbox { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.form-checkbox input[type="checkbox"] {
  width: 18px; height: 18px; margin-top: 2px; accent-color: var(--blue); flex-shrink: 0;
}
.form-checkbox-text { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }

/* 15. FAQ / ACCORDION */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--white); border: 1px solid var(--gray-border); border-radius: var(--radius-md); overflow: hidden; transition: border-color 0.25s; }
.faq-item.open { border-color: rgba(32,119,150,0.3); box-shadow: var(--shadow-sm); }
.faq-question { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; cursor: pointer; user-select: none; width: 100%; background: none; border: none; text-align: left; font-family: inherit; }
.faq-q-text { font-size: 1rem; font-weight: 600; color: var(--text-dark); line-height: 1.4; }
.faq-toggle { width: 28px; height: 28px; background: var(--gray-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: var(--transition); font-size: 1.1rem; font-weight: 300; color: var(--text-muted); line-height: 1; }
.faq-item.open .faq-toggle { background: var(--blue); color: var(--white); transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-item.open .faq-answer { max-height: 800px; }
.faq-a-text { padding: 0 24px 22px; font-size: 0.95rem; color: var(--text-muted); line-height: 1.75; }

/* 16. FRAMEWORKS */
.framework-section { margin-bottom: 64px; }
.framework-section-title { font-size: 1.4rem; font-weight: 800; color: var(--text-dark); margin-bottom: 24px; }

/* SPICE pyramid */
.spice-pyramid { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 32px 0; }
.spice-level {
  display: flex; align-items: center; justify-content: center;
  padding: 16px 24px; border-radius: var(--radius-sm); font-weight: 700; font-size: 0.9rem;
  text-align: center; transition: var(--transition); cursor: default;
}
.spice-level:nth-child(1) { width: 50%; background: rgba(32,119,150,0.15); color: var(--blue); }
.spice-level:nth-child(2) { width: 58%; background: rgba(32,119,150,0.12); color: var(--blue); }
.spice-level:nth-child(3) { width: 66%; background: rgba(243,175,0,0.15); color: #8a5e00; }
.spice-level:nth-child(4) { width: 74%; background: rgba(243,175,0,0.12); color: #8a5e00; }
.spice-level:nth-child(5) { width: 82%; background: rgba(32,119,150,0.08); color: var(--blue); }
.spice-number { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--white); font-weight: 800; font-size: 0.8rem; margin-right: 10px; flex-shrink: 0; }

/* Claude Prompt visual */
.prompt-grid { display: grid; gap: 12px; margin-top: 20px; }
.prompt-item { display: flex; align-items: flex-start; gap: 14px; padding: 16px 20px; background: var(--gray-light); border-radius: var(--radius-md); }
.prompt-num { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; font-weight: 800; font-size: 0.85rem; flex-shrink: 0; }
.prompt-num.required { background: rgba(76,175,80,0.15); color: #2e7d32; }
.prompt-num.recommended { background: rgba(243,175,0,0.2); color: #8a5e00; }
.prompt-num.optional { background: rgba(0,0,0,0.06); color: var(--text-muted); }
.prompt-item-title { font-weight: 700; font-size: 0.95rem; color: var(--text-dark); }
.prompt-item-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.55; margin-top: 2px; }

/* CAIO-Lite org chart */
.caio-chart { display: flex; flex-direction: column; align-items: center; gap: 16px; margin: 32px 0; }
.caio-box { padding: 14px 28px; border-radius: var(--radius-sm); font-weight: 700; font-size: 0.9rem; text-align: center; }
.caio-box.primary { background: var(--blue); color: var(--white); }
.caio-box.secondary { background: var(--yellow); color: var(--text-dark); }
.caio-box.tertiary { background: var(--gray-light); color: var(--text-dark); border: 1px solid var(--gray-border); }
.caio-connector { width: 2px; height: 20px; background: var(--gray-border); }
.caio-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* 17. SKILLS DIRECTORY */
.skills-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 32px;
}
.skill-card { padding: 28px; display: flex; flex-direction: column; }
.skill-card-title { font-size: 1.05rem; font-weight: 800; color: var(--text-dark); margin-bottom: 8px; }
.skill-card-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; flex-grow: 1; }
.skill-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* 18. SPEAKERS / BOOKING */
.region-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 24px; margin-top: 40px;
}
.region-card {
  padding: 36px; text-align: center; position: relative; overflow: hidden;
}
.region-card-icon { font-size: 2.5rem; margin-bottom: 12px; display: block; }
.region-card-title { font-size: 1.15rem; font-weight: 800; color: var(--text-dark); margin-bottom: 8px; }
.region-card-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 20px; font-style: italic; }

/* Metrics bar */
.metrics { padding: 72px 0; background: var(--blue); }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; text-align: center; }
.metric-num { font-size: 2.8rem; font-weight: 900; color: var(--white); letter-spacing: -0.03em; line-height: 1; }
.metric-num span { color: var(--yellow); }
.metric-label { font-size: 0.88rem; color: rgba(255,255,255,0.75); font-weight: 500; margin-top: 8px; line-height: 1.4; }

/* Success state */
.form-success { display: none; text-align: center; padding: 48px 24px; }
.form-success-icon { font-size: 3rem; margin-bottom: 16px; }
.form-success-title { font-size: 1.5rem; font-weight: 800; color: var(--text-dark); margin-bottom: 8px; }
.form-success-desc { font-size: 1rem; color: var(--text-muted); line-height: 1.6; }

/* 19. CONNECT / SOCIAL */
.social-bar { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.social-link {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 100px;
  background: rgba(32,119,150,0.08); color: var(--blue);
  font-size: 0.85rem; font-weight: 600;
  border: 1px solid rgba(32,119,150,0.15); transition: var(--transition);
}
.social-link:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }

/* 20. FOOTER */
.footer { background: var(--slate); color: rgba(255,255,255,0.7); padding: 48px 0 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand { font-size: 0.87rem; color: rgba(255,255,255,0.5); }
.footer-brand a { color: rgba(255,255,255,0.7); transition: color 0.2s; }
.footer-brand a:hover { color: var(--white); }
.footer-links { display: flex; gap: 20px; }
.footer-link { font-size: 0.82rem; color: rgba(255,255,255,0.45); transition: color 0.2s; }
.footer-link:hover { color: var(--white); }
.footer-bottom { padding: 20px 0; text-align: center; }
.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,0.28); }

/* 21. SCROLL ANIMATIONS */
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }

/* 22. RESPONSIVE */
@media (max-width: 1024px) {
  .hub-grid { grid-template-columns: repeat(2, 1fr); }
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: flex; }

  .page-hero { padding: 80px 0 20px; }

  .hub-grid { grid-template-columns: 1fr; }
  .tool-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .region-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 32px 24px; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }

  .filter-tabs { gap: 4px; }
  .filter-tab { font-size: 0.75rem; padding: 6px 12px; }
}

@media (max-width: 480px) {
  .metrics-grid { grid-template-columns: 1fr; }
  .collection-card { min-width: 160px; }
}

/* =========================================================
   LIVE WORKSHOP FEED
   ========================================================= */

.live-body { background: var(--gray-light); min-height: 100vh; }

.live-header {
  background: linear-gradient(135deg, #0a1424 0%, #142847 60%, #0e2140 100%);
  border-bottom: 1px solid rgba(243,175,0,0.35);
  box-shadow: 0 6px 22px -12px rgba(0,0,0,0.45);
  position: sticky; top: 0; z-index: 50;
}
.live-header::after {
  content: ''; display: block; height: 2px;
  background: linear-gradient(90deg, transparent, var(--yellow), transparent);
  opacity: 0.85;
}
.live-header-inner {
  display: flex; align-items: center; gap: 18px;
  padding: 14px 0;
}
.live-header-logo img { height: 32px; display: block; }
.live-header-meta {
  flex: 1; min-width: 0; color: var(--white);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.live-session-title {
  font-size: 1.02rem; font-weight: 700; letter-spacing: -0.01em;
  color: var(--white);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 100%;
}
.live-session-code {
  display: inline-flex; align-items: center;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.72rem; font-weight: 700;
  color: var(--yellow); letter-spacing: 0.12em;
  background: rgba(243,175,0,0.12);
  border: 1px solid rgba(243,175,0,0.28);
  padding: 3px 9px; border-radius: 999px;
  text-transform: uppercase;
}
.live-header-right { display: flex; align-items: center; gap: 12px; }
.live-header-link {
  color: rgba(255,255,255,0.78); font-size: 0.85rem; font-weight: 600;
  text-decoration: none; white-space: nowrap;
  padding: 6px 10px; border-radius: 6px;
  transition: color .15s, background .15s;
}
.live-header-link:hover { color: var(--white); background: rgba(255,255,255,0.06); }

.live-conn {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.72rem; font-weight: 600;
  color: rgba(255,255,255,0.75);
  padding: 5px 11px; border-radius: 100px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.conn-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #6b7280; transition: background .2s, box-shadow .2s;
}
@keyframes aifm-conn-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.55); }
  50%      { box-shadow: 0 0 0 6px rgba(16,185,129,0); }
}
body.conn-live    .conn-dot { background:#10b981; animation: aifm-conn-pulse 1.8s ease-in-out infinite; }
body.conn-polling .conn-dot { background:#f59e0b; }
body.conn-offline .conn-dot { background:#ef4444; }
body.conn-live    .conn-label { color: #a7f3d0; }
body.conn-polling .conn-label { color: #fcd34d; }
body.conn-offline .conn-label { color: #fca5a5; }

@media (max-width: 640px) {
  .live-header-inner { gap: 10px; padding: 10px 0; flex-wrap: wrap; }
  .live-header-logo img { height: 26px; }
  .live-session-title { font-size: 0.92rem; flex: 1 1 auto; }
  .live-session-code { font-size: 0.65rem; padding: 2px 7px; letter-spacing: 0.1em; }
  .live-conn { padding: 4px 8px; font-size: 0.65rem; }
  .live-conn .conn-label { display: none; }
  .live-header-link { font-size: 0.78rem; padding: 4px 6px; }
}

.live-main { padding-bottom: 80px; }

.live-empty { text-align: center; padding: 80px 20px; color: var(--text-muted); }
.live-empty-icon { font-size: 3rem; margin-bottom: 12px; opacity: 0.7; }
.live-empty-title { font-size: 1.2rem; font-weight: 800; color: var(--text-dark); margin-bottom: 6px; }
.live-empty-desc { font-size: 0.95rem; max-width: 420px; margin: 0 auto; }

.live-feed { display: flex; flex-direction: column; gap: 16px; }

.live-block {
  background: var(--white); border: 1px solid var(--gray-border);
  border-radius: var(--radius-md); padding: 18px 20px;
  box-shadow: 0 1px 3px rgba(32,22,0,0.04);
  position: relative;
}
.live-block-pin {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  color: var(--blue); background: rgba(32,119,150,0.08);
  padding: 3px 10px; border-radius: 100px; margin-bottom: 10px;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.live-block-body {
  font-size: 1rem; line-height: 1.55; color: var(--text-dark);
  white-space: pre-wrap; word-wrap: break-word;
}
.live-block-body a { color: var(--blue); word-break: break-all; }
.live-block-caption { font-size: 0.88rem; color: var(--text-muted); margin: 10px 0 0; }

.live-block--text .btn, .live-block--link .btn { margin-top: 12px; }

.live-block--link .live-link-main {
  display: block; padding: 12px 14px; border-radius: var(--radius-sm);
  background: rgba(32,119,150,0.06); text-decoration: none;
  border: 1px solid rgba(32,119,150,0.15); transition: var(--transition);
}
.live-block--link .live-link-main:hover {
  background: rgba(32,119,150,0.1); border-color: rgba(32,119,150,0.3);
}
.live-link-title { font-size: 1rem; font-weight: 700; color: var(--text-dark); margin-bottom: 4px; word-break: break-word; }
.live-link-url { font-size: 0.8rem; color: var(--blue); font-family: "Courier New", monospace; word-break: break-all; }

.live-block--image img {
  display: block; width: 100%; height: auto; max-height: 60vh;
  object-fit: contain; border-radius: var(--radius-sm);
  background: var(--gray-light); cursor: zoom-in;
}

.live-divider {
  display: flex; align-items: center; gap: 14px;
  margin: 8px 0; color: var(--text-muted); font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700;
}
.live-divider::before, .live-divider::after {
  content: ""; flex: 1; height: 2px; background: var(--gray-border);
}
.live-divider-label {
  padding: 4px 12px; background: var(--yellow); color: var(--text-dark);
  border-radius: 100px; font-size: 0.74rem;
}

@keyframes aifm-new-block {
  0%   { box-shadow: 0 0 0 3px var(--yellow); transform: translateY(-2px); }
  60%  { box-shadow: 0 0 0 3px rgba(243,175,0,0.4); }
  100% { box-shadow: 0 1px 3px rgba(32,22,0,0.04); transform: translateY(0); }
}
.live-block--new { animation: aifm-new-block 1.6s ease-out; }

.live-lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.85);
  display: flex; align-items: center; justify-content: center;
  padding: 32px; cursor: zoom-out;
}
.live-lightbox[hidden] { display: none; }

.copy-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--navy-dark); color: var(--white);
  padding: 12px 24px; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 600;
  box-shadow: var(--shadow-lg); z-index: 9999;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
}
.copy-toast.show { opacity: 1; }
.live-lightbox img { max-width: 100%; max-height: 100%; border-radius: var(--radius-sm); }
.live-lightbox-close {
  position: absolute; top: 16px; right: 20px;
  background: transparent; border: none; color: var(--white);
  font-size: 2rem; cursor: pointer; line-height: 1;
}

/* Live session nav link + hub banner */
.nav-link-live,
.mobile-nav-live {
  display: inline-flex; align-items: center; gap: 6px;
}
.nav-live-pill {
  display: none;
  align-items: center; gap: 6px;
  padding: 6px 12px; margin-right: 8px;
  background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.5);
  color: var(--white);
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.8rem; font-weight: 700;
}
.nav-live-pill:hover { background: rgba(16,185,129,0.28); }
@media (max-width: 900px) {
  .nav-live-pill { display: inline-flex; }
}
.nav-live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16,185,129,0.25);
  animation: aifm-live-pulse 1.6s ease-in-out infinite;
  display: inline-block;
}
@keyframes aifm-live-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(16,185,129,0.25); }
  50%      { box-shadow: 0 0 0 6px rgba(16,185,129,0.05); }
}
.live-session-banner {
  background: linear-gradient(135deg, #0f766e, #059669);
  color: var(--white);
  padding: 12px 0;
  position: sticky; top: 0; z-index: 45;
}
.live-session-banner-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; flex-wrap: wrap;
}
.live-session-banner-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.25);
  animation: aifm-live-pulse-white 1.6s ease-in-out infinite;
  display: inline-block;
}
@keyframes aifm-live-pulse-white {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255,255,255,0.25); }
  50%      { box-shadow: 0 0 0 7px rgba(255,255,255,0.05); }
}
.live-session-banner-text {
  font-weight: 600; font-size: 0.95rem; color: var(--white);
}
.live-session-banner-text strong {
  font-family: "Courier New", monospace;
  background: rgba(255,255,255,0.15);
  padding: 2px 8px; border-radius: 4px; margin-left: 4px;
}
.live-session-banner-btn {
  background: var(--white) !important; color: #059669 !important;
}
.live-session-banner-btn:hover { background: var(--yellow) !important; color: var(--navy) !important; }

/* Admin block editor */
.session-blocks {
  margin-top: 24px; padding: 20px; background: var(--white);
  border: 1px solid var(--gray-border); border-radius: var(--radius-md);
}
.session-blocks-title {
  font-size: 0.92rem; font-weight: 800; color: var(--text-dark);
  margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
}
.sb-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.sb-tab {
  padding: 6px 14px; border: 1px solid var(--gray-border);
  background: var(--gray-light); color: var(--text-dark);
  border-radius: 100px; font-size: 0.82rem; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: var(--transition);
}
.sb-tab:hover { border-color: var(--blue); }
.sb-tab.active { background: var(--blue); color: var(--white); border-color: var(--blue); }

.sb-panel { display: none; }
.sb-panel.active { display: block; }
.sb-panel textarea, .sb-panel input[type="text"], .sb-panel input[type="url"] {
  width: 100%; padding: 10px 12px; font-size: 0.92rem; font-family: inherit;
  border: 1px solid var(--gray-border); border-radius: var(--radius-sm);
  background: var(--white); color: var(--text-dark); resize: vertical;
  box-sizing: border-box;
}
.sb-panel textarea:focus, .sb-panel input:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(32,119,150,0.1);
}
.sb-panel textarea { min-height: 90px; }

.sb-dropzone {
  border: 2px dashed var(--gray-border); border-radius: var(--radius-sm);
  padding: 32px 20px; text-align: center; color: var(--text-muted);
  font-size: 0.88rem; cursor: pointer; transition: var(--transition);
  background: var(--gray-light);
}
.sb-dropzone:hover, .sb-dropzone.is-drag {
  border-color: var(--blue); background: rgba(32,119,150,0.06); color: var(--blue);
}
.sb-dropzone-preview img { max-width: 100%; max-height: 200px; border-radius: var(--radius-sm); }

.sb-actions {
  display: flex; gap: 10px; justify-content: flex-end;
  margin-top: 12px; flex-wrap: wrap;
}

.sb-list { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.sb-list-empty {
  text-align: center; padding: 24px; color: var(--text-muted);
  font-size: 0.88rem; font-style: italic;
}
.sb-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: var(--gray-light);
  border: 1px solid var(--gray-border); border-radius: var(--radius-sm);
}
.sb-row-type {
  font-size: 0.68rem; font-weight: 800; padding: 3px 8px;
  border-radius: 100px; background: var(--white); color: var(--blue);
  text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap;
}
.sb-row-preview {
  flex: 1 1 auto; min-width: 0; font-size: 0.85rem; color: var(--text-dark);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sb-row-actions { display: flex; gap: 4px; flex-shrink: 0; }
.sb-row-actions button {
  background: transparent; border: 1px solid transparent;
  padding: 4px 8px; font-size: 0.82rem; cursor: pointer;
  border-radius: 6px; color: var(--text-muted); font-family: inherit;
}
.sb-row-actions button:hover { background: var(--white); color: var(--text-dark); border-color: var(--gray-border); }
.sb-row-actions button.danger:hover { color: #d32f2f; border-color: #fca5a5; }
.sb-row--pinned { border-color: var(--yellow); background: rgba(243,175,0,0.08); }

/* Past sessions (ended) */
.past-sessions { border-top: 1px dashed var(--gray-border); padding-top: 12px; margin-top: 16px; }
.past-sessions-summary { cursor: pointer; font-weight: 600; color: var(--text-muted); padding: 6px 0; user-select: none; list-style: none; display: inline-flex; align-items: center; gap: 10px; }
.past-sessions-summary::-webkit-details-marker { display: none; }
.past-sessions-summary::before { content: '\25B6'; font-size: 0.7em; transition: transform .15s; }
.past-sessions[open] .past-sessions-summary::before { transform: rotate(90deg); }
.past-sessions-summary:hover { color: var(--text-dark); }
.sessions-list--past { margin-top: 10px; }
.session-item--past { opacity: 0.92; background: var(--gray-light); cursor: default; }
.session-item--past:hover { transform: none; box-shadow: none; }

/* Admin tabs (Attendees / Feedback) */
.admin-section--tabs { padding-top: 14px; }
.admin-tabs { display: flex; gap: 4px; margin: 0 0 20px; border-bottom: 1px solid var(--gray-border); flex-wrap: wrap; }
.admin-tab { background: transparent; border: none; padding: 10px 18px; font: inherit; font-size: 0.92rem; font-weight: 600; color: var(--text-muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; align-items: center; gap: 8px; transition: color .15s, border-color .15s; }
.admin-tab:hover { color: var(--text-dark); }
.admin-tab.active { color: var(--blue); border-bottom-color: var(--blue); }
.admin-tab .icon { font-size: 1rem; }
.admin-tab-count { background: var(--gray-light); color: var(--text-muted); font-size: 0.72rem; padding: 2px 8px; border-radius: 999px; font-weight: 700; min-width: 22px; text-align: center; }
.admin-tab.active .admin-tab-count { background: var(--blue); color: var(--white); }
.admin-panel { display: none; }
.admin-panel.active { display: block; }
.admin-panel[hidden] { display: none; }

/* Edit block modal */
.edit-modal { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.edit-modal[hidden] { display: none; }
.edit-modal-backdrop { position: absolute; inset: 0; background: rgba(8, 20, 38, 0.55); }
.edit-modal-box { position: relative; width: 100%; max-width: 560px; background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; max-height: 90vh; }
.edit-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--gray-border); }
.edit-modal-head h3 { margin: 0; font-size: 1.05rem; color: var(--text-dark); }
.edit-modal-close { background: none; border: none; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--text-muted); padding: 0 4px; }
.edit-modal-close:hover { color: var(--text-dark); }
.edit-modal-body { padding: 16px 20px; overflow: auto; display: flex; flex-direction: column; gap: 14px; }
.edit-modal-label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text-dark); margin-bottom: 6px; }
.edit-modal-input, .edit-modal-textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--gray-border); border-radius: var(--radius-sm); font-family: inherit; font-size: 0.95rem; color: var(--text-dark); background: var(--white); box-sizing: border-box; }
.edit-modal-textarea { resize: vertical; min-height: 140px; line-height: 1.5; font-family: 'SFMono-Regular', Menlo, Consolas, monospace; font-size: 0.9rem; }
.edit-modal-input:focus, .edit-modal-textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18); }
.edit-modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--gray-border); }

@media (max-width: 640px) {
  .live-header-right { gap: 8px; }
  .live-header-link { font-size: 0.78rem; }
  .live-block { padding: 14px 16px; }
  .sb-row { flex-wrap: wrap; }
  .sb-row-preview { flex: 1 1 100%; order: 3; }
}
