body.app-slava-restraint .create-view {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  grid-template-rows: 44px 1fr;
  background: var(--sr-canvas);
  color: var(--sr-ink);
  font-family: var(--sr-ui);
}

body.app-slava-restraint .create-view__topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border-bottom: 1px solid var(--sr-edge);
  background: var(--sr-glass);
}
body.app-slava-restraint .create-view__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--sr-edge);
  border-radius: 8px;
  padding: 5px 10px;
  color: var(--sr-ink);
  cursor: pointer;
}
body.app-slava-restraint .create-view__back:hover { border-color: var(--sr-edge-strong); }
body.app-slava-restraint .create-view__title { color: var(--sr-ink-meta); font-size: 13px; letter-spacing: 0.04em; }

body.app-slava-restraint .create-view__stage {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 24px 160px;
}
body.app-slava-restraint .create-view__hero { text-align: center; max-width: 460px; }
body.app-slava-restraint .create-view__hero-title { font-size: 30px; font-weight: 600; letter-spacing: -0.01em; }
body.app-slava-restraint .create-view__hero-sub { margin-top: 10px; color: var(--sr-ink-meta); font-size: 14px; line-height: 1.5; }
body.app-slava-restraint .create-view__result {
  max-width: min(80vw, 900px);
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.app-slava-restraint .create-output__media {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 12px;
  border: 1px solid var(--sr-edge);
  background: var(--sr-glass);
}
body.app-slava-restraint .create-output__text {
  max-width: 70ch;
  padding: 18px 20px;
  border-radius: 12px;
  background: var(--sr-glass-raised);
  border: 1px solid var(--sr-edge);
  white-space: pre-wrap;
  line-height: 1.6;
}
body.app-slava-restraint .create-output--loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--sr-ink-meta);
}
body.app-slava-restraint .create-output__spinner {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--sr-edge);
  border-top-color: var(--sr-accent);
  animation: create-spin 0.8s linear infinite;
}
@keyframes create-spin { to { transform: rotate(360deg); } }

/* Floating composer */
body.app-slava-restraint .create-composer {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: min(820px, calc(100vw - 48px));
  padding: 12px;
  border-radius: 16px;
  background: var(--sr-glass-strong);
  border: 1px solid var(--sr-edge-strong);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
body.app-slava-restraint .create-composer__prompt {
  width: 100%;
  resize: none;
  min-height: 28px;
  max-height: 160px;
  background: transparent;
  border: none;
  outline: none;
  color: var(--sr-ink-bold);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.4;
  padding: 6px 6px 10px;
}
body.app-slava-restraint .create-composer__controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
body.app-slava-restraint .create-composer__model {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--sr-glass-raised);
  border: 1px solid var(--sr-edge);
  border-radius: 10px;
  padding: 7px 12px;
  color: var(--sr-ink);
  font-size: 13px;
  cursor: pointer;
}
body.app-slava-restraint .create-composer__generate {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--sr-accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
body.app-slava-restraint .create-composer__generate:disabled { opacity: 0.45; cursor: not-allowed; }

/* Param pills */
body.app-slava-restraint .param-pills { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
body.app-slava-restraint .param-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--sr-glass-raised);
  border: 1px solid var(--sr-edge);
  border-radius: 10px;
  padding: 5px 10px;
  font-size: 12px;
  color: var(--sr-ink-meta);
}
body.app-slava-restraint .param-pill__select,
body.app-slava-restraint .param-pill__number {
  background: transparent;
  border: none;
  outline: none;
  color: var(--sr-ink);
  font-family: inherit;
  font-size: 12px;
}
body.app-slava-restraint .param-pill__number { width: 56px; }
body.app-slava-restraint .param-pill--toggle { cursor: pointer; }
body.app-slava-restraint .param-pill--on { border-color: var(--sr-accent); color: var(--sr-ink-bold); }

/* Model picker */
body.app-slava-restraint .create-composer__picker-backdrop { position: fixed; inset: 0; z-index: 1; }
body.app-slava-restraint .model-picker {
  position: absolute;
  z-index: 2;
  left: 12px;
  bottom: 64px;
  width: 360px;
  max-height: 420px;
  display: flex;
  flex-direction: column;
  background: var(--sr-glass-strong);
  border: 1px solid var(--sr-edge-strong);
  border-radius: 14px;
  backdrop-filter: blur(18px);
  overflow: hidden;
}
body.app-slava-restraint .model-picker__search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--sr-edge);
  color: var(--sr-ink-meta);
}
body.app-slava-restraint .model-picker__search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--sr-ink);
  font-family: inherit;
  font-size: 13px;
}
body.app-slava-restraint .model-picker__list { overflow-y: auto; padding: 6px; }
body.app-slava-restraint .model-picker__group-label {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sr-ink-faint);
  padding: 8px 8px 4px;
}
body.app-slava-restraint .model-picker__row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  border-radius: 8px;
  padding: 8px;
  color: var(--sr-ink);
  cursor: pointer;
}
body.app-slava-restraint .model-picker__row:hover { background: var(--sr-glass-raised); }
body.app-slava-restraint .model-picker__row--active { background: var(--sr-glass-raised); }
body.app-slava-restraint .model-picker__row-name { font-size: 13px; }
body.app-slava-restraint .model-picker__row-meta { margin-left: auto; font-size: 11px; color: var(--sr-ink-faint); }
body.app-slava-restraint .model-picker__row-check { color: var(--sr-accent); }
