/* AI Monkey Mood — page shell & form */
body.model-roast-page {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  color: var(--text, #e4e4e7);
  background: var(--toket-bg-page, #0a0a0a);
}

html.site-unified-chrome body.model-roast-page {
  background: var(--toket-bg-page, var(--site-page-bg, #0b0d12));
  background-attachment: fixed;
}

html.site-unified-chrome body.model-roast-page #liteShellMount,
html.site-unified-chrome body.model-roast-page #siteFooterMount,
html.site-unified-chrome body.model-roast-page .model-roast-wrap {
  position: relative;
  z-index: 1;
}

html.site-unified-chrome body.model-roast-page .home-bg-glow {
  opacity: 1;
}

.model-roast-wrap {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.model-roast-hero {
  margin-bottom: 1.5rem;
}

.model-roast-hero h1 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.model-roast-hero p {
  margin: 0;
  font-size: 1rem;
  color: #a1a1aa;
}

.model-roast-share-banner {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(91, 124, 250, 0.35);
  background: rgba(91, 124, 250, 0.12);
}

.model-roast-share-banner p {
  margin: 0;
  font-size: 0.875rem;
  color: #c7d2fe;
}

.model-roast-form {
  margin-bottom: 1rem;
  padding: 1rem 1.125rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.model-roast-form__title {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #f4f4f5;
}

.model-roast-models-wrap {
  max-width: 100%;
}

.model-roast-models {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 100%;
}

.model-roast-model-btn[hidden] {
  display: none;
}

.model-roast-models-toggle {
  margin-top: 0.625rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #a1a1aa;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.model-roast-models-toggle:hover {
  color: #f4f4f5;
  border-color: rgba(255, 255, 255, 0.28);
}

.model-roast-models-toggle:focus-visible {
  outline: 2px solid var(--toket-brand, var(--primary, #635bff));
  outline-offset: 2px;
}

.model-roast-models-toggle[hidden] {
  display: none;
}

.model-roast-model-btn {
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #d4d4d8;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.model-roast-model-btn:hover {
  border-color: rgba(255, 255, 255, 0.28);
  color: #f4f4f5;
}

.model-roast-model-btn:focus-visible,
.model-roast-tag-btn:focus-visible,
.model-roast-submit-btn:focus-visible {
  outline: 2px solid var(--toket-brand, var(--primary, #635bff));
  outline-offset: 2px;
}

.model-roast-model-btn.is-selected,
.model-roast-tag-btn.is-selected {
  color: #fff;
  border-color: transparent;
  background: var(--site-cta-gradient, var(--toket-gradient-primary, linear-gradient(135deg, #635bff 0%, #7c6cff 100%)));
  box-shadow: 0 2px 10px color-mix(in srgb, var(--toket-brand, #635bff) 26%, transparent);
}

.model-roast-model-btn.is-selected:hover,
.model-roast-tag-btn.is-selected:hover {
  color: #fff;
  border-color: transparent;
  box-shadow: 0 3px 12px color-mix(in srgb, var(--toket-brand, #635bff) 32%, transparent);
  filter: brightness(1.05);
}

.model-roast-tags-block {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.model-roast-validate {
  font-size: 0.8125rem;
  color: #fca5a5;
}

.model-roast-validate {
  margin: 1rem 0 0;
}

.model-roast-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.model-roast-tag-btn {
  padding: 0.45rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #d4d4d8;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.model-roast-tag-btn:hover {
  border-color: rgba(255, 255, 255, 0.28);
  color: #f4f4f5;
}

.model-roast-custom-block {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.model-roast-custom-hint {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  color: #a1a1aa;
}

.model-roast-custom-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: #f4f4f5;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.model-roast-custom-input:focus-visible {
  outline: 2px solid var(--toket-brand, var(--primary, #635bff));
  outline-offset: 2px;
}

.model-roast-custom-input.is-blocked {
  border-color: rgba(251, 191, 36, 0.55);
}

.model-roast-custom-warn {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #fcd34d;
}

.model-roast-custom-warn[hidden] {
  display: none;
}

.model-roast-submit-btn {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--site-btn-h, 44px);
  padding: 0 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  background: var(--site-cta-gradient, var(--toket-gradient-primary, linear-gradient(135deg, #635bff 0%, #7c6cff 100%)));
  border: none;
  border-radius: var(--site-btn-radius, 12px);
  cursor: pointer;
  box-shadow: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.model-roast-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--site-cta-shadow, 0 8px 22px color-mix(in srgb, var(--toket-brand, #635bff) 32%, transparent));
}

/* Step 6Q: soften custom input profanity warning */
#modelRoastCustomInput.is-blocked,
#modelRoastCustomInput.is-blocked:focus {
  border-color: rgba(148, 163, 184, 0.34);
  box-shadow: none;
  outline: none;
  background: rgba(255, 255, 255, 0.04);
}

#modelRoastCustomWarn {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(251, 191, 36, 0.10);
  border: 1px solid rgba(251, 191, 36, 0.20);
  color: #b45309;
  font-size: 13px;
  line-height: 1.45;
}

#modelRoastCustomWarn[hidden] {
  display: none !important;
}
