:root {
  color-scheme: dark;
  --bg: #070a13;
  --panel: rgba(13, 20, 38, 0.65);
  --panel-soft: rgba(22, 32, 58, 0.45);
  --ink: #f8fafc;
  --muted: #94a3b8;
  --line: rgba(255, 255, 255, 0.07);
  --accent: #0ea5e9;
  --accent-strong: #38bdf8;
  --accent-soft: rgba(14, 165, 233, 0.12);
  --gold: #fbbf24;
  --berry: #d946ef;
  --danger: #f87171;
  --user: rgba(30, 41, 59, 0.85);
  --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overflow: hidden;
  font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  margin: 0;
  color: var(--ink);
  background: 
    radial-gradient(circle at 10% 20%, rgba(14, 165, 233, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(217, 70, 239, 0.1) 0%, transparent 45%),
    var(--bg);
  background-attachment: fixed;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

button,
select,
textarea {
  font: inherit;
}

button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  transition: var(--transition);
}

button:disabled,
select:disabled,
textarea:disabled {
  cursor: wait;
  opacity: 0.5;
}

.app-frame {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100vh;
  padding: 16px;
  gap: 16px;
}

.top-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 74px;
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.top-brand,
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.compact-brand {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--berry));
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.3);
  animation: pulseGlowCircle 2s infinite;
}

@keyframes pulseGlowCircle {
  0%, 100% { box-shadow: 0 0 15px rgba(14, 165, 233, 0.3); }
  50% { box-shadow: 0 0 25px rgba(217, 70, 239, 0.5); }
}

.eyebrow {
  margin: 0 0 2px;
  color: var(--muted);
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(to left, #fff, var(--accent-strong));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-family: 'Outfit', 'Cairo', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.2;
}

.tab-buttons {
  display: flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-soft);
}

.tab-button {
  min-height: 36px;
  padding: 0 16px;
  color: var(--muted);
  background: transparent;
  font-size: 0.9rem;
}

.tab-button:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
}

.tab-button.active {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.4);
}

.tab-panel {
  display: none;
  min-height: 0;
  overflow: hidden;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.tab-panel.active {
  display: block;
}

.knowledge-shell,
.direct-shell {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr) 320px;
  gap: 16px;
  height: 100%;
  min-height: 0;
}

.acp-shell {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 16px;
  height: 100%;
  min-height: 0;
}

.template-shell {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 16px;
  height: 100%;
  min-height: 0;
}

.node-center-shell {
  height: 100%;
  min-height: 0;
}

.side-panel,
.qa-panel,
.activity-panel,
.direct-chat-panel,
.acp-monitor-panel,
.template-panel,
.node-center-panel {
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.side-panel,
.activity-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  overflow: hidden;
}

.status-panel,
.control-panel,
.learn-panel,
.path-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-soft);
  transition: var(--transition);
}

.status-panel:hover,
.control-panel:hover,
.learn-panel:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(22, 32, 58, 0.55);
}

.panel-title,
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.section-heading strong,
.panel-title span:first-child {
  color: var(--ink);
  font-size: 0.85rem;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}

.status-dot.ready {
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
}

.status-dot.error {
  background: var(--danger);
  box-shadow: 0 0 10px var(--danger);
}

#statusTitle, #directStatusTitle, #acpStatusTitle {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

#statusText, #directStatusText, #acpStatusText {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
}

.field-label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.field-help {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.field-help.danger-mode {
  color: var(--danger);
  font-weight: 700;
}

.field-input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(10, 15, 30, 0.6);
  outline: none;
  font-family: inherit;
  transition: var(--transition);
}

.field-input {
  min-height: 38px;
  padding: 0 12px;
}

textarea {
  min-height: 80px;
  max-height: 180px;
  resize: vertical;
  padding: 12px 14px;
  line-height: 1.55;
  font-size: 0.92rem;
}

.field-input:focus,
textarea:focus {
  border-color: var(--accent);
  background: rgba(10, 15, 30, 0.85);
  box-shadow: 0 0 10px rgba(14, 165, 233, 0.25);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.stats-grid > div {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10, 15, 30, 0.35);
}

.stats-grid span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.stats-grid strong {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  color: var(--accent-strong);
  font-weight: 700;
}

.primary-button {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
}

.primary-button:hover:not(:disabled) {
  background: var(--accent-strong);
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.35);
  transform: translateY(-1px);
}

.primary-button:active:not(:disabled) {
  transform: translateY(0);
}

.ghost-button {
  color: var(--ink);
  background: var(--panel-soft);
  border: 1px solid var(--line);
}

.ghost-button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

.path-panel {
  margin-top: auto;
}

.path-panel span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

code {
  direction: ltr;
  display: block;
  color: var(--accent-strong);
  font-family: Consolas, "Cascadia Mono", monospace;
  font-size: 0.75rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  text-align: left;
  background: rgba(0, 0, 0, 0.2);
  padding: 4px 6px;
  border-radius: 4px;
}

.qa-panel {
  display: grid;
  grid-template-rows: auto auto minmax(170px, 0.65fr) minmax(0, 1fr);
  overflow: hidden;
}

.direct-chat-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.acp-monitor-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.template-panel {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.node-center-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
  overflow: hidden;
}

.node-center-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-soft);
}

.node-center-header h2 {
  margin: 0;
}

.node-center-description {
  max-width: 760px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.7;
}

.node-center-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.node-center-status,
.node-center-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 700;
}

.node-center-status {
  color: var(--muted);
  background: rgba(0, 0, 0, 0.16);
}

.node-center-link {
  color: var(--ink);
  background: var(--accent-soft);
  text-decoration: none;
  transition: var(--transition);
}

.node-center-link:hover {
  color: #fff;
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(14, 165, 233, 0.2);
  transform: translateY(-1px);
}

.node-center-frame-wrap {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #080d19;
}

.node-center-frame-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #080d19;
}

.node-center-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  text-align: center;
  background: rgba(7, 10, 19, 0.94);
  backdrop-filter: blur(8px);
}

.node-center-fallback[hidden] {
  display: none;
}

.node-center-fallback p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.8;
}

.node-center-fallback button {
  min-width: 150px;
  padding: 0 18px;
}

.qa-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-soft);
}

.header-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.header-metrics span,
.section-heading span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 99px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid rgba(14, 165, 233, 0.15);
}

.question-box {
  display: grid;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.question-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-start;
}

.question-actions button {
  min-width: 100px;
}

.answer-section,
.sources-section {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.sources-section {
  border-bottom: 0;
}

.answer-text {
  margin-top: 10px;
  overflow-y: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10, 15, 30, 0.4);
  line-height: 1.8;
  white-space: pre-wrap;
  font-size: 0.95rem;
}

.sources-list,
.activity-list,
.direct-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
}

.sources-list,
.activity-list {
  margin-top: 10px;
}

.source-card,
.activity-entry,
.chat-message .bubble {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.45);
  transition: var(--transition);
}

.source-card:hover,
.activity-entry:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(22, 32, 58, 0.35);
  transform: translateX(-2px);
}

.source-card {
  display: grid;
  gap: 6px;
  padding: 12px 16px;
}

.activity-entry {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
}

.source-meta,
.activity-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.source-title {
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.source-snippet,
.activity-message {
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.85rem;
}

.activity-panel .section-heading {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.activity-detail {
  max-height: 130px;
  margin: 0;
  padding: 10px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  direction: ltr;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.25);
  font-family: Consolas, "Cascadia Mono", monospace;
  font-size: 0.74rem;
  line-height: 1.4;
  text-align: left;
  white-space: pre-wrap;
}

.empty-state {
  padding: 20px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: rgba(10, 15, 30, 0.2);
  line-height: 1.65;
  text-align: center;
}

.direct-messages {
  padding: 20px;
}

.chat-message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: min(800px, 92%);
  margin-bottom: 14px;
  animation: chatFade 0.25s ease-out;
}

@keyframes chatFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-message.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--berry));
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 0.95rem;
  box-shadow: 0 4px 10px rgba(14, 165, 233, 0.2);
}

.chat-message.user .avatar {
  background: var(--user);
  box-shadow: none;
}

.bubble {
  min-width: 0;
  padding: 12px 16px;
  line-height: 1.75;
  font-size: 0.95rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.chat-message.user .bubble {
  color: #fff;
  border-color: rgba(30, 41, 59, 0.9);
  background: var(--user);
}

.chat-message.loading .bubble {
  color: var(--muted);
  background: rgba(15, 23, 42, 0.25);
  border-style: dashed;
}

.permission-card {
  display: grid;
  gap: 12px;
  border-color: rgba(251, 191, 36, 0.25);
  background: rgba(251, 191, 36, 0.05);
  padding: 14px;
  border-radius: 10px;
  animation: float 4s ease-in-out infinite;
}

.permission-card pre {
  max-height: 200px;
  margin: 0;
  padding: 10px;
  overflow: auto;
  border: 1px solid rgba(251, 191, 36, 0.15);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  direction: ltr;
  text-align: left;
  white-space: pre-wrap;
  font-size: 0.78rem;
  color: #fbbf24;
}

.permission-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reject-button {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.reject-button:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.35);
}

.direct-composer {
  display: grid;
  gap: 12px;
  padding: 18px 20px;
  border-top: 1px solid var(--line);
  background: var(--panel);
}

.direct-composer-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 110px;
  gap: 12px;
  align-items: end;
}

.direct-composer textarea {
  min-height: 48px;
  max-height: 140px;
  padding: 12px;
  border-radius: 8px;
}

.image-button {
  min-width: 0;
  color: var(--muted);
}

.attachment-preview {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 72px;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
}

.attachment-preview[hidden] {
  display: none;
}

.attachment-preview img {
  width: 76px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--line);
}

.attachment-preview div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.attachment-preview strong,
.attachment-preview span {
  overflow-wrap: anywhere;
}

.attachment-preview strong {
  font-size: 0.85rem;
  color: var(--ink);
}

.attachment-preview span {
  color: var(--muted);
  font-size: 0.72rem;
}

.chat-image {
  display: block;
  width: min(320px, 100%);
  max-height: 260px;
  margin-bottom: 8px;
  border-radius: 8px;
  object-fit: contain;
  border: 1px solid var(--line);
}

.acp-messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  overflow-y: auto;
  padding: 20px;
}

.acp-entry {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  background: rgba(15, 23, 42, 0.45);
  transition: var(--transition);
}

.acp-entry.client {
  border-right: 4px solid var(--accent);
}

.acp-entry.gemini {
  border-right: 4px solid var(--berry);
}

.acp-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.acp-direction {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 99px;
  color: #fff;
  background: var(--accent);
  font-size: 0.7rem;
}

.acp-entry.gemini .acp-direction {
  background: var(--berry);
}

.acp-title {
  direction: ltr;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.5;
  text-align: left;
  overflow-wrap: anywhere;
}

.acp-payload {
  max-height: 260px;
  margin: 0;
  padding: 10px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  direction: ltr;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.25);
  font-family: Consolas, "Cascadia Mono", monospace;
  font-size: 0.74rem;
  line-height: 1.4;
  text-align: left;
  white-space: pre-wrap;
}

.acp-payload .json-key {
  color: #38bdf8;
  font-weight: 700;
}
.acp-payload .json-string {
  color: #34d399;
}
.acp-payload .json-number {
  color: #f59e0b;
}
.acp-payload .json-boolean {
  color: #c084fc;
  font-weight: 700;
}
.acp-payload .json-null {
  color: #f87171;
  font-weight: 700;
}

.acp-explanation {
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(14, 165, 233, 0.05);
  border-right: 3px solid var(--accent);
  margin-bottom: 10px;
}

.acp-entry.gemini .acp-explanation {
  background: rgba(217, 70, 239, 0.04);
  border-right-color: var(--berry);
}

.acp-exp-title {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.acp-exp-text {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted);
}

@media (max-width: 1180px) {
  .knowledge-shell,
  .direct-shell {
    grid-template-columns: 290px minmax(0, 1fr);
  }

  .acp-shell {
    grid-template-columns: 290px minmax(0, 1fr);
  }

  .activity-panel {
    display: none;
  }
}

@media (max-width: 820px) {
  html,
  body {
    overflow: auto;
  }

  .app-frame {
    height: auto;
    min-height: 100vh;
  }

  .top-tabs {
    align-items: flex-start;
    flex-direction: column;
    height: auto;
    min-height: 0;
    gap: 12px;
  }

  .tab-buttons {
    width: 100%;
    flex-wrap: wrap;
  }

  .tab-button {
    flex: 1 1 140px;
  }

  .knowledge-shell,
  .direct-shell,
  .acp-shell {
    grid-template-columns: 1fr;
    height: auto;
  }

  .qa-panel,
  .direct-chat-panel,
  .acp-monitor-panel,
  .node-center-panel {
    min-height: 700px;
  }

  .node-center-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .node-center-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .qa-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 540px) {
  .app-frame {
    padding: 8px;
  }

  .question-actions,
  .header-metrics {
    width: 100%;
  }

  .question-actions,
  .direct-composer,
  .direct-composer-row,
  .attachment-preview {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .attachment-preview img {
    width: 100%;
    height: auto;
    max-height: 220px;
  }
}
