:root {
  --ytt-bg: #f5f8fc;
  --ytt-surface: rgba(255, 255, 255, 0.97);
  --ytt-border: rgba(92, 110, 134, 0.18);
  --ytt-ink: #081a32;
  --ytt-muted: #5c6e86;
  --ytt-primary: #0f6fff;
  --ytt-primary-dark: #0b59cc;
  --ytt-primary-soft: rgba(15, 111, 255, 0.08);
  --ytt-danger: #d14343;
  --ytt-success: #0a8f5a;
  --ytt-warning: #b26b00;
  --ytt-radius-lg: 18px;
  --ytt-radius-md: 12px;
  --ytt-shadow: 0 28px 64px rgba(18, 44, 79, 0.1);
  --ytt-shadow-soft: 0 18px 40px rgba(18, 44, 79, 0.08);
  --ytt-font: "CircularStd", Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top, rgba(15, 111, 255, 0.08), transparent 28%),
    linear-gradient(180deg, #fbfdff 0%, var(--ytt-bg) 100%);
  color: var(--ytt-ink);
  font-family: var(--ytt-font);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.ytt-container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.ytt-hero {
  padding: 56px 0 36px;
}

.ytt-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 24px;
  align-items: start;
}

.ytt-kicker {
  margin: 0 0 14px;
  color: var(--ytt-primary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ytt-hero-copy h1,
.ytt-section-header h2 {
  margin: 0;
  letter-spacing: -0.04em;
}

.ytt-hero-copy h1 {
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  line-height: 0.98;
}

.ytt-lead,
.ytt-section-copy,
.ytt-feature-card p,
.ytt-step-card p,
.ytt-faq-list p,
.ytt-muted,
.ytt-form-message {
  color: var(--ytt-muted);
  line-height: 1.7;
}

.ytt-lead {
  margin: 18px 0 0;
  max-width: 760px;
  font-size: 1.08rem;
}

.ytt-fetch-form,
.ytt-hero-card,
.ytt-panel,
.ytt-feature-card,
.ytt-step-card,
.ytt-faq-list details {
  border: 1px solid var(--ytt-border);
  border-radius: var(--ytt-radius-lg);
  background: var(--ytt-surface);
  box-shadow: var(--ytt-shadow-soft);
}

.ytt-fetch-form {
  margin-top: 28px;
  padding: 22px;
}

.ytt-field-label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ytt-ink);
}

.ytt-fetch-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.ytt-fetch-row input,
.ytt-control-group select,
.ytt-control-group input,
.ytt-search-wrap input,
.ytt-segment-editor textarea {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(92, 110, 134, 0.22);
  border-radius: 16px;
  background: #fff;
  color: var(--ytt-ink);
}

.ytt-control-group select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23081a32' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}

.ytt-search-wrap input {
  min-height: 44px;
}

.ytt-segment-editor textarea {
  min-height: 110px;
  padding: 12px 14px;
  resize: vertical;
}

.ytt-fetch-row input:focus,
.ytt-control-group select:focus,
.ytt-control-group input:focus,
.ytt-search-wrap input:focus,
.ytt-segment-editor textarea:focus {
  outline: 2px solid rgba(15, 111, 255, 0.16);
  border-color: rgba(15, 111, 255, 0.34);
}

.ytt-primary-button,
.ytt-secondary-button,
.ytt-tertiary-button,
.ytt-fetch-row button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.ytt-fetch-row button,
.ytt-primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--ytt-primary) 0%, #3e98ff 100%);
  box-shadow: 0 16px 30px rgba(15, 111, 255, 0.22);
}

.ytt-fetch-row button:hover,
.ytt-primary-button:hover {
  transform: translateY(-1px);
}

.ytt-secondary-button {
  color: var(--ytt-ink);
  background: rgba(255, 255, 255, 0.88);
  border-color: var(--ytt-border);
}

.ytt-tertiary-button {
  color: var(--ytt-ink);
  background: rgba(244, 248, 253, 0.92);
  border-color: rgba(92, 110, 134, 0.22);
}

.ytt-reset-button {
  font-weight: 700;
}

.ytt-value-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.ytt-value-points span,
.ytt-status {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--ytt-primary-soft);
  color: var(--ytt-primary);
  font-size: 0.88rem;
  font-weight: 700;
}

.ytt-status.warning {
  background: rgba(178, 107, 0, 0.1);
  color: var(--ytt-warning);
}

.ytt-status.success {
  background: rgba(10, 143, 90, 0.1);
  color: var(--ytt-success);
}

.ytt-status.error {
  background: rgba(209, 67, 67, 0.1);
  color: var(--ytt-danger);
}

.ytt-hero-card {
  padding: 24px;
}

.ytt-card-eyebrow {
  margin: 0 0 10px;
  color: var(--ytt-primary);
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ytt-hero-card h2,
.ytt-panel-header h2,
.ytt-panel-header h3 {
  margin: 0;
  letter-spacing: -0.03em;
}

.ytt-hero-list {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--ytt-muted);
  line-height: 1.8;
}

.ytt-workspace {
  padding: 8px 0 42px;
}

.ytt-workspace-grid {
  display: grid;
  grid-template-columns: minmax(290px, 0.78fr) minmax(0, 1.22fr);
  gap: 22px;
  align-items: start;
}

.ytt-sidebar {
  display: grid;
  gap: 18px;
}

.ytt-panel {
  padding: 20px;
}

.ytt-panel-header {
  display: grid;
  gap: 2px;
  margin-bottom: 12px;
}

.ytt-panel-header p {
  margin: 0;
}

.ytt-embed-wrap {
  margin: -20px -20px 18px;
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid var(--ytt-border);
  overflow: hidden;
  border-radius: 18px 18px 0 0;
  background: #dfe8f4;
}

.ytt-embed-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.ytt-status-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.ytt-control-group + .ytt-control-group {
  margin-top: 14px;
}

.ytt-checkbox-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 16px 0 0;
  color: var(--ytt-ink);
  font-weight: 500;
}

.ytt-checkbox-row input {
  width: 18px;
  height: 18px;
}

.ytt-checkbox-row-spaced {
  margin-top: 18px;
}

.ytt-checkbox-row + .ytt-control-group {
  margin-top: 14px;
}

.ytt-action-stack {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.ytt-action-with-helper {
  display: grid;
  gap: 8px;
}

.ytt-action-helper {
  margin: -2px 0 0;
  color: var(--ytt-muted);
  font-size: 0.88rem;
  line-height: 1.5;
  text-align: center;
}

.ytt-sidebar-message,
.ytt-content-message {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(15, 111, 255, 0.08);
  color: var(--ytt-ink);
  line-height: 1.6;
}

.ytt-enhance-panel {
  display: grid;
  gap: 12px;
}

.ytt-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.ytt-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 26, 50, 0.45);
  backdrop-filter: blur(3px);
}

.ytt-modal-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 24px 16px;
}

.ytt-enhance-modal-panel {
  width: min(560px, 100%);
  max-height: min(82vh, 760px);
  overflow: auto;
  box-shadow: 0 32px 80px rgba(8, 26, 50, 0.22);
}

.ytt-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.ytt-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--ytt-border);
  border-radius: 999px;
  background: #fff;
  color: var(--ytt-muted);
}

.ytt-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}

.ytt-speaker-wrap {
  display: grid;
  gap: 12px;
  margin-top: 4px;
}

.ytt-speaker-fields {
  display: grid;
  gap: 10px;
}

.ytt-content-panel {
  min-height: 680px;
}

.ytt-content-toolbar,
.ytt-transcript-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.ytt-content-toolbar {
  margin-bottom: 18px;
  align-items: center;
}

.ytt-toolbar-left,
.ytt-toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ytt-toolbar-right {
  margin-left: auto;
}

.ytt-inline-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ytt-ink);
  font-size: 0.92rem;
  font-weight: 700;
}

.ytt-inline-toggle input {
  width: 18px;
  height: 18px;
}

.ytt-toolbar-button-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ytt-toolbar-menu {
  position: relative;
}

.ytt-toolbar-menu summary {
  list-style: none;
  cursor: pointer;
}

.ytt-toolbar-menu summary::-webkit-details-marker {
  display: none;
}

.ytt-toolbar-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--ytt-border);
  border-radius: 999px;
  background: #fff;
  color: var(--ytt-ink);
  font-weight: 700;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.ytt-toolbar-button-primary {
  color: #fff;
  background: var(--ytt-primary);
  border-color: var(--ytt-primary);
  box-shadow: 0 12px 24px rgba(15, 111, 255, 0.18);
}

.ytt-toolbar-button.is-disabled {
  opacity: 0.52;
  pointer-events: none;
}

.ytt-toolbar-icon,
.ytt-toolbar-caret,
.ytt-button-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.ytt-button-icon {
  width: 18px;
  height: 18px;
}

.ytt-toolbar-caret {
  opacity: 0.72;
}

.ytt-toolbar-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 190px;
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--ytt-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 32px rgba(18, 44, 79, 0.12);
  z-index: 5;
}

.ytt-view-menu .ytt-toolbar-menu-panel {
  left: 0;
  right: auto;
}

.ytt-toolbar-menu-panel button {
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ytt-ink);
  text-align: left;
  font-weight: 600;
}

.ytt-toolbar-menu-panel button:hover {
  background: rgba(15, 111, 255, 0.08);
}

.ytt-view-menu-panel button.is-active {
  background: rgba(15, 111, 255, 0.1);
  color: var(--ytt-primary);
}

.ytt-search-wrap {
  display: grid;
  gap: 8px;
  width: min(300px, 100%);
  color: var(--ytt-muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.ytt-search-input {
  width: min(420px, 100%);
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(92, 110, 134, 0.22);
  border-radius: 14px;
  background: #fff;
  color: var(--ytt-ink);
}

.ytt-transcript-tools {
  margin-bottom: 24px;
  align-items: center;
}

.ytt-transcript-toggle {
  margin-left: auto;
  min-height: 44px;
  margin-top: 0;
  white-space: nowrap;
}

.ytt-content {
  display: block;
}

.ytt-transcript-block,
.ytt-enhanced-block,
.ytt-summary-block {
  border: 1px solid rgba(92, 110, 134, 0.12);
  border-radius: 12px;
  background: #fff;
  padding: 20px 22px;
}

.ytt-transcript-paragraph,
.ytt-enhanced-paragraph,
.ytt-summary-block p {
  margin: 0;
  color: var(--ytt-ink);
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

.ytt-transcript-paragraph + .ytt-transcript-paragraph,
.ytt-enhanced-paragraph + .ytt-enhanced-paragraph,
.ytt-summary-block p + p,
.ytt-summary-list li + li {
  margin-top: 14px;
}

.ytt-inline-time {
  margin-right: 14px;
  color: var(--ytt-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.88rem;
}

.ytt-inline-speaker {
  margin-right: 6px;
  color: var(--ytt-primary);
  font-size: 0.94rem;
  font-weight: 700;
}

.ytt-content mark {
  background: rgba(15, 111, 255, 0.14);
  color: inherit;
  border-radius: 4px;
  padding: 0 1px;
}

.ytt-summary-list {
  margin: 0;
  padding-left: 20px;
  line-height: 1.8;
}

.ytt-marketing-section,
.ytt-faq-section {
  padding: 30px 0 56px;
}

.ytt-how-section {
  padding-top: 10px;
}

.ytt-section-header {
  display: grid;
  gap: 12px;
  margin-bottom: 26px;
}

.ytt-section-header h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.02;
}

.ytt-feature-grid,
.ytt-steps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.ytt-feature-card,
.ytt-step-card {
  padding: 22px;
}

.ytt-feature-card h3,
.ytt-step-card h3 {
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.ytt-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 32px;
  margin-bottom: 14px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--ytt-primary-soft);
  color: var(--ytt-primary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.ytt-faq-wrap {
  max-width: 900px;
}

.ytt-faq-list {
  display: grid;
  gap: 14px;
}

.ytt-faq-list details {
  padding: 18px 20px;
}

.ytt-faq-list summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ytt-ink);
}

.ytt-faq-list p {
  margin: 14px 0 0;
}

.ytt-empty-state {
  padding: 28px;
  border: 1px dashed var(--ytt-border);
  border-radius: 22px;
  color: var(--ytt-muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.72);
}

.ytt-loading {
  position: relative;
  padding-left: 28px;
}

.ytt-loading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border: 2px solid rgba(15, 111, 255, 0.2);
  border-top-color: var(--ytt-primary);
  border-radius: 50%;
  animation: ytt-spin 0.8s linear infinite;
}

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

@media (max-width: 1024px) {
  .ytt-workspace-grid,
  .ytt-hero-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .ytt-fetch-row,
  .ytt-feature-grid,
  .ytt-steps-grid {
    grid-template-columns: 1fr;
  }

  .ytt-content-toolbar,
  .ytt-transcript-tools {
    flex-direction: column;
    align-items: stretch;
  }

  .ytt-toolbar-right,
  .ytt-toolbar-button-group,
  .ytt-search-input {
    width: 100%;
  }

  .ytt-transcript-toggle {
    margin-left: 0;
    justify-content: flex-start;
  }

  .ytt-toolbar-button-group {
    display: flex;
    flex-wrap: wrap;
  }
}
