/* ==========================================================================
   styles.css – Tiva Studio
   Requires: base.css (loaded first in studio.html)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Layout container (Studio: fixed max-width, centered)
   -------------------------------------------------------------------------- */
.container {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 36px));
  margin: calc(var(--header-h) + 16px) auto 18px;
}

.app-main {
  display: grid;
  gap: 18px;
}

/* --------------------------------------------------------------------------
   Panel – base card
   -------------------------------------------------------------------------- */
.panel {
  border: 1px solid var(--line);
  background: var(--panel-bg);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 10px 26px rgba(94, 85, 72, 0.08);
}

.panel.demo-locked {
  position: relative;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Hero panel
   -------------------------------------------------------------------------- */
.hero-panel {
  display: grid;
  grid-template-columns: minmax(92px, 130px) 1fr;
  align-items: start;
  gap: 16px;
}

.hero-brand {
  display: flex;
  align-items: flex-start;
}

.hero-logo {
  width: clamp(92px, 10vw, 130px);
  height: auto;
  display: block;
}

.hero-copy h1 {
  margin: 0 0 12px;
  line-height: 1.18;
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  letter-spacing: 0.01em;
}

.hero-copy > p {
  margin: 0;
  font-size: 1rem;
  max-width: 74ch;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Studio quick-start steps + scope
   -------------------------------------------------------------------------- */
.studio-quick-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.studio-step {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(172, 165, 151, 0.56);
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 600;
}

.studio-scope {
  margin-top: 12px;
  border: 1px dashed rgba(172, 165, 151, 0.56);
  border-radius: 10px;
  background: rgba(250, 247, 243, 0.70);
  padding: 10px 12px;
}

.studio-scope-title {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
}

.studio-scope-item {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.studio-scope-item + .studio-scope-item {
  margin-top: 3px;
}

/* --------------------------------------------------------------------------
   Guest banner
   -------------------------------------------------------------------------- */
.guest-banner {
  display: grid;
  gap: 10px;
}

.guest-banner-compact {
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.guest-pill {
  margin: 0;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(172, 165, 151, 0.56);
  background: rgba(255, 255, 255, 0.56);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.guest-inline {
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   Video / canvas preview (studio hero – in addition to base.css placeholder)
   -------------------------------------------------------------------------- */
.studio-preview-wrap {
  margin-top: 14px;
}

.preview-caption {
  margin: 8px 0 0;
  font-size: 0.86rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Builder grid
   -------------------------------------------------------------------------- */
.builder-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.builder-grid .panel {
  min-height: 520px;
  display: flex;
  flex-direction: column;
}

/* --------------------------------------------------------------------------
   Signal panel
   -------------------------------------------------------------------------- */
.signal-toolbar {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.signal-toolbar-title {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.signal-toolbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.toolbar-btn {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(172, 165, 151, 0.68);
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 600;
}

.toolbar-btn:hover,
.toolbar-btn:focus-visible {
  color: var(--ink);
  border-color: rgba(120, 112, 97, 0.90);
}

textarea {
  width: 100%;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(172, 165, 151, 0.60);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.48);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.48;
  resize: vertical;
  min-height: 180px;
}

.signal-panel textarea {
  min-height: 282px;
}

.signal-profile {
  margin-top: 12px;
  border: 1px dashed rgba(172, 165, 151, 0.56);
  border-radius: 10px;
  background: rgba(250, 247, 243, 0.68);
  padding: 10px 11px;
  min-height: 176px;
}

.signal-profile h3 {
  margin: 0 0 8px;
  font-size: 0.84rem;
  color: var(--ink);
}

.signal-profile-grid {
  display: grid;
  gap: 6px;
}

.signal-profile-row {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: baseline;
  font-size: 0.84rem;
  color: var(--ink-soft);
}

.signal-profile-row strong {
  color: var(--ink);
  font-weight: 600;
  text-align: right;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(172, 165, 151, 0.55);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.profile-summary {
  margin-top: 12px;
  padding: 11px 12px;
  border-radius: 10px;
  background: rgba(250, 248, 244, 0.68);
  border: 1px solid rgba(172, 165, 151, 0.45);
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* --------------------------------------------------------------------------
   Recent signals
   -------------------------------------------------------------------------- */
.recent-signals {
  margin-top: 12px;
  border: 1px dashed rgba(172, 165, 151, 0.56);
  border-radius: 10px;
  background: rgba(250, 247, 243, 0.68);
  padding: 10px 11px;
}

.recent-signals-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.recent-signals h3 {
  margin: 0;
  font-size: 0.84rem;
  color: var(--ink);
}

.recent-signals-list {
  margin-top: 8px;
  display: grid;
  gap: 7px;
}

.recent-signal-item {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(172, 165, 151, 0.52);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.62);
  padding: 8px 9px;
}

.recent-signal-item:hover,
.recent-signal-item:focus-visible {
  border-color: rgba(120, 112, 97, 0.90);
}

.recent-signal-text {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.35;
}

.recent-signal-meta {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.74rem;
}

.recent-signals-empty {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

/* --------------------------------------------------------------------------
   Agent builder
   -------------------------------------------------------------------------- */
.agent-locked-hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.agent-builder-form {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  min-height: 332px;
}

.agent-builder-form .inline-actions {
  margin-top: auto;
  padding-top: 10px;
}

label {
  display: block;
  margin-top: 12px;
  margin-bottom: 6px;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

input[type="text"],
select {
  width: 100%;
  min-height: 42px;
  padding: 10px;
  border: 1px solid rgba(172, 165, 151, 0.60);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.48);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
}

.agent-builder-form input[type="text"],
.agent-builder-form select {
  min-height: 36px;
  padding: 7px 10px;
}

.subject-custom-input {
  margin-top: 8px;
}

input[type="range"] {
  width: 100%;
  accent-color: #7f8f6f;
}

.range-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

output {
  min-width: 56px;
  text-align: right;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.field-help {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.inline-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 42px;
  align-items: flex-start;
}

/* --------------------------------------------------------------------------
   Agent preview card / blueprint
   -------------------------------------------------------------------------- */
.agent-preview-card {
  margin-top: 12px;
  border-radius: 11px;
  border: 1px dashed rgba(172, 165, 151, 0.56);
  background: rgba(250, 247, 243, 0.68);
  padding: 14px;
  min-height: 176px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.agent-preview-card.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
}

.agent-blueprint-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.agent-blueprint-top-minimal {
  justify-content: flex-end;
}

.agent-blueprint-empty {
  min-height: 144px;
}

.agent-visual {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, rgba(232, 242, 228, 0.95), rgba(140, 167, 132, 0.8));
  border: 1px solid rgba(114, 138, 106, 0.65);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.35);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.agent-visual::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px dashed rgba(124, 148, 116, 0.55);
}

.agent-visual-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: saturate(0) brightness(0.68) sepia(0.95) hue-rotate(35deg) saturate(1.7);
  animation: tiva-agent-breath 3.2s ease-in-out infinite;
}

@keyframes tiva-agent-breath {
  0%,  100% { transform: scale(0.97); opacity: 0.82; }
  50%        { transform: scale(1.05); opacity: 1;    }
}

.agent-blueprint-name {
  margin: 0;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 700;
}

.agent-blueprint-sub {
  margin: 2px 0 0;
  color: var(--ink-soft);
  font-size: 0.83rem;
}

.agent-blueprint-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.agent-metric {
  border: 1px solid rgba(172, 165, 151, 0.45);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.62);
  padding: 8px 9px;
}

.agent-metric-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
}

.agent-metric-value {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 600;
}

.agent-blueprint-next {
  margin-top: 10px;
  padding: 8px 9px;
  border-radius: 9px;
  background: rgba(233, 241, 230, 0.60);
  border: 1px solid rgba(142, 166, 135, 0.50);
}

.agent-blueprint-next p {
  margin: 0;
  color: #5d6e56;
  font-size: 0.82rem;
}

/* --------------------------------------------------------------------------
   Agent welcome modal
   -------------------------------------------------------------------------- */
.agent-modal {
  width: min(640px, calc(100% - 28px));
  border: 0;
  border-radius: 14px;
  padding: 0;
  background: transparent;
}

.agent-modal::backdrop {
  background: rgba(83, 74, 63, 0.36);
  backdrop-filter: blur(3px);
}

.agent-modal-card {
  margin: 0;
  border: 1px solid rgba(172, 165, 151, 0.56);
  border-radius: 14px;
  background: rgba(249, 246, 241, 0.96);
  box-shadow: 0 16px 36px rgba(71, 61, 50, 0.20);
  padding: 16px;
}

.agent-modal-card h2 {
  margin: 0 0 8px;
}

.agent-modal-signals {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.agent-modal-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(172, 165, 151, 0.58);
  background: rgba(255, 255, 255, 0.74);
  padding: 6px 10px;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.agent-modal-question {
  margin-top: 12px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
}

.agent-modal-actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

/* --------------------------------------------------------------------------
   Workspace + community grids
   -------------------------------------------------------------------------- */
.workspace-grid,
.community-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.lower-panel {
  min-height: 320px;
  padding: 14px;
}

/* --------------------------------------------------------------------------
   Settings panel
   -------------------------------------------------------------------------- */
.settings-upload-row {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.upload-btn-icon {
  font-size: 0.95rem;
  line-height: 1;
}

.upload-info {
  margin-top: 10px;
  margin-bottom: 8px;
  font-size: 0.84rem;
  font-style: italic;
}

.settings-disclosure {
  margin-top: 14px;
}

.settings-disclosure summary {
  cursor: pointer;
  color: var(--ink-soft);
  font-size: 0.9rem;
  padding: 10px 12px;
  border: 1px solid rgba(172, 165, 151, 0.55);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.42);
  user-select: none;
}

.settings-disclosure[open] summary {
  margin-bottom: 10px;
}

.setting-block + .setting-block {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(172, 165, 151, 0.26);
}

/* --------------------------------------------------------------------------
   Path panel
   -------------------------------------------------------------------------- */
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.live-personalization {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  border: 1px solid rgba(172, 165, 151, 0.56);
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.progress-wrap {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  align-items: center;
}

.progress-wrap label {
  margin: 0;
  font-size: 0.84rem;
  color: var(--ink-soft);
}

progress {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(172, 165, 151, 0.36);
  background: rgba(255, 255, 255, 0.46);
}

progress::-webkit-progress-bar  { background: rgba(255, 255, 255, 0.46); }
progress::-webkit-progress-value { background: linear-gradient(90deg, #728768 0%, #94a78f 100%); }

.path-timeline {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.path-step {
  border: 1px solid rgba(172, 165, 151, 0.42);
  border-radius: 11px;
  padding: 12px;
  background: rgba(249, 246, 241, 0.74);
}

.step-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.step-title {
  margin: 0;
  font-size: 0.98rem;
}

.step-meta {
  margin: 8px 0 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.step-summary {
  margin: 8px 0 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.step-supports {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.step-supports li {
  background: var(--accent-soft);
  color: #3f5338;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.78rem;
}

.step-check-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.path-step.completed {
  border-color: rgba(107, 128, 100, 0.58);
  background: rgba(227, 239, 223, 0.42);
}

.path-step.locked {
  border-style: dashed;
  border-color: rgba(172, 165, 151, 0.70);
  background: rgba(246, 241, 234, 0.74);
}

/* --------------------------------------------------------------------------
   Demo / guest state
   -------------------------------------------------------------------------- */
.demo-step,
.demo-card {
  opacity: 0.82;
}

.demo-note {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.84rem;
  font-style: italic;
}

.panel-lock-overlay {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 12px;
  background: linear-gradient(180deg, rgba(248, 245, 240, 0.18) 0%, rgba(248, 245, 240, 0.56) 100%);
  backdrop-filter: blur(1px);
}

/* --------------------------------------------------------------------------
   Achievement cards
   -------------------------------------------------------------------------- */
.achievement-deck,
.community-feed {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.achievement-card,
.community-post {
  border: 1px solid rgba(172, 165, 151, 0.40);
  border-radius: 11px;
  padding: 12px;
  background: rgba(250, 247, 243, 0.72);
}

.achievement-card h3,
.community-post h3 {
  margin: 0;
  font-size: 0.96rem;
}

.achievement-card p,
.community-post p {
  margin: 7px 0 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.badge-card-row,
.community-badge-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
}

.community-badge-row {
  grid-template-columns: auto 1fr;
}

.badge-copy h3 { margin: 0; }

.badge-copy p {
  margin: 4px 0 0;
  font-size: 0.83rem;
}

.badge-share-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(172, 165, 151, 0.60);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.learning-badge {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4e452f;
  background: linear-gradient(145deg, #f3e7b9 0%, #d7ba6f 100%);
  border: 1px solid rgba(130, 110, 62, 0.50);
  box-shadow: inset 0 0 0 2px rgba(255, 248, 220, 0.35), 0 6px 14px rgba(94, 85, 72, 0.12);
}

.learning-badge.small {
  width: 44px;
  height: 44px;
  font-size: 1rem;
}

.learning-badge span { font-size: 1.14rem; }

.badge-shape-hex    { clip-path: polygon(25% 5%, 75% 5%, 96% 50%, 75% 95%, 25% 95%, 4% 50%); }
.badge-shape-shield { clip-path: polygon(50% 4%, 92% 22%, 84% 78%, 50% 96%, 16% 78%, 8% 22%); }
.badge-shape-ring   {
  border-radius: 50%;
  box-shadow: inset 0 0 0 7px rgba(78, 69, 47, 0.16),
              inset 0 0 0 2px rgba(255, 248, 220, 0.42),
              0 6px 14px rgba(94, 85, 72, 0.12);
}

.badge-meta {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.76rem;
}

.badge-actions {
  margin-top: 8px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Community
   -------------------------------------------------------------------------- */
.community-reactions {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.emoji-btn {
  min-height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(172, 165, 151, 0.55);
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink-soft);
  font-size: 0.76rem;
}

.community-meta {
  margin-top: 7px;
  font-size: 0.8rem;
  color: var(--muted);
}

.lock-link {
  display: inline-flex;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Misc / shared Studio utilities
   -------------------------------------------------------------------------- */
h2 {
  margin: 0 0 8px;
  line-height: 1.24;
  font-size: 1.2rem;
}

h3 {
  margin: 0;
  font-size: 0.98rem;
  color: var(--ink);
}

.empty-state {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.app-status {
  margin: 0;
  min-height: 22px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.app-status.warn { color: var(--warning); }
.app-status.ok   { color: #4e6655; }

/* --------------------------------------------------------------------------
   Footer (Studio variant – overrides base where needed)
   -------------------------------------------------------------------------- */
.studio-footer {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 36px));
  margin: clamp(34px, 6.8vh, 68px) auto 0;
  padding: 0 0 24px;
  font-size: 14px;
  color: var(--muted);
}

.studio-footer .footer-links {
  display: block;
}

.studio-footer .footer-links li {
  margin-bottom: 10px;
}

.studio-footer .footer-copy {
  margin-top: 18px;
}

/* --------------------------------------------------------------------------
   Responsive – Studio breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .workspace-grid,
  .builder-grid,
  .community-grid,
  .hero-panel {
    grid-template-columns: 1fr;
  }

  .hero-brand {
    justify-self: start;
  }

  .guest-banner-compact {
    grid-template-columns: 1fr;
  }

  .lower-panel {
    min-height: auto;
  }

  .builder-grid .panel {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 54px;
    --edge-pad: 12px;
  }

  .container {
    width: calc(100% - 20px);
    margin-top: calc(var(--header-h) + 12px);
    margin-bottom: 12px;
  }

  .studio-footer {
    width: calc(100% - 20px);
  }

  .panel {
    padding: 14px;
    border-radius: 11px;
  }

  .inline-actions {
    flex-direction: column;
  }

  .primary-btn,
  .cta-btn {
    width: 100%;
  }

  .panel-head {
    align-items: flex-start;
  }

  .agent-blueprint-grid {
    grid-template-columns: 1fr;
  }

  .agent-modal-actions {
    justify-content: stretch;
  }

  .agent-modal-actions .primary-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .agent-visual-logo {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
