/* SotaYard workspace, using Parley typography, colors, components and artwork. */

.app-body {
  font-size: 14px;
  background: var(--background);
  color: var(--grey-900);
  font-family: var(--font-ui);
}

.initial-load {
  height: 100vh;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 22px;
  color: var(--grey-800);
}

.initial-load img {
  border-radius: 7px;
}

.app-shell {
  display: grid;
  grid-template-columns: 252px minmax(0,1fr);
  min-height: 100vh;
}

.sidebar {
  background: var(--footer);
  border-right: 1px solid var(--grey-200);
  padding: 30px 20px 20px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
}

.sidebar .brand {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -1px;
  padding: 0 8px;
}

.sidebar .brand-mark {
  height: 25px;
  width: 25px;
}

.workspace-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--grey-800);
  margin: 42px 10px 13px;
}

.new-project-button {
  width: 100%;
  background: var(--grey-900);
  border: 1px solid var(--grey-900);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 5px 12px 5px 5px;
  display: flex;
  gap: 10px;
  align-items: center;
  text-align: left;
  font-size: 13px;
  font-weight: 500;
  min-height: 40px;
  transition: background-color 200ms var(--e-tween-out);
}

.new-project-button > .fbtn__chip {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

.new-project-button > .fbtn__label {
  color: var(--white);
  font-size: 13px;
}

.new-project-button:hover {
  background: #40362d;
  border-color: #40362d;
}

.sidebar-projects {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 20px;
}

.project-link {
  border: 1px solid transparent;
  background: transparent;
  text-align: left;
  color: var(--grey-800);
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  font-size: 12px;
  transition: background-color 180ms var(--e-tween-out),color 180ms var(--e-tween-out);
}

.project-link span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-link:hover {
  background: var(--background);
  color: var(--grey-900);
}

.project-link.active {
  background: var(--background);
  border-color: var(--grey-200);
  color: var(--grey-900);
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(37,31,25,.025);
}

.project-icon {
  width: 16px;
  height: 16px;
  border: 1.3px solid currentColor;
  border-radius: 4px;
  display: block;
  flex-shrink: 0;
  position: relative;
}

.project-icon:after {
  content: '';
  position: absolute;
  height: 3px;
  width: 3px;
  background: currentColor;
  top: 4.5px;
  left: 4.5px;
}

.project-link.active .project-icon:after {
  background: var(--accent);
}

.sidebar-bottom {
  margin-top: auto;
  padding-top: 35px;
}

.account-button {
  display: flex;
  gap: 10px;
  align-items: center;
  text-align: left;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 17px 7px 10px;
  color: var(--ink);
  border-top: 1px solid var(--grey-200);
}

.account-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: #e5dccf;
  color: var(--grey-900);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 500;
  flex-shrink: 0;
}

.account-button>span:last-child {
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-home {
  font-size: 11px;
  color: var(--grey-800);
  padding: 8px;
  display: inline-block;
}

.sidebar-home:hover {
  color: var(--ink);
}

.app-main {
  min-width: 0;
  padding: 32px clamp(28px,4vw,64px) 64px;
  max-width: 1500px;
  width: 100%;
  margin-inline: auto;
}

.workspace-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 44px;
  color: var(--grey-800);
  font-size: 12px;
}

.workspace-topline>a:hover {
  color: var(--ink);
}

.release-badge {
  color: #925414;
  background: #fcf0dd;
  border: 1px solid #ead4b6;
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
}

.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 27px;
  margin-bottom: 33px;
}

.page-heading h1 {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.1;
  margin-bottom: 12px;
  text-wrap: balance;
}

.page-heading p {
  color: var(--grey-800);
  font-size: 14px;
  line-height: 1.7;
  max-width: 700px;
}

.page-heading .heading-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.btn {
  border: 1px solid var(--grey-400);
  color: var(--grey-900);
  background: var(--white);
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  padding: 11px 15px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1.4;
  transition: background-color 200ms var(--e-tween-out),border-color 200ms var(--e-tween-out);
}

.btn:hover {
  border-color: var(--grey-600);
  background: var(--footer);
}

.btn.primary {
  background: var(--grey-900);
  color: var(--white);
  border-color: var(--grey-900);
  padding: 4px 12px 4px 4px;
  gap: 12px;
  justify-content: flex-start;
  min-height: 46px;
}

.btn.primary:hover {
  background: #40362d;
  border-color: #40362d;
}

.btn.danger {
  color: #b64242;
  border-color: #e1bdbd;
  background: var(--white);
}

.btn.danger:hover {
  background: #fff4f4;
}

.btn.small {
  padding: 8px 11px;
  min-height: 34px;
  font-size: 11px;
}

.btn.plain {
  border-color: transparent;
  background: transparent;
  color: var(--grey-800);
}

.btn.plain:hover {
  color: var(--grey-900);
  background: var(--footer);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: .5;
}

.button-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 25px;
}

.button-row .subtle {
  margin: 0;
}

.subtle {
  font-size: 12px;
  color: var(--grey-800);
  line-height: 1.75;
}

.page-subtitle {
  font-size: 15px;
  color: var(--grey-800);
  margin-bottom: 27px;
}

.empty-state {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 44px;
  align-items: center;
  max-width: 1120px;
}

.empty-state h1 {
  font-family: var(--font-display);
  font-size: clamp(40px,4.4vw,58px);
  line-height: 1.08;
  letter-spacing: -.025em;
  font-weight: 500;
  margin-bottom: 23px;
  text-wrap: balance;
}

.empty-state p {
  max-width: 470px;
  font-size: 15px;
  color: var(--grey-800);
  line-height: 1.8;
}

.empty-state .button-row {
  margin-top: 28px;
}

.empty-diagram {
  padding: 190px 25px 12px;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-xl);
  max-width: 420px;
  background: var(--footer) url("/template-assets/hero.jpg") center top / 100% 166px no-repeat;
  overflow: hidden;
}

.empty-diagram .diagram-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  padding: 19px 0;
  border-bottom: 1px solid var(--grey-200);
}

.empty-diagram .diagram-row:last-child {
  border: 0;
}

.empty-diagram .diagram-row>span:first-child {
  color: var(--grey-800);
  font-size: 11px;
}

.empty-diagram .diagram-row strong {
  font-weight: 450;
}

.empty-diagram .diagram-row:nth-child(3) {
  color: #9b5405;
}

.empty-state-note {
  margin-top: 80px;
  padding-top: 25px;
  border-top: 1px solid var(--grey-200);
  display: flex;
  gap: 24px;
  color: var(--grey-800);
  font-size: 11px;
  flex-wrap: wrap;
}

.panel {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin-bottom: 24px;
}

.panel h2 {
  font-family: var(--font-display);
  font-size: 25px;
  letter-spacing: -.02em;
  line-height: 1.15;
  font-weight: 500;
  margin-bottom: 12px;
}

.panel h3 {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: -.015em;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 11px;
}

.panel-lead {
  font-size: 14px;
  color: var(--grey-800);
  line-height: 1.75;
  margin-bottom: 25px;
  max-width: 690px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}

.panel-header h2,.panel-header h3 {
  margin-bottom: 7px;
}

.panel-header>.btn {
  flex-shrink: 0;
}

.panel.tight {
  padding: 25px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 23px;
  min-width: 0;
}

.field label,.field-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--grey-900);
}

.field .hint {
  font-size: 11px;
  color: var(--grey-800);
  line-height: 1.75;
}

.field input,.field textarea,.field select {
  background: var(--background);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-sm);
  padding: 12px 13px;
  color: var(--grey-900);
  font-size: 14px;
  width: 100%;
  min-height: 47px;
  transition: border-color 150ms var(--e-tween-out),background-color 150ms var(--e-tween-out);
}

.field textarea {
  resize: vertical;
  min-height: 115px;
  line-height: 1.7;
}

.field input:focus,.field textarea:focus,.field select:focus {
  border-color: var(--brand-500);
  background: var(--white);
}

.field input::placeholder,.field textarea::placeholder {
  color: var(--grey-600);
}

.field input[type=number] {
  max-width: 140px;
}

.field .input-suffix {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
}

.field .input-suffix input {
  width: 110px;
}

.form-narrow {
  max-width: 740px;
}

.form-error {
  color: #a43e3e;
  background: #fff6f6;
  border: 1px solid #eccdcd;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  line-height: 1.8;
  margin: 17px 0;
}

.form-info {
  background: var(--footer);
  border: 1px solid var(--grey-200);
  color: var(--grey-800);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  font-size: 12px;
  line-height: 1.8;
  margin-bottom: 22px;
}

.form-warning {
  background: #fff9ef;
  border: 1px solid #f1e2cb;
  color: #8a713f;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 12px;
  line-height: 1.8;
  margin-bottom: 22px;
}

.form-success {
  background: #f2f9f5;
  border: 1px solid #d5e9dd;
  color: #4a7b5e;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 12px;
  line-height: 1.8;
  margin-bottom: 22px;
}

.muted {
  color: var(--grey-800);
}

.step-nav {
  display: flex;
  border-bottom: 1px solid var(--grey-200);
  gap: 30px;
  margin-bottom: 28px;
  overflow: auto;
  scrollbar-width: thin;
}

.step-nav button {
  border: 0;
  background: transparent;
  color: var(--grey-800);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 0 16px;
  white-space: nowrap;
  display: flex;
  gap: 9px;
  align-items: center;
  border-bottom: 2px solid transparent;
}

.step-nav button:hover {
  color: var(--grey-900);
}

.step-nav button.active {
  border-color: var(--brand-500);
  color: var(--grey-900);
}

.step-nav button .nav-number {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  font-size: 11px;
  background: var(--footer);
  color: var(--grey-800);
}

.step-nav button.active .nav-number {
  background: var(--brand-500);
  color: var(--grey-900);
}

.step-nav button.complete .nav-number {
  background: #eaf3ed;
  color: #548467;
}

.upload-zone {
  display: flex;
  align-items: center;
  gap: 22px;
  border: 1px dashed var(--grey-400);
  border-radius: var(--radius-md);
  padding: 34px;
  background: var(--background);
  cursor: pointer;
  position: relative;
  transition: background-color 180ms var(--e-tween-out),border-color 180ms var(--e-tween-out);
}

.upload-zone:hover,.upload-zone.dragging {
  border-color: var(--brand-500);
  background: #fff7e8;
}

.upload-zone input[type=file] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.upload-zone:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.upload-icon {
  width: 46px;
  height: 50px;
  border: 1px solid var(--grey-200);
  color: #925414;
  display: grid;
  place-items: center;
  background: #fcf0dd;
  border-radius: var(--radius-sm);
  font-size: 27px;
  font-weight: 300;
  flex-shrink: 0;
}

.upload-zone strong {
  font-size: 15px;
  font-weight: 500;
  display: block;
  margin-bottom: 6px;
  color: var(--grey-900);
}

.upload-zone span {
  font-size: 11px;
  color: var(--grey-800);
}

.upload-zone .upload-link {
  color: var(--grey-900);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.demo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-top: 22px;
}

.demo-row p {
  font-size: 11px;
  color: var(--grey-800);
  max-width: 485px;
  line-height: 1.75;
}

.demo-row strong {
  color: var(--grey-800);
  display: block;
  font-weight: 500;
  font-size: 12px;
  margin-bottom: 4px;
}

.demo-row>.btn {
  flex-shrink: 0;
}

.dataset-picker {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.dataset-picker label {
  font-size: 12px;
  font-weight: 500;
}

.dataset-picker select {
  border: 1px solid var(--grey-400);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--grey-800);
  max-width: 330px;
  background: var(--white);
  font-size: 12px;
}

.data-summary {
  display: flex;
  gap: 25px;
  font-size: 12px;
  color: var(--grey-800);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.data-summary strong {
  font-weight: 500;
  color: var(--grey-900);
}

.table-scroll {
  overflow: auto;
  max-width: 100%;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-sm);
  margin-bottom: 23px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
  line-height: 1.65;
}

.data-table th {
  background: var(--background);
  color: var(--grey-800);
  font-weight: 450;
  border-bottom: 1px solid var(--grey-200);
  padding: 11px 13px;
  white-space: nowrap;
  font-size: 11px;
}

.data-table td {
  padding: 12px 13px;
  border-bottom: 1px solid var(--grey-100);
  max-width: 440px;
  min-width: 90px;
  vertical-align: top;
  overflow-wrap: anywhere;
  color: var(--grey-800);
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table .numeric {
  text-align: right;
  white-space: nowrap;
}

.checkbox-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 11px;
}

.column-option {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--grey-200);
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 12px;
  cursor: pointer;
  word-break: break-word;
  color: var(--grey-800);
}

.column-option:has(input:checked) {
  border-color: #e5bd83;
  background: #fff4df;
  color: var(--grey-900);
}

.column-option input {
  accent-color: var(--brand-500);
  width: 14px;
  height: 14px;
  min-height: 0;
  margin: 0;
}

.mapping-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  margin-top: 25px;
}

.mapping-grid .field {
  margin-bottom: 19px;
}

.mapping-options {
  padding-left: 27px;
  border-left: 1px solid var(--grey-200);
}

.threshold-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  padding-top: 23px;
  margin-top: 5px;
  border-top: 1px solid var(--grey-200);
}

.diagnostics {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 20px 0;
}

.diagnostic {
  padding: 12px 15px;
  border-left: 2px solid var(--grey-400);
  background: var(--background);
  color: var(--grey-800);
  font-size: 12px;
  line-height: 1.8;
}

.diagnostic.warning {
  border-color: #d8b574;
  background: #fffbf3;
  color: #8a7345;
}

.diagnostic.error {
  border-color: #d99292;
  background: #fff6f6;
  color: #a75353;
}

.split-row {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 1px;
  background: var(--grey-200);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 23px 0;
}

.split-cell {
  background: var(--background);
  padding: 19px;
  text-align: center;
}

.split-cell strong {
  display: block;
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 500;
  color: var(--grey-900);
}

.split-cell span {
  display: block;
  font-size: 10px;
  color: var(--grey-800);
  margin-top: 5px;
}

.label-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.label-chip {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  border: 1px solid #ead4b6;
  border-radius: var(--radius-sm);
  padding: 4px 9px;
  color: #925414;
  background: #fcf0dd;
  word-break: break-word;
}

.run-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 23px;
}

.run-layout>.panel {
  min-width: 0;
}

.status-line {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.status-badge {
  font-size: 11px;
  font-weight: 500;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  background: var(--footer);
  color: var(--grey-800);
  line-height: 1.4;
}

.status-badge.running {
  background: #fbe8ce;
  color: #9b5405;
}

.status-badge.success {
  background: #ebf5ed;
  color: #508661;
}

.status-badge.warn {
  background: #fcf5e6;
  color: #917d4b;
}

.status-badge.error {
  background: #fff0f0;
  color: #b35555;
}

.live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.run-track {
  margin: 29px 0 24px;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 8px;
}

.run-track>div {
  border-top: 2px solid var(--grey-200);
  padding-top: 11px;
  color: var(--grey-800);
  font-size: 11px;
}

.run-track>div.done {
  border-color: var(--grey-600);
  color: var(--grey-800);
}

.run-track>div.current {
  border-color: var(--accent);
  color: #9b5405;
  font-weight: 500;
}

.run-message {
  font-size: 14px;
  line-height: 1.8;
  color: var(--grey-800);
  min-height: 45px;
}

.run-message strong {
  font-weight: 500;
}

.progress-detail {
  font-size: 11px;
  color: var(--grey-800);
  margin-top: 13px;
}

.run-progress {
  width: 100%;
  height: 6px;
  appearance: none;
  border: 0;
  background: var(--grey-100);
  accent-color: var(--brand-500);
  margin-top: 20px;
  border-radius: 3px;
  overflow: hidden;
}

.run-progress::-webkit-progress-bar {
  background: var(--grey-200);
}

.run-progress::-webkit-progress-value {
  background: var(--accent);
}

.run-progress::-moz-progress-bar {
  background: var(--accent);
}

.run-meta {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.run-meta>div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.run-meta dt {
  font-size: 10px;
  color: var(--grey-800);
}

.run-meta dd {
  margin: 0;
  font-size: 12px;
  overflow-wrap: anywhere;
  color: var(--grey-800);
}

.run-meta code {
  font: 10px var(--mono);
  color: var(--grey-800);
}

.quota-meter {
  margin-top: 23px;
  padding-top: 19px;
  border-top: 1px solid var(--grey-200);
  font-size: 11px;
  color: var(--grey-800);
  line-height: 1.8;
}

.quota-meter strong {
  color: var(--grey-800);
  font-weight: 500;
}

.run-history button {
  border: 0;
  border-bottom: 1px solid var(--grey-200);
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  text-align: left;
  width: 100%;
  padding: 17px 0;
  color: var(--grey-800);
  font-size: 12px;
}

.run-history button:hover {
  color: var(--grey-900);
}

.run-history button:last-child {
  border: 0;
}

.run-history button.active {
  font-weight: 500;
  color: var(--grey-900);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 16px;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
  margin-bottom: 25px;
}

.metric {
  background: var(--footer);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  padding: 24px;
  min-width: 0;
}

.metric>span {
  font-size: 11px;
  color: var(--grey-800);
  display: block;
  margin-bottom: 17px;
}

.metric>strong {
  display: block;
  font-family: var(--font-display);
  font-size: 38px;
  letter-spacing: -.035em;
  line-height: 1.1;
  font-weight: 500;
  color: var(--grey-900);
}

.metric>small {
  display: block;
  font-size: 10px;
  color: var(--grey-800);
  margin-top: 13px;
  line-height: 1.75;
}

.eval-columns {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 25px;
}

.eval-columns>.panel {
  min-width: 0;
}

.mini-comparison {
  display: flex;
  flex-direction: column;
  gap: 19px;
  margin-top: 25px;
}

.comparison-row {
  display: grid;
  grid-template-columns: 87px 1fr 49px;
  align-items: center;
  gap: 13px;
  font-size: 12px;
  color: var(--grey-800);
}

.comparison-row>strong {
  text-align: right;
  font-weight: 450;
}

.comparison-note {
  font-size: 10px;
  color: var(--grey-800);
  margin-top: 23px;
  line-height: 1.8;
}

.comparison-progress,.score-progress {
  width: 100%;
  height: 7px;
  appearance: none;
  border: 0;
  accent-color: var(--brand-500);
  background: var(--grey-100);
  border-radius: 4px;
  overflow: hidden;
}

.comparison-progress::-webkit-progress-bar,.score-progress::-webkit-progress-bar {
  background: var(--grey-100);
}

.comparison-progress::-webkit-progress-value,.score-progress::-webkit-progress-value {
  background: var(--brand-500);
}

.comparison-progress::-moz-progress-bar,.score-progress::-moz-progress-bar {
  background: var(--brand-500);
}

.baseline .comparison-progress {
  accent-color: var(--grey-400);
}

.baseline .comparison-progress::-webkit-progress-value {
  background: var(--grey-400);
}

.baseline .comparison-progress::-moz-progress-bar {
  background: var(--grey-400);
}

.score-progress {
  height: 4px;
}

.code-block {
  background: var(--grey-900);
  color: #e9e3db;
  border-radius: var(--radius-md);
  padding: 22px;
  overflow: auto;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.9;
  white-space: pre;
  tab-size: 2;
}

.code-block code {
  font-family: inherit;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--grey-600);
}

.code-header .btn {
  padding: 5px 9px;
  min-height: 29px;
}

.endpoint-row {
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--background);
  border: 1px solid var(--grey-200);
  padding: 14px;
  border-radius: var(--radius-sm);
  margin: 22px 0;
}

.endpoint-row>.method {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  color: #9b5405;
  background: #fbe8ce;
  padding: 4px 7px;
  border-radius: var(--radius-sm);
}

.endpoint-row>code {
  font: 11px var(--mono);
  word-break: break-all;
  flex: 1;
  color: var(--grey-800);
}

.endpoint-row .btn {
  flex-shrink: 0;
}

.playground-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.playground-grid>.panel {
  min-width: 0;
}

.prediction-result {
  margin-top: 20px;
}

.prediction-label {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: -.025em;
  font-weight: 500;
  margin: 19px 0 9px;
  overflow-wrap: anywhere;
}

.prediction-status {
  font-size: 12px;
  color: var(--grey-800);
  margin-bottom: 20px;
  line-height: 1.75;
}

.score-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 20px;
}

.score-row {
  display: grid;
  grid-template-columns: minmax(60px,1fr) minmax(60px,1.2fr) 43px;
  gap: 11px;
  align-items: center;
  font-size: 11px;
  color: var(--grey-800);
}

.score-row>span {
  overflow-wrap: anywhere;
}

.score-row strong {
  text-align: right;
  font-weight: 450;
}

.feedback-form {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--grey-200);
}

.feedback-form .field {
  margin-bottom: 13px;
}

.api-key-secret {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid #ebd9c9;
  background: #fff9f3;
  border-radius: var(--radius-sm);
}

.api-key-secret strong {
  font-size: 13px;
  font-weight: 500;
  color: #885f40;
}

.api-key-secret p {
  font-size: 12px;
  color: #a7866c;
  margin: 9px 0 14px;
}

.secret-value {
  display: flex;
  align-items: center;
  gap: 10px;
}

.secret-value code {
  font: 11px var(--mono);
  background: var(--white);
  border: 1px solid #e8dbcd;
  padding: 12px;
  overflow-wrap: anywhere;
  flex: 1;
  color: #8a6b52;
}

.key-list {
  margin-top: 26px;
}

.key-row {
  padding: 18px 0;
  border-top: 1px solid var(--grey-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.key-row strong {
  font-size: 13px;
  display: block;
  font-weight: 500;
  color: var(--grey-800);
}

.key-row span {
  font-size: 10px;
  color: var(--grey-800);
  display: block;
  margin-top: 5px;
}

.raw-details {
  margin-top: 22px;
  color: var(--grey-800);
}

.raw-details summary {
  font-size: 11px;
  cursor: pointer;
}

.raw-details pre {
  margin-top: 14px;
  max-height: 450px;
  white-space: pre-wrap;
  word-break: break-word;
  font: 11px/1.8 var(--mono);
  border: 1px solid var(--grey-200);
  background: var(--background);
  border-radius: var(--radius-sm);
  padding: 17px;
  overflow: auto;
  color: var(--grey-800);
}

.divider {
  border: 0;
  border-top: 1px solid var(--grey-200);
  margin: 28px 0;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 0;
  padding: 18px;
  background: var(--background);
}

.auth-story {
  background: linear-gradient(180deg,rgba(37,31,25,0) 0%,rgba(37,31,25,.15) 30%,rgba(37,31,25,.7) 100%),url("/template-assets/hero.jpg") center / cover;
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 35px 44px 31px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 36px);
}

.auth-story .brand {
  color: var(--grey-900);
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -1px;
}

.auth-story .brand-mark {
  fill: var(--grey-900);
}

.auth-story-copy {
  margin-top: auto;
  position: relative;
  padding-block: 100px 36px;
  max-width: 490px;
}

.auth-story h1 {
  font-family: var(--font-display);
  font-size: clamp(43px,4.2vw,62px);
  line-height: 1.05;
  letter-spacing: -.025em;
  font-weight: 500;
  margin-bottom: 25px;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(37,31,25,.18);
}

.auth-story-copy>p {
  font-size: 15px;
  max-width: 370px;
  color: rgba(255,255,255,.9);
  line-height: 1.75;
}

.auth-principles {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 31px;
  font-size: 11px;
  color: rgba(255,255,255,.9);
}

.auth-principles span {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-principles i {
  width: 4px;
  height: 4px;
  background: var(--brand-500);
  border-radius: 0;
  flex-shrink: 0;
}

.auth-story-footer {
  font-size: 11px;
  color: rgba(255,255,255,.74);
  position: relative;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,.2);
  padding-top: 21px;
}

.auth-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 50px;
  background: var(--background);
}

.auth-form {
  width: 100%;
  max-width: 390px;
}

.auth-form h2 {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 500;
  letter-spacing: -.025em;
  margin-bottom: 17px;
  line-height: 1.1;
  text-wrap: balance;
}

.auth-form>p {
  font-size: 14px;
  color: var(--grey-800);
  line-height: 1.8;
  margin-bottom: 30px;
}

.auth-form>p strong {
  font-weight: 500;
  color: var(--grey-800);
}

.auth-form .field {
  margin-bottom: 20px;
}

.auth-form .field label {
  font-size: 12px;
}

.auth-form .field input {
  min-height: 50px;
  background: var(--white);
}

.auth-form .btn.primary {
  width: 100%;
  min-height: 46px;
  margin-top: 4px;
  justify-content: flex-start;
}

.auth-form .auth-legal {
  font-size: 11px;
  line-height: 1.85;
  color: var(--grey-800);
  margin-top: 23px;
}

.auth-legal a {
  color: var(--grey-800);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-form .back-link {
  display: inline-flex;
  border: 0;
  background: transparent;
  color: var(--grey-800);
  padding: 0;
  margin-top: 23px;
  font-size: 12px;
}

.auth-form .back-link:hover {
  color: var(--grey-900);
}

.auth-form input.code-input {
  font-family: var(--mono);
  font-size: 22px;
  letter-spacing: 8px;
  padding: 14px 16px;
}

.auth-mobile-brand {
  display: none;
}

.confirm-dialog {
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: min(470px,calc(100vw - 40px));
  color: var(--grey-900);
  background: var(--background);
  box-shadow: 0 20px 70px rgba(37,31,25,.2);
}

.confirm-dialog::backdrop {
  background: rgba(37,31,25,.4);
  backdrop-filter: blur(4px);
}

.confirm-dialog h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -.02em;
  margin-bottom: 15px;
  line-height: 1.15;
}

.confirm-dialog p {
  font-size: 13px;
  color: var(--grey-800);
  line-height: 1.85;
}

.confirm-dialog .button-row {
  justify-content: flex-end;
}

.confirm-dialog .field {
  margin-top: 22px;
}

.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grey-900);
  color: var(--background);
  border: 1px solid #4a3e33;
  border-radius: var(--radius-md);
  padding: 14px 20px;
  box-shadow: 0 8px 25px rgba(37,31,25,.12);
  font-size: 12px;
  z-index: 110;
  max-width: calc(100% - 30px);
  line-height: 1.7;
}

.toast.error {
  background: #933f3f;
  border-color: #a95c5c;
}

.loading-line {
  height: 2px;
  background: var(--grey-200);
  position: relative;
  overflow: hidden;
  margin-bottom: 25px;
}

.loading-line:after {
  content: '';
  display: block;
  position: absolute;
  width: 35%;
  height: 100%;
  background: var(--accent);
  animation: loading 1.1s ease-in-out infinite alternate;
}

@keyframes loading {
  from {
    left: 0;
  }
  to {
    left: 65%;
  }
}

.noscript {
  padding: 30px;
  text-align: center;
}

.inline-empty {
  padding: 30px 0;
  text-align: center;
  color: var(--grey-800);
  font-size: 12px;
}

.limit-summary {
  font-size: 12px;
  color: var(--grey-800);
  line-height: 1.85;
}

.task-description {
  max-width: 780px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--grey-800);
  overflow-wrap: anywhere;
}

.result-empty {
  padding: 38px 10px;
  text-align: center;
  color: var(--grey-800);
  font-size: 12px;
  line-height: 1.9;
}

.result-empty .result-symbol {
  display: block;
  color: var(--grey-400);
  font-size: 29px;
  margin-bottom: 16px;
}

.mobile-brand {
  display: none;
}

.recipe-name {
  font-size: 11px;
  color: var(--grey-800);
  margin-top: 13px;
}

.danger-zone {
  margin-top: 39px;
  border-top: 1px solid var(--grey-200);
  padding-top: 27px;
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
}

.danger-zone h3 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 7px;
}

.danger-zone p {
  font-size: 12px;
  color: var(--grey-800);
  max-width: 550px;
  line-height: 1.8;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.mapping-fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.mapping-fieldset:disabled input,.mapping-fieldset:disabled select {
  color: var(--grey-800);
  opacity: 1;
  cursor: not-allowed;
  background: var(--background);
}

.mapping-fieldset:disabled .column-option {
  opacity: .65;
  cursor: default;
}

.service-unavailable {
  margin-bottom: 27px;
  background: #fff7e8;
  border: 1px solid #ead4b6;
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.service-unavailable strong {
  font-size: 14px;
  font-weight: 500;
  color: #8b6242;
  display: block;
  margin-bottom: 5px;
}

.service-unavailable p {
  font-size: 12px;
  line-height: 1.8;
  color: #ac8a6f;
  max-width: 640px;
}

.service-unavailable .btn {
  flex-shrink: 0;
}

@media(max-width:1150px) {
  .app-shell {
    grid-template-columns: 210px 1fr;
  }
  .sidebar {
    padding-inline: 14px;
  }
  .app-main {
    padding-inline: 29px;
  }
  .run-layout {
    grid-template-columns: 1fr;
  }
  .run-meta {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 22px;
  }
  .metrics-grid {
    grid-template-columns: repeat(2,1fr);
  }
  .eval-columns,.playground-grid {
    grid-template-columns: 1fr;
  }
  .empty-state {
    gap: 38px;
    grid-template-columns: 1fr;
  }
  .empty-diagram {
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    padding-block: 18px;
    gap: 30px;
  }
  .empty-diagram .diagram-row {
    border: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-block: 8px;
  }
  .empty-state h1 {
    font-size: 49px;
  }
  .auth-story {
    padding-inline: 42px;
  }
  .auth-story h1 {
    font-size: 56px;
  }
  .auth-form-panel {
    padding-inline: 40px;
  }
  .auth-form h2 {
    font-size: 29px;
  }
  .mapping-grid {
    grid-template-columns: 1fr;
  }
  .mapping-options {
    padding-left: 0;
    border-left: 0;
  }
  .form-grid {
    gap: 20px;
  }
  .run-layout .panel {
    margin-bottom: 0;
  }
  .run-layout {
    margin-bottom: 25px;
  }
  .panel {
    padding: 26px;
  }
}

@media(max-width:800px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    height: auto;
    position: relative;
    padding: 19px 23px;
    border-right: 0;
    border-bottom: 1px solid var(--grey-200);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
  }
  .sidebar .brand {
    font-size: 22px;
    grid-column: 1;
    padding: 0;
  }
  .sidebar .brand-mark {
    height: 24px;
    width: 24px;
  }
  .sidebar .workspace-label {
    display: none;
  }
  .new-project-button {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    font-size: 11px;
    padding: 7px 11px;
  }
  .sidebar-projects {
    grid-column: 1/3;
    display: flex;
    flex-direction: row;
    overflow: auto;
    margin: 0;
    max-width: 100%;
    gap: 5px;
  }
  .sidebar-projects:empty {
    display: none;
  }
  .project-link {
    width: auto;
    max-width: 230px;
    flex-shrink: 0;
    padding: 8px 10px;
    font-size: 11px;
  }
  .project-icon {
    width: 13px;
    height: 13px;
  }
  .project-icon:after {
    height: 3px;
    width: 3px;
    top: 3.5px;
    left: 3.5px;
  }
  .sidebar-bottom {
    display: none;
  }
  .app-main {
    padding: 25px 23px 47px;
  }
  .workspace-topline {
    margin-bottom: 32px;
    font-size: 10px;
  }
  .workspace-topline .mobile-account {
    display: inline-flex;
  }
  .page-heading h1 {
    font-size: 30px;
    letter-spacing: -.025em;
  }
  .page-heading p {
    font-size: 13px;
  }
  .page-heading {
    margin-bottom: 25px;
    gap: 17px;
  }
  .page-heading .heading-actions {
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
  }
  .page-heading .btn {
    padding: 7px 10px;
    font-size: 10px;
    min-height: 31px;
  }
  .panel {
    padding: 24px;
  }
  .step-nav {
    gap: 28px;
    margin-bottom: 25px;
  }
  .step-nav button {
    font-size: 12px;
    padding-bottom: 14px;
    gap: 7px;
  }
  .step-nav button .nav-number {
    width: 18px;
    height: 18px;
    font-size: 9px;
  }
  .empty-state {
    margin-top: 25px;
    gap: 36px;
  }
  .empty-state h1 {
    font-size: 45px;
    letter-spacing: -.025em;
  }
  .empty-state p {
    font-size: 15px;
  }
  .empty-state-note {
    margin-top: 42px;
    gap: 17px;
    font-size: 10px;
  }
  .panel-header {
    gap: 15px;
  }
  .panel h2 {
    font-size: 21px;
  }
  .panel-lead {
    font-size: 13px;
  }
  .auth-shell {
    grid-template-columns: 1fr;
  }
  .auth-story {
    display: none;
  }
  .auth-form-panel {
    min-height: 100vh;
    padding: 35px 30px;
  }
  .auth-mobile-brand {
    display: flex;
    margin-bottom: 66px;
  }
  .auth-mobile-brand .brand {
    font-size: 25px;
  }
  .auth-form {
    max-width: 390px;
  }
  .auth-form h2 {
    font-size: 32px;
  }
  .auth-form .auth-legal {
    font-size: 11px;
  }
  .danger-zone {
    align-items: flex-start;
  }
  .danger-zone .btn {
    white-space: nowrap;
  }
  .endpoint-row {
    flex-wrap: wrap;
  }
  .endpoint-row>code {
    min-width: calc(100% - 70px);
  }
  .endpoint-row .btn {
    margin-left: auto;
  }
  .metric {
    padding: 22px;
  }
  .metric>strong {
    font-size: 29px;
  }
  .service-unavailable {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
}

@media(min-width:801px) {
  .mobile-account {
    display: none!important;
  }
}

@media(max-width:520px) {
  .app-main {
    padding-inline: 18px;
  }
  .sidebar {
    padding-inline: 18px;
  }
  .panel {
    padding: 21px;
  }
  .panel.tight {
    padding: 19px;
  }
  .panel-header {
    flex-direction: column;
    gap: 15px;
  }
  .panel-header .btn {
    align-self: flex-start;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .step-nav {
    gap: 24px;
  }
  .step-nav button .nav-number {
    display: none;
  }
  .page-heading h1 {
    font-size: 27px;
  }
  .page-heading .heading-actions {
    flex-shrink: 1;
  }
  .empty-state h1 {
    font-size: 39px;
    letter-spacing: -.025em;
  }
  .empty-diagram {
    gap: 17px;
    padding-block: 17px;
  }
  .empty-diagram .diagram-row {
    font-size: 11px;
    gap: 12px;
  }
  .empty-diagram .diagram-row>span:first-child {
    font-size: 10px;
  }
  .upload-zone {
    padding: 25px 17px;
    gap: 15px;
  }
  .upload-icon {
    width: 34px;
    height: 38px;
    font-size: 22px;
  }
  .upload-zone strong {
    font-size: 13px;
    line-height: 1.7;
  }
  .upload-zone span {
    font-size: 10px;
  }
  .demo-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  .data-summary {
    gap: 14px;
    font-size: 11px;
  }
  .mapping-grid {
    gap: 12px;
  }
  .threshold-grid {
    gap: 19px;
  }
  .split-cell {
    padding: 16px 7px;
  }
  .split-cell strong {
    font-size: 21px;
  }
  .split-cell span {
    font-size: 9px;
  }
  .run-meta {
    grid-template-columns: 1fr 1fr;
  }
  .metrics-grid .metric {
    padding: 19px;
  }
  .metric>span {
    font-size: 10px;
  }
  .metric>strong {
    font-size: 28px;
  }
  .metric>small {
    font-size: 10px;
  }
  .run-message {
    font-size: 13px;
  }
  .run-track>div {
    font-size: 10px;
  }
  .button-row {
    gap: 9px;
  }
  .btn {
    padding: 10px 12px;
    font-size: 12px;
  }
  .secret-value {
    align-items: flex-start;
    flex-direction: column;
  }
  .secret-value code {
    width: 100%;
  }
  .key-row {
    gap: 13px;
  }
  .endpoint-row>code {
    font-size: 10px;
  }
  .code-block {
    font-size: 10px;
    padding: 16px;
  }
  .comparison-row {
    grid-template-columns: 81px 1fr 44px;
    gap: 9px;
    font-size: 11px;
  }
  .danger-zone {
    flex-direction: column;
  }
  .table-scroll {
    margin-bottom: 20px;
  }
  .auth-form-panel {
    padding-inline: 26px;
  }
  .auth-form .field input {
    min-height: 50px;
  }
  .auth-form h2 {
    font-size: 30px;
  }
}

/* Parley template details shared with the marketing experience. */
.app-body {
  --accent: var(--brand-500);
  --ink: var(--grey-900);
  --muted: var(--grey-800);
  --line: var(--grey-200);
  --font: var(--font-ui);
}

.app-body .brand {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -1px;
}

.app-body .text-link {
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.app-body .text-link:hover {
  color: #925414;
}

.btn.primary.small {
  padding: 4px 11px 4px 4px;
  gap: 9px;
}

.btn.primary.small .fbtn__chip {
  width: 28px;
  height: 28px;
}

.btn.primary.small .fbtn__label {
  font-size: 11px;
}

.btn.primary:disabled .fbtn__arrows svg,
.btn.primary:disabled .fbtn__label span {
  transition: none;
}

.btn.primary:disabled .fbtn__arrows svg {
  transform: translateX(-23px);
}

.btn.primary:disabled .fbtn__label span {
  transform: translateY(0);
}

.auth-story h1 em,
.empty-state h1 em {
  font-weight: 400;
  font-style: italic;
}

.empty-state h1 em {
  color: var(--grey-600);
}

/* Dashboard: the template's warm cards, display typography and painted art. */
.dashboard-heading {
  margin-bottom: 32px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.dashboard-kicker {
  display: block;
  color: #925414;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 16px;
}

.dashboard-heading h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 3.7vw, 52px);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.05;
  margin-bottom: 18px;
  text-wrap: balance;
}

.dashboard-heading h1 em {
  color: var(--grey-600);
  font-style: italic;
  font-weight: 400;
}

.dashboard-heading p {
  color: var(--grey-800);
  font-size: 14px;
  line-height: 1.7;
  max-width: 540px;
}

.dashboard-heading .button-row {
  margin-top: 0;
  flex-shrink: 0;
}

.dashboard-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 38px;
}

.summary-stat {
  background: var(--footer);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  min-width: 0;
}

.summary-stat > span {
  display: block;
  color: var(--grey-800);
  font-size: 12px;
  margin-bottom: 14px;
}

.summary-stat > strong {
  display: block;
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1;
}

.summary-stat > small {
  display: block;
  color: var(--grey-800);
  font-size: 11px;
  line-height: 1.6;
  margin-top: 12px;
}

.task-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.task-card {
  width: 100%;
  min-width: 0;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 25px;
  background: var(--footer);
  color: var(--grey-900);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  text-align: left;
  transition: border-color 200ms var(--e-tween-out);
}

.task-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url('/template-assets/pro-cloud.png') center / cover no-repeat;
  opacity: 0;
  transition: opacity var(--d-spring) var(--e-tween-out);
}

.task-card:hover,
.task-card:focus-visible {
  border-color: var(--grey-600);
}

.task-card:hover::before,
.task-card:focus-visible::before {
  opacity: .48;
}

.task-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.task-card-top .project-icon,
.task-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #e8c591;
  background: #fce7c3;
  color: #925414;
}

.task-card-top .project-icon::after {
  width: 7px;
  height: 7px;
  top: 11px;
  left: 11px;
  border-radius: 1px;
  background: var(--brand-500);
}

.task-card h2,
.task-card h3,
.task-card-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -.015em;
  line-height: 1.15;
  margin-bottom: 12px;
  overflow-wrap: anywhere;
}

.task-card > p,
.task-card-description {
  color: var(--grey-800);
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 24px;
  overflow-wrap: anywhere;
}

.task-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  font-size: 11px;
  color: var(--grey-800);
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(104, 97, 90, .15);
}

.task-card-open {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  color: var(--grey-900);
  font-size: 12px;
  font-weight: 500;
  margin-top: 20px;
}

.task-card-open > span:last-child {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--brand-500);
  color: var(--grey-900);
}

@media (max-width: 1150px) {
  .empty-diagram {
    padding: 140px 22px 20px;
    background-size: 100% 116px;
    border: 1px solid var(--grey-200);
  }

  .dashboard-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-summary {
    gap: 12px;
  }

  .summary-stat {
    padding: 21px;
  }

  .auth-story {
    padding-inline: 32px;
  }

  .auth-story h1 {
    font-size: 48px;
  }

  .auth-story-copy {
    padding-top: 90px;
  }
}

@media (max-width: 800px) {
  .sidebar {
    border-bottom-color: var(--grey-200);
  }

  .new-project-button {
    padding: 4px 10px 4px 4px;
    gap: 8px;
  }

  .new-project-button > .fbtn__chip {
    width: 25px;
    height: 25px;
  }

  .page-heading .btn.primary {
    padding: 4px 10px 4px 4px;
  }

  .dashboard-heading h1 {
    font-size: 40px;
  }

  .auth-shell {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 12px;
  }

  .auth-story {
    display: flex;
    padding: 23px 25px 25px;
    min-height: 270px;
    background-position: center 62%;
    border-radius: var(--radius-lg);
  }

  .auth-story .brand {
    font-size: 25px;
  }

  .auth-story-copy {
    padding: 44px 0 0;
    max-width: 490px;
  }

  .auth-story h1 {
    font-size: 37px;
    margin-bottom: 0;
  }

  .auth-story-copy > p,
  .auth-principles,
  .auth-story-footer,
  .auth-mobile-brand {
    display: none;
  }

  .auth-form-panel {
    min-height: 0;
    padding: 40px 24px 32px;
  }

  .auth-form h2 {
    font-size: 32px;
  }

  .auth-form > p {
    margin-bottom: 24px;
  }
}

@media (max-width: 520px) {
  .dashboard-heading {
    gap: 21px;
  }

  .dashboard-heading h1 {
    font-size: 36px;
  }

  .dashboard-heading .button-row {
    width: 100%;
  }

  .dashboard-summary {
    gap: 8px;
    margin-bottom: 28px;
  }

  .summary-stat {
    padding: 16px 12px;
    border-radius: var(--radius-sm);
  }

  .summary-stat > span {
    font-size: 10px;
    line-height: 1.5;
    min-height: 30px;
    margin-bottom: 9px;
  }

  .summary-stat > strong {
    font-size: 29px;
  }

  .summary-stat > small {
    font-size: 10px;
  }

  .task-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .task-card {
    min-height: 240px;
    padding: 23px;
  }

  .task-card h2,
  .task-card h3,
  .task-card-title {
    font-size: 24px;
  }

  .empty-diagram {
    gap: 16px;
    padding: 130px 18px 18px;
    background-size: 100% 110px;
  }

  .btn.primary {
    padding: 4px 11px 4px 4px;
  }

  .metrics-grid {
    gap: 12px;
  }

  .metric > strong {
    font-size: 31px;
  }

  .auth-story {
    min-height: 245px;
    padding-inline: 22px;
  }

  .auth-story h1 {
    font-size: 34px;
  }

  .auth-form-panel {
    padding: 34px 14px 27px;
  }

  .auth-form h2 {
    font-size: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-body *,
  .app-body *::before,
  .app-body *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* Dashboard structure uses spans inside a single accessible task button. */
.task-card-title,
.task-card-description,
.task-card-meta,
.task-card-open {
  display: block;
}

.task-card-meta,
.task-card-open {
  display: flex;
}

.task-card-icon {
  display: grid;
  place-items: center;
}

.task-card-icon .brand-mark {
  width: 18px;
  height: 18px;
  fill: #925414;
}

.dashboard-heading .dashboard-kicker {
  color: #925414;
  font-size: 12px;
  margin-bottom: 16px;
}

.dashboard-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 21px;
}

.dashboard-section-heading h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.15;
}

.dashboard-section-heading > span {
  color: var(--grey-800);
  font-size: 12px;
}

.workspace-home {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--grey-800);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.workspace-home:hover {
  color: var(--grey-900);
}

.sidebar-overview {
  margin-bottom: 8px;
}

.summary-stat > strong > small {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  white-space: nowrap;
  color: var(--grey-800);
}

@media (max-width: 520px) {
  .summary-stat > strong > small {
    display: block;
    font-size: 11px;
    margin-top: 7px;
  }
}

/* Keep the upload illustration distinct from its small helper text. */
.upload-zone .upload-icon { font-size: 24px; }
