main.wrap { width: min(1440px, calc(100% - clamp(32px, 7vw, 144px))); }
body:has(#home:not([hidden])) main.wrap { width: min(1760px, calc(100% - clamp(32px, 7vw, 144px))); }
.migration-home {
  display: grid;
  grid-template-columns: minmax(0, 1.13fr) minmax(0, .87fr);
  align-items: end;
  gap: clamp(14px, 4vw, 55px);
}
.migration-actions { flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.migration-actions .example-jump { color: var(--blue); }
.finder { padding: 13px; background: var(--surface); }
.finder label { margin-bottom: 6px; }
.input-action { display: flex; align-items: stretch; gap: 7px; }
.input-action .button { flex: 0 0 auto; }
.error { margin-top: 8px; }
.error ul { margin: 7px 0 0; padding-left: 19px; }

.back { display: inline-flex; gap: 6px; margin-top: 19px; color: var(--blue); font-size: 12px; font-weight: 650; }
#project-loading { margin-top: 16px; }
#project[data-mode='sample'] { padding-top: 3px; border-top: 1px solid #384f72; }
.project-head { padding: 22px 0 15px; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px 22px; }
.project-title { margin: 6px 0; font-size: clamp(27px, 3.4vw, 44px); line-height: 1.14; letter-spacing: -.045em; }
#project[data-mode='sample'] .project-head { padding-top: 14px; }
#project[data-mode='sample'] .project-title { font-size: clamp(23px, 2.9vw, 34px); }
.project-caption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.project-caption .lede { font-size: 12px; }
.project-route { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.token-route { display: grid; grid-template-columns: repeat(2, minmax(76px, 1fr)); gap: 5px; }
.token-route > div { min-width: 0; padding: 5px 7px; border: 1px solid var(--line); border-radius: 6px; background: var(--input); }
.token-route > div:last-child { border-color: #426c61; background: #1a332f; }
.token-route dt { font-size: 10px; color: var(--muted); }
.token-route dd { font: 500 11px/1.4 var(--mono); color: var(--ink); overflow-wrap: anywhere; }

.project-grid, .publish-grid { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.project-main, .publisher-aside { min-width: 0; }
.lookup > .muted { margin: 6px 0 14px; font-size: 12px; }
.lookup form .example-button { display: inline-flex; align-items: center; min-height: 28px; margin-top: 5px; }
.lookup input { font-family: var(--mono); font-size: 14px; }
.result:not(:empty) { margin-bottom: 12px; padding: clamp(12px, 2vw, 19px); border: 1px solid #40675e; border-radius: 8px; background: linear-gradient(145deg, #1b3935, #162936 92%); overflow-wrap: anywhere; }
.result[data-outcome='empty'] { border-color: var(--line-strong); background: var(--surface-raised); }
.result-label { color: var(--accent); font: 500 10px/1.45 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.result-value { display: block; margin: 5px 0; color: #dffcf1; font-size: clamp(25px, 4.5vw, 43px); line-height: 1.12; letter-spacing: -.044em; font-variant-numeric: tabular-nums; }
.result p:not(.result-label) { color: #c1d4d4; font-size: 12px; }
.result-wallet { margin-top: 5px; }
.rules { margin-top: 12px; }
.rules p { margin: 7px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.rules .muted { font-size: 12px; }
.facts { margin-top: 9px; }
.facts > div { display: grid; grid-template-columns: minmax(95px, .7fr) minmax(0, 1.3fr); gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); font-size: 11px; }
.facts dd { min-width: 0; font-weight: 550; font-size: 12px; overflow-wrap: anywhere; }
.facts a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.evidence .facts .mono { display: block; color: var(--muted); }

.publish-grid { grid-template-columns: minmax(0, 1.38fr) minmax(0, .82fr); }
.publisher-aside { display: grid; gap: 10px; }
.publisher-aside .panel:first-child { background: linear-gradient(135deg, #182b32, var(--surface) 75%); border-color: #3b5767; }
.access-note p { margin: 6px 0 12px; font-size: 13px; }
.checklist { padding-left: 16px; margin: 9px 0 11px; color: var(--muted); font-size: 12px; }
.checklist li + li { margin-top: 6px; }
fieldset { min-width: 0; padding: 0; margin: 0 0 19px; border: 0; }
fieldset + fieldset { border-top: 1px solid var(--line); padding-top: 8px; }
legend { padding: 0 8px 0 0; margin-bottom: 8px; font-size: 15px; font-weight: 700; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 11px; }
.full { grid-column: 1 / -1; }
.file-box { padding: 9px; border: 1px dashed var(--line-strong); border-radius: 6px; background: var(--input); }
.file-box input { border: 0; padding: 4px 0; }
.file-box input::file-selector-button { padding: 4px 7px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--surface-raised); color: var(--ink); font: 600 12px var(--font); }
.file-box p { margin-top: 5px; font-size: 11px; }
.publish-form > .error, .review > .error { margin-bottom: 10px; }
.review { margin-top: 13px; }
.review h2 { margin: 5px 0 8px; }
.review h3 { margin: 13px 0 6px; }
.review-facts { max-width: 760px; }
#review-policy { margin-top: 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
th, td { padding: 6px 8px; vertical-align: top; border-bottom: 1px solid var(--line); }
th { white-space: nowrap; background: var(--surface-raised); }
.confirm { display: flex; align-items: flex-start; gap: 7px; margin: 13px 0 10px; }
.confirm input { margin-top: 3px; flex: 0 0 16px; width: 16px; height: 16px; accent-color: var(--accent); }
#success-text { margin: 6px 0 13px; }

@media (max-width: 760px) {
  .migration-home, .project-grid, .publish-grid { grid-template-columns: minmax(0, 1fr); }
  .project-head { align-items: start; }
  .project-route { width: 100%; }
}
@media (max-width: 400px) {
  .input-action { display: grid; grid-template-columns: minmax(0, 1fr); }
  .lookup .input-action button, .finder .input-action button { justify-content: space-between; }
  .fields { grid-template-columns: minmax(0, 1fr); }
}

.migration-summary { display: grid; grid-template-columns: 1.25fr .8fr .86fr .9fr; gap: 8px; margin-bottom: 13px; }
.migration-summary > div { min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.migration-summary > div:first-child { border-color: #416962; background: linear-gradient(140deg, #1a342f, #182a36); }
.migration-summary dt { color: var(--muted); font-size: 11px; }
.migration-summary dd { margin: 4px 0 0; font: 600 clamp(14px, 1.65vw, 20px)/1.25 var(--mono); overflow-wrap: anywhere; }
.migration-summary > div:first-child dd { color: #d6ffed; }
.allocation-breakdown { display: grid; gap: 8px; margin-top: 10px; padding-top: 9px; border-top: 1px solid #426762; }
.allocation-rate { display: flex; flex-wrap: wrap; gap: 3px 8px; justify-content: space-between; align-items: baseline; }
.allocation-breakdown span { color: #c1d4d4; font-size: 11px; }
.allocation-breakdown strong { color: #e6f8ed; font: 500 11px/1.4 var(--mono); overflow-wrap: anywhere; }
.allocation-share > div { display: flex; flex-wrap: wrap; gap: 3px 8px; justify-content: space-between; align-items: baseline; }
.allocation-share progress { display: block; width: 100%; height: 5px; margin-top: 6px; overflow: hidden; appearance: none; color: #92edc4; border: 0; border-radius: 999px; background: #314b57; }
.allocation-share progress::-webkit-progress-bar { background: #314b57; }
.allocation-share progress::-webkit-progress-value { background: currentColor; border-radius: 999px; }
.allocation-share progress::-moz-progress-bar { background: currentColor; border-radius: 999px; }
@media (max-width: 690px) {
  .migration-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .migration-summary > div { padding: 8px 9px; }
}
