@font-face {
  font-family: "Barlow Condensed Local";
  src: url("/assets/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --shell: #102a2e;
  --shell-deep: #091c20;
  --shell-quiet: #214247;
  --paper: #f6f9f7;
  --paper-cool: #e7efed;
  --paper-blue: #dce9e8;
  --ink: #14272b;
  --ink-soft: #53666a;
  --line: #c6d4d2;
  --line-strong: #8fa6a4;
  --action: #007f78;
  --action-dark: #00645f;
  --action-wash: #d3eeeb;
  --signal: #f0b53a;
  --danger: #b93d3d;
  --danger-wash: #f8dddd;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 22px 60px rgba(1, 22, 25, 0.22);
  --font-ui: "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-display: "Barlow Condensed Local", "Arial Narrow", sans-serif;
  --font-data: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--shell);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.5;
  background:
    linear-gradient(125deg, transparent 0 68%, rgba(82, 209, 200, 0.05) 68% 69%, transparent 69%),
    var(--shell);
}

::selection {
  color: var(--shell-deep);
  background: #75e4dc;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

button,
a,
label[for="file-input"] {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible,
label[for="file-input"]:focus-within {
  outline: 3px solid #46cfc5;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  border-radius: 9px;
  background: var(--action);
  transform: translateY(calc(-100% - 24px));
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.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;
}

[hidden] {
  display: none !important;
}

.app-shell {
  width: min(1480px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 32px;
}

.masthead {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #edf8f6;
}

.brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  color: #52d1c8;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-mark rect {
  stroke: #82a5a6;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand small {
  margin-top: -2px;
  color: #a8c1c1;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.privacy-note {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #d2e4e2;
  font-size: 0.87rem;
}

.privacy-note svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #52d1c8;
  stroke-width: 1.7;
}

.privacy-detail {
  color: #8eaaab;
}

.privacy-detail::before {
  content: "·";
  margin-right: 8px;
}

.load-stage {
  min-height: calc(100vh - 122px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 0.82fr);
  gap: clamp(36px, 7vw, 110px);
  align-items: center;
  padding: clamp(42px, 7vw, 110px);
  overflow: hidden;
  border-radius: 20px;
  background:
    linear-gradient(rgba(18, 69, 72, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 69, 72, 0.045) 1px, transparent 1px),
    var(--paper);
  background-size: 48px 48px;
  box-shadow: var(--shadow);
}

.load-copy {
  max-width: 610px;
}

.load-copy h1 {
  max-width: 10ch;
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: clamp(3.25rem, 6vw, 6rem);
  line-height: 0.96;
  letter-spacing: -0.025em;
}

.load-copy > p {
  max-width: 560px;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}

.route-steps {
  display: grid;
  gap: 13px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
}

.route-steps li {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.route-steps li::before {
  content: "";
  width: 22px;
  height: 2px;
  flex: 0 0 auto;
  background: var(--line-strong);
}

.route-steps span {
  min-width: 56px;
  color: var(--ink);
  font-weight: 800;
}

.upload-station {
  position: relative;
  border: 1px solid #294b4e;
  border-radius: 16px;
  padding: 10px;
  background: var(--shell);
  box-shadow: 0 24px 48px rgba(11, 40, 43, 0.24);
}

.upload-station::before {
  position: absolute;
  inset: 14px auto 14px -8px;
  width: 8px;
  border-radius: 4px 0 0 4px;
  background: var(--signal);
  content: "";
}

.station-topline {
  display: flex;
  justify-content: space-between;
  padding: 8px 10px 16px;
  color: #b8cdcd;
  font-family: var(--font-data);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

#intake-status {
  color: #52d1c8;
}

.drop-zone {
  min-height: 390px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 42px;
  color: #eef8f6;
  text-align: center;
  cursor: pointer;
  border: 1px dashed #699093;
  border-radius: 11px;
  background:
    radial-gradient(circle at 50% 10%, rgba(82, 209, 200, 0.09), transparent 45%),
    var(--shell-deep);
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.drop-zone:hover,
.drop-zone.dragging {
  border-color: #52d1c8;
  background-color: #102d31;
  transform: translateY(-2px);
}

.drop-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.upload-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  color: #52d1c8;
  border: 1px solid #41686a;
  border-radius: 14px;
  background: #15353a;
}

.upload-icon svg {
  width: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.drop-zone strong {
  font-size: 1.15rem;
}

.drop-zone > span:not(.upload-icon, .choose-file) {
  margin-top: 5px;
  color: #96b1b2;
}

.choose-file {
  min-width: 176px;
  margin-top: 24px;
  padding: 12px 20px;
  color: var(--shell-deep);
  font-weight: 800;
  border-radius: 10px;
  background: #52d1c8;
}

.format-note {
  margin: 12px 8px 2px;
  color: #89a6a7;
  font-size: 0.78rem;
}

.editor-layout {
  min-height: calc(100vh - 122px);
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  overflow: hidden;
  border-radius: 20px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.editor-rail {
  display: flex;
  flex-direction: column;
  padding: 26px 18px 20px;
  color: #e8f2f1;
  background: var(--shell-deep);
}

.file-stamp {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 8px 24px;
  border-bottom: 1px solid #274449;
}

.file-stamp-icon {
  width: 38px;
  height: 38px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: #52d1c8;
  border-radius: 10px;
  background: #15353a;
}

.file-stamp svg,
.view-tab svg,
.primary-button svg,
.search-box svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.file-stamp > div {
  min-width: 0;
}

.file-stamp strong,
.file-stamp span {
  display: block;
}

.file-stamp strong {
  overflow: hidden;
  font-size: 0.88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-stamp span {
  margin-top: 2px;
  color: #87a4a5;
  font-size: 0.75rem;
}

.view-tabs {
  display: grid;
  gap: 6px;
  margin-top: 24px;
}

.view-tab {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  color: #9bb5b6;
  text-align: left;
  cursor: pointer;
  border: 0;
  border-radius: 10px;
  background: transparent;
}

.view-tab:hover {
  color: #f5fbfa;
  background: #102d31;
}

.view-tab.active {
  color: #f8fffe;
  background: #174045;
}

.view-tab.active svg {
  color: #52d1c8;
}

.rail-actions {
  display: grid;
  gap: 4px;
  margin-top: auto;
}

.text-button {
  padding: 10px 8px;
  color: #a9c0c0;
  text-align: left;
  cursor: pointer;
  border: 0;
  background: none;
}

.text-button:hover {
  color: #eff9f7;
}

.text-button.danger:hover {
  color: #ffafaf;
}

.workspace {
  min-width: 0;
  background:
    linear-gradient(120deg, transparent 0 73%, rgba(0, 127, 120, 0.035) 73% 74%, transparent 74%),
    var(--paper);
}

.workspace-bar {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px clamp(24px, 4vw, 52px);
  border-bottom: 1px solid var(--line);
  background: rgba(246, 249, 247, 0.94);
}

.save-status {
  padding: 4px 8px;
  color: var(--action-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  background: var(--action-wash);
}

.save-status.edited {
  color: #865c00;
  background: #fae9bf;
}

.workspace h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2vw, 1.85rem);
  letter-spacing: -0.01em;
}

.workspace-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.primary-button,
.secondary-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 18px;
  font-weight: 800;
  cursor: pointer;
  border-radius: 11px;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    transform 160ms cubic-bezier(0.16, 1, 0.3, 1);
}

.primary-button {
  color: #ffffff;
  border: 1px solid var(--action);
  background: var(--action);
}

.primary-button:hover {
  border-color: var(--action-dark);
  background: var(--action-dark);
  transform: translateY(-1px);
}

.primary-button:disabled {
  color: #8ba09f;
  cursor: not-allowed;
  border-color: #d4dfdd;
  background: #e4ebe9;
  transform: none;
}

.secondary-button {
  color: var(--ink);
  border: 1px solid var(--line-strong);
  background: var(--white);
}

.secondary-button:hover {
  background: var(--paper-blue);
}

.primary-button.compact {
  min-height: 42px;
}

.editor-view {
  padding: clamp(24px, 4vw, 52px);
}

.summary-strip {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) repeat(4, minmax(100px, 0.7fr));
  margin-bottom: 28px;
  overflow: hidden;
  border: 1px solid #b9cac8;
  border-radius: var(--radius);
  background: var(--paper-blue);
}

.summary-strip::after {
  position: absolute;
  right: -42px;
  top: -68px;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(0, 100, 95, 0.16);
  border-radius: 50%;
  content: "";
}

.summary-item {
  min-width: 0;
  padding: 18px 20px;
  border-right: 1px solid #b9cac8;
}

.summary-item:last-child {
  border-right: 0;
}

.summary-item span,
.summary-item strong {
  display: block;
}

.summary-item span {
  color: var(--ink-soft);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.summary-item strong {
  margin-top: 4px;
  overflow: hidden;
  font-size: 1.12rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-item:first-child strong {
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(480px, 1.45fr);
  gap: 28px;
  align-items: start;
}

.record-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  background: #fbfdfc;
}

.panel-heading h3,
.view-intro h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0;
}

.panel-mark {
  width: 38px;
  height: 12px;
  background:
    linear-gradient(90deg, var(--action) 0 30%, transparent 30% 37%, var(--action) 37% 67%, transparent 67% 74%, var(--action) 74%);
  opacity: 0.7;
}

.count-badge {
  min-width: 38px;
  padding: 5px 9px;
  color: var(--action-dark);
  font-family: var(--font-data);
  font-size: 0.78rem;
  text-align: center;
  border-radius: 999px;
  background: var(--action-wash);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 22px;
}

.field {
  display: grid;
  gap: 7px;
}

.field.wide {
  grid-column: 1 / -1;
}

.field span {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 800;
}

.field input,
.field select,
.primitive-input,
.search-box input {
  width: 100%;
  min-height: 44px;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fbfdfc;
}

.field input,
.field select,
.primitive-input {
  padding: 9px 11px;
}

.field input:hover,
.field select:hover,
.primitive-input:hover {
  border-color: var(--action);
}

.team-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.team-member {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 19px 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.team-member:nth-child(even) {
  border-right: 0;
}

.team-member:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.slot-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--action-dark);
  font-family: var(--font-data);
  font-weight: 800;
  border-radius: 12px;
  background: var(--action-wash);
}

.member-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.member-top strong {
  overflow: hidden;
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.favorite-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 0.74rem;
  cursor: pointer;
}

.favorite-toggle input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--action);
}

.member-fields {
  display: grid;
  grid-template-columns: 0.55fr 1fr;
  gap: 10px;
  margin-top: 11px;
}

.member-fields label {
  display: grid;
  gap: 4px;
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 800;
}

.member-fields input {
  width: 100%;
  min-width: 0;
  padding: 7px 8px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.view-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 22px;
}

.view-intro p {
  max-width: 580px;
  margin: 5px 0 0;
  color: var(--ink-soft);
}

.search-box {
  width: min(100%, 320px);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  color: var(--ink-soft);
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--white);
}

.search-box input {
  min-height: 44px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
}

.data-tree,
.search-results {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.search-results {
  margin-bottom: 18px;
}

.tree-branch {
  border-bottom: 1px solid var(--line);
}

.tree-branch:last-child {
  border-bottom: 0;
}

.tree-branch summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  cursor: pointer;
  list-style: none;
  background: #fbfdfc;
}

.tree-branch summary::-webkit-details-marker {
  display: none;
}

.tree-branch summary::before {
  width: 18px;
  color: var(--action);
  font-family: var(--font-data);
  content: \"+\";
}

.tree-branch[open] > summary::before {
  content: \"−\";
}

.tree-key {
  color: var(--ink);
  font-family: var(--font-data);
  font-size: 0.83rem;
  font-weight: 800;
}

.tree-type {
  margin-left: auto;
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.tree-children {
  padding-left: 18px;
  border-top: 1px solid var(--line);
  border-left: 2px solid var(--paper-blue);
}

.primitive-row,
.search-result-row {
  display: grid;
  grid-template-columns: minmax(130px, 0.65fr) minmax(180px, 1fr);
  gap: 16px;
  align-items: center;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
}

.primitive-row:last-child,
.search-result-row:last-child {
  border-bottom: 0;
}

.primitive-key,
.result-path {
  overflow-wrap: anywhere;
  color: var(--ink-soft);
  font-family: var(--font-data);
  font-size: 0.78rem;
}

.boolean-control {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
}

.boolean-control input {
  width: 18px;
  height: 18px;
  accent-color: var(--action);
}

.empty-search {
  padding: 28px;
  color: var(--ink-soft);
  text-align: center;
}

.raw-intro {
  align-items: center;
}

.raw-editor-label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 800;
}

.raw-editor {
  width: 100%;
  min-height: clamp(420px, 61vh, 720px);
  resize: vertical;
  padding: 20px;
  color: #d8eeeb;
  caret-color: #52d1c8;
  font-family: var(--font-data);
  font-size: 0.86rem;
  line-height: 1.65;
  tab-size: 2;
  border: 1px solid #36575a;
  border-radius: var(--radius);
  background: var(--shell-deep);
}

.raw-editor.invalid {
  border-color: #e47777;
}

.raw-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 12px;
}

#raw-status {
  color: var(--ink-soft);
  font-size: 0.82rem;
}

#raw-status.error {
  color: var(--danger);
}

.toast {
  position: fixed;
  z-index: 10;
  right: 24px;
  bottom: 24px;
  max-width: min(420px, calc(100vw - 48px));
  padding: 14px 18px;
  color: #effbf9;
  border-radius: 12px;
  background: var(--shell-deep);
  box-shadow: 0 14px 38px rgba(0, 25, 28, 0.28);
  animation: toast-in 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.error {
  background: #6b2525;
}

.route-sweep {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  pointer-events: none;
  transform-origin: left;
  background: #52d1c8;
  animation: route-sweep 560ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes route-sweep {
  from {
    transform: scaleX(0);
    filter: blur(2px);
  }
  to {
    transform: scaleX(1);
    filter: blur(0);
  }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1050px) {
  .load-stage {
    grid-template-columns: 1fr;
    padding: 58px;
  }

  .upload-station {
    grid-row: 1;
  }

  .load-copy {
    grid-row: 2;
  }

  .load-copy h1 {
    max-width: 12ch;
  }

  .drop-zone {
    min-height: 310px;
  }

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

  .summary-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .summary-item:first-child {
    grid-column: 1 / -1;
    border-bottom: 1px solid #b9cac8;
  }

  .summary-item:nth-child(4) {
    border-right: 0;
  }
}

@media (max-width: 780px) {
  .app-shell {
    width: min(100% - 20px, 1480px);
    padding-top: 10px;
  }

  .masthead {
    min-height: 60px;
  }

  .privacy-detail {
    display: none;
  }

  .load-stage {
    min-height: calc(100vh - 90px);
    gap: 36px;
    padding: 34px 22px 22px;
    border-radius: 16px;
  }

  .load-copy h1 {
    font-size: clamp(3rem, 15vw, 4.5rem);
  }

  .route-steps {
    margin-top: 26px;
  }

  .drop-zone {
    min-height: 290px;
    padding: 28px 18px;
  }

  .editor-layout {
    display: block;
    min-height: calc(100vh - 90px);
    border-radius: 16px;
  }

  .editor-rail {
    display: block;
    padding: 14px;
  }

  .file-stamp {
    padding: 4px 4px 14px;
  }

  .view-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 12px;
  }

  .view-tab {
    justify-content: center;
    padding: 11px 6px;
  }

  .view-tab span {
    display: none;
  }

  .rail-actions {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #274449;
  }

  .rail-actions .text-button {
    min-height: 44px;
    padding: 9px 8px;
    text-align: center;
    border-radius: 9px;
    background: #102d31;
  }

  .workspace-bar {
    align-items: stretch;
    flex-direction: column;
    padding: 20px;
  }

  .workspace-bar .primary-button {
    width: 100%;
  }

  .editor-view {
    padding: 20px;
  }

  .summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary-item:first-child {
    grid-column: 1 / -1;
  }

  .summary-item:nth-child(3),
  .summary-item:last-child {
    border-right: 0;
  }

  .summary-item:nth-child(4) {
    border-right: 1px solid #b9cac8;
  }

  .team-list {
    grid-template-columns: 1fr;
  }

  .team-member,
  .team-member:nth-child(even),
  .team-member:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .team-member:last-child {
    border-bottom: 0;
  }

  .view-intro,
  .raw-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .search-box {
    width: 100%;
  }

  .primitive-row,
  .search-result-row {
    grid-template-columns: 1fr;
    gap: 7px;
  }
}

@media (max-width: 480px) {
  .brand small {
    display: none;
  }

  .privacy-note span {
    display: none;
  }

  .load-stage {
    padding-top: 30px;
  }

  .load-copy > p {
    font-size: 1rem;
  }

  .field-grid,
  .member-fields {
    grid-template-columns: 1fr;
  }

  .field.wide {
    grid-column: auto;
  }

  .summary-strip {
    grid-template-columns: 1fr 1fr;
  }

  .summary-item {
    padding: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
