.command-center-shell {
  display: none;
}

.simple-mode .command-center-shell {
  display: block;
  margin: 12px 0 18px;
  padding: 16px;
  border: 1px solid #9fc3b0;
  border-radius: 16px;
  background: linear-gradient(145deg, #f8fcf9, #edf7f1);
  box-shadow: 0 8px 24px #174b3017;
}

.command-center-toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}

.command-center-history {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.command-center-shell button {
  min-height: 44px;
}

.command-center-shell .command-center-quiet {
  border: 1px solid #aebfb5;
  background: #fff;
  color: var(--ink);
}

.command-center-shell .command-center-quiet:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.command-center-current h2 {
  margin: 3px 0 2px;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.command-center-current p {
  margin: 0;
}

.command-search {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin-top: 15px;
  padding: 14px;
  border: 1px solid #c5d7cc;
  border-radius: 13px;
  background: #fff;
}

.command-search-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, .6fr);
  gap: 14px;
  align-items: start;
  min-width: 0;
}

.command-search-heading h3,
.command-search-heading p {
  margin: 0;
}

.command-search-heading h3 {
  font-size: 1.08rem;
}

.command-search-safety {
  padding-left: 11px;
  border-left: 4px solid #7ca38d;
  color: #4f6258;
  font-size: .82rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.command-search-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, .34fr) auto auto;
  gap: 9px;
  align-items: end;
  min-width: 0;
}

.command-search-controls .field,
.command-search-controls input,
.command-search-controls select {
  min-width: 0;
  width: 100%;
}

.command-search-controls input,
.command-search-controls select,
.command-search-controls button {
  min-height: 44px;
}

.command-search-scope,
.command-search-status {
  min-height: 20px;
  overflow-wrap: anywhere;
}

.command-search-status[data-state="error"] {
  color: #9b2f2f;
  font-weight: 750;
}

.command-search-status[data-state="truncated"] {
  color: #765111;
  font-weight: 750;
}

.command-search-results {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.command-search-results[hidden] {
  display: none;
}

.command-search-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #d5e0d9;
  border-radius: 10px;
  background: #fbfdfb;
}

.command-search-result-copy {
  min-width: 0;
  overflow-wrap: anywhere;
}

.command-search-result-copy b {
  display: block;
}

.command-search-result-meta {
  margin-top: 3px;
  color: #5e7066;
  font-size: .8rem;
}

.command-search[aria-busy="true"] .command-search-results {
  opacity: .68;
}

.command-center-tasks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 15px;
}

.command-center-tasks button {
  display: grid;
  gap: 4px;
  align-content: center;
  min-width: 0;
  min-height: 72px;
  padding: 11px 13px;
  border: 1px solid #aebfb5;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.command-center-tasks button span {
  font-size: 1rem;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.command-center-tasks button small {
  color: #5e7066;
  font-size: .78rem;
  font-weight: 650;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.command-center-tasks button[aria-current="page"] {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
  box-shadow: 0 4px 12px #176b4d29;
}

.command-center-tasks button[aria-current="page"] small {
  color: #e8f5ee;
}

.command-center-status {
  min-height: 21px;
  margin-top: 10px;
  font-size: .86rem;
}

.simple-mode main > section[data-command-surface][hidden] {
  display: none !important;
}

body.simple-mode[data-command-route] main > section[data-command-managed="true"]:not([data-command-active="true"]) {
  display: none !important;
}

.simple-mode main > section[data-command-surface]:not([hidden]) {
  display: block;
}

.simple-mode main > section.layout[data-command-surface]:not([hidden]),
.simple-mode main > section.grid[data-command-surface]:not([hidden]) {
  display: grid;
}

body.simple-mode:not([data-command-route="home"]) #previewExampleButton {
  display: none;
}

body.simple-mode:not([data-command-route="bills"]) #entity {
  display: none;
}

.home-scope-controls {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin: 15px 0 12px;
  padding: 12px;
  border: 1px solid #d2ded6;
  border-radius: 12px;
  background: #fbfdfb;
}

.home-scope-controls .field {
  flex: 1 1 240px;
}

.home-scope-controls .horizon-picker {
  flex: 1 1 280px;
}

.home-scope-controls .horizon-buttons button {
  min-width: 76px;
}

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

  .command-search-heading,
  .command-search-controls {
    grid-template-columns: minmax(0, 1fr) minmax(160px, .5fr);
  }

  .command-search-controls button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .command-center-toolbar {
    grid-template-columns: 1fr;
  }

  .command-center-current {
    order: -1;
  }

  .command-center-history button {
    flex: 1;
  }

  .home-scope-controls,
  .home-scope-controls .field,
  .home-scope-controls .horizon-picker,
  .home-scope-controls select {
    width: 100%;
  }

  .command-search-heading,
  .command-search-controls {
    grid-template-columns: 1fr;
  }

  .command-search-safety {
    padding-top: 8px;
    padding-left: 0;
    border-top: 4px solid #7ca38d;
    border-left: 0;
  }

  .command-search-controls .field,
  .command-search-controls input,
  .command-search-controls select,
  .command-search-controls button {
    width: 100%;
  }

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

  .command-search-result button {
    width: 100%;
  }
}

@media (max-width: 375px) {
  .simple-mode .command-center-shell {
    padding: 12px;
  }

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

  .command-center-tasks button {
    min-height: 62px;
  }

  .command-search {
    padding: 11px;
  }
}

@media (max-width: 320px) {
  .simple-mode .command-center-shell {
    padding: 10px;
  }

  .command-center-history {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .home-scope-controls .horizon-buttons {
    display: grid;
    grid-template-columns: 1fr;
  }

  .home-scope-controls .horizon-buttons button {
    width: 100%;
  }

  .command-search {
    padding: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .command-center-shell *,
  .command-center-shell *::before,
  .command-center-shell *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@media (forced-colors: active) {
  .simple-mode .command-center-shell,
  .command-center-tasks button,
  .command-center-shell .command-center-quiet,
  .home-scope-controls,
  .command-search,
  .command-search-result,
  .command-search-safety {
    border-width: 2px;
  }

  .command-center-tasks button[aria-current="page"] {
    outline: 3px solid Highlight;
    outline-offset: 2px;
  }
}

@media print {
  .command-center-shell {
    display: none !important;
  }
}

.ask-oryviq {
  min-width: 0;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #bdd4c5;
  border-radius: 14px;
  background: linear-gradient(145deg, #fbfdfb, #f1f8f4);
}

.ask-oryviq-header,
.ask-oryviq-title-row,
.ask-oryviq-destination {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.ask-oryviq-title-row {
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.ask-oryviq-title-row h3,
.ask-oryviq-header p {
  margin: 3px 0 0;
}

.ask-oryviq-scope {
  margin: 13px 0;
  padding: 11px 12px;
  border-left: 4px solid #59856b;
  border-radius: 8px;
  background: #fff;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.ask-oryviq-prompts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 0 0 13px;
}

.ask-oryviq-prompts button {
  min-width: 0;
  min-height: 48px;
  padding: 9px 12px;
  text-align: left;
  overflow-wrap: anywhere;
}

.ask-oryviq-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin: 0;
}

.ask-oryviq-form .field,
.ask-oryviq-form input {
  min-width: 0;
  width: 100%;
}

.ask-oryviq-form input,
.ask-oryviq-form button,
.ask-oryviq-destination button {
  min-height: 44px;
}

.ask-oryviq-status {
  min-height: 22px;
  margin-top: 11px;
  overflow-wrap: anywhere;
}

.ask-oryviq-alert {
  margin-top: 10px;
  padding: 11px 12px;
  border: 1px solid #b33a3a;
  border-radius: 9px;
  color: #7f2323;
  background: #fff7f7;
  overflow-wrap: anywhere;
}

.ask-oryviq-answer {
  min-width: 0;
  margin-top: 13px;
  padding: 15px;
  border: 1px solid #d2ded6;
  border-radius: 12px;
  background: #fff;
}

.ask-oryviq-answer h4,
.ask-oryviq-answer h5 {
  margin: 0;
  overflow-wrap: anywhere;
}

.ask-oryviq-answer h5 {
  margin-top: 14px;
  font-size: 1rem;
}

.ask-oryviq-answer p {
  margin: 8px 0;
  overflow-wrap: anywhere;
}

.ask-oryviq-answer-meta {
  font-size: .87rem;
}

.ask-oryviq-facts {
  display: grid;
  gap: 8px;
  margin: 9px 0 0;
  padding: 0;
  list-style: none;
}

.ask-oryviq-fact {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #dce8e0;
  border-radius: 9px;
  background: #fbfdfb;
  overflow-wrap: anywhere;
}

.ask-oryviq-fact b,
.ask-oryviq-fact span {
  display: block;
}

.ask-oryviq-fact .ask-oryviq-fact-meta {
  margin-top: 4px;
  color: #5e7066;
  font-size: .84rem;
}

.ask-oryviq-destination {
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 13px;
}

.ask-oryviq-disclosure {
  margin: 14px 0 0;
  padding: 11px 12px;
  border-radius: 9px;
  background: #e9f4ed;
  overflow-wrap: anywhere;
}

.ask-oryviq [hidden] {
  display: none !important;
}

.ask-oryviq[data-state="loading"] .ask-oryviq-prompts,
.ask-oryviq[data-state="loading"] .ask-oryviq-answer {
  opacity: .64;
}

.ask-oryviq :focus-visible {
  outline: 3px solid #176b4d;
  outline-offset: 2px;
}

@media (max-width: 560px) {
  .ask-oryviq-prompts,
  .ask-oryviq-form {
    grid-template-columns: 1fr;
  }

  .ask-oryviq-prompts button,
  .ask-oryviq-form button,
  .ask-oryviq-destination button {
    width: 100%;
  }
}

@media (max-width: 375px) {
  .ask-oryviq {
    padding: 13px;
  }

  .ask-oryviq-answer {
    padding: 12px;
  }
}

@media (max-width: 320px) {
  .ask-oryviq {
    margin-inline: -8px;
    padding: 11px;
    border-radius: 10px;
  }

  .ask-oryviq-title-row {
    display: block;
  }

  .ask-oryviq-title-row .badge {
    display: inline-block;
    margin-top: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ask-oryviq,
  .ask-oryviq *,
  .ask-oryviq *::before,
  .ask-oryviq *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (forced-colors: active) {
  .ask-oryviq,
  .ask-oryviq-scope,
  .ask-oryviq-alert,
  .ask-oryviq-answer,
  .ask-oryviq-fact,
  .ask-oryviq-disclosure {
    border: 2px solid CanvasText;
  }

  .ask-oryviq-scope {
    border-left-width: 5px;
  }
}

@media print {
  .ask-oryviq {
    break-inside: avoid;
    border: 1px solid #000;
    box-shadow: none;
  }

  .ask-oryviq-prompts,
  .ask-oryviq-form,
  .ask-oryviq-status,
  .ask-oryviq-alert,
  .ask-oryviq-destination button {
    display: none !important;
  }

  .ask-oryviq-disclosure {
    display: block !important;
    border: 1px solid #000;
    background: transparent;
  }
}
