:root {
  --ink-950: #10241d;
  --ink-900: #173129;
  --ink-800: #29483d;
  --ink-700: #456258;
  --ink-600: #637b72;
  --ink-500: #82958e;
  --ink-400: #a5b4ae;
  --paper: #ffffff;
  --paper-soft: #fbfdfc;
  --canvas: #eef6f2;
  --line: #dce8e2;
  --line-strong: #c8dbd1;
  --mint-50: #f0fbf5;
  --mint-100: #e0f7e9;
  --mint-200: #c5efd5;
  --mint-300: #8be2b8;
  --mint-400: #5bd69d;
  --mint-500: #2db97c;
  --mint-600: #178e5e;
  --mint-700: #126e4a;
  --red-50: #fff3f1;
  --red-100: #ffe3df;
  --red-500: #d95e55;
  --amber-50: #fff8e7;
  --amber-500: #d5972d;
  --blue-50: #f0f6ff;
  --blue-500: #4c7fd4;
  --shadow-sm: 0 1px 2px rgba(16, 36, 29, .04), 0 10px 28px rgba(16, 55, 41, .055);
  --shadow-md: 0 2px 4px rgba(16, 36, 29, .04), 0 22px 56px rgba(16, 55, 41, .09);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  color: var(--ink-950);
  background: var(--canvas);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--canvas);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink-950);
  background:
    radial-gradient(circle at 8% 2%, rgba(91, 214, 157, .08), transparent 27rem),
    radial-gradient(circle at 94% 12%, rgba(53, 179, 123, .055), transparent 30rem),
    var(--canvas);
}

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button:disabled,
select:disabled {
  cursor: not-allowed;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible,
[role="button"]:focus-visible {
  outline: 3px solid rgba(45, 185, 124, .28);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: white;
  background: var(--ink-950);
  border-radius: 10px;
  transform: translateY(-180%);
  transition: transform .2s ease;
}

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

.eyebrow {
  margin: 0 0 8px;
  color: var(--mint-700);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .145em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow-light {
  color: #7ce5b5;
}

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

.brand-symbol {
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border-radius: 13px;
  box-shadow: 0 7px 18px rgba(15, 49, 38, .13);
}

.brand-symbol img {
  display: block;
  width: 100%;
  height: 100%;
}

.brand-copy {
  display: grid;
  line-height: 1.05;
}

.brand-copy strong {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.025em;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--ink-600);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .03em;
}

.primary-button,
.secondary-button,
.quiet-button,
.text-button,
.file-action {
  border: 0;
}

.primary-button {
  display: inline-flex;
  min-height: 50px;
  padding: 0 20px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: white;
  font-weight: 750;
  text-decoration: none;
  background: var(--ink-950);
  border-radius: 14px;
  box-shadow: 0 9px 24px rgba(16, 36, 29, .18);
  transition: transform .2s var(--ease-out), box-shadow .2s ease, background .2s ease;
}

.primary-button:hover:not(:disabled) {
  background: #17372c;
  box-shadow: 0 13px 30px rgba(16, 36, 29, .22);
  transform: translateY(-1px);
}

.primary-button:disabled {
  color: var(--ink-500);
  background: #e4ece8;
  box-shadow: none;
}

.primary-button svg,
.secondary-button svg,
.quiet-button svg,
.file-action svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.secondary-button {
  display: inline-flex;
  min-height: 43px;
  padding: 0 15px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--ink-800);
  font-size: 13px;
  font-weight: 750;
  background: white;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(16, 36, 29, .04);
  transition: border-color .2s ease, transform .2s var(--ease-out);
}

.secondary-button:hover {
  border-color: var(--mint-400);
  transform: translateY(-1px);
}

.text-button {
  padding: 0;
  color: var(--mint-700);
  font-weight: 750;
  background: transparent;
}

.text-button:hover {
  color: var(--mint-500);
}

.danger-text {
  color: var(--red-500);
}

/* Sign in */

.login-page {
  background: white;
}

.login-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(430px, 1.08fr) minmax(430px, .92fr);
}

.login-story {
  position: relative;
  display: flex;
  min-height: 100vh;
  padding: clamp(38px, 5vw, 74px);
  overflow: hidden;
  flex-direction: column;
  color: white;
  background:
    radial-gradient(circle at 84% 17%, rgba(91, 214, 157, .16), transparent 31%),
    radial-gradient(circle at 5% 95%, rgba(91, 214, 157, .08), transparent 34%),
    linear-gradient(145deg, #0d2921 0%, #133b2f 54%, #0d2c23 100%);
  isolation: isolate;
}

.login-story::before,
.login-story::after {
  position: absolute;
  z-index: -1;
  content: "";
  border: 1px solid rgba(125, 231, 181, .08);
  border-radius: 50%;
}

.login-story::before {
  width: 510px;
  height: 510px;
  top: -270px;
  right: -170px;
  box-shadow: 0 0 0 68px rgba(125, 231, 181, .021), 0 0 0 136px rgba(125, 231, 181, .014);
}

.login-story::after {
  width: 280px;
  height: 280px;
  right: -80px;
  bottom: -130px;
  box-shadow: 0 0 0 50px rgba(125, 231, 181, .02);
}

.brand-on-dark {
  color: white;
  font-size: 20px;
  font-weight: 800;
}

.brand-on-dark .brand-symbol {
  box-shadow: 0 9px 25px rgba(0, 0, 0, .17);
}

.login-story-copy {
  max-width: 690px;
  margin: clamp(68px, 12vh, 126px) 0 auto;
}

.login-story-copy h1 {
  margin: 0;
  font-size: clamp(48px, 6vw, 82px);
  font-weight: 710;
  letter-spacing: -.067em;
  line-height: .98;
}

.login-story-copy > p:last-child {
  max-width: 560px;
  margin: 28px 0 0;
  color: rgba(232, 249, 240, .7);
  font-size: clamp(16px, 1.45vw, 20px);
  line-height: 1.65;
}

.login-path-preview {
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin-top: 48px;
  padding: 13px 16px;
  align-items: center;
  gap: 10px;
  color: rgba(235, 250, 242, .7);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 13px;
  backdrop-filter: blur(10px);
}

.login-path-preview span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.login-path-preview strong {
  margin-left: 9px;
  color: #75e1ad;
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.path-preview-dot,
.status-pulse {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  background: var(--mint-400);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(91, 214, 157, .12);
}

.login-access {
  display: grid;
  min-height: 100vh;
  padding: 42px clamp(32px, 7vw, 104px);
  place-items: center;
  background: white;
}

.login-card {
  width: min(100%, 470px);
}

.mobile-brand {
  display: none;
}

.login-card h2 {
  margin: 0;
  font-size: clamp(34px, 3.1vw, 46px);
  font-weight: 720;
  letter-spacing: -.052em;
  line-height: 1.05;
}

.login-lead {
  margin: 18px 0 31px;
  color: var(--ink-600);
  font-size: 16px;
  line-height: 1.55;
}

.login-form label,
.field-label {
  display: block;
  margin-bottom: 9px;
  color: var(--ink-800);
  font-size: 12px;
  font-weight: 750;
}

.secret-field {
  position: relative;
}

.secret-field svg {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: var(--ink-500);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  transform: translateY(-50%);
}

.secret-field input {
  width: 100%;
  height: 54px;
  padding: 0 17px 0 47px;
  color: var(--ink-950);
  background: var(--paper-soft);
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.secret-field input:focus {
  background: white;
  border-color: var(--mint-500);
  box-shadow: 0 0 0 4px rgba(45, 185, 124, .09);
  outline: none;
}

.form-error {
  margin: 11px 0 0;
  color: var(--red-500);
  font-size: 13px;
  font-weight: 650;
}

.login-button {
  width: 100%;
  margin-top: 15px;
}

.security-note {
  display: flex;
  margin-top: 28px;
  padding-top: 24px;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
}

.security-note > svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--mint-600);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.security-note p {
  display: grid;
  margin: 0;
  gap: 3px;
}

.security-note strong {
  color: var(--ink-800);
  font-size: 12px;
}

.security-note span {
  color: var(--ink-500);
  font-size: 11px;
}

/* Main application */

.app-page {
  min-height: 100vh;
}

.app-header {
  display: grid;
  width: min(100% - 48px, 1320px);
  min-height: 84px;
  margin: 0 auto;
  align-items: center;
  grid-template-columns: 1fr auto 1fr;
  border-bottom: 1px solid rgba(197, 219, 208, .72);
}

.header-status {
  display: flex;
  padding: 9px 13px;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, .68);
  border: 1px solid rgba(200, 219, 209, .78);
  border-radius: 14px;
  box-shadow: 0 4px 15px rgba(16, 55, 41, .035);
  backdrop-filter: blur(12px);
}

.header-status > span:last-child {
  display: grid;
  gap: 2px;
}

.header-status strong {
  color: var(--ink-800);
  font-size: 11px;
  font-weight: 750;
}

.header-status small {
  color: var(--ink-500);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .03em;
}

.logout-form {
  justify-self: end;
}

.quiet-button {
  display: inline-flex;
  min-height: 40px;
  padding: 0 12px;
  align-items: center;
  gap: 7px;
  color: var(--ink-600);
  font-size: 12px;
  font-weight: 700;
  background: transparent;
  border-radius: 10px;
}

.quiet-button:hover {
  color: var(--ink-900);
  background: rgba(255, 255, 255, .7);
}

.app-main {
  width: min(100% - 48px, 1220px);
  margin: 0 auto;
  padding: 68px 0 84px;
}

.hero {
  display: grid;
  margin-bottom: 39px;
  align-items: end;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: 58px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(48px, 6vw, 78px);
  font-weight: 720;
  letter-spacing: -.066em;
  line-height: .95;
}

.hero h1 span {
  color: var(--mint-600);
}

.hero-copy {
  max-width: 480px;
  margin: 0 0 5px;
  color: var(--ink-600);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.65;
}

.workspace {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 20px;
}

.project-card,
.upload-card,
.results-card {
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(208, 225, 216, .92);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}

.project-card {
  padding: 25px;
  border-radius: var(--radius-md);
}

.upload-card {
  padding: 25px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.step-label {
  display: flex;
  margin-bottom: 23px;
  align-items: center;
  gap: 8px;
  color: var(--ink-500);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.step-label span {
  display: inline-grid;
  width: 23px;
  height: 23px;
  place-items: center;
  color: var(--mint-700);
  font-size: 10px;
  background: var(--mint-100);
  border-radius: 8px;
}

.select-shell {
  position: relative;
}

.select-shell > svg:first-child {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 14px;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: var(--mint-600);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  transform: translateY(-50%);
  pointer-events: none;
}

.select-shell select {
  width: 100%;
  height: 51px;
  padding: 0 43px 0 43px;
  overflow: hidden;
  color: var(--ink-900);
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
  appearance: none;
  background: var(--paper-soft);
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.select-shell select:focus {
  border-color: var(--mint-500);
  box-shadow: 0 0 0 4px rgba(45, 185, 124, .08);
  outline: 0;
}

.select-chevron {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--ink-500);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transform: translateY(-50%);
  pointer-events: none;
}

.project-summary {
  display: flex;
  min-height: 77px;
  margin-top: 15px;
  padding: 14px;
  align-items: flex-start;
  gap: 10px;
  background: var(--mint-50);
  border: 1px solid var(--mint-100);
  border-radius: 13px;
}

.summary-icon {
  display: inline-grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--mint-600);
  background: white;
  border-radius: 9px;
}

.summary-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.project-summary p {
  display: grid;
  margin: 0;
  gap: 4px;
}

.project-summary strong {
  color: var(--ink-800);
  font-size: 11px;
}

.project-summary p span {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink-600);
  font-size: 10px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.storage-contract {
  margin-top: 22px;
  padding-top: 19px;
  border-top: 1px solid var(--line);
}

.storage-contract span {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-500);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.storage-contract code {
  display: block;
  overflow: hidden;
  color: var(--ink-600);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  line-height: 1.55;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drop-zone {
  position: relative;
  display: grid;
  min-height: 258px;
  padding: 32px;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0, rgba(91, 214, 157, .1), transparent 58%),
    var(--paper-soft);
  border: 1.5px dashed var(--line-strong);
  border-radius: 20px;
  transition: border-color .2s ease, background .2s ease, transform .25s var(--ease-out), box-shadow .2s ease;
}

.drop-zone:hover,
.drop-zone.is-dragging {
  background: var(--mint-50);
  border-color: var(--mint-500);
  box-shadow: inset 0 0 0 1px rgba(45, 185, 124, .08), 0 12px 30px rgba(36, 123, 84, .07);
}

.drop-zone.is-dragging {
  transform: scale(1.008);
}

.drop-zone.is-disabled {
  opacity: .6;
  pointer-events: none;
}

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

.drop-illustration {
  position: relative;
  width: 92px;
  height: 72px;
  margin: 2px auto 17px;
}

.file-sheet {
  position: absolute;
  display: block;
  width: 52px;
  height: 62px;
  background: white;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  box-shadow: 0 9px 24px rgba(16, 55, 41, .09);
}

.file-sheet-back {
  top: 7px;
  left: 11px;
  background: var(--mint-100);
  transform: rotate(-8deg);
}

.file-sheet-front {
  top: 0;
  left: 22px;
  padding: 17px 11px;
  transform: rotate(3deg);
}

.file-sheet-front i {
  display: block;
  height: 3px;
  margin-bottom: 6px;
  background: var(--line-strong);
  border-radius: 3px;
}

.file-sheet-front i:nth-child(2) {
  width: 78%;
}

.file-sheet-front i:nth-child(3) {
  width: 55%;
}

.upload-arrow {
  position: absolute;
  right: 2px;
  bottom: 1px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: white;
  background: var(--mint-500);
  border: 4px solid var(--paper-soft);
  border-radius: 50%;
  box-shadow: 0 7px 16px rgba(45, 185, 124, .26);
}

.upload-arrow svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.drop-copy h2 {
  margin: 0 0 7px;
  font-size: 17px;
  font-weight: 760;
  letter-spacing: -.025em;
}

.drop-copy p {
  margin: 0 0 10px;
  color: var(--ink-600);
  font-size: 13px;
}

.drop-copy > span {
  color: var(--ink-500);
  font-size: 10px;
  font-weight: 600;
}

.queue-section {
  margin-top: 27px;
}

.queue-heading {
  display: flex;
  margin-bottom: 12px;
  align-items: end;
  justify-content: space-between;
}

.queue-heading > div {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.queue-heading h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 780;
}

.queue-heading span {
  color: var(--ink-500);
  font-size: 10px;
}

.queue-heading button {
  font-size: 10px;
}

.file-list {
  display: grid;
  gap: 8px;
}

.file-row {
  display: grid;
  min-height: 68px;
  padding: 11px 12px;
  align-items: center;
  grid-template-columns: 42px minmax(0, 1fr) auto 30px;
  gap: 11px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 13px;
  transition: border-color .2s ease, background .2s ease;
}

.file-row:has(.status-complete) {
  background: var(--mint-50);
  border-color: var(--mint-200);
}

.file-row:has(.status-failed),
.file-row:has(.status-cancelled) {
  background: var(--red-50);
  border-color: var(--red-100);
}

.file-kind {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--mint-700);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .045em;
  background: var(--mint-100);
  border: 1px solid rgba(45, 185, 124, .1);
  border-radius: 11px;
}

.file-details {
  min-width: 0;
}

.file-title-line {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 8px;
}

.file-title-line strong {
  overflow: hidden;
  color: var(--ink-800);
  font-size: 11px;
  font-weight: 730;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-title-line span {
  flex: 0 0 auto;
  color: var(--ink-500);
  font-size: 9px;
}

.file-progress-track {
  height: 4px;
  margin-top: 9px;
  overflow: hidden;
  background: #e4ece8;
  border-radius: 999px;
}

.file-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--mint-400), var(--mint-600));
  border-radius: inherit;
  transition: width .16s linear;
}

.file-error {
  margin: 6px 0 0;
  color: var(--red-500);
  font-size: 9px;
  font-weight: 620;
  line-height: 1.35;
}

.file-status {
  display: inline-flex;
  min-width: 75px;
  align-items: center;
  gap: 6px;
  color: var(--ink-500);
  font-size: 9px;
  font-weight: 750;
}

.file-status i {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--ink-400);
  border-radius: 50%;
}

.status-uploading,
.status-processing {
  color: var(--blue-500);
}

.status-uploading i,
.status-processing i {
  background: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(76, 127, 212, .09);
}

.status-complete {
  color: var(--mint-700);
}

.status-complete i {
  background: var(--mint-500);
  box-shadow: 0 0 0 4px rgba(45, 185, 124, .09);
}

.status-failed,
.status-cancelled {
  color: var(--red-500);
}

.status-failed i,
.status-cancelled i {
  background: var(--red-500);
  box-shadow: 0 0 0 4px rgba(217, 94, 85, .08);
}

.file-action {
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  color: var(--ink-500);
  background: transparent;
  border-radius: 9px;
}

.file-action:hover {
  color: var(--ink-900);
  background: white;
  box-shadow: 0 2px 8px rgba(16, 36, 29, .08);
}

.file-action.is-copy {
  color: var(--mint-700);
}

.upload-action {
  display: grid;
  margin-top: 21px;
  padding-top: 20px;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  border-top: 1px solid var(--line);
}

.overall-progress-copy > div:first-child {
  display: flex;
  margin-bottom: 8px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.overall-progress-copy span {
  color: var(--ink-600);
  font-size: 10px;
  font-weight: 650;
}

.overall-progress-copy strong {
  color: var(--ink-800);
  font-size: 10px;
}

.overall-track {
  height: 6px;
  overflow: hidden;
  background: #e4ece8;
  border-radius: 999px;
}

.overall-track span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--mint-400), var(--mint-600));
  border-radius: inherit;
  transition: width .18s linear;
}

.upload-button {
  min-width: 162px;
}

.results-card {
  margin-top: 21px;
  padding: 27px;
  border-color: var(--mint-200);
  border-radius: var(--radius-lg);
  animation: reveal-results .5s var(--ease-out) both;
}

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

.results-header {
  display: grid;
  align-items: center;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 15px;
}

.success-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--mint-700);
  background: var(--mint-100);
  border: 1px solid var(--mint-200);
  border-radius: 15px;
}

.success-mark svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.results-header .eyebrow {
  margin-bottom: 4px;
  font-size: 9px;
}

.results-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 740;
  letter-spacing: -.035em;
}

.results-header p:last-child {
  margin: 5px 0 0;
  color: var(--ink-600);
  font-size: 11px;
}

.result-list {
  display: grid;
  margin-top: 24px;
  gap: 10px;
}

.result-row {
  display: grid;
  padding: 13px;
  align-items: center;
  grid-template-columns: minmax(150px, 230px) minmax(0, 1fr);
  gap: 14px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.result-file {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.result-file > span {
  display: grid;
  width: 37px;
  height: 37px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--mint-700);
  font-size: 7px;
  font-weight: 850;
  background: var(--mint-100);
  border-radius: 10px;
}

.result-file p {
  display: grid;
  min-width: 0;
  margin: 0;
  gap: 4px;
}

.result-file strong {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-file small {
  color: var(--ink-500);
  font-size: 8px;
}

.path-box {
  display: grid;
  min-width: 0;
  height: 43px;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  background: #f1f6f3;
  border: 1px solid #dbe7e1;
  border-radius: 10px;
}

.path-box code {
  overflow: hidden;
  padding: 0 12px;
  color: var(--ink-700);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.path-box button {
  display: inline-flex;
  height: 100%;
  padding: 0 12px;
  align-items: center;
  gap: 6px;
  color: var(--mint-700);
  font-size: 9px;
  font-weight: 750;
  background: white;
  border: 0;
  border-left: 1px solid #dbe7e1;
  border-radius: 0 9px 9px 0;
}

.path-box button:hover {
  background: var(--mint-50);
}

.path-box svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.results-footer {
  display: flex;
  margin-top: 18px;
  padding-top: 17px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
}

.results-footer p {
  display: flex;
  margin: 0;
  align-items: center;
  gap: 9px;
  color: var(--ink-500);
  font-size: 9px;
  font-weight: 620;
}

.results-footer button {
  font-size: 10px;
}

.toast {
  position: fixed;
  z-index: 100;
  right: 24px;
  bottom: 24px;
  display: flex;
  max-width: min(380px, calc(100vw - 32px));
  padding: 13px 16px;
  align-items: center;
  gap: 10px;
  color: white;
  font-size: 11px;
  font-weight: 670;
  background: var(--ink-950);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 13px;
  box-shadow: 0 18px 45px rgba(8, 25, 19, .25);
  animation: toast-in .3s var(--ease-out) both;
}

.toast.is-error {
  background: #6f2d29;
}

.toast-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  background: var(--mint-400);
  border-radius: 50%;
}

.toast.is-error .toast-dot {
  background: #ffaaa2;
}

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

.noscript-message {
  position: fixed;
  z-index: 200;
  right: 20px;
  bottom: 20px;
  left: 20px;
  margin: 0;
  padding: 15px;
  color: white;
  text-align: center;
  background: var(--red-500);
  border-radius: 12px;
}

.unavailable-shell {
  display: grid;
  min-height: 100vh;
  padding: 24px;
  place-items: center;
}

.unavailable-card {
  width: min(100%, 560px);
  padding: 44px;
  text-align: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.unavailable-card .brand-symbol {
  margin-bottom: 23px;
}

.unavailable-card h1 {
  margin: 0;
  font-size: 34px;
  letter-spacing: -.045em;
}

.unavailable-card p:not(.eyebrow) {
  margin: 17px auto 26px;
  color: var(--ink-600);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-story {
    display: none;
  }

  .login-access {
    padding: 48px 24px;
    background:
      radial-gradient(circle at 92% 2%, rgba(91, 214, 157, .13), transparent 23rem),
      white;
  }

  .mobile-brand {
    display: flex;
    margin-bottom: 70px;
    align-items: center;
    gap: 10px;
    font-size: 18px;
  }

  .mobile-brand .brand-symbol {
    width: 38px;
    height: 38px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .hero-copy {
    max-width: 620px;
  }

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

  .project-card {
    display: grid;
    align-items: end;
    grid-template-columns: minmax(0, 1fr) minmax(220px, .7fr);
    gap: 15px 20px;
  }

  .project-card .step-label {
    grid-column: 1 / -1;
    margin-bottom: 2px;
  }

  .project-card .field-label,
  .project-card .select-shell {
    grid-column: 1;
  }

  .project-card .select-shell {
    margin-top: -15px;
  }

  .project-summary {
    grid-column: 2;
    grid-row: 2 / span 2;
    margin-top: 0;
  }

  .storage-contract {
    display: none;
  }
}

@media (max-width: 640px) {
  .app-header {
    width: calc(100% - 30px);
    min-height: 72px;
    grid-template-columns: 1fr auto;
  }

  .app-header .brand-symbol {
    width: 37px;
    height: 37px;
    border-radius: 12px;
  }

  .header-status {
    display: none;
  }

  .quiet-button span {
    display: none;
  }

  .quiet-button {
    width: 40px;
    padding: 0;
    justify-content: center;
  }

  .app-main {
    width: calc(100% - 28px);
    padding: 44px 0 60px;
  }

  .hero {
    margin-bottom: 28px;
    gap: 17px;
  }

  .hero h1 {
    font-size: clamp(43px, 14vw, 60px);
  }

  .hero-copy {
    font-size: 14px;
  }

  .project-card,
  .upload-card,
  .results-card {
    padding: 18px;
    border-radius: 19px;
  }

  .project-card {
    display: block;
  }

  .project-card .step-label {
    margin-bottom: 20px;
  }

  .project-card .field-label {
    margin-bottom: 9px;
  }

  .project-card .select-shell {
    margin-top: 0;
  }

  .project-summary {
    margin-top: 13px;
  }

  .drop-zone {
    min-height: 235px;
    padding: 25px 16px;
  }

  .drop-copy h2 {
    font-size: 15px;
  }

  .queue-heading {
    align-items: center;
  }

  .file-row {
    min-height: 74px;
    padding: 10px;
    grid-template-columns: 39px minmax(0, 1fr) 29px;
    gap: 9px;
  }

  .file-kind {
    width: 39px;
    height: 39px;
  }

  .file-status {
    grid-column: 2;
    min-width: auto;
    margin-top: -2px;
  }

  .file-action {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

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

  .upload-button {
    width: 100%;
  }

  .results-header {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .success-mark {
    width: 42px;
    height: 42px;
  }

  .results-header .secondary-button {
    grid-column: 1 / -1;
    margin-top: 5px;
  }

  .result-row {
    grid-template-columns: 1fr;
  }

  .path-box {
    height: auto;
    min-height: 48px;
  }

  .path-box code {
    padding: 9px 10px;
    overflow-wrap: anywhere;
    line-height: 1.45;
    text-overflow: unset;
    white-space: normal;
  }

  .results-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .toast {
    right: 16px;
    bottom: 16px;
    left: 16px;
    max-width: none;
  }

  .unavailable-card {
    padding: 32px 22px;
  }
}

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