@import url("./tokens.css");
@import url("./costs.css");
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter,"Segoe UI",Arial,sans-serif;
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
}

button,input,select {
  font: inherit;
}

button,a,input,select {
  -webkit-tap-highlight-color: transparent;
}

button,a,select {
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible {
  outline: 3px solid #a497ff;
  outline-offset: 3px;
}

button:disabled {
  opacity: .5;
  cursor: wait;
}

[hidden] {
  display: none!important;
}

svg {
  display: block;
}

button svg,[data-icon] svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 244px;
  background: var(--sidebar);
  color: #a3a5b4;
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 6px 37px;
  color: #f5f5fa;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -.7px;
}

.brand-light {
  font-weight: 400;
  color: #cdccd7;
}

.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 1.6px;
  color: #888998;
  margin-top: 5px;
  font-weight: 500;
}

.server-badge {
  border: 1px solid #34353f;
  background: #22242d;
  border-radius: 8px;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 13px 10px;
  margin-bottom: 30px;
}

.server-symbol {
  color: #c4bdfc;
}

.server-badge strong {
  display: block;
  color: #e6e7ef;
  font-size: 11px;
  font-weight: 500;
  max-width: 145px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-badge small {
  display: block;
  font-size: 10px;
  margin-top: 5px;
  color: #888b9d;
}

.server-badge .status-dot {
  margin-left: auto;
  flex-shrink: 0;
}

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #64ba9c;
}

.nav-label {
  font-size: 9px;
  letter-spacing: 1.8px;
  margin: 0 13px 13px;
  color: #737685;
  font-weight: 650;
}

nav {
  display: grid;
  gap: 6px;
}

nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  font-size: 12px;
  border-radius: 6px;
}

nav a:hover {
  background: #252731;
  color: #fff;
}

nav a.active {
  background: #333044;
  color: #d1c9ff;
}

nav a.active [data-icon] {
  color: #b6a7ff;
}

.nav-count {
  margin-left: auto;
  background: #464057;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
}

.sidebar-bottom {
  margin-top: auto;
}

.local-note {
  margin: 24px 10px;
  padding-top: 24px;
  border-top: 1px solid #32343d;
}

.local-note>[data-icon] {
  display: block;
  color: #8b7cf8;
  margin-bottom: 12px;
}

.local-note strong {
  font-size: 11px;
  color: #cbcbd7;
  font-weight: 500;
}

.local-note p {
  font-size: 10px;
  line-height: 1.8;
  color: #787c8d;
}

.collector-status {
  border-top: 1px solid #32343d;
  padding: 20px 5px 0;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
}

.collector-status small {
  margin-left: auto;
  color: #737685;
  font-size: 9px;
}

.workspace {
  margin-left: 244px;
}

.topbar {
  height: 68px;
  border-bottom: 1px solid var(--border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
}

.breadcrumb {
  display: flex;
  gap: 14px;
  align-items: center;
  color: #8e919e;
  font-size: 11px;
}

.breadcrumb span {
  color: #ced0d8;
}

.breadcrumb strong {
  font-weight: 500;
  color: #505464;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.live-pill {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 10px;
  color: #6e7781;
}

.icon-button {
  border: 0;
  background: none;
  color: #848895;
  padding: 7px;
}

.icon-button:hover {
  background: var(--canvas);
  border-radius: 5px;
}

main {
  max-width: 1700px;
  margin: 0 auto;
  padding: 34px 36px 0;
}

.page-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 29px;
}

.eyebrow {
  font-size: 9px;
  font-weight: 650;
  color: #9295a2;
  letter-spacing: 1.9px;
  margin-bottom: 10px;
}

h1 {
  font-size: 27px;
  letter-spacing: -1px;
  font-weight: 600;
  margin: 0 0 10px;
}

h2 {
  font-size: 13px;
  letter-spacing: -.15px;
  font-weight: 600;
  margin: 0;
}

h3 {
  font-size: 12px;
  font-weight: 500;
  margin: 0 0 10px;
}

.page-heading p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}

.heading-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.button,select {
  border: 1px solid #dcdee6;
  border-radius: 6px;
  padding: 9px 12px;
  background: white;
  color: #4d5262;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.button:hover {
  background: #f8f7ff;
  border-color: #b9b0ec;
}

.button svg {
  width: 14px;
  height: 14px;
}

.primary {
  background: #7664d7;
  color: #fff;
  border-color: #7664d7;
}

.primary:hover {
  background: #6654c7;
  color: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 17px;
  margin-bottom: 22px;
}

.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 18px 19px;
  position: relative;
  min-height: 137px;
  overflow: hidden;
}

.stat-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #767b8c;
  font-size: 10px;
}

.stat-icon {
  padding: 6px;
  border-radius: 6px;
  background: #f6f5fc;
  color: #8d7cd4;
}

.stat-icon svg {
  width: 15px;
  height: 15px;
}

.stat-value {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -1px;
  margin: 12px 0 11px;
  line-height: 1;
}

.stat-value small {
  font-size: 12px;
  letter-spacing: 0;
  color: #9699a8;
  font-weight: 400;
  margin-left: 4px;
}

.stat-meta {
  font-size: 9px;
  color: #9296a4;
  display: flex;
  gap: 6px;
}

.stat-meta strong {
  font-weight: 500;
  color: #6e648e;
}

.spark {
  position: absolute;
  right: 16px;
  bottom: 19px;
  width: 70px;
  height: 27px;
  opacity: .75;
}

.panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 9px;
  overflow: hidden;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 22px 0;
}

.panel-heading p {
  font-size: 10px;
  color: #969aa8;
  margin: 7px 0 0;
  line-height: 1.5;
}

.charts-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) 300px;
  gap: 20px;
  margin-bottom: 22px;
}

.segmented {
  display: inline-flex;
  background: #f5f5f9;
  padding: 3px;
  border: 1px solid #efeff4;
  border-radius: 6px;
  gap: 2px;
  flex-wrap: wrap;
}

.segmented button {
  background: none;
  border: 0;
  padding: 6px 9px;
  border-radius: 4px;
  font-size: 9px;
  color: #8b8f9f;
  white-space: nowrap;
}

.segmented button.active {
  background: white;
  color: #7060b6;
  box-shadow: 0 1px 3px #18153012;
}

.chart-summary {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 23px 22px 0;
}

.chart-summary strong {
  font-size: 24px;
  font-weight: 550;
  letter-spacing: -.7px;
}

.chart-summary>span {
  font-size: 9px;
  color: #9a9daa;
}

.chart-legend {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: #8b8e9d;
  font-size: 9px;
}

.chart-legend i {
  width: 6px;
  height: 6px;
  background: #9782e4;
  border-radius: 2px;
}

.chart {
  height: 200px;
  padding: 15px 18px 5px;
  position: relative;
}

.chart svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.chart text {
  font-family: inherit;
  font-size: 10px;
  fill: #a0a4b3;
}

.chart-empty {
  height: 100%;
  display: grid;
  place-content: center;
  text-align: center;
  color: #9095a5;
  font-size: 11px;
  line-height: 1.8;
}

.chart-empty strong {
  font-weight: 500;
  color: #6e7387;
}

.panel-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid #f0f0f5;
  padding: 12px 22px;
  font-size: 9px;
  color: #9a9eab;
}

.small-tag {
  font-size: 8px;
  color: #a297bb;
  letter-spacing: .6px;
  border: 1px solid #ede9f5;
  border-radius: 4px;
  padding: 4px 6px;
  white-space: nowrap;
}

.cost-amount {
  font-size: 37px;
  letter-spacing: -1.5px;
  font-weight: 550;
  margin: 24px 22px 4px;
}

.cost-amount small {
  font-size: 12px;
  color: #a2a4b0;
  font-weight: 400;
  letter-spacing: 0;
  margin-left: 4px;
}

.cost-caption {
  font-size: 10px;
  color: #9599a6;
  margin: 0 22px 22px;
}

.cost-breakdown {
  margin: 0 22px 18px;
}

.breakdown-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: #8a8f9e;
  margin-top: 12px;
}

.breakdown-row i {
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--dot);
}

.breakdown-row strong {
  margin-left: auto;
  font-size: 11px;
  color: #575b6b;
  font-weight: 500;
}

.cost-preview>.text-link {
  display: flex;
  justify-content: space-between;
  padding: 14px 22px;
  border-top: 1px solid var(--border);
}

.text-link {
  font-size: 10px;
  font-weight: 500;
  color: #8c77c7;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.text-link svg {
  width: 13px;
  height: 13px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) 300px;
  gap: 20px;
  margin-bottom: 22px;
}

.table-scroll {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}

th {
  font-size: 8px;
  font-weight: 500;
  color: #9a9eab;
  text-transform: uppercase;
  letter-spacing: .8px;
  border-bottom: 1px solid #eeeff5;
  background: #fdfdfe;
  padding: 13px 20px;
}

td {
  font-size: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid #f0f1f6;
  color: #7b8091;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: #fdfcff;
}

.workload-preview .table-scroll {
  margin-top: 20px;
}

.workload-name {
  display: flex;
  gap: 9px;
  align-items: center;
}

.workload-symbol {
  color: #9686c7;
  background: #f6f3fc;
  border: 1px solid #eee9f8;
  border-radius: 5px;
  padding: 5px;
}

.workload-symbol svg {
  width: 14px;
  height: 14px;
}

.name-button {
  display: block;
  border: 0;
  padding: 0;
  background: none;
  color: #4e5365;
  font-size: 11px;
  text-align: left;
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.name-button:hover {
  color: #8370c9;
  text-decoration: underline;
}

.workload-name small {
  display: block;
  margin-top: 4px;
  font-size: 8px;
  color: #a2a5b3;
}

.type-tag {
  font-size: 8px;
  border: 1px solid #e9e7f0;
  padding: 3px 6px;
  border-radius: 4px;
  color: #9a8aae;
  background: #fcfbff;
}

.switch {
  position: relative;
  width: 27px;
  height: 15px;
  display: inline-block;
}

.switch input {
  opacity: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  margin: 0;
  cursor: pointer;
  z-index: 1;
}

.switch span {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: #e1e3eb;
  transition: background .15s;
  pointer-events: none;
}

.switch span:after {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px #0002;
  transition: transform .15s;
}

.switch input:checked+span {
  background: #9a86dc;
}

.switch input:checked+span:after {
  transform: translateX(12px);
}

.switch input:focus-visible+span {
  outline: 2px solid #7664d7;
  outline-offset: 3px;
}

.switch input:disabled+span {
  opacity: .4;
}

.power-icon {
  color: #9f8bd1;
  background: #f8f4fd;
  padding: 7px;
  border-radius: 6px;
}

.power-value {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 26px 22px 20px;
}

.power-value strong {
  font-size: 36px;
  font-weight: 550;
  letter-spacing: -1px;
}

.power-value>span {
  font-size: 11px;
  color: #a1a5b2;
}

.power-meter {
  height: 5px;
  background: #f1edf9;
  border-radius: 4px;
  margin: 0 22px 24px;
  overflow: hidden;
}

.power-meter span {
  display: block;
  background: #a48cd8;
  height: 100%;
  max-width: 100%;
  width: 0;
  transition: width .2s;
}

.power-details {
  margin: 0 22px;
}

.power-details>div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 10px;
  color: #969bab;
}

.power-details strong {
  font-size: 11px;
  color: #686b7e;
  font-weight: 500;
}

.subtle {
  font-size: 9px;
  color: #a0a4b2;
  line-height: 1.7;
  margin: 18px 22px;
}

.footnote {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f0edf8;
  border: 1px solid #e7e2f2;
  border-radius: 7px;
  padding: 12px 16px;
  font-size: 9px;
  color: #9790aa;
}

.footnote>[data-icon] {
  color: #a497c1;
}

.footnote p {
  margin: 0;
  line-height: 1.6;
}

.footnote a {
  margin-left: auto;
  color: #8c77b6;
  white-space: nowrap;
  font-weight: 500;
}

footer {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 9px;
  color: #a2a5b2;
  margin-top: 28px;
  border-top: 1px solid #e8e9f0;
  padding: 19px 0;
}

footer>span:first-child {
  color: #b7bac5;
}

footer>span:last-child {
  margin-left: auto;
}

.notice {
  margin-bottom: 20px;
  background: #fff9ed;
  border: 1px solid #f0e2bf;
  padding: 12px 15px;
  border-radius: 6px;
  font-size: 11px;
  color: #9b7948;
  line-height: 1.7;
}

.workload-toolbar {
  align-items: center;
  padding-bottom: 18px;
}

.workload-toolbar input {
  max-width: 220px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 9px 12px;
  background: #fff;
  font-size: 11px;
}

.table-note {
  font-size: 10px;
  color: #969aa9;
  margin: 0 22px 20px;
  line-height: 1.7;
}

.empty-cell {
  text-align: center;
  padding: 38px;
  color: #9b9fac;
}

.workload-history {
  margin-top: 22px;
}

.detail-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 22px;
}

.detail-charts .chart {
  padding-left: 0;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
  margin: 20px 0 22px;
}

.plan-card {
  padding: 24px;
}

.plan-card.featured {
  border-color: #baa9e3;
  box-shadow: 0 0 0 1px #e9e1f6;
}

.plan-card h2 {
  font-size: 14px;
}

.plan-card>p {
  font-size: 10px;
  color: #a0a4b1;
  line-height: 1.8;
  min-height: 36px;
}

.plan-price {
  font-size: 32px;
  letter-spacing: -1px;
  margin: 20px 0 5px;
  color: #4d4867;
}

.plan-price small {
  font-size: 11px;
  letter-spacing: 0;
  color: #aaa4b9;
}

.plan-observed {
  font-size: 10px;
  color: #9c97a9;
  margin-bottom: 22px;
}

.plan-parts {
  border-top: 1px solid var(--border);
  padding-top: 8px;
}

.cost-context {
  background: #eeeaf8;
  border: 1px solid #e1d8f3;
  color: #84739f;
  padding: 15px 18px;
  border-radius: 7px;
  font-size: 11px;
  line-height: 1.8;
}

.analysis-grid {
  grid-template-columns: 1fr 1fr;
}

.analysis-table {
  margin-top: 20px;
}

.analysis-table th,.analysis-table td {
  padding: 14px 22px;
}

.formulas {
  padding: 4px 22px 15px;
  font-size: 11px;
  line-height: 1.8;
}

.formulas dt {
  font-weight: 550;
  color: #737187;
  margin-top: 14px;
}

.formulas dd {
  margin: 3px 0 0;
  color: #9997a7;
}

.analysis-notes {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
  padding: 24px;
}

.analysis-notes h3 {
  color: #767385;
}

.analysis-notes p {
  font-size: 11px;
  color: #9795a4;
  line-height: 1.9;
  margin: 0;
}

.settings-panel {
  margin-bottom: 20px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px 24px;
  padding: 24px;
}

.field label {
  display: block;
  font-size: 11px;
  color: #737487;
  margin-bottom: 8px;
}

.field input,.field select {
  border: 1px solid #dddde7;
  border-radius: 6px;
  padding: 10px 12px;
  background: #fff;
  width: 100%;
  color: #69687d;
  display: block;
}

.field small {
  display: block;
  font-size: 9px;
  color: #a7a5b3;
  line-height: 1.7;
  margin-top: 7px;
}

.save-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 24px 0;
}

.save-bar p {
  font-size: 10px;
  color: #93909f;
}

.runtime-panel {
  margin-top: 24px;
}

#runtime-settings {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 20px;
  padding: 24px;
}

#runtime-settings span {
  display: block;
  font-size: 10px;
  color: #a3a0af;
  margin-bottom: 8px;
}

#runtime-settings strong {
  font-size: 12px;
  color: #787386;
  font-weight: 500;
}

dialog {
  border: 1px solid #ddd7e8;
  border-radius: 12px;
  padding: 32px;
  width: 360px;
  box-shadow: 0 15px 100px #17192033;
  color: #5f5974;
}

dialog::backdrop {
  background: #17192088;
  backdrop-filter: blur(3px);
}

dialog h2 {
  margin-top: 20px;
  font-size: 18px;
}

dialog p {
  font-size: 11px;
  line-height: 1.8;
  color: #9690a5;
}

dialog label {
  font-size: 11px;
  display: block;
  margin: 24px 0 18px;
}

dialog input {
  display: block;
  width: 100%;
  padding: 11px;
  border: 1px solid #ddd7e8;
  border-radius: 6px;
  margin-top: 8px;
}

dialog .button {
  width: 100%;
}

#toast {
  position: fixed;
  bottom: 24px;
  left: calc(50% + 122px);
  transform: translateX(-50%);
  background: #383145;
  color: #fff;
  padding: 12px 20px;
  border-radius: 7px;
  box-shadow: 0 3px 20px #17192020;
  font-size: 12px;
  z-index: 5;
  max-width: 90vw;
  line-height: 1.6;
}

@media(min-width:1550px) {
  .charts-grid,.detail-grid {
    grid-template-columns: minmax(0,1fr) 340px;
  }
  .analysis-grid {
    grid-template-columns: 1fr 1fr;
  }
  .chart {
    height: 240px;
  }
  .stat-card {
    min-height: 150px;
  }
  .stat-value {
    font-size: 32px;
  }
}

@media(max-width:1200px) {
  .sidebar {
    width: 210px;
    padding: 28px 15px;
  }
  .workspace {
    margin-left: 210px;
  }
  main {
    padding: 26px 24px 0;
  }
  .topbar {
    padding: 0 24px;
  }
  .charts-grid,.detail-grid {
    grid-template-columns: minmax(0,1fr) 270px;
  }
  .analysis-grid {
    grid-template-columns: 1fr 1fr;
  }
  .page-heading {
    align-items: flex-start;
  }
  h1 {
    font-size: 24px;
  }
  .heading-actions {
    padding-top: 15px;
  }
  .stats-grid {
    gap: 12px;
  }
  .stat-card {
    padding: 15px;
  }
  .stat-value {
    font-size: 25px;
  }
  .spark {
    width: 45px;
    right: 10px;
  }
  .panel-heading {
    padding: 18px 18px 0;
  }
  .segmented button {
    padding: 6px 7px;
  }
  .chart-summary {
    padding: 20px 18px 0;
  }
  th,td {
    padding-left: 15px;
    padding-right: 15px;
  }
  .brand {
    font-size: 17px;
  }
  .brand small {
    font-size: 7px;
  }
  .chart-legend {
    display: none;
  }
  #toast {
    left: calc(50% + 105px);
  }
}

@media(max-width:1000px) {
  .sidebar {
    width: 76px;
    padding: 24px 12px;
  }
  .brand {
    margin: 0 8px 32px;
  }
  .brand>span,.server-badge,.nav-label,.sidebar-bottom,nav a>.nav-count {
    display: none;
  }
  nav a {
    font-size: 0;
    justify-content: center;
    padding: 14px;
  }
  nav a svg {
    width: 20px;
    height: 20px;
  }
  .workspace {
    margin-left: 76px;
  }
  .charts-grid,.detail-grid {
    grid-template-columns: minmax(0,1fr) 265px;
  }
  .analysis-grid {
    grid-template-columns: 1fr;
  }
  .field-grid {
    grid-template-columns: repeat(2,1fr);
  }
  .page-heading {
    display: block;
  }
  .heading-actions {
    padding-top: 20px;
  }
  .stat-meta {
    max-width: 110px;
    line-height: 1.6;
  }
  .spark {
    display: none;
  }
  .stats-grid {
    gap: 10px;
  }
  .stat-heading {
    font-size: 9px;
  }
  .analysis-notes {
    grid-template-columns: 1fr;
  }
  .plan-grid {
    gap: 12px;
  }
  .plan-card {
    padding: 18px;
  }
  #toast {
    left: calc(50% + 38px);
  }
}

@media(max-width:760px) {
  .charts-grid,.detail-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .stat-value {
    font-size: 28px;
  }
  .spark {
    display: block;
    width: 60px;
  }
  .cost-preview .cost-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 25px;
  }
  .chart {
    height: 220px;
  }
  .plan-grid {
    grid-template-columns: 1fr;
  }
  .analysis-notes {
    gap: 20px;
  }
  .workload-toolbar {
    flex-wrap: wrap;
  }
  .detail-charts {
    grid-template-columns: 1fr;
  }
  .field-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footnote {
    align-items: flex-start;
  }
  .footnote a {
    padding-top: 3px;
  }
  #runtime-settings {
    grid-template-columns: 1fr 1fr;
  }
  .table-note {
    line-height: 1.8;
  }
  .plan-card>p {
    min-height: 0;
  }
  .topbar-right {
    gap: 8px;
  }
  footer>span:first-child {
    display: none;
  }
  .chart-legend {
    display: flex;
  }
}

@media(max-width:480px) {
  .sidebar {
    width: 56px;
    padding: 24px 6px;
  }
  .brand {
    margin: 0 6px 24px;
  }
  .brand img {
    width: 30px;
    height: 30px;
  }
  nav a {
    padding: 13px 8px;
  }
  .workspace {
    margin-left: 56px;
  }
  main {
    padding: 24px 14px 0;
  }
  .topbar {
    padding: 0 14px;
    height: 56px;
  }
  .breadcrumb {
    font-size: 10px;
    gap: 8px;
  }
  .stats-grid {
    gap: 10px;
  }
  .stat-card {
    padding: 13px;
  }
  .stat-icon {
    padding: 4px;
  }
  .stat-value {
    font-size: 25px;
  }
  .spark {
    width: 38px;
  }
  .stat-meta {
    font-size: 8px;
    max-width: 100px;
  }
  .panel-heading {
    padding: 17px 15px 0;
    flex-wrap: wrap;
  }
  .panel-heading p {
    font-size: 9px;
  }
  .segmented button {
    padding: 5px 7px;
  }
  .field-grid {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .panel-footer {
    padding: 12px 15px;
    flex-wrap: wrap;
  }
  .chart-summary {
    padding-left: 15px;
  }
  .chart-summary strong {
    font-size: 22px;
  }
  .chart-summary>span {
    font-size: 8px;
  }
  .page-heading p {
    line-height: 1.7;
  }
  h1 {
    font-size: 23px;
  }
  .heading-actions {
    gap: 8px;
  }
  .button,select {
    font-size: 10px;
  }
  .footnote {
    padding: 12px;
  }
  .footnote>[data-icon] {
    display: none;
  }
  .footnote a {
    display: none;
  }
  .plan-price {
    font-size: 30px;
  }
  .save-bar {
    align-items: flex-start;
  }
  .save-bar p {
    margin: 0;
    line-height: 1.7;
  }
  .live-pill {
    font-size: 9px;
  }
  #toast {
    left: calc(50% + 28px);
  }
}

@media(prefers-reduced-motion:reduce) {
  * {
    transition: none!important;
  }
}
