:root {
  --bg: #0f1724;
  --panel: #162235;
  --panel-2: #1c2c44;
  --surface: #ffffff;
  --surface-soft: #f4f7fb;
  --text: #102033;
  --text-light: #dbe5f1;
  --muted: #8fa3ba;
  --accent: #f28c28;
  --accent-hover: #ff9f43;
  --border: #2b3d57;
  --shadow: 0 18px 45px rgba(6, 16, 31, 0.24);
  --hue: 45;
}


html[data-tenant="texcel"] {
  --accent: #771e33;
  --accent-hover: #8f2540;
  --text-light: #c3c3c5;
  --muted: #636160;
  --border: #2e1f27;
}

html[data-tenant="texcel"] body {
  background: linear-gradient(135deg, #0e1520 0%, #18263e 60%, #1e2d47 100%);
}

html[data-tenant="texcel"] .sidebar {
  background: linear-gradient(180deg, #18263e 0%, #101c2e 100%);
}

html[data-tenant="texcel"] .brand-mark {
  background: linear-gradient(180deg, #18263e 0%, #101c2e 100%);
}

html[data-tenant="texcel"] .nav-item:hover,
html[data-tenant="texcel"] .nav-item.active {
  background: rgba(119, 30, 51, 0.15);
  border: 1px solid rgba(119, 30, 51, 0.4);
}

html[data-tenant="texcel"] .logout-btn {
  background: #771e33;
}

html[data-tenant="texcel"] .logout-btn:hover {
  background: #8f2540;
}

/* Texcel light mode */
html[data-tenant="texcel"].light-mode {
  --accent: #771e33;
  --accent-hover: #8f2540;
  --text-light: #c3c3c5;
  --muted: #636160;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Segoe UI", Arial, sans-serif;
  background: linear-gradient(135deg, #0b1420 0%, #122136 60%, #16253b 100%);
  color: var(--text);
}

body {
  min-height: 100vh;
}

body.tenant-context-loading #brandLogo,
body.tenant-context-loading #brandTitle,
body.tenant-context-loading #brandSubtitle,
body.tenant-context-loading #reportTitle,
body.tenant-context-loading #welcomeActionBtn {
  visibility: hidden;
}

.app-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: linear-gradient(180deg, #122033 0%, #0d1827 100%);
  color: var(--text-light);
  padding: 22px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
}

.brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(180deg, #122033 0%, #0d1827 100%);   /* same as sidebar */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.brand-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.1;
}
.brand-mark img {
  width: 85%;
  height: auto;
  object-fit: contain;
}
.brand-subtitle {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-loader {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px 0;
}

.nav-item {
  text-decoration: none;
  color: var(--text-light);
  padding: 10px 12px;
  border-radius: 12px;
  background: transparent;
  transition: all 0.2s ease;
  font-size: 11px;
}

.nav-item:hover,
.nav-item.active {
  background: rgba(242, 140, 40, 0.12);
  border: 1px solid rgba(242, 140, 40, 0.32);
  color: #fff;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 24px;
}

/* Report Title Styles */
.report-title {
  margin-bottom: 16px;
}

.report-title-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.2s ease;
}

.report-title-header:hover {
  background: rgba(255, 255, 255, 0.08);
}

.report-name {
  color: var(--text-light);
  font-size: 14px;
  font-weight: 600;
  flex: 1;
}

.collapse-toggle {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.collapse-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
}

/* Light mode report title */
html.light-mode .report-title-header {
  background: rgba(0, 0, 0, 0.05);
}

html.light-mode .report-title-header:hover {
  background: rgba(0, 0, 0, 0.08);
}

html.light-mode .report-name {
  color: var(--text);
}

html.light-mode .collapse-toggle {
  color: var(--muted);
}

html.light-mode .collapse-toggle:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--text);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-light);
  font-size: 13px;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.logout-btn {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.logout-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.main-content {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.topbar h1 {
  margin: 0;
  color: #fff;
  font-size: 30px;
  font-weight: 700;
}

.topbar p {
  margin: 8px 0 0;
  color: #b9c7d8;
  font-size: 14px;
}

.refresh-btn {
  border: none;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(242, 140, 40, 0.28);
}

.refresh-btn:hover {
  background: var(--accent-hover);
}

.hero-card {
  background: linear-gradient(135deg, rgba(242, 140, 40, 0.16), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(242, 140, 40, 0.24);
  border-radius: 22px;
  padding: 24px 26px;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.hero-text {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  width: 100%;
  gap: 20px;
}

.hero-title-block {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  justify-self: start;
}

.hero-center {
  justify-self: center;
}

.control-buttons {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-self: end;
}

.welcome-hover-btn {
  font-size: 1.18rem;
  padding: 0.95em 2.2em;
  background-color: #000;
  border: 3px solid var(--accent);
  border-radius: 1em;
  color: #fff;
  font-weight: 800;
  line-height: 1;
  transition: cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.4s;
  box-shadow: -5px 5px 0 0 var(--accent);
  cursor: default;
  white-space: nowrap;
}

.welcome-hover-btn:hover {
  transform: translate(5px, -5px);
}

html.light-mode .welcome-hover-btn {
  background-color: #fff;
  color: var(--text);
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffd2a1;
  margin-bottom: 8px;
}

.refresh-badge {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 8px 12px;
  min-width: 0;
  flex-shrink: 0;
}

.refresh-badge__icon {
  font-size: 18px;
  line-height: 1;
  animation: none;
  display: inline-block;
  opacity: 0.75;
}

@keyframes refresh-spin {
  0%   { transform: rotate(0deg);   opacity: 1; }
  45%  { transform: rotate(340deg); opacity: 1; }
  50%  { transform: rotate(340deg); opacity: 0.4; }
  100% { transform: rotate(360deg); opacity: 1; }
}



.refresh-badge__text {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  text-align: left;
  white-space: normal;
  line-height: 1.4;
}

.refresh-badge__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

html.light-mode .refresh-badge {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
}

html.light-mode .refresh-badge__text {
  color: var(--text);
}

html.light-mode .refresh-badge__label {
  color: rgba(0, 0, 0, 0.4);
}

.hero-card h2 {
  margin: 0;
  color: #fff;
  font-size: 26px;
}

.hero-card p {
  margin: 10px 0 0;
  color: #d6e0ec;
  font-size: 15px;
}

/* Voltage Title Styles */
.voltage-title {
  position: relative;
  display: inline-block;
}

.voltage-title .title-pill {
  color: white;
  background: #8B4513;
  padding: 1.5rem 3rem;
  border-radius: 5rem;
  border: 5px solid #D2691E;
  font-size: 1.2rem;
  line-height: 1em;
  letter-spacing: 0.075em;
  transition: background 0.3s;
  margin: 0;
  cursor: default;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.voltage-title .title-pill h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: bold;
}

.voltage-title .title-pill #pageTitle {
  margin: 0;
  font-size: 0.9rem;
  font-weight: normal;
  opacity: 0.9;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 1.1rem;
}

#pageTitleLoader {
  display: inline-block;
  animation: page-title-hourglass 1.2s ease-in-out infinite;
}

#pageTitleText:empty {
  display: none;
}

@keyframes page-title-hourglass {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.95;
  }

  50% {
    transform: translateY(-1px);
    opacity: 0.65;
  }
}

.voltage-title:hover .title-pill {
  background: #A0522D;
}

.voltage-title:hover svg, .voltage-title:hover .dots {
  opacity: 1;
}

.voltage-title svg {
  display: block;
  position: absolute;
  top: -0.75em;
  left: -0.25em;
  width: calc(100% + 0.5em);
  height: calc(100% + 1.5em);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
  transition-delay: 0.1s;
  z-index: 1;
}

.voltage-title svg path {
  stroke-dasharray: 100;
  filter: url("#glow");
}

.voltage-title svg path.line-1 {
  stroke: #f6de8d;
  stroke-dashoffset: 0;
  animation: spark-1 3s linear infinite;
}

.voltage-title svg path.line-2 {
  stroke: #6bfeff;
  stroke-dashoffset: 500;
  animation: spark-2 3s linear infinite;
}

.voltage-title .dots {
  opacity: 0;
  transition: opacity 0.3s;
  transition-delay: 0.4s;
  z-index: 3;
}

.voltage-title .dots .dot {
  width: 1rem;
  height: 1rem;
  background: white;
  border-radius: 100%;
  position: absolute;
  opacity: 0;
}

.voltage-title .dots .dot-1 {
  top: 0;
  left: 20%;
  animation: fly-up 3s linear infinite;
}

.voltage-title .dots .dot-2 {
  top: 0;
  left: 55%;
  animation: fly-up 3s linear infinite;
  animation-delay: 0.5s;
}

.voltage-title .dots .dot-3 {
  top: 0;
  left: 80%;
  animation: fly-up 3s linear infinite;
  animation-delay: 1s;
}

.voltage-title .dots .dot-4 {
  bottom: 0;
  left: 30%;
  animation: fly-down 3s linear infinite;
  animation-delay: 2.5s;
}

.voltage-title .dots .dot-5 {
  bottom: 0;
  left: 65%;
  animation: fly-down 3s linear infinite;
  animation-delay: 1.5s;
}

@keyframes spark-1 {
  to {
    stroke-dashoffset: -1000;
  }
}

@keyframes spark-2 {
  to {
    stroke-dashoffset: -500;
  }
}

@keyframes fly-up {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.2);
  }

  5% {
    opacity: 1;
    transform: translateY(-1.5rem) scale(0.4);
  }

  10%, 100% {
    opacity: 0;
    transform: translateY(-3rem) scale(0.2);
  }
}

@keyframes fly-down {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.2);
  }

  5% {
    opacity: 1;
    transform: translateY(1.5rem) scale(0.4);
  }

  10%, 100% {
    opacity: 0;
    transform: translateY(3rem) scale(0.2);
  }
}

/* Light mode voltage title text (no nested mini-pill) */
html.light-mode .voltage-title h2 {
  color: var(--text);
  background: transparent;
  border: none;
  border-radius: 0;
}

html.light-mode .voltage-title:hover h2 {
  background: transparent;
}

html.light-mode .voltage-title .dots .dot {
  background: #8B4513;
}

/* Light mode voltage bolts - darker colors */
html.light-mode .voltage-title svg path.line-1 {
  stroke: #B8860B;
}

html.light-mode .voltage-title svg path.line-2 {
  stroke: #4682B4;
}

.report-card {
  background: var(--surface);
  border-radius: 22px;
  padding: 14px;
  box-shadow: var(--shadow);
  min-height: calc(100vh - 240px);
  position: relative;
}

#reportContainer {
  width: 100%;
  height: calc(100vh - 270px);
  min-height: 760px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface-soft);
}

#reportContainer.agent-container-host {
  overflow: auto;
  padding: 20px;
  background: linear-gradient(160deg, #0f1b2b 0%, #18273c 100%);
}

.nav-item--agent {
  margin-top: 16px;
  background: var(--accent);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-item--agent:hover,
.nav-item--agent.active {
  background: var(--accent-hover, #e67e22);
  color: #fff;
  border: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.agent-shell {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  min-height: calc(100vh - 340px);
}

.agent-header {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 16px 18px;
}

.agent-header h3 {
  margin: 0;
  color: #ffffff;
  font-size: 20px;
}

.agent-header p {
  margin: 6px 0 0;
  color: #d3deeb;
  font-size: 14px;
}

.agent-messages {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 14px;
  overflow-y: auto;
  min-height: 360px;
  max-height: 520px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.agent-message {
  max-width: 86%;
  border-radius: 12px;
  padding: 10px 12px;
  line-height: 1.45;
}

.agent-message__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
  opacity: 0.75;
}

.agent-message__body {
  font-size: 14px;
  white-space: pre-wrap;
  word-break: break-word;
}

.agent-message__body--table {
  white-space: normal;
}

.agent-message__text {
  white-space: pre-wrap;
  margin-bottom: 10px;
}

.agent-message__text-line {
  margin: 0 0 8px;
}

.agent-message__list {
  margin: 4px 0 10px 18px;
  padding: 0;
}

.agent-message__list li {
  margin: 4px 0;
}

.agent-table-wrap {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid rgba(167, 195, 225, 0.28);
  background: rgba(8, 20, 33, 0.38);
}

.agent-data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 460px;
}

.agent-data-table th,
.agent-data-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(167, 195, 225, 0.22);
  font-size: 13px;
}

.agent-data-table th {
  position: sticky;
  top: 0;
  background: rgba(25, 48, 74, 0.92);
  color: #f0f7ff;
  font-weight: 700;
}

.agent-data-table td {
  color: #e2edf9;
}

.agent-table-export-btn {
  margin-top: 10px;
  border: none;
  border-radius: 8px;
  background: #9fe450;
  color: #13220a;
  font-weight: 700;
  font-size: 12px;
  padding: 8px 12px;
  cursor: pointer;
}

.agent-table-export-btn:hover {
  background: #b3ef6e;
}

.agent-invoice-drill-btn {
  background: #3a8fd4;
  color: #ffffff;
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.agent-invoice-drill-btn:hover {
  background: #5aa8e6;
}

.agent-table-visual-btn {
  margin-left: 8px;
  background: #6f57e5;
  color: #ffffff;
}

.agent-table-visual-btn:hover {
  background: #826af2;
}

.agent-chart-wrap {
  margin-top: 12px;
  border-radius: 10px;
  border: 1px solid rgba(167, 195, 225, 0.28);
  background: rgba(8, 20, 33, 0.38);
  padding: 10px;
  width: min(100%, 460px);
}

.agent-chart-title {
  font-size: 12px;
  font-weight: 700;
  color: #c8def9;
  margin-bottom: 8px;
}

.agent-chart-type-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.agent-chart-type-picker__label {
  font-size: 11px;
  color: #a8c7ea;
  font-weight: 600;
}

.agent-chart-type-btn {
  border: 1px solid rgba(167, 195, 225, 0.35);
  background: rgba(15, 34, 54, 0.7);
  color: #d9ebff;
  border-radius: 999px;
  font-size: 11px;
  padding: 4px 10px;
  cursor: pointer;
  transform: translateY(1px);
}

.agent-chart-type-btn.is-active {
  background: #2c79ff;
  border-color: #2c79ff;
  color: #ffffff;
}

.agent-chart-frame {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(3, 12, 22, 0.35);
}

.agent-chart-canvas {
  width: 100% !important;
  height: 100% !important;
}

.agent-chart-status {
  margin-top: 10px;
  color: #ffd2b4;
  font-size: 12px;
}

.agent-invoice-drill-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.agent-invoice-drill-btn__icon svg {
  display: block;
}

.agent-invoice-drill-btn__text {
  line-height: 1;
}

.agent-message--assistant {
  align-self: flex-start;
  background: rgba(42, 82, 130, 0.34);
  border: 1px solid rgba(122, 171, 233, 0.4);
  color: #edf4ff;
}

.agent-message--user {
  align-self: flex-end;
  background: rgba(242, 140, 40, 0.24);
  border: 1px solid rgba(255, 188, 116, 0.56);
  color: #fff4e6;
}

.agent-form {
  display: grid;
  gap: 10px;
}

.agent-form__input {
  width: 100%;
  resize: vertical;
  min-height: 170px;
  background: rgba(13, 24, 39, 0.9);
  color: #f2f7fc;
  border: 1px solid rgba(167, 195, 225, 0.35);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 14px;
}

.agent-form__input:focus {
  outline: none;
  border-color: rgba(242, 140, 40, 0.9);
  box-shadow: 0 0 0 3px rgba(242, 140, 40, 0.24);
}

.agent-form__actions {
  display: flex;
  justify-content: flex-end;
}

.agent-send-btn {
  background: var(--accent);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.agent-send-btn:hover {
  background: var(--accent-hover);
}

.agent-send-btn:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

.agent-progress-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(6, 15, 27, 0.56);
  backdrop-filter: blur(3px);
}

.agent-progress-overlay.is-visible {
  display: flex;
}

.agent-progress-card {
  width: min(560px, 100%);
  border-radius: 18px;
  border: 1px solid rgba(192, 255, 103, 0.3);
  background: radial-gradient(circle at 50% 50%, rgba(9, 18, 29, 0.98) 0%, rgba(4, 10, 16, 0.98) 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 34px rgba(166, 255, 228, 0.2);
  padding: 22px;
  position: relative;
  overflow: visible;
}

.agent-loader-card {
  --loader-accent-1: rgb(167, 255, 85);
  --loader-accent-2: #c0ff67;
  --loader-accent-3: #fbff00;
  --loader-accent-4: #a6ffe466;
  --loader-light-1: #aeff8928;
  --loader-light-2: #a2ff0027;
}

.agent-loader-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 360px;
}

.agent-loader-light-1,
.agent-loader-light-2 {
  pointer-events: none;
  position: absolute;
  width: 110px;
  height: 78px;
  top: -28px;
  left: 24px;
  background: var(--loader-light-1);
  border-radius: 50%;
  filter: blur(27px);
  z-index: 1;
  opacity: 0.4;
  animation: agent-loader-float 3.4s ease-in-out infinite;
}

.agent-loader-light-2 {
  top: auto;
  left: auto;
  width: 88px;
  height: 46px;
  right: 32px;
  bottom: -10px;
  background: var(--loader-light-2);
  animation-delay: 1.2s;
  opacity: 0.24;
}

.agent-loader-core {
  min-height: 154px;
  min-width: 270px;
  border-radius: 12px;
  border: 1px solid #293947;
  background-image: linear-gradient(to bottom, #ffffff0f, transparent);
  background-color: #030608;
  box-shadow: inset -1px -1px 1px 1px #000, inset -2px -2px 2px 1px #ffffff29, inset 1px 1px 1px 1px #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 3;
}

.agent-loader-label {
  color: #afbdc8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.agent-loader-word {
  margin-top: 8px;
  color: #f0f5f8;
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 700;
  letter-spacing: 0.01em;
  animation: agent-loader-word-flash 1.2s ease-in-out infinite;
  text-align: center;
}

.agent-loader-hint {
  margin-top: 8px;
  color: #c7d7e7;
  font-size: 13px;
  text-align: center;
  padding: 0 12px;
}

.agent-loader-grid {
  position: absolute;
  width: 460px;
  height: 460px;
  z-index: 2;
  opacity: 0.95;
  pointer-events: none;
  filter: drop-shadow(0 0 6px rgba(192, 255, 103, 0.32));
  animation: agent-loader-grid-pulse 1.8s ease-in-out infinite;
}

.agent-loader-grid .line-bg {
  stroke: #fff1;
  stroke-width: 0.5;
}

.agent-loader-grid .line {
  stroke: none;
  stroke-width: 0;
  stroke-dasharray: 16 56;
  animation: agent-loader-dash 1.4s ease-out infinite;
}

.agent-loader-grid .line:nth-child(odd) {
  animation-delay: 0.16s;
}

.agent-loader-grid .dot {
  fill: #6f7f8c;
  opacity: 0.3;
  animation: agent-loader-dot 0.9s linear infinite;
}

.agent-loader-grid .dot:nth-of-type(odd) {
  animation-delay: 0.16s;
}

@keyframes agent-loader-word-flash {
  0%,
  100% {
    text-shadow: 0 0 2px #0000;
    color: #f0f5f8;
  }
  50% {
    text-shadow: 0 0 24px var(--loader-accent-3);
    color: #ffffff;
  }
}

@keyframes agent-loader-word-flash-light {
  0%,
  100% {
    color: #0b2742;
    text-shadow: 0 0 2px rgba(11, 39, 66, 0);
  }
  50% {
    color: #071d32;
    text-shadow: 0 0 10px rgba(11, 39, 66, 0.22);
  }
}

@keyframes agent-loader-dot {
  0%,
  100% {
    opacity: 0.15;
    fill: #758695;
  }
  40% {
    opacity: 1;
    fill: var(--loader-accent-1);
  }
}

@keyframes agent-loader-dash {
  0% {
    stroke-width: 0;
    stroke-dashoffset: 10;
    stroke: var(--loader-accent-4);
  }
  50% {
    stroke-width: 0.5;
    stroke-dashoffset: 88;
    stroke: var(--loader-accent-2);
  }
  100% {
    stroke-width: 0;
    stroke-dashoffset: 166;
    stroke: var(--loader-accent-4);
  }
}

@keyframes agent-loader-float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.35;
  }
  50% {
    transform: translate(-6px, 4px) scale(1.07);
    opacity: 0.65;
  }
}

@keyframes agent-loader-grid-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.86;
  }
  50% {
    transform: scale(1.03);
    opacity: 1;
  }
}

html.light-mode #reportContainer.agent-container-host {
  background: linear-gradient(160deg, #eaf2fb 0%, #dce8f6 100%);
}

html.light-mode .agent-header,
html.light-mode .agent-messages {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(32, 59, 89, 0.18);
}

html.light-mode .agent-header h3,
html.light-mode .agent-header p {
  color: #153252;
}

html.light-mode .agent-message--assistant {
  background: rgba(53, 116, 191, 0.14);
  border-color: rgba(53, 116, 191, 0.3);
  color: #14355a;
}

html.light-mode .agent-message--user {
  background: rgba(242, 140, 40, 0.16);
  border-color: rgba(242, 140, 40, 0.34);
  color: #60330d;
}

html.light-mode .agent-table-wrap {
  border-color: rgba(28, 71, 116, 0.22);
  background: rgba(255, 255, 255, 0.88);
}

html.light-mode .agent-data-table th {
  background: rgba(223, 236, 250, 0.96);
  color: #1f3f62;
}

html.light-mode .agent-data-table td {
  color: #24486e;
  border-bottom-color: rgba(28, 71, 116, 0.18);
}

html.light-mode .agent-table-export-btn {
  background: #79be33;
  color: #ffffff;
}

html.light-mode .agent-table-export-btn:hover {
  background: #6bac2d;
}

html.light-mode .agent-invoice-drill-btn {
  background: #1a6faa;
  color: #ffffff;
}

html.light-mode .agent-invoice-drill-btn:hover {
  background: #155988;
}

html.light-mode .agent-table-visual-btn {
  background: #5a43c8;
  color: #ffffff;
}

html.light-mode .agent-table-visual-btn:hover {
  background: #4c38b0;
}

html.light-mode .agent-chart-wrap {
  border-color: rgba(28, 71, 116, 0.22);
  background: rgba(244, 249, 255, 0.9);
}

html.light-mode .agent-chart-frame {
  background: rgba(220, 234, 248, 0.66);
}

html.light-mode .agent-chart-title {
  color: #2a5076;
}

html.light-mode .agent-chart-type-picker__label {
  color: #325a82;
}

html.light-mode .agent-chart-type-btn {
  border-color: rgba(37, 87, 136, 0.28);
  background: rgba(234, 243, 252, 0.95);
  color: #1c486f;
}

html.light-mode .agent-chart-type-btn.is-active {
  background: #2c79ff;
  border-color: #2c79ff;
  color: #ffffff;
}

html.light-mode .agent-chart-status {
  color: #904400;
}

html.light-mode .agent-form__input {
  background: rgba(255, 255, 255, 0.95);
  color: #0f2a44;
  border-color: rgba(28, 71, 116, 0.24);
}

html.light-mode .agent-progress-overlay {
  background: rgba(13, 22, 34, 0.35);
}

html.light-mode .agent-progress-card {
  background: radial-gradient(circle at 50% 50%, #eff4f8 0%, #dce8f2 100%);
  border-color: rgba(20, 45, 71, 0.22);
}

html.light-mode .agent-loader-core {
  background-color: #f7fbff;
  border-color: rgba(20, 45, 71, 0.2);
  box-shadow: inset -1px -1px 1px 1px #ffffff, inset -2px -2px 2px 1px rgba(255, 255, 255, 0.7), inset 1px 1px 1px 1px #c4d4e3;
}

html.light-mode .agent-loader-label {
  color: #1f3a55;
}

html.light-mode .agent-loader-word {
  color: #0b2742;
  animation: agent-loader-word-flash-light 1.2s ease-in-out infinite;
}

html.light-mode .agent-loader-hint {
  color: #173652;
}

html.light-mode .agent-loader-line {
  stroke: rgba(53, 116, 191, 0.35);
}

html.light-mode .agent-loader-grid .dot {
  fill: #5e7891;
}

html.light-mode .agent-loader-grid .line-bg {
  stroke: rgba(22, 50, 82, 0.2);
}

/* Center full-screen report */
#reportContainer:fullscreen,
#reportContainer:-webkit-full-screen,
.report-card:fullscreen,
.report-card:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
  border-radius: 0;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
}

#reportContainer:fullscreen > .report-card-content,
#reportContainer:-webkit-full-screen > .report-card-content {
  width: 100%;
  height: 100%;
}

.fullscreen-btn {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.fullscreen-btn:hover {
  background: var(--accent-hover, #e67e22);
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.fullscreen-btn:active {
  transform: scale(0.95);
}

.report-controls {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 12px;
  z-index: 1000;
}

.export-btn {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.export-btn:hover {
  background: var(--accent-hover, #e67e22);
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.export-btn:active {
  transform: scale(0.95);
}

.agent-nav-btn {
  background: var(--accent);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-weight: 800;
  letter-spacing: 0.4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.agent-nav-btn:hover {
  background: var(--accent-hover, #e67e22);
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.agent-nav-btn:active {
  transform: scale(0.95);
}

.agent-nav-btn__label {
  font-size: 13px;
  line-height: 1;
}

@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    padding-bottom: 18px;
  }

  .main-content {
    padding-top: 10px;
  }

  #reportContainer {
    height: 75vh;
    min-height: 620px;
  }
}

@media (max-width: 700px) {
  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .main-content {
    padding: 18px;
  }

  .hero-card,
  .report-card {
    border-radius: 16px;
  }

  #reportContainer {
    min-height: 520px;
  }

  #reportContainer.agent-container-host {
    padding: 12px;
  }

  .agent-shell {
    min-height: calc(100vh - 380px);
  }

  .agent-progress-card {
    width: min(520px, 100%);
    padding: 14px;
  }

  .agent-loader-core {
    min-height: 144px;
    min-width: 230px;
    max-width: 100%;
    padding: 14px;
  }

  .agent-loader-wrapper {
    min-height: 300px;
  }

  .agent-loader-grid {
    width: 350px;
    height: 350px;
  }

  .agent-loader-light-1 {
    left: 10px;
  }

  .agent-loader-light-2 {
    right: 12px;
  }

  .agent-message {
    max-width: 96%;
  }

  .hero-text {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-center {
    align-self: center;
  }

  .control-buttons {
    width: 100%;
    justify-content: flex-end;
  }
}

.logo {
  height: 55px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.25));
}


.theme-switch {
  --toggle-size: 30px;
  --container-width: 5.625em;
  --container-height: 2.5em;
  --container-radius: 6.25em;
  --container-light-bg: #3D7EAE;
  --container-night-bg: #1D1F2C;
  --circle-container-diameter: 3.375em;
  --sun-moon-diameter: 2.125em;
  --sun-bg: #ECCA2F;
  --moon-bg: #C4C9D1;
  --spot-color: #959DB1;
  --circle-container-offset: calc((var(--circle-container-diameter) - var(--container-height)) / 2 * -1);
  --stars-color: #fff;
  --clouds-color: #F3FDFF;
  --back-clouds-color: #AACADF;
  --transition: .5s cubic-bezier(0, -0.02, 0.4, 1.25);
  --circle-transition: .3s cubic-bezier(0, -0.02, 0.35, 1.17);
  display: block;
}

.theme-switch, .theme-switch *, .theme-switch *::before, .theme-switch *::after {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-size: var(--toggle-size);
}

.theme-switch__container {
  width: var(--container-width);
  height: var(--container-height);
  background-color: var(--container-light-bg);
  border-radius: var(--container-radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0em -0.062em 0.062em rgba(0, 0, 0, 0.25), 0em 0.062em 0.125em rgba(255, 255, 255, 0.94);
  transition: var(--transition);
  position: relative;
}

.theme-switch__container::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  box-shadow: 0em 0.05em 0.187em rgba(0, 0, 0, 0.25) inset, 0em 0.05em 0.187em rgba(0, 0, 0, 0.25) inset;
  border-radius: var(--container-radius)
}

.theme-switch__checkbox {
  display: none;
}

.theme-switch__circle-container {
  width: var(--circle-container-diameter);
  height: var(--circle-container-diameter);
  background-color: rgba(255, 255, 255, 0.1);
  position: absolute;
  left: var(--circle-container-offset);
  top: var(--circle-container-offset);
  border-radius: var(--container-radius);
  box-shadow: inset 0 0 0 3.375em rgba(255, 255, 255, 0.1), inset 0 0 0 3.375em rgba(255, 255, 255, 0.1), 0 0 0 0.625em rgba(255, 255, 255, 0.1), 0 0 0 1.25em rgba(255, 255, 255, 0.1);
  display: flex;
  transition: var(--circle-transition);
  pointer-events: none;
}

.theme-switch__sun-moon-container {
  pointer-events: auto;
  position: relative;
  z-index: 2;
  width: var(--sun-moon-diameter);
  height: var(--sun-moon-diameter);
  margin: auto;
  border-radius: var(--container-radius);
  background-color: var(--sun-bg);
  box-shadow: 0.062em 0.062em 0.062em 0em rgba(254, 255, 239, 0.61) inset, 0em -0.062em 0.062em 0em #a1872a inset;
  filter: drop-shadow(0.062em 0.125em 0.125em rgba(0, 0, 0, 0.25)) drop-shadow(0em 0.062em 0.125em rgba(0, 0, 0, 0.25));
  overflow: hidden;
  transition: var(--transition);
}

.theme-switch__moon {
  transform: translateX(100%);
  width: 100%;
  height: 100%;
  background-color: var(--moon-bg);
  border-radius: inherit;
  box-shadow: 0.062em 0.062em 0.062em 0em rgba(254, 255, 239, 0.61) inset, 0em -0.062em 0.062em 0em #969696 inset;
  transition: var(--transition);
  position: relative;
}

.theme-switch__spot {
  position: absolute;
  top: 0.75em;
  left: 0.312em;
  width: 0.75em;
  height: 0.75em;
  border-radius: var(--container-radius);
  background-color: var(--spot-color);
  box-shadow: 0em 0.0312em 0.062em rgba(0, 0, 0, 0.25) inset;
}

.theme-switch__spot:nth-of-type(2) {
  width: 0.375em;
  height: 0.375em;
  top: 0.937em;
  left: 1.375em;
}

.theme-switch__spot:nth-last-of-type(3) {
  width: 0.25em;
  height: 0.25em;
  top: 0.312em;
  left: 0.812em;
}

.theme-switch__clouds {
  width: 1.25em;
  height: 1.25em;
  background-color: var(--clouds-color);
  border-radius: var(--container-radius);
  position: absolute;
  bottom: -0.625em;
  left: 0.312em;
  box-shadow: 0.937em 0.312em var(--clouds-color), -0.312em -0.312em var(--back-clouds-color), 1.437em 0.375em var(--clouds-color), 0.5em -0.125em var(--back-clouds-color), 2.187em 0 var(--clouds-color), 1.25em -0.062em var(--back-clouds-color), 2.937em 0.312em var(--clouds-color), 2em -0.312em var(--back-clouds-color), 3.625em -0.062em var(--clouds-color), 2.625em 0em var(--back-clouds-color), 4.5em -0.312em var(--clouds-color), 3.375em -0.437em var(--back-clouds-color), 4.625em -1.75em 0 0.437em var(--clouds-color), 4em -0.625em var(--back-clouds-color), 4.125em -2.125em 0 0.437em var(--back-clouds-color);
  transition: 0.5s cubic-bezier(0, -0.02, 0.4, 1.25);
}

.theme-switch__stars-container {
  position: absolute;
  color: var(--stars-color);
  top: -100%;
  left: 0.312em;
  width: 2.75em;
  height: auto;
  transition: var(--transition);
}

/* Actions */
.theme-switch__checkbox:checked + .theme-switch__container {
  background-color: var(--container-night-bg);
}

.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__circle-container {
  left: calc(100% - var(--circle-container-offset) - var(--circle-container-diameter));
}

.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__circle-container:hover {
  left: calc(100% - var(--circle-container-offset) - var(--circle-container-diameter) - 0.187em)
}

.theme-switch__circle-container:hover {
  left: calc(var(--circle-container-offset) + 0.187em);
}

.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__moon {
  transform: translate(0);
}

.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__clouds {
  bottom: -4.062em;
}

.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__stars-container {
  top: 50%;
  transform: translateY(-50%);
}

/* Light Mode */
html.light-mode {
  --bg: #ffffff;
  --panel: #f5f5f5;
  --panel-2: #eeeeee;
  --surface: #f8f9fa;
  --surface-soft: #ffffff;
  --text: #1a1a1a;
  --text-light: #4a4a4a;
  --muted: #757575;
  --accent: #f28c28;
  --accent-hover: #ff9f43;
  --border: #e0e0e0;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
}

html.light-mode body {
  background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 60%, #fafafa 100%);
  color: var(--text);
}

html.light-mode .sidebar {
  background: linear-gradient(180deg, #fafafa 0%, #f5f5f5 100%);
  color: var(--text);
  border-right: 1px solid rgba(0, 0, 0, 0.06);
}

html.light-mode .brand-mark {
  background: linear-gradient(180deg, #fafafa 0%, #f5f5f5 100%);   /* same as light mode sidebar */
}

html.light-mode .nav-item {
  color: var(--text);
}

html.light-mode .nav-item:hover,
html.light-mode .nav-item.active {
  background: rgba(242, 140, 40, 0.12);
  border: 1px solid rgba(242, 140, 40, 0.32);
  color: var(--text);
}

html.light-mode .status-pill {
  background: rgba(242, 140, 40, 0.12) !important;
  color: var(--text) !important;
}

html.light-mode .hero-card {
  background: linear-gradient(135deg, rgba(242, 140, 40, 0.12), rgba(242, 140, 40, 0.08));
  border: 1px solid rgba(242, 140, 40, 0.2);
}

html.light-mode .voltage-title .title-pill {
  background: #f5f5f5 !important;
  border-color: #d3d9e3 !important;
  color: var(--text);
}

html.light-mode .voltage-title:hover .title-pill {
  background: #eef2f7 !important;
  border-color: #c9d1dd !important;
}

html.light-mode .voltage-title .title-pill h2 {
  color: var(--text);
}

html.light-mode .voltage-title .title-pill #pageTitle {
  color: var(--text);
  opacity: 0.7;
}

html.light-mode .hero-card p {
  color: var(--text-light);
}

html.light-mode .report-card {
  background: var(--surface);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
}

html.light-mode #reportContainer {
  background: var(--surface-soft);
}

/* Loader Styles */
/* From Uiverse.io by nima-mollazadeh */
.loader {
  --dur: 2s;
  --hue: 35;
  display: block;
  margin: auto;
  width: 56px;
  height: 56px;
}
.loader__glare-top,
.loader__glare-bottom,
.loader__model,
.loader__motion-thick,
.loader__motion-medium,
.loader__motion-thin,
.loader__sand-drop,
.loader__sand-fill,
.loader__sand-grain-left,
.loader__sand-grain-right,
.loader__sand-line-left,
.loader__sand-line-right,
.loader__sand-mound-top,
.loader__sand-mound-bottom {
  animation-duration: var(--dur);
  animation-timing-function: cubic-bezier(0.83, 0, 0.17, 1);
  animation-iteration-count: infinite;
}
.loader__glare-top {
  animation-name: glare-top;
}
.loader__glare-bottom {
  animation-name: glare-bottom;
}
.loader__model {
  animation-name: loader-flip;
  transform-origin: 12.25px 16.75px;
}
.loader__motion-thick,
.loader__motion-medium,
.loader__motion-thin {
  transform-origin: 26px 26px;
}
.loader__motion-thick {
  animation-name: motion-thick;
}
.loader__motion-medium {
  animation-name: motion-medium;
}
.loader__motion-thin {
  animation-name: motion-thin;
}
.loader__sand-drop {
  animation-name: sand-drop;
}
.loader__sand-fill {
  animation-name: sand-fill;
}
.loader__sand-grain-left {
  animation-name: sand-grain-left;
}
.loader__sand-grain-right {
  animation-name: sand-grain-right;
}
.loader__sand-line-left {
  animation-name: sand-line-left;
}
.loader__sand-line-right {
  animation-name: sand-line-right;
}
.loader__sand-mound-top {
  animation-name: sand-mound-top;
}
.loader__sand-mound-bottom {
  animation-name: sand-mound-bottom;
  transform-origin: 12.25px 31.5px;
}

/* Dark theme */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: hsl(var(--hue), 90%, 10%);
    --fg: hsl(var(--hue), 90%, 90%);
  }
}
/* Animation */
@keyframes loader-flip {
  from {
    transform: translate(13.75px, 9.25px) rotate(-180deg);
  }
  24%,
  to {
    transform: translate(13.75px, 9.25px) rotate(0);
  }
}
@keyframes glare-top {
  from {
    stroke: rgba(255, 255, 255, 0);
  }
  24%,
  to {
    stroke: white;
  }
}
@keyframes glare-bottom {
  from {
    stroke: white;
  }
  24%,
  to {
    stroke: rgba(255, 255, 255, 0);
  }
}
@keyframes motion-thick {
  from {
    animation-timing-function: cubic-bezier(0.33, 0, 0.67, 0);
    stroke: rgba(255, 255, 255, 0);
    stroke-dashoffset: 153.94;
    transform: rotate(0.67turn);
  }
  20% {
    animation-timing-function: cubic-bezier(0.33, 1, 0.67, 1);
    stroke: rgb(32, 32, 32);
    stroke-dashoffset: 141.11;
    transform: rotate(1turn);
  }
  40%,
  to {
    stroke: rgba(255, 255, 255, 0);
    stroke-dashoffset: 153.94;
    transform: rotate(1.33turn);
  }
}
@keyframes motion-medium {
  from,
  8% {
    animation-timing-function: cubic-bezier(0.33, 0, 0.67, 0);
    stroke: rgba(255, 255, 255, 0);
    stroke-dashoffset: 153.94;
    transform: rotate(0.5turn);
  }
  20% {
    animation-timing-function: cubic-bezier(0.33, 1, 0.67, 1);
    stroke: white;
    stroke-dashoffset: 147.53;
    transform: rotate(0.83turn);
  }
  32%,
  to {
    stroke: rgba(255, 255, 255, 0);
    stroke-dashoffset: 153.94;
    transform: rotate(1.17turn);
  }
}
@keyframes motion-thin {
  from,
  4% {
    animation-timing-function: cubic-bezier(0.33, 0, 0.67, 0);
    stroke: rgba(255, 255, 255, 0);
    stroke-dashoffset: 153.94;
    transform: rotate(0.33turn);
  }
  24% {
    animation-timing-function: cubic-bezier(0.33, 1, 0.67, 1);
    stroke: rgb(53, 53, 53);
    stroke-dashoffset: 134.7;
    transform: rotate(0.67turn);
  }
  44%,
  to {
    stroke: rgba(255, 255, 255, 0);
    stroke-dashoffset: 153.94;
    transform: rotate(1turn);
  }
}
@keyframes sand-drop {
  from,
  10% {
    animation-timing-function: cubic-bezier(0.12, 0, 0.39, 0);
    stroke-dashoffset: 1;
  }
  70%,
  to {
    stroke-dashoffset: -107;
  }
}
@keyframes sand-fill {
  from,
  10% {
    animation-timing-function: cubic-bezier(0.12, 0, 0.39, 0);
    stroke-dashoffset: 55;
  }
  70%,
  to {
    stroke-dashoffset: -54;
  }
}
@keyframes sand-grain-left {
  from,
  10% {
    animation-timing-function: cubic-bezier(0.12, 0, 0.39, 0);
    stroke-dashoffset: 29;
  }
  70%,
  to {
    stroke-dashoffset: -22;
  }
}
@keyframes sand-grain-right {
  from,
  10% {
    animation-timing-function: cubic-bezier(0.12, 0, 0.39, 0);
    stroke-dashoffset: 27;
  }
  70%,
  to {
    stroke-dashoffset: -24;
  }
}
@keyframes sand-line-left {
  from,
  10% {
    animation-timing-function: cubic-bezier(0.12, 0, 0.39, 0);
    stroke-dashoffset: 53;
  }
  70%,
  to {
    stroke-dashoffset: -55;
  }
}
@keyframes sand-line-right {
  from,
  10% {
    animation-timing-function: cubic-bezier(0.12, 0, 0.39, 0);
    stroke-dashoffset: 14;
  }
  70%,
  to {
    stroke-dashoffset: -24.5;
  }
}
@keyframes sand-mound-top {
  from,
  10% {
    animation-timing-function: linear;
    transform: translate(0, 0);
  }
  15% {
    animation-timing-function: cubic-bezier(0.12, 0, 0.39, 0);
    transform: translate(0, 1.5px);
  }
  51%,
  to {
    transform: translate(0, 13px);
  }
}
@keyframes sand-mound-bottom {
  from,
  31% {
    animation-timing-function: cubic-bezier(0.61, 1, 0.88, 1);
    transform: scale(1, 0);
  }
  56%,
  to {
    transform: scale(1, 1);
  }
}
