/* Phase V — UI styles */

.v-note {
  font-size: 0.7rem; color: var(--ink-dim);
  font-weight: 400; margin-left: 0.5rem;
  font-family: var(--font-mono);
}
.v-summary-ok   { color: var(--success); }
.v-summary-warn { color: var(--warning); }
.v-summary-error { color: var(--danger); }

.v-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.6rem;
}
.v-card {
  padding: 0.75rem 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  display: flex; flex-direction: column; gap: 0.35rem;
}
.v-card.planned { opacity: 0.6; border-style: dashed; }
.v-card-head {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-serif); font-size: 0.9rem;
}
.v-card-detail { font-size: 0.78rem; color: var(--ink-dim); word-break: break-word; }
.v-card-meta { font-size: 0.7rem; color: var(--ink-dimmer); font-family: var(--font-mono); }
.v-card .btn { margin-top: 0.3rem; font-size: 0.72rem; padding: 0.25rem 0.6rem; }

.v-dot {
  width: 10px; height: 10px; border-radius: 50%;
  flex-shrink: 0; background: var(--ink-dim);
}
.v-dot-ok      { background: var(--success); box-shadow: 0 0 0 2px rgba(93,144,56,0.2); animation: v-pulse-ok 3s infinite; }
.v-dot-warn    { background: var(--warning); box-shadow: 0 0 0 2px rgba(240,183,90,0.2); }
.v-dot-err     { background: var(--danger); box-shadow: 0 0 0 2px rgba(220,67,67,0.2); }
.v-dot-mute    { background: var(--ink-dimmer); }
.v-dot-planned { background: #a87ce0; opacity: 0.6; }
@keyframes v-pulse-ok {
  0%, 100% { box-shadow: 0 0 0 2px rgba(93,144,56,0.2); }
  50%      { box-shadow: 0 0 0 4px rgba(93,144,56,0.08); }
}

.v-chip {
  margin-left: auto;
  font-size: 0.62rem; font-weight: 700;
  padding: 0.1em 0.4em;
  border-radius: 2px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: var(--border-heavy);
  color: var(--ink-dim);
}
.v-chip-connected { background: rgba(93,144,56,0.18); color: var(--success); }
.v-chip-disconnected { background: rgba(220,67,67,0.18); color: var(--danger); }
.v-chip-disabled  { background: var(--border-heavy); color: var(--ink-dim); }
.v-chip-planned, .v-chip-not-configured { background: rgba(168,124,224,0.2); color: #9770bc; }

.v-row {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.4rem 0.55rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  margin-bottom: 0.3rem;
  font-size: 0.82rem;
}
.v-row-chat { flex-shrink: 0; font-family: var(--font-mono); font-size: 0.78rem; }
.v-row-chat code { background: var(--bg); padding: 0.1em 0.35em; border-radius: 2px; color: var(--accent); }
.v-row-meta { margin-left: auto; font-size: 0.68rem; color: var(--ink-dimmer); font-family: var(--font-mono); }
.v-select {
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--border-heavy);
  border-radius: var(--radius-xs);
  background: var(--bg-input); color: var(--ink);
  font-size: 0.78rem; font-family: var(--font-mono);
}
.v-select:focus { outline: none; border-color: var(--accent); }

/* Tools-Panel */
.v-tools-group .v-tools-label {
  font-size: 0.72rem; color: var(--ink-dim);
  font-weight: 600; margin-bottom: 0.3rem;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.v-chips {
  display: flex; flex-wrap: wrap; gap: 0.3rem;
}
.v-chip-tool {
  padding: 0.2em 0.55em;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 0.72rem; font-family: var(--font-mono);
  color: var(--ink);
  cursor: default;
  transition: border-color 120ms ease;
}
.v-chip-tool:hover { border-color: var(--accent); }
.v-chip-mcp { color: var(--accent); }

/* Profile */
.v-profile-card { padding: 0.9rem 1.1rem; }
.v-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.6rem;
}
.v-profile-grid > div {
  display: flex; flex-direction: column; gap: 0.15rem;
  padding: 0.4rem 0.55rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
}
.v-lbl { font-size: 0.68rem; color: var(--ink-dimmer); text-transform: uppercase; letter-spacing: 0.5px; }
.v-val { font-size: 0.85rem; color: var(--ink); font-family: var(--font-mono); }
.v-val code { background: var(--bg-card); padding: 0.1em 0.3em; border-radius: 2px; color: var(--accent); }

/* Health */
.v-health-list {
  display: flex; flex-direction: column; gap: 0.3rem;
}
.v-health-item {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.5rem 0.7rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  border-radius: var(--radius-xs);
  font-size: 0.82rem;
}
.v-health-ok    { border-left-color: var(--success); }
.v-health-warn  { border-left-color: var(--warning); }
.v-health-error { border-left-color: var(--danger); }
.v-health-name  { font-weight: 600; min-width: 160px; }
.v-health-detail { color: var(--ink-dim); font-family: var(--font-mono); font-size: 0.74rem; flex: 1; }

/* Canvas placeholder */
.v-canvas-stub { padding: 1.2rem 1.5rem; }
.v-canvas-scene {
  margin-top: 1rem;
  padding: 2rem;
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: var(--radius-xs);
  min-height: 220px;
  display: flex; align-items: center; justify-content: center;
}
.v-canvas-placeholder {
  text-align: center; color: var(--ink-dim);
}

/* W.1 — Onboarding-Wizard */
.w1-wizard-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center;
  animation: w1-fade-in 0.2s ease-out;
}
[data-theme="dark"] .w1-wizard-overlay { background: rgba(0,0,0,0.65); }
@keyframes w1-fade-in { from { opacity: 0; } to { opacity: 1; } }
.w1-wizard-modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 90%; max-width: 540px;
  display: flex; flex-direction: column;
  box-shadow: 0 16px 60px rgba(0,0,0,0.18);
  animation: w1-slide-up 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes w1-slide-up { from { transform: translateY(12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.w1-wizard-head {
  padding: 1rem 1.2rem 0.6rem;
  display: flex; align-items: center; gap: 0.7rem;
  border-bottom: 1px solid var(--border);
}
.w1-wizard-title {
  font-family: var(--font-serif); font-size: 1.1rem; font-weight: 600; flex: 1;
}
.w1-wizard-progress {
  font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--ink-dim);
  padding: 0.15rem 0.5rem; background: var(--bg); border-radius: 8px;
}
.w1-wizard-x {
  background: none; border: none; cursor: pointer;
  font-size: 1.4rem; color: var(--ink-dim); padding: 0 0.3rem; line-height: 1;
}
.w1-wizard-x:hover { color: var(--ink); }
.w1-wizard-body { padding: 1.2rem 1.4rem; min-height: 180px; }
.w1-wizard-foot {
  padding: 0.7rem 1.2rem;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: 0.6rem;
}
.btn-secondary {
  background: var(--bg); border: 1px solid var(--border);
  color: var(--ink); padding: 0.4rem 0.9rem; border-radius: 6px;
  font-size: 0.85rem; cursor: pointer;
}
.btn-secondary:hover { border-color: var(--accent); }
.w1-step-head {
  display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.6rem;
}
.w1-step-name { font-family: var(--font-serif); font-size: 1rem; font-weight: 600; flex: 1; }
.w1-step-status {
  font-size: 0.7rem; padding: 0.15rem 0.5rem; border-radius: 8px;
  font-family: var(--font-mono); text-transform: uppercase;
}
.w1-step-ok    { background: rgba(122, 139, 111, 0.15); color: var(--success); }
.w1-step-warn  { background: rgba(212, 114, 92, 0.15); color: var(--warning); }
.w1-step-error { background: rgba(181, 67, 52, 0.15); color: var(--danger); }
.w1-step-detail {
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-dim);
  margin-bottom: 0.8rem; padding: 0.5rem 0.7rem;
  background: var(--bg); border-radius: 6px;
}
.w1-step-fix {
  background: rgba(107, 137, 165, 0.08); border-left: 3px solid var(--info);
  padding: 0.7rem 0.9rem; border-radius: 6px;
}
.w1-fix-label { font-size: 0.72rem; font-weight: 600; color: var(--info); margin-bottom: 0.3rem; text-transform: uppercase; letter-spacing: 0.05em; }
.w1-fix-text  { font-size: 0.85rem; line-height: 1.6; color: var(--ink); white-space: pre-wrap; }
.w1-step-noop {
  font-style: italic; color: var(--ink-dim); padding: 0.5rem 0;
}
.w1-step-done { text-align: center; padding: 1.2rem 0; }
.w1-done-icon {
  width: 56px; height: 56px; margin: 0 auto 0.8rem;
  border-radius: 50%; background: var(--success);
  color: white; font-size: 2rem; line-height: 56px;
}
.w1-done-title { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 600; margin-bottom: 0.4rem; }
.w1-done-summary { font-family: var(--font-mono); font-size: 0.9rem; color: var(--ink-dim); margin-bottom: 0.8rem; }
.w1-done-hint { font-size: 0.85rem; color: var(--ink-dim); line-height: 1.5; max-width: 360px; margin: 0 auto; }
