
.ha-command-center {
  display: grid;
  gap: var(--ha-4);
}

.ha-command-hero {
  position: relative;
  overflow: hidden;

  padding: clamp(22px, 4vw, 42px);

  border:
    1px solid var(--ha-border);

  border-radius:
    var(--ha-r-xl);

  background:
    linear-gradient(
      145deg,
      rgba(27,40,68,.90),
      rgba(10,18,33,.96)
    );

  box-shadow:
    var(--ha-shadow-lg);
}

.ha-command-hero::after {
  content: "";

  position: absolute;
  width: 380px;
  height: 380px;

  right: -130px;
  top: -220px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(129,156,255,.28),
      transparent 68%
    );

  pointer-events: none;
}

.ha-command-heading {
  position: relative;
  z-index: 1;

  max-width: 760px;
}

.ha-command-heading h1 {
  margin-bottom: 12px;

  font-size:
    clamp(30px, 5vw, 54px);

  line-height: 1.02;
}

.ha-command-heading p {
  max-width: 650px;
  margin-bottom: 0;

  color: var(--ha-text-2);

  font-size:
    clamp(13px, 2vw, 16px);

  line-height: 1.6;
}

.ha-command-box {
  position: relative;
  z-index: 2;

  margin-top: var(--ha-6);
  padding: 12px;

  border:
    1px solid var(--ha-border-strong);

  border-radius:
    var(--ha-r-lg);

  background:
    rgba(5,9,18,.58);

  box-shadow:
    var(--ha-shadow-sm);
}

.ha-command-textarea {
  width: 100%;
  min-height: 116px;

  padding: 10px;

  resize: vertical;

  border: 0;
  outline: 0;

  background: transparent;
  color: var(--ha-text-1);

  font-size: 15px;
  line-height: 1.55;
}

.ha-command-textarea::placeholder {
  color: var(--ha-text-3);
}

.ha-command-actions {
  padding-top: 10px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  border-top:
    1px solid var(--ha-border);
}

.ha-command-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ha-command-chip {
  min-height: 28px;
  padding: 0 10px;

  border:
    1px solid var(--ha-border);

  border-radius: 999px;

  background:
    rgba(255,255,255,.035);

  color: var(--ha-text-2);

  cursor: pointer;

  font-size: 10px;
}

.ha-command-chip:hover {
  border-color:
    var(--ha-border-strong);

  color:
    var(--ha-text-1);
}

.ha-command-run {
  min-width: 132px;
}

.ha-command-run:disabled {
  opacity: .42;
  cursor: not-allowed;
  transform: none;
}

.ha-command-metrics {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: var(--ha-3);
}

.ha-command-metric {
  min-height: 116px;
  padding: 16px;

  display: flex;
  flex-direction: column;
}

.ha-command-metric-label {
  color: var(--ha-text-3);

  font-size: 10px;
  font-weight: 800;

  letter-spacing: .08em;
  text-transform: uppercase;
}

.ha-command-metric-value {
  margin-top: 9px;

  font-size: 27px;
  font-weight: 800;

  letter-spacing: -.03em;
}

.ha-command-metric-caption {
  margin-top: auto;

  color: var(--ha-text-3);

  font-size: 10px;
}

.ha-command-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 2fr)
    minmax(260px, 1fr);

  gap: var(--ha-3);
}

.ha-command-panel {
  min-height: 250px;
  padding: 18px;
}

.ha-command-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;

  margin-bottom: 16px;
}

.ha-command-panel-header h2 {
  margin-bottom: 0;

  font-size: 17px;
}

.ha-command-empty {
  min-height: 170px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
}

.ha-command-empty-icon {
  width: 46px;
  height: 46px;

  display: grid;
  place-items: center;

  margin-bottom: 10px;

  border:
    1px solid var(--ha-border);

  border-radius:
    var(--ha-r-md);

  background:
    rgba(255,255,255,.035);
}

@media (max-width: 1000px) {
  .ha-command-metrics {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .ha-command-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .ha-command-hero {
    padding: 22px 15px;

    border-radius:
      var(--ha-r-lg);
  }

  .ha-command-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ha-command-run {
    width: 100%;
  }

  .ha-command-metrics {
    gap: 8px;
  }

  .ha-command-metric {
    min-height: 105px;
    padding: 13px;
  }
}

@media (max-width: 390px) {
  .ha-command-shortcuts {
    display: none;
  }

  .ha-command-heading h1 {
    font-size: 30px;
  }
}
.ha-chat-shell{display:flex;flex-direction:column;min-height:calc(100vh - 150px);padding:28px;max-width:900px;margin:auto}.ha-chat-header h1{margin:.3rem 0}.ha-chat-messages{flex:1;overflow:auto;padding:20px 0 110px}.ha-chat-empty{text-align:center;opacity:.65;padding:20vh 0}.ha-chat-message{display:flex;flex-direction:column;max-width:78%;margin:12px 0}.ha-chat-message.is-user{margin-left:auto;align-items:flex-end}.ha-chat-bubble{padding:12px 16px;border-radius:16px;background:var(--ha-surface,#151d2d);white-space:pre-wrap;overflow-wrap:anywhere}.is-user .ha-chat-bubble{background:#2457a6}.ha-chat-message time{font-size:11px;opacity:.6;margin:4px 8px}.ha-chat-composer{display:flex;gap:10px;position:sticky;bottom:76px;background:var(--ha-bg,#070b14);padding:12px 0}.ha-chat-composer textarea{flex:1;resize:none;border-radius:12px;padding:12px;background:#101827;color:inherit;border:1px solid #33415a}@media(max-width:600px){.ha-chat-shell{padding:18px 12px;min-height:calc(100vh - 120px)}.ha-chat-message{max-width:90%}.ha-chat-composer{bottom:58px}.ha-capability-panel{left:8px;right:8px}}
.ha-chat-approval{border:1px solid #d39b35;border-radius:12px;padding:14px;background:var(--ha-surface,#151d2d);max-width:100%}.ha-chat-approval-status{font-size:.9rem;opacity:.85}.ha-chat-approval-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.ha-chat-approval-modify{min-width:220px;flex:1;padding:9px;border-radius:8px;border:1px solid #33415a;background:#101827;color:inherit}
