/* src/style.css */
:root {
  color: #f4f3f0;
  background: #10151d;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    sans-serif;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
.page-shell {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}
header {
  max-width: 720px;
}
.eyebrow {
  color: #f9bd40;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  margin: 0;
  text-transform: uppercase;
}
h1,
h2 {
  color: #fff;
}
h1 {
  font-size: clamp(2.4rem, 7vw, 4.8rem);
  line-height: 0.95;
  margin: 0.4rem 0 1rem;
}
h2 {
  margin-top: 0;
}
.intro {
  color: #c6cbd4;
  font-size: 1.15rem;
  line-height: 1.6;
}
.rules {
  background: #1b2430;
  border-left: 4px solid #f9bd40;
  margin: 2.5rem 0;
  max-width: 720px;
  padding: 1rem 1.25rem;
}
.rules h2 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.rules ul {
  color: #d8dce3;
  margin: 0;
  padding-left: 1.2rem;
}
.rules li + li {
  margin-top: 0.35rem;
}
.catalog-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
label {
  display: grid;
  gap: 0.45rem;
  font-weight: 700;
}
textarea {
  background: #161e28;
  border: 1px solid #455062;
  border-radius: 0.35rem;
  color: #f4f3f0;
  font:
    0.9rem/1.45 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  padding: 0.7rem;
  resize: vertical;
}
textarea:focus {
  border-color: #f9bd40;
  outline: 2px solid #f9bd4055;
}
.field-help {
  color: #aeb6c3;
  font-size: 0.9rem;
}
.locks {
  border: 1px solid #455062;
  border-radius: 0.35rem;
  margin: 1.5rem 0;
  padding: 1rem;
}
.locks legend {
  font-weight: 800;
  padding: 0 0.4rem;
}
#lock-rows:empty::after {
  color: #aeb6c3;
  content: "No manual assignments added.";
  display: table-cell;
  font-style: italic;
  padding: 0.7rem;
}
.lock-table-wrapper {
  margin: 1rem 0;
  overflow-x: auto;
}
.lock-table {
  min-width: 720px;
}
.lock-table select {
  width: 100%;
}
select {
  background: #161e28;
  border: 1px solid #455062;
  border-radius: 0.35rem;
  color: #f4f3f0;
  font: inherit;
  min-width: 0;
  padding: 0.65rem;
}
select:focus {
  border-color: #f9bd40;
  outline: 2px solid #f9bd4055;
}
.remove-lock {
  background: #682b38;
  color: #f4f3f0;
  padding: 0.65rem 0.8rem;
}
.lock-badge {
  color: #ffd06b;
  font-size: 0.8rem;
  font-weight: 800;
}
.locked-assignment {
  background: #332d1d;
  box-shadow: inset 4px 0 #ffd06b;
}
.assignment-swap-control {
  background: transparent;
  border: 1px dashed transparent;
  border-radius: 0.2rem;
  color: inherit;
  cursor: grab;
  font: inherit;
  font-weight: inherit;
  padding: 0.2rem;
  text-align: left;
  width: 100%;
}
button.assignment-swap-control:hover:not(:disabled),
button.assignment-swap-control:focus-visible {
  background: #263244;
  border-color: #f9bd40;
  outline: 2px solid #f9bd4055;
}
.assignment-swap-control.is-selected {
  background: #513e18;
  border-color: #ffd06b;
  cursor: pointer;
}
.swap-instructions {
  color: #d8dce3;
  margin: -0.5rem 0 1rem;
  max-width: 720px;
}
.aspect-label,
.aspect-select {
  border-radius: 0.25rem;
  font-weight: 800;
}
.aspect-label {
  display: inline-block;
  padding: 0.15rem 0.4rem;
}
.aspect-aggression {
  background: #a52834;
  color: #fff;
}
.aspect-justice {
  background: #f9bd40;
  color: #131923;
}
.aspect-protection {
  background: #24734d;
  color: #fff;
}
.aspect-leadership {
  background: #2366a3;
  color: #fff;
}
.aspect-pool {
  background: #b84278;
  color: #fff;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}
button {
  background: #f9bd40;
  border: 0;
  border-radius: 0.3rem;
  color: #131923;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 0.8rem 1rem;
}
button:hover:not(:disabled) {
  background: #ffd06b;
}
button:disabled {
  cursor: wait;
  opacity: 0.7;
}
button.secondary {
  background: #354154;
  color: #f4f3f0;
}
.messages {
  margin-top: 1.25rem;
}
.message {
  border-radius: 0.3rem;
  margin: 0.5rem 0;
  padding: 0.75rem 1rem;
}
.error {
  background: #521c28;
  border: 1px solid #c4495a;
}
.warning {
  background: #513e18;
  border: 1px solid #b88927;
}
.info {
  background: #193852;
  border: 1px solid #357aad;
}
.success {
  background: #1d4b36;
  border: 1px solid #3c9d70;
}
#results {
  margin-top: 2.5rem;
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  min-width: 900px;
  width: 100%;
}
th,
td {
  border: 1px solid #3d4859;
  padding: 0.7rem;
  text-align: left;
  vertical-align: top;
}
thead {
  background: #263244;
}
tbody tr:nth-child(even) {
  background: #161e28;
}
tbody th {
  background: #202a38;
}
@media (max-width: 720px) {
  .page-shell {
    padding: 2rem 1rem;
  }
  .catalog-grid {
    grid-template-columns: 1fr;
  }
}
