:root {
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color-scheme: light;
  --bg: #f5f7f8;
  --surface: #fff;
  --ink: #20282c;
  --muted: #59696f;
  --line: #dce3e6;
  --subtle: #edf2f3;
  --accent: #067872;
  --danger: #b12e45;
  --danger-bg: #fff0f1;
  --shadow: 0 18px 60px #142a3029;
  --brand: linear-gradient(110deg, #086cac 0%, #087d89 50%, #147c4b 100%);
  --focus: #1688c6;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #14191c;
  --surface: #1c2428;
  --ink: #eef3f4;
  --muted: #a3b1b7;
  --line: #354147;
  --subtle: #252f34;
  --accent: #63dac5;
  --danger: #ff9eaa;
  --danger-bg: #3a232a;
  --shadow: 0 18px 60px #0008;
  --focus: #51b8ef;
}
* {
  box-sizing: border-box;
  letter-spacing: 0;
}
code {
  overflow-wrap: anywhere;
  font-size: 11px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
a {
  color: var(--accent);
  text-underline-offset: 3px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.table-wrap:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  padding: 8px 13px;
  font-weight: 600;
  white-space: normal;
  text-align: left;
}
button:hover:not(:disabled) {
  background: var(--subtle);
}
button.primary {
  background: var(--brand);
  border-color: #0d978c;
  color: white;
}
button.primary:hover:not(:disabled) {
  filter: brightness(1.08);
  background: var(--brand);
}
button.danger {
  color: var(--danger);
  border-color: var(--danger);
}
button.quiet {
  border-color: transparent;
  background: transparent;
}
.icon {
  width: 38px;
  flex: 0 0 38px;
  padding: 8px;
}
.icon img,
button img,
nav img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
:root[data-theme="dark"] button img,
:root[data-theme="dark"] nav img {
  filter: invert(1);
}
button.primary img {
  filter: brightness(0) invert(1);
}
h1 {
  font-size: 25px;
  line-height: 1.25;
  font-weight: 650;
  margin: 0;
  overflow-wrap: anywhere;
}
h2 {
  font-size: 17px;
  margin: 0;
  font-weight: 650;
}
h3 {
  font-size: 14px;
  margin: 0;
  font-weight: 650;
}
p {
  margin: 8px 0;
  color: var(--muted);
}
.muted,
small {
  color: var(--muted);
}
small {
  font-size: 12px;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}
.number {
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
.positive {
  color: var(--accent);
}
.negative {
  color: var(--danger);
}
.tag {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 4px;
  background: var(--subtle);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.tag.ok {
  background: #0b936115;
  color: var(--accent);
}
.tag.warn {
  background: #bb6a0018;
  color: #884c04;
}
:root[data-theme="dark"] .tag.warn {
  color: #ffc572;
}
.error:empty {
  display: none;
}
.error {
  padding: 12px;
  border: 1px solid var(--danger);
  background: var(--danger-bg);
  color: var(--danger);
  border-radius: 6px;
  margin: 12px 0;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.notice {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.empty {
  text-align: center;
  color: var(--muted);
  padding: 54px 16px;
}
.empty h2 {
  color: var(--ink);
  margin-bottom: 8px;
}
.empty img {
  display: block;
  width: 40px;
  height: 40px;
  margin: 0 auto 14px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--line);
  padding: 22px 0;
  margin-bottom: 28px;
  gap: 24px;
}
.stat {
  min-width: 0;
}
.stat > span {
  font-size: 12px;
  color: var(--muted);
}
.stat strong {
  display: block;
  font-size: 23px;
  font-weight: 650;
  margin: 6px 0;
  overflow-wrap: anywhere;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.stat strong.compact {
  font-size: 17px;
}
.stat strong.tiny {
  font-size: 13px;
}
.stat small {
  display: block;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 26px 0 16px;
}
.toolbar {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.toolbar label {
  margin: 0;
  min-width: 140px;
}
.toolbar .search {
  flex: 1;
  max-width: 400px;
}
.toolbar select {
  min-width: 130px;
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  text-align: left;
}
th {
  background: var(--subtle);
  font-weight: 600;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
td,
th {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  vertical-align: middle;
}
tr:last-child td {
  border-bottom: 0;
}
td:last-child,
th:last-child {
  border-right: 0;
}
tbody tr:hover {
  background: var(--subtle);
}
td .sub {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}
td button {
  font-size: 12px;
  min-height: 32px;
  padding: 5px 9px;
}
td .actions {
  flex-wrap: nowrap;
}
.sort-button {
  padding: 0;
  border: 0;
  background: transparent;
  min-height: 22px;
  font: inherit;
  color: inherit;
}
.sort-button img {
  width: 13px;
  height: 13px;
  opacity: 0.45;
}
th[aria-sort="ascending"] .sort-button img,
th[aria-sort="descending"] .sort-button img {
  opacity: 1;
}
.sort-button.descending img {
  transform: rotate(180deg);
}
.report-actions {
  justify-content: flex-end;
  margin-bottom: 16px;
}
.help-topic {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.help-topic summary {
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
}
.help-topic p {
  max-width: 880px;
  margin-block: 16px;
  line-height: 1.7;
}
.storage-item {
  border-bottom: 1px solid var(--line);
  padding: 10px 0 20px;
}
.storage-item meter {
  width: 100%;
  height: 18px;
  accent-color: var(--accent);
}
.storage-item .section-heading {
  margin-block: 12px;
}
.readiness {
  border-block: 1px solid var(--line);
  padding: 14px 0;
  margin-bottom: 24px;
}
.readiness summary {
  cursor: pointer;
  font-weight: 600;
}
.readiness summary .tag {
  margin-left: 8px;
  white-space: normal;
}
.readiness .table-wrap {
  margin-block: 16px;
}
.pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 16px 0;
  color: var(--muted);
  font-size: 12px;
}
.pager button {
  min-height: 32px;
}
.tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  gap: 22px;
  margin: 16px 0 22px;
  overflow: auto;
}
.tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  padding: 12px 0;
  border-radius: 0;
  flex-shrink: 0;
  color: var(--muted);
}
.tabs button[aria-selected="true"] {
  border-bottom-color: var(--accent);
  color: var(--ink);
}
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  min-width: 0;
  margin-bottom: 16px;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  padding: 10px 11px;
  min-height: 40px;
  font-size: 14px;
  font-weight: 400;
}
input[type="checkbox"] {
  width: 17px;
  height: 17px;
  min-height: 0;
  flex-shrink: 0;
  accent-color: var(--accent);
}
.check {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  font-size: 13px;
  font-weight: 400;
  gap: 10px;
}
textarea {
  resize: vertical;
  min-height: 76px;
}
.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
}
.fields .full {
  grid-column: 1/-1;
}
.form-note {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 18px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.actions.end {
  justify-content: flex-end;
}
.detail-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 20px 0;
  border-block: 1px solid var(--line);
  margin-bottom: 20px;
}
.detail-summary span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.detail-summary strong {
  font-size: 19px;
}
.steps {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding: 0 0 16px;
  margin: 0 0 24px;
  list-style: none;
  font-size: 13px;
  color: var(--muted);
}
.steps li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.steps b {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--subtle);
  font-size: 12px;
}
.steps [aria-current="step"] {
  color: var(--accent);
  font-weight: 650;
}
.steps [aria-current="step"] b {
  background: var(--brand);
  color: #fff;
}
.two-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}
.column-panel {
  min-width: 0;
}
.column-panel + .column-panel {
  border-left: 1px solid var(--line);
  padding-left: 26px;
}
.column-panel h2 {
  margin-bottom: 18px;
}
.file-zone {
  border: 1px dashed var(--line);
  padding: 22px;
  border-radius: 6px;
  background: var(--surface);
  margin-bottom: 18px;
}
.file-zone input {
  padding: 8px;
  border: 0;
}
.file-zone label {
  margin: 0;
}
.preview {
  max-height: 220px;
  margin: 18px 0;
}
.preview td,
.preview th {
  padding: 8px 10px;
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.comparison-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}
.comparison-stats button {
  font-size: 12px;
}
.comparison-stats button.active {
  border-color: var(--accent);
  color: var(--accent);
}
details {
  border-block: 1px solid var(--line);
  padding: 14px 0;
  margin: 16px 0;
}
summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
}
details .fields {
  margin-top: 16px;
}
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  max-width: min(420px, calc(100vw - 32px));
  background: var(--ink);
  color: var(--surface);
  padding: 14px 18px;
  border-radius: 6px;
  box-shadow: var(--shadow);
  z-index: 100;
}
.login-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.login-form {
  width: min(100%, 400px);
}
.login-form .brand {
  margin-bottom: 40px;
}
.login-form h1 {
  margin-bottom: 28px;
}
.login-form button[type="submit"] {
  width: 100%;
  margin: 8px 0 18px;
}
.login-form footer {
  margin-top: 32px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  font-size: 12px;
  color: var(--muted);
}
.skip {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 200;
  background: var(--surface);
  padding: 10px;
}
.skip:focus {
  top: 8px;
}
[hidden] {
  display: none !important;
}
