@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&display=swap');

:root {
  --color-void: #08090a;
  --color-carbon: #0f1011;
  --color-obsidian: #161718;
  --color-graphite: #23252a;
  --color-smoke: #383b3f;
  --color-ash: #62666d;
  --color-fog: #8a8f98;
  --color-mist: #d0d6e0;
  --color-bone: #e5e5e6;
  --color-paper: #fff;
  --color-acid-lime: #e4f222;
  --font-ui: 'Inter Variable', Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius-card: 12px;
  --radius-control: 6px;
  color-scheme: dark
}

body {
  margin: 0;
  padding-top: 100px;
  min-width: 1100px;
  background: var(--color-void);
  color: var(--color-mist);
  font: 400 16px/1.5 var(--font-ui);
  letter-spacing: -.01em;
  font-feature-settings: 'cv01' on, 'ss03' on, 'zero' on
}

::selection {
  background: var(--color-mist);
  color: var(--color-void)
}

h1, h2, h3, h4, p {
  margin: 0
}

h1, h2, h3, h4, strong, b {
  font-weight: 510
}

h2 {
  font-size: 32px;
  line-height: 1.13;
  letter-spacing: -.022em;
  color: var(--color-paper)
}

h3 {
  font-size: 15px;
  line-height: 1.4;
  color: var(--color-bone)
}

h4 {
  font-size: 14px;
  color: var(--color-mist)
}

p {
  margin: 8px 0
}

a {
  color: inherit;
  text-underline-offset: 5px
}

button, input, select {
  font: inherit;
  letter-spacing: inherit;
  color: var(--color-mist);
  border: 1px solid var(--color-graphite);
  border-radius: var(--radius-control);
  background: var(--color-obsidian)
}

button:disabled {
  opacity: .4;
  cursor: default
}

input, select {
  padding: 8px 10px;
  font-size: 13px;
  background: var(--color-obsidian);
  border-color: var(--color-smoke)
}

select {
  cursor: pointer
}

input[type=number] {
  width: 76px;
  font-variant-numeric: tabular-nums
}

input[type=checkbox], input[type=radio] {
  accent-color: var(--color-mist);
  cursor: pointer
}

input:focus, select:focus {
  border-color: var(--color-mist)
}

:focus-visible {
  outline: 2px solid var(--color-mist);
  outline-offset: 3px
}

input[type=number]:focus-visible {
  outline-offset: 1px
}

small, .muted {
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-fog)
}

.app-logo {
  width: 132px;
  height: 45px;
  object-fit: contain;
  filter: brightness(0) invert(1)
}

.line {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap
}

.spread {
  justify-content: space-between
}

.status {
  font-size: 12px;
  color: var(--color-fog)
}

.status:empty {
  display: none
}

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

.block {
  border: .5px solid var(--color-graphite);
  border-radius: var(--radius-card);
  background: var(--color-carbon);
  padding: 20px;
  min-width: 0
}

.block > h3 {
  margin-bottom: 16px
}

.character-level > label, .weapon-heading + label {
  font-size: 13px;
  color: var(--color-fog)
}

.character-level input, .weapon-heading + label input {
  margin: 0 6px;
  color: var(--color-mist)
}

.weapon-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 12px
}

.weapon-heading img {
  width: 48px;
  height: 48px;
  object-fit: contain
}

.weapon-heading p {
  font-size: 14px;
  font-weight: 510
}

.splash-plan, .splash-progress {
  position: absolute;
  right: 20px;
  z-index: 1;
  border: .5px solid var(--color-smoke);
  background: var(--color-carbon);
  border-radius: 6px;
  color: var(--color-mist);
  font-size: 12px
}

.original-components {
  --cc: var(--color-mist);
  --cc-30: var(--color-smoke);
  --cc-0a: var(--color-obsidian);
  --cc-20: var(--color-obsidian);
  --cc-44: var(--color-smoke)
}


.ww-echo-main {
  width: 100%;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center
}

.ww-skill-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0;
  min-width: 0;
  width: 100%
}

.ww-echo-card > div:not(.ww-skill-diamond) {
  flex: 1
}

.ww-skill-diamond {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: .5px solid var(--color-graphite);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--color-fog);
  background: var(--color-obsidian)
}

.ww-skill-diamond img {
  width: 100%;
  height: 100%;
  object-fit: contain
}

.ww-echo-set-icon img {
  width: 74%;
  height: 74%
}

.ww-main-echo-icon {
  position: relative;
  width: 44px;
  height: 44px
}

.ww-echo-cost {
  position: absolute;
  bottom: 0;
  right: 0;
  font-size: 10px;
  background: var(--color-carbon);
  padding: 0 2px;
  border-radius: 2px
}

.ww-checkbox-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  min-height: 0;
  padding: 1px;
  border: 0;
  background: transparent
}

.ww-checkbox-btn svg {
  filter: none;
  width: 24px;
  height: 24px
}

.ww-checkbox-btn.complete, .ww-checkbox-btn[aria-pressed=true] {
  background: var(--color-obsidian)
}

.ww-skill-row .ww-checkbox-btn {
  margin-left: auto
}


.ww-tree-main-wrap {
  position: relative
}

.ww-tree-main-lvl::-webkit-outer-spin-button, .ww-tree-main-lvl::-webkit-inner-spin-button {
  appearance: none;
  margin: 0
}

.material-block button {
  font-size: 11px;
  min-height: 30px;
  padding: 5px 9px
}

.weekly-phase {
  border-top: .5px solid var(--color-graphite);
  padding: 14px 0
}

.weekly-phase > summary {
  font-size: 13px;
  font-weight: 510;
  cursor: pointer;
  color: var(--color-fog)
}

.weekly-phase[open] > summary {
  margin-bottom: 16px;
  color: var(--color-mist)
}

.schedule-choice strong {
  font-size: 12px;
  font-weight: 400
}

.schedule-choice .muted {
  font-size: 11px
}

.weekly-targets {
  margin-top: 32px
}

.weekly-target-list {
  display: flex;
  gap: 12px;
  flex-wrap: wrap
}

.weekly-target-list > div {
  flex: 1;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border: .5px solid var(--color-graphite);
  border-radius: 12px;
  background: var(--color-carbon);
  font-size: 13px
}

.ww-schedule-target-table {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px
}

.ww-schedule-target-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border: .5px solid var(--color-graphite);
  border-radius: 4px;
  font-size: 11px;
  color: var(--color-fog)
}

.ww-schedule-target-cell.is-active {
  border-color: var(--color-smoke);
  background: var(--color-obsidian);
  color: var(--color-mist)
}

.ww-schedule-empty {
  font-size: 12px;
  color: var(--color-fog);
  margin: 0
}

.ww-box-assignment-row {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  gap: 20px;
  min-width: 0;
  padding: 24px;
  border: 0;
  border-bottom: 1px solid var(--color-graphite)
}

.ww-box-identity {
  display: flex;
  flex-direction: column;
  font-size: 13px
}

.ww-box-identity small {
  font-size: 11px;
  color: var(--color-fog)
}

.ww-box-count {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: var(--color-fog)
}

.ww-box-assignment .ww-schedule-queue-image {
  display: none
}

.ww-material-group-heading {
  margin-bottom: 24px
}

.ww-material-group-heading strong, .ww-material-group-heading small {
  display: block
}

.ww-material-group-heading strong {
  font-size: 14px
}

.ww-material-group-heading small {
  font-size: 11px;
  font-weight: 400;
  color: var(--color-fog);
  margin-top: 3px
}

.ww-material-character-group-grid {
  display: flex;
  flex-direction: column;
  gap: 16px
}

.ww-material-family-table {
  padding: 0;
  border: 0;
  border-radius: 0
}

.ww-material-family + .ww-material-family {
  padding-top: 16px;
  border-top: 1px solid var(--color-graphite)
}

.ww-material-table-row {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  padding: 4px 0
}

.ww-material-table-label {
  width: 50px;
  flex-shrink: 0;
  color: var(--color-fog);
  font-size: 11px
}

.ww-material-cell {
  flex: 1;
  min-width: 0;
  text-align: center
}

.ww-material-icon-cell img {
  width: 100%;
  max-width: 44px;
  height: 40px;
  object-fit: contain
}

.ww-material-status-cell {
  font-variant-numeric: tabular-nums;
  font-weight: 510
}

.ww-material-status-cell span {
  font-weight: 400;
  color: var(--rarity-color, var(--color-fog));
  font-size: 11px
}

.forgery-estimates {
  margin-top: 20px
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px
}

th, td {
  text-align: left;
  padding: 12px 8px;
  border-bottom: .5px solid var(--color-graphite);
  font-weight: 400
}

th {
  font-weight: 510;
  color: var(--color-mist)
}

thead th {
  font-size: 11px;
  color: var(--color-fog);
  font-weight: 400
}

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

.result-list {
  margin: 20px 0 0
}

.result-list > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 10px 0;
  border-bottom: .5px solid var(--color-graphite);
  font-size: 13px
}

.result-list > div:last-child {
  border: 0
}

.result-list dt {
  color: var(--color-fog);
  max-width: 72%
}

.result-list dd {
  margin: 0;
  color: var(--color-mist);
  font-weight: 510;
  font-variant-numeric: tabular-nums
}

.release-panel {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between
}

.release-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px
}

.release-date {
  font-size: 12px;
  color: var(--color-fog)
}

.release-name {
  font-size: 32px;
  letter-spacing: -.012em;
  font-weight: 400;
  color: var(--color-paper);
  margin-top: 20px
}

.release-countdown {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 28px 0 8px
}

.release-countdown > div {
  display: flex;
  flex-direction: column;
  gap: 8px
}

.release-countdown > div + div {
  border-left: .5px solid var(--color-graphite);
  padding-left: 20px
}

.release-countdown strong {
  font-size: 52px;
  line-height: 1;
  letter-spacing: -.022em;
  font-weight: 300;
  color: var(--color-paper);
  font-variant-numeric: tabular-nums
}

.release-countdown span {
  font-size: 12px;
  color: var(--color-fog)
}

dialog {
  width: 840px;
  max-width: 90vw;
  max-height: 86vh;
  border: 1px solid var(--color-smoke);
  border-radius: 12px;
  padding: 24px;
  background: var(--color-carbon);
  color: var(--color-mist);
  font: 400 14px/1.5 var(--font-ui)
}

dialog::backdrop {
  background: rgb(0 0 0 / 70%)
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px
}

.modal-head h2 {
  font-size: 24px;
  letter-spacing: -.012em
}

.modal-head button {
  flex-shrink: 0
}

.picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px
}

.picker button {
  text-align: left;
  padding: 12px;
  background: var(--color-obsidian)
}

.inventory-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 16px
}

.inventory-filters input {
  flex: 1
}

.inventory-material {
  display: flex;
  align-items: center;
  gap: 12px
}

.inventory-material img {
  width: 28px;
  height: 28px;
  object-fit: contain
}

.inventory-zero-filter {
  margin: 0 0 12px
}

.inventory-table thead {
  display: none
}

.inventory-table tbody {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--color-graphite)
}

.inventory-table tr {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px;
  align-items: center;
  border-bottom: 1px solid var(--color-graphite)
}

.inventory-table tr:nth-child(odd) {
  border-right: 1px solid var(--color-graphite)
}

.inventory-table td {
  min-width: 0;
  padding: 7px 10px;
  border: 0
}

.inventory-table td:last-child {
  padding-left: 0
}

.inventory-table input[type=number] {
  width: 100%;
  box-sizing: border-box;
  padding-block: 5px
}

.rotation-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
  padding: 16px 0;
  border-top: .5px solid var(--color-graphite)
}

.rotation-row > strong {
  font-size: 13px
}

.rotation-row ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding-left: 18px;
  font-size: 12px
}

.rotation-tip {
  grid-column: 2;
  padding: 10px 12px;
  border-left: 1px solid var(--color-smoke);
  background: var(--color-obsidian);
  font-size: 12px;
  color: var(--color-fog);
  margin: 0
}

#team-form {
  display: flex;
  gap: 12px;
  align-items: end
}

#team-form label {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  font-size: 12px
}

@media(prefers-reduced-motion:reduce) {
  * {
    transition: none !important
  }
}

* {
  box-sizing: border-box;
  border-radius: 0 !important
}

.character-identity {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0
}

.compact-level {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  font-size: 11px;
  color: var(--color-fog)
}

.compact-level input::-webkit-inner-spin-button, .compact-level input::-webkit-outer-spin-button {
  appearance: none;
  margin: 0
}

.compact-level .level-cap {
  font-size: 10px;
  white-space: nowrap
}

.weapon-level .weapon-heading {
  margin: 0;
  min-width: 0;
  gap: 8px
}

.weapon-level .weapon-heading img {
  width: 28px;
  height: 32px
}

.character-splash {
  position: relative;
  overflow: hidden;
  background: var(--color-carbon);
  border-right: .5px solid var(--color-graphite);
  min-width: 0;
  min-height: 0
}

.character-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-position: center;
  object-fit: contain;
  transform: scale(1.5);
  transform-origin: center
}

.splash-plan {
  display: flex;
  align-items: center;
  gap: 12px;
  top: auto;
  bottom: 20px;
  right: 20px;
  padding: 0;
  border: 0;
  background: transparent
}

.ww-mainstats-grid .ww-skill-diamond {
  height: 28px;
  background: transparent;
  border: 0;
  width: 20px;
  font-size: 10px
}

.ww-mainstats-grid .ww-checkbox-btn {
  width: 24px;
  height: 24px
}

.ww-mainstats-grid .ww-checkbox-btn svg {
  width: 20px;
  height: 20px
}

.ww-substat-block {
  color: var(--color-fog);
  line-height: 1.6;
  margin: 8px 0 0;
  margin-top: 8px;
  font-size: 10px
}

.ww-echo-card .ww-skill-diamond {
  width: 32px;
  height: 32px
}

.ww-echo-card .ww-main-echo-icon {
  width: 36px;
  height: 36px
}

.ww-substat-block-text {
  color: var(--color-fog);
  margin-bottom: 2px;
  font-size: 10px
}

.ww-skilltree {
  padding-top: 0
}

.ww-tree-node {
  border: 0;
  padding: 0;
  height: 22px;
  width: 22px
}

.ww-tree-main {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-obsidian);
  border: 1px solid var(--color-smoke);
  border-radius: 6px;
  width: 42px;
  height: 42px
}

.materials strong {
  color: var(--color-fog);
  font-size: 10px
}

.materials p {
  margin: 4px 0 0;
  line-height: 1.5;
  margin-top: 3px
}

.character:nth-child(even) {
  grid-template-columns: minmax(0, 1fr) 40vw
}

.character:nth-child(even) > .character-content {
  grid-column: 1;
  grid-row: 1
}

.character:nth-child(even) .splash-plan, .character:nth-child(even) .splash-progress {
  right: auto;
  left: 20px
}

.character:nth-child(even) .character-art {
  transform-origin: 55% center
}

.character:nth-child(odd) .character-art {
  transform-origin: 45% center
}

.character-content {
  display: block;
  min-width: 0;
  padding: 0
}

.character-group {
  margin: 0;
  padding: 0
}

.character-levels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr))
}

.character-levels > .character-level {
  border-right: 1px solid var(--color-graphite)
}

.character-element {
  margin: 0;
  color: var(--color-fog);
  font-size: 12px
}

.ww-checkbox-btn, .ww-checkbox-btn:hover, .ww-checkbox-btn:active {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important
}

.splash-plan select {
  min-width: 120px;
  font-size: 12px;
  padding: 8px 10px;
  background: var(--color-carbon);
  border-color: var(--color-smoke);
  appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23d0d6e0'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center
}

.rarity-2 {
  --rarity-color: #72b88e
}

.rarity-3 {
  --rarity-color: #6da8e0
}

.rarity-4 {
  --rarity-color: #b18bdb
}

.rarity-5 {
  --rarity-color: #dbb76d
}

.character {
  position: relative;
  display: grid;
  grid-template-columns: 40vw minmax(0, 1fr);
  margin: 0;
  min-height: 45vh
}

.character-block {
  padding: 32px
}

.character-levels > .character-block,
.character-echoes > .ww-substat-block,
.character-skills .ww-tree-col {
  border-bottom: 1px solid var(--color-graphite)
}

.character-level h2 {
  margin-bottom: 4px;
  line-height: 1.2;
  margin: 0;
  font-size: 30px
}

.character-element, .compact-level, .compact-level .level-cap {
  font-size: 14px
}

.compact-level input[type=number] {
  padding: 5px 2px;
  text-align: center;
  appearance: textfield;
  background: transparent;
  border-color: transparent;
  font-size: 15px;
  width: 44px
}

.compact-level button {
  min-height: 0;
  padding: 0;
  font-size: 14px;
  width: 28px;
  height: 30px
}

.weapon-level .weapon-heading p {
  line-height: 1.3;
  margin: 0;
  font-size: 15px
}

.ww-skill-name {
  font-weight: 510;
  color: var(--color-mist);
  font-size: 15px
}

.ww-mainstats-grid .ww-skill-name {
  flex: 1;
  overflow-wrap: break-word;
  font-size: 14px
}

.ww-substat-block, .ww-substat-block-text {
  font-size: 13px;
  line-height: 1.6
}

.ww-echo-set {
  gap: 4px;
  border: 0;
  border-right: 1px solid var(--color-graphite)
}

.ww-mainstats-grid .ww-skill-row {
  border-radius: 6px;
  border: 0;
  gap: 6px;
  border-right: 1px solid var(--color-graphite);
  align-self: stretch;
  min-width: 0
}

.ww-mainstats-grid .ww-skill-row:last-child {
  border-right: 0
}

.ww-tree-target, .ww-tree-priority {
  font-size: 13px;
  line-height: 1.5
}

.ww-tree-main input[type=number] {
  width: 100%;
  height: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  text-align: center;
  font-weight: 510;
  appearance: textfield;
  color: var(--color-paper);
  font-size: 20px
}

.ww-tree-btn {
  min-height: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 28px;
  font-size: 16px
}

.material-weekly {
  grid-column: 1
}

.material-forgery {
  grid-column: 2
}

.material-enemy {
  grid-column: 3
}

.material-actions button {
  font-size: 13px
}

.material-category h4 {
  color: var(--color-fog);
  font-weight: 400;
  margin: 0 0 10px;
  font-size: 13px;
  margin-bottom: 16px
}

.ww-material-run-cell,
.forgery-run-summary {
  color: var(--color-fog);
  font: 400 11px/1.5 var(--font-ui);
  letter-spacing: inherit;
}

.ww-material-run-cell {
  border-top: 1px solid var(--line, #2a3036);
  padding: 10px 12px;
}

.forgery-run-summary {
  margin: 12px 0 18px;
}

.weekly-icon-space {
  width: 36px;
  height: 36px;
  flex-shrink: 0
}

.weekly-material-badge {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff3cf;
  font: 800 10px/1 Inter, system-ui, sans-serif;
  letter-spacing: -.02em;
  background: radial-gradient(circle at 35% 25%, #f5e5b0 0 8%, #a974d3 9% 28%, #51306f 29% 62%, #171a2c 63%);
  border: 1px solid rgba(255,225,157,.65);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.12), 0 4px 12px rgba(104,56,148,.24);
}

@media(max-width:1500px) {
  .materials {
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr)) 110px
  }
}

.ww-echo-stack {
  flex-direction: column;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  align-items: stretch
}

.ww-mainstats-grid {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 0;
  border-top: 1px solid var(--color-graphite);
  align-items: stretch
}

.character-echoes > .ww-substat-block {
  display: block;
  margin: 0;
  border-top: 1px solid var(--color-graphite)
}

.ww-tree-label {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  font-weight: 510;
  text-align: center;
  margin-top: 8px;
  font-size: 14px;
  min-height: 2.8em;
  margin: 0;
  line-height: 1.4
}

.ww-tree-priority {
  display: block;
  position: static;
  font-size: 10px;
  color: var(--color-fog);
  margin-top: 4px;
  margin: 0;
  line-height: 1.4
}

.ww-tree-deco {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 12px
}

.ww-tree-line {
  width: 1px;
  height: 18px;
  flex-shrink: 0;
  background: var(--color-fog)
}

.ww-tree-stepper {
  display: flex;
  gap: 6px;
  margin-top: 10px
}

.ww-tree-target {
  display: block;
  color: var(--color-fog);
  font-size: 10px;
  font-weight: 400;
  margin-top: 6px
}

.splash-progress {
  color: var(--color-fog);
  padding: 0;
  background: transparent;
  border: 0;
  top: 32px;
  right: 48px
}

.splash-progress strong {
  margin-left: 12px;
  font-variant-numeric: tabular-nums;
  font-size: 36px;
  font-weight: 400;
  line-height: 1;
  margin: 0;
  letter-spacing: -.022em;
  color: var(--element-color)
}

.character:nth-child(even) .splash-progress {
  left: 48px
}

.ww-tree-priority, .ww-tree-target, .character-element, .material-category h4, .ww-substat-block, .ww-echo-card .ww-substat-block-text {
  font-family: Rajdhani, sans-serif;
  font-size: 14px
}

.character .ww-checkbox-btn:has(polyline) svg {
  stroke: var(--element-color)
}

.ww-tree-main.target-reached, .ww-tree-main.target-reached input[type=number] {
  color: var(--element-color);
  border-color: var(--element-color)
}

.ww-skilltree-row-desktop {
  display: flex;
  justify-content: space-around;
  gap: 0;
  align-items: stretch
}

.ww-tree-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 0
}

.ww-tree-col + .ww-tree-col {
  border-left: 1px solid var(--color-graphite)
}

.material-actions {
  padding: 32px 24px
}

.material-category + .material-category, .material-actions {
  border-left: 1px solid var(--color-graphite)
}

.material-actions {
  grid-column: 4;
  align-self: stretch;
  display: flex;
  align-items: flex-end;
  justify-content: center
}

.slot-face {
  border-radius: 6px;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  z-index: -2;
  float: none
}

.wish-next {
  gap: 20px;
  font-size: 14px;
  color: var(--color-fog);
  border-left: 1px solid var(--color-graphite)
}

.wish-next strong,
.wish-block dd {
  font-variant-numeric: tabular-nums
}

.wishes-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr))
}

.wish-block {
  min-width: 0;
  padding-bottom: 32px;
  border-right: 1px solid var(--color-graphite);
  border-bottom: 1px solid var(--color-graphite);
  background: var(--color-carbon)
}

.wish-block:nth-child(even) {
  background: var(--color-void)
}

.wish-block:last-child {
  border-right: 0
}

.wish-block h3 {
  padding: 32px 48px;
  border-bottom: 1px solid var(--color-graphite)
}

.wish-fields {
  display: grid;
  gap: 12px;
  padding: 24px 48px 0
}

.wish-fields label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--color-mist)
}

.wish-fields input {
  box-sizing: border-box;
  width: 100%;
  text-align: right;
  font-variant-numeric: tabular-nums
}

.wish-block .result-list {
  margin: 24px 48px 0
}

.wish-option,
.wish-note {
  margin: 16px 48px 0
}

@media(max-width:1500px) {
  .splash-progress {
    right: 32px
  }

  .character:nth-child(even) .splash-progress {
    left: 32px
  }

  .material-actions {
    padding: 32px 16px
  }
}

.character .ww-checkbox-btn:has(polyline) svg * {
  stroke: var(--element-color) !important
}

.character .ww-checkbox-btn:has(polyline) {
  color: var(--element-color);
  --cc: var(--element-color);
  --cc-0a: transparent
}

@media(prefers-reduced-motion:reduce) {
  .character > .character-content, .character > .character-splash {
    transition: none
  }
}

.materials {
  flex-wrap: wrap;
  display: grid;
  font-size: 14px;
  gap: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr))
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  box-sizing: border-box;
  background: var(--color-void);
  border-bottom: 1px solid var(--color-graphite);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  height: auto;
  min-height: 100px;
  padding: 0
}

.header-block {
  display: flex;
  align-items: center;
  padding: 24px 40px
}

.header-logo {
  gap: 12px
}

.header-menu {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(104px, auto);
  align-items: stretch;
  align-self: stretch;
  padding: 0;
  border-left: 1px solid var(--color-graphite)
}

.header-character-nav {
  position: relative;
  min-width: 0
}

.header-character-nav > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 24px;
  box-sizing: border-box;
  cursor: pointer;
  list-style: none;
  color: var(--color-mist);
  font-size: 13px;
  line-height: 1
}

.header-character-nav > summary::-webkit-details-marker {
  display: none
}

.header-character-nav > summary:focus-visible {
  outline: 2px solid var(--color-mist);
  outline-offset: -3px
}

.header-character-nav[open] > summary,
.header-character-nav > summary:hover {
  background: var(--color-obsidian);
  color: var(--color-paper)
}

.header-character-menu {
  position: absolute;
  top: 100%;
  left: -1px;
  z-index: 20;
  width: 420px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--color-carbon);
  border: 1px solid var(--color-graphite)
}

.header-character-menu > a {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 12px;
  border-right: 1px solid var(--color-graphite);
  border-bottom: 1px solid var(--color-graphite);
  text-decoration: none
}

.header-character-menu > a:nth-child(odd) {
  border-right: 0
}

.header-character-menu > a:nth-last-child(-n + 2) {
  border-bottom: 0
}

.header-character-menu > a:hover {
  background: var(--color-obsidian)
}

.header-character-menu img {
  width: 32px;
  height: 32px;
  object-fit: cover
}

.header-character-menu strong,
.header-character-menu small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.header-character-menu strong {
  font-size: 12px
}

.header-character-menu small {
  margin-top: 2px;
  font-size: 10px
}

.header-character-menu > .header-character-all {
  grid-column: 1 / -1;
  display: flex;
  min-height: 40px;
  border-right: 0
}

.header-menu > a,
.header-menu > [data-inventory] {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 100%;
  margin: 0;
  padding: 24px;
  border: 0;
  border-left: 1px solid var(--color-graphite);
  border-radius: 0;
  background: transparent;
  color: var(--color-mist);
  font-size: 13px;
  line-height: 1;
  text-decoration: none
}

.header-menu > :first-child {
  border-left: 0
}

.header-menu > a:hover,
.header-menu > [data-inventory]:hover {
  background: var(--color-obsidian);
  color: var(--color-paper)
}

html {
  scrollbar-color: var(--color-smoke) var(--color-void);
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  scroll-snap-type: y mandatory
}

#characters,
#teams,
#schedule,
#materials,
#wishes {
  scroll-margin-top: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always
}

#characters > .character {
  scroll-margin-top: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always
}

@keyframes section-scroll-exit {
  from {
    opacity: 1
  }

  to {
    opacity: 0
  }
}

@supports (animation-timeline: view()) {
  #characters > .character,
  #teams,
  #schedule,
  #materials,
  #wishes {
    animation-name: section-scroll-exit;
    animation-timeline: view(block);
    animation-range: exit 0% exit 40%;
    animation-fill-mode: both;
    animation-timing-function: linear
  }
}

.material-category {
  flex: 1;
  min-width: 0
}

.ww-echo-set .ww-substat-block-text {
  margin-bottom: 1px;
  line-height: 1.2
}

.echo-stat-text {
  flex: 1;
  min-width: 0
}

.echo-stat-text .ww-substat-block-text {
  font-family: Rajdhani, sans-serif;
  font-size: 14px;
  line-height: 1.2;
  margin-bottom: 1px;
  color: var(--color-fog)
}

.echo-stat-text .ww-skill-name {
  display: block;
  font-size: 15px
}

.ww-checkbox-btn, .ww-tree-node, .ww-mainstats-grid .ww-checkbox-btn {
  width: 26px;
  height: 26px;
  min-width: 26px;
  min-height: 26px;
  padding: 0;
  flex-shrink: 0
}

.ww-checkbox-btn svg, .ww-mainstats-grid .ww-checkbox-btn svg {
  width: 24px;
  height: 24px
}

input[type=checkbox] {
  appearance: none;
  padding: 0;
  vertical-align: middle;
  color: var(--color-fog);
  position: relative;
  width: 26px;
  height: 26px;
  min-width: 26px;
  min-height: 26px;
  transform: none;
  border: 0;
  margin: 0 8px 0 0;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cpolygon points='13,2 24,13 13,24 2,13' fill='none' stroke='%238a8f98' stroke-width='1.5'/%3E%3C/svg%3E") center/24px 24px no-repeat
}

input[type=checkbox]:checked {
  color: var(--element-color, var(--color-mist));
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cpolygon points='13,2 24,13 13,24 2,13' fill='none' stroke='%23d0d6e0' stroke-width='1.5'/%3E%3Cpolyline points='9,13 12,16 17,10' fill='none' stroke='%23d0d6e0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
}

input[type=checkbox]:checked::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 9px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(-45deg);
  left: 6px;
  top: 3px;
  display: none
}

.icon-button {
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  border-radius: 0
}

.icon-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round
}

.material-need {
  display: flex;
  align-items: center;
  margin-top: 12px;
  gap: 8px
}

.material-need > div {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1
}

.material-need strong {
  display: block;
  font-weight: 510;
  color: var(--rarity-color);
  line-height: 1.4;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0
}

.material-need span {
  display: block;
  color: var(--color-fog);
  margin-top: 3px;
  line-height: 1.5;
  font-family: Rajdhani, sans-serif;
  font-size: 14px;
  margin: 0;
  white-space: nowrap;
  flex-shrink: 0
}

.material-need img {
  object-fit: contain;
  border-bottom: 2px solid var(--rarity-color);
  border: 0;
  width: 28px;
  height: 28px;
  flex-shrink: 0
}

.material-weekly .material-need > div {
  display: flex
}

.weekly-phase > h4 {
  margin: 24px 0 16px;
  font-size: 16px
}

.schedule-choice {
  width: 100%;
  flex-direction: column;
  text-align: left;
  gap: 5px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 168px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 24px;
  background: var(--color-carbon)
}

.schedule-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  z-index: -2
}

.schedule-choice:has(.schedule-art)::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent, rgba(8, 9, 10, .95));
  z-index: -1
}

.schedule-card-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  text-align: left
}

.schedule-card-content .slot-label {
  font-family: Rajdhani, sans-serif;
  font-size: 11px;
  color: var(--color-fog);
  letter-spacing: .02em
}

.schedule-card-content strong {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 510;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--color-mist)
}

.schedule-card-content .muted {
  font-family: var(--font-ui);
  font-size: 11px;
  line-height: 1.4
}

.schedule-card-content .ww-schedule-target-table {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  margin-top: 12px;
  border: 0
}

.schedule-card-content .ww-schedule-target-cell {
  justify-content: space-between;
  min-width: 0;
  padding: 10px 12px;
  border: 0;
  border-right: 1px solid var(--color-graphite);
  border-radius: 0;
  background-color: rgba(8, 9, 10, .78);
  background-image: linear-gradient(90deg, var(--element-color) 0 var(--target-progress), transparent var(--target-progress) 100%);
  background-position: left bottom;
  background-repeat: no-repeat;
  background-size: 100% 2px
}

.schedule-card-content .ww-schedule-target-cell:last-child {
  border-right: 0
}

.schedule-card-content .ww-schedule-target-cell.is-active {
  color: var(--color-mist)
}

.character:nth-child(even) > .character-splash {
  grid-column: 2;
  grid-row: 1;
  border-right: 0;
  border-left: 1px solid var(--color-smoke);
  border-left-color: var(--color-graphite)
}

.ww-material-group-thumb {
  display: block;
  width: 40px;
  height: 40px;
  overflow: hidden;
  flex-shrink: 0;
  vertical-align: middle;
}

.ww-material-group-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain
}

.character-levels > .character-level, .character-levels > .weapon-level {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  flex-wrap: wrap;
  min-height: 64px;
  align-items: center
}

.character-levels > .character-level .compact-level, .character-levels > .weapon-level .compact-level {
  height: 32px;
  align-self: center;
  line-height: 1
}

.character-levels > .weapon-level .weapon-heading {
  height: 32px;
  align-items: center
}

.ww-box-assignment-row .ww-schedule-queue-image {
  display: block;
  width: 40px;
  height: 40px;
  flex-shrink: 0
}

.ww-schedule-queue-image img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.ww-box-assignment-row .ww-schedule-queue-identity {
  display: flex;
  align-items: center;
  gap: 12px
}

.weekly-targets > h3 {
  margin-bottom: 12px;
  font-size: 15px
}

body, button, input, select {
  font-family: var(--font-ui)
}

#characters button, #characters input, #characters select {
  font-family: inherit
}

*, *::before, *::after {
  transition: none !important
}

.character > .character-splash, .character > .character-content {
  transition: opacity 180ms ease-out !important
}

@media(prefers-reduced-motion:reduce) {
  .character > .character-splash, .character > .character-content {
    transition: none !important
  }
}

button {
  cursor: pointer;
  font-size: 13px;
  line-height: 1.4;
  transition: background 120ms ease, border-color 120ms ease;
  border: 1px solid var(--color-graphite);
  border-radius: 0 !important;
  background: transparent;
  color: var(--color-mist);
  box-shadow: none;
  min-height: 34px;
  padding: 8px 12px
}

button:not(.schedule-choice):not(.ww-checkbox-btn):not(.ww-tree-btn):not(.schedule-picker > button):not(.team-block):not(.team-headline-block):not(.schedule-headline-block):not(.schedule-block):not([data-inventory]) {
  height: 34px;
  min-height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1
}

button:hover {
  background: var(--color-obsidian);
  border-color: var(--color-smoke)
}

button:active {
  background: var(--color-graphite)
}

button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--color-mist);
  outline-offset: 2px
}

.schedule-choice {
  border: 1px solid var(--color-graphite);
  border-radius: 0 !important;
  background: var(--color-carbon)
}

.schedule-choice:hover {
  border-color: var(--color-smoke);
  background: var(--color-obsidian)
}

.section > h2 {
  color: var(--color-paper);
  font-family: var(--font-ui);
  font-size: 32px;
  line-height: 1.13;
  font-weight: 510;
  letter-spacing: -.022em
}

.section h3, .team h3, .block h3 {
  font-family: var(--font-ui);
  font-weight: 510;
  letter-spacing: 0
}

.picker button span {
  position: relative;
  z-index: 1;
  text-align: left
}

.picker button .picker-name {
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.4;
  font-weight: 510;
  color: var(--color-mist)
}

.picker button .picker-element {
  font-family: var(--font-ui);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 510;
  margin-top: 2px
}

.picker-face {
  width: 100%;
  height: 100px;
  object-fit: contain;
  margin-bottom: 10px;
  display: none
}

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

.picker button {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-image: linear-gradient(180deg, rgba(15, 16, 17, .08), rgba(15, 16, 17, .94)), var(--picker-art);
  background-size: cover;
  background-position: center 28%;
  align-items: flex-start !important;
  justify-content: flex-end !important;
  text-align: left !important;
  height: 134px !important;
  min-height: 134px !important;
  padding: 19px !important;
  gap: 0 !important
}

.echo-stat-text .ww-substat-block-text, .ww-echo-set .ww-substat-block-text {
  margin-bottom: 0
}

.weekly-material-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  object-fit: contain;
  display: block
}

.teams-section > * {
  width: 100%;
  max-width: none
}

.team-headline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto
}

.team-headline-block {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 80px 48px;
  border: 0;
  background: transparent
}

.team-headline > button.team-headline-block {
  width: auto;
  height: auto;
  border-left: 1px solid var(--color-graphite);
  color: var(--color-mist);
  font-weight: 510
}

.team-headline > button.team-headline-block:hover {
  background: var(--color-obsidian);
  color: var(--color-paper)
}

.teams-section .team {
  display: grid;
  grid-template-columns: 320px repeat(3, minmax(0, 1fr));
  min-height: 280px;
  padding: 0;
  background-color: var(--color-carbon)
}

.teams-section > .team:nth-of-type(odd) {
  grid-template-columns: repeat(3, minmax(0, 1fr)) 320px;
  background-color: var(--color-void)
}

.team-info {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  grid-template-rows: 1fr auto auto;
  min-width: 0;
  border-right: 1px solid var(--color-graphite)
}

.teams-section > .team:nth-of-type(odd) .team-info {
  grid-column: 4;
  border-right: 0;
  border-left: 1px solid var(--color-graphite)
}

.team-block {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent
}

.team-name {
  display: flex;
  align-items: center;
  padding: 32px 48px
}

.team-name input {
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--color-paper);
  font-size: 17px;
  font-weight: 510
}

.team-rotation {
  width: 100%;
  height: auto;
  padding: 32px 48px;
  border-top: 1px solid var(--color-graphite);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left
}

.team-controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--color-graphite)
}

.team-controls .team-block {
  width: 100%;
  height: 48px;
  min-height: 48px;
  padding: 0;
  border-right: 1px solid var(--color-graphite)
}

.team-controls .team-block:last-child {
  border-right: 0
}

.team-controls svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round
}

.team-slot {
  min-width: 0;
  height: 100%;
  min-height: 280px;
  padding: 32px 48px;
  border-right: 1px solid var(--color-graphite);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  text-align: left
}

.team-slot:last-child {
  border-right: 0
}

.team-slot:has(.slot-face)::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent, rgba(8, 9, 10, .9));
  z-index: -1
}

.team-slot .slot-element {
  display: block;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 510;
  margin-top: 2px
}

.team-slot strong {
  color: var(--color-mist);
  font-size: 15px
}

.schedule-section > * {
  width: 100%;
  max-width: none
}

.schedule-headline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto
}

.schedule-headline-block {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 80px 48px;
  border: 0;
  background: transparent
}

.schedule-headline > button.schedule-headline-block {
  width: auto;
  height: auto;
  border-left: 1px solid var(--color-graphite);
  color: var(--color-mist);
  font-weight: 510
}

.schedule-headline > button.schedule-headline-block:hover {
  background: var(--color-obsidian);
  color: var(--color-paper)
}

.schedule-board {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(320px, 1fr);
  padding: 0
}

.schedule-weeks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: 0
}

.schedule-week {
  --cc: var(--color-mist);
  --cc-30: var(--color-smoke);
  --cc-0a: var(--color-obsidian);
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  border-right: 1px solid var(--color-graphite)
}

.schedule-week-head,
.schedule-boxes-head {
  height: 96px;
  min-height: 96px;
  padding: 32px 48px;
  border-bottom: 1px solid var(--color-graphite)
}

.schedule-week-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px
}

.schedule-block {
  margin: 0;
  border-radius: 0;
  background: transparent
}

.schedule-complete {
  flex: 0 0 auto;
  opacity: 1
}

.schedule-complete:disabled {
  opacity: .35
}

.schedule-week-slots {
  display: grid;
  grid-template-rows: repeat(3, minmax(220px, 1fr))
}

.schedule-board .schedule-choice {
  min-height: 220px;
  padding: 32px 48px;
  border: 0;
  border-bottom: 1px solid var(--color-graphite);
  background: transparent
}

.schedule-board .schedule-choice:last-child {
  border-bottom: 0
}

.schedule-boxes {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0
}

.schedule-boxes-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px
}

.schedule-box-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center
}

.schedule-box-summary .ww-schedule-picker-heading {
  margin-bottom: 4px
}

.schedule-box-input {
  display: flex;
  align-items: center;
  justify-content: center;
}

.schedule-box-input input {
  width: 100%;
  max-width: 96px
}

.schedule-character-list {
  min-width: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start
}

.schedule-character-list .ww-box-assignment-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 32px 48px;
  border-right: 0
}

.schedule-character-list .ww-box-assignment-row:last-child {
  border-bottom: 0
}

.schedule-character-list .ww-box-identity {
  min-width: 0
}

.schedule-character-list .ww-box-count input {
  width: 72px
}

.schedule-character-list .ww-box-count {
  justify-content: flex-end
}

.schedule-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin-top: 24px;
  border-top: 1px solid var(--color-graphite)
}

.schedule-picker > button {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 32px 48px;
  border: 0;
  border-bottom: 1px solid var(--color-graphite);
  background: transparent;
  text-align: left
}

.schedule-picker > button:hover {
  background: var(--color-obsidian)
}

.schedule-picker-art {
  width: 40px;
  height: 40px;
  object-fit: contain
}

.schedule-picker-copy {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-width: 0
}

.schedule-picker-identity {
  display: flex;
  flex-direction: column;
  min-width: 0
}

.schedule-picker-identity strong {
  color: var(--color-mist);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 510
}

.schedule-picker-identity > span,
.schedule-picker-finished {
  margin-top: 3px;
  color: var(--color-fog);
  font-size: 11px
}

.schedule-picker .ww-schedule-target-table {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(116px, 1fr);
  gap: 0;
  margin: 0;
  border: 0
}

.schedule-picker .ww-schedule-target-cell {
  display: grid;
  grid-template-columns: auto auto;
  align-items: end;
  justify-content: space-between;
  gap: 4px 16px;
  min-width: 116px;
  padding: 12px;
  border: 0;
  border-right: 1px solid var(--color-graphite);
  border-radius: 0;
  background-color: var(--color-void);
  background-image: linear-gradient(90deg, var(--element-color) 0 var(--target-progress), transparent var(--target-progress) 100%);
  background-position: left bottom;
  background-repeat: no-repeat;
  background-size: 100% 2px;
  color: var(--color-fog)
}

.schedule-picker .ww-schedule-target-cell:last-child {
  border-right: 0
}

.schedule-picker .ww-schedule-target-cell.is-current {
  color: var(--color-mist)
}

.materials-section > * {
  width: 100%;
  max-width: none
}

.materials-headline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto
}

.materials-headline-block {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 80px 48px;
  border: 0;
  background: transparent
}

.materials-headline > button.materials-headline-block {
  width: auto;
  height: auto;
  border-left: 1px solid var(--color-graphite);
  color: var(--color-mist);
  font-weight: 510
}

.materials-headline > button.materials-headline-block:hover {
  background: var(--color-obsidian);
  color: var(--color-paper)
}

.materials-article {
  padding: 0
}

.materials-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr))
}

.materials-grid > .ww-material-character-group {
  min-width: 0;
  padding: 0;
  border-right: 1px solid var(--color-graphite);
  border-bottom: 1px solid var(--color-graphite);
  background-color: var(--color-carbon)
}

.materials-grid > .ww-material-character-group:nth-child(8n + 2),
.materials-grid > .ww-material-character-group:nth-child(8n + 4),
.materials-grid > .ww-material-character-group:nth-child(8n + 5),
.materials-grid > .ww-material-character-group:nth-child(8n + 7) {
  background-color: var(--color-void)
}

.materials-grid .ww-material-group-heading {
  margin: 0;
  padding: 32px 48px;
  border-bottom: 1px solid var(--color-graphite)
}

.materials-grid .ww-schedule-queue-identity {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 12px
}

.materials-grid .ww-material-group-heading strong {
  font-size: 13px
}

.materials-grid .ww-material-character-group-grid {
  gap: 0
}

.materials-grid .ww-material-family {
  padding: 32px 48px
}

.materials-grid .ww-material-family + .ww-material-family {
  padding-top: 32px
}

.materials-grid > .ww-material-character-group:nth-child(4n) {
  border-right: 0
}

.materials-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 32px 48px;
  color: var(--color-fog)
}

#characters .character > .character-splash {
  background: transparent
}

article {
  border-bottom: 1px solid var(--color-graphite);
  background-color: var(--color-carbon)
}

article:nth-of-type(even) {
  background-color: var(--color-void)
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
    scroll-snap-type: y mandatory
  }

  #characters > .character,
  #teams,
  #schedule,
  #materials,
  #wishes {
    animation: none
  }
}

@media (max-width: 1100px) {
  html {
    scroll-padding-top: calc(98px + env(safe-area-inset-top));
    scroll-snap-type: none;
  }

  body {
    min-width: 0;
    padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  }

  #characters > .character, #teams, #schedule, #materials, #wishes {
    animation: none;
    scroll-snap-align: none;
  }

  .site-header {
    position: sticky;
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding-top: env(safe-area-inset-top);
  }

  .header-logo {
    min-height: 48px;
    padding: 4px 16px;
  }

  .header-logo .app-logo {
    width: 92px;
    height: 32px;
  }

  .header-menu {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    border: 0;
    border-top: 1px solid var(--color-graphite);
  }

  .header-menu > a,
  .header-menu > button[data-inventory],
  .header-character-nav > summary {
    min-height: 48px;
    padding: 0 4px;
    font-size: 12px;
  }

  .header-character-menu {
    left: 0;
    width: min(420px, calc(100vw - env(safe-area-inset-left) - env(safe-area-inset-right)));
    max-height: calc(100dvh - 150px);
    overflow: auto;
    overscroll-behavior: contain;
    box-sizing: border-box;
  }

  .team-headline-block, .schedule-headline-block, .materials-headline-block {
    padding: 28px 20px;
  }

  .character-block, .wish-block h3 {
    padding: 20px;
  }

  .wish-fields {
    padding: 20px 20px 0;
  }

  .wish-block .result-list, .wish-option, .wish-note {
    margin-left: 20px;
    margin-right: 20px;
  }

  .character, .character:nth-child(even) {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .character > .character-content, .character:nth-child(even) > .character-content {
    grid-column: 1;
    grid-row: 2;
  }

  .character-splash {
    height: clamp(230px, 47vw, 410px);
    border: 0;
    border-bottom: 1px solid var(--color-graphite);
  }

  .character .character-art {
    transform: scale(1.12);
    transform-origin: center;
  }

  .character .splash-progress, .character:nth-child(even) .splash-progress {
    inset: 16px 16px auto auto;
  }

  .character .splash-plan, .character:nth-child(even) .splash-plan {
    inset: auto 16px 16px auto;
  }

  .schedule-board {
    grid-template-columns: minmax(0, 1fr);
  }

  .schedule-week-head, .schedule-boxes-head,
  .schedule-character-list .ww-box-assignment-row,
  .schedule-board .schedule-choice {
    padding: 16px;
  }

  .schedule-boxes {
    border-top: 1px solid var(--color-graphite);
  }

  .schedule-week-head, .schedule-boxes-head {
    height: auto;
    min-height: 60px;
  }

  .schedule-week-slots {
    grid-template-rows: repeat(3, minmax(125px, auto));
  }

  .schedule-board .schedule-choice {
    min-height: 125px;
  }

  .teams-section .team, .teams-section > .team:nth-of-type(odd) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: 0;
  }

  .teams-section .team .team-info,
  .teams-section > .team:nth-of-type(odd) .team-info {
    grid-column: 1 / -1;
    grid-row: 1;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    border: 0;
    border-bottom: 1px solid var(--color-graphite);
  }

  .team-name, .team-rotation {
    padding: 16px;
  }

  .team-controls {
    grid-column: 1 / -1;
  }

  .team-slot {
    min-height: 140px;
    padding: 12px;
  }

  .materials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .materials-grid .ww-material-group-heading,
  .materials-grid .ww-material-family,
  .materials-grid .ww-material-family + .ww-material-family {
    padding: 16px;
  }

  dialog {
    box-sizing: border-box;
    width: min(840px, calc(100% - 24px));
    max-width: none;
    max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 24px);
    padding: 16px;
    overflow: auto;
    overscroll-behavior: contain;
  }
}

@media (max-width: 640px) {
  .header-menu > a,
  .header-menu > button[data-inventory],
  .header-character-nav > summary {
    font-size: 11px;
  }

  h2, .character-level h2 {
    font-size: 24px;
  }

  .character-block, .team-headline-block, .schedule-headline-block, .materials-headline-block {
    padding: 16px;
  }

  .character-levels {
    grid-template-columns: minmax(0, 1fr);
  }

  .character-levels > .character-level {
    border-right: 0;
  }

  .character-levels > .weapon-level {
    border-bottom: 1px solid var(--color-graphite);
  }

  .character-levels > .character-block .compact-level {
    height: auto;
  }

  .compact-level button, .ww-tree-btn, .splash-plan select, .modal-head button {
    min-height: 44px;
  }

  .compact-level button, .ww-tree-btn {
    min-width: 44px;
  }

  .character .ww-echo-stack {
    grid-template-columns: minmax(0, 1fr);
  }

  .ww-mainstats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ww-mainstats-grid > .ww-skill-row:nth-child(-n + 2) {
    border-bottom: 1px solid var(--color-graphite);
  }

  .ww-mainstats-grid > .ww-skill-row:nth-child(2n) {
    border-right: 0;
  }

  .ww-echo-main.character-block, .ww-mainstats-grid > .ww-skill-row {
    gap: 8px;
  }

  .character .ww-checkbox-btn, .schedule-complete {
    min-width: 44px;
    min-height: 44px;
  }

  .ww-skilltree-row-desktop {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .ww-skilltree-row-desktop .ww-tree-col {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-rows: auto auto auto;
    column-gap: 6px;
    align-items: center;
    justify-items: start;
    border-left: 0;
  }

  .ww-tree-col .ww-tree-label {
    grid-column: 1;
    grid-row: 1;
    text-align: left;
    justify-content: flex-start;
    min-height: 0;
  }

  .ww-tree-col .ww-tree-priority {
    grid-column: 1;
    grid-row: 2;
  }

  .ww-tree-col .ww-tree-target {
    grid-column: 1;
    grid-row: 3;
    margin: 0;
  }

  .ww-tree-col .ww-tree-deco {
    grid-column: 2;
    grid-row: 1 / -1;
    flex-direction: row;
    margin: 0;
  }

  .ww-tree-col .ww-tree-line {
    display: none;
  }

  .ww-tree-col .ww-tree-main-wrap {
    grid-column: 3;
    grid-row: 1 / 3;
    justify-self: center;
  }

  .ww-tree-col .ww-tree-stepper {
    grid-column: 3;
    grid-row: 3;
    gap: 2px;
    margin: 4px 0 0;
  }

  .character .materials, .materials-grid, .wishes-board {
    grid-template-columns: minmax(0, 1fr);
  }

  .character .material-category, .materials-grid > .ww-material-character-group,
  .wishes-board .wish-block {
    border-left: 0;
    border-right: 0;
    border-bottom: 1px solid var(--color-graphite);
  }

  .schedule-weeks {
    grid-template-columns: minmax(0, 1fr);
  }

  .schedule-week {
    border: 0;
    border-bottom: 1px solid var(--color-graphite);
  }

  .schedule-week-slots {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: minmax(110px, auto);
  }

  .schedule-board .schedule-choice {
    min-height: 110px;
    padding: 10px;
    border-bottom: 0;
    border-right: 1px solid var(--color-graphite);
  }

  .schedule-board .schedule-choice:last-child {
    border-right: 0;
  }

  .schedule-card-content .ww-schedule-target-table {
    flex-wrap: wrap;
  }

  .schedule-card-content strong {
    overflow-wrap: anywhere;
  }

  .wish-next {
    gap: 4px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    font-size: 12px;
  }

  .wish-block .result-list > div {
    gap: 10px;
  }

  .team-slot strong {
    overflow-wrap: anywhere;
  }

  .picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .picker button {
    min-width: 0;
    padding: 12px;
  }

  .schedule-picker > button {
    padding: 12px 6px;
  }

  .schedule-picker-copy {
    flex-wrap: wrap;
  }

  .inventory-table tr {
    padding: 8px;
  }

  .inventory-table input[type=number] {
    width: 72px;
  }

  .inventory-material {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 370px) {
  html {
    scroll-padding-top: calc(146px + env(safe-area-inset-top));
  }

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

  .header-menu > :nth-child(n + 4) {
    border-top: 1px solid var(--color-graphite);
  }
}

@media (pointer: coarse) {
  #app input, #app select, dialog input, dialog select {
    font-size: 16px;
  }

  button, .header-menu a, .header-character-nav > summary {
    touch-action: manipulation;
  }
}
