:root {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  color-scheme: dark light;
  --bg: #050712;
  --fg: #f5f5f7;
  --muted: #9ea3b0;
  --accent: #4f8cff;
  --accent-soft: rgba(79, 140, 255, 0.1);
  --border: #1b1f2b;
  --max-width: 1400px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  width: 100%;
}

body {
  margin: 0;
  background: radial-gradient(circle at top, #151829, #050712 55%);
  color: var(--fg);
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
}

main {
  width: 100%;
  margin: 0 auto;
}

@media (min-width: 1400px) {
  main {
    max-width: var(--max-width);
  }
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 7vw;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(5, 7, 18, 0.9);
  width: 100%;
}

@media (min-width: 1400px) {
  .site-header {
    margin: 0 auto;
  }
}

.logo {
  font-weight: 700;
  letter-spacing: 0.04em;
}

.logo a {
  color: inherit; /* Inherit the color from the parent .logo element */
  text-decoration: none; /* Remove the underline */
}

.nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--fg);
}

.hero {
  padding: 4rem 7vw 3rem;
  text-align: center;
}

.hero-content {
  max-width: 50rem;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.hero-content p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

.hero-features {
  color: var(--fg);
  font-size: 0.95rem;
  margin-top: 1.5rem;
  margin-bottom: 0;
}

.btn {
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 0.6rem 1.2rem;
  font-size: 0.95rem;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.btn.primary {
  background: var(--accent-soft);
  color: var(--fg);
  border-color: var(--accent);
}

.btn.secondary {
  cursor: pointer;
}

.btn-small {
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
}

.hero-note {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Tools Section */
.tools-section {
  padding: 2rem 7vw 3rem;
}

.tools-container {
  max-width: 1200px;
  margin: 0 auto;
}

.tools-section h2 {
  font-size: 1.4rem;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--fg);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.tool-card {
  border-radius: 1rem;
  padding: 1.5rem;
  background: radial-gradient(circle at top left, #202642, #090b14);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
  display: block;
  text-decoration: none;
  color: inherit;
}

.tool-card-live {
  cursor: pointer;
  border-color: var(--accent);
}

.tool-card-live:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(79, 140, 255, 0.15);
}

.tool-card-soon {
  cursor: default;
  opacity: 0.6;
}

.tool-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.tool-card h3 {
  font-size: 1.1rem;
  margin: 0;
  color: var(--fg);
}

.tool-desc {
  margin: 0.75rem 0 0.5rem 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.tool-badge {
  font-size: 0.75rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tool-badge-live {
  background: rgba(79, 140, 255, 0.2);
  color: var(--accent);
  border: 1px solid var(--accent);
}

.tool-badge-soon {
  background: rgba(158, 163, 176, 0.1);
  color: var(--muted);
  border: 1px solid var(--border);
}

.tool-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tool-features li {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
  padding-left: 1.2rem;
  position: relative;
}

.tool-features li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.tool-features li:last-child {
  margin-bottom: 0;
}

.hero-panel {
  border-radius: 1rem;
  padding: 1.5rem 1.75rem;
  background: radial-gradient(circle at top left, #202642, #090b14);
  border: 1px solid var(--border);
}

.hero-panel h2 {
  font-size: 1.1rem;
  margin-top: 0;
  color: var(--fg);
}

.hero-panel ul {
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.6;
}

.section {
  padding: 2rem 7vw 2.5rem;
  scroll-margin-top: 5rem;
}

.section h2 {
  font-size: 1.4rem;
  margin-top: 0;
  margin-bottom: 2rem;
  color: var(--fg);
  text-align: center;
}

/* Trust Section */
.trust-section {
  background: var(--bg); /* A subtle, consistent background */
}

.trust-container {
  max-width: 900px;
  margin: 0 auto;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.trust-item {
  text-align: center;
}

.trust-item strong {
  display: block;
  font-size: 1rem;
  color: var(--fg);
  margin-bottom: 0.5rem;
}

.trust-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.section-container {
  border-radius: 1rem;
  padding: 1.5rem 1.75rem;
  background: radial-gradient(circle at top left, #202642, #090b14);
  border: 1px solid var(--border);
  max-width: 50rem;
}

.section p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.section p:last-child {
  margin-bottom: 0;
}

.section strong {
  color: var(--fg);
}

.section code {
  background: rgba(79, 140, 255, 0.15);
  padding: 0.2rem 0.4rem;
  border-radius: 0.3rem;
  font-size: 0.9em;
  color: var(--accent);
}

/* Roadmap Timeline */
.roadmap-section {
  background: var(--bg); /* A subtle, consistent background */
}

.roadmap-timeline {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-left: 0;
  list-style: none;
}

.roadmap-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.roadmap-item:hover {
  background: rgba(27, 31, 43, 0.6);
}

.roadmap-done {
  opacity: 0.5;
}

.roadmap-current {
  border-color: var(--accent);
  background: rgba(79, 140, 255, 0.08);
}

.roadmap-future {
  opacity: 0.8;
}

.roadmap-version {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent);
  min-width: 3rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
}

.roadmap-done .roadmap-version {
  color: var(--muted);
}

.roadmap-desc {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.roadmap-current .roadmap-desc {
  color: var(--fg);
  font-weight: 500;
}

/* Dev Log Terminal */
.devlog-section {
  background: var(--bg); /* A subtle, consistent background */
}

.devlog-terminal {
  max-width: 800px;
  margin: 0 auto;
  background: #0a0c14;
  border: 1px solid #1a1d2e;
  border-radius: 0.75rem;
  padding: 1.5rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

.devlog-entry {
  display: flex;
  margin-bottom: 0.75rem;
  line-height: 1.6;
  font-size: 0.9rem;
}

.devlog-entry:last-child {
  margin-bottom: 0;
}

.devlog-prompt {
  color: #6b9eff;
  font-weight: 600;
  margin-right: 0.5rem;
}

.devlog-command {
  color: #9ea3b0;
}

.devlog-output {
  color: #9ea3b0;
  padding-left: 1rem;
}

.devlog-commit {
  color: #e5c07b;
  margin-right: 0.5rem;
}

.devlog-entry:last-child .devlog-command::after {
  content: "▋";
  animation: blink 1s step-end infinite;
  margin-left: 0.25rem;
  opacity: 1;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.site-footer {
  padding: 2rem 7vw;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  width: 100%;
  max-width: 100%;
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(5, 7, 18, 0.6));
}

@media (min-width: 1400px) {
  .site-footer {
    max-width: var(--max-width);
    margin: 0 auto;
  }
}

.site-footer p {
  margin: 0;
  max-width: 600px;
  margin: 0 auto;
}

/* Compose page specific styles */
.compose-wrap {
  padding: 2.5rem 7vw 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr);
  gap: 2rem;
  box-sizing: border-box;
  max-width: 100%;
}
.compose-form {
  border-radius: 1rem;
  border: 1px solid var(--border, #1b1f2b);
  padding: 1.5rem 1.75rem;
  background: radial-gradient(circle at top left, #202642, #090b14);
  max-height: 90vh;
  overflow-y: auto;
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
}
.compose-form h1 {
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.compose-form .hero-note {
  margin-bottom: 1.25rem;
  line-height: 1.5;
}
.section-divider {
  margin: 1.5rem 0 1rem;
  border-top: 1px solid var(--border, #1b1f2b);
  padding-top: 1rem;
}
.section-toggle {
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent, #6b9eff);
  background: none;
  border: none;
  font-family: inherit;
  width: 100%;
  text-align: left;
}
.section-toggle:hover {
  opacity: 0.8;
}
.toggle-icon {
  font-size: 0.7rem;
}
.section-content {
  margin-top: 0.5rem;
}
.field-group {
  margin-bottom: 1rem;
}
.field-group label {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
  font-weight: 600;
  color: var(--fg);
}
.field-group input[type="text"],
.field-group input[type="number"],
.field-group select {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border, #1b1f2b);
  background: rgba(2, 4, 12, 0.9);
  color: inherit;
  font-size: 0.95rem;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  transition: border-color 0.2s ease;
}

.field-group input[type="text"]:focus,
.field-group input[type="number"]:focus,
.field-group select:focus,
.field-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.field-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2' stroke='%239ea3b0'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5' /%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 1em;
  padding-right: 2.5rem; /* Make space for arrow */
}
.field-row {
  display: flex;
  gap: 1rem;
}
.field-row .field-group {
  flex: 1;
}
.checkbox-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  flex-wrap: wrap;
}
.checkbox-row label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}

/* Checkbox group for vertical layout */
.checkbox-group {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(2, 4, 12, 0.4);
  border-radius: 0.5rem;
  border: 1px solid var(--border);
}

.checkbox-group legend {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  padding: 0 0.25rem;
  color: var(--fg);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  cursor: pointer;
  font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
  cursor: pointer;
  width: 1rem;
  height: 1rem;
  margin: 0;
  flex-shrink: 0;
}

.checkbox-label.disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

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

/* Field hints */
.field-hint {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0 0 0.5rem 0;
  line-height: 1.4;
}

/* Textarea styling */
.field-group textarea {
  width: 100%;
  padding: 0.75rem 0.8rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border, #1b1f2b);
  background: rgba(2, 4, 12, 0.9);
  color: inherit;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
  min-height: 150px;
  line-height: 1.6;
  transition: border-color 0.2s ease, min-height 0.2s ease;
}

/* Monospace only for dockerignore custom patterns */
#custom-patterns {
  font-family: ui-monospace, "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, monospace;
}
.compose-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}
.validation-errors {
  background: rgba(255, 60, 60, 0.15);
  border: 1px solid rgba(255, 60, 60, 0.4);
  border-radius: 0.5rem;
  padding: 0.75rem;
  margin-bottom: 1rem;
  display: none;
}
.error-msg {
  font-size: 0.85rem;
  color: #ff6b6b;
  margin-bottom: 0.25rem;
}
.error-msg:last-child {
  margin-bottom: 0;
}
.output-panel {
  border-radius: 1rem;
  border: 1px solid var(--border, #1b1f2b);
  padding: 1.25rem 1.5rem;
  background: radial-gradient(circle at top, #181d33, #050712);
  display: flex;
  flex-direction: column;
  min-height: 0;
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
}
.output-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  gap: 0.75rem;
}
.output-header h2 {
  font-size: 1rem;
  margin: 0;
}
.output-meta {
  font-size: 0.75rem;
  color: var(--muted, #9ea3b0);
}
pre {
  margin: 0;
  padding: 0.75rem 0.9rem;
  background: rgba(3, 6, 18, 0.9);
  border-radius: 0.6rem;
  border: 1px solid var(--border, #1b1f2b);
  font-size: 0.85rem;
  line-height: 1.4;
  overflow-x: auto;
  max-height: 70vh;
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  white-space: pre;
}
.copy-status {
  font-size: 0.8rem;
  color: var(--muted, #9ea3b0);
}
.usage-note {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(107, 158, 255, 0.1);
  border: 1px solid rgba(107, 158, 255, 0.3);
  border-radius: 0.5rem;
  font-size: 0.85rem;
  line-height: 1.5;
}
.usage-note code {
  background: rgba(2, 4, 12, 0.6);
  padding: 0.2rem 0.4rem;
  border-radius: 0.3rem;
  font-size: 0.8rem;
}

/* Mobile & Responsive */
@media (max-width: 900px) {
  .compose-wrap {
    grid-template-columns: 1fr;
    padding: 1rem 0.5rem;
    gap: 1rem;
    max-width: 100vw;
    box-sizing: border-box;
  }

  .compose-form,
  .output-panel {
    padding: 1rem 0.75rem;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .output-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .output-header > div {
    width: 100%;
  }

  .output-header button {
    width: 100%;
  }

  pre {
    padding: 0.5rem;
    font-size: 0.75rem;
  }

  .usage-note {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 800px) {
  .hero {
    padding: 2.5rem 1rem 2rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-features {
    font-size: 0.85rem;
  }

  .tools-section {
    padding: 2rem 1rem;
  }

  .tools-section h2 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
  }

  .tools-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .tool-card {
    padding: 1.25rem;
  }

  .section {
    padding: 1.5rem 1rem;
  }

  .section h2 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
  }

  .section-container {
    padding: 1.25rem 1rem;
  }

  .roadmap-timeline {
    gap: 0.5rem;
  }

  .roadmap-item {
    padding: 0.85rem 1rem;
    gap: 1rem;
  }

  .roadmap-version {
    min-width: 2.5rem;
    font-size: 0.85rem;
  }

  .roadmap-desc {
    font-size: 0.9rem;
  }

  .devlog-terminal {
    padding: 1rem;
    font-size: 0.85rem;
  }

  .devlog-date {
    min-width: 8rem;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    box-sizing: border-box;
  }

  .site-footer {
    padding: 2rem 1rem;
  }

  .nav {
    margin-top: 0.5rem;
  }

  .nav a {
    margin-left: 0;
    margin-right: 1rem;
  }

  .field-row {
    flex-direction: column;
    gap: 0;
  }

  .field-group {
    margin-bottom: 1rem;
  }

  .checkbox-row {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }
}

@media (max-width: 500px) {
  .compose-wrap {
    padding: 0.75rem 0.5rem;
  }

  .compose-form,
  .output-panel {
    padding: 0.75rem 0.5rem;
    border-radius: 0.5rem;
  }

  .site-header {
    padding: 0.75rem 0.5rem;
  }

  .site-footer {
    padding: 1.5rem 0.5rem;
  }

  .hero {
    padding: 2rem 0.5rem 1.5rem;
  }

  .hero-content h1 {
    font-size: 1.75rem;
  }

  .hero-features {
    font-size: 0.8rem;
  }

  .hero-panel {
    padding: 1rem 0.85rem;
  }

  .tools-section {
    padding: 1.5rem 0.5rem;
  }

  .tools-grid {
    gap: 0.75rem;
  }

  .tool-card {
    padding: 1rem;
  }

  .tool-card h3 {
    font-size: 1rem;
  }

  .tool-desc {
    font-size: 0.8rem;
  }

  .tool-features li {
    font-size: 0.85rem;
  }

  .trust-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .section {
    padding: 1rem 0.5rem;
  }

  .section h2 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }

  .section-container {
    padding: 1rem 0.75rem;
  }

  .roadmap-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
  }

  .roadmap-version {
    font-size: 0.8rem;
  }

  .roadmap-desc {
    font-size: 0.85rem;
  }

  .devlog-terminal {
    padding: 0.75rem;
    font-size: 0.8rem;
  }

  .devlog-entry {
    gap: 0.35rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
  }

  pre {
    padding: 0.5rem;
    font-size: 0.7rem;
  }

  .usage-note {
    padding: 0.5rem;
    font-size: 0.75rem;
  }
}

/* Feedback Modal */
.feedback-modal {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.feedback-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
}

.feedback-content {
  position: relative;
  background: radial-gradient(circle at top, #151829, #050712 85%);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.feedback-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.feedback-header h2 {
  font-size: 1.4rem;
  margin: 0;
}

.feedback-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  transition: all 0.2s;
}

.feedback-close:hover {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.08);
}

.feedback-form {
  margin-bottom: 1rem;
}

.feedback-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  justify-content: flex-end;
}

.feedback-status {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 0.4rem;
  font-size: 0.9rem;
  text-align: center;
  display: none;
}

.feedback-status:not(:empty) {
  display: block;
}

.feedback-status-success {
  background: rgba(40, 200, 120, 0.15);
  border: 1px solid rgba(40, 200, 120, 0.4);
  color: #5ed9a0;
}

.feedback-status-error {
  background: rgba(255, 60, 60, 0.15);
  border: 1px solid rgba(255, 60, 60, 0.4);
  color: #ff6b6b;
}

.feedback-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 1.5rem 0 0;
  line-height: 1.5;
  text-align: center;
}

.feedback-note a {
  color: var(--accent);
  text-decoration: none;
}

.feedback-note a:hover {
  text-decoration: underline;
}

.feedback-cancel {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
}

.feedback-cancel:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--fg);
}

/* Panel header for output sections */
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.panel-header h2 {
  margin: 0;
  font-size: 1.2rem;
}

.panel-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}



@media (max-width: 768px) {
  .feedback-content {
    padding: 1.25rem;
    max-height: 95vh;
  }

  .feedback-header h2 {
    font-size: 1.1rem;
  }
}

/* FAQ Page */
.faq-section {
  padding: 2rem 7vw 4rem;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-question {
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
}

.faq-question::after {
  content: '+';
  font-size: 1.8rem;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding-top 0.3s ease;
  padding-top: 0;
  color: var(--muted);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 300px; /* Adjust as needed */
  padding-top: 1rem;
}

.faq-answer p {
  margin: 0 0 1rem 0;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer a {
  color: var(--accent);
  text-decoration: none;
}

.faq-answer a:hover {
  text-decoration: underline;
}
