.stream-model-controls {
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  background: #f8fafc;
}

.stream-length-controls {
  margin: 0;
  padding: 1rem 1.05rem;
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  background: linear-gradient(180deg, #fffaf1 0%, #f8fbff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  display: grid;
  gap: 0.8rem;
}

.stream-length-controls-copy {
  display: grid;
  gap: 0.3rem;
}

.stream-length-controls-copy .eyebrow {
  margin: 0;
}

.stream-length-controls label {
  font-weight: 600;
  line-height: 1.35;
}

.stream-length-controls-copy .muted {
  margin: 0;
  font-size: 0.94rem;
}

.stream-length-slider-wrap {
  display: grid;
  gap: 0.7rem;
}

.stream-length-slider-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.stream-length-slider-caption {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a5b0b;
}

.stream-length-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.75rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(216, 154, 67, 0.28);
  background: rgba(255, 255, 255, 0.82);
  color: #7a4c0c;
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(216, 154, 67, 0.12);
}

.stream-length-controls input[type="range"] {
  width: 100%;
  appearance: none;
  height: 2.75rem;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.stream-length-controls input[type="range"]::-webkit-slider-runnable-track {
  height: 0.8rem;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(216, 154, 67, 0.92) 0%, rgba(117, 140, 137, 0.92) 100%);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.4),
    0 8px 18px rgba(15, 23, 42, 0.08);
}

.stream-length-controls input[type="range"]::-moz-range-track {
  height: 0.8rem;
  border: 0;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(216, 154, 67, 0.92) 0%, rgba(117, 140, 137, 0.92) 100%);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.4),
    0 8px 18px rgba(15, 23, 42, 0.08);
}

.stream-length-controls input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: -0.275rem;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: #36504d;
  box-shadow:
    0 8px 18px rgba(54, 80, 77, 0.28),
    0 0 0 5px rgba(255, 255, 255, 0.36);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stream-length-controls input[type="range"]::-moz-range-thumb {
  width: 1.35rem;
  height: 1.35rem;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #36504d;
  box-shadow:
    0 8px 18px rgba(54, 80, 77, 0.28),
    0 0 0 5px rgba(255, 255, 255, 0.36);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stream-length-controls input[type="range"]:hover::-webkit-slider-thumb,
.stream-length-controls input[type="range"]:focus-visible::-webkit-slider-thumb,
.stream-length-controls input[type="range"]:hover::-moz-range-thumb,
.stream-length-controls input[type="range"]:focus-visible::-moz-range-thumb {
  transform: scale(1.06);
  box-shadow:
    0 10px 24px rgba(54, 80, 77, 0.32),
    0 0 0 6px rgba(216, 154, 67, 0.18);
}

.stream-length-controls input[type="range"]:focus-visible {
  outline: none;
}

.stream-length-scale {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.stream-model-controls-header h3 {
  margin: 0.2rem 0 0.35rem;
}

.stream-model-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.stream-model-guide-link-wrap {
  margin: 0.9rem 0 0;
}

.stream-model-guide-link {
  font-size: 0.95rem;
  font-weight: 600;
}

.stream-model-option {
  display: grid;
  gap: 0.5rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  background: #fff;
}

.stream-model-option-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.65rem;
  align-items: center;
}

.stream-model-option-label {
  font-weight: 600;
  word-break: break-word;
}

.stream-model-info-button {
  width: 1.8rem;
  height: 1.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-weight: 700;
}

.stream-model-info {
  display: grid;
  gap: 0.25rem;
  padding: 0.75rem;
  border-radius: 0.75rem;
  background: #f8fafc;
  border: 1px solid var(--border);
}

.stream-model-info p {
  margin: 0;
}

.stream-model-info-summary {
  color: var(--muted);
}

.stream-model-info-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stream-model-info-row p {
  flex: 1;
}

.stream-model-external-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: #223533;
  background: #fff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.stream-model-external-link svg {
  width: 0.95rem;
  height: 0.95rem;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stream-model-external-link:hover,
.stream-model-external-link:focus-visible {
  color: #9a5b0b;
  border-color: rgba(217, 119, 6, 0.32);
}

.stream-model-lora-section {
  display: grid;
  gap: 0.45rem;
}

.stream-model-lora-heading {
  font-weight: 700;
  color: #223533;
}

.stream-model-lora-empty {
  color: var(--muted);
}

.stream-model-lora-list {
  margin: 0;
  padding-left: 0;
  display: grid;
  gap: 0.3rem;
}

.stream-model-lora-item {
  display: grid;
  gap: 0.2rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.72);
}

.stream-model-lora-body {
  display: grid;
  gap: 0.2rem;
}

.stream-model-lora-name {
  font-weight: 700;
  color: #223533;
}

.stream-model-lora-meta,
.stream-model-lora-notes {
  color: var(--muted);
}

.create-stream-shell {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(217, 119, 6, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(54, 80, 77, 0.14), transparent 34%),
    linear-gradient(180deg, #fff8ef 0%, #f7fafc 34%, #ffffff 100%);
}

.create-stream-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0)),
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.72), transparent 18%);
  pointer-events: none;
}

.create-stream-page {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.create-stream-hero {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(18rem, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.create-stream-hero-copy,
.create-stream-hero-aside {
  padding: 1.5rem;
  border-radius: 1.35rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(12px);
}

.create-stream-hero-copy h1 {
  margin: 0.2rem 0 0.75rem;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.create-stream-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9a5b0b;
}

.create-stream-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.1rem;
}

.create-stream-stage {
  display: grid;
}

.create-stream-panel {
  width: 100%;
  padding: 1.5rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.96)),
    radial-gradient(circle at top right, rgba(217, 119, 6, 0.12), transparent 32%);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.1);
}

.create-stream-panel-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.create-stream-panel-heading h2 {
  margin: 0.15rem 0 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.create-stream-panel-heading .muted {
  max-width: 36rem;
  margin: 0;
}

.create-stream-panel-alert {
  display: flex;
  align-items: center;
  max-width: 36rem;
  margin: 0;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(217, 119, 6, 0.26);
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.12), rgba(255, 251, 235, 0.92));
  color: #7a4c0c;
  font-weight: 600;
  line-height: 1.45;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.create-stream-form {
  display: grid;
  gap: 1rem;
}

.create-stream-form textarea {
  min-height: 20rem;
  font-size: 1rem;
  line-height: 1.55;
  resize: vertical;
}

.create-stream-options-grid {
  display: grid;
  gap: 1rem;
}

.create-stream-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
}

.create-stream-notice-login {
  background: linear-gradient(135deg, rgba(54, 80, 77, 0.12), rgba(54, 80, 77, 0.04));
}

.create-stream-notice-upgrade {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.12), rgba(249, 250, 251, 0.82));
}

.create-stream-notice-title {
  margin: 0 0 0.2rem;
  font-weight: 700;
  color: #223533;
}

@media (max-width: 720px) {
  .create-stream-page {
    padding-top: 1.25rem;
    padding-bottom: 2rem;
  }

  .create-stream-hero {
    grid-template-columns: 1fr;
  }

  .create-stream-hero-copy,
  .create-stream-hero-aside,
  .create-stream-panel {
    padding: 1.1rem;
  }

  .create-stream-form textarea {
    min-height: 16rem;
  }

  .stream-length-slider-header {
    align-items: flex-start;
  }
}
