:root {
  --ink: #151713;
  --muted: #71756c;
  --line: #dfe2da;
  --soft-line: #ebede7;
  --paper: #f8f8f4;
  --white: #fff;
  --lime: #cbf43d;
  --lime-dark: #8eaf18;
  --green: #214c32;
  --red: #b94038;
  --shadow: 0 18px 60px rgba(27, 33, 22, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 75% 5%, rgba(203, 244, 61, 0.14), transparent 24rem),
    var(--paper);
  font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(137, 177, 18, 0.32);
  outline-offset: 3px;
}

button {
  color: inherit;
}

svg {
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

[hidden] {
  display: none !important;
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  height: 74px;
  padding: 0 clamp(24px, 5vw, 80px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid rgba(223, 226, 218, 0.84);
  background: rgba(248, 248, 244, 0.88);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  width: fit-content;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 9px;
  color: var(--ink);
  background: var(--lime);
}

.brand-mark svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
  stroke: none;
}

.nav {
  display: flex;
  gap: 8px;
}

.nav-link {
  padding: 10px 14px;
  border: 0;
  border-radius: 10px;
  color: #7d8178;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--ink);
  background: var(--white);
}

.local-chip {
  justify-self: end;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--green);
  background: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 700;
}

.local-chip span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #54b870;
  box-shadow: 0 0 0 4px rgba(84, 184, 112, 0.12);
}

main {
  overflow: hidden;
}

.hero {
  padding: 88px 24px 52px;
  text-align: center;
}

.hero-kicker,
.eyebrow,
.card-label {
  color: #747a69;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.hero-kicker {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: var(--lime-dark);
}

.hero-kicker span {
  display: grid;
}

.hero-kicker svg {
  width: 14px;
  fill: currentColor;
  stroke: none;
}

.hero h1 {
  max-width: 820px;
  margin: 20px auto 18px;
  font-size: clamp(45px, 6vw, 76px);
  line-height: 1.1;
  letter-spacing: -0.065em;
}

.hero h1 em {
  position: relative;
  z-index: 0;
  font-style: normal;
}

.hero h1 em::after {
  position: absolute;
  z-index: -1;
  right: -0.08em;
  bottom: 0.04em;
  left: -0.08em;
  height: 0.28em;
  border-radius: 3px;
  background: var(--lime);
  content: "";
  transform: rotate(-1deg);
}

.hero > p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.trust-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 27px;
  color: #73776f;
  font-size: 12px;
  font-weight: 600;
}

.trust-row span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.trust-row svg {
  color: #6a8e32;
  width: 14px;
  height: 14px;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(250px, 310px) minmax(0, 810px);
  gap: 18px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px 100px;
  align-items: start;
}

.flow-card,
.upload-card,
.result-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.flow-card {
  padding: 28px 25px 24px;
}

.flow-card h2 {
  margin: 8px 0 31px;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.steps {
  margin: 0 0 31px;
}

.step {
  display: grid;
  grid-template-columns: 37px 1fr 23px;
  gap: 12px;
  align-items: center;
  opacity: 0.47;
  transition: 180ms ease;
}

.step.is-active,
.step.is-complete {
  opacity: 1;
}

.step-index {
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 10px;
  font-weight: 800;
  transition: 180ms ease;
}

.step.is-active .step-index {
  border-color: var(--lime);
  background: var(--lime);
  box-shadow: 0 0 0 5px rgba(203, 244, 61, 0.18);
}

.step.is-complete .step-index {
  border-color: #28302a;
  color: var(--white);
  background: #28302a;
}

.step strong,
.step span {
  display: block;
}

.step strong {
  margin-bottom: 4px;
  font-size: 13px;
}

.step span {
  color: var(--muted);
  font-size: 10px;
}

.step i {
  display: none;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: var(--green);
  background: #e8f5df;
}

.step.is-complete i {
  display: grid;
}

.step i svg {
  width: 12px;
}

.step-line {
  width: 1px;
  height: 29px;
  margin-left: 18px;
  background: var(--soft-line);
}

.step-line span {
  display: block;
  width: 100%;
  background: #30352f;
  transition: height 250ms ease;
}

.model-note {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid #e5e8d7;
  border-radius: 12px;
  background: #f8faef;
}

.model-icon {
  display: grid;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  color: var(--ink);
  background: var(--lime);
}

.model-icon svg {
  width: 20px;
  fill: currentColor;
  stroke: none;
}

.model-note small,
.model-note strong,
.model-note div > span {
  display: block;
}

.model-note small {
  color: #8a8e83;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.model-note strong {
  margin: 3px 0;
  font-size: 11px;
}

.model-note div > span {
  color: #888c83;
  font-size: 8px;
}

.upload-card {
  min-height: 522px;
  padding: 31px;
}

.upload-heading,
.result-top,
.section-heading,
.panel-intro {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.upload-heading h2,
.result-top h2,
.section-heading h2 {
  margin: 7px 0 0;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.summary-select {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.summary-select select {
  padding: 7px 28px 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  font-size: 11px;
}

.dropzone {
  margin-top: 25px;
  padding: 39px 28px 26px;
  border: 1px dashed #cbd0c5;
  border-radius: 14px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)),
    repeating-linear-gradient(45deg, #f7f8f2, #f7f8f2 8px, #fbfbf8 8px, #fbfbf8 16px);
  text-align: center;
  transition: 180ms ease;
}

.dropzone.is-dragging {
  border-color: var(--lime-dark);
  background: #f8fce9;
  transform: scale(1.01);
}

.upload-icon {
  display: grid;
  width: 49px;
  height: 49px;
  margin: 0 auto 13px;
  place-items: center;
  border-radius: 14px;
  color: #566245;
  background: #eff2e7;
}

.upload-icon svg {
  width: 23px;
  height: 23px;
}

.dropzone > strong {
  font-size: 14px;
}

.dropzone > p {
  margin: 6px 0 17px;
  color: #92968d;
  font-size: 10px;
}

.button {
  display: inline-flex;
  justify-content: center;
  gap: 8px;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 150ms ease,
    background 150ms ease,
    opacity 150ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button svg {
  width: 14px;
  height: 14px;
}

.button-dark {
  color: var(--white);
  background: #252923;
}

.button-primary {
  color: var(--ink);
  background: var(--lime);
}

.button-primary:hover:not(:disabled) {
  background: #d5fb50;
}

.button-outline {
  border: 1px solid var(--line);
  background: var(--white);
}

.button-quiet {
  color: #797d75;
  background: transparent;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.drop-divider {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 20px 0 14px;
  color: #a0a39c;
  font-size: 8px;
}

.drop-divider::before,
.drop-divider::after {
  flex: 1;
  height: 1px;
  background: #e7e9e3;
  content: "";
}

.sample-button {
  display: grid;
  grid-template-columns: 34px 1fr 18px;
  gap: 11px;
  align-items: center;
  width: 100%;
  max-width: 410px;
  margin: 0 auto;
  padding: 10px 12px;
  border: 1px solid #e3e6dd;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.78);
  text-align: left;
  cursor: pointer;
}

.sample-button:hover {
  border-color: #c4d57c;
  background: var(--white);
}

.sample-button > svg {
  color: #858a80;
  width: 14px;
}

.sample-file,
.selected-icon,
.history-file {
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #6c744d;
  background: #f0f3e4;
}

.sample-file {
  width: 34px;
  height: 34px;
}

.sample-file svg {
  width: 17px;
}

.sample-button strong,
.sample-button small {
  display: block;
}

.sample-button strong {
  margin-bottom: 2px;
  font-size: 10px;
}

.sample-button small {
  color: #959990;
  font-size: 8px;
}

.selected-file {
  display: grid;
  grid-template-columns: 48px 1fr 36px;
  gap: 14px;
  align-items: center;
  min-height: 104px;
  margin-top: 25px;
  padding: 20px;
  border: 1px solid #dfe4d2;
  border-radius: 14px;
  background: #fbfcf7;
}

.selected-icon {
  width: 48px;
  height: 48px;
  color: var(--green);
  background: #edf4df;
}

.selected-icon svg {
  width: 23px;
  height: 23px;
}

.selected-meta strong,
.selected-meta small {
  display: block;
}

.selected-meta strong {
  overflow: hidden;
  margin-bottom: 5px;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-meta small {
  color: var(--muted);
  font-size: 10px;
}

.selected-file button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  color: #8b8f87;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
}

.selected-file button:hover {
  background: #eff1ea;
}

.error-message {
  margin-top: 12px;
  padding: 11px 13px;
  border-radius: 9px;
  color: #943b35;
  background: #fff0ee;
  font-size: 11px;
}

.button-run {
  width: 100%;
  min-height: 49px;
  margin-top: 18px;
  font-size: 13px;
}

.button-run.is-loading {
  position: relative;
}

.button-run.is-loading::before {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(21, 23, 19, 0.25);
  border-top-color: var(--ink);
  border-radius: 50%;
  content: "";
  animation: spin 0.75s linear infinite;
}

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

.result-card {
  overflow: hidden;
}

.result-top {
  padding: 28px 30px 22px;
}

.pass-badge {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 8px 11px;
  border-radius: 8px;
  color: #326442;
  background: #edf7e9;
  font-size: 10px;
  font-weight: 700;
}

.pass-badge.is-fail {
  color: #913c36;
  background: #fff0ee;
}

.pass-badge svg {
  width: 13px;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 30px 20px;
  border: 1px solid var(--soft-line);
  border-radius: 11px;
  background: #fafbf7;
}

.metric-row div {
  padding: 13px 15px;
  border-right: 1px solid var(--soft-line);
}

.metric-row div:last-child {
  border: 0;
}

.metric-row strong,
.metric-row span {
  display: block;
}

.metric-row strong {
  margin-bottom: 3px;
  font-size: 17px;
}

.metric-row span {
  color: var(--muted);
  font-size: 9px;
}

.tabs {
  display: flex;
  gap: 2px;
  padding: 0 30px;
  border-bottom: 1px solid var(--soft-line);
}

.tabs button {
  position: relative;
  padding: 13px 15px;
  border: 0;
  color: #8b8f87;
  background: transparent;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.tabs button::after {
  position: absolute;
  right: 12px;
  bottom: -1px;
  left: 12px;
  height: 2px;
  background: transparent;
  content: "";
}

.tabs button.is-active {
  color: var(--ink);
}

.tabs button.is-active::after {
  background: var(--lime-dark);
}

.tab-panel {
  min-height: 430px;
  max-height: 690px;
  overflow: auto;
  padding: 31px;
  scrollbar-color: #d6d9d1 transparent;
  scrollbar-width: thin;
}

.draft {
  max-width: 650px;
  margin: 0 auto;
}

.draft-label {
  color: #9b9e97;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.draft > h1 {
  max-width: 590px;
  margin: 9px 0 25px;
  font-size: 28px;
  line-height: 1.35;
  letter-spacing: -0.045em;
}

.summary-box {
  padding: 20px 22px;
  border-left: 3px solid var(--lime);
  border-radius: 0 10px 10px 0;
  background: #f7f9ef;
}

.summary-box h3 {
  display: flex;
  gap: 7px;
  align-items: center;
  margin: 0 0 12px;
  color: #52652a;
  font-size: 11px;
}

.summary-box h3 svg {
  width: 13px;
  fill: currentColor;
  stroke: none;
}

.summary-box ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 17px;
}

.summary-box li,
.draft-section p {
  color: #555a52;
  font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Segoe UI", sans-serif;
  font-size: 12px;
  line-height: 1.85;
}

.draft-section {
  margin-top: 30px;
}

.draft-section h2 {
  margin: 0 0 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--soft-line);
  font-size: 16px;
  letter-spacing: -0.025em;
}

.draft-section p {
  margin: 8px 0;
}

.panel-intro {
  margin-bottom: 21px;
}

.panel-intro h3 {
  margin: 0 0 5px;
  font-size: 16px;
}

.panel-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.panel-intro > span {
  padding: 7px 9px;
  border-radius: 7px;
  color: #6d7169;
  background: #f2f3ef;
  font-size: 9px;
  font-weight: 700;
}

.source-page {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  padding: 21px 0;
  border-top: 1px solid var(--soft-line);
}

.source-page > span {
  color: #9a9e94;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.source-page pre {
  margin: 0;
  color: #4e534b;
  font: 11px/1.9 "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Segoe UI", sans-serif;
  white-space: pre-wrap;
}

.grounding-hero {
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 18px;
  border: 1px solid #dcebd5;
  border-radius: 11px;
  background: #f2f9ee;
}

.grounding-hero > span {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: #57a065;
}

.grounding-hero.is-fail {
  border-color: #f1d7d4;
  background: #fff4f2;
}

.grounding-hero.is-fail > span {
  background: var(--red);
}

.grounding-hero h3 {
  margin: 0 0 4px;
  font-size: 13px;
}

.grounding-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
}

.number-checks,
.claim-list {
  margin-top: 25px;
}

.number-checks h3,
.claim-list h3 {
  margin: 0 0 12px;
  font-size: 12px;
}

.number-checks > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.number-checks span {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #8b8f87;
  font-size: 9px;
}

.number-checks span.is-found {
  border-color: #d6e7cf;
  color: #3d7048;
  background: #f4faef;
}

.number-checks svg {
  width: 10px;
}

.claim {
  display: grid;
  grid-template-columns: 24px 1fr 55px;
  gap: 10px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px solid var(--soft-line);
}

.claim > span {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--red);
  font-size: 9px;
}

.claim > span.is-pass {
  background: #6da776;
}

.claim svg {
  width: 11px;
}

.claim p {
  margin: 1px 0 0;
  color: #4e534b;
  font-size: 10px;
  line-height: 1.6;
}

.claim small {
  padding-top: 3px;
  color: #7e9681;
  font-size: 8px;
  text-align: right;
}

.no-network {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  color: #476c50 !important;
  background: #edf6e9 !important;
}

.run-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  border: 1px solid var(--soft-line);
  border-radius: 10px;
}

.run-grid div {
  padding: 15px;
  border-right: 1px solid var(--soft-line);
  border-bottom: 1px solid var(--soft-line);
}

.run-grid div:nth-child(2n) {
  border-right: 0;
}

.run-grid div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.run-grid dt {
  margin-bottom: 5px;
  color: #92968e;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.run-grid dd {
  margin: 0;
  font-size: 10px;
}

.success-text {
  display: flex;
  gap: 5px;
  align-items: center;
  color: #3f794d;
  font-weight: 700;
}

.success-text svg {
  width: 11px;
}

.algorithm-note {
  margin-top: 20px;
  padding: 18px;
  border-radius: 10px;
  background: #282c27;
}

.algorithm-note span {
  display: block;
  margin-bottom: 10px;
  color: #9da49a;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.algorithm-note code {
  color: var(--lime);
  font-size: 10px;
}

.algorithm-note p {
  margin: 11px 0 0;
  color: #afb5ac;
  font-size: 9px;
  line-height: 1.6;
}

.result-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 17px 25px;
  border-top: 1px solid var(--soft-line);
  background: #fafbf8;
}

.result-actions > div {
  display: flex;
  gap: 8px;
}

.history-section,
.guide-section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 95px 24px;
}

.history-section {
  border-top: 1px solid var(--line);
}

.storage-note {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: #858980;
  font-size: 9px;
}

.storage-note svg {
  width: 12px;
}

.history-list {
  display: grid;
  gap: 8px;
  margin-top: 28px;
}

.history-empty {
  display: flex;
  justify-content: center;
  gap: 14px;
  align-items: center;
  min-height: 130px;
  border: 1px dashed #d5d8d0;
  border-radius: 14px;
  color: #898d84;
}

.history-empty > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  background: #eeefe9;
}

.history-empty strong {
  color: #5f635b;
  font-size: 12px;
}

.history-empty p {
  margin: 4px 0 0;
  font-size: 9px;
}

.history-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto 115px 27px;
  gap: 15px;
  align-items: center;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.history-file {
  width: 42px;
  height: 42px;
}

.history-file svg {
  width: 20px;
}

.history-main strong,
.history-main span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-main strong {
  margin-bottom: 4px;
  font-size: 11px;
}

.history-main span,
.history-item time,
.history-stats {
  color: #898d84;
  font-size: 9px;
}

.history-stats {
  display: flex;
  gap: 13px;
}

.history-item time {
  text-align: right;
}

.history-pass {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: #52805d;
  background: #eaf5e6;
}

.history-pass svg {
  width: 11px;
}

.guide-section {
  display: grid;
  grid-template-columns: 0.85fr 1.7fr;
  gap: 80px;
  max-width: none;
  padding-right: max(24px, calc((100vw - 1112px) / 2));
  padding-left: max(24px, calc((100vw - 1112px) / 2));
  color: var(--white);
  background: #242824;
}

.guide-section > div:first-child h2 {
  margin: 13px 0 0;
  font-size: clamp(27px, 3vw, 39px);
  line-height: 1.35;
  letter-spacing: -0.05em;
}

.guide-section .eyebrow {
  color: var(--lime);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border-left: 1px solid #3d413c;
}

.guide-grid article {
  padding: 5px 27px;
  border-right: 1px solid #3d413c;
}

.guide-grid article > span {
  color: var(--lime);
  font-size: 10px;
  font-weight: 800;
}

.guide-grid h3 {
  margin: 43px 0 14px;
  font-size: 15px;
}

.guide-grid p {
  margin: 0;
  color: #aeb3ab;
  font-size: 10px;
  line-height: 1.8;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 92px;
  padding: 0 max(24px, calc((100vw - 1112px) / 2));
  color: #8a8e85;
  background: #1d201d;
  font-size: 9px;
}

.footer-brand {
  color: var(--white);
  font-size: 10px;
}

.footer-brand .brand-mark {
  width: 25px;
  height: 25px;
  border-radius: 7px;
}

.footer-brand .brand-mark svg {
  width: 15px;
}

footer p {
  justify-self: center;
}

footer > span {
  justify-self: end;
}

.toast {
  position: fixed;
  z-index: 50;
  right: 22px;
  bottom: 22px;
  max-width: calc(100vw - 44px);
  padding: 12px 16px;
  border: 1px solid #394037;
  border-radius: 10px;
  color: var(--white);
  background: #242824;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.22);
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .flow-card {
    display: none;
  }

  .guide-section {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .history-stats {
    display: none;
  }

  .history-item {
    grid-template-columns: 42px minmax(0, 1fr) 105px 27px;
  }
}

@media (max-width: 680px) {
  .topbar {
    height: 64px;
    grid-template-columns: 1fr auto;
    padding: 0 17px;
  }

  .nav {
    display: none;
  }

  .brand {
    font-size: 11px;
  }

  .brand-mark {
    width: 28px;
    height: 28px;
  }

  .local-chip {
    padding: 7px 9px;
    font-size: 9px;
  }

  .hero {
    padding: 65px 20px 42px;
  }

  .hero h1 {
    font-size: 43px;
  }

  .hero > p {
    font-size: 14px;
  }

  .desktop-only {
    display: none;
  }

  .trust-row {
    flex-wrap: wrap;
    gap: 10px 18px;
  }

  .workspace {
    padding: 0 14px 70px;
  }

  .upload-card {
    min-height: auto;
    padding: 23px 17px;
  }

  .upload-heading {
    align-items: flex-start;
  }

  .summary-select {
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
  }

  .dropzone {
    padding: 30px 14px 20px;
  }

  .result-top {
    align-items: flex-start;
    padding: 22px 18px 17px;
  }

  .pass-badge span {
    display: none;
  }

  .metric-row {
    grid-template-columns: 1fr 1fr;
    margin: 0 18px 17px;
  }

  .metric-row div:nth-child(2) {
    border-right: 0;
  }

  .metric-row div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--soft-line);
  }

  .tabs {
    overflow-x: auto;
    padding: 0 10px;
  }

  .tabs button {
    flex: 0 0 auto;
  }

  .tab-panel {
    padding: 25px 18px;
  }

  .draft > h1 {
    font-size: 23px;
  }

  .source-page {
    grid-template-columns: 1fr;
    gap: 9px;
  }

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

  .run-grid div {
    border-right: 0;
    border-bottom: 1px solid var(--soft-line) !important;
  }

  .run-grid div:last-child {
    border-bottom: 0 !important;
  }

  .result-actions {
    align-items: stretch;
    padding: 13px;
  }

  .result-actions > div {
    flex: 1;
  }

  .result-actions .button-quiet {
    font-size: 0;
  }

  .result-actions .button-quiet svg {
    width: 16px;
    height: 16px;
  }

  .result-actions > div .button {
    flex: 1;
    padding: 0 9px;
  }

  .history-section,
  .guide-section {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .history-item {
    grid-template-columns: 36px minmax(0, 1fr) 23px;
    gap: 10px;
  }

  .history-file {
    width: 36px;
    height: 36px;
  }

  .history-item time {
    display: none;
  }

  .guide-grid {
    grid-template-columns: 1fr;
    border-top: 1px solid #3d413c;
    border-left: 0;
  }

  .guide-grid article {
    padding: 25px 0;
    border-right: 0;
    border-bottom: 1px solid #3d413c;
  }

  .guide-grid h3 {
    margin: 17px 0 9px;
  }

  footer {
    grid-template-columns: 1fr auto;
    padding: 0 20px;
  }

  footer p {
    display: none;
  }
}

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