/* v57 — a single, living estimating workspace. All styles are local to the demo. */
.page-home .home-hero {overflow:hidden;}
.page-home .home-hero-art {height:100%;mask-image:linear-gradient(#000 calc(100% - 70px),transparent);}
.page-home .home-hero:before {height:100%;mask-image:linear-gradient(#000 calc(100% - 70px),transparent);}
.page-home .home-hero {
  padding-bottom: 72px;
}
.page-home .hero-intro {
  margin-bottom: 0;
}
.live-workspace-section {
  padding: 104px 0 95px;
  background: #fafafa;
  color: #26272a;
  scroll-margin-top: 100px;
}
.live-workspace-heading {
  max-width: 1170px;
  margin: 0 auto 62px;
  padding: 0 36px;
  text-align: center;
}
.live-workspace-heading h2 {
  font-size: clamp(30px, 3.25vw, 47px);
  line-height: 1.35;
  font-weight: 400;
  letter-spacing: -0.04em;
  margin: 0;
  color: #303135;
}
.live-workspace-heading h2 > span {
  display: block;
  color: #929397;
}
.live-workspace-container {
  width: calc(100% - 64px);
  max-width: 1480px;
  margin-inline: auto;
}
.product-live-workspace {
  margin-top: 48px;
  margin-bottom: 30px;
}
.estimator-experience {
  min-width: 0;
  width: 100%;
  color: #303136;
}
.ew-scene-selector {
  display: flex;
  justify-content: center;
  margin: 0 0 24px;
}
.ew-scene-selector [role="tablist"] {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px;
  border: 1px solid #e7e7e9;
  border-radius: 14px;
  background: linear-gradient(#f5f5f6, #efeff0);
  box-shadow:
    inset 0 1px 2px #21212404,
    0 1px #fff;
  max-width: 100%;
}
.ew-scene-selector [role="tab"] {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #8d8e93;
  font:
    450 12px/1.4 Inter,
    sans-serif;
  min-height: 42px;
  padding: 11px 18px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  transition:
    color 0.25s,
    box-shadow 0.25s,
    background 0.25s;
}
.ew-scene-selector [role="tab"]:hover {
  color: #303136;
}
.ew-scene-selector [role="tab"][data-state="active"] {
  background: linear-gradient(#fff, #fcfcfc);
  border-color: #e2e2e5;
  color: #36373b;
  box-shadow:
    0 1px 2px #20202408,
    0 3px 8px #20202406,
    inset 0 1px #fff;
}
.ew-step-index {
  font:
    10px/1 "Geist Pixel Square",
    monospace;
  color: #aaaab0;
}
.ew-step-line {
  position: absolute;
  bottom: 0;
  left: 15px;
  right: 15px;
  height: 1.5px;
  background: #9dabc2;
  transform: scaleX(0);
  transform-origin: left;
}
.ew-step-line[data-running="true"] {
  animation: ew-step-progress 9.5s linear both;
}
@keyframes ew-step-progress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
.estimator-workspace {
  --ew-bg: #fff;
  --ew-panel: #fbfbfc;
  --ew-soft: #f5f5f6;
  --ew-hover: #f0f1f3;
  --ew-text: #303136;
  --ew-strong: #232428;
  --ew-muted: #92939a;
  --ew-line: #ededf0;
  --ew-line-strong: #dedee3;
  --ew-blue: #687d9d;
  --ew-selected: #f2f5fa;
  --ew-inset: #fff;
  position: relative;
  display: grid;
  grid-template-columns: 166px minmax(0, 1fr);
  width: 100%;
  min-width: 0;
  min-height: 682px;
  border: 1px solid #e1e1e5;
  border-radius: 22px;
  background: var(--ew-bg);
  box-shadow:
    0 0 0 5px #ffffffa1,
    0 0 0 6px #e8e8eb55,
    0 2px 4px #26263005,
    0 20px 40px -28px #26263030,
    0 55px 100px -65px #26263038;
  overflow: hidden;
  color: var(--ew-text);
  font:
    400 12px/1.5 Inter,
    sans-serif;
  text-align: left;
  isolation: isolate;
}
.estimator-workspace[data-theme="dark"] {
  --ew-bg: #111113;
  --ew-panel: #151517;
  --ew-soft: #1c1c20;
  --ew-hover: #222227;
  --ew-text: #c7c7cd;
  --ew-strong: #f2f2f5;
  --ew-muted: #7f808a;
  --ew-line: #252529;
  --ew-line-strong: #35353c;
  --ew-blue: #a1b1cf;
  --ew-selected: #1c232f;
  --ew-inset: #ffffff0d;
  border-color: #38383d;
  color-scheme: dark;
  box-shadow:
    0 0 0 5px #18181b0d,
    0 0 0 6px #e8e8eb55,
    0 20px 40px -28px #0005,
    0 55px 100px -65px #0005;
}
.estimator-workspace * {
  box-sizing: border-box;
}
.estimator-workspace button,
.estimator-workspace input,
.estimator-workspace textarea {
  font-family: Inter, sans-serif;
}
.estimator-workspace :is(h3, h4, h5) {
  font-family: "Inter Tight", Inter, sans-serif !important;
  font-weight: 550 !important;
  color: var(--ew-strong);
  letter-spacing: -0.025em;
  margin: 0;
}
.estimator-workspace p {
  margin: 0;
}
.estimator-workspace button {
  cursor: pointer;
}
.estimator-workspace button:disabled {
  cursor: default;
  opacity: 0.45;
}
.estimator-experience
  :is(button, a, input, textarea, [tabindex]):focus-visible {
  outline: 2px solid #8394b2;
  outline-offset: 3px;
}
.estimator-workspace svg {
  flex-shrink: 0;
  stroke-width: 1.55;
}
.ew-sidebar {
  background: var(--ew-panel);
  border-right: 1px solid var(--ew-line);
  display: flex;
  flex-direction: column;
  min-width: 0;
  z-index: 3;
}
.ew-brand {
  height: 62px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  color: var(--ew-strong);
}
.ew-brand .midra-lockup {
  gap: 5px;
}
.ew-brand .midra-symbol {
  width: 23px;
  height: 23px;
}
.ew-brand .midra-letters {
  width: 63px;
  height: 23px;
}
.ew-company {
  display: flex;
  gap: 8px;
  margin: 7px 12px 25px;
  padding: 8px 3px;
  color: var(--ew-text);
  font-size: 10px;
  line-height: 1.5;
  align-items: center;
}
.ew-company-avatar {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ew-line-strong);
  background: var(--ew-bg);
  border-radius: 7px;
  color: var(--ew-muted);
  box-shadow: 0 2px 3px #00000004;
  flex-shrink: 0;
  font:
    500 13px "Inter Tight",
    sans-serif;
}
.ew-company small {
  display: block;
  color: var(--ew-muted);
  font-size: 8px;
}
.ew-sidebar-label {
  font:
    500 8px/1.5 Inter,
    sans-serif;
  letter-spacing: 0.09em;
  color: var(--ew-muted);
  padding: 0 17px;
  margin-bottom: 10px !important;
}
.ew-vessel {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 17px 17px;
  font-size: 11px;
  font-weight: 450;
}
.ew-vessel svg {
  color: var(--ew-muted);
}
.ew-vessel small {
  font:
    400 9px/1.8 Inter,
    sans-serif;
  display: block;
  color: var(--ew-muted);
}
.ew-sidebar nav {
  display: grid;
  gap: 3px;
  padding: 0 9px;
}
.ew-sidebar nav button {
  border: 1px solid transparent;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 36px;
  padding: 7px 10px;
  border-radius: 7px;
  color: var(--ew-text);
  font-size: 11px;
  text-align: left;
}
.ew-sidebar nav button > svg {
  color: var(--ew-muted);
}
.ew-sidebar nav button:hover {
  background: var(--ew-hover);
}
.ew-sidebar nav button[aria-current="page"] {
  background: var(--ew-bg);
  border-color: var(--ew-line);
  box-shadow:
    0 1px 2px #00000006,
    inset 0 1px var(--ew-inset);
  color: var(--ew-strong);
}
.ew-sidebar nav button[aria-current="page"] > svg {
  color: var(--ew-text);
}
.ew-nav-count {
  margin-left: auto;
  font-size: 8px;
  color: var(--ew-muted);
  border: 1px solid var(--ew-line-strong);
  border-radius: 4px;
  min-width: 15px;
  text-align: center;
}
.ew-packages {
  padding-top: 30px;
}
.ew-packages button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 7px 17px;
  border: 0;
  background: none;
  color: var(--ew-muted);
  font-size: 9px;
  text-align: left;
}
.ew-packages button:first-of-type {
  font-size: 9px;
  color: var(--ew-text);
}
.ew-packages button:hover,
.ew-packages button[aria-pressed="true"] {
  background: var(--ew-soft);
  color: var(--ew-text);
}
.ew-packages button small {
  font:
    8px Inter,
    sans-serif;
  color: var(--ew-muted);
}
.ew-sidebar-bottom {
  margin-top: auto;
  padding: 30px 12px 0;
}
.ew-sidebar-bottom > a {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px 5px;
  margin-bottom: 13px;
  color: var(--ew-muted);
  font-size: 9px;
  text-decoration: none;
}
.ew-sidebar-bottom > a:hover {
  color: var(--ew-text);
}
.ew-user {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--ew-line);
  padding: 15px 3px;
  font-size: 10px;
}
.ew-user > span {
  display: grid;
  place-items: center;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  background: var(--ew-soft);
  border: 1px solid var(--ew-line);
  font-size: 8px;
  color: var(--ew-text);
}
.ew-user small {
  display: block;
  font-size: 8px;
  color: var(--ew-muted);
}
.ew-user > svg {
  margin-left: auto;
  color: var(--ew-muted);
}
.ew-body {
  min-width: 0;
  position: relative;
  display: flex;
  flex-direction: column;
}
.ew-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  min-height: 54px;
  border-bottom: 1px solid var(--ew-line);
  padding: 0 22px;
  background: var(--ew-bg);
}
.ew-topbar > div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.ew-topbar > div:first-child {
  font-size: 10px;
  color: var(--ew-muted);
}
.ew-topbar strong {
  font-weight: 450;
  color: var(--ew-text);
  white-space: nowrap;
}
.ew-icon-button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: none;
  color: var(--ew-muted);
  padding: 0;
}
.ew-icon-button:hover {
  background: var(--ew-hover);
  color: var(--ew-text);
}
.ew-menu-toggle,
.ew-sidebar-close {
  display: none;
}
.ew-save-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  color: var(--ew-muted);
  margin-right: 5px;
}
.ew-main-and-agent {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 306px;
  flex: 1;
  min-width: 0;
}
.estimator-workspace[data-chat-open="false"] .ew-main-and-agent {
  grid-template-columns: minmax(0, 1fr);
}
.ew-main {
  min-width: 0;
  padding: 27px 24px 0;
  display: flex;
  flex-direction: column;
}
.ew-project-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 19px;
}
.ew-project-eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  color: var(--ew-muted);
  margin-bottom: 7px;
}
.ew-project-heading h3 {
  font-size: 24px;
  line-height: 1.3;
}
.ew-project-heading p {
  font-size: 9px;
  color: var(--ew-muted);
  margin-top: 5px;
}
.ew-project-heading p > span {
  padding: 0 6px;
}
.ew-summary-button {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--ew-line-strong);
  border-radius: 7px;
  padding: 6px 9px;
  background: var(--ew-bg);
  color: var(--ew-text);
  font-size: 9px;
  box-shadow:
    0 1px 2px #00000003,
    inset 0 1px var(--ew-inset);
}
.ew-summary-button:hover {
  background: var(--ew-hover);
}
.ew-inner-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  border-bottom: 1px solid var(--ew-line);
  margin-bottom: 21px;
}
.ew-inner-nav button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: none;
  color: var(--ew-muted);
  padding: 0 0 12px;
  font-size: 10px;
}
.ew-inner-nav .ew-active {
  color: var(--ew-text);
}
.ew-inner-nav .ew-active:after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 10px;
  height: 1.5px;
  background: var(--ew-text);
}
.ew-nav-chevron {
  position: relative;
  left: 9px;
  color: var(--ew-line-strong);
}
.ew-inner-nav button:hover {
  color: var(--ew-text);
}
.ew-view-stack {
  position: relative;
  flex: 1;
  min-height: 458px;
}
.ew-view-enter {
  animation: ew-view-in 0.5s cubic-bezier(0.22, 0.68, 0, 1) both;
}
@keyframes ew-view-in {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.ew-metrics {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 1fr;
  gap: 18px;
  padding: 0 0 24px;
}
.ew-metrics > div {
  min-width: 0;
}
.ew-metrics > div + div {
  padding-left: 18px;
  border-left: 1px solid var(--ew-line);
}
.ew-metrics > div > span {
  font-size: 9px;
  color: var(--ew-muted);
}
.ew-metrics strong {
  display: block;
  color: var(--ew-strong);
  font:
    500 28px/1.3 "Inter Tight",
    Inter,
    sans-serif;
  letter-spacing: -0.025em;
  margin: 4px 0;
  animation: ew-number-in 0.5s ease both;
  font-variant-numeric: tabular-nums;
}
.ew-metrics em {
  font-style: normal;
  font-size: 17px;
  font-weight: 400;
  color: var(--ew-muted);
}
.ew-metrics small {
  font-size: 8px;
  color: var(--ew-muted);
}
@keyframes ew-number-in {
  from {
    opacity: 0.4;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.ew-table-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 0;
  border-top: 1px solid var(--ew-line);
}
.ew-work-title {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--ew-muted);
  margin-right: auto;
}
.ew-work-title strong {
  font-size: 10px;
  font-weight: 500;
  color: var(--ew-text);
  white-space: nowrap;
}
.ew-work-title > span {
  border: 1px solid var(--ew-line-strong);
  border-radius: 4px;
  min-width: 16px;
  font-size: 8px;
  text-align: center;
  color: var(--ew-muted);
}
.ew-search {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ew-muted);
}
.ew-search input {
  width: 102px;
  background: transparent;
  border: 0;
  outline: none;
  font-size: 9px;
  color: var(--ew-text);
}
.ew-search input::placeholder {
  color: var(--ew-muted);
}
.ew-filter-button {
  width: 23px;
  height: 25px;
  border-color: var(--ew-line);
}
.ew-table-scroll {
  overflow: auto;
  margin-inline: -24px;
  scrollbar-width: thin;
  scrollbar-color: var(--ew-line-strong) transparent;
}
.ew-estimate-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 735px;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.ew-estimate-table :is(th, td) {
  white-space: nowrap;
}
.ew-estimate-table th {
  font-size: 8px;
  font-weight: 400;
  color: var(--ew-muted);
  padding: 10px 9px;
  background: var(--ew-panel);
  border-top: 1px solid var(--ew-line);
  border-bottom: 1px solid var(--ew-line);
}
.ew-estimate-table th:first-child,
.ew-estimate-table td:first-child {
  text-align: left;
  padding-left: 24px;
  min-width: 206px;
}
.ew-estimate-table th:last-child,
.ew-estimate-table td:last-child {
  padding-right: 22px;
}
.ew-estimate-table td {
  padding: 13px 9px;
  border-bottom: 1px solid var(--ew-line);
  color: var(--ew-text);
  font-size: 9px;
  transition: background 1s;
}
.ew-estimate-table td:nth-child(3) {
  color: var(--ew-muted);
  font-size: 8px;
}
.ew-estimate-table td:last-child {
  font-weight: 500;
  color: var(--ew-strong);
}
.ew-estimate-table tr[data-selected="true"] td {
  background: var(--ew-selected);
}
.ew-estimate-table tr:hover td {
  background: var(--ew-hover);
}
.ew-estimate-table tr[data-changed="true"] td {
  animation: ew-row-highlight 4.2s ease-out both;
}
@keyframes ew-row-highlight {
  0%,
  25% {
    background: #e6edf8;
  }
  100% {
    background: var(--ew-selected);
  }
}
.ew-item-button {
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
  border: 0;
  background: none;
  color: var(--ew-text);
  font-size: 10px;
  padding: 0;
  min-height: 27px;
  line-height: 1.45;
}
.ew-item-button:hover {
  color: var(--ew-strong);
}
.ew-item-button small {
  display: block;
  color: var(--ew-muted);
  font-size: 8px;
  margin-top: 3px;
}
.ew-item-button small span {
  color: var(--ew-muted);
  opacity: 0.8;
}
.ew-item-icon {
  display: grid;
  place-items: center;
  width: 23px;
  height: 26px;
  border: 1px solid var(--ew-line-strong);
  border-radius: 5px;
  color: var(--ew-muted);
  background: var(--ew-bg);
  box-shadow: 0 1px 2px #00000003;
}
.ew-change-dot {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--ew-blue);
  vertical-align: middle;
  margin-left: 5px;
}
.ew-updated-value {
  animation: ew-number-in 0.6s ease both;
  display: inline-block;
}
.ew-table-total {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 0 16px;
  color: var(--ew-text);
  font-size: 10px;
}
.ew-table-total > span small {
  font-size: 8px;
  color: var(--ew-muted);
  display: block;
  margin-top: 3px;
}
.ew-table-total strong {
  font:
    500 21px/1.3 "Inter Tight",
    Inter,
    sans-serif;
  letter-spacing: -0.025em;
  margin-left: auto;
  color: var(--ew-strong);
  font-variant-numeric: tabular-nums;
}
.ew-table-total button {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  background: var(--ew-bg);
  border: 1px solid var(--ew-line-strong);
  border-radius: 6px;
  color: var(--ew-muted);
}
.ew-update-note {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 13px 0 17px;
  border-top: 1px solid var(--ew-line);
  font-size: 8px;
  color: var(--ew-muted);
  min-height: 43px;
}
.ew-update-note > span {
  margin-left: auto;
  font-size: 8px;
  color: var(--ew-muted);
}
.ew-empty {
  padding: 45px 24px;
  text-align: center;
  color: var(--ew-muted);
  font-size: 11px;
}
.ew-agent {
  border-left: 1px solid var(--ew-line);
  background: linear-gradient(180deg, var(--ew-bg), var(--ew-panel));
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0 13px 13px;
  position: relative;
  box-shadow: -8px 0 24px -24px #0003;
}
.ew-agent[hidden] {
  display: none;
}
.ew-agent-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 3px 15px;
}
.ew-agent-mark {
  width: 30px;
  height: 30px;
  border: 1px solid var(--ew-line);
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--ew-bg);
  box-shadow:
    0 2px 4px #00000004,
    inset 0 1px var(--ew-inset);
  color: var(--ew-text);
}
.ew-agent .midra-letters {
  display: none;
}
.ew-agent .midra-symbol {
  height: 18px;
  width: 20px;
}
.ew-agent .midra-lockup {
  display: flex;
}
.ew-agent-header strong {
  font-size: 11px;
  font-weight: 500;
  color: var(--ew-strong);
}
.ew-agent-header small {
  display: block;
  font-size: 8px;
  color: var(--ew-muted);
  margin-top: 2px;
}
.ew-agent-header > button {
  margin-left: auto;
}
.ew-agent-context {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--ew-soft);
  border: 1px solid var(--ew-line);
  border-radius: 6px;
  padding: 7px 9px;
  color: var(--ew-muted);
  font-size: 8px;
  margin: 0 2px 6px;
}
.ew-agent-context > svg:last-child {
  margin-left: auto;
}
.ew-context-separator {
  color: var(--ew-line-strong);
}
.ew-conversation {
  padding: 19px 4px 15px;
  flex: 1;
  min-height: 270px;
  max-height: 400px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--ew-line) transparent;
  overflow-anchor: none;
}
.ew-message {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 20px;
  animation: ew-view-in 0.35s ease both;
}
.ew-message[data-role="user"] {
  justify-content: flex-end;
  padding-left: 14px;
}
.ew-message[data-role="user"] [data-slot="message-content"] {
  padding: 11px 13px;
  background: var(--ew-soft);
  border: 1px solid var(--ew-line);
  border-radius: 12px 12px 4px 12px;
}
.ew-message [data-slot="message-content"] {
  min-width: 0;
}
.ew-message p {
  font-size: 11px;
  line-height: 1.9;
  color: var(--ew-text);
  margin: 0;
}
.ew-message[data-role="user"] p {
  font-size: 10px;
  line-height: 1.7;
}
.ew-message-avatar {
  padding-top: 4px;
  color: var(--ew-muted);
  flex-shrink: 0;
}
.ew-message-avatar .midra-symbol {
  width: 15px;
  height: 14px;
}
.ew-agent-thinking {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  color: var(--ew-muted);
  padding: 0 0 15px 24px;
}
.ew-typing-dots {
  display: flex;
  gap: 3px;
}
.ew-typing-dots i {
  width: 3px;
  height: 3px;
  display: block;
  background: var(--ew-muted);
  border-radius: 50%;
  animation: ew-dot 1.2s ease-in-out infinite;
}
.ew-typing-dots i:nth-child(2) {
  animation-delay: 0.15s;
}
.ew-typing-dots i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes ew-dot {
  0%,
  70%,
  100% {
    opacity: 0.25;
    transform: translateY(0);
  }
  35% {
    opacity: 1;
    transform: translateY(-2px);
  }
}
.ew-tool {
  border: 1px solid var(--ew-line-strong);
  border-radius: 9px;
  box-shadow:
    0 1px 2px #00000003,
    inset 0 1px var(--ew-inset);
  background: var(--ew-bg);
  margin: 0 0 13px 1px;
  overflow: hidden;
}
.ew-tool > button {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  text-align: left;
  border: 0;
  background: linear-gradient(140deg, var(--ew-bg), var(--ew-panel));
  padding: 10px 9px;
  font-size: 9px;
  color: var(--ew-text);
}
.ew-tool > button > svg:last-child {
  margin-left: auto;
  color: var(--ew-muted);
}
.ew-tool > button[data-state="open"] > svg:last-child {
  transform: rotate(180deg);
}
.ew-tool-icon {
  display: grid;
  place-items: center;
  color: var(--ew-blue);
}
.ew-tool-detail {
  border-top: 1px solid var(--ew-line);
  padding: 10px 12px;
  color: var(--ew-muted);
  font-size: 9px;
  line-height: 1.8;
}
.ew-agent-artifact {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--ew-line-strong);
  border-radius: 10px;
  padding: 12px 10px;
  background: var(--ew-bg);
  box-shadow:
    0 1px 3px #00000004,
    0 7px 14px -10px #00000016;
  animation: ew-view-in 0.5s ease both;
}
.ew-agent-artifact > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 34px;
  border: 1px solid var(--ew-line);
  background: var(--ew-panel);
  border-radius: 6px;
  color: var(--ew-muted);
}
.ew-agent-artifact > div {
  min-width: 0;
}
.ew-agent-artifact strong {
  font-size: 9px;
  font-weight: 500;
  color: var(--ew-text);
  display: block;
}
.ew-agent-artifact small {
  display: block;
  font-size: 8px;
  color: var(--ew-muted);
  margin-top: 3px;
}
.ew-agent-artifact button {
  border: 0;
  background: none;
  color: var(--ew-muted);
  margin-left: auto;
  padding: 5px;
}
.ew-agent-artifact {
  position: relative;
  overflow: hidden;
}
.ew-agent-artifact:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 25%,
    #ffffff70 48%,
    transparent 70%
  );
  transform: translateX(-120%);
  animation: ew-surface-light 1.6s 0.25s ease-out both;
  pointer-events: none;
}
@keyframes ew-surface-light {
  to {
    transform: translateX(120%);
  }
}
.ew-agent-bottom {
  padding-top: 13px;
  margin-top: auto;
}
.ew-suggestions {
  display: flex;
  gap: 6px;
  margin: 0 2px 9px;
}
.ew-suggestions button {
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--ew-line);
  border-radius: 6px;
  background: var(--ew-bg);
  color: var(--ew-muted);
  padding: 5px 7px;
  font-size: 8px;
}
.ew-suggestions button:hover {
  color: var(--ew-text);
  border-color: var(--ew-line-strong);
}
.ew-prompt {
  border: 1px solid var(--ew-line-strong);
  border-radius: 12px;
  background: var(--ew-bg);
  padding: 10px 11px 9px;
  box-shadow:
    0 2px 4px #00000004,
    0 6px 13px -9px #00000010,
    inset 0 1px var(--ew-inset);
}
.ew-prompt:focus-within {
  border-color: #a3adbd;
  box-shadow: 0 0 0 2px #97a6bc16;
}
.ew-prompt textarea {
  resize: none;
  width: 100%;
  display: block;
  border: 0;
  background: none;
  padding: 0;
  outline: none !important;
  font-size: 10px;
  line-height: 1.7;
  color: var(--ew-text);
  min-height: 39px;
}
.ew-prompt textarea::placeholder {
  color: var(--ew-muted);
}
.ew-prompt > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}
.ew-prompt > div > span {
  font-size: 8px;
  color: var(--ew-muted);
}
.ew-prompt .ui-button {
  width: 27px;
  height: 27px;
  min-height: 27px;
  padding: 0;
  border: 1px solid #29292e;
  border-radius: 7px;
  background: linear-gradient(#45454b, #2b2b30);
  box-shadow:
    0 1px 2px #0002,
    inset 0 1px #ffffff2a,
    0 0 0 2px var(--ew-bg);
  color: #fff;
}
.ew-prompt .ui-button:disabled {
  background: var(--ew-soft);
  border-color: var(--ew-line-strong);
  color: var(--ew-muted);
  opacity: 1;
  box-shadow: none;
}
.ew-floating-agent {
  position: absolute;
  bottom: 16px;
  right: 18px;
  display: flex;
  gap: 7px;
  align-items: center;
  border: 1px solid var(--ew-line-strong);
  border-radius: 20px;
  padding: 9px 13px;
  background: var(--ew-bg);
  box-shadow: 0 4px 15px #0001;
  color: var(--ew-text);
  font-size: 10px;
}
.ew-floating-agent .midra-letters {
  display: none;
}
.ew-floating-agent .midra-symbol {
  width: 17px;
  height: 16px;
}
.ew-status-orbit {
  width: 7px;
  height: 7px;
  border: 1px solid var(--ew-line-strong);
  border-top-color: var(--ew-muted);
  border-radius: 50%;
  animation: ew-spin 1.4s linear infinite;
}
.ew-spin {
  animation: ew-spin 1.4s linear infinite;
}
@keyframes ew-spin {
  to {
    transform: rotate(360deg);
  }
}
@supports (background-clip: text) {
  .ew-shimmer {
    color: var(--ew-muted);
    background: linear-gradient(
      100deg,
      var(--ew-muted) 20%,
      var(--ew-strong) 45%,
      var(--ew-muted) 65%
    );
    background-size: 250% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: ew-shimmer 2.3s linear infinite;
  }
}
@keyframes ew-shimmer {
  from {
    background-position: 150% 0;
  }
  to {
    background-position: -100% 0;
  }
}
.ew-view-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 3px 0 23px;
}
.ew-view-title > div > span {
  font-size: 8px;
  color: var(--ew-muted);
  letter-spacing: 0.04em;
}
.ew-view-title h4 {
  font-size: 24px;
  line-height: 1.3;
  margin-top: 6px;
}
.ew-muted {
  color: var(--ew-muted);
  font-size: 9px;
}
.ew-view-title .source-citation {
  font-size: 8px;
  gap: 4px;
  color: var(--ew-muted);
  white-space: nowrap;
}
.ew-view-title .source-citation svg {
  width: 10px;
}
.ew-cost-chain {
  display: grid;
  grid-template-columns: 1fr 13px 1fr 13px 1fr;
  align-items: center;
  gap: 9px;
  margin-bottom: 21px;
}
.estimator-workspace .ui-card {
  background: linear-gradient(145deg, var(--ew-bg), var(--ew-panel));
  border: 1px solid var(--ew-line-strong);
  border-radius: 12px;
  box-shadow:
    0 1px 2px #00000003,
    0 5px 12px -9px #00000012,
    inset 0 1px var(--ew-inset);
  color: var(--ew-text);
}
.ew-cost-chain .ui-card {
  min-height: 135px;
  padding: 14px 13px;
}
.ew-cost-chain .ui-card > div {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 8px;
  color: var(--ew-muted);
}
.ew-source-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--ew-line);
  background: var(--ew-bg);
  border-radius: 6px;
}
.ew-source-icon svg {
  width: 12px;
  height: 12px;
}
.ew-cost-chain strong {
  display: block;
  font:
    500 25px/1.3 "Inter Tight",
    sans-serif;
  letter-spacing: -0.03em;
  color: var(--ew-strong);
  margin: 12px 0 8px;
}
.ew-cost-chain strong small {
  font:
    400 11px Inter,
    sans-serif;
  color: var(--ew-muted);
}
.ew-cost-chain .ui-card > span,
.ew-cost-chain .ui-card > button {
  font-size: 8px;
  color: var(--ew-muted);
}
.ew-cost-chain button {
  display: flex;
  gap: 5px;
  align-items: center;
  background: none;
  border: 0;
  padding: 0;
}
.ew-chain-arrow {
  color: var(--ew-line-strong);
  width: 13px;
}
.ew-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ew-line);
}
.ew-card-heading h4 {
  font-size: 13px;
}
.ew-card-heading > span {
  font-size: 8px;
  color: var(--ew-muted);
}
.ew-cost-breakdown {
  padding: 19px 20px 0;
}
.ew-cost-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 15px;
  font-size: 10px;
}
.ew-cost-line + .ew-cost-line {
  border-top: 1px solid var(--ew-line);
}
.ew-cost-line > div {
  display: flex;
  gap: 6px;
  align-items: center;
}
.ew-cost-line small {
  color: var(--ew-muted);
  font-size: 8px;
  margin-left: 10px;
}
.ew-cost-line strong {
  font-size: 11px;
  font-weight: 450;
  color: var(--ew-strong);
  font-variant-numeric: tabular-nums;
}
.ew-cost-dot {
  width: 4px;
  height: 4px;
  background: var(--ew-line-strong);
  border-radius: 1px;
}
.ew-cost-final {
  padding: 15px 0;
  font-size: 10px;
}
.ew-cost-final strong {
  font:
    500 20px/1.2 "Inter Tight",
    sans-serif;
}
.ew-rate-controls {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 18px 0 24px;
  font-size: 8px;
  color: var(--ew-muted);
}
.ew-rate-controls label {
  display: flex;
  align-items: center;
  gap: 7px;
}
.ew-rate-controls label > span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.ew-rate-controls input {
  width: 43px;
  height: 26px;
  border: 1px solid var(--ew-line-strong);
  border-radius: 5px;
  background: var(--ew-bg);
  color: var(--ew-text);
  text-align: center;
  font-size: 10px;
  appearance: textfield;
  -moz-appearance: textfield;
}
.ew-rate-controls input::-webkit-inner-spin-button {
  display: none;
}
.ew-rate-controls > span {
  margin-left: auto;
  text-align: right;
}
.ew-rate-controls > span strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ew-strong);
}
.ew-document-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 19px 17px;
  width: 100%;
  border: 1px solid var(--ew-line-strong);
  border-radius: 11px;
  background: linear-gradient(140deg, var(--ew-bg), var(--ew-panel));
  box-shadow:
    0 1px 2px #00000003,
    0 6px 12px -10px #00000012;
  text-align: left;
  color: var(--ew-text);
  margin-bottom: 12px;
}
.ew-document-card:hover {
  border-color: var(--ew-muted);
}
.ew-pdf-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 39px;
  border: 1px solid var(--ew-line-strong);
  border-radius: 5px;
  color: var(--ew-muted);
  background: var(--ew-bg);
}
.ew-pdf-icon small {
  font-size: 6px;
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin-top: 2px;
}
.ew-document-card strong {
  font-size: 11px;
  font-weight: 450;
}
.ew-document-card > span > small {
  font-size: 9px;
  color: var(--ew-muted);
  display: block;
  margin-top: 4px;
}
.ew-document-card > span:nth-last-child(2) {
  margin-left: auto;
  text-align: right;
}
.ew-document-card > svg {
  color: var(--ew-muted);
}
.ew-small-pill {
  font-size: 8px;
  padding: 2px 5px;
  border: 1px solid var(--ew-line);
  border-radius: 4px;
  color: var(--ew-muted);
}
.ew-document-footer {
  display: flex;
  gap: 7px;
  align-items: center;
  color: var(--ew-muted);
  font-size: 9px;
  margin-top: 21px;
}
.ew-revision-pair {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  color: var(--ew-muted);
  white-space: nowrap;
}
.ew-diff-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 3px 0 25px;
  border: 1px solid var(--ew-line-strong);
  border-radius: 11px;
  background: var(--ew-panel);
  overflow: hidden;
}
.ew-diff-metrics > div {
  padding: 17px 19px;
}
.ew-diff-metrics > div + div {
  border-left: 1px solid var(--ew-line);
}
.ew-diff-metrics span {
  font-size: 8px;
  color: var(--ew-muted);
}
.ew-diff-metrics strong {
  display: block;
  font:
    500 25px/1.3 "Inter Tight",
    sans-serif;
  color: var(--ew-strong);
  margin-top: 5px;
  letter-spacing: -0.025em;
}
.ew-diff-metrics strong small {
  color: var(--ew-muted);
  font-size: 14px;
  font-weight: 400;
}
.ew-diff-card {
  padding: 20px 22px 0;
}
.ew-card-heading .source-citation {
  font-size: 8px;
  color: var(--ew-muted);
}
.ew-diff-columns {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  align-items: center;
  margin-top: 17px;
  font-size: 10px;
  gap: 0;
}
.ew-diff-columns > * {
  padding: 11px 0;
  border-bottom: 1px solid var(--ew-line);
}
.ew-diff-columns > *:nth-child(-n + 3) {
  font-size: 8px;
  color: var(--ew-muted);
}
.ew-diff-columns > *:not(:nth-child(3n + 1)) {
  text-align: right;
}
.ew-diff-columns strong {
  font-weight: 450;
  color: var(--ew-strong);
}
.ew-diff-columns del {
  color: var(--ew-muted);
  text-decoration-color: var(--ew-line-strong);
}
.ew-diff-card > p {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  color: var(--ew-muted);
  padding: 17px 0;
}
.ew-inline-link {
  display: flex;
  gap: 8px;
  align-items: center;
  background: none;
  border: 0;
  color: var(--ew-text);
  font-size: 10px;
  padding: 20px 0 25px;
}
.ew-quote-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  color: var(--ew-muted);
  font-size: 9px;
}
.ew-quote-toolbar > span:first-child {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ew-quote-toolbar button {
  display: flex;
  gap: 5px;
  align-items: center;
  background: var(--ew-bg);
  border: 1px solid var(--ew-line-strong);
  border-radius: 5px;
  font-size: 8px;
  color: var(--ew-muted);
  padding: 4px 7px;
  margin-left: auto;
}
.ew-draft-tag {
  font-size: 8px;
  border: 1px solid var(--ew-line-strong);
  border-radius: 4px;
  padding: 2px 5px;
  color: var(--ew-muted);
}
.ew-quote-paper {
  padding: 27px 32px;
  background: #fff;
  border: 1px solid #e5e5e8;
  border-radius: 5px;
  color: #35363b;
  box-shadow:
    0 2px 5px #18182004,
    0 13px 22px -16px #18182020;
  font-family: Inter, sans-serif;
}
.ew-letterhead {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 22px;
  border-bottom: 1px solid #e9e9ec;
}
.ew-dockworks-mark {
  position: relative;
  border: 1px solid #c3c4cb;
  border-radius: 5px;
  width: 27px;
  height: 29px;
  font:
    500 23px/1 "Inter Tight",
    sans-serif;
  letter-spacing: -0.1em;
  color: #45464f;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 3px;
}
.ew-dockworks-mark > span {
  position: absolute;
  font-size: 14px;
  top: -5px;
  right: -7px;
  background: #fff;
  line-height: 1;
  letter-spacing: 0;
}
.ew-letterhead > div:nth-child(2) strong {
  font:
    500 19px/1 "Inter Tight",
    sans-serif;
  letter-spacing: -0.035em;
  display: block;
  color: #2c2d34;
}
.ew-letterhead > div:nth-child(2) > span {
  display: block;
  font-size: 6px;
  letter-spacing: 0.23em;
  color: #9696a0;
  margin-top: 4px;
}
.ew-letterhead > span {
  margin-left: auto;
  font-size: 7px;
  letter-spacing: 0.13em;
  color: #9696a0;
}
.ew-quote-details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}
.ew-quote-details > div:last-child {
  text-align: right;
}
.ew-quote-details span {
  display: block;
  font-size: 6px;
  letter-spacing: 0.09em;
  color: #93939b;
  margin-bottom: 6px;
}
.ew-quote-details strong {
  font-size: 11px;
  font-weight: 500;
  color: #36363e;
  display: block;
}
.ew-quote-details small {
  font-size: 8px;
  color: #92929b;
  display: block;
  margin-top: 4px;
}
.ew-quote-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 8px;
  text-align: right;
}
.ew-quote-table th {
  font-weight: 400;
  color: #96969e;
  font-size: 7px;
  border-block: 1px solid #e7e7eb;
  background: #fafafa;
  padding: 7px 0;
}
.ew-quote-table td {
  padding: 10px 0;
  border-bottom: 1px solid #eeeef0;
  color: #5a5a63;
  font-variant-numeric: tabular-nums;
}
.ew-quote-table :is(td, th):first-child {
  text-align: left;
}
.ew-quotation-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  font-size: 8px;
}
.ew-quotation-total strong {
  font:
    500 24px/1.2 "Inter Tight",
    sans-serif;
  color: #303037;
  letter-spacing: -0.035em;
}
.ew-quote-terms {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid #eeeef0;
  font-size: 6px;
  color: #97979e;
}
.ew-quote-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 16px 0 21px;
  font-size: 8px;
  color: var(--ew-muted);
}
.ew-quote-foot span {
  margin-left: auto;
  font-size: 8px;
}
.ew-error {
  font-size: 10px;
  line-height: 1.7;
  color: var(--ew-muted);
  padding: 10px;
}
.ew-error button {
  display: block;
  background: none;
  border: 0;
  text-decoration: underline;
  padding: 5px 0;
  color: var(--ew-text);
  font-size: 10px;
}
.ew-source-dialog,
.ew-summary-dialog,
.ew-quote-dialog {
  max-height: 90dvh;
  overflow: auto;
  border: 1px solid #dedee4;
  border-radius: 17px;
  background: #fbfbfc;
  box-shadow: 0 20px 70px #18182030;
  color: #37373f;
  padding: 27px;
}
.ew-source-dialog,
.ew-summary-dialog {
  max-width: 650px;
}
.ew-quote-dialog {
  max-width: 790px;
}
div:where(.site-page) :is(.ew-source-dialog, .ew-summary-dialog, .ew-quote-dialog) > h2 {
  font:
    500 21px/1.3 "Inter Tight",
    sans-serif !important;
  letter-spacing: -0.025em;
  margin: 0 0 6px;
}
:is(.ew-source-dialog, .ew-summary-dialog, .ew-quote-dialog) > p {
  font-size: 11px;
  color: #92929b;
  margin: 0 0 24px;
}
.ew-source-paper {
  padding: 32px;
  background: #fff;
  border: 1px solid #e5e5e8;
  border-radius: 4px;
  box-shadow: 0 5px 10px #18182004;
}
.ew-source-paper > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 8px;
  letter-spacing: 0.1em;
  color: #8d8d97;
  margin-bottom: 26px;
}
div:where(.site-page) .ew-source-paper h3 {
  font:
    500 30px "Inter Tight",
    sans-serif !important;
  margin: 0 0 8px;
}
.ew-source-paper p {
  font-size: 12px;
  line-height: 1.9;
  color: #7f7f8b;
}
.ew-source-paper hr {
  margin: 23px 0;
  border: 0;
  border-top: 1px solid #eeeef0;
}
.ew-source-paper blockquote {
  margin: 21px -8px;
  padding: 13px 16px;
  border: 1px solid #dce4f0;
  border-radius: 5px;
  background: #f1f5fb;
  color: #4e6080;
  font-size: 13px;
  line-height: 1.9;
}
.ew-source-paper footer {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  color: #aaaab2;
  margin-top: 50px;
  border-top: 1px solid #eeeef0;
  padding-top: 15px;
}
.ew-summary-rows > div {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
  padding: 17px 0;
  border-bottom: 1px solid #e9e9ed;
  font-size: 12px;
}
.ew-summary-rows small {
  display: block;
  font-size: 9px;
  color: #9999a2;
  margin-top: 4px;
}
.ew-summary-rows > div > span:nth-child(2) {
  margin-left: auto;
  color: #9999a2;
}
.ew-summary-rows strong {
  font-weight: 500;
  font-size: 13px;
  min-width: 95px;
  text-align: right;
}
.ew-summary-rows .ew-summary-total strong {
  font-size: 21px;
}
.ew-nojs {
  font-size: 11px;
  color: #888;
  text-align: center;
  padding: 15px;
}
.workspace-demo-page {
  background: #f4f4f6;
  min-height: 100dvh;
  padding: 24px;
}
.ew-full {
  max-width: 1900px;
  margin: auto;
}
.ew-full .estimator-workspace {
  min-height: calc(100dvh - 114px);
  grid-template-columns: 190px minmax(0, 1fr);
}
.ew-full .ew-main-and-agent {
  grid-template-columns: minmax(0, 1fr) 350px;
}
.ew-full .ew-main {
  padding: 32px 32px 0;
}
.ew-full .ew-table-scroll {
  margin-inline: -32px;
}
.ew-full .ew-estimate-table th:first-child,
.ew-full .ew-estimate-table td:first-child {
  padding-left: 32px;
}
.ew-full .ew-estimate-table :is(th, td) {
  font-size: 11px;
  padding-block: 18px;
}
.ew-full .ew-item-button {
  font-size: 12px;
}
.ew-full .ew-item-button small {
  font-size: 9px;
}
.ew-full .ew-agent {
  padding-inline: 18px;
}
.ew-full .ew-message p {
  font-size: 12px;
}
.ew-full .ew-conversation {
  max-height: calc(100dvh - 390px);
}
.ew-full .ew-view-stack {
  min-height: 470px;
}
@media (min-width: 1600px) {
  .estimator-workspace {
    grid-template-columns: 185px minmax(0, 1fr);
    min-height: 740px;
  }
  .ew-main-and-agent {
    grid-template-columns: minmax(0, 1fr) 345px;
  }
  .ew-main {
    padding: 30px 28px 0;
  }
  .ew-table-scroll {
    margin-inline: -28px;
  }
  .ew-estimate-table th:first-child,
  .ew-estimate-table td:first-child {
    padding-left: 28px;
  }
  .ew-estimate-table td {
    font-size: 11px;
    padding-block: 16px;
  }
  .ew-estimate-table th {
    font-size: 9px;
  }
  .ew-item-button {
    font-size: 12px;
  }
  .ew-item-button small {
    font-size: 9px;
  }
  .ew-message p {
    font-size: 12px;
  }
  .ew-agent-header strong {
    font-size: 12px;
  }
  .ew-conversation {
    max-height: 450px;
  }
  .ew-agent-artifact strong {
    font-size: 10px;
  }
  .ew-tool > button {
    font-size: 10px;
  }
  .ew-project-heading h3 {
    font-size: 28px;
  }
  .ew-metrics strong {
    font-size: 31px;
  }
  .ew-metrics small,
  .ew-metrics > div > span {
    font-size: 10px;
  }
  .ew-prompt textarea {
    font-size: 11px;
  }
  .ew-sidebar nav button {
    font-size: 12px;
    min-height: 40px;
  }
  .ew-packages button {
    font-size: 10px;
  }
  .ew-topbar {
    min-height: 59px;
  }
  .ew-quote-paper {
    padding: 34px 43px;
  }
  .ew-quote-table td {
    font-size: 10px;
    padding-block: 12px;
  }
  .ew-quote-table th {
    font-size: 9px;
  }
}
@media (max-width: 1200px) {
  .estimator-workspace,
  .ew-full .estimator-workspace {
    grid-template-columns: 140px minmax(0, 1fr);
  }
  .ew-main-and-agent,
  .ew-full .ew-main-and-agent {
    grid-template-columns: minmax(0, 1fr) 270px;
  }
  .ew-main,
  .ew-full .ew-main {
    padding: 23px 19px 0;
  }
  .ew-table-scroll,
  .ew-full .ew-table-scroll {
    margin-inline: -19px;
  }
  .ew-estimate-table th:first-child,
  .ew-estimate-table td:first-child {
    padding-left: 19px;
  }
  .ew-project-heading h3 {
    font-size: 21px;
  }
  .ew-summary-button {
    padding: 5px;
    font-size: 8px;
  }
  .ew-summary-button svg {
    display: none;
  }
  .ew-company {
    gap: 6px;
    margin-inline: 9px;
  }
  .ew-company > span:last-child {
    font-size: 9px;
  }
  .ew-company-avatar {
    width: 22px;
    height: 22px;
  }
  .ew-vessel {
    padding-inline: 14px;
  }
  .ew-packages button {
    padding-inline: 14px;
  }
  .ew-brand {
    padding-inline: 16px;
  }
  .ew-metrics {
    gap: 10px;
  }
  .ew-metrics > div + div {
    padding-left: 10px;
  }
  .ew-metrics strong {
    font-size: 25px;
  }
  .ew-metrics small {
    font-size: 7px;
  }
  .ew-inner-nav {
    gap: 17px;
  }
  .ew-cost-chain {
    gap: 5px;
    grid-template-columns: 1fr 10px 1fr 10px 1fr;
  }
  .ew-cost-chain .ui-card {
    padding: 12px 10px;
  }
  .ew-cost-chain .ui-card > div {
    font-size: 7px;
    gap: 4px;
  }
  .ew-source-icon {
    display: none;
  }
  .ew-cost-chain strong {
    font-size: 23px;
  }
  .ew-rate-controls {
    flex-wrap: wrap;
    gap: 10px;
  }
  .ew-rate-controls label {
    font-size: 8px;
  }
  .ew-view-title {
    gap: 10px;
    flex-wrap: wrap;
  }
  .ew-view-title h4 {
    font-size: 22px;
  }
  .ew-diff-metrics > div {
    padding: 15px 12px;
  }
  .ew-diff-metrics strong {
    font-size: 22px;
  }
  .ew-quote-paper {
    padding: 22px;
  }
  .ew-quote-table {
    font-size: 7px;
  }
  .ew-letterhead {
    padding-bottom: 16px;
  }
  .ew-quote-details {
    padding: 17px 0;
  }
  .ew-quotation-total strong {
    font-size: 20px;
  }
}
@media (max-width: 1000px) {
  .live-workspace-container {
    width: calc(100% - 40px);
  }
  .estimator-workspace,
  .ew-full .estimator-workspace {
    grid-template-columns: 58px minmax(0, 1fr);
  }
  .ew-sidebar {
    align-items: center;
  }
  .ew-brand {
    padding: 0;
    height: 64px;
  }
  .ew-brand .midra-letters {
    display: none;
  }
  .ew-company,
  .ew-sidebar-label,
  .ew-vessel,
  .ew-packages,
  .ew-user,
  .ew-sidebar nav button > span,
  .ew-sidebar-bottom {
    display: none;
  }
  .ew-sidebar nav {
    padding: 0 7px;
    width: 100%;
    gap: 7px;
  }
  .ew-sidebar nav button {
    justify-content: center;
    padding: 8px;
    width: 40px;
    min-height: 38px;
  }
  .ew-sidebar nav button > svg {
    width: 17px;
    height: 17px;
  }
  .ew-main-and-agent,
  .ew-full .ew-main-and-agent {
    grid-template-columns: minmax(0, 1fr) 260px;
  }
  .ew-topbar {
    padding-inline: 18px;
  }
  .ew-project-heading h3 {
    font-size: 20px;
  }
  .ew-metrics strong {
    font-size: 23px;
  }
  .ew-agent {
    padding-inline: 10px;
  }
  .ew-message p {
    font-size: 10px;
  }
  .ew-message[data-role="user"] p {
    font-size: 9px;
  }
  .ew-step-index {
    font-size: 9px;
  }
  .ew-scene-selector [role="tab"] {
    padding-inline: 13px;
    font-size: 11px;
    gap: 8px;
  }
  .ew-scene-selector [role="tablist"] {
    gap: 3px;
  }
  .ew-cost-line small {
    margin-left: 4px;
    font-size: 7px;
  }
  .ew-rate-controls > span {
    margin-left: 0;
  }
  .ew-diff-card {
    padding-inline: 15px;
  }
  .ew-diff-columns {
    font-size: 9px;
  }
  .ew-quote-paper {
    padding: 21px 17px;
  }
  .ew-letterhead > div:nth-child(2) strong {
    font-size: 17px;
  }
}
@media (max-width: 760px) {
  .live-workspace-section {
    padding: 70px 0;
  }
  .live-workspace-heading {
    margin-bottom: 34px;
    padding: 0 22px;
  }
  .live-workspace-heading h2 {
    font-size: 31px;
    line-height: 1.35;
  }
  .live-workspace-heading h2 > span {
    margin-top: 6px;
  }
  .live-workspace-container {
    width: calc(100% - 32px);
  }
  .ew-scene-selector {
    margin-bottom: 17px;
  }
  .ew-scene-selector [role="tab"] {
    font-size: 10px;
    padding: 10px;
    gap: 6px;
    min-height: 38px;
  }
  .ew-scene-selector [role="tablist"] {
    gap: 1px;
    padding: 4px;
    border-radius: 11px;
  }
  .ew-step-index {
    display: none;
  }
  .estimator-workspace,
  .ew-full .estimator-workspace {
    grid-template-columns: 1fr;
    min-height: 660px;
    border-radius: 16px;
  }
  .ew-sidebar {
    position: absolute;
    inset: 0 auto 0 0;
    width: 180px;
    background: var(--ew-panel);
    transform: translateX(-110%);
    transition: transform 0.25s;
    align-items: stretch;
    box-shadow: 20px 0 50px #0002;
  }
  .estimator-workspace[data-sidebar-open="true"] .ew-sidebar {
    transform: none;
  }
  .ew-company,
  .ew-sidebar-label,
  .ew-vessel,
  .ew-packages,
  .ew-user,
  .ew-sidebar nav button > span,
  .ew-sidebar-bottom {
    display: revert;
  }
  .ew-brand {
    height: 57px;
    padding: 0 16px;
    justify-content: space-between;
  }
  .ew-brand .midra-letters {
    display: block;
  }
  .ew-sidebar .ew-brand .midra-letters {
    width: 60px;
  }
  .ew-sidebar-close {
    display: grid;
  }
  .ew-company {
    display: flex;
    margin: 7px 12px 20px;
  }
  .ew-vessel {
    display: flex;
  }
  .ew-sidebar nav {
    padding: 0 9px;
    gap: 3px;
  }
  .ew-sidebar nav button {
    justify-content: flex-start;
    width: 100%;
  }
  .ew-sidebar nav button > .ew-nav-count {
    display: none;
  }
  .ew-packages {
    padding-top: 25px;
  }
  .ew-user {
    display: flex;
  }
  .ew-sidebar-bottom {
    margin-top: auto;
  }
  .ew-menu-toggle {
    display: grid;
  }
  .ew-topbar {
    min-height: 46px;
    padding-inline: 12px;
  }
  .ew-topbar > div {
    gap: 7px;
  }
  .ew-topbar > div:first-child > span,
  .ew-topbar > div:first-child > svg {
    display: none;
  }
  .ew-save-status {
    font-size: 8px;
    margin-right: 0;
  }
  .ew-topbar > div:last-child {
    gap: 4px;
  }
  .ew-icon-button {
    width: 26px;
    height: 26px;
  }
  .ew-main-and-agent,
  .ew-full .ew-main-and-agent {
    grid-template-columns: minmax(0, 1fr);
  }
  .ew-main,
  .ew-full .ew-main {
    padding: 21px 17px 0;
  }
  .ew-project-heading h3 {
    font-size: 23px;
  }
  .ew-inner-nav {
    margin-bottom: 20px;
    gap: 22px;
  }
  .ew-project-heading {
    margin-bottom: 18px;
  }
  .ew-project-eyebrow {
    font-size: 9px;
  }
  .ew-view-stack {
    min-height: 430px;
  }
  .ew-table-scroll,
  .ew-full .ew-table-scroll {
    margin-inline: -17px;
  }
  .ew-estimate-table th:first-child,
  .ew-estimate-table td:first-child {
    padding-left: 17px;
  }
  .ew-table-scroll {
    max-height: 365px;
  }
  .ew-estimate-table {
    min-width: 750px;
  }
  .ew-estimate-table th {
    position: sticky;
    top: 0;
    z-index: 1;
  }
  .ew-estimate-table td {
    padding-block: 13px;
    font-size: 10px;
  }
  .ew-item-button {
    font-size: 11px;
  }
  .ew-metrics {
    gap: 13px;
    padding-bottom: 21px;
  }
  .ew-metrics strong {
    font-size: 27px;
  }
  .ew-metrics > div > span {
    font-size: 9px;
  }
  .ew-metrics small {
    font-size: 7px;
  }
  .ew-table-toolbar {
    padding-block: 12px;
  }
  .ew-table-total {
    padding: 17px 0;
  }
  .ew-update-note {
    padding-bottom: 18px;
  }
  .ew-update-note > span {
    display: none;
  }
  .ew-agent {
    border-left: 0;
    border-top: 1px solid var(--ew-line);
    padding: 0 18px 17px;
    min-height: 360px;
  }
  .ew-agent-header {
    padding-top: 17px;
  }
  .ew-agent-header strong {
    font-size: 12px;
  }
  .ew-agent-header small {
    font-size: 9px;
  }
  .ew-agent-context {
    font-size: 9px;
  }
  .ew-conversation,
  .ew-full .ew-conversation {
    min-height: 125px;
    max-height: 260px;
    padding-top: 17px;
  }
  .ew-message p,
  .ew-full .ew-message p {
    font-size: 12px;
  }
  .ew-message[data-role="user"] p {
    font-size: 11px;
  }
  .ew-agent-artifact strong {
    font-size: 11px;
  }
  .ew-agent-artifact small {
    font-size: 9px;
  }
  .ew-tool > button {
    font-size: 10px;
    padding: 11px;
  }
  .ew-tool-detail {
    font-size: 10px;
  }
  .ew-agent-bottom {
    padding-top: 8px;
  }
  .ew-prompt textarea {
    font-size: 12px;
    min-height: 43px;
  }
  .ew-prompt > div > span {
    font-size: 9px;
  }
  .ew-suggestions button {
    font-size: 9px;
  }
  .ew-view-title h4 {
    font-size: 24px;
  }
  .ew-cost-chain {
    gap: 6px;
    margin-top: 25px;
  }
  .ew-cost-chain .ui-card {
    padding: 14px 11px;
    min-height: 122px;
  }
  .ew-cost-chain strong {
    font-size: 23px;
  }
  .ew-cost-chain .ui-card > div {
    font-size: 8px;
  }
  .ew-cost-line {
    font-size: 11px;
  }
  .ew-cost-line small {
    font-size: 8px;
  }
  .ew-rate-controls {
    padding-bottom: 25px;
    gap: 14px;
  }
  .ew-rate-controls label {
    font-size: 9px;
  }
  .ew-rate-controls > span {
    margin-left: auto;
  }
  .ew-diff-metrics strong {
    font-size: 23px;
  }
  .ew-diff-columns {
    font-size: 11px;
  }
  .ew-diff-card > p {
    font-size: 10px;
  }
  .ew-quote-paper {
    padding: 24px;
  }
  .ew-quote-table {
    font-size: 9px;
  }
  .ew-quote-table th {
    font-size: 8px;
  }
  .ew-quote-details small {
    font-size: 9px;
  }
  .ew-quote-details strong {
    font-size: 12px;
  }
  .ew-letterhead > div:nth-child(2) strong {
    font-size: 20px;
  }
  .ew-quote-foot {
    padding-bottom: 20px;
  }
  .ew-floating-agent {
    bottom: 15px;
  }
  .ew-main:has(+ .ew-agent[hidden]) {
    padding-bottom: 35px;
  }
  .workspace-demo-page {
    padding: 20px 15px;
  }
  .ew-full .ew-estimate-table :is(th, td) {
    font-size: 10px;
    padding-block: 13px;
  }
  .ew-full .ew-item-button {
    font-size: 11px;
  }
  .ew-full .ew-view-stack {
    min-height: 430px;
  }
  .product-live-workspace {
    margin-top: 35px;
  }
}
@media (max-width: 400px) {
  .live-workspace-container {
    width: calc(100% - 24px);
  }
  .live-workspace-heading h2 {
    font-size: 28px;
  }
  .ew-scene-selector [role="tab"] {
    font-size: 8px;
    padding: 9px 8px;
  }
  .ew-main {
    padding-inline: 14px;
  }
  .ew-table-scroll {
    margin-inline: -14px;
  }
  .ew-project-heading h3 {
    font-size: 21px;
  }
  .ew-metrics strong {
    font-size: 25px;
  }
  .ew-metrics small {
    font-size: 6px;
  }
  .ew-metrics > div + div {
    padding-left: 8px;
  }
  .ew-metrics {
    gap: 8px;
  }
  .ew-inner-nav {
    gap: 19px;
  }
  .ew-inner-nav button {
    font-size: 9px;
  }
  .ew-rate-controls {
    gap: 9px;
  }
  .ew-rate-controls label {
    font-size: 8px;
  }
  .ew-rate-controls input {
    width: 38px;
  }
  .ew-rate-controls > span strong {
    font-size: 12px;
  }
  .ew-cost-chain {
    gap: 4px;
    grid-template-columns: 1fr 8px 1fr 8px 1fr;
  }
  .ew-cost-chain .ui-card {
    padding: 12px 8px;
  }
  .ew-cost-chain strong {
    font-size: 21px;
  }
  .ew-cost-chain .ui-card > div {
    font-size: 7px;
  }
  .ew-cost-chain .ui-card > span,
  .ew-cost-chain .ui-card > button {
    font-size: 7px;
  }
  .ew-view-title .source-citation {
    font-size: 8px;
  }
  .ew-diff-metrics > div {
    padding: 14px 10px;
  }
  .ew-diff-metrics strong {
    font-size: 20px;
  }
  .ew-diff-columns {
    font-size: 10px;
  }
  .ew-quote-paper {
    padding: 19px 16px;
  }
  .ew-quote-table {
    font-size: 8px;
  }
  .ew-quotation-total strong {
    font-size: 21px;
  }
  .ew-quote-terms {
    font-size: 6px;
  }
  .ew-source-dialog,
  .ew-summary-dialog,
  .ew-quote-dialog {
    padding: 21px;
  }
  .ew-source-paper {
    padding: 23px;
  }
  .ew-source-paper > div {
    font-size: 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .estimator-experience *,
  .estimator-experience *:before,
  .estimator-experience *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .ew-shimmer {
    background: none;
    -webkit-text-fill-color: currentColor;
  }
  .ew-step-line {
    display: none;
  }
  .ew-status-orbit {
    border-color: var(--ew-muted);
  }
}

/* Fractional dollars remain visible without making the headline totals bulky. */
.ew-metrics strong {
  white-space: nowrap;
}
.ew-metrics em.ew-metric-cents {
  font-size: 0.48em;
  color: var(--ew-muted);
  font-weight: 400;
  letter-spacing: 0;
}
.estimator-workspace[data-theme="dark"]
  .ew-estimate-table
  tr[data-changed="true"]
  td {
  animation-name: ew-row-highlight-dark;
}
@keyframes ew-row-highlight-dark {
  0%,
  25% {
    background: #29364b;
  }
  100% {
    background: var(--ew-selected);
  }
}
@media (max-width: 400px) {
  .ew-metrics strong {
    font-size: 22px;
  }
}
@media (max-width: 350px) {
  .ew-metrics strong {
    font-size: 19px;
  }
}
