:root {
  --bg: #edf2fb;
  --bg-soft: #f6f8fd;
  --surface: #ffffff;
  --surface-2: #f8faff;
  --text: #1f2a44;
  --muted: #596b8c;
  --accent: #5f8dff;
  --accent-2: #3fd8be;
  --border: #d6e0f2;
  --danger: #c93f5f;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  background:
    radial-gradient(circle at 10% 8%, rgba(84, 198, 255, 0.08), transparent 40%),
    radial-gradient(circle at 90% 0%, rgba(80, 130, 255, 0.08), transparent 34%),
    linear-gradient(180deg, #f9fbff, var(--bg));
  color: var(--text);
}

#app { min-height: 100vh; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 20px 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.card {
  background: linear-gradient(180deg, var(--surface), #f4f7ff);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 14px 28px rgba(18, 39, 84, 0.12);
}

.hero h1 { font-size: clamp(1.8rem, 3vw, 2.8rem); margin: 0 0 10px; }
.hero p { color: #5a7198; margin-top: 0; }


.hero-org-word-mobile {
  display: none;
}

.first-time-org-input {
  border-color: #4c84ff;
  box-shadow: 0 0 0 3px rgba(76, 132, 255, 0.24);
  animation: firstTimeInputPulse 1.3s ease-in-out infinite;
}

.first-time-org-hint {
  color: #2f61bf;
  font-weight: 600;
}

@keyframes firstTimeInputPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(76, 132, 255, 0.42);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(76, 132, 255, 0);
  }
}

button, .button {
  background: #e8efff;
  color: #1f355d;
  border: 1px solid #b8caf0;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 600;
}
button:hover { filter: brightness(1.1); }
button:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-accent { background: linear-gradient(90deg, #3772ff, #2ac2ff); color: #fff; border-color: #4da3ff; }
.btn-danger { background: #fee8ef; border-color: #e9a0b7; color: #8a1f44; }
.btn-ghost { background: transparent; }

.btn-ready-skill {
  background: linear-gradient(180deg, #ffe57a, #ffd84c);
  border-color: #d3a400;
  color: #5b4300;
}

.btn-ready-skill:hover {
  filter: brightness(1.05);
}

.dept-stack { display: grid; gap: 12px; margin-top: 18px; }
.dept-tile { display: flex; justify-content: space-between; align-items: center; }
.dept-tile-actions { display: flex; align-items: center; gap: 8px; }
.dept-tile h3 { margin: 0; }
.dept-tile p { margin: 6px 0 0; color: var(--muted); }

.input-row, .venture-grid {
  display: grid;
  gap: 10px;
}
.venture-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 16px 0; }
input, textarea, select {
  width: 100%;
  background: #f8fbff;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
}

.section-title { margin: 20px 0 10px; color: #526b9e; font-size: 1rem; font-family: "Press Start 2P", monospace; line-height: 1.5; }
.section-title-row { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-title-row .section-title { margin: 0; }
.templates-grid, .skills-list { display: grid; gap: 10px; }
.template-card { cursor: pointer; }
.template-card h4 { margin: 0 0 8px; }

.template-card-complete {
  border-color: #6fbf9d;
  box-shadow: 0 0 0 1px rgba(111, 191, 157, 0.25), 0 14px 28px rgba(18, 39, 84, 0.12);
}

.template-status-badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #69b78f;
  background: #e9fff4;
  color: #256947;
  font-size: 0.75rem;
  font-weight: 700;
}
.meta { font-size: 0.85rem; color: #6780a6; }
.skill-list-item { display:flex; justify-content:space-between; gap:10px; align-items:center; }

.skill-list-item-complete {
  border-color: #6fbf9d;
  box-shadow: 0 0 0 1px rgba(111, 191, 157, 0.25), 0 14px 28px rgba(18, 39, 84, 0.12);
}

.skill-file-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #69b78f;
  background: #e9fff4;
  color: #256947;
  font-size: 0.75rem;
  font-weight: 700;
}

.editor-layout { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.panel-title { margin-top: 0; }
.doc-area { min-height: 420px; }
.chat-panel {
  display: flex;
  flex-direction: column;
  min-height: 540px;
  position: relative;
  padding-bottom: 78px;
}
.messages { overflow: auto; max-height: 370px; display: grid; gap: 8px; }
.msg { padding: 10px; border-radius: 10px; border: 1px solid var(--border); }
.msg.user { background: #e5efff; }
.msg.assistant { background: #f3f7ff; }
.msg.small { font-size: 0.9rem; color: #b9cdf7; }

 .question-card {
  border: 1px solid #c8d6f2;
  background: #f5f9ff;
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 8px;
}

.question-card-prominent {
  border-color: #86a7e6;
  background: linear-gradient(180deg, #f8fbff, #ebf3ff);
}

.question-current-text {
  margin-top: 8px;
  font-size: 1.05rem;
  line-height: 1.5;
  color: #234271;
  font-weight: 600;
}

.question-answer-input {
  min-height: 140px;
}

.chat-input-dock {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-top: 1px solid var(--border);
  background: #f8fbff;
  padding: 10px;
  border-radius: 0 0 14px 14px;
}
.chat-actions { display:flex; gap:8px; flex-wrap: wrap; margin-top: 8px; }

.tools { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1px solid #4d72c5;
  padding: 6px 10px;
  border-radius: 999px;
  background: #ebf2ff;
  font-size: 0.85rem;
}
.chip.highlight {
  animation: pulse 1.2s infinite;
  border-color: var(--accent-2);
  box-shadow: 0 0 12px rgba(94, 242, 194, 0.6);
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.04); }
  100% { transform: scale(1); }
}


.tool-custom-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.tool-custom-form input {
  min-width: 180px;
  flex: 1 1 220px;
}

.tool-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tool-meta {
  font-size: 0.75rem;
  color: var(--muted);
  display: inline-flex;
  gap: 6px;
}
.accordion summary { cursor: pointer; color: #5e78ab; }
.topbar { display:flex; justify-content:space-between; align-items:center; gap: 10px; flex-wrap: wrap; }

.intro-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
}

.human-check-gate {
  min-height: 100vh;
  background: #ffffff;
  display: grid;
  place-items: center;
  padding: 22px;
}

.human-check-panel {
  width: min(680px, 100%);
  display: grid;
  justify-items: center;
  gap: 14px;
}

.human-check-message {
  margin: 0;
  color: #0f172a;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 600;
  text-align: center;
}

.intro-panel {
  width: min(880px, 100%);
  border-radius: 18px;
  border: 1px solid #cdd9ef;
  background:
    linear-gradient(180deg, #ffffff, #f6f8ff);
  box-shadow:
    0 18px 42px rgba(33, 58, 112, 0.14),
    inset 0 0 0 1px rgba(173, 198, 235, 0.24);
  padding: clamp(24px, 6vw, 52px);
  position: relative;
}

.intro-title {
  font-family: "Press Start 2P", monospace;
  color: #4d6ea6;
  letter-spacing: 1px;
  margin: 0;
  font-size: clamp(1rem, 3.6vw, 2.2rem);
  text-shadow: 0 0 16px rgba(120, 201, 255, 0.55);
}

.intro-subtitle {
  margin: 18px 0;
  color: #5f7aa7;
}

.intro-logo {
  display: block;
  width: clamp(140px, 24vw, 260px);
  max-width: 60%;
  height: auto;
  margin: 0 auto 20px;
  object-fit: contain;
}

.captcha-wrap {
  margin: 18px 0 8px;
  display: grid;
  justify-items: center;
  gap: 10px;
}

.captcha-error {
  margin: 0;
  color: #a72239;
  font-weight: 600;
  font-size: 0.9rem;
}

.intro-loader-wrap {
  margin: 20px 0 14px;
  display: grid;
  place-items: center;
  min-height: 42px;
}

/* HTML: <div class="loader"></div> */
.loader {
  width: 45px;
  height: 30px;
  background:
    linear-gradient(#004ce4 0 0) 0 100%/100% 50%,
    linear-gradient(#004ce4 0 0) 0 0 /calc(100%/3) 100%;
  background-repeat: no-repeat;
  position: relative;
  clip-path: inset(-100% 0 0 0);
  animation: l2-0 2s infinite steps(4);
}

.loader::before,
.loader::after {
  content: "";
  position: absolute;
  inset: -50% 0 50%;
  background:
    linear-gradient(#00e622 0 0) 0 0 /calc(2*100%/3) 50%,
    linear-gradient(#00e622 0 0) 100% 100%/calc(2*100%/3) 50%;
  background-repeat: no-repeat;
  animation: inherit;
  animation-name: l2-1;
}

.loader::after {
  inset: -100% 0 100%;
  background:
    linear-gradient(#e50021 0 0) 0 0/100% 50%,
    linear-gradient(#e50021 0 0) 100% 0/calc(100%/3) 100%;
  background-repeat: no-repeat;
  animation-name: l2-2;
}

@keyframes l2-0 {
  0% { transform: translateY(-250%); clip-path: inset(100% 0 0 0); }
  25%, 100% { transform: translateY(0); clip-path: inset(-100% 0 0 0); }
}

@keyframes l2-1 {
  0%, 25% { transform: translateY(-250%); }
  50%, 100% { transform: translateY(0); }
}

@keyframes l2-2 {
  0%, 50% { transform: translateY(-250%); }
  75%, 100% { transform: translateY(0); }
}

.enter-prompt {
  display: inline-block;
  margin-top: 6px;
  font-family: "Press Start 2P", monospace;
  color: #58ffd0;
  text-transform: uppercase;
  font-size: clamp(0.78rem, 2.2vw, 1rem);
  text-shadow: 0 0 18px rgba(87, 255, 212, 0.65);
  animation: blink 1.1s steps(1, end) infinite;
}

.intro-hint {
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.9rem;
}

@keyframes blink {
  0%, 46% { opacity: 1; }
  47%, 100% { opacity: 0.12; }
}

@media (max-width: 860px) {
  .editor-layout { grid-template-columns: 1fr; }

  .hero-org-word-desktop {
    display: none;
  }

  .hero-org-word-mobile {
    display: inline;
  }
  .doc-panel { order: 1; }
  .chat-panel { order: 2; min-height: 500px; }
  .chat-input-dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px 12px 0 0;
    z-index: 20;
  }
  .chat-panel { padding-bottom: 140px; }
  body { padding-bottom: 110px; }
}


.brand {
  font-family: "Press Start 2P", monospace;
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--accent);
  margin-bottom: 14px;
}

.editor-shell {
  max-width: 100%;
  min-height: 100vh;
}

.editor-shell .editor-layout {
  min-height: calc(100vh - 170px);
}

.template-card {
  border-left: 4px solid #9fb4ea;
}

.dept-column {
  align-items: flex-start;
  gap: 16px;
}

.template-preview-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.template-preview-start {
  font-size: 0.78rem;
  padding: 6px 10px;
}

.template-preview-start-complete {
  background: linear-gradient(180deg, #ffe57a, #ffd84c);
  border-color: #d3a400;
  color: #5b4300;
}

.template-preview-start-complete:hover {
  filter: brightness(1.05);
}

.template-preview-custom {
  border-style: dashed;
}

.template-card-add-custom {
  border-style: dashed;
}


.progress-card {
  margin: 12px 0;
  background: linear-gradient(180deg, #f7faff, #edf3ff);
}

.progress-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.progress {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  border: 1px solid #c1d3f2;
  background: #e9f1ff;
  overflow: hidden;
}

.progress-sm {
  height: 8px;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #6f91d8, #66cdae);
  transition: width 220ms ease;
}

.progress-help {
  margin: 8px 0;
}

.progress-help-btn {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  padding: 0;
  margin-left: 6px;
  font-size: 0.78rem;
  line-height: 1;
  background: #edf3ff;
  border-color: #b7c8ef;
}

.progress-help.compact {
  margin: 8px 0 0;
}


.rate-limit-notice-blocking {
  position: fixed;
  inset: 0;
  z-index: 1200;
}

.rate-limit-notice-toast-wrap {
  position: fixed;
  inset: 0;
  z-index: 1200;
  pointer-events: none;
}

.rate-limit-toast {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: min(420px, calc(100vw - 28px));
  background: linear-gradient(180deg, #fff7da, #ffefbc);
  border: 1px solid #e2c45b;
  border-radius: 14px;
  box-shadow: 0 18px 34px rgba(20, 40, 80, 0.2);
  padding: 12px 14px;
  pointer-events: auto;
}

.rate-limit-toast strong {
  display: block;
  margin-bottom: 4px;
}

.rate-limit-toast p {
  margin: 0 0 10px;
  color: #533f00;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 26, 48, 0.62);
  z-index: 90;
  display: grid;
  grid-template-columns: minmax(210px, 290px) minmax(320px, 680px);
  gap: 18px;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox-notes {
  background: rgba(248, 251, 255, 0.93);
  border: 1px solid #d5def5;
  color: #22325b;
  border-radius: 14px;
  padding: 14px;
  min-height: 200px;
  backdrop-filter: blur(2px);
}

.lightbox {
  background: linear-gradient(180deg, #ffffff, #f7faff);
  border: 1px solid #d3ddf6;
  border-radius: 16px;
  box-shadow: 0 22px 50px rgba(14, 29, 66, 0.3);
  padding: 18px;
}

.lightbox h3 {
  margin: 0 0 6px;
}

.lightbox hr {
  border: none;
  border-top: 1px solid #dde4f7;
  margin: 14px 0;
}

@media (max-width: 860px) {
  .lightbox-overlay {
    grid-template-columns: 1fr;
    align-content: center;
  }

  .lightbox-notes {
    order: 2;
  }
}


.msg.warn { border-color: #e7a2b7; background: #fff0f4; color: #8f2948; }

.tutorial-inline {
  border: 1px dashed #b7c9ee;
  background: #f4f8ff;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 8px;
  position: relative;
}

.tutorial-inline-title { font-weight: 700; color: #3f5f98; }
.tutorial-inline-text { color: #5f76a1; font-size: 0.92rem; margin-top: 4px; }
.tutorial-arrow {
  position: absolute;
  right: 10px;
  top: 8px;
  color: #5f79ac;
  font-size: 1rem;
}

.intro-emphasis {
  box-shadow: 0 0 0 3px rgba(137, 171, 233, 0.2);
}

.question-card-focus {
  box-shadow: 0 0 0 4px rgba(103, 140, 212, 0.25);
}

.first-run-overlay {
  position: fixed;
  inset: 0;
  background: rgba(242, 247, 255, 0.7);
  backdrop-filter: blur(2px);
  pointer-events: none;
  z-index: 4;
}

.editor-layout, .chat-panel, .doc-panel, .topbar, .tutorial-inline { position: relative; z-index: 5; }
.onboard-blur { filter: blur(0.6px); opacity: 0.8; }


.points-hud {
  position: fixed;
  top: 16px;
  right: 18px;
  z-index: 120;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #9fb7eb;
  background: linear-gradient(180deg, #ffffff, #e8f0ff);
  box-shadow: 0 10px 18px rgba(16, 44, 102, 0.14);
  color: #4462a8;
  font-family: "Press Start 2P", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.6px;
  appearance: none;
  cursor: pointer;
}


h1, h2, h3, h4, .panel-title, .tutorial-inline-title, .brand, .intro-title {
  font-family: "Press Start 2P", monospace;
  line-height: 1.4;
}

p, .meta, label, button, input, textarea, select, .tutorial-inline-text, .msg {
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
}

.gated-note {
  margin: 16px 2px 4px;
  padding: 12px 14px;
  border: 1px dashed #b5c7e9;
  border-radius: 12px;
  background: #f5f8ff;
}

.hero {
  margin-top: 24px;
}

@media (max-width: 860px) {
  .points-hud {
    right: 12px;
    top: 12px;
    font-size: 0.64rem;
    padding: 8px 10px;
  }
}


.venture-search-results {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f8fbff;
  margin-top: 8px;
  max-height: 190px;
  overflow: auto;
  padding: 8px;
  display: grid;
  gap: 8px;
}

.venture-option-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.venture-option-select {
  text-align: left;
}

.venture-option-delete {
  min-width: 40px;
  padding: 8px 10px;
  background: #ffe8ee;
  border-color: #e5a8b9;
}

.venture-empty {
  margin: 0;
  padding: 4px 6px;
}
.venture-type-scroll {
  max-height: 170px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f8fbff;
  padding: 8px;
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.venture-type-option {
  text-align: left;
}

.venture-type-option.selected {
  background: linear-gradient(90deg, #3772ff, #2ac2ff);
  color: #fff;
}

.skill-lightbox {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(13, 24, 46, 0.6);
  z-index: 30;
  padding: 18px;
}

.skill-lightbox-panel {
  width: min(740px, 100%);
}

.retro-btn {
  border-radius: 4px;
  border: 2px solid #8ea2ca;
  box-shadow: 2px 2px 0 #9bb1d8;
  background: linear-gradient(180deg, #f8fbff, #dce8ff);
}

.retro-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 #9bb1d8;
}

.skill-lightbox-locked {
  z-index: 140;
  background: rgba(8, 15, 31, 0.92);
}

.skill-lightbox-locked .skill-lightbox-panel {
  position: relative;
  width: min(760px, 100%);
  padding-top: 44px;
}

.lightbox-close {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  padding: 0;
  font-size: 1rem;
  line-height: 1;
}

.question-lightbox-panel {
  border-radius: 0 0 14px 14px;
}

.question-warning-toast {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  transform: translateY(-100%);
  border-radius: 10px 10px 0 0;
  border: 1px solid #f0c482;
  border-bottom: none;
  background: linear-gradient(90deg, #ffefce, #ffe4b3);
  color: #6f4a18;
  padding: 7px 12px;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.import-panel {
  width: min(560px, 100%);
}

.editor-loading-overlay-panel {
  text-align: center;
}


.saved-notice-panel {
  width: min(320px, 100%);
  text-align: center;
}

.saved-notice-panel h3 {
  margin: 4px 0;
  color: #2b5a2f;
}

.editor-loading-overlay-panel .loading-dots {
  margin-top: 10px;
}

.import-panel select {
  width: 100%;
  margin-top: 6px;
}

.import-blurred {
  opacity: 0.45;
  filter: blur(0.4px);
}



.top-nav,
.app-footer {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border-radius: 0;
  border-left: none;
  border-right: none;
  padding-left: clamp(14px, 3vw, 28px);
  padding-right: clamp(14px, 3vw, 28px);
}

.top-nav {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
}

.top-nav-logo {
  font-family: "Press Start 2P", monospace;
  color: var(--accent);
  font-size: 0.95rem;
}

.top-nav-menu-wrap { position: relative; }

.hamburger-btn {
  min-width: 42px;
  font-size: 1.1rem;
  line-height: 1;
}

.top-nav-menu[hidden] {
  display: none !important;
}

.top-nav-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 60;
  display: grid;
  gap: 10px;
  width: 210px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f8fbff;
  box-shadow: 0 12px 20px rgba(20, 40, 80, 0.16);
}

.menu-item {
  width: fit-content;
  text-align: left;
  display: inline;
  text-decoration: none;
  color: #4a70b9;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-weight: 500;
  font-family: "Press Start 2P", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  text-shadow: 0 0 0 rgba(76, 132, 255, 0);
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.menu-item:hover {
  color: #2d58a8;
  text-shadow: 0 0 8px rgba(76, 132, 255, 0.55);
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.link-btn-sm {
  border: none;
  background: transparent;
  color: #4a70b9;
  text-decoration: underline;
  font-size: 0.8rem;
  padding: 0;
}

.form-hint {
  margin-top: 6px;
  color: #4b6ca7;
  font-size: 0.82rem;
}

.meta-inline {
  font-size: 0.82rem;
  color: #6780a6;
}


.venture-description-inline {
  margin: 8px 0 0;
  max-width: 820px;
}

.venture-description-inline .link-btn-sm {
  margin-left: 6px;
}
.dept-header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.venture-switch-select {
  width: auto;
  min-width: 180px;
  max-width: 260px;
  font-size: 0.86rem;
  padding: 8px;
}

.danger-zone {
  margin-top: 14px;
  border-color: #e5b7c4;
  background: #fff7fa;
}

.danger-zone .btn-danger {
  margin-right: 8px;
}

.editor-danger-zone {
  margin-top: 18px;
}

.editor-danger-zone .btn-danger {
  margin-right: 0;
}

.app-footer {
  margin-top: auto;
  margin-bottom: 0;
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: #ffffff;
  box-shadow: none;
  border-top: 1px solid #d6e0f2;
  border-bottom: none;
  padding-top: 20px;
  padding-bottom: 20px;
}

.app-footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.app-footer-credit {
  margin: 0;
}

.app-footer-credit a {
  color: #4a70b9;
}

.preserve-whitespace {
  white-space: pre-wrap;
}

.loading-dots {
  font-family: "Press Start 2P", monospace;
  color: #4c6fb2;
  letter-spacing: 3px;
  margin-top: 6px;
}

.loading-dots span {
  display: inline-block;
  animation: loadingDot 1s infinite ease-in-out;
}

.loading-dots span:nth-child(2) { animation-delay: 0.18s; }
.loading-dots span:nth-child(3) { animation-delay: 0.36s; }

@keyframes loadingDot {
  0%, 100% { opacity: 0.2; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-2px); }
}


.template-bubble-add {
  width: fit-content;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.8rem;
  border: 1px solid #9fb4ea;
  background: #f3f8ff;
}

.template-bubble-add:hover {
  background: #e7f1ff;
}


.top-nav-logo.btn-ghost {
  border: none;
  background: transparent;
  padding: 0;
}

.btn-tool-remove {
  padding: 4px 8px;
  font-size: 0.75rem;
}
