:root {
  --bg: #edf1f0;
  --panel: #ffffff;
  --panel-soft: #f8fbfc;
  --ink: #101828;
  --muted: #667085;
  --subtle: #8a97a8;
  --line: #d7e0ea;
  --line-strong: #b8c5d4;
  --teal: #087f8c;
  --teal-dark: #075f69;
  --mint: #dff5f3;
  --blue: #315f99;
  --blue-soft: #e7f0fb;
  --amber: #b7791f;
  --amber-soft: #fff2cf;
  --red: #b42318;
  --red-soft: #fee4e2;
  --green: #147d4f;
  --green-soft: #dcf4e8;
  --navy: #17211f;
  --shadow: 0 16px 44px rgba(20, 33, 48, 0.08);
  --shadow-soft: 0 8px 24px rgba(20, 33, 48, 0.06);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

[hidden] { display: none !important; }
button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
button svg { width: 18px; height: 18px; flex: 0 0 18px; }
.icon-button { width: 40px; height: 40px; padding: 8px; flex: 0 0 40px; }
.nav-tab { justify-content: start; }
.form-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(90px, 1fr); gap: 16px; }
.form-row > div { min-width: 0; }
.request-message { min-height: 24px; margin: 12px 0 0; font-size: 13px; color: var(--teal-dark); overflow-wrap: anywhere; }
.request-message.error { color: var(--red); }
.molecule-canvas img { width: 100%; max-height: 300px; object-fit: contain; }
.panel, .input-panel, .workspace { min-width: 0; }
.disclaimer + .disclaimer { margin-top: 14px; }
.pathway-panel { margin-top: 20px; }
.pathway-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px; }
.pathway-list > li { min-width: 0; border-left: 3px solid var(--teal); padding-left: 16px; }
.pathway-list p { font-size: 13px; color: var(--muted); }
.pathway-list code { display: block; font-size: 11px; overflow-wrap: anywhere; line-height: 1.6; }
.pathway-structure { height: 210px; margin-top: 12px; }
.pathway-structure img { width: 100%; height: 100%; object-fit: contain; }
.optimization-summary { padding-top: 20px; border-top: 1px solid var(--line); margin-top: 20px; line-height: 1.7; font-size: 14px; }
.table-wrap td { max-width: 260px; overflow-wrap: anywhere; }
.candidate-table { min-width: 1340px; }
.batch-row-error { margin: 6px 0 0; color: var(--red); font-size: 12px; line-height: 1.5; }
.batch-contract code, #batch-probe-input dd { font-size: 12px; overflow-wrap: anywhere; }
#batch-probe-detail, #batch-probe-results { display: grid; gap: 18px; min-width: 0; }
#batch-probe-results .pathway-panel { margin-top: 0; }
.file-picker { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px dashed var(--line-strong); border-radius: 8px; }
.file-picker button { flex: 0 0 auto; }
.file-picker span { min-width: 0; font-size: 13px; overflow-wrap: anywhere; }

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

button,
input,
textarea,
select {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 304px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  overflow-y: auto;
  min-height: 100vh;
  background: #17211f;
  color: #eef2f7;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: block;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand h1 {
  font-size: 17px;
  line-height: 1.22;
  margin: 0;
  letter-spacing: 0;
}

.brand p {
  margin: 5px 0 0;
  color: #aeb9c8;
  font-size: 13px;
}

.nav-tabs {
  display: grid;
  gap: 8px;
}

.nav-tab {
  min-height: 58px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #d8dee8;
  text-align: left;
  padding: 10px 12px;
  cursor: pointer;
  display: grid;
  gap: 3px;
}

.nav-tab span {
  font-weight: 800;
}

.nav-tab small {
  color: #96a3b5;
}

.nav-tab:hover,
.nav-tab.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.service-panels { margin-top: auto; display: grid; gap: 10px; }
.queue-panel { border: 1px solid #303b49; border-radius: 8px; padding: 12px; background: rgba(255, 255, 255, 0.04); font-size: 13px; }
.queue-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 12px 0 8px; }
.queue-metrics dt { color: #b2bfcc; font-size: 12px; }
.queue-metrics dd { margin: 4px 0 0; font-size: 21px; font-weight: 700; font-variant-numeric: tabular-nums; }
.queue-capacity, .queue-note { margin: 6px 0 0; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.queue-capacity { color: #b2bfcc; }
.queue-note { color: #a9e8ca; }
.queue-panel[data-state="full"] .queue-note, .queue-panel[data-state="unknown"] .queue-note { color: #f5d389; }
.queue-own { list-style: none; padding: 0; margin: 10px 0 0; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.queue-own li + li { margin-top: 4px; }
.status-panel {
  margin-top: 0;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #303b49;
  border-radius: 8px;
  padding: 10px 12px;
  color: #d8dee8;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.04);
}

.status-panel strong,
.status-panel small {
  display: block;
}

.status-panel small {
  color: #96a3b5;
  margin-top: 2px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 5px rgba(183, 121, 31, 0.18);
  flex: 0 0 auto;
}

.status-dot.ok {
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(20, 125, 79, 0.20);
}

.status-dot.error {
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(180, 35, 24, 0.18);
}

.workspace {
  padding: 28px;
  min-width: 0;
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
}

.topbar {
  min-height: 82px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 5px;
  color: #516176;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.topbar h2 {
  font-size: 31px;
  line-height: 1.15;
  margin: 0;
  letter-spacing: 0;
}

.page-summary {
  margin: 7px 0 0;
  color: var(--muted);
  max-width: 680px;
  line-height: 1.45;
}

.topbar-actions,
.form-actions,
.header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.header-actions {
  justify-content: flex-end;
}

.insight-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.insight-strip article {
  min-height: 82px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  padding: 13px 14px;
  display: grid;
  gap: 3px;
}

.insight-strip span,
.metric-card span {
  color: #59687b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.insight-strip strong {
  font-size: 19px;
}

.insight-strip small,
.metric-card small {
  color: var(--muted);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: grid;
  gap: 18px;
}

.grid {
  display: grid;
  gap: 18px;
}

.primary-grid {
  grid-template-columns: minmax(420px, 1fr) minmax(420px, 1fr);
}

.secondary-grid {
  grid-template-columns: minmax(340px, 1fr) minmax(340px, 1fr);
}

.panel,
.metric-card,
.decision-banner {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel {
  padding: 18px;
}

.panel-header {
  min-height: 34px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.panel h3 {
  margin: 0;
  font-size: 16px;
}

.panel-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 800;
  color: #073f46;
  background: var(--mint);
  white-space: nowrap;
}

.badge.neutral {
  color: #344054;
  background: #eef2f6;
}

.badge.caution {
  color: #7a4a08;
  background: var(--amber-soft);
}

.decision-banner {
  min-height: 122px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border-left: 5px solid var(--blue);
}

.decision-banner.idle {
  border-left-color: var(--blue);
}

.decision-banner.pass {
  border-left-color: var(--green);
  background: linear-gradient(90deg, rgba(220, 244, 232, 0.9), rgba(255, 255, 255, 0.95));
}

.decision-banner.fail {
  border-left-color: var(--amber);
  background: linear-gradient(90deg, rgba(255, 242, 207, 0.82), rgba(255, 255, 255, 0.95));
}

.decision-banner strong {
  display: block;
  font-size: 24px;
  line-height: 1.2;
  margin: 2px 0 7px;
}

.decision-banner p {
  margin: 0;
  color: #475467;
  line-height: 1.45;
}

#decision-kicker {
  color: #59687b;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
}

.decision-meter {
  min-height: 90px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  align-content: center;
  background: #ffffff;
}

.decision-meter span {
  font-size: 32px;
  font-weight: 900;
}

.decision-meter small {
  color: var(--muted);
}

label {
  display: block;
  color: #344054;
  font-weight: 800;
  margin: 12px 0 6px;
}

.compact-label {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}

textarea,
input[type="text"],
input:not([type]),
select {
  width: 100%;
  border: 1px solid #c8d2de;
  border-radius: 8px;
  background: #fbfcfd;
  color: var(--ink);
  padding: 11px 12px;
  resize: vertical;
}

input[type="file"] {
  width: 100%;
  border: 1px dashed #aeb9c8;
  border-radius: 8px;
  background: #fbfcfd;
  padding: 16px;
}

input[readonly] {
  color: #475467;
  background: #f2f6f8;
}

input.custom-solvent {
  color: var(--ink);
  background: #ffffff;
  border-color: var(--teal);
}

textarea:focus,
input:focus,
select:focus {
  outline: 3px solid rgba(8, 127, 140, 0.16);
  border-color: var(--teal);
}

.field-note,
.muted {
  color: var(--muted);
  line-height: 1.5;
}

.input-hints {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
}

.solvent-picker {
  position: relative;
}

.solvent-trigger {
  width: 100%;
  min-height: 44px;
  border: 1px solid #c8d2de;
  border-radius: 8px;
  background: #fbfcfd;
  color: var(--ink);
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
}

.solvent-trigger:hover,
.solvent-picker.open .solvent-trigger {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(8, 127, 140, 0.12);
}

.solvent-trigger-icon {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.solvent-menu {
  display: none;
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 310px;
  overflow-y: auto;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: 6px;
}

.solvent-picker.open .solvent-menu {
  display: grid;
  gap: 4px;
}

.solvent-option {
  width: 100%;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #253246;
  padding: 7px 9px;
  text-align: left;
  cursor: pointer;
}

.solvent-option span,
.solvent-option small {
  display: block;
}

.solvent-option span {
  font-weight: 800;
}

.solvent-option small {
  margin-top: 2px;
  color: var(--muted);
}

.solvent-option:hover,
.solvent-option.active {
  border-color: #b8d9d8;
  background: var(--mint);
  color: var(--teal-dark);
}

.solvent-option.custom {
  border-top: 1px solid var(--line);
  margin-top: 4px;
}

.primary-button,
.ghost-button {
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 9px 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.primary-button {
  background: var(--teal);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(8, 127, 140, 0.20);
}

.primary-button:hover {
  background: var(--teal-dark);
}

.ghost-button {
  background: #ffffff;
  color: #344054;
  border-color: #c8d2de;
}

.ghost-button:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
}

.ghost-button.small {
  white-space: nowrap;
  flex-shrink: 0;
  min-height: 32px;
  padding: 6px 10px;
  font-size: 13px;
}

.primary-button.small {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 13px;
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.molecule-canvas {
  min-height: 318px;
  border: 1px solid #d7dfe8;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(16, 24, 40, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(16, 24, 40, 0.035) 1px, transparent 1px),
    #fbfcfd;
  background-size: 22px 22px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.molecule-canvas svg {
  width: 100%;
  max-height: 314px;
}

.molecule-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.molecule-facts span {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  color: #475467;
  background: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 14px;
}

.metric-card {
  padding: 16px;
  min-height: 126px;
  position: relative;
  overflow: hidden;
}

.metric-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: var(--line);
}

.metric-emission::after {
  background: var(--blue);
}

.metric-stokes::after {
  background: var(--teal);
}

.metric-score::after {
  background: var(--amber);
}

.metric-support::after {
  background: var(--green);
}

.metric-support strong {
  max-width: 100%;
  font-size: 21px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.metric-card strong {
  display: block;
  font-size: 33px;
  margin: 12px 0 2px;
  letter-spacing: 0;
}

.target-list {
  display: grid;
  gap: 10px;
}

.target-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid #e1e7ef;
  border-radius: 8px;
  padding: 10px 12px;
  background: #ffffff;
}

.target-item.pass {
  background: var(--green-soft);
  border-color: #b7dfca;
}

.target-item.fail {
  background: #ffffff;
}

.target-item.pass strong {
  color: var(--green);
}

.target-item.fail strong {
  color: var(--red);
}

.gap-grid,
.seed-spread {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.gap-grid span,
.seed-spread span {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: #475467;
  padding: 9px 10px;
  font-size: 13px;
  font-weight: 800;
}

.batch-bars {
  height: 12px;
  background: #e7edf4;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 12px;
}

.batch-bars span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--amber), var(--green));
  border-radius: inherit;
  transition: width 220ms ease;
}

.evidence-section {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.evidence-section:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.evidence-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
  font-size: 13px;
}

.evidence-heading > span {
  color: #667085;
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.evidence-copy {
  margin: 10px 0 0;
  color: #475467;
  font-size: 13px;
  line-height: 1.55;
}

.support-list {
  display: grid;
  margin-top: 8px;
}

.support-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 42px;
  border-top: 1px solid #e7ebf0;
}

.support-list > div:first-child {
  border-top: 0;
}

.support-list span {
  color: #475467;
  font-size: 13px;
}

.support-level {
  font-size: 12px;
  text-align: right;
}

.support-level.well-supported {
  color: var(--green);
}

.support-level.moderate {
  color: #8a5a00;
}

.support-level.limited {
  color: var(--red);
}

.evidence-detail-grid {
  align-items: start;
}

.note-group + .note-group {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.note-group > strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 13px;
}

.evidence-note-list {
  display: grid;
  gap: 8px;
}

.evidence-note {
  border-left: 3px solid #98a2b3;
  border-radius: 0 6px 6px 0;
  background: var(--panel-soft);
  padding: 10px 12px;
}

.evidence-note.caution {
  border-left-color: var(--amber);
}

.evidence-note.information {
  border-left-color: var(--blue);
}

.evidence-note strong,
.evidence-note span {
  display: block;
}

.evidence-note strong {
  color: var(--ink);
  font-size: 13px;
}

.evidence-note span {
  margin-top: 4px;
  color: #475467;
  font-size: 12px;
  line-height: 1.5;
}

.evidence-audit-panel {
  margin-top: 16px;
}

.batch-summary {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.batch-summary p {
  margin: 0;
  color: #475467;
}

.table-panel {
  min-width: 0;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

#descriptor-context-table {
  min-width: 0;
  table-layout: fixed;
}

#descriptor-context-table th:first-child,
#descriptor-context-table td:first-child {
  width: 40%;
}

#descriptor-context-table th,
#descriptor-context-table td {
  overflow-wrap: anywhere;
}

th,
td {
  border-bottom: 1px solid #e1e7ef;
  text-align: left;
  padding: 10px 9px;
  vertical-align: top;
  font-size: 13px;
}

th {
  color: #344054;
  background: #f8fafc;
  font-weight: 900;
  position: sticky;
  top: 0;
  z-index: 1;
}

td {
  color: #475467;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 800;
}

.status-pill.ok {
  color: #0b5b3a;
  background: var(--green-soft);
}

.status-pill.bad {
  color: #7a271a;
  background: var(--red-soft);
}

.info-list {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 10px 14px;
  margin: 0;
}

.info-list dt {
  color: var(--muted);
  font-weight: 800;
}

.info-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.disclaimer {
  color: #475467;
  line-height: 1.6;
  margin: 0;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  max-width: 420px;
  background: var(--navy);
  color: white;
  padding: 12px 14px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  z-index: 5;
}

@media (max-width: 1120px) {
  .primary-grid,
  .secondary-grid,
  .insight-strip {
    grid-template-columns: 1fr 1fr;
  }

  .results-grid {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }

}

@media (max-width: 760px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    overflow-y: visible;
    min-height: auto;
    padding: 16px;
    gap: 16px;
  }

  .nav-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-tab {
    min-height: 54px;
  }

  .status-panel {
    margin-top: 0;
  }

  .workspace {
    padding: 18px 14px 24px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .primary-grid,
  .secondary-grid,
  .insight-strip,
  .results-grid,
  .decision-banner,
  .gap-grid,
  .seed-spread,
  .molecule-facts {
    grid-template-columns: 1fr;
  }

  .decision-meter {
    min-height: 72px;
  }

  .panel-header {
    flex-direction: column;
  }

  .header-actions {
    justify-content: flex-start;
  }

}

@media (max-width: 460px) {
  .nav-tab small {
    display: none;
  }

  .nav-tab {
    min-height: 44px;
    padding: 8px 10px;
  }

  .topbar h2 {
    font-size: 27px;
  }

  .decision-banner strong {
    font-size: 20px;
  }

  .insight-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .insight-strip article { padding: 12px; }
  .insight-strip small { font-size: 11px; }
  .info-list { grid-template-columns: 125px minmax(0, 1fr); }

}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px 20px;
  padding: 16px;
  font-size: 13px;
  color: var(--muted);
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-self: start;
}

.footer-right {
  justify-self: end;
  display: flex;
  align-items: center;
}

.footer-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-tools a,
.footer-contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  text-decoration: none;
}

.footer-tools a:hover,
.footer-contact:hover {
  color: var(--teal-dark);
}

.footer-tools img {
  width: 18px;
  height: 18px;
  display: block;
  border-radius: 3px;
}

.footer-contact svg {
  width: 14px;
  height: 14px;
}

.footer-center {
  justify-self: center;
  text-align: center;
}

.footer-center a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-center a:hover {
  color: var(--teal-dark);
}

@media (max-width: 720px) {
  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .footer-left {
    justify-self: center;
    justify-content: center;
  }
}
