#main-title {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--ld-purple) 0%, var(--ld-purple-light) 50%, var(--ld-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 40px;
  text-align: center;
  text-shadow: 0 0 40px rgba(92, 45, 145, 0.5);
  letter-spacing: -1px;
  position: relative;
}

#main-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--ld-green), transparent);
  border-radius: 2px;
}

textarea {
  width: 100%;
  height: 220px;
  font-family: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;
  font-size: 14px;
  padding: 25px;
  border: 2px solid rgba(92, 45, 145, 0.4);
  border-radius: var(--radius-md);
  background: var(--field-dark);
  color: var(--text-primary);
  resize: vertical;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 25px;
  backdrop-filter: blur(10px);
}

textarea:focus,
#output:focus {
  outline: none;
  border-color: var(--ld-purple);
  box-shadow: 0 0 0 4px rgba(92, 45, 145, 0.3),
              0 0 40px rgba(92, 45, 145, 0.4);
  background: var(--field-dark-focus);
  transform: scale(1.01);
}

textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.button-group {
  display: flex;
  gap: 15px;
  margin-bottom: 40px;
}

button {
  padding: 16px 32px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

button:hover::before {
  left: 100%;
}

button:first-child {
  background: linear-gradient(135deg, var(--ld-purple) 0%, var(--ld-purple-light) 100%);
  color: white;
  box-shadow: 0 8px 25px rgba(92, 45, 145, 0.5),
              0 0 50px rgba(166, 206, 57, 0.3);
}

button:first-child:hover,
button:last-child:hover {
  transform: translateY(-4px) scale(1.02);
}

button:first-child:hover {
  box-shadow: 0 12px 35px rgba(92, 45, 145, 0.6),
              0 0 70px rgba(166, 206, 57, 0.4);
}

button:first-child:active {
  transform: translateY(-2px) scale(1.01);
}

button:last-child {
  background: rgba(30, 30, 30, 0.6);
  color: var(--ld-green);
  border: 2px solid rgba(166, 206, 57, 0.5);
  backdrop-filter: blur(10px);
}

button:last-child:hover {
  background: rgba(92, 45, 145, 0.3);
  border-color: var(--ld-purple);
  box-shadow: 0 8px 25px rgba(92, 45, 145, 0.4);
}

.preview-section h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ld-green);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-shadow: 0 0 20px rgba(166, 206, 57, 0.5);
}

.preview-section h2::before {
  content: 'Preview';
  font-size: 0;
}

#output {
  border: 2px solid rgba(92, 45, 145, 0.4);
  border-radius: var(--radius-md);
  padding: 30px;
  min-height: 250px;
  background: var(--field-dark);
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.9;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

#output h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--ld-purple);
  margin: 25px 0 20px 0;
  padding-bottom: 15px;
  border-bottom: 3px solid rgba(92, 45, 145, 0.6);
  -webkit-text-fill-color: var(--ld-purple);
  text-shadow: 0 0 30px rgba(92, 45, 145, 0.6);
}

#output h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ld-green);
  margin: 22px 0 15px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(166, 206, 57, 0.4);
  text-shadow: 0 0 20px rgba(166, 206, 57, 0.4);
}

#output ul {
  list-style: none;
  padding-left: 0;
  margin: 18px 0;
}

#output li {
  padding: 12px 0 12px 30px;
  position: relative;
  color: var(--text-primary);
  line-height: 1.8;
  transition: all 0.3s ease;
}

#output li:hover {
  transform: translateX(5px);
}

#output li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--ld-green);
  font-weight: bold;
  font-size: 0.8em;
  text-shadow: 0 0 10px rgba(166, 206, 57, 0.8);
}

/* Dynamic Meeting Notes Styler Studio */
.studio-shell { position: relative; z-index: 3; width: min(1480px, calc(100% - 32px)); margin: 28px auto; padding: 28px; border: 1px solid rgba(255,255,255,.18); border-radius: 32px; background: linear-gradient(135deg, rgba(15,23,42,.88), rgba(30,41,59,.72)); box-shadow: 0 30px 80px rgba(0,0,0,.38); color: #f8fafc; backdrop-filter: blur(18px); }
.hero { text-align: left; max-width: 980px; margin-bottom: 24px; }
.hero h1 { font-size: clamp(2.3rem, 7vw, 5.8rem); line-height: .92; margin: 0 0 14px; letter-spacing: -.06em; }
.hero p:not(.eyebrow) { color: #cbd5e1; font-size: 1.1rem; max-width: 820px; }
.eyebrow { margin: 0 0 6px; color: #67e8f9; text-transform: uppercase; letter-spacing: .18em; font-size: .76rem; font-weight: 800; }
.studio-grid { display: grid; grid-template-columns: minmax(280px, 390px) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.control-panel, .notes-panel, .template-section, .split-preview { border: 1px solid rgba(255,255,255,.14); border-radius: 24px; background: rgba(15,23,42,.68); padding: 18px; box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.field, .notes-panel { display: flex; flex-direction: column; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label, legend { color: #e2e8f0; font-weight: 800; font-size: .88rem; }
input, select, textarea { border: 1px solid rgba(148,163,184,.45); border-radius: 16px; background: rgba(2,6,23,.66); color: #fff; padding: 12px 14px; outline: none; }
textarea#notes { min-height: 430px; resize: vertical; line-height: 1.55; }
.parser-toggle { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; color: #cbd5e1; }
.parser-toggle input { width: 18px; height: 18px; padding: 0; accent-color: #67e8f9; }
.section-toggles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0; padding: 14px; border: 1px solid rgba(255,255,255,.14); border-radius: 18px; }
.section-toggles label { font-weight: 650; color: #cbd5e1; }
.button-group, .copy-grid { display: flex; flex-wrap: wrap; gap: 10px; }
button { border: 0; border-radius: 999px; padding: 11px 16px; color: #07111f; background: linear-gradient(135deg, #67e8f9, #a78bfa); font-weight: 900; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
button:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(103,232,249,.2); }
.template-section, .split-preview { margin-top: 18px; }
.section-heading { display:flex; align-items:end; justify-content:space-between; gap:16px; margin-bottom:12px; }
.template-gallery { display: grid; grid-template-columns: repeat(9, minmax(140px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.template-card { min-height: 160px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; text-align: left; border: 1px solid color-mix(in srgb, var(--preset-accent), white 20%); border-radius: 22px; color: #f8fafc; background: linear-gradient(145deg, color-mix(in srgb, var(--preset-accent), #020617 72%), rgba(15,23,42,.9)); }
.template-card span { font-size: 1.8rem; }
.template-card small { color: #dbeafe; line-height: 1.25; }
.template-card.active { outline: 3px solid #fff; box-shadow: 0 0 0 6px color-mix(in srgb, var(--preset-accent), transparent 55%); }
.preview-toolbar { display:flex; justify-content:space-between; gap:18px; align-items:flex-start; margin-bottom: 16px; }
.copy-grid button { background: rgba(255,255,255,.1); color:#f8fafc; border:1px solid rgba(255,255,255,.18); }
#output { min-height: 420px; padding: 0; border: 0; background: transparent; }
.styled-note-card { overflow:hidden; border-radius: 28px; border: 1px solid rgba(255,255,255,.18); background: radial-gradient(circle at top left, color-mix(in srgb, var(--preset-accent), transparent 62%), transparent 35%), linear-gradient(145deg, #fff, #eef2ff); color: #101827; box-shadow: 0 24px 70px rgba(0,0,0,.25); }
.styled-note-card header { display:flex; gap:18px; padding:28px; color:#fff; background: linear-gradient(135deg, var(--preset-accent), #0f172a); }
.preset-mark { display:grid; place-items:center; flex:0 0 56px; height:56px; border-radius:18px; background:rgba(255,255,255,.18); font-size:1.8rem; }
.styled-note-card h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 3.2rem); }
.styled-note-card .meta, .styled-note-card .eyebrow { color: rgba(255,255,255,.82); }
.output-section { margin: 18px; padding: 18px 20px; border-radius: 20px; background: rgba(255,255,255,.78); border: 1px solid rgba(15,23,42,.08); }
.output-section h3 { margin: 0 0 10px; color: color-mix(in srgb, var(--preset-accent), #111827 35%); font-weight: 950; }
.output-section li { margin: 8px 0; }
.styled-note-card footer { margin: 18px; padding: 16px 20px; border-radius: 18px; background: #0f172a; color: #e2e8f0; }
#copy-status { min-height: 1.4em; color: #a7f3d0; font-weight: 800; margin-top: 10px; }
