/* Arquitect Studio — tokens y base */
:root {
  --arq-bg: #0f1114;
  --arq-surface: #1a1d23;
  --arq-surface2: #242830;
  --arq-border: #2e3440;
  --arq-text: #e8eaed;
  --arq-muted: #8b919a;
  --arq-accent: #3d8bfd;
  --arq-accent-dim: #2a5fbf;
  --arq-danger: #e85d5d;
  --arq-success: #3dd68c;
  --arq-font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --arq-radius: 10px;
  --arq-touch: 48px;
  --arq-shadow: 0 8px 32px rgba(0,0,0,.45);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  font-family: var(--arq-font);
  font-size: 16px;
  color: var(--arq-text);
  background: var(--arq-bg);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.arq-app { overflow: hidden; height: 100%; }

#arq-app-root { height: 100%; display: flex; flex-direction: column; }

.arq-view {
  display: none;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}
.arq-view--active { display: flex; }

.arq-btn {
  min-height: var(--arq-touch);
  min-width: var(--arq-touch);
  padding: 0 1rem;
  border-radius: var(--arq-radius);
  border: 1px solid var(--arq-border);
  background: var(--arq-surface2);
  color: var(--arq-text);
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}
.arq-btn:active { transform: scale(0.98); }
.arq-btn--primary {
  background: linear-gradient(180deg, var(--arq-accent), var(--arq-accent-dim));
  border-color: var(--arq-accent);
  color: #fff;
}
.arq-btn--secondary { background: var(--arq-surface2); }
.arq-btn--ghost {
  background: transparent;
  border-color: transparent;
}
.arq-btn--icon { min-width: var(--arq-touch); padding: 0; }

.arq-input, .arq-textarea {
  width: 100%;
  min-height: var(--arq-touch);
  padding: 0.65rem 0.85rem;
  border-radius: var(--arq-radius);
  border: 1px solid var(--arq-border);
  background: var(--arq-bg);
  color: var(--arq-text);
  font-size: 1rem;
}
.arq-textarea { min-height: 100px; resize: vertical; }

.arq-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--arq-muted);
  margin: 0.5rem 0 0.25rem;
}

.arq-muted { color: var(--arq-muted); font-size: 0.9rem; }
.arq-ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40vw; }
.arq-sep { opacity: 0.4; margin: 0 0.25rem; }

.arq-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-block;
  object-fit: contain;
  vertical-align: middle;
  flex-shrink: 0;
}

.arq-icon-gear::before { content: "⚙"; }

.arq-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  padding: 0.7rem 1.05rem;
  background: var(--arq-surface2);
  border: 1px solid var(--arq-border);
  border-left: 3px solid var(--arq-text);
  border-radius: var(--arq-radius);
  box-shadow: var(--arq-shadow);
  max-width: 90vw;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.arq-toast .arq-toast-icon {
  color: var(--arq-text);
  opacity: 0.85;
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
}
.arq-toast .arq-toast-text {
  text-align: left;
  word-break: break-word;
}
