/* [project]/fe/app/globals.css [app-client] (css) */
:root {
  --bg: #0e1014;
  --panel: #16191f;
  --card: #1c2027;
  --line: #ffffff14;
  --text: #e8eaed;
  --muted: #9aa0a6;
  --accent: #6366f1;
  --accent2: #8b5cf6;
  --ok: #22c55e;
  --err: #ef4444;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Apple SD Gothic Neo, Segoe UI, Roboto, sans-serif;
}

.app {
  grid-template-columns: 380px 1fr;
  height: 100vh;
  display: grid;
  overflow: hidden;
}

@media (max-width: 820px) {
  .app {
    grid-template-rows: auto 1fr;
    grid-template-columns: 1fr;
    height: auto;
    overflow: auto;
  }
}

.panel {
  background: var(--panel);
  border-right: 1px solid var(--line);
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  display: flex;
  overflow: auto;
}

.brand {
  align-items: center;
  gap: 10px;
  display: flex;
}

.logo {
  background: linear-gradient(135deg,var(--accent),var(--accent2));
  border-radius: 9px;
  justify-content: center;
  align-items: center;
  width: 34px;
  height: 34px;
  font-size: 18px;
  display: flex;
}

.brand h1 {
  letter-spacing: -.02em;
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.brand .sub {
  color: var(--muted);
  margin-top: 1px;
  font-size: 11px;
}

.field {
  flex-direction: column;
  gap: 8px;
  display: flex;
}

.field label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

textarea {
  background: var(--card);
  width: 100%;
  color: var(--text);
  border: 1px solid var(--line);
  font: inherit;
  resize: vertical;
  border-radius: 12px;
  outline: none;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.5;
}

#prompt {
  min-height: 96px;
}

textarea:focus {
  border-color: var(--accent);
}

button.primary {
  background: linear-gradient(135deg,var(--accent),var(--accent2));
  color: #fff;
  cursor: pointer;
  border: 0;
  border-radius: 12px;
  width: 100%;
  padding: 12px;
  font-size: 15px;
  font-weight: 700;
  transition: opacity .15s;
}

button.primary:disabled {
  opacity: .5;
  cursor: default;
}

.hint {
  color: var(--muted);
  font-size: 11px;
}

.chips {
  flex-wrap: wrap;
  gap: 6px;
  display: flex;
}

.chip {
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--text);
  cursor: pointer;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  transition: border-color .15s;
}

.chip:hover {
  border-color: var(--accent);
}

.history {
  flex-direction: column;
  gap: 6px;
  display: flex;
}

.hist-item {
  background: var(--card);
  border: 1px solid var(--line);
  cursor: pointer;
  border-radius: 10px;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  font-size: 12px;
  transition: border-color .15s;
  display: flex;
}

.hist-item:hover {
  border-color: var(--accent);
}

.hist-item .t {
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  overflow: hidden;
}

.hist-item .m {
  color: var(--muted);
  flex-shrink: 0;
  font-size: 10px;
}

.hist-empty {
  color: var(--muted);
  font-size: 12px;
}

.status {
  color: var(--muted);
  border-top: 1px solid var(--line);
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
  font-size: 12px;
  display: flex;
}

.status .row {
  justify-content: space-between;
  display: flex;
}

.status b {
  color: var(--text);
  font-weight: 600;
}

.dot {
  background: var(--muted);
  border-radius: 50%;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  display: inline-block;
}

.dot.on {
  background: var(--ok);
}

.preview {
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  padding: 18px;
  display: flex;
}

.toolbar {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: flex;
}

.meta {
  color: var(--muted);
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  display: flex;
}

.tag {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 4px 9px;
}

.tag.ok {
  color: var(--ok);
}

.spacer {
  flex: 1;
}

.tbtn {
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--text);
  cursor: pointer;
  border-radius: 8px;
  padding: 7px 11px;
  font-size: 12px;
}

.tbtn:hover {
  border-color: var(--accent);
}

.seg {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  overflow: hidden;
}

.seg button {
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: 0;
  padding: 7px 11px;
  font-size: 12px;
}

.seg button.on {
  color: #fff;
  background: #6366f122;
}

.specwrap {
  flex-direction: column;
  gap: 6px;
  display: flex;
}

#spec {
  color: #cdd3da;
  min-height: 140px;
  max-height: 280px;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px;
}

.specbar {
  align-items: center;
  gap: 8px;
  display: flex;
}

.specbar .note {
  color: var(--muted);
  font-size: 11px;
}

.refinebar {
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  display: flex;
}

.refinebar .refine-ico {
  color: var(--muted);
  font-size: 13px;
}

.refinebar input {
  background: var(--card);
  border: 1px solid var(--line);
  min-width: 0;
  color: var(--text);
  border-radius: 8px;
  flex: 1;
  padding: 7px 11px;
  font-size: 12px;
}

.refinebar input:focus {
  border-color: var(--accent);
  outline: none;
}

.refinebar .note {
  color: var(--muted);
  white-space: nowrap;
  font-size: 11px;
}

.stage-wrap {
  flex: 1;
  justify-content: center;
  align-items: center;
  min-height: 0;
  display: flex;
}

.stage {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 16px;
  width: 100%;
  height: 100%;
  min-height: 0;
  transition: width .25s, height .25s;
  position: relative;
  overflow: hidden;
}

.stage.phone {
  aspect-ratio: 9 / 19.5;
  background: #fff;
  border: 0;
  border-radius: 36px;
  width: auto;
  max-width: 100%;
  height: 100%;
  max-height: 860px;
  box-shadow: 0 24px 60px -18px #000a;
}

.stage.phone iframe, .stage.phone .empty {
  border-radius: 36px;
}

.stage.tv {
  aspect-ratio: 16 / 9;
  border: 14px solid #0a0a0a;
  border-radius: 14px;
  width: 100%;
  max-width: 1000px;
  height: auto;
  max-height: 100%;
  box-shadow: 0 18px 50px #0007;
}

.stage iframe {
  border: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.empty {
  color: #9aa0a6;
  background: var(--card);
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 30px;
  display: flex;
  position: absolute;
  inset: 0;
}

.empty .big {
  font-size: 42px;
}

.empty h2 {
  color: var(--text);
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.empty p {
  max-width: 340px;
  margin: 0;
  font-size: 13px;
}

.spinner {
  border: 3px solid #fff2;
  border-top-color: var(--accent);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: .8s linear infinite spin;
}

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

.overlay {
  z-index: 5;
  background: #0e1014cc;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
  display: flex;
  position: absolute;
  inset: 0;
}

.overlay span {
  color: var(--muted);
  font-size: 13px;
}

.overlay .timer {
  color: var(--text);
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
  font-size: 20px;
  font-weight: 700;
}

.author-feed {
  border: 1px solid var(--line);
  background: #ffffff08;
  border-radius: 12px;
  flex-direction: column;
  gap: 7px;
  width: 380px;
  max-width: 88%;
  max-height: 42%;
  padding: 11px 13px;
  display: flex;
  overflow: auto;
}

.author-head {
  letter-spacing: .02em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 2px;
  font-size: 11px;
  font-weight: 700;
}

.astep {
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.4;
  animation: .25s astepin;
  display: flex;
}

.astep .ai {
  flex: none;
  font-size: 13px;
  line-height: 1.4;
}

.astep .at {
  color: var(--text);
}

.astep.ok .at {
  color: var(--ok);
}

.astep.fail .at {
  color: #fca5a5;
}

.astep.skip {
  opacity: .72;
}

.astep.run .ai {
  animation: 1s ease-in-out infinite pulse;
}

@keyframes astepin {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pulse {
  50% {
    opacity: .35;
  }
}

.errbox {
  color: #fca5a5;
  background: #ef444415;
  border: 1px solid #ef444455;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
}

/*# sourceMappingURL=fe_app_globals_094s4sp.css.map*/