@charset "UTF-8";
:root {
  --paper: #f5f4ef;
  --white: #fffefa;
  --ink: #182a39;
  --muted: #727b7e;
  --line: #dedfd8;
  --orange: #c44d2b;
  --orange-light: #f7e9de;
  --teal: #427b78;
  --navy-soft: #d7e1e4;
  --red: #b03831;
  --radius: 10px;
  --shadow: 0 18px 70px #182a3926;
  --body: "Segoe UI", "Microsoft JhengHei", "PingFang SC", sans-serif;
  --mono: "Cascadia Code", "Consolas", monospace;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 14px/1.6 var(--body);
  letter-spacing: 0.01em;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.43;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #e5a266;
  outline-offset: 3px;
}
a {
  color: inherit;
}
button {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(26px, 2.5vw, 35px);
  line-height: 1.4;
  letter-spacing: -0.045em;
  font-weight: 650;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.02em;
  line-height: 1.5;
}
h3 {
  font-size: 14px;
}
strong {
  font-weight: 650;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: -60px;
  left: 20px;
  padding: 12px;
  background: var(--white);
  z-index: 20;
}
.skip-link:focus {
  top: 10px;
}
.app-shell {
  display: flex;
  min-height: 100vh;
}
.login-screen {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(100% - 64px, 930px);
  margin: 0 auto;
  padding: 64px 0 32px;
}
.login-frame {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  min-height: 510px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 20px 70px #182a3909;
}
.login-identity {
  display: flex;
  flex-direction: column;
  padding: 40px;
  background: var(--ink);
  color: var(--white);
  position: relative;
}
.login-identity::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 40px;
  width: 58px;
  height: 4px;
  background: #f4a479;
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 15px;
  font:
    26px/1.1 Georgia,
    serif;
}
.login-intro {
  margin: auto 0;
  padding: 50px 0 44px;
}
.login-intro .eyebrow {
  color: #a9b9bf;
  font-size: 9px;
  letter-spacing: 0.09em;
}
.login-intro p {
  margin: 17px 0 20px;
  font-size: 36px;
  font-weight: 550;
  line-height: 1.55;
  letter-spacing: -0.03em;
}
.login-intro > span:last-child {
  color: #a9b9bf;
  font-size: 12px;
  line-height: 1.9;
}
.login-signature {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #a9b9bf;
  font: 9px var(--mono);
  letter-spacing: 0.06em;
}
.login-signature > span {
  color: #f4a479;
  font: 23px var(--body);
}
.login-panel {
  align-self: center;
  padding: 48px;
}
.login-panel > .eyebrow {
  color: var(--orange);
}
.login-panel h1 {
  margin: 17px 0 11px;
  font-size: 25px;
}
.login-description {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 33px;
}
.login-label {
  display: block;
  font: 12px var(--mono);
  margin-bottom: 10px;
}
.access-code-field {
  display: flex;
  border: 1px solid #bdc6c6;
  border-radius: 5px;
  background: var(--white);
  min-height: 48px;
}
.access-code-field:focus-within {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px #c44d2b15;
}
.access-code-field input {
  min-width: 0;
  width: 100%;
  border: 0;
  background: none;
  padding: 12px;
  font: 16px var(--mono);
  color: var(--ink);
  outline-offset: -3px;
}
.access-code-field button {
  flex: none;
  border: 0;
  background: none;
  padding: 0 14px;
  font-size: 11px;
  color: var(--muted);
}
.button.login-submit {
  width: 100%;
  min-height: 48px;
  margin-top: 20px;
  justify-content: center;
}
.login-arrow {
  margin-left: auto;
}
.login-error {
  color: var(--red);
  font-size: 12px;
  margin-top: 10px;
}
.login-status {
  min-height: 20px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
}
.login-footnote {
  border-top: 1px solid var(--line);
  margin-top: 29px;
  padding-top: 17px;
  color: var(--muted);
  font-size: 10px;
}
.login-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
  color: var(--muted);
  font: 10px var(--mono);
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}
@media (max-width: 700px) {
  .login-screen {
    width: min(100% - 32px, 460px);
    padding: 30px 0 22px;
  }
  .login-frame {
    grid-template-columns: 1fr;
  }
  .login-identity {
    padding: 27px;
  }
  .login-identity::before {
    left: 27px;
  }
  .login-intro {
    padding: 27px 0 0;
  }
  .login-intro .eyebrow,
  .login-signature,
  .login-intro > span:last-child {
    display: none;
  }
  .login-intro p {
    margin: 0;
    font-size: 25px;
  }
  .login-intro br {
    display: none;
  }
  .login-panel {
    padding: 32px 27px;
  }
  .login-panel h1 {
    font-size: 23px;
  }
  .login-description {
    margin-bottom: 25px;
  }
  .login-footer {
    font-size: 8px;
  }
  .topbar-actions {
    gap: 12px;
  }
}
.sidebar {
  width: 216px;
  flex: none;
  background: var(--ink);
  color: #dfe7e9;
  display: flex;
  flex-direction: column;
  padding: 36px 18px 25px;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 3;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  line-height: 1.1;
  margin: 0 14px 51px;
}
.brand-icon {
  font-family: Georgia, serif;
  font-size: 43px;
  font-weight: bold;
  letter-spacing: -9px;
  position: relative;
  padding-right: 10px;
}
.brand-icon span {
  color: #f4a479;
}
.brand-sub {
  display: block;
  font: 10px/1.7 var(--body);
  letter-spacing: 0.23em;
  margin-top: 5px;
  color: #acbec5;
}
.nav-caption {
  font: 10px var(--mono);
  letter-spacing: 0.16em;
  color: #8ca0ab;
  margin: 0 17px 16px;
}
.navigation {
  display: grid;
  gap: 7px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  text-align: left;
  padding: 13px 15px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: #b8c8cf;
  font-size: 13px;
  font-weight: 550;
  transition:
    background 0.2s,
    color 0.2s;
}
.nav-item:hover {
  background: #ffffff0c;
  color: #fff;
}
.nav-item.active {
  background: #f1eee5;
  color: var(--ink);
}
.nav-symbol {
  font-size: 20px;
  line-height: 1;
  width: 20px;
}
.nav-count {
  margin-left: auto;
  background: #182a3912;
  font: 11px var(--mono);
  padding: 3px 6px;
  border-radius: 4px;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 26px 14px 0;
  border-top: 1px solid #ffffff18;
  display: flex;
  gap: 9px;
  font-size: 11px;
  color: #c4d1d6;
}
.status-dot {
  background: #84a997;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 6px;
}
.sidebar-footnote {
  display: block;
  color: #8198a3;
  font-size: 10px;
  margin-top: 6px;
}
.workspace {
  margin-left: 216px;
  min-width: 0;
  width: calc(100% - 216px);
}
.topbar {
  height: 77px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 45px;
  gap: 16px;
}
.repo-context {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.repo-context > span:nth-child(2) {
  font: 12px var(--mono);
  overflow-wrap: anywhere;
}
.eyebrow {
  font: 10px/1.5 var(--mono);
  letter-spacing: 0.13em;
  color: var(--muted);
}
.branch-label {
  border: 1px solid var(--line);
  border-radius: 4px;
  font: 10px var(--mono);
  padding: 4px 8px;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.text-link {
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.text-link:hover,
.text-button:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
main {
  max-width: 1570px;
  margin: auto;
  padding: 38px 45px 22px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 29px;
}
.page-heading .eyebrow {
  margin-bottom: 9px;
}
.page-heading p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 9px;
}
.heading-actions {
  display: flex;
  gap: 15px;
  align-items: center;
}
.scan-time {
  font-size: 11px;
  color: var(--muted);
  max-width: 160px;
  text-align: right;
}
.button {
  border: 1px solid transparent;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 17px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
  background: var(--white);
  transition:
    background 0.15s,
    transform 0.15s;
}
.button:active:not(:disabled) {
  transform: translateY(1px);
}
.button.primary {
  background: var(--ink);
  color: white;
}
.button.primary:hover:not(:disabled) {
  background: #2b4658;
}
.button.outline {
  background: transparent;
  border-color: #c5cbc8;
}
.button.outline:hover:not(:disabled) {
  background: #e8e9e1;
}
.button.danger-outline {
  background: transparent;
  border-color: #dec5bf;
  color: var(--red);
}
.button.danger-outline:hover:not(:disabled) {
  background: #f8e6e1;
}
.button.danger {
  background: var(--red);
  color: white;
}
.button.small {
  padding: 7px 12px;
  font-size: 11px;
}
.button.subtle {
  background: #ffffff80;
}
.text-button {
  background: none;
  border: 0;
  padding: 4px 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--orange);
}
.icon-button {
  border: 0;
  background: none;
  font-size: 25px;
  font-weight: 300;
  padding: 0 5px;
  line-height: 1.2;
}
.muted {
  color: var(--muted);
  font-size: 12px;
}
.notice {
  padding: 12px 16px;
  background: #e7eee7;
  border: 1px solid #cfdbce;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.notice.error {
  background: #faece5;
  border-color: #e4c4b4;
  color: #983c29;
}
.active-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #ece9df;
  border: 1px solid #ddd7c8;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 12px;
}
.active-progress > div {
  flex: 1;
}
.active-progress strong {
  display: block;
}
.active-progress span:not(.spinner) {
  color: var(--muted);
  font-size: 11px;
}
.spinner {
  height: 17px;
  width: 17px;
  border: 2px solid #b6bbb6;
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  flex: none;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.metrics-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 0.85fr 1fr;
  gap: 14px;
  margin-bottom: 22px;
}
.metric {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 20px 22px;
  min-height: 137px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.metric-featured {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}
.metric-featured:after {
  content: "";
  width: 96px;
  height: 96px;
  position: absolute;
  right: -30px;
  top: -30px;
  border: 1px solid #ffffff14;
  border-radius: 50%;
  box-shadow:
    0 0 0 20px #ffffff05,
    0 0 0 40px #ffffff04;
}
.metric-label {
  font-size: 11px;
  color: var(--muted);
}
.metric-featured .metric-label {
  color: #b0c3cb;
}
.metric > strong {
  font: 500 clamp(24px, 2.1vw, 34px) / 1.4 var(--mono);
  letter-spacing: -0.07em;
  margin-top: 7px;
  white-space: nowrap;
}
.metric-foot {
  font-size: 10px;
  color: var(--muted);
  margin-top: auto;
  padding-top: 7px;
}
.metric-featured .metric-foot {
  color: #b0c3cb;
}
.overview-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(250px, 1fr);
  gap: 22px;
  margin-bottom: 22px;
}
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 25px;
  min-width: 0;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}
.panel-heading .eyebrow,
.deployment-panel > .eyebrow {
  display: block;
  margin-bottom: 5px;
}
.pill {
  font: 11px var(--mono);
  background: #efeee8;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 5px 9px;
}
.capacity-bar {
  height: 23px;
  background: #ecece5;
  display: flex;
  overflow: hidden;
  border-radius: 4px;
  gap: 2px;
}
.capacity-segment {
  height: 100%;
  min-width: 0;
  transition: width 0.6s;
}
.capacity-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 11px;
  font-size: 10px;
  color: var(--muted);
  gap: 10px;
}
.capacity-labels > span:first-child {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink);
}
.type-legend {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin: 25px 0 18px;
}
.legend-item {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 10px;
  color: var(--muted);
}
.legend-item strong {
  color: var(--ink);
  font-family: var(--mono);
  font-weight: 400;
}
.legend-dot {
  height: 7px;
  width: 7px;
  border-radius: 2px;
  display: inline-block;
}
.help-note {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 18px;
}
.repository-size {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 17px;
  font-size: 11px;
  gap: 15px;
}
.repository-size strong {
  font-family: var(--mono);
  font-weight: 500;
}
.deployment-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 21px 0 8px;
  font-size: 15px;
  font-weight: 600;
}
.deployment-status:before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
}
.deployment-status.success:before {
  background: var(--teal);
}
.deployment-status.failed:before {
  background: var(--red);
}
.deployment-panel > .text-link {
  display: inline-block;
  color: var(--orange);
  font-size: 11px;
  margin-top: 10px;
}
.index-action {
  padding-top: 21px;
  margin-top: 22px;
  border-top: 1px solid var(--line);
}
.index-action p {
  font-size: 11px;
  color: var(--muted);
  margin: 5px 0 12px;
}
.bottom-columns {
  grid-template-columns: 1.3fr 1fr;
}
.rank-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid #eeeee7;
}
.rank-row:last-child {
  border: 0;
  padding-bottom: 0;
}
.rank-number {
  font: 10px var(--mono);
  color: var(--muted);
  width: 17px;
  flex: none;
}
.file-symbol {
  height: 32px;
  width: 32px;
  border: 1px solid #dbe1dc;
  background: #f0f4ed;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  color: var(--teal);
  font-size: 9px;
  font-weight: 700;
  flex: none;
}
.rank-name {
  min-width: 0;
  flex: 1;
}
.rank-name strong {
  display: block;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 550;
}
.rank-name small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rank-size {
  font: 11px var(--mono);
  white-space: nowrap;
}
.project-rank-row {
  padding: 10px 0 15px;
}
.project-rank-row > div:first-child {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  gap: 15px;
  margin-bottom: 8px;
}
.project-rank-row strong {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.project-rank-row span {
  font: 10px var(--mono);
  white-space: nowrap;
}
.mini-bar {
  height: 5px;
  background: #eeeee7;
  border-radius: 2px;
  overflow: hidden;
}
.mini-bar > span {
  display: block;
  height: 100%;
  background: var(--teal);
}
.warnings-block {
  padding: 17px 20px;
  border-left: 3px solid var(--orange);
  background: var(--orange-light);
  font-size: 12px;
  margin-bottom: 20px;
}
.warnings-block p + p {
  margin-top: 8px;
}
.section-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 23px;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 140px;
  flex: 1;
  max-width: 380px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--white);
  padding: 0 12px;
}
.search-field > span {
  font-size: 23px;
  color: #879091;
  line-height: 1;
}
.search-field input {
  border: 0;
  background: transparent;
  width: 100%;
  padding: 10px 0;
  font-size: 12px;
  min-width: 0;
  color: var(--ink);
}
.search-field:focus-within {
  outline: 2px solid #e5a266;
  outline-offset: 1px;
}
.search-field input:focus {
  outline: 0;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.project-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: border-color 0.2s;
}
.project-card:hover {
  border-color: #9faeab;
}
.project-card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.project-icon {
  font-size: 25px;
  color: var(--teal);
}
.project-card h2 {
  font-size: 15px;
  overflow-wrap: anywhere;
  margin: 15px 0 6px;
}
.project-path {
  font: 10px/1.5 var(--mono);
  color: var(--muted);
  overflow-wrap: anywhere;
  min-height: 30px;
}
.project-card-metrics {
  display: flex;
  gap: 18px;
  padding: 24px 0 16px;
  margin-top: auto;
}
.project-card-metrics > div > strong {
  display: block;
  font: 18px/1.5 var(--mono);
  letter-spacing: -0.04em;
}
.project-card-metrics span {
  color: var(--muted);
  font-size: 10px;
}
.project-card-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 18px;
}
.file-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.file-toolbar .search-field {
  max-width: none;
}
.filter-field {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  font-size: 10px;
  color: var(--muted);
}
select {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 5px;
  padding: 9px 28px 9px 10px;
  color: var(--ink);
  font-size: 11px;
  max-width: 170px;
}
.selection-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  background: #eaece4;
  border: 1px solid var(--line);
  border-radius: 6px 6px 0 0;
  padding: 12px 15px;
}
.selection-bar strong {
  font-size: 11px;
}
.selection-bar .muted {
  font-size: 10px;
}
.selection-bar .text-button {
  margin-left: 12px;
}
.selection-actions {
  display: flex;
  gap: 8px;
}
.table-wrap {
  position: relative;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-top: 0;
  background: var(--white);
  border-radius: 0 0 6px 6px;
}
.file-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 11px;
}
.file-table th {
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  background: #f9f9f3;
  white-space: nowrap;
}
.file-table th,
.file-table td {
  padding: 13px 12px;
  border-bottom: 1px solid #e8e9e1;
}
.file-table td {
  height: 65px;
}
.file-table tbody tr:last-child td {
  border-bottom: 0;
}
.file-table tbody tr:hover {
  background: #f9faf4;
}
.file-table tr.selected {
  background: #eef3ef !important;
}
.file-table .checkbox-cell {
  width: 38px;
  padding-left: 17px;
  padding-right: 0;
}
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--teal);
  width: 15px;
  height: 15px;
  vertical-align: middle;
  cursor: pointer;
}
.file-cell {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 240px;
  max-width: 510px;
}
.file-cell strong {
  font-size: 11px;
  font-weight: 550;
  display: block;
  overflow-wrap: anywhere;
}
.file-cell small {
  display: block;
  font-size: 9px;
  line-height: 1.6;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.file-type {
  font: 9px var(--mono);
  background: #f0f0e9;
  border-radius: 3px;
  padding: 4px 6px;
}
.number-cell {
  text-align: right;
  font-family: var(--mono);
  white-space: nowrap;
}
.project-cell {
  max-width: 200px;
  overflow-wrap: anywhere;
  font-size: 10px;
  color: var(--muted);
}
.file-open {
  font-size: 18px;
  text-decoration: none;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: var(--muted);
  margin-top: 15px;
  gap: 15px;
}
.pagination > div {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pagination .button {
  font-size: 14px;
}
.empty-row {
  text-align: center !important;
  padding: 50px !important;
  color: var(--muted);
}
.empty-state {
  text-align: center;
  padding: 65px 20px;
  background: var(--white);
  border: 1px dashed #bfcac4;
  border-radius: var(--radius);
  margin-bottom: 25px;
}
.empty-mark {
  font-size: 55px;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 20px;
  display: block;
}
.empty-state h2 {
  font-size: 23px;
  margin-bottom: 10px;
}
.empty-state p {
  font-size: 12px;
  color: var(--muted);
  max-width: 440px;
  margin: 0 auto 22px;
}
.empty-state small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 13px;
}
.jobs-list {
  display: grid;
  gap: 12px;
}
.job-row {
  display: flex;
  align-items: center;
  gap: 17px;
  background: var(--white);
  padding: 18px 21px;
  border: 1px solid var(--line);
  border-radius: 7px;
  min-width: 0;
}
.job-kind-icon {
  height: 37px;
  width: 37px;
  flex: none;
  background: #ecefe7;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--teal);
  font-size: 21px;
}
.job-row-main {
  flex: 1;
  min-width: 0;
}
.job-row-main strong {
  font-size: 13px;
}
.job-row-main small {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  white-space: nowrap;
  border-radius: 4px;
  background: #ecece7;
  padding: 4px 8px;
  color: #57656b;
}
.status-badge.ready,
.status-badge.completed,
.status-badge.committed {
  color: #2c6b58;
  background: #e3eee2;
}
.auto-optimize-help {
  margin: 12px 0 18px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}
.auto-result {
  border: 1px solid #cbd8ce;
  border-left: 3px solid var(--teal);
  border-radius: 6px;
  background: #f5f8f1;
  padding: 19px 22px;
  margin: 0 0 20px;
}
.auto-result-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}
.auto-result-heading .spinner {
  flex: none;
}
.auto-result-phase {
  font-size: 12px;
  color: var(--muted);
  margin-top: 7px;
  overflow-wrap: anywhere;
}
.auto-result-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font: 12px/1.8 var(--mono);
  margin-top: 12px;
}
.auto-result-stats strong {
  font-size: 16px;
}
.auto-result-arrow {
  color: var(--muted);
}
.auto-result-details {
  margin-top: 13px;
}
.auto-result-details summary {
  font-size: 11px;
  cursor: pointer;
  color: var(--teal);
}
.auto-result-details summary:focus-visible {
  outline: 3px solid #e5a266;
  outline-offset: 3px;
}
.auto-result-file {
  display: grid;
  gap: 4px;
  padding: 12px 0;
  border-top: 1px solid #dce5da;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.auto-result-file:first-of-type {
  margin-top: 10px;
}
.auto-result-file > strong {
  font-family: var(--mono);
}
.auto-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 12px;
}
.status-badge.failed,
.status-badge.interrupted {
  background: #f7e7df;
  color: #a6432b;
}
.status-badge.running,
.status-badge.queued {
  background: #f1e8d3;
  color: #8d6624;
}
.note-card {
  background: #eeeee6;
  border: 1px solid #dddfd3;
  border-radius: 6px;
  padding: 17px 19px;
  margin-top: 22px;
  font-size: 11px;
}
.note-card p {
  color: #707770;
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.85;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font: 9px var(--mono);
  color: #8b9390;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 36px;
}
.dialog {
  background: var(--white);
  border: 1px solid #d5dbd6;
  border-radius: 12px;
  color: var(--ink);
  padding: 28px;
  width: min(670px, calc(100vw - 30px));
  max-height: calc(100dvh - 40px);
  box-shadow: var(--shadow);
  overflow: auto;
}
.dialog::backdrop {
  background: #132b3c9c;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 19px;
}
.dialog-heading h2 {
  margin-top: 6px;
  overflow-wrap: anywhere;
}
.dialog-heading .icon-button {
  margin-top: -5px;
}
.dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.job-dialog {
  width: min(950px, calc(100vw - 30px));
}
.job-summary {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  background: #efefe8;
  border-radius: 6px;
  padding: 14px 17px;
  margin: 18px 0;
}
.job-summary > span {
  font-size: 12px;
}
.job-summary strong {
  font-family: var(--mono);
  font-size: 20px;
  color: var(--teal);
}
.job-meta {
  font-size: 10px;
  color: var(--muted);
  overflow-wrap: anywhere;
  margin-bottom: 12px;
}
.job-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.job-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.job-item-path {
  font: 11px/1.7 var(--mono);
  overflow-wrap: anywhere;
  flex: 1;
}
.job-item-stat {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 11px;
  margin-top: 8px;
}
.saving {
  color: var(--teal);
  font-weight: 600;
}
.item-warning {
  font-size: 10px;
  margin-top: 9px;
  color: #a35c25;
  background: #f8eee2;
  padding: 8px 11px;
  border-radius: 4px;
  overflow-wrap: anywhere;
}
.reference-list {
  font: 10px/1.7 var(--mono);
  overflow-wrap: anywhere;
  margin-top: 8px;
  color: var(--muted);
}
.apply-confirmation {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  border: 1px solid #e1cfba;
  background: #faf2e5;
  padding: 15px;
  border-radius: 6px;
  font-size: 11px;
}
.apply-confirmation input {
  flex: none;
  margin-top: 3px;
}
.apply-confirmation strong {
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
}
.job-error {
  background: #faece5;
  border: 1px solid #e4c4b4;
  color: #983c29;
  padding: 14px;
  border-radius: 6px;
  overflow-wrap: anywhere;
  font-size: 12px;
}
.preview-code {
  padding: 14px;
  background: #f0f2ed;
  font: 11px/1.65 var(--mono);
  overflow: auto;
  max-height: 300px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border-radius: 6px;
}
.comparison-dialog {
  width: min(1450px, calc(100vw - 30px));
}
.comparison-controls {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--muted);
  margin: 18px 0;
}
.comparison-controls label {
  color: var(--ink);
}
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.comparison-grid figure {
  margin: 0;
  min-width: 0;
}
.comparison-grid figcaption {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  padding: 12px;
  background: #ecefe8;
  border: 1px solid var(--line);
  border-radius: 6px 6px 0 0;
  font-size: 11px;
}
.comparison-grid figcaption span {
  font: 10px var(--mono);
  color: var(--muted);
}
.comparison-grid figcaption a {
  margin-left: auto;
  font-size: 10px;
  text-decoration: none;
  color: var(--orange);
}
.image-viewport {
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 6px 6px;
  background-color: #f8f8f6;
  background-image:
    linear-gradient(45deg, #e4e5e0 25%, transparent 25%),
    linear-gradient(-45deg, #e4e5e0 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e4e5e0 75%),
    linear-gradient(-45deg, transparent 75%, #e4e5e0 75%);
  background-size: 20px 20px;
  background-position:
    0 0,
    0 10px,
    10px -10px,
    -10px 0;
  overflow: auto;
  height: clamp(240px, 52vh, 630px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-viewport img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.comparison-grid.natural .image-viewport {
  display: block;
}
.comparison-grid.natural img {
  max-width: none;
  max-height: none;
  width: auto;
  height: auto;
}
.project-archive-button {
  margin-top: 14px;
  padding: 10px 0 0;
  background: none;
  border: 0;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  text-align: left;
  font-size: 10px;
}
.project-archive-button:hover:not(:disabled) {
  color: var(--orange);
}
.archive-intro {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 24px 26px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
  margin-bottom: 22px;
}
.archive-intro-icon {
  font-size: 37px;
  color: #b6ccc7;
}
.archive-intro p {
  font-size: 11px;
  color: #b5c7cc;
  margin-top: 7px;
  max-width: 760px;
}
.archive-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.archive-list > .empty-state {
  grid-column: 1 / -1;
}
.archive-row {
  padding: 23px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}
.archive-row-heading {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  justify-content: space-between;
}
.archive-row h3 {
  font-size: 14px;
  overflow-wrap: anywhere;
}
.archive-meta {
  color: var(--muted);
  font-size: 10px;
  overflow-wrap: anywhere;
  margin-top: 5px;
}
.archive-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 25px 0;
}
.archive-metrics strong {
  display: block;
  font: 18px/1.5 var(--mono);
  letter-spacing: -0.05em;
  overflow-wrap: anywhere;
}
.archive-metrics span {
  color: var(--muted);
  font-size: 10px;
}
.archive-footer {
  display: flex;
  gap: 15px;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 15px;
}
.status-badge.publishing,
.status-badge.applying {
  background: #f1e8d3;
  color: #8d6624;
}
@media (max-width: 1000px) {
  .archive-list {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .archive-intro {
    padding: 20px;
    gap: 15px;
    align-items: flex-start;
  }
  .archive-row {
    padding: 19px;
  }
  .archive-row-heading {
    flex-wrap: wrap;
    gap: 10px;
  }
  .archive-metrics strong {
    font-size: 16px;
  }
  .archive-footer {
    flex-wrap: wrap;
  }
}
@media (min-width: 1600px) {
  main {
    padding-top: 44px;
  }
  .metric {
    padding-top: 24px;
    padding-bottom: 24px;
  }
  .panel {
    padding: 28px;
  }
  .capacity-panel {
    min-height: 340px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 185px;
    padding-left: 13px;
    padding-right: 13px;
  }
  .workspace {
    margin-left: 185px;
    width: calc(100% - 185px);
  }
  main {
    padding: 30px 25px 22px;
  }
  .topbar {
    padding: 0 25px;
  }
  .heading-actions {
    flex-direction: column-reverse;
    gap: 6px;
    align-items: flex-end;
  }
  .metric {
    padding: 17px;
  }
  .metrics-grid {
    gap: 10px;
  }
  .overview-columns {
    gap: 16px;
    grid-template-columns: 1.4fr 1fr;
  }
  .panel {
    padding: 21px;
  }
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .file-toolbar {
    flex-wrap: wrap;
  }
  .file-toolbar .search-field {
    flex-basis: 100%;
    max-width: none;
  }
  .filter-field select {
    max-width: 220px;
  }
  .repo-context > .eyebrow {
    display: none;
  }
}
@media (max-width: 900px) {
  .sidebar {
    width: 72px;
    padding: 25px 9px;
  }
  .brand {
    margin: 0 5px 38px;
  }
  .brand > span:last-child,
  .nav-caption,
  .nav-item > .nav-count,
  .sidebar-bottom {
    display: none;
  }
  .brand-icon {
    font-size: 37px;
  }
  .nav-item {
    font-size: 0;
    padding: 14px;
    gap: 0;
    justify-content: center;
  }
  .nav-symbol {
    font-size: 22px;
  }
  .workspace {
    margin-left: 72px;
    width: calc(100% - 72px);
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .metric {
    min-height: 125px;
  }
  .metric > strong {
    font-size: 29px;
  }
  .overview-columns {
    grid-template-columns: 1fr;
  }
  .deployment-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 30px;
  }
  .deployment-panel > .eyebrow,
  .deployment-panel > h2,
  .deployment-panel > .deployment-status,
  .deployment-panel > .muted,
  .deployment-panel > .text-link {
    grid-column: 1;
  }
  .deployment-panel > .eyebrow {
    grid-row: 1;
  }
  .deployment-panel > h2 {
    grid-row: 2;
  }
  .deployment-panel > .deployment-status {
    grid-row: 3;
    margin-top: 15px;
  }
  .deployment-panel > .muted {
    grid-row: 4;
  }
  .deployment-panel > .text-link {
    grid-row: 5;
  }
  .index-action {
    grid-column: 2;
    grid-row: 1 / 6;
    margin: 0;
    padding: 10px 0 0 25px;
    border-top: 0;
    border-left: 1px solid var(--line);
  }
  .topbar {
    height: 65px;
  }
  .project-cell {
    max-width: 150px;
  }
  .filter-field {
    flex: 1;
  }
  .filter-field select {
    flex: 1;
    min-width: 0;
    max-width: none;
  }
  .file-toolbar {
    gap: 8px;
  }
  .section-toolbar > .muted {
    max-width: 70%;
  }
}
@media (max-width: 600px) {
  .sidebar {
    position: sticky;
    inset: auto;
    top: 0;
    width: 100%;
    height: auto;
    padding: 10px 15px;
    flex-direction: row;
    align-items: center;
    gap: 15px;
  }
  .brand {
    margin: 0;
    flex: none;
  }
  .brand-icon {
    font-size: 30px;
    line-height: 1;
  }
  .navigation {
    display: flex;
    margin-left: auto;
    gap: 4px;
  }
  .nav-item {
    padding: 10px;
    min-width: 40px;
  }
  .nav-symbol {
    font-size: 21px;
  }
  .app-shell {
    display: block;
  }
  .workspace {
    width: 100%;
    margin: 0;
  }
  .topbar {
    height: 55px;
    padding: 0 18px;
    gap: 8px;
  }
  .repo-context {
    gap: 8px;
  }
  .repo-context > span:nth-child(2) {
    font-size: 10px;
  }
  .branch-label {
    max-width: 75px;
    font-size: 9px;
  }
  .topbar > .text-link {
    font-size: 10px;
  }
  main {
    padding: 26px 18px 20px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 22px;
  }
  .page-heading h1 {
    font-size: 24px;
    max-width: 250px;
  }
  .page-heading p {
    font-size: 10px;
    max-width: 250px;
  }
  .heading-actions .button {
    padding: 8px 11px;
    font-size: 10px;
  }
  .scan-time {
    font-size: 9px;
    max-width: 110px;
  }
  .eyebrow {
    font-size: 9px;
  }
  .metrics-grid {
    gap: 10px;
    margin-bottom: 16px;
  }
  .metric {
    padding: 15px;
    min-height: 120px;
  }
  .metric > strong {
    font-size: 25px;
  }
  .metric-label {
    font-size: 10px;
  }
  .metric-foot {
    font-size: 9px;
  }
  .panel {
    padding: 19px;
  }
  .panel-heading {
    margin-bottom: 19px;
  }
  h2 {
    font-size: 17px;
  }
  .capacity-labels {
    font-size: 9px;
  }
  .capacity-labels > span:first-child {
    font-size: 10px;
  }
  .type-legend {
    gap: 10px;
  }
  .deployment-panel {
    display: block;
  }
  .index-action {
    border: 0;
    border-top: 1px solid var(--line);
    padding: 18px 0 0;
    margin-top: 18px;
  }
  .project-grid {
    grid-template-columns: 1fr;
  }
  .project-card {
    padding: 20px;
  }
  .filter-field {
    gap: 5px;
  }
  .filter-field > span {
    display: none;
  }
  .filter-field select {
    width: 100%;
    font-size: 10px;
    padding-left: 8px;
    padding-right: 20px;
  }
  .selection-bar {
    padding: 12px;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .selection-actions {
    width: 100%;
  }
  .selection-actions .button {
    flex: 1;
  }
  .file-table th,
  .file-table td {
    padding: 11px 9px;
  }
  .file-cell {
    min-width: 220px;
    max-width: 300px;
  }
  .file-table th:nth-child(5),
  .file-table td:nth-child(5) {
    display: none;
  }
  .job-row {
    padding: 15px;
    gap: 11px;
    flex-wrap: wrap;
  }
  .job-row-main {
    flex-basis: calc(100% - 65px);
  }
  .job-row > .status-badge {
    margin-left: 48px;
  }
  .job-row > .button {
    margin-left: auto;
  }
  .section-toolbar {
    gap: 12px;
  }
  .section-toolbar .muted {
    font-size: 10px;
  }
  .page-footer {
    font-size: 8px;
  }
  .dialog {
    padding: 20px;
    max-height: calc(100dvh - 24px);
  }
  .dialog-heading h2 {
    font-size: 19px;
  }
  .comparison-grid {
    grid-template-columns: 1fr;
  }
  .image-viewport {
    height: 35vh;
  }
  .comparison-grid figcaption {
    font-size: 10px;
  }
  .job-item-top {
    align-items: flex-start;
  }
  .job-item-top .button {
    padding: 6px 8px;
    font-size: 10px;
  }
  .job-item-stat {
    gap: 8px;
    font-size: 10px;
  }
  .job-summary {
    gap: 10px;
  }
  .job-summary > span {
    font-size: 10px;
  }
  .job-summary strong {
    font-size: 17px;
  }
  .active-progress {
    padding: 11px;
  }
  .active-progress .button {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
