/* Low-glare navy surfaces and cool-grey type. */
:root {
  --ui-font: Verdana, Arial, sans-serif;
  --font-body: 0.9375rem;
  --font-control: 0.875rem;
  --font-label: 0.8125rem;
  --font-help: 0.75rem;
  --control-height: 36px;
  --field-gap: 6px;
  --navy: #182b43;
  --ink: #d6e2ed;
  --line: #41566d;
  --muted: #acbdce;
  --text: #d6e2ed;
  --faint: #9aafc2;
  --orange: #315f83;
  --orange-2: #315f83;
  --green: #346347;
  --red: #9e342e;
  color-scheme: dark;
  --warning-bg: #30262e;
  --warning-border: #865d6b;
  --warning-text: #dfbac4;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: #0c1420;
  background-image: repeating-linear-gradient(
    135deg,
    transparent,
    transparent 3px,
    #ffffff03 3px,
    #ffffff03 4px
  );
  font: var(--font-body) / 1.6 var(--ui-font);
  color: var(--ink);
}
button,
input,
select {
  font: inherit;
}
button,
a,
summary {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  cursor: default;
}
a {
  color: #a5cbed;
  text-decoration: underline;
  text-underline-offset: 2px;
}
a:hover {
  color: #e6a299;
}
button,
input,
select,
summary,
a {
  outline-offset: 3px;
}
:focus-visible {
  outline: 2px solid #41566d;
  outline-color: #aacdef;
}
h1,
h2,
h3,
p {
  margin: 0;
}
button,
input,
select,
.panel {
  border-radius: 0;
}
.shell {
  max-width: 1260px;
  margin: 24px auto;
  border: 1px solid #41566d;
  background: #172332;
  box-shadow:
    0 0 0 5px #0b1726,
    0 0 0 6px #0b1726;
}
.planner-starting .topnav,
.planner-starting .site-body,
.planner-starting footer {
  visibility: hidden;
}
.masthead {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 25px 24px;
  background: #1b2d43;
  color: #e0e8f0;
  border-bottom: 1px solid #41566d;
  position: relative;
}
.masthead:after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 10px;
  right: 10px;
  border-bottom: 1px solid #41566d;
}
.site-mark {
  flex-shrink: 0;
  padding: 3px;
  width: 57px;
  height: 69px;
  border: 2px solid #41566d;
  outline: 1px solid #41566d;
  outline-offset: 3px;
  align-content: center;
  text-align: center;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.site-title > p {
  font: 0.8125rem/1.5 var(--ui-font);
  color: #acbdce;
  letter-spacing: 1px;
}
.site-title h1 {
  font:
    bold 2.4375rem/1.15 Georgia,
    serif;
  letter-spacing: -1px;
  text-shadow: 1px 2px #0b1726;
}
.site-title h1 em {
  font-weight: normal;
  color: #acbdce;
}
.site-title > span {
  font: 0.875rem/1.8 var(--ui-font);
  color: #acbdce;
  font-style: normal;
}
.masthead-note {
  margin-left: auto;
  text-align: right;
  display: grid;
  gap: 3px;
  color: #acbdce;
  font-size: 0.8125rem;
}
.masthead-note > span {
  font: 0.8125rem/1.5 var(--ui-font);
  letter-spacing: 1px;
}
.masthead-note b {
  font: 1.125rem/1.5 var(--ui-font);
  color: #acbdce;
}
.masthead-note small {
  color: #acbdce;
}
.masthead-note a {
  white-space: nowrap;
}
.topnav {
  display: flex;
  align-items: stretch;
  background: #203144;
  border-block: 1px solid #41566d;
  box-shadow: 0 1px #0b1726;
}
.topnav .relic-tabs {
  display: flex;
  flex: 2 1 auto;
}
.topnav a {
  flex: 1 1 auto;
  border-right: 1px solid #41566d;
  color: #d6e2ed;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.875rem;
  text-shadow: none;
  padding: 12px 16px;
}
.topnav > [data-play-mode] {
  flex-basis: 8rem;
}
.topnav a span {
  font: 0.8125rem/1.5 var(--ui-font);
  color: #acbdce;
  margin-right: 7px;
  font-family: var(--ui-font);
  font-size: 0.8125rem;
}
.topnav a.active {
  background: #263d52;
  box-shadow: inset 0 3px #0b1726;
  color: #d6e2ed;
}
.topnav a:hover {
  background: #293f54;
}
.site-body {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
}
.directory {
  padding: 18px 13px;
  background: #142130;
  border-right: 1px solid #41566d;
  line-height: 1.65;
}
.directory h2 {
  font: bold 0.875rem/1.5 var(--ui-font);
  border-bottom: 2px solid #41566d;
  padding: 0 0 5px;
  margin: 0 0 9px;
  color: #d6e2ed;
}
.directory h2:not(:first-child) {
  margin-top: 23px;
}
.directory-links {
  padding: 0;
  list-style: none;
  margin: 0;
}
.directory-links li {
  border-bottom: 1px dotted #41566d;
  padding: 7px 0;
}
.directory-links a {
  font-size: 0.8125rem;
  text-decoration: none;
}
.directory-links a:before {
  content: '›';
  color: #acbdce;
  margin-right: 6px;
}
.ledger-counts,
.cap-list {
  margin: 0;
}
.ledger-counts > div,
.cap-list > div {
  display: flex;
  justify-content: space-between;
  gap: 7px;
  padding: 4px 0;
  border-bottom: 1px dotted #41566d;
  font-size: 0.8125rem;
}
.ledger-counts dd,
.cap-list dd {
  margin: 0;
  font: bold 0.875rem/1.5 var(--ui-font);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ledger-counts dt,
.cap-list dt {
  color: #acbdce;
}
.small-note {
  font: 0.8125rem/1.6 var(--ui-font);
  margin: 10px 0 18px;
  color: #acbdce;
}
.reference-note {
  font-size: 0.8125rem;
  border-top: 1px solid #41566d;
  padding: 9px 0;
}
.reference-note summary {
  font-weight: bold;
  cursor: pointer;
}
.reference-note p {
  margin: 8px 0;
}
.reference-note table {
  margin: 8px 0;
  font-size: 0.8125rem;
}
.reference-note th,
.reference-note td {
  padding: 5px 3px;
}
.reference-note caption {
  text-align: left;
  font-style: italic;
  margin-bottom: 4px;
}
.little-button {
  display: flex;
  gap: 6px;
  align-items: center;
  background: #1f3042;
  border: 1px solid #41566d;
  margin: 20px 0 3px;
  padding: 5px;
  text-decoration: none;
  box-shadow: 1px 1px #0b1726;
  color: #d6e2ed;
}
.little-button b {
  padding: 7px 4px;
  background: #244663;
  color: #acbdce;
  font: 1rem/1.5 var(--ui-font);
}
.little-button span {
  font: 0.8125rem/1.4 var(--ui-font);
  line-height: 1.5;
}
main {
  min-width: 0;
  padding: 0 20px 24px;
}
.breadcrumb {
  font-size: 0.8125rem;
  color: #acbdce;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 0;
  border-bottom: 1px solid #41566d;
}
.breadcrumb strong {
  font-weight: normal;
  color: #d6e2ed;
}
.local-tag {
  margin-left: auto;
  font-size: 0.8125rem;
  color: #9ccbad;
}
.build-file {
  border: 1px solid #41566d;
  background: #192838;
  margin-top: 16px;
  box-shadow: 1px 1px #0b1726;
}
.build-file-title {
  padding: 7px 10px;
  background: #22364a;
  border-bottom: 1px solid #41566d;
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 0.875rem;
}
.build-file-title .text-button {
  margin-left: auto;
}
.file-controls {
  padding: 12px;
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 10px;
}
.field {
  display: grid;
  min-width: 0;
  gap: var(--field-gap);
  align-content: start;
  grid-auto-rows: max-content;
}
.field > span {
  font-size: var(--font-label);
  font-weight: bold;
  color: #acbdce;
  line-height: 1.5;
}
.field > small {
  font-size: var(--font-help);
  font-weight: normal;
  line-height: 1.5;
  color: var(--muted);
}
.build-name {
  flex: 1;
  min-width: 170px;
}
.file-controls .field:nth-child(2) {
  flex: 1;
  min-width: 150px;
}
.field input,
.field select {
  width: 100%;
  min-width: 0;
}
input,
select {
  font: normal var(--font-control) / 1.5 var(--ui-font);
  border: 1px solid #41566d;
  background: #101c29;
  color: #d6e2ed;
  padding: 6px 8px;
  box-shadow: inset 1px 1px 1px #0b1726;
  min-height: var(--control-height);
}
input:not([type='checkbox']):not([type='range']),
select:not([multiple]) {
  height: var(--control-height);
}
select[multiple] {
  height: auto;
}
input:hover,
select:hover {
  border-color: #41566d;
}
.button {
  border: 1px solid #41566d;
  border-top-color: #becad4;
  background: #2b4156;
  box-shadow:
    inset 0 1px #0b1726,
    0 1px #0b1726;
  color: #d6e2ed;
  white-space: nowrap;
  font-size: var(--font-control);
  line-height: 1.5;
  min-height: var(--control-height);
  padding: 6px 12px;
}
.button.primary {
  background: #355e7d;
  border-color: #41566d;
  color: #e0e8f0;
  box-shadow:
    inset 0 1px #0b1726,
    0 1px #0b1726;
}
.button:hover {
  background: #344e65;
}
.button.primary:hover {
  background: #254765;
}
.button:active {
  transform: translateY(1px);
  box-shadow: inset 1px 1px #0b1726;
}
.text-button {
  background: none;
  border: 0;
  text-decoration: underline;
  color: #a5cbed;
  font-size: 0.8125rem;
  padding: 3px;
}
.page-intro {
  margin: 22px 0 13px;
  border-bottom: 1px solid #41566d;
  padding-bottom: 9px;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 6px 16px;
}
.page-intro h2 {
  font: bold 1.375rem/1.3 var(--ui-font);
  color: #d6e2ed;
  font-size: 1.375rem;
}
.page-intro p {
  font-size: 0.8125rem;
  color: #acbdce;
}
.equipment-strip {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 16px;
}
.equipment-slot {
  background: #22364a;
  border: 1px solid #41566d;
  box-shadow: inset 1px 1px #0b1726;
  padding: 8px 2px 5px;
  display: grid;
  gap: 5px;
  justify-items: center;
  color: #acbdce;
  font-size: 0.8125rem;
  position: relative;
  min-height: 74px;
}
.equipment-slot:hover {
  background: #2c4257;
  border-color: #41566d;
}
.equipment-slot.equipped {
  background: #29465d;
  color: #a5cbed;
  box-shadow: inset 0 -3px #0b1726;
}
.equipment-slot.equipped:after {
  content: '•';
  position: absolute;
  right: 4px;
  top: 0;
  color: #adcbe3;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 228px;
  gap: 14px;
  align-items: start;
}
.panel {
  border: 1px solid #41566d;
  background: #1b2a3a;
  padding: 14px;
  margin-bottom: 14px;
  box-shadow: 1px 1px #0b1726;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #263f55;
  color: #e0e8f0;
  padding: 8px 11px;
  margin: -14px -14px 14px;
  border-bottom: 1px solid #41566d;
  box-shadow: inset 0 1px #0b1726;
  gap: 8px;
  flex-wrap: wrap;
}
.section-heading h3 {
  font: bold var(--font-control) / 1.5 var(--ui-font);
  letter-spacing: 0.1px;
}
.section-heading .text-button {
  color: #e0e8f0;
  text-decoration: none;
  font-weight: bold;
}
.section-heading .text-button:hover {
  text-decoration: underline;
}
.slot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.item-card {
  border: 1px solid #41566d;
  background: #203244;
  padding: 10px;
  min-width: 0;
  transition: background-color 0.15s;
}
.item-head {
  display: flex;
  align-items: center;
  padding-bottom: 6px;
  margin-bottom: 8px;
  border-bottom: 1px solid #41566d;
  flex-wrap: wrap;
  gap: 6px;
}
.slot-name {
  font: bold 0.875rem/1.5 var(--ui-font);
  color: #d6e2ed;
  font-weight: bold;
}
.item-variant {
  margin-left: auto;
  color: #acbdce;
  font: 0.8125rem/1.3 var(--ui-font);
  text-align: right;
  max-width: none;
}
.remove-item {
  background: none;
  border: 0;
  color: #acbdce;
  font: 1.0625rem/1 var(--ui-font);
  padding: 0 0 0 5px;
}
.item-card select {
  width: 100%;
  margin: 0;
}
.affix-list {
  display: grid;
  gap: 5px;
}
.affix-row {
  display: grid;
  align-items: center;
  gap: 5px;
  grid-template-columns: 16px minmax(0, 1fr) 36px 30px;
}
.affix-row > span {
  font: 0.8125rem/1.5 var(--ui-font);
  color: #acbdce;
}
.affix-row select {
  margin: 0;
}
.affix-row small {
  font: 0.8125rem/1.5 var(--ui-font);
  color: #acbdce;
  text-align: right;
}
.add-affix {
  margin: 7px 0 10px;
  width: 100%;
  border: 1px dashed #41566d;
  background: #21364a;
  text-align: left;
  color: #a5cbed;
  font-size: 0.8125rem;
  padding: 5px 7px;
}
.add-affix span {
  float: right;
}
.add-affix:disabled {
  opacity: 0.45;
}
.no-affixes {
  font-size: 0.8125rem;
  color: #acbdce;
}
.item-footer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr));
  border-top: 1px dotted #41566d;
  padding-top: 2px;
  gap: 3px 8px;
}
.item-footer label {
  font-size: var(--font-label);
  font-weight: bold;
  line-height: 1.5;
  color: #acbdce;
  display: grid;
  gap: 3px;
  align-content: start;
  grid-template-rows: max-content var(--control-height);
}
.item-footer input,
.item-footer select {
  width: 100%;
  margin: 0;
}
.item-tag {
  font-size: 0.8125rem;
  color: #acbdce;
  margin-top: 7px;
  text-overflow: ellipsis;
  white-space: normal;
  overflow: visible;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.item-card.flash {
  background: #304f69;
  outline: 2px solid #41566d;
}
.empty-state {
  text-align: center;
  padding: 38px 10px 36px;
}
.empty-emblem {
  font: 2.375rem/1.5 var(--ui-font);
  color: #acbdce;
  margin-bottom: 10px;
}
.empty-state h3 {
  font: 1.25rem/1.5 var(--ui-font);
  color: #acbdce;
}
.empty-state p {
  color: #acbdce;
  font-size: 0.875rem;
  margin: 12px 0 18px;
}
.empty-state > a {
  display: block;
  margin-top: 14px;
  font-size: 0.8125rem;
}
.side-column .muted {
  font-size: 0.8125rem;
}
.muted {
  color: #acbdce;
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 13px;
}
.wide {
  width: 100%;
  display: flex;
  justify-content: center;
}
.status-pill {
  font: 0.8125rem/1.5 var(--ui-font);
  color: #e0e8f0;
  white-space: nowrap;
}
.recommendations:empty {
  display: none;
}
.recommendations {
  margin-top: 12px;
  display: grid;
  gap: 9px;
}
.rec {
  border-top: 1px dotted #41566d;
  padding-top: 8px;
}
.rec-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: #a5cbed;
  gap: 7px;
}
.rec small {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #acbdce;
  margin-top: 3px;
}
.rule {
  display: flex;
  gap: 10px;
  margin: 10px 0;
  font-size: 0.8125rem;
  color: #acbdce;
  line-height: 1.65;
}
.rule b {
  font: 0.9375rem/1.5 var(--ui-font);
  color: #acbdce;
  font-weight: bold;
}
.score-panel summary {
  font-size: 0.8125rem;
  color: #acbdce;
  cursor: pointer;
}
.score-panel summary small {
  font-size: 0.8125rem;
  color: #acbdce;
}
.score-panel .muted {
  margin-top: 10px;
}
.score-ring {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin: 10px 0;
}
.score-ring strong {
  font: 1.5rem/1.5 var(--ui-font);
}
.score-ring span {
  font-size: 0.8125rem;
  color: #acbdce;
}
.score-bars {
  display: grid;
  gap: 7px;
}
.bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: #acbdce;
}
.bar-label b {
  font-weight: normal;
}
.bar {
  height: 4px;
  background: #101e2c;
  margin-top: 3px;
}
.bar i {
  display: block;
  height: 100%;
  background: #6d91ac;
}
.solver-panel {
  padding: 20px;
}
.solver-panel > .section-heading {
  margin: -20px -20px 20px;
  padding: 10px 14px;
}
.solver-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.solver-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  margin-top: 20px;
  align-items: end;
}
.solver-power-field small {
  font-size: var(--font-help);
  color: #acbdce;
}
.solver-result {
  border-top: 1px dotted #41566d;
  margin-top: 20px;
  padding-top: 16px;
  font-size: 0.875rem;
}
.solver-result-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}
.solver-chip {
  background: #263b4f;
  border: 1px solid #41566d;
  padding: 7px;
  font-size: 0.8125rem;
  line-height: 1.6;
}
.result-ok {
  color: #9ccbad;
}
.result-warn {
  color: #e6a299;
}
.solver-placeholder {
  color: #acbdce;
  font-style: italic;
}
.library-search {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: var(--font-label);
  font-weight: bold;
}
.library-search input {
  width: 230px;
}
.library-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.segmented,
.affix-filters {
  display: flex;
  gap: 3px;
}
.segmented button,
.affix-filters button {
  border: 1px solid #41566d;
  background: #243a4e;
  color: #acbdce;
  font-size: 0.8125rem;
  padding: 7px 10px;
}
.segmented button.active,
.affix-filters button.active {
  background: #315b7b;
  color: #e0e8f0;
  border-color: #41566d;
}
.library-meta {
  font-size: 0.8125rem;
  color: #acbdce;
  margin: 9px 0;
  line-height: 1.65;
}
.library-table-wrap {
  max-height: 640px;
  overflow: auto;
  border: 1px solid #41566d;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.8125rem;
}
th {
  text-align: left;
  font-weight: bold;
  color: #acbdce;
  background: #253c51;
}
td,
th {
  padding: 9px 10px;
  border-bottom: 1px solid #41566d;
  vertical-align: top;
}
td {
  color: #acbdce;
  line-height: 1.6;
}
thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}
tbody tr:nth-child(even) {
  background: #1d2f40;
}
tbody tr:hover {
  background: #2b4257;
}
td:first-child {
  color: #d6e2ed;
  font-weight: bold;
}
footer {
  border-top: 1px solid #41566d;
  background: #142130;
  color: #acbdce;
  display: flex;
  justify-content: space-between;
  padding: 10px 16px;
  font-size: 0.8125rem;
  gap: 10px;
  flex-wrap: wrap;
}
footer a {
  color: #acbdce;
}
.hidden,
[hidden] {
  display: none !important;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 10px);
  opacity: 0;
  pointer-events: none;
  background: #203e57;
  color: #e0e8f0;
  padding: 10px 20px;
  border: 1px solid #41566d;
  box-shadow: 3px 3px #0b1726;
  font-size: 0.875rem;
  transition: 0.15s;
  z-index: 20;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.skip-link {
  position: absolute;
  left: 10px;
  top: -80px;
  padding: 8px;
  z-index: 30;
  background: #22384e;
  color: #e0e8f0;
}
.skip-link:focus {
  top: 10px;
}
.warning {
  color: #e6a299;
}
@media (max-width: 1100px) {
  .shell {
    margin: 10px;
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr);
  }
  .side-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .side-column .panel {
    margin: 0;
  }
  .score-panel {
    grid-column: 1/-1;
  }
  .masthead {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    row-gap: 6px;
  }
  .masthead-note {
    grid-column: 2;
    margin-left: 0;
    text-align: left;
  }
  .masthead-note > span,
  .masthead-note > b {
    display: none;
  }
  .file-controls .field {
    flex-basis: 40%;
  }
  .page-intro {
    display: block;
  }
  .page-intro p {
    margin-top: 4px;
  }
}
@media (max-width: 760px) {
  .site-body {
    grid-template-columns: 1fr;
  }
  .directory {
    display: none;
  }
  .topnav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  main {
    padding: 0 12px 18px;
  }
  .masthead {
    padding: 19px 17px;
    column-gap: 14px;
  }
  .site-title h1 {
    font-size: 1.875rem;
  }
  .site-title > p {
    font-size: 0.8125rem;
  }
  .site-mark {
    width: 40px;
    height: 53px;
  }
  .site-title > span {
    font-size: 0.8125rem;
  }
  .topnav {
    flex-wrap: wrap;
  }
  .topnav a {
    font-size: 0.8125rem;
    flex: 1;
    text-align: center;
  }
  .topnav .relic-tabs,
  .topnav [data-view='manual']:first-child ~ [data-view='library'],
  .topnav [data-view='guide']:first-child ~ [data-play-mode] {
    grid-column: 1 / -1;
  }
  .topnav a span {
    display: none;
  }
  .local-tag {
    display: none;
  }
  .equipment-strip {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
  }
  .equipment-slot {
    padding-top: 7px;
  }
  .solver-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .solver-bottom {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .side-column {
    grid-template-columns: 1fr;
  }
  .score-panel {
    grid-column: auto;
  }
  .library-heading {
    display: block;
  }
  .library-search {
    margin-top: 8px;
  }
  .library-search input {
    width: 100%;
  }
  .slot-grid {
    gap: 8px;
  }
  .item-variant {
    font-size: 0.8125rem;
  }
  .item-card {
    padding: 8px;
  }
  .item-tag {
    font-size: 0.8125rem;
  }
  .breadcrumb {
    font-size: 0.8125rem;
  }
  .section-heading h3 {
    font-size: 0.8125rem;
  }
}
.equipment-summary {
  margin-top: 22px;
  font-size: 0.8125rem;
  min-width: 0;
}
.equipment-summary h2 {
  font: bold 0.875rem/1.5 var(--ui-font);
  border-bottom: 2px solid var(--line);
  padding-bottom: 5px;
  margin: 0 0 10px;
}
.bonus-group {
  margin-top: 14px;
}
.bonus-group h3,
.summary-powers-section h3 {
  padding: 6px 8px;
  background: #263f55;
  border: 1px solid var(--line);
  font: bold 0.8125rem/1.5 var(--ui-font);
  color: #e0e8f0;
}
.bonus-table {
  table-layout: fixed;
  width: 100%;
  font-size: 0.8125rem;
}
.bonus-table thead th {
  position: static;
  background: #192c3e;
  padding: 5px 8px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.bonus-table thead th:last-child {
  width: 34%;
  text-align: right;
}
.bonus-table tbody th,
.bonus-table tbody td {
  padding: 8px;
  vertical-align: top;
  background: transparent;
  white-space: normal;
  overflow-wrap: anywhere;
  border-bottom: 1px solid var(--line);
}
.bonus-table tbody th {
  font-weight: normal;
  line-height: 1.5;
}
.bonus-table tbody td {
  text-align: right;
  color: #c5dfeb;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}
.bonus-table tbody tr:nth-child(odd) {
  background: #192b3c;
}
.bonus-label {
  display: block;
  color: var(--ink);
  font-weight: bold;
}
.bonus-source,
.bonus-condition {
  display: block;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 3px;
}
.bonus-condition {
  color: #c0cbd3;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.summary-note {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 9px 0;
  overflow-wrap: anywhere;
}
.summary-defence {
  display: grid;
  gap: var(--field-gap);
  margin-top: 12px;
  color: var(--muted);
  font-size: var(--font-label);
  font-weight: bold;
}
.summary-defence input {
  width: 100%;
  min-width: 0;
}
.summary-powers-section {
  margin-top: 16px;
}
.summary-powers {
  list-style: none;
  padding: 0;
  margin: 10px 0;
}
.summary-powers li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  line-height: 1.65;
}
.summary-power-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}
.summary-powers small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
  font-size: var(--font-help);
}
.summary-powers .power-help {
  flex: none;
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}
.guide-panel {
  margin-bottom: 0;
  min-width: 0;
}
.guide-start {
  grid-column: 1/-1;
}
.guide-panel p,
.guide-panel li {
  line-height: 1.75;
  font-size: 0.9375rem;
}
.guide-panel p + p,
.guide-panel ol + p {
  margin-top: 12px;
}
.guide-panel ol {
  margin: 0;
  padding-left: 23px;
}
.guide-panel li + li {
  margin-top: 8px;
}
.guide-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 16px;
}
.guide-links .button {
  display: inline-block;
  text-decoration: none;
  white-space: normal;
}
.guide-completion {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid var(--line);
  background: #192838;
}
.guide-completion p {
  font-size: var(--font-help);
  line-height: 1.6;
  color: var(--muted);
  margin-top: 8px;
}
.check-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--control-height);
  font-size: var(--font-control);
  font-weight: bold;
  line-height: 1.5;
  cursor: pointer;
}
.play-mode-options {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin-bottom: 6px;
}
input[type='checkbox'],
.play-mode-options input[type='radio'] {
  width: 18px;
  height: 18px;
  min-height: 0;
  padding: 0;
  accent-color: #8fb6d5;
  flex: none;
}
/* Relic preview uses the planner's existing typography and panel palette. */
.relic-intro {
  font-size: var(--font-control);
  line-height: 1.7;
}
.prestige-panel ul {
  margin: 8px 0;
  padding-left: 20px;
}
.prestige-panel ul li + li,
.prestige-panel p + p {
  margin-top: 6px;
}
.prestige-panel .relic-selection-summary,
#prestigeRelicLocksEmpty {
  margin-top: 10px;
}
.prestige-actions {
  display: flex;
  align-items: center;
  gap: 8px 14px;
  flex-wrap: wrap;
  margin: 10px 0;
}
.prestige-history-entry {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.prestige-history-entry summary {
  cursor: pointer;
  font-weight: bold;
}
.league-point-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 8px;
  margin: 10px 0;
}
.league-point-total {
  font-weight: bold;
}
#prestigeStatus:empty,
#leaguePointStatus:empty {
  display: none;
}
.achievement-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
}
.achievement-stats > div {
  padding: 8px;
  border: 1px solid var(--line);
  background: #192838;
}
.achievement-stats dt,
.achievement-entry small,
.achievement-entry-points small,
.achievement-results-count {
  color: var(--muted);
  font-size: var(--font-help);
}
.achievement-stats dd {
  margin: 3px 0 0;
  font-weight: bold;
  font-variant-numeric: tabular-nums;
}
#achievementProgress {
  display: block;
  width: 100%;
  height: 10px;
  margin: 8px 0 12px;
  accent-color: #8fb6d5;
}
.achievement-breakdown > summary {
  cursor: pointer;
  font-size: var(--font-control);
  font-weight: bold;
}
.achievement-breakdown p {
  margin: 8px 0;
}
.achievement-breakdown table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-label);
}
.achievement-breakdown th,
.achievement-breakdown td {
  padding: 5px;
  border-bottom: 1px solid var(--line);
  text-align: right;
}
.achievement-breakdown th:first-child {
  text-align: left;
}
.achievement-filters {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(160px, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.achievement-results-count {
  margin: 12px 0 4px;
}
.achievement-results {
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: var(--font-control);
}
.achievement-results > li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.achievement-entry > *,
.achievement-entry-points > * {
  display: block;
}
.achievement-entry-controls,
.achievement-pagination {
  display: flex;
  align-items: center;
  gap: 10px;
}
.achievement-entry-points {
  min-width: 88px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.achievement-entry-controls label {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: var(--control-height);
  cursor: pointer;
  font-size: var(--font-label);
}
.achievement-entry-controls input {
  margin: 0;
}
.achievement-pagination {
  justify-content: flex-end;
  margin-top: 12px;
}
@media (max-width: 1000px) {
  .achievement-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .achievement-search {
    grid-column: 1 / -1;
  }
}
@media (max-width: 560px) {
  .achievement-results > li {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .achievement-entry-points {
    flex: 1;
    text-align: left;
  }
}
@media (max-width: 380px) {
  .achievement-filters > .field:nth-child(2) {
    grid-column: 1 / -1;
  }
}
.group-controls {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 8px 10px;
}
.group-size {
  width: 82px;
}
.group-code {
  width: 112px;
}
.group-code input {
  font-family: ui-monospace, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}
.group-controls .button:disabled {
  opacity: 0.55;
}
.group-sync-status {
  font-size: var(--font-help);
  color: #b5d8bf;
  margin: auto 0 9px auto;
}
.group-sync-error {
  color: var(--warning-text);
}
.group-room-help {
  margin: 10px 0 14px;
}
.group-member {
  display: grid;
  grid-template-columns: 100px repeat(4, minmax(0, 1fr));
  gap: 6px 8px;
  align-items: end;
}
.group-member {
  padding: 6px 0;
  border-top: 1px dotted var(--line);
}
.group-member label {
  min-width: 0;
}
.group-member input,
.group-member select {
  width: 100%;
  min-width: 0;
}
.group-relic-field > span {
  display: block;
  font-size: var(--font-help);
  color: var(--muted);
  margin-bottom: 3px;
}
.group-member-name {
  grid-row: span 2;
  align-self: start;
  margin-top: 23px;
}
.reloaded-field {
  max-width: 420px;
  margin-bottom: 12px;
}
.group-totals table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: var(--font-label);
}
.group-totals th,
.group-totals td {
  padding: 5px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.group-totals td {
  overflow-wrap: anywhere;
}
.group-totals thead th {
  color: var(--muted);
  background: #142230;
}
.group-total-relic {
  display: flex;
  align-items: center;
  gap: 8px;
}
.group-total-relic img {
  flex: none;
  image-rendering: pixelated;
}
.group-total-relic small {
  color: var(--muted);
  font-weight: normal;
}
.group-total-count {
  font-weight: bold;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.group-empty {
  padding: 16px 0;
  color: var(--muted);
  font-size: var(--font-label);
}
@media (max-width: 1200px) {
  .group-member {
    grid-template-columns: 110px repeat(2, minmax(0, 1fr));
    gap: 6px 10px;
    padding: 10px 0;
    align-items: end;
  }
  .group-member-name {
    grid-row: span 4;
  }
}
@media (max-width: 560px) {
  .group-member {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .group-member-name {
    grid-row: auto;
    margin: 0 0 3px;
  }
  .group-totals th,
  .group-totals td {
    padding: 5px;
  }
  .group-total-relic {
    gap: 5px;
  }
}
.relic-count {
  color: var(--muted);
  font-size: var(--font-label);
  font-weight: normal;
}
.relic-selection-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}
.relic-summary-slot {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 12px;
  border: 1px dashed var(--line);
  min-width: 0;
}
.relic-summary-slot.has-choice {
  border-style: solid;
  background: #20384c;
}
.relic-summary-slot > span {
  color: var(--muted);
  font-size: var(--font-help);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.relic-summary-slot strong {
  font-size: var(--font-control);
}
.relic-summary-slot small {
  font-size: var(--font-help);
  color: var(--muted);
}
.relic-summary-choice {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.relic-summary-choice strong {
  min-width: 0;
  overflow-wrap: anywhere;
}
.relic-summary-icon.relic-icon {
  width: 47px;
  height: 47px;
}
.relic-global-passives {
  margin-top: 18px;
}
.relic-global-passives > h4 {
  font-size: var(--font-control);
  margin: 0 0 6px;
}
.relic-global-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 8px;
}
.relic-global-groups .relic-passives {
  margin: 0;
  min-width: 0;
}
.relic-global-groups h5 {
  font-size: var(--font-label);
  margin: 0 0 6px;
}
.relic-global-groups .relic-passives ul {
  grid-template-columns: 1fr;
  margin-bottom: 0;
}
.relic-plan-actions,
.relic-tier-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.relic-plan-actions {
  justify-content: space-between;
  margin: 12px 0;
}
.relic-tier-links .text-button {
  min-height: 36px;
  padding: 4px 6px;
}
.relic-help,
.relic-source-note {
  font-size: var(--font-help);
  color: var(--muted);
  line-height: 1.7;
}
.relic-source-note {
  border-top: 1px dotted var(--line);
  padding-top: 10px;
  margin-top: 12px;
}
.relic-tier {
  min-width: 0;
  margin: 22px 0;
  padding: 14px;
  scroll-margin-top: 16px;
}
.relic-icon {
  width: 62px;
  height: 62px;
  object-fit: contain;
  image-rendering: pixelated;
  flex: none;
}
.relic-card-status {
  margin-top: 10px;
  font-size: var(--font-label);
  font-weight: bold;
  color: #c6dff1;
}
.relic-passives {
  padding: 12px 14px;
  border-left: 3px solid #577995;
  background: #142230;
  margin-top: 14px;
}
.relic-passives h3 {
  font-size: var(--font-label);
  margin-bottom: 6px;
}
.relic-passives ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 24px;
  margin: 0 0 8px;
  padding-left: 18px;
  font-size: var(--font-label);
  line-height: 1.65;
}
.relic-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}
.relic-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  background: #192a3b;
  padding: 14px;
}
.relic-card.relic-selected {
  border-color: #a5cbed;
  background: #243e54;
  box-shadow: inset 0 3px #a5cbed;
}
.relic-choice {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  cursor: pointer;
  padding-bottom: 12px;
  border-bottom: 1px dotted var(--line);
}
.relic-choice input[type='radio'] {
  appearance: auto;
  width: 18px;
  height: 18px;
  min-height: 18px;
  padding: 0;
  margin: 3px 0 0;
  accent-color: #a5cbed;
  flex: none;
}
.relic-choice span {
  min-width: 0;
}
.relic-choice strong {
  display: block;
  font-size: var(--font-control);
  line-height: 1.6;
}
.relic-choice small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: var(--font-help);
  line-height: 1.65;
}
.relic-effects {
  padding-left: 18px;
  margin: 12px 0;
  font-size: var(--font-label);
  line-height: 1.75;
}
.relic-effects li + li {
  margin-top: 10px;
}
.relic-card-source {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  font-size: var(--font-help);
  min-height: 48px;
}
.equipment-relic-plan {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  margin-bottom: 16px;
  background: #1b2a3a;
  font-size: var(--font-label);
}
.equipment-relic-plan h3 {
  font-size: var(--font-label);
}
.equipment-relic-plan p {
  margin: 5px 0;
}
.equipment-relic-plan small {
  color: var(--muted);
  font-size: var(--font-help);
}
@media (max-width: 1100px) {
  .relic-card-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .relic-selection-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .relic-passives ul {
    grid-template-columns: 1fr;
  }
  .relic-global-groups {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 440px) {
  .relic-summary-choice {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 760px) {
  .guide-grid {
    grid-template-columns: 1fr;
  }
  #mobileSummaryMount .equipment-summary {
    margin: 0 0 18px;
    border: 1px solid var(--line);
    background: #192838;
    padding: 14px;
  }
}
@media (max-width: 440px) {
  .slot-grid {
    grid-template-columns: 1fr;
  }
  .file-controls .field {
    flex-basis: 100%;
  }
  .file-controls .button {
    flex: 1;
  }
  .site-title h1 {
    font-size: 1.6875rem;
  }
  .site-title > span {
    font-size: 0.8125rem;
  }
  .shell {
    margin: 5px;
  }
  .solver-panel {
    padding: 14px;
  }
  .solver-panel > .section-heading {
    margin: -14px -14px 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
::selection {
  background: #466d90;
  color: #fff;
}
input::placeholder {
  color: #8ca3b8;
  opacity: 1;
}
option {
  background: #101c29;
  color: #d6e2ed;
}
.equipment-slot img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(1px 2px 0 #08121e);
}
.slot-name img {
  width: 23px;
  height: 23px;
  object-fit: contain;
  image-rendering: pixelated;
  vertical-align: middle;
  margin-right: 6px;
}
/* Reading and control spacing at the larger text scale. */
.cap-list > div,
.ledger-counts > div {
  align-items: baseline;
}
.status-pill,
.bar-label {
  font-family: var(--ui-font);
  font-variant-numeric: tabular-nums;
}
.small-note,
.muted,
.rec small {
  line-height: 1.65;
}
@media (max-width: 1100px) {
  .equipment-strip {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .topnav {
    flex-wrap: wrap;
  }
  .topnav a {
    padding: 11px 12px;
  }
}
@media (max-width: 760px) {
  .topnav a {
    font-size: 0.8125rem;
    min-width: 120px;
  }
  .breadcrumb {
    flex-wrap: wrap;
  }
  .equipment-slot {
    font-size: 0.8125rem;
  }
  .solver-grid {
    grid-template-columns: 1fr;
  }
  .side-column {
    gap: 14px;
  }
}
.site-mark svg {
  display: block;
  width: 100%;
  height: 100%;
  flex: none;
}
.reflection-settings {
  border: 1px solid var(--line);
  background: #142230;
  padding: 14px;
  margin-top: 20px;
  font-size: 0.875rem;
}
.gear-budget {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: #192838;
  font-size: 0.875rem;
}
.gear-budget summary {
  cursor: pointer;
  font-weight: bold;
  color: #d6e2ed;
}
.gear-budget summary span {
  margin-left: 12px;
  font-weight: normal;
  color: #a5cbed;
}
.gear-budget p {
  margin: 12px 0;
  line-height: 1.65;
  color: var(--muted);
}
.gear-budget .solver-grid {
  margin: 16px 0;
}
.item-footer input:disabled {
  opacity: 0.65;
}
.item-card select:disabled {
  opacity: 0.7;
}

/* Four controls per affix row; help stays outside the scrolling index table. */
.build-save-notice {
  border-top: 1px dotted #41566d;
  background: #142230;
  padding: 9px 12px;
  font-size: 0.8125rem;
  color: #acbdce;
  overflow-wrap: anywhere;
}
.generator-preferences {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 16px 0;
}
.generator-preferences select {
  width: 100%;
  min-width: 0;
}
.generator-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.gear-budget .generator-note {
  font-size: var(--font-help);
  margin-bottom: 0;
}
.gear-budget .recommendations {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
@media (max-width: 760px) {
  .generator-preferences {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
.item-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.solver-gear-budget {
  border: 1px solid #41566d;
  margin: 18px 0;
  padding: 14px;
  min-width: 0;
  background: #192838;
}
.solver-gear-budget legend {
  padding: 0 7px;
  font-weight: bold;
  font-size: var(--font-control);
}
.solver-gear-budget > p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: #acbdce;
  margin: 4px 0 14px;
}
.solver-gear-budget .solver-grid {
  margin: 14px 0;
}
.availability-note {
  font-size: var(--font-help);
  color: #acbdce;
}
.porcupine-option {
  cursor: help;
}
.item-card.item-has-warning {
  border-color: var(--warning-border);
  box-shadow: inset 3px 0 var(--warning-border);
}
.power-picker.has-warning,
.affix-entry.has-warning {
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  padding: 7px;
}
.power-picker.has-warning select,
.affix-entry input[aria-invalid='true'] {
  border-color: var(--warning-border);
  background: #2a222b;
  color: #e2c3cc;
}
.affix-entry {
  padding: 4px 0;
  border-bottom: 1px dotted #41566d;
}
.affix-help {
  border: 1px solid #526b82;
  background: #243a4e;
  color: #d6e2ed;
  min-width: 28px;
  min-height: var(--control-height);
  padding: 2px 3px;
  font: inherit;
  font-size: 0.8125rem;
  cursor: help;
  white-space: nowrap;
}
.affix-help:hover {
  background: #38546c;
}
.affix-help-ranges {
  margin: 12px 0;
}
.affix-help-ranges p {
  margin-bottom: 8px;
  font-size: 0.875rem;
}
.affix-help-ranges td,
.affix-help-ranges th {
  padding: 7px;
}
.affix-help-ranges .locked-tier {
  color: #9aafc2;
  opacity: 0.65;
}
.affix-value {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 85px;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
  font-size: var(--font-label);
  color: #acbdce;
}
.affix-value > span {
  font-weight: bold;
}
.affix-value input {
  width: 100%;
  min-width: 0;
}
.affix-range {
  display: block;
  margin: 5px 0;
  color: #acbdce;
  font-size: var(--font-help);
  line-height: 1.6;
}
.item-warning-note,
.item-warning-list {
  color: var(--warning-text);
  font-size: 0.8125rem;
  line-height: 1.6;
  margin: 7px 0;
}
.item-warning-list {
  padding-left: 18px;
}
.affix-limit-summary {
  font-size: 0.8125rem;
  line-height: 1.65;
  color: #acbdce;
  margin: 9px 0;
}
.limit-warning {
  color: var(--warning-text);
  background: var(--warning-bg);
  border-bottom: 1px solid var(--warning-border);
  padding: 1px 3px;
}
.roll-position-note {
  font-size: var(--font-help);
  color: #acbdce;
  line-height: 1.6;
  margin-top: 3px;
}
#removeAllItems {
  color: #e6a299;
}
#removeAllItems:disabled {
  color: #8297aa;
  opacity: 0.6;
  cursor: default;
}
.remove-affix,
.power-help {
  border: 1px solid #526b82;
  background: #243a4e;
  color: #d6e2ed;
  min-width: 28px;
  min-height: var(--control-height);
  padding: 2px 6px;
  font: inherit;
  cursor: pointer;
}
.remove-affix:hover,
.power-help:hover {
  background: #38546c;
}
.power-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  gap: 6px;
  align-items: center;
}
.power-picker select {
  width: 100%;
  min-width: 0;
}
.power-help:disabled {
  opacity: 0.4;
  cursor: default;
}
.power-help-panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: min(440px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 18px;
  border: 2px solid #819bb2;
  background: #142637;
  color: #e0e8f0;
  box-shadow: 5px 5px 0 #08121e;
  z-index: 25;
  font-size: 1rem;
  line-height: 1.65;
}
.power-help-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.power-help-heading h2 {
  font: 700 1.1rem/1.5 var(--ui-font);
}
.power-help-heading button {
  font: inherit;
  min-width: var(--control-height);
  min-height: var(--control-height);
  border: 1px solid #819bb2;
  background: #243a4e;
  color: #e0e8f0;
  cursor: pointer;
}
.power-help-panel dl {
  margin: 14px 0;
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 5px 10px;
}
.power-help-panel dt {
  color: #acbdce;
}
.power-help-panel dd {
  margin: 0;
}
.power-help-panel .muted {
  margin-bottom: 0;
}
.build-notices,
.storage-status {
  margin: 12px 0;
  padding: 12px 16px;
  border: 1px solid #a47c58;
  background: #302b29;
  color: #edccb0;
  line-height: 1.65;
  font-size: 0.9375rem;
}
.build-notices {
  padding-left: 32px;
}
.draft-conflict-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.build-notices li + li {
  margin-top: 6px;
}
@media (max-width: 440px) {
  .affix-row {
    grid-template-columns: 14px minmax(0, 1fr) 30px 28px;
    gap: 3px;
  }
  .power-help-panel dl {
    grid-template-columns: 1fr;
  }
}
.reflection-settings > label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: bold;
}
.reflection-settings p {
  margin-top: 10px;
  line-height: 1.65;
  color: var(--muted);
}
.reflection-settings details {
  margin-top: 12px;
}
.reflection-settings summary {
  cursor: pointer;
  color: #a5cbed;
}
.reflection-breakdown {
  margin: 14px 0;
  padding: 14px;
  border: 1px solid var(--line);
  background: #142230;
}
.reflection-breakdown dl {
  margin: 10px 0 0;
}
.reflection-breakdown dl > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dotted var(--line);
}
.reflection-breakdown dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.reflection-breakdown dl > div:last-child {
  font-weight: bold;
  border: 0;
}
.share-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  margin-top: 10px;
  border: 1px solid #41566d;
  background: #142230;
}
.share-tools .field {
  min-width: 0;
}
.share-tools input {
  width: 100%;
  font-family: var(--ui-font);
}
.file-controls #shareBuild {
  white-space: nowrap;
}
.item-source {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 0 0 8px;
}
.item-library-filters,
.item-library-pager {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.item-library-pager {
  justify-content: flex-end;
  margin-top: 12px;
}
.catalogue-item-meta {
  display: block;
  color: #acbdce;
  font-weight: normal;
}
.library-table-wrap details p {
  margin: 8px 0 0;
  overflow-wrap: anywhere;
}
.library-table-wrap details summary {
  cursor: pointer;
}
@media (max-width: 440px) {
  .share-tools {
    grid-template-columns: 1fr;
  }
  .share-tools button {
    width: 100%;
  }
}
