:root {
  --bg: linear-gradient(135deg, #f8f8f8, #ececec);
  --surface: #ffffff;
  --text: #1a1a2e;
  --text-secondary: #6b7280;
  --accent: #6b7280;
  --accent-hover: #2563eb;
  --accent-light: #eff6ff;
  --border: #e5e7eb;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 8px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.10);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w: 720px;
  --transition: 0.2s ease;
  --sans: 'Nunito', sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --bg-page: #f0eff4;
  --surface-hov: rgba(255, 255, 255, 0.88);
  --surface-solid: #ffffff;
  --border: rgba(0, 0, 0, 0.07);
  --border2: rgba(0, 0, 0, 0.12);
  --purple: #c8b4f5;
  --green: #a8d8b0;
  --blue: #94c5f5;
  --amber: #f5c87a;
  --red: #f5a0a0;
  --accent-green: #2db87a;
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-amber: #f59e0b;
  --accent-red: #ef4444;
  --text: #1a1d2e;
  --muted: #6b7280;
  --subtle: #9ca3af;
  color-scheme: light;
}

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



::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.25);
}


* {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  -webkit-text-size-adjust: 100%;
}

.hidden {
  display: none !important;
}

.boot-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1s ease, visibility 1s ease;
}

.boot-fluid-canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.boot-overlay--fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot-container {
  width: 100%;
  max-width: 960px;
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  gap: 3.5rem;
  animation: fadeIn 0.5s ease;
}

.boot-left {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.boot-photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1),
    opacity 0.8s ease;
}

.boot-photo__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.boot-intro {
  text-align: center;
}

.boot-intro__greeting {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  margin-bottom: 0.25rem;
  animation: boot-intro-fade 1s ease;
}

.boot-intro__name {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 0.35rem;
  animation: boot-intro-fade 1s ease;
}

@keyframes boot-blink-caret {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

@keyframes boot-intro-fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes boot-pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.boot-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}

.boot-status {
  font-size: 0.81rem;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0.01em;
  min-height: 1.2em;
}


.shimmer {
  color: rgba(255, 255, 255, 0.1);
  background: -webkit-gradient(linear, left top, right top, from(#222), to(#222), color-stop(0.5, #fff));
  background: -moz-gradient(linear, left top, right top, from(#222), to(#222), color-stop(0.5, #fff));
  background: gradient(linear, left top, right top, from(#222), to(#222), color-stop(0.5, #fff));
  -webkit-background-size: 125px 100%;
  -moz-background-size: 125px 100%;
  background-size: 125px 100%;
  -webkit-background-clip: text;
  -moz-background-clip: text;
  background-clip: text;
  -webkit-animation-name: shimmer;
  -moz-animation-name: shimmer;
  animation-name: shimmer;
  -webkit-animation-duration: 2s;
  -moz-animation-duration: 2s;
  animation-duration: 2s;
  -webkit-animation-iteration-count: infinite;
  -moz-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
  background-repeat: no-repeat;
  background-position: 0 0;
  background-color: #222;
}

@-moz-keyframes shimmer {
  0% {
    background-position: top left;
  }

  100% {
    background-position: top right;
  }
}

@-webkit-keyframes shimmer {
  0% {
    background-position: top left;
  }

  100% {
    background-position: top right;
  }
}

@-o-keyframes shimmer {
  0% {
    background-position: top left;
  }

  100% {
    background-position: top right;
  }
}

@keyframes shimmer {
  0% {
    background-position: top left;
  }

  100% {
    background-position: top right;
  }
}



.boot-status--ready {
  color: #22c55e;
  font-weight: 600;
}

.boot-showcase {
  width: 100%;
  min-height: 110px;
  position: relative;
}

.boot-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(9.5px);
  -webkit-backdrop-filter: blur(9.5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  animation: boot-card-in 0.7s cubic-bezier(0.25, 1, 0.5, 1) both;
  min-height: 9rem;
}

.boot-card--out {
  animation: boot-card-out 0.5s ease both;
}

@keyframes boot-card-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes boot-card-out {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }
}

.boot-card__label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-hover);
  margin-bottom: 0.5rem;
}

.boot-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.boot-card__desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.boot-fact {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-style: italic;
  min-height: 2.8em;
  transition: opacity 0.25s ease;
  display: flex;
  align-items: flex-start;
}

@media (max-width: 768px) {
  .boot-container {
    flex-direction: column;
    padding: 2rem 1.25rem;
    gap: 2rem;
    max-width: 520px;
  }

  .boot-left {
    flex-direction: row;
    gap: 1.25rem;
    text-align: left;
    width: 100%;
  }

  .boot-intro {
    text-align: left;
  }

  .boot-photo {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
  }

  .boot-intro__name {
    font-size: 2rem;
  }

  .boot-intro__greeting {
    font-size: 0.88rem;
  }
}

@media (max-width: 640px) {
  .boot-container {
    padding: 1.5rem 1rem;
    gap: 1.5rem;
  }

  .boot-photo {
    width: 80px;
    height: 80px;
  }

  .boot-intro__name {
    font-size: 1.7rem;
  }

  .boot-intro__greeting {
    font-size: 0.82rem;
  }

  .boot-steps {
    gap: 0.35rem;
  }

  .boot-step {
    font-size: 0.76rem;
  }

  .boot-card {
    padding: 1rem 1.15rem;
  }

  .boot-card__title {
    font-size: 0.92rem;
  }

  .boot-card__desc {
    font-size: 0.78rem;
  }

  .boot-fact {
    font-size: 0.76rem;
  }
}

@media (max-width: 380px) {
  .boot-container {
    padding: 1rem 0.75rem;
    gap: 1.25rem;
  }

  .boot-photo {
    width: 64px;
    height: 64px;
  }

  .boot-intro__name {
    font-size: 1.5rem;
  }

  .boot-intro__greeting {
    font-size: 0.78rem;
  }

  .boot-step {
    font-size: 0.72rem;
  }

  .boot-card__title {
    font-size: 0.85rem;
  }
}

.fluid-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.fluid-canvas--hidden {
  opacity: 0;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 3rem 1.5rem 2rem;
  text-align: center;
  transition: min-height 0.4s ease;
  overflow-y: auto;
  flex-shrink: 0;
  justify-content: center;
}

.hero--compact {
  min-height: auto;
  padding: 1.5rem 1.5rem 0.5rem;
  flex-shrink: 0;
  overflow-y: auto;
}

.hero--compact .hero__greeting,
.hero--compact .hero__title {
  display: none;
}

.hero--compact .hero__avatar {
  margin-bottom: 1rem;
}

.hero--compact .avatar-placeholder {
  width: 80px;
  height: 80px;
}

.hero__greeting {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
  animation: drop-in 0.8s ease-out forwards;
}

.hero__title {
  font-family: "Just Another Hand", cursive;
  font-size: 2.9rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 2rem;
  max-width: 600px;
  letter-spacing: 0.13em;
  animation: drop-in 0.8s ease-out forwards;
}

.hero__avatar {
  margin-bottom: 2.5rem;
}

.avatar-placeholder {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin: 0 auto;
}

.avatar--large {
  width: 160px;
  height: 160px;
  font-size: 3.5rem;
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.chat-input {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(9.5px);
  -webkit-backdrop-filter: blur(9.5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 100px;
  padding: 0.35rem 0.35rem 0.35rem 1.25rem;
  width: 100%;
  max-width: 520px;
  min-width: 400px;
  margin: 0 auto;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  transition: border-color var(--transition), box-shadow var(--transition);
  animation: drop-in-bottom 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.chat-input:focus-within {
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.chat-input input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.95rem;
  font-family: var(--font);
  color: var(--text);
  background: transparent;
}

.chat-input input::placeholder {
  color: var(--text-secondary);
}

.chat-submit {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(9.5px);
  -webkit-backdrop-filter: blur(9.5px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.chat-submit:hover {
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
  transform: scale(1.05);
}

.chat-submit:active {
  transform: scale(0.95);
}

.hero__actions,
.bottom-bar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 1.5rem;
  max-width: 800px;
  animation: drop-in-bottom 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 1.95rem 1.8rem;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  min-width: 129px;

  background: rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(9.5px);
  -webkit-backdrop-filter: blur(9.5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.action-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--shadow-md);
}

.action-btn__icon {
  font-size: 1.2rem;
}

.inline-profile {
  align-self: flex-start;
  width: 100%;
  max-width: 100%;
  display: flex;
  gap: 2rem;
  padding: 1.5rem 0;
  background: transparent;
  animation: fadeIn 0.3s ease;
}

.inline-profile__avatar {
  width: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.inline-profile__avatar .avatar-img {
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: 0;
  object-fit: contain;
}

.inline-profile__content {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.inline-profile__name {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.inline-profile__title {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.inline-profile__summary {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.inline-profile__skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  background: transparent;
  border: 1.5px solid var(--text);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 500;
}

.chat-section {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 160px;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chat-bubble {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  max-width: 90%;
  font-size: 0.92rem;
  line-height: 1.65;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-bubble--user {
  background: var(--accent);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-bubble--fade {
  animation: fadeOut 0.5s ease forwards;
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-4px);
    height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
  }
}

.chat-bubble--assistant {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-sm);
}


.chat-bubble--assistant h1 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 1rem 0 0.4rem;
  color: var(--text);
}

.chat-bubble--assistant h2 {
  font-size: 1.02rem;
  font-weight: 700;
  margin: 0.9rem 0 0.35rem;
  color: var(--text);
}

.chat-bubble--assistant h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0.75rem 0 0.3rem;
  color: var(--text);
}

.chat-bubble--assistant h1:first-child,
.chat-bubble--assistant h2:first-child,
.chat-bubble--assistant h3:first-child {
  margin-top: 0;
}

.chat-bubble--assistant p {
  margin: 0.4rem 0;
  line-height: 1.7;
}

.chat-bubble--assistant p:first-child {
  margin-top: 0;
}

.chat-bubble--assistant p:last-child {
  margin-bottom: 0;
}

.chat-bubble--assistant ul,
.chat-bubble--assistant ol {
  padding-left: 1.35rem;
  margin: 0.4rem 0;
}

.chat-bubble--assistant li {
  margin: 0.25rem 0;
  line-height: 1.6;
}

.chat-bubble--assistant li::marker {
  color: var(--accent);
}

.chat-bubble--assistant strong {
  font-weight: 600;
  color: var(--text);
}

.chat-bubble--assistant code {
  background: #f1f5f9;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.84em;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  color: #e11d48;
}

.chat-bubble--assistant pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-xs);
  overflow-x: auto;
  margin: 0.5rem 0;
  font-size: 0.82em;
  line-height: 1.5;
}

.chat-bubble--assistant pre code {
  background: none;
  color: inherit;
  padding: 0;
  font-size: inherit;
}

.chat-bubble--assistant blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.3rem 0 0.3rem 0.85rem;
  margin: 0.5rem 0;
  color: var(--text-secondary);
  font-style: italic;
}

.chat-bubble--assistant hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0.75rem 0;
}

.chat-bubble--assistant a {
  color: var(--accent-hover);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.chat-bubble--assistant table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0;
  font-size: 0.88em;
}

.chat-bubble--assistant th,
.chat-bubble--assistant td {
  border: 1px solid var(--border);
  padding: 0.4rem 0.6rem;
  text-align: left;
}

.chat-bubble--assistant th {
  background: #f8fafc;
  font-weight: 600;
}


.gen-progress {
  align-self: flex-start;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  width: 100%;
  max-width: 360px;
  padding: 0.35rem 0 0.55rem;
  margin-bottom: 0.15rem;
  animation: fadeIn 0.3s ease;
}

.gen-progress__glyph {
  flex-shrink: 0;
  width: 1.1rem;
  margin-top: 0.1rem;
  font-size: 1rem;
  line-height: 1;
  color: var(--text-secondary);
  text-align: center;
  font-family: monospace;
}

.gen-progress__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.gen-progress__stage {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.gen-progress__stage--idle {
  font-weight: 500;
}

.gen-progress__stage--running {
  color: var(--text);
}

.gen-progress__report {
  font-size: 0.76rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.45;
}

.gen-progress__report--idle {
  opacity: 0.7;
}

.gen-progress__report--running {
  opacity: 0.85;
}

.gen-progress__stage--swap,
.gen-progress__report--swap {
  animation: gen-line-swap 0.22s ease both;
}

@keyframes gen-line-swap {
  from {
    opacity: 0;
    transform: translateY(3px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gen-progress__word {
  transition: opacity 0.22s ease;
}

.gen-progress__word--fade {
  opacity: 0;
}

.gen-progress__ellipsis {
  color: var(--text-secondary);
  opacity: 0.55;
  margin-left: 1px;
}

.gen-progress--out {
  animation: gen-progress-out 0.38s ease forwards;
  pointer-events: none;
}

@keyframes gen-progress-out {
  from {
    opacity: 1;
    transform: translateY(0);
    max-height: 80px;
  }

  to {
    opacity: 0;
    transform: translateY(-6px);
    max-height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
  }
}

.gen-shimmer {
  color: var(--text-secondary);
  background: linear-gradient(90deg,
      var(--text-secondary) 0%,
      var(--text-secondary) 38%,
      #9ca3af 50%,
      var(--text-secondary) 62%,
      var(--text-secondary) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gen-shimmer-sweep 2.8s ease-in-out infinite;
}

@keyframes gen-shimmer-sweep {
  0% {
    background-position: 120% 0;
  }

  100% {
    background-position: -120% 0;
  }
}

.chat-bubble--typing {
  display: flex;
  gap: 4px;
  padding: 1rem 1.5rem;
}

.chat-error {
  align-self: flex-start;
  font-size: 0.78rem;
  color: var(--text-secondary);
  padding: 0.1rem 0.25rem;
  animation: fadeIn 0.3s ease;
}

.typing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-secondary);
  animation: bounce 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes bounce {

  0%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-6px);
  }
}

.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg);
  padding: 0.75rem 1.5rem;
  z-index: 100;
}

.bottom-bar__actions {
  margin: 0 auto;
  max-width: var(--max-w);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, max-height 0.3s ease, margin 0.3s ease;
}

.bottom-bar__actions--visible {
  opacity: 1;
  max-height: 200px;
  margin-bottom: 0.6rem;
}

.bottom-bar__actions .action-btn {
  flex-direction: row;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  min-width: auto;
  gap: 0.4rem;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid grey;
  border-radius: var(--radius-sm);
  box-shadow: none;
}

.bottom-bar__actions .action-btn:hover {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: none;
}

.bottom-bar__actions .action-btn__icon {
  font-size: 0.92rem;
}

.chat-input--bottom {
  max-width: var(--max-w);
  transition: max-width 0.3s ease, border-color var(--transition), box-shadow var(--transition);
}

.chat-input--bottom.chat-input--collapsed {
  max-width: 280px;
}

.chat-input--bottom.chat-input--collapsed .chat-submit {
  width: 34px;
  height: 34px;
}

.bottom-bar__powered {
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

.bottom-bar__powered strong {
  color: var(--text);
}

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

  .hero__title {
    font-size: 2rem;
  }

  .avatar-placeholder {
    width: 180px;
    height: 180px;
  }

  .chat-input {
    min-width: 0;
    max-width: 480px;
  }

  .hero__actions,
  .bottom-bar__actions {
    gap: 1rem;
  }

  .action-btn {
    padding: 1.4rem 1.2rem;
    min-width: 110px;
  }

  .inline-profile {
    gap: 1.5rem;
  }

  .inline-profile__name {
    font-size: 1.5rem;
  }
}

@media (max-width: 640px) {
  :root {
    --radius: 12px;
    --radius-sm: 8px;
  }

  body {
    font-size: 15px;
  }

  .hero {
    padding: 1.5rem 1rem 1rem;
    min-height: 100vh;
    min-height: 100dvh;
    justify-content: flex-start;
    overflow-y: auto;
  }

  .hero::before {
    content: "";
    flex: 1 0 0px;
  }

  .hero::after {
    content: "";
    flex: 2 0 0px;
  }

  .hero__greeting {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
  }

  .hero__title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    max-width: 90vw;
  }

  .hero__avatar {
    margin-bottom: 1rem;
  }

  .avatar-placeholder {
    width: 120px;
    height: 120px;
    font-size: 1.8rem;
  }

  .avatar--large {
    width: 100px;
    height: 100px;
    font-size: 2rem;
  }

  .hero--compact {
    padding: 0.75rem 1rem 0.25rem;
    min-height: auto;
  }

  .hero--compact::before,
  .hero--compact::after {
    display: none;
  }

  .hero--compact .avatar-placeholder {
    width: 48px;
    height: 48px;
  }

  .hero--compact .hero__avatar {
    margin-bottom: 0.25rem;
  }

  .chat-input {
    min-width: 0;
    max-width: 100%;
    padding: 0.3rem 0.3rem 0.3rem 1rem;
  }

  .chat-input input {
    font-size: 0.9rem;
  }

  .chat-submit {
    width: 36px;
    height: 36px;
  }

  .hero__actions {
    gap: 0.5rem;
    margin-top: 0.75rem;
    max-width: 100%;
    padding: 0;
  }

  .hero__actions .action-btn {
    padding: 0.7rem 0.5rem;
    min-width: 0;
    flex: 1 1 calc(33.33% - 0.5rem);
    max-width: calc(33.33% - 0.35rem);
    font-size: 0.72rem;
    gap: 0.2rem;
    border-radius: 12px;
  }

  .hero__actions .action-btn__icon {
    font-size: 1rem;
  }

  .bottom-bar__actions {
    gap: 0.4rem;
    margin-top: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .bottom-bar__actions--visible {
    margin-bottom: 0.4rem;
    padding-bottom: 2px;
  }

  .bottom-bar__actions::-webkit-scrollbar {
    display: none;
  }

  .bottom-bar__actions .action-btn {
    flex: 0 0 auto;
    padding: 0.35rem 0.65rem;
    font-size: 0.72rem;
    gap: 0.25rem;
    white-space: nowrap;
  }

  .bottom-bar__actions .action-btn__icon {
    font-size: 0.8rem;
  }

  .inline-profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 1rem 0;
  }

  .inline-profile__avatar,
  .inline-profile__content {
    width: 100%;
  }

  .inline-profile__avatar .avatar-img {
    max-width: 200px;
  }

  .inline-profile__name {
    font-size: 1.4rem;
  }

  .inline-profile__title {
    font-size: 0.82rem;
  }

  .inline-profile__summary {
    font-size: 0.84rem;
  }

  .inline-profile__skills {
    justify-content: center;
  }

  .skill-tag {
    padding: 0.25rem 0.6rem;
    font-size: 0.72rem;
  }


  .chat-section {
    padding: 0 0.75rem;
    padding-bottom: 130px;
  }

  .chat-messages {
    gap: 0.75rem;
  }

  .chat-bubble {
    max-width: 95%;
    padding: 0.85rem 1rem;
    font-size: 0.88rem;
    line-height: 1.6;
  }

  .chat-bubble--assistant {
    max-width: 100%;
  }

  .chat-bubble--assistant p {
    line-height: 1.6;
  }

  .chat-bubble--assistant ul,
  .chat-bubble--assistant ol {
    padding-left: 1.15rem;
  }

  .chat-bubble--assistant li {
    font-size: 0.86rem;
  }

  .chat-bubble--assistant pre {
    font-size: 0.76em;
    padding: 0.7rem 0.8rem;
  }


  .bottom-bar {
    padding: 0.5rem 0.75rem;
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
  }


  .chat-input--bottom {
    max-width: 100%;
    min-width: 0;
  }

  .chat-input--bottom.chat-input--collapsed {
    max-width: 220px;
  }

  .chat-input--bottom.chat-input--collapsed .chat-submit {
    width: 32px;
    height: 32px;
  }

  .bottom-bar__powered {
    font-size: 0.65rem;
    margin-top: 0.3rem;
  }


  .follow-ups {
    padding: 0 4px;
  }

  .follow-ups__label {
    font-size: 0.68rem;
    margin-bottom: 6px;
  }

  .follow-ups__buttons {
    gap: 6px;
  }

  .follow-up-btn {
    font-size: 0.78rem;
    padding: 7px 12px;
    width: 100%;
    border-radius: 10px;
  }

  .follow-up-btn__arrow {
    opacity: 1;
    font-size: 13px;
  }


  .tp-wrapper {
    max-width: 100%;
  }

  .tp-toggle {
    font-size: 0.68rem;
  }

  .tp-step {
    font-size: 0.68rem;
    padding: 0.1rem 0 0.1rem 0.5rem;
  }

  .tp-step--detail {
    font-size: 0.64rem;
    padding-left: 1.2rem;
  }

  .tp-step--total {
    font-size: 0.64rem;
  }
}


@media (max-width: 380px) {
  .hero {
    padding: 1rem 0.75rem 0.5rem;
  }

  .hero__greeting {
    font-size: 0.85rem;
  }

  .hero__title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }

  .hero__avatar {
    margin-bottom: 0.75rem;
  }

  .avatar-placeholder {
    width: 90px;
    height: 90px;
  }

  .hero--compact .avatar-placeholder {
    width: 40px;
    height: 40px;
  }

  .hero__actions .action-btn {
    padding: 0.55rem 0.4rem;
    font-size: 0.68rem;
  }

  .hero__actions .action-btn__icon {
    font-size: 0.9rem;
  }

  .chat-input {
    padding: 0.25rem 0.25rem 0.25rem 0.85rem;
  }

  .chat-input input {
    font-size: 0.85rem;
  }

  .chat-bubble {
    padding: 0.7rem 0.85rem;
    font-size: 0.84rem;
  }

  .chat-section {
    padding: 0 0.5rem;
    padding-bottom: 120px;
  }

  .inline-profile__avatar .avatar-img {
    max-width: 160px;
  }

  .inline-profile__name {
    font-size: 1.2rem;
  }

  .follow-up-btn {
    font-size: 0.74rem;
    padding: 6px 10px;
  }

  .bottom-bar {
    padding: 0.4rem 0.5rem;
    padding-bottom: max(0.4rem, env(safe-area-inset-bottom));
  }
}




@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}



.tp-wrapper {
  align-self: flex-start;
  max-width: 90%;
  animation: fadeIn 0.3s ease;
  margin-top: 0.15rem;
  margin-bottom: 0.25rem;
}

.tp-wrapper--collapsed>.tp-steps {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.25s ease, opacity 0.15s ease;
}

.tp-wrapper:not(.tp-wrapper--collapsed)>.tp-steps {
  max-height: 2000px;
  opacity: 1;
  transition: max-height 0.35s ease, opacity 0.25s ease;
}

.tp-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: none;
  border: none;
  padding: 0.15rem 0;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color var(--transition);
  opacity: 0.7;
}

.tp-toggle:hover {
  color: var(--accent-hover);
  opacity: 1;
}

.tp-toggle__icon {
  font-size: 0.9rem;
}


.tp-steps {
  padding: 0.25rem 0 0.15rem 0;
  margin-left: 0.25rem;
  margin-top: 0.2rem;
  border-left: 1.5px solid var(--border);
}

.tp-step {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.12rem 0 0.12rem 0.6rem;
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.4;
  animation: tp-step-appear 0.2s ease-out both;
}

@keyframes tp-step-appear {
  from {
    opacity: 0;
    transform: translateX(-3px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.tp-step--done .tp-step__check {
  color: #22c55e;
  font-size: 0.72rem;
  font-weight: 600;
  flex-shrink: 0;
}

.tp-step--running .tp-step__spinner {
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--border);
  border-top-color: var(--accent-hover);
  border-radius: 50%;
  animation: tp-spin 0.7s linear infinite;
  flex-shrink: 0;
}

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

.tp-step--detail {
  padding-left: 1.5rem;
  font-size: 0.68rem;
  color: var(--text-secondary);
  opacity: 0.7;
}

.tp-step--total {
  padding-left: 0.6rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 0.1rem;
  padding-top: 0.2rem;
  border-top: 1px solid var(--border);
  opacity: 0.8;
}



@media (max-width: 640px) {
  .tp-wrapper {
    max-width: 100%;
  }
}

@keyframes drop-in {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drop-in-bottom {
  from {
    opacity: 0;
    transform: translateY(100px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}



.follow-ups {
  max-width: var(--max-w);
  padding: 0 8px;
  animation: fadeIn 0.3s ease;
}

.follow-ups__label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  padding-left: 2px;
}

.follow-ups__icon {
  font-size: 16px;
  color: var(--accent-hover);
}

.follow-ups__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.follow-up-btn {
  font-family: var(--font);
  font-size: 0.82rem;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
  line-height: 1.3;
  text-align: left;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.follow-up-btn__text {
  flex: 1;
}

.follow-up-btn__arrow {
  font-size: 14px;
  color: var(--text-secondary);
  transition: all var(--transition);
  opacity: 0;
}

.follow-up-btn:hover {
  border-color: var(--accent-hover);
  color: var(--accent-hover);
  background: var(--accent-light);
  box-shadow: var(--shadow-sm);
}

.follow-up-btn:hover .follow-up-btn__arrow {
  opacity: 1;
  color: var(--accent-hover);
}

.follow-up-btn:active {
  transform: scale(0.97);
}

.follow-up-btn--used {
  opacity: 0.45;
  pointer-events: none;
  transform: none;
}

.follow-up-btn--active {
  border-color: var(--accent-hover);
  background: var(--accent-light);
  color: var(--accent-hover);
  opacity: 0.7;
}




.chat-bubble--assistant strong {
  color: var(--text);
  font-weight: 700;
}

.chat-bubble--assistant li {
  margin-bottom: 5px;
  line-height: 1.5;
}

@media (max-width: 600px) {

  .follow-ups__buttons {
    gap: 5px;
  }

  .follow-up-btn {
    font-size: 0.78rem;
    padding: 8px 12px;
    width: 100%;
  }
}

.uth-trigger {
  display: inline-flex;
  position: absolute;
  float: right;
  top: 8em;
  right: 8em;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  background: transparent;
  color: black;
  cursor: pointer;
  letter-spacing: 0.01em;

  background: rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(0.5px);
  -webkit-backdrop-filter: blur(9.5px);
}

.uth-trigger .live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(0.85);
  }
}

.uth-trigger::before {
  content: '';
  position: absolute;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.35),
      transparent);
  transform: skewX(-20deg);
  animation: shimmeruth 6s linear infinite;
}

@keyframes shimmeruth {
  0% {
    left: -10%;
  }

  30% {
    left: 30%;
  }

  100% {
    left: 60%;
  }
}



.uth-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 0.5px solid var(--border2);
  border-radius: 12px;
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: background 0.18s, box-shadow 0.18s, transform 0.15s;
}

.uth-trigger:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
  transform: translateY(-1px);
}

.uth-trigger .live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.55;
    transform: scale(0.82);
  }
}


.uth-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(26, 29, 46, 0.50);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
}

.uth-overlay.open {
  opacity: 1;
  pointer-events: all;
}


.uth-modal {
  background: rgba(244, 243, 248, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 0.5px solid var(--border2);
  border-radius: 24px;
  width: 60vw;
  max-width: 96vw;
  min-height: 90vh;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.14), 0 4px 16px rgba(0, 0, 0, 0.06);
  transform: scale(0.97) translateY(8px);
  transition: transform 0.22s ease, opacity 0.22s;
}

.uth-overlay.open .uth-modal {
  transform: scale(1) translateY(0);
}


.uth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 16px;
  border-bottom: 0.5px solid var(--border);
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.50);
}

.uth-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.uth-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  background: rgba(45, 184, 122, 0.12);
  color: var(--accent-green);
  border: 0.5px solid rgba(45, 184, 122, 0.25);
  border-radius: 20px;
  padding: 3px 10px;
}

.uth-badge .badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: pulse-dot 1.5s ease-in-out infinite;
}

.uth-title {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.uth-close {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 0.5px solid var(--border2);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background 0.14s, color 0.14s, transform 0.14s;
}

.uth-close:hover {
  background: var(--surface-solid);
  color: var(--text);
  transform: scale(1.08);
}


.uth-body {
  display: flex;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}


.uth-pipeline {
  width: 34%;
  flex-shrink: 0;
  border-right: 0.5px solid var(--border);
  padding: 18px 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.28);
}

.pipe-stage {
  display: flex;
  align-items: flex-start;
  gap: 0;
  cursor: pointer;
  padding: 9px 16px 9px 14px;
  transition: background 0.14s;
  position: relative;
  margin: 0 8px;
  border-radius: 12px;
}

.pipe-stage:hover {
  background: rgba(255, 255, 255, 0.70);
}

.pipe-stage.active {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.pipe-track {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 24px;
  flex-shrink: 0;
  margin-right: 10px;
  padding-top: 2px;
}

.pipe-node {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--border2);
  background: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-family: var(--mono);
  font-weight: 600;
  color: var(--muted);
  transition: all 0.2s;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.pipe-stage.done .pipe-node {
  border-color: var(--accent-blue);
  background: rgba(59, 130, 246, 0.12);
  color: var(--accent-blue);
}

.pipe-stage.active .pipe-node {
  border-color: var(--accent-green);
  background: rgba(45, 184, 122, 0.14);
  color: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(45, 184, 122, 0.12);
}

.pipe-connector {
  width: 1px;
  flex: 1;
  min-height: 12px;
  background: var(--border2);
  margin: 3px 0;
}

.pipe-stage-info {
  min-width: 0;
  flex: 1;
}

.pipe-stage-name {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.15s;
  line-height: 1.3;
}

.pipe-stage.active .pipe-stage-name {
  color: var(--text);
}

.pipe-stage-sub {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--subtle);
  margin-top: 2px;
}

.pipe-timing {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--accent-green);
  flex-shrink: 0;
  padding-top: 3px;
}


.uth-detail {
  flex: 1;
  overflow-y: auto;
  padding: 22px 24px;
}


.detail-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 9px;
}

.detail-title {
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 7px;
  letter-spacing: -0.02em;
}

.detail-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

.progress-bar {
  height: 3px;
  background: rgba(0, 0, 0, 0.07);
  border-radius: 2px;
  margin-top: 14px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-green));
  border-radius: 2px;
  transition: width 0.35s ease;
}


.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.detail-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 14px;
  padding: 13px 15px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: box-shadow 0.14s;
}

.detail-card:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.detail-card-label {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--text);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.detail-card-val {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
}

.detail-card-val.green {
  color: var(--accent-green);
}

.detail-card-val.blue {
  color: var(--accent-blue);
}

.detail-card-val.amber {
  color: var(--accent-amber);
}

.detail-card-val.purple {
  color: var(--accent-purple);
}

.detail-card-val.red {
  color: var(--accent-red);
}

.section-label {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--text);
  margin: 20px 0 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}



.props-wrap {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 14px;
  padding: 2px 14px;
  backdrop-filter: blur(8px);
}

.prop-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 0.5px solid var(--border);
}

.prop-row:last-child {
  border-bottom: none;
}

.prop-key {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.prop-val {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text);
  font-weight: 500;
}

.prop-val.tag {
  font-size: 9.5px;
  padding: 2px 9px;
  border-radius: 20px;
  background: rgba(45, 184, 122, 0.10);
  color: var(--accent-green);
  border: 0.5px solid rgba(45, 184, 122, 0.22);
}

.prop-val.tag.blue {
  background: rgba(59, 130, 246, 0.10);
  color: var(--accent-blue);
  border-color: rgba(59, 130, 246, 0.22);
}

.prop-val.tag.amber {
  background: rgba(245, 158, 11, 0.10);
  color: var(--accent-amber);
  border-color: rgba(245, 158, 11, 0.22);
}

.prop-val.tag.purple {
  background: rgba(139, 92, 246, 0.10);
  color: var(--accent-purple);
  border-color: rgba(139, 92, 246, 0.22);
}

.prop-val.tag.red {
  background: rgba(239, 68, 68, 0.10);
  color: var(--accent-red);
  border-color: rgba(239, 68, 68, 0.22);
}


.code-block {
  background: #1e1e1e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.8;
  color: #cdd6f4;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.35),
    0 4px 16px rgba(0, 0, 0, 0.2);
}

.code-block::before {
  content: '';
  display: block;
  padding: 10px 14px;
  background: #2d2d2d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background-image:
    radial-gradient(circle, #ff5f57 6px, transparent 6px),
    radial-gradient(circle, #febc2e 6px, transparent 6px),
    radial-gradient(circle, #28c840 6px, transparent 6px);
  background-repeat: no-repeat;
  background-position: 14px center, 32px center, 50px center;
  background-size: 12px 12px;
  height: 36px;
  box-sizing: border-box;
}

.code-block pre {
  margin: 0;
  padding: 16px 20px;
  white-space: pre-wrap;
  overflow-x: auto;
}

.code-block .kw {
  color: var(--accent-purple);
}

.code-block .str {
  color: var(--accent-green);
}

.code-block .num {
  color: var(--accent-amber);
}

.code-block .cmt {
  color: var(--subtle);
  font-style: italic;
}


.rationale {
  display: flex;
  gap: 10px;
  padding: 12px 15px;
  background: rgba(59, 130, 246, 0.06);
  border: 0.5px solid rgba(59, 130, 246, 0.18);
  border-left: 2.5px solid var(--accent-blue);
  border-radius: 0 12px 12px 0;
  margin-bottom: 6px;
}

.rationale-arrow {
  color: var(--accent-blue);
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 13px;
}

.rationale-text {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.65;
}


.uth-footer {
  border-top: 0.5px solid var(--border);
  padding: 12px 22px;
  display: flex;
  align-items: center;
  gap: 0;
  justify-content: center;
  flex-shrink: 0;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.40);
}

.footer-stat {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  padding: 2px 0;
}

.footer-stat span {
  color: var(--accent-green);
  font-weight: 600;
}

.footer-sep {
  color: var(--border2);
  margin: 0 10px;
  font-size: 12px;
}


::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.14);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.24);
}



.pp-wrap {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 16px;
  margin-top: 15px;
  width: 100%;
  overflow: hidden;
}

.pp-steps {
  display: flex;
  flex-direction: column;
}

.pp-step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 0;
  border-bottom: 0.5px solid var(--border);
  min-height: 52px;
}

.pp-step:last-child {
  border-bottom: none;
}

.pp-step-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
  border-right: 0.5px solid var(--border);
  background: rgba(255, 255, 255, 0.3);
  gap: 4px;
}

.pp-step-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.pp-step-right {
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.pp-step-name {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pp-transform {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-height: 22px;
}

.pp-before,
.pp-after {
  font-family: var(--mono);
  font-size: 11.5px;
  padding: 2px 8px;
  border-radius: 6px;
}

.pp-before {
  color: var(--muted);
  background: rgba(0, 0, 0, 0.04);
  border: 0.5px solid var(--border2);
  text-decoration: line-through;
  text-decoration-color: rgba(0, 0, 0, 0.2);
}

.pp-arrow-sm {
  color: var(--subtle);
  font-size: 11px;
}

.pp-after {
  color: var(--accent-green);
  background: rgba(45, 184, 122, 0.09);
  border: 0.5px solid rgba(45, 184, 122, 0.22);
  transition: all 0.3s ease;
}

.pp-after.blue {
  color: var(--accent-blue);
  background: rgba(59, 130, 246, 0.09);
  border-color: rgba(59, 130, 246, 0.22);
}

.pp-after.purple {
  color: var(--accent-purple);
  background: rgba(139, 92, 246, 0.09);
  border-color: rgba(139, 92, 246, 0.22);
}

.pp-after.amber {
  color: var(--accent-amber);
  background: rgba(245, 158, 11, 0.09);
  border-color: rgba(245, 158, 11, 0.22);
}

.pp-intents {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.pp-intent-tag {
  font-family: var(--mono);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 20px;
  color: var(--accent-blue);
  background: rgba(59, 130, 246, 0.09);
  border: 0.5px solid rgba(59, 130, 246, 0.22);
  opacity: 1;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.pp-mode-badge {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  transition: all 0.3s;
}

.pp-mode-badge.overview {
  color: var(--accent-green);
  background: rgba(45, 184, 122, 0.10);
  border: 0.5px solid rgba(45, 184, 122, 0.25);
}

.pp-mode-badge.deep {
  color: var(--accent-amber);
  background: rgba(245, 158, 11, 0.10);
  border: 0.5px solid rgba(245, 158, 11, 0.25);
}

.pp-mode-badge.expert {
  color: var(--accent-purple);
  background: rgba(139, 92, 246, 0.10);
  border: 0.5px solid rgba(139, 92, 246, 0.25);
}

.pp-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.12);
  display: inline-block;
}

.pp-dot.filled {
  background: var(--accent-amber);
}

.pp-dot.filled.purple {
  background: var(--accent-purple);
}

@media (max-width: 1024px) {
  .uth-trigger {
    display: none;
  }

  .uth-overlay {
    display: none;
  }
}