:root {
  --palette-lavender-bg: #d4d4f7;
  --palette-lavender-fg: #0f0f57;
  --palette-pink-bg: #f5cffc;
  --palette-pink-fg: #520661;
  --palette-peach-bg: #ffe5cc;
  --palette-peach-fg: #663301;
  --palette-green-bg: #d5fccf;
  --palette-green-fg: #146105;
  --palette-blue-bg: #e7f0fe;
  --palette-blue-fg: #0285ff;
  --palette-blue-text: color-mix(in srgb, var(--palette-blue-fg) 70%, var(--foreground));
  --palette-red-bg: #ffebe8;
  --palette-red-fg: #e02e2a;
  --palette-red-text: color-mix(in srgb, var(--palette-red-fg) 80%, var(--foreground));
  --palette-gray-bg: #e8e8e8;
  --palette-gray-fg: #5d5d5d;
  --background: #f7f8fb;
  --surface: #ffffff;
  --surface-muted: #f4f6f9;
  --foreground: #171717;
  --muted-foreground: #6b7280;
  --border: rgba(23, 23, 23, 0.1);
  --brand: var(--palette-blue-fg);
  --brand-hover: var(--palette-blue-text);
  --brand-soft: var(--palette-blue-bg);
  --danger: var(--palette-red-text);
  --danger-soft: var(--palette-red-bg);
  --status-unused-bg: var(--palette-green-bg);
  --status-unused-text: var(--palette-green-fg);
  --status-partial-bg: var(--palette-peach-bg);
  --status-partial-text: var(--palette-peach-fg);
  --shadow: 0 24px 70px rgba(22, 32, 50, 0.08);
  --radius-xl: 16px;
  --radius-full: 999px;
  --table-toolbar-control-height: 36px;
  --table-toolbar-control-radius: 9px;
  --table-toolbar-control-font-size: 12px;
  --layer-sticky-header: 20;
  --layer-popover: 30;
  --site-header-height: 72px;
  --font-sans:
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --font-display-serif: "Source Han Serif SC", "Noto Serif CJK SC", "Songti SC", STSong, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--foreground);
  background:
    radial-gradient(circle at 12% 18%, rgba(0, 122, 255, 0.06), transparent 28rem),
    radial-gradient(circle at 88% 82%, rgba(113, 87, 255, 0.06), transparent 30rem), var(--background);
  font-family: var(--font-sans);
}

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

a {
  color: inherit;
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

.page-shell {
  display: grid;
  min-height: 100vh;
  grid-template-rows: auto 1fr auto;
}

.site-header,
.main-content,
.site-footer {
  width: calc(100% - 32px);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  z-index: var(--layer-sticky-header);
  top: 0;
  display: grid;
  width: 100%;
  min-height: var(--site-header-height);
  padding: 0 16px;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  border-bottom: 1px solid var(--border);
  background: var(--background);
  box-shadow: 0 8px 24px rgba(22, 32, 50, 0.035);
}

.brand,
.account-area {
  display: inline-flex;
  align-items: center;
}

.site-header-left {
  display: flex;
  min-width: 0;
  align-items: center;
  grid-column: 1;
  gap: 14px;
  overflow: hidden;
}

.brand {
  gap: 10px;
  justify-self: start;
  min-width: 0;
  border-radius: 10px;
}

.brand:focus-visible,
.footer-link:focus-visible,
.version-back-link:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(0, 122, 255, 0.22);
  outline-offset: 2px;
}

.brand-mark {
  display: block;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(23, 23, 23, 0.14);
}

.brand-name {
  flex: 0 0 auto;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.brand-level {
  min-width: 0;
  margin-left: 2px;
  padding-left: 10px;
  border-left: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.site-page-name {
  margin: 0;
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 600;
  grid-column: 2;
  justify-self: center;
}

.header-breadcrumb {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  color: var(--muted-foreground);
  font-size: 13px;
  white-space: nowrap;
}

.header-breadcrumb:not(:empty)::before {
  flex: 0 0 auto;
  color: #bdc2ca;
  content: "/";
}

.header-breadcrumb a,
.header-breadcrumb button,
.header-breadcrumb strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-breadcrumb button {
  min-width: 0;
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.header-breadcrumb a:hover,
.header-breadcrumb button:hover {
  color: #0067db;
}

.header-breadcrumb button:focus-visible {
  border-radius: 3px;
  outline: 2px solid rgba(0, 103, 219, 0.28);
  outline-offset: 3px;
}

.header-breadcrumb strong {
  color: #4b5563;
  font-weight: 600;
}

.header-breadcrumb-separator {
  flex: 0 0 auto;
  color: #bdc2ca;
}

.account-area {
  gap: 10px;
  grid-column: 3;
  justify-self: end;
}

.account-area > .text-button {
  padding: 4px 6px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.site-header > .text-button {
  justify-self: end;
}

.account-name {
  color: #4b5563;
  font-size: 14px;
  font-weight: 600;
}

.main-content {
  align-self: start;
}

.auth-loading-view,
.login-view {
  display: grid;
  width: 100%;
  min-height: calc(100dvh - var(--site-header-height));
  margin: 0 auto;
  padding: 48px 24px;
  align-items: center;
  justify-items: center;
  grid-template-columns: 1fr;
}

.auth-loading-view {
  align-content: center;
  color: var(--muted-foreground);
  gap: 14px;
}

.auth-loading-view p {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
}

.auth-loading-indicator {
  width: 28px;
  height: 28px;
  border: 3px solid var(--border);
  border-top-color: var(--foreground);
  border-radius: 50%;
  animation: auth-loading-spin 0.8s linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
  .auth-loading-indicator {
    animation: none;
    border-top-color: var(--border);
  }
}

.login-surface {
  width: min(100%, 600px);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 18px 52px rgba(22, 32, 50, 0.06);
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 20px;
  padding: 7px 13px;
  border: 1px solid rgba(0, 122, 255, 0.14);
  border-radius: 999px;
  color: #0067db;
  background: var(--brand-soft);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-family: var(--font-display-serif);
  font-size: clamp(42px, 6vw, 70px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.06;
}

.portal-heading > div > p:last-child {
  margin-bottom: 0;
  color: var(--muted-foreground);
  font-size: 17px;
  line-height: 1.8;
}

.login-card {
  width: 100%;
  padding: 54px 58px 46px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.login-card-heading {
  margin-bottom: 32px;
  text-align: center;
}

.login-card-heading h1 {
  display: flex;
  margin-bottom: 0;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  letter-spacing: -0.005em;
  line-height: 1.2;
}

.login-brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  object-fit: contain;
}

.login-brand-name {
  font-size: 30px;
  font-weight: 750;
  white-space: nowrap;
}

.login-brand-divider {
  width: 1px;
  height: 24px;
  margin-inline: 4px;
  flex: 0 0 1px;
  background: var(--border);
}

.login-brand-product {
  font-size: 23px;
  font-weight: 700;
  white-space: nowrap;
}

.login-access-note {
  margin: 18px 0 0;
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
}

.login-card .field + .field {
  margin-top: 16px;
}

.login-card .field label {
  color: var(--foreground);
  font-size: 13px;
  font-weight: 500;
}

.login-card input {
  min-height: 48px;
  padding: 0 15px;
  border-radius: var(--radius-xl);
  font-size: 14px;
  line-height: 1.4;
}

.login-card input::placeholder {
  color: color-mix(in srgb, var(--muted-foreground) 68%, var(--surface));
}

.login-card input:focus {
  border-color: var(--brand);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}

.login-card .primary-button {
  min-height: 50px;
  margin-top: 22px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
}

.login-card .primary-button:active:not(:disabled) {
  transform: scale(0.99);
}

.field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
}

.field + .field {
  margin-top: 20px;
}

.field label,
.field-label {
  color: #4b5563;
  font-size: 13px;
  font-weight: 600;
  line-height: normal;
}

input,
select {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--foreground);
  background: #ffffff;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

input:hover,
select:hover {
  border-color: rgba(0, 122, 255, 0.25);
}

.primary-button,
.secondary-button,
.text-button {
  border: 0;
  border-radius: 10px;
  font-weight: 600;
}

.primary-button {
  width: 100%;
  min-height: 46px;
  margin-top: 26px;
  color: #ffffff;
  background: var(--foreground);
}

.primary-button:hover {
  background: color-mix(in srgb, var(--foreground) 88%, var(--surface));
}

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

.login-card input:-webkit-autofill,
.login-card input:-webkit-autofill:hover,
.login-card input:-webkit-autofill:focus {
  box-shadow: 0 0 0 1000px var(--surface) inset;
  -webkit-text-fill-color: var(--foreground);
}

.secondary-button {
  min-width: 76px;
  min-height: 46px;
  padding: 0 17px;
  color: #0067db;
  background: var(--brand-soft);
}

button.secondary-button {
  border: 1px solid var(--border);
  color: var(--foreground);
  background: var(--surface);
}

button.secondary-button:hover:not(:disabled) {
  border-color: var(--foreground);
  background: var(--surface-muted);
}

.text-button {
  padding: 8px 11px;
  color: #0067db;
  background: transparent;
}

.text-button:hover {
  background: var(--brand-soft);
}

button.text-button {
  color: var(--foreground);
  background: transparent;
}

button.text-button:hover:not(:disabled) {
  background: var(--surface-muted);
}

button.text-button:disabled {
  color: var(--muted-foreground);
  background: transparent;
  opacity: 1;
}

button.secondary-button:focus-visible,
button.text-button:focus-visible,
.code-copy-control:focus-visible {
  outline: 2px solid var(--foreground);
  outline-offset: 2px;
}

.form-error,
.notice {
  padding: 11px 13px;
  border-radius: 10px;
  color: var(--danger);
  background: var(--danger-soft);
  font-size: 13px;
  line-height: 1.5;
}

.form-error {
  margin: 18px 0 -8px;
}

.portal-dialog {
  width: min(calc(100% - 32px), 520px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  color: var(--foreground);
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(22, 32, 50, 0.2);
}

.portal-dialog::backdrop {
  background: rgba(16, 24, 40, 0.32);
  backdrop-filter: blur(2px);
}

.portal-dialog-heading {
  display: flex;
  padding: 22px 24px 18px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--border);
}

.portal-dialog-heading h2 {
  margin: 0 0 5px;
  font-size: 19px;
}

.portal-dialog-heading p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 13px;
}

.portal-dialog-body {
  padding: 22px 24px;
}

.portal-dialog-body .notice {
  margin: 18px 0 0;
}

.portal-dialog-actions {
  display: flex;
  padding: 16px 24px 22px;
  justify-content: flex-end;
  gap: 10px;
}

.portal-dialog-actions .primary-button,
.portal-dialog-actions .secondary-button {
  width: auto;
  min-height: 40px;
  margin: 0;
  padding: 0 20px;
}

.portal-view {
  min-height: 600px;
  padding-bottom: 28px;
}

.portal-shell {
  display: grid;
  min-width: 0;
  min-height: 600px;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
}

.portal-detail-shell {
  display: grid;
  min-width: 0;
  min-height: 600px;
  align-self: start;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
}

.portal-shell.is-sidebar-collapsed,
.portal-detail-shell.is-sidebar-collapsed {
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
}

.portal-shell.is-single-scope,
.portal-detail-shell.is-single-scope {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.portal-shell.is-single-scope .portal-sidebar,
.portal-shell.is-single-scope .portal-sidebar-expand,
.portal-detail-shell.is-single-scope .portal-sidebar,
.portal-detail-shell.is-single-scope .portal-sidebar-expand {
  display: none;
}

.portal-shell.is-sidebar-collapsed .portal-sidebar,
.portal-detail-shell.is-sidebar-collapsed .portal-sidebar {
  display: none;
}

.portal-detail-workspace {
  display: flex;
  min-width: 0;
  min-height: calc(100vh - 188px);
  padding: 30px 44px 42px;
  flex-direction: column;
}

.portal-workspace,
.portal-detail-workspace,
#code-workspace,
.code-table-card {
  min-width: 0;
  max-width: 100%;
}

.content-container-standard,
.content-container-wide,
.content-container-reading {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
}

.content-container-standard {
  max-width: 1680px;
}

.content-container-wide {
  max-width: 1680px;
}

.content-container-reading {
  max-width: 880px;
}

.portal-sidebar {
  min-width: 0;
  padding: 30px 16px 40px 0;
  border-right: 1px solid var(--border);
}

.portal-sidebar-heading {
  display: flex;
  margin: 0 0 14px 10px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.portal-sidebar h2 {
  margin: 0;
  font-size: 15px;
}

.portal-sidebar-toggle,
.portal-sidebar-expand {
  display: inline-grid;
  width: 28px;
  height: 28px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted-foreground);
  background: var(--surface);
  font-size: 20px;
  line-height: 1;
}

.portal-sidebar-toggle:hover,
.portal-sidebar-expand:hover {
  color: #0067db;
  background: var(--brand-soft);
}

.portal-sidebar-expand {
  margin-top: 30px;
  align-self: start;
}

.portal-sidebar-toggle[hidden],
.portal-sidebar-expand[hidden] {
  display: none;
}

.portal-sidebar-home:hover {
  color: #0067db;
}

.portal-sidebar-note {
  margin: 28px 10px 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 12px;
  line-height: 1.7;
}

.task-tree-group {
  margin: 18px 10px 7px;
  color: #8a929e;
  font-size: 12px;
  font-weight: 600;
}

.task-tree-task,
.task-tree-batch {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  border: 0;
  color: #4b5563;
  background: transparent;
  text-align: left;
}

.task-tree-task {
  min-height: 38px;
  padding: 7px 9px;
  border-radius: 9px;
  gap: 7px;
  font-size: 13px;
}

.task-tree-task:hover,
.task-tree-batch:hover,
.task-tree-task.is-selected,
.task-tree-batch.is-selected {
  color: #0067db;
  background: var(--brand-soft);
}

.task-tree-task.is-selected,
.task-tree-batch.is-selected {
  font-weight: 600;
}

.task-tree-chevron {
  flex: 0 0 12px;
  color: #8d95a1;
  font-size: 11px;
}

.task-tree-count {
  margin-left: auto;
  color: #929aa6;
  font-size: 12px;
  font-weight: 400;
}

.task-tree-batches {
  display: grid;
  margin: 2px 0 5px 27px;
  padding-left: 8px;
  gap: 2px;
  border-left: 1px solid var(--border);
}

.task-tree-batch {
  min-height: 33px;
  padding: 6px 8px;
  border-radius: 8px;
  gap: 7px;
  font-size: 12px;
}

.task-tree-batch-status {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--brand);
}

.task-tree-batch-status.is-disabled {
  background: #a0a6af;
}

.portal-workspace {
  min-width: 0;
  padding: 30px 44px 42px;
}

#portal-content {
  display: flex;
  min-height: calc(100vh - 188px);
  flex-direction: column;
}

.context-meta {
  margin: auto 0 0;
  padding-top: 32px;
  color: #9aa1ab;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}

.overview-panel {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 12px 38px rgba(22, 32, 50, 0.04);
}

.task-home-dashboard {
  display: grid;
  gap: 18px;
}

.task-usage-dashboard {
  display: grid;
  gap: 18px;
}

.task-usage-dashboard > .empty-state {
  margin-top: 0;
}

.task-batch-selector {
  display: grid;
  min-width: 0;
  overflow: hidden;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 12px 38px rgba(22, 32, 50, 0.04);
}

.task-batch-selector-heading {
  display: flex;
  min-width: 0;
  padding: 20px;
  align-items: stretch;
  justify-content: flex-start;
  flex-direction: column;
  gap: 18px;
  grid-row: 1;
  grid-column: 2;
  border-left: 1px solid var(--border);
  background: var(--surface-muted);
}

.task-batch-dashboard {
  min-width: 0;
  grid-row: 1;
  grid-column: 1;
}

.task-batch-selector-heading h2 {
  margin: 0 0 3px;
  font-size: 17px;
}

.task-batch-selector-heading p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 12px;
}

.task-batch-select {
  display: inline-flex;
  width: 100%;
  min-width: 0;
  flex: none;
  align-items: stretch;
  flex-direction: column;
  gap: 6px;
}

.task-batch-select > span {
  flex: none;
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.task-batch-select select {
  min-width: 0;
  min-height: 38px;
  flex: 1 1 auto;
  padding: 0 10px;
  border-radius: 9px;
  font-size: 13px;
}

.task-batch-settlement-summary {
  display: grid;
  padding-top: 16px;
  gap: 6px;
  border-top: 1px solid var(--border);
}

.task-batch-settlement-summary > span,
.task-batch-settlement-summary > small {
  color: var(--muted-foreground);
  font-size: 12px;
}

.task-batch-settlement-summary > div {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.task-batch-settlement-summary strong {
  overflow: hidden;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-batch-settlement-summary .text-button {
  flex: 0 0 auto;
  padding: 5px 8px;
  color: #0067db;
}

.task-batch-settlement-field {
  display: grid;
  gap: 8px;
}

.task-batch-settlement-field > span {
  color: var(--muted-foreground);
  font-size: 13px;
  font-weight: 600;
}

.task-batch-settlement-field input {
  width: 100%;
}

.task-batch-dashboard-card {
  min-width: 0;
  height: 100%;
  padding: 18px 22px;
}

.task-batch-dashboard-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.task-batch-dashboard-heading h3 {
  margin: 0;
  overflow: hidden;
  font-size: 17px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-batch-dashboard-body {
  margin-top: 10px;
}

.task-batch-dashboard-information {
  display: grid;
  width: 100%;
  min-width: 0;
  align-items: center;
  grid-template-columns: minmax(280px, 1fr) clamp(180px, 13vw, 210px);
  gap: 20px;
}

.task-batch-inventory {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  grid-row: 1;
  grid-column: 2;
  justify-content: center;
  gap: 0;
}

.task-batch-inventory-ring {
  position: relative;
  display: grid;
  width: clamp(180px, 13vw, 210px);
  height: clamp(180px, 13vw, 210px);
  flex: 0 0 clamp(180px, 13vw, 210px);
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: conic-gradient(
    var(--batch-accent-bg) 0deg var(--inventory-remaining-angle),
    var(--surface) var(--inventory-remaining-angle) 360deg
  );
  font-variant-numeric: tabular-nums;
}

.task-batch-inventory-ring::after {
  position: absolute;
  width: 66%;
  height: 66%;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  content: "";
}

.task-batch-inventory-center {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 6px;
  max-width: calc(100% - 32px);
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.task-batch-inventory-center strong {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  color: var(--foreground);
  font-size: clamp(28px, 3vw, 46px);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-batch-inventory-value {
  display: flex;
  max-width: 100%;
  min-width: 0;
  align-items: baseline;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
}

.task-batch-inventory-capacity {
  min-width: 0;
  overflow: hidden;
  color: var(--muted-foreground);
  font-size: clamp(14px, 1.5vw, 22px);
  font-weight: 500;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-batch-inventory-center small {
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
}

.task-batch-dashboard-facts {
  display: grid;
  margin: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
  grid-row: 1;
  grid-column: 1;
}

.task-batch-dashboard-facts > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.task-batch-dashboard-facts dt {
  color: var(--muted-foreground);
  font-size: 11px;
  font-weight: 500;
}

.task-batch-dashboard-facts dd {
  margin: 0;
  overflow: hidden;
  color: var(--foreground);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-redemption-chart {
  min-width: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.task-redemption-chart-heading {
  display: flex;
  padding: 16px 18px 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.task-redemption-chart-heading h2 {
  display: inline-flex;
  margin: 0 0 4px;
  align-items: center;
  gap: 7px;
  font-size: 19px;
}

.task-redemption-chart-heading h2::before {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--batch-accent-bg);
  content: "";
}

.task-batch-redemption-range {
  width: auto;
  min-width: 118px;
  min-height: 34px;
  padding: 0 28px 0 10px;
  border-radius: 9px;
  font-size: 12px;
}

.task-redemption-chart .credit-usage-chart {
  min-width: 100%;
  height: 300px;
  padding: 0 12px 8px;
}

.task-redemption-chart .credit-usage-chart-scroll {
  margin: 0;
  border: 0;
  border-radius: 0;
}

.task-batch-redemption-chart-empty {
  display: grid;
  min-height: 280px;
  margin: 0;
  place-items: center;
  color: var(--muted-foreground);
  font-size: 13px;
}

.task-redemption-chart .credit-usage-peak-label {
  fill: var(--batch-accent-fg);
  filter: none;
  paint-order: normal;
  stroke: none;
  stroke-width: 0;
}

.project-view-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  padding: 3px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  box-shadow: none;
}

.project-view-toggle button {
  min-height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  color: var(--foreground);
  background: transparent;
  font-size: 12px;
  font-weight: 500;
}

.project-view-toggle button[aria-pressed="true"] {
  color: var(--surface);
  background: var(--foreground);
  font-weight: 600;
}

.project-view-toggle button:hover:not([aria-pressed="true"]) {
  background: var(--surface-muted);
}

.project-view-toggle button:focus-visible {
  outline: 2px solid var(--foreground);
  outline-offset: 2px;
}

.project-dashboard-panel {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 12px 38px rgba(22, 32, 50, 0.04);
}

.project-distribution-section {
  padding: 24px 28px 28px;
  border-bottom: 1px solid var(--border);
}

.project-distribution-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.project-distribution-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.project-picker-search {
  display: block;
  width: 100%;
}

.project-picker-search input {
  width: 100%;
  min-height: 36px;
  padding: 0 11px;
  border-radius: 9px;
  font-size: 13px;
}

.project-picker {
  width: clamp(280px, 24vw, 340px);
}

.project-picker-panel {
  position: absolute;
  z-index: var(--layer-popover);
  top: calc(100% + 6px);
  right: 0;
  width: 100%;
  min-width: 280px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.project-picker-listbox {
  display: grid;
  max-height: 280px;
  margin-top: 0;
  overflow-y: auto;
  gap: 2px;
}

.project-picker-listbox [role="option"] {
  display: grid;
  width: 100%;
  min-height: 42px;
  padding: 7px 9px;
  align-items: center;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 9px;
  border: 0;
  border-radius: 8px;
  color: var(--foreground);
  background: transparent;
  text-align: left;
}

.project-picker-swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--project-fill);
}

.project-picker-listbox [role="option"]:hover,
.project-picker-listbox [role="option"][aria-selected="true"] {
  background: var(--brand-soft);
}

.project-picker-listbox [role="option"] strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-picker-listbox [role="option"] small {
  color: var(--muted-foreground);
  font-size: 11px;
  white-space: nowrap;
}

.project-picker-empty {
  margin: 6px 0 0;
  padding: 18px 10px;
  color: var(--muted-foreground);
  font-size: 12px;
  text-align: center;
}

.project-distribution-heading h2 {
  margin-bottom: 0;
  font-size: 17px;
}

.project-distribution-heading > span {
  margin-bottom: 0;
  color: var(--muted-foreground);
  font-size: 11px;
}

.project-distribution-layout {
  display: grid;
  margin-top: 18px;
  align-items: center;
  grid-template-columns: minmax(300px, 35fr) minmax(0, 65fr);
  gap: 34px;
}

@media (min-width: 1441px) {
  .project-distribution-layout {
    grid-template-columns: 420px minmax(0, 1fr);
    gap: 48px;
  }
}

@media (max-width: 1440px) {
  .task-batch-dashboard-information {
    grid-template-columns: minmax(240px, 1fr) 180px;
  }

  .task-batch-inventory-ring {
    width: 180px;
    height: 180px;
    flex-basis: 180px;
  }
}

.project-distribution-side {
  display: grid;
  width: 100%;
  max-width: 1100px;
  min-width: 0;
  align-content: start;
  justify-self: end;
  gap: 12px;
}

.project-distribution-chart {
  display: grid;
  min-height: 400px;
  place-items: center;
}

.project-distribution-legend {
  display: grid;
  gap: 8px;
}

.project-distribution-legend.is-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.project-distribution-legend.is-cards .project-distribution-legend-item {
  min-height: 126px;
  align-content: start;
  grid-template-columns: 10px minmax(0, 1fr) minmax(78px, auto);
  grid-template-rows: auto auto;
}

.project-distribution-legend.is-cards .project-distribution-swatch {
  grid-row: 1 / span 2;
}

.project-distribution-legend.is-cards .project-distribution-legend-identity {
  grid-row: 1;
  grid-column: 2;
}

.project-distribution-legend.is-cards .project-distribution-recent {
  grid-row: 1;
  grid-column: 3;
  align-items: flex-end;
  text-align: right;
}

.project-distribution-legend.is-cards .project-distribution-quota {
  display: grid;
  grid-row: 2;
  grid-column: 2 / 4;
  align-items: baseline;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 9px;
}

.project-distribution-legend.is-cards .project-distribution-quota > small {
  grid-row: 1;
  grid-column: 1;
  white-space: nowrap;
}

.project-distribution-legend.is-cards .project-distribution-quota-summary {
  grid-row: 1;
  grid-column: 2;
}

.project-distribution-legend.is-cards .project-distribution-balance-track {
  grid-row: 2;
  grid-column: 1 / -1;
}

.project-distribution-legend-item {
  display: grid;
  min-width: 0;
  min-height: 88px;
  padding: 11px 12px;
  align-items: center;
  grid-template-columns: 10px minmax(120px, 1fr) minmax(220px, 1fr) auto;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--foreground);
  background: var(--surface);
  text-align: left;
}

.project-distribution-legend-item:hover {
  border-color: rgba(0, 103, 219, 0.28);
  background: var(--brand-soft);
}

.project-distribution-swatch {
  width: 10px;
  height: 10px;
  align-self: start;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--project-remaining-color);
}

.project-distribution-legend-identity {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.project-distribution-legend-identity strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-distribution-legend-identity small,
.project-distribution-quota small,
.project-distribution-recent small {
  color: var(--muted-foreground);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.project-distribution-legend-identity small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-distribution-quota {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.project-distribution-quota-summary {
  display: flex;
  min-width: 0;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.project-distribution-quota-summary strong {
  overflow: hidden;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-distribution-quota-summary small {
  flex: 0 0 auto;
}

.project-distribution-recent {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.project-distribution-recent strong {
  overflow: hidden;
  color: var(--muted-foreground);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-distribution-recent small {
  color: var(--foreground);
  font-weight: 600;
}

.project-distribution-balance-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(23, 23, 23, 0.07);
}

.project-distribution-balance-track span {
  display: block;
  width: var(--project-remaining);
  height: 100%;
  border-radius: inherit;
  background: var(--project-remaining-color);
}

.project-distribution-legend.is-list {
  display: block;
  width: 100%;
  max-width: none;
  overflow: hidden;
  gap: 0;
  justify-self: stretch;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.project-distribution-legend.is-list .project-distribution-legend-item {
  width: 100%;
  max-width: none;
  min-height: 66px;
  padding: 9px 16px;
  justify-self: stretch;
  grid-column: 1 / -1;
  grid-template-columns: 10px minmax(0, 32fr) minmax(0, 48fr) minmax(0, 20fr);
  gap: 14px;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: var(--surface);
  box-shadow: none;
}

.project-distribution-legend.is-list .project-distribution-legend-item:last-child {
  border-bottom: 0;
}

.project-distribution-legend.is-list .project-distribution-legend-item:hover {
  background: var(--surface-muted);
}

.project-distribution-legend.is-list .project-distribution-legend-item:focus-visible {
  outline: 2px solid var(--foreground);
  outline-offset: -2px;
}

.project-distribution-legend.is-list .project-distribution-swatch {
  align-self: center;
  margin-top: 0;
}

.project-distribution-legend.is-list .project-distribution-legend-identity {
  align-items: baseline;
  flex-direction: row;
  gap: 10px;
}

.project-distribution-legend.is-list .project-distribution-legend-identity strong {
  min-width: 0;
}

.project-distribution-legend.is-list .project-distribution-legend-identity small {
  flex: 0 0 auto;
}

.project-distribution-legend.is-list .project-distribution-quota {
  display: grid;
  min-width: 0;
  align-items: baseline;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 5px 9px;
}

.project-distribution-legend.is-list .project-distribution-quota > small {
  grid-row: 1;
  grid-column: 1;
  white-space: nowrap;
}

.project-distribution-legend.is-list .project-distribution-quota-summary {
  grid-row: 1;
  grid-column: 2;
}

.project-distribution-legend.is-list .project-distribution-balance-track {
  height: 5px;
  grid-row: 2;
  grid-column: 1 / -1;
}

.project-distribution-legend.is-list .project-distribution-recent {
  align-items: baseline;
  justify-content: flex-end;
  flex-direction: row;
  gap: 8px;
  text-align: right;
}

.project-recent-redemptions-section {
  min-width: 0;
  padding: 22px 28px 26px;
}

.project-recent-redemptions-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.project-recent-redemptions-heading h2 {
  margin-bottom: 0;
  font-size: 17px;
}

.project-recent-redemptions-heading p {
  margin: 4px 0 0;
  color: var(--muted-foreground);
  font-size: 12px;
}

.project-recent-redemptions-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.project-recent-redemptions-search,
.project-recent-redemptions-range {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.project-recent-redemptions-search > label,
.project-recent-redemptions-range > span {
  margin-bottom: 0;
  color: var(--muted-foreground);
  font-size: 11px;
  white-space: nowrap;
}

.project-recent-redemptions-range {
  flex: 0 0 auto;
}

.project-recent-redemptions-search-controls {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.project-recent-redemptions-search input {
  width: clamp(280px, 24vw, 360px);
  height: var(--table-toolbar-control-height);
  min-height: var(--table-toolbar-control-height);
  padding: 0 11px;
  border-radius: var(--table-toolbar-control-radius);
  font-size: var(--table-toolbar-control-font-size);
  line-height: 1.2;
}

.project-recent-redemptions-search button {
  height: var(--table-toolbar-control-height);
  min-height: var(--table-toolbar-control-height);
  padding: 0 14px;
  border-radius: var(--table-toolbar-control-radius);
  font-size: var(--table-toolbar-control-font-size);
  line-height: 1.2;
  border-color: var(--foreground);
  color: var(--surface);
  background: var(--foreground);
  white-space: nowrap;
}

.project-recent-redemptions-search button:hover:not(:disabled) {
  color: var(--surface);
  background: color-mix(in srgb, var(--foreground) 88%, var(--surface));
}

.project-recent-redemptions-range select {
  width: clamp(120px, 10vw, 160px);
  height: var(--table-toolbar-control-height);
  min-height: var(--table-toolbar-control-height);
  padding: 0 10px;
  border-radius: var(--table-toolbar-control-radius);
  font-size: var(--table-toolbar-control-font-size);
  line-height: 1.2;
}

@media (max-width: 1100px) {
  .project-recent-redemptions-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
  }
}

.project-recent-redemptions {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.project-recent-redemptions-header {
  display: grid;
  min-height: 42px;
  padding: 0 16px;
  align-items: center;
  grid-template-columns: minmax(180px, 1.15fr) minmax(260px, 1.2fr) minmax(110px, 0.8fr) minmax(220px, 1fr);
  gap: 18px;
  border-bottom: 1px solid var(--border);
  background: #f7f8fb;
}

.project-recent-redemptions-header span {
  color: var(--muted-foreground);
  font-size: 11px;
  font-weight: 500;
}

.project-recent-redemption-row {
  display: grid;
  min-height: 64px;
  padding: 12px 16px;
  align-items: center;
  grid-template-columns: minmax(180px, 1.15fr) minmax(260px, 1.2fr) minmax(110px, 0.8fr) minmax(220px, 1fr);
  gap: 18px;
  border-bottom: 1px solid var(--border);
  color: var(--foreground);
}

.project-recent-redemption-row:last-child {
  border-bottom: 0;
}

.project-recent-redemption-user,
.project-recent-redemption-context {
  overflow: hidden;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

a.project-recent-redemption-user,
.redemption-user-link {
  border-radius: 4px;
  color: var(--brand-hover);
  text-decoration: none;
}

.redemption-record-user {
  display: flex;
  min-width: 210px;
  flex-direction: column;
  gap: 5px;
}

.redemption-record-user-name {
  color: var(--foreground);
  font-size: 14px;
  font-weight: 650;
}

.redemption-record-user-contact {
  color: var(--muted-foreground);
  font-size: 13px;
}

a.project-recent-redemption-user:hover,
.redemption-user-link:hover {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a.project-recent-redemption-user:focus-visible,
.redemption-user-link:focus-visible {
  outline: 2px solid var(--foreground);
  outline-offset: 2px;
}

.project-recent-redemption-context {
  border-radius: 4px;
  color: var(--foreground);
  text-decoration: none;
}

.project-recent-redemption-context:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.project-recent-redemption-context:focus-visible {
  outline: 2px solid var(--foreground);
  outline-offset: 2px;
}

.project-recent-redemption-row time {
  color: var(--muted-foreground);
  font-size: 11px;
}

.project-recent-redemption-code {
  overflow: hidden;
  color: var(--muted-foreground);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-recent-redemption-row time {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.project-recent-redemptions-empty {
  margin: 0;
  padding: 32px 18px;
  color: var(--muted-foreground);
  font-size: 13px;
  text-align: center;
}

.project-dashboard-loading {
  align-self: center;
  grid-column: 1 / -1;
  color: var(--muted-foreground);
  font-size: 13px;
  text-align: center;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--border);
}

.metric-strip-item {
  display: flex;
  min-height: 104px;
  padding: 18px 20px;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--border);
}

.metric-strip-item:last-child {
  border-right: 0;
}

.metric-strip-item span {
  color: var(--muted-foreground);
  font-size: 12px;
}

.metric-strip-item strong {
  overflow-wrap: anywhere;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.overview-panel-list .table-heading {
  border-top: 0;
}

.overview-panel > .empty-state {
  margin-top: 0;
  border: 0;
  border-radius: 0;
}

.portal-breadcrumb {
  display: flex;
  min-height: 22px;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #7d8591;
  font-size: 13px;
}

.portal-breadcrumb button {
  border: 0;
  padding: 0;
  color: #7d8591;
  background: transparent;
}

.portal-breadcrumb button:hover {
  color: #0067db;
}

.portal-breadcrumb strong {
  color: #4b5563;
  font-weight: 600;
}

.portal-breadcrumb-separator {
  color: #bdc2ca;
}

.portal-heading {
  display: flex;
  padding: 13px 0 22px;
  align-items: end;
  justify-content: space-between;
}

.portal-heading h1 {
  margin-bottom: 8px;
  font-size: 32px;
  letter-spacing: -0.04em;
}

.portal-heading > div > p:last-child {
  font-size: 14px;
  line-height: 1.6;
}

.portal-view-tabs {
  display: flex;
  margin-bottom: 22px;
  gap: 2px;
  border-bottom: 1px solid var(--border);
}

.portal-view-tabs > button,
.portal-view-tabs > a {
  position: relative;
  display: inline-flex;
  min-height: 42px;
  padding: 0 14px;
  -webkit-appearance: none;
  align-items: center;
  appearance: none;
  border: 0;
  border-radius: 0;
  color: var(--muted-foreground);
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
}

.portal-view-tabs > button:focus-visible,
.portal-view-tabs > a:focus-visible {
  border-radius: 4px;
  outline: 2px solid var(--foreground);
  outline-offset: -3px;
}

.portal-view-tabs > button:hover,
.portal-view-tabs > a:hover {
  color: var(--foreground);
}

.portal-view-tabs > button[aria-current="page"],
.portal-view-tabs > a[aria-current="page"] {
  color: var(--foreground);
  font-weight: 600;
}

.portal-view-tabs > button[aria-current="page"]::after,
.portal-view-tabs > a[aria-current="page"]::after {
  position: absolute;
  right: 12px;
  bottom: -1px;
  left: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--foreground);
  content: "";
}

.overview-section > .summary-grid:first-child {
  margin-top: 0;
}

.table-heading-actions {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
}

.table-heading-actions {
  gap: 8px;
}

.notice {
  margin-bottom: 20px;
}

.code-table-card {
  margin-top: 0;
}

.code-table-toolbar {
  display: grid;
  min-width: 0;
  padding: 10px 18px;
  align-items: center;
  grid-template-columns: minmax(180px, 1fr) minmax(360px, 500px) minmax(220px, 260px);
  gap: 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.code-table-title-block {
  align-self: center;
}

.code-table-title-block h2 {
  margin-bottom: 5px;
  font-size: 19px;
}

.code-table-title-block p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 13px;
}

.code-table-toolbar .field + .field {
  margin-top: 0;
}

.code-filter-inline {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  flex-direction: row;
  gap: 8px;
}

.code-filter-inline > label,
.code-filter-inline > .field-label {
  flex: 0 0 auto;
  white-space: nowrap;
}

.code-filter-inline .search-control,
.code-filter-inline .status-combobox {
  min-width: 0;
  flex: 1 1 auto;
}

.status-combobox {
  position: relative;
  min-width: 0;
}

.status-combobox-trigger {
  display: grid;
  width: 100%;
  min-height: 46px;
  padding: 0 11px;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--foreground);
  background: var(--surface);
  font-size: 13px;
  text-align: left;
}

.status-combobox-trigger:hover,
.status-combobox-trigger[aria-expanded="true"] {
  border-color: rgba(0, 103, 219, 0.28);
  background: var(--brand-soft);
}

.status-combobox-chevron {
  display: grid;
  width: 20px;
  height: 20px;
  margin-left: auto;
  place-items: center;
  color: var(--muted-foreground);
  font-size: 15px;
  line-height: 1;
}

.status-combobox .code-status-badge {
  width: fit-content;
  max-width: 100%;
  align-self: center;
  justify-self: start;
}

.status-listbox {
  position: absolute;
  z-index: var(--layer-popover);
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  display: grid;
  min-width: 190px;
  padding: 6px;
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.status-listbox [role="option"] {
  display: grid;
  width: 100%;
  min-height: 36px;
  padding: 0 9px;
  align-items: center;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  border: 0;
  border-radius: 8px;
  color: var(--foreground);
  background: transparent;
  font-size: 13px;
  text-align: left;
}

.status-listbox [role="option"]:hover,
.status-listbox [role="option"][aria-selected="true"] {
  background: var(--brand-soft);
}

.status-listbox:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.search-control {
  display: flex;
  gap: 9px;
}

.search-control input {
  min-width: 0;
}

.summary-grid {
  display: grid;
  margin-top: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.summary-item {
  display: flex;
  min-height: 108px;
  padding: 19px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.72);
}

.summary-item span {
  color: var(--muted-foreground);
  font-size: 12px;
}

.summary-item strong {
  overflow-wrap: anywhere;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.task-batch-context-status {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--muted-foreground);
  background: rgba(23, 23, 23, 0.06);
  font-size: 12px;
  font-weight: 600;
}

.task-batch-context-status[data-status="active"] {
  color: var(--batch-accent-fg);
  background: var(--batch-accent-bg);
}

.empty-state {
  display: flex;
  min-height: 200px;
  margin-top: 18px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  border: 1px dashed rgba(23, 23, 23, 0.15);
  border-radius: 16px;
  color: var(--muted-foreground);
  background: rgba(255, 255, 255, 0.45);
}

.empty-state strong {
  color: #4b5563;
}

.table-card {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 12px 38px rgba(22, 32, 50, 0.05);
}

.table-heading {
  display: flex;
  min-height: 82px;
  padding: 19px 22px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.table-heading h2 {
  margin-bottom: 5px;
  font-size: 19px;
}

.table-heading p {
  margin-bottom: 0;
  color: var(--muted-foreground);
  font-size: 13px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
}

th,
td {
  padding: 15px 22px;
  border-bottom: 1px solid rgba(23, 23, 23, 0.07);
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--muted-foreground);
  background: var(--surface-muted);
  font-size: 12px;
  font-weight: 600;
}

td {
  color: #374151;
  font-size: 14px;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.code-value {
  color: var(--foreground);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.code-copy-control {
  display: inline-flex;
  padding: 0;
  align-items: center;
  border: 0;
  border-radius: 6px;
  color: inherit;
  background: transparent;
  text-align: left;
}

.code-copy-control .code-value {
  user-select: text;
}

.code-copy-control:hover .code-value {
  color: var(--foreground);
}

.code-copy-control[data-copy-state="success"] .code-value {
  color: var(--status-unused-text);
}

.code-copy-control[data-copy-state="error"] .code-value {
  color: var(--danger);
}

.code-copy-control:focus-visible {
  outline-offset: 2px;
}

.copy-toast {
  position: fixed;
  z-index: var(--layer-popover);
  bottom: 28px;
  left: 50%;
  max-width: min(360px, calc(100vw - 32px));
  padding: 9px 14px;
  transform: translateX(-50%);
  border: 1px solid var(--foreground);
  border-radius: 10px;
  color: var(--surface);
  background: var(--foreground);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  pointer-events: none;
  text-align: center;
}

.copy-fallback-input {
  position: fixed;
  top: 0;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.code-actions {
  display: table-cell;
  white-space: nowrap;
}

.code-actions > * + * {
  margin-left: 10px;
}

button.code-copy-button {
  color: var(--brand-hover);
}

button.code-copy-button:hover:not(:disabled) {
  color: var(--brand);
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.code-status-badge {
  display: inline-flex;
  min-height: 24px;
  padding: 3px 9px;
  align-items: center;
  border: 0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.code-status-badge.is-all {
  color: var(--palette-gray-fg);
  background: var(--palette-gray-bg);
}

.code-status-badge.is-unused {
  color: var(--status-unused-text);
  background: var(--status-unused-bg);
}

.code-status-badge.is-partially_redeemed {
  color: var(--status-partial-text);
  background: var(--status-partial-bg);
}

.code-status-badge.is-fully_redeemed {
  color: var(--palette-gray-fg);
  background: var(--palette-gray-bg);
}

.code-status-badge.is-disabled {
  color: var(--danger);
  background: var(--danger-soft);
}

.task-redemption-records {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 12px 38px rgba(22, 32, 50, 0.04);
}

.task-redemption-record-toolbar {
  display: grid;
  min-width: 0;
  padding: 10px 18px;
  align-items: end;
  grid-template-columns: minmax(108px, 0.32fr) minmax(0, 2.2fr);
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

.task-redemption-record-title h2 {
  margin-bottom: 5px;
  font-size: 19px;
}

.task-redemption-record-title {
  min-width: fit-content;
}

.task-redemption-record-title p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 13px;
}

#task-redemption-records-summary {
  white-space: nowrap;
}

.task-redemption-record-filter-form {
  display: grid;
  width: min(100%, 920px);
  min-width: 0;
  align-items: center;
  justify-self: end;
  grid-template-columns: minmax(220px, 380px) auto auto auto auto auto;
  gap: 8px;
}

.task-redemption-record-search {
  width: 100%;
  min-width: 0;
  order: 1;
}

.task-redemption-record-search input {
  width: 100%;
}

.task-redemption-record-date-group {
  display: contents;
}

.task-redemption-record-date-field {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted-foreground);
  font-size: 12px;
  white-space: nowrap;
}

.task-redemption-record-date-field:first-of-type {
  order: 3;
}

.task-redemption-record-date-field:last-of-type {
  order: 5;
}

.task-redemption-record-date-field input[type="date"] {
  width: 124px;
  flex: 0 0 124px;
}

.task-redemption-record-filter-form button,
.task-redemption-record-date-group input {
  min-height: 46px;
}

.task-redemption-record-date-group button {
  padding-inline: 12px;
  white-space: nowrap;
}

#redemption-record-date-submit {
  order: 6;
}

button.task-redemption-record-submit,
button.task-redemption-date-submit {
  width: auto;
  min-height: 46px;
  margin-top: 0;
  flex: 0 0 auto;
  padding-inline: 14px;
  border-radius: 10px;
  border-color: var(--foreground);
  color: var(--surface);
  background: var(--foreground);
  white-space: nowrap;
  order: 2;
}

button.task-redemption-record-submit:hover:not(:disabled),
button.task-redemption-date-submit:hover:not(:disabled) {
  color: var(--surface);
  background: color-mix(in srgb, var(--foreground) 88%, var(--surface));
}

#code-search-form button.secondary-button {
  border-color: var(--foreground);
  color: var(--surface);
  background: var(--foreground);
}

#code-search-form button.secondary-button:hover:not(:disabled) {
  color: var(--surface);
  background: color-mix(in srgb, var(--foreground) 88%, var(--surface));
}

#code-search,
#code-search-form button,
#code-status-trigger,
#redemption-record-filter,
#redemption-record-start,
#redemption-record-end,
button.task-redemption-record-submit,
button.task-redemption-date-submit {
  height: var(--table-toolbar-control-height);
  min-height: var(--table-toolbar-control-height);
  border-radius: var(--table-toolbar-control-radius);
  font-size: var(--table-toolbar-control-font-size);
  line-height: 1.2;
}

.task-redemption-record-date-separator {
  color: var(--muted-foreground);
  font-size: 13px;
  white-space: nowrap;
  order: 4;
}

.task-redemption-record-date-error {
  grid-column: 1 / -1;
  order: 7;
  flex: 0 0 100%;
  margin: -4px 0 0;
  color: var(--danger);
  font-size: 12px;
  line-height: 1.4;
  text-align: right;
}

.task-redemption-record-table-wrap th,
.task-redemption-record-table-wrap td {
  padding-inline: 22px;
  vertical-align: top;
  text-align: left;
}

.task-redemption-record-table-wrap .time-detail-cell {
  min-width: 190px;
}

.redemption-credit-usage {
  min-width: 230px;
}

.redemption-credit-labels {
  display: block;
  color: var(--muted-foreground);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.redemption-credit-bar {
  display: flex;
  width: 100%;
  height: 7px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: var(--radius-full);
  background: var(--surface-muted);
}

.redemption-credit-bar > span {
  display: block;
  height: 100%;
}

.redemption-credit-bar > .is-remaining {
  background: var(--palette-blue-fg);
}

.time-detail-cell > span,
.time-detail-cell > small {
  display: block;
  line-height: 1.5;
  white-space: nowrap;
}

.time-detail-cell > span {
  color: var(--foreground);
  font-size: 12px;
  font-weight: 500;
}

.time-detail-cell > small {
  margin-top: 4px;
  color: var(--muted-foreground);
  font-size: 11px;
}

.table-empty {
  height: 120px;
  color: var(--muted-foreground);
  text-align: center;
}

.row-title {
  color: var(--foreground);
  font-weight: 600;
}

.table-row-link {
  border: 0;
  padding: 0;
  color: var(--foreground);
  background: transparent;
  font-weight: 600;
  text-align: left;
}

.table-row-link:hover {
  color: #0067db;
}

.pagination {
  display: flex;
  min-height: 66px;
  padding: 12px 18px;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 13px;
}

.pagination > .secondary-button {
  min-height: 38px;
  padding-inline: 14px;
  white-space: nowrap;
}

.pagination-navigation {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.version-view {
  display: grid;
  min-height: 600px;
  place-items: center;
}

.version-card {
  width: min(100%, 620px);
  padding: clamp(36px, 7vw, 72px);
  text-align: center;
}

.version-card h1 {
  margin-bottom: 32px;
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  line-height: 1.3;
  text-wrap: balance;
}

.version-label {
  margin-bottom: 8px;
  color: var(--muted-foreground);
  font-size: 14px;
}

.version-number {
  display: block;
  color: var(--foreground);
  font-size: clamp(38px, 7vw, 64px);
  letter-spacing: -0.04em;
}

.version-description {
  margin: 20px 0 34px;
  color: var(--muted-foreground);
  line-height: 1.7;
}

.version-back-link {
  display: inline-flex;
  width: auto;
  margin-top: 0;
  padding: 0 18px;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.version-back-link:focus-visible {
  outline: 2px solid var(--foreground);
  outline-offset: 2px;
}

.site-footer {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #9ca3af;
  font-size: 12px;
}

.footer-divider {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #c5cad3;
}

.footer-link:hover {
  color: #6b7280;
}

@media (max-width: 1100px) {
  .task-batch-selector {
    grid-template-columns: 1fr;
  }

  .task-batch-selector-heading {
    grid-row: 1;
    grid-column: 1;
    border-left: 0;
    border-bottom: 1px solid var(--border);
  }

  .task-batch-dashboard {
    grid-row: 2;
    grid-column: 1;
  }

  .task-batch-select {
    max-width: 520px;
  }

  .task-redemption-record-toolbar {
    grid-template-columns: 1fr;
  }

  .task-redemption-record-filter-form {
    width: min(100%, 920px);
    justify-self: end;
  }
}

@media (max-width: 900px) {
  .login-view {
    padding: 48px 24px 56px;
    align-items: center;
  }

  .login-surface {
    width: min(100%, 580px);
  }

  .login-card {
    padding: 44px 40px;
  }

  .portal-shell {
    display: block;
    width: 100%;
  }

  .portal-detail-shell {
    display: block;
    width: 100%;
  }

  .project-distribution-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .project-distribution-legend.is-list .project-distribution-legend-item {
    grid-template-columns: 10px minmax(0, 32fr) minmax(0, 48fr) minmax(0, 20fr);
    gap: 10px;
  }

  .portal-sidebar {
    padding: 22px 0 18px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .portal-sidebar-expand {
    margin: 16px 0 0;
  }

  .portal-sidebar-note {
    display: none;
  }

  .code-table-toolbar {
    align-items: end;
    grid-template-areas:
      "title title"
      "search status";
    grid-template-columns: minmax(0, 1fr) minmax(170px, 220px);
  }

  .code-table-title-block {
    grid-area: title;
  }

  .code-table-toolbar .search-field {
    grid-area: search;
  }

  .code-table-toolbar .status-field {
    grid-area: status;
  }

  .task-redemption-record-toolbar {
    grid-template-columns: 1fr;
  }

  .task-redemption-record-filter-form {
    grid-template-columns: minmax(180px, 380px) auto auto auto auto auto;
  }

  .task-redemption-record-search {
    width: 100%;
    min-width: 0;
  }

  .task-redemption-record-date-group {
    justify-content: flex-end;
  }

  .portal-workspace {
    padding: 24px 0 42px;
  }

  .portal-detail-workspace {
    padding: 24px 0 42px;
  }

  .project-distribution-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .project-distribution-side {
    max-width: none;
  }

  .project-distribution-chart {
    min-height: 340px;
  }

  .project-recent-redemption-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px 14px;
  }

  .project-recent-redemptions-header {
    display: none;
  }

  .project-recent-redemption-code {
    grid-row: 2;
    grid-column: 1;
  }

  .project-recent-redemption-row time {
    grid-row: 2;
    grid-column: 2;
  }

  .metric-strip {
    grid-template-columns: 1fr 1fr;
  }

  .metric-strip-item:nth-child(2) {
    border-right: 0;
  }

  .metric-strip-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }

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

@media (min-width: 1440px) {
  .project-distribution-legend.is-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  :root {
    --site-header-height: 64px;
  }

  .main-content,
  .site-footer {
    width: calc(100vw - 24px);
    max-width: 1180px;
  }

  .site-header {
    min-height: var(--site-header-height);
    padding: 0 12px;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .brand-name {
    font-size: 18px;
  }

  .brand-level {
    padding-left: 8px;
    font-size: 12px;
  }

  .site-page-name {
    display: none;
  }

  .header-breadcrumb {
    display: none;
  }

  .site-header-left {
    gap: 0;
  }

  .account-area {
    grid-column: 2;
  }

  .account-name {
    display: none;
  }

  .login-view {
    min-height: calc(100dvh - var(--site-header-height));
    padding: 16px 0 28px;
  }

  .login-surface {
    border-radius: 16px;
  }

  .login-card {
    padding: 30px 24px 28px;
  }

  .login-card-heading {
    margin-bottom: 24px;
  }

  .login-card-heading h1 {
    gap: 7px;
  }

  .login-brand-mark {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .login-brand-name {
    font-size: 24px;
  }

  .login-brand-divider {
    height: 21px;
    margin-inline: 2px;
  }

  .login-brand-product {
    font-size: 19px;
  }

  .portal-heading {
    padding: 34px 0 26px;
  }

  .portal-heading h1 {
    font-size: 30px;
  }

  .portal-view-tabs {
    overflow-x: auto;
  }

  .portal-view-tabs > button,
  .portal-view-tabs > a {
    flex: 0 0 auto;
  }

  .metric-strip {
    grid-template-columns: 1fr;
  }

  .task-batch-selector-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .task-batch-select {
    width: 100%;
    flex-basis: auto;
  }

  .task-batch-dashboard-facts {
    grid-template-columns: 1fr;
  }

  .task-batch-dashboard-information {
    grid-template-columns: 1fr;
  }

  .task-batch-dashboard-facts {
    grid-row: 1;
    grid-column: 1;
  }

  .task-batch-inventory {
    grid-row: 2;
    grid-column: 1;
  }

  .task-batch-inventory {
    justify-content: center;
  }

  .task-batch-inventory-ring {
    width: 172px;
    height: 172px;
    flex-basis: 172px;
  }

  .task-batch-inventory-center strong {
    font-size: 36px;
  }

  .task-redemption-record-filter-form {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .task-redemption-record-search {
    grid-row: 1;
    grid-column: 1;
    width: 100%;
    min-width: 0;
  }

  button.task-redemption-record-submit {
    grid-row: 1;
    grid-column: 2;
  }

  .task-redemption-record-date-field {
    grid-column: 1 / -1;
    flex: 1 1 100%;
  }

  .task-redemption-record-date-field:first-of-type {
    grid-row: 2;
  }

  .task-redemption-record-date-field:last-of-type {
    grid-row: 3;
  }

  .task-redemption-record-date-field input[type="date"] {
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
  }

  .task-redemption-record-date-separator {
    display: none;
  }

  #redemption-record-date-submit {
    grid-row: 4;
    grid-column: 2;
  }

  .time-detail-cell > span,
  .time-detail-cell > small {
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .code-table-toolbar {
    grid-template-areas:
      "title"
      "search"
      "status";
    grid-template-columns: 1fr;
  }

  .task-redemption-record-toolbar {
    grid-template-columns: 1fr;
  }

  .project-distribution-section {
    padding: 20px;
  }

  .project-distribution-heading {
    flex-direction: column;
    gap: 6px;
  }

  .project-distribution-actions {
    display: grid;
    width: 100%;
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .project-picker-search {
    width: 100%;
  }

  .project-picker {
    width: 100%;
  }

  .project-picker-panel {
    right: auto;
    left: 0;
    width: 100%;
  }

  .project-view-toggle {
    justify-self: start;
  }

  .project-distribution-chart {
    min-height: 280px;
  }

  .project-distribution-legend {
    grid-template-columns: 1fr;
  }

  .project-distribution-legend.is-cards {
    grid-template-columns: 1fr;
  }

  .project-distribution-legend.is-cards .project-distribution-legend-item {
    grid-template-columns: 10px minmax(0, 1fr) minmax(78px, auto);
    grid-template-rows: auto auto;
  }

  .project-distribution-legend.is-cards .project-distribution-recent {
    grid-row: 1;
    grid-column: 3;
  }

  .project-distribution-legend.is-cards .project-distribution-quota {
    grid-row: 2;
    grid-column: 2 / 4;
  }

  .project-distribution-legend.is-list {
    display: block;
    gap: 0;
  }

  .project-distribution-legend.is-list .project-distribution-legend-item {
    min-height: 0;
    padding: 12px 14px;
    grid-template-columns: 10px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    gap: 8px 10px;
    border: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }

  .project-distribution-legend.is-list .project-distribution-swatch {
    grid-row: 1 / span 3;
    grid-column: 1;
  }

  .project-distribution-legend.is-list .project-distribution-legend-identity {
    grid-row: 1;
    grid-column: 2;
  }

  .project-distribution-legend.is-list .project-distribution-quota {
    grid-row: 2;
    grid-column: 2;
  }

  .project-distribution-legend.is-list .project-distribution-recent {
    grid-row: 3;
    grid-column: 2;
    justify-content: flex-start;
    text-align: left;
  }

  .project-distribution-legend-item {
    grid-template-columns: 10px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
  }

  .project-distribution-legend-identity {
    grid-row: 1;
    grid-column: 2;
  }

  .project-distribution-quota {
    grid-row: 2;
    grid-column: 2;
  }

  .project-distribution-recent {
    grid-row: 3;
    grid-column: 2;
  }

  .project-recent-redemptions-section {
    padding-right: 20px;
    padding-left: 20px;
  }

  .project-recent-redemptions-heading {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .project-recent-redemptions-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .project-recent-redemptions-search {
    display: grid;
    min-width: 0;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .project-recent-redemptions-search-controls,
  .project-recent-redemptions-search input {
    width: 100%;
  }

  .project-recent-redemptions-range {
    align-self: flex-end;
    flex: 0 0 auto;
  }

  .project-recent-redemption-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .project-recent-redemptions-header {
    display: none;
  }

  .project-recent-redemption-user {
    grid-row: 1;
    grid-column: 1;
  }

  .project-recent-redemption-context {
    grid-row: 2;
    grid-column: 1;
  }

  .project-recent-redemption-code {
    grid-row: 3;
    grid-column: 1;
  }

  .project-recent-redemption-row time {
    grid-row: 1;
    grid-column: 2;
  }

  .metric-strip-item,
  .metric-strip-item:nth-child(2) {
    min-height: 86px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .metric-strip-item:last-child {
    border-bottom: 0;
  }

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

  .summary-item {
    min-height: 86px;
  }

  .pagination {
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .pagination-navigation {
    flex: 0 1 auto;
    justify-content: flex-end;
  }

  .version-view {
    min-height: 0;
  }

  .version-card {
    padding: 42px 22px;
    border-radius: 24px;
  }

  .site-footer {
    min-height: 72px;
    flex-wrap: wrap;
    gap: 8px;
    text-align: center;
  }
}

@media (min-width: 901px) and (max-height: 700px) {
  .login-view {
    min-height: auto;
    padding: 24px 0 40px;
    align-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  input,
  select {
    transition: none;
  }
}
