:root {
  color-scheme: light;
  --background: #f7f6fa;
  --surface: #fff;
  --ink: #232131;
  --muted: #5b5568;
  --border: #e1dce8;
  --focus: #7845ba;
  --primary: #422b64;
  --primary-hover: #34204f;
  --orange: #f15b40;
  --violet: #7845ba;
  --error: #a21d27;
  --success: #245944;
  font-family: Aptos, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 100%;
  line-height: 1.5;
  color: var(--ink);
  background: var(--background);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.header-content {
  width: min(100% - 3.5rem, 81rem);
  min-height: 4.75rem;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 1rem; flex: 0 0 auto; }
.brand img { display: block; width: 8.125rem; height: auto; }
.brand span { border-left: 1px solid var(--border); padding-left: 1rem; font-weight: 720; }
.account-bar { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem .75rem; justify-content: flex-end; }
#account-name { font-size: .9rem; color: var(--muted); }
.account-link { color: var(--primary); font-size: .88rem; text-underline-offset: .2em; }

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: 0 4px 20px #2b174a08;
}
.login-card { width: min(100% - 2.5rem, 34rem); margin: clamp(2.5rem, 9vw, 7rem) auto; padding: clamp(1.4rem, 5vw, 2.75rem); }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.8rem, 4vw, 2.45rem); font-weight: 760; letter-spacing: -.04em; line-height: 1.15; }
h2 { font-size: 1.22rem; font-weight: 740; letter-spacing: -.02em; line-height: 1.25; }
h3 { font-size: 1rem; font-weight: 720; line-height: 1.3; }
.profiles { margin-top: 1.5rem; display: grid; gap: .65rem; }
.profile {
  display: flex;
  align-items: center;
  gap: .85rem;
  width: 100%;
  min-height: 3.6rem;
  padding: .55rem .8rem;
  border: 1px solid var(--border);
  border-radius: .6rem;
  font-weight: 680;
  color: var(--ink);
  background: var(--surface);
  text-align: left;
}
.profile:hover:not(:disabled), .profile[aria-pressed="true"] { background: #f4eef9; border-color: #a985c7; }
.profile:disabled { opacity: .65; }
.initials { display: grid; place-items: center; height: 2.35rem; width: 2.35rem; border-radius: 50%; background: #f8ebff; color: #55247f; font-size: .85rem; flex: none; }
.profile[data-profile="ivan"] .initials { background: #feeee7; color: #923522; }
#login-form { margin-top: 1.45rem; display: grid; gap: .55rem; }
#login-form .button { margin-top: .45rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: .52rem 1rem;
  border: 1px solid transparent;
  border-radius: .52rem;
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}
.button-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.button-primary:hover:not(:disabled) { background: var(--primary-hover); border-color: var(--primary-hover); }
.button-outline { color: var(--primary); background: #f6f0fb; border-color: #dac9ea; }
.button-outline:hover:not(:disabled) { background: #ece1f5; }
.button-quiet { background: #fff; border-color: var(--border); color: var(--ink); }
.button-quiet:hover:not(:disabled) { background: var(--background); }
.button:disabled { color: #615b6e; background: #f2f0f5; border-color: var(--border); }
.field-label { display: block; font-size: .88rem; font-weight: 660; }
input:not([type="file"]) {
  width: 100%;
  min-width: 0;
  min-height: 2.8rem;
  padding: .45rem .65rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cfc7da;
  border-radius: .52rem;
}
.supporting-text { margin-top: .45rem; color: var(--muted); font-size: .9rem; }
.feedback { margin-top: .8rem; color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.feedback[data-kind="error"] { color: var(--error); }
.feedback[data-kind="success"] { color: var(--success); }
.session-feedback { width: min(100% - 3.5rem, 81rem); margin: 1rem auto 0; }

.portal { width: min(100% - 3.5rem, 56rem); margin: clamp(2.5rem, 8vw, 6.25rem) auto 3rem; }
.portal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.05rem; margin-top: 1.35rem; }
.portal-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 11rem;
  padding: clamp(1.1rem, 3vw, 1.8rem);
  border: 1px solid var(--border);
  border-top: 4px solid var(--card-accent);
  border-radius: .85rem;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 4px 20px #2b174a08;
  font: inherit;
  text-align: left;
  text-decoration: none;
}
.portal-card:hover, .portal-card:focus-visible { background: var(--card-tint); }
.portal-card-recap { --card-accent: var(--orange); --card-tint: #fff6f2; }
.portal-card-dashboard { --card-accent: var(--violet); --card-tint: #f7f0fd; }
.portal-card-logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: clamp(3.5rem, 7vw, 4.5rem);
  margin-bottom: 1rem;
  object-fit: contain;
  object-position: left center;
}
.portal-card-title { margin-bottom: .2rem; font-size: clamp(1.16rem, 2.6vw, 1.38rem); line-height: 1.25; font-weight: 740; }
.portal-card-description { color: var(--muted); }

.workspace { width: min(100% - 3.5rem, 81rem); margin: 2.3rem auto 4rem; }
.workspace-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .9rem; }
.benchmark { max-width: 61rem; }
.benchmark-back { text-decoration: none; }
.benchmark-pairs { display: grid; gap: .85rem; margin-top: 1.35rem; }
.benchmark-pair { min-width: 0; margin: 0; padding: .4rem 1rem 1rem; }
.benchmark-pair legend { padding: 0 .25rem; font-weight: 720; }
.benchmark-files { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.benchmark-controls { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; margin-top: 1.05rem; }
.benchmark-time, .benchmark-average { display: inline-block; color: var(--primary); font-weight: 710; font-variant-numeric: tabular-nums; }
.benchmark-time { margin-top: .6rem; }
.benchmark-average { padding: .48rem .82rem; border: 1px solid #dac9ea; border-radius: .52rem; background: #f6f0fb; }
.workspace-grid { display: grid; grid-template-columns: minmax(16.5rem, .95fr) minmax(0, 2fr); gap: 1.2rem; align-items: start; margin-top: 1.4rem; }
.input-panel, .output-panel { min-width: 0; padding: clamp(1rem, 2vw, 1.4rem); }
#synthesis-form { display: grid; gap: 1rem; margin-top: 1.35rem; }
.file-group { min-width: 0; }
.file-zone { position: relative; display: flex; gap: .25rem; align-items: flex-start; margin-top: .45rem; border: 1px dashed var(--file-border); border-radius: .55rem; background: var(--file-bg); min-width: 0; }
.conditioning { --file-border: #d79a89; --file-bg: #fff6f2; --file-ink: #9c3422; }
.sachets { --file-border: #b598d3; --file-bg: #f9f4ff; --file-ink: #603292; }
.file-zone:hover, .file-zone.is-dragging { border-color: var(--file-ink); }
.file-zone.is-dragging, .file-zone:has(input:focus-visible) { outline: 2px solid var(--file-ink); outline-offset: 2px; }
.file-zone:has(input:disabled) { opacity: .65; }
.file-zone:has(input:disabled) .file-picker { cursor: default; }
.file-picker { flex: 1; min-width: 0; padding: .75rem; cursor: pointer; }
.file-picker span { display: block; }
.picker-action { color: var(--file-ink); font-size: .9rem; font-weight: 700; }
.file-name { color: var(--muted); font-size: .88rem; overflow-wrap: anywhere; }
.file-zone.has-file .file-name { color: var(--ink); }
.remove-file { min-height: 2rem; border: 0; border-radius: .25rem; padding: .15rem .4rem; margin: .58rem .4rem .35rem 0; background: transparent; color: var(--file-ink); font-size: .85rem; text-decoration: underline; }

#input-feedback { margin-top: 0; }

.output-header { display: flex; align-items: center; justify-content: space-between; gap: .7rem; }
.output-header .button { flex: 0 0 auto; }
.output-empty { display: grid; place-items: center; min-height: clamp(11rem, 30vw, 18rem); margin-top: 1rem; padding: 1.1rem; border: 1px dashed var(--border); border-radius: .6rem; background: #faf9fc; color: var(--muted); text-align: center; }
.subject-line { display: flex; align-items: baseline; gap: .75rem; margin: 1rem 0 .5rem; padding: .65rem .8rem; background: #f6f3fa; border-radius: .45rem; font-size: .9rem;  overflow-wrap: anywhere; }
.subject-line span { font-weight: 700; color: var(--primary); }
.subject-line p { min-width: 0; }
.mail-scroll { max-width: 100%; overflow: auto; border: 1px solid var(--border); border-radius: .55rem; }
.mail-body { margin: 0 auto; max-width: 48rem; min-width: 0; background: #fff; padding: clamp(.4rem, 1.4vw, .8rem); }
.mail-body img, .mail-body table { max-width: 100%; }
.mail-body img { height: auto; }
.warnings { padding: .65rem .85rem .65rem 1.85rem; border: 1px solid #efc8a4; border-radius: .45rem; background: #fff9f1; color: #7a3f0e; font-size: .9rem; overflow-wrap: anywhere; }

.synthesis-transition {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  border: 0;
  margin: 0;
  padding: 0;
  color: var(--ink);
  background: radial-gradient(ellipse at top, #eee5f8 0%, var(--background) 62%);
}
.synthesis-transition::backdrop { background: var(--background); }
.transition-shell { width: min(100% - 2rem, 45rem); margin: 0 auto; padding: clamp(1.4rem, 7vh, 4.5rem) 0 1.75rem; }
.transition-logo { display: block; max-width: 100%; height: auto; width: 8.125rem; margin: 0 0 1.45rem; }
.transition-overview {
  position: relative;
  overflow: hidden;
  padding: clamp(1.1rem, 4vw, 1.85rem);
  border: 1px solid #4d3470;
  border-radius: 1rem;
  color: #fff;
  background: linear-gradient(120deg, #302044 5%, #563578 98%);
  box-shadow: 0 12px 26px #31204424;
}
.transition-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .4rem 1.1rem; margin-bottom: .9rem; }
.transition-title-group { display: flex; align-items: center; gap: .75rem; }
.transition-spinner {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  border: 3px solid #ffffff44;
  border-top-color: #ffbea9;
  border-right-color: #e7b7ff;
  border-radius: 50%;
  animation: transition-spin .85s linear infinite;
}
.synthesis-transition[data-complete="true"] .transition-spinner { visibility: hidden; animation: none; }
#transition-title { font-size: clamp(1.5rem, 4vw, 2.3rem); line-height: 1.14; }
#transition-title:focus { outline: none; }
.transition-percent { display: flex; align-items: baseline; gap: .24rem; color: #ffe9f7; font-size: clamp(2.3rem, 7vw, 3.7rem); font-weight: 760; font-variant-numeric: tabular-nums; letter-spacing: -.055em; line-height: 1; }
.transition-percent-unit { font-size: .55em; letter-spacing: 0; }
#transition-meter { display: block; width: 100%; height: .65rem; appearance: none; border: 0; border-radius: 2rem; overflow: hidden; background: #fff3; }
#transition-meter::-webkit-progress-bar { background: #fff3; border-radius: 2rem; }
#transition-meter::-webkit-progress-value { border-radius: 2rem; background: linear-gradient(90deg, #fa8a71, #d4a2ff); transition: width .42s ease; }
#transition-meter::-moz-progress-bar { border-radius: 2rem; background: linear-gradient(90deg, #fa8a71, #d4a2ff); }

.transition-scene {
  position: relative;
  height: clamp(5.5rem, 15vw, 8.25rem);
  margin-top: .9rem;
  overflow: hidden;
  border: 1px solid #e8c9ff39;
  border-radius: .7rem;
  background-color: #2e1c44;
  background-image: radial-gradient(ellipse at center, #b474e435 0%, transparent 67%),
    radial-gradient(circle, #d5b2f330 1px, transparent 1px);
  background-size: 100% 100%, 1rem 1rem;
}
.scene-action { position: absolute; inset: 0; display: none; place-items: center; }
.synthesis-transition[data-stage="upload"] .scene-transfer,
.synthesis-transition[data-stage="reading"] .scene-reading,
.synthesis-transition[data-stage="summarizing"] .scene-summarizing,
.synthesis-transition[data-stage="formatting"] .scene-formatting,
.synthesis-transition[data-stage="complete"] .scene-complete { display: grid; }

.scene-transfer { --edge: clamp(.68rem, 4vw, 2.2rem); }
.scene-endpoint {
  position: absolute;
  width: 2.15rem;
  height: 2.7rem;
  display: grid;
  place-items: center;
  border: 1px solid #e3b8fb8a;
  border-radius: .45rem;
  background: #533671;
  box-shadow: 0 .2rem .75rem #22152bb5;
}
.scene-endpoint::before {
  content: "";
  width: 1.16rem;
  height: .3rem;
  margin-top: -.5rem;
  border-radius: .12rem;
  background: #e8bdff;
  box-shadow: 0 .5rem 0 #b888d7;
}
.scene-endpoint-source { left: var(--edge); }
.scene-endpoint-target { right: var(--edge); }
.scene-transfer-track { position: absolute; inset: 0 calc(var(--edge) + 2.4rem); }
.scene-transfer-track::before, .scene-transfer-track::after {
  content: "";
  position: absolute;
  inset: 35% 0 auto;
  border-top: 1px dashed #ffb59e8a;
}
.scene-transfer-track::after { top: 65%; border-color: #dfb1ff8a; }
.scene-courier {
  position: absolute;
  top: var(--lane);
  left: 0;
  width: 100%;
  height: 0;
  transform: translateX(var(--rest));
  animation: scene-send 3.2s linear infinite;
}
.scene-courier-orange { --lane: 35%; --rest: 29%; --envelope: #ffc0a8; --fold: #813b38; animation-delay: -.8s; }
.scene-courier-violet { --lane: 65%; --rest: 70%; --envelope: #e4baff; --fold: #624080; animation-delay: -1.85s; }
.scene-envelope {
  position: absolute;
  top: -.55rem;
  left: -.78rem;
  width: 1.56rem;
  height: 1.1rem;
  overflow: hidden;
  border-radius: .2rem;
  background: var(--envelope);
  box-shadow: 0 0 .75rem #dfafff68;
}
.scene-envelope::after {
  content: "";
  position: absolute;
  top: -.5rem;
  left: .28rem;
  width: 1rem;
  height: 1rem;
  border: solid var(--fold);
  border-width: 0 1px 1px 0;
  transform: rotate(45deg);
}

.scene-paper {
  position: relative;
  width: 3.9rem;
  height: 4.3rem;
  overflow: hidden;
  border-radius: .32rem;
  background: #f8ecff;
  box-shadow: 0 .25rem 1rem #21132f9c;
}
.scene-reading::before {
  content: "";
  position: absolute;
  width: 3.9rem;
  height: 4.3rem;
  border: 1px solid #efa58f;
  border-radius: .32rem;
  background: #965e78;
  transform: translate(.7rem, .08rem) rotate(11deg);
}
.scene-reading .scene-paper::before {
  content: "";
  position: absolute;
  inset: .85rem .6rem .55rem;
  background: linear-gradient(#8e55af 0 0) 0 0 / 68% 3px no-repeat,
    repeating-linear-gradient(#bb9bd0 0 2px, transparent 2px .56rem) 0 .6rem / 100% 2.1rem no-repeat;
}
.scene-scan {
  position: absolute;
  inset: 0 0 auto;
  height: 1rem;
  border-bottom: 2px solid #9d4de2;
  background: linear-gradient(transparent, #c687ff87);
  transform: translateY(1.45rem);
  animation: scene-scan 2.15s ease-in-out infinite alternate;
}

.scene-summarizing { --particle-distance: clamp(3.75rem, 18vw, 9.5rem); }
.scene-summarizing::before, .scene-summarizing::after {
  content: "";
  position: absolute;
  width: min(72%, 22rem);
  height: 46%;
  border: 1px solid #f1a89e54;
  border-radius: 50%;
  transform: rotate(8deg);
}
.scene-summarizing::after { border-color: #d5a2ff64; transform: rotate(-8deg); }
.scene-orb {
  position: relative;
  z-index: 1;
  width: 3.05rem;
  height: 3.05rem;
  display: grid;
  place-items: center;
  border: 1px solid #e4baff;
  border-radius: 50%;
  background: radial-gradient(circle at 37% 32%, #d495ff, #945dc2 48%, #512b75 90%);
  box-shadow: 0 0 1.25rem #cc95ff9c;
  animation: scene-orb 1.65s ease-in-out infinite alternate;
}
.scene-orb::after {
  content: "";
  width: 1.65rem;
  height: 1.65rem;
  background: #fff4e8;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.scene-particle {
  position: absolute;
  z-index: 2;
  width: .42rem;
  height: .42rem;
  border-radius: 50%;
  background: var(--particle-color);
  box-shadow: 0 0 .56rem var(--particle-color);
  transform: translate(var(--x), var(--y));
  animation: scene-converge 1.8s ease-in infinite;
}
.scene-particle-left { --particle-color: #ffaa92; --x: calc(-1 * var(--particle-distance)); --y: -.98rem; animation-delay: -.4s; }
.scene-particle-left-low { --particle-color: #ffcbb8; --x: calc(-.8 * var(--particle-distance)); --y: .9rem; animation-delay: -.88s; }
.scene-particle-right { --particle-color: #daa3ff; --x: var(--particle-distance); --y: 1.16rem; animation-delay: -.19s; }
.scene-particle-right-high { --particle-color: #efceff; --x: calc(.8 * var(--particle-distance)); --y: -1rem; animation-delay: -1s; }

.scene-format-paper {
  width: min(54%, 9.2rem);
  padding: .62rem;
  display: grid;
  gap: .26rem;
  grid-template-rows: .3rem 1fr 1fr .23rem;
}
.scene-format-paper span {
  border-radius: .14rem;
  background: #b083c8;
  transform-origin: left center;
  animation: scene-compose .16s ease-out both;
}
.scene-format-paper span:first-child { width: 54%; background: #76538b; }
.scene-format-paper span:nth-child(2) { background: linear-gradient(90deg, #e78167 26%, #f6c5b3 26%); animation-delay: .025s; }
.scene-format-paper span:nth-child(3) { background: linear-gradient(90deg, #a16cb5 26%, #e3c4ed 26%); animation-delay: .05s; }
.scene-format-paper span:last-child { width: 34%; animation-delay: .075s; }

.scene-check {
  display: grid;
  place-items: center;
  width: 3.45rem;
  height: 3.45rem;
  border: 1px solid #d7f9e5;
  border-radius: 50%;
  background: #d0f0df;
  box-shadow: 0 0 0 .48rem #a9e8cb24, 0 0 1.7rem #a9e8cb65;
}
.scene-check::after {
  content: "";
  width: .8rem;
  height: 1.48rem;
  margin-top: -.23rem;
  border: solid #1e614b;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

@keyframes scene-send {
  0% { transform: translateX(0); opacity: 0; }
  11%, 88% { opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}
@keyframes scene-scan {
  from { transform: translateY(.07rem); }
  to { transform: translateY(3.17rem); }
}
@keyframes scene-converge {
  0% { transform: translate(var(--x), var(--y)); opacity: 0; }
  18%, 78% { opacity: 1; }
  100% { transform: translate(0, 0) scale(.38); opacity: 0; }
}
@keyframes scene-orb {
  from { transform: scale(.94); }
  to { transform: scale(1.08); }
}
@keyframes scene-compose {
  from { transform: translateY(.25rem) scaleX(.37); opacity: .15; }
  to { transform: translateY(0) scaleX(1); opacity: 1; }
}

.transition-stages { margin: 1.05rem 0 0; padding: 0; display: grid; gap: .45rem; list-style: none; }
.transition-stage {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: .9rem;
  padding: .8rem .9rem;
  border: 1px solid var(--border);
  border-radius: .65rem;
  background: #ffffffad;
  transition: background-color .32s ease, border-color .32s ease;
}
.transition-stage[aria-current="step"] { background: #fff; border-color: #aa7cd5; box-shadow: 0 5px 14px #43256313; }
.transition-stage h3 { margin-bottom: .2rem; }
.transition-stage p { color: var(--muted); font-size: .88rem; }
.transition-stage-state { padding: .08rem 0 0; color: var(--muted); font-size: .82rem; font-weight: 670; }
.transition-stage[aria-current="step"] .transition-stage-state { color: #593282; }
.transition-stage[data-state="complete"] .transition-stage-state { color: var(--success); }
.transition-marker {
  position: relative;
  display: block;
  width: 1rem;
  height: 1rem;
  margin-top: .16rem;
  border: 1px solid #c3b8ce;
  border-radius: 50%;
  background: #f0ecf5;
}
.transition-stage[aria-current="step"] .transition-marker {
  background: var(--violet);
  border-color: var(--violet);
  animation: transition-pulse 1.8s ease-out infinite;
}
.transition-stage[data-state="complete"] .transition-marker { background: #e5f3eb; border-color: #adcdbb; }
.transition-stage[data-state="complete"] .transition-marker::after {
  content: "";
  position: absolute;
  left: .31rem;
  top: .14rem;
  width: .24rem;
  height: .42rem;
  border: solid var(--success);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.transition-actions { display: flex; justify-content: flex-end; margin-top: 1rem; }

@keyframes transition-spin {
  to { transform: rotate(360deg); }
}

@keyframes transition-pulse {
  0% { box-shadow: 0 0 0 0 #7845ba5c; }
  70%, 100% { box-shadow: 0 0 0 .4rem #7845ba00; }
}

@media (prefers-reduced-motion: reduce) {
  #transition-meter::-webkit-progress-value { transition: none; }
  .transition-stage { transition: none; }
  .transition-spinner, .transition-stage[aria-current="step"] .transition-marker { animation: none; }
  .scene-courier, .scene-scan, .scene-particle, .scene-orb, .scene-format-paper span { animation: none; }
}

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
noscript p { margin: 1rem 1.25rem; }

@media (max-width: 52rem) {
  .workspace-grid { grid-template-columns: 1fr; }
  .workspace { max-width: 47rem; }
  .file-picker { padding: .8rem; }
}

@media (max-width: 35rem) {
  .header-content, .workspace, .portal, .session-feedback { width: calc(100% - 2rem); }
  .header-content { min-height: 3.85rem; flex-wrap: wrap; padding: .65rem 0; gap: .65rem; }
  .brand { gap: .65rem; }
  .brand span { padding-left: .65rem; }
  .brand img { width: 6.8rem; }
  .account-bar { justify-content: space-between; width: 100%; }
  .portal-grid { grid-template-columns: 1fr; gap: .8rem; }
  .portal-card { min-height: 0; }
  .benchmark-files { grid-template-columns: 1fr; gap: .25rem; }
  .workspace { margin-top: 1.75rem; }
  .output-header { flex-wrap: wrap; }
  .output-header .button { max-width: 100%; }
  .transition-stage { column-gap: .6rem; padding: .68rem .72rem; }
  .transition-stage-state { font-size: .78rem; }
}
