﻿:root {
  color-scheme: dark;
  font-family: "Segoe UI", Inter, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --bg: #111315;
  --sidebar: #121416;
  --panel: #181b1d;
  --panel-raised: #1d2022;
  --line: #292d30;
  --line-soft: #222629;
  --text: #f0f1f1;
  --muted: #969b9e;
  --quiet: #676d71;
  --accent: #e27636;
  --accent-soft: #33251d;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
}

body {
  color: var(--text);
  font-size: 13px;
}

button {
  color: inherit;
  font: inherit;
}

.app-window {
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #2c3032;
  border-radius: 10px;
  background: var(--bg);
}

.titlebar {
  z-index: 2;
  display: flex;
  height: 43px;
  min-height: 43px;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  border-bottom: 1px solid var(--line-soft);
  background: #141618;
}

.titlebar-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #c6c8c9;
  font-size: 11px;
  font-weight: 550;
  letter-spacing: 0.015em;
}

.titlebar-icon {
  width: 19px;
  height: 19px;
  border-radius: 5px;
  object-fit: cover;
}

.titlebar-account {
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-email {
  color: #93989b;
  font-size: 11px;
}

.account-sign-out {
  height: 24px;
  padding: 0 10px;
  font-size: 11px;
}

.app-layout {
  display: flex;
  min-height: 0;
  flex: 1;
}

.sidebar {
  display: flex;
  width: 238px;
  min-width: 238px;
  flex-direction: column;
  padding: 27px 14px 15px;
  border-right: 1px solid var(--line);
  background: var(--sidebar);
}

.sidebar-heading {
  padding: 0 10px;
}

.eyebrow {
  color: #858b8e;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.13em;
}

.sidebar nav {
  margin-top: 19px;
}

.nav-item {
  position: relative;
  display: flex;
  width: 100%;
  height: 42px;
  align-items: center;
  gap: 11px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #aeb2b4;
  text-align: left;
}

.nav-item.active {
  border-color: #332a24;
  background: #211d1a;
  color: #f0e9e3;
  font-weight: 600;
}

.nav-item svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.45;
}

.nav-item.active svg {
  color: #e88950;
}

.nav-indicator {
  position: absolute;
  top: 11px;
  bottom: 11px;
  left: -15px;
  width: 2px;
  border-radius: 0 2px 2px 0;
  background: var(--accent);
}

.sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: auto;
}

.game-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #17191b;
}

.game-mark img {
  width: 33px;
  height: 33px;
  border: 1px solid #4a3326;
  border-radius: 6px;
  object-fit: cover;
}

.game-mark div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.game-title {
  overflow: hidden;
  color: #d8d9d9;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-caption,
.version {
  color: var(--quiet);
  font-size: 10px;
}

.version {
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.version span {
  color: #858a8d;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.main-content {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  overflow-y: auto;
  padding: 0 clamp(30px, 5vw, 72px);
  background: #151719;
}

.page-topline {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-soft);
}

.breadcrumb {
  color: #81878a;
  font-size: 11px;
}

.breadcrumb span {
  margin: 0 7px;
  color: #50565a;
}

.breadcrumb span:last-child {
  color: #c3c5c6;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border: 1px solid #34302c;
  border-radius: 4px;
  color: #b8a18e;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.07em;
}

.status-pill span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d8793d;
  box-shadow: 0 0 8px #d8793d66;
}

.page-intro {
  padding: 39px 0 27px;
}

.page-intro .eyebrow {
  color: #bd7447;
}

h1 {
  margin: 9px 0 7px;
  color: #f2f2f1;
  font-size: clamp(25px, 3vw, 31px);
  font-weight: 620;
  letter-spacing: -0.04em;
}

.page-intro p {
  margin: 0;
  color: #92979a;
  font-size: 13px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.hidden {
  display: none !important;
}

.builder {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 10px;
}

.builder-top {
  display: grid;
  align-items: start;
  gap: 16px;
  grid-template-columns: minmax(0, 1.45fr) minmax(290px, 1fr);
}

.builder-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.panel-head h3 {
  margin: 4px 0 0;
  color: #e8e9e8;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.panel-note {
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.6;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.primary-button {
  border: 1px solid #b9571f;
  background: var(--accent);
  color: #1b1005;
}

.primary-button:hover {
  background: #ef8a4d;
}

.ghost-button {
  border: 1px solid var(--line);
  background: transparent;
  color: #b6bbbd;
}

.ghost-button:hover {
  border-color: #3a4043;
  background: var(--panel-raised);
  color: var(--text);
}

.primary-button:disabled,
.ghost-button:disabled {
  cursor: progress;
  opacity: 0.55;
}

.text-input {
  width: 100%;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #131517;
  color: var(--text);
  font-size: 12px;
}

.text-input::placeholder {
  color: var(--quiet);
}

select,
input[type="number"],
input[type="search"],
input[type="text"] {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #131517;
  color: var(--text);
  font-size: 12px;
}

select {
  height: 34px;
  padding: 0 8px;
}

input[type="number"] {
  height: 34px;
  padding: 0 9px;
}

input[type="text"] {
  height: 34px;
  padding: 0 9px;
}

.text-input:focus,
select:focus,
input:focus {
  border-color: var(--accent);
  outline: none;
}

.badge-list {
  display: flex;
  max-height: 360px;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  padding-right: 4px;
}

.badge-category {
  margin: 9px 0 3px;
  color: #858b8e;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.badge-category:first-child {
  margin-top: 0;
}

.badge-row {
  display: grid;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: #15181a;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 172px);
}

.badge-row.selected {
  border-color: #43352b;
  background: #1f1a16;
}

.badge-name {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.badge-name strong {
  overflow: hidden;
  color: #dcdedd;
  font-size: 12px;
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge-name span {
  color: var(--quiet);
  font-size: 10px;
}

.badge-tier {
  width: 132px;
}

.badge-controls {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.badge-lock-toggle {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #92989a;
  cursor: pointer;
  font-size: 9px;
}

.badge-lock-toggle input {
  width: 13px;
  height: 13px;
  margin: 0;
  accent-color: var(--accent);
}

.badge-lock-toggle input:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.badge-row.locked-badge {
  box-shadow: inset 2px 0 #d6b269;
}

.badge-row.locked-badge .badge-name::after {
  width: fit-content;
  margin-top: 2px;
  color: #d6b269;
  content: "TIER LOCKED";
  font-size: 8px;
  letter-spacing: 0.06em;
}

.selected-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.selected-hint {
  color: var(--quiet);
  font-size: 11px;
}

.badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 6px 5px 10px;
  border: 1px solid #43352b;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #e4c3a8;
  font-size: 11px;
}

.badge-chip button {
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #3a2c22;
  color: #d9a377;
  cursor: pointer;
  font-size: 11px;
  line-height: 1;
}

.badge-chip button:hover {
  background: #573f2f;
  color: #fff;
}

.lock-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lock-row {
  display: grid;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: #15181a;
  grid-template-columns: minmax(0, 1fr) 112px;
}

.lock-row.locked {
  border-color: #4a3a2c;
  background: #1f1a16;
}

.lock-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #c2c6c7;
  cursor: pointer;
  font-size: 12px;
}

.lock-toggle input {
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
}

.lock-row input[type="number"],
.lock-row select {
  width: 112px;
}

.lock-row input:disabled,
.lock-row select:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.run-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.history-actions {
  display: grid;
  gap: 7px;
  grid-template-columns: 1fr 1fr;
}

.history-panel {
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 11px;
}

.history-panel summary {
  display: flex;
  justify-content: space-between;
  padding: 8px 0 2px;
  color: #c1c5c6;
  cursor: pointer;
  list-style: none;
}

.history-panel summary::-webkit-details-marker {
  display: none;
}

.history-panel summary span {
  color: var(--quiet);
}

.history-list {
  display: flex;
  max-height: 130px;
  flex-direction: column;
  gap: 4px;
  overflow: auto;
  margin: 5px 0;
  padding-left: 20px;
}

.history-list li {
  color: #aeb3b4;
}

.history-list .history-undone {
  color: #62686a;
  text-decoration: line-through;
}

.saved-workspace {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 18px;
}

.saved-workspace .page-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.saved-workspace-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.saved-build-path {
  color: var(--quiet);
  font-size: 10px;
  overflow-wrap: anywhere;
}

.build-name-dialog {
  width: min(420px, calc(100vw - 36px));
  padding: 0;
  border: 1px solid #41474a;
  border-radius: 9px;
  background: #191c1e;
  color: var(--text);
}

.build-name-dialog::backdrop {
  background: rgb(0 0 0 / 68%);
}

.build-name-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 20px;
}

.build-name-form h2 {
  margin: 0;
  font-size: 17px;
}

.build-name-form input {
  width: 100%;
}

.build-name-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 3px;
}

.saved-build-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.saved-build-row {
  display: grid;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  grid-template-columns: 18px minmax(0, 1fr) auto;
}

.saved-build-row.dragging {
  opacity: 0.45;
}

.saved-build-row.drag-over {
  border-color: var(--accent);
  background: var(--panel-raised);
}

.drag-handle {
  color: #777e81;
  cursor: grab;
  font-size: 15px;
  letter-spacing: -3px;
  user-select: none;
}

.saved-build-info {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.saved-build-name {
  overflow: hidden;
  color: #e2e4e3;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saved-build-detail {
  color: var(--muted);
  font-size: 10.5px;
}

.saved-build-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.run-status {
  min-height: 16px;
  color: var(--muted);
  font-size: 11.5px;
}

.run-status.busy {
  color: #d99a63;
}

.run-status.error {
  color: #e0847a;
}

.current-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}

.current-panel summary::-webkit-details-marker {
  display: none;
}

.current-panel summary strong {
  margin-left: 8px;
  color: #e6e7e6;
  font-size: 13px;
  font-weight: 600;
}

.summary-hint {
  color: var(--quiet);
  font-size: 11px;
}

.field-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

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

.field label,
.attribute-field label {
  color: #9aa0a2;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.field select,
.field input,
.attribute-field input {
  width: 100%;
}

.attribute-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
}

.current-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.current-result {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.result-panel {
  gap: 14px;
}

.result-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.empty-state {
  margin: 0;
  color: var(--quiet);
  font-size: 12px;
}

.result-headline {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.result-headline h3 {
  margin: 0;
  color: #eceded;
  font-size: 15px;
  font-weight: 620;
}

.result-headline p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.result-badge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  padding: 4px 9px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.result-badge.success {
  border: 1px solid #2f4a2c;
  background: #1d2a1c;
  color: #8fd07f;
}

.result-badge.failure {
  border: 1px solid #4a2f2c;
  background: #2c1d1b;
  color: #e0847a;
}

.result-badge.alternative {
  border: 1px solid #4a3f26;
  background: #2a2418;
  color: #d6b269;
}

.result-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.result-block > h4 {
  margin: 0;
  color: #858b8e;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.result-note {
  margin: 0;
  color: var(--quiet);
  font-size: 11px;
  line-height: 1.6;
}

.profile-summary,
.budget-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-summary div,
.budget-strip div {
  display: flex;
  min-width: 100px;
  flex-direction: column;
  gap: 3px;
  padding: 9px 11px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: #15181a;
}

.profile-summary span,
.budget-strip span {
  color: var(--quiet);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.profile-summary strong {
  color: #e6e7e6;
  font-size: 13px;
  font-weight: 600;
}

.budget-strip strong {
  color: #e6e7e6;
  font-size: 15px;
  font-weight: 600;
}

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

.result-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
}

.result-table th {
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
  color: #858b8e;
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
}

.result-table td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--line-soft);
  color: #d2d5d4;
  vertical-align: middle;
}

.result-table tr:last-child td {
  border-bottom: 0;
}

.result-table td.num,
.result-table th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.stat-group-row td {
  padding-top: 12px;
  color: #858b8e;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.tag {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
}

.tag.met {
  background: #1d2a1c;
  color: #8fd07f;
}

.tag.miss {
  background: #2c1d1b;
  color: #e0847a;
}

.tag.info {
  background: #20262a;
  color: #9fb4c0;
}

.tag.warn {
  background: #2a2418;
  color: #d6b269;
}

.constraint-list,
.problem-list {
  margin: 0;
  padding-left: 17px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.6;
}

.problem-list {
  color: #e0847a;
}

.constraint-list li,
.problem-list li {
  margin-bottom: 3px;
}

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

.content-footer {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 9px;
  color: #73797c;
  font-size: 10px;
}

.footer-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #6f7477;
}

@media (max-width: 760px) {
  .sidebar {
    width: 190px;
    min-width: 190px;
  }

  .main-content {
    padding-right: 25px;
    padding-left: 25px;
  }

  .status-pill {
    font-size: 8px;
  }

  .builder-top {
    grid-template-columns: 1fr;
  }
}

.lock-name {
  color: #c2c6c7;
  font-size: 12px;
}

.lock-row {
  grid-template-columns: minmax(82px, 0.65fr) minmax(145px, 1fr);
}

.lock-row .lock-control,
.lock-control {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.lock-control input,
.lock-control select {
  width: 100%;
}

.lock-row > select {
  width: 100%;
}

.field-hint {
  color: var(--quiet);
  font-size: 10px;
  line-height: 1.35;
}

.anomaly-help {
  max-height: 72px;
  overflow-y: auto;
}

.run-status.warning {
  color: #d6b269;
}

.badge-row.selected {
  border-left: 3px solid var(--tier-color, var(--accent));
}

.badge-row[data-tier="1"] {
  --tier-color: #a87345;
}

.badge-row[data-tier="2"] {
  --tier-color: #aeb7c2;
}

.badge-row[data-tier="3"] {
  --tier-color: #d8aa3d;
}

.badge-row[data-tier="4"] {
  --tier-color: #55bde7;
}

.badge-row[data-tier="5"] {
  --tier-color: #ba7be8;
}

.badge-tier[data-tier="1"] {
  border-color: #a87345;
  color: #d8b08c;
}

.badge-tier[data-tier="2"] {
  border-color: #aeb7c2;
  color: #d3d8de;
}

.badge-tier[data-tier="3"] {
  border-color: #d8aa3d;
  color: #e9ce83;
}

.badge-tier[data-tier="4"] {
  border-color: #55bde7;
  color: #a5dff5;
}

.badge-tier[data-tier="5"] {
  border-color: #ba7be8;
  color: #d9b3f2;
}

.badge-tier option[value="1"] {
  color: #d8b08c;
}

.badge-tier option[value="2"] {
  color: #d3d8de;
}

.badge-tier option[value="3"] {
  color: #e9ce83;
}

.badge-tier option[value="4"] {
  color: #a5dff5;
}

.badge-tier option[value="5"] {
  color: #d9b3f2;
}

.badge-chip.tier-1 {
  border-color: #a87345;
  color: #d8b08c;
}

.badge-chip.tier-2 {
  border-color: #aeb7c2;
  color: #d3d8de;
}

.badge-chip.tier-3 {
  border-color: #d8aa3d;
  color: #e9ce83;
}

.badge-chip.tier-4 {
  border-color: #55bde7;
  color: #a5dff5;
}

.badge-chip.tier-5 {
  border-color: #ba7be8;
  color: #d9b3f2;
}

.tag.tier-marker {
  border: 1px solid currentColor;
  background: transparent;
}

.tag.tier-1 {
  color: #d09a68;
}

.tag.tier-2 {
  color: #c5ccd4;
}

.tag.tier-3 {
  color: #e2bd56;
}

.tag.tier-4 {
  color: #76ceef;
}

.tag.tier-5 {
  color: #cc9cf0;
}

.allocation-board {
  display: grid;
  align-items: stretch;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.attribute-category {
  --category-color: #8c9295;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--category-color) 28%, #292d30);
  border-radius: 7px;
  background: #15181a;
}

.category-finishing {
  --category-color: #4c8ce0;
}

.category-shooting {
  --category-color: #34b77d;
}

.category-playmaking {
  --category-color: #d7a62b;
}

.category-defense {
  --category-color: #d6545b;
}

.category-physicals {
  --category-color: #9a66c5;
}

.attribute-category-title {
  margin: 0 0 2px;
  color: var(--category-color);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.category-attributes {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
}

.allocation-stat {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
  padding: 7px;
  border: 1px solid #34383a;
  border-radius: 5px;
  background: #1b1e20;
}

.allocation-stat-head,
.allocation-stat-foot {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}

.allocation-stat-name {
  overflow: hidden;
  color: #aeb4b6;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.allocation-potential {
  flex: none;
  color: var(--quiet);
  font-size: 8px;
  font-weight: 650;
}

.allocation-value {
  display: block;
  min-width: 0;
  padding: 4px 6px;
  border: 1px solid color-mix(in srgb, var(--category-color) 30%, #34383a);
  border-radius: 3px;
  background: color-mix(in srgb, var(--category-color) 11%, #17191b);
  color: #e8e9e8;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  text-align: center;
}

.allocation-value-control {
  display: grid;
  align-items: stretch;
  gap: 4px;
  grid-template-columns: 23px minmax(0, 1fr) 23px;
}

.allocation-value-control .allocation-value {
  display: grid;
  min-height: 30px;
  place-items: center;
}

.allocation-step {
  min-width: 0;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--category-color) 28%, #34383a);
  border-radius: 3px;
  background: color-mix(in srgb, var(--category-color) 8%, #17191b);
  color: var(--category-color);
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.allocation-step:hover:not(:disabled) {
  border-color: var(--category-color);
  background: color-mix(in srgb, var(--category-color) 20%, #17191b);
  color: #fff;
}

.allocation-step:active:not(:disabled) {
  transform: scale(0.94);
}

.allocation-step:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.allocation-stat-foot {
  color: #7e8588;
  font-size: 8px;
  font-variant-numeric: tabular-nums;
}

.allocation-linked {
  color: #d6b269;
  font-size: 9px;
  line-height: 1.35;
}

.physical-category {
  grid-column: 1 / -1;
}

.physical-attributes {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.adjustment-notice {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 11px 13px;
  border: 1px solid #62502a;
  border-radius: 6px;
  background: #252115;
  color: #e0c578;
}

.adjustment-notice strong {
  font-size: 12px;
}

.adjustment-notice p {
  margin: 0;
  color: #c9bb8d;
  font-size: 11px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .allocation-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .physical-attributes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .saved-workspace .page-intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .saved-build-row {
    align-items: flex-start;
    grid-template-columns: 18px minmax(0, 1fr);
  }

  .saved-build-actions {
    grid-column: 2;
  }

  .allocation-board {
    grid-template-columns: 1fr;
  }

  .physical-category {
    grid-column: auto;
  }

  .physical-attributes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* -- Sign-in gate (web only) ------------------------------------------------------ */

body {
  display: flex;
  flex-direction: column;
}

.auth-gate {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  padding: 24px;
  background: radial-gradient(circle at 50% 22%, #1b2024 0%, #111315 62%);
}

.auth-gate[hidden] {
  display: none;
}

.auth-card {
  display: flex;
  width: min(360px, 100%);
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 34px 28px 30px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  text-align: center;
}

.auth-card[hidden] {
  display: none;
}

.auth-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  object-fit: cover;
}

.auth-card h1 {
  margin: 4px 0 0;
  font-size: 22px;
}

.auth-sub {
  margin: 0;
  color: #92979a;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.auth-note {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.auth-note code {
  color: #cfd3d5;
  font-size: 11px;
}

.auth-button {
  width: 100%;
  margin-top: 10px;
}