@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;600;700&family=Noto+Serif+KR:wght@600;700&display=swap");
:root {
  --bg: #f1f2ed;
  --paper: #fffef9;
  --ink: #20342e;
  --muted: #718078;
  --line: #dce1d8;
  --jade: #215d4c;
  --deep: #162f29;
  --gold: #d8ba77;
  --red: #a3513b;
  --serif: "Noto Serif KR", Georgia, serif;
  --sans: "Noto Sans KR", "Malgun Gothic", sans-serif;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 145px;
  scrollbar-color: #9aa99b #eef0e9;
  scrollbar-width: thin;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.65 var(--sans);
  word-break: keep-all;
  overflow-wrap: anywhere;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1,
h2,
h3 {
  letter-spacing: -0.04em;
}
h1,
h2 {
  font-family: var(--serif);
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--jade);
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 6px;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  transition:
    background 0.15s,
    border-color 0.15s,
    box-shadow 0.15s;
}
button:hover,
.button:hover {
  background: #eef3e9;
  border-color: #9bab97;
  color: var(--jade);
}
button:active,
.button:active {
  transform: translateY(1px);
}
button:disabled {
  opacity: 0.35;
  cursor: default;
  transform: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #ba8b38;
  outline-offset: 3px;
}
button,
a,
summary {
  touch-action: manipulation;
}
.primary,
button.primary,
a.primary {
  background: var(--jade);
  border-color: var(--jade);
  color: #fff;
}
.primary:hover {
  background: #174b3b;
  color: #fff;
}
.danger {
  color: #a14336;
}
.quiet {
  background: transparent;
}
.text-link {
  border: 0;
  background: transparent;
  padding: 8px 0;
  color: var(--jade);
  font-size: 12px;
  min-height: 40px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.button-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.button-row:empty {
  display: none;
}
input,
select,
textarea {
  background: #fffefb;
  border: 1px solid #ccd5c9;
  border-radius: 5px;
  padding: 10px 12px;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
}
input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  flex: none;
  margin: 0;
  accent-color: var(--jade);
}
input[type="range"] {
  accent-color: var(--jade);
  padding: 0;
  cursor: ew-resize;
}
label {
  font-size: 12px;
  font-weight: 500;
}
label > input:not([type="checkbox"]),
label > select,
label > textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
}
summary {
  cursor: pointer;
  min-height: 44px;
  padding: 11px 0;
  font-weight: 500;
  font-size: 13px;
}
summary:hover {
  color: var(--jade);
}
details > p {
  margin: 8px 0;
}
.muted,
.small {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: #70877a;
}
.masthead {
  background: var(--deep);
  color: #f4f3e6;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 2px 12px #183a2920;
}
.masthead-inner {
  max-width: 1440px;
  padding: 16px 36px 14px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 80px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  flex: none;
  color: #f6f2e5;
}
.brand:hover {
  color: white;
}
.brand > span {
  font: 22px/1.3 var(--serif);
  letter-spacing: -0.05em;
}
.brand strong {
  color: var(--gold);
  font-weight: 600;
}
.brand small {
  display: block;
  font: 9px/1.6 var(--sans);
  letter-spacing: 0.06em;
  color: #a4b9a8;
  margin-top: 4px;
}
.header-note {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: #8aa497;
  border-left: 1px solid #365348;
  padding-left: 28px;
}
.header-link {
  margin-left: auto;
  font-size: 12px;
  color: var(--gold);
}
.mode-control {
  display: flex;
  margin-left: auto;
  background: #10271f;
  border: 1px solid #4c6656;
  padding: 3px;
  border-radius: 7px;
  gap: 3px;
}
.mode-control button {
  min-height: 40px;
  background: transparent;
  color: #a6b9a8;
  border: 0;
  padding: 8px 15px;
}
.mode-control button[aria-pressed="true"] {
  background: #d8c18d;
  color: #22382c;
  box-shadow: 0 1px 5px #0003;
}
.mode-control small {
  font-size: 10px;
  font-weight: 400;
}
.mode-check {
  visibility: hidden;
  font-size: 11px;
}
.mode-control [aria-pressed="true"] .mode-check {
  visibility: visible;
}
.site-nav {
  display: flex;
  gap: 4px;
  max-width: 1440px;
  margin: auto;
  padding: 0 36px;
  overflow-x: auto;
  border-top: 1px solid #304c3e;
  scrollbar-width: thin;
  scrollbar-color: #617e68 #1a342b;
}
.site-nav a {
  padding: 14px 18px;
  min-height: 48px;
  white-space: nowrap;
  color: #acbdae;
  font-size: 12px;
  position: relative;
}
.site-nav a:hover {
  color: #fff;
  background: #294738;
}
.site-nav a[aria-current="page"] {
  color: #ecd5a0;
}
.site-nav a[aria-current="page"]:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 18px;
  right: 18px;
  height: 3px;
  background: #d5b675;
}
.site-nav a:nth-child(5) {
  margin-left: auto;
}
main {
  max-width: 1440px;
  padding: 0 36px;
  margin: 0 auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 32px 0 26px;
}
.page-heading h1 {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.5;
  margin-top: 7px;
}
.page-copy {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}
.page-heading > .text-link {
  align-self: flex-end;
  margin-bottom: 6px;
  white-space: nowrap;
}
.book-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr) 76px;
  gap: 18px;
  align-items: start;
}
.workspace {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.equipment {
  padding: 22px 24px 16px;
  color: #e7efdf;
  background: radial-gradient(ellipse at 50% 35%, #2b4d3d 0%, #1a382e 67%);
  border: 1px solid #335840;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 14px #1c332b14;
}
.equipment:before {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: 80px 14% 160px;
  border: 1px solid #afc39b0d;
  border-radius: 50%;
  box-shadow:
    0 0 0 26px #d9e8b706,
    0 0 0 52px #d9e8b703;
}
.equipment-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
}
.equipment .eyebrow {
  color: #829e85;
  font-size: 9px;
}
.equipment h2 {
  font-size: 21px;
  margin-top: 2px;
  color: #eee9d2;
}
.equipment h2 > span {
  font: 11px var(--sans);
  color: #9bb19a;
  margin-left: 8px;
}
.equipment-heading button {
  background: transparent;
  border-color: #4a6550;
  color: #a6b99e;
  font-size: 11px;
  min-height: 36px;
  padding: 7px 10px;
}
.equipment-heading button:hover {
  background: #365641;
  color: #efe8c8;
}
.placement-note {
  font-size: 11px;
  color: #b8c7ab;
  margin: 16px 0 5px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 30px;
}
.placement-note button {
  padding: 5px 8px;
  min-height: 30px;
  background: #294b39;
  color: #eed9a6;
  border-color: #52684d;
  font-size: 10px;
}
.equipment-field {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 8px 0 4px;
  position: relative;
}
.normal-slots {
  max-width: 480px;
  flex: 1;
  min-width: 0;
}
.extra-label,
.base-label {
  text-align: center;
  color: #90ab90;
  font-size: 10px;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.extra-label > span {
  font-size: 9px;
  color: #738e76;
  margin-left: 5px;
}
.extra-slots,
.base-slots {
  display: flex;
  justify-content: center;
  gap: clamp(7px, 1vw, 18px);
}
.extra-slots {
  margin-bottom: 14px;
}
.extra-slots .slot-wrap {
  min-height: 91px;
}
.base-slots .slot-wrap {
  min-height: 99px;
}
.slot-wrap {
  width: clamp(45px, 4.5vw, 68px);
  text-align: center;
  position: relative;
  flex: none;
}
.equip-slot {
  width: clamp(45px, 4.5vw, 68px);
  height: clamp(45px, 4.5vw, 68px);
  border-radius: 50%;
  border: 1px solid #96a97e;
  padding: 5px;
  position: relative;
  background: #304c38;
  box-shadow:
    inset 0 0 0 3px #1d392b,
    inset 0 0 0 4px #9daa7755;
  display: flex;
  align-items: center;
  justify-content: center;
}
.equip-slot:hover {
  background: #446341;
  border-color: #e1c780;
}
.equip-slot .skill-icon {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 0;
  background: none;
  pointer-events: none;
}
.slot-plus {
  font: 24px var(--sans);
  color: #9dad80;
}
.slot-position {
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  background: #34533b;
  color: #c2ceaa;
  font-size: 9px;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  border-radius: 50%;
  border: 1px solid #74866b;
}
.slot-order {
  position: absolute;
  top: -4px;
  right: -4px;
  font-size: 10px;
  border-radius: 50%;
  width: 21px;
  height: 21px;
  background: #d6b870;
  color: #2a3b25;
  line-height: 21px;
  box-shadow: 0 2px 4px #0003;
}
.slot-name {
  display: block;
  font-size: 10px;
  line-height: 1.45;
  color: #c0cfaf;
  padding-top: 10px;
  min-height: 26px;
}
.slot-actions {
  display: flex;
  justify-content: center;
  gap: 1px;
  margin-top: 1px;
}
.slot-actions button {
  font-size: 9px;
  color: #9eb793;
  border: 0;
  background: transparent;
  min-height: 29px;
  min-width: 30px;
  padding: 4px;
}
.slot-actions button:hover {
  color: #eedcb0;
  background: #3a593e;
}
.locked .equip-slot {
  border-style: dashed;
  border-color: #71836a;
  color: #829878;
  background: #263e2c;
  box-shadow: inset 0 0 0 4px #213c2b;
}
.lock-symbol {
  font-size: 24px;
}
.locked .slot-name {
  color: #6e886e;
}
.ultimate-slot {
  flex: none;
  width: 76px;
  text-align: center;
  border-left: 1px solid #55704e66;
  padding-left: 16px;
  box-sizing: content-box;
}
.ultimate-label {
  display: block;
  color: #bcaa76;
  font-size: 10px;
  margin-bottom: 10px;
  letter-spacing: 0.1em;
}
.ultimate-icon {
  border-radius: 16px;
  transform: rotate(0);
  border: 1px solid #7e8153;
  width: 66px;
  height: 66px;
  padding: 6px;
  color: #b7b17d;
  background: #35482c;
  font-size: 30px;
  min-height: 0;
  margin: auto;
}
.ultimate-icon .skill-icon {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 9px;
}
.ultimate-icon.registered {
  border-color: #e0c183;
  box-shadow: 0 0 20px #d8b76822;
}
.ultimate-slot > strong {
  display: block;
  font-size: 11px;
  margin-top: 10px;
  color: #d0c390;
}
.ultimate-slot > small {
  font-size: 10px;
  color: #859d7d;
  line-height: 1.5;
  display: block;
  margin-top: 4px;
}
.unlock-settings {
  border-top: 1px solid #49604666;
  font-size: 11px;
  margin-top: 6px;
}
.unlock-settings summary {
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #afbf9e;
}
.unlock-settings summary:before {
  content: "＋";
  margin-right: 8px;
}
.unlock-settings[open] summary:before {
  content: "−";
}
.unlock-settings summary span {
  margin-left: auto;
  font-size: 10px;
  color: #819c7f;
}
.unlock-settings p {
  color: #a9bca0;
  font-size: 11px;
}
.unlock-options {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 10px 0;
}
.unlock-options label {
  display: flex;
  gap: 9px;
  align-items: center;
  min-height: 40px;
  font-size: 11px;
}
.unlock-settings a {
  color: #dbc487;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 10px;
}
.order-section {
  border-top: 1px solid #49604666;
  padding: 11px 0;
}
.order-heading {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 11px;
}
.order-heading > span {
  font-size: 9px;
  color: #88a084;
}
.order-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  overflow: visible;
  padding: 9px 0 4px;
  scrollbar-color: #627b53 #223e2c;
}
.order-item {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 5px 6px;
  border: 1px solid #60744e66;
  border-radius: 5px;
  background: #25432f;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.order-grip {
  color: #b5c7a5;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  min-height: 44px;
}
.order-grip,
.order-item > .skill-icon {
  touch-action: none;
  -webkit-touch-callout: none;
}
.equip-slot[data-drag-name] {
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  cursor: grab;
}
.drag-source {
  opacity: 0.4;
}
.drag-ghost {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2000;
  opacity: 0.9;
  pointer-events: none;
  margin: 0;
  box-shadow: 0 6px 24px #0005;
}
.drag-ghost * {
  pointer-events: none;
}
.order-item > .skill-icon {
  width: 25px;
  height: 25px;
  border-radius: 4px;
  border: 0;
}
.order-item > span {
  font-size: 10px;
  color: #cdb778;
}
.order-item > b {
  font-size: 10px;
  font-weight: 400;
  max-width: 65px;
  line-height: 1.5;
}
.order-item > div {
  display: flex;
  flex-direction: column;
}
.order-item button {
  min-height: 19px;
  padding: 0 5px;
  background: transparent;
  border: 0;
  color: #b5c7a5;
  font-size: 16px;
}
.order-empty {
  color: #789571;
  font-size: 11px;
  min-height: 34px;
}
.build-save {
  display: flex;
  gap: 7px;
  border-top: 1px solid #49604666;
  padding-top: 14px;
}
.build-save input {
  width: 100%;
  min-width: 60px;
  background: #183328;
  border-color: #526949;
  color: #e6edda;
  font-size: 12px;
}
.build-save button {
  flex: none;
  background: #2c4c35;
  border-color: #667650;
  color: #c6d2b1;
  padding: 9px 12px;
}
.build-save .gold-button {
  background: #d7be85;
  color: #273a23;
  border-color: #d7be85;
}
.build-save .gold-button:hover {
  background: #e5cfa1;
}
.draft-status {
  color: #789875;
  font-size: 10px;
  margin-top: 9px;
}
.draft-status a {
  color: #b7c79f;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.drop-valid {
  outline: 2px dashed #d4c881 !important;
  outline-offset: 4px;
}
.drop-invalid {
  opacity: 0.45;
}
.drop-over {
  box-shadow: 0 0 0 5px #e6c16f77 !important;
  background: #6c7f4266 !important;
}
.dragging [data-drag-name] {
  cursor: grabbing;
}
.catalog-pane {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 9px;
  position: sticky;
  top: 148px;
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 165px);
  min-height: 480px;
  overflow: hidden;
}
.catalog-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 19px 18px 14px;
}
.catalog-heading h2 {
  font-size: 18px;
}
.catalog-heading span {
  font-size: 10px;
  color: var(--muted);
}
#filters {
  padding: 0 16px;
  flex: none;
}
.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: #f1f4ec;
  border: 0;
  border-radius: 6px;
  padding-left: 12px;
  transition: background 0.15s;
}
.search-wrap:focus-within {
  background: #e8eee5;
}
.search-icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: #738474;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.search-wrap input {
  outline: none;
  background: transparent;
  border: 0;
  min-width: 0;
  width: 100%;
  font-size: 12px;
  padding: 10px;
}
input[type="search"]:focus {
  outline: none;
}
input[type="search"]:focus-visible {
  box-shadow: inset 0 -2px var(--jade);
}
.search-wrap input:focus,
.search-wrap input:focus-visible {
  outline: none;
  box-shadow: none;
}
.search-wrap:has(input:focus-visible) {
  box-shadow: inset 0 -2px var(--jade);
}
.search-wrap button {
  min-width: 40px;
  padding: 7px;
  flex: none;
  background: transparent;
  border: 0;
  color: #87957b;
  font-size: 19px;
}
.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0;
}
.learning-label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  font-size: 11px;
  color: var(--muted);
  flex-wrap: wrap;
}
.learning-label > span {
  font-size: 9px;
  color: #8a988b;
}
.filter-extra {
  position: relative;
  font-size: 11px;
}
.filter-extra summary {
  font-size: 11px;
  color: var(--muted);
}
.filter-extra > div {
  position: absolute;
  top: 45px;
  right: 0;
  width: 260px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 16px;
  z-index: 6;
  box-shadow: 0 8px 20px #193c2420;
  display: grid;
  gap: 10px;
}
.list-hint {
  font-size: 9px;
  color: #8a9786;
  padding: 6px 18px 10px;
  border-bottom: 1px solid var(--line);
  flex: none;
}
.list-hint b {
  color: #698265;
}
.skills {
  overflow-y: auto;
  overscroll-behavior: auto;
  flex: 1;
  min-height: 0;
  scrollbar-color: #b6c3ad #f0f3e9;
  scrollbar-gutter: stable;
}
.skill-row {
  display: flex;
  align-items: center;
  gap: 4px;
  border-bottom: 1px solid #e5e9e0;
  border-left: 3px solid transparent;
  min-height: 91px;
  padding: 0 10px 0 4px;
}
.skill-row:hover {
  background: #f5f7ee;
}
.skill-row.selected {
  background: #edf3e5;
  border-left-color: var(--jade);
}
.skill-select {
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent !important;
  flex: 1;
  min-width: 0;
  border: 0;
  border-radius: 0;
  text-align: left;
  padding: 12px 7px;
  justify-content: flex-start;
}
.skill-icon {
  width: 48px;
  height: 48px;
  flex: none;
  object-fit: contain;
  border-radius: 7px;
  background: #263428;
  border: 1px solid #91a082;
}
.draggable-icon {
  cursor: grab;
  display: flex;
  flex: none;
}
.skill-row-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 3px;
}
.skill-name {
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.row-meta {
  font-size: 10px;
  color: #74846b;
}
.row-meta > span {
  color: #9ca794;
  margin-left: 7px;
}
.row-effects {
  font-size: 10px;
  color: #a0a58e;
  max-width: 230px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  display: block;
}
.equipped-badge {
  font-size: 8px;
  font-weight: 500;
  color: #3d7552;
  background: #d9e9d1;
  padding: 2px 4px;
  border-radius: 3px;
}
.row-equip {
  min-width: 44px;
  min-height: 50px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 0;
  background: transparent;
  padding: 6px;
  color: #71866a;
}
.row-equip b {
  font-size: 19px;
  font-weight: 400;
}
.row-equip span {
  font-size: 9px;
}
.auto-label {
  font-size: 9px;
  color: #a6a08b;
  text-align: center;
  padding: 8px;
}
.catalog-note {
  font-size: 8px;
  padding: 10px 15px;
  color: #9b9f8d;
  background: #f8f8f1;
  flex: none;
  border-top: 1px solid var(--line);
}
.style-tabs {
  position: sticky;
  top: 148px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
  background: #e7ecdf;
}
.style-tabs button {
  flex-direction: column;
  gap: 2px;
  border: 0;
  border-bottom: 1px solid #d6ddca;
  background: transparent;
  border-radius: 0;
  padding: 10px 2px;
  min-height: 49px;
  font-size: 11px;
  color: #89927b;
}
.style-tabs button small {
  font-size: 8px;
  color: #99a08b;
}
.style-tabs button[aria-pressed="true"] {
  background: var(--jade);
  color: white;
}
.style-tabs button[aria-pressed="true"] small {
  color: #acc4a5;
}
.style-tabs button:hover {
  background: #d5dfca;
}
.detail-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 18px 24px 22px;
  min-width: 0;
}
.panel-kicker {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
}
.panel-kicker > span {
  font-size: 9px;
  letter-spacing: 0.13em;
  color: #91a08a;
}
.panel-kicker button {
  font-size: 10px;
  min-height: 30px;
}
.detail-heading {
  display: flex;
  align-items: center;
  gap: 15px;
}
.detail-heading > .skill-icon {
  width: 61px;
  height: 61px;
}
.detail-heading h2 {
  font-size: 27px;
  line-height: 1.5;
}
.detail-category {
  font-size: 10px;
  color: #8a967b;
}
.cast-label {
  font-size: 10px;
  color: #8f9986;
  margin-top: 3px;
}
.mode-badge {
  font: 600 10px var(--sans);
  border: 1px solid #b9c7a6;
  border-radius: 4px;
  padding: 5px 9px;
  color: #6b815a;
  white-space: nowrap;
}
.detail-heading > .mode-badge {
  margin-left: auto;
}
.detail-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}
.detail-actions .primary {
  min-height: 38px;
  font-size: 11px;
}
.detail-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #e1e6d8;
  border-radius: 6px;
  background: #f6f8f0;
  margin: 18px 0 7px;
}
.detail-stats > div {
  padding: 12px 10px;
  border-right: 1px solid #e1e6d8;
}
.detail-stats > div:last-child {
  border: 0;
}
.detail-stats dt {
  font-size: 9px;
  color: #8a947f;
}
.detail-stats dd {
  margin: 4px 0 0;
  font-size: 20px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}
.detail-stats small {
  font-size: 8px;
  color: #a6ad98;
  display: block;
  margin-top: 4px;
  line-height: 1.4;
}
.detail-stats .changed {
  color: #a58451;
}
.observation-note {
  font-size: 9px;
  color: #9aa18b;
  margin: 7px 0 17px;
}
.detail-tabs {
  display: flex;
  gap: 15px;
  border-bottom: 1px solid var(--line);
}
.detail-tabs button {
  border: 0;
  background: transparent;
  padding: 11px 5px;
  border-radius: 0;
  font-size: 12px;
  color: #919a82;
}
.detail-tabs [aria-selected="true"] {
  color: var(--jade);
  box-shadow: inset 0 -2px var(--jade);
  font-weight: 600;
}
#detail-tabpanel {
  padding-top: 17px;
  min-height: 150px;
}
.effect-item {
  padding: 12px 0;
  border-bottom: 1px solid #e8ebdf;
}
.effect-item:last-child {
  border: 0;
}
.effect-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}
.effect-heading h4 {
  font-size: 13px;
  font-weight: 600;
}
.effect-heading > span {
  font-size: 9px;
  color: #a8a78d;
}
.effect-item p {
  font-size: 12px;
  color: #6e7b63;
  margin-top: 5px;
  line-height: 1.9;
}
.effect-item .requirement {
  color: #986f3c;
}
.effect-values {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 7px;
  font-size: 11px;
  color: #8a9279;
}
.effect-values b {
  color: #526c46;
}
.effect-values small {
  display: block;
  font-size: 8px;
  color: #a2aa92;
}
.effect-values .changed {
  color: #a68449;
}
.component-record {
  padding: 13px 16px;
  border: 1px solid #d9e0ca;
  background: #f1f5e9;
  border-radius: 6px;
  margin: 10px 0;
  font-size: 12px;
}
.component-record p {
  margin-top: 4px;
}
.skill-description {
  font-size: 12px;
  color: #6a7c60;
  margin-bottom: 12px;
}
.sinsik-page {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.sinsik-page h3 {
  font-size: 14px;
  margin-bottom: 8px;
}
.sinsik-page p,
.sinsik-page li {
  font-size: 12px;
}
.sinsik-page pre {
  white-space: pre-wrap;
  font: 12px/1.9 var(--sans);
  color: #5b7050;
  margin-top: 12px;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.info-line,
.notice {
  background: #edf2e5;
  border-left: 3px solid #82945d;
  padding: 12px 16px;
  font-size: 12px;
  line-height: 1.9;
  color: #6a7957;
}
.notice.warning,
.content-warning {
  background: #fbf2df;
  border-left: 3px solid #bd9b54;
  color: #8e7142;
  padding: 13px 16px;
  font-size: 12px;
}
.provenance {
  font-size: 12px;
  color: #748169;
}
.provenance h3 {
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 12px;
}
.provenance p {
  margin: 10px 0;
}
.mobile-views {
  display: none;
}
.document-page {
  max-width: 1200px;
  min-height: 65vh;
}
.document-page .page-heading {
  padding-bottom: 28px;
}
.document-page .page-heading h1 {
  font-size: 34px;
}
.page-panel {
  padding: 28px 30px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 9px;
  margin-bottom: 20px;
}
.page-panel h2 {
  font-size: 21px;
  margin-bottom: 15px;
}
.page-panel p + p {
  margin-top: 10px;
}
.page-panel .button-row {
  margin-top: 18px;
}
.page-panel label {
  display: block;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 26px 0 18px;
}
.section-title h2 {
  font-size: 23px;
}
.section-title span {
  font-size: 12px;
  color: var(--muted);
}
.relation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px 26px;
  gap: 12px;
  margin-bottom: 14px;
}
.step-label {
  font-size: 10px;
  color: #9aa387;
}
.relation-skill {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 15px;
}
.relation-skill h3 {
  font-family: var(--serif);
  font-size: 18px;
}
.relation-skill small {
  font-size: 10px;
  color: #8c9a7e;
}
.relation-step > p {
  font-size: 12px;
  color: #758369;
  margin-top: 13px;
}
.relation-step > p small {
  display: block;
  color: #a1aa90;
  font-size: 10px;
}
.relation-step .button-row {
  margin-top: 13px;
  gap: 6px;
}
.relation-step .button-row > button,
.relation-step .button-row > .button {
  min-height: 36px;
  font-size: 10px;
  padding: 7px 10px;
}
.relation-arrow {
  align-self: center;
  text-align: center;
  font-size: 23px;
  color: #b7c0a3;
}
.relation-result {
  color: #9c7e47 !important;
}
.detail-panel .relation {
  padding: 14px 10px;
  gap: 5px;
  grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr);
  border-radius: 3px;
}
.detail-panel .relation h3 {
  font-size: 14px;
}
.detail-panel .relation .skill-icon {
  width: 32px;
  height: 32px;
}
.detail-panel .relation-skill {
  gap: 6px;
}
.empty-state {
  text-align: center;
  padding: 70px 20px;
  background: var(--paper);
  border: 1px dashed #ccd5bd;
  border-radius: 9px;
}
.empty-state h2 {
  font-size: 23px;
  margin-bottom: 10px;
}
.empty-state p {
  font-size: 13px;
  color: var(--muted);
  margin: 10px 0 24px;
}
.empty-mark {
  font-size: 48px;
  line-height: 1;
  color: #c3ceb1;
  margin-bottom: 20px;
  display: block;
}
.empty-state.compact {
  padding: 30px 12px;
  background: transparent;
  border: 0;
}
.empty-state.compact h3 {
  font-size: 16px;
}
.empty-state.compact p {
  font-size: 12px;
}
.empty {
  font-size: 12px;
  color: var(--muted);
  padding: 30px;
  text-align: center;
}
.preset-item {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 24px 28px;
  border-radius: 9px;
  margin-bottom: 16px;
}
.preset-item-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.preset-item-heading > div {
  display: flex;
  align-items: center;
  gap: 14px;
}
.preset-number {
  font-size: 12px;
  color: #a3ad94;
}
.preset-item h2 {
  font-size: 22px;
}
.preset-preview {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.preset-preview > span {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 11px;
}
.preset-preview .skill-icon {
  width: 30px;
  height: 30px;
  border-radius: 4px;
}
.preset-item > .button-row {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 12px;
}
.composition-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0;
}
.composition-slot {
  display: flex;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid #e6ebdc;
  padding: 12px 4px;
  min-width: 0;
}
.composition-slot > span {
  font-size: 9px;
  flex: none;
  color: #95a083;
}
.composition-slot .skill-icon {
  width: 35px;
  height: 35px;
}
.composition-slot b {
  font-size: 11px;
  display: block;
}
.composition-slot small {
  font-size: 9px;
  color: var(--muted);
  display: block;
}
.composition-slot.muted {
  opacity: 0.6;
}
.ultimate-composition {
  background: #f2eedf;
}
.share-preview {
  background: #fff9ea;
  border: 1px solid #d8c590;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
}
.share-preview h2 {
  font-size: 24px;
}
.share-preview h3 {
  font-size: 18px;
  margin-top: 15px;
}
.share-preview > p {
  color: #8e805a;
  font-size: 12px;
  margin-top: 8px;
}
.backup-panel {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.backup-panel h2 {
  font-size: 18px;
  margin-bottom: 7px;
}
.backup-panel .button-row {
  margin: 0;
}
.file-button {
  position: relative;
  display: inline-flex !important;
  cursor: pointer;
  overflow: hidden;
}
.file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  cursor: pointer;
  margin: 0 !important;
}
.file-button:focus-within {
  outline: 3px solid #ba8b38;
  outline-offset: 3px;
}
.filter-toolbar {
  display: flex;
  gap: 16px;
  align-items: end;
  flex-wrap: wrap;
}
.filter-toolbar label {
  min-width: 130px;
  flex: 1;
}
.filter-toolbar input,
.filter-toolbar select {
  width: 100%;
}
.filter-toolbar .mode-badge {
  margin-bottom: 12px;
}
.tier-table,
.table-scroll {
  overflow: auto;
  max-width: 100%;
  scrollbar-color: #acb99d #ecf0e5;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.tier-table table,
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
.tier-table th,
.tier-table td,
.table-scroll th,
.table-scroll td {
  padding: 15px 17px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.tier-table th,
.table-scroll th {
  font-size: 11px;
  font-weight: 500;
  color: #7a886c;
  background: #eef2e5;
}
.tier-table tr:last-child td {
  border-bottom: 0;
}
.tier-table .matched td {
  background: #ecf3df;
  color: var(--jade);
  font-weight: 600;
}
.equipment-result-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 25px 0 15px;
}
.equipment-result-heading h2 {
  margin: 0;
}
.equipment-probability {
  color: #a08248;
  font-size: 12px;
}
.quality-check {
  margin-top: 24px;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.quality-check input {
  max-width: 180px;
}
.quality-check output {
  font-size: 12px;
  color: var(--jade);
}
.source-link {
  font-size: 11px;
  color: #7d9269;
  text-decoration: underline;
  text-underline-offset: 4px;
  display: inline-flex;
  min-height: 40px;
  align-items: center;
}
.content-guide {
  padding-top: 0;
}
.content-guide .appendix {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}
.appendix-title {
  display: flex;
  gap: 20px;
  align-items: baseline;
  margin-bottom: 16px;
}
.appendix-title h1 {
  font-size: 31px;
}
.appendix-title > span {
  font-size: 11px;
  color: var(--muted);
}
.content-guide .appendix > p {
  font-size: 12px;
  color: var(--muted);
  margin: 12px 0;
}
.content-guide .appendix > h2 {
  font-size: 22px;
  margin: 25px 0 12px;
}
.content-record {
  margin-top: 16px;
  padding: 10px 22px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fcfdf7;
}
.content-record > summary {
  font-family: var(--serif);
  font-size: 19px;
  min-height: 62px;
}
.content-record h2 {
  font-size: 21px;
  margin: 12px 0;
}
.content-record h3 {
  font-size: 15px;
  margin: 16px 0 9px;
}
.content-record p,
.content-record li {
  font-size: 12px;
  line-height: 1.9;
  color: #728065;
  margin: 9px 0;
}
.content-record details {
  margin: 12px 0;
}
.source-line a {
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: #8c875f;
}
.guide-toc {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.guide-toc a {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  font-size: 12px;
  min-height: 42px;
}
.today-row {
  border-left: 3px solid var(--jade);
}
.schedule-caption {
  font-size: 10px;
  color: #9aa18c;
  margin: 10px 0;
}
.sources-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.sources-grid .page-panel {
  margin: 0;
}
.sources-grid h3 {
  font-size: 15px;
  margin-bottom: 10px;
}
.sources-grid ul {
  padding-left: 19px;
  font-size: 12px;
  color: var(--muted);
}
.source-index {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.source-index details {
  border-top: 1px solid var(--line);
}
.source-index details a {
  display: block;
  padding: 8px 0;
  font-size: 12px;
  color: #6a805b;
}
.coupon-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 22px;
}
.coupon-layout .page-panel {
  margin: 0;
}
.coupon-form {
  display: grid;
  gap: 15px;
}
.coupon-form label {
  display: block;
}
.coupon-form input,
.coupon-form textarea {
  width: 100%;
}
.account-list {
  margin-top: 20px;
}
.account-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.account-row h3 {
  font-size: 13px;
}
.account-row small {
  font-size: 10px;
  color: var(--muted);
}
.account-row .button-row {
  margin: 0;
  gap: 4px;
}
.account-row button {
  font-size: 10px;
  padding: 7px 9px;
}
.coupon-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.coupon-row code {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.coupon-row small {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 4px;
}
.coupon-row select {
  font-size: 10px;
  min-height: 40px;
  max-width: 170px;
}
.coupon-row button {
  min-height: 38px;
  font-size: 10px;
}
.coupon-row .button-row {
  margin: 0;
}
.account-select {
  margin: 20px 0;
}
.account-select select {
  width: 100%;
}
.sim-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.combat-time {
  max-width: 600px;
  margin: auto;
}
.combat-time > span:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.combat-time output {
  font-size: 30px;
  font-weight: 600;
  color: var(--jade);
  font-variant-numeric: tabular-nums;
}
.time-buttons {
  display: flex;
  gap: 8px;
  margin: 14px 0;
}
.time-buttons button {
  flex: 1;
}
.time-buttons [aria-pressed="true"] {
  color: var(--jade);
  border-color: var(--jade);
  background: #e7f0df;
}
.combat-time input {
  width: 100%;
}
.cooldown-track-row {
  display: grid;
  grid-template-columns: 135px minmax(0, 1fr);
  gap: 18px;
  margin: 20px 0;
  align-items: center;
}
.cooldown-track-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}
.cooldown-track-label .skill-icon {
  width: 32px;
  height: 32px;
}
.cooldown-track-label small {
  font-size: 9px;
  color: var(--muted);
  display: block;
}
.cooldown-track {
  height: 38px;
  background: repeating-linear-gradient(
    90deg,
    #dce4d0 0,
    #dce4d0 1px,
    transparent 1px,
    transparent 25%
  );
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.cooldown-event {
  position: absolute;
  top: 4px;
  width: 8px;
  height: 27px;
  background: #50865a;
  border-radius: 3px;
}
.cooldown-effect {
  position: absolute;
  top: 27px;
  height: 5px;
  background: #c4a861a6;
}
.time-axis {
  display: flex;
  justify-content: space-between;
  padding-left: 153px;
  font-size: 10px;
  color: var(--muted);
}
.timeline-legend {
  display: flex;
  gap: 20px;
  font-size: 10px;
  color: var(--muted);
  margin: 16px 0;
}
.timeline-legend span:before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #50865a;
  margin-right: 6px;
}
.timeline-legend span:last-child:before {
  background: #c4a861;
}
.advanced-settings {
  background: #f8f9f1;
  border: 1px solid var(--line);
  padding: 10px 20px;
  border-radius: 7px;
  margin-top: 20px;
}
.advanced-settings > summary {
  font-size: 14px;
}
.advanced-settings p {
  font-size: 12px;
  color: var(--muted);
}
.assumption-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 15px 0;
}
.assumption-grid label {
  font-size: 11px;
}
.check-label {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  margin: 15px 0;
}
.slot-row {
  display: grid;
  grid-template-columns: 55px 75px 1fr 85px;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.slot-row label {
  font-size: 10px;
}
.slot-row > span {
  font-size: 11px;
}
.slot-row select,
.slot-row input[type="number"] {
  width: 100%;
  font-size: 11px;
}
.sim-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.timeline-event {
  border-bottom: 1px solid var(--line);
}
.timeline-event summary {
  display: grid;
  grid-template-columns: 80px 1fr 100px;
  gap: 10px;
  font-size: 12px;
}
.timeline-event > div {
  font-size: 12px;
  color: var(--muted);
  padding-bottom: 16px;
}
.timeline-event p {
  margin: 7px 0;
}
.timeline-event summary span:last-child {
  text-align: right;
}
.sim-advanced-panel {
  margin-top: 20px;
}
.sim-advanced-panel > summary {
  font-size: 15px;
}
.sim-advanced-panel #simulator h2,
.sim-advanced-panel #simulator > .eyebrow,
.sim-advanced-panel #simulator > .section-copy,
.sim-advanced-panel .combat-time {
  display: none;
}
.sim-advanced-panel .detail-notice {
  font-size: 12px;
  color: var(--muted);
}
#sim-results {
  margin: 20px 0;
}
#sim-summary {
  font-size: 16px;
  margin: 15px 0;
}
.sim-workbench > #simulator > .section-copy {
  margin: 12px 0 22px;
  max-width: 760px;
}
.sim-step {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
.sim-step h3 {
  font: 600 15px var(--sans);
}
.sim-step .combat-time {
  margin-bottom: 0;
}
.sim-build-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 16px 0 4px;
}
.sim-build-spell {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: #edf2e8;
  border-radius: 6px;
}
.sim-build-spell .skill-icon {
  width: 30px;
  height: 30px;
}
.sim-build-spell small {
  color: var(--muted);
}
.sim-build-spell b {
  font-size: 12px;
  font-weight: 500;
}
.sim-step > details:not(.advanced-settings) {
  margin-top: 8px;
}
.sim-profile-label {
  display: block;
  max-width: 380px;
  margin: 15px 0;
}
.sim-profile-note {
  background: #eef3e9;
  color: #4c6254;
  padding: 12px 15px;
  border-radius: 6px;
  font-size: 12px;
}
.sim-limits {
  font-size: 12px;
}
.sim-storage {
  margin: 0 0 18px;
}
.sim-storage > summary {
  font-size: 12px;
  color: var(--muted);
}
#sim-results {
  scroll-margin-top: 150px;
}
#sim-results:focus {
  outline: none;
}
.sim-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}
.sim-metrics > div {
  padding: 15px;
  border-radius: 7px;
  background: #edf2e8;
}
.sim-metrics span {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.sim-metrics strong {
  display: block;
  font-size: clamp(17px, 2vw, 25px);
  color: var(--jade);
  margin-top: 6px;
  overflow-wrap: anywhere;
}
#sim-breakdown,
#sim-effects {
  margin: 25px 0;
}
#sim-results h4 {
  font-size: 14px;
  margin-bottom: 12px;
}
.sim-table-wrap {
  overflow-x: auto;
}
.sim-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.sim-table-wrap td,
.sim-table-wrap th {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 12px 8px;
}
.sim-table-wrap thead th {
  color: var(--muted);
  font-weight: 500;
  background: #f2f4ee;
}
.sim-table-wrap small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.sim-effect-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sim-effect-list li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.sim-effect-list span {
  color: var(--muted);
  text-align: right;
}
.cooldown-panel {
  margin-top: 20px;
}
@media (max-width: 600px) {
  .sim-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sim-metrics > div {
    padding: 13px;
  }
  .sim-step {
    padding: 20px 0;
  }
  .sim-build-spell {
    padding: 7px 9px;
  }
  .sim-workbench .sim-actions .primary {
    min-height: 48px;
    font-size: 14px;
    width: 100%;
  }
  .sim-table-wrap td,
  .sim-table-wrap th {
    padding: 10px 5px;
    font-size: 10px;
  }
  .sim-effect-list li {
    gap: 9px;
  }
}
.crawl-index {
  font-size: 12px;
  color: var(--muted);
  padding: 30px 0;
}
.crawl-index > summary {
  font-size: 11px;
}
.crawl-index > div {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}
.crawl-index a {
  padding: 7px 0;
  display: inline-block;
}
footer {
  max-width: 1440px;
  padding: 36px;
  margin: 35px auto 0;
  border-top: 1px solid #d9e0d1;
  display: flex;
  align-items: center;
  gap: 25px;
  color: #95a08b;
  font-size: 10px;
}
.footer-brand {
  font: 15px var(--serif);
  color: #738265;
  white-space: nowrap;
}
footer > span {
  flex: 1;
}
footer > a:last-child {
  font-size: 10px;
  color: #778c65;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100vw - 32px);
  width: max-content;
  z-index: 60;
  color: #f1f3e7;
  background: #1d3c2fee;
  border: 1px solid #637f58;
  border-radius: 7px;
  box-shadow: 0 5px 22px #153e342a;
  padding: 15px 23px;
  font-size: 12px;
  line-height: 1.7;
}
dialog {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid #b8c7aa;
  border-radius: 12px;
  box-shadow: 0 14px 60px #16322440;
  width: 560px;
  max-width: calc(100vw - 28px);
  padding: 28px;
}
dialog::backdrop {
  background: #10291b99;
  backdrop-filter: blur(3px);
}
dialog h2 {
  font-size: 23px;
  margin-bottom: 16px;
}
dialog > p {
  font-size: 13px;
  color: var(--muted);
  margin: 14px 0;
}
dialog .button-row {
  justify-content: flex-end;
  margin-top: 22px;
}
dialog textarea {
  font-size: 11px;
  width: 100%;
  resize: vertical;
  word-break: break-all;
}
.skip {
  position: fixed;
  top: -100px;
  left: 15px;
  z-index: 99;
  padding: 12px 20px;
  background: var(--gold);
  color: var(--deep);
}
.skip:focus {
  top: 10px;
}
.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;
}
[hidden] {
  display: none !important;
}
*::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
*::-webkit-scrollbar-track {
  background: #eff2e9;
}
*::-webkit-scrollbar-thumb {
  background: #b2bfa5;
  border: 2px solid #eff2e9;
  border-radius: 8px;
}
*::-webkit-scrollbar-thumb:hover {
  background: #839772;
}
@media (min-width: 1440px) {
  .book-layout {
    grid-template-columns: minmax(0, 1.6fr) minmax(360px, 1fr) 76px;
  }
}
@media (max-width: 1100px) and (min-width: 801px) {
  main {
    padding: 0 22px;
  }
  .masthead-inner {
    padding-left: 22px;
    padding-right: 22px;
  }
  .site-nav {
    padding: 0 20px;
  }
  .site-nav a {
    padding: 13px 13px;
  }
  .book-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(270px, 1fr) 60px;
    gap: 12px;
  }
  .equipment {
    padding: 18px 15px;
  }
  .equipment-heading {
    align-items: flex-start;
  }
  .equipment-heading .button-row {
    gap: 3px;
  }
  .equipment-heading button {
    padding: 5px;
    font-size: 9px;
  }
  .equipment h2 {
    font-size: 18px;
  }
  .equipment-field {
    gap: 12px;
  }
  .slot-wrap,
  .equip-slot {
    width: 44px;
  }
  .equip-slot {
    height: 44px;
  }
  .extra-slots,
  .base-slots {
    gap: 7px;
  }
  .ultimate-slot {
    width: 53px;
    padding-left: 10px;
  }
  .ultimate-icon {
    width: 50px;
    height: 50px;
  }
  .build-save button {
    font-size: 10px;
    padding: 8px;
  }
  .detail-panel {
    padding: 16px;
  }
  .detail-stats dd {
    font-size: 17px;
  }
  .detail-stats > div {
    padding: 9px 7px;
  }
  .skill-select {
    gap: 8px;
  }
  .skill-icon {
    width: 40px;
    height: 40px;
  }
  .skill-name {
    font-size: 12px;
  }
  .header-note {
    display: none;
  }
  .row-effects {
    max-width: 155px;
  }
  .style-tabs button {
    font-size: 10px;
  }
  .detail-panel .relation {
    grid-template-columns: 1fr;
  }
  .detail-panel .relation-arrow {
    transform: rotate(90deg);
  }
}
@media (max-width: 800px) {
  html {
    scroll-padding-top: 144px;
  }
  body {
    font-size: 13px;
  }
  .masthead-inner {
    padding: 12px 16px;
    min-height: 73px;
    gap: 10px;
  }
  .brand {
    gap: 9px;
  }
  .brand > img {
    width: 34px;
    height: 34px;
  }
  .brand > span {
    font-size: 18px;
  }
  .brand small {
    font-size: 7px;
    letter-spacing: 0;
    margin-top: 4px;
  }
  .header-note {
    display: none;
  }
  .header-link {
    font-size: 10px;
  }
  .mode-control {
    gap: 1px;
    padding: 2px;
    border-color: #45634a;
  }
  .mode-control button {
    padding: 8px 7px;
    min-height: 40px;
    font-size: 10px;
    gap: 3px;
  }
  .mode-control small {
    display: none;
  }
  .mode-check {
    font-size: 9px;
  }
  .site-nav {
    padding: 0 8px;
    gap: 0;
  }
  .site-nav a {
    padding: 12px 13px;
    min-height: 44px;
    font-size: 11px;
  }
  .site-nav a:nth-child(5) {
    margin-left: 0;
  }
  .site-nav a[aria-current="page"]:after {
    left: 13px;
    right: 13px;
  }
  main,
  .document-page {
    padding: 0 14px;
  }
  .page-heading {
    padding: 23px 0 20px;
    gap: 10px;
  }
  .page-heading h1,
  .document-page .page-heading h1 {
    font-size: 27px;
  }
  .page-heading .eyebrow {
    font-size: 8px;
  }
  .page-copy {
    font-size: 11px;
    margin-top: 8px;
    line-height: 1.8;
  }
  .page-heading > .text-link {
    font-size: 10px;
    align-self: center;
    min-width: 68px;
    white-space: normal;
    text-align: right;
  }
  .desktop-hint {
    display: none;
  }
  .mobile-views {
    display: flex;
    gap: 5px;
    padding: 5px;
    background: #e2e8d9;
    border-radius: 7px;
    margin-bottom: 15px;
  }
  .mobile-views button {
    flex: 1;
    border: 0;
    background: transparent;
    font-size: 12px;
    min-height: 42px;
    color: #7e8e70;
  }
  .mobile-views [aria-pressed="true"] {
    background: var(--paper);
    color: var(--jade);
    box-shadow: 0 1px 4px #304b2520;
  }
  .mobile-views #total {
    font-size: 9px;
    margin-left: 3px;
  }
  .book-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .workspace {
    width: 100%;
    gap: 16px;
  }
  .equipment {
    padding: 19px 14px 16px;
    border-radius: 8px;
  }
  .equipment-heading {
    gap: 7px;
  }
  .equipment h2 {
    font-size: 20px;
  }
  .equipment h2 > span {
    font-size: 9px;
    margin-left: 4px;
  }
  .equipment .eyebrow {
    font-size: 8px;
  }
  .equipment-heading button {
    font-size: 9px;
    min-height: 37px;
    padding: 7px;
  }
  .equipment-heading .button-row {
    gap: 5px;
  }
  .placement-note {
    font-size: 10px;
    margin-top: 12px;
    line-height: 1.7;
    min-height: 34px;
    gap: 5px;
  }
  .placement-note button {
    white-space: nowrap;
    font-size: 9px;
  }
  .equipment-field {
    gap: 10px;
    padding-top: 13px;
  }
  .normal-slots {
    max-width: 400px;
  }
  .slot-wrap,
  .equip-slot {
    width: 44px;
  }
  .equip-slot {
    height: 44px;
    padding: 4px;
  }
  .base-slots,
  .extra-slots {
    gap: 5px;
  }
  .extra-label,
  .base-label {
    font-size: 9px;
    margin-bottom: 11px;
  }
  .extra-label > span {
    font-size: 7px;
    display: block;
    margin: 2px 0 0;
  }
  .extra-slots {
    margin-bottom: 10px;
  }
  .extra-slots .slot-wrap {
    min-height: 77px;
  }
  .base-slots .slot-wrap {
    min-height: 85px;
  }
  .slot-name {
    font-size: 8px;
    padding-top: 10px;
    min-height: 28px;
  }
  .slot-order {
    width: 18px;
    height: 18px;
    font-size: 9px;
    line-height: 18px;
  }
  .slot-position {
    font-size: 8px;
    width: 16px;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
  }
  .slot-actions {
    flex-direction: column;
    gap: 0;
    align-items: center;
  }
  .slot-actions button {
    min-height: 32px;
    width: 44px;
    font-size: 9px;
    padding: 5px;
  }
  .ultimate-slot {
    width: 47px;
    padding-left: 9px;
    flex: none;
  }
  .ultimate-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    font-size: 24px;
  }
  .ultimate-label {
    font-size: 9px;
    margin-bottom: 11px;
  }
  .ultimate-slot > strong {
    font-size: 9px;
  }
  .ultimate-slot > small {
    font-size: 8px;
  }
  .unlock-settings summary {
    font-size: 10px;
    min-height: 45px;
  }
  .unlock-settings p {
    font-size: 10px;
  }
  .unlock-options label {
    font-size: 10px;
    min-height: 44px;
  }
  .order-heading > span {
    font-size: 8px;
  }
  .order-item > b {
    max-width: 55px;
    font-size: 9px;
  }
  .order-item button {
    min-height: 23px;
    padding: 0 8px;
  }
  .build-save {
    gap: 5px;
  }
  .build-save input {
    font-size: 11px;
    padding: 9px;
    width: 100px;
    flex: 1;
    min-width: 0;
  }
  .build-save button {
    font-size: 10px;
    padding: 9px 10px;
  }
  .draft-status {
    font-size: 8px;
    line-height: 1.8;
  }
  .catalog-pane {
    position: static;
    width: 100%;
    max-height: none;
    border-radius: 7px;
    min-height: 0;
    overflow: visible;
  }
  .catalog-heading {
    padding: 16px;
  }
  .skills {
    overflow: visible;
    scrollbar-gutter: auto;
  }
  .skill-row {
    min-height: 89px;
    padding-right: 14px;
  }
  .skill-select {
    padding: 13px 9px;
    gap: 13px;
  }
  .skill-icon {
    width: 46px;
    height: 46px;
  }
  .skill-name {
    font-size: 14px;
  }
  .row-effects {
    font-size: 10px;
    max-width: 220px;
  }
  .row-equip {
    min-height: 55px;
    min-width: 44px;
  }
  .row-equip span {
    font-size: 9px;
  }
  .style-tabs {
    position: static;
    order: -1;
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    border: 0;
    border-radius: 5px;
    margin-bottom: 12px;
  }
  .style-tabs button {
    min-width: 58px;
    min-height: 47px;
    flex: none;
    padding: 8px 11px;
    border-bottom: 0;
    border-right: 1px solid #d2dcc5;
    flex-direction: row;
    gap: 5px;
    font-size: 10px;
  }
  .style-tabs button small {
    font-size: 8px;
  }
  .detail-panel {
    padding: 17px 16px;
    border-radius: 7px;
  }
  .detail-heading h2 {
    font-size: 26px;
  }
  .detail-heading > .skill-icon {
    width: 56px;
    height: 56px;
  }
  .detail-category {
    font-size: 9px;
  }
  .detail-heading .mode-badge {
    font-size: 9px;
    padding: 5px 7px;
  }
  .detail-actions {
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }
  .learning-label {
    font-size: 10px;
    min-height: 44px;
  }
  .learning-label > span {
    font-size: 8px;
  }
  .detail-actions .primary {
    min-height: 44px;
    font-size: 10px;
  }
  .detail-stats {
    margin-top: 12px;
  }
  .detail-stats > div {
    padding: 10px 7px;
  }
  .detail-stats dt {
    font-size: 8px;
  }
  .detail-stats dd {
    font-size: 19px;
  }
  .detail-stats small {
    font-size: 7px;
  }
  .observation-note {
    font-size: 8px;
    line-height: 1.8;
  }
  .detail-tabs {
    gap: 12px;
    justify-content: space-between;
  }
  .detail-tabs button {
    font-size: 11px;
    min-height: 44px;
    padding: 10px 5px;
  }
  .effect-heading h4 {
    font-size: 13px;
  }
  .effect-item p {
    font-size: 12px;
  }
  .book-layout[data-mobile-view="workspace"] .catalog-pane,
  .book-layout[data-mobile-view="workspace"] .style-tabs,
  .book-layout[data-mobile-view="workspace"] .detail-panel {
    display: none;
  }
  .book-layout[data-mobile-view="catalog"] .workspace {
    display: none;
  }
  .book-layout[data-mobile-view="detail"] .catalog-pane,
  .book-layout[data-mobile-view="detail"] .style-tabs,
  .book-layout[data-mobile-view="detail"] #equipment-host {
    display: none;
  }
  .page-panel {
    padding: 20px 18px;
    margin-bottom: 15px;
  }
  .page-panel h2 {
    font-size: 19px;
  }
  .backup-panel {
    flex-direction: column;
    align-items: start;
  }
  .preset-item {
    padding: 20px 17px;
  }
  .preset-item-heading {
    align-items: start;
    gap: 10px;
    flex-wrap: wrap;
  }
  .preset-item-heading > div {
    gap: 9px;
  }
  .preset-item h2 {
    font-size: 19px;
  }
  .preset-item-heading > .small {
    font-size: 9px;
  }
  .preset-preview {
    gap: 12px;
  }
  .preset-preview > span {
    font-size: 9px;
  }
  .preset-preview .skill-icon {
    width: 26px;
    height: 26px;
  }
  .preset-item > .button-row {
    gap: 7px;
  }
  .preset-item > .button-row button {
    font-size: 10px;
    padding: 9px 12px;
    min-height: 44px;
  }
  .composition-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }
  .composition-slot {
    padding: 10px 1px;
    gap: 5px;
  }
  .composition-slot > span {
    font-size: 7px;
  }
  .composition-slot .skill-icon {
    width: 26px;
    height: 26px;
  }
  .composition-slot b {
    font-size: 9px;
  }
  .composition-slot small {
    font-size: 7px;
  }
  .share-preview {
    padding: 20px 16px;
  }
  .relation {
    padding: 20px 18px;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .relation-arrow {
    transform: rotate(90deg);
    padding: 7px;
  }
  .relation-skill h3 {
    font-size: 18px;
  }
  .relation-step > .button-row > button,
  .relation-step > .button-row > .button {
    font-size: 10px;
    min-height: 44px;
  }
  .detail-panel .relation {
    grid-template-columns: 1fr;
    padding: 15px;
  }
  .detail-panel .relation-skill .skill-icon {
    width: 40px;
    height: 40px;
  }
  .detail-panel .relation h3 {
    font-size: 17px;
  }
  .section-title {
    margin: 20px 0 15px;
  }
  .section-title h2 {
    font-size: 20px;
  }
  .sources-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .source-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .filter-toolbar {
    gap: 14px;
  }
  .filter-toolbar label {
    min-width: 100px;
  }
  .equipment-result-heading {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }
  .tier-table th,
  .tier-table td,
  .table-scroll th,
  .table-scroll td {
    padding: 12px 13px;
  }
  .quality-check {
    gap: 10px;
  }
  .quality-check input {
    max-width: 135px;
  }
  .quality-check output {
    font-size: 11px;
  }
  .content-guide .appendix {
    padding: 20px 16px;
  }
  .appendix-title {
    flex-direction: column;
    gap: 6px;
  }
  .appendix-title h1 {
    font-size: 27px;
  }
  .content-record {
    padding: 8px 14px;
  }
  .content-record > summary {
    font-size: 18px;
    min-height: 59px;
  }
  .content-record p,
  .content-record li {
    font-size: 11px;
  }
  .content-record h3 {
    font-size: 14px;
  }
  .coupon-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .coupon-row {
    grid-template-columns: 1fr;
  }
  .coupon-row .button-row {
    justify-content: start;
  }
  .coupon-row select {
    max-width: none;
    flex: 1;
  }
  .account-row h3 {
    font-size: 12px;
  }
  .cooldown-track-row {
    grid-template-columns: 95px minmax(0, 1fr);
    gap: 8px;
  }
  .cooldown-track-label {
    font-size: 9px;
    gap: 6px;
  }
  .cooldown-track-label small {
    font-size: 7px;
  }
  .cooldown-track-label .skill-icon {
    width: 27px;
    height: 27px;
  }
  .time-axis {
    padding-left: 103px;
    font-size: 8px;
  }
  .timeline-legend {
    font-size: 9px;
    gap: 12px;
  }
  .assumption-grid {
    grid-template-columns: 1fr;
  }
  .slot-row {
    grid-template-columns: 45px 55px 1fr 55px;
    gap: 5px;
  }
  .slot-row input,
  .slot-row select {
    font-size: 9px;
    padding: 8px 5px;
  }
  .slot-row label {
    font-size: 8px;
  }
  .slot-row .check-label {
    gap: 4px;
  }
  .slot-row .check-label input {
    width: 15px;
    min-height: 15px;
  }
  .slot-row > span {
    font-size: 9px;
  }
  .sim-actions button {
    font-size: 10px;
    flex: 1;
    min-width: 120px;
  }
  .timeline-event summary {
    grid-template-columns: 65px 1fr 75px;
    gap: 6px;
    font-size: 10px;
  }
  .advanced-settings {
    padding: 10px 14px;
  }
  .advanced-settings label {
    font-size: 10px;
  }
  .advanced-settings > summary {
    font-size: 12px;
  }
  footer {
    padding: 25px 16px;
    margin-top: 30px;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 8px;
  }
  footer > span {
    min-width: 65%;
    font-size: 8px;
  }
  footer > a:last-child {
    font-size: 9px;
  }
  .footer-brand {
    font-size: 13px;
  }
  dialog {
    padding: 22px;
  }
  dialog h2 {
    font-size: 21px;
  }
  dialog > p {
    font-size: 12px;
  }
  .toast {
    bottom: 16px;
    font-size: 11px;
    padding: 13px 17px;
    max-width: calc(100vw - 24px);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.workspace-nav {
  display: flex;
  gap: 4px;
  background: #e2e8d9;
  border-radius: 6px;
  padding: 4px;
}
.workspace-nav button {
  flex: 1;
  min-height: 38px;
  background: transparent;
  border: 0;
  color: #859377;
  font-size: 12px;
}
.workspace-nav button[aria-pressed="true"] {
  background: var(--paper);
  color: var(--jade);
  box-shadow: 0 1px 3px #23452615;
}
.workspace {
  gap: 12px;
}
@media (min-width: 801px) {
  .book-layout[data-mobile-view="workspace"] #detail {
    display: none;
  }
  .book-layout[data-mobile-view="detail"] #equipment-host {
    display: none;
  }
  .style-tabs button {
    min-height: 43px;
    padding-top: 7px;
    padding-bottom: 7px;
  }
}
@media (max-width: 800px) {
  .workspace-nav {
    display: none;
  }
}

@media (max-width: 800px) {
  .extra-label > span {
    display: inline;
    font-size: 7px;
    margin-left: 5px;
  }
  .extra-slots .slot-wrap {
    min-height: 65px;
  }
  .base-slots .slot-wrap {
    min-height: 72px;
  }
  .equipment-field {
    padding-top: 8px;
    padding-bottom: 2px;
  }
  .extra-label,
  .base-label {
    margin-bottom: 8px;
  }
  .order-empty {
    min-height: 20px;
  }
  .order-section {
    padding: 9px 0;
  }
  .order-strip {
    padding-top: 7px;
  }
  .equipment .eyebrow {
    font-size: 8px;
  }
  .mobile-instruction {
    display: inline;
  }
  .desktop-instruction {
    display: none;
  }
}
@media (min-width: 801px) {
  .mobile-instruction {
    display: none;
  }
}

/* A compact spell picker and an actionable, contextual build guide. */
.builder-path {
  display: flex;
  gap: 22px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 12px;
}
.builder-path span {
  display: flex;
  gap: 7px;
  align-items: center;
}
.builder-path b {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #dfe9df;
  color: var(--jade);
  text-align: center;
}
.book-layout {
  grid-template-columns: minmax(350px, 0.95fr) minmax(0, 1.25fr);
  gap: 20px;
}
.catalog-pane {
  top: 145px;
  max-height: calc(100dvh - 162px);
}
.catalog-pane .style-tabs {
  position: static;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 5px;
  padding: 10px 15px;
  width: auto;
  max-height: none;
  overflow: visible;
  border: 0;
  background: #f3f5ef;
}
.catalog-pane .style-tabs button {
  min-height: 32px;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 5px 9px;
  font-size: 11px;
  background: transparent;
  width: auto;
  flex: none;
}
.catalog-pane .style-tabs button[aria-pressed="true"] {
  background: var(--jade);
  color: white;
}
.catalog-pane .style-tabs small {
  display: none;
}
.skills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  align-content: start;
}
.skill-row,
.skill-row.selected {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  padding: 0;
  gap: 0;
  border: 1px solid #dce3d8;
  border-radius: 8px;
  background: #fafbf7;
  overflow: hidden;
}
.skill-row.equipped {
  border-color: #287254;
  background: #e8f3e8;
  box-shadow: inset 0 0 0 1px #287254;
}
.skill-row:hover {
  border-color: #92ae98;
}
.skill-select {
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 15px 8px 9px;
  width: 100%;
  flex: 1;
}
.skill-row-body {
  width: 100%;
  align-items: center;
  gap: 3px;
}
.skill-name {
  font: 600 13px/1.45 var(--sans);
  min-height: 37px;
  align-items: center;
  justify-content: center;
}
.draggable-icon {
  position: relative;
}
.skill-select .skill-icon {
  width: 56px;
  height: 56px;
  border-radius: 7px;
}
.card-slot-number {
  position: absolute;
  top: -7px;
  right: -10px;
  border: 2px solid #e8f3e8;
  border-radius: 9px;
  padding: 0 5px;
  background: var(--jade);
  color: white;
  font: 600 10px/18px var(--sans);
  white-space: nowrap;
}
.row-effects {
  width: 100%;
  max-width: none;
  color: #72816d;
  font-size: 10px;
  min-height: 16px;
}
.card-cooldown {
  font-size: 10px;
  color: #4b6d59;
}
.card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3px;
  border-top: 1px solid #dfe5db;
  padding: 0 6px 0 9px;
}
.card-actions > span {
  color: #84917d;
  font-size: 9px;
  line-height: 1.5;
}
.card-actions button {
  min-height: 36px;
  padding: 4px;
  font-size: 10px;
  border: 0;
  background: transparent;
  flex: none;
}
.card-actions .auto-label {
  padding: 0;
}
.skills > .empty-state {
  grid-column: 1/-1;
}
.candidate-filter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  background: #e4f0e3;
  color: var(--jade);
  font-size: 11px;
}
.candidate-filter button {
  min-height: 32px;
  padding: 4px 8px;
  font-size: 10px;
}
.candidate-filter[hidden] {
  display: none;
}
.equipment:before {
  display: none;
}
.equipment .eyebrow {
  display: none;
}
.equipment {
  padding: 20px;
}
.equipment-heading h2 {
  font-family: var(--sans);
  font-size: 19px;
}
.equipment-field {
  gap: 14px;
}
.slot-wrap,
.equip-slot {
  width: clamp(44px, 4vw, 57px);
}
.equip-slot {
  height: clamp(44px, 4vw, 57px);
  border-radius: 10px;
  box-shadow: none;
  padding: 3px;
}
.equip-slot .skill-icon {
  border-radius: 7px;
}
.slot-name {
  font-size: 10px;
}
.extra-slots .slot-wrap {
  min-height: 65px;
}
.base-slots .slot-wrap {
  min-height: 90px;
}
.extra-slots {
  margin-bottom: 4px;
}
.base-slots,
.extra-slots {
  gap: 8px;
}
.extra-label,
.base-label {
  margin-bottom: 6px;
}
.placement-note {
  margin-top: 8px;
}
.build-coach {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}
.coach-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px 16px;
  gap: 12px;
}
.coach-heading h2 {
  font: 700 20px/1.5 var(--sans);
}
.coach-label {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 3px;
}
.coach-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  padding: 0 15px;
}
.coach-tabs button {
  flex: 1;
  min-height: 46px;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  padding: 8px;
}
.coach-tabs [aria-selected="true"] {
  color: var(--jade);
  font-weight: 700;
  border-bottom-color: var(--jade);
}
#coach-panel {
  padding: 18px 20px;
}
.coach-empty p,
.setup-intro p {
  color: var(--muted);
  font-size: 12px;
  margin: 9px 0 16px;
}
.coach-empty h3 {
  font-size: 15px;
}
.coach-examples {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.coach-examples > span {
  width: 100%;
  color: var(--muted);
  font-size: 11px;
}
.coach-examples button {
  font-size: 11px;
  padding: 7px 9px;
  min-height: 36px;
}
.coach-summary {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 7px;
  margin-bottom: 17px;
}
.coach-summary > span {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 10px;
  color: var(--muted);
  background: #f0f4eb;
  padding: 11px 9px;
  border-radius: 6px;
}
.coach-summary strong {
  color: var(--jade);
  font-size: 18px;
  line-height: 1.4;
}
.coach-check {
  padding: 14px 13px;
  margin: 10px 0;
  border: 1px solid #dae2d6;
  border-left: 3px solid #7f9c80;
  border-radius: 5px;
}
.coach-check.missing,
.coach-check.order {
  border-left-color: #b27b37;
  background: #fbf7ed;
}
.coach-check-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.coach-check-title > span {
  color: #8e672e;
  font-size: 10px;
}
.coach-check-title b {
  font-size: 13px;
}
.coach-check-title small {
  font-size: 11px;
  font-weight: 400;
}
.coach-check p {
  margin: 7px 0;
  font-size: 12px;
}
.coach-check > small {
  display: block;
  font-size: 10px;
  color: var(--muted);
}
.coach-check .button-row {
  margin-top: 10px;
  gap: 6px;
}
.coach-check button {
  font-size: 10px;
  min-height: 35px;
  padding: 7px 9px;
}
.external-condition {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-top: 9px;
  font-size: 10px;
  line-height: 1.6;
}
.external-condition input {
  width: 16px;
  height: 16px;
  flex: none;
}
.coach-details {
  border-top: 1px solid var(--line);
  margin-top: 13px;
  padding-top: 4px;
}
.coach-details summary {
  font-size: 12px;
  padding: 12px 0;
  cursor: pointer;
}
.coach-details ul {
  padding-left: 18px;
  font-size: 12px;
}
.coach-details li {
  margin-bottom: 10px;
}
.coach-details li small {
  color: var(--muted);
}
.coach-footnote {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 15px;
}
.coach-clear {
  font-size: 12px;
  background: #edf4e7;
  padding: 13px;
  border-radius: 5px;
}
.coach-opportunities {
  display: grid;
  gap: 7px;
}
.coach-opportunities button {
  justify-content: flex-start;
  padding: 8px;
  text-align: left;
  gap: 9px;
}
.coach-opportunities .skill-icon {
  width: 35px;
  height: 35px;
}
.coach-opportunities button > span:nth-child(2) {
  flex: 1;
}
.coach-opportunities b,
.coach-opportunities small {
  display: block;
}
.coach-opportunities small {
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 3px;
}
.coach-opportunities button > span:last-child {
  font-size: 10px;
}
.setup-intro > b {
  font-size: 12px;
}
.setup-intro .text-link {
  font-size: 11px;
}
.setup-list {
  margin: 16px 0;
}
.setup-row {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
.setup-spell {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
}
.setup-spell .skill-icon {
  width: 32px;
  height: 32px;
}
.setup-spell > b {
  flex: 1;
}
.setup-spell small {
  color: var(--muted);
  font-size: 10px;
}
.setup-fields {
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr;
  gap: 8px;
  margin-top: 11px;
}
.setup-fields label {
  min-width: 0;
  font-size: 10px;
  color: var(--muted);
}
.setup-fields input,
.setup-fields select {
  width: 100%;
  min-width: 0;
  font-size: 12px;
  margin-top: 4px;
  padding: 8px;
  min-height: 40px;
}
.setup-fields input:disabled {
  background: #ecefe8;
  color: #97a090;
}
.setup-tip {
  font-size: 10px;
  color: #906a36;
  margin-top: 9px;
}
.compare-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 18px 0;
}
.compare-columns article {
  padding: 13px;
  background: #f0f3ea;
  border-radius: 6px;
  min-width: 0;
}
.compare-columns article:last-child {
  background: #e8f1e8;
}
.compare-columns h3 {
  font-size: 14px;
  margin-bottom: 10px;
}
.compare-columns h3 small {
  font-size: 10px;
  font-weight: 400;
}
.coach-spell {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 7px 0;
  font-size: 11px;
}
.coach-spell .skill-icon {
  width: 29px;
  height: 29px;
}
.coach-spell small {
  color: var(--muted);
  margin-right: 5px;
}
.compare-changes {
  padding-left: 18px;
  font-size: 12px;
}
.compare-changes li {
  margin: 6px 0;
}
.compare-placeholder {
  margin-top: 20px;
  padding: 18px;
  background: #f0f4eb;
  border-radius: 6px;
  font-size: 12px;
  color: var(--muted);
}
#coach-panel > .button-row {
  margin-top: 13px;
}
.replacement-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.replacement-choice > div {
  flex: 1;
  min-width: 0;
}
.replacement-choice b,
.replacement-choice small {
  display: block;
}
.replacement-choice small {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.replacement-choice button {
  flex: none;
}
#replacement-dialog {
  width: min(600px, calc(100% - 28px));
  max-height: 85dvh;
  overflow: auto;
}
#replacement-content > p {
  margin: 10px 0 18px;
}
.quick-tray {
  display: none;
}
.book-layout[data-mobile-view="detail"] #build-coach {
  display: none;
}
@media (max-width: 1000px) and (min-width: 801px) {
  .book-layout {
    grid-template-columns: minmax(330px, 1fr) minmax(0, 1fr);
    gap: 14px;
  }
  .skills {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .equipment {
    padding: 16px 12px;
  }
  .base-slots,
  .extra-slots {
    gap: 5px;
  }
  .ultimate-slot {
    width: 47px;
    padding-left: 8px;
  }
}
@media (max-width: 800px) {
  .builder-path {
    gap: 9px;
    margin-bottom: 15px;
    font-size: 10px;
  }
  .builder-path b {
    display: none;
  }
  .builder-path span + span:before {
    content: "›";
    color: #9ba694;
    margin-right: 2px;
  }
  .builder-page .page-heading {
    padding-top: 22px;
    padding-bottom: 18px;
  }
  .builder-page .page-heading h1 {
    font-size: 27px;
  }
  .builder-page .page-heading > .text-link {
    font-size: 10px;
  }
  .catalog-pane {
    max-height: none;
  }
  .catalog-pane .style-tabs {
    gap: 5px;
    padding: 9px 12px;
  }
  .catalog-pane .style-tabs button {
    min-height: 38px;
    padding: 6px 10px;
  }
  .skills {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    padding: 10px;
  }
  .skill-select {
    padding: 13px 5px 7px;
    gap: 9px;
  }
  .skill-select .skill-icon {
    width: 48px;
    height: 48px;
  }
  .skill-name {
    font-size: 12px;
    min-height: 35px;
  }
  .row-meta,
  .row-effects,
  .card-cooldown {
    font-size: 9px;
  }
  .card-actions {
    padding: 0 4px;
    justify-content: center;
  }
  .card-actions > span {
    display: none;
  }
  .card-actions button {
    width: 100%;
    min-height: 42px;
  }
  .equipment {
    padding: 17px 14px;
  }
  .slot-wrap,
  .equip-slot {
    width: 44px;
  }
  .equip-slot {
    height: 44px;
  }
  .base-slots,
  .extra-slots {
    gap: 6px;
  }
  .coach-heading {
    padding: 17px 16px 13px;
  }
  .coach-heading h2 {
    font-size: 18px;
  }
  #coach-panel {
    padding: 15px 16px;
  }
  .coach-summary {
    gap: 6px;
  }
  .coach-summary > span {
    padding: 10px 8px;
    font-size: 9px;
  }
  .coach-summary strong {
    font-size: 16px;
  }
  .coach-check button {
    min-height: 42px;
    font-size: 11px;
  }
  .external-condition {
    min-height: 44px;
    font-size: 11px;
  }
  .setup-fields {
    gap: 6px;
  }
  .setup-fields label {
    font-size: 9px;
  }
  .setup-fields input,
  .setup-fields select {
    min-height: 44px;
  }
  .compare-columns {
    gap: 8px;
  }
  .compare-columns article {
    padding: 10px;
  }
  .coach-spell {
    font-size: 10px;
    gap: 5px;
  }
  .coach-spell .skill-icon {
    width: 25px;
    height: 25px;
  }
  body:has(.book-layout[data-mobile-view="catalog"]) {
    padding-bottom: 140px;
  }
  body:has(.book-layout[data-mobile-view="catalog"]) .quick-tray {
    display: block;
    position: fixed;
    z-index: 30;
    bottom: 0;
    left: 0;
    right: 0;
    background: #17382ff5;
    color: #e8efdc;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    box-shadow: 0 -3px 16px #142e2933;
  }
  .quick-tray > div:first-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    margin-bottom: 8px;
  }
  .quick-tray > div:first-child button {
    background: transparent;
    color: #ead49a;
    border: 0;
    min-height: 30px;
    padding: 3px 0 3px 10px;
    font-size: 11px;
  }
  .tray-slots {
    display: flex;
    gap: 6px;
    align-items: center;
  }
  .tray-slots > button,
  .tray-slots > span {
    position: relative;
    width: calc((100vw - 80px) / 9);
    height: 44px;
    max-width: 49px;
    min-width: 27px;
    padding: 2px;
    min-height: 44px;
    border-radius: 5px;
    background: #294b3c;
    border: 1px solid #5b7760;
    color: #8ca582;
  }
  .tray-slots > span {
    display: flex;
    justify-content: center;
    align-items: center;
    border-color: #aa9a65;
    margin-left: auto;
  }
  .tray-slots .skill-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border: 0;
    border-radius: 3px;
  }
  .tray-slots small {
    position: absolute;
    font-size: 8px;
    bottom: -6px;
    right: -2px;
    background: #17382f;
    padding: 0 3px;
    color: #d5ddc4;
  }
  body:has(.book-layout[data-mobile-view="catalog"]) .toast {
    bottom: 140px;
  }
}

.mobile-slot-edit {
  display: none;
}
@media (max-width: 800px) {
  .desktop-slot-edit {
    display: none !important;
  }
  .slot-actions .mobile-slot-edit {
    display: flex;
    min-height: 44px;
    width: 44px;
    font-size: 10px;
  }
  .slot-name {
    font-size: 10px;
    min-height: 30px;
  }
  .equipment-heading button {
    min-height: 44px;
  }
  .mode-control button {
    min-height: 44px;
  }
  .order-item > div {
    flex-direction: row;
  }
  .order-item button {
    min-height: 44px;
    min-width: 36px;
    font-size: 19px;
  }
  .order-item > b {
    font-size: 12px;
    max-width: none;
    flex: 1;
  }
  .order-item {
    padding: 3px 9px;
    width: 100%;
    gap: 9px;
  }
  .order-heading > span {
    font-size: 9px;
  }
  .unlock-settings summary {
    font-size: 11px;
  }
  .draft-status {
    font-size: 9px;
  }
}
.site-nav {
  overflow: visible;
  align-items: stretch;
}
.nav-more {
  margin-left: auto;
  position: relative;
}
.nav-more > summary {
  list-style: none;
  cursor: pointer;
  color: #bdc9b7;
  padding: 14px 18px;
  font-size: 12px;
  min-height: 48px;
}
.nav-more > summary::-webkit-details-marker {
  display: none;
}
.nav-more > summary.current {
  color: #ecd5a0;
}
.nav-more > div {
  position: absolute;
  z-index: 40;
  right: 0;
  top: 100%;
  width: 220px;
  background: #203d32;
  box-shadow: 0 8px 22px #10251f44;
  border: 1px solid #466351;
  border-radius: 0 0 7px 7px;
  padding: 7px;
}
.nav-more a {
  display: block;
  margin: 0 !important;
  border-radius: 4px;
  min-height: 42px;
  padding: 11px 13px;
}
.nav-more a[aria-current="page"]:after {
  display: none;
}
@media (max-width: 800px) {
  .site-nav {
    gap: 0;
    padding: 0 12px;
  }
  .site-nav > a {
    padding: 12px 9px;
    font-size: 11px;
    min-height: 44px;
  }
  .nav-more > summary {
    padding: 12px 9px;
    font-size: 11px;
    min-height: 44px;
  }
}
.skill-row .skill-select {
  flex: 0 0 auto;
  min-height: 184px;
}
.skill-row .skill-row-body {
  flex-shrink: 0;
}
@media (max-width: 800px) {
  .skill-row .skill-select {
    min-height: 170px;
  }
}
.catalog-pane .style-tabs {
  order: 0;
  margin-bottom: 0;
}
@media (max-width: 800px) {
  .catalog-pane .style-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    border-radius: 0;
  }
  .builder-page:has(.book-layout[data-mobile-view="catalog"]) .builder-path,
  .builder-page:has(.book-layout[data-mobile-view="catalog"]) .page-copy {
    display: none;
  }
  .builder-page:has(.book-layout[data-mobile-view="catalog"]) .page-heading {
    padding: 14px 0 12px;
  }
}
.coach-snapshot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 13px 16px;
  background: #e3eddf;
  border: 1px solid #cfdec9;
  border-radius: 7px;
}
.coach-snapshot span,
.coach-snapshot b {
  display: block;
}
.coach-snapshot span {
  font-size: 10px;
  color: #74866d;
}
.coach-snapshot b {
  font-size: 12px;
  margin-top: 3px;
}
.coach-snapshot button {
  flex: none;
  font-size: 11px;
  min-height: 36px;
  padding: 7px 9px;
  background: #f8fcf3;
}
#build-coach {
  scroll-margin-top: 150px;
}
